PR 868
[deliverable/binutils-gdb.git] / ld / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
42ecbf5e 3# Generated by GNU Autoconf 2.59.
252b5132 4#
42ecbf5e 5# Copyright (C) 2003 Free Software Foundation, Inc.
252b5132
RH
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
42ecbf5e
DJ
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
d7040cdb
SE
244
245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$lt_ECHO in
249X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253esac
254
255ECHO=${lt_ECHO-echo}
256if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
264 :
265else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
274$*
275_LT_EOF
276 exit 0
277fi
278
279# The HP-UX ksh and POSIX shell print the target directory to stdout
280# if CDPATH is set.
281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290 then
291 break
292 fi
293 done
294 fi
295
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
299 :
300 else
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
304 #
305 # So, first we look for a working echo in the user's PATH.
306
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
309 IFS="$lt_save_ifs"
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
314 ECHO="$dir/echo"
315 break
316 fi
317 done
318 IFS="$lt_save_ifs"
319
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
326 ECHO='print -r'
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
333 export CONFIG_SHELL
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335 else
336 # Try using printf.
337 ECHO='printf %s\n'
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
341 # Cool, printf works
342 :
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348 export CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
350 export SHELL
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
357 else
358 # maybe with a smaller string...
359 prev=:
360
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363 then
364 break
365 fi
366 prev="$cmd"
367 done
368
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373 else
374 # Oops. We lost completely, so just stick with echo.
375 ECHO=echo
376 fi
377 fi
378 fi
379 fi
380 fi
381fi
382
383# Copy echo and quote the copy suitably for passing to libtool from
384# the Makefile, instead of quoting the original, which is used later.
385lt_ECHO=$ECHO
386if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388fi
389
390
391
392
42ecbf5e
DJ
393# Name of the host.
394# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395# so uname gets run too.
396ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 397
42ecbf5e
DJ
398exec 6>&1
399
400#
401# Initializations.
402#
252b5132 403ac_default_prefix=/usr/local
42ecbf5e
DJ
404ac_config_libobj_dir=.
405cross_compiling=no
406subdirs=
407MFLAGS=
408MAKEFLAGS=
409SHELL=${CONFIG_SHELL-/bin/sh}
410
411# Maximum number of lines to put in a shell here document.
412# This variable seems obsolete. It should probably be removed, and
413# only ac_max_sed_lines should be used.
414: ${ac_max_here_lines=38}
415
416# Identity of this package.
417PACKAGE_NAME=
418PACKAGE_TARNAME=
419PACKAGE_VERSION=
420PACKAGE_STRING=
421PACKAGE_BUGREPORT=
422
423ac_unique_file="ldmain.c"
424# Factoring default headers for most tests.
425ac_includes_default="\
426#include <stdio.h>
427#if HAVE_SYS_TYPES_H
428# include <sys/types.h>
429#endif
430#if HAVE_SYS_STAT_H
431# include <sys/stat.h>
432#endif
433#if STDC_HEADERS
434# include <stdlib.h>
435# include <stddef.h>
436#else
437# if HAVE_STDLIB_H
438# include <stdlib.h>
439# endif
440#endif
441#if HAVE_STRING_H
442# if !STDC_HEADERS && HAVE_MEMORY_H
443# include <memory.h>
444# endif
445# include <string.h>
446#endif
447#if HAVE_STRINGS_H
448# include <strings.h>
449#endif
450#if HAVE_INTTYPES_H
451# include <inttypes.h>
452#else
453# if HAVE_STDINT_H
454# include <stdint.h>
455# endif
456#endif
457#if HAVE_UNISTD_H
458# include <unistd.h>
459#endif"
460
ce2cded5 461ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE use_sysroot TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS NO_WERROR LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO CPP USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE YACC LEX LEXLIB LEX_OUTPUT_ROOT MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE HDEFINES HOSTING_CRT0 HOSTING_LIBS NATIVE_LIB_DIRS STRINGIFY EMUL EMULATION_OFILES EMUL_EXTRA_OFILES LIB_PATH EMULATION_LIBPATH TESTBFDLIB datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
42ecbf5e 462ac_subst_files='TDIRS'
252b5132
RH
463
464# Initialize some variables set by options.
42ecbf5e
DJ
465ac_init_help=
466ac_init_version=false
252b5132
RH
467# The variables have the same names as the options, with
468# dashes changed to underlines.
42ecbf5e 469cache_file=/dev/null
252b5132 470exec_prefix=NONE
252b5132 471no_create=
252b5132
RH
472no_recursion=
473prefix=NONE
474program_prefix=NONE
475program_suffix=NONE
476program_transform_name=s,x,x,
477silent=
478site=
479srcdir=
252b5132
RH
480verbose=
481x_includes=NONE
482x_libraries=NONE
42ecbf5e
DJ
483
484# Installation directory options.
485# These are left unexpanded so users can "make install exec_prefix=/foo"
486# and all the variables that are supposed to be based on exec_prefix
487# by default will actually change.
488# Use braces instead of parens because sh, perl, etc. also accept them.
252b5132
RH
489bindir='${exec_prefix}/bin'
490sbindir='${exec_prefix}/sbin'
491libexecdir='${exec_prefix}/libexec'
492datadir='${prefix}/share'
493sysconfdir='${prefix}/etc'
494sharedstatedir='${prefix}/com'
495localstatedir='${prefix}/var'
496libdir='${exec_prefix}/lib'
497includedir='${prefix}/include'
498oldincludedir='/usr/include'
499infodir='${prefix}/info'
500mandir='${prefix}/man'
501
252b5132
RH
502ac_prev=
503for ac_option
504do
252b5132
RH
505 # If the previous option needs an argument, assign it.
506 if test -n "$ac_prev"; then
507 eval "$ac_prev=\$ac_option"
508 ac_prev=
509 continue
510 fi
511
42ecbf5e 512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
513
514 # Accept the important Cygnus configure options, so we can diagnose typos.
515
42ecbf5e 516 case $ac_option in
252b5132
RH
517
518 -bindir | --bindir | --bindi | --bind | --bin | --bi)
519 ac_prev=bindir ;;
520 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
42ecbf5e 521 bindir=$ac_optarg ;;
252b5132
RH
522
523 -build | --build | --buil | --bui | --bu)
42ecbf5e 524 ac_prev=build_alias ;;
252b5132 525 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
42ecbf5e 526 build_alias=$ac_optarg ;;
252b5132
RH
527
528 -cache-file | --cache-file | --cache-fil | --cache-fi \
529 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530 ac_prev=cache_file ;;
531 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
42ecbf5e
DJ
533 cache_file=$ac_optarg ;;
534
535 --config-cache | -C)
536 cache_file=config.cache ;;
252b5132
RH
537
538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539 ac_prev=datadir ;;
540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541 | --da=*)
42ecbf5e 542 datadir=$ac_optarg ;;
252b5132
RH
543
544 -disable-* | --disable-*)
42ecbf5e 545 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 546 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
547 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549 { (exit 1); exit 1; }; }
550 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551 eval "enable_$ac_feature=no" ;;
252b5132
RH
552
553 -enable-* | --enable-*)
42ecbf5e 554 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 555 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 case $ac_option in
561 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
562 *) ac_optarg=yes ;;
563 esac
42ecbf5e 564 eval "enable_$ac_feature='$ac_optarg'" ;;
252b5132
RH
565
566 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568 | --exec | --exe | --ex)
569 ac_prev=exec_prefix ;;
570 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572 | --exec=* | --exe=* | --ex=*)
42ecbf5e 573 exec_prefix=$ac_optarg ;;
252b5132
RH
574
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
577 with_gas=yes ;;
578
42ecbf5e
DJ
579 -help | --help | --hel | --he | -h)
580 ac_init_help=long ;;
581 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582 ac_init_help=recursive ;;
583 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584 ac_init_help=short ;;
252b5132
RH
585
586 -host | --host | --hos | --ho)
42ecbf5e 587 ac_prev=host_alias ;;
252b5132 588 -host=* | --host=* | --hos=* | --ho=*)
42ecbf5e 589 host_alias=$ac_optarg ;;
252b5132
RH
590
591 -includedir | --includedir | --includedi | --included | --include \
592 | --includ | --inclu | --incl | --inc)
593 ac_prev=includedir ;;
594 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595 | --includ=* | --inclu=* | --incl=* | --inc=*)
42ecbf5e 596 includedir=$ac_optarg ;;
252b5132
RH
597
598 -infodir | --infodir | --infodi | --infod | --info | --inf)
599 ac_prev=infodir ;;
600 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
42ecbf5e 601 infodir=$ac_optarg ;;
252b5132
RH
602
603 -libdir | --libdir | --libdi | --libd)
604 ac_prev=libdir ;;
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
42ecbf5e 606 libdir=$ac_optarg ;;
252b5132
RH
607
608 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609 | --libexe | --libex | --libe)
610 ac_prev=libexecdir ;;
611 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612 | --libexe=* | --libex=* | --libe=*)
42ecbf5e 613 libexecdir=$ac_optarg ;;
252b5132
RH
614
615 -localstatedir | --localstatedir | --localstatedi | --localstated \
616 | --localstate | --localstat | --localsta | --localst \
617 | --locals | --local | --loca | --loc | --lo)
618 ac_prev=localstatedir ;;
619 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
42ecbf5e 622 localstatedir=$ac_optarg ;;
252b5132
RH
623
624 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625 ac_prev=mandir ;;
626 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
42ecbf5e 627 mandir=$ac_optarg ;;
252b5132
RH
628
629 -nfp | --nfp | --nf)
630 # Obsolete; use --without-fp.
631 with_fp=no ;;
632
633 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
42ecbf5e 634 | --no-cr | --no-c | -n)
252b5132
RH
635 no_create=yes ;;
636
637 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639 no_recursion=yes ;;
640
641 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643 | --oldin | --oldi | --old | --ol | --o)
644 ac_prev=oldincludedir ;;
645 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
42ecbf5e 648 oldincludedir=$ac_optarg ;;
252b5132
RH
649
650 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651 ac_prev=prefix ;;
652 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42ecbf5e 653 prefix=$ac_optarg ;;
252b5132
RH
654
655 -program-prefix | --program-prefix | --program-prefi | --program-pref \
656 | --program-pre | --program-pr | --program-p)
657 ac_prev=program_prefix ;;
658 -program-prefix=* | --program-prefix=* | --program-prefi=* \
659 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
42ecbf5e 660 program_prefix=$ac_optarg ;;
252b5132
RH
661
662 -program-suffix | --program-suffix | --program-suffi | --program-suff \
663 | --program-suf | --program-su | --program-s)
664 ac_prev=program_suffix ;;
665 -program-suffix=* | --program-suffix=* | --program-suffi=* \
666 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
42ecbf5e 667 program_suffix=$ac_optarg ;;
252b5132
RH
668
669 -program-transform-name | --program-transform-name \
670 | --program-transform-nam | --program-transform-na \
671 | --program-transform-n | --program-transform- \
672 | --program-transform | --program-transfor \
673 | --program-transfo | --program-transf \
674 | --program-trans | --program-tran \
675 | --progr-tra | --program-tr | --program-t)
676 ac_prev=program_transform_name ;;
677 -program-transform-name=* | --program-transform-name=* \
678 | --program-transform-nam=* | --program-transform-na=* \
679 | --program-transform-n=* | --program-transform-=* \
680 | --program-transform=* | --program-transfor=* \
681 | --program-transfo=* | --program-transf=* \
682 | --program-trans=* | --program-tran=* \
683 | --progr-tra=* | --program-tr=* | --program-t=*)
42ecbf5e 684 program_transform_name=$ac_optarg ;;
252b5132
RH
685
686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687 | -silent | --silent | --silen | --sile | --sil)
688 silent=yes ;;
689
690 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691 ac_prev=sbindir ;;
692 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693 | --sbi=* | --sb=*)
42ecbf5e 694 sbindir=$ac_optarg ;;
252b5132
RH
695
696 -sharedstatedir | --sharedstatedir | --sharedstatedi \
697 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698 | --sharedst | --shareds | --shared | --share | --shar \
699 | --sha | --sh)
700 ac_prev=sharedstatedir ;;
701 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704 | --sha=* | --sh=*)
42ecbf5e 705 sharedstatedir=$ac_optarg ;;
252b5132
RH
706
707 -site | --site | --sit)
708 ac_prev=site ;;
709 -site=* | --site=* | --sit=*)
42ecbf5e 710 site=$ac_optarg ;;
85fbca6a 711
252b5132
RH
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713 ac_prev=srcdir ;;
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42ecbf5e 715 srcdir=$ac_optarg ;;
252b5132
RH
716
717 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718 | --syscon | --sysco | --sysc | --sys | --sy)
719 ac_prev=sysconfdir ;;
720 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
42ecbf5e 722 sysconfdir=$ac_optarg ;;
252b5132
RH
723
724 -target | --target | --targe | --targ | --tar | --ta | --t)
42ecbf5e 725 ac_prev=target_alias ;;
252b5132 726 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
42ecbf5e 727 target_alias=$ac_optarg ;;
252b5132
RH
728
729 -v | -verbose | --verbose | --verbos | --verbo | --verb)
730 verbose=yes ;;
731
42ecbf5e
DJ
732 -version | --version | --versio | --versi | --vers | -V)
733 ac_init_version=: ;;
252b5132
RH
734
735 -with-* | --with-*)
42ecbf5e 736 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 737 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
738 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739 { echo "$as_me: error: invalid package name: $ac_package" >&2
740 { (exit 1); exit 1; }; }
252b5132 741 ac_package=`echo $ac_package| sed 's/-/_/g'`
42ecbf5e
DJ
742 case $ac_option in
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
744 *) ac_optarg=yes ;;
745 esac
42ecbf5e 746 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
747
748 -without-* | --without-*)
42ecbf5e 749 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 750 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
751 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752 { echo "$as_me: error: invalid package name: $ac_package" >&2
753 { (exit 1); exit 1; }; }
754 ac_package=`echo $ac_package | sed 's/-/_/g'`
755 eval "with_$ac_package=no" ;;
252b5132
RH
756
757 --x)
758 # Obsolete; use --with-x.
759 with_x=yes ;;
760
761 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762 | --x-incl | --x-inc | --x-in | --x-i)
763 ac_prev=x_includes ;;
764 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
42ecbf5e 766 x_includes=$ac_optarg ;;
252b5132
RH
767
768 -x-libraries | --x-libraries | --x-librarie | --x-librari \
769 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770 ac_prev=x_libraries ;;
771 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
42ecbf5e 773 x_libraries=$ac_optarg ;;
252b5132 774
42ecbf5e
DJ
775 -*) { echo "$as_me: error: unrecognized option: $ac_option
776Try \`$0 --help' for more information." >&2
777 { (exit 1); exit 1; }; }
252b5132
RH
778 ;;
779
42ecbf5e
DJ
780 *=*)
781 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785 { (exit 1); exit 1; }; }
786 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787 eval "$ac_envvar='$ac_optarg'"
788 export $ac_envvar ;;
789
252b5132 790 *)
42ecbf5e
DJ
791 # FIXME: should be removed in autoconf 3.0.
792 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
796 ;;
797
798 esac
799done
800
801if test -n "$ac_prev"; then
42ecbf5e
DJ
802 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803 { echo "$as_me: error: missing argument to $ac_option" >&2
804 { (exit 1); exit 1; }; }
252b5132 805fi
252b5132 806
42ecbf5e
DJ
807# Be sure to have absolute paths.
808for ac_var in exec_prefix prefix
809do
810 eval ac_val=$`echo $ac_var`
811 case $ac_val in
812 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814 { (exit 1); exit 1; }; };;
815 esac
816done
252b5132 817
42ecbf5e
DJ
818# Be sure to have absolute paths.
819for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820 localstatedir libdir includedir oldincludedir infodir mandir
252b5132 821do
42ecbf5e
DJ
822 eval ac_val=$`echo $ac_var`
823 case $ac_val in
824 [\\/$]* | ?:[\\/]* ) ;;
825 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826 { (exit 1); exit 1; }; };;
252b5132
RH
827 esac
828done
829
42ecbf5e
DJ
830# There might be people who depend on the old broken behavior: `$host'
831# used to hold the argument of --host etc.
832# FIXME: To remove some day.
833build=$build_alias
834host=$host_alias
835target=$target_alias
836
837# FIXME: To remove some day.
838if test "x$host_alias" != x; then
839 if test "x$build_alias" = x; then
840 cross_compiling=maybe
841 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842 If a cross compiler is detected then cross compile mode will be used." >&2
843 elif test "x$build_alias" != "x$host_alias"; then
844 cross_compiling=yes
845 fi
846fi
e5a52504 847
42ecbf5e
DJ
848ac_tool_prefix=
849test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
851test "$silent" = yes && exec 6>/dev/null
252b5132 852
252b5132
RH
853
854# Find the source files, if location was not specified.
855if test -z "$srcdir"; then
856 ac_srcdir_defaulted=yes
857 # Try the directory containing this script, then its parent.
42ecbf5e
DJ
858 ac_confdir=`(dirname "$0") 2>/dev/null ||
859$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860 X"$0" : 'X\(//\)[^/]' \| \
861 X"$0" : 'X\(//\)$' \| \
862 X"$0" : 'X\(/\)' \| \
863 . : '\(.\)' 2>/dev/null ||
864echo X"$0" |
865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867 /^X\(\/\/\)$/{ s//\1/; q; }
868 /^X\(\/\).*/{ s//\1/; q; }
869 s/.*/./; q'`
252b5132
RH
870 srcdir=$ac_confdir
871 if test ! -r $srcdir/$ac_unique_file; then
872 srcdir=..
873 fi
874else
875 ac_srcdir_defaulted=no
876fi
877if test ! -r $srcdir/$ac_unique_file; then
878 if test "$ac_srcdir_defaulted" = yes; then
42ecbf5e
DJ
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880 { (exit 1); exit 1; }; }
252b5132 881 else
42ecbf5e
DJ
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883 { (exit 1); exit 1; }; }
252b5132
RH
884 fi
885fi
42ecbf5e
DJ
886(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888 { (exit 1); exit 1; }; }
889srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890ac_env_build_alias_set=${build_alias+set}
891ac_env_build_alias_value=$build_alias
892ac_cv_env_build_alias_set=${build_alias+set}
893ac_cv_env_build_alias_value=$build_alias
894ac_env_host_alias_set=${host_alias+set}
895ac_env_host_alias_value=$host_alias
896ac_cv_env_host_alias_set=${host_alias+set}
897ac_cv_env_host_alias_value=$host_alias
898ac_env_target_alias_set=${target_alias+set}
899ac_env_target_alias_value=$target_alias
900ac_cv_env_target_alias_set=${target_alias+set}
901ac_cv_env_target_alias_value=$target_alias
902ac_env_CC_set=${CC+set}
903ac_env_CC_value=$CC
904ac_cv_env_CC_set=${CC+set}
905ac_cv_env_CC_value=$CC
906ac_env_CFLAGS_set=${CFLAGS+set}
907ac_env_CFLAGS_value=$CFLAGS
908ac_cv_env_CFLAGS_set=${CFLAGS+set}
909ac_cv_env_CFLAGS_value=$CFLAGS
910ac_env_LDFLAGS_set=${LDFLAGS+set}
911ac_env_LDFLAGS_value=$LDFLAGS
912ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
913ac_cv_env_LDFLAGS_value=$LDFLAGS
914ac_env_CPPFLAGS_set=${CPPFLAGS+set}
915ac_env_CPPFLAGS_value=$CPPFLAGS
916ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
917ac_cv_env_CPPFLAGS_value=$CPPFLAGS
918ac_env_CPP_set=${CPP+set}
919ac_env_CPP_value=$CPP
920ac_cv_env_CPP_set=${CPP+set}
921ac_cv_env_CPP_value=$CPP
252b5132 922
42ecbf5e
DJ
923#
924# Report the --help message.
925#
926if test "$ac_init_help" = "long"; then
927 # Omit some internal or obsolete options to make the list less imposing.
928 # This message is too long to be a string in the A/UX 3.1 sh.
929 cat <<_ACEOF
930\`configure' configures this package to adapt to many kinds of systems.
252b5132 931
42ecbf5e 932Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 933
42ecbf5e
DJ
934To assign environment variables (e.g., CC, CFLAGS...), specify them as
935VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 936
42ecbf5e 937Defaults for the options are specified in brackets.
ac48eca1 938
42ecbf5e
DJ
939Configuration:
940 -h, --help display this help and exit
941 --help=short display options specific to this package
942 --help=recursive display the short help of all the included packages
943 -V, --version display version information and exit
944 -q, --quiet, --silent do not print \`checking...' messages
945 --cache-file=FILE cache test results in FILE [disabled]
946 -C, --config-cache alias for \`--cache-file=config.cache'
947 -n, --no-create do not create output files
948 --srcdir=DIR find the sources in DIR [configure dir or \`..']
949
950_ACEOF
951
952 cat <<_ACEOF
953Installation directories:
954 --prefix=PREFIX install architecture-independent files in PREFIX
955 [$ac_default_prefix]
956 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
957 [PREFIX]
ac48eca1 958
42ecbf5e
DJ
959By default, \`make install' will install all the files in
960\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
961an installation prefix other than \`$ac_default_prefix' using \`--prefix',
962for instance \`--prefix=\$HOME'.
ac48eca1 963
42ecbf5e 964For better control, use the options below.
ac48eca1 965
42ecbf5e
DJ
966Fine tuning of the installation directories:
967 --bindir=DIR user executables [EPREFIX/bin]
968 --sbindir=DIR system admin executables [EPREFIX/sbin]
969 --libexecdir=DIR program executables [EPREFIX/libexec]
970 --datadir=DIR read-only architecture-independent data [PREFIX/share]
971 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
972 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
973 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
974 --libdir=DIR object code libraries [EPREFIX/lib]
975 --includedir=DIR C header files [PREFIX/include]
976 --oldincludedir=DIR C header files for non-gcc [/usr/include]
977 --infodir=DIR info documentation [PREFIX/info]
978 --mandir=DIR man documentation [PREFIX/man]
979_ACEOF
ac48eca1 980
42ecbf5e 981 cat <<\_ACEOF
252b5132 982
42ecbf5e
DJ
983Program names:
984 --program-prefix=PREFIX prepend PREFIX to installed program names
985 --program-suffix=SUFFIX append SUFFIX to installed program names
986 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 987
42ecbf5e
DJ
988System types:
989 --build=BUILD configure for building on BUILD [guessed]
990 --host=HOST cross-compile to build programs to run on HOST [BUILD]
991 --target=TARGET configure for building compilers for TARGET [HOST]
992_ACEOF
252b5132 993fi
252b5132 994
42ecbf5e 995if test -n "$ac_init_help"; then
252b5132 996
42ecbf5e 997 cat <<\_ACEOF
e5a52504 998
42ecbf5e
DJ
999Optional Features:
1000 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1001 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1002 --disable-dependency-tracking speeds up one-time build
1003 --enable-dependency-tracking do not reject slow dependency extractors
ce2cded5
L
1004 --enable-targets alternative target configurations
1005 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1006 --enable-werror treat compile warnings as errors
1007 --enable-build-warnings enable build-time compiler warnings
d7040cdb
SE
1008 --enable-shared[=PKGS]
1009 build shared libraries [default=yes]
1010 --enable-static[=PKGS]
1011 build static libraries [default=yes]
1012 --enable-fast-install[=PKGS]
1013 optimize for fast installation [default=yes]
42ecbf5e 1014 --disable-libtool-lock avoid locking (might break parallel builds)
42ecbf5e
DJ
1015 --disable-nls do not use Native Language Support
1016 --enable-maintainer-mode enable make rules and dependencies not useful
1017 (and sometimes confusing) to the casual installer
1018
1019Optional Packages:
1020 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1021 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
ce2cded5
L
1022 --with-lib-path=dir1:dir2... set default LIB_PATH
1023 --with-sysroot=DIR Search for usr/lib et al within DIR.
d7040cdb
SE
1024 --with-pic try to use only PIC/non-PIC objects [default=use
1025 both]
1026 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
42ecbf5e
DJ
1027
1028Some influential environment variables:
1029 CC C compiler command
1030 CFLAGS C compiler flags
1031 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1032 nonstandard directory <lib dir>
1033 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1034 headers in a nonstandard directory <include dir>
1035 CPP C preprocessor
1036
1037Use these variables to override the choices made by `configure' or to help
1038it to find libraries and programs with nonstandard names/locations.
1039
1040_ACEOF
1041fi
1042
1043if test "$ac_init_help" = "recursive"; then
1044 # If there are subdirs, report their specific --help.
1045 ac_popdir=`pwd`
1046 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1047 test -d $ac_dir || continue
1048 ac_builddir=.
1049
1050if test "$ac_dir" != .; then
1051 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1052 # A "../" for each directory in $ac_dir_suffix.
1053 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1054else
1055 ac_dir_suffix= ac_top_builddir=
1056fi
1057
1058case $srcdir in
1059 .) # No --srcdir option. We are building in place.
1060 ac_srcdir=.
1061 if test -z "$ac_top_builddir"; then
1062 ac_top_srcdir=.
1063 else
1064 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1065 fi ;;
1066 [\\/]* | ?:[\\/]* ) # Absolute path.
1067 ac_srcdir=$srcdir$ac_dir_suffix;
1068 ac_top_srcdir=$srcdir ;;
1069 *) # Relative path.
1070 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1071 ac_top_srcdir=$ac_top_builddir$srcdir ;;
252b5132
RH
1072esac
1073
42ecbf5e
DJ
1074# Do not use `cd foo && pwd` to compute absolute paths, because
1075# the directories may not exist.
1076case `pwd` in
1077.) ac_abs_builddir="$ac_dir";;
1078*)
1079 case "$ac_dir" in
1080 .) ac_abs_builddir=`pwd`;;
1081 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1082 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1083 esac;;
1084esac
1085case $ac_abs_builddir in
1086.) ac_abs_top_builddir=${ac_top_builddir}.;;
1087*)
1088 case ${ac_top_builddir}. in
1089 .) ac_abs_top_builddir=$ac_abs_builddir;;
1090 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1091 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1092 esac;;
1093esac
1094case $ac_abs_builddir in
1095.) ac_abs_srcdir=$ac_srcdir;;
1096*)
1097 case $ac_srcdir in
1098 .) ac_abs_srcdir=$ac_abs_builddir;;
1099 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1100 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1101 esac;;
1102esac
1103case $ac_abs_builddir in
1104.) ac_abs_top_srcdir=$ac_top_srcdir;;
1105*)
1106 case $ac_top_srcdir in
1107 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1108 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1109 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1110 esac;;
1111esac
a2d91340 1112
42ecbf5e
DJ
1113 cd $ac_dir
1114 # Check for guested configure; otherwise get Cygnus style configure.
1115 if test -f $ac_srcdir/configure.gnu; then
1116 echo
1117 $SHELL $ac_srcdir/configure.gnu --help=recursive
1118 elif test -f $ac_srcdir/configure; then
1119 echo
1120 $SHELL $ac_srcdir/configure --help=recursive
1121 elif test -f $ac_srcdir/configure.ac ||
1122 test -f $ac_srcdir/configure.in; then
1123 echo
1124 $ac_configure --help
1125 else
1126 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1127 fi
502bdb00 1128 cd $ac_popdir
42ecbf5e 1129 done
a2d91340
AC
1130fi
1131
42ecbf5e
DJ
1132test -n "$ac_init_help" && exit 0
1133if $ac_init_version; then
1134 cat <<\_ACEOF
a2d91340 1135
42ecbf5e
DJ
1136Copyright (C) 2003 Free Software Foundation, Inc.
1137This configure script is free software; the Free Software Foundation
1138gives unlimited permission to copy, distribute and modify it.
1139_ACEOF
1140 exit 0
1141fi
1142exec 5>config.log
1143cat >&5 <<_ACEOF
1144This file contains any messages produced by compilers while
1145running configure, to aid debugging if configure makes a mistake.
a2d91340 1146
42ecbf5e
DJ
1147It was created by $as_me, which was
1148generated by GNU Autoconf 2.59. Invocation command line was
a2d91340 1149
42ecbf5e 1150 $ $0 $@
a2d91340 1151
42ecbf5e
DJ
1152_ACEOF
1153{
1154cat <<_ASUNAME
1155## --------- ##
1156## Platform. ##
1157## --------- ##
1158
1159hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1160uname -m = `(uname -m) 2>/dev/null || echo unknown`
1161uname -r = `(uname -r) 2>/dev/null || echo unknown`
1162uname -s = `(uname -s) 2>/dev/null || echo unknown`
1163uname -v = `(uname -v) 2>/dev/null || echo unknown`
1164
1165/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1166/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1167
1168/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1169/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1170/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1171hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1172/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1173/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1174/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1175
1176_ASUNAME
1177
1178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1179for as_dir in $PATH
1180do
1181 IFS=$as_save_IFS
1182 test -z "$as_dir" && as_dir=.
1183 echo "PATH: $as_dir"
1184done
252b5132 1185
42ecbf5e 1186} >&5
5d64ca4e 1187
42ecbf5e 1188cat >&5 <<_ACEOF
5d64ca4e 1189
5d64ca4e 1190
42ecbf5e
DJ
1191## ----------- ##
1192## Core tests. ##
1193## ----------- ##
5d64ca4e 1194
42ecbf5e 1195_ACEOF
2469cfa2 1196
42ecbf5e
DJ
1197
1198# Keep a trace of the command line.
1199# Strip out --no-create and --no-recursion so they do not pile up.
1200# Strip out --silent because we don't want to record it for future runs.
1201# Also quote any args containing shell meta-characters.
1202# Make two passes to allow for proper duplicate-argument suppression.
1203ac_configure_args=
1204ac_configure_args0=
1205ac_configure_args1=
1206ac_sep=
1207ac_must_keep_next=false
1208for ac_pass in 1 2
1209do
1210 for ac_arg
1211 do
1212 case $ac_arg in
1213 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1214 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215 | -silent | --silent | --silen | --sile | --sil)
1216 continue ;;
1217 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1218 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1219 esac
1220 case $ac_pass in
1221 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1222 2)
1223 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1224 if test $ac_must_keep_next = true; then
1225 ac_must_keep_next=false # Got value, back to normal.
1226 else
1227 case $ac_arg in
1228 *=* | --config-cache | -C | -disable-* | --disable-* \
1229 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1230 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1231 | -with-* | --with-* | -without-* | --without-* | --x)
1232 case "$ac_configure_args0 " in
1233 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1234 esac
1235 ;;
1236 -* ) ac_must_keep_next=true ;;
1237 esac
1238 fi
1239 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1240 # Get rid of the leading space.
1241 ac_sep=" "
1242 ;;
1243 esac
1244 done
1245done
1246$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1247$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1248
1249# When interrupted or exit'd, cleanup temporary files, and complete
1250# config.log. We remove comments because anyway the quotes in there
1251# would cause problems or look ugly.
1252# WARNING: Be sure not to use single quotes in there, as some shells,
1253# such as our DU 5.0 friend, will then `close' the trap.
1254trap 'exit_status=$?
1255 # Save into config.log some information that might help in debugging.
1256 {
1257 echo
1258
1259 cat <<\_ASBOX
1260## ---------------- ##
1261## Cache variables. ##
1262## ---------------- ##
1263_ASBOX
1264 echo
1265 # The following way of writing the cache mishandles newlines in values,
1266{
1267 (set) 2>&1 |
1268 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1269 *ac_space=\ *)
1270 sed -n \
1271 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1272 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1273 ;;
1274 *)
1275 sed -n \
1276 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1277 ;;
1278 esac;
1279}
1280 echo
1281
1282 cat <<\_ASBOX
1283## ----------------- ##
1284## Output variables. ##
1285## ----------------- ##
1286_ASBOX
1287 echo
1288 for ac_var in $ac_subst_vars
1289 do
1290 eval ac_val=$`echo $ac_var`
1291 echo "$ac_var='"'"'$ac_val'"'"'"
1292 done | sort
1293 echo
1294
1295 if test -n "$ac_subst_files"; then
1296 cat <<\_ASBOX
1297## ------------- ##
1298## Output files. ##
1299## ------------- ##
1300_ASBOX
1301 echo
1302 for ac_var in $ac_subst_files
1303 do
1304 eval ac_val=$`echo $ac_var`
1305 echo "$ac_var='"'"'$ac_val'"'"'"
1306 done | sort
1307 echo
1308 fi
1309
1310 if test -s confdefs.h; then
1311 cat <<\_ASBOX
1312## ----------- ##
1313## confdefs.h. ##
1314## ----------- ##
1315_ASBOX
1316 echo
1317 sed "/^$/d" confdefs.h | sort
1318 echo
1319 fi
1320 test "$ac_signal" != 0 &&
1321 echo "$as_me: caught signal $ac_signal"
1322 echo "$as_me: exit $exit_status"
1323 } >&5
1324 rm -f core *.core &&
1325 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1326 exit $exit_status
1327 ' 0
1328for ac_signal in 1 2 13 15; do
1329 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1330done
1331ac_signal=0
1332
1333# confdefs.h avoids OS command line length limits that DEFS can exceed.
1334rm -rf conftest* confdefs.h
1335# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1336echo >confdefs.h
1337
1338# Predefined preprocessor variables.
1339
1340cat >>confdefs.h <<_ACEOF
1341#define PACKAGE_NAME "$PACKAGE_NAME"
1342_ACEOF
1343
1344
1345cat >>confdefs.h <<_ACEOF
1346#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1347_ACEOF
1348
1349
1350cat >>confdefs.h <<_ACEOF
1351#define PACKAGE_VERSION "$PACKAGE_VERSION"
1352_ACEOF
1353
1354
1355cat >>confdefs.h <<_ACEOF
1356#define PACKAGE_STRING "$PACKAGE_STRING"
1357_ACEOF
1358
1359
1360cat >>confdefs.h <<_ACEOF
1361#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1362_ACEOF
1363
1364
1365# Let the site file select an alternate cache file if it wants to.
1366# Prefer explicitly selected file to automatically selected ones.
1367if test -z "$CONFIG_SITE"; then
1368 if test "x$prefix" != xNONE; then
1369 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1370 else
1371 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1372 fi
1373fi
1374for ac_site_file in $CONFIG_SITE; do
1375 if test -r "$ac_site_file"; then
1376 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1377echo "$as_me: loading site script $ac_site_file" >&6;}
1378 sed 's/^/| /' "$ac_site_file" >&5
1379 . "$ac_site_file"
1380 fi
1381done
1382
1383if test -r "$cache_file"; then
1384 # Some versions of bash will fail to source /dev/null (special
1385 # files actually), so we avoid doing that.
1386 if test -f "$cache_file"; then
1387 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1388echo "$as_me: loading cache $cache_file" >&6;}
1389 case $cache_file in
1390 [\\/]* | ?:[\\/]* ) . $cache_file;;
1391 *) . ./$cache_file;;
1392 esac
1393 fi
1394else
1395 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1396echo "$as_me: creating cache $cache_file" >&6;}
1397 >$cache_file
1398fi
1399
1400# Check that the precious variables saved in the cache have kept the same
1401# value.
1402ac_cache_corrupted=false
1403for ac_var in `(set) 2>&1 |
1404 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1405 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1406 eval ac_new_set=\$ac_env_${ac_var}_set
1407 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1408 eval ac_new_val="\$ac_env_${ac_var}_value"
1409 case $ac_old_set,$ac_new_set in
1410 set,)
1411 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1412echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1413 ac_cache_corrupted=: ;;
1414 ,set)
1415 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1416echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1417 ac_cache_corrupted=: ;;
1418 ,);;
1419 *)
1420 if test "x$ac_old_val" != "x$ac_new_val"; then
6194aaab
L
1421 # differences in whitespace do not lead to failure.
1422 ac_old_val_w=`echo x $ac_old_val`
1423 ac_new_val_w=`echo x $ac_new_val`
1424 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1425 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
42ecbf5e 1426echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
6194aaab
L
1427 ac_cache_corrupted=:
1428 else
1429 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1430echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1431 eval $ac_var=\$ac_old_val
1432 fi
1433 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1434echo "$as_me: former value: \`$ac_old_val'" >&2;}
1435 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1436echo "$as_me: current value: \`$ac_new_val'" >&2;}
42ecbf5e
DJ
1437 fi;;
1438 esac
1439 # Pass precious variables to config.status.
1440 if test "$ac_new_set" = set; then
1441 case $ac_new_val in
1442 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1443 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1444 *) ac_arg=$ac_var=$ac_new_val ;;
1445 esac
1446 case " $ac_configure_args " in
1447 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1448 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1449 esac
1450 fi
1451done
1452if $ac_cache_corrupted; then
1453 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1454echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1455 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1456echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1457 { (exit 1); exit 1; }; }
1458fi
1459
1460ac_ext=c
1461ac_cpp='$CPP $CPPFLAGS'
1462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1464ac_compiler_gnu=$ac_cv_c_compiler_gnu
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485ac_aux_dir=
1486for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1487 if test -f $ac_dir/install-sh; then
1488 ac_aux_dir=$ac_dir
1489 ac_install_sh="$ac_aux_dir/install-sh -c"
1490 break
1491 elif test -f $ac_dir/install.sh; then
1492 ac_aux_dir=$ac_dir
1493 ac_install_sh="$ac_aux_dir/install.sh -c"
1494 break
1495 elif test -f $ac_dir/shtool; then
1496 ac_aux_dir=$ac_dir
1497 ac_install_sh="$ac_aux_dir/shtool install -c"
1498 break
1499 fi
1500done
1501if test -z "$ac_aux_dir"; then
1502 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1503echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1504 { (exit 1); exit 1; }; }
1505fi
1506ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1507ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1508ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1509
1510# Make sure we can run config.sub.
1511$ac_config_sub sun4 >/dev/null 2>&1 ||
1512 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1513echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1514 { (exit 1); exit 1; }; }
1515
1516echo "$as_me:$LINENO: checking build system type" >&5
1517echo $ECHO_N "checking build system type... $ECHO_C" >&6
1518if test "${ac_cv_build+set}" = set; then
1519 echo $ECHO_N "(cached) $ECHO_C" >&6
1520else
1521 ac_cv_build_alias=$build_alias
1522test -z "$ac_cv_build_alias" &&
1523 ac_cv_build_alias=`$ac_config_guess`
1524test -z "$ac_cv_build_alias" &&
1525 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1526echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1527 { (exit 1); exit 1; }; }
1528ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1529 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1530echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1531 { (exit 1); exit 1; }; }
1532
1533fi
1534echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1535echo "${ECHO_T}$ac_cv_build" >&6
1536build=$ac_cv_build
1537build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1538build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1539build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1540
1541
1542echo "$as_me:$LINENO: checking host system type" >&5
1543echo $ECHO_N "checking host system type... $ECHO_C" >&6
1544if test "${ac_cv_host+set}" = set; then
1545 echo $ECHO_N "(cached) $ECHO_C" >&6
1546else
1547 ac_cv_host_alias=$host_alias
1548test -z "$ac_cv_host_alias" &&
1549 ac_cv_host_alias=$ac_cv_build_alias
1550ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1551 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1552echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1553 { (exit 1); exit 1; }; }
1554
1555fi
1556echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1557echo "${ECHO_T}$ac_cv_host" >&6
1558host=$ac_cv_host
1559host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1560host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1561host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1562
1563
1564echo "$as_me:$LINENO: checking target system type" >&5
1565echo $ECHO_N "checking target system type... $ECHO_C" >&6
1566if test "${ac_cv_target+set}" = set; then
1567 echo $ECHO_N "(cached) $ECHO_C" >&6
1568else
1569 ac_cv_target_alias=$target_alias
1570test "x$ac_cv_target_alias" = "x" &&
1571 ac_cv_target_alias=$ac_cv_host_alias
1572ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1573 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1574echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1575 { (exit 1); exit 1; }; }
1576
1577fi
1578echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1579echo "${ECHO_T}$ac_cv_target" >&6
1580target=$ac_cv_target
1581target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1582target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1583target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1584
1585
1586# The aliases save the names the user supplied, while $host etc.
1587# will get canonicalized.
1588test -n "$target_alias" &&
1589 test "$program_prefix$program_suffix$program_transform_name" = \
1590 NONENONEs,x,x, &&
1591 program_prefix=${target_alias}-
1592ac_ext=c
1593ac_cpp='$CPP $CPPFLAGS'
1594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1596ac_compiler_gnu=$ac_cv_c_compiler_gnu
1597if test -n "$ac_tool_prefix"; then
1598 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1599set dummy ${ac_tool_prefix}gcc; ac_word=$2
1600echo "$as_me:$LINENO: checking for $ac_word" >&5
1601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1602if test "${ac_cv_prog_CC+set}" = set; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
1604else
1605 if test -n "$CC"; then
1606 ac_cv_prog_CC="$CC" # Let the user override the test.
1607else
1608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1609for as_dir in $PATH
1610do
1611 IFS=$as_save_IFS
1612 test -z "$as_dir" && as_dir=.
1613 for ac_exec_ext in '' $ac_executable_extensions; do
1614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1615 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1617 break 2
1618 fi
1619done
1620done
1621
1622fi
1623fi
1624CC=$ac_cv_prog_CC
1625if test -n "$CC"; then
1626 echo "$as_me:$LINENO: result: $CC" >&5
1627echo "${ECHO_T}$CC" >&6
1628else
1629 echo "$as_me:$LINENO: result: no" >&5
1630echo "${ECHO_T}no" >&6
1631fi
1632
1633fi
1634if test -z "$ac_cv_prog_CC"; then
1635 ac_ct_CC=$CC
1636 # Extract the first word of "gcc", so it can be a program name with args.
1637set dummy gcc; ac_word=$2
1638echo "$as_me:$LINENO: checking for $ac_word" >&5
1639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1640if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1641 echo $ECHO_N "(cached) $ECHO_C" >&6
1642else
1643 if test -n "$ac_ct_CC"; then
1644 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1645else
1646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647for as_dir in $PATH
1648do
1649 IFS=$as_save_IFS
1650 test -z "$as_dir" && as_dir=.
1651 for ac_exec_ext in '' $ac_executable_extensions; do
1652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1653 ac_cv_prog_ac_ct_CC="gcc"
1654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1655 break 2
1656 fi
1657done
1658done
1659
1660fi
1661fi
1662ac_ct_CC=$ac_cv_prog_ac_ct_CC
1663if test -n "$ac_ct_CC"; then
1664 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1665echo "${ECHO_T}$ac_ct_CC" >&6
1666else
1667 echo "$as_me:$LINENO: result: no" >&5
1668echo "${ECHO_T}no" >&6
1669fi
1670
1671 CC=$ac_ct_CC
1672else
1673 CC="$ac_cv_prog_CC"
1674fi
1675
1676if test -z "$CC"; then
1677 if test -n "$ac_tool_prefix"; then
1678 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1679set dummy ${ac_tool_prefix}cc; ac_word=$2
1680echo "$as_me:$LINENO: checking for $ac_word" >&5
1681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1682if test "${ac_cv_prog_CC+set}" = set; then
1683 echo $ECHO_N "(cached) $ECHO_C" >&6
1684else
1685 if test -n "$CC"; then
1686 ac_cv_prog_CC="$CC" # Let the user override the test.
1687else
1688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689for as_dir in $PATH
1690do
1691 IFS=$as_save_IFS
1692 test -z "$as_dir" && as_dir=.
1693 for ac_exec_ext in '' $ac_executable_extensions; do
1694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1695 ac_cv_prog_CC="${ac_tool_prefix}cc"
1696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1697 break 2
1698 fi
1699done
1700done
1701
1702fi
1703fi
1704CC=$ac_cv_prog_CC
1705if test -n "$CC"; then
1706 echo "$as_me:$LINENO: result: $CC" >&5
1707echo "${ECHO_T}$CC" >&6
1708else
1709 echo "$as_me:$LINENO: result: no" >&5
1710echo "${ECHO_T}no" >&6
1711fi
1712
1713fi
1714if test -z "$ac_cv_prog_CC"; then
1715 ac_ct_CC=$CC
1716 # Extract the first word of "cc", so it can be a program name with args.
1717set dummy cc; ac_word=$2
1718echo "$as_me:$LINENO: checking for $ac_word" >&5
1719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1720if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1721 echo $ECHO_N "(cached) $ECHO_C" >&6
1722else
1723 if test -n "$ac_ct_CC"; then
1724 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1725else
1726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1727for as_dir in $PATH
1728do
1729 IFS=$as_save_IFS
1730 test -z "$as_dir" && as_dir=.
1731 for ac_exec_ext in '' $ac_executable_extensions; do
1732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1733 ac_cv_prog_ac_ct_CC="cc"
1734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1735 break 2
1736 fi
1737done
1738done
1739
1740fi
1741fi
1742ac_ct_CC=$ac_cv_prog_ac_ct_CC
1743if test -n "$ac_ct_CC"; then
1744 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1745echo "${ECHO_T}$ac_ct_CC" >&6
1746else
1747 echo "$as_me:$LINENO: result: no" >&5
1748echo "${ECHO_T}no" >&6
1749fi
1750
1751 CC=$ac_ct_CC
1752else
1753 CC="$ac_cv_prog_CC"
1754fi
1755
1756fi
1757if test -z "$CC"; then
1758 # Extract the first word of "cc", so it can be a program name with args.
1759set dummy cc; ac_word=$2
1760echo "$as_me:$LINENO: checking for $ac_word" >&5
1761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1762if test "${ac_cv_prog_CC+set}" = set; then
1763 echo $ECHO_N "(cached) $ECHO_C" >&6
1764else
1765 if test -n "$CC"; then
1766 ac_cv_prog_CC="$CC" # Let the user override the test.
1767else
1768 ac_prog_rejected=no
1769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1770for as_dir in $PATH
1771do
1772 IFS=$as_save_IFS
1773 test -z "$as_dir" && as_dir=.
1774 for ac_exec_ext in '' $ac_executable_extensions; do
1775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1776 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1777 ac_prog_rejected=yes
1778 continue
1779 fi
1780 ac_cv_prog_CC="cc"
1781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1782 break 2
1783 fi
1784done
1785done
1786
1787if test $ac_prog_rejected = yes; then
1788 # We found a bogon in the path, so make sure we never use it.
1789 set dummy $ac_cv_prog_CC
1790 shift
1791 if test $# != 0; then
1792 # We chose a different compiler from the bogus one.
1793 # However, it has the same basename, so the bogon will be chosen
1794 # first if we set CC to just the basename; use the full file name.
1795 shift
1796 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1797 fi
1798fi
1799fi
1800fi
1801CC=$ac_cv_prog_CC
1802if test -n "$CC"; then
1803 echo "$as_me:$LINENO: result: $CC" >&5
1804echo "${ECHO_T}$CC" >&6
1805else
1806 echo "$as_me:$LINENO: result: no" >&5
1807echo "${ECHO_T}no" >&6
1808fi
1809
1810fi
1811if test -z "$CC"; then
1812 if test -n "$ac_tool_prefix"; then
1813 for ac_prog in cl
1814 do
1815 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1816set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1817echo "$as_me:$LINENO: checking for $ac_word" >&5
1818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1819if test "${ac_cv_prog_CC+set}" = set; then
1820 echo $ECHO_N "(cached) $ECHO_C" >&6
1821else
1822 if test -n "$CC"; then
1823 ac_cv_prog_CC="$CC" # Let the user override the test.
1824else
1825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1826for as_dir in $PATH
1827do
1828 IFS=$as_save_IFS
1829 test -z "$as_dir" && as_dir=.
1830 for ac_exec_ext in '' $ac_executable_extensions; do
1831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1832 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1834 break 2
1835 fi
1836done
1837done
1838
1839fi
1840fi
1841CC=$ac_cv_prog_CC
1842if test -n "$CC"; then
1843 echo "$as_me:$LINENO: result: $CC" >&5
1844echo "${ECHO_T}$CC" >&6
1845else
1846 echo "$as_me:$LINENO: result: no" >&5
1847echo "${ECHO_T}no" >&6
1848fi
1849
1850 test -n "$CC" && break
1851 done
1852fi
1853if test -z "$CC"; then
1854 ac_ct_CC=$CC
1855 for ac_prog in cl
1856do
1857 # Extract the first word of "$ac_prog", so it can be a program name with args.
1858set dummy $ac_prog; ac_word=$2
1859echo "$as_me:$LINENO: checking for $ac_word" >&5
1860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1861if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1862 echo $ECHO_N "(cached) $ECHO_C" >&6
1863else
1864 if test -n "$ac_ct_CC"; then
1865 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1866else
1867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868for as_dir in $PATH
1869do
1870 IFS=$as_save_IFS
1871 test -z "$as_dir" && as_dir=.
1872 for ac_exec_ext in '' $ac_executable_extensions; do
1873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1874 ac_cv_prog_ac_ct_CC="$ac_prog"
1875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1876 break 2
1877 fi
1878done
1879done
1880
1881fi
1882fi
1883ac_ct_CC=$ac_cv_prog_ac_ct_CC
1884if test -n "$ac_ct_CC"; then
1885 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1886echo "${ECHO_T}$ac_ct_CC" >&6
1887else
1888 echo "$as_me:$LINENO: result: no" >&5
1889echo "${ECHO_T}no" >&6
1890fi
1891
1892 test -n "$ac_ct_CC" && break
1893done
1894
1895 CC=$ac_ct_CC
1896fi
1897
1898fi
1899
1900
1901test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1902See \`config.log' for more details." >&5
1903echo "$as_me: error: no acceptable C compiler found in \$PATH
1904See \`config.log' for more details." >&2;}
1905 { (exit 1); exit 1; }; }
1906
1907# Provide some information about the compiler.
1908echo "$as_me:$LINENO:" \
1909 "checking for C compiler version" >&5
1910ac_compiler=`set X $ac_compile; echo $2`
1911{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1912 (eval $ac_compiler --version </dev/null >&5) 2>&5
1913 ac_status=$?
1914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1915 (exit $ac_status); }
1916{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1917 (eval $ac_compiler -v </dev/null >&5) 2>&5
1918 ac_status=$?
1919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1920 (exit $ac_status); }
1921{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1922 (eval $ac_compiler -V </dev/null >&5) 2>&5
1923 ac_status=$?
1924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925 (exit $ac_status); }
1926
1927cat >conftest.$ac_ext <<_ACEOF
1928/* confdefs.h. */
1929_ACEOF
1930cat confdefs.h >>conftest.$ac_ext
1931cat >>conftest.$ac_ext <<_ACEOF
1932/* end confdefs.h. */
1933
1934int
1935main ()
1936{
1937
1938 ;
1939 return 0;
1940}
1941_ACEOF
1942ac_clean_files_save=$ac_clean_files
1943ac_clean_files="$ac_clean_files a.out a.exe b.out"
1944# Try to create an executable without -o first, disregard a.out.
1945# It will help us diagnose broken compilers, and finding out an intuition
1946# of exeext.
1947echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1948echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1949ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1950if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1951 (eval $ac_link_default) 2>&5
1952 ac_status=$?
1953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1954 (exit $ac_status); }; then
1955 # Find the output, starting from the most likely. This scheme is
1956# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1957# resort.
1958
1959# Be careful to initialize this variable, since it used to be cached.
1960# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1961ac_cv_exeext=
1962# b.out is created by i960 compilers.
1963for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1964do
1965 test -f "$ac_file" || continue
1966 case $ac_file in
1967 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1968 ;;
1969 conftest.$ac_ext )
1970 # This is the source file.
1971 ;;
1972 [ab].out )
1973 # We found the default executable, but exeext='' is most
1974 # certainly right.
1975 break;;
1976 *.* )
1977 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1978 # FIXME: I believe we export ac_cv_exeext for Libtool,
1979 # but it would be cool to find out if it's true. Does anybody
1980 # maintain Libtool? --akim.
1981 export ac_cv_exeext
1982 break;;
1983 * )
1984 break;;
1985 esac
1986done
1987else
1988 echo "$as_me: failed program was:" >&5
1989sed 's/^/| /' conftest.$ac_ext >&5
1990
1991{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1992See \`config.log' for more details." >&5
1993echo "$as_me: error: C compiler cannot create executables
1994See \`config.log' for more details." >&2;}
1995 { (exit 77); exit 77; }; }
1996fi
1997
1998ac_exeext=$ac_cv_exeext
1999echo "$as_me:$LINENO: result: $ac_file" >&5
2000echo "${ECHO_T}$ac_file" >&6
2001
2002# Check the compiler produces executables we can run. If not, either
2003# the compiler is broken, or we cross compile.
2004echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2005echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2006# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2007# If not cross compiling, check that we can run a simple program.
2008if test "$cross_compiling" != yes; then
2009 if { ac_try='./$ac_file'
2010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2011 (eval $ac_try) 2>&5
2012 ac_status=$?
2013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014 (exit $ac_status); }; }; then
2015 cross_compiling=no
2016 else
2017 if test "$cross_compiling" = maybe; then
2018 cross_compiling=yes
2019 else
2020 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2021If you meant to cross compile, use \`--host'.
2022See \`config.log' for more details." >&5
2023echo "$as_me: error: cannot run C compiled programs.
2024If you meant to cross compile, use \`--host'.
2025See \`config.log' for more details." >&2;}
2026 { (exit 1); exit 1; }; }
2027 fi
2028 fi
2029fi
2030echo "$as_me:$LINENO: result: yes" >&5
2031echo "${ECHO_T}yes" >&6
2032
2033rm -f a.out a.exe conftest$ac_cv_exeext b.out
2034ac_clean_files=$ac_clean_files_save
2035# Check the compiler produces executables we can run. If not, either
2036# the compiler is broken, or we cross compile.
2037echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2038echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2039echo "$as_me:$LINENO: result: $cross_compiling" >&5
2040echo "${ECHO_T}$cross_compiling" >&6
2041
2042echo "$as_me:$LINENO: checking for suffix of executables" >&5
2043echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2045 (eval $ac_link) 2>&5
2046 ac_status=$?
2047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048 (exit $ac_status); }; then
2049 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2050# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2051# work properly (i.e., refer to `conftest.exe'), while it won't with
2052# `rm'.
2053for ac_file in conftest.exe conftest conftest.*; do
2054 test -f "$ac_file" || continue
2055 case $ac_file in
2056 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2057 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2058 export ac_cv_exeext
2059 break;;
2060 * ) break;;
2061 esac
2062done
2063else
2064 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2065See \`config.log' for more details." >&5
2066echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2067See \`config.log' for more details." >&2;}
2068 { (exit 1); exit 1; }; }
2069fi
2070
2071rm -f conftest$ac_cv_exeext
2072echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2073echo "${ECHO_T}$ac_cv_exeext" >&6
2074
2075rm -f conftest.$ac_ext
2076EXEEXT=$ac_cv_exeext
2077ac_exeext=$EXEEXT
2078echo "$as_me:$LINENO: checking for suffix of object files" >&5
2079echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2080if test "${ac_cv_objext+set}" = set; then
2081 echo $ECHO_N "(cached) $ECHO_C" >&6
2082else
2083 cat >conftest.$ac_ext <<_ACEOF
2084/* confdefs.h. */
2085_ACEOF
2086cat confdefs.h >>conftest.$ac_ext
2087cat >>conftest.$ac_ext <<_ACEOF
2088/* end confdefs.h. */
2089
2090int
2091main ()
2092{
2093
2094 ;
2095 return 0;
2096}
2097_ACEOF
2098rm -f conftest.o conftest.obj
2099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2100 (eval $ac_compile) 2>&5
2101 ac_status=$?
2102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103 (exit $ac_status); }; then
2104 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2105 case $ac_file in
2106 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2107 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2108 break;;
2109 esac
2110done
2111else
2112 echo "$as_me: failed program was:" >&5
2113sed 's/^/| /' conftest.$ac_ext >&5
2114
2115{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2116See \`config.log' for more details." >&5
2117echo "$as_me: error: cannot compute suffix of object files: cannot compile
2118See \`config.log' for more details." >&2;}
2119 { (exit 1); exit 1; }; }
2120fi
2121
2122rm -f conftest.$ac_cv_objext conftest.$ac_ext
2123fi
2124echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2125echo "${ECHO_T}$ac_cv_objext" >&6
2126OBJEXT=$ac_cv_objext
2127ac_objext=$OBJEXT
2128echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2129echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2130if test "${ac_cv_c_compiler_gnu+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2132else
2133 cat >conftest.$ac_ext <<_ACEOF
2134/* confdefs.h. */
2135_ACEOF
2136cat confdefs.h >>conftest.$ac_ext
2137cat >>conftest.$ac_ext <<_ACEOF
2138/* end confdefs.h. */
2139
2140int
2141main ()
2142{
2143#ifndef __GNUC__
2144 choke me
2145#endif
2146
2147 ;
2148 return 0;
2149}
2150_ACEOF
2151rm -f conftest.$ac_objext
2152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2153 (eval $ac_compile) 2>conftest.er1
2154 ac_status=$?
2155 grep -v '^ *+' conftest.er1 >conftest.err
2156 rm -f conftest.er1
2157 cat conftest.err >&5
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); } &&
502bdb00
JW
2160 { ac_try='test -z "$ac_c_werror_flag"
2161 || test ! -s conftest.err'
42ecbf5e
DJ
2162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2163 (eval $ac_try) 2>&5
2164 ac_status=$?
2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166 (exit $ac_status); }; } &&
2167 { ac_try='test -s conftest.$ac_objext'
2168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2169 (eval $ac_try) 2>&5
2170 ac_status=$?
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }; }; then
2173 ac_compiler_gnu=yes
2174else
2175 echo "$as_me: failed program was:" >&5
2176sed 's/^/| /' conftest.$ac_ext >&5
2177
2178ac_compiler_gnu=no
2179fi
2180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2181ac_cv_c_compiler_gnu=$ac_compiler_gnu
2182
2183fi
2184echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2185echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2186GCC=`test $ac_compiler_gnu = yes && echo yes`
2187ac_test_CFLAGS=${CFLAGS+set}
2188ac_save_CFLAGS=$CFLAGS
2189CFLAGS="-g"
2190echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2191echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2192if test "${ac_cv_prog_cc_g+set}" = set; then
2193 echo $ECHO_N "(cached) $ECHO_C" >&6
2194else
2195 cat >conftest.$ac_ext <<_ACEOF
2196/* confdefs.h. */
2197_ACEOF
2198cat confdefs.h >>conftest.$ac_ext
2199cat >>conftest.$ac_ext <<_ACEOF
2200/* end confdefs.h. */
2201
2202int
2203main ()
2204{
2205
2206 ;
2207 return 0;
2208}
2209_ACEOF
2210rm -f conftest.$ac_objext
2211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2212 (eval $ac_compile) 2>conftest.er1
2213 ac_status=$?
2214 grep -v '^ *+' conftest.er1 >conftest.err
2215 rm -f conftest.er1
2216 cat conftest.err >&5
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); } &&
502bdb00
JW
2219 { ac_try='test -z "$ac_c_werror_flag"
2220 || test ! -s conftest.err'
42ecbf5e
DJ
2221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2222 (eval $ac_try) 2>&5
2223 ac_status=$?
2224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225 (exit $ac_status); }; } &&
2226 { ac_try='test -s conftest.$ac_objext'
2227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2228 (eval $ac_try) 2>&5
2229 ac_status=$?
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); }; }; then
2232 ac_cv_prog_cc_g=yes
2233else
2234 echo "$as_me: failed program was:" >&5
2235sed 's/^/| /' conftest.$ac_ext >&5
2236
2237ac_cv_prog_cc_g=no
2238fi
2239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2240fi
2241echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2242echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2243if test "$ac_test_CFLAGS" = set; then
2244 CFLAGS=$ac_save_CFLAGS
2245elif test $ac_cv_prog_cc_g = yes; then
2246 if test "$GCC" = yes; then
2247 CFLAGS="-g -O2"
2248 else
2249 CFLAGS="-g"
2250 fi
2251else
2252 if test "$GCC" = yes; then
2253 CFLAGS="-O2"
2254 else
2255 CFLAGS=
2256 fi
2257fi
2258echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2259echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2260if test "${ac_cv_prog_cc_stdc+set}" = set; then
2261 echo $ECHO_N "(cached) $ECHO_C" >&6
2262else
2263 ac_cv_prog_cc_stdc=no
2264ac_save_CC=$CC
2265cat >conftest.$ac_ext <<_ACEOF
2266/* confdefs.h. */
2267_ACEOF
2268cat confdefs.h >>conftest.$ac_ext
2269cat >>conftest.$ac_ext <<_ACEOF
2270/* end confdefs.h. */
2271#include <stdarg.h>
2272#include <stdio.h>
2273#include <sys/types.h>
2274#include <sys/stat.h>
2275/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2276struct buf { int x; };
2277FILE * (*rcsopen) (struct buf *, struct stat *, int);
2278static char *e (p, i)
2279 char **p;
2280 int i;
2281{
2282 return p[i];
2283}
2284static char *f (char * (*g) (char **, int), char **p, ...)
2285{
2286 char *s;
2287 va_list v;
2288 va_start (v,p);
2289 s = g (p, va_arg (v,int));
2290 va_end (v);
2291 return s;
2292}
2293
2294/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2295 function prototypes and stuff, but not '\xHH' hex character constants.
2296 These don't provoke an error unfortunately, instead are silently treated
2297 as 'x'. The following induces an error, until -std1 is added to get
2298 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2299 array size at least. It's necessary to write '\x00'==0 to get something
2300 that's true only with -std1. */
2301int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2302
2303int test (int i, double x);
2304struct s1 {int (*f) (int a);};
2305struct s2 {int (*f) (double a);};
2306int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2307int argc;
2308char **argv;
2309int
2310main ()
2311{
2312return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2313 ;
2314 return 0;
2315}
2316_ACEOF
2317# Don't try gcc -ansi; that turns off useful extensions and
2318# breaks some systems' header files.
2319# AIX -qlanglvl=ansi
2320# Ultrix and OSF/1 -std1
2321# HP-UX 10.20 and later -Ae
2322# HP-UX older versions -Aa -D_HPUX_SOURCE
2323# SVR4 -Xc -D__EXTENSIONS__
2324for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2325do
2326 CC="$ac_save_CC $ac_arg"
2327 rm -f conftest.$ac_objext
2328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2329 (eval $ac_compile) 2>conftest.er1
2330 ac_status=$?
2331 grep -v '^ *+' conftest.er1 >conftest.err
2332 rm -f conftest.er1
2333 cat conftest.err >&5
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); } &&
502bdb00
JW
2336 { ac_try='test -z "$ac_c_werror_flag"
2337 || test ! -s conftest.err'
42ecbf5e
DJ
2338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2339 (eval $ac_try) 2>&5
2340 ac_status=$?
2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); }; } &&
2343 { ac_try='test -s conftest.$ac_objext'
2344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2345 (eval $ac_try) 2>&5
2346 ac_status=$?
2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); }; }; then
2349 ac_cv_prog_cc_stdc=$ac_arg
2350break
2351else
2352 echo "$as_me: failed program was:" >&5
2353sed 's/^/| /' conftest.$ac_ext >&5
2354
2355fi
2356rm -f conftest.err conftest.$ac_objext
2357done
2358rm -f conftest.$ac_ext conftest.$ac_objext
2359CC=$ac_save_CC
2360
2361fi
2362
2363case "x$ac_cv_prog_cc_stdc" in
2364 x|xno)
2365 echo "$as_me:$LINENO: result: none needed" >&5
2366echo "${ECHO_T}none needed" >&6 ;;
2367 *)
2368 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2369echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2370 CC="$CC $ac_cv_prog_cc_stdc" ;;
2371esac
2372
2373# Some people use a C++ compiler to compile C. Since we use `exit',
2374# in C++ we need to declare it. In case someone uses the same compiler
2375# for both compiling C and C++ we need to have the C++ compiler decide
2376# the declaration of exit, since it's the most demanding environment.
2377cat >conftest.$ac_ext <<_ACEOF
2378#ifndef __cplusplus
2379 choke me
2380#endif
2381_ACEOF
2382rm -f conftest.$ac_objext
2383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2384 (eval $ac_compile) 2>conftest.er1
2385 ac_status=$?
2386 grep -v '^ *+' conftest.er1 >conftest.err
2387 rm -f conftest.er1
2388 cat conftest.err >&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); } &&
502bdb00
JW
2391 { ac_try='test -z "$ac_c_werror_flag"
2392 || test ! -s conftest.err'
42ecbf5e
DJ
2393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394 (eval $ac_try) 2>&5
2395 ac_status=$?
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; } &&
2398 { ac_try='test -s conftest.$ac_objext'
2399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400 (eval $ac_try) 2>&5
2401 ac_status=$?
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }; }; then
2404 for ac_declaration in \
2405 '' \
2406 'extern "C" void std::exit (int) throw (); using std::exit;' \
2407 'extern "C" void std::exit (int); using std::exit;' \
2408 'extern "C" void exit (int) throw ();' \
2409 'extern "C" void exit (int);' \
2410 'void exit (int);'
2411do
2412 cat >conftest.$ac_ext <<_ACEOF
2413/* confdefs.h. */
2414_ACEOF
2415cat confdefs.h >>conftest.$ac_ext
2416cat >>conftest.$ac_ext <<_ACEOF
2417/* end confdefs.h. */
2418$ac_declaration
2419#include <stdlib.h>
2420int
2421main ()
2422{
2423exit (42);
2424 ;
2425 return 0;
2426}
2427_ACEOF
2428rm -f conftest.$ac_objext
2429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2430 (eval $ac_compile) 2>conftest.er1
2431 ac_status=$?
2432 grep -v '^ *+' conftest.er1 >conftest.err
2433 rm -f conftest.er1
2434 cat conftest.err >&5
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); } &&
502bdb00
JW
2437 { ac_try='test -z "$ac_c_werror_flag"
2438 || test ! -s conftest.err'
42ecbf5e
DJ
2439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2440 (eval $ac_try) 2>&5
2441 ac_status=$?
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); }; } &&
2444 { ac_try='test -s conftest.$ac_objext'
2445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446 (eval $ac_try) 2>&5
2447 ac_status=$?
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }; }; then
2450 :
2451else
2452 echo "$as_me: failed program was:" >&5
2453sed 's/^/| /' conftest.$ac_ext >&5
2454
2455continue
2456fi
2457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2458 cat >conftest.$ac_ext <<_ACEOF
2459/* confdefs.h. */
2460_ACEOF
2461cat confdefs.h >>conftest.$ac_ext
2462cat >>conftest.$ac_ext <<_ACEOF
2463/* end confdefs.h. */
2464$ac_declaration
2465int
2466main ()
2467{
2468exit (42);
2469 ;
2470 return 0;
2471}
2472_ACEOF
2473rm -f conftest.$ac_objext
2474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2475 (eval $ac_compile) 2>conftest.er1
2476 ac_status=$?
2477 grep -v '^ *+' conftest.er1 >conftest.err
2478 rm -f conftest.er1
2479 cat conftest.err >&5
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); } &&
502bdb00
JW
2482 { ac_try='test -z "$ac_c_werror_flag"
2483 || test ! -s conftest.err'
42ecbf5e
DJ
2484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485 (eval $ac_try) 2>&5
2486 ac_status=$?
2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); }; } &&
2489 { ac_try='test -s conftest.$ac_objext'
2490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2491 (eval $ac_try) 2>&5
2492 ac_status=$?
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }; }; then
2495 break
2496else
2497 echo "$as_me: failed program was:" >&5
2498sed 's/^/| /' conftest.$ac_ext >&5
2499
2500fi
2501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2502done
2503rm -f conftest*
2504if test -n "$ac_declaration"; then
2505 echo '#ifdef __cplusplus' >>confdefs.h
2506 echo $ac_declaration >>confdefs.h
2507 echo '#endif' >>confdefs.h
2508fi
2509
2510else
2511 echo "$as_me: failed program was:" >&5
2512sed 's/^/| /' conftest.$ac_ext >&5
2513
2514fi
2515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2516ac_ext=c
2517ac_cpp='$CPP $CPPFLAGS'
2518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2520ac_compiler_gnu=$ac_cv_c_compiler_gnu
2521
2522
2523echo "$as_me:$LINENO: checking for library containing strerror" >&5
2524echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2525if test "${ac_cv_search_strerror+set}" = set; then
2526 echo $ECHO_N "(cached) $ECHO_C" >&6
2527else
2528 ac_func_search_save_LIBS=$LIBS
2529ac_cv_search_strerror=no
2530cat >conftest.$ac_ext <<_ACEOF
2531/* confdefs.h. */
2532_ACEOF
2533cat confdefs.h >>conftest.$ac_ext
2534cat >>conftest.$ac_ext <<_ACEOF
2535/* end confdefs.h. */
2536
2537/* Override any gcc2 internal prototype to avoid an error. */
2538#ifdef __cplusplus
2539extern "C"
2540#endif
2541/* We use char because int might match the return type of a gcc2
2542 builtin and then its argument prototype would still apply. */
2543char strerror ();
2544int
2545main ()
2546{
2547strerror ();
2548 ;
2549 return 0;
2550}
2551_ACEOF
2552rm -f conftest.$ac_objext conftest$ac_exeext
2553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2554 (eval $ac_link) 2>conftest.er1
2555 ac_status=$?
2556 grep -v '^ *+' conftest.er1 >conftest.err
2557 rm -f conftest.er1
2558 cat conftest.err >&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); } &&
502bdb00
JW
2561 { ac_try='test -z "$ac_c_werror_flag"
2562 || test ! -s conftest.err'
42ecbf5e
DJ
2563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564 (eval $ac_try) 2>&5
2565 ac_status=$?
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }; } &&
2568 { ac_try='test -s conftest$ac_exeext'
2569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2570 (eval $ac_try) 2>&5
2571 ac_status=$?
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); }; }; then
2574 ac_cv_search_strerror="none required"
2575else
2576 echo "$as_me: failed program was:" >&5
2577sed 's/^/| /' conftest.$ac_ext >&5
2578
2579fi
2580rm -f conftest.err conftest.$ac_objext \
2581 conftest$ac_exeext conftest.$ac_ext
2582if test "$ac_cv_search_strerror" = no; then
2583 for ac_lib in cposix; do
2584 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2585 cat >conftest.$ac_ext <<_ACEOF
2586/* confdefs.h. */
2587_ACEOF
2588cat confdefs.h >>conftest.$ac_ext
2589cat >>conftest.$ac_ext <<_ACEOF
2590/* end confdefs.h. */
2591
2592/* Override any gcc2 internal prototype to avoid an error. */
2593#ifdef __cplusplus
2594extern "C"
2595#endif
2596/* We use char because int might match the return type of a gcc2
2597 builtin and then its argument prototype would still apply. */
2598char strerror ();
2599int
2600main ()
2601{
2602strerror ();
2603 ;
2604 return 0;
2605}
2606_ACEOF
2607rm -f conftest.$ac_objext conftest$ac_exeext
2608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2609 (eval $ac_link) 2>conftest.er1
2610 ac_status=$?
2611 grep -v '^ *+' conftest.er1 >conftest.err
2612 rm -f conftest.er1
2613 cat conftest.err >&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); } &&
502bdb00
JW
2616 { ac_try='test -z "$ac_c_werror_flag"
2617 || test ! -s conftest.err'
42ecbf5e
DJ
2618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619 (eval $ac_try) 2>&5
2620 ac_status=$?
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; } &&
2623 { ac_try='test -s conftest$ac_exeext'
2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625 (eval $ac_try) 2>&5
2626 ac_status=$?
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; }; then
2629 ac_cv_search_strerror="-l$ac_lib"
2630break
2631else
2632 echo "$as_me: failed program was:" >&5
2633sed 's/^/| /' conftest.$ac_ext >&5
2634
2635fi
2636rm -f conftest.err conftest.$ac_objext \
2637 conftest$ac_exeext conftest.$ac_ext
2638 done
2639fi
2640LIBS=$ac_func_search_save_LIBS
2641fi
2642echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2643echo "${ECHO_T}$ac_cv_search_strerror" >&6
2644if test "$ac_cv_search_strerror" != no; then
2645 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2646
2647fi
e5a52504
MM
2648
2649
2650BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
42ecbf5e 2651am__api_version="1.9"
e5a52504
MM
2652# Find a good install program. We prefer a C program (faster),
2653# so one script is as good as another. But avoid the broken or
2654# incompatible versions:
2655# SysV /etc/install, /usr/sbin/install
2656# SunOS /usr/etc/install
2657# IRIX /sbin/install
2658# AIX /bin/install
42ecbf5e 2659# AmigaOS /C/install, which installs bootblocks on floppy discs
e5a52504
MM
2660# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2661# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2662# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
42ecbf5e 2663# OS/2's system install, which has a completely different semantic
e5a52504 2664# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2665# Reject install programs that cannot install multiple files.
42ecbf5e
DJ
2666echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2667echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
e5a52504 2668if test -z "$INSTALL"; then
42ecbf5e
DJ
2669if test "${ac_cv_path_install+set}" = set; then
2670 echo $ECHO_N "(cached) $ECHO_C" >&6
e5a52504 2671else
42ecbf5e
DJ
2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673for as_dir in $PATH
2674do
2675 IFS=$as_save_IFS
2676 test -z "$as_dir" && as_dir=.
2677 # Account for people who put trailing slashes in PATH elements.
2678case $as_dir/ in
2679 ./ | .// | /cC/* | \
2680 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2681 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2682 /usr/ucb/* ) ;;
2683 *)
2684 # OSF1 and SCO ODT 3.0 have their own names for install.
2685 # Don't use installbsd from OSF since it installs stuff as root
2686 # by default.
2687 for ac_prog in ginstall scoinst install; do
2688 for ac_exec_ext in '' $ac_executable_extensions; do
2689 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 2690 if test $ac_prog = install &&
42ecbf5e 2691 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2692 # AIX install. It has an incompatible calling convention.
2693 :
42ecbf5e
DJ
2694 elif test $ac_prog = install &&
2695 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2696 # program-specific install script used by HP pwplus--don't use.
2697 :
252b5132 2698 else
58c85be7
RW
2699 rm -rf conftest.one conftest.two conftest.dir
2700 echo one > conftest.one
2701 echo two > conftest.two
2702 mkdir conftest.dir
2703 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2704 test -s conftest.one && test -s conftest.two &&
2705 test -s conftest.dir/conftest.one &&
2706 test -s conftest.dir/conftest.two
2707 then
2708 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2709 break 3
2710 fi
252b5132
RH
2711 fi
2712 fi
2713 done
42ecbf5e
DJ
2714 done
2715 ;;
2716esac
2717done
2718
58c85be7 2719rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
2720
2721fi
2722 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 2723 INSTALL=$ac_cv_path_install
252b5132 2724 else
58c85be7
RW
2725 # As a last resort, use the slow shell script. Don't cache a
2726 # value for INSTALL within a source directory, because that will
252b5132 2727 # break other packages using the cache if that directory is
58c85be7 2728 # removed, or if the value is a relative name.
42ecbf5e 2729 INSTALL=$ac_install_sh
252b5132
RH
2730 fi
2731fi
42ecbf5e
DJ
2732echo "$as_me:$LINENO: result: $INSTALL" >&5
2733echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2734
2735# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2736# It thinks the first close brace ends the variable substitution.
2737test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2738
42ecbf5e 2739test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2740
2741test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2742
42ecbf5e
DJ
2743echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2744echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2745# Just in case
2746sleep 1
42ecbf5e 2747echo timestamp > conftest.file
252b5132
RH
2748# Do `set' in a subshell so we don't clobber the current shell's
2749# arguments. Must try -L first in case configure is actually a
2750# symlink; some systems play weird games with the mod time of symlinks
2751# (eg FreeBSD returns the mod time of the symlink's containing
2752# directory).
2753if (
42ecbf5e 2754 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2755 if test "$*" = "X"; then
2756 # -L didn't work.
42ecbf5e 2757 set X `ls -t $srcdir/configure conftest.file`
252b5132 2758 fi
42ecbf5e
DJ
2759 rm -f conftest.file
2760 if test "$*" != "X $srcdir/configure conftest.file" \
2761 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2762
2763 # If neither matched, then we have a broken ls. This can happen
2764 # if, for instance, CONFIG_SHELL is bash and it inherits a
2765 # broken ls alias from the environment. This has actually
2766 # happened. Such a system could not be considered "sane".
42ecbf5e
DJ
2767 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2768alias in your environment" >&5
2769echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2770alias in your environment" >&2;}
2771 { (exit 1); exit 1; }; }
252b5132
RH
2772 fi
2773
42ecbf5e 2774 test "$2" = conftest.file
252b5132
RH
2775 )
2776then
2777 # Ok.
2778 :
2779else
42ecbf5e
DJ
2780 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2781Check your system clock" >&5
2782echo "$as_me: error: newly created file is older than distributed files!
2783Check your system clock" >&2;}
2784 { (exit 1); exit 1; }; }
252b5132 2785fi
42ecbf5e
DJ
2786echo "$as_me:$LINENO: result: yes" >&5
2787echo "${ECHO_T}yes" >&6
252b5132 2788test "$program_prefix" != NONE &&
42ecbf5e 2789 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2790# Use a double $ so make ignores it.
2791test "$program_suffix" != NONE &&
42ecbf5e
DJ
2792 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2793# Double any \ or $. echo might interpret backslashes.
2794# By default was `s,x,x', remove it if useless.
2795cat <<\_ACEOF >conftest.sed
2796s/[\\$]/&&/g;s/;s,x,x,$//
2797_ACEOF
2798program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2799rm conftest.sed
2800
2801# expand $ac_aux_dir to an absolute path
2802am_aux_dir=`cd $ac_aux_dir && pwd`
2803
2804test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2805# Use eval to expand $SHELL
2806if eval "$MISSING --run true"; then
2807 am_missing_run="$MISSING --run "
2808else
2809 am_missing_run=
2810 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2811echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2812fi
2813
2814if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2815 # We used to keeping the `.' as first argument, in order to
2816 # allow $(mkdir_p) to be used without argument. As in
2817 # $(mkdir_p) $(somedir)
2818 # where $(somedir) is conditionally defined. However this is wrong
2819 # for two reasons:
2820 # 1. if the package is installed by a user who cannot write `.'
2821 # make install will fail,
2822 # 2. the above comment should most certainly read
2823 # $(mkdir_p) $(DESTDIR)$(somedir)
2824 # so it does not work when $(somedir) is undefined and
2825 # $(DESTDIR) is not.
2826 # To support the latter case, we have to write
2827 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2828 # so the `.' trick is pointless.
2829 mkdir_p='mkdir -p --'
2830else
2831 # On NextStep and OpenStep, the `mkdir' command does not
2832 # recognize any option. It will interpret all options as
2833 # directories to create, and then abort because `.' already
2834 # exists.
2835 for d in ./-p ./--version;
2836 do
2837 test -d $d && rmdir $d
2838 done
2839 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2840 if test -f "$ac_aux_dir/mkinstalldirs"; then
2841 mkdir_p='$(mkinstalldirs)'
2842 else
2843 mkdir_p='$(install_sh) -d'
2844 fi
2845fi
2846
2847for ac_prog in gawk mawk nawk awk
2848do
2849 # Extract the first word of "$ac_prog", so it can be a program name with args.
2850set dummy $ac_prog; ac_word=$2
2851echo "$as_me:$LINENO: checking for $ac_word" >&5
2852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2853if test "${ac_cv_prog_AWK+set}" = set; then
2854 echo $ECHO_N "(cached) $ECHO_C" >&6
2855else
2856 if test -n "$AWK"; then
2857 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2858else
2859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860for as_dir in $PATH
2861do
2862 IFS=$as_save_IFS
2863 test -z "$as_dir" && as_dir=.
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2866 ac_cv_prog_AWK="$ac_prog"
2867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2868 break 2
2869 fi
2870done
2871done
2872
2873fi
2874fi
2875AWK=$ac_cv_prog_AWK
2876if test -n "$AWK"; then
2877 echo "$as_me:$LINENO: result: $AWK" >&5
2878echo "${ECHO_T}$AWK" >&6
2879else
2880 echo "$as_me:$LINENO: result: no" >&5
2881echo "${ECHO_T}no" >&6
2882fi
252b5132 2883
42ecbf5e
DJ
2884 test -n "$AWK" && break
2885done
252b5132 2886
42ecbf5e
DJ
2887echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2888echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2889set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2890if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2891 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2892else
42ecbf5e 2893 cat >conftest.make <<\_ACEOF
252b5132 2894all:
42ecbf5e
DJ
2895 @echo 'ac_maketemp="$(MAKE)"'
2896_ACEOF
252b5132 2897# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
42ecbf5e 2898eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
2899if test -n "$ac_maketemp"; then
2900 eval ac_cv_prog_make_${ac_make}_set=yes
2901else
2902 eval ac_cv_prog_make_${ac_make}_set=no
2903fi
42ecbf5e 2904rm -f conftest.make
252b5132
RH
2905fi
2906if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
42ecbf5e
DJ
2907 echo "$as_me:$LINENO: result: yes" >&5
2908echo "${ECHO_T}yes" >&6
252b5132
RH
2909 SET_MAKE=
2910else
42ecbf5e
DJ
2911 echo "$as_me:$LINENO: result: no" >&5
2912echo "${ECHO_T}no" >&6
252b5132
RH
2913 SET_MAKE="MAKE=${MAKE-make}"
2914fi
2915
42ecbf5e
DJ
2916rm -rf .tst 2>/dev/null
2917mkdir .tst 2>/dev/null
2918if test -d .tst; then
2919 am__leading_dot=.
2920else
2921 am__leading_dot=_
2922fi
2923rmdir .tst 2>/dev/null
2924
2925DEPDIR="${am__leading_dot}deps"
2926
2927 ac_config_commands="$ac_config_commands depfiles"
2928
2929
2930am_make=${MAKE-make}
2931cat > confinc << 'END'
2932am__doit:
2933 @echo done
2934.PHONY: am__doit
2935END
2936# If we don't find an include directive, just comment out the code.
2937echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2938echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2939am__include="#"
2940am__quote=
2941_am_result=none
2942# First try GNU make style include.
2943echo "include confinc" > confmf
2944# We grep out `Entering directory' and `Leaving directory'
2945# messages which can occur if `w' ends up in MAKEFLAGS.
2946# In particular we don't look at `^make:' because GNU make might
2947# be invoked under some other name (usually "gmake"), in which
2948# case it prints its new name instead of `make'.
2949if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2950 am__include=include
2951 am__quote=
2952 _am_result=GNU
2953fi
2954# Now try BSD make style include.
2955if test "$am__include" = "#"; then
2956 echo '.include "confinc"' > confmf
2957 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2958 am__include=.include
2959 am__quote="\""
2960 _am_result=BSD
2961 fi
2962fi
2963
2964
2965echo "$as_me:$LINENO: result: $_am_result" >&5
2966echo "${ECHO_T}$_am_result" >&6
2967rm -f confinc confmf
2968
2969# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2970if test "${enable_dependency_tracking+set}" = set; then
2971 enableval="$enable_dependency_tracking"
2972
2973fi;
2974if test "x$enable_dependency_tracking" != xno; then
2975 am_depcomp="$ac_aux_dir/depcomp"
2976 AMDEPBACKSLASH='\'
2977fi
2978
2979
2980if test "x$enable_dependency_tracking" != xno; then
2981 AMDEP_TRUE=
2982 AMDEP_FALSE='#'
2983else
2984 AMDEP_TRUE='#'
2985 AMDEP_FALSE=
2986fi
2987
e5a52504
MM
2988
2989
42ecbf5e
DJ
2990# test to see if srcdir already configured
2991if test "`cd $srcdir && pwd`" != "`pwd`" &&
2992 test -f $srcdir/config.status; then
2993 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2994echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2995 { (exit 1); exit 1; }; }
2996fi
252b5132 2997
42ecbf5e
DJ
2998# test whether we have cygpath
2999if test -z "$CYGPATH_W"; then
3000 if (cygpath --version) >/dev/null 2>/dev/null; then
3001 CYGPATH_W='cygpath -w'
3002 else
3003 CYGPATH_W=echo
3004 fi
252b5132 3005fi
42ecbf5e
DJ
3006
3007
3008# Define the identity of the package.
3009 PACKAGE=ld
3010 VERSION=${BFD_VERSION}
3011
3012
3013cat >>confdefs.h <<_ACEOF
e5a52504 3014#define PACKAGE "$PACKAGE"
42ecbf5e
DJ
3015_ACEOF
3016
252b5132 3017
42ecbf5e 3018cat >>confdefs.h <<_ACEOF
e5a52504 3019#define VERSION "$VERSION"
42ecbf5e
DJ
3020_ACEOF
3021
3022# Some tools Automake needs.
3023
3024ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3025
3026
3027AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3028
3029
3030AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3031
3032
3033AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3034
e5a52504 3035
42ecbf5e 3036MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
e5a52504 3037
42ecbf5e 3038install_sh=${install_sh-"$am_aux_dir/install-sh"}
e5a52504 3039
42ecbf5e
DJ
3040# Installed binaries are usually stripped using `strip' when the user
3041# run `make install-strip'. However `strip' might not be the right
3042# tool to use in cross-compilation environments, therefore Automake
3043# will honor the `STRIP' environment variable to overrule this program.
3044if test "$cross_compiling" != no; then
3045 if test -n "$ac_tool_prefix"; then
3046 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3047set dummy ${ac_tool_prefix}strip; ac_word=$2
3048echo "$as_me:$LINENO: checking for $ac_word" >&5
3049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3050if test "${ac_cv_prog_STRIP+set}" = set; then
3051 echo $ECHO_N "(cached) $ECHO_C" >&6
3052else
3053 if test -n "$STRIP"; then
3054 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3055else
3056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057for as_dir in $PATH
3058do
3059 IFS=$as_save_IFS
3060 test -z "$as_dir" && as_dir=.
3061 for ac_exec_ext in '' $ac_executable_extensions; do
3062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3063 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3065 break 2
3066 fi
3067done
3068done
3069
3070fi
3071fi
3072STRIP=$ac_cv_prog_STRIP
3073if test -n "$STRIP"; then
3074 echo "$as_me:$LINENO: result: $STRIP" >&5
3075echo "${ECHO_T}$STRIP" >&6
2469cfa2 3076else
42ecbf5e
DJ
3077 echo "$as_me:$LINENO: result: no" >&5
3078echo "${ECHO_T}no" >&6
3079fi
3080
e5a52504 3081fi
42ecbf5e
DJ
3082if test -z "$ac_cv_prog_STRIP"; then
3083 ac_ct_STRIP=$STRIP
3084 # Extract the first word of "strip", so it can be a program name with args.
3085set dummy strip; ac_word=$2
3086echo "$as_me:$LINENO: checking for $ac_word" >&5
3087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3088if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3089 echo $ECHO_N "(cached) $ECHO_C" >&6
3090else
3091 if test -n "$ac_ct_STRIP"; then
3092 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3093else
3094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095for as_dir in $PATH
3096do
3097 IFS=$as_save_IFS
3098 test -z "$as_dir" && as_dir=.
3099 for ac_exec_ext in '' $ac_executable_extensions; do
3100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3101 ac_cv_prog_ac_ct_STRIP="strip"
3102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3103 break 2
3104 fi
3105done
3106done
e5a52504 3107
42ecbf5e
DJ
3108 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3109fi
3110fi
3111ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3112if test -n "$ac_ct_STRIP"; then
3113 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3114echo "${ECHO_T}$ac_ct_STRIP" >&6
2469cfa2 3115else
42ecbf5e
DJ
3116 echo "$as_me:$LINENO: result: no" >&5
3117echo "${ECHO_T}no" >&6
2469cfa2
NC
3118fi
3119
42ecbf5e 3120 STRIP=$ac_ct_STRIP
2469cfa2 3121else
42ecbf5e
DJ
3122 STRIP="$ac_cv_prog_STRIP"
3123fi
3124
2469cfa2 3125fi
42ecbf5e
DJ
3126INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3127
3128# We need awk for the "check" target. The system "awk" is bad on
3129# some platforms.
3130# Always define AMTAR for backward compatibility.
3131
3132AMTAR=${AMTAR-"${am_missing_run}tar"}
3133
3134am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3135
3136
3137
3138
3139depcc="$CC" am_compiler_list=
3140
3141echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3142echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3143if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3144 echo $ECHO_N "(cached) $ECHO_C" >&6
3145else
3146 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3147 # We make a subdir and do the tests there. Otherwise we can end up
3148 # making bogus files that we don't know about and never remove. For
3149 # instance it was reported that on HP-UX the gcc test will end up
3150 # making a dummy file named `D' -- because `-MD' means `put the output
3151 # in D'.
3152 mkdir conftest.dir
3153 # Copy depcomp to subdir because otherwise we won't find it if we're
3154 # using a relative directory.
3155 cp "$am_depcomp" conftest.dir
3156 cd conftest.dir
3157 # We will build objects and dependencies in a subdirectory because
3158 # it helps to detect inapplicable dependency modes. For instance
3159 # both Tru64's cc and ICC support -MD to output dependencies as a
3160 # side effect of compilation, but ICC will put the dependencies in
3161 # the current directory while Tru64 will put them in the object
3162 # directory.
3163 mkdir sub
3164
3165 am_cv_CC_dependencies_compiler_type=none
3166 if test "$am_compiler_list" = ""; then
3167 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3168 fi
3169 for depmode in $am_compiler_list; do
3170 # Setup a source with many dependencies, because some compilers
3171 # like to wrap large dependency lists on column 80 (with \), and
3172 # we should not choose a depcomp mode which is confused by this.
3173 #
3174 # We need to recreate these files for each test, as the compiler may
3175 # overwrite some of them when testing with obscure command lines.
3176 # This happens at least with the AIX C compiler.
3177 : > sub/conftest.c
3178 for i in 1 2 3 4 5 6; do
3179 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3180 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3181 # Solaris 8's {/usr,}/bin/sh.
3182 touch sub/conftst$i.h
3183 done
3184 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3185
3186 case $depmode in
3187 nosideeffect)
3188 # after this tag, mechanisms are not by side-effect, so they'll
3189 # only be used when explicitly requested
3190 if test "x$enable_dependency_tracking" = xyes; then
3191 continue
3192 else
3193 break
3194 fi
3195 ;;
3196 none) break ;;
3197 esac
3198 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3199 # mode. It turns out that the SunPro C++ compiler does not properly
3200 # handle `-M -o', and we need to detect this.
3201 if depmode=$depmode \
3202 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3203 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3204 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3205 >/dev/null 2>conftest.err &&
3206 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3207 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3208 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3209 # icc doesn't choke on unknown options, it will just issue warnings
3210 # or remarks (even with -Werror). So we grep stderr for any message
3211 # that says an option was ignored or not supported.
3212 # When given -MP, icc 7.0 and 7.1 complain thusly:
3213 # icc: Command line warning: ignoring option '-M'; no argument required
3214 # The diagnosis changed in icc 8.0:
3215 # icc: Command line remark: option '-MP' not supported
3216 if (grep 'ignoring option' conftest.err ||
3217 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3218 am_cv_CC_dependencies_compiler_type=$depmode
3219 break
3220 fi
3221 fi
3222 done
2469cfa2 3223
42ecbf5e
DJ
3224 cd ..
3225 rm -rf conftest.dir
2469cfa2 3226else
42ecbf5e
DJ
3227 am_cv_CC_dependencies_compiler_type=none
3228fi
3229
2469cfa2 3230fi
42ecbf5e
DJ
3231echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3232echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3233CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3234
2469cfa2 3235
42ecbf5e
DJ
3236
3237if
3238 test "x$enable_dependency_tracking" != xno \
3239 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3240 am__fastdepCC_TRUE=
3241 am__fastdepCC_FALSE='#'
2469cfa2 3242else
42ecbf5e
DJ
3243 am__fastdepCC_TRUE='#'
3244 am__fastdepCC_FALSE=
2469cfa2 3245fi
2469cfa2 3246
2469cfa2 3247
e5a52504 3248
42ecbf5e 3249
d7040cdb 3250
ce2cded5
L
3251# Check whether --with-lib-path or --without-lib-path was given.
3252if test "${with_lib_path+set}" = set; then
3253 withval="$with_lib_path"
3254 LIB_PATH=$withval
3255fi;
3256# Check whether --enable-targets or --disable-targets was given.
3257if test "${enable_targets+set}" = set; then
3258 enableval="$enable_targets"
3259 case "${enableval}" in
3260 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
3261echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
3262 { (exit 1); exit 1; }; }
3263 ;;
3264 no) enable_targets= ;;
3265 *) enable_targets=$enableval ;;
3266esac
3267fi; # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
3268if test "${enable_64_bit_bfd+set}" = set; then
3269 enableval="$enable_64_bit_bfd"
3270 case "${enableval}" in
3271 yes) want64=true ;;
3272 no) want64=false ;;
3273 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
3274echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
3275 { (exit 1); exit 1; }; } ;;
3276esac
2469cfa2 3277else
ce2cded5 3278 want64=false
42ecbf5e 3279fi;
d7040cdb 3280
ce2cded5
L
3281# Check whether --with-sysroot or --without-sysroot was given.
3282if test "${with_sysroot+set}" = set; then
3283 withval="$with_sysroot"
d7040cdb 3284
ce2cded5
L
3285 case ${with_sysroot} in
3286 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
3287 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3288 esac
d7040cdb 3289
ce2cded5
L
3290 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3291 use_sysroot=yes
d7040cdb 3292
ce2cded5
L
3293 if test "x$prefix" = xNONE; then
3294 test_prefix=/usr/local
3295 else
3296 test_prefix=$prefix
3297 fi
3298 if test "x$exec_prefix" = xNONE; then
3299 test_exec_prefix=$test_prefix
3300 else
3301 test_exec_prefix=$exec_prefix
3302 fi
3303 case ${TARGET_SYSTEM_ROOT} in
3304 "${test_prefix}"|"${test_prefix}/"*|\
3305 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3306 '${prefix}'|'${prefix}/'*|\
3307 '${exec_prefix}'|'${exec_prefix}/'*)
3308 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3309 TARGET_SYSTEM_ROOT_DEFINE="$t"
3310 ;;
3311 esac
d7040cdb 3312
e5a52504 3313else
d7040cdb 3314
ce2cded5
L
3315 use_sysroot=no
3316 TARGET_SYSTEM_ROOT=
3317 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
d7040cdb 3318
ce2cded5 3319fi;
d7040cdb
SE
3320
3321
3322
3323
3324
ce2cded5 3325GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
d7040cdb 3326
ce2cded5
L
3327# Check whether --enable-werror or --disable-werror was given.
3328if test "${enable_werror+set}" = set; then
3329 enableval="$enable_werror"
3330 case "${enableval}" in
3331 yes | y) ERROR_ON_WARNING="yes" ;;
3332 no | n) ERROR_ON_WARNING="no" ;;
3333 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
3334echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
3335 { (exit 1); exit 1; }; } ;;
3336 esac
d7040cdb
SE
3337fi;
3338
bb8541b9
L
3339# Enable -Wno-format by default when using gcc on mingw
3340case "${host}" in
3341 *-*-mingw32*)
3342 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
3343 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
3344 fi
3345 ;;
3346 *) ;;
3347esac
3348
ce2cded5
L
3349# Enable -Werror by default when using gcc
3350if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
3351 ERROR_ON_WARNING=yes
3352fi
d7040cdb 3353
ce2cded5
L
3354NO_WERROR=
3355if test "${ERROR_ON_WARNING}" = yes ; then
3356 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
3357 NO_WERROR="-Wno-error"
3358fi
d7040cdb 3359
ce2cded5
L
3360if test "${GCC}" = yes ; then
3361 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
3362fi
d7040cdb 3363
ce2cded5
L
3364# Check whether --enable-build-warnings or --disable-build-warnings was given.
3365if test "${enable_build_warnings+set}" = set; then
3366 enableval="$enable_build_warnings"
3367 case "${enableval}" in
3368 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
3369 no) if test "${GCC}" = yes ; then
3370 WARN_CFLAGS="-w"
3371 fi;;
3372 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3373 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
3374 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3375 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
3376 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3377esac
3378fi;
d7040cdb 3379
ce2cded5
L
3380if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
3381 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
3382fi
d7040cdb 3383
2469cfa2 3384
d7040cdb
SE
3385
3386
3387
ce2cded5 3388 ac_config_headers="$ac_config_headers config.h:config.in"
d7040cdb
SE
3389
3390
ce2cded5
L
3391if test -z "$target" ; then
3392 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
3393echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
3394 { (exit 1); exit 1; }; }
3395fi
3396if test -z "$host" ; then
3397 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
3398echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
3399 { (exit 1); exit 1; }; }
3400fi
d7040cdb 3401
ce2cded5 3402# host-specific stuff:
d7040cdb 3403
ce2cded5
L
3404ac_ext=c
3405ac_cpp='$CPP $CPPFLAGS'
3406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3408ac_compiler_gnu=$ac_cv_c_compiler_gnu
3409if test -n "$ac_tool_prefix"; then
3410 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3411set dummy ${ac_tool_prefix}gcc; ac_word=$2
3412echo "$as_me:$LINENO: checking for $ac_word" >&5
3413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3414if test "${ac_cv_prog_CC+set}" = set; then
d7040cdb
SE
3415 echo $ECHO_N "(cached) $ECHO_C" >&6
3416else
ce2cded5
L
3417 if test -n "$CC"; then
3418 ac_cv_prog_CC="$CC" # Let the user override the test.
3419else
d7040cdb
SE
3420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3421for as_dir in $PATH
3422do
3423 IFS=$as_save_IFS
3424 test -z "$as_dir" && as_dir=.
ce2cded5
L
3425 for ac_exec_ext in '' $ac_executable_extensions; do
3426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3427 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3429 break 2
d7040cdb 3430 fi
ce2cded5 3431done
d7040cdb
SE
3432done
3433
3434fi
d7040cdb 3435fi
ce2cded5
L
3436CC=$ac_cv_prog_CC
3437if test -n "$CC"; then
3438 echo "$as_me:$LINENO: result: $CC" >&5
3439echo "${ECHO_T}$CC" >&6
d7040cdb 3440else
ce2cded5
L
3441 echo "$as_me:$LINENO: result: no" >&5
3442echo "${ECHO_T}no" >&6
d7040cdb 3443fi
d7040cdb 3444
252b5132 3445fi
ce2cded5
L
3446if test -z "$ac_cv_prog_CC"; then
3447 ac_ct_CC=$CC
3448 # Extract the first word of "gcc", so it can be a program name with args.
3449set dummy gcc; ac_word=$2
3450echo "$as_me:$LINENO: checking for $ac_word" >&5
3451echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3452if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
42ecbf5e 3453 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3454else
ce2cded5
L
3455 if test -n "$ac_ct_CC"; then
3456 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3457else
ce2cded5
L
3458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3459for as_dir in $PATH
3460do
3461 IFS=$as_save_IFS
3462 test -z "$as_dir" && as_dir=.
3463 for ac_exec_ext in '' $ac_executable_extensions; do
3464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3465 ac_cv_prog_ac_ct_CC="gcc"
3466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3467 break 2
3468 fi
3469done
3470done
3471
252b5132
RH
3472fi
3473fi
ce2cded5
L
3474ac_ct_CC=$ac_cv_prog_ac_ct_CC
3475if test -n "$ac_ct_CC"; then
3476 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3477echo "${ECHO_T}$ac_ct_CC" >&6
252b5132 3478else
42ecbf5e
DJ
3479 echo "$as_me:$LINENO: result: no" >&5
3480echo "${ECHO_T}no" >&6
252b5132 3481fi
ce2cded5
L
3482
3483 CC=$ac_ct_CC
252b5132 3484else
ce2cded5 3485 CC="$ac_cv_prog_CC"
252b5132 3486fi
d7040cdb 3487
ce2cded5
L
3488if test -z "$CC"; then
3489 if test -n "$ac_tool_prefix"; then
3490 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3491set dummy ${ac_tool_prefix}cc; ac_word=$2
3492echo "$as_me:$LINENO: checking for $ac_word" >&5
3493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3494if test "${ac_cv_prog_CC+set}" = set; then
42ecbf5e 3495 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3496else
ce2cded5
L
3497 if test -n "$CC"; then
3498 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3499else
ce2cded5
L
3500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501for as_dir in $PATH
3502do
3503 IFS=$as_save_IFS
3504 test -z "$as_dir" && as_dir=.
3505 for ac_exec_ext in '' $ac_executable_extensions; do
3506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3507 ac_cv_prog_CC="${ac_tool_prefix}cc"
3508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3509 break 2
3510 fi
3511done
3512done
3513
252b5132
RH
3514fi
3515fi
ce2cded5
L
3516CC=$ac_cv_prog_CC
3517if test -n "$CC"; then
3518 echo "$as_me:$LINENO: result: $CC" >&5
3519echo "${ECHO_T}$CC" >&6
d15b04bd 3520else
ce2cded5
L
3521 echo "$as_me:$LINENO: result: no" >&5
3522echo "${ECHO_T}no" >&6
3523fi
3524
3525fi
3526if test -z "$ac_cv_prog_CC"; then
3527 ac_ct_CC=$CC
3528 # Extract the first word of "cc", so it can be a program name with args.
3529set dummy cc; ac_word=$2
3530echo "$as_me:$LINENO: checking for $ac_word" >&5
3531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3532if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3533 echo $ECHO_N "(cached) $ECHO_C" >&6
3534else
3535 if test -n "$ac_ct_CC"; then
3536 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3537else
3538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3539for as_dir in $PATH
3540do
3541 IFS=$as_save_IFS
3542 test -z "$as_dir" && as_dir=.
3543 for ac_exec_ext in '' $ac_executable_extensions; do
3544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3545 ac_cv_prog_ac_ct_CC="cc"
3546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3547 break 2
3548 fi
3549done
3550done
3551
3552fi
3553fi
3554ac_ct_CC=$ac_cv_prog_ac_ct_CC
3555if test -n "$ac_ct_CC"; then
3556 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3557echo "${ECHO_T}$ac_ct_CC" >&6
3558else
3559 echo "$as_me:$LINENO: result: no" >&5
3560echo "${ECHO_T}no" >&6
3561fi
3562
3563 CC=$ac_ct_CC
3564else
3565 CC="$ac_cv_prog_CC"
3566fi
3567
3568fi
3569if test -z "$CC"; then
3570 # Extract the first word of "cc", so it can be a program name with args.
3571set dummy cc; ac_word=$2
3572echo "$as_me:$LINENO: checking for $ac_word" >&5
3573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3574if test "${ac_cv_prog_CC+set}" = set; then
3575 echo $ECHO_N "(cached) $ECHO_C" >&6
3576else
3577 if test -n "$CC"; then
3578 ac_cv_prog_CC="$CC" # Let the user override the test.
3579else
3580 ac_prog_rejected=no
3581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3582for as_dir in $PATH
3583do
3584 IFS=$as_save_IFS
3585 test -z "$as_dir" && as_dir=.
3586 for ac_exec_ext in '' $ac_executable_extensions; do
3587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3588 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3589 ac_prog_rejected=yes
3590 continue
3591 fi
3592 ac_cv_prog_CC="cc"
3593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3594 break 2
3595 fi
3596done
3597done
3598
3599if test $ac_prog_rejected = yes; then
3600 # We found a bogon in the path, so make sure we never use it.
3601 set dummy $ac_cv_prog_CC
3602 shift
3603 if test $# != 0; then
3604 # We chose a different compiler from the bogus one.
3605 # However, it has the same basename, so the bogon will be chosen
3606 # first if we set CC to just the basename; use the full file name.
3607 shift
3608 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3609 fi
3610fi
3611fi
3612fi
3613CC=$ac_cv_prog_CC
3614if test -n "$CC"; then
3615 echo "$as_me:$LINENO: result: $CC" >&5
3616echo "${ECHO_T}$CC" >&6
3617else
3618 echo "$as_me:$LINENO: result: no" >&5
3619echo "${ECHO_T}no" >&6
3620fi
3621
3622fi
3623if test -z "$CC"; then
d7040cdb 3624 if test -n "$ac_tool_prefix"; then
ce2cded5 3625 for ac_prog in cl
d7040cdb
SE
3626 do
3627 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3628set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3629echo "$as_me:$LINENO: checking for $ac_word" >&5
3630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ce2cded5 3631if test "${ac_cv_prog_CC+set}" = set; then
d7040cdb
SE
3632 echo $ECHO_N "(cached) $ECHO_C" >&6
3633else
ce2cded5
L
3634 if test -n "$CC"; then
3635 ac_cv_prog_CC="$CC" # Let the user override the test.
d7040cdb
SE
3636else
3637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638for as_dir in $PATH
3639do
3640 IFS=$as_save_IFS
3641 test -z "$as_dir" && as_dir=.
3642 for ac_exec_ext in '' $ac_executable_extensions; do
3643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 3644 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
d7040cdb
SE
3645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3646 break 2
3647 fi
3648done
3649done
3650
3651fi
3652fi
ce2cded5
L
3653CC=$ac_cv_prog_CC
3654if test -n "$CC"; then
3655 echo "$as_me:$LINENO: result: $CC" >&5
3656echo "${ECHO_T}$CC" >&6
d7040cdb
SE
3657else
3658 echo "$as_me:$LINENO: result: no" >&5
3659echo "${ECHO_T}no" >&6
3660fi
3661
ce2cded5 3662 test -n "$CC" && break
d7040cdb
SE
3663 done
3664fi
ce2cded5
L
3665if test -z "$CC"; then
3666 ac_ct_CC=$CC
3667 for ac_prog in cl
d7040cdb
SE
3668do
3669 # Extract the first word of "$ac_prog", so it can be a program name with args.
3670set dummy $ac_prog; ac_word=$2
3671echo "$as_me:$LINENO: checking for $ac_word" >&5
3672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ce2cded5 3673if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
d7040cdb
SE
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3675else
ce2cded5
L
3676 if test -n "$ac_ct_CC"; then
3677 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
3678else
3679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680for as_dir in $PATH
3681do
3682 IFS=$as_save_IFS
3683 test -z "$as_dir" && as_dir=.
3684 for ac_exec_ext in '' $ac_executable_extensions; do
3685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 3686 ac_cv_prog_ac_ct_CC="$ac_prog"
d7040cdb
SE
3687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3688 break 2
3689 fi
3690done
3691done
3692
3693fi
3694fi
ce2cded5
L
3695ac_ct_CC=$ac_cv_prog_ac_ct_CC
3696if test -n "$ac_ct_CC"; then
3697 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3698echo "${ECHO_T}$ac_ct_CC" >&6
d7040cdb
SE
3699else
3700 echo "$as_me:$LINENO: result: no" >&5
3701echo "${ECHO_T}no" >&6
3702fi
3703
ce2cded5 3704 test -n "$ac_ct_CC" && break
d7040cdb 3705done
d7040cdb 3706
ce2cded5 3707 CC=$ac_ct_CC
d7040cdb
SE
3708fi
3709
d7040cdb 3710fi
d7040cdb
SE
3711
3712
ce2cded5
L
3713test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3714See \`config.log' for more details." >&5
3715echo "$as_me: error: no acceptable C compiler found in \$PATH
3716See \`config.log' for more details." >&2;}
3717 { (exit 1); exit 1; }; }
d7040cdb 3718
ce2cded5
L
3719# Provide some information about the compiler.
3720echo "$as_me:$LINENO:" \
3721 "checking for C compiler version" >&5
3722ac_compiler=`set X $ac_compile; echo $2`
3723{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3724 (eval $ac_compiler --version </dev/null >&5) 2>&5
3725 ac_status=$?
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); }
3728{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3729 (eval $ac_compiler -v </dev/null >&5) 2>&5
3730 ac_status=$?
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); }
3733{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3734 (eval $ac_compiler -V </dev/null >&5) 2>&5
3735 ac_status=$?
3736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737 (exit $ac_status); }
d7040cdb 3738
ce2cded5
L
3739echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3740echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3741if test "${ac_cv_c_compiler_gnu+set}" = set; then
d7040cdb
SE
3742 echo $ECHO_N "(cached) $ECHO_C" >&6
3743else
ce2cded5
L
3744 cat >conftest.$ac_ext <<_ACEOF
3745/* confdefs.h. */
3746_ACEOF
3747cat confdefs.h >>conftest.$ac_ext
3748cat >>conftest.$ac_ext <<_ACEOF
3749/* end confdefs.h. */
d7040cdb 3750
ce2cded5
L
3751int
3752main ()
3753{
3754#ifndef __GNUC__
3755 choke me
3756#endif
3757
3758 ;
3759 return 0;
3760}
3761_ACEOF
3762rm -f conftest.$ac_objext
3763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3764 (eval $ac_compile) 2>conftest.er1
3765 ac_status=$?
3766 grep -v '^ *+' conftest.er1 >conftest.err
3767 rm -f conftest.er1
3768 cat conftest.err >&5
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); } &&
3771 { ac_try='test -z "$ac_c_werror_flag"
3772 || test ! -s conftest.err'
3773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3774 (eval $ac_try) 2>&5
3775 ac_status=$?
3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 (exit $ac_status); }; } &&
3778 { ac_try='test -s conftest.$ac_objext'
3779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3780 (eval $ac_try) 2>&5
3781 ac_status=$?
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); }; }; then
3784 ac_compiler_gnu=yes
d7040cdb 3785else
ce2cded5
L
3786 echo "$as_me: failed program was:" >&5
3787sed 's/^/| /' conftest.$ac_ext >&5
3788
3789ac_compiler_gnu=no
d7040cdb 3790fi
ce2cded5
L
3791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3792ac_cv_c_compiler_gnu=$ac_compiler_gnu
d7040cdb 3793
ce2cded5
L
3794fi
3795echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3796echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3797GCC=`test $ac_compiler_gnu = yes && echo yes`
3798ac_test_CFLAGS=${CFLAGS+set}
3799ac_save_CFLAGS=$CFLAGS
3800CFLAGS="-g"
3801echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3802echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3803if test "${ac_cv_prog_cc_g+set}" = set; then
d7040cdb
SE
3804 echo $ECHO_N "(cached) $ECHO_C" >&6
3805else
ce2cded5
L
3806 cat >conftest.$ac_ext <<_ACEOF
3807/* confdefs.h. */
3808_ACEOF
3809cat confdefs.h >>conftest.$ac_ext
3810cat >>conftest.$ac_ext <<_ACEOF
3811/* end confdefs.h. */
d7040cdb 3812
ce2cded5
L
3813int
3814main ()
3815{
d7040cdb 3816
ce2cded5
L
3817 ;
3818 return 0;
3819}
3820_ACEOF
3821rm -f conftest.$ac_objext
3822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3823 (eval $ac_compile) 2>conftest.er1
3824 ac_status=$?
3825 grep -v '^ *+' conftest.er1 >conftest.err
3826 rm -f conftest.er1
3827 cat conftest.err >&5
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); } &&
3830 { ac_try='test -z "$ac_c_werror_flag"
3831 || test ! -s conftest.err'
3832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3833 (eval $ac_try) 2>&5
3834 ac_status=$?
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); }; } &&
3837 { ac_try='test -s conftest.$ac_objext'
3838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3839 (eval $ac_try) 2>&5
3840 ac_status=$?
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); }; }; then
3843 ac_cv_prog_cc_g=yes
3844else
3845 echo "$as_me: failed program was:" >&5
3846sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 3847
ce2cded5 3848ac_cv_prog_cc_g=no
d7040cdb 3849fi
ce2cded5
L
3850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3851fi
3852echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3853echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3854if test "$ac_test_CFLAGS" = set; then
3855 CFLAGS=$ac_save_CFLAGS
3856elif test $ac_cv_prog_cc_g = yes; then
3857 if test "$GCC" = yes; then
3858 CFLAGS="-g -O2"
3859 else
3860 CFLAGS="-g"
3861 fi
d7040cdb 3862else
ce2cded5
L
3863 if test "$GCC" = yes; then
3864 CFLAGS="-O2"
3865 else
3866 CFLAGS=
3867 fi
d7040cdb 3868fi
ce2cded5
L
3869echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3870echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3871if test "${ac_cv_prog_cc_stdc+set}" = set; then
3872 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 3873else
ce2cded5
L
3874 ac_cv_prog_cc_stdc=no
3875ac_save_CC=$CC
3876cat >conftest.$ac_ext <<_ACEOF
3877/* confdefs.h. */
3878_ACEOF
3879cat confdefs.h >>conftest.$ac_ext
3880cat >>conftest.$ac_ext <<_ACEOF
3881/* end confdefs.h. */
3882#include <stdarg.h>
3883#include <stdio.h>
3884#include <sys/types.h>
3885#include <sys/stat.h>
3886/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3887struct buf { int x; };
3888FILE * (*rcsopen) (struct buf *, struct stat *, int);
3889static char *e (p, i)
3890 char **p;
3891 int i;
3892{
3893 return p[i];
3894}
3895static char *f (char * (*g) (char **, int), char **p, ...)
3896{
3897 char *s;
3898 va_list v;
3899 va_start (v,p);
3900 s = g (p, va_arg (v,int));
3901 va_end (v);
3902 return s;
3903}
d7040cdb 3904
ce2cded5
L
3905/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3906 function prototypes and stuff, but not '\xHH' hex character constants.
3907 These don't provoke an error unfortunately, instead are silently treated
3908 as 'x'. The following induces an error, until -std1 is added to get
3909 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3910 array size at least. It's necessary to write '\x00'==0 to get something
3911 that's true only with -std1. */
3912int osf4_cc_array ['\x00' == 0 ? 1 : -1];
d7040cdb 3913
ce2cded5
L
3914int test (int i, double x);
3915struct s1 {int (*f) (int a);};
3916struct s2 {int (*f) (double a);};
3917int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3918int argc;
3919char **argv;
3920int
3921main ()
3922{
3923return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3924 ;
3925 return 0;
3926}
3927_ACEOF
3928# Don't try gcc -ansi; that turns off useful extensions and
3929# breaks some systems' header files.
3930# AIX -qlanglvl=ansi
3931# Ultrix and OSF/1 -std1
3932# HP-UX 10.20 and later -Ae
3933# HP-UX older versions -Aa -D_HPUX_SOURCE
3934# SVR4 -Xc -D__EXTENSIONS__
3935for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3936do
3937 CC="$ac_save_CC $ac_arg"
3938 rm -f conftest.$ac_objext
3939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3940 (eval $ac_compile) 2>conftest.er1
3941 ac_status=$?
3942 grep -v '^ *+' conftest.er1 >conftest.err
3943 rm -f conftest.er1
3944 cat conftest.err >&5
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); } &&
3947 { ac_try='test -z "$ac_c_werror_flag"
3948 || test ! -s conftest.err'
3949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3950 (eval $ac_try) 2>&5
3951 ac_status=$?
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); }; } &&
3954 { ac_try='test -s conftest.$ac_objext'
3955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3956 (eval $ac_try) 2>&5
3957 ac_status=$?
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); }; }; then
3960 ac_cv_prog_cc_stdc=$ac_arg
3961break
3962else
3963 echo "$as_me: failed program was:" >&5
3964sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 3965
ce2cded5
L
3966fi
3967rm -f conftest.err conftest.$ac_objext
3968done
3969rm -f conftest.$ac_ext conftest.$ac_objext
3970CC=$ac_save_CC
d7040cdb 3971
ce2cded5 3972fi
d7040cdb 3973
ce2cded5
L
3974case "x$ac_cv_prog_cc_stdc" in
3975 x|xno)
3976 echo "$as_me:$LINENO: result: none needed" >&5
3977echo "${ECHO_T}none needed" >&6 ;;
3978 *)
3979 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3980echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3981 CC="$CC $ac_cv_prog_cc_stdc" ;;
d7040cdb
SE
3982esac
3983
ce2cded5
L
3984# Some people use a C++ compiler to compile C. Since we use `exit',
3985# in C++ we need to declare it. In case someone uses the same compiler
3986# for both compiling C and C++ we need to have the C++ compiler decide
3987# the declaration of exit, since it's the most demanding environment.
3988cat >conftest.$ac_ext <<_ACEOF
3989#ifndef __cplusplus
3990 choke me
3991#endif
3992_ACEOF
3993rm -f conftest.$ac_objext
3994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3995 (eval $ac_compile) 2>conftest.er1
3996 ac_status=$?
3997 grep -v '^ *+' conftest.er1 >conftest.err
3998 rm -f conftest.er1
3999 cat conftest.err >&5
4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); } &&
4002 { ac_try='test -z "$ac_c_werror_flag"
4003 || test ! -s conftest.err'
4004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4005 (eval $ac_try) 2>&5
4006 ac_status=$?
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); }; } &&
4009 { ac_try='test -s conftest.$ac_objext'
4010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4011 (eval $ac_try) 2>&5
4012 ac_status=$?
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); }; }; then
4015 for ac_declaration in \
4016 '' \
4017 'extern "C" void std::exit (int) throw (); using std::exit;' \
4018 'extern "C" void std::exit (int); using std::exit;' \
4019 'extern "C" void exit (int) throw ();' \
4020 'extern "C" void exit (int);' \
4021 'void exit (int);'
4022do
4023 cat >conftest.$ac_ext <<_ACEOF
4024/* confdefs.h. */
4025_ACEOF
4026cat confdefs.h >>conftest.$ac_ext
4027cat >>conftest.$ac_ext <<_ACEOF
4028/* end confdefs.h. */
4029$ac_declaration
4030#include <stdlib.h>
4031int
4032main ()
4033{
4034exit (42);
4035 ;
4036 return 0;
4037}
4038_ACEOF
4039rm -f conftest.$ac_objext
4040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4041 (eval $ac_compile) 2>conftest.er1
4042 ac_status=$?
4043 grep -v '^ *+' conftest.er1 >conftest.err
4044 rm -f conftest.er1
4045 cat conftest.err >&5
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); } &&
4048 { ac_try='test -z "$ac_c_werror_flag"
4049 || test ! -s conftest.err'
4050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4051 (eval $ac_try) 2>&5
4052 ac_status=$?
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); }; } &&
4055 { ac_try='test -s conftest.$ac_objext'
4056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4057 (eval $ac_try) 2>&5
4058 ac_status=$?
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); }; }; then
4061 :
d7040cdb 4062else
ce2cded5
L
4063 echo "$as_me: failed program was:" >&5
4064sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4065
ce2cded5
L
4066continue
4067fi
4068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4069 cat >conftest.$ac_ext <<_ACEOF
4070/* confdefs.h. */
4071_ACEOF
4072cat confdefs.h >>conftest.$ac_ext
4073cat >>conftest.$ac_ext <<_ACEOF
4074/* end confdefs.h. */
4075$ac_declaration
4076int
4077main ()
4078{
4079exit (42);
4080 ;
4081 return 0;
4082}
4083_ACEOF
4084rm -f conftest.$ac_objext
4085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4086 (eval $ac_compile) 2>conftest.er1
4087 ac_status=$?
4088 grep -v '^ *+' conftest.er1 >conftest.err
4089 rm -f conftest.er1
4090 cat conftest.err >&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } &&
4093 { ac_try='test -z "$ac_c_werror_flag"
4094 || test ! -s conftest.err'
4095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4096 (eval $ac_try) 2>&5
4097 ac_status=$?
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; } &&
4100 { ac_try='test -s conftest.$ac_objext'
4101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4102 (eval $ac_try) 2>&5
4103 ac_status=$?
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); }; }; then
4106 break
4107else
4108 echo "$as_me: failed program was:" >&5
4109sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4110
ce2cded5
L
4111fi
4112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4113done
4114rm -f conftest*
4115if test -n "$ac_declaration"; then
4116 echo '#ifdef __cplusplus' >>confdefs.h
4117 echo $ac_declaration >>confdefs.h
4118 echo '#endif' >>confdefs.h
4119fi
d7040cdb 4120
ce2cded5
L
4121else
4122 echo "$as_me: failed program was:" >&5
4123sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4124
ce2cded5
L
4125fi
4126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4127ac_ext=c
4128ac_cpp='$CPP $CPPFLAGS'
4129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4131ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
4132
4133
ce2cded5
L
4134cat >>confdefs.h <<\_ACEOF
4135#define _GNU_SOURCE 1
4136_ACEOF
4137
4138
4139# Find a good install program. We prefer a C program (faster),
4140# so one script is as good as another. But avoid the broken or
4141# incompatible versions:
4142# SysV /etc/install, /usr/sbin/install
4143# SunOS /usr/etc/install
4144# IRIX /sbin/install
4145# AIX /bin/install
4146# AmigaOS /C/install, which installs bootblocks on floppy discs
4147# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4148# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4149# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4150# OS/2's system install, which has a completely different semantic
4151# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 4152# Reject install programs that cannot install multiple files.
ce2cded5
L
4153echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4154echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4155if test -z "$INSTALL"; then
4156if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 4157 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4158else
ce2cded5
L
4159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160for as_dir in $PATH
4161do
4162 IFS=$as_save_IFS
4163 test -z "$as_dir" && as_dir=.
4164 # Account for people who put trailing slashes in PATH elements.
4165case $as_dir/ in
4166 ./ | .// | /cC/* | \
4167 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4168 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4169 /usr/ucb/* ) ;;
4170 *)
4171 # OSF1 and SCO ODT 3.0 have their own names for install.
4172 # Don't use installbsd from OSF since it installs stuff as root
4173 # by default.
4174 for ac_prog in ginstall scoinst install; do
4175 for ac_exec_ext in '' $ac_executable_extensions; do
4176 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4177 if test $ac_prog = install &&
4178 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4179 # AIX install. It has an incompatible calling convention.
4180 :
4181 elif test $ac_prog = install &&
4182 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4183 # program-specific install script used by HP pwplus--don't use.
4184 :
4185 else
58c85be7
RW
4186 rm -rf conftest.one conftest.two conftest.dir
4187 echo one > conftest.one
4188 echo two > conftest.two
4189 mkdir conftest.dir
4190 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4191 test -s conftest.one && test -s conftest.two &&
4192 test -s conftest.dir/conftest.one &&
4193 test -s conftest.dir/conftest.two
4194 then
4195 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4196 break 3
4197 fi
ce2cded5
L
4198 fi
4199 fi
4200 done
4201 done
4202 ;;
4203esac
4204done
ac48eca1 4205
58c85be7 4206rm -rf conftest.one conftest.two conftest.dir
ac48eca1 4207
ce2cded5
L
4208fi
4209 if test "${ac_cv_path_install+set}" = set; then
4210 INSTALL=$ac_cv_path_install
4211 else
58c85be7
RW
4212 # As a last resort, use the slow shell script. Don't cache a
4213 # value for INSTALL within a source directory, because that will
ce2cded5 4214 # break other packages using the cache if that directory is
58c85be7 4215 # removed, or if the value is a relative name.
ce2cded5
L
4216 INSTALL=$ac_install_sh
4217 fi
4218fi
4219echo "$as_me:$LINENO: result: $INSTALL" >&5
4220echo "${ECHO_T}$INSTALL" >&6
ac48eca1 4221
ce2cded5
L
4222# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4223# It thinks the first close brace ends the variable substitution.
4224test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ac48eca1 4225
ce2cded5 4226test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
d7040cdb 4227
ce2cded5 4228test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
ac48eca1 4229
c7e40348 4230
ac48eca1 4231
ac48eca1 4232
ce2cded5
L
4233macro_version='2.1a'
4234macro_revision='1.2435'
d7040cdb 4235
d7040cdb 4236
ac48eca1 4237
ac48eca1 4238
ac48eca1 4239
c7e40348 4240
ac48eca1 4241
ac48eca1 4242
ac48eca1 4243
6be7c12c 4244
d7040cdb 4245
d7040cdb 4246
ce2cded5 4247ltmain="$ac_aux_dir/ltmain.sh"
d7040cdb 4248
ce2cded5 4249# Set options
ac48eca1 4250
ce2cded5 4251enable_dlopen=no
ac48eca1 4252
d15b04bd 4253
ce2cded5 4254enable_win32_dll=no
d15b04bd 4255
ac48eca1 4256
ce2cded5
L
4257# Check whether --enable-shared or --disable-shared was given.
4258if test "${enable_shared+set}" = set; then
4259 enableval="$enable_shared"
4260 p=${PACKAGE-default}
4261 case $enableval in
4262 yes) enable_shared=yes ;;
4263 no) enable_shared=no ;;
4264 *)
4265 enable_shared=no
4266 # Look at the argument we got. We use all the common list separators.
4267 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4268 for pkg in $enableval; do
4269 IFS="$lt_save_ifs"
4270 if test "X$pkg" = "X$p"; then
4271 enable_shared=yes
4272 fi
4273 done
4274 IFS="$lt_save_ifs"
4275 ;;
4276 esac
4277else
4278 enable_shared=yes
4279fi;
ac48eca1 4280
ac48eca1 4281
ac48eca1 4282
ac48eca1 4283
ac48eca1 4284
ac48eca1 4285
252b5132
RH
4286
4287
ce2cded5
L
4288# Check whether --enable-static or --disable-static was given.
4289if test "${enable_static+set}" = set; then
4290 enableval="$enable_static"
4291 p=${PACKAGE-default}
4292 case $enableval in
4293 yes) enable_static=yes ;;
4294 no) enable_static=no ;;
4295 *)
4296 enable_static=no
4297 # Look at the argument we got. We use all the common list separators.
4298 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4299 for pkg in $enableval; do
4300 IFS="$lt_save_ifs"
4301 if test "X$pkg" = "X$p"; then
4302 enable_static=yes
4303 fi
4304 done
4305 IFS="$lt_save_ifs"
4306 ;;
4307 esac
ac48eca1 4308else
ce2cded5
L
4309 enable_static=yes
4310fi;
42ecbf5e 4311
ac48eca1 4312
42ecbf5e 4313
ac48eca1 4314
ce2cded5
L
4315
4316
4317
4318
4319
4320# Check whether --with-pic or --without-pic was given.
4321if test "${with_pic+set}" = set; then
4322 withval="$with_pic"
4323 pic_mode="$withval"
ac48eca1 4324else
ce2cded5
L
4325 pic_mode=default
4326fi;
4327
4328test -z "$pic_mode" && pic_mode=default
ac48eca1 4329
d7040cdb
SE
4330
4331
4332
4333
4334
4335
ce2cded5
L
4336# Check whether --enable-fast-install or --disable-fast-install was given.
4337if test "${enable_fast_install+set}" = set; then
4338 enableval="$enable_fast_install"
4339 p=${PACKAGE-default}
4340 case $enableval in
4341 yes) enable_fast_install=yes ;;
4342 no) enable_fast_install=no ;;
4343 *)
4344 enable_fast_install=no
4345 # Look at the argument we got. We use all the common list separators.
4346 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4347 for pkg in $enableval; do
4348 IFS="$lt_save_ifs"
4349 if test "X$pkg" = "X$p"; then
4350 enable_fast_install=yes
4351 fi
4352 done
4353 IFS="$lt_save_ifs"
4354 ;;
4355 esac
4356else
4357 enable_fast_install=yes
4358fi;
d7040cdb
SE
4359
4360
4361
4362
4363
ce2cded5
L
4364
4365
4366
4367echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4368echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4369if test "${lt_cv_path_SED+set}" = set; then
42ecbf5e 4370 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4371else
ce2cded5
L
4372 # Loop through the user's path and test for sed and gsed.
4373# Then use that list of sed's as ones to test for truncation.
42ecbf5e
DJ
4374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375for as_dir in $PATH
4376do
4377 IFS=$as_save_IFS
4378 test -z "$as_dir" && as_dir=.
ce2cded5
L
4379 for lt_ac_prog in sed gsed; do
4380 for ac_exec_ext in '' $ac_executable_extensions; do
4381 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4382 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4383 fi
4384 done
4385 done
42ecbf5e 4386done
ce2cded5
L
4387IFS=$as_save_IFS
4388lt_ac_max=0
4389lt_ac_count=0
4390# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4391# along with /bin/sed that truncates output.
4392for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4393 test ! -f $lt_ac_sed && continue
4394 cat /dev/null > conftest.in
4395 lt_ac_count=0
4396 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4397 # Check for GNU sed and select it if it is found.
4398 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4399 lt_cv_path_SED=$lt_ac_sed
4400 break
42ecbf5e 4401 fi
ce2cded5
L
4402 while true; do
4403 cat conftest.in conftest.in >conftest.tmp
4404 mv conftest.tmp conftest.in
4405 cp conftest.in conftest.nl
4406 echo >>conftest.nl
4407 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4408 cmp -s conftest.out conftest.nl || break
4409 # 10000 chars as input seems more than enough
4410 test $lt_ac_count -gt 10 && break
4411 lt_ac_count=`expr $lt_ac_count + 1`
4412 if test $lt_ac_count -gt $lt_ac_max; then
4413 lt_ac_max=$lt_ac_count
4414 lt_cv_path_SED=$lt_ac_sed
4415 fi
4416 done
42ecbf5e 4417done
ac48eca1 4418
ac48eca1
AO
4419fi
4420
ce2cded5 4421SED=$lt_cv_path_SED
42ecbf5e 4422
ce2cded5
L
4423echo "$as_me:$LINENO: result: $SED" >&5
4424echo "${ECHO_T}$SED" >&6
252b5132 4425
ce2cded5
L
4426test -z "$SED" && SED=sed
4427Xsed="$SED -e 1s/^X//"
4867be41 4428
32fba81d 4429
42ecbf5e
DJ
4430
4431
ac48eca1 4432
252b5132 4433
252b5132 4434
42ecbf5e 4435
ac48eca1 4436
d7040cdb 4437
d7040cdb 4438
ce2cded5
L
4439echo "$as_me:$LINENO: checking for egrep" >&5
4440echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4441if test "${ac_cv_prog_egrep+set}" = set; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4443else
4444 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4445 then ac_cv_prog_egrep='grep -E'
4446 else ac_cv_prog_egrep='egrep'
4447 fi
252b5132 4448fi
ce2cded5
L
4449echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4450echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4451 EGREP=$ac_cv_prog_egrep
252b5132 4452
252b5132 4453
ce2cded5
L
4454echo "$as_me:$LINENO: checking for fgrep" >&5
4455echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4456if test "${ac_cv_prog_fgrep+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4458else
4459 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4460 then ac_cv_prog_fgrep='grep -F'
4461 else ac_cv_prog_fgrep='fgrep'
4462 fi
4463fi
4464echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4465echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4466 FGREP=$ac_cv_prog_fgrep
252b5132 4467
252b5132 4468
ce2cded5 4469test -z "$GREP" && GREP=grep
42ecbf5e 4470
42ecbf5e 4471
252b5132 4472
252b5132 4473
252b5132
RH
4474
4475
252b5132 4476
252b5132 4477
252b5132 4478
ac48eca1 4479
42ecbf5e
DJ
4480
4481
4482
4483
4484
ac48eca1 4485
252b5132 4486
42ecbf5e 4487
9c8ebd6a 4488
ce2cded5
L
4489# Check whether --with-gnu-ld or --without-gnu-ld was given.
4490if test "${with_gnu_ld+set}" = set; then
4491 withval="$with_gnu_ld"
4492 test "$withval" = no || with_gnu_ld=yes
d7040cdb 4493else
ce2cded5
L
4494 with_gnu_ld=no
4495fi;
4496ac_prog=ld
4497if test "$GCC" = yes; then
4498 # Check if gcc -print-prog-name=ld gives a path.
4499 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4500echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4501 case $host in
4502 *-*-mingw*)
4503 # gcc leaves a trailing carriage return which upsets mingw
4504 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4505 *)
4506 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4507 esac
4508 case $ac_prog in
4509 # Accept absolute paths.
4510 [\\/]* | ?:[\\/]*)
4511 re_direlt='/[^/][^/]*/\.\./'
4512 # Canonicalize the pathname of ld
4513 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4514 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4515 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4516 done
4517 test -z "$LD" && LD="$ac_prog"
4518 ;;
4519 "")
4520 # If it fails, then pretend we aren't using GCC.
4521 ac_prog=ld
4522 ;;
4523 *)
4524 # If it is relative, then search for the first ld in PATH.
4525 with_gnu_ld=unknown
4526 ;;
4527 esac
4528elif test "$with_gnu_ld" = yes; then
4529 echo "$as_me:$LINENO: checking for GNU ld" >&5
4530echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4531else
4532 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4533echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4534fi
4535if test "${lt_cv_path_LD+set}" = set; then
4536 echo $ECHO_N "(cached) $ECHO_C" >&6
4537else
4538 if test -z "$LD"; then
4539 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4540 for ac_dir in $PATH; do
4541 IFS="$lt_save_ifs"
4542 test -z "$ac_dir" && ac_dir=.
4543 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4544 lt_cv_path_LD="$ac_dir/$ac_prog"
4545 # Check to see if the program is GNU ld. I'd rather use --version,
4546 # but apparently some variants of GNU ld only accept -v.
4547 # Break only if it was the GNU/non-GNU ld that we prefer.
4548 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4549 *GNU* | *'with BFD'*)
4550 test "$with_gnu_ld" != no && break
4551 ;;
4552 *)
4553 test "$with_gnu_ld" != yes && break
4554 ;;
4555 esac
4556 fi
4557 done
4558 IFS="$lt_save_ifs"
4559else
4560 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4561fi
4562fi
9e9b66a9 4563
ce2cded5
L
4564LD="$lt_cv_path_LD"
4565if test -n "$LD"; then
4566 echo "$as_me:$LINENO: result: $LD" >&5
4567echo "${ECHO_T}$LD" >&6
4568else
4569 echo "$as_me:$LINENO: result: no" >&5
4570echo "${ECHO_T}no" >&6
4571fi
4572test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4573echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4574 { (exit 1); exit 1; }; }
4575echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4576echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4577if test "${lt_cv_prog_gnu_ld+set}" = set; then
4578 echo $ECHO_N "(cached) $ECHO_C" >&6
4579else
4580 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4581case `$LD -v 2>&1 </dev/null` in
d7040cdb 4582*GNU* | *'with BFD'*)
ce2cded5
L
4583 lt_cv_prog_gnu_ld=yes
4584 ;;
4585*)
4586 lt_cv_prog_gnu_ld=no
d7040cdb
SE
4587 ;;
4588esac
ce2cded5
L
4589fi
4590echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4591echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4592with_gnu_ld=$lt_cv_prog_gnu_ld
42ecbf5e 4593
e5a52504 4594
d7040cdb 4595
d7040cdb 4596
d7040cdb 4597
d7040cdb 4598
d7040cdb 4599
d7040cdb 4600
d7040cdb 4601
d7040cdb 4602
ce2cded5
L
4603echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4604echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4605if test "${lt_cv_path_NM+set}" = set; then
4606 echo $ECHO_N "(cached) $ECHO_C" >&6
4607else
4608 if test -n "$NM"; then
4609 # Let the user override the test.
4610 lt_cv_path_NM="$NM"
4611else
4612 lt_nm_to_check="${ac_tool_prefix}nm"
4613 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4614 lt_nm_to_check="$lt_nm_to_check nm"
4615 fi
4616 for lt_tmp_nm in $lt_nm_to_check; do
4617 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4618 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4619 IFS="$lt_save_ifs"
4620 test -z "$ac_dir" && ac_dir=.
4621 tmp_nm="$ac_dir/$lt_tmp_nm"
4622 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4623 # Check to see if the nm accepts a BSD-compat flag.
4624 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4625 # nm: unknown option "B" ignored
4626 # Tru64's nm complains that /dev/null is an invalid object file
4627 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4628 */dev/null* | *'Invalid file or object type'*)
4629 lt_cv_path_NM="$tmp_nm -B"
4630 break
4631 ;;
4632 *)
4633 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4634 */dev/null*)
4635 lt_cv_path_NM="$tmp_nm -p"
4636 break
4637 ;;
4638 *)
4639 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4640 continue # so that we can try to find one that supports BSD flags
4641 ;;
4642 esac
4643 ;;
4644 esac
4645 fi
4646 done
4647 IFS="$lt_save_ifs"
4648 done
4649 : ${lt_cv_path_NM=no}
4650fi
4651fi
4652echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4653echo "${ECHO_T}$lt_cv_path_NM" >&6
4654if test "$lt_cv_path_NM" != "no"; then
4655 NM="$lt_cv_path_NM"
4656else
4657 # Didn't find any BSD compatible name lister, look for dumpbin.
4658 if test -n "$ac_tool_prefix"; then
4659 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4660 do
4661 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4662set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4663echo "$as_me:$LINENO: checking for $ac_word" >&5
4664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4665if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
4667else
4668 if test -n "$DUMPBIN"; then
4669 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4670else
4671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672for as_dir in $PATH
4673do
4674 IFS=$as_save_IFS
4675 test -z "$as_dir" && as_dir=.
4676 for ac_exec_ext in '' $ac_executable_extensions; do
4677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4678 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4680 break 2
42ecbf5e 4681 fi
42ecbf5e 4682done
ce2cded5 4683done
d15b04bd 4684
ce2cded5
L
4685fi
4686fi
4687DUMPBIN=$ac_cv_prog_DUMPBIN
4688if test -n "$DUMPBIN"; then
4689 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4690echo "${ECHO_T}$DUMPBIN" >&6
4691else
4692 echo "$as_me:$LINENO: result: no" >&5
4693echo "${ECHO_T}no" >&6
252b5132 4694fi
d7040cdb 4695
ce2cded5
L
4696 test -n "$DUMPBIN" && break
4697 done
42ecbf5e 4698fi
ce2cded5
L
4699if test -z "$DUMPBIN"; then
4700 ac_ct_DUMPBIN=$DUMPBIN
4701 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4702do
4703 # Extract the first word of "$ac_prog", so it can be a program name with args.
4704set dummy $ac_prog; ac_word=$2
4705echo "$as_me:$LINENO: checking for $ac_word" >&5
4706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4707if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4708 echo $ECHO_N "(cached) $ECHO_C" >&6
42ecbf5e 4709else
ce2cded5
L
4710 if test -n "$ac_ct_DUMPBIN"; then
4711 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4712else
4713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714for as_dir in $PATH
4715do
4716 IFS=$as_save_IFS
4717 test -z "$as_dir" && as_dir=.
4718 for ac_exec_ext in '' $ac_executable_extensions; do
4719 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4720 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4722 break 2
4723 fi
4724done
4725done
4726
4727fi
4728fi
4729ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4730if test -n "$ac_ct_DUMPBIN"; then
4731 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4732echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4733else
4734 echo "$as_me:$LINENO: result: no" >&5
4735echo "${ECHO_T}no" >&6
e5a52504
MM
4736fi
4737
ce2cded5
L
4738 test -n "$ac_ct_DUMPBIN" && break
4739done
4740test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
d15b04bd 4741
ce2cded5
L
4742 DUMPBIN=$ac_ct_DUMPBIN
4743fi
42ecbf5e 4744
42ecbf5e 4745
ce2cded5
L
4746 if test "$DUMPBIN" != ":"; then
4747 NM="$DUMPBIN"
4748 fi
4749fi
4750test -z "$NM" && NM=nm
42ecbf5e 4751
252b5132 4752
42ecbf5e 4753
42ecbf5e 4754
252b5132 4755
42ecbf5e 4756
ce2cded5
L
4757echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4758echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4759if test "${lt_cv_nm_interface+set}" = set; then
4760 echo $ECHO_N "(cached) $ECHO_C" >&6
4761else
4762 lt_cv_nm_interface="BSD nm"
4763 echo "int some_variable = 0;" > conftest.$ac_ext
6194aaab 4764 (eval echo "\"\$as_me:4764: $ac_compile\"" >&5)
ce2cded5
L
4765 (eval "$ac_compile" 2>conftest.err)
4766 cat conftest.err >&5
6194aaab 4767 (eval echo "\"\$as_me:4767: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
ce2cded5
L
4768 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4769 cat conftest.err >&5
6194aaab 4770 (eval echo "\"\$as_me:4770: output\"" >&5)
ce2cded5
L
4771 cat conftest.out >&5
4772 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4773 lt_cv_nm_interface="MS dumpbin"
4774 fi
4775 rm -f conftest*
4776fi
4777echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4778echo "${ECHO_T}$lt_cv_nm_interface" >&6
d15b04bd 4779
ce2cded5
L
4780echo "$as_me:$LINENO: checking whether ln -s works" >&5
4781echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4782LN_S=$as_ln_s
4783if test "$LN_S" = "ln -s"; then
4784 echo "$as_me:$LINENO: result: yes" >&5
4785echo "${ECHO_T}yes" >&6
4786else
4787 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4788echo "${ECHO_T}no, using $LN_S" >&6
4789fi
42ecbf5e 4790
ce2cded5
L
4791# find the maximum length of command line arguments
4792echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4793echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4794if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4796else
4797 i=0
4798 teststring="ABCD"
252b5132 4799
ce2cded5
L
4800 case $build_os in
4801 msdosdjgpp*)
4802 # On DJGPP, this test can blow up pretty badly due to problems in libc
4803 # (any single argument exceeding 2000 bytes causes a buffer overrun
4804 # during glob expansion). Even if it were fixed, the result of this
4805 # check would be larger than it should be.
4806 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4807 ;;
e5a52504 4808
ce2cded5
L
4809 gnu*)
4810 # Under GNU Hurd, this test is not required because there is
4811 # no limit to the length of command line arguments.
4812 # Libtool will interpret -1 as no limit whatsoever
4813 lt_cv_sys_max_cmd_len=-1;
4814 ;;
42ecbf5e 4815
ce2cded5
L
4816 cygwin* | mingw*)
4817 # On Win9x/ME, this test blows up -- it succeeds, but takes
4818 # about 5 minutes as the teststring grows exponentially.
4819 # Worse, since 9x/ME are not pre-emptively multitasking,
4820 # you end up with a "frozen" computer, even though with patience
4821 # the test eventually succeeds (with a max line length of 256k).
4822 # Instead, let's just punt: use the minimum linelength reported by
4823 # all of the supported platforms: 8192 (on NT/2K/XP).
4824 lt_cv_sys_max_cmd_len=8192;
4825 ;;
42ecbf5e 4826
ce2cded5
L
4827 amigaos*)
4828 # On AmigaOS with pdksh, this test takes hours, literally.
4829 # So we just punt and use a minimum line length of 8192.
4830 lt_cv_sys_max_cmd_len=8192;
4831 ;;
42ecbf5e 4832
ce2cded5
L
4833 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4834 # This has been around since 386BSD, at least. Likely further.
4835 if test -x /sbin/sysctl; then
4836 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4837 elif test -x /usr/sbin/sysctl; then
4838 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4839 else
4840 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4841 fi
4842 # And add a safety zone
4843 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4844 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4845 ;;
42ecbf5e 4846
ce2cded5
L
4847 interix*)
4848 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4849 lt_cv_sys_max_cmd_len=196608
4850 ;;
d7040cdb 4851
ce2cded5
L
4852 osf*)
4853 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4854 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4855 # nice to cause kernel panics so lets avoid the loop below.
4856 # First set a reasonable default.
4857 lt_cv_sys_max_cmd_len=16384
4858 #
4859 if test -x /sbin/sysconfig; then
4860 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4861 *1*) lt_cv_sys_max_cmd_len=-1 ;;
d7040cdb 4862 esac
ce2cded5
L
4863 fi
4864 ;;
4865 sco3.2v5*)
4866 lt_cv_sys_max_cmd_len=102400
4867 ;;
4868 sysv5* | sco5v6* | sysv4.2uw2*)
4869 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4870 if test -n "$kargmax"; then
4871 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
d7040cdb 4872 else
ce2cded5 4873 lt_cv_sys_max_cmd_len=32768
d7040cdb 4874 fi
ce2cded5
L
4875 ;;
4876 *)
4877 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4878 if test -n $lt_cv_sys_max_cmd_len; then
4879 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4880 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4881 else
4882 # Make teststring a little bigger before we do anything with it.
4883 # a 1K string should be a reasonable start.
4884 for i in 1 2 3 4 5 6 7 8 ; do
4885 teststring=$teststring$teststring
4886 done
4887 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4888 # If test is not a shell built-in, we'll probably end up computing a
4889 # maximum length that is only half of the actual maximum length, but
4890 # we can't tell.
4891 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4892 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4893 test $i != 17 # 1/2 MB should be enough
4894 do
4895 i=`expr $i + 1`
4896 teststring=$teststring$teststring
4897 done
4898 # Only check the string length outside the loop.
4899 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4900 teststring=
4901 # Add a significant safety factor because C++ compilers can tack on
4902 # massive amounts of additional arguments before passing them to the
4903 # linker. It appears as though 1/2 is a usable value.
4904 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4905 fi
4906 ;;
4907 esac
d7040cdb 4908
ce2cded5 4909fi
d7040cdb 4910
ce2cded5
L
4911if test -n $lt_cv_sys_max_cmd_len ; then
4912 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4913echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
42ecbf5e 4914else
ce2cded5
L
4915 echo "$as_me:$LINENO: result: none" >&5
4916echo "${ECHO_T}none" >&6
4917fi
4918max_cmd_len=$lt_cv_sys_max_cmd_len
d7040cdb 4919
42ecbf5e 4920
252b5132 4921
42ecbf5e 4922
42ecbf5e 4923
d7040cdb 4924
d7040cdb 4925
ce2cded5
L
4926: ${CP="cp -f"}
4927: ${MV="mv -f"}
4928: ${RM="rm -f"}
d7040cdb 4929
ce2cded5
L
4930echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4931echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4932# Try some XSI features
4933xsi_shell=no
4934( _lt_dummy="a/b/c"
4935 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4936 = c,a/b,, ) >/dev/null 2>&1 \
4937 && xsi_shell=yes
4938echo "$as_me:$LINENO: result: $xsi_shell" >&5
4939echo "${ECHO_T}$xsi_shell" >&6
d7040cdb 4940
ce2cded5
L
4941
4942echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4943echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4944lt_shell_append=no
4945( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4946 >/dev/null 2>&1 \
4947 && lt_shell_append=yes
4948echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4949echo "${ECHO_T}$lt_shell_append" >&6
4950
4951
4952if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4953 lt_unset=unset
d7040cdb 4954else
ce2cded5 4955 lt_unset=false
d7040cdb 4956fi
42ecbf5e 4957
42ecbf5e 4958
42ecbf5e 4959
42ecbf5e 4960
d7040cdb 4961
ce2cded5
L
4962# test EBCDIC or ASCII
4963case `echo X|tr X '\101'` in
4964 A) # ASCII based system
4965 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4966 lt_SP2NL='tr \040 \012'
4967 lt_NL2SP='tr \015\012 \040\040'
4968 ;;
4969 *) # EBCDIC based system
4970 lt_SP2NL='tr \100 \n'
4971 lt_NL2SP='tr \r\n \100\100'
4972 ;;
4973esac
d7040cdb 4974
42ecbf5e 4975
d7040cdb 4976
d7040cdb 4977
d7040cdb
SE
4978
4979
d7040cdb 4980
d7040cdb 4981
42ecbf5e 4982
ce2cded5
L
4983echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4984echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4985if test "${lt_cv_ld_reload_flag+set}" = set; then
4986 echo $ECHO_N "(cached) $ECHO_C" >&6
4987else
4988 lt_cv_ld_reload_flag='-r'
42ecbf5e 4989fi
ce2cded5
L
4990echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4991echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4992reload_flag=$lt_cv_ld_reload_flag
4993case $reload_flag in
4994"" | " "*) ;;
4995*) reload_flag=" $reload_flag" ;;
4996esac
4997reload_cmds='$LD$reload_flag -o $output$reload_objs'
4998case $host_os in
4999 darwin*)
5000 if test "$GCC" = yes; then
5001 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5002 else
5003 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5004 fi
5005 ;;
5006esac
42ecbf5e 5007
252b5132 5008
d7040cdb 5009
252b5132 5010
252b5132 5011
252b5132 5012
252b5132
RH
5013
5014
ce2cded5
L
5015
5016
5017echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5018echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5019if test "${lt_cv_deplibs_check_method+set}" = set; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 5021else
ce2cded5
L
5022 lt_cv_file_magic_cmd='$MAGIC_CMD'
5023lt_cv_file_magic_test_file=
5024lt_cv_deplibs_check_method='unknown'
5025# Need to set the preceding variable on all platforms that support
5026# interlibrary dependencies.
5027# 'none' -- dependencies not supported.
5028# `unknown' -- same as none, but documents that we really don't know.
5029# 'pass_all' -- all dependencies passed with no checks.
5030# 'test_compile' -- check by making test program.
5031# 'file_magic [[regex]]' -- check by looking for files in library path
5032# which responds to the $file_magic_cmd with a given extended regex.
5033# If you have `file' or equivalent on your system and you're not sure
5034# whether `pass_all' will *always* work, you probably want this one.
b83ef3ee 5035
ce2cded5 5036case $host_os in
50e7d84b 5037aix[4-9]*)
ce2cded5
L
5038 lt_cv_deplibs_check_method=pass_all
5039 ;;
20e95c23 5040
ce2cded5
L
5041beos*)
5042 lt_cv_deplibs_check_method=pass_all
5043 ;;
20e95c23 5044
ce2cded5
L
5045bsdi[45]*)
5046 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5047 lt_cv_file_magic_cmd='/usr/bin/file -L'
5048 lt_cv_file_magic_test_file=/shlib/libc.so
5049 ;;
20e95c23 5050
ce2cded5
L
5051cygwin*)
5052 # func_win32_libid is a shell function defined in ltmain.sh
5053 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5054 lt_cv_file_magic_cmd='func_win32_libid'
5055 ;;
20e95c23 5056
ce2cded5
L
5057mingw* | pw32*)
5058 # Base MSYS/MinGW do not provide the 'file' command needed by
5059 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5060 # unless we find 'file', for example because we are cross-compiling.
5061 if ( file / ) >/dev/null 2>&1; then
5062 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5063 lt_cv_file_magic_cmd='func_win32_libid'
5064 else
5065 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5066 lt_cv_file_magic_cmd='$OBJDUMP -f'
5067 fi
5068 ;;
20e95c23 5069
ce2cded5
L
5070darwin* | rhapsody*)
5071 lt_cv_deplibs_check_method=pass_all
5072 ;;
20e95c23 5073
ce2cded5
L
5074freebsd* | dragonfly*)
5075 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5076 case $host_cpu in
5077 i*86 )
5078 # Not sure whether the presence of OpenBSD here was a mistake.
5079 # Let's accept both of them until this is cleared up.
5080 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5081 lt_cv_file_magic_cmd=/usr/bin/file
5082 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5083 ;;
5084 esac
5085 else
5086 lt_cv_deplibs_check_method=pass_all
5087 fi
5088 ;;
20e95c23 5089
ce2cded5
L
5090gnu*)
5091 lt_cv_deplibs_check_method=pass_all
5092 ;;
20e95c23 5093
ce2cded5
L
5094hpux10.20* | hpux11*)
5095 lt_cv_file_magic_cmd=/usr/bin/file
5096 case $host_cpu in
5097 ia64*)
5098 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5099 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5100 ;;
5101 hppa*64*)
5102 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5103 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5104 ;;
5105 *)
5106 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5107 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5108 ;;
5109 esac
5110 ;;
20e95c23 5111
ce2cded5
L
5112interix[3-9]*)
5113 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5114 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5115 ;;
20e95c23 5116
ce2cded5
L
5117irix5* | irix6* | nonstopux*)
5118 case $LD in
5119 *-32|*"-32 ") libmagic=32-bit;;
5120 *-n32|*"-n32 ") libmagic=N32;;
5121 *-64|*"-64 ") libmagic=64-bit;;
5122 *) libmagic=never-match;;
5123 esac
5124 lt_cv_deplibs_check_method=pass_all
5125 ;;
20e95c23 5126
ce2cded5
L
5127# This must be Linux ELF.
5128linux* | k*bsd*-gnu)
5129 lt_cv_deplibs_check_method=pass_all
5130 ;;
20e95c23 5131
ce2cded5
L
5132netbsd*)
5133 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5134 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5135 else
5136 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5137 fi
5138 ;;
20e95c23 5139
ce2cded5
L
5140newos6*)
5141 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5142 lt_cv_file_magic_cmd=/usr/bin/file
5143 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5144 ;;
20e95c23 5145
ce2cded5
L
5146*nto* | *qnx*)
5147 lt_cv_deplibs_check_method=pass_all
5148 ;;
20e95c23 5149
ce2cded5
L
5150openbsd*)
5151 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5152 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5153 else
5154 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5155 fi
5156 ;;
20e95c23 5157
ce2cded5
L
5158osf3* | osf4* | osf5*)
5159 lt_cv_deplibs_check_method=pass_all
5160 ;;
20e95c23 5161
ce2cded5
L
5162rdos*)
5163 lt_cv_deplibs_check_method=pass_all
5164 ;;
20e95c23 5165
ce2cded5
L
5166solaris*)
5167 lt_cv_deplibs_check_method=pass_all
5168 ;;
20e95c23 5169
ce2cded5
L
5170sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5171 lt_cv_deplibs_check_method=pass_all
5172 ;;
20e95c23 5173
ce2cded5
L
5174sysv4 | sysv4.3*)
5175 case $host_vendor in
5176 motorola)
5177 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5178 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5179 ;;
5180 ncr)
5181 lt_cv_deplibs_check_method=pass_all
5182 ;;
5183 sequent)
5184 lt_cv_file_magic_cmd='/bin/file'
5185 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5186 ;;
5187 sni)
5188 lt_cv_file_magic_cmd='/bin/file'
5189 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5190 lt_cv_file_magic_test_file=/lib/libc.so
5191 ;;
5192 siemens)
5193 lt_cv_deplibs_check_method=pass_all
5194 ;;
5195 pc)
5196 lt_cv_deplibs_check_method=pass_all
5197 ;;
5198 esac
5199 ;;
d7040cdb 5200
ce2cded5
L
5201tpf*)
5202 lt_cv_deplibs_check_method=pass_all
5203 ;;
5204esac
d7040cdb 5205
20e95c23 5206fi
ce2cded5
L
5207echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5208echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5209file_magic_cmd=$lt_cv_file_magic_cmd
5210deplibs_check_method=$lt_cv_deplibs_check_method
5211test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb
SE
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
20e95c23 5223
ce2cded5
L
5224if test -n "$ac_tool_prefix"; then
5225 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5226set dummy ${ac_tool_prefix}ar; ac_word=$2
5227echo "$as_me:$LINENO: checking for $ac_word" >&5
5228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5229if test "${ac_cv_prog_AR+set}" = set; then
d7040cdb 5230 echo $ECHO_N "(cached) $ECHO_C" >&6
20e95c23 5231else
ce2cded5
L
5232 if test -n "$AR"; then
5233 ac_cv_prog_AR="$AR" # Let the user override the test.
d7040cdb 5234else
ce2cded5
L
5235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236for as_dir in $PATH
5237do
5238 IFS=$as_save_IFS
5239 test -z "$as_dir" && as_dir=.
5240 for ac_exec_ext in '' $ac_executable_extensions; do
5241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5242 ac_cv_prog_AR="${ac_tool_prefix}ar"
5243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5244 break 2
5245 fi
5246done
5247done
5248
d7040cdb 5249fi
42ecbf5e 5250fi
ce2cded5
L
5251AR=$ac_cv_prog_AR
5252if test -n "$AR"; then
5253 echo "$as_me:$LINENO: result: $AR" >&5
5254echo "${ECHO_T}$AR" >&6
5255else
5256 echo "$as_me:$LINENO: result: no" >&5
5257echo "${ECHO_T}no" >&6
5258fi
d7040cdb 5259
ce2cded5
L
5260fi
5261if test -z "$ac_cv_prog_AR"; then
5262 ac_ct_AR=$AR
5263 # Extract the first word of "ar", so it can be a program name with args.
5264set dummy ar; ac_word=$2
5265echo "$as_me:$LINENO: checking for $ac_word" >&5
5266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5267if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5268 echo $ECHO_N "(cached) $ECHO_C" >&6
5269else
5270 if test -n "$ac_ct_AR"; then
5271 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5272else
5273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274for as_dir in $PATH
5275do
5276 IFS=$as_save_IFS
5277 test -z "$as_dir" && as_dir=.
5278 for ac_exec_ext in '' $ac_executable_extensions; do
5279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5280 ac_cv_prog_ac_ct_AR="ar"
5281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5282 break 2
5283 fi
5284done
5285done
d7040cdb 5286
ce2cded5
L
5287 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5288fi
5289fi
5290ac_ct_AR=$ac_cv_prog_ac_ct_AR
5291if test -n "$ac_ct_AR"; then
5292 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5293echo "${ECHO_T}$ac_ct_AR" >&6
5294else
5295 echo "$as_me:$LINENO: result: no" >&5
5296echo "${ECHO_T}no" >&6
5297fi
d7040cdb 5298
ce2cded5
L
5299 AR=$ac_ct_AR
5300else
5301 AR="$ac_cv_prog_AR"
5302fi
d7040cdb 5303
ce2cded5
L
5304test -z "$AR" && AR=ar
5305test -z "$AR_FLAGS" && AR_FLAGS=cru
d7040cdb
SE
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
ce2cded5
L
5317if test -n "$ac_tool_prefix"; then
5318 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5319set dummy ${ac_tool_prefix}strip; ac_word=$2
5320echo "$as_me:$LINENO: checking for $ac_word" >&5
5321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5322if test "${ac_cv_prog_STRIP+set}" = set; then
5323 echo $ECHO_N "(cached) $ECHO_C" >&6
5324else
5325 if test -n "$STRIP"; then
5326 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5327else
5328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329for as_dir in $PATH
5330do
5331 IFS=$as_save_IFS
5332 test -z "$as_dir" && as_dir=.
5333 for ac_exec_ext in '' $ac_executable_extensions; do
5334 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5335 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5337 break 2
20e95c23 5338 fi
d7040cdb 5339done
ce2cded5 5340done
d7040cdb 5341
ce2cded5
L
5342fi
5343fi
5344STRIP=$ac_cv_prog_STRIP
5345if test -n "$STRIP"; then
5346 echo "$as_me:$LINENO: result: $STRIP" >&5
5347echo "${ECHO_T}$STRIP" >&6
5348else
5349 echo "$as_me:$LINENO: result: no" >&5
5350echo "${ECHO_T}no" >&6
5351fi
d7040cdb 5352
ce2cded5
L
5353fi
5354if test -z "$ac_cv_prog_STRIP"; then
5355 ac_ct_STRIP=$STRIP
5356 # Extract the first word of "strip", so it can be a program name with args.
5357set dummy strip; ac_word=$2
5358echo "$as_me:$LINENO: checking for $ac_word" >&5
5359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5360if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
20e95c23
DJ
5361 echo $ECHO_N "(cached) $ECHO_C" >&6
5362else
ce2cded5
L
5363 if test -n "$ac_ct_STRIP"; then
5364 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5365else
5366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367for as_dir in $PATH
5368do
5369 IFS=$as_save_IFS
5370 test -z "$as_dir" && as_dir=.
5371 for ac_exec_ext in '' $ac_executable_extensions; do
5372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5373 ac_cv_prog_ac_ct_STRIP="strip"
5374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5375 break 2
5376 fi
5377done
5378done
d7040cdb 5379
ce2cded5 5380 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
20e95c23 5381fi
ce2cded5
L
5382fi
5383ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5384if test -n "$ac_ct_STRIP"; then
5385 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5386echo "${ECHO_T}$ac_ct_STRIP" >&6
42ecbf5e
DJ
5387else
5388 echo "$as_me:$LINENO: result: no" >&5
5389echo "${ECHO_T}no" >&6
5390fi
5391
ce2cded5
L
5392 STRIP=$ac_ct_STRIP
5393else
5394 STRIP="$ac_cv_prog_STRIP"
5395fi
20e95c23 5396
ce2cded5 5397test -z "$STRIP" && STRIP=:
20e95c23 5398
20e95c23 5399
20e95c23 5400
ce2cded5
L
5401
5402
5403
5404if test -n "$ac_tool_prefix"; then
5405 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5406set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5407echo "$as_me:$LINENO: checking for $ac_word" >&5
5408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5409if test "${ac_cv_prog_RANLIB+set}" = set; then
42ecbf5e
DJ
5410 echo $ECHO_N "(cached) $ECHO_C" >&6
5411else
ce2cded5
L
5412 if test -n "$RANLIB"; then
5413 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5414else
5415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416for as_dir in $PATH
5417do
5418 IFS=$as_save_IFS
5419 test -z "$as_dir" && as_dir=.
5420 for ac_exec_ext in '' $ac_executable_extensions; do
5421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5422 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5424 break 2
5425 fi
5426done
5427done
d7040cdb 5428
ce2cded5
L
5429fi
5430fi
5431RANLIB=$ac_cv_prog_RANLIB
5432if test -n "$RANLIB"; then
5433 echo "$as_me:$LINENO: result: $RANLIB" >&5
5434echo "${ECHO_T}$RANLIB" >&6
5435else
5436 echo "$as_me:$LINENO: result: no" >&5
5437echo "${ECHO_T}no" >&6
5438fi
d7040cdb 5439
20e95c23 5440fi
ce2cded5
L
5441if test -z "$ac_cv_prog_RANLIB"; then
5442 ac_ct_RANLIB=$RANLIB
5443 # Extract the first word of "ranlib", so it can be a program name with args.
5444set dummy ranlib; ac_word=$2
5445echo "$as_me:$LINENO: checking for $ac_word" >&5
5446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5447if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5448 echo $ECHO_N "(cached) $ECHO_C" >&6
5449else
5450 if test -n "$ac_ct_RANLIB"; then
5451 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5452else
5453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5454for as_dir in $PATH
5455do
5456 IFS=$as_save_IFS
5457 test -z "$as_dir" && as_dir=.
5458 for ac_exec_ext in '' $ac_executable_extensions; do
5459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5460 ac_cv_prog_ac_ct_RANLIB="ranlib"
5461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5462 break 2
5463 fi
5464done
5465done
d7040cdb 5466
ce2cded5
L
5467 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5468fi
5469fi
5470ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5471if test -n "$ac_ct_RANLIB"; then
5472 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5473echo "${ECHO_T}$ac_ct_RANLIB" >&6
20e95c23
DJ
5474else
5475 echo "$as_me:$LINENO: result: no" >&5
5476echo "${ECHO_T}no" >&6
5477fi
5478
ce2cded5
L
5479 RANLIB=$ac_ct_RANLIB
5480else
5481 RANLIB="$ac_cv_prog_RANLIB"
d7040cdb 5482fi
20e95c23 5483
ce2cded5 5484test -z "$RANLIB" && RANLIB=:
20e95c23 5485
20e95c23
DJ
5486
5487
5488
5489
d7040cdb 5490
ce2cded5
L
5491# Determine commands to create old-style static archives.
5492old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5493old_postinstall_cmds='chmod 644 $oldlib'
5494old_postuninstall_cmds=
d7040cdb 5495
ce2cded5
L
5496if test -n "$RANLIB"; then
5497 case $host_os in
5498 openbsd*)
5499 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5500 ;;
5501 *)
5502 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5503 ;;
5504 esac
5505 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5506fi
d7040cdb
SE
5507
5508
5509
5510
5511
5512
5513
d7040cdb 5514
d7040cdb 5515
d7040cdb 5516
d7040cdb 5517
d7040cdb 5518
d7040cdb
SE
5519
5520
d7040cdb 5521
d7040cdb 5522
d7040cdb 5523
d7040cdb 5524
d7040cdb 5525
42ecbf5e 5526
d7040cdb
SE
5527
5528
5529
5530
5531
5532
d7040cdb 5533
d7040cdb 5534
d7040cdb 5535
d7040cdb 5536
d7040cdb 5537
d7040cdb 5538
d7040cdb 5539
d7040cdb 5540
ce2cded5
L
5541# If no C compiler was specified, use CC.
5542LTCC=${LTCC-"$CC"}
d7040cdb 5543
ce2cded5
L
5544# If no C compiler flags were specified, use CFLAGS.
5545LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 5546
ce2cded5
L
5547# Allow CC to be a program name with arguments.
5548compiler=$CC
d7040cdb 5549
d7040cdb 5550
ce2cded5
L
5551# Check for command to grab the raw symbol name followed by C symbol from nm.
5552echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5553echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5554if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5555 echo $ECHO_N "(cached) $ECHO_C" >&6
5556else
d7040cdb 5557
ce2cded5
L
5558# These are sane defaults that work on at least a few old systems.
5559# [They come from Ultrix. What could be older than Ultrix?!! ;)]
d7040cdb 5560
ce2cded5
L
5561# Character class describing NM global symbol codes.
5562symcode='[BCDEGRST]'
d7040cdb 5563
ce2cded5
L
5564# Regexp to match symbols that can be accessed directly from C.
5565sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
d7040cdb 5566
ce2cded5
L
5567# Define system-specific variables.
5568case $host_os in
5569aix*)
5570 symcode='[BCDT]'
5571 ;;
5572cygwin* | mingw* | pw32*)
5573 symcode='[ABCDGISTW]'
5574 ;;
5575hpux*)
5576 if test "$host_cpu" = ia64; then
5577 symcode='[ABCDEGRST]'
5578 fi
5579 ;;
5580irix* | nonstopux*)
5581 symcode='[BCDEGRST]'
5582 ;;
5583osf*)
5584 symcode='[BCDEGQRST]'
5585 ;;
5586solaris*)
5587 symcode='[BDRT]'
5588 ;;
5589sco3.2v5*)
5590 symcode='[DT]'
5591 ;;
5592sysv4.2uw2*)
5593 symcode='[DT]'
5594 ;;
5595sysv5* | sco5v6* | unixware* | OpenUNIX*)
5596 symcode='[ABDT]'
5597 ;;
5598sysv4)
5599 symcode='[DFNSTU]'
5600 ;;
5601esac
d7040cdb 5602
ce2cded5
L
5603# If we're using GNU nm, then use its standard symbol codes.
5604case `$NM -V 2>&1` in
5605*GNU* | *'with BFD'*)
5606 symcode='[ABCDGIRSTW]' ;;
5607esac
d7040cdb 5608
ce2cded5
L
5609# Transform an extracted symbol line into a proper C declaration.
5610# Some systems (esp. on ia64) link data and code symbols differently,
5611# so use this general approach.
5612lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
d7040cdb 5613
ce2cded5
L
5614# Transform an extracted symbol line into symbol name and symbol address
5615lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
d7040cdb 5616
ce2cded5
L
5617# Handle CRLF in mingw tool chain
5618opt_cr=
5619case $build_os in
5620mingw*)
5621 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5622 ;;
5623esac
d7040cdb 5624
ce2cded5
L
5625# Try without a prefix underscore, then with it.
5626for ac_symprfx in "" "_"; do
d7040cdb 5627
ce2cded5
L
5628 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5629 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 5630
ce2cded5
L
5631 # Write the raw and C identifiers.
5632 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5633 # Fake it for dumpbin and say T for any non-static function
5634 # and D for any global variable.
5635 # Also find C++ and __fastcall symbols from MSVC++,
5636 # which start with @ or ?.
5637 lt_cv_sys_global_symbol_pipe="$AWK '"\
5638" {last_section=section; section=\$ 3};"\
5639" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5640" \$ 0!~/External *\|/{next};"\
5641" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5642" {if(hide[section]) next};"\
5643" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5644" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5645" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5646" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5647" ' prfx=^$ac_symprfx"
5648 else
5649 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5650 fi
d7040cdb 5651
ce2cded5
L
5652 # Check to see that the pipe works correctly.
5653 pipe_works=no
d7040cdb 5654
ce2cded5
L
5655 rm -f conftest*
5656 cat > conftest.$ac_ext <<_LT_EOF
5657#ifdef __cplusplus
5658extern "C" {
5659#endif
5660char nm_test_var;
5661void nm_test_func(void);
5662void nm_test_func(void){}
5663#ifdef __cplusplus
5664}
5665#endif
5666int main(){nm_test_var='a';nm_test_func();return(0);}
5667_LT_EOF
d7040cdb 5668
ce2cded5
L
5669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5670 (eval $ac_compile) 2>&5
5671 ac_status=$?
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); }; then
5674 # Now try to grab the symbols.
5675 nlist=conftest.nm
5676 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5677 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5678 ac_status=$?
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); } && test -s "$nlist"; then
5681 # Try sorting and uniquifying the output.
5682 if sort "$nlist" | uniq > "$nlist"T; then
5683 mv -f "$nlist"T "$nlist"
5684 else
5685 rm -f "$nlist"T
5686 fi
d7040cdb 5687
ce2cded5
L
5688 # Make sure that we snagged all the symbols we need.
5689 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5690 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5691 cat <<_LT_EOF > conftest.$ac_ext
5692#ifdef __cplusplus
5693extern "C" {
5694#endif
d7040cdb 5695
ce2cded5
L
5696_LT_EOF
5697 # Now generate the symbol file.
5698 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d7040cdb 5699
ce2cded5 5700 cat <<_LT_EOF >> conftest.$ac_ext
d7040cdb 5701
ce2cded5
L
5702/* The mapping between symbol names and symbols. */
5703const struct {
5704 const char *name;
5705 void *address;
5706}
5707lt__PROGRAM__LTX_preloaded_symbols[] =
5708{
5709 { "@PROGRAM@", (void *) 0 },
5710_LT_EOF
5711 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5712 cat <<\_LT_EOF >> conftest.$ac_ext
5713 {0, (void *) 0}
5714};
d7040cdb 5715
ce2cded5
L
5716/* This works around a problem in FreeBSD linker */
5717#ifdef FREEBSD_WORKAROUND
5718static const void *lt_preloaded_setup() {
5719 return lt__PROGRAM__LTX_preloaded_symbols;
5720}
5721#endif
d7040cdb 5722
ce2cded5
L
5723#ifdef __cplusplus
5724}
5725#endif
5726_LT_EOF
5727 # Now try linking the two files.
5728 mv conftest.$ac_objext conftstm.$ac_objext
5729 lt_save_LIBS="$LIBS"
5730 lt_save_CFLAGS="$CFLAGS"
5731 LIBS="conftstm.$ac_objext"
5732 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5734 (eval $ac_link) 2>&5
5735 ac_status=$?
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5738 pipe_works=yes
5739 fi
5740 LIBS="$lt_save_LIBS"
5741 CFLAGS="$lt_save_CFLAGS"
5742 else
5743 echo "cannot find nm_test_func in $nlist" >&5
5744 fi
5745 else
5746 echo "cannot find nm_test_var in $nlist" >&5
5747 fi
5748 else
5749 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5750 fi
5751 else
5752 echo "$progname: failed program was:" >&5
5753 cat conftest.$ac_ext >&5
5754 fi
5755 rm -f conftest* conftst*
d7040cdb 5756
ce2cded5
L
5757 # Do not use the global_symbol_pipe unless it works.
5758 if test "$pipe_works" = yes; then
5759 break
5760 else
5761 lt_cv_sys_global_symbol_pipe=
5762 fi
5763done
d7040cdb 5764
42ecbf5e 5765fi
d7040cdb 5766
ce2cded5
L
5767if test -z "$lt_cv_sys_global_symbol_pipe"; then
5768 lt_cv_sys_global_symbol_to_cdecl=
5769fi
5770if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5771 echo "$as_me:$LINENO: result: failed" >&5
5772echo "${ECHO_T}failed" >&6
42ecbf5e 5773else
ce2cded5
L
5774 echo "$as_me:$LINENO: result: ok" >&5
5775echo "${ECHO_T}ok" >&6
42ecbf5e
DJ
5776fi
5777
42ecbf5e 5778
d7040cdb
SE
5779
5780
5781
5782
5783
20e95c23 5784
d7040cdb 5785
d7040cdb
SE
5786
5787
5788
5789
5790
5791
5792
20e95c23 5793
ce2cded5
L
5794# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5795if test "${enable_libtool_lock+set}" = set; then
5796 enableval="$enable_libtool_lock"
d7040cdb 5797
ce2cded5
L
5798fi;
5799test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
d7040cdb 5800
ce2cded5
L
5801# Some flags need to be propagated to the compiler or linker for good
5802# libtool support.
5803case $host in
5804ia64-*-hpux*)
5805 # Find out which ABI we are using.
5806 echo 'int i;' > conftest.$ac_ext
5807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5808 (eval $ac_compile) 2>&5
5809 ac_status=$?
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); }; then
5812 case `/usr/bin/file conftest.$ac_objext` in
5813 *ELF-32*)
5814 HPUX_IA64_MODE="32"
5815 ;;
5816 *ELF-64*)
5817 HPUX_IA64_MODE="64"
5818 ;;
5819 esac
5820 fi
5821 rm -rf conftest*
5822 ;;
5823*-*-irix6*)
5824 # Find out which ABI we are using.
6194aaab 5825 echo '#line 5825 "configure"' > conftest.$ac_ext
ce2cded5
L
5826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5827 (eval $ac_compile) 2>&5
5828 ac_status=$?
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; then
5831 if test "$lt_cv_prog_gnu_ld" = yes; then
5832 case `/usr/bin/file conftest.$ac_objext` in
5833 *32-bit*)
5834 LD="${LD-ld} -melf32bsmip"
5835 ;;
5836 *N32*)
5837 LD="${LD-ld} -melf32bmipn32"
5838 ;;
5839 *64-bit*)
5840 LD="${LD-ld} -melf64bmip"
5841 ;;
5842 esac
5843 else
5844 case `/usr/bin/file conftest.$ac_objext` in
5845 *32-bit*)
5846 LD="${LD-ld} -32"
5847 ;;
5848 *N32*)
5849 LD="${LD-ld} -n32"
5850 ;;
5851 *64-bit*)
5852 LD="${LD-ld} -64"
5853 ;;
5854 esac
5855 fi
5856 fi
5857 rm -rf conftest*
5858 ;;
d7040cdb 5859
ce2cded5
L
5860x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5861s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5862 # Find out which ABI we are using.
5863 echo 'int i;' > conftest.$ac_ext
5864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5865 (eval $ac_compile) 2>&5
5866 ac_status=$?
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; then
5869 case `/usr/bin/file conftest.o` in
5870 *32-bit*)
5871 case $host in
5872 x86_64-*kfreebsd*-gnu)
5873 LD="${LD-ld} -m elf_i386_fbsd"
5874 ;;
5875 x86_64-*linux*)
5876 LD="${LD-ld} -m elf_i386"
5877 ;;
5878 ppc64-*linux*|powerpc64-*linux*)
5879 LD="${LD-ld} -m elf32ppclinux"
5880 ;;
5881 s390x-*linux*)
5882 LD="${LD-ld} -m elf_s390"
5883 ;;
5884 sparc64-*linux*)
5885 LD="${LD-ld} -m elf32_sparc"
5886 ;;
5887 esac
5888 ;;
5889 *64-bit*)
5890 case $host in
5891 x86_64-*kfreebsd*-gnu)
5892 LD="${LD-ld} -m elf_x86_64_fbsd"
5893 ;;
5894 x86_64-*linux*)
5895 LD="${LD-ld} -m elf_x86_64"
5896 ;;
5897 ppc*-*linux*|powerpc*-*linux*)
5898 LD="${LD-ld} -m elf64ppc"
5899 ;;
5900 s390*-*linux*|s390*-*tpf*)
5901 LD="${LD-ld} -m elf64_s390"
5902 ;;
5903 sparc*-*linux*)
5904 LD="${LD-ld} -m elf64_sparc"
5905 ;;
5906 esac
5907 ;;
5908 esac
5909 fi
5910 rm -rf conftest*
5911 ;;
d7040cdb 5912
ce2cded5
L
5913*-*-sco3.2v5*)
5914 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5915 SAVE_CFLAGS="$CFLAGS"
5916 CFLAGS="$CFLAGS -belf"
5917 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5918echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5919if test "${lt_cv_cc_needs_belf+set}" = set; then
20e95c23
DJ
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
5921else
ce2cded5
L
5922 ac_ext=c
5923ac_cpp='$CPP $CPPFLAGS'
5924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5926ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 5927
ce2cded5
L
5928 cat >conftest.$ac_ext <<_ACEOF
5929/* confdefs.h. */
5930_ACEOF
5931cat confdefs.h >>conftest.$ac_ext
5932cat >>conftest.$ac_ext <<_ACEOF
5933/* end confdefs.h. */
d7040cdb 5934
ce2cded5
L
5935int
5936main ()
5937{
d7040cdb 5938
ce2cded5
L
5939 ;
5940 return 0;
5941}
5942_ACEOF
5943rm -f conftest.$ac_objext conftest$ac_exeext
5944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5945 (eval $ac_link) 2>conftest.er1
5946 ac_status=$?
5947 grep -v '^ *+' conftest.er1 >conftest.err
5948 rm -f conftest.er1
5949 cat conftest.err >&5
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); } &&
5952 { ac_try='test -z "$ac_c_werror_flag"
5953 || test ! -s conftest.err'
5954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5955 (eval $ac_try) 2>&5
5956 ac_status=$?
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); }; } &&
5959 { ac_try='test -s conftest$ac_exeext'
5960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5961 (eval $ac_try) 2>&5
5962 ac_status=$?
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); }; }; then
5965 lt_cv_cc_needs_belf=yes
d7040cdb 5966else
ce2cded5
L
5967 echo "$as_me: failed program was:" >&5
5968sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 5969
ce2cded5
L
5970lt_cv_cc_needs_belf=no
5971fi
5972rm -f conftest.err conftest.$ac_objext \
5973 conftest$ac_exeext conftest.$ac_ext
5974 ac_ext=c
5975ac_cpp='$CPP $CPPFLAGS'
5976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5978ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 5979
ce2cded5
L
5980fi
5981echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5982echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5983 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5984 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5985 CFLAGS="$SAVE_CFLAGS"
5986 fi
5987 ;;
5988sparc*-*solaris*)
5989 # Find out which ABI we are using.
5990 echo 'int i;' > conftest.$ac_ext
5991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5992 (eval $ac_compile) 2>&5
5993 ac_status=$?
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); }; then
5996 case `/usr/bin/file conftest.o` in
5997 *64-bit*)
5998 case $lt_cv_prog_gnu_ld in
5999 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6000 *) LD="${LD-ld} -64" ;;
6001 esac
6002 ;;
6003 esac
6004 fi
6005 rm -rf conftest*
6006 ;;
6007esac
d7040cdb 6008
ce2cded5 6009need_locks="$enable_libtool_lock"
d7040cdb 6010
ce2cded5
L
6011ac_ext=c
6012ac_cpp='$CPP $CPPFLAGS'
6013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6015ac_compiler_gnu=$ac_cv_c_compiler_gnu
6016echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6017echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6018# On Suns, sometimes $CPP names a directory.
6019if test -n "$CPP" && test -d "$CPP"; then
6020 CPP=
6021fi
6022if test -z "$CPP"; then
6023 if test "${ac_cv_prog_CPP+set}" = set; then
6024 echo $ECHO_N "(cached) $ECHO_C" >&6
6025else
6026 # Double quotes because CPP needs to be expanded
6027 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6028 do
6029 ac_preproc_ok=false
6030for ac_c_preproc_warn_flag in '' yes
6031do
6032 # Use a header file that comes with gcc, so configuring glibc
6033 # with a fresh cross-compiler works.
6034 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6035 # <limits.h> exists even on freestanding compilers.
6036 # On the NeXT, cc -E runs the code through the compiler's parser,
6037 # not just through cpp. "Syntax error" is here to catch this case.
6038 cat >conftest.$ac_ext <<_ACEOF
6039/* confdefs.h. */
6040_ACEOF
6041cat confdefs.h >>conftest.$ac_ext
6042cat >>conftest.$ac_ext <<_ACEOF
6043/* end confdefs.h. */
6044#ifdef __STDC__
6045# include <limits.h>
6046#else
6047# include <assert.h>
6048#endif
6049 Syntax error
6050_ACEOF
6051if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6052 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6053 ac_status=$?
6054 grep -v '^ *+' conftest.er1 >conftest.err
6055 rm -f conftest.er1
6056 cat conftest.err >&5
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); } >/dev/null; then
6059 if test -s conftest.err; then
6060 ac_cpp_err=$ac_c_preproc_warn_flag
6061 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6062 else
6063 ac_cpp_err=
6064 fi
6065else
6066 ac_cpp_err=yes
6067fi
6068if test -z "$ac_cpp_err"; then
6069 :
6070else
6071 echo "$as_me: failed program was:" >&5
6072sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6073
ce2cded5
L
6074 # Broken: fails on valid input.
6075continue
6076fi
6077rm -f conftest.err conftest.$ac_ext
d7040cdb 6078
ce2cded5
L
6079 # OK, works on sane cases. Now check whether non-existent headers
6080 # can be detected and how.
6081 cat >conftest.$ac_ext <<_ACEOF
6082/* confdefs.h. */
6083_ACEOF
6084cat confdefs.h >>conftest.$ac_ext
6085cat >>conftest.$ac_ext <<_ACEOF
6086/* end confdefs.h. */
6087#include <ac_nonexistent.h>
6088_ACEOF
6089if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6090 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6091 ac_status=$?
6092 grep -v '^ *+' conftest.er1 >conftest.err
6093 rm -f conftest.er1
6094 cat conftest.err >&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); } >/dev/null; then
6097 if test -s conftest.err; then
6098 ac_cpp_err=$ac_c_preproc_warn_flag
6099 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6100 else
6101 ac_cpp_err=
6102 fi
6103else
6104 ac_cpp_err=yes
6105fi
6106if test -z "$ac_cpp_err"; then
6107 # Broken: success on invalid input.
6108continue
6109else
6110 echo "$as_me: failed program was:" >&5
6111sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6112
ce2cded5
L
6113 # Passes both tests.
6114ac_preproc_ok=:
6115break
6116fi
6117rm -f conftest.err conftest.$ac_ext
d7040cdb 6118
ce2cded5
L
6119done
6120# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6121rm -f conftest.err conftest.$ac_ext
6122if $ac_preproc_ok; then
6123 break
6124fi
d7040cdb 6125
ce2cded5
L
6126 done
6127 ac_cv_prog_CPP=$CPP
d7040cdb 6128
ce2cded5
L
6129fi
6130 CPP=$ac_cv_prog_CPP
6131else
6132 ac_cv_prog_CPP=$CPP
6133fi
6134echo "$as_me:$LINENO: result: $CPP" >&5
6135echo "${ECHO_T}$CPP" >&6
6136ac_preproc_ok=false
6137for ac_c_preproc_warn_flag in '' yes
6138do
6139 # Use a header file that comes with gcc, so configuring glibc
6140 # with a fresh cross-compiler works.
6141 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6142 # <limits.h> exists even on freestanding compilers.
6143 # On the NeXT, cc -E runs the code through the compiler's parser,
6144 # not just through cpp. "Syntax error" is here to catch this case.
6145 cat >conftest.$ac_ext <<_ACEOF
6146/* confdefs.h. */
6147_ACEOF
6148cat confdefs.h >>conftest.$ac_ext
6149cat >>conftest.$ac_ext <<_ACEOF
6150/* end confdefs.h. */
6151#ifdef __STDC__
6152# include <limits.h>
6153#else
6154# include <assert.h>
6155#endif
6156 Syntax error
6157_ACEOF
6158if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6159 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6160 ac_status=$?
6161 grep -v '^ *+' conftest.er1 >conftest.err
6162 rm -f conftest.er1
6163 cat conftest.err >&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); } >/dev/null; then
6166 if test -s conftest.err; then
6167 ac_cpp_err=$ac_c_preproc_warn_flag
6168 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6169 else
6170 ac_cpp_err=
6171 fi
6172else
6173 ac_cpp_err=yes
6174fi
6175if test -z "$ac_cpp_err"; then
6176 :
6177else
6178 echo "$as_me: failed program was:" >&5
6179sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6180
ce2cded5
L
6181 # Broken: fails on valid input.
6182continue
6183fi
6184rm -f conftest.err conftest.$ac_ext
d7040cdb 6185
ce2cded5
L
6186 # OK, works on sane cases. Now check whether non-existent headers
6187 # can be detected and how.
6188 cat >conftest.$ac_ext <<_ACEOF
6189/* confdefs.h. */
6190_ACEOF
6191cat confdefs.h >>conftest.$ac_ext
6192cat >>conftest.$ac_ext <<_ACEOF
6193/* end confdefs.h. */
6194#include <ac_nonexistent.h>
6195_ACEOF
6196if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6197 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6198 ac_status=$?
6199 grep -v '^ *+' conftest.er1 >conftest.err
6200 rm -f conftest.er1
6201 cat conftest.err >&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); } >/dev/null; then
6204 if test -s conftest.err; then
6205 ac_cpp_err=$ac_c_preproc_warn_flag
6206 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6207 else
6208 ac_cpp_err=
6209 fi
6210else
6211 ac_cpp_err=yes
6212fi
6213if test -z "$ac_cpp_err"; then
6214 # Broken: success on invalid input.
6215continue
6216else
6217 echo "$as_me: failed program was:" >&5
6218sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6219
ce2cded5
L
6220 # Passes both tests.
6221ac_preproc_ok=:
6222break
6223fi
6224rm -f conftest.err conftest.$ac_ext
d7040cdb 6225
ce2cded5
L
6226done
6227# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6228rm -f conftest.err conftest.$ac_ext
6229if $ac_preproc_ok; then
6230 :
6231else
6232 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6233See \`config.log' for more details." >&5
6234echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6235See \`config.log' for more details." >&2;}
6236 { (exit 1); exit 1; }; }
6237fi
d7040cdb 6238
ce2cded5
L
6239ac_ext=c
6240ac_cpp='$CPP $CPPFLAGS'
6241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6243ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 6244
d7040cdb 6245
ce2cded5
L
6246echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6247echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6248if test "${ac_cv_header_stdc+set}" = set; then
6249 echo $ECHO_N "(cached) $ECHO_C" >&6
6250else
6251 cat >conftest.$ac_ext <<_ACEOF
6252/* confdefs.h. */
6253_ACEOF
6254cat confdefs.h >>conftest.$ac_ext
6255cat >>conftest.$ac_ext <<_ACEOF
6256/* end confdefs.h. */
6257#include <stdlib.h>
6258#include <stdarg.h>
6259#include <string.h>
6260#include <float.h>
d7040cdb 6261
ce2cded5
L
6262int
6263main ()
6264{
d7040cdb 6265
20e95c23
DJ
6266 ;
6267 return 0;
6268}
42ecbf5e 6269_ACEOF
ce2cded5
L
6270rm -f conftest.$ac_objext
6271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6272 (eval $ac_compile) 2>conftest.er1
42ecbf5e
DJ
6273 ac_status=$?
6274 grep -v '^ *+' conftest.er1 >conftest.err
6275 rm -f conftest.er1
6276 cat conftest.err >&5
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20e95c23
DJ
6278 (exit $ac_status); } &&
6279 { ac_try='test -z "$ac_c_werror_flag"
6280 || test ! -s conftest.err'
6281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6282 (eval $ac_try) 2>&5
6283 ac_status=$?
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); }; } &&
ce2cded5 6286 { ac_try='test -s conftest.$ac_objext'
20e95c23
DJ
6287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6288 (eval $ac_try) 2>&5
6289 ac_status=$?
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); }; }; then
ce2cded5 6292 ac_cv_header_stdc=yes
42ecbf5e
DJ
6293else
6294 echo "$as_me: failed program was:" >&5
6295sed 's/^/| /' conftest.$ac_ext >&5
6296
ce2cded5 6297ac_cv_header_stdc=no
42ecbf5e 6298fi
ce2cded5 6299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 6300
ce2cded5
L
6301if test $ac_cv_header_stdc = yes; then
6302 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6303 cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
6304/* confdefs.h. */
6305_ACEOF
6306cat confdefs.h >>conftest.$ac_ext
6307cat >>conftest.$ac_ext <<_ACEOF
6308/* end confdefs.h. */
ce2cded5 6309#include <string.h>
20e95c23 6310
42ecbf5e 6311_ACEOF
ce2cded5
L
6312if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6313 $EGREP "memchr" >/dev/null 2>&1; then
6314 :
6315else
6316 ac_cv_header_stdc=no
6317fi
6318rm -f conftest*
d7040cdb 6319
d7040cdb 6320fi
ce2cded5
L
6321
6322if test $ac_cv_header_stdc = yes; then
6323 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6324 cat >conftest.$ac_ext <<_ACEOF
6325/* confdefs.h. */
6326_ACEOF
6327cat confdefs.h >>conftest.$ac_ext
6328cat >>conftest.$ac_ext <<_ACEOF
6329/* end confdefs.h. */
6330#include <stdlib.h>
6331
6332_ACEOF
6333if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6334 $EGREP "free" >/dev/null 2>&1; then
6335 :
252b5132 6336else
ce2cded5
L
6337 ac_cv_header_stdc=no
6338fi
6339rm -f conftest*
42ecbf5e 6340
20e95c23 6341fi
d7040cdb 6342
ce2cded5
L
6343if test $ac_cv_header_stdc = yes; then
6344 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6345 if test "$cross_compiling" = yes; then
6346 :
6347else
6348 cat >conftest.$ac_ext <<_ACEOF
6349/* confdefs.h. */
6350_ACEOF
6351cat confdefs.h >>conftest.$ac_ext
6352cat >>conftest.$ac_ext <<_ACEOF
6353/* end confdefs.h. */
6354#include <ctype.h>
6355#if ((' ' & 0x0FF) == 0x020)
6356# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6357# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6358#else
6359# define ISLOWER(c) \
6360 (('a' <= (c) && (c) <= 'i') \
6361 || ('j' <= (c) && (c) <= 'r') \
6362 || ('s' <= (c) && (c) <= 'z'))
6363# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6364#endif
42ecbf5e 6365
ce2cded5
L
6366#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6367int
6368main ()
6369{
6370 int i;
6371 for (i = 0; i < 256; i++)
6372 if (XOR (islower (i), ISLOWER (i))
6373 || toupper (i) != TOUPPER (i))
6374 exit(2);
6375 exit (0);
6376}
6377_ACEOF
6378rm -f conftest$ac_exeext
6379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6380 (eval $ac_link) 2>&5
6381 ac_status=$?
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6385 (eval $ac_try) 2>&5
6386 ac_status=$?
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); }; }; then
6389 :
6390else
6391 echo "$as_me: program exited with status $ac_status" >&5
6392echo "$as_me: failed program was:" >&5
6393sed 's/^/| /' conftest.$ac_ext >&5
42ecbf5e 6394
ce2cded5
L
6395( exit $ac_status )
6396ac_cv_header_stdc=no
6397fi
6398rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6399fi
6400fi
6401fi
6402echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6403echo "${ECHO_T}$ac_cv_header_stdc" >&6
6404if test $ac_cv_header_stdc = yes; then
e5a52504 6405
ce2cded5
L
6406cat >>confdefs.h <<\_ACEOF
6407#define STDC_HEADERS 1
6408_ACEOF
d7040cdb 6409
ac48eca1 6410fi
e5a52504 6411
ce2cded5 6412# On IRIX 5.3, sys/types and inttypes.h are conflicting.
d7040cdb 6413
d7040cdb 6414
d7040cdb 6415
d7040cdb 6416
d7040cdb 6417
d7040cdb 6418
d7040cdb 6419
d7040cdb 6420
d7040cdb 6421
ce2cded5
L
6422for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6423 inttypes.h stdint.h unistd.h
6424do
6425as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6426echo "$as_me:$LINENO: checking for $ac_header" >&5
6427echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6428if eval "test \"\${$as_ac_Header+set}\" = set"; then
6429 echo $ECHO_N "(cached) $ECHO_C" >&6
6430else
6431 cat >conftest.$ac_ext <<_ACEOF
6432/* confdefs.h. */
6433_ACEOF
6434cat confdefs.h >>conftest.$ac_ext
6435cat >>conftest.$ac_ext <<_ACEOF
6436/* end confdefs.h. */
6437$ac_includes_default
d7040cdb 6438
ce2cded5
L
6439#include <$ac_header>
6440_ACEOF
6441rm -f conftest.$ac_objext
6442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6443 (eval $ac_compile) 2>conftest.er1
6444 ac_status=$?
6445 grep -v '^ *+' conftest.er1 >conftest.err
6446 rm -f conftest.er1
6447 cat conftest.err >&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); } &&
6450 { ac_try='test -z "$ac_c_werror_flag"
6451 || test ! -s conftest.err'
6452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6453 (eval $ac_try) 2>&5
6454 ac_status=$?
6455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); }; } &&
6457 { ac_try='test -s conftest.$ac_objext'
6458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6459 (eval $ac_try) 2>&5
6460 ac_status=$?
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); }; }; then
6463 eval "$as_ac_Header=yes"
6464else
6465 echo "$as_me: failed program was:" >&5
6466sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6467
ce2cded5
L
6468eval "$as_ac_Header=no"
6469fi
6470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6471fi
6472echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6473echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6474if test `eval echo '${'$as_ac_Header'}'` = yes; then
6475 cat >>confdefs.h <<_ACEOF
6476#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6477_ACEOF
d7040cdb 6478
ce2cded5
L
6479fi
6480
6481done
6482
6483
6484
6485for ac_header in dlfcn.h
6486do
6487as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6488echo "$as_me:$LINENO: checking for $ac_header" >&5
6489echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6490if eval "test \"\${$as_ac_Header+set}\" = set"; then
6491 echo $ECHO_N "(cached) $ECHO_C" >&6
6492else
6493 cat >conftest.$ac_ext <<_ACEOF
6494/* confdefs.h. */
42ecbf5e 6495_ACEOF
ce2cded5
L
6496cat confdefs.h >>conftest.$ac_ext
6497cat >>conftest.$ac_ext <<_ACEOF
6498/* end confdefs.h. */
6499$ac_includes_default
6500
6501#include <$ac_header>
6502_ACEOF
6503rm -f conftest.$ac_objext
6504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6505 (eval $ac_compile) 2>conftest.er1
42ecbf5e
DJ
6506 ac_status=$?
6507 grep -v '^ *+' conftest.er1 >conftest.err
6508 rm -f conftest.er1
6509 cat conftest.err >&5
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); } &&
502bdb00
JW
6512 { ac_try='test -z "$ac_c_werror_flag"
6513 || test ! -s conftest.err'
42ecbf5e
DJ
6514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6515 (eval $ac_try) 2>&5
6516 ac_status=$?
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); }; } &&
ce2cded5 6519 { ac_try='test -s conftest.$ac_objext'
42ecbf5e
DJ
6520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521 (eval $ac_try) 2>&5
6522 ac_status=$?
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); }; }; then
ce2cded5 6525 eval "$as_ac_Header=yes"
252b5132 6526else
42ecbf5e
DJ
6527 echo "$as_me: failed program was:" >&5
6528sed 's/^/| /' conftest.$ac_ext >&5
6529
ce2cded5 6530eval "$as_ac_Header=no"
252b5132 6531fi
ce2cded5
L
6532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6533fi
6534echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6535echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6536if test `eval echo '${'$as_ac_Header'}'` = yes; then
6537 cat >>confdefs.h <<_ACEOF
6538#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6539_ACEOF
d7040cdb 6540
ce2cded5 6541fi
d7040cdb 6542
ce2cded5 6543done
d7040cdb 6544
d7040cdb 6545
d7040cdb 6546
ce2cded5
L
6547# This can be used to rebuild libtool when needed
6548LIBTOOL_DEPS="$ltmain"
d7040cdb 6549
ce2cded5
L
6550# Always use our own libtool.
6551LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 6552
d7040cdb 6553
d7040cdb 6554
d7040cdb 6555
d7040cdb 6556
d7040cdb 6557
d7040cdb 6558
d7040cdb 6559
d7040cdb 6560
d7040cdb 6561
d7040cdb 6562
d7040cdb 6563
d7040cdb 6564
d7040cdb 6565
d7040cdb 6566
d7040cdb 6567
d7040cdb
SE
6568
6569
6570
6571
6572
6573
6574
6575
6576
ce2cded5 6577test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
6578
6579
6580
6581
6582
6583
d7040cdb
SE
6584
6585
6586
6587
6588
6589
6590
6591
ce2cded5
L
6592if test -n "${ZSH_VERSION+set}" ; then
6593 setopt NO_GLOB_SUBST
6594fi
d7040cdb 6595
ce2cded5
L
6596echo "$as_me:$LINENO: checking for objdir" >&5
6597echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6598if test "${lt_cv_objdir+set}" = set; then
6599 echo $ECHO_N "(cached) $ECHO_C" >&6
6600else
6601 rm -f .libs 2>/dev/null
6602mkdir .libs 2>/dev/null
6603if test -d .libs; then
6604 lt_cv_objdir=.libs
6605else
6606 # MS-DOS does not allow filenames that begin with a dot.
6607 lt_cv_objdir=_libs
6608fi
6609rmdir .libs 2>/dev/null
6610fi
6611echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6612echo "${ECHO_T}$lt_cv_objdir" >&6
6613objdir=$lt_cv_objdir
d7040cdb
SE
6614
6615
6616
6617
6618
ce2cded5
L
6619cat >>confdefs.h <<_ACEOF
6620#define LT_OBJDIR "$lt_cv_objdir/"
6621_ACEOF
d7040cdb
SE
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
ce2cded5
L
6639case $host_os in
6640aix3*)
6641 # AIX sometimes has problems with the GCC collect2 program. For some
6642 # reason, if we set the COLLECT_NAMES environment variable, the problems
6643 # vanish in a puff of smoke.
6644 if test "X${COLLECT_NAMES+set}" != Xset; then
6645 COLLECT_NAMES=
6646 export COLLECT_NAMES
6647 fi
6648 ;;
6649esac
d7040cdb 6650
ce2cded5
L
6651# Sed substitution that helps us do robust quoting. It backslashifies
6652# metacharacters that are still active within double-quoted strings.
6653sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
d7040cdb 6654
ce2cded5
L
6655# Same as above, but do not quote variable references.
6656double_quote_subst='s/\(["`\\]\)/\\\1/g'
d7040cdb 6657
ce2cded5
L
6658# Sed substitution to delay expansion of an escaped shell variable in a
6659# double_quote_subst'ed string.
6660delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
d7040cdb 6661
ce2cded5
L
6662# Sed substitution to delay expansion of an escaped single quote.
6663delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
d7040cdb 6664
ce2cded5
L
6665# Sed substitution to avoid accidental globbing in evaled expressions
6666no_glob_subst='s/\*/\\\*/g'
d7040cdb 6667
ce2cded5
L
6668# Global variables:
6669ofile=libtool
6670can_build_shared=yes
d7040cdb 6671
ce2cded5
L
6672# All known linkers require a `.a' archive for static linking (except MSVC,
6673# which needs '.lib').
6674libext=a
d7040cdb 6675
ce2cded5 6676with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 6677
ce2cded5
L
6678old_CC="$CC"
6679old_CFLAGS="$CFLAGS"
d7040cdb 6680
ce2cded5
L
6681# Set sane defaults for various variables
6682test -z "$CC" && CC=cc
6683test -z "$LTCC" && LTCC=$CC
6684test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6685test -z "$LD" && LD=ld
6686test -z "$ac_objext" && ac_objext=o
d7040cdb 6687
ce2cded5
L
6688for cc_temp in $compiler""; do
6689 case $cc_temp in
6690 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6691 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6692 \-*) ;;
6693 *) break;;
6694 esac
6695done
6696cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
d7040cdb
SE
6697
6698
ce2cded5
L
6699# Only perform the check for file, if the check method requires it
6700test -z "$MAGIC_CMD" && MAGIC_CMD=file
6701case $deplibs_check_method in
6702file_magic*)
6703 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6704 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6705echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6706if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6707 echo $ECHO_N "(cached) $ECHO_C" >&6
6708else
6709 case $MAGIC_CMD in
6710[\\/*] | ?:[\\/]*)
6711 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6712 ;;
6713*)
6714 lt_save_MAGIC_CMD="$MAGIC_CMD"
6715 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6716 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6717 for ac_dir in $ac_dummy; do
6718 IFS="$lt_save_ifs"
6719 test -z "$ac_dir" && ac_dir=.
6720 if test -f $ac_dir/${ac_tool_prefix}file; then
6721 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6722 if test -n "$file_magic_test_file"; then
6723 case $deplibs_check_method in
6724 "file_magic "*)
6725 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6726 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6727 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6728 $EGREP "$file_magic_regex" > /dev/null; then
6729 :
6730 else
6731 cat <<_LT_EOF 1>&2
d7040cdb 6732
ce2cded5
L
6733*** Warning: the command libtool uses to detect shared libraries,
6734*** $file_magic_cmd, produces output that libtool cannot recognize.
6735*** The result is that libtool may fail to recognize shared libraries
6736*** as such. This will affect the creation of libtool libraries that
6737*** depend on shared libraries, but programs linked with such libtool
6738*** libraries will work regardless of this problem. Nevertheless, you
6739*** may want to report the problem to your system manager and/or to
6740*** bug-libtool@gnu.org
d7040cdb 6741
ce2cded5
L
6742_LT_EOF
6743 fi ;;
6744 esac
6745 fi
6746 break
6747 fi
6748 done
6749 IFS="$lt_save_ifs"
6750 MAGIC_CMD="$lt_save_MAGIC_CMD"
6751 ;;
6752esac
6753fi
d7040cdb 6754
ce2cded5
L
6755MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6756if test -n "$MAGIC_CMD"; then
6757 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6758echo "${ECHO_T}$MAGIC_CMD" >&6
6759else
6760 echo "$as_me:$LINENO: result: no" >&5
6761echo "${ECHO_T}no" >&6
6762fi
d7040cdb
SE
6763
6764
6765
6766
6767
ce2cded5
L
6768if test -z "$lt_cv_path_MAGIC_CMD"; then
6769 if test -n "$ac_tool_prefix"; then
6770 echo "$as_me:$LINENO: checking for file" >&5
6771echo $ECHO_N "checking for file... $ECHO_C" >&6
6772if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6773 echo $ECHO_N "(cached) $ECHO_C" >&6
6774else
6775 case $MAGIC_CMD in
6776[\\/*] | ?:[\\/]*)
6777 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6778 ;;
6779*)
6780 lt_save_MAGIC_CMD="$MAGIC_CMD"
6781 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6782 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6783 for ac_dir in $ac_dummy; do
6784 IFS="$lt_save_ifs"
6785 test -z "$ac_dir" && ac_dir=.
6786 if test -f $ac_dir/file; then
6787 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6788 if test -n "$file_magic_test_file"; then
6789 case $deplibs_check_method in
6790 "file_magic "*)
6791 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6792 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6793 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6794 $EGREP "$file_magic_regex" > /dev/null; then
6795 :
6796 else
6797 cat <<_LT_EOF 1>&2
d7040cdb 6798
ce2cded5
L
6799*** Warning: the command libtool uses to detect shared libraries,
6800*** $file_magic_cmd, produces output that libtool cannot recognize.
6801*** The result is that libtool may fail to recognize shared libraries
6802*** as such. This will affect the creation of libtool libraries that
6803*** depend on shared libraries, but programs linked with such libtool
6804*** libraries will work regardless of this problem. Nevertheless, you
6805*** may want to report the problem to your system manager and/or to
6806*** bug-libtool@gnu.org
d7040cdb 6807
ce2cded5
L
6808_LT_EOF
6809 fi ;;
6810 esac
6811 fi
6812 break
6813 fi
6814 done
6815 IFS="$lt_save_ifs"
6816 MAGIC_CMD="$lt_save_MAGIC_CMD"
6817 ;;
6818esac
6819fi
d7040cdb 6820
ce2cded5
L
6821MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6822if test -n "$MAGIC_CMD"; then
6823 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6824echo "${ECHO_T}$MAGIC_CMD" >&6
6825else
6826 echo "$as_me:$LINENO: result: no" >&5
6827echo "${ECHO_T}no" >&6
6828fi
d7040cdb
SE
6829
6830
ce2cded5
L
6831 else
6832 MAGIC_CMD=:
6833 fi
6834fi
d7040cdb 6835
ce2cded5
L
6836 fi
6837 ;;
6838esac
d7040cdb 6839
ce2cded5 6840# Use C for the default configuration in the libtool script
d7040cdb 6841
ce2cded5
L
6842lt_save_CC="$CC"
6843ac_ext=c
6844ac_cpp='$CPP $CPPFLAGS'
6845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6847ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
6848
6849
ce2cded5
L
6850# Source file extension for C test sources.
6851ac_ext=c
d7040cdb 6852
ce2cded5
L
6853# Object file extension for compiled C test sources.
6854objext=o
6855objext=$objext
d7040cdb 6856
ce2cded5
L
6857# Code to be used in simple compile tests
6858lt_simple_compile_test_code="int some_variable = 0;"
d7040cdb 6859
ce2cded5
L
6860# Code to be used in simple link tests
6861lt_simple_link_test_code='int main(){return(0);}'
d7040cdb
SE
6862
6863
6864
6865
6866
6867
6868
ce2cded5
L
6869# If no C compiler was specified, use CC.
6870LTCC=${LTCC-"$CC"}
d7040cdb 6871
ce2cded5
L
6872# If no C compiler flags were specified, use CFLAGS.
6873LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 6874
ce2cded5
L
6875# Allow CC to be a program name with arguments.
6876compiler=$CC
d7040cdb 6877
ce2cded5
L
6878# Save the default compiler, since it gets overwritten when the other
6879# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6880compiler_DEFAULT=$CC
d7040cdb 6881
ce2cded5
L
6882# save warnings/boilerplate of simple test code
6883ac_outfile=conftest.$ac_objext
6884echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6885eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6886_lt_compiler_boilerplate=`cat conftest.err`
6887$RM conftest*
d7040cdb 6888
ce2cded5
L
6889ac_outfile=conftest.$ac_objext
6890echo "$lt_simple_link_test_code" >conftest.$ac_ext
6891eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6892_lt_linker_boilerplate=`cat conftest.err`
6893$RM conftest*
d7040cdb
SE
6894
6895
ce2cded5
L
6896## CAVEAT EMPTOR:
6897## There is no encapsulation within the following macros, do not change
6898## the running order or otherwise move them around unless you know exactly
6899## what you are doing...
6900if test -n "$compiler"; then
d7040cdb 6901
ce2cded5 6902lt_prog_compiler_no_builtin_flag=
d7040cdb 6903
ce2cded5
L
6904if test "$GCC" = yes; then
6905 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
d7040cdb 6906
ce2cded5
L
6907 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6908echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6909if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6910 echo $ECHO_N "(cached) $ECHO_C" >&6
6911else
6912 lt_cv_prog_compiler_rtti_exceptions=no
6913 ac_outfile=conftest.$ac_objext
6914 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6915 lt_compiler_flag="-fno-rtti -fno-exceptions"
6916 # Insert the option either (1) after the last *FLAGS variable, or
6917 # (2) before a word containing "conftest.", or (3) at the end.
6918 # Note that $ac_compile itself does not contain backslashes and begins
6919 # with a dollar sign (not a hyphen), so the echo should work correctly.
6920 # The option is referenced via a variable to avoid confusing sed.
6921 lt_compile=`echo "$ac_compile" | $SED \
6922 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6923 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6924 -e 's:$: $lt_compiler_flag:'`
6194aaab 6925 (eval echo "\"\$as_me:6925: $lt_compile\"" >&5)
ce2cded5
L
6926 (eval "$lt_compile" 2>conftest.err)
6927 ac_status=$?
6928 cat conftest.err >&5
6194aaab 6929 echo "$as_me:6929: \$? = $ac_status" >&5
ce2cded5
L
6930 if (exit $ac_status) && test -s "$ac_outfile"; then
6931 # The compiler can only warn and ignore the option if not recognized
6932 # So say no if there are warnings other than the usual output.
6933 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6934 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6935 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6936 lt_cv_prog_compiler_rtti_exceptions=yes
6937 fi
6938 fi
6939 $RM conftest*
d7040cdb 6940
ce2cded5
L
6941fi
6942echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6943echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
d7040cdb 6944
ce2cded5
L
6945if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6946 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6947else
6948 :
6949fi
d7040cdb 6950
ce2cded5 6951fi
d7040cdb
SE
6952
6953
6954
6955
6956
6957
ce2cded5
L
6958 lt_prog_compiler_wl=
6959lt_prog_compiler_pic=
6960lt_prog_compiler_static=
d7040cdb 6961
ce2cded5
L
6962echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6963echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
d7040cdb 6964
ce2cded5
L
6965 if test "$GCC" = yes; then
6966 lt_prog_compiler_wl='-Wl,'
6967 lt_prog_compiler_static='-static'
d7040cdb 6968
ce2cded5
L
6969 case $host_os in
6970 aix*)
6971 # All AIX code is PIC.
6972 if test "$host_cpu" = ia64; then
6973 # AIX 5 now supports IA64 processor
6974 lt_prog_compiler_static='-Bstatic'
6975 fi
6976 ;;
d7040cdb 6977
ce2cded5
L
6978 amigaos*)
6979 if test "$host_cpu" = m68k; then
6980 # FIXME: we need at least 68020 code to build shared libraries, but
6981 # adding the `-m68020' flag to GCC prevents building anything better,
6982 # like `-m68040'.
6983 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6984 fi
6985 ;;
d7040cdb 6986
ce2cded5
L
6987 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6988 # PIC is the default for these OSes.
6989 ;;
d7040cdb 6990
ce2cded5
L
6991 mingw* | cygwin* | pw32* | os2*)
6992 # This hack is so that the source file can tell whether it is being
6993 # built for inclusion in a dll (and should export symbols for example).
6994 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6995 # (--disable-auto-import) libraries
6996 lt_prog_compiler_pic='-DDLL_EXPORT'
6997 ;;
d7040cdb 6998
ce2cded5
L
6999 darwin* | rhapsody*)
7000 # PIC is the default on this platform
7001 # Common symbols not allowed in MH_DYLIB files
7002 lt_prog_compiler_pic='-fno-common'
7003 ;;
d7040cdb 7004
ce2cded5
L
7005 hpux*)
7006 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7007 # not for PA HP-UX.
7008 case $host_cpu in
7009 hppa*64*|ia64*)
7010 # +Z the default
7011 ;;
7012 *)
7013 lt_prog_compiler_pic='-fPIC'
7014 ;;
7015 esac
7016 ;;
d7040cdb 7017
ce2cded5
L
7018 interix[3-9]*)
7019 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7020 # Instead, we relocate shared libraries at runtime.
7021 ;;
d7040cdb 7022
ce2cded5
L
7023 msdosdjgpp*)
7024 # Just because we use GCC doesn't mean we suddenly get shared libraries
7025 # on systems that don't support them.
7026 lt_prog_compiler_can_build_shared=no
7027 enable_shared=no
7028 ;;
d7040cdb 7029
ce2cded5
L
7030 *nto* | *qnx*)
7031 # QNX uses GNU C++, but need to define -shared option too, otherwise
7032 # it will coredump.
7033 lt_prog_compiler_pic='-fPIC -shared'
7034 ;;
d7040cdb 7035
ce2cded5
L
7036 sysv4*MP*)
7037 if test -d /usr/nec; then
7038 lt_prog_compiler_pic=-Kconform_pic
7039 fi
7040 ;;
d7040cdb 7041
ce2cded5
L
7042 *)
7043 lt_prog_compiler_pic='-fPIC'
7044 ;;
7045 esac
7046 else
7047 # PORTME Check for flag to pass linker flags through the system compiler.
7048 case $host_os in
7049 aix*)
7050 lt_prog_compiler_wl='-Wl,'
7051 if test "$host_cpu" = ia64; then
7052 # AIX 5 now supports IA64 processor
7053 lt_prog_compiler_static='-Bstatic'
7054 else
7055 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7056 fi
7057 ;;
7058 darwin*)
7059 # PIC is the default on this platform
7060 # Common symbols not allowed in MH_DYLIB files
7061 case $cc_basename in
7062 xlc*)
7063 lt_prog_compiler_pic='-qnocommon'
7064 lt_prog_compiler_wl='-Wl,'
7065 ;;
7066 esac
7067 ;;
d7040cdb 7068
ce2cded5
L
7069 mingw* | cygwin* | pw32* | os2*)
7070 # This hack is so that the source file can tell whether it is being
7071 # built for inclusion in a dll (and should export symbols for example).
7072 lt_prog_compiler_pic='-DDLL_EXPORT'
7073 ;;
d7040cdb 7074
ce2cded5
L
7075 hpux9* | hpux10* | hpux11*)
7076 lt_prog_compiler_wl='-Wl,'
7077 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7078 # not for PA HP-UX.
7079 case $host_cpu in
7080 hppa*64*|ia64*)
7081 # +Z the default
7082 ;;
7083 *)
7084 lt_prog_compiler_pic='+Z'
7085 ;;
7086 esac
7087 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7088 lt_prog_compiler_static='${wl}-a ${wl}archive'
7089 ;;
d7040cdb 7090
ce2cded5
L
7091 irix5* | irix6* | nonstopux*)
7092 lt_prog_compiler_wl='-Wl,'
7093 # PIC (with -KPIC) is the default.
7094 lt_prog_compiler_static='-non_shared'
7095 ;;
d7040cdb 7096
ce2cded5
L
7097 linux* | k*bsd*-gnu)
7098 case $cc_basename in
7099 icc* | ecc*)
7100 lt_prog_compiler_wl='-Wl,'
7101 lt_prog_compiler_pic='-KPIC'
7102 lt_prog_compiler_static='-static'
7103 ;;
7104 pgcc* | pgf77* | pgf90* | pgf95*)
7105 # Portland Group compilers (*not* the Pentium gcc compiler,
7106 # which looks to be a dead project)
7107 lt_prog_compiler_wl='-Wl,'
7108 lt_prog_compiler_pic='-fpic'
7109 lt_prog_compiler_static='-Bstatic'
7110 ;;
7111 ccc*)
7112 lt_prog_compiler_wl='-Wl,'
7113 # All Alpha code is PIC.
7114 lt_prog_compiler_static='-non_shared'
7115 ;;
7116 *)
7117 case `$CC -V 2>&1 | sed 5q` in
7118 *Sun\ C*)
7119 # Sun C 5.9
7120 lt_prog_compiler_pic='-KPIC'
7121 lt_prog_compiler_static='-Bstatic'
7122 lt_prog_compiler_wl='-Wl,'
7123 ;;
7124 *Sun\ F*)
7125 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7126 lt_prog_compiler_pic='-KPIC'
7127 lt_prog_compiler_static='-Bstatic'
7128 lt_prog_compiler_wl=''
7129 ;;
7130 esac
7131 ;;
7132 esac
7133 ;;
d7040cdb 7134
ce2cded5
L
7135 newsos6)
7136 lt_prog_compiler_pic='-KPIC'
7137 lt_prog_compiler_static='-Bstatic'
7138 ;;
d7040cdb 7139
ce2cded5
L
7140 *nto* | *qnx*)
7141 # QNX uses GNU C++, but need to define -shared option too, otherwise
7142 # it will coredump.
7143 lt_prog_compiler_pic='-fPIC -shared'
7144 ;;
d7040cdb 7145
ce2cded5
L
7146 osf3* | osf4* | osf5*)
7147 lt_prog_compiler_wl='-Wl,'
7148 # All OSF/1 code is PIC.
7149 lt_prog_compiler_static='-non_shared'
7150 ;;
d7040cdb 7151
ce2cded5
L
7152 rdos*)
7153 lt_prog_compiler_static='-non_shared'
7154 ;;
d7040cdb 7155
ce2cded5
L
7156 solaris*)
7157 lt_prog_compiler_pic='-KPIC'
7158 lt_prog_compiler_static='-Bstatic'
7159 case $cc_basename in
7160 f77* | f90* | f95*)
7161 lt_prog_compiler_wl='-Qoption ld ';;
7162 *)
7163 lt_prog_compiler_wl='-Wl,';;
7164 esac
7165 ;;
d7040cdb 7166
ce2cded5
L
7167 sunos4*)
7168 lt_prog_compiler_wl='-Qoption ld '
7169 lt_prog_compiler_pic='-PIC'
7170 lt_prog_compiler_static='-Bstatic'
7171 ;;
d7040cdb 7172
ce2cded5
L
7173 sysv4 | sysv4.2uw2* | sysv4.3*)
7174 lt_prog_compiler_wl='-Wl,'
7175 lt_prog_compiler_pic='-KPIC'
7176 lt_prog_compiler_static='-Bstatic'
7177 ;;
d7040cdb 7178
ce2cded5
L
7179 sysv4*MP*)
7180 if test -d /usr/nec ;then
7181 lt_prog_compiler_pic='-Kconform_pic'
7182 lt_prog_compiler_static='-Bstatic'
7183 fi
7184 ;;
d7040cdb 7185
ce2cded5
L
7186 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7187 lt_prog_compiler_wl='-Wl,'
7188 lt_prog_compiler_pic='-KPIC'
7189 lt_prog_compiler_static='-Bstatic'
7190 ;;
d7040cdb 7191
ce2cded5
L
7192 unicos*)
7193 lt_prog_compiler_wl='-Wl,'
7194 lt_prog_compiler_can_build_shared=no
7195 ;;
d7040cdb 7196
ce2cded5
L
7197 uts4*)
7198 lt_prog_compiler_pic='-pic'
7199 lt_prog_compiler_static='-Bstatic'
7200 ;;
d7040cdb 7201
ce2cded5
L
7202 *)
7203 lt_prog_compiler_can_build_shared=no
7204 ;;
7205 esac
7206 fi
d7040cdb 7207
ce2cded5
L
7208case $host_os in
7209 # For platforms which do not support PIC, -DPIC is meaningless:
7210 *djgpp*)
7211 lt_prog_compiler_pic=
7212 ;;
7213 *)
7214 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7215 ;;
7216esac
7217echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7218echo "${ECHO_T}$lt_prog_compiler_pic" >&6
d7040cdb
SE
7219
7220
7221
7222
7223
7224
ce2cded5
L
7225#
7226# Check to make sure the PIC flag actually works.
7227#
7228if test -n "$lt_prog_compiler_pic"; then
7229 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7230echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7231if test "${lt_prog_compiler_pic_works+set}" = set; then
7232 echo $ECHO_N "(cached) $ECHO_C" >&6
7233else
7234 lt_prog_compiler_pic_works=no
7235 ac_outfile=conftest.$ac_objext
7236 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7237 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7238 # Insert the option either (1) after the last *FLAGS variable, or
7239 # (2) before a word containing "conftest.", or (3) at the end.
7240 # Note that $ac_compile itself does not contain backslashes and begins
7241 # with a dollar sign (not a hyphen), so the echo should work correctly.
7242 # The option is referenced via a variable to avoid confusing sed.
7243 lt_compile=`echo "$ac_compile" | $SED \
7244 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7245 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7246 -e 's:$: $lt_compiler_flag:'`
6194aaab 7247 (eval echo "\"\$as_me:7247: $lt_compile\"" >&5)
ce2cded5
L
7248 (eval "$lt_compile" 2>conftest.err)
7249 ac_status=$?
7250 cat conftest.err >&5
6194aaab 7251 echo "$as_me:7251: \$? = $ac_status" >&5
ce2cded5
L
7252 if (exit $ac_status) && test -s "$ac_outfile"; then
7253 # The compiler can only warn and ignore the option if not recognized
7254 # So say no if there are warnings other than the usual output.
7255 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7256 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7257 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7258 lt_prog_compiler_pic_works=yes
7259 fi
7260 fi
7261 $RM conftest*
d7040cdb 7262
ce2cded5
L
7263fi
7264echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7265echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7266
7267if test x"$lt_prog_compiler_pic_works" = xyes; then
7268 case $lt_prog_compiler_pic in
7269 "" | " "*) ;;
7270 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7271 esac
7272else
7273 lt_prog_compiler_pic=
7274 lt_prog_compiler_can_build_shared=no
7275fi
7276
7277fi
d7040cdb
SE
7278
7279
7280
7281
7282
7283
ce2cded5
L
7284#
7285# Check to make sure the static flag actually works.
7286#
7287wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7288echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7289echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7290if test "${lt_prog_compiler_static_works+set}" = set; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
7292else
7293 lt_prog_compiler_static_works=no
7294 save_LDFLAGS="$LDFLAGS"
7295 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7296 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7297 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7298 # The linker can only warn and ignore the option if not recognized
7299 # So say no if there are warnings
7300 if test -s conftest.err; then
7301 # Append any errors to the config.log.
7302 cat conftest.err 1>&5
7303 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7304 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7305 if diff conftest.exp conftest.er2 >/dev/null; then
7306 lt_prog_compiler_static_works=yes
7307 fi
7308 else
7309 lt_prog_compiler_static_works=yes
7310 fi
7311 fi
7312 $RM conftest*
7313 LDFLAGS="$save_LDFLAGS"
d7040cdb 7314
ce2cded5
L
7315fi
7316echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7317echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
d7040cdb 7318
ce2cded5
L
7319if test x"$lt_prog_compiler_static_works" = xyes; then
7320 :
7321else
7322 lt_prog_compiler_static=
7323fi
d7040cdb
SE
7324
7325
7326
7327
7328
7329
7330
ce2cded5
L
7331 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7332echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7333if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7334 echo $ECHO_N "(cached) $ECHO_C" >&6
7335else
7336 lt_cv_prog_compiler_c_o=no
7337 $RM -r conftest 2>/dev/null
7338 mkdir conftest
7339 cd conftest
7340 mkdir out
7341 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 7342
ce2cded5
L
7343 lt_compiler_flag="-o out/conftest2.$ac_objext"
7344 # Insert the option either (1) after the last *FLAGS variable, or
7345 # (2) before a word containing "conftest.", or (3) at the end.
7346 # Note that $ac_compile itself does not contain backslashes and begins
7347 # with a dollar sign (not a hyphen), so the echo should work correctly.
7348 lt_compile=`echo "$ac_compile" | $SED \
7349 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7350 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7351 -e 's:$: $lt_compiler_flag:'`
6194aaab 7352 (eval echo "\"\$as_me:7352: $lt_compile\"" >&5)
ce2cded5
L
7353 (eval "$lt_compile" 2>out/conftest.err)
7354 ac_status=$?
7355 cat out/conftest.err >&5
6194aaab 7356 echo "$as_me:7356: \$? = $ac_status" >&5
ce2cded5
L
7357 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7358 then
7359 # The compiler can only warn and ignore the option if not recognized
7360 # So say no if there are warnings
7361 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7362 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7363 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7364 lt_cv_prog_compiler_c_o=yes
7365 fi
7366 fi
7367 chmod u+w . 2>&5
7368 $RM conftest*
7369 # SGI C++ compiler will create directory out/ii_files/ for
7370 # template instantiation
7371 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7372 $RM out/* && rmdir out
7373 cd ..
7374 $RM -r conftest
7375 $RM conftest*
d7040cdb 7376
ce2cded5
L
7377fi
7378echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7379echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
d7040cdb
SE
7380
7381
7382
7383
7384
7385
ce2cded5
L
7386 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7387echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7388if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7390else
7391 lt_cv_prog_compiler_c_o=no
7392 $RM -r conftest 2>/dev/null
7393 mkdir conftest
7394 cd conftest
7395 mkdir out
7396 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 7397
ce2cded5
L
7398 lt_compiler_flag="-o out/conftest2.$ac_objext"
7399 # Insert the option either (1) after the last *FLAGS variable, or
7400 # (2) before a word containing "conftest.", or (3) at the end.
7401 # Note that $ac_compile itself does not contain backslashes and begins
7402 # with a dollar sign (not a hyphen), so the echo should work correctly.
7403 lt_compile=`echo "$ac_compile" | $SED \
7404 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7405 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7406 -e 's:$: $lt_compiler_flag:'`
6194aaab 7407 (eval echo "\"\$as_me:7407: $lt_compile\"" >&5)
ce2cded5
L
7408 (eval "$lt_compile" 2>out/conftest.err)
7409 ac_status=$?
7410 cat out/conftest.err >&5
6194aaab 7411 echo "$as_me:7411: \$? = $ac_status" >&5
ce2cded5
L
7412 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7413 then
7414 # The compiler can only warn and ignore the option if not recognized
7415 # So say no if there are warnings
7416 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7417 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7418 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7419 lt_cv_prog_compiler_c_o=yes
7420 fi
7421 fi
7422 chmod u+w . 2>&5
7423 $RM conftest*
7424 # SGI C++ compiler will create directory out/ii_files/ for
7425 # template instantiation
7426 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7427 $RM out/* && rmdir out
7428 cd ..
7429 $RM -r conftest
7430 $RM conftest*
7431
7432fi
7433echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7434echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7435
7436
7437
7438
7439hard_links="nottested"
7440if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7441 # do not overwrite the value of need_locks provided by the user
7442 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7443echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7444 hard_links=yes
7445 $RM conftest*
7446 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7447 touch conftest.a
7448 ln conftest.a conftest.b 2>&5 || hard_links=no
7449 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7450 echo "$as_me:$LINENO: result: $hard_links" >&5
7451echo "${ECHO_T}$hard_links" >&6
7452 if test "$hard_links" = no; then
7453 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7454echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7455 need_locks=warn
d7040cdb 7456 fi
d7040cdb 7457else
ce2cded5 7458 need_locks=no
d7040cdb 7459fi
d7040cdb 7460
d7040cdb 7461
d7040cdb 7462
d7040cdb 7463
d7040cdb 7464
d7040cdb 7465
ce2cded5
L
7466 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7467echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
d7040cdb 7468
ce2cded5
L
7469 runpath_var=
7470 allow_undefined_flag=
7471 always_export_symbols=no
7472 archive_cmds=
7473 archive_expsym_cmds=
7474 compiler_needs_object=no
7475 enable_shared_with_static_runtimes=no
7476 export_dynamic_flag_spec=
7477 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7478 hardcode_automatic=no
7479 hardcode_direct=no
7480 hardcode_direct_absolute=no
7481 hardcode_libdir_flag_spec=
7482 hardcode_libdir_flag_spec_ld=
7483 hardcode_libdir_separator=
7484 hardcode_minus_L=no
7485 hardcode_shlibpath_var=unsupported
7486 inherit_rpath=no
7487 link_all_deplibs=unknown
7488 module_cmds=
7489 module_expsym_cmds=
7490 old_archive_from_new_cmds=
7491 old_archive_from_expsyms_cmds=
7492 thread_safe_flag_spec=
7493 whole_archive_flag_spec=
7494 # include_expsyms should be a list of space-separated symbols to be *always*
7495 # included in the symbol list
7496 include_expsyms=
7497 # exclude_expsyms can be an extended regexp of symbols to exclude
7498 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7499 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7500 # as well as any symbol that contains `d'.
7501 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7502 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7503 # platforms (ab)use it in PIC code, but their linkers get confused if
7504 # the symbol is explicitly referenced. Since portable code cannot
7505 # rely on this symbol name, it's probably fine to never include it in
7506 # preloaded symbol tables.
7507 extract_expsyms_cmds=
d7040cdb 7508
ce2cded5
L
7509 case $host_os in
7510 cygwin* | mingw* | pw32*)
7511 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7512 # When not using gcc, we currently assume that we are using
7513 # Microsoft Visual C++.
7514 if test "$GCC" != yes; then
7515 with_gnu_ld=no
7516 fi
d7040cdb 7517 ;;
ce2cded5
L
7518 interix*)
7519 # we just hope/assume this is gcc and not c89 (= MSVC++)
7520 with_gnu_ld=yes
7521 ;;
7522 openbsd*)
7523 with_gnu_ld=no
d7040cdb
SE
7524 ;;
7525 esac
d7040cdb 7526
ce2cded5
L
7527 ld_shlibs=yes
7528 if test "$with_gnu_ld" = yes; then
7529 # If archive_cmds runs LD, not CC, wlarc should be empty
7530 wlarc='${wl}'
d7040cdb 7531
ce2cded5
L
7532 # Set some defaults for GNU ld with shared library support. These
7533 # are reset later if shared libraries are not supported. Putting them
7534 # here allows them to be overridden if necessary.
7535 runpath_var=LD_RUN_PATH
7536 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7537 export_dynamic_flag_spec='${wl}--export-dynamic'
7538 # ancient GNU ld didn't support --whole-archive et. al.
7539 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7540 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7541 else
7542 whole_archive_flag_spec=
7543 fi
7544 supports_anon_versioning=no
7545 case `$LD -v 2>&1` in
7546 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7547 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7548 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7549 *\ 2.11.*) ;; # other 2.11 versions
7550 *) supports_anon_versioning=yes ;;
7551 esac
d7040cdb 7552
ce2cded5
L
7553 # See if GNU ld supports shared libraries.
7554 case $host_os in
50e7d84b 7555 aix[3-9]*)
ce2cded5
L
7556 # On AIX/PPC, the GNU linker is very broken
7557 if test "$host_cpu" != ia64; then
7558 ld_shlibs=no
7559 cat <<_LT_EOF 1>&2
d7040cdb 7560
ce2cded5
L
7561*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7562*** to be unable to reliably create shared libraries on AIX.
7563*** Therefore, libtool is disabling shared libraries support. If you
7564*** really care for shared libraries, you may want to modify your PATH
7565*** so that a non-GNU linker is found, and then restart.
d7040cdb 7566
ce2cded5
L
7567_LT_EOF
7568 fi
d7040cdb 7569 ;;
d7040cdb 7570
ce2cded5
L
7571 amigaos*)
7572 if test "$host_cpu" = m68k; then
7573 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7574 hardcode_libdir_flag_spec='-L$libdir'
7575 hardcode_minus_L=yes
7576 fi
d7040cdb 7577
ce2cded5
L
7578 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7579 # that the semantics of dynamic libraries on AmigaOS, at least up
7580 # to version 4, is to share data among multiple programs linked
7581 # with the same dynamic library. Since this doesn't match the
7582 # behavior of shared libraries on other platforms, we can't use
7583 # them.
7584 ld_shlibs=no
7585 ;;
d7040cdb 7586
ce2cded5
L
7587 beos*)
7588 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7589 allow_undefined_flag=unsupported
7590 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7591 # support --undefined. This deserves some investigation. FIXME
7592 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7593 else
7594 ld_shlibs=no
7595 fi
7596 ;;
d7040cdb 7597
ce2cded5
L
7598 cygwin* | mingw* | pw32*)
7599 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7600 # as there is no search path for DLLs.
7601 hardcode_libdir_flag_spec='-L$libdir'
7602 allow_undefined_flag=unsupported
7603 always_export_symbols=no
7604 enable_shared_with_static_runtimes=yes
7605 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7606
7607 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7608 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7609 # If the export-symbols file already is a .def file (1st line
7610 # is EXPORTS), use it as is; otherwise, prepend...
7611 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7612 cp $export_symbols $output_objdir/$soname.def;
d7040cdb 7613 else
ce2cded5
L
7614 echo EXPORTS > $output_objdir/$soname.def;
7615 cat $export_symbols >> $output_objdir/$soname.def;
7616 fi~
7617 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7618 else
7619 ld_shlibs=no
7620 fi
7621 ;;
d7040cdb 7622
ce2cded5
L
7623 interix[3-9]*)
7624 hardcode_direct=no
7625 hardcode_shlibpath_var=no
7626 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7627 export_dynamic_flag_spec='${wl}-E'
7628 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7629 # Instead, shared libraries are loaded at an image base (0x10000000 by
7630 # default) and relocated if they conflict, which is a slow very memory
7631 # consuming and fragmenting process. To avoid this, we pick a random,
7632 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7633 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7634 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7635 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7636 ;;
d7040cdb 7637
ce2cded5
L
7638 gnu* | linux* | tpf* | k*bsd*-gnu)
7639 tmp_diet=no
7640 if test "$host_os" = linux-dietlibc; then
7641 case $cc_basename in
7642 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7643 esac
7644 fi
7645 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7646 && test "$tmp_diet" = no
7647 then
7648 tmp_addflag=
7649 case $cc_basename,$host_cpu in
7650 pgcc*) # Portland Group C compiler
7651 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7652 tmp_addflag=' $pic_flag'
7653 ;;
7654 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7655 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7656 tmp_addflag=' $pic_flag -Mnomain' ;;
7657 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7658 tmp_addflag=' -i_dynamic' ;;
7659 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7660 tmp_addflag=' -i_dynamic -nofor_main' ;;
7661 ifc* | ifort*) # Intel Fortran compiler
7662 tmp_addflag=' -nofor_main' ;;
7663 esac
7664 case `$CC -V 2>&1 | sed 5q` in
7665 *Sun\ C*) # Sun C 5.9
7666 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7667 compiler_needs_object=yes
7668 tmp_sharedflag='-G' ;;
7669 *Sun\ F*) # Sun Fortran 8.3
7670 tmp_sharedflag='-G' ;;
7671 *)
7672 tmp_sharedflag='-shared' ;;
7673 esac
7674 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 7675
ce2cded5
L
7676 if test "x$supports_anon_versioning" = xyes; then
7677 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7678 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7679 echo "local: *; };" >> $output_objdir/$libname.ver~
7680 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7681 fi
7682 else
7683 ld_shlibs=no
7684 fi
7685 ;;
d7040cdb 7686
ce2cded5
L
7687 netbsd*)
7688 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7689 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7690 wlarc=
7691 else
7692 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7693 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7694 fi
7695 ;;
7696
7697 solaris*)
7698 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7699 ld_shlibs=no
7700 cat <<_LT_EOF 1>&2
7701
7702*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7703*** create shared libraries on Solaris systems. Therefore, libtool
7704*** is disabling shared libraries support. We urge you to upgrade GNU
7705*** binutils to release 2.9.1 or newer. Another option is to modify
7706*** your PATH or compiler configuration so that the native linker is
7707*** used, and then restart.
7708
7709_LT_EOF
7710 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7711 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7712 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7713 else
7714 ld_shlibs=no
7715 fi
7716 ;;
7717
7718 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7719 case `$LD -v 2>&1` in
7720 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7721 ld_shlibs=no
7722 cat <<_LT_EOF 1>&2
7723
7724*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7725*** reliably create shared libraries on SCO systems. Therefore, libtool
7726*** is disabling shared libraries support. We urge you to upgrade GNU
7727*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7728*** your PATH or compiler configuration so that the native linker is
7729*** used, and then restart.
7730
7731_LT_EOF
7732 ;;
7733 *)
7734 # For security reasons, it is highly recommended that you always
7735 # use absolute paths for naming shared libraries, and exclude the
7736 # DT_RUNPATH tag from executables and libraries. But doing so
7737 # requires that you compile everything twice, which is a pain.
7738 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7739 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7740 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7741 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7742 else
7743 ld_shlibs=no
7744 fi
7745 ;;
7746 esac
7747 ;;
7748
7749 sunos4*)
7750 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7751 wlarc=
7752 hardcode_direct=yes
7753 hardcode_shlibpath_var=no
7754 ;;
7755
7756 *)
7757 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7758 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7759 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7760 else
7761 ld_shlibs=no
7762 fi
7763 ;;
7764 esac
7765
7766 if test "$ld_shlibs" = no; then
7767 runpath_var=
7768 hardcode_libdir_flag_spec=
7769 export_dynamic_flag_spec=
7770 whole_archive_flag_spec=
7771 fi
7772 else
7773 # PORTME fill in a description of your system's linker (not GNU ld)
7774 case $host_os in
7775 aix3*)
7776 allow_undefined_flag=unsupported
7777 always_export_symbols=yes
7778 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
7779 # Note: this linker hardcodes the directories in LIBPATH if there
7780 # are no directories specified by -L.
7781 hardcode_minus_L=yes
7782 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7783 # Neither direct hardcoding nor static linking is supported with a
7784 # broken collect2.
7785 hardcode_direct=unsupported
7786 fi
7787 ;;
7788
50e7d84b 7789 aix[4-9]*)
ce2cded5
L
7790 if test "$host_cpu" = ia64; then
7791 # On IA64, the linker does run time linking by default, so we don't
7792 # have to do anything special.
7793 aix_use_runtimelinking=no
7794 exp_sym_flag='-Bexport'
7795 no_entry_flag=""
7796 else
7797 # If we're using GNU nm, then we don't want the "-C" option.
7798 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7799 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7800 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7801 else
7802 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7803 fi
7804 aix_use_runtimelinking=no
7805
7806 # Test if we are trying to use run time linking or normal
7807 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7808 # need to do runtime linking.
50e7d84b 7809 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
7810 for ld_flag in $LDFLAGS; do
7811 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7812 aix_use_runtimelinking=yes
7813 break
7814 fi
7815 done
7816 ;;
7817 esac
7818
7819 exp_sym_flag='-bexport'
7820 no_entry_flag='-bnoentry'
7821 fi
7822
7823 # When large executables or shared objects are built, AIX ld can
7824 # have problems creating the table of contents. If linking a library
7825 # or program results in "error TOC overflow" add -mminimal-toc to
7826 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7827 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7828
7829 archive_cmds=''
7830 hardcode_direct=yes
7831 hardcode_direct_absolute=yes
7832 hardcode_libdir_separator=':'
7833 link_all_deplibs=yes
7834 file_list_spec='${wl}-f,'
7835
7836 if test "$GCC" = yes; then
7837 case $host_os in aix4.[012]|aix4.[012].*)
7838 # We only want to do this on AIX 4.2 and lower, the check
7839 # below for broken collect2 doesn't work under 4.3+
7840 collect2name=`${CC} -print-prog-name=collect2`
7841 if test -f "$collect2name" &&
7842 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7843 then
7844 # We have reworked collect2
7845 :
7846 else
7847 # We have old collect2
7848 hardcode_direct=unsupported
7849 # It fails to find uninstalled libraries when the uninstalled
7850 # path is not listed in the libpath. Setting hardcode_minus_L
7851 # to unsupported forces relinking
7852 hardcode_minus_L=yes
7853 hardcode_libdir_flag_spec='-L$libdir'
7854 hardcode_libdir_separator=
7855 fi
7856 ;;
7857 esac
7858 shared_flag='-shared'
7859 if test "$aix_use_runtimelinking" = yes; then
7860 shared_flag="$shared_flag "'${wl}-G'
7861 fi
7862 else
7863 # not using gcc
7864 if test "$host_cpu" = ia64; then
7865 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7866 # chokes on -Wl,-G. The following line is correct:
7867 shared_flag='-G'
7868 else
7869 if test "$aix_use_runtimelinking" = yes; then
7870 shared_flag='${wl}-G'
7871 else
7872 shared_flag='${wl}-bM:SRE'
7873 fi
7874 fi
7875 fi
7876
7877 # It seems that -bexpall does not export symbols beginning with
7878 # underscore (_), so it is better to generate a list of symbols to export.
7879 always_export_symbols=yes
7880 if test "$aix_use_runtimelinking" = yes; then
7881 # Warning - without using the other runtime loading flags (-brtl),
7882 # -berok will link without error, but may produce a broken library.
7883 allow_undefined_flag='-berok'
7884 # Determine the default libpath from the value encoded in an
7885 # empty executable.
7886 cat >conftest.$ac_ext <<_ACEOF
7887/* confdefs.h. */
7888_ACEOF
7889cat confdefs.h >>conftest.$ac_ext
7890cat >>conftest.$ac_ext <<_ACEOF
7891/* end confdefs.h. */
7892
7893int
7894main ()
7895{
7896
7897 ;
7898 return 0;
7899}
7900_ACEOF
7901rm -f conftest.$ac_objext conftest$ac_exeext
d7040cdb
SE
7902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7903 (eval $ac_link) 2>conftest.er1
7904 ac_status=$?
7905 grep -v '^ *+' conftest.er1 >conftest.err
7906 rm -f conftest.er1
7907 cat conftest.err >&5
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); } &&
7910 { ac_try='test -z "$ac_c_werror_flag"
7911 || test ! -s conftest.err'
7912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7913 (eval $ac_try) 2>&5
7914 ac_status=$?
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); }; } &&
7917 { ac_try='test -s conftest$ac_exeext'
7918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7919 (eval $ac_try) 2>&5
7920 ac_status=$?
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); }; }; then
d7040cdb 7923
ce2cded5
L
7924lt_aix_libpath_sed='
7925 /Import File Strings/,/^$/ {
7926 /^0/ {
7927 s/^0 *\(.*\)$/\1/
7928 p
7929 }
7930 }'
7931aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7932# Check for a 64-bit object if we didn't find anything.
7933if test -z "$aix_libpath"; then
7934 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7935fi
d7040cdb
SE
7936else
7937 echo "$as_me: failed program was:" >&5
7938sed 's/^/| /' conftest.$ac_ext >&5
7939
7940fi
7941rm -f conftest.err conftest.$ac_objext \
7942 conftest$ac_exeext conftest.$ac_ext
ce2cded5 7943if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 7944
ce2cded5
L
7945 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7946 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7947 else
7948 if test "$host_cpu" = ia64; then
7949 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7950 allow_undefined_flag="-z nodefs"
7951 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7952 else
7953 # Determine the default libpath from the value encoded in an
7954 # empty executable.
7955 cat >conftest.$ac_ext <<_ACEOF
7956/* confdefs.h. */
7957_ACEOF
7958cat confdefs.h >>conftest.$ac_ext
7959cat >>conftest.$ac_ext <<_ACEOF
7960/* end confdefs.h. */
d7040cdb 7961
ce2cded5
L
7962int
7963main ()
7964{
d7040cdb 7965
ce2cded5
L
7966 ;
7967 return 0;
7968}
7969_ACEOF
7970rm -f conftest.$ac_objext conftest$ac_exeext
7971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7972 (eval $ac_link) 2>conftest.er1
7973 ac_status=$?
7974 grep -v '^ *+' conftest.er1 >conftest.err
7975 rm -f conftest.er1
7976 cat conftest.err >&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); } &&
7979 { ac_try='test -z "$ac_c_werror_flag"
7980 || test ! -s conftest.err'
7981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7982 (eval $ac_try) 2>&5
7983 ac_status=$?
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); }; } &&
7986 { ac_try='test -s conftest$ac_exeext'
7987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7988 (eval $ac_try) 2>&5
7989 ac_status=$?
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); }; }; then
d7040cdb 7992
ce2cded5
L
7993lt_aix_libpath_sed='
7994 /Import File Strings/,/^$/ {
7995 /^0/ {
7996 s/^0 *\(.*\)$/\1/
7997 p
7998 }
7999 }'
8000aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8001# Check for a 64-bit object if we didn't find anything.
8002if test -z "$aix_libpath"; then
8003 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8004fi
8005else
8006 echo "$as_me: failed program was:" >&5
8007sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 8008
ce2cded5
L
8009fi
8010rm -f conftest.err conftest.$ac_objext \
8011 conftest$ac_exeext conftest.$ac_ext
8012if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 8013
ce2cded5
L
8014 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8015 # Warning - without using the other run time loading flags,
8016 # -berok will link without error, but may produce a broken library.
8017 no_undefined_flag=' ${wl}-bernotok'
8018 allow_undefined_flag=' ${wl}-berok'
8019 # Exported symbols can be pulled into shared objects from archives
8020 whole_archive_flag_spec='$convenience'
8021 archive_cmds_need_lc=yes
8022 # This is similar to how AIX traditionally builds its shared libraries.
8023 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8024 fi
8025 fi
8026 ;;
d7040cdb 8027
ce2cded5
L
8028 amigaos*)
8029 if test "$host_cpu" = m68k; then
8030 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8031 hardcode_libdir_flag_spec='-L$libdir'
8032 hardcode_minus_L=yes
8033 fi
8034 # see comment about different semantics on the GNU ld section
8035 ld_shlibs=no
8036 ;;
8037
8038 bsdi[45]*)
8039 export_dynamic_flag_spec=-rdynamic
8040 ;;
8041
8042 cygwin* | mingw* | pw32*)
8043 # When not using gcc, we currently assume that we are using
8044 # Microsoft Visual C++.
8045 # hardcode_libdir_flag_spec is actually meaningless, as there is
8046 # no search path for DLLs.
8047 hardcode_libdir_flag_spec=' '
8048 allow_undefined_flag=unsupported
8049 # Tell ltmain to make .lib files, not .a files.
8050 libext=lib
8051 # Tell ltmain to make .dll files, not .so files.
8052 shrext_cmds=".dll"
8053 # FIXME: Setting linknames here is a bad hack.
8054 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8055 # The linker will automatically build a .lib file if we build a DLL.
8056 old_archive_from_new_cmds='true'
8057 # FIXME: Should let the user specify the lib program.
8058 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8059 fix_srcfile_path='`cygpath -w "$srcfile"`'
8060 enable_shared_with_static_runtimes=yes
8061 ;;
8062
8063 darwin* | rhapsody*)
8064 case $host_os in
8065 rhapsody* | darwin1.[012])
8066 allow_undefined_flag='${wl}-undefined ${wl}suppress'
d7040cdb 8067 ;;
ce2cded5
L
8068 *) # Darwin 1.3 on
8069 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8070 10.[012])
8071 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8072 ;;
8073 10.*)
8074 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8075 ;;
8076 esac
d7040cdb
SE
8077 ;;
8078 esac
ce2cded5
L
8079 archive_cmds_need_lc=no
8080 hardcode_direct=no
8081 hardcode_automatic=yes
8082 hardcode_shlibpath_var=unsupported
8083 whole_archive_flag_spec=''
8084 link_all_deplibs=yes
8085 if test "$GCC" = yes ; then
8086 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8087 echo $ECHO_N "(cached) $ECHO_C" >&6
8088else
8089 lt_cv_apple_cc_single_mod=no
8090 if test -z "${LT_MULTI_MODULE}"; then
8091 # By default we will add the -single_module flag. You can override
8092 # by either setting the environment variable LT_MULTI_MODULE
8093 # non-empty at configure time, or by adding -multi-module to the
8094 # link flags.
8095 echo "int foo(void){return 1;}" > conftest.c
8096 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8097 -dynamiclib ${wl}-single_module conftest.c
8098 if test -f libconftest.dylib; then
8099 lt_cv_apple_cc_single_mod=yes
8100 rm libconftest.dylib
8101 fi
8102 rm conftest.$ac_ext
8103 fi
8104fi
d7040cdb 8105
ce2cded5
L
8106 output_verbose_link_cmd=echo
8107 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8108 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8109 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8110 else
8111 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8112 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8113 fi
8114 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8115 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8116 else
8117 case $cc_basename in
8118 xlc*)
8119 output_verbose_link_cmd=echo
8120 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8121 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8122 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8123 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8124 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8125 ;;
8126 *)
8127 ld_shlibs=no
8128 ;;
8129 esac
8130 fi
8131 ;;
d7040cdb 8132
ce2cded5
L
8133 dgux*)
8134 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8135 hardcode_libdir_flag_spec='-L$libdir'
8136 hardcode_shlibpath_var=no
8137 ;;
d7040cdb 8138
ce2cded5
L
8139 freebsd1*)
8140 ld_shlibs=no
8141 ;;
d7040cdb 8142
ce2cded5
L
8143 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8144 # support. Future versions do this automatically, but an explicit c++rt0.o
8145 # does not break anything, and helps significantly (at the cost of a little
8146 # extra space).
8147 freebsd2.2*)
8148 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8149 hardcode_libdir_flag_spec='-R$libdir'
8150 hardcode_direct=yes
8151 hardcode_shlibpath_var=no
d7040cdb 8152 ;;
d7040cdb 8153
ce2cded5
L
8154 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8155 freebsd2*)
8156 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8157 hardcode_direct=yes
8158 hardcode_minus_L=yes
8159 hardcode_shlibpath_var=no
8160 ;;
d7040cdb 8161
ce2cded5
L
8162 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8163 freebsd* | dragonfly*)
8164 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8165 hardcode_libdir_flag_spec='-R$libdir'
8166 hardcode_direct=yes
8167 hardcode_shlibpath_var=no
8168 ;;
d7040cdb 8169
ce2cded5
L
8170 hpux9*)
8171 if test "$GCC" = yes; then
8172 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8173 else
8174 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8175 fi
8176 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8177 hardcode_libdir_separator=:
8178 hardcode_direct=yes
d7040cdb 8179
ce2cded5
L
8180 # hardcode_minus_L: Not really in the search PATH,
8181 # but as the default location of the library.
8182 hardcode_minus_L=yes
8183 export_dynamic_flag_spec='${wl}-E'
8184 ;;
d7040cdb 8185
ce2cded5
L
8186 hpux10*)
8187 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8188 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8189 else
8190 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8191 fi
8192 if test "$with_gnu_ld" = no; then
8193 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8194 hardcode_libdir_flag_spec_ld='+b $libdir'
8195 hardcode_libdir_separator=:
8196 hardcode_direct=yes
8197 hardcode_direct_absolute=yes
8198 export_dynamic_flag_spec='${wl}-E'
8199 # hardcode_minus_L: Not really in the search PATH,
8200 # but as the default location of the library.
8201 hardcode_minus_L=yes
8202 fi
8203 ;;
d7040cdb 8204
ce2cded5
L
8205 hpux11*)
8206 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8207 case $host_cpu in
8208 hppa*64*)
8209 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8210 ;;
8211 ia64*)
8212 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8213 ;;
8214 *)
8215 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8216 ;;
8217 esac
8218 else
8219 case $host_cpu in
8220 hppa*64*)
8221 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8222 ;;
8223 ia64*)
8224 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8225 ;;
8226 *)
8227 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8228 ;;
8229 esac
8230 fi
8231 if test "$with_gnu_ld" = no; then
8232 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8233 hardcode_libdir_separator=:
d7040cdb 8234
ce2cded5
L
8235 case $host_cpu in
8236 hppa*64*|ia64*)
8237 hardcode_direct=no
8238 hardcode_shlibpath_var=no
8239 ;;
8240 *)
8241 hardcode_direct=yes
8242 hardcode_direct_absolute=yes
8243 export_dynamic_flag_spec='${wl}-E'
d7040cdb 8244
ce2cded5
L
8245 # hardcode_minus_L: Not really in the search PATH,
8246 # but as the default location of the library.
8247 hardcode_minus_L=yes
8248 ;;
8249 esac
8250 fi
8251 ;;
d7040cdb 8252
ce2cded5
L
8253 irix5* | irix6* | nonstopux*)
8254 if test "$GCC" = yes; then
8255 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8256 # Try to use the -exported_symbol ld option, if it does not
8257 # work, assume that -exports_file does not work either and
8258 # implicitly export all symbols.
8259 save_LDFLAGS="$LDFLAGS"
8260 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8261 cat >conftest.$ac_ext <<_ACEOF
8262int foo(void) {}
8263_ACEOF
8264rm -f conftest.$ac_objext conftest$ac_exeext
8265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8266 (eval $ac_link) 2>conftest.er1
8267 ac_status=$?
8268 grep -v '^ *+' conftest.er1 >conftest.err
8269 rm -f conftest.er1
8270 cat conftest.err >&5
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); } &&
8273 { ac_try='test -z "$ac_c_werror_flag"
8274 || test ! -s conftest.err'
8275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8276 (eval $ac_try) 2>&5
8277 ac_status=$?
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); }; } &&
8280 { ac_try='test -s conftest$ac_exeext'
8281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8282 (eval $ac_try) 2>&5
8283 ac_status=$?
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); }; }; then
8286 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
d7040cdb 8287
ce2cded5
L
8288else
8289 echo "$as_me: failed program was:" >&5
8290sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 8291
ce2cded5
L
8292fi
8293rm -f conftest.err conftest.$ac_objext \
8294 conftest$ac_exeext conftest.$ac_ext
8295 LDFLAGS="$save_LDFLAGS"
8296 else
8297 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8298 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8299 fi
8300 archive_cmds_need_lc='no'
8301 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8302 hardcode_libdir_separator=:
8303 inherit_rpath=yes
8304 link_all_deplibs=yes
8305 ;;
d7040cdb 8306
ce2cded5
L
8307 netbsd*)
8308 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8309 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8310 else
8311 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8312 fi
8313 hardcode_libdir_flag_spec='-R$libdir'
8314 hardcode_direct=yes
8315 hardcode_shlibpath_var=no
8316 ;;
d7040cdb 8317
ce2cded5
L
8318 newsos6)
8319 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8320 hardcode_direct=yes
8321 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8322 hardcode_libdir_separator=:
8323 hardcode_shlibpath_var=no
8324 ;;
d7040cdb 8325
ce2cded5
L
8326 *nto* | *qnx*)
8327 ;;
d7040cdb 8328
ce2cded5
L
8329 openbsd*)
8330 hardcode_direct=yes
8331 hardcode_shlibpath_var=no
8332 hardcode_direct_absolute=yes
8333 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8334 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8335 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8336 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8337 export_dynamic_flag_spec='${wl}-E'
8338 else
8339 case $host_os in
8340 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8341 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8342 hardcode_libdir_flag_spec='-R$libdir'
8343 ;;
8344 *)
8345 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8346 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8347 ;;
8348 esac
8349 fi
8350 ;;
d7040cdb 8351
ce2cded5
L
8352 os2*)
8353 hardcode_libdir_flag_spec='-L$libdir'
8354 hardcode_minus_L=yes
8355 allow_undefined_flag=unsupported
8356 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8357 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8358 ;;
d7040cdb 8359
ce2cded5
L
8360 osf3*)
8361 if test "$GCC" = yes; then
8362 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8363 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8364 else
8365 allow_undefined_flag=' -expect_unresolved \*'
8366 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8367 fi
8368 archive_cmds_need_lc='no'
8369 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8370 hardcode_libdir_separator=:
8371 ;;
d7040cdb 8372
ce2cded5
L
8373 osf4* | osf5*) # as osf3* with the addition of -msym flag
8374 if test "$GCC" = yes; then
8375 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8376 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8377 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8378 else
8379 allow_undefined_flag=' -expect_unresolved \*'
8380 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8381 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8382 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
d7040cdb 8383
ce2cded5
L
8384 # Both c and cxx compiler support -rpath directly
8385 hardcode_libdir_flag_spec='-rpath $libdir'
8386 fi
8387 archive_cmds_need_lc='no'
8388 hardcode_libdir_separator=:
8389 ;;
d7040cdb 8390
ce2cded5
L
8391 solaris*)
8392 no_undefined_flag=' -z defs'
8393 if test "$GCC" = yes; then
8394 wlarc='${wl}'
8395 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8396 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8397 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8398 else
8399 case `$CC -V 2>&1` in
8400 *"Compilers 5.0"*)
8401 wlarc=''
8402 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8403 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8404 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8405 ;;
8406 *)
8407 wlarc='${wl}'
8408 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8409 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8410 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8411 ;;
8412 esac
8413 fi
8414 hardcode_libdir_flag_spec='-R$libdir'
8415 hardcode_shlibpath_var=no
8416 case $host_os in
8417 solaris2.[0-5] | solaris2.[0-5].*) ;;
8418 *)
8419 # The compiler driver will combine and reorder linker options,
8420 # but understands `-z linker_flag'. GCC discards it without `$wl',
8421 # but is careful enough not to reorder.
8422 # Supported since Solaris 2.6 (maybe 2.5.1?)
8423 if test "$GCC" = yes; then
8424 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8425 else
8426 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8427 fi
8428 ;;
8429 esac
8430 link_all_deplibs=yes
8431 ;;
d7040cdb 8432
ce2cded5
L
8433 sunos4*)
8434 if test "x$host_vendor" = xsequent; then
8435 # Use $CC to link under sequent, because it throws in some extra .o
8436 # files that make .init and .fini sections work.
8437 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8438 else
8439 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8440 fi
8441 hardcode_libdir_flag_spec='-L$libdir'
8442 hardcode_direct=yes
8443 hardcode_minus_L=yes
8444 hardcode_shlibpath_var=no
8445 ;;
d7040cdb 8446
ce2cded5
L
8447 sysv4)
8448 case $host_vendor in
8449 sni)
8450 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8451 hardcode_direct=yes # is this really true???
8452 ;;
8453 siemens)
8454 ## LD is ld it makes a PLAMLIB
8455 ## CC just makes a GrossModule.
8456 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8457 reload_cmds='$CC -r -o $output$reload_objs'
8458 hardcode_direct=no
8459 ;;
8460 motorola)
8461 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8462 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8463 ;;
8464 esac
8465 runpath_var='LD_RUN_PATH'
8466 hardcode_shlibpath_var=no
8467 ;;
d7040cdb 8468
ce2cded5
L
8469 sysv4.3*)
8470 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8471 hardcode_shlibpath_var=no
8472 export_dynamic_flag_spec='-Bexport'
8473 ;;
d7040cdb 8474
ce2cded5
L
8475 sysv4*MP*)
8476 if test -d /usr/nec; then
8477 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8478 hardcode_shlibpath_var=no
8479 runpath_var=LD_RUN_PATH
8480 hardcode_runpath_var=yes
8481 ld_shlibs=yes
8482 fi
8483 ;;
d7040cdb 8484
ce2cded5
L
8485 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8486 no_undefined_flag='${wl}-z,text'
8487 archive_cmds_need_lc=no
8488 hardcode_shlibpath_var=no
8489 runpath_var='LD_RUN_PATH'
d7040cdb 8490
ce2cded5
L
8491 if test "$GCC" = yes; then
8492 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8493 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8494 else
8495 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8496 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8497 fi
8498 ;;
d7040cdb 8499
ce2cded5
L
8500 sysv5* | sco3.2v5* | sco5v6*)
8501 # Note: We can NOT use -z defs as we might desire, because we do not
8502 # link with -lc, and that would cause any symbols used from libc to
8503 # always be unresolved, which means just about no library would
8504 # ever link correctly. If we're not using GNU ld we use -z text
8505 # though, which does catch some bad symbols but isn't as heavy-handed
8506 # as -z defs.
8507 no_undefined_flag='${wl}-z,text'
8508 allow_undefined_flag='${wl}-z,nodefs'
8509 archive_cmds_need_lc=no
8510 hardcode_shlibpath_var=no
8511 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8512 hardcode_libdir_separator=':'
8513 link_all_deplibs=yes
8514 export_dynamic_flag_spec='${wl}-Bexport'
8515 runpath_var='LD_RUN_PATH'
d7040cdb 8516
ce2cded5
L
8517 if test "$GCC" = yes; then
8518 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8519 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8520 else
8521 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8522 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8523 fi
8524 ;;
d7040cdb 8525
ce2cded5
L
8526 uts4*)
8527 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8528 hardcode_libdir_flag_spec='-L$libdir'
8529 hardcode_shlibpath_var=no
8530 ;;
d7040cdb 8531
ce2cded5
L
8532 *)
8533 ld_shlibs=no
8534 ;;
8535 esac
d7040cdb 8536
ce2cded5
L
8537 if test x$host_vendor = xsni; then
8538 case $host in
8539 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8540 export_dynamic_flag_spec='${wl}-Blargedynsym'
8541 ;;
8542 esac
8543 fi
8544 fi
d7040cdb 8545
ce2cded5
L
8546echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8547echo "${ECHO_T}$ld_shlibs" >&6
8548test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 8549
ce2cded5 8550with_gnu_ld=$with_gnu_ld
d7040cdb
SE
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
ce2cded5
L
8566#
8567# Do we need to explicitly link libc?
8568#
8569case "x$archive_cmds_need_lc" in
8570x|xyes)
8571 # Assume -lc should be added
8572 archive_cmds_need_lc=yes
d7040cdb 8573
ce2cded5
L
8574 if test "$enable_shared" = yes && test "$GCC" = yes; then
8575 case $archive_cmds in
8576 *'~'*)
8577 # FIXME: we may have to deal with multi-command sequences.
8578 ;;
8579 '$CC '*)
8580 # Test whether the compiler implicitly links with -lc since on some
8581 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8582 # to ld, don't add -lc before -lgcc.
8583 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8584echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8585 $RM conftest*
8586 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8587
ce2cded5
L
8588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8589 (eval $ac_compile) 2>&5
8590 ac_status=$?
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); } 2>conftest.err; then
8593 soname=conftest
8594 lib=conftest
8595 libobjs=conftest.$ac_objext
8596 deplibs=
8597 wl=$lt_prog_compiler_wl
8598 pic_flag=$lt_prog_compiler_pic
8599 compiler_flags=-v
8600 linker_flags=-v
8601 verstring=
8602 output_objdir=.
8603 libname=conftest
8604 lt_save_allow_undefined_flag=$allow_undefined_flag
8605 allow_undefined_flag=
8606 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8607 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8608 ac_status=$?
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); }
8611 then
8612 archive_cmds_need_lc=no
8613 else
8614 archive_cmds_need_lc=yes
8615 fi
8616 allow_undefined_flag=$lt_save_allow_undefined_flag
8617 else
8618 cat conftest.err 1>&5
8619 fi
8620 $RM conftest*
8621 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8622echo "${ECHO_T}$archive_cmds_need_lc" >&6
8623 ;;
8624 esac
8625 fi
8626 ;;
8627esac
d7040cdb
SE
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
d7040cdb 8655
d7040cdb 8656
d7040cdb
SE
8657
8658
8659
8660
8661
8662
d7040cdb 8663
d7040cdb 8664
d7040cdb 8665
d7040cdb 8666
d7040cdb 8667
d7040cdb 8668
d7040cdb 8669
d7040cdb 8670
d7040cdb 8671
d7040cdb 8672
d7040cdb 8673
d7040cdb 8674
d7040cdb 8675
d7040cdb 8676
d7040cdb 8677
d7040cdb 8678
d7040cdb 8679
d7040cdb 8680
d7040cdb 8681
d7040cdb 8682
d7040cdb 8683
d7040cdb 8684
d7040cdb 8685
d7040cdb 8686
d7040cdb 8687
d7040cdb 8688
d7040cdb 8689
d7040cdb 8690
ce2cded5
L
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8786echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8787withGCC=$GCC
8788if test "$withGCC" = yes; then
8789 case $host_os in
8790 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8791 *) lt_awk_arg="/^libraries:/" ;;
8792 esac
8793 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8794 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8795 # if the path contains ";" then we assume it to be the separator
8796 # otherwise default to the standard path separator (i.e. ":") - it is
8797 # assumed that no part of a normal pathname contains ";" but that should
8798 # okay in the real world where ";" in dirpaths is itself problematic.
8799 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8800 else
8801 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8802 fi
8803 # Ok, now we have the path, separated by spaces, we can step through it
8804 # and add multilib dir if necessary.
8805 lt_tmp_lt_search_path_spec=
8806 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8807 for lt_sys_path in $lt_search_path_spec; do
8808 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8809 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8810 else
8811 test -d "$lt_sys_path" && \
8812 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8813 fi
8814 done
8815 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8816BEGIN {RS=" "; FS="/|\n";} {
8817 lt_foo="";
8818 lt_count=0;
8819 for (lt_i = NF; lt_i > 0; lt_i--) {
8820 if ($lt_i != "" && $lt_i != ".") {
8821 if ($lt_i == "..") {
8822 lt_count++;
8823 } else {
8824 if (lt_count == 0) {
8825 lt_foo="/" $lt_i lt_foo;
8826 } else {
8827 lt_count--;
8828 }
8829 }
8830 }
8831 }
8832 if (lt_foo != "") { lt_freq[lt_foo]++; }
8833 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8834}'`
8835 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
d7040cdb 8836else
ce2cded5
L
8837 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8838fi
8839library_names_spec=
8840libname_spec='lib$name'
8841soname_spec=
8842shrext_cmds=".so"
8843postinstall_cmds=
8844postuninstall_cmds=
8845finish_cmds=
8846finish_eval=
8847shlibpath_var=
8848shlibpath_overrides_runpath=unknown
8849version_type=none
8850dynamic_linker="$host_os ld.so"
8851sys_lib_dlsearch_path_spec="/lib /usr/lib"
8852need_lib_prefix=unknown
8853hardcode_into_libs=no
8854
8855# when you set need_version to no, make sure it does not cause -set_version
8856# flags to be left without arguments
8857need_version=unknown
8858
8859case $host_os in
8860aix3*)
8861 version_type=linux
8862 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8863 shlibpath_var=LIBPATH
8864
8865 # AIX 3 has no versioning support, so we append a major version to the name.
8866 soname_spec='${libname}${release}${shared_ext}$major'
8867 ;;
8868
50e7d84b 8869aix[4-9]*)
ce2cded5
L
8870 version_type=linux
8871 need_lib_prefix=no
8872 need_version=no
8873 hardcode_into_libs=yes
8874 if test "$host_cpu" = ia64; then
8875 # AIX 5 supports IA64
8876 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8877 shlibpath_var=LD_LIBRARY_PATH
8878 else
8879 # With GCC up to 2.95.x, collect2 would create an import file
8880 # for dependence libraries. The import file would start with
8881 # the line `#! .'. This would cause the generated library to
8882 # depend on `.', always an invalid library. This was fixed in
8883 # development snapshots of GCC prior to 3.0.
8884 case $host_os in
8885 aix4 | aix4.[01] | aix4.[01].*)
8886 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8887 echo ' yes '
8888 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8889 :
8890 else
8891 can_build_shared=no
8892 fi
8893 ;;
8894 esac
8895 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8896 # soname into executable. Probably we can add versioning support to
8897 # collect2, so additional links can be useful in future.
8898 if test "$aix_use_runtimelinking" = yes; then
8899 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8900 # instead of lib<name>.a to let people know that these are not
8901 # typical AIX shared libraries.
8902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8903 else
8904 # We preserve .a as extension for shared libraries through AIX4.2
8905 # and later when we are not doing run time linking.
8906 library_names_spec='${libname}${release}.a $libname.a'
8907 soname_spec='${libname}${release}${shared_ext}$major'
8908 fi
8909 shlibpath_var=LIBPATH
8910 fi
8911 ;;
8912
8913amigaos*)
8914 if test "$host_cpu" = m68k; then
8915 library_names_spec='$libname.ixlibrary $libname.a'
8916 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8917 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8918 else
8919 dynamic_linker=no
8920 fi
8921 ;;
8922
8923beos*)
8924 library_names_spec='${libname}${shared_ext}'
8925 dynamic_linker="$host_os ld.so"
8926 shlibpath_var=LIBRARY_PATH
8927 ;;
8928
8929bsdi[45]*)
8930 version_type=linux
8931 need_version=no
8932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8933 soname_spec='${libname}${release}${shared_ext}$major'
8934 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8935 shlibpath_var=LD_LIBRARY_PATH
8936 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8937 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8938 # the default ld.so.conf also contains /usr/contrib/lib and
8939 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8940 # libtool to hard-code these into programs
8941 ;;
8942
8943cygwin* | mingw* | pw32*)
8944 version_type=windows
8945 shrext_cmds=".dll"
8946 need_version=no
8947 need_lib_prefix=no
8948
8949 case $withGCC,$host_os in
8950 yes,cygwin* | yes,mingw* | yes,pw32*)
8951 library_names_spec='$libname.dll.a'
8952 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8953 postinstall_cmds='base_file=`basename \${file}`~
8954 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8955 dldir=$destdir/`dirname \$dlpath`~
8956 test -d \$dldir || mkdir -p \$dldir~
8957 $install_prog $dir/$dlname \$dldir/$dlname~
8958 chmod a+x \$dldir/$dlname~
8959 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8960 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8961 fi'
8962 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8963 dlpath=$dir/\$dldll~
8964 $RM \$dlpath'
8965 shlibpath_overrides_runpath=yes
8966
8967 case $host_os in
8968 cygwin*)
8969 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8970 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8971 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8972 ;;
8973 mingw*)
8974 # MinGW DLLs use traditional 'lib' prefix
8975 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8976 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8977 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8978 # It is most probably a Windows format PATH printed by
8979 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8980 # path with ; separators, and with drive letters. We can handle the
8981 # drive letters (cygwin fileutils understands them), so leave them,
8982 # especially as we might pass files found there to a mingw objdump,
8983 # which wouldn't understand a cygwinified path. Ahh.
8984 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8985 else
8986 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8987 fi
8988 ;;
8989 pw32*)
8990 # pw32 DLLs use 'pw' prefix rather than 'lib'
8991 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8992 ;;
8993 esac
8994 ;;
8995
8996 *)
8997 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8998 ;;
8999 esac
9000 dynamic_linker='Win32 ld.exe'
9001 # FIXME: first we should search . and the directory the executable is in
9002 shlibpath_var=PATH
9003 ;;
9004
9005darwin* | rhapsody*)
9006 dynamic_linker="$host_os dyld"
9007 version_type=darwin
9008 need_lib_prefix=no
9009 need_version=no
9010 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9011 soname_spec='${libname}${release}${major}$shared_ext'
9012 shlibpath_overrides_runpath=yes
9013 shlibpath_var=DYLD_LIBRARY_PATH
9014 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9015
9016 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9017 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9018 ;;
9019
9020dgux*)
9021 version_type=linux
9022 need_lib_prefix=no
9023 need_version=no
9024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9025 soname_spec='${libname}${release}${shared_ext}$major'
9026 shlibpath_var=LD_LIBRARY_PATH
9027 ;;
9028
9029freebsd1*)
9030 dynamic_linker=no
9031 ;;
9032
9033freebsd* | dragonfly*)
9034 # DragonFly does not have aout. When/if they implement a new
9035 # versioning mechanism, adjust this.
9036 if test -x /usr/bin/objformat; then
9037 objformat=`/usr/bin/objformat`
9038 else
9039 case $host_os in
9040 freebsd[123]*) objformat=aout ;;
9041 *) objformat=elf ;;
9042 esac
9043 fi
9044 version_type=freebsd-$objformat
9045 case $version_type in
9046 freebsd-elf*)
9047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9048 need_version=no
9049 need_lib_prefix=no
9050 ;;
9051 freebsd-*)
9052 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9053 need_version=yes
9054 ;;
9055 esac
9056 shlibpath_var=LD_LIBRARY_PATH
9057 case $host_os in
9058 freebsd2*)
9059 shlibpath_overrides_runpath=yes
9060 ;;
9061 freebsd3.[01]* | freebsdelf3.[01]*)
9062 shlibpath_overrides_runpath=yes
9063 hardcode_into_libs=yes
9064 ;;
9065 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9066 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9067 shlibpath_overrides_runpath=no
9068 hardcode_into_libs=yes
9069 ;;
9070 *) # from 4.6 on, and DragonFly
9071 shlibpath_overrides_runpath=yes
9072 hardcode_into_libs=yes
9073 ;;
9074 esac
9075 ;;
9076
9077gnu*)
9078 version_type=linux
9079 need_lib_prefix=no
9080 need_version=no
9081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9082 soname_spec='${libname}${release}${shared_ext}$major'
9083 shlibpath_var=LD_LIBRARY_PATH
9084 hardcode_into_libs=yes
9085 ;;
9086
9087hpux9* | hpux10* | hpux11*)
9088 # Give a soname corresponding to the major version so that dld.sl refuses to
9089 # link against other versions.
9090 version_type=sunos
9091 need_lib_prefix=no
9092 need_version=no
9093 case $host_cpu in
9094 ia64*)
9095 shrext_cmds='.so'
9096 hardcode_into_libs=yes
9097 dynamic_linker="$host_os dld.so"
9098 shlibpath_var=LD_LIBRARY_PATH
9099 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9101 soname_spec='${libname}${release}${shared_ext}$major'
9102 if test "X$HPUX_IA64_MODE" = X32; then
9103 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9104 else
9105 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9106 fi
9107 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9108 ;;
9109 hppa*64*)
9110 shrext_cmds='.sl'
9111 hardcode_into_libs=yes
9112 dynamic_linker="$host_os dld.sl"
9113 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9114 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9116 soname_spec='${libname}${release}${shared_ext}$major'
9117 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9118 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9119 ;;
9120 *)
9121 shrext_cmds='.sl'
9122 dynamic_linker="$host_os dld.sl"
9123 shlibpath_var=SHLIB_PATH
9124 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9126 soname_spec='${libname}${release}${shared_ext}$major'
9127 ;;
9128 esac
9129 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9130 postinstall_cmds='chmod 555 $lib'
9131 ;;
9132
9133interix[3-9]*)
9134 version_type=linux
9135 need_lib_prefix=no
9136 need_version=no
9137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9138 soname_spec='${libname}${release}${shared_ext}$major'
9139 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9140 shlibpath_var=LD_LIBRARY_PATH
9141 shlibpath_overrides_runpath=no
9142 hardcode_into_libs=yes
9143 ;;
9144
9145irix5* | irix6* | nonstopux*)
9146 case $host_os in
9147 nonstopux*) version_type=nonstopux ;;
9148 *)
9149 if test "$lt_cv_prog_gnu_ld" = yes; then
9150 version_type=linux
9151 else
9152 version_type=irix
9153 fi ;;
9154 esac
9155 need_lib_prefix=no
9156 need_version=no
9157 soname_spec='${libname}${release}${shared_ext}$major'
9158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9159 case $host_os in
9160 irix5* | nonstopux*)
9161 libsuff= shlibsuff=
9162 ;;
9163 *)
9164 case $LD in # libtool.m4 will add one of these switches to LD
9165 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9166 libsuff= shlibsuff= libmagic=32-bit;;
9167 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9168 libsuff=32 shlibsuff=N32 libmagic=N32;;
9169 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9170 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9171 *) libsuff= shlibsuff= libmagic=never-match;;
9172 esac
9173 ;;
9174 esac
9175 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9176 shlibpath_overrides_runpath=no
9177 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9178 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9179 hardcode_into_libs=yes
9180 ;;
9181
9182# No shared lib support for Linux oldld, aout, or coff.
9183linux*oldld* | linux*aout* | linux*coff*)
9184 dynamic_linker=no
9185 ;;
9186
9187# This must be Linux ELF.
9188linux* | k*bsd*-gnu)
9189 version_type=linux
9190 need_lib_prefix=no
9191 need_version=no
9192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9193 soname_spec='${libname}${release}${shared_ext}$major'
9194 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9195 shlibpath_var=LD_LIBRARY_PATH
9196 shlibpath_overrides_runpath=no
9197 # Some binutils ld are patched to set DT_RUNPATH
9198 save_LDFLAGS=$LDFLAGS
9199 save_libdir=$libdir
9200 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9201 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9202 cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
9203/* confdefs.h. */
9204_ACEOF
9205cat confdefs.h >>conftest.$ac_ext
9206cat >>conftest.$ac_ext <<_ACEOF
9207/* end confdefs.h. */
9208
d7040cdb
SE
9209int
9210main ()
9211{
ce2cded5 9212
d7040cdb
SE
9213 ;
9214 return 0;
9215}
9216_ACEOF
9217rm -f conftest.$ac_objext conftest$ac_exeext
9218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9219 (eval $ac_link) 2>conftest.er1
9220 ac_status=$?
9221 grep -v '^ *+' conftest.er1 >conftest.err
9222 rm -f conftest.er1
9223 cat conftest.err >&5
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); } &&
9226 { ac_try='test -z "$ac_c_werror_flag"
9227 || test ! -s conftest.err'
9228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229 (eval $ac_try) 2>&5
9230 ac_status=$?
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9232 (exit $ac_status); }; } &&
9233 { ac_try='test -s conftest$ac_exeext'
9234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9235 (eval $ac_try) 2>&5
9236 ac_status=$?
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); }; }; then
9239 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9240 shlibpath_overrides_runpath=yes
d7040cdb 9241fi
d7040cdb 9242
ce2cded5
L
9243else
9244 echo "$as_me: failed program was:" >&5
9245sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb
SE
9246
9247fi
ce2cded5
L
9248rm -f conftest.err conftest.$ac_objext \
9249 conftest$ac_exeext conftest.$ac_ext
9250 LDFLAGS=$save_LDFLAGS
9251 libdir=$save_libdir
d7040cdb 9252
ce2cded5
L
9253 # This implies no fast_install, which is unacceptable.
9254 # Some rework will be needed to allow for fast_install
9255 # before this can be enabled.
9256 hardcode_into_libs=yes
d7040cdb 9257
ce2cded5
L
9258 # Append ld.so.conf contents to the search path
9259 if test -f /etc/ld.so.conf; then
9260 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9261 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9262 fi
d7040cdb 9263
ce2cded5
L
9264 # We used to test for /lib/ld.so.1 and disable shared libraries on
9265 # powerpc, because MkLinux only supported shared libraries with the
9266 # GNU dynamic linker. Since this was broken with cross compilers,
9267 # most powerpc-linux boxes support dynamic linking these days and
9268 # people can always --disable-shared, the test was removed, and we
9269 # assume the GNU/Linux dynamic linker is in use.
9270 dynamic_linker='GNU/Linux ld.so'
9271 ;;
d7040cdb 9272
ce2cded5
L
9273netbsd*)
9274 version_type=sunos
9275 need_lib_prefix=no
9276 need_version=no
9277 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9279 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9280 dynamic_linker='NetBSD (a.out) ld.so'
9281 else
9282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9283 soname_spec='${libname}${release}${shared_ext}$major'
9284 dynamic_linker='NetBSD ld.elf_so'
9285 fi
9286 shlibpath_var=LD_LIBRARY_PATH
9287 shlibpath_overrides_runpath=yes
9288 hardcode_into_libs=yes
9289 ;;
d7040cdb 9290
ce2cded5
L
9291newsos6)
9292 version_type=linux
9293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9294 shlibpath_var=LD_LIBRARY_PATH
9295 shlibpath_overrides_runpath=yes
9296 ;;
d7040cdb 9297
ce2cded5
L
9298*nto* | *qnx*)
9299 version_type=qnx
9300 need_lib_prefix=no
9301 need_version=no
9302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9303 soname_spec='${libname}${release}${shared_ext}$major'
9304 shlibpath_var=LD_LIBRARY_PATH
9305 shlibpath_overrides_runpath=no
9306 hardcode_into_libs=yes
9307 dynamic_linker='ldqnx.so'
9308 ;;
d7040cdb 9309
ce2cded5
L
9310openbsd*)
9311 version_type=sunos
9312 sys_lib_dlsearch_path_spec="/usr/lib"
9313 need_lib_prefix=no
9314 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9315 case $host_os in
9316 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9317 *) need_version=no ;;
9318 esac
9319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9320 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9321 shlibpath_var=LD_LIBRARY_PATH
9322 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9323 case $host_os in
9324 openbsd2.[89] | openbsd2.[89].*)
9325 shlibpath_overrides_runpath=no
9326 ;;
9327 *)
9328 shlibpath_overrides_runpath=yes
9329 ;;
9330 esac
9331 else
9332 shlibpath_overrides_runpath=yes
9333 fi
9334 ;;
d7040cdb 9335
ce2cded5
L
9336os2*)
9337 libname_spec='$name'
9338 shrext_cmds=".dll"
9339 need_lib_prefix=no
9340 library_names_spec='$libname${shared_ext} $libname.a'
9341 dynamic_linker='OS/2 ld.exe'
9342 shlibpath_var=LIBPATH
9343 ;;
d7040cdb 9344
ce2cded5
L
9345osf3* | osf4* | osf5*)
9346 version_type=osf
9347 need_lib_prefix=no
9348 need_version=no
9349 soname_spec='${libname}${release}${shared_ext}$major'
9350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9351 shlibpath_var=LD_LIBRARY_PATH
9352 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9353 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9354 ;;
d7040cdb 9355
ce2cded5
L
9356rdos*)
9357 dynamic_linker=no
9358 ;;
d7040cdb 9359
ce2cded5
L
9360solaris*)
9361 version_type=linux
9362 need_lib_prefix=no
9363 need_version=no
9364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9365 soname_spec='${libname}${release}${shared_ext}$major'
9366 shlibpath_var=LD_LIBRARY_PATH
9367 shlibpath_overrides_runpath=yes
9368 hardcode_into_libs=yes
9369 # ldd complains unless libraries are executable
9370 postinstall_cmds='chmod +x $lib'
9371 ;;
d7040cdb 9372
ce2cded5
L
9373sunos4*)
9374 version_type=sunos
9375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9376 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9377 shlibpath_var=LD_LIBRARY_PATH
9378 shlibpath_overrides_runpath=yes
9379 if test "$with_gnu_ld" = yes; then
9380 need_lib_prefix=no
9381 fi
9382 need_version=yes
9383 ;;
d7040cdb 9384
ce2cded5
L
9385sysv4 | sysv4.3*)
9386 version_type=linux
9387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9388 soname_spec='${libname}${release}${shared_ext}$major'
9389 shlibpath_var=LD_LIBRARY_PATH
9390 case $host_vendor in
9391 sni)
9392 shlibpath_overrides_runpath=no
9393 need_lib_prefix=no
9394 runpath_var=LD_RUN_PATH
9395 ;;
9396 siemens)
9397 need_lib_prefix=no
9398 ;;
9399 motorola)
9400 need_lib_prefix=no
9401 need_version=no
9402 shlibpath_overrides_runpath=no
9403 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9404 ;;
9405 esac
9406 ;;
d7040cdb 9407
ce2cded5
L
9408sysv4*MP*)
9409 if test -d /usr/nec ;then
9410 version_type=linux
9411 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9412 soname_spec='$libname${shared_ext}.$major'
9413 shlibpath_var=LD_LIBRARY_PATH
9414 fi
9415 ;;
d7040cdb 9416
ce2cded5
L
9417sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9418 version_type=freebsd-elf
9419 need_lib_prefix=no
9420 need_version=no
9421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9422 soname_spec='${libname}${release}${shared_ext}$major'
9423 shlibpath_var=LD_LIBRARY_PATH
9424 shlibpath_overrides_runpath=yes
9425 hardcode_into_libs=yes
9426 if test "$with_gnu_ld" = yes; then
9427 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9428 else
9429 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9430 case $host_os in
9431 sco3.2v5*)
9432 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9433 ;;
9434 esac
9435 fi
9436 sys_lib_dlsearch_path_spec='/usr/lib'
9437 ;;
d7040cdb 9438
ce2cded5
L
9439tpf*)
9440 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9441 version_type=linux
9442 need_lib_prefix=no
9443 need_version=no
9444 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9445 shlibpath_var=LD_LIBRARY_PATH
9446 shlibpath_overrides_runpath=no
9447 hardcode_into_libs=yes
9448 ;;
d7040cdb 9449
ce2cded5
L
9450uts4*)
9451 version_type=linux
9452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9453 soname_spec='${libname}${release}${shared_ext}$major'
9454 shlibpath_var=LD_LIBRARY_PATH
9455 ;;
d7040cdb 9456
ce2cded5
L
9457*)
9458 dynamic_linker=no
9459 ;;
9460esac
9461echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9462echo "${ECHO_T}$dynamic_linker" >&6
9463test "$dynamic_linker" = no && can_build_shared=no
9464
9465variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9466if test "$GCC" = yes; then
9467 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb
SE
9468fi
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
d7040cdb 9481
d7040cdb 9482
d7040cdb 9483
d7040cdb 9484
d7040cdb
SE
9485
9486
9487
9488
d7040cdb 9489
d7040cdb
SE
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
d7040cdb
SE
9503
9504
9505
9506
d7040cdb
SE
9507
9508
9509
9510
d7040cdb 9511
d7040cdb 9512
d7040cdb 9513
d7040cdb 9514
d7040cdb 9515
d7040cdb 9516
d7040cdb 9517
d7040cdb
SE
9518
9519
9520
9521
9522
d7040cdb 9523
d7040cdb 9524
d7040cdb 9525
d7040cdb 9526
d7040cdb 9527
d7040cdb 9528
d7040cdb
SE
9529
9530
9531
9532
9533
d7040cdb
SE
9534
9535
d7040cdb 9536
d7040cdb 9537
d7040cdb 9538
d7040cdb 9539
ce2cded5
L
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9557echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9558hardcode_action=
9559if test -n "$hardcode_libdir_flag_spec" ||
9560 test -n "$runpath_var" ||
9561 test "X$hardcode_automatic" = "Xyes" ; then
9562
9563 # We can hardcode non-existent directories.
9564 if test "$hardcode_direct" != no &&
9565 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9566 # have to relink, otherwise we might link with an installed library
9567 # when we should be linking with a yet-to-be-installed one
9568 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9569 test "$hardcode_minus_L" != no; then
9570 # Linking always hardcodes the temporary library directory.
9571 hardcode_action=relink
9572 else
9573 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9574 hardcode_action=immediate
d7040cdb 9575 fi
d7040cdb 9576else
ce2cded5
L
9577 # We cannot hardcode anything, or else we can only hardcode existing
9578 # directories.
9579 hardcode_action=unsupported
d7040cdb 9580fi
ce2cded5
L
9581echo "$as_me:$LINENO: result: $hardcode_action" >&5
9582echo "${ECHO_T}$hardcode_action" >&6
d7040cdb 9583
ce2cded5
L
9584if test "$hardcode_action" = relink ||
9585 test "$inherit_rpath" = yes; then
9586 # Fast installation is not supported
9587 enable_fast_install=no
9588elif test "$shlibpath_overrides_runpath" = yes ||
9589 test "$enable_shared" = no; then
9590 # Fast installation is not necessary
9591 enable_fast_install=needless
d7040cdb
SE
9592fi
9593
d7040cdb 9594
d7040cdb 9595
d7040cdb 9596
d7040cdb 9597
d7040cdb 9598
ce2cded5
L
9599 if test "x$enable_dlopen" != xyes; then
9600 enable_dlopen=unknown
9601 enable_dlopen_self=unknown
9602 enable_dlopen_self_static=unknown
d7040cdb 9603else
ce2cded5
L
9604 lt_cv_dlopen=no
9605 lt_cv_dlopen_libs=
d7040cdb 9606
ce2cded5
L
9607 case $host_os in
9608 beos*)
9609 lt_cv_dlopen="load_add_on"
9610 lt_cv_dlopen_libs=
9611 lt_cv_dlopen_self=yes
9612 ;;
d7040cdb 9613
ce2cded5
L
9614 mingw* | pw32*)
9615 lt_cv_dlopen="LoadLibrary"
9616 lt_cv_dlopen_libs=
9617 ;;
9618
9619 cygwin*)
9620 lt_cv_dlopen="dlopen"
9621 lt_cv_dlopen_libs=
9622 ;;
9623
9624 darwin*)
9625 # if libdl is installed we need to link against it
9626 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9627echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9628if test "${ac_cv_lib_dl_dlopen+set}" = set; then
d7040cdb
SE
9629 echo $ECHO_N "(cached) $ECHO_C" >&6
9630else
ce2cded5
L
9631 ac_check_lib_save_LIBS=$LIBS
9632LIBS="-ldl $LIBS"
9633cat >conftest.$ac_ext <<_ACEOF
9634/* confdefs.h. */
9635_ACEOF
9636cat confdefs.h >>conftest.$ac_ext
9637cat >>conftest.$ac_ext <<_ACEOF
9638/* end confdefs.h. */
9639
9640/* Override any gcc2 internal prototype to avoid an error. */
9641#ifdef __cplusplus
9642extern "C"
9643#endif
9644/* We use char because int might match the return type of a gcc2
9645 builtin and then its argument prototype would still apply. */
9646char dlopen ();
9647int
9648main ()
9649{
9650dlopen ();
9651 ;
9652 return 0;
9653}
9654_ACEOF
9655rm -f conftest.$ac_objext conftest$ac_exeext
9656if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9657 (eval $ac_link) 2>conftest.er1
9658 ac_status=$?
9659 grep -v '^ *+' conftest.er1 >conftest.err
9660 rm -f conftest.er1
9661 cat conftest.err >&5
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); } &&
9664 { ac_try='test -z "$ac_c_werror_flag"
9665 || test ! -s conftest.err'
9666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9667 (eval $ac_try) 2>&5
9668 ac_status=$?
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); }; } &&
9671 { ac_try='test -s conftest$ac_exeext'
9672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9673 (eval $ac_try) 2>&5
9674 ac_status=$?
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); }; }; then
9677 ac_cv_lib_dl_dlopen=yes
9678else
9679 echo "$as_me: failed program was:" >&5
9680sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9681
ce2cded5 9682ac_cv_lib_dl_dlopen=no
d7040cdb 9683fi
ce2cded5
L
9684rm -f conftest.err conftest.$ac_objext \
9685 conftest$ac_exeext conftest.$ac_ext
9686LIBS=$ac_check_lib_save_LIBS
d7040cdb 9687fi
ce2cded5
L
9688echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9689echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9690if test $ac_cv_lib_dl_dlopen = yes; then
9691 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 9692else
d7040cdb 9693
ce2cded5
L
9694 lt_cv_dlopen="dyld"
9695 lt_cv_dlopen_libs=
9696 lt_cv_dlopen_self=yes
9697
d7040cdb 9698fi
ce2cded5
L
9699
9700 ;;
9701
9702 *)
9703 echo "$as_me:$LINENO: checking for shl_load" >&5
9704echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9705if test "${ac_cv_func_shl_load+set}" = set; then
d7040cdb
SE
9706 echo $ECHO_N "(cached) $ECHO_C" >&6
9707else
ce2cded5
L
9708 cat >conftest.$ac_ext <<_ACEOF
9709/* confdefs.h. */
9710_ACEOF
9711cat confdefs.h >>conftest.$ac_ext
9712cat >>conftest.$ac_ext <<_ACEOF
9713/* end confdefs.h. */
9714/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9716#define shl_load innocuous_shl_load
d7040cdb 9717
ce2cded5
L
9718/* System header to define __stub macros and hopefully few prototypes,
9719 which can conflict with char shl_load (); below.
9720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9721 <limits.h> exists even on freestanding compilers. */
d7040cdb 9722
ce2cded5
L
9723#ifdef __STDC__
9724# include <limits.h>
9725#else
9726# include <assert.h>
9727#endif
d7040cdb 9728
ce2cded5 9729#undef shl_load
d7040cdb 9730
ce2cded5
L
9731/* Override any gcc2 internal prototype to avoid an error. */
9732#ifdef __cplusplus
9733extern "C"
9734{
9735#endif
9736/* We use char because int might match the return type of a gcc2
9737 builtin and then its argument prototype would still apply. */
9738char shl_load ();
9739/* The GNU C library defines this for functions which it implements
9740 to always fail with ENOSYS. Some functions are actually named
9741 something starting with __ and the normal name is an alias. */
9742#if defined (__stub_shl_load) || defined (__stub___shl_load)
9743choke me
9744#else
9745char (*f) () = shl_load;
9746#endif
9747#ifdef __cplusplus
9748}
9749#endif
d7040cdb 9750
ce2cded5
L
9751int
9752main ()
9753{
9754return f != shl_load;
9755 ;
9756 return 0;
9757}
9758_ACEOF
9759rm -f conftest.$ac_objext conftest$ac_exeext
9760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9761 (eval $ac_link) 2>conftest.er1
9762 ac_status=$?
9763 grep -v '^ *+' conftest.er1 >conftest.err
9764 rm -f conftest.er1
9765 cat conftest.err >&5
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); } &&
9768 { ac_try='test -z "$ac_c_werror_flag"
9769 || test ! -s conftest.err'
9770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9771 (eval $ac_try) 2>&5
9772 ac_status=$?
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); }; } &&
9775 { ac_try='test -s conftest$ac_exeext'
9776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9777 (eval $ac_try) 2>&5
9778 ac_status=$?
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); }; }; then
9781 ac_cv_func_shl_load=yes
9782else
9783 echo "$as_me: failed program was:" >&5
9784sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9785
ce2cded5
L
9786ac_cv_func_shl_load=no
9787fi
9788rm -f conftest.err conftest.$ac_objext \
9789 conftest$ac_exeext conftest.$ac_ext
9790fi
9791echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9792echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9793if test $ac_cv_func_shl_load = yes; then
9794 lt_cv_dlopen="shl_load"
9795else
9796 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9797echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9798if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9799 echo $ECHO_N "(cached) $ECHO_C" >&6
9800else
9801 ac_check_lib_save_LIBS=$LIBS
9802LIBS="-ldld $LIBS"
9803cat >conftest.$ac_ext <<_ACEOF
9804/* confdefs.h. */
9805_ACEOF
9806cat confdefs.h >>conftest.$ac_ext
9807cat >>conftest.$ac_ext <<_ACEOF
9808/* end confdefs.h. */
d7040cdb 9809
ce2cded5
L
9810/* Override any gcc2 internal prototype to avoid an error. */
9811#ifdef __cplusplus
9812extern "C"
9813#endif
9814/* We use char because int might match the return type of a gcc2
9815 builtin and then its argument prototype would still apply. */
9816char shl_load ();
9817int
9818main ()
9819{
9820shl_load ();
9821 ;
9822 return 0;
9823}
9824_ACEOF
9825rm -f conftest.$ac_objext conftest$ac_exeext
9826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9827 (eval $ac_link) 2>conftest.er1
d7040cdb 9828 ac_status=$?
ce2cded5
L
9829 grep -v '^ *+' conftest.er1 >conftest.err
9830 rm -f conftest.er1
9831 cat conftest.err >&5
d7040cdb 9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9833 (exit $ac_status); } &&
9834 { ac_try='test -z "$ac_c_werror_flag"
9835 || test ! -s conftest.err'
9836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837 (eval $ac_try) 2>&5
d7040cdb
SE
9838 ac_status=$?
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9840 (exit $ac_status); }; } &&
9841 { ac_try='test -s conftest$ac_exeext'
9842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9843 (eval $ac_try) 2>&5
d7040cdb
SE
9844 ac_status=$?
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9846 (exit $ac_status); }; }; then
9847 ac_cv_lib_dld_shl_load=yes
9848else
9849 echo "$as_me: failed program was:" >&5
9850sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9851
ce2cded5
L
9852ac_cv_lib_dld_shl_load=no
9853fi
9854rm -f conftest.err conftest.$ac_objext \
9855 conftest$ac_exeext conftest.$ac_ext
9856LIBS=$ac_check_lib_save_LIBS
9857fi
9858echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9859echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9860if test $ac_cv_lib_dld_shl_load = yes; then
9861 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9862else
9863 echo "$as_me:$LINENO: checking for dlopen" >&5
9864echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9865if test "${ac_cv_func_dlopen+set}" = set; then
d7040cdb
SE
9866 echo $ECHO_N "(cached) $ECHO_C" >&6
9867else
9868 cat >conftest.$ac_ext <<_ACEOF
9869/* confdefs.h. */
9870_ACEOF
9871cat confdefs.h >>conftest.$ac_ext
9872cat >>conftest.$ac_ext <<_ACEOF
9873/* end confdefs.h. */
ce2cded5
L
9874/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9876#define dlopen innocuous_dlopen
9877
9878/* System header to define __stub macros and hopefully few prototypes,
9879 which can conflict with char dlopen (); below.
9880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9881 <limits.h> exists even on freestanding compilers. */
9882
9883#ifdef __STDC__
9884# include <limits.h>
9885#else
9886# include <assert.h>
9887#endif
9888
9889#undef dlopen
9890
9891/* Override any gcc2 internal prototype to avoid an error. */
9892#ifdef __cplusplus
9893extern "C"
9894{
9895#endif
9896/* We use char because int might match the return type of a gcc2
9897 builtin and then its argument prototype would still apply. */
9898char dlopen ();
9899/* The GNU C library defines this for functions which it implements
9900 to always fail with ENOSYS. Some functions are actually named
9901 something starting with __ and the normal name is an alias. */
9902#if defined (__stub_dlopen) || defined (__stub___dlopen)
9903choke me
9904#else
9905char (*f) () = dlopen;
9906#endif
9907#ifdef __cplusplus
9908}
9909#endif
d7040cdb
SE
9910
9911int
9912main ()
9913{
ce2cded5 9914return f != dlopen;
d7040cdb
SE
9915 ;
9916 return 0;
9917}
9918_ACEOF
ce2cded5
L
9919rm -f conftest.$ac_objext conftest$ac_exeext
9920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9921 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
9922 ac_status=$?
9923 grep -v '^ *+' conftest.er1 >conftest.err
9924 rm -f conftest.er1
9925 cat conftest.err >&5
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); } &&
9928 { ac_try='test -z "$ac_c_werror_flag"
9929 || test ! -s conftest.err'
9930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9931 (eval $ac_try) 2>&5
9932 ac_status=$?
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); }; } &&
ce2cded5 9935 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
9936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9937 (eval $ac_try) 2>&5
9938 ac_status=$?
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); }; }; then
ce2cded5 9941 ac_cv_func_dlopen=yes
d7040cdb
SE
9942else
9943 echo "$as_me: failed program was:" >&5
9944sed 's/^/| /' conftest.$ac_ext >&5
9945
ce2cded5 9946ac_cv_func_dlopen=no
d7040cdb 9947fi
ce2cded5
L
9948rm -f conftest.err conftest.$ac_objext \
9949 conftest$ac_exeext conftest.$ac_ext
d7040cdb 9950fi
ce2cded5
L
9951echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9952echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9953if test $ac_cv_func_dlopen = yes; then
9954 lt_cv_dlopen="dlopen"
9955else
9956 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9957echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9958if test "${ac_cv_lib_dl_dlopen+set}" = set; then
d7040cdb
SE
9959 echo $ECHO_N "(cached) $ECHO_C" >&6
9960else
ce2cded5
L
9961 ac_check_lib_save_LIBS=$LIBS
9962LIBS="-ldl $LIBS"
9963cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
9964/* confdefs.h. */
9965_ACEOF
9966cat confdefs.h >>conftest.$ac_ext
9967cat >>conftest.$ac_ext <<_ACEOF
9968/* end confdefs.h. */
9969
ce2cded5
L
9970/* Override any gcc2 internal prototype to avoid an error. */
9971#ifdef __cplusplus
9972extern "C"
9973#endif
9974/* We use char because int might match the return type of a gcc2
9975 builtin and then its argument prototype would still apply. */
9976char dlopen ();
d7040cdb
SE
9977int
9978main ()
9979{
ce2cded5 9980dlopen ();
d7040cdb
SE
9981 ;
9982 return 0;
9983}
9984_ACEOF
ce2cded5
L
9985rm -f conftest.$ac_objext conftest$ac_exeext
9986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9987 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
9988 ac_status=$?
9989 grep -v '^ *+' conftest.er1 >conftest.err
9990 rm -f conftest.er1
9991 cat conftest.err >&5
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); } &&
9994 { ac_try='test -z "$ac_c_werror_flag"
9995 || test ! -s conftest.err'
9996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9997 (eval $ac_try) 2>&5
9998 ac_status=$?
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); }; } &&
ce2cded5 10001 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
10002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10003 (eval $ac_try) 2>&5
10004 ac_status=$?
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); }; }; then
ce2cded5 10007 ac_cv_lib_dl_dlopen=yes
d7040cdb
SE
10008else
10009 echo "$as_me: failed program was:" >&5
10010sed 's/^/| /' conftest.$ac_ext >&5
10011
ce2cded5 10012ac_cv_lib_dl_dlopen=no
d7040cdb 10013fi
ce2cded5
L
10014rm -f conftest.err conftest.$ac_objext \
10015 conftest$ac_exeext conftest.$ac_ext
10016LIBS=$ac_check_lib_save_LIBS
d7040cdb 10017fi
ce2cded5
L
10018echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10019echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10020if test $ac_cv_lib_dl_dlopen = yes; then
10021 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 10022else
ce2cded5
L
10023 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10024echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10025if test "${ac_cv_lib_svld_dlopen+set}" = set; then
d7040cdb
SE
10026 echo $ECHO_N "(cached) $ECHO_C" >&6
10027else
ce2cded5
L
10028 ac_check_lib_save_LIBS=$LIBS
10029LIBS="-lsvld $LIBS"
d7040cdb
SE
10030cat >conftest.$ac_ext <<_ACEOF
10031/* confdefs.h. */
10032_ACEOF
10033cat confdefs.h >>conftest.$ac_ext
10034cat >>conftest.$ac_ext <<_ACEOF
10035/* end confdefs.h. */
d7040cdb 10036
ce2cded5
L
10037/* Override any gcc2 internal prototype to avoid an error. */
10038#ifdef __cplusplus
10039extern "C"
10040#endif
10041/* We use char because int might match the return type of a gcc2
10042 builtin and then its argument prototype would still apply. */
10043char dlopen ();
d7040cdb
SE
10044int
10045main ()
10046{
ce2cded5 10047dlopen ();
d7040cdb
SE
10048 ;
10049 return 0;
10050}
10051_ACEOF
ce2cded5
L
10052rm -f conftest.$ac_objext conftest$ac_exeext
10053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10054 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
10055 ac_status=$?
10056 grep -v '^ *+' conftest.er1 >conftest.err
10057 rm -f conftest.er1
10058 cat conftest.err >&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); } &&
10061 { ac_try='test -z "$ac_c_werror_flag"
10062 || test ! -s conftest.err'
10063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10064 (eval $ac_try) 2>&5
10065 ac_status=$?
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); }; } &&
ce2cded5 10068 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
10069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10070 (eval $ac_try) 2>&5
10071 ac_status=$?
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); }; }; then
ce2cded5 10074 ac_cv_lib_svld_dlopen=yes
d7040cdb
SE
10075else
10076 echo "$as_me: failed program was:" >&5
10077sed 's/^/| /' conftest.$ac_ext >&5
10078
ce2cded5 10079ac_cv_lib_svld_dlopen=no
d7040cdb 10080fi
ce2cded5
L
10081rm -f conftest.err conftest.$ac_objext \
10082 conftest$ac_exeext conftest.$ac_ext
10083LIBS=$ac_check_lib_save_LIBS
d7040cdb 10084fi
ce2cded5
L
10085echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10086echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10087if test $ac_cv_lib_svld_dlopen = yes; then
10088 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10089else
10090 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10091echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10092if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10093 echo $ECHO_N "(cached) $ECHO_C" >&6
10094else
10095 ac_check_lib_save_LIBS=$LIBS
10096LIBS="-ldld $LIBS"
d7040cdb 10097cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
10098/* confdefs.h. */
10099_ACEOF
10100cat confdefs.h >>conftest.$ac_ext
10101cat >>conftest.$ac_ext <<_ACEOF
ce2cded5
L
10102/* end confdefs.h. */
10103
10104/* Override any gcc2 internal prototype to avoid an error. */
10105#ifdef __cplusplus
10106extern "C"
10107#endif
10108/* We use char because int might match the return type of a gcc2
10109 builtin and then its argument prototype would still apply. */
10110char dld_link ();
d7040cdb
SE
10111int
10112main ()
10113{
ce2cded5 10114dld_link ();
d7040cdb
SE
10115 ;
10116 return 0;
10117}
10118_ACEOF
ce2cded5
L
10119rm -f conftest.$ac_objext conftest$ac_exeext
10120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10121 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
10122 ac_status=$?
10123 grep -v '^ *+' conftest.er1 >conftest.err
10124 rm -f conftest.er1
10125 cat conftest.err >&5
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); } &&
10128 { ac_try='test -z "$ac_c_werror_flag"
10129 || test ! -s conftest.err'
10130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10131 (eval $ac_try) 2>&5
10132 ac_status=$?
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); }; } &&
ce2cded5 10135 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
10136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10137 (eval $ac_try) 2>&5
10138 ac_status=$?
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); }; }; then
ce2cded5 10141 ac_cv_lib_dld_dld_link=yes
d7040cdb
SE
10142else
10143 echo "$as_me: failed program was:" >&5
10144sed 's/^/| /' conftest.$ac_ext >&5
10145
ce2cded5 10146ac_cv_lib_dld_dld_link=no
d7040cdb 10147fi
ce2cded5
L
10148rm -f conftest.err conftest.$ac_objext \
10149 conftest$ac_exeext conftest.$ac_ext
10150LIBS=$ac_check_lib_save_LIBS
10151fi
10152echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10153echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10154if test $ac_cv_lib_dld_dld_link = yes; then
10155 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10156fi
10157
10158
10159fi
10160
10161
10162fi
10163
10164
10165fi
10166
10167
10168fi
10169
10170
10171fi
10172
10173 ;;
10174 esac
10175
10176 if test "x$lt_cv_dlopen" != xno; then
10177 enable_dlopen=yes
10178 else
10179 enable_dlopen=no
10180 fi
10181
10182 case $lt_cv_dlopen in
10183 dlopen)
10184 save_CPPFLAGS="$CPPFLAGS"
10185 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10186
10187 save_LDFLAGS="$LDFLAGS"
10188 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10189
10190 save_LIBS="$LIBS"
10191 LIBS="$lt_cv_dlopen_libs $LIBS"
10192
10193 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10194echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10195if test "${lt_cv_dlopen_self+set}" = set; then
10196 echo $ECHO_N "(cached) $ECHO_C" >&6
10197else
10198 if test "$cross_compiling" = yes; then :
10199 lt_cv_dlopen_self=cross
10200else
10201 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10202 lt_status=$lt_dlunknown
10203 cat > conftest.$ac_ext <<_LT_EOF
6194aaab 10204#line 10204 "configure"
ce2cded5
L
10205#include "confdefs.h"
10206
10207#if HAVE_DLFCN_H
10208#include <dlfcn.h>
10209#endif
10210
10211#include <stdio.h>
10212
10213#ifdef RTLD_GLOBAL
10214# define LT_DLGLOBAL RTLD_GLOBAL
10215#else
10216# ifdef DL_GLOBAL
10217# define LT_DLGLOBAL DL_GLOBAL
10218# else
10219# define LT_DLGLOBAL 0
10220# endif
10221#endif
10222
10223/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10224 find out it does not work in some platform. */
10225#ifndef LT_DLLAZY_OR_NOW
10226# ifdef RTLD_LAZY
10227# define LT_DLLAZY_OR_NOW RTLD_LAZY
10228# else
10229# ifdef DL_LAZY
10230# define LT_DLLAZY_OR_NOW DL_LAZY
10231# else
10232# ifdef RTLD_NOW
10233# define LT_DLLAZY_OR_NOW RTLD_NOW
10234# else
10235# ifdef DL_NOW
10236# define LT_DLLAZY_OR_NOW DL_NOW
10237# else
10238# define LT_DLLAZY_OR_NOW 0
10239# endif
10240# endif
10241# endif
10242# endif
10243#endif
10244
10245#ifdef __cplusplus
10246extern "C" void exit (int);
10247#endif
10248
10249void fnord() { int i=42;}
10250int main ()
d7040cdb 10251{
ce2cded5
L
10252 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10253 int status = $lt_dlunknown;
10254
10255 if (self)
10256 {
10257 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10258 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10259 /* dlclose (self); */
10260 }
10261 else
10262 puts (dlerror ());
10263
10264 exit (status);
d7040cdb 10265}
ce2cded5
L
10266_LT_EOF
10267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10268 (eval $ac_link) 2>&5
d7040cdb
SE
10269 ac_status=$?
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
10271 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10272 (./conftest; exit; ) >&5 2>/dev/null
10273 lt_status=$?
10274 case x$lt_status in
10275 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10276 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10277 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10278 esac
10279 else :
10280 # compilation failed
10281 lt_cv_dlopen_self=no
10282 fi
10283fi
10284rm -fr conftest*
10285
10286
10287fi
10288echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10289echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10290
10291 if test "x$lt_cv_dlopen_self" = xyes; then
10292 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10293 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10294echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10295if test "${lt_cv_dlopen_self_static+set}" = set; then
10296 echo $ECHO_N "(cached) $ECHO_C" >&6
10297else
10298 if test "$cross_compiling" = yes; then :
10299 lt_cv_dlopen_self_static=cross
10300else
10301 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10302 lt_status=$lt_dlunknown
10303 cat > conftest.$ac_ext <<_LT_EOF
6194aaab 10304#line 10304 "configure"
ce2cded5
L
10305#include "confdefs.h"
10306
10307#if HAVE_DLFCN_H
10308#include <dlfcn.h>
10309#endif
10310
10311#include <stdio.h>
10312
10313#ifdef RTLD_GLOBAL
10314# define LT_DLGLOBAL RTLD_GLOBAL
10315#else
10316# ifdef DL_GLOBAL
10317# define LT_DLGLOBAL DL_GLOBAL
10318# else
10319# define LT_DLGLOBAL 0
10320# endif
10321#endif
10322
10323/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10324 find out it does not work in some platform. */
10325#ifndef LT_DLLAZY_OR_NOW
10326# ifdef RTLD_LAZY
10327# define LT_DLLAZY_OR_NOW RTLD_LAZY
10328# else
10329# ifdef DL_LAZY
10330# define LT_DLLAZY_OR_NOW DL_LAZY
10331# else
10332# ifdef RTLD_NOW
10333# define LT_DLLAZY_OR_NOW RTLD_NOW
10334# else
10335# ifdef DL_NOW
10336# define LT_DLLAZY_OR_NOW DL_NOW
10337# else
10338# define LT_DLLAZY_OR_NOW 0
10339# endif
10340# endif
10341# endif
10342# endif
10343#endif
10344
10345#ifdef __cplusplus
10346extern "C" void exit (int);
10347#endif
10348
10349void fnord() { int i=42;}
10350int main ()
10351{
10352 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10353 int status = $lt_dlunknown;
10354
10355 if (self)
10356 {
10357 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10358 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10359 /* dlclose (self); */
10360 }
10361 else
10362 puts (dlerror ());
10363
10364 exit (status);
10365}
10366_LT_EOF
10367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10368 (eval $ac_link) 2>&5
d7040cdb
SE
10369 ac_status=$?
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
10371 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10372 (./conftest; exit; ) >&5 2>/dev/null
10373 lt_status=$?
10374 case x$lt_status in
10375 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10376 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10377 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10378 esac
10379 else :
10380 # compilation failed
10381 lt_cv_dlopen_self_static=no
10382 fi
10383fi
10384rm -fr conftest*
10385
d7040cdb
SE
10386
10387fi
ce2cded5
L
10388echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10389echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10390 fi
10391
10392 CPPFLAGS="$save_CPPFLAGS"
10393 LDFLAGS="$save_LDFLAGS"
10394 LIBS="$save_LIBS"
10395 ;;
10396 esac
10397
10398 case $lt_cv_dlopen_self in
10399 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10400 *) enable_dlopen_self=unknown ;;
10401 esac
10402
10403 case $lt_cv_dlopen_self_static in
10404 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10405 *) enable_dlopen_self_static=unknown ;;
10406 esac
d7040cdb
SE
10407fi
10408
ce2cded5
L
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425striplib=
10426old_striplib=
10427echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10428echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10429if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10430 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10431 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10432 echo "$as_me:$LINENO: result: yes" >&5
10433echo "${ECHO_T}yes" >&6
d7040cdb 10434else
ce2cded5
L
10435# FIXME - insert some real tests, host_os isn't really good enough
10436 case $host_os in
10437 darwin*)
10438 if test -n "$STRIP" ; then
10439 striplib="$STRIP -x"
10440 old_striplib="$STRIP -S"
10441 echo "$as_me:$LINENO: result: yes" >&5
10442echo "${ECHO_T}yes" >&6
10443 else
10444 echo "$as_me:$LINENO: result: no" >&5
10445echo "${ECHO_T}no" >&6
10446 fi
10447 ;;
10448 *)
10449 echo "$as_me:$LINENO: result: no" >&5
10450echo "${ECHO_T}no" >&6
10451 ;;
10452 esac
10453fi
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466 # Report which library types will actually be built
10467 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10468echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10469 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10470echo "${ECHO_T}$can_build_shared" >&6
10471
10472 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10473echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10474 test "$can_build_shared" = "no" && enable_shared=no
10475
10476 # On AIX, shared libraries and static libraries use the same namespace, and
10477 # are all built from PIC.
10478 case $host_os in
10479 aix3*)
10480 test "$enable_shared" = yes && enable_static=no
10481 if test -n "$RANLIB"; then
10482 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10483 postinstall_cmds='$RANLIB $lib'
10484 fi
10485 ;;
10486
50e7d84b 10487 aix[4-9]*)
ce2cded5
L
10488 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10489 test "$enable_shared" = yes && enable_static=no
10490 fi
10491 ;;
10492 esac
10493 echo "$as_me:$LINENO: result: $enable_shared" >&5
10494echo "${ECHO_T}$enable_shared" >&6
10495
10496 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10497echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10498 # Make sure either enable_shared or enable_static is yes.
10499 test "$enable_shared" = yes || enable_static=yes
10500 echo "$as_me:$LINENO: result: $enable_static" >&5
10501echo "${ECHO_T}$enable_static" >&6
10502
10503
10504
d7040cdb
SE
10505
10506fi
d7040cdb
SE
10507ac_ext=c
10508ac_cpp='$CPP $CPPFLAGS'
10509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10511ac_compiler_gnu=$ac_cv_c_compiler_gnu
10512
ce2cded5 10513CC="$lt_save_CC"
67310ccd 10514
67310ccd
AM
10515
10516
d7040cdb
SE
10517
10518
d7040cdb 10519
d7040cdb 10520
d7040cdb 10521
ce2cded5
L
10522
10523
10524
10525
10526
10527 ac_config_commands="$ac_config_commands libtool"
10528
10529
10530
10531
10532# Only expand once:
10533
d7040cdb
SE
10534
10535
19aec961 10536ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi"
d7040cdb
SE
10537# If we haven't got the data from the intl directory,
10538# assume NLS is disabled.
10539USE_NLS=no
10540LIBINTL=
10541LIBINTL_DEP=
10542INCINTL=
10543XGETTEXT=
10544GMSGFMT=
10545POSUB=
10546
10547if test -f ../intl/config.intl; then
10548 . ../intl/config.intl
10549fi
10550echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10551echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10552if test x"$USE_NLS" != xyes; then
10553 echo "$as_me:$LINENO: result: no" >&5
10554echo "${ECHO_T}no" >&6
10555else
10556 echo "$as_me:$LINENO: result: yes" >&5
10557echo "${ECHO_T}yes" >&6
10558
10559cat >>confdefs.h <<\_ACEOF
10560#define ENABLE_NLS 1
10561_ACEOF
10562
10563
10564 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10565echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10566 # Look for .po and .gmo files in the source directory.
10567 CATALOGS=
10568 XLINGUAS=
10569 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10570 # If there aren't any .gmo files the shell will give us the
10571 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10572 # weeded out.
10573 case "$cat" in *\**)
10574 continue;;
10575 esac
10576 # The quadruple backslash is collapsed to a double backslash
10577 # by the backticks, then collapsed again by the double quotes,
10578 # leaving us with one backslash in the sed expression (right
10579 # before the dot that mustn't act as a wildcard).
10580 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10581 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10582 # The user is allowed to set LINGUAS to a list of languages to
10583 # install catalogs for. If it's empty that means "all of them."
10584 if test "x$LINGUAS" = x; then
10585 CATALOGS="$CATALOGS $cat"
10586 XLINGUAS="$XLINGUAS $lang"
10587 else
10588 case "$LINGUAS" in *$lang*)
10589 CATALOGS="$CATALOGS $cat"
10590 XLINGUAS="$XLINGUAS $lang"
10591 ;;
10592 esac
10593 fi
10594 done
10595 LINGUAS="$XLINGUAS"
10596 echo "$as_me:$LINENO: result: $LINGUAS" >&5
10597echo "${ECHO_T}$LINGUAS" >&6
10598
10599
10600 DATADIRNAME=share
10601
10602 INSTOBJEXT=.mo
10603
10604 GENCAT=gencat
10605
10606 CATOBJEXT=.gmo
10607
10608fi
10609
10610 MKINSTALLDIRS=
10611 if test -n "$ac_aux_dir"; then
10612 case "$ac_aux_dir" in
10613 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10614 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10615 esac
10616 fi
10617 if test -z "$MKINSTALLDIRS"; then
10618 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10619 fi
10620
10621
10622
10623 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10624echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10625 # Check whether --enable-nls or --disable-nls was given.
10626if test "${enable_nls+set}" = set; then
10627 enableval="$enable_nls"
10628 USE_NLS=$enableval
10629else
10630 USE_NLS=yes
10631fi;
10632 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10633echo "${ECHO_T}$USE_NLS" >&6
10634
10635
10636
10637
10638
10639
10640# Prepare PATH_SEPARATOR.
10641# The user is always right.
10642if test "${PATH_SEPARATOR+set}" != set; then
10643 echo "#! /bin/sh" >conf$$.sh
10644 echo "exit 0" >>conf$$.sh
10645 chmod +x conf$$.sh
10646 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10647 PATH_SEPARATOR=';'
10648 else
10649 PATH_SEPARATOR=:
10650 fi
10651 rm -f conf$$.sh
10652fi
10653
10654# Find out how to test for executable files. Don't use a zero-byte file,
10655# as systems may use methods other than mode bits to determine executability.
10656cat >conf$$.file <<_ASEOF
10657#! /bin/sh
10658exit 0
10659_ASEOF
10660chmod +x conf$$.file
10661if test -x conf$$.file >/dev/null 2>&1; then
10662 ac_executable_p="test -x"
10663else
10664 ac_executable_p="test -f"
10665fi
10666rm -f conf$$.file
10667
10668# Extract the first word of "msgfmt", so it can be a program name with args.
10669set dummy msgfmt; ac_word=$2
10670echo "$as_me:$LINENO: checking for $ac_word" >&5
10671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10672if test "${ac_cv_path_MSGFMT+set}" = set; then
10673 echo $ECHO_N "(cached) $ECHO_C" >&6
10674else
10675 case "$MSGFMT" in
10676 [\\/]* | ?:[\\/]*)
10677 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10678 ;;
10679 *)
10680 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10681 for ac_dir in $PATH; do
10682 IFS="$ac_save_IFS"
10683 test -z "$ac_dir" && ac_dir=.
10684 for ac_exec_ext in '' $ac_executable_extensions; do
10685 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10686 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10687 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10688 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10689 break 2
10690 fi
10691 fi
10692 done
10693 done
10694 IFS="$ac_save_IFS"
10695 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10696 ;;
10697esac
10698fi
10699MSGFMT="$ac_cv_path_MSGFMT"
10700if test "$MSGFMT" != ":"; then
10701 echo "$as_me:$LINENO: result: $MSGFMT" >&5
10702echo "${ECHO_T}$MSGFMT" >&6
10703else
10704 echo "$as_me:$LINENO: result: no" >&5
10705echo "${ECHO_T}no" >&6
10706fi
10707
10708 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10709set dummy gmsgfmt; ac_word=$2
10710echo "$as_me:$LINENO: checking for $ac_word" >&5
10711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10712if test "${ac_cv_path_GMSGFMT+set}" = set; then
10713 echo $ECHO_N "(cached) $ECHO_C" >&6
10714else
10715 case $GMSGFMT in
10716 [\\/]* | ?:[\\/]*)
10717 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10718 ;;
10719 *)
10720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10721for as_dir in $PATH
10722do
10723 IFS=$as_save_IFS
10724 test -z "$as_dir" && as_dir=.
10725 for ac_exec_ext in '' $ac_executable_extensions; do
10726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10727 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10729 break 2
10730 fi
10731done
10732done
10733
10734 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10735 ;;
10736esac
10737fi
10738GMSGFMT=$ac_cv_path_GMSGFMT
252b5132 10739
d7040cdb
SE
10740if test -n "$GMSGFMT"; then
10741 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10742echo "${ECHO_T}$GMSGFMT" >&6
10743else
10744 echo "$as_me:$LINENO: result: no" >&5
10745echo "${ECHO_T}no" >&6
20e95c23 10746fi
42ecbf5e 10747
20e95c23 10748
252b5132 10749
d7040cdb
SE
10750# Prepare PATH_SEPARATOR.
10751# The user is always right.
10752if test "${PATH_SEPARATOR+set}" != set; then
10753 echo "#! /bin/sh" >conf$$.sh
10754 echo "exit 0" >>conf$$.sh
10755 chmod +x conf$$.sh
10756 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10757 PATH_SEPARATOR=';'
10758 else
10759 PATH_SEPARATOR=:
10760 fi
10761 rm -f conf$$.sh
20e95c23 10762fi
252b5132 10763
d7040cdb
SE
10764# Find out how to test for executable files. Don't use a zero-byte file,
10765# as systems may use methods other than mode bits to determine executability.
10766cat >conf$$.file <<_ASEOF
10767#! /bin/sh
10768exit 0
10769_ASEOF
10770chmod +x conf$$.file
10771if test -x conf$$.file >/dev/null 2>&1; then
10772 ac_executable_p="test -x"
20e95c23 10773else
d7040cdb
SE
10774 ac_executable_p="test -f"
10775fi
10776rm -f conf$$.file
20e95c23 10777
d7040cdb
SE
10778# Extract the first word of "xgettext", so it can be a program name with args.
10779set dummy xgettext; ac_word=$2
10780echo "$as_me:$LINENO: checking for $ac_word" >&5
10781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10782if test "${ac_cv_path_XGETTEXT+set}" = set; then
10783 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10784else
d7040cdb
SE
10785 case "$XGETTEXT" in
10786 [\\/]* | ?:[\\/]*)
10787 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10788 ;;
10789 *)
10790 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10791 for ac_dir in $PATH; do
10792 IFS="$ac_save_IFS"
10793 test -z "$ac_dir" && ac_dir=.
10794 for ac_exec_ext in '' $ac_executable_extensions; do
10795 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10796 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10797 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10798 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10799 break 2
10800 fi
10801 fi
10802 done
10803 done
10804 IFS="$ac_save_IFS"
10805 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10806 ;;
10807esac
252b5132 10808fi
d7040cdb
SE
10809XGETTEXT="$ac_cv_path_XGETTEXT"
10810if test "$XGETTEXT" != ":"; then
10811 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10812echo "${ECHO_T}$XGETTEXT" >&6
d5fbea21 10813else
d7040cdb
SE
10814 echo "$as_me:$LINENO: result: no" >&5
10815echo "${ECHO_T}no" >&6
d5fbea21
DJ
10816fi
10817
d7040cdb 10818 rm -f messages.po
d5fbea21 10819
20e95c23 10820
d7040cdb
SE
10821# Prepare PATH_SEPARATOR.
10822# The user is always right.
10823if test "${PATH_SEPARATOR+set}" != set; then
10824 echo "#! /bin/sh" >conf$$.sh
10825 echo "exit 0" >>conf$$.sh
10826 chmod +x conf$$.sh
10827 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10828 PATH_SEPARATOR=';'
10829 else
10830 PATH_SEPARATOR=:
10831 fi
10832 rm -f conf$$.sh
10833fi
20e95c23 10834
d7040cdb
SE
10835# Find out how to test for executable files. Don't use a zero-byte file,
10836# as systems may use methods other than mode bits to determine executability.
10837cat >conf$$.file <<_ASEOF
10838#! /bin/sh
10839exit 0
10840_ASEOF
10841chmod +x conf$$.file
10842if test -x conf$$.file >/dev/null 2>&1; then
10843 ac_executable_p="test -x"
10844else
10845 ac_executable_p="test -f"
10846fi
10847rm -f conf$$.file
20e95c23 10848
d7040cdb
SE
10849# Extract the first word of "msgmerge", so it can be a program name with args.
10850set dummy msgmerge; ac_word=$2
10851echo "$as_me:$LINENO: checking for $ac_word" >&5
10852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10853if test "${ac_cv_path_MSGMERGE+set}" = set; then
10854 echo $ECHO_N "(cached) $ECHO_C" >&6
10855else
10856 case "$MSGMERGE" in
10857 [\\/]* | ?:[\\/]*)
10858 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
10859 ;;
10860 *)
10861 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10862 for ac_dir in $PATH; do
10863 IFS="$ac_save_IFS"
10864 test -z "$ac_dir" && ac_dir=.
10865 for ac_exec_ext in '' $ac_executable_extensions; do
10866 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10867 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
10868 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
10869 break 2
10870 fi
10871 fi
10872 done
10873 done
10874 IFS="$ac_save_IFS"
10875 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
10876 ;;
10877esac
10878fi
10879MSGMERGE="$ac_cv_path_MSGMERGE"
10880if test "$MSGMERGE" != ":"; then
10881 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
10882echo "${ECHO_T}$MSGMERGE" >&6
10883else
10884 echo "$as_me:$LINENO: result: no" >&5
10885echo "${ECHO_T}no" >&6
10886fi
20e95c23
DJ
10887
10888
d7040cdb
SE
10889 if test "$GMSGFMT" != ":"; then
10890 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
10891 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10892 : ;
10893 else
10894 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
10895 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
10896echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
10897 GMSGFMT=":"
10898 fi
10899 fi
20e95c23 10900
d7040cdb
SE
10901 if test "$XGETTEXT" != ":"; then
10902 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10903 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10904 : ;
10905 else
10906 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
10907echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
10908 XGETTEXT=":"
10909 fi
10910 rm -f messages.po
20e95c23 10911 fi
42ecbf5e 10912
d7040cdb 10913 ac_config_commands="$ac_config_commands default-1"
252b5132 10914
42ecbf5e 10915
252b5132 10916
42ecbf5e
DJ
10917
10918
d7040cdb 10919for ac_prog in 'bison -y' byacc
20e95c23 10920do
d7040cdb
SE
10921 # Extract the first word of "$ac_prog", so it can be a program name with args.
10922set dummy $ac_prog; ac_word=$2
10923echo "$as_me:$LINENO: checking for $ac_word" >&5
10924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10925if test "${ac_cv_prog_YACC+set}" = set; then
10926 echo $ECHO_N "(cached) $ECHO_C" >&6
20e95c23 10927else
d7040cdb
SE
10928 if test -n "$YACC"; then
10929 ac_cv_prog_YACC="$YACC" # Let the user override the test.
42ecbf5e 10930else
d7040cdb
SE
10931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10932for as_dir in $PATH
10933do
10934 IFS=$as_save_IFS
10935 test -z "$as_dir" && as_dir=.
10936 for ac_exec_ext in '' $ac_executable_extensions; do
10937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10938 ac_cv_prog_YACC="$ac_prog"
10939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10940 break 2
10941 fi
10942done
10943done
42ecbf5e 10944
42ecbf5e 10945fi
e5a52504 10946fi
d7040cdb
SE
10947YACC=$ac_cv_prog_YACC
10948if test -n "$YACC"; then
10949 echo "$as_me:$LINENO: result: $YACC" >&5
10950echo "${ECHO_T}$YACC" >&6
42ecbf5e 10951else
d7040cdb
SE
10952 echo "$as_me:$LINENO: result: no" >&5
10953echo "${ECHO_T}no" >&6
42ecbf5e 10954fi
252b5132 10955
d7040cdb 10956 test -n "$YACC" && break
42ecbf5e 10957done
d7040cdb 10958test -n "$YACC" || YACC="yacc"
d15b04bd 10959
d7040cdb
SE
10960for ac_prog in flex lex
10961do
10962 # Extract the first word of "$ac_prog", so it can be a program name with args.
10963set dummy $ac_prog; ac_word=$2
10964echo "$as_me:$LINENO: checking for $ac_word" >&5
10965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10966if test "${ac_cv_prog_LEX+set}" = set; then
20e95c23 10967 echo $ECHO_N "(cached) $ECHO_C" >&6
d15b04bd 10968else
d7040cdb
SE
10969 if test -n "$LEX"; then
10970 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10971else
10972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10973for as_dir in $PATH
10974do
10975 IFS=$as_save_IFS
10976 test -z "$as_dir" && as_dir=.
10977 for ac_exec_ext in '' $ac_executable_extensions; do
10978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10979 ac_cv_prog_LEX="$ac_prog"
10980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10981 break 2
10982 fi
10983done
10984done
10985
10986fi
10987fi
10988LEX=$ac_cv_prog_LEX
10989if test -n "$LEX"; then
10990 echo "$as_me:$LINENO: result: $LEX" >&5
10991echo "${ECHO_T}$LEX" >&6
10992else
10993 echo "$as_me:$LINENO: result: no" >&5
10994echo "${ECHO_T}no" >&6
d15b04bd 10995fi
e5a52504 10996
d7040cdb
SE
10997 test -n "$LEX" && break
10998done
10999test -n "$LEX" || LEX=":"
42ecbf5e 11000
d7040cdb
SE
11001if test -z "$LEXLIB"
11002then
11003 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11004echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11005if test "${ac_cv_lib_fl_yywrap+set}" = set; then
42ecbf5e
DJ
11006 echo $ECHO_N "(cached) $ECHO_C" >&6
11007else
d7040cdb
SE
11008 ac_check_lib_save_LIBS=$LIBS
11009LIBS="-lfl $LIBS"
11010cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
11011/* confdefs.h. */
11012_ACEOF
11013cat confdefs.h >>conftest.$ac_ext
11014cat >>conftest.$ac_ext <<_ACEOF
11015/* end confdefs.h. */
11016
d7040cdb
SE
11017/* Override any gcc2 internal prototype to avoid an error. */
11018#ifdef __cplusplus
11019extern "C"
11020#endif
11021/* We use char because int might match the return type of a gcc2
11022 builtin and then its argument prototype would still apply. */
11023char yywrap ();
42ecbf5e
DJ
11024int
11025main ()
11026{
d7040cdb 11027yywrap ();
42ecbf5e
DJ
11028 ;
11029 return 0;
11030}
11031_ACEOF
d7040cdb
SE
11032rm -f conftest.$ac_objext conftest$ac_exeext
11033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11034 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
11035 ac_status=$?
11036 grep -v '^ *+' conftest.er1 >conftest.err
11037 rm -f conftest.er1
11038 cat conftest.err >&5
11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040 (exit $ac_status); } &&
502bdb00
JW
11041 { ac_try='test -z "$ac_c_werror_flag"
11042 || test ! -s conftest.err'
42ecbf5e
DJ
11043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11044 (eval $ac_try) 2>&5
11045 ac_status=$?
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); }; } &&
d7040cdb 11048 { ac_try='test -s conftest$ac_exeext'
42ecbf5e
DJ
11049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11050 (eval $ac_try) 2>&5
11051 ac_status=$?
11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); }; }; then
d7040cdb 11054 ac_cv_lib_fl_yywrap=yes
42ecbf5e
DJ
11055else
11056 echo "$as_me: failed program was:" >&5
11057sed 's/^/| /' conftest.$ac_ext >&5
11058
d7040cdb 11059ac_cv_lib_fl_yywrap=no
42ecbf5e 11060fi
d7040cdb
SE
11061rm -f conftest.err conftest.$ac_objext \
11062 conftest$ac_exeext conftest.$ac_ext
11063LIBS=$ac_check_lib_save_LIBS
42ecbf5e 11064fi
d7040cdb
SE
11065echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11066echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11067if test $ac_cv_lib_fl_yywrap = yes; then
11068 LEXLIB="-lfl"
20e95c23 11069else
d7040cdb
SE
11070 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11071echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11072if test "${ac_cv_lib_l_yywrap+set}" = set; then
11073 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11074else
d7040cdb
SE
11075 ac_check_lib_save_LIBS=$LIBS
11076LIBS="-ll $LIBS"
11077cat >conftest.$ac_ext <<_ACEOF
20e95c23 11078/* confdefs.h. */
42ecbf5e 11079_ACEOF
20e95c23
DJ
11080cat confdefs.h >>conftest.$ac_ext
11081cat >>conftest.$ac_ext <<_ACEOF
11082/* end confdefs.h. */
20e95c23 11083
d7040cdb
SE
11084/* Override any gcc2 internal prototype to avoid an error. */
11085#ifdef __cplusplus
11086extern "C"
11087#endif
11088/* We use char because int might match the return type of a gcc2
11089 builtin and then its argument prototype would still apply. */
11090char yywrap ();
20e95c23
DJ
11091int
11092main ()
11093{
d7040cdb
SE
11094yywrap ();
11095 ;
11096 return 0;
20e95c23
DJ
11097}
11098_ACEOF
d7040cdb 11099rm -f conftest.$ac_objext conftest$ac_exeext
20e95c23 11100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7040cdb 11101 (eval $ac_link) 2>conftest.er1
42ecbf5e 11102 ac_status=$?
d7040cdb
SE
11103 grep -v '^ *+' conftest.er1 >conftest.err
11104 rm -f conftest.er1
11105 cat conftest.err >&5
42ecbf5e 11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
11107 (exit $ac_status); } &&
11108 { ac_try='test -z "$ac_c_werror_flag"
11109 || test ! -s conftest.err'
11110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11111 (eval $ac_try) 2>&5
11112 ac_status=$?
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); }; } &&
11115 { ac_try='test -s conftest$ac_exeext'
20e95c23
DJ
11116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11117 (eval $ac_try) 2>&5
11118 ac_status=$?
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); }; }; then
d7040cdb 11121 ac_cv_lib_l_yywrap=yes
252b5132 11122else
d7040cdb 11123 echo "$as_me: failed program was:" >&5
20e95c23
DJ
11124sed 's/^/| /' conftest.$ac_ext >&5
11125
d7040cdb 11126ac_cv_lib_l_yywrap=no
252b5132 11127fi
d7040cdb
SE
11128rm -f conftest.err conftest.$ac_objext \
11129 conftest$ac_exeext conftest.$ac_ext
11130LIBS=$ac_check_lib_save_LIBS
20e95c23 11131fi
d7040cdb
SE
11132echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11133echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11134if test $ac_cv_lib_l_yywrap = yes; then
11135 LEXLIB="-ll"
20e95c23 11136fi
20e95c23
DJ
11137
11138fi
11139
d7040cdb 11140fi
20e95c23 11141
d7040cdb
SE
11142if test "x$LEX" != "x:"; then
11143 echo "$as_me:$LINENO: checking lex output file root" >&5
11144echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11145if test "${ac_cv_prog_lex_root+set}" = set; then
42ecbf5e 11146 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11147else
d7040cdb
SE
11148 # The minimal lex program is just a single line: %%. But some broken lexes
11149# (Solaris, I think it was) want two %% lines, so accommodate them.
11150cat >conftest.l <<_ACEOF
11151%%
11152%%
42ecbf5e 11153_ACEOF
d7040cdb
SE
11154{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11155 (eval $LEX conftest.l) 2>&5
11156 ac_status=$?
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); }
11159if test -f lex.yy.c; then
11160 ac_cv_prog_lex_root=lex.yy
11161elif test -f lexyy.c; then
11162 ac_cv_prog_lex_root=lexyy
11163else
11164 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11165echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11166 { (exit 1); exit 1; }; }
11167fi
11168fi
11169echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11170echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11171rm -f conftest.l
11172LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
20e95c23 11173
d7040cdb
SE
11174echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11175echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11176if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11177 echo $ECHO_N "(cached) $ECHO_C" >&6
11178else
11179 # POSIX says lex can declare yytext either as a pointer or an array; the
11180# default is implementation-dependent. Figure out which it is, since
11181# not all implementations provide the %pointer and %array declarations.
11182ac_cv_prog_lex_yytext_pointer=no
11183echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11184ac_save_LIBS=$LIBS
11185LIBS="$LIBS $LEXLIB"
11186cat >conftest.$ac_ext <<_ACEOF
11187`cat $LEX_OUTPUT_ROOT.c`
20e95c23 11188_ACEOF
d7040cdb
SE
11189rm -f conftest.$ac_objext conftest$ac_exeext
11190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11191 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
11192 ac_status=$?
11193 grep -v '^ *+' conftest.er1 >conftest.err
11194 rm -f conftest.er1
11195 cat conftest.err >&5
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); } &&
502bdb00
JW
11198 { ac_try='test -z "$ac_c_werror_flag"
11199 || test ! -s conftest.err'
42ecbf5e
DJ
11200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11201 (eval $ac_try) 2>&5
11202 ac_status=$?
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); }; } &&
d7040cdb 11205 { ac_try='test -s conftest$ac_exeext'
42ecbf5e
DJ
11206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11207 (eval $ac_try) 2>&5
11208 ac_status=$?
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); }; }; then
d7040cdb
SE
11211 ac_cv_prog_lex_yytext_pointer=yes
11212else
11213 echo "$as_me: failed program was:" >&5
11214sed 's/^/| /' conftest.$ac_ext >&5
11215
11216fi
11217rm -f conftest.err conftest.$ac_objext \
11218 conftest$ac_exeext conftest.$ac_ext
11219LIBS=$ac_save_LIBS
11220rm -f "${LEX_OUTPUT_ROOT}.c"
11221
11222fi
11223echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11224echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11225if test $ac_cv_prog_lex_yytext_pointer = yes; then
11226
11227cat >>confdefs.h <<\_ACEOF
11228#define YYTEXT_POINTER 1
11229_ACEOF
11230
11231fi
11232
11233fi
11234if test "$LEX" = :; then
11235 LEX=${am_missing_run}flex
11236fi
11237
11238echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11239echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11240 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11241if test "${enable_maintainer_mode+set}" = set; then
11242 enableval="$enable_maintainer_mode"
11243 USE_MAINTAINER_MODE=$enableval
252b5132 11244else
d7040cdb
SE
11245 USE_MAINTAINER_MODE=no
11246fi;
11247 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11248echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
42ecbf5e 11249
d7040cdb
SE
11250
11251if test $USE_MAINTAINER_MODE = yes; then
11252 MAINTAINER_MODE_TRUE=
11253 MAINTAINER_MODE_FALSE='#'
11254else
11255 MAINTAINER_MODE_TRUE='#'
11256 MAINTAINER_MODE_FALSE=
252b5132 11257fi
252b5132 11258
d7040cdb
SE
11259 MAINT=$MAINTAINER_MODE_TRUE
11260
11261
11262
11263
11264if false; then
11265 GENINSRC_NEVER_TRUE=
11266 GENINSRC_NEVER_FALSE='#'
11267else
11268 GENINSRC_NEVER_TRUE='#'
11269 GENINSRC_NEVER_FALSE=
252b5132
RH
11270fi
11271
d7040cdb
SE
11272
11273. ${srcdir}/configure.host
11274
11275
11276
11277
252b5132
RH
11278
11279
42ecbf5e
DJ
11280
11281
11282
11283
ebe1fac1 11284
a3ffa599
L
11285
11286
11287for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h sys/param.h
252b5132 11288do
42ecbf5e
DJ
11289as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11290if eval "test \"\${$as_ac_Header+set}\" = set"; then
11291 echo "$as_me:$LINENO: checking for $ac_header" >&5
11292echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11293if eval "test \"\${$as_ac_Header+set}\" = set"; then
11294 echo $ECHO_N "(cached) $ECHO_C" >&6
11295fi
11296echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11297echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11298else
11299 # Is the header compilable?
11300echo "$as_me:$LINENO: checking $ac_header usability" >&5
11301echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11302cat >conftest.$ac_ext <<_ACEOF
11303/* confdefs.h. */
11304_ACEOF
11305cat confdefs.h >>conftest.$ac_ext
11306cat >>conftest.$ac_ext <<_ACEOF
11307/* end confdefs.h. */
11308$ac_includes_default
11309#include <$ac_header>
11310_ACEOF
11311rm -f conftest.$ac_objext
11312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11313 (eval $ac_compile) 2>conftest.er1
11314 ac_status=$?
11315 grep -v '^ *+' conftest.er1 >conftest.err
11316 rm -f conftest.er1
11317 cat conftest.err >&5
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); } &&
502bdb00
JW
11320 { ac_try='test -z "$ac_c_werror_flag"
11321 || test ! -s conftest.err'
42ecbf5e
DJ
11322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11323 (eval $ac_try) 2>&5
11324 ac_status=$?
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); }; } &&
11327 { ac_try='test -s conftest.$ac_objext'
11328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11329 (eval $ac_try) 2>&5
11330 ac_status=$?
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); }; }; then
11333 ac_header_compiler=yes
11334else
11335 echo "$as_me: failed program was:" >&5
11336sed 's/^/| /' conftest.$ac_ext >&5
11337
11338ac_header_compiler=no
11339fi
11340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11341echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11342echo "${ECHO_T}$ac_header_compiler" >&6
11343
11344# Is the header present?
11345echo "$as_me:$LINENO: checking $ac_header presence" >&5
11346echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11347cat >conftest.$ac_ext <<_ACEOF
11348/* confdefs.h. */
11349_ACEOF
11350cat confdefs.h >>conftest.$ac_ext
11351cat >>conftest.$ac_ext <<_ACEOF
11352/* end confdefs.h. */
11353#include <$ac_header>
11354_ACEOF
11355if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11356 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11357 ac_status=$?
11358 grep -v '^ *+' conftest.er1 >conftest.err
11359 rm -f conftest.er1
11360 cat conftest.err >&5
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); } >/dev/null; then
11363 if test -s conftest.err; then
11364 ac_cpp_err=$ac_c_preproc_warn_flag
11365 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11366 else
11367 ac_cpp_err=
11368 fi
252b5132 11369else
42ecbf5e 11370 ac_cpp_err=yes
252b5132 11371fi
42ecbf5e
DJ
11372if test -z "$ac_cpp_err"; then
11373 ac_header_preproc=yes
11374else
11375 echo "$as_me: failed program was:" >&5
11376sed 's/^/| /' conftest.$ac_ext >&5
11377
11378 ac_header_preproc=no
252b5132 11379fi
42ecbf5e
DJ
11380rm -f conftest.err conftest.$ac_ext
11381echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11382echo "${ECHO_T}$ac_header_preproc" >&6
11383
11384# So? What about this header?
11385case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11386 yes:no: )
11387 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11388echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11390echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11391 ac_header_preproc=yes
11392 ;;
11393 no:yes:* )
11394 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11395echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11396 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11397echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11398 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11399echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11400 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11401echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11403echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11404 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11405echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11406 (
11407 cat <<\_ASBOX
11408## ------------------------------------------ ##
11409## Report this to the AC_PACKAGE_NAME lists. ##
11410## ------------------------------------------ ##
11411_ASBOX
11412 ) |
11413 sed "s/^/$as_me: WARNING: /" >&2
11414 ;;
11415esac
11416echo "$as_me:$LINENO: checking for $ac_header" >&5
11417echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11418if eval "test \"\${$as_ac_Header+set}\" = set"; then
11419 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11420else
42ecbf5e
DJ
11421 eval "$as_ac_Header=\$ac_header_preproc"
11422fi
11423echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11424echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11425
252b5132 11426fi
42ecbf5e
DJ
11427if test `eval echo '${'$as_ac_Header'}'` = yes; then
11428 cat >>confdefs.h <<_ACEOF
11429#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11430_ACEOF
11431
11432fi
11433
252b5132
RH
11434done
11435
42ecbf5e
DJ
11436
11437
11438
dc27aea4
AM
11439
11440
11441for ac_func in glob mkstemp realpath sbrk waitpid
252b5132 11442do
42ecbf5e
DJ
11443as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11444echo "$as_me:$LINENO: checking for $ac_func" >&5
11445echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11446if eval "test \"\${$as_ac_var+set}\" = set"; then
11447 echo $ECHO_N "(cached) $ECHO_C" >&6
11448else
11449 cat >conftest.$ac_ext <<_ACEOF
11450/* confdefs.h. */
11451_ACEOF
11452cat confdefs.h >>conftest.$ac_ext
11453cat >>conftest.$ac_ext <<_ACEOF
11454/* end confdefs.h. */
11455/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11457#define $ac_func innocuous_$ac_func
11458
252b5132 11459/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
11460 which can conflict with char $ac_func (); below.
11461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11462 <limits.h> exists even on freestanding compilers. */
11463
11464#ifdef __STDC__
11465# include <limits.h>
11466#else
11467# include <assert.h>
11468#endif
d15b04bd 11469
42ecbf5e 11470#undef $ac_func
d15b04bd 11471
42ecbf5e
DJ
11472/* Override any gcc2 internal prototype to avoid an error. */
11473#ifdef __cplusplus
11474extern "C"
11475{
11476#endif
11477/* We use char because int might match the return type of a gcc2
11478 builtin and then its argument prototype would still apply. */
11479char $ac_func ();
252b5132
RH
11480/* The GNU C library defines this for functions which it implements
11481 to always fail with ENOSYS. Some functions are actually named
11482 something starting with __ and the normal name is an alias. */
11483#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11484choke me
11485#else
42ecbf5e
DJ
11486char (*f) () = $ac_func;
11487#endif
11488#ifdef __cplusplus
11489}
252b5132
RH
11490#endif
11491
42ecbf5e
DJ
11492int
11493main ()
11494{
11495return f != $ac_func;
11496 ;
11497 return 0;
11498}
11499_ACEOF
11500rm -f conftest.$ac_objext conftest$ac_exeext
11501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11502 (eval $ac_link) 2>conftest.er1
11503 ac_status=$?
11504 grep -v '^ *+' conftest.er1 >conftest.err
11505 rm -f conftest.er1
11506 cat conftest.err >&5
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); } &&
502bdb00
JW
11509 { ac_try='test -z "$ac_c_werror_flag"
11510 || test ! -s conftest.err'
42ecbf5e
DJ
11511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11512 (eval $ac_try) 2>&5
11513 ac_status=$?
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); }; } &&
11516 { ac_try='test -s conftest$ac_exeext'
11517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11518 (eval $ac_try) 2>&5
11519 ac_status=$?
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); }; }; then
11522 eval "$as_ac_var=yes"
11523else
11524 echo "$as_me: failed program was:" >&5
11525sed 's/^/| /' conftest.$ac_ext >&5
11526
11527eval "$as_ac_var=no"
11528fi
11529rm -f conftest.err conftest.$ac_objext \
11530 conftest$ac_exeext conftest.$ac_ext
11531fi
11532echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11533echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11534if test `eval echo '${'$as_ac_var'}'` = yes; then
11535 cat >>confdefs.h <<_ACEOF
11536#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11537_ACEOF
252b5132 11538
252b5132
RH
11539fi
11540done
11541
42ecbf5e
DJ
11542
11543
11544
11545
11546
252b5132 11547ac_header_dirent=no
42ecbf5e
DJ
11548for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11549 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11550echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11551echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11552if eval "test \"\${$as_ac_Header+set}\" = set"; then
11553 echo $ECHO_N "(cached) $ECHO_C" >&6
11554else
11555 cat >conftest.$ac_ext <<_ACEOF
11556/* confdefs.h. */
11557_ACEOF
11558cat confdefs.h >>conftest.$ac_ext
11559cat >>conftest.$ac_ext <<_ACEOF
11560/* end confdefs.h. */
252b5132
RH
11561#include <sys/types.h>
11562#include <$ac_hdr>
42ecbf5e
DJ
11563
11564int
11565main ()
11566{
11567if ((DIR *) 0)
11568return 0;
11569 ;
11570 return 0;
11571}
11572_ACEOF
11573rm -f conftest.$ac_objext
11574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11575 (eval $ac_compile) 2>conftest.er1
11576 ac_status=$?
11577 grep -v '^ *+' conftest.er1 >conftest.err
11578 rm -f conftest.er1
11579 cat conftest.err >&5
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); } &&
502bdb00
JW
11582 { ac_try='test -z "$ac_c_werror_flag"
11583 || test ! -s conftest.err'
42ecbf5e
DJ
11584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11585 (eval $ac_try) 2>&5
11586 ac_status=$?
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); }; } &&
11589 { ac_try='test -s conftest.$ac_objext'
11590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11591 (eval $ac_try) 2>&5
11592 ac_status=$?
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); }; }; then
11595 eval "$as_ac_Header=yes"
11596else
11597 echo "$as_me: failed program was:" >&5
11598sed 's/^/| /' conftest.$ac_ext >&5
11599
11600eval "$as_ac_Header=no"
11601fi
11602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11603fi
11604echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11605echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11606if test `eval echo '${'$as_ac_Header'}'` = yes; then
11607 cat >>confdefs.h <<_ACEOF
11608#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11609_ACEOF
11610
11611ac_header_dirent=$ac_hdr; break
d15b04bd 11612fi
42ecbf5e 11613
d15b04bd
L
11614done
11615# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11616if test $ac_header_dirent = dirent.h; then
42ecbf5e
DJ
11617 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11618echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11619if test "${ac_cv_search_opendir+set}" = set; then
11620 echo $ECHO_N "(cached) $ECHO_C" >&6
11621else
11622 ac_func_search_save_LIBS=$LIBS
11623ac_cv_search_opendir=no
11624cat >conftest.$ac_ext <<_ACEOF
11625/* confdefs.h. */
11626_ACEOF
11627cat confdefs.h >>conftest.$ac_ext
11628cat >>conftest.$ac_ext <<_ACEOF
11629/* end confdefs.h. */
11630
e5a52504 11631/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
11632#ifdef __cplusplus
11633extern "C"
11634#endif
e5a52504 11635/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
11636 builtin and then its argument prototype would still apply. */
11637char opendir ();
11638int
11639main ()
11640{
11641opendir ();
11642 ;
11643 return 0;
11644}
11645_ACEOF
11646rm -f conftest.$ac_objext conftest$ac_exeext
11647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11648 (eval $ac_link) 2>conftest.er1
11649 ac_status=$?
11650 grep -v '^ *+' conftest.er1 >conftest.err
11651 rm -f conftest.er1
11652 cat conftest.err >&5
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); } &&
502bdb00
JW
11655 { ac_try='test -z "$ac_c_werror_flag"
11656 || test ! -s conftest.err'
42ecbf5e
DJ
11657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11658 (eval $ac_try) 2>&5
11659 ac_status=$?
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); }; } &&
11662 { ac_try='test -s conftest$ac_exeext'
11663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11664 (eval $ac_try) 2>&5
11665 ac_status=$?
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); }; }; then
11668 ac_cv_search_opendir="none required"
11669else
11670 echo "$as_me: failed program was:" >&5
11671sed 's/^/| /' conftest.$ac_ext >&5
11672
11673fi
11674rm -f conftest.err conftest.$ac_objext \
11675 conftest$ac_exeext conftest.$ac_ext
11676if test "$ac_cv_search_opendir" = no; then
11677 for ac_lib in dir; do
11678 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11679 cat >conftest.$ac_ext <<_ACEOF
11680/* confdefs.h. */
11681_ACEOF
11682cat confdefs.h >>conftest.$ac_ext
11683cat >>conftest.$ac_ext <<_ACEOF
11684/* end confdefs.h. */
e5a52504 11685
42ecbf5e
DJ
11686/* Override any gcc2 internal prototype to avoid an error. */
11687#ifdef __cplusplus
11688extern "C"
11689#endif
11690/* We use char because int might match the return type of a gcc2
11691 builtin and then its argument prototype would still apply. */
11692char opendir ();
11693int
11694main ()
11695{
11696opendir ();
11697 ;
11698 return 0;
11699}
11700_ACEOF
11701rm -f conftest.$ac_objext conftest$ac_exeext
11702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11703 (eval $ac_link) 2>conftest.er1
11704 ac_status=$?
11705 grep -v '^ *+' conftest.er1 >conftest.err
11706 rm -f conftest.er1
11707 cat conftest.err >&5
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); } &&
502bdb00
JW
11710 { ac_try='test -z "$ac_c_werror_flag"
11711 || test ! -s conftest.err'
42ecbf5e
DJ
11712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11713 (eval $ac_try) 2>&5
11714 ac_status=$?
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); }; } &&
11717 { ac_try='test -s conftest$ac_exeext'
11718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11719 (eval $ac_try) 2>&5
11720 ac_status=$?
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); }; }; then
11723 ac_cv_search_opendir="-l$ac_lib"
11724break
11725else
11726 echo "$as_me: failed program was:" >&5
11727sed 's/^/| /' conftest.$ac_ext >&5
11728
11729fi
11730rm -f conftest.err conftest.$ac_objext \
11731 conftest$ac_exeext conftest.$ac_ext
11732 done
252b5132 11733fi
42ecbf5e
DJ
11734LIBS=$ac_func_search_save_LIBS
11735fi
11736echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11737echo "${ECHO_T}$ac_cv_search_opendir" >&6
11738if test "$ac_cv_search_opendir" != no; then
11739 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11740
d15b04bd 11741fi
252b5132
RH
11742
11743else
42ecbf5e
DJ
11744 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11745echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11746if test "${ac_cv_search_opendir+set}" = set; then
11747 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11748else
42ecbf5e
DJ
11749 ac_func_search_save_LIBS=$LIBS
11750ac_cv_search_opendir=no
11751cat >conftest.$ac_ext <<_ACEOF
11752/* confdefs.h. */
11753_ACEOF
11754cat confdefs.h >>conftest.$ac_ext
11755cat >>conftest.$ac_ext <<_ACEOF
11756/* end confdefs.h. */
11757
252b5132 11758/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
11759#ifdef __cplusplus
11760extern "C"
11761#endif
252b5132 11762/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
11763 builtin and then its argument prototype would still apply. */
11764char opendir ();
11765int
11766main ()
11767{
11768opendir ();
11769 ;
11770 return 0;
11771}
11772_ACEOF
11773rm -f conftest.$ac_objext conftest$ac_exeext
11774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11775 (eval $ac_link) 2>conftest.er1
11776 ac_status=$?
11777 grep -v '^ *+' conftest.er1 >conftest.err
11778 rm -f conftest.er1
11779 cat conftest.err >&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); } &&
502bdb00
JW
11782 { ac_try='test -z "$ac_c_werror_flag"
11783 || test ! -s conftest.err'
42ecbf5e
DJ
11784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11785 (eval $ac_try) 2>&5
11786 ac_status=$?
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); }; } &&
11789 { ac_try='test -s conftest$ac_exeext'
11790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11791 (eval $ac_try) 2>&5
11792 ac_status=$?
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); }; }; then
11795 ac_cv_search_opendir="none required"
11796else
11797 echo "$as_me: failed program was:" >&5
11798sed 's/^/| /' conftest.$ac_ext >&5
11799
11800fi
11801rm -f conftest.err conftest.$ac_objext \
11802 conftest$ac_exeext conftest.$ac_ext
11803if test "$ac_cv_search_opendir" = no; then
11804 for ac_lib in x; do
11805 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11806 cat >conftest.$ac_ext <<_ACEOF
11807/* confdefs.h. */
11808_ACEOF
11809cat confdefs.h >>conftest.$ac_ext
11810cat >>conftest.$ac_ext <<_ACEOF
11811/* end confdefs.h. */
252b5132 11812
42ecbf5e
DJ
11813/* Override any gcc2 internal prototype to avoid an error. */
11814#ifdef __cplusplus
11815extern "C"
11816#endif
11817/* We use char because int might match the return type of a gcc2
11818 builtin and then its argument prototype would still apply. */
11819char opendir ();
11820int
11821main ()
11822{
11823opendir ();
11824 ;
11825 return 0;
11826}
11827_ACEOF
11828rm -f conftest.$ac_objext conftest$ac_exeext
11829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11830 (eval $ac_link) 2>conftest.er1
11831 ac_status=$?
11832 grep -v '^ *+' conftest.er1 >conftest.err
11833 rm -f conftest.er1
11834 cat conftest.err >&5
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); } &&
502bdb00
JW
11837 { ac_try='test -z "$ac_c_werror_flag"
11838 || test ! -s conftest.err'
42ecbf5e
DJ
11839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11840 (eval $ac_try) 2>&5
11841 ac_status=$?
11842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843 (exit $ac_status); }; } &&
11844 { ac_try='test -s conftest$ac_exeext'
11845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11846 (eval $ac_try) 2>&5
11847 ac_status=$?
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); }; }; then
11850 ac_cv_search_opendir="-l$ac_lib"
11851break
11852else
11853 echo "$as_me: failed program was:" >&5
11854sed 's/^/| /' conftest.$ac_ext >&5
11855
11856fi
11857rm -f conftest.err conftest.$ac_objext \
11858 conftest$ac_exeext conftest.$ac_ext
11859 done
252b5132 11860fi
42ecbf5e 11861LIBS=$ac_func_search_save_LIBS
252b5132 11862fi
42ecbf5e
DJ
11863echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11864echo "${ECHO_T}$ac_cv_search_opendir" >&6
11865if test "$ac_cv_search_opendir" != no; then
11866 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11867
d15b04bd 11868fi
252b5132
RH
11869
11870fi
11871
11872
42ecbf5e
DJ
11873echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
11874echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
11875if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then
11876 echo $ECHO_N "(cached) $ECHO_C" >&6
34875e64 11877else
42ecbf5e
DJ
11878 cat >conftest.$ac_ext <<_ACEOF
11879/* confdefs.h. */
11880_ACEOF
11881cat confdefs.h >>conftest.$ac_ext
11882cat >>conftest.$ac_ext <<_ACEOF
11883/* end confdefs.h. */
34875e64 11884#include <unistd.h>
42ecbf5e
DJ
11885int
11886main ()
11887{
34875e64 11888extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
11889 ;
11890 return 0;
11891}
11892_ACEOF
11893rm -f conftest.$ac_objext
11894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11895 (eval $ac_compile) 2>conftest.er1
11896 ac_status=$?
11897 grep -v '^ *+' conftest.er1 >conftest.err
11898 rm -f conftest.er1
11899 cat conftest.err >&5
11900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901 (exit $ac_status); } &&
502bdb00
JW
11902 { ac_try='test -z "$ac_c_werror_flag"
11903 || test ! -s conftest.err'
42ecbf5e
DJ
11904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11905 (eval $ac_try) 2>&5
11906 ac_status=$?
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); }; } &&
11909 { ac_try='test -s conftest.$ac_objext'
11910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11911 (eval $ac_try) 2>&5
11912 ac_status=$?
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); }; }; then
34875e64
NC
11915 ld_cv_decl_getopt_unistd_h=yes
11916else
42ecbf5e
DJ
11917 echo "$as_me: failed program was:" >&5
11918sed 's/^/| /' conftest.$ac_ext >&5
11919
11920ld_cv_decl_getopt_unistd_h=no
34875e64 11921fi
42ecbf5e 11922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34875e64
NC
11923fi
11924
42ecbf5e
DJ
11925echo "$as_me:$LINENO: result: $ld_cv_decl_getopt_unistd_h" >&5
11926echo "${ECHO_T}$ld_cv_decl_getopt_unistd_h" >&6
34875e64 11927if test $ld_cv_decl_getopt_unistd_h = yes; then
42ecbf5e
DJ
11928
11929cat >>confdefs.h <<\_ACEOF
34875e64 11930#define HAVE_DECL_GETOPT 1
42ecbf5e 11931_ACEOF
34875e64
NC
11932
11933fi
42ecbf5e 11934
252b5132
RH
11935
11936case "${host}" in
a8100d5b 11937*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e
DJ
11938
11939cat >>confdefs.h <<\_ACEOF
252b5132 11940#define USE_BINARY_FOPEN 1
42ecbf5e 11941_ACEOF
252b5132
RH
11942 ;;
11943esac
11944
502bdb00
JW
11945echo "$as_me:$LINENO: checking whether strstr is declared" >&5
11946echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
11947if test "${ac_cv_have_decl_strstr+set}" = set; then
42ecbf5e 11948 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11949else
42ecbf5e
DJ
11950 cat >conftest.$ac_ext <<_ACEOF
11951/* confdefs.h. */
11952_ACEOF
11953cat confdefs.h >>conftest.$ac_ext
11954cat >>conftest.$ac_ext <<_ACEOF
11955/* end confdefs.h. */
502bdb00 11956$ac_includes_default
42ecbf5e
DJ
11957int
11958main ()
11959{
502bdb00
JW
11960#ifndef strstr
11961 char *p = (char *) strstr;
11962#endif
11963
42ecbf5e
DJ
11964 ;
11965 return 0;
11966}
11967_ACEOF
11968rm -f conftest.$ac_objext
11969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11970 (eval $ac_compile) 2>conftest.er1
11971 ac_status=$?
11972 grep -v '^ *+' conftest.er1 >conftest.err
11973 rm -f conftest.er1
11974 cat conftest.err >&5
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); } &&
502bdb00
JW
11977 { ac_try='test -z "$ac_c_werror_flag"
11978 || test ! -s conftest.err'
42ecbf5e
DJ
11979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11980 (eval $ac_try) 2>&5
11981 ac_status=$?
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); }; } &&
11984 { ac_try='test -s conftest.$ac_objext'
11985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11986 (eval $ac_try) 2>&5
11987 ac_status=$?
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); }; }; then
502bdb00 11990 ac_cv_have_decl_strstr=yes
252b5132 11991else
42ecbf5e
DJ
11992 echo "$as_me: failed program was:" >&5
11993sed 's/^/| /' conftest.$ac_ext >&5
11994
502bdb00 11995ac_cv_have_decl_strstr=no
252b5132 11996fi
42ecbf5e 11997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 11998fi
502bdb00
JW
11999echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
12000echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
12001if test $ac_cv_have_decl_strstr = yes; then
252b5132 12002
502bdb00
JW
12003cat >>confdefs.h <<_ACEOF
12004#define HAVE_DECL_STRSTR 1
12005_ACEOF
42ecbf5e 12006
502bdb00
JW
12007
12008else
12009 cat >>confdefs.h <<_ACEOF
12010#define HAVE_DECL_STRSTR 0
42ecbf5e 12011_ACEOF
252b5132 12012
252b5132 12013
502bdb00
JW
12014fi
12015echo "$as_me:$LINENO: checking whether free is declared" >&5
12016echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
12017if test "${ac_cv_have_decl_free+set}" = set; then
42ecbf5e 12018 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12019else
42ecbf5e
DJ
12020 cat >conftest.$ac_ext <<_ACEOF
12021/* confdefs.h. */
12022_ACEOF
12023cat confdefs.h >>conftest.$ac_ext
12024cat >>conftest.$ac_ext <<_ACEOF
12025/* end confdefs.h. */
502bdb00 12026$ac_includes_default
42ecbf5e
DJ
12027int
12028main ()
12029{
502bdb00
JW
12030#ifndef free
12031 char *p = (char *) free;
12032#endif
12033
42ecbf5e
DJ
12034 ;
12035 return 0;
12036}
12037_ACEOF
12038rm -f conftest.$ac_objext
12039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12040 (eval $ac_compile) 2>conftest.er1
12041 ac_status=$?
12042 grep -v '^ *+' conftest.er1 >conftest.err
12043 rm -f conftest.er1
12044 cat conftest.err >&5
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); } &&
502bdb00
JW
12047 { ac_try='test -z "$ac_c_werror_flag"
12048 || test ! -s conftest.err'
42ecbf5e
DJ
12049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12050 (eval $ac_try) 2>&5
12051 ac_status=$?
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); }; } &&
12054 { ac_try='test -s conftest.$ac_objext'
12055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12056 (eval $ac_try) 2>&5
12057 ac_status=$?
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); }; }; then
502bdb00 12060 ac_cv_have_decl_free=yes
252b5132 12061else
42ecbf5e
DJ
12062 echo "$as_me: failed program was:" >&5
12063sed 's/^/| /' conftest.$ac_ext >&5
12064
502bdb00 12065ac_cv_have_decl_free=no
252b5132 12066fi
42ecbf5e 12067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12068fi
502bdb00
JW
12069echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
12070echo "${ECHO_T}$ac_cv_have_decl_free" >&6
12071if test $ac_cv_have_decl_free = yes; then
252b5132 12072
502bdb00
JW
12073cat >>confdefs.h <<_ACEOF
12074#define HAVE_DECL_FREE 1
12075_ACEOF
42ecbf5e 12076
502bdb00
JW
12077
12078else
12079 cat >>confdefs.h <<_ACEOF
12080#define HAVE_DECL_FREE 0
42ecbf5e 12081_ACEOF
252b5132 12082
252b5132 12083
502bdb00
JW
12084fi
12085echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
12086echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
12087if test "${ac_cv_have_decl_sbrk+set}" = set; then
42ecbf5e 12088 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12089else
42ecbf5e
DJ
12090 cat >conftest.$ac_ext <<_ACEOF
12091/* confdefs.h. */
12092_ACEOF
12093cat confdefs.h >>conftest.$ac_ext
12094cat >>conftest.$ac_ext <<_ACEOF
12095/* end confdefs.h. */
502bdb00 12096$ac_includes_default
42ecbf5e
DJ
12097int
12098main ()
12099{
502bdb00
JW
12100#ifndef sbrk
12101 char *p = (char *) sbrk;
12102#endif
12103
42ecbf5e
DJ
12104 ;
12105 return 0;
12106}
12107_ACEOF
12108rm -f conftest.$ac_objext
12109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12110 (eval $ac_compile) 2>conftest.er1
12111 ac_status=$?
12112 grep -v '^ *+' conftest.er1 >conftest.err
12113 rm -f conftest.er1
12114 cat conftest.err >&5
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); } &&
502bdb00
JW
12117 { ac_try='test -z "$ac_c_werror_flag"
12118 || test ! -s conftest.err'
42ecbf5e
DJ
12119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120 (eval $ac_try) 2>&5
12121 ac_status=$?
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; } &&
12124 { ac_try='test -s conftest.$ac_objext'
12125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12126 (eval $ac_try) 2>&5
12127 ac_status=$?
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); }; }; then
502bdb00 12130 ac_cv_have_decl_sbrk=yes
252b5132 12131else
42ecbf5e
DJ
12132 echo "$as_me: failed program was:" >&5
12133sed 's/^/| /' conftest.$ac_ext >&5
12134
502bdb00 12135ac_cv_have_decl_sbrk=no
252b5132 12136fi
42ecbf5e 12137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12138fi
502bdb00
JW
12139echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
12140echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
12141if test $ac_cv_have_decl_sbrk = yes; then
12142
12143cat >>confdefs.h <<_ACEOF
12144#define HAVE_DECL_SBRK 1
12145_ACEOF
252b5132 12146
42ecbf5e 12147
502bdb00
JW
12148else
12149 cat >>confdefs.h <<_ACEOF
12150#define HAVE_DECL_SBRK 0
42ecbf5e 12151_ACEOF
252b5132 12152
252b5132 12153
502bdb00
JW
12154fi
12155echo "$as_me:$LINENO: checking whether getenv is declared" >&5
12156echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
12157if test "${ac_cv_have_decl_getenv+set}" = set; then
42ecbf5e 12158 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12159else
42ecbf5e
DJ
12160 cat >conftest.$ac_ext <<_ACEOF
12161/* confdefs.h. */
12162_ACEOF
12163cat confdefs.h >>conftest.$ac_ext
12164cat >>conftest.$ac_ext <<_ACEOF
12165/* end confdefs.h. */
502bdb00 12166$ac_includes_default
42ecbf5e
DJ
12167int
12168main ()
12169{
502bdb00
JW
12170#ifndef getenv
12171 char *p = (char *) getenv;
12172#endif
12173
42ecbf5e
DJ
12174 ;
12175 return 0;
12176}
12177_ACEOF
12178rm -f conftest.$ac_objext
12179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12180 (eval $ac_compile) 2>conftest.er1
12181 ac_status=$?
12182 grep -v '^ *+' conftest.er1 >conftest.err
12183 rm -f conftest.er1
12184 cat conftest.err >&5
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); } &&
502bdb00
JW
12187 { ac_try='test -z "$ac_c_werror_flag"
12188 || test ! -s conftest.err'
42ecbf5e
DJ
12189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12190 (eval $ac_try) 2>&5
12191 ac_status=$?
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); }; } &&
12194 { ac_try='test -s conftest.$ac_objext'
12195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12196 (eval $ac_try) 2>&5
12197 ac_status=$?
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); }; }; then
502bdb00 12200 ac_cv_have_decl_getenv=yes
252b5132 12201else
42ecbf5e
DJ
12202 echo "$as_me: failed program was:" >&5
12203sed 's/^/| /' conftest.$ac_ext >&5
12204
502bdb00 12205ac_cv_have_decl_getenv=no
252b5132 12206fi
42ecbf5e 12207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12208fi
502bdb00
JW
12209echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
12210echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
12211if test $ac_cv_have_decl_getenv = yes; then
252b5132 12212
502bdb00
JW
12213cat >>confdefs.h <<_ACEOF
12214#define HAVE_DECL_GETENV 1
12215_ACEOF
42ecbf5e 12216
502bdb00
JW
12217
12218else
12219 cat >>confdefs.h <<_ACEOF
12220#define HAVE_DECL_GETENV 0
42ecbf5e 12221_ACEOF
252b5132 12222
252b5132 12223
502bdb00
JW
12224fi
12225echo "$as_me:$LINENO: checking whether environ is declared" >&5
12226echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
12227if test "${ac_cv_have_decl_environ+set}" = set; then
42ecbf5e 12228 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12229else
42ecbf5e
DJ
12230 cat >conftest.$ac_ext <<_ACEOF
12231/* confdefs.h. */
12232_ACEOF
12233cat confdefs.h >>conftest.$ac_ext
12234cat >>conftest.$ac_ext <<_ACEOF
12235/* end confdefs.h. */
502bdb00 12236$ac_includes_default
42ecbf5e
DJ
12237int
12238main ()
12239{
502bdb00
JW
12240#ifndef environ
12241 char *p = (char *) environ;
12242#endif
12243
42ecbf5e
DJ
12244 ;
12245 return 0;
12246}
12247_ACEOF
12248rm -f conftest.$ac_objext
12249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12250 (eval $ac_compile) 2>conftest.er1
12251 ac_status=$?
12252 grep -v '^ *+' conftest.er1 >conftest.err
12253 rm -f conftest.er1
12254 cat conftest.err >&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); } &&
502bdb00
JW
12257 { ac_try='test -z "$ac_c_werror_flag"
12258 || test ! -s conftest.err'
42ecbf5e
DJ
12259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12260 (eval $ac_try) 2>&5
12261 ac_status=$?
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); }; } &&
12264 { ac_try='test -s conftest.$ac_objext'
12265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12266 (eval $ac_try) 2>&5
12267 ac_status=$?
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); }; }; then
502bdb00 12270 ac_cv_have_decl_environ=yes
252b5132 12271else
42ecbf5e
DJ
12272 echo "$as_me: failed program was:" >&5
12273sed 's/^/| /' conftest.$ac_ext >&5
12274
502bdb00 12275ac_cv_have_decl_environ=no
252b5132 12276fi
42ecbf5e 12277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12278fi
502bdb00
JW
12279echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
12280echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
12281if test $ac_cv_have_decl_environ = yes; then
252b5132 12282
502bdb00
JW
12283cat >>confdefs.h <<_ACEOF
12284#define HAVE_DECL_ENVIRON 1
12285_ACEOF
42ecbf5e 12286
502bdb00
JW
12287
12288else
12289 cat >>confdefs.h <<_ACEOF
12290#define HAVE_DECL_ENVIRON 0
42ecbf5e 12291_ACEOF
252b5132 12292
502bdb00 12293
252b5132
RH
12294fi
12295
12296
502bdb00 12297
597e2591
ILT
12298# When converting linker scripts into strings for use in emulation
12299# files, use astring.sed if the compiler supports ANSI string
12300# concatenation, or ostring.sed otherwise. This is to support the
12301# broken Microsoft MSVC compiler, which limits the length of string
12302# constants, while still supporting pre-ANSI compilers which do not
12303# support string concatenation.
42ecbf5e
DJ
12304echo "$as_me:$LINENO: checking whether ANSI C string concatenation works" >&5
12305echo $ECHO_N "checking whether ANSI C string concatenation works... $ECHO_C" >&6
12306if test "${ld_cv_string_concatenation+set}" = set; then
12307 echo $ECHO_N "(cached) $ECHO_C" >&6
12308else
12309 cat >conftest.$ac_ext <<_ACEOF
12310/* confdefs.h. */
12311_ACEOF
12312cat confdefs.h >>conftest.$ac_ext
12313cat >>conftest.$ac_ext <<_ACEOF
12314/* end confdefs.h. */
597e2591 12315
42ecbf5e
DJ
12316int
12317main ()
12318{
597e2591 12319char *a = "a" "a";
42ecbf5e
DJ
12320 ;
12321 return 0;
12322}
12323_ACEOF
12324rm -f conftest.$ac_objext
12325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12326 (eval $ac_compile) 2>conftest.er1
12327 ac_status=$?
12328 grep -v '^ *+' conftest.er1 >conftest.err
12329 rm -f conftest.er1
12330 cat conftest.err >&5
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); } &&
502bdb00
JW
12333 { ac_try='test -z "$ac_c_werror_flag"
12334 || test ! -s conftest.err'
42ecbf5e
DJ
12335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12336 (eval $ac_try) 2>&5
12337 ac_status=$?
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); }; } &&
12340 { ac_try='test -s conftest.$ac_objext'
12341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12342 (eval $ac_try) 2>&5
12343 ac_status=$?
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); }; }; then
e4dabd0e 12346 ld_cv_string_concatenation=yes
597e2591 12347else
42ecbf5e
DJ
12348 echo "$as_me: failed program was:" >&5
12349sed 's/^/| /' conftest.$ac_ext >&5
12350
12351ld_cv_string_concatenation=no
597e2591 12352fi
42ecbf5e 12353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
597e2591
ILT
12354fi
12355
42ecbf5e
DJ
12356echo "$as_me:$LINENO: result: $ld_cv_string_concatenation" >&5
12357echo "${ECHO_T}$ld_cv_string_concatenation" >&6
e4dabd0e 12358if test "$ld_cv_string_concatenation" = "yes"; then
597e2591
ILT
12359 STRINGIFY=astring.sed
12360else
12361 STRINGIFY=ostring.sed
12362fi
12363
12364
252b5132
RH
12365# target-specific stuff:
12366
12367all_targets=
12368EMUL=
12369all_emuls=
12370all_emul_extras=
ba2be581 12371all_libpath=
252b5132
RH
12372
12373rm -f tdirs
12374
12375for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
12376do
12377 if test "$targ_alias" = "all"; then
12378 all_targets=true
12379 else
12380 # Canonicalize the secondary target names.
42ecbf5e 12381 result=`$ac_config_sub $targ_alias 2>/dev/null`
252b5132
RH
12382 if test -n "$result"; then
12383 targ=$result
12384 else
12385 targ=$targ_alias
12386 fi
12387
12388 . ${srcdir}/configure.tgt
12389
12390 if test "$targ" = "$target"; then
12391 EMUL=$targ_emul
12392 fi
12393
314e9a4e
L
12394 if test x${want64} = xfalse; then
12395 . ${srcdir}/../bfd/config.bfd
12396 fi
12397
534d3119
L
12398 if test x${want64} = xtrue; then
12399 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
12400 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
12401 fi
12402
3336653a 12403 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
252b5132
RH
12404 case " $all_emuls " in
12405 *" e${i}.o "*) ;;
12406 *)
12407 all_emuls="$all_emuls e${i}.o"
12408 eval result=\$tdir_$i
12409 test -z "$result" && result=$targ_alias
12410 echo tdir_$i=$result >> tdirs
12411 ;;
d15b04bd
L
12412 esac
12413 done
3336653a 12414
42ecbf5e
DJ
12415 for i in $targ_emul $targ_extra_libpath; do
12416 case " $all_libpath " in
12417 *" ${i} "*) ;;
12418 *)
12419 if test -z "$all_libpath"; then
12420 all_libpath=${i}
12421 else
12422 all_libpath="$all_libpath ${i}"
12423 fi
12424 ;;
12425 esac
12426 done
12427
12428 for i in $targ_extra_ofiles; do
12429 case " $all_emul_extras " in
12430 *" ${i} "*) ;;
12431 *)
12432 all_emul_extras="$all_emul_extras ${i}"
12433 ;;
12434 esac
12435 done
12436 fi
12437done
12438
12439
12440
12441TDIRS=tdirs
12442
12443
12444if test x${all_targets} = xtrue; then
314e9a4e
L
12445 if test x${want64} = xfalse; then
12446 echo "$as_me:$LINENO: checking for long" >&5
12447echo $ECHO_N "checking for long... $ECHO_C" >&6
12448if test "${ac_cv_type_long+set}" = set; then
12449 echo $ECHO_N "(cached) $ECHO_C" >&6
12450else
12451 cat >conftest.$ac_ext <<_ACEOF
12452/* confdefs.h. */
12453_ACEOF
12454cat confdefs.h >>conftest.$ac_ext
12455cat >>conftest.$ac_ext <<_ACEOF
12456/* end confdefs.h. */
12457$ac_includes_default
12458int
12459main ()
12460{
12461if ((long *) 0)
12462 return 0;
12463if (sizeof (long))
12464 return 0;
12465 ;
12466 return 0;
12467}
12468_ACEOF
12469rm -f conftest.$ac_objext
12470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12471 (eval $ac_compile) 2>conftest.er1
12472 ac_status=$?
12473 grep -v '^ *+' conftest.er1 >conftest.err
12474 rm -f conftest.er1
12475 cat conftest.err >&5
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); } &&
12478 { ac_try='test -z "$ac_c_werror_flag"
12479 || test ! -s conftest.err'
12480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481 (eval $ac_try) 2>&5
12482 ac_status=$?
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); }; } &&
12485 { ac_try='test -s conftest.$ac_objext'
12486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12487 (eval $ac_try) 2>&5
12488 ac_status=$?
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); }; }; then
12491 ac_cv_type_long=yes
12492else
12493 echo "$as_me: failed program was:" >&5
12494sed 's/^/| /' conftest.$ac_ext >&5
12495
12496ac_cv_type_long=no
12497fi
12498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12499fi
12500echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12501echo "${ECHO_T}$ac_cv_type_long" >&6
12502
12503echo "$as_me:$LINENO: checking size of long" >&5
12504echo $ECHO_N "checking size of long... $ECHO_C" >&6
12505if test "${ac_cv_sizeof_long+set}" = set; then
12506 echo $ECHO_N "(cached) $ECHO_C" >&6
12507else
12508 if test "$ac_cv_type_long" = yes; then
12509 # The cast to unsigned long works around a bug in the HP C Compiler
12510 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12511 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12512 # This bug is HP SR number 8606223364.
12513 if test "$cross_compiling" = yes; then
12514 # Depending upon the size, compute the lo and hi bounds.
12515cat >conftest.$ac_ext <<_ACEOF
12516/* confdefs.h. */
12517_ACEOF
12518cat confdefs.h >>conftest.$ac_ext
12519cat >>conftest.$ac_ext <<_ACEOF
12520/* end confdefs.h. */
12521$ac_includes_default
12522int
12523main ()
12524{
12525static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12526test_array [0] = 0
12527
12528 ;
12529 return 0;
12530}
12531_ACEOF
12532rm -f conftest.$ac_objext
12533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12534 (eval $ac_compile) 2>conftest.er1
12535 ac_status=$?
12536 grep -v '^ *+' conftest.er1 >conftest.err
12537 rm -f conftest.er1
12538 cat conftest.err >&5
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); } &&
12541 { ac_try='test -z "$ac_c_werror_flag"
12542 || test ! -s conftest.err'
12543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12544 (eval $ac_try) 2>&5
12545 ac_status=$?
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); }; } &&
12548 { ac_try='test -s conftest.$ac_objext'
12549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12550 (eval $ac_try) 2>&5
12551 ac_status=$?
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); }; }; then
12554 ac_lo=0 ac_mid=0
12555 while :; do
12556 cat >conftest.$ac_ext <<_ACEOF
12557/* confdefs.h. */
12558_ACEOF
12559cat confdefs.h >>conftest.$ac_ext
12560cat >>conftest.$ac_ext <<_ACEOF
12561/* end confdefs.h. */
12562$ac_includes_default
12563int
12564main ()
12565{
12566static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12567test_array [0] = 0
12568
12569 ;
12570 return 0;
12571}
12572_ACEOF
12573rm -f conftest.$ac_objext
12574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12575 (eval $ac_compile) 2>conftest.er1
12576 ac_status=$?
12577 grep -v '^ *+' conftest.er1 >conftest.err
12578 rm -f conftest.er1
12579 cat conftest.err >&5
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); } &&
12582 { ac_try='test -z "$ac_c_werror_flag"
12583 || test ! -s conftest.err'
12584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12585 (eval $ac_try) 2>&5
12586 ac_status=$?
12587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588 (exit $ac_status); }; } &&
12589 { ac_try='test -s conftest.$ac_objext'
12590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12591 (eval $ac_try) 2>&5
12592 ac_status=$?
12593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594 (exit $ac_status); }; }; then
12595 ac_hi=$ac_mid; break
12596else
12597 echo "$as_me: failed program was:" >&5
12598sed 's/^/| /' conftest.$ac_ext >&5
12599
12600ac_lo=`expr $ac_mid + 1`
12601 if test $ac_lo -le $ac_mid; then
12602 ac_lo= ac_hi=
12603 break
12604 fi
12605 ac_mid=`expr 2 '*' $ac_mid + 1`
12606fi
12607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12608 done
12609else
12610 echo "$as_me: failed program was:" >&5
12611sed 's/^/| /' conftest.$ac_ext >&5
12612
12613cat >conftest.$ac_ext <<_ACEOF
12614/* confdefs.h. */
12615_ACEOF
12616cat confdefs.h >>conftest.$ac_ext
12617cat >>conftest.$ac_ext <<_ACEOF
12618/* end confdefs.h. */
12619$ac_includes_default
12620int
12621main ()
12622{
12623static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12624test_array [0] = 0
12625
12626 ;
12627 return 0;
12628}
12629_ACEOF
12630rm -f conftest.$ac_objext
12631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12632 (eval $ac_compile) 2>conftest.er1
12633 ac_status=$?
12634 grep -v '^ *+' conftest.er1 >conftest.err
12635 rm -f conftest.er1
12636 cat conftest.err >&5
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); } &&
12639 { ac_try='test -z "$ac_c_werror_flag"
12640 || test ! -s conftest.err'
12641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12642 (eval $ac_try) 2>&5
12643 ac_status=$?
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); }; } &&
12646 { ac_try='test -s conftest.$ac_objext'
12647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12648 (eval $ac_try) 2>&5
12649 ac_status=$?
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); }; }; then
12652 ac_hi=-1 ac_mid=-1
12653 while :; do
12654 cat >conftest.$ac_ext <<_ACEOF
12655/* confdefs.h. */
12656_ACEOF
12657cat confdefs.h >>conftest.$ac_ext
12658cat >>conftest.$ac_ext <<_ACEOF
12659/* end confdefs.h. */
12660$ac_includes_default
12661int
12662main ()
12663{
12664static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12665test_array [0] = 0
12666
12667 ;
12668 return 0;
12669}
12670_ACEOF
12671rm -f conftest.$ac_objext
12672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12673 (eval $ac_compile) 2>conftest.er1
12674 ac_status=$?
12675 grep -v '^ *+' conftest.er1 >conftest.err
12676 rm -f conftest.er1
12677 cat conftest.err >&5
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); } &&
12680 { ac_try='test -z "$ac_c_werror_flag"
12681 || test ! -s conftest.err'
12682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12683 (eval $ac_try) 2>&5
12684 ac_status=$?
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); }; } &&
12687 { ac_try='test -s conftest.$ac_objext'
12688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12689 (eval $ac_try) 2>&5
12690 ac_status=$?
12691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692 (exit $ac_status); }; }; then
12693 ac_lo=$ac_mid; break
12694else
12695 echo "$as_me: failed program was:" >&5
12696sed 's/^/| /' conftest.$ac_ext >&5
12697
12698ac_hi=`expr '(' $ac_mid ')' - 1`
12699 if test $ac_mid -le $ac_hi; then
12700 ac_lo= ac_hi=
12701 break
12702 fi
12703 ac_mid=`expr 2 '*' $ac_mid`
12704fi
12705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12706 done
12707else
12708 echo "$as_me: failed program was:" >&5
12709sed 's/^/| /' conftest.$ac_ext >&5
12710
12711ac_lo= ac_hi=
12712fi
12713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12714fi
12715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12716# Binary search between lo and hi bounds.
12717while test "x$ac_lo" != "x$ac_hi"; do
12718 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12719 cat >conftest.$ac_ext <<_ACEOF
12720/* confdefs.h. */
12721_ACEOF
12722cat confdefs.h >>conftest.$ac_ext
12723cat >>conftest.$ac_ext <<_ACEOF
12724/* end confdefs.h. */
12725$ac_includes_default
12726int
12727main ()
12728{
12729static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12730test_array [0] = 0
12731
12732 ;
12733 return 0;
12734}
12735_ACEOF
12736rm -f conftest.$ac_objext
12737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12738 (eval $ac_compile) 2>conftest.er1
12739 ac_status=$?
12740 grep -v '^ *+' conftest.er1 >conftest.err
12741 rm -f conftest.er1
12742 cat conftest.err >&5
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); } &&
12745 { ac_try='test -z "$ac_c_werror_flag"
12746 || test ! -s conftest.err'
12747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12748 (eval $ac_try) 2>&5
12749 ac_status=$?
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); }; } &&
12752 { ac_try='test -s conftest.$ac_objext'
12753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12754 (eval $ac_try) 2>&5
12755 ac_status=$?
12756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757 (exit $ac_status); }; }; then
12758 ac_hi=$ac_mid
12759else
12760 echo "$as_me: failed program was:" >&5
12761sed 's/^/| /' conftest.$ac_ext >&5
12762
12763ac_lo=`expr '(' $ac_mid ')' + 1`
12764fi
12765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12766done
12767case $ac_lo in
12768?*) ac_cv_sizeof_long=$ac_lo;;
12769'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12770See \`config.log' for more details." >&5
12771echo "$as_me: error: cannot compute sizeof (long), 77
12772See \`config.log' for more details." >&2;}
12773 { (exit 1); exit 1; }; } ;;
12774esac
12775else
12776 if test "$cross_compiling" = yes; then
12777 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12778See \`config.log' for more details." >&5
12779echo "$as_me: error: cannot run test program while cross compiling
12780See \`config.log' for more details." >&2;}
12781 { (exit 1); exit 1; }; }
12782else
12783 cat >conftest.$ac_ext <<_ACEOF
12784/* confdefs.h. */
12785_ACEOF
12786cat confdefs.h >>conftest.$ac_ext
12787cat >>conftest.$ac_ext <<_ACEOF
12788/* end confdefs.h. */
12789$ac_includes_default
12790long longval () { return (long) (sizeof (long)); }
12791unsigned long ulongval () { return (long) (sizeof (long)); }
12792#include <stdio.h>
12793#include <stdlib.h>
12794int
12795main ()
12796{
12797
12798 FILE *f = fopen ("conftest.val", "w");
12799 if (! f)
12800 exit (1);
12801 if (((long) (sizeof (long))) < 0)
12802 {
12803 long i = longval ();
12804 if (i != ((long) (sizeof (long))))
12805 exit (1);
12806 fprintf (f, "%ld\n", i);
12807 }
12808 else
12809 {
12810 unsigned long i = ulongval ();
12811 if (i != ((long) (sizeof (long))))
12812 exit (1);
12813 fprintf (f, "%lu\n", i);
12814 }
12815 exit (ferror (f) || fclose (f) != 0);
12816
12817 ;
12818 return 0;
12819}
12820_ACEOF
12821rm -f conftest$ac_exeext
12822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12823 (eval $ac_link) 2>&5
12824 ac_status=$?
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12828 (eval $ac_try) 2>&5
12829 ac_status=$?
12830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831 (exit $ac_status); }; }; then
12832 ac_cv_sizeof_long=`cat conftest.val`
12833else
12834 echo "$as_me: program exited with status $ac_status" >&5
12835echo "$as_me: failed program was:" >&5
12836sed 's/^/| /' conftest.$ac_ext >&5
12837
12838( exit $ac_status )
12839{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12840See \`config.log' for more details." >&5
12841echo "$as_me: error: cannot compute sizeof (long), 77
12842See \`config.log' for more details." >&2;}
12843 { (exit 1); exit 1; }; }
12844fi
12845rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12846fi
12847fi
12848rm -f conftest.val
12849else
12850 ac_cv_sizeof_long=0
12851fi
12852fi
12853echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12854echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12855cat >>confdefs.h <<_ACEOF
12856#define SIZEOF_LONG $ac_cv_sizeof_long
12857_ACEOF
12858
12859
12860 if test "x${ac_cv_sizeof_long}" = "x8"; then
12861 want64=true
12862 fi
12863 fi
42ecbf5e
DJ
12864 if test x${want64} = xtrue; then
12865 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
12866 else
12867 EMULATION_OFILES='$(ALL_EMULATIONS)'
12868 fi
12869 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
12870else
12871 EMULATION_OFILES=$all_emuls
12872 EMUL_EXTRA_OFILES=$all_emul_extras
12873fi
12874
12875
12876
12877
12878EMULATION_LIBPATH=$all_libpath
12879
12880
12881if test x${enable_static} = xno; then
12882 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
12883else
12884 TESTBFDLIB="../bfd/.libs/libbfd.a"
12885fi
12886
12887
12888target_vendor=${target_vendor=$host_vendor}
12889case "$target_vendor" in
12890 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
12891 *) EXTRA_SHLIB_EXTENSION= ;;
12892esac
12893
12894case "$target_os" in
12895 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
12896esac
12897
12898if test x${EXTRA_SHLIB_EXTENSION} != x ; then
12899
12900cat >>confdefs.h <<_ACEOF
12901#define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
12902_ACEOF
12903
12904fi
12905
108a6f8e
CD
12906
12907
12908
12909
42ecbf5e 12910 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
42ecbf5e
DJ
12911cat >confcache <<\_ACEOF
12912# This file is a shell script that caches the results of configure
12913# tests run on this system so they can be shared between configure
12914# scripts and configure runs, see configure's option --config-cache.
12915# It is not useful on other systems. If it contains results you don't
12916# want to keep, you may remove or edit it.
12917#
12918# config.status only pays attention to the cache file if you give it
12919# the --recheck option to rerun configure.
12920#
12921# `ac_cv_env_foo' variables (set or unset) will be overridden when
12922# loading this file, other *unset* `ac_cv_foo' will be assigned the
12923# following values.
12924
12925_ACEOF
12926
12927# The following way of writing the cache mishandles newlines in values,
12928# but we know of no workaround that is simple, portable, and efficient.
12929# So, don't put newlines in cache variables' values.
12930# Ultrix sh set writes to stderr and can't be redirected directly,
12931# and sets the high bit in the cache file unless we assign to the vars.
12932{
12933 (set) 2>&1 |
12934 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12935 *ac_space=\ *)
12936 # `set' does not quote correctly, so add quotes (double-quote
12937 # substitution turns \\\\ into \\, and sed turns \\ into \).
12938 sed -n \
12939 "s/'/'\\\\''/g;
12940 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12941 ;;
12942 *)
12943 # `set' quotes correctly as required by POSIX, so do not add quotes.
12944 sed -n \
12945 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12946 ;;
12947 esac;
12948} |
12949 sed '
12950 t clear
12951 : clear
12952 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12953 t end
12954 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12955 : end' >>confcache
12956if diff $cache_file confcache >/dev/null 2>&1; then :; else
12957 if test -w $cache_file; then
12958 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12959 cat confcache >$cache_file
12960 else
12961 echo "not updating unwritable cache $cache_file"
12962 fi
12963fi
12964rm -f confcache
12965
12966test "x$prefix" = xNONE && prefix=$ac_default_prefix
12967# Let make expand exec_prefix.
12968test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12969
12970# VPATH may cause trouble with some makes, so we remove $(srcdir),
12971# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12972# trailing colons and then remove the whole line if VPATH becomes empty
12973# (actually we leave an empty line to preserve line numbers).
12974if test "x$srcdir" = x.; then
12975 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12976s/:*\$(srcdir):*/:/;
12977s/:*\${srcdir}:*/:/;
12978s/:*@srcdir@:*/:/;
12979s/^\([^=]*=[ ]*\):*/\1/;
12980s/:*$//;
12981s/^[^=]*=[ ]*$//;
12982}'
12983fi
12984
12985DEFS=-DHAVE_CONFIG_H
12986
12987ac_libobjs=
12988ac_ltlibobjs=
12989for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12990 # 1. Remove the extension, and $U if already installed.
12991 ac_i=`echo "$ac_i" |
12992 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12993 # 2. Add them.
12994 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12995 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12996done
12997LIBOBJS=$ac_libobjs
12998
12999LTLIBOBJS=$ac_ltlibobjs
13000
13001
13002if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13003 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13004Usually this means the macro was only invoked conditionally." >&5
13005echo "$as_me: error: conditional \"AMDEP\" was never defined.
13006Usually this means the macro was only invoked conditionally." >&2;}
13007 { (exit 1); exit 1; }; }
13008fi
13009if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13010 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13011Usually this means the macro was only invoked conditionally." >&5
13012echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13013Usually this means the macro was only invoked conditionally." >&2;}
13014 { (exit 1); exit 1; }; }
13015fi
13016if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13017 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13018Usually this means the macro was only invoked conditionally." >&5
13019echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13020Usually this means the macro was only invoked conditionally." >&2;}
13021 { (exit 1); exit 1; }; }
13022fi
d5fbea21
DJ
13023if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
13024 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
13025Usually this means the macro was only invoked conditionally." >&5
13026echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
13027Usually this means the macro was only invoked conditionally." >&2;}
13028 { (exit 1); exit 1; }; }
13029fi
42ecbf5e
DJ
13030
13031: ${CONFIG_STATUS=./config.status}
13032ac_clean_files_save=$ac_clean_files
13033ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13034{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13035echo "$as_me: creating $CONFIG_STATUS" >&6;}
13036cat >$CONFIG_STATUS <<_ACEOF
13037#! $SHELL
13038# Generated by $as_me.
13039# Run this file to recreate the current configuration.
13040# Compiler output produced by configure, useful for debugging
13041# configure, is in config.log if it exists.
13042
13043debug=false
13044ac_cs_recheck=false
13045ac_cs_silent=false
13046SHELL=\${CONFIG_SHELL-$SHELL}
13047_ACEOF
13048
13049cat >>$CONFIG_STATUS <<\_ACEOF
13050## --------------------- ##
13051## M4sh Initialization. ##
13052## --------------------- ##
13053
13054# Be Bourne compatible
13055if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13056 emulate sh
13057 NULLCMD=:
13058 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13059 # is contrary to our usage. Disable this feature.
13060 alias -g '${1+"$@"}'='"$@"'
13061elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13062 set -o posix
13063fi
13064DUALCASE=1; export DUALCASE # for MKS sh
13065
13066# Support unset when possible.
13067if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13068 as_unset=unset
13069else
13070 as_unset=false
13071fi
13072
13073
13074# Work around bugs in pre-3.0 UWIN ksh.
13075$as_unset ENV MAIL MAILPATH
13076PS1='$ '
13077PS2='> '
13078PS4='+ '
13079
13080# NLS nuisances.
13081for as_var in \
13082 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13083 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13084 LC_TELEPHONE LC_TIME
13085do
13086 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13087 eval $as_var=C; export $as_var
13088 else
13089 $as_unset $as_var
13090 fi
13091done
13092
13093# Required to use basename.
13094if expr a : '\(a\)' >/dev/null 2>&1; then
13095 as_expr=expr
13096else
13097 as_expr=false
13098fi
13099
13100if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13101 as_basename=basename
13102else
13103 as_basename=false
13104fi
13105
13106
13107# Name of the executable.
13108as_me=`$as_basename "$0" ||
13109$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13110 X"$0" : 'X\(//\)$' \| \
13111 X"$0" : 'X\(/\)$' \| \
13112 . : '\(.\)' 2>/dev/null ||
13113echo X/"$0" |
13114 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13115 /^X\/\(\/\/\)$/{ s//\1/; q; }
13116 /^X\/\(\/\).*/{ s//\1/; q; }
13117 s/.*/./; q'`
13118
13119
13120# PATH needs CR, and LINENO needs CR and PATH.
13121# Avoid depending upon Character Ranges.
13122as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13123as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13124as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13125as_cr_digits='0123456789'
13126as_cr_alnum=$as_cr_Letters$as_cr_digits
13127
13128# The user is always right.
13129if test "${PATH_SEPARATOR+set}" != set; then
13130 echo "#! /bin/sh" >conf$$.sh
13131 echo "exit 0" >>conf$$.sh
13132 chmod +x conf$$.sh
13133 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13134 PATH_SEPARATOR=';'
13135 else
13136 PATH_SEPARATOR=:
13137 fi
13138 rm -f conf$$.sh
13139fi
13140
e5a52504 13141
42ecbf5e
DJ
13142 as_lineno_1=$LINENO
13143 as_lineno_2=$LINENO
13144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13145 test "x$as_lineno_1" != "x$as_lineno_2" &&
13146 test "x$as_lineno_3" = "x$as_lineno_2" || {
13147 # Find who we are. Look in the path if we contain no path at all
13148 # relative or not.
13149 case $0 in
13150 *[\\/]* ) as_myself=$0 ;;
13151 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13152for as_dir in $PATH
13153do
13154 IFS=$as_save_IFS
13155 test -z "$as_dir" && as_dir=.
13156 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13157done
13158
13159 ;;
13160 esac
13161 # We did not find ourselves, most probably we were run as `sh COMMAND'
13162 # in which case we are not to be found in the path.
13163 if test "x$as_myself" = x; then
13164 as_myself=$0
13165 fi
13166 if test ! -f "$as_myself"; then
13167 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13168echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13169 { (exit 1); exit 1; }; }
252b5132 13170 fi
42ecbf5e
DJ
13171 case $CONFIG_SHELL in
13172 '')
13173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13174for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13175do
13176 IFS=$as_save_IFS
13177 test -z "$as_dir" && as_dir=.
13178 for as_base in sh bash ksh sh5; do
13179 case $as_dir in
13180 /*)
13181 if ("$as_dir/$as_base" -c '
13182 as_lineno_1=$LINENO
13183 as_lineno_2=$LINENO
13184 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13185 test "x$as_lineno_1" != "x$as_lineno_2" &&
13186 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13187 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13188 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13189 CONFIG_SHELL=$as_dir/$as_base
13190 export CONFIG_SHELL
13191 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13192 fi;;
13193 esac
13194 done
252b5132 13195done
42ecbf5e
DJ
13196;;
13197 esac
252b5132 13198
42ecbf5e
DJ
13199 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13200 # uniformly replaced by the line number. The first 'sed' inserts a
13201 # line-number line before each line; the second 'sed' does the real
13202 # work. The second script uses 'N' to pair each line-number line
13203 # with the numbered line, and appends trailing '-' during
13204 # substitution so that $LINENO is not a special case at line end.
13205 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13206 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13207 sed '=' <$as_myself |
13208 sed '
13209 N
13210 s,$,-,
13211 : loop
13212 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13213 t loop
13214 s,-$,,
13215 s,^['$as_cr_digits']*\n,,
13216 ' >$as_me.lineno &&
13217 chmod +x $as_me.lineno ||
13218 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13219echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13220 { (exit 1); exit 1; }; }
13221
13222 # Don't try to exec as it changes $[0], causing all sort of problems
13223 # (the dirname of $[0] is not the place where we might find the
13224 # original and so on. Autoconf is especially sensible to this).
13225 . ./$as_me.lineno
13226 # Exit status is that of the last command.
13227 exit
13228}
252b5132
RH
13229
13230
42ecbf5e
DJ
13231case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13232 *c*,-n*) ECHO_N= ECHO_C='
13233' ECHO_T=' ' ;;
13234 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13235 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13236esac
252b5132 13237
42ecbf5e
DJ
13238if expr a : '\(a\)' >/dev/null 2>&1; then
13239 as_expr=expr
13240else
13241 as_expr=false
13242fi
252b5132 13243
42ecbf5e
DJ
13244rm -f conf$$ conf$$.exe conf$$.file
13245echo >conf$$.file
13246if ln -s conf$$.file conf$$ 2>/dev/null; then
13247 # We could just check for DJGPP; but this test a) works b) is more generic
13248 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13249 if test -f conf$$.exe; then
13250 # Don't use ln at all; we don't have any links
13251 as_ln_s='cp -p'
252b5132 13252 else
42ecbf5e 13253 as_ln_s='ln -s'
252b5132 13254 fi
42ecbf5e
DJ
13255elif ln conf$$.file conf$$ 2>/dev/null; then
13256 as_ln_s=ln
e5a52504 13257else
42ecbf5e 13258 as_ln_s='cp -p'
e5a52504 13259fi
42ecbf5e 13260rm -f conf$$ conf$$.exe conf$$.file
252b5132 13261
42ecbf5e
DJ
13262if mkdir -p . 2>/dev/null; then
13263 as_mkdir_p=:
13264else
13265 test -d ./-p && rmdir ./-p
13266 as_mkdir_p=false
13267fi
252b5132 13268
42ecbf5e 13269as_executable_p="test -f"
252b5132 13270
42ecbf5e
DJ
13271# Sed expression to map a string onto a valid CPP name.
13272as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
f234d5fe 13273
42ecbf5e
DJ
13274# Sed expression to map a string onto a valid variable name.
13275as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
e5a52504 13276
e5a52504 13277
42ecbf5e
DJ
13278# IFS
13279# We need space, tab and new line, in precisely that order.
13280as_nl='
13281'
13282IFS=" $as_nl"
e5a52504 13283
42ecbf5e
DJ
13284# CDPATH.
13285$as_unset CDPATH
e5a52504 13286
42ecbf5e 13287exec 6>&1
e5a52504 13288
42ecbf5e
DJ
13289# Open the log real soon, to keep \$[0] and so on meaningful, and to
13290# report actual input values of CONFIG_FILES etc. instead of their
13291# values after options handling. Logging --version etc. is OK.
13292exec 5>>config.log
13293{
13294 echo
13295 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13296## Running $as_me. ##
13297_ASBOX
13298} >&5
13299cat >&5 <<_CSEOF
e5a52504 13300
42ecbf5e
DJ
13301This file was extended by $as_me, which was
13302generated by GNU Autoconf 2.59. Invocation command line was
13303
13304 CONFIG_FILES = $CONFIG_FILES
13305 CONFIG_HEADERS = $CONFIG_HEADERS
13306 CONFIG_LINKS = $CONFIG_LINKS
13307 CONFIG_COMMANDS = $CONFIG_COMMANDS
13308 $ $0 $@
e5a52504 13309
42ecbf5e
DJ
13310_CSEOF
13311echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13312echo >&5
13313_ACEOF
13314
13315# Files that config.status was made for.
13316if test -n "$ac_config_files"; then
13317 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
d15b04bd 13318fi
e5a52504 13319
42ecbf5e
DJ
13320if test -n "$ac_config_headers"; then
13321 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13322fi
13323
13324if test -n "$ac_config_links"; then
13325 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13326fi
13327
13328if test -n "$ac_config_commands"; then
13329 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13330fi
13331
13332cat >>$CONFIG_STATUS <<\_ACEOF
13333
13334ac_cs_usage="\
13335\`$as_me' instantiates files from templates according to the
13336current configuration.
13337
13338Usage: $0 [OPTIONS] [FILE]...
13339
13340 -h, --help print this help, then exit
13341 -V, --version print version number, then exit
13342 -q, --quiet do not print progress messages
13343 -d, --debug don't remove temporary files
13344 --recheck update $as_me by reconfiguring in the same conditions
13345 --file=FILE[:TEMPLATE]
13346 instantiate the configuration file FILE
13347 --header=FILE[:TEMPLATE]
13348 instantiate the configuration header FILE
13349
13350Configuration files:
13351$config_files
13352
13353Configuration headers:
13354$config_headers
13355
13356Configuration commands:
13357$config_commands
13358
13359Report bugs to <bug-autoconf@gnu.org>."
13360_ACEOF
13361
13362cat >>$CONFIG_STATUS <<_ACEOF
13363ac_cs_version="\\
13364config.status
13365configured by $0, generated by GNU Autoconf 2.59,
13366 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13367
13368Copyright (C) 2003 Free Software Foundation, Inc.
13369This config.status script is free software; the Free Software Foundation
13370gives unlimited permission to copy, distribute and modify it."
13371srcdir=$srcdir
13372INSTALL="$INSTALL"
13373_ACEOF
13374
13375cat >>$CONFIG_STATUS <<\_ACEOF
13376# If no file are specified by the user, then we need to provide default
13377# value. By we need to know if files were specified by the user.
13378ac_need_defaults=:
13379while test $# != 0
13380do
13381 case $1 in
13382 --*=*)
13383 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13384 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13385 ac_shift=:
252b5132 13386 ;;
42ecbf5e
DJ
13387 -*)
13388 ac_option=$1
13389 ac_optarg=$2
13390 ac_shift=shift
252b5132 13391 ;;
42ecbf5e
DJ
13392 *) # This is not an option, so the user has probably given explicit
13393 # arguments.
13394 ac_option=$1
13395 ac_need_defaults=false;;
13396 esac
252b5132 13397
42ecbf5e
DJ
13398 case $ac_option in
13399 # Handling of the options.
13400_ACEOF
13401cat >>$CONFIG_STATUS <<\_ACEOF
13402 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13403 ac_cs_recheck=: ;;
13404 --version | --vers* | -V )
13405 echo "$ac_cs_version"; exit 0 ;;
13406 --he | --h)
13407 # Conflict between --help and --header
13408 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13409Try \`$0 --help' for more information." >&5
13410echo "$as_me: error: ambiguous option: $1
13411Try \`$0 --help' for more information." >&2;}
13412 { (exit 1); exit 1; }; };;
13413 --help | --hel | -h )
13414 echo "$ac_cs_usage"; exit 0 ;;
13415 --debug | --d* | -d )
13416 debug=: ;;
13417 --file | --fil | --fi | --f )
13418 $ac_shift
13419 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13420 ac_need_defaults=false;;
13421 --header | --heade | --head | --hea )
13422 $ac_shift
13423 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13424 ac_need_defaults=false;;
13425 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13426 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13427 ac_cs_silent=: ;;
252b5132 13428
42ecbf5e
DJ
13429 # This is an error.
13430 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13431Try \`$0 --help' for more information." >&5
13432echo "$as_me: error: unrecognized option: $1
13433Try \`$0 --help' for more information." >&2;}
13434 { (exit 1); exit 1; }; } ;;
252b5132 13435
42ecbf5e 13436 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 13437
42ecbf5e
DJ
13438 esac
13439 shift
13440done
d15b04bd 13441
42ecbf5e 13442ac_configure_extra_args=
e5a52504 13443
42ecbf5e
DJ
13444if $ac_cs_silent; then
13445 exec 6>/dev/null
13446 ac_configure_extra_args="$ac_configure_extra_args --silent"
13447fi
e5a52504 13448
42ecbf5e
DJ
13449_ACEOF
13450cat >>$CONFIG_STATUS <<_ACEOF
13451if \$ac_cs_recheck; then
13452 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13453 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13454fi
13455
13456_ACEOF
13457
13458cat >>$CONFIG_STATUS <<_ACEOF
252b5132 13459#
42ecbf5e 13460# INIT-COMMANDS section.
252b5132 13461#
252b5132 13462
42ecbf5e 13463AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
13464
13465
13466# The HP-UX ksh and POSIX shell print the target directory to stdout
13467# if CDPATH is set.
13468(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13469
13470sed_quote_subst='$sed_quote_subst'
13471double_quote_subst='$double_quote_subst'
13472delay_variable_subst='$delay_variable_subst'
13473macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13474macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13475enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13476enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13477pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13478enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13479host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13480host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13481host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13482build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13483build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13484build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13485SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13486Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13487GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13488EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13489FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13490LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13491NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13492LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13493max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13494ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13495exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13496lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13497lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13498lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13499reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13500reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13501deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13502file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13503AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13504AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13505STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13506RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13507old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13508old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13509old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13510CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13511CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13512compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13513GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13514lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13515lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13516lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
13517objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13518SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13519ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13520MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13521lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13522lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13523lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13524lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13525lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13526need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13527libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13528shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13529extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13530archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13531enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13532export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13533whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13534compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13535old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13536old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13537archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13538archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13539module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13540module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13541with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13542allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13543no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13544hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13545hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13546hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13547hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13548hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13549hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13550hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13551hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13552inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13553link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13554fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13555always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13556export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13557exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13558include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13559prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13560file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13561variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13562need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13563need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13564version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13565runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13566shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13567shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13568libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13569library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13570soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13571postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13572postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13573finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13574finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13575hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13576sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13577sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13578hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13579enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13580enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13581enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13582old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13583striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13584
13585LTCC='$LTCC'
13586LTCFLAGS='$LTCFLAGS'
13587compiler='$compiler_DEFAULT'
13588
13589# Quote evaled strings.
13590for var in SED \
13591GREP \
13592EGREP \
13593FGREP \
13594LD \
13595NM \
13596LN_S \
13597lt_SP2NL \
13598lt_NL2SP \
13599reload_flag \
13600deplibs_check_method \
13601file_magic_cmd \
13602AR \
13603AR_FLAGS \
13604STRIP \
13605RANLIB \
13606CC \
13607CFLAGS \
13608compiler \
13609lt_cv_sys_global_symbol_pipe \
13610lt_cv_sys_global_symbol_to_cdecl \
13611lt_cv_sys_global_symbol_to_c_name_address \
13612SHELL \
13613ECHO \
13614lt_prog_compiler_no_builtin_flag \
13615lt_prog_compiler_wl \
13616lt_prog_compiler_pic \
13617lt_prog_compiler_static \
13618lt_cv_prog_compiler_c_o \
13619need_locks \
13620shrext_cmds \
13621export_dynamic_flag_spec \
13622whole_archive_flag_spec \
13623compiler_needs_object \
13624with_gnu_ld \
13625allow_undefined_flag \
13626no_undefined_flag \
13627hardcode_libdir_flag_spec \
13628hardcode_libdir_flag_spec_ld \
13629hardcode_libdir_separator \
13630fix_srcfile_path \
13631exclude_expsyms \
13632include_expsyms \
13633file_list_spec \
13634variables_saved_for_relink \
13635libname_spec \
13636library_names_spec \
13637soname_spec \
13638finish_eval \
13639old_striplib \
13640striplib; do
13641 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13642 *[\\\\\\\`\\"\\\$]*)
13643 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13644 ;;
13645 *)
13646 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13647 ;;
13648 esac
13649done
13650
13651# Double-quote double-evaled strings.
13652for var in reload_cmds \
13653old_postinstall_cmds \
13654old_postuninstall_cmds \
13655old_archive_cmds \
13656extract_expsyms_cmds \
13657old_archive_from_new_cmds \
13658old_archive_from_expsyms_cmds \
13659archive_cmds \
13660archive_expsym_cmds \
13661module_cmds \
13662module_expsym_cmds \
13663export_symbols_cmds \
13664prelink_cmds \
13665postinstall_cmds \
13666postuninstall_cmds \
13667finish_cmds \
13668sys_lib_search_path_spec \
13669sys_lib_dlsearch_path_spec; do
13670 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13671 *[\\\\\\\`\\"\\\$]*)
13672 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13673 ;;
13674 *)
13675 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13676 ;;
13677 esac
13678done
13679
13680# Fix-up fallback echo if it was mangled by the above quoting rules.
13681case \$lt_ECHO in
13682*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13683 ;;
13684esac
13685
13686ac_aux_dir='$ac_aux_dir'
13687xsi_shell='$xsi_shell'
13688lt_shell_append='$lt_shell_append'
13689
13690# See if we are running on zsh, and set the options which allow our
13691# commands through without removal of \ escapes INIT.
13692if test -n "\${ZSH_VERSION+set}" ; then
13693 setopt NO_GLOB_SUBST
13694fi
13695
13696
13697 PACKAGE='$PACKAGE'
13698 VERSION='$VERSION'
13699 TIMESTAMP='$TIMESTAMP'
13700 RM='$RM'
13701 ofile='$ofile'
13702
13703
13704
20e95c23
DJ
13705# Capture the value of obsolete ALL_LINGUAS because we need it to compute
13706 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
13707 # from automake.
13708 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13709 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13710 LINGUAS="${LINGUAS-%UNSET%}"
13711
42ecbf5e
DJ
13712
13713_ACEOF
13714
13715
13716
13717cat >>$CONFIG_STATUS <<\_ACEOF
13718for ac_config_target in $ac_config_targets
252b5132 13719do
42ecbf5e
DJ
13720 case "$ac_config_target" in
13721 # Handling of arguments.
13722 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13723 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
13724 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d7040cdb 13725 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20e95c23 13726 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
42ecbf5e
DJ
13727 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
13728 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13729echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13730 { (exit 1); exit 1; }; };;
252b5132
RH
13731 esac
13732done
13733
42ecbf5e
DJ
13734# If the user did not use the arguments to specify the items to instantiate,
13735# then the envvar interface is used. Set only those that are not.
13736# We use the long form for the default assignment because of an extremely
13737# bizarre bug on SunOS 4.1.3.
13738if $ac_need_defaults; then
13739 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13740 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13741 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13742fi
13743
13744# Have a temporary directory for convenience. Make it in the build tree
13745# simply because there is no reason to put it here, and in addition,
13746# creating and moving files from /tmp can sometimes cause problems.
13747# Create a temporary directory, and hook for its removal unless debugging.
13748$debug ||
13749{
13750 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13751 trap '{ (exit 1); exit 1; }' 1 2 13 15
13752}
13753
13754# Create a (secure) tmp directory for tmp files.
e5a52504 13755
42ecbf5e
DJ
13756{
13757 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13758 test -n "$tmp" && test -d "$tmp"
13759} ||
13760{
13761 tmp=./confstat$$-$RANDOM
13762 (umask 077 && mkdir $tmp)
13763} ||
13764{
13765 echo "$me: cannot create a temporary directory in ." >&2
13766 { (exit 1); exit 1; }
13767}
e5a52504 13768
42ecbf5e 13769_ACEOF
d15b04bd 13770
42ecbf5e
DJ
13771cat >>$CONFIG_STATUS <<_ACEOF
13772
13773#
13774# CONFIG_FILES section.
13775#
13776
13777# No need to generate the scripts if there are no CONFIG_FILES.
13778# This happens for instance when ./config.status config.h
13779if test -n "\$CONFIG_FILES"; then
13780 # Protect against being on the right side of a sed subst in config.status.
13781 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13782 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13783s,@SHELL@,$SHELL,;t t
13784s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13785s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13786s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13787s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13788s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13789s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13790s,@exec_prefix@,$exec_prefix,;t t
13791s,@prefix@,$prefix,;t t
13792s,@program_transform_name@,$program_transform_name,;t t
13793s,@bindir@,$bindir,;t t
13794s,@sbindir@,$sbindir,;t t
13795s,@libexecdir@,$libexecdir,;t t
13796s,@datadir@,$datadir,;t t
13797s,@sysconfdir@,$sysconfdir,;t t
13798s,@sharedstatedir@,$sharedstatedir,;t t
13799s,@localstatedir@,$localstatedir,;t t
13800s,@libdir@,$libdir,;t t
13801s,@includedir@,$includedir,;t t
13802s,@oldincludedir@,$oldincludedir,;t t
13803s,@infodir@,$infodir,;t t
13804s,@mandir@,$mandir,;t t
13805s,@build_alias@,$build_alias,;t t
13806s,@host_alias@,$host_alias,;t t
13807s,@target_alias@,$target_alias,;t t
13808s,@DEFS@,$DEFS,;t t
13809s,@ECHO_C@,$ECHO_C,;t t
13810s,@ECHO_N@,$ECHO_N,;t t
13811s,@ECHO_T@,$ECHO_T,;t t
13812s,@LIBS@,$LIBS,;t t
13813s,@build@,$build,;t t
13814s,@build_cpu@,$build_cpu,;t t
13815s,@build_vendor@,$build_vendor,;t t
13816s,@build_os@,$build_os,;t t
13817s,@host@,$host,;t t
13818s,@host_cpu@,$host_cpu,;t t
13819s,@host_vendor@,$host_vendor,;t t
13820s,@host_os@,$host_os,;t t
13821s,@target@,$target,;t t
13822s,@target_cpu@,$target_cpu,;t t
13823s,@target_vendor@,$target_vendor,;t t
13824s,@target_os@,$target_os,;t t
13825s,@CC@,$CC,;t t
13826s,@CFLAGS@,$CFLAGS,;t t
13827s,@LDFLAGS@,$LDFLAGS,;t t
13828s,@CPPFLAGS@,$CPPFLAGS,;t t
13829s,@ac_ct_CC@,$ac_ct_CC,;t t
13830s,@EXEEXT@,$EXEEXT,;t t
13831s,@OBJEXT@,$OBJEXT,;t t
13832s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13833s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13834s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13835s,@CYGPATH_W@,$CYGPATH_W,;t t
13836s,@PACKAGE@,$PACKAGE,;t t
13837s,@VERSION@,$VERSION,;t t
13838s,@ACLOCAL@,$ACLOCAL,;t t
13839s,@AUTOCONF@,$AUTOCONF,;t t
13840s,@AUTOMAKE@,$AUTOMAKE,;t t
13841s,@AUTOHEADER@,$AUTOHEADER,;t t
13842s,@MAKEINFO@,$MAKEINFO,;t t
13843s,@install_sh@,$install_sh,;t t
13844s,@STRIP@,$STRIP,;t t
13845s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13846s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13847s,@mkdir_p@,$mkdir_p,;t t
13848s,@AWK@,$AWK,;t t
13849s,@SET_MAKE@,$SET_MAKE,;t t
13850s,@am__leading_dot@,$am__leading_dot,;t t
13851s,@AMTAR@,$AMTAR,;t t
13852s,@am__tar@,$am__tar,;t t
13853s,@am__untar@,$am__untar,;t t
13854s,@DEPDIR@,$DEPDIR,;t t
13855s,@am__include@,$am__include,;t t
13856s,@am__quote@,$am__quote,;t t
13857s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13858s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13859s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13860s,@CCDEPMODE@,$CCDEPMODE,;t t
13861s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13862s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
ce2cded5
L
13863s,@use_sysroot@,$use_sysroot,;t t
13864s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
13865s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
13866s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
13867s,@NO_WERROR@,$NO_WERROR,;t t
d7040cdb
SE
13868s,@LIBTOOL@,$LIBTOOL,;t t
13869s,@SED@,$SED,;t t
13870s,@EGREP@,$EGREP,;t t
13871s,@FGREP@,$FGREP,;t t
13872s,@GREP@,$GREP,;t t
13873s,@LD@,$LD,;t t
13874s,@DUMPBIN@,$DUMPBIN,;t t
13875s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
13876s,@NM@,$NM,;t t
42ecbf5e 13877s,@LN_S@,$LN_S,;t t
d7040cdb
SE
13878s,@AR@,$AR,;t t
13879s,@ac_ct_AR@,$ac_ct_AR,;t t
42ecbf5e
DJ
13880s,@RANLIB@,$RANLIB,;t t
13881s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
d7040cdb
SE
13882s,@lt_ECHO@,$lt_ECHO,;t t
13883s,@CPP@,$CPP,;t t
42ecbf5e 13884s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
13885s,@LIBINTL@,$LIBINTL,;t t
13886s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13887s,@INCINTL@,$INCINTL,;t t
42ecbf5e 13888s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
13889s,@GMSGFMT@,$GMSGFMT,;t t
13890s,@POSUB@,$POSUB,;t t
42ecbf5e 13891s,@CATALOGS@,$CATALOGS,;t t
42ecbf5e 13892s,@DATADIRNAME@,$DATADIRNAME,;t t
42ecbf5e 13893s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
13894s,@GENCAT@,$GENCAT,;t t
13895s,@CATOBJEXT@,$CATOBJEXT,;t t
42ecbf5e 13896s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
13897s,@MSGFMT@,$MSGFMT,;t t
13898s,@MSGMERGE@,$MSGMERGE,;t t
42ecbf5e
DJ
13899s,@YACC@,$YACC,;t t
13900s,@LEX@,$LEX,;t t
13901s,@LEXLIB@,$LEXLIB,;t t
13902s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
13903s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13904s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13905s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
13906s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
13907s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
42ecbf5e
DJ
13908s,@HDEFINES@,$HDEFINES,;t t
13909s,@HOSTING_CRT0@,$HOSTING_CRT0,;t t
13910s,@HOSTING_LIBS@,$HOSTING_LIBS,;t t
13911s,@NATIVE_LIB_DIRS@,$NATIVE_LIB_DIRS,;t t
13912s,@STRINGIFY@,$STRINGIFY,;t t
13913s,@EMUL@,$EMUL,;t t
13914s,@EMULATION_OFILES@,$EMULATION_OFILES,;t t
13915s,@EMUL_EXTRA_OFILES@,$EMUL_EXTRA_OFILES,;t t
13916s,@LIB_PATH@,$LIB_PATH,;t t
13917s,@EMULATION_LIBPATH@,$EMULATION_LIBPATH,;t t
13918s,@TESTBFDLIB@,$TESTBFDLIB,;t t
108a6f8e
CD
13919s,@datarootdir@,$datarootdir,;t t
13920s,@docdir@,$docdir,;t t
13921s,@htmldir@,$htmldir,;t t
42ecbf5e
DJ
13922s,@LIBOBJS@,$LIBOBJS,;t t
13923s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13924/@TDIRS@/r $TDIRS
13925s,@TDIRS@,,;t t
252b5132 13926CEOF
252b5132 13927
42ecbf5e
DJ
13928_ACEOF
13929
13930 cat >>$CONFIG_STATUS <<\_ACEOF
13931 # Split the substitutions into bite-sized pieces for seds with
13932 # small command number limits, like on Digital OSF/1 and HP-UX.
13933 ac_max_sed_lines=48
13934 ac_sed_frag=1 # Number of current file.
13935 ac_beg=1 # First line for current file.
13936 ac_end=$ac_max_sed_lines # Line after last line for current file.
13937 ac_more_lines=:
13938 ac_sed_cmds=
13939 while $ac_more_lines; do
13940 if test $ac_beg -gt 1; then
13941 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13942 else
13943 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13944 fi
13945 if test ! -s $tmp/subs.frag; then
13946 ac_more_lines=false
252b5132 13947 else
42ecbf5e
DJ
13948 # The purpose of the label and of the branching condition is to
13949 # speed up the sed processing (if there are no `@' at all, there
13950 # is no need to browse any of the substitutions).
13951 # These are the two extra sed commands mentioned above.
13952 (echo ':t
13953 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13954 if test -z "$ac_sed_cmds"; then
13955 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13956 else
13957 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13958 fi
13959 ac_sed_frag=`expr $ac_sed_frag + 1`
13960 ac_beg=$ac_end
13961 ac_end=`expr $ac_end + $ac_max_sed_lines`
252b5132 13962 fi
42ecbf5e
DJ
13963 done
13964 if test -z "$ac_sed_cmds"; then
13965 ac_sed_cmds=cat
252b5132 13966 fi
42ecbf5e 13967fi # test -n "$CONFIG_FILES"
252b5132 13968
42ecbf5e
DJ
13969_ACEOF
13970cat >>$CONFIG_STATUS <<\_ACEOF
13971for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
252b5132 13972 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42ecbf5e
DJ
13973 case $ac_file in
13974 - | *:- | *:-:* ) # input from stdin
13975 cat >$tmp/stdin
13976 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13977 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13978 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13979 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13980 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
13981 esac
13982
42ecbf5e
DJ
13983 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13984 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13985$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13986 X"$ac_file" : 'X\(//\)[^/]' \| \
13987 X"$ac_file" : 'X\(//\)$' \| \
13988 X"$ac_file" : 'X\(/\)' \| \
13989 . : '\(.\)' 2>/dev/null ||
13990echo X"$ac_file" |
13991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13992 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13993 /^X\(\/\/\)$/{ s//\1/; q; }
13994 /^X\(\/\).*/{ s//\1/; q; }
13995 s/.*/./; q'`
13996 { if $as_mkdir_p; then
13997 mkdir -p "$ac_dir"
d15b04bd 13998 else
42ecbf5e
DJ
13999 as_dir="$ac_dir"
14000 as_dirs=
14001 while test ! -d "$as_dir"; do
14002 as_dirs="$as_dir $as_dirs"
14003 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14004$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14005 X"$as_dir" : 'X\(//\)[^/]' \| \
14006 X"$as_dir" : 'X\(//\)$' \| \
14007 X"$as_dir" : 'X\(/\)' \| \
14008 . : '\(.\)' 2>/dev/null ||
14009echo X"$as_dir" |
14010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14011 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14012 /^X\(\/\/\)$/{ s//\1/; q; }
14013 /^X\(\/\).*/{ s//\1/; q; }
14014 s/.*/./; q'`
14015 done
14016 test ! -n "$as_dirs" || mkdir $as_dirs
14017 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14018echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14019 { (exit 1); exit 1; }; }; }
14020
14021 ac_builddir=.
14022
14023if test "$ac_dir" != .; then
14024 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14025 # A "../" for each directory in $ac_dir_suffix.
14026 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14027else
14028 ac_dir_suffix= ac_top_builddir=
14029fi
252b5132 14030
42ecbf5e
DJ
14031case $srcdir in
14032 .) # No --srcdir option. We are building in place.
14033 ac_srcdir=.
14034 if test -z "$ac_top_builddir"; then
14035 ac_top_srcdir=.
14036 else
14037 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14038 fi ;;
14039 [\\/]* | ?:[\\/]* ) # Absolute path.
14040 ac_srcdir=$srcdir$ac_dir_suffix;
14041 ac_top_srcdir=$srcdir ;;
252b5132 14042 *) # Relative path.
42ecbf5e
DJ
14043 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14044 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14045esac
14046
14047# Do not use `cd foo && pwd` to compute absolute paths, because
14048# the directories may not exist.
14049case `pwd` in
14050.) ac_abs_builddir="$ac_dir";;
14051*)
14052 case "$ac_dir" in
14053 .) ac_abs_builddir=`pwd`;;
14054 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14055 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14056 esac;;
14057esac
14058case $ac_abs_builddir in
14059.) ac_abs_top_builddir=${ac_top_builddir}.;;
14060*)
14061 case ${ac_top_builddir}. in
14062 .) ac_abs_top_builddir=$ac_abs_builddir;;
14063 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14064 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14065 esac;;
14066esac
14067case $ac_abs_builddir in
14068.) ac_abs_srcdir=$ac_srcdir;;
14069*)
14070 case $ac_srcdir in
14071 .) ac_abs_srcdir=$ac_abs_builddir;;
14072 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14073 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14074 esac;;
14075esac
14076case $ac_abs_builddir in
14077.) ac_abs_top_srcdir=$ac_top_srcdir;;
14078*)
14079 case $ac_top_srcdir in
14080 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14081 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14082 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14083 esac;;
14084esac
252b5132 14085
e5a52504 14086
42ecbf5e
DJ
14087 case $INSTALL in
14088 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14089 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
d15b04bd 14090 esac
e5a52504 14091
502bdb00
JW
14092 if test x"$ac_file" != x-; then
14093 { echo "$as_me:$LINENO: creating $ac_file" >&5
14094echo "$as_me: creating $ac_file" >&6;}
14095 rm -f "$ac_file"
14096 fi
42ecbf5e
DJ
14097 # Let's still pretend it is `configure' which instantiates (i.e., don't
14098 # use $as_me), people would be surprised to read:
14099 # /* config.h. Generated by config.status. */
14100 if test x"$ac_file" = x-; then
14101 configure_input=
14102 else
14103 configure_input="$ac_file. "
14104 fi
14105 configure_input=$configure_input"Generated from `echo $ac_file_in |
14106 sed 's,.*/,,'` by configure."
14107
14108 # First look for the input files in the build tree, otherwise in the
14109 # src tree.
14110 ac_file_inputs=`IFS=:
14111 for f in $ac_file_in; do
14112 case $f in
14113 -) echo $tmp/stdin ;;
14114 [\\/$]*)
14115 # Absolute (can't be DOS-style, as IFS=:)
14116 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14117echo "$as_me: error: cannot find input file: $f" >&2;}
14118 { (exit 1); exit 1; }; }
14119 echo "$f";;
14120 *) # Relative
14121 if test -f "$f"; then
14122 # Build tree
14123 echo "$f"
14124 elif test -f "$srcdir/$f"; then
14125 # Source tree
14126 echo "$srcdir/$f"
14127 else
14128 # /dev/null tree
14129 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14130echo "$as_me: error: cannot find input file: $f" >&2;}
14131 { (exit 1); exit 1; }; }
14132 fi;;
14133 esac
14134 done` || { (exit 1); exit 1; }
42ecbf5e
DJ
14135_ACEOF
14136cat >>$CONFIG_STATUS <<_ACEOF
14137 sed "$ac_vpsub
14138$extrasub
14139_ACEOF
14140cat >>$CONFIG_STATUS <<\_ACEOF
14141:t
14142/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14143s,@configure_input@,$configure_input,;t t
14144s,@srcdir@,$ac_srcdir,;t t
14145s,@abs_srcdir@,$ac_abs_srcdir,;t t
14146s,@top_srcdir@,$ac_top_srcdir,;t t
14147s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14148s,@builddir@,$ac_builddir,;t t
14149s,@abs_builddir@,$ac_abs_builddir,;t t
14150s,@top_builddir@,$ac_top_builddir,;t t
14151s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14152s,@INSTALL@,$ac_INSTALL,;t t
14153" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14154 rm -f $tmp/stdin
14155 if test x"$ac_file" != x-; then
14156 mv $tmp/out $ac_file
14157 else
14158 cat $tmp/out
14159 rm -f $tmp/out
14160 fi
14161
14162done
14163_ACEOF
14164cat >>$CONFIG_STATUS <<\_ACEOF
14165
14166#
14167# CONFIG_HEADER section.
14168#
252b5132
RH
14169
14170# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14171# NAME is the cpp macro being defined and VALUE is the value it is being given.
14172#
14173# ac_d sets the value in "#define NAME VALUE" lines.
42ecbf5e
DJ
14174ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14175ac_dB='[ ].*$,\1#\2'
14176ac_dC=' '
14177ac_dD=',;t'
14178# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14179ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14180ac_uB='$,\1#\2define\3'
252b5132 14181ac_uC=' '
42ecbf5e
DJ
14182ac_uD=',;t'
14183
14184for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 14185 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42ecbf5e
DJ
14186 case $ac_file in
14187 - | *:- | *:-:* ) # input from stdin
14188 cat >$tmp/stdin
14189 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14190 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14191 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14192 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14193 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
14194 esac
14195
42ecbf5e
DJ
14196 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14197echo "$as_me: creating $ac_file" >&6;}
14198
14199 # First look for the input files in the build tree, otherwise in the
14200 # src tree.
14201 ac_file_inputs=`IFS=:
14202 for f in $ac_file_in; do
14203 case $f in
14204 -) echo $tmp/stdin ;;
14205 [\\/$]*)
14206 # Absolute (can't be DOS-style, as IFS=:)
14207 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14208echo "$as_me: error: cannot find input file: $f" >&2;}
14209 { (exit 1); exit 1; }; }
14210 # Do quote $f, to prevent DOS paths from being IFS'd.
14211 echo "$f";;
14212 *) # Relative
14213 if test -f "$f"; then
14214 # Build tree
14215 echo "$f"
14216 elif test -f "$srcdir/$f"; then
14217 # Source tree
14218 echo "$srcdir/$f"
14219 else
14220 # /dev/null tree
14221 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14222echo "$as_me: error: cannot find input file: $f" >&2;}
14223 { (exit 1); exit 1; }; }
14224 fi;;
14225 esac
14226 done` || { (exit 1); exit 1; }
14227 # Remove the trailing spaces.
14228 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14229
14230_ACEOF
14231
14232# Transform confdefs.h into two sed scripts, `conftest.defines' and
14233# `conftest.undefs', that substitutes the proper values into
14234# config.h.in to produce config.h. The first handles `#define'
14235# templates, and the second `#undef' templates.
14236# And first: Protect against being on the right side of a sed subst in
14237# config.status. Protect against being in an unquoted here document
14238# in config.status.
14239rm -f conftest.defines conftest.undefs
14240# Using a here document instead of a string reduces the quoting nightmare.
14241# Putting comments in sed scripts is not portable.
14242#
14243# `end' is used to avoid that the second main sed command (meant for
14244# 0-ary CPP macros) applies to n-ary macro definitions.
14245# See the Autoconf documentation for `clear'.
14246cat >confdef2sed.sed <<\_ACEOF
14247s/[\\&,]/\\&/g
14248s,[\\$`],\\&,g
14249t clear
14250: clear
14251s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14252t end
14253s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14254: end
14255_ACEOF
14256# If some macros were called several times there might be several times
14257# the same #defines, which is useless. Nevertheless, we may not want to
14258# sort them, since we want the *last* AC-DEFINE to be honored.
14259uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14260sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14261rm -f confdef2sed.sed
252b5132
RH
14262
14263# This sed command replaces #undef with comments. This is necessary, for
14264# example, in the case of _POSIX_SOURCE, which is predefined and required
14265# on some systems where configure will not decide to define it.
42ecbf5e
DJ
14266cat >>conftest.undefs <<\_ACEOF
14267s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14268_ACEOF
14269
14270# Break up conftest.defines because some shells have a limit on the size
14271# of here documents, and old seds have small limits too (100 cmds).
14272echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14273echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14274echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14275echo ' :' >>$CONFIG_STATUS
14276rm -f conftest.tail
14277while grep . conftest.defines >/dev/null
14278do
14279 # Write a limited-size here document to $tmp/defines.sed.
14280 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14281 # Speed up: don't consider the non `#define' lines.
14282 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14283 # Work around the forget-to-reset-the-flag bug.
14284 echo 't clr' >>$CONFIG_STATUS
14285 echo ': clr' >>$CONFIG_STATUS
14286 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14287 echo 'CEOF
14288 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14289 rm -f $tmp/in
14290 mv $tmp/out $tmp/in
14291' >>$CONFIG_STATUS
14292 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14293 rm -f conftest.defines
14294 mv conftest.tail conftest.defines
14295done
14296rm -f conftest.defines
14297echo ' fi # grep' >>$CONFIG_STATUS
14298echo >>$CONFIG_STATUS
252b5132 14299
42ecbf5e
DJ
14300# Break up conftest.undefs because some shells have a limit on the size
14301# of here documents, and old seds have small limits too (100 cmds).
14302echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 14303rm -f conftest.tail
42ecbf5e 14304while grep . conftest.undefs >/dev/null
252b5132 14305do
42ecbf5e
DJ
14306 # Write a limited-size here document to $tmp/undefs.sed.
14307 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14308 # Speed up: don't consider the non `#undef'
14309 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14310 # Work around the forget-to-reset-the-flag bug.
14311 echo 't clr' >>$CONFIG_STATUS
14312 echo ': clr' >>$CONFIG_STATUS
14313 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 14314 echo 'CEOF
42ecbf5e
DJ
14315 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14316 rm -f $tmp/in
14317 mv $tmp/out $tmp/in
14318' >>$CONFIG_STATUS
14319 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14320 rm -f conftest.undefs
14321 mv conftest.tail conftest.undefs
252b5132 14322done
42ecbf5e
DJ
14323rm -f conftest.undefs
14324
14325cat >>$CONFIG_STATUS <<\_ACEOF
14326 # Let's still pretend it is `configure' which instantiates (i.e., don't
14327 # use $as_me), people would be surprised to read:
14328 # /* config.h. Generated by config.status. */
14329 if test x"$ac_file" = x-; then
14330 echo "/* Generated by configure. */" >$tmp/config.h
252b5132 14331 else
42ecbf5e
DJ
14332 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14333 fi
14334 cat $tmp/in >>$tmp/config.h
14335 rm -f $tmp/in
14336 if test x"$ac_file" != x-; then
14337 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14338 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14339echo "$as_me: $ac_file is unchanged" >&6;}
14340 else
14341 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14342$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14343 X"$ac_file" : 'X\(//\)[^/]' \| \
14344 X"$ac_file" : 'X\(//\)$' \| \
14345 X"$ac_file" : 'X\(/\)' \| \
14346 . : '\(.\)' 2>/dev/null ||
14347echo X"$ac_file" |
14348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14349 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14350 /^X\(\/\/\)$/{ s//\1/; q; }
14351 /^X\(\/\).*/{ s//\1/; q; }
14352 s/.*/./; q'`
14353 { if $as_mkdir_p; then
14354 mkdir -p "$ac_dir"
14355 else
14356 as_dir="$ac_dir"
14357 as_dirs=
14358 while test ! -d "$as_dir"; do
14359 as_dirs="$as_dir $as_dirs"
14360 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14361$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14362 X"$as_dir" : 'X\(//\)[^/]' \| \
14363 X"$as_dir" : 'X\(//\)$' \| \
14364 X"$as_dir" : 'X\(/\)' \| \
14365 . : '\(.\)' 2>/dev/null ||
14366echo X"$as_dir" |
14367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14368 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14369 /^X\(\/\/\)$/{ s//\1/; q; }
14370 /^X\(\/\).*/{ s//\1/; q; }
14371 s/.*/./; q'`
14372 done
14373 test ! -n "$as_dirs" || mkdir $as_dirs
14374 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14375echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14376 { (exit 1); exit 1; }; }; }
14377
14378 rm -f $ac_file
14379 mv $tmp/config.h $ac_file
252b5132 14380 fi
42ecbf5e
DJ
14381 else
14382 cat $tmp/config.h
14383 rm -f $tmp/config.h
e5a52504 14384 fi
42ecbf5e
DJ
14385# Compute $ac_file's index in $config_headers.
14386_am_stamp_count=1
14387for _am_header in $config_headers :; do
14388 case $_am_header in
14389 $ac_file | $ac_file:* )
14390 break ;;
14391 * )
14392 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14393 esac
14394done
14395echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
14396$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14397 X$ac_file : 'X\(//\)[^/]' \| \
14398 X$ac_file : 'X\(//\)$' \| \
14399 X$ac_file : 'X\(/\)' \| \
14400 . : '\(.\)' 2>/dev/null ||
14401echo X$ac_file |
14402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14403 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14404 /^X\(\/\/\)$/{ s//\1/; q; }
14405 /^X\(\/\).*/{ s//\1/; q; }
14406 s/.*/./; q'`/stamp-h$_am_stamp_count
14407done
14408_ACEOF
14409cat >>$CONFIG_STATUS <<\_ACEOF
e5a52504 14410
42ecbf5e
DJ
14411#
14412# CONFIG_COMMANDS section.
14413#
14414for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14415 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14416 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14417 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14418$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14419 X"$ac_dest" : 'X\(//\)[^/]' \| \
14420 X"$ac_dest" : 'X\(//\)$' \| \
14421 X"$ac_dest" : 'X\(/\)' \| \
14422 . : '\(.\)' 2>/dev/null ||
14423echo X"$ac_dest" |
14424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14425 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14426 /^X\(\/\/\)$/{ s//\1/; q; }
14427 /^X\(\/\).*/{ s//\1/; q; }
14428 s/.*/./; q'`
14429 { if $as_mkdir_p; then
14430 mkdir -p "$ac_dir"
14431 else
14432 as_dir="$ac_dir"
14433 as_dirs=
14434 while test ! -d "$as_dir"; do
14435 as_dirs="$as_dir $as_dirs"
14436 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14437$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14438 X"$as_dir" : 'X\(//\)[^/]' \| \
14439 X"$as_dir" : 'X\(//\)$' \| \
14440 X"$as_dir" : 'X\(/\)' \| \
14441 . : '\(.\)' 2>/dev/null ||
14442echo X"$as_dir" |
14443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14444 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14445 /^X\(\/\/\)$/{ s//\1/; q; }
14446 /^X\(\/\).*/{ s//\1/; q; }
14447 s/.*/./; q'`
14448 done
14449 test ! -n "$as_dirs" || mkdir $as_dirs
14450 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14451echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14452 { (exit 1); exit 1; }; }; }
e5a52504 14453
42ecbf5e 14454 ac_builddir=.
e5a52504 14455
42ecbf5e
DJ
14456if test "$ac_dir" != .; then
14457 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14458 # A "../" for each directory in $ac_dir_suffix.
14459 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14460else
14461 ac_dir_suffix= ac_top_builddir=
14462fi
14463
14464case $srcdir in
14465 .) # No --srcdir option. We are building in place.
14466 ac_srcdir=.
14467 if test -z "$ac_top_builddir"; then
14468 ac_top_srcdir=.
14469 else
14470 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14471 fi ;;
14472 [\\/]* | ?:[\\/]* ) # Absolute path.
14473 ac_srcdir=$srcdir$ac_dir_suffix;
14474 ac_top_srcdir=$srcdir ;;
14475 *) # Relative path.
14476 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14477 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14478esac
14479
14480# Do not use `cd foo && pwd` to compute absolute paths, because
14481# the directories may not exist.
14482case `pwd` in
14483.) ac_abs_builddir="$ac_dir";;
14484*)
14485 case "$ac_dir" in
14486 .) ac_abs_builddir=`pwd`;;
14487 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14488 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14489 esac;;
14490esac
14491case $ac_abs_builddir in
14492.) ac_abs_top_builddir=${ac_top_builddir}.;;
14493*)
14494 case ${ac_top_builddir}. in
14495 .) ac_abs_top_builddir=$ac_abs_builddir;;
14496 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14497 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14498 esac;;
14499esac
14500case $ac_abs_builddir in
14501.) ac_abs_srcdir=$ac_srcdir;;
14502*)
14503 case $ac_srcdir in
14504 .) ac_abs_srcdir=$ac_abs_builddir;;
14505 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14506 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14507 esac;;
14508esac
14509case $ac_abs_builddir in
14510.) ac_abs_top_srcdir=$ac_top_srcdir;;
14511*)
14512 case $ac_top_srcdir in
14513 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14514 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14515 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14516 esac;;
14517esac
14518
14519
14520 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14521echo "$as_me: executing $ac_dest commands" >&6;}
14522 case $ac_dest in
14523 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14524 # Strip MF so we end up with the name of the file.
14525 mf=`echo "$mf" | sed -e 's/:.*$//'`
14526 # Check whether this is an Automake generated Makefile or not.
14527 # We used to match only the files named `Makefile.in', but
14528 # some people rename them; so instead we look at the file content.
14529 # Grep'ing the first line is not enough: some people post-process
14530 # each Makefile.in and add a new line on top of each file to say so.
14531 # So let's grep whole file.
14532 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14533 dirpart=`(dirname "$mf") 2>/dev/null ||
14534$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14535 X"$mf" : 'X\(//\)[^/]' \| \
14536 X"$mf" : 'X\(//\)$' \| \
14537 X"$mf" : 'X\(/\)' \| \
14538 . : '\(.\)' 2>/dev/null ||
14539echo X"$mf" |
14540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14541 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14542 /^X\(\/\/\)$/{ s//\1/; q; }
14543 /^X\(\/\).*/{ s//\1/; q; }
14544 s/.*/./; q'`
14545 else
14546 continue
14547 fi
14548 # Extract the definition of DEPDIR, am__include, and am__quote
14549 # from the Makefile without running `make'.
14550 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14551 test -z "$DEPDIR" && continue
14552 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14553 test -z "am__include" && continue
14554 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14555 # When using ansi2knr, U may be empty or an underscore; expand it
14556 U=`sed -n 's/^U = //p' < "$mf"`
14557 # Find all dependency output files, they are included files with
14558 # $(DEPDIR) in their names. We invoke sed twice because it is the
14559 # simplest approach to changing $(DEPDIR) to its actual value in the
14560 # expansion.
14561 for file in `sed -n "
14562 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14563 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14564 # Make sure the directory exists.
14565 test -f "$dirpart/$file" && continue
14566 fdir=`(dirname "$file") 2>/dev/null ||
14567$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14568 X"$file" : 'X\(//\)[^/]' \| \
14569 X"$file" : 'X\(//\)$' \| \
14570 X"$file" : 'X\(/\)' \| \
14571 . : '\(.\)' 2>/dev/null ||
14572echo X"$file" |
14573 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14574 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14575 /^X\(\/\/\)$/{ s//\1/; q; }
14576 /^X\(\/\).*/{ s//\1/; q; }
14577 s/.*/./; q'`
14578 { if $as_mkdir_p; then
14579 mkdir -p $dirpart/$fdir
14580 else
14581 as_dir=$dirpart/$fdir
14582 as_dirs=
14583 while test ! -d "$as_dir"; do
14584 as_dirs="$as_dir $as_dirs"
14585 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14586$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14587 X"$as_dir" : 'X\(//\)[^/]' \| \
14588 X"$as_dir" : 'X\(//\)$' \| \
14589 X"$as_dir" : 'X\(/\)' \| \
14590 . : '\(.\)' 2>/dev/null ||
14591echo X"$as_dir" |
14592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14593 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14594 /^X\(\/\/\)$/{ s//\1/; q; }
14595 /^X\(\/\).*/{ s//\1/; q; }
14596 s/.*/./; q'`
14597 done
14598 test ! -n "$as_dirs" || mkdir $as_dirs
14599 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14600echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14601 { (exit 1); exit 1; }; }; }
14602
14603 # echo "creating $dirpart/$file"
14604 echo '# dummy' > "$dirpart/$file"
14605 done
14606done
d7040cdb
SE
14607 ;;
14608 libtool )
14609
14610 # See if we are running on zsh, and set the options which allow our
14611 # commands through without removal of \ escapes.
14612 if test -n "${ZSH_VERSION+set}" ; then
14613 setopt NO_GLOB_SUBST
14614 fi
14615
14616 cfgfile="${ofile}T"
14617 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14618 $RM "$cfgfile"
14619
14620 cat <<_LT_EOF >> "$cfgfile"
14621#! $SHELL
14622
14623# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14624# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
14625# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14626# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14627#
14628# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14629# 2006, 2007 Free Software Foundation, Inc.
14630#
14631# This file is part of GNU Libtool:
14632# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14633#
14634# This program is free software; you can redistribute it and/or modify
14635# it under the terms of the GNU General Public License as published by
67310ccd 14636# the Free Software Foundation; either version 2 of the License, or
d7040cdb
SE
14637# (at your option) any later version.
14638#
14639# This program is distributed in the hope that it will be useful, but
14640# WITHOUT ANY WARRANTY; without even the implied warranty of
14641# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14642# General Public License for more details.
14643#
14644# You should have received a copy of the GNU General Public License
14645# along with this program; if not, a copy can be downloaded from
14646# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
14647# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
14648# MA 02110-1301, USA.
14649#
14650# As a special exception to the GNU General Public License, if you
14651# distribute this file as part of a program that contains a
14652# configuration script generated by Autoconf, you may include it under
14653# the same distribution terms that you use for the rest of that program.
14654
14655
14656# The names of the tagged configurations supported by this script.
14657available_tags=""
14658
14659# ### BEGIN LIBTOOL CONFIG
14660
14661# Which release of libtool.m4 was used?
14662macro_version=$macro_version
14663macro_revision=$macro_revision
14664
14665# Whether or not to build shared libraries.
14666build_libtool_libs=$enable_shared
14667
14668# Whether or not to build static libraries.
14669build_old_libs=$enable_static
14670
14671# What type of objects to build.
14672pic_mode=$pic_mode
14673
14674# Whether or not to optimize for fast installation.
14675fast_install=$enable_fast_install
14676
14677# The host system.
14678host_alias=$host_alias
14679host=$host
14680host_os=$host_os
14681
14682# The build system.
14683build_alias=$build_alias
14684build=$build
14685build_os=$build_os
14686
14687# A sed program that does not truncate output.
14688SED=$lt_SED
14689
14690# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14691Xsed="\$SED -e 1s/^X//"
14692
14693# A grep program that handles long lines.
14694GREP=$lt_GREP
14695
14696# An ERE matcher.
14697EGREP=$lt_EGREP
14698
14699# A literal string matcher.
14700FGREP=$lt_FGREP
14701
14702# A BSD- or MS-compatible name lister.
14703NM=$lt_NM
14704
14705# Whether we need soft or hard links.
14706LN_S=$lt_LN_S
14707
14708# What is the maximum length of a command?
14709max_cmd_len=$max_cmd_len
14710
14711# Object file suffix (normally "o").
14712objext=$ac_objext
14713
14714# Executable file suffix (normally "").
14715exeext=$exeext
14716
14717# whether the shell understands "unset".
14718lt_unset=$lt_unset
14719
14720# turn spaces into newlines.
14721SP2NL=$lt_lt_SP2NL
14722
14723# turn newlines into spaces.
14724NL2SP=$lt_lt_NL2SP
14725
14726# How to create reloadable object files.
14727reload_flag=$lt_reload_flag
14728reload_cmds=$lt_reload_cmds
14729
14730# Method to check whether dependent libraries are shared objects.
14731deplibs_check_method=$lt_deplibs_check_method
14732
14733# Command to use when deplibs_check_method == "file_magic".
14734file_magic_cmd=$lt_file_magic_cmd
14735
14736# The archiver.
14737AR=$lt_AR
14738AR_FLAGS=$lt_AR_FLAGS
14739
14740# A symbol stripping program.
14741STRIP=$lt_STRIP
14742
14743# Commands used to install an old-style archive.
14744RANLIB=$lt_RANLIB
14745old_postinstall_cmds=$lt_old_postinstall_cmds
14746old_postuninstall_cmds=$lt_old_postuninstall_cmds
14747
14748# A C compiler.
14749LTCC=$lt_CC
14750
14751# LTCC compiler flags.
14752LTCFLAGS=$lt_CFLAGS
14753
14754# Take the output of nm and produce a listing of raw symbols and C names.
14755global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14756
14757# Transform the output of nm in a proper C declaration.
14758global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14759
14760# Transform the output of nm in a C name address pair.
14761global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14762
14763# The name of the directory that contains temporary libtool files.
14764objdir=$objdir
14765
14766# Shell to use when invoking shell scripts.
14767SHELL=$lt_SHELL
14768
14769# An echo program that does not interpret backslashes.
14770ECHO=$lt_ECHO
14771
14772# Used to examine libraries when file_magic_cmd begins with "file".
14773MAGIC_CMD=$MAGIC_CMD
14774
14775# Must we lock files when doing compilation?
14776need_locks=$lt_need_locks
14777
14778# Old archive suffix (normally "a").
14779libext=$libext
14780
14781# Shared library suffix (normally ".so").
14782shrext_cmds=$lt_shrext_cmds
14783
14784# The commands to extract the exported symbol list from a shared archive.
14785extract_expsyms_cmds=$lt_extract_expsyms_cmds
14786
14787# Variables whose values should be saved in libtool wrapper scripts and
14788# restored at link time.
14789variables_saved_for_relink=$lt_variables_saved_for_relink
14790
14791# Do we need the "lib" prefix for modules?
14792need_lib_prefix=$need_lib_prefix
14793
14794# Do we need a version for libraries?
14795need_version=$need_version
14796
14797# Library versioning type.
14798version_type=$version_type
14799
14800# Shared library runtime path variable.
14801runpath_var=$runpath_var
14802
14803# Shared library path variable.
14804shlibpath_var=$shlibpath_var
14805
14806# Is shlibpath searched before the hard-coded library search path?
14807shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14808
14809# Format of library name prefix.
14810libname_spec=$lt_libname_spec
14811
14812# List of archive names. First name is the real one, the rest are links.
14813# The last name is the one that the linker finds with -lNAME
14814library_names_spec=$lt_library_names_spec
14815
14816# The coded name of the library, if different from the real name.
14817soname_spec=$lt_soname_spec
14818
14819# Command to use after installation of a shared archive.
14820postinstall_cmds=$lt_postinstall_cmds
14821
14822# Command to use after uninstallation of a shared archive.
14823postuninstall_cmds=$lt_postuninstall_cmds
14824
14825# Commands used to finish a libtool library installation in a directory.
14826finish_cmds=$lt_finish_cmds
14827
14828# As "finish_cmds", except a single script fragment to be evaled but
14829# not shown.
14830finish_eval=$lt_finish_eval
14831
14832# Whether we should hardcode library paths into libraries.
14833hardcode_into_libs=$hardcode_into_libs
14834
14835# Compile-time system search path for libraries.
14836sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14837
14838# Run-time system search path for libraries.
14839sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14840
14841# Whether dlopen is supported.
14842dlopen_support=$enable_dlopen
14843
14844# Whether dlopen of programs is supported.
14845dlopen_self=$enable_dlopen_self
14846
14847# Whether dlopen of statically linked programs is supported.
14848dlopen_self_static=$enable_dlopen_self_static
14849
14850# Commands to strip libraries.
14851old_striplib=$lt_old_striplib
14852striplib=$lt_striplib
14853
14854
14855# The linker used to build libraries.
14856LD=$lt_LD
14857
14858# Commands used to build an old-style archive.
14859old_archive_cmds=$lt_old_archive_cmds
14860
14861# A language specific compiler.
14862CC=$lt_compiler
14863
14864# Is the compiler the GNU compiler?
14865with_gcc=$GCC
14866
14867# Compiler flag to turn off builtin functions.
14868no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14869
14870# How to pass a linker flag through the compiler.
14871wl=$lt_lt_prog_compiler_wl
14872
14873# Additional compiler flags for building library objects.
14874pic_flag=$lt_lt_prog_compiler_pic
14875
14876# Compiler flag to prevent dynamic linking.
14877link_static_flag=$lt_lt_prog_compiler_static
14878
14879# Does compiler simultaneously support -c and -o options?
14880compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14881
14882# Whether or not to add -lc for building shared libraries.
14883build_libtool_need_lc=$archive_cmds_need_lc
14884
14885# Whether or not to disallow shared libs when runtime libs are static.
14886allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14887
14888# Compiler flag to allow reflexive dlopens.
14889export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14890
14891# Compiler flag to generate shared objects directly from archives.
14892whole_archive_flag_spec=$lt_whole_archive_flag_spec
14893
14894# Whether the compiler copes with passing no objects directly.
14895compiler_needs_object=$lt_compiler_needs_object
14896
14897# Create an old-style archive from a shared archive.
14898old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14899
14900# Create a temporary old-style archive to link instead of a shared archive.
14901old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14902
14903# Commands used to build a shared archive.
14904archive_cmds=$lt_archive_cmds
14905archive_expsym_cmds=$lt_archive_expsym_cmds
14906
14907# Commands used to build a loadable module if different from building
14908# a shared archive.
14909module_cmds=$lt_module_cmds
14910module_expsym_cmds=$lt_module_expsym_cmds
14911
14912# Whether we are building with GNU ld or not.
14913with_gnu_ld=$lt_with_gnu_ld
14914
14915# Flag that allows shared libraries with undefined symbols to be built.
14916allow_undefined_flag=$lt_allow_undefined_flag
14917
14918# Flag that enforces no undefined symbols.
14919no_undefined_flag=$lt_no_undefined_flag
14920
14921# Flag to hardcode \$libdir into a binary during linking.
14922# This must work even if \$libdir does not exist
14923hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14924
14925# If ld is used when linking, flag to hardcode \$libdir into a binary
14926# during linking. This must work even if \$libdir does not exist.
14927hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14928
14929# Whether we need a single "-rpath" flag with a separated argument.
14930hardcode_libdir_separator=$lt_hardcode_libdir_separator
14931
14932# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14933# DIR into the resulting binary.
14934hardcode_direct=$hardcode_direct
14935
14936# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14937# DIR into the resulting binary and the resulting library dependency is
14938# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14939# library is relocated.
14940hardcode_direct_absolute=$hardcode_direct_absolute
14941
14942# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14943# into the resulting binary.
14944hardcode_minus_L=$hardcode_minus_L
14945
14946# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14947# into the resulting binary.
14948hardcode_shlibpath_var=$hardcode_shlibpath_var
14949
14950# Set to "yes" if building a shared library automatically hardcodes DIR
14951# into the library and all subsequent libraries and executables linked
14952# against it.
14953hardcode_automatic=$hardcode_automatic
14954
14955# Set to yes if linker adds runtime paths of dependent libraries
14956# to runtime path list.
14957inherit_rpath=$inherit_rpath
14958
14959# Whether libtool must link a program against all its dependency libraries.
14960link_all_deplibs=$link_all_deplibs
14961
14962# Fix the shell variable \$srcfile for the compiler.
14963fix_srcfile_path=$lt_fix_srcfile_path
14964
14965# Set to "yes" if exported symbols are required.
14966always_export_symbols=$always_export_symbols
14967
14968# The commands to list exported symbols.
14969export_symbols_cmds=$lt_export_symbols_cmds
14970
14971# Symbols that should not be listed in the preloaded symbols.
14972exclude_expsyms=$lt_exclude_expsyms
14973
14974# Symbols that must always be exported.
14975include_expsyms=$lt_include_expsyms
14976
14977# Commands necessary for linking programs (against libraries) with templates.
14978prelink_cmds=$lt_prelink_cmds
14979
14980# Specify filename containing input files.
14981file_list_spec=$lt_file_list_spec
14982
14983# How to hardcode a shared library path into an executable.
14984hardcode_action=$hardcode_action
14985
14986# ### END LIBTOOL CONFIG
14987
14988_LT_EOF
14989
14990 case $host_os in
14991 aix3*)
14992 cat <<\_LT_EOF >> "$cfgfile"
14993# AIX sometimes has problems with the GCC collect2 program. For some
14994# reason, if we set the COLLECT_NAMES environment variable, the problems
14995# vanish in a puff of smoke.
14996if test "X${COLLECT_NAMES+set}" != Xset; then
14997 COLLECT_NAMES=
14998 export COLLECT_NAMES
14999fi
15000_LT_EOF
15001 ;;
15002 esac
15003
15004
15005ltmain="$ac_aux_dir/ltmain.sh"
15006
15007
15008 # We use sed instead of cat because bash on DJGPP gets confused if
15009 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15010 # text mode, it properly converts lines to CR/LF. This bash problem
15011 # is reportedly fixed, but why not run on old versions too?
15012 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15013 || (rm -f "$cfgfile"; exit 1)
15014
15015 case $xsi_shell in
15016 yes)
15017 cat << \_LT_EOF >> "$cfgfile"
15018# func_dirname file append nondir_replacement
15019# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15020# otherwise set result to NONDIR_REPLACEMENT.
15021func_dirname ()
15022{
15023 case ${1} in
15024 */*) func_dirname_result="${1%/*}${2}" ;;
15025 * ) func_dirname_result="${3}" ;;
15026 esac
15027}
15028
15029# func_basename file
15030func_basename ()
15031{
15032 func_basename_result="${1##*/}"
15033}
15034
15035# func_stripname prefix suffix name
15036# strip PREFIX and SUFFIX off of NAME.
15037# PREFIX and SUFFIX must not contain globbing or regex special
15038# characters, hashes, percent signs, but SUFFIX may contain a leading
15039# dot (in which case that matches only a dot).
15040func_stripname ()
15041{
15042 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15043 # positional parameters, so assign one to ordinary parameter first.
15044 func_stripname_result=${3}
15045 func_stripname_result=${func_stripname_result#"${1}"}
15046 func_stripname_result=${func_stripname_result%"${2}"}
15047}
15048
15049# func_opt_split
15050func_opt_split ()
15051{
15052 func_opt_split_opt=${1%%=*}
15053 func_opt_split_arg=${1#*=}
15054}
15055
15056# func_lo2o object
15057func_lo2o ()
15058{
15059 case ${1} in
15060 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15061 *) func_lo2o_result=${1} ;;
15062 esac
15063}
15064_LT_EOF
15065 ;;
15066 *) # Bourne compatible functions.
15067 cat << \_LT_EOF >> "$cfgfile"
15068# func_dirname file append nondir_replacement
15069# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15070# otherwise set result to NONDIR_REPLACEMENT.
15071func_dirname ()
15072{
15073 # Extract subdirectory from the argument.
15074 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15075 if test "X$func_dirname_result" = "X${1}"; then
15076 func_dirname_result="${3}"
15077 else
15078 func_dirname_result="$func_dirname_result${2}"
15079 fi
15080}
15081
15082# func_basename file
15083func_basename ()
15084{
15085 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15086}
15087
15088# func_stripname prefix suffix name
15089# strip PREFIX and SUFFIX off of NAME.
15090# PREFIX and SUFFIX must not contain globbing or regex special
15091# characters, hashes, percent signs, but SUFFIX may contain a leading
15092# dot (in which case that matches only a dot).
15093# func_strip_suffix prefix name
15094func_stripname ()
15095{
15096 case ${2} in
15097 .*) func_stripname_result=`$ECHO "X${3}" \
15098 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15099 *) func_stripname_result=`$ECHO "X${3}" \
15100 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15101 esac
15102}
15103
15104# sed scripts:
15105my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15106my_sed_long_arg='1s/^-[^=]*=//'
15107
15108# func_opt_split
15109func_opt_split ()
15110{
15111 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15112 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15113}
15114
15115# func_lo2o object
15116func_lo2o ()
15117{
15118 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15119}
15120_LT_EOF
15121esac
15122
15123case $lt_shell_append in
15124 yes)
15125 cat << \_LT_EOF >> "$cfgfile"
15126
15127# func_append var value
15128# Append VALUE to the end of shell variable VAR.
15129func_append ()
15130{
15131 eval "$1+=\$2"
15132}
15133_LT_EOF
15134 ;;
15135 *)
15136 cat << \_LT_EOF >> "$cfgfile"
15137
15138# func_append var value
15139# Append VALUE to the end of shell variable VAR.
15140func_append ()
15141{
15142 eval "$1=\$$1\$2"
15143}
15144_LT_EOF
15145 ;;
15146 esac
15147
15148
15149 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15150 || (rm -f "$cfgfile"; exit 1)
15151
15152 mv -f "$cfgfile" "$ofile" ||
15153 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15154 chmod +x "$ofile"
15155
42ecbf5e 15156 ;;
20e95c23
DJ
15157 default-1 )
15158 for ac_file in $CONFIG_FILES; do
15159 # Support "outfile[:infile[:infile...]]"
15160 case "$ac_file" in
15161 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15162 esac
15163 # PO directories have a Makefile.in generated from Makefile.in.in.
15164 case "$ac_file" in */Makefile.in)
15165 # Adjust a relative srcdir.
15166 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15167 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15168 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15169 # In autoconf-2.13 it is called $ac_given_srcdir.
15170 # In autoconf-2.50 it is called $srcdir.
15171 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15172 case "$ac_given_srcdir" in
15173 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15174 /*) top_srcdir="$ac_given_srcdir" ;;
15175 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15176 esac
15177 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15178 rm -f "$ac_dir/POTFILES"
15179 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15180 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15181 POMAKEFILEDEPS="POTFILES.in"
15182 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15183 # on $ac_dir but don't depend on user-specified configuration
15184 # parameters.
15185 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15186 # The LINGUAS file contains the set of available languages.
15187 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15188 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15189 fi
15190 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15191 # Hide the ALL_LINGUAS assigment from automake.
15192 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15193 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15194 else
15195 # The set of available languages was given in configure.in.
15196 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15197 fi
15198 case "$ac_given_srcdir" in
15199 .) srcdirpre= ;;
15200 *) srcdirpre='$(srcdir)/' ;;
15201 esac
15202 POFILES=
15203 GMOFILES=
15204 UPDATEPOFILES=
15205 DUMMYPOFILES=
15206 for lang in $ALL_LINGUAS; do
15207 POFILES="$POFILES $srcdirpre$lang.po"
15208 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15209 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15210 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15211 done
15212 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15213 # environment variable.
15214 INST_LINGUAS=
15215 if test -n "$ALL_LINGUAS"; then
15216 for presentlang in $ALL_LINGUAS; do
15217 useit=no
15218 if test "%UNSET%" != "$LINGUAS"; then
15219 desiredlanguages="$LINGUAS"
15220 else
15221 desiredlanguages="$ALL_LINGUAS"
15222 fi
15223 for desiredlang in $desiredlanguages; do
15224 # Use the presentlang catalog if desiredlang is
15225 # a. equal to presentlang, or
15226 # b. a variant of presentlang (because in this case,
15227 # presentlang can be used as a fallback for messages
15228 # which are not translated in the desiredlang catalog).
15229 case "$desiredlang" in
15230 "$presentlang"*) useit=yes;;
15231 esac
15232 done
15233 if test $useit = yes; then
15234 INST_LINGUAS="$INST_LINGUAS $presentlang"
15235 fi
15236 done
15237 fi
15238 CATALOGS=
15239 if test -n "$INST_LINGUAS"; then
15240 for lang in $INST_LINGUAS; do
15241 CATALOGS="$CATALOGS $lang.gmo"
15242 done
15243 fi
15244 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15245 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
15246 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15247 if test -f "$f"; then
15248 case "$f" in
15249 *.orig | *.bak | *~) ;;
15250 *) cat "$f" >> "$ac_dir/Makefile" ;;
15251 esac
15252 fi
15253 done
15254 fi
15255 ;;
15256 esac
15257 done ;;
42ecbf5e
DJ
15258 esac
15259done
15260_ACEOF
15261
15262cat >>$CONFIG_STATUS <<\_ACEOF
15263
15264{ (exit 0); exit 0; }
15265_ACEOF
252b5132 15266chmod +x $CONFIG_STATUS
42ecbf5e
DJ
15267ac_clean_files=$ac_clean_files_save
15268
15269
15270# configure is writing to config.log, and then calls config.status.
15271# config.status does its own redirection, appending to config.log.
15272# Unfortunately, on DOS this fails, as config.log is still kept open
15273# by configure, so config.status won't be able to write to it; its
15274# output is simply discarded. So we exec the FD to /dev/null,
15275# effectively closing config.log, so it can be properly (re)opened and
15276# appended to by config.status. When coming back to configure, we
15277# need to make the FD available again.
15278if test "$no_create" != yes; then
15279 ac_cs_success=:
15280 ac_config_status_args=
15281 test "$silent" = yes &&
15282 ac_config_status_args="$ac_config_status_args --quiet"
15283 exec 5>/dev/null
15284 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15285 exec 5>>config.log
15286 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15287 # would make configure fail if this is the last instruction.
15288 $ac_cs_success || { (exit 1); exit 1; }
15289fi
252b5132 15290
This page took 1.130423 seconds and 4 git commands to generate.