* Makefile.tpl (all): Avoid harmless warning in make all when
[binutils.git] / binutils / configure
blob83ba3160074253bc619d137c42df5f4b7e93d1da
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if 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+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for 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
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
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if 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=:
96 rm -f conf$$.sh
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
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
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
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; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
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
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
152 done
154 esac
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 '
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; }; }
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
187 case `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= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if 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'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 case X$lt_ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 esac
255 ECHO=${lt_ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
275 _LT_EOF
276 exit 0
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
283 if 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
293 done
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
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'
305 # So, first we look for a working echo in the user's PATH.
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
317 done
318 IFS="$lt_save_ifs"
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
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=:
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
366 prev="$cmd"
367 done
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
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.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
398 exec 6>&1
401 # Initializations.
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${CONFIG_SHELL-/bin/sh}
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}
416 # Identity of this package.
417 PACKAGE_NAME=
418 PACKAGE_TARNAME=
419 PACKAGE_VERSION=
420 PACKAGE_STRING=
421 PACKAGE_BUGREPORT=
423 ac_unique_file="ar.c"
424 # Factoring default headers for most tests.
425 ac_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"
461 ac_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 CPP EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S OBJDUMP ac_ct_OBJDUMP AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 WARN_CFLAGS NO_WERROR YACC LEX LEXLIB LEX_OUTPUT_ROOT USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE HDEFINES CC_FOR_BUILD EXEEXT_FOR_BUILD DEMANGLER_NAME ALLOCA LIBICONV LTLIBICONV NLMCONV_DEFS BUILD_NLMCONV BUILD_SRCONV BUILD_DLLTOOL DLLTOOL_DEFS BUILD_WINDRES BUILD_WINDMC BUILD_DLLWRAP BUILD_MISC BUILD_INSTALL_MISC OBJDUMP_DEFS EMULATION EMULATION_VECTOR datarootdir docdir htmldir pdfdir LIBOBJS LTLIBOBJS'
462 ac_subst_files=''
463 ac_pwd=`pwd`
465 # Initialize some variables set by options.
466 ac_init_help=
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
470 cache_file=/dev/null
471 exec_prefix=NONE
472 no_create=
473 no_recursion=
474 prefix=NONE
475 program_prefix=NONE
476 program_suffix=NONE
477 program_transform_name=s,x,x,
478 silent=
479 site=
480 srcdir=
481 verbose=
482 x_includes=NONE
483 x_libraries=NONE
485 # Installation directory options.
486 # These are left unexpanded so users can "make install exec_prefix=/foo"
487 # and all the variables that are supposed to be based on exec_prefix
488 # by default will actually change.
489 # Use braces instead of parens because sh, perl, etc. also accept them.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
503 ac_prev=
504 for ac_option
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
509 ac_prev=
510 continue
513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
515 # Accept the important Cygnus configure options, so we can diagnose typos.
517 case $ac_option in
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522 bindir=$ac_optarg ;;
524 -build | --build | --buil | --bui | --bu)
525 ac_prev=build_alias ;;
526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527 build_alias=$ac_optarg ;;
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534 cache_file=$ac_optarg ;;
536 --config-cache | -C)
537 cache_file=config.cache ;;
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
543 datadir=$ac_optarg ;;
545 -disable-* | --disable-*)
546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547 # Reject names that are not valid shell variable names.
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
554 -enable-* | --enable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 case $ac_option in
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563 *) ac_optarg=yes ;;
564 esac
565 eval "enable_$ac_feature='$ac_optarg'" ;;
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
574 exec_prefix=$ac_optarg ;;
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
580 -help | --help | --hel | --he | -h)
581 ac_init_help=long ;;
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
587 -host | --host | --hos | --ho)
588 ac_prev=host_alias ;;
589 -host=* | --host=* | --hos=* | --ho=*)
590 host_alias=$ac_optarg ;;
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
597 includedir=$ac_optarg ;;
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602 infodir=$ac_optarg ;;
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
607 libdir=$ac_optarg ;;
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
614 libexecdir=$ac_optarg ;;
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623 localstatedir=$ac_optarg ;;
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628 mandir=$ac_optarg ;;
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635 | --no-cr | --no-c | -n)
636 no_create=yes ;;
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640 no_recursion=yes ;;
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649 oldincludedir=$ac_optarg ;;
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654 prefix=$ac_optarg ;;
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661 program_prefix=$ac_optarg ;;
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668 program_suffix=$ac_optarg ;;
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
685 program_transform_name=$ac_optarg ;;
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
689 silent=yes ;;
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 ac_prev=sbindir ;;
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 | --sbi=* | --sb=*)
695 sbindir=$ac_optarg ;;
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
700 | --sha | --sh)
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 | --sha=* | --sh=*)
706 sharedstatedir=$ac_optarg ;;
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
711 site=$ac_optarg ;;
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716 srcdir=$ac_optarg ;;
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723 sysconfdir=$ac_optarg ;;
725 -target | --target | --targe | --targ | --tar | --ta | --t)
726 ac_prev=target_alias ;;
727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728 target_alias=$ac_optarg ;;
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
736 -with-* | --with-*)
737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738 # Reject names that are not valid shell variable names.
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
742 ac_package=`echo $ac_package| sed 's/-/_/g'`
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745 *) ac_optarg=yes ;;
746 esac
747 eval "with_$ac_package='$ac_optarg'" ;;
749 -without-* | --without-*)
750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751 # Reject names that are not valid shell variable names.
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767 x_includes=$ac_optarg ;;
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774 x_libraries=$ac_optarg ;;
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
781 *=*)
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
789 export $ac_envvar ;;
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
799 esac
800 done
802 if test -n "$ac_prev"; then
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
811 eval ac_val=$`echo $ac_var`
812 case $ac_val in
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
816 esac
817 done
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
823 eval ac_val=$`echo $ac_var`
824 case $ac_val in
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
828 esac
829 done
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
834 build=$build_alias
835 host=$host_alias
836 target=$target_alias
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
845 cross_compiling=yes
849 ac_tool_prefix=
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
852 test "$silent" = yes && exec 6>/dev/null
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
865 echo X"$0" |
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
870 s/.*/./; q'`
871 srcdir=$ac_confdir
872 if test ! -r $srcdir/$ac_unique_file; then
873 srcdir=..
875 else
876 ac_srcdir_defaulted=no
878 if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
882 else
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
887 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CC_set=${CC+set}
904 ac_env_CC_value=$CC
905 ac_cv_env_CC_set=${CC+set}
906 ac_cv_env_CC_value=$CC
907 ac_env_CFLAGS_set=${CFLAGS+set}
908 ac_env_CFLAGS_value=$CFLAGS
909 ac_cv_env_CFLAGS_set=${CFLAGS+set}
910 ac_cv_env_CFLAGS_value=$CFLAGS
911 ac_env_LDFLAGS_set=${LDFLAGS+set}
912 ac_env_LDFLAGS_value=$LDFLAGS
913 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914 ac_cv_env_LDFLAGS_value=$LDFLAGS
915 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916 ac_env_CPPFLAGS_value=$CPPFLAGS
917 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919 ac_env_CPP_set=${CPP+set}
920 ac_env_CPP_value=$CPP
921 ac_cv_env_CPP_set=${CPP+set}
922 ac_cv_env_CPP_value=$CPP
925 # Report the --help message.
927 if test "$ac_init_help" = "long"; then
928 # Omit some internal or obsolete options to make the list less imposing.
929 # This message is too long to be a string in the A/UX 3.1 sh.
930 cat <<_ACEOF
931 \`configure' configures this package to adapt to many kinds of systems.
933 Usage: $0 [OPTION]... [VAR=VALUE]...
935 To assign environment variables (e.g., CC, CFLAGS...), specify them as
936 VAR=VALUE. See below for descriptions of some of the useful variables.
938 Defaults for the options are specified in brackets.
940 Configuration:
941 -h, --help display this help and exit
942 --help=short display options specific to this package
943 --help=recursive display the short help of all the included packages
944 -V, --version display version information and exit
945 -q, --quiet, --silent do not print \`checking...' messages
946 --cache-file=FILE cache test results in FILE [disabled]
947 -C, --config-cache alias for \`--cache-file=config.cache'
948 -n, --no-create do not create output files
949 --srcdir=DIR find the sources in DIR [configure dir or \`..']
951 _ACEOF
953 cat <<_ACEOF
954 Installation directories:
955 --prefix=PREFIX install architecture-independent files in PREFIX
956 [$ac_default_prefix]
957 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
958 [PREFIX]
960 By default, \`make install' will install all the files in
961 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
962 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
963 for instance \`--prefix=\$HOME'.
965 For better control, use the options below.
967 Fine tuning of the installation directories:
968 --bindir=DIR user executables [EPREFIX/bin]
969 --sbindir=DIR system admin executables [EPREFIX/sbin]
970 --libexecdir=DIR program executables [EPREFIX/libexec]
971 --datadir=DIR read-only architecture-independent data [PREFIX/share]
972 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
973 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
974 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
975 --libdir=DIR object code libraries [EPREFIX/lib]
976 --includedir=DIR C header files [PREFIX/include]
977 --oldincludedir=DIR C header files for non-gcc [/usr/include]
978 --infodir=DIR info documentation [PREFIX/info]
979 --mandir=DIR man documentation [PREFIX/man]
980 _ACEOF
982 cat <<\_ACEOF
984 Program names:
985 --program-prefix=PREFIX prepend PREFIX to installed program names
986 --program-suffix=SUFFIX append SUFFIX to installed program names
987 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
989 System types:
990 --build=BUILD configure for building on BUILD [guessed]
991 --host=HOST cross-compile to build programs to run on HOST [BUILD]
992 --target=TARGET configure for building compilers for TARGET [HOST]
993 _ACEOF
996 if test -n "$ac_init_help"; then
998 cat <<\_ACEOF
1000 Optional Features:
1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1003 --disable-dependency-tracking speeds up one-time build
1004 --enable-dependency-tracking do not reject slow dependency extractors
1005 --enable-plugins linker plugins (defaults no)
1006 --disable-largefile omit support for large files
1007 --enable-shared[=PKGS]
1008 build shared libraries [default=yes]
1009 --enable-static[=PKGS]
1010 build static libraries [default=yes]
1011 --enable-fast-install[=PKGS]
1012 optimize for fast installation [default=yes]
1013 --disable-libtool-lock avoid locking (might break parallel builds)
1014 --enable-targets alternative target configurations
1015 --enable-werror treat compile warnings as errors
1016 --enable-build-warnings enable build-time compiler warnings
1017 --disable-nls do not use Native Language Support
1018 --enable-maintainer-mode enable make rules and dependencies not useful
1019 (and sometimes confusing) to the casual installer
1020 --disable-rpath do not hardcode runtime library paths
1022 Optional Packages:
1023 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1024 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1025 --with-pic try to use only PIC/non-PIC objects [default=use
1026 both]
1027 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1028 --with-gnu-ld assume the C compiler uses GNU ld default=no
1029 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1030 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1032 Some influential environment variables:
1033 CC C compiler command
1034 CFLAGS C compiler flags
1035 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1036 nonstandard directory <lib dir>
1037 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1038 headers in a nonstandard directory <include dir>
1039 CPP C preprocessor
1041 Use these variables to override the choices made by `configure' or to help
1042 it to find libraries and programs with nonstandard names/locations.
1044 _ACEOF
1047 if test "$ac_init_help" = "recursive"; then
1048 # If there are subdirs, report their specific --help.
1049 ac_popdir=`pwd`
1050 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1051 test -d $ac_dir || continue
1052 ac_builddir=.
1054 if test "$ac_dir" != .; then
1055 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1056 # A "../" for each directory in $ac_dir_suffix.
1057 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1058 else
1059 ac_dir_suffix= ac_top_builddir=
1062 case $srcdir in
1063 .) # No --srcdir option. We are building in place.
1064 ac_srcdir=.
1065 if test -z "$ac_top_builddir"; then
1066 ac_top_srcdir=.
1067 else
1068 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1069 fi ;;
1070 [\\/]* | ?:[\\/]* ) # Absolute path.
1071 ac_srcdir=$srcdir$ac_dir_suffix;
1072 ac_top_srcdir=$srcdir ;;
1073 *) # Relative path.
1074 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1075 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1076 esac
1078 # Do not use `cd foo && pwd` to compute absolute paths, because
1079 # the directories may not exist.
1080 case `pwd` in
1081 .) ac_abs_builddir="$ac_dir";;
1083 case "$ac_dir" in
1084 .) ac_abs_builddir=`pwd`;;
1085 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1086 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1087 esac;;
1088 esac
1089 case $ac_abs_builddir in
1090 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1092 case ${ac_top_builddir}. in
1093 .) ac_abs_top_builddir=$ac_abs_builddir;;
1094 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1095 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1096 esac;;
1097 esac
1098 case $ac_abs_builddir in
1099 .) ac_abs_srcdir=$ac_srcdir;;
1101 case $ac_srcdir in
1102 .) ac_abs_srcdir=$ac_abs_builddir;;
1103 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1104 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1105 esac;;
1106 esac
1107 case $ac_abs_builddir in
1108 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1110 case $ac_top_srcdir in
1111 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1112 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1113 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1114 esac;;
1115 esac
1117 cd $ac_dir
1118 # Check for guested configure; otherwise get Cygnus style configure.
1119 if test -f $ac_srcdir/configure.gnu; then
1120 echo
1121 $SHELL $ac_srcdir/configure.gnu --help=recursive
1122 elif test -f $ac_srcdir/configure; then
1123 echo
1124 $SHELL $ac_srcdir/configure --help=recursive
1125 elif test -f $ac_srcdir/configure.ac ||
1126 test -f $ac_srcdir/configure.in; then
1127 echo
1128 $ac_configure --help
1129 else
1130 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1132 cd $ac_popdir
1133 done
1136 test -n "$ac_init_help" && exit 0
1137 if $ac_init_version; then
1138 cat <<\_ACEOF
1140 Copyright (C) 2003 Free Software Foundation, Inc.
1141 This configure script is free software; the Free Software Foundation
1142 gives unlimited permission to copy, distribute and modify it.
1143 _ACEOF
1144 exit 0
1146 exec 5>config.log
1147 cat >&5 <<_ACEOF
1148 This file contains any messages produced by compilers while
1149 running configure, to aid debugging if configure makes a mistake.
1151 It was created by $as_me, which was
1152 generated by GNU Autoconf 2.59. Invocation command line was
1154 $ $0 $@
1156 _ACEOF
1158 cat <<_ASUNAME
1159 ## --------- ##
1160 ## Platform. ##
1161 ## --------- ##
1163 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1164 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1165 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1166 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1167 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1169 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1170 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1172 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1173 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1174 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1175 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1176 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1177 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1178 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1180 _ASUNAME
1182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1183 for as_dir in $PATH
1185 IFS=$as_save_IFS
1186 test -z "$as_dir" && as_dir=.
1187 echo "PATH: $as_dir"
1188 done
1190 } >&5
1192 cat >&5 <<_ACEOF
1195 ## ----------- ##
1196 ## Core tests. ##
1197 ## ----------- ##
1199 _ACEOF
1202 # Keep a trace of the command line.
1203 # Strip out --no-create and --no-recursion so they do not pile up.
1204 # Strip out --silent because we don't want to record it for future runs.
1205 # Also quote any args containing shell meta-characters.
1206 # Make two passes to allow for proper duplicate-argument suppression.
1207 ac_configure_args=
1208 ac_configure_args0=
1209 ac_configure_args1=
1210 ac_sep=
1211 ac_must_keep_next=false
1212 for ac_pass in 1 2
1214 for ac_arg
1216 case $ac_arg in
1217 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219 | -silent | --silent | --silen | --sile | --sil)
1220 continue ;;
1221 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1222 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1223 esac
1224 case $ac_pass in
1225 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1227 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1228 if test $ac_must_keep_next = true; then
1229 ac_must_keep_next=false # Got value, back to normal.
1230 else
1231 case $ac_arg in
1232 *=* | --config-cache | -C | -disable-* | --disable-* \
1233 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1234 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1235 | -with-* | --with-* | -without-* | --without-* | --x)
1236 case "$ac_configure_args0 " in
1237 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1238 esac
1240 -* ) ac_must_keep_next=true ;;
1241 esac
1243 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1244 # Get rid of the leading space.
1245 ac_sep=" "
1247 esac
1248 done
1249 done
1250 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1251 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1253 # When interrupted or exit'd, cleanup temporary files, and complete
1254 # config.log. We remove comments because anyway the quotes in there
1255 # would cause problems or look ugly.
1256 # WARNING: Be sure not to use single quotes in there, as some shells,
1257 # such as our DU 5.0 friend, will then `close' the trap.
1258 trap 'exit_status=$?
1259 # Save into config.log some information that might help in debugging.
1261 echo
1263 cat <<\_ASBOX
1264 ## ---------------- ##
1265 ## Cache variables. ##
1266 ## ---------------- ##
1267 _ASBOX
1268 echo
1269 # The following way of writing the cache mishandles newlines in values,
1271 (set) 2>&1 |
1272 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1273 *ac_space=\ *)
1274 sed -n \
1275 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1276 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1279 sed -n \
1280 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1282 esac;
1284 echo
1286 cat <<\_ASBOX
1287 ## ----------------- ##
1288 ## Output variables. ##
1289 ## ----------------- ##
1290 _ASBOX
1291 echo
1292 for ac_var in $ac_subst_vars
1294 eval ac_val=$`echo $ac_var`
1295 echo "$ac_var='"'"'$ac_val'"'"'"
1296 done | sort
1297 echo
1299 if test -n "$ac_subst_files"; then
1300 cat <<\_ASBOX
1301 ## ------------- ##
1302 ## Output files. ##
1303 ## ------------- ##
1304 _ASBOX
1305 echo
1306 for ac_var in $ac_subst_files
1308 eval ac_val=$`echo $ac_var`
1309 echo "$ac_var='"'"'$ac_val'"'"'"
1310 done | sort
1311 echo
1314 if test -s confdefs.h; then
1315 cat <<\_ASBOX
1316 ## ----------- ##
1317 ## confdefs.h. ##
1318 ## ----------- ##
1319 _ASBOX
1320 echo
1321 sed "/^$/d" confdefs.h | sort
1322 echo
1324 test "$ac_signal" != 0 &&
1325 echo "$as_me: caught signal $ac_signal"
1326 echo "$as_me: exit $exit_status"
1327 } >&5
1328 rm -f core *.core &&
1329 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1330 exit $exit_status
1332 for ac_signal in 1 2 13 15; do
1333 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1334 done
1335 ac_signal=0
1337 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1338 rm -rf conftest* confdefs.h
1339 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1340 echo >confdefs.h
1342 # Predefined preprocessor variables.
1344 cat >>confdefs.h <<_ACEOF
1345 #define PACKAGE_NAME "$PACKAGE_NAME"
1346 _ACEOF
1349 cat >>confdefs.h <<_ACEOF
1350 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1351 _ACEOF
1354 cat >>confdefs.h <<_ACEOF
1355 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1356 _ACEOF
1359 cat >>confdefs.h <<_ACEOF
1360 #define PACKAGE_STRING "$PACKAGE_STRING"
1361 _ACEOF
1364 cat >>confdefs.h <<_ACEOF
1365 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1366 _ACEOF
1369 # Let the site file select an alternate cache file if it wants to.
1370 # Prefer explicitly selected file to automatically selected ones.
1371 if test -z "$CONFIG_SITE"; then
1372 if test "x$prefix" != xNONE; then
1373 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1374 else
1375 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1378 for ac_site_file in $CONFIG_SITE; do
1379 if test -r "$ac_site_file"; then
1380 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1381 echo "$as_me: loading site script $ac_site_file" >&6;}
1382 sed 's/^/| /' "$ac_site_file" >&5
1383 . "$ac_site_file"
1385 done
1387 if test -r "$cache_file"; then
1388 # Some versions of bash will fail to source /dev/null (special
1389 # files actually), so we avoid doing that.
1390 if test -f "$cache_file"; then
1391 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1392 echo "$as_me: loading cache $cache_file" >&6;}
1393 case $cache_file in
1394 [\\/]* | ?:[\\/]* ) . $cache_file;;
1395 *) . ./$cache_file;;
1396 esac
1398 else
1399 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1400 echo "$as_me: creating cache $cache_file" >&6;}
1401 >$cache_file
1404 # Check that the precious variables saved in the cache have kept the same
1405 # value.
1406 ac_cache_corrupted=false
1407 for ac_var in `(set) 2>&1 |
1408 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1409 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1410 eval ac_new_set=\$ac_env_${ac_var}_set
1411 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1412 eval ac_new_val="\$ac_env_${ac_var}_value"
1413 case $ac_old_set,$ac_new_set in
1414 set,)
1415 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1416 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1417 ac_cache_corrupted=: ;;
1418 ,set)
1419 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1420 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1421 ac_cache_corrupted=: ;;
1422 ,);;
1424 if test "x$ac_old_val" != "x$ac_new_val"; then
1425 # differences in whitespace do not lead to failure.
1426 ac_old_val_w=`echo x $ac_old_val`
1427 ac_new_val_w=`echo x $ac_new_val`
1428 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1429 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1430 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1431 ac_cache_corrupted=:
1432 else
1433 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1434 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1435 eval $ac_var=\$ac_old_val
1437 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1438 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1439 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1440 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1441 fi;;
1442 esac
1443 # Pass precious variables to config.status.
1444 if test "$ac_new_set" = set; then
1445 case $ac_new_val in
1446 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1447 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1448 *) ac_arg=$ac_var=$ac_new_val ;;
1449 esac
1450 case " $ac_configure_args " in
1451 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1452 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1453 esac
1455 done
1456 if $ac_cache_corrupted; then
1457 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1458 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1459 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1460 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1461 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1462 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1463 { (exit 1); exit 1; }; }
1466 ac_ext=c
1467 ac_cpp='$CPP $CPPFLAGS'
1468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1495 ac_aux_dir=
1496 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1497 if test -f $ac_dir/install-sh; then
1498 ac_aux_dir=$ac_dir
1499 ac_install_sh="$ac_aux_dir/install-sh -c"
1500 break
1501 elif test -f $ac_dir/install.sh; then
1502 ac_aux_dir=$ac_dir
1503 ac_install_sh="$ac_aux_dir/install.sh -c"
1504 break
1505 elif test -f $ac_dir/shtool; then
1506 ac_aux_dir=$ac_dir
1507 ac_install_sh="$ac_aux_dir/shtool install -c"
1508 break
1510 done
1511 if test -z "$ac_aux_dir"; then
1512 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1513 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1514 { (exit 1); exit 1; }; }
1516 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1517 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1518 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1520 # Make sure we can run config.sub.
1521 $ac_config_sub sun4 >/dev/null 2>&1 ||
1522 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1523 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1524 { (exit 1); exit 1; }; }
1526 echo "$as_me:$LINENO: checking build system type" >&5
1527 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1528 if test "${ac_cv_build+set}" = set; then
1529 echo $ECHO_N "(cached) $ECHO_C" >&6
1530 else
1531 ac_cv_build_alias=$build_alias
1532 test -z "$ac_cv_build_alias" &&
1533 ac_cv_build_alias=`$ac_config_guess`
1534 test -z "$ac_cv_build_alias" &&
1535 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1536 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1537 { (exit 1); exit 1; }; }
1538 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1539 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1540 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1541 { (exit 1); exit 1; }; }
1544 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1545 echo "${ECHO_T}$ac_cv_build" >&6
1546 build=$ac_cv_build
1547 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1548 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1549 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1552 echo "$as_me:$LINENO: checking host system type" >&5
1553 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1554 if test "${ac_cv_host+set}" = set; then
1555 echo $ECHO_N "(cached) $ECHO_C" >&6
1556 else
1557 ac_cv_host_alias=$host_alias
1558 test -z "$ac_cv_host_alias" &&
1559 ac_cv_host_alias=$ac_cv_build_alias
1560 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1561 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1562 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1563 { (exit 1); exit 1; }; }
1566 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1567 echo "${ECHO_T}$ac_cv_host" >&6
1568 host=$ac_cv_host
1569 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1570 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1571 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1574 echo "$as_me:$LINENO: checking target system type" >&5
1575 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1576 if test "${ac_cv_target+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1578 else
1579 ac_cv_target_alias=$target_alias
1580 test "x$ac_cv_target_alias" = "x" &&
1581 ac_cv_target_alias=$ac_cv_host_alias
1582 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1583 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1584 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1585 { (exit 1); exit 1; }; }
1588 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1589 echo "${ECHO_T}$ac_cv_target" >&6
1590 target=$ac_cv_target
1591 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1592 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1593 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1596 # The aliases save the names the user supplied, while $host etc.
1597 # will get canonicalized.
1598 test -n "$target_alias" &&
1599 test "$program_prefix$program_suffix$program_transform_name" = \
1600 NONENONEs,x,x, &&
1601 program_prefix=${target_alias}-
1602 ac_ext=c
1603 ac_cpp='$CPP $CPPFLAGS'
1604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1607 if test -n "$ac_tool_prefix"; then
1608 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1609 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1610 echo "$as_me:$LINENO: checking for $ac_word" >&5
1611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1612 if test "${ac_cv_prog_CC+set}" = set; then
1613 echo $ECHO_N "(cached) $ECHO_C" >&6
1614 else
1615 if test -n "$CC"; then
1616 ac_cv_prog_CC="$CC" # Let the user override the test.
1617 else
1618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1619 for as_dir in $PATH
1621 IFS=$as_save_IFS
1622 test -z "$as_dir" && as_dir=.
1623 for ac_exec_ext in '' $ac_executable_extensions; do
1624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1625 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1627 break 2
1629 done
1630 done
1634 CC=$ac_cv_prog_CC
1635 if test -n "$CC"; then
1636 echo "$as_me:$LINENO: result: $CC" >&5
1637 echo "${ECHO_T}$CC" >&6
1638 else
1639 echo "$as_me:$LINENO: result: no" >&5
1640 echo "${ECHO_T}no" >&6
1644 if test -z "$ac_cv_prog_CC"; then
1645 ac_ct_CC=$CC
1646 # Extract the first word of "gcc", so it can be a program name with args.
1647 set dummy gcc; ac_word=$2
1648 echo "$as_me:$LINENO: checking for $ac_word" >&5
1649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1650 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1651 echo $ECHO_N "(cached) $ECHO_C" >&6
1652 else
1653 if test -n "$ac_ct_CC"; then
1654 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1655 else
1656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1657 for as_dir in $PATH
1659 IFS=$as_save_IFS
1660 test -z "$as_dir" && as_dir=.
1661 for ac_exec_ext in '' $ac_executable_extensions; do
1662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1663 ac_cv_prog_ac_ct_CC="gcc"
1664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1665 break 2
1667 done
1668 done
1672 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1673 if test -n "$ac_ct_CC"; then
1674 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1675 echo "${ECHO_T}$ac_ct_CC" >&6
1676 else
1677 echo "$as_me:$LINENO: result: no" >&5
1678 echo "${ECHO_T}no" >&6
1681 CC=$ac_ct_CC
1682 else
1683 CC="$ac_cv_prog_CC"
1686 if test -z "$CC"; then
1687 if test -n "$ac_tool_prefix"; then
1688 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1689 set dummy ${ac_tool_prefix}cc; ac_word=$2
1690 echo "$as_me:$LINENO: checking for $ac_word" >&5
1691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692 if test "${ac_cv_prog_CC+set}" = set; then
1693 echo $ECHO_N "(cached) $ECHO_C" >&6
1694 else
1695 if test -n "$CC"; then
1696 ac_cv_prog_CC="$CC" # Let the user override the test.
1697 else
1698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699 for as_dir in $PATH
1701 IFS=$as_save_IFS
1702 test -z "$as_dir" && as_dir=.
1703 for ac_exec_ext in '' $ac_executable_extensions; do
1704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705 ac_cv_prog_CC="${ac_tool_prefix}cc"
1706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1707 break 2
1709 done
1710 done
1714 CC=$ac_cv_prog_CC
1715 if test -n "$CC"; then
1716 echo "$as_me:$LINENO: result: $CC" >&5
1717 echo "${ECHO_T}$CC" >&6
1718 else
1719 echo "$as_me:$LINENO: result: no" >&5
1720 echo "${ECHO_T}no" >&6
1724 if test -z "$ac_cv_prog_CC"; then
1725 ac_ct_CC=$CC
1726 # Extract the first word of "cc", so it can be a program name with args.
1727 set dummy cc; ac_word=$2
1728 echo "$as_me:$LINENO: checking for $ac_word" >&5
1729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1730 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1731 echo $ECHO_N "(cached) $ECHO_C" >&6
1732 else
1733 if test -n "$ac_ct_CC"; then
1734 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1735 else
1736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1737 for as_dir in $PATH
1739 IFS=$as_save_IFS
1740 test -z "$as_dir" && as_dir=.
1741 for ac_exec_ext in '' $ac_executable_extensions; do
1742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1743 ac_cv_prog_ac_ct_CC="cc"
1744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1745 break 2
1747 done
1748 done
1752 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1753 if test -n "$ac_ct_CC"; then
1754 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1755 echo "${ECHO_T}$ac_ct_CC" >&6
1756 else
1757 echo "$as_me:$LINENO: result: no" >&5
1758 echo "${ECHO_T}no" >&6
1761 CC=$ac_ct_CC
1762 else
1763 CC="$ac_cv_prog_CC"
1767 if test -z "$CC"; then
1768 # Extract the first word of "cc", so it can be a program name with args.
1769 set dummy cc; ac_word=$2
1770 echo "$as_me:$LINENO: checking for $ac_word" >&5
1771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1772 if test "${ac_cv_prog_CC+set}" = set; then
1773 echo $ECHO_N "(cached) $ECHO_C" >&6
1774 else
1775 if test -n "$CC"; then
1776 ac_cv_prog_CC="$CC" # Let the user override the test.
1777 else
1778 ac_prog_rejected=no
1779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1780 for as_dir in $PATH
1782 IFS=$as_save_IFS
1783 test -z "$as_dir" && as_dir=.
1784 for ac_exec_ext in '' $ac_executable_extensions; do
1785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1786 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1787 ac_prog_rejected=yes
1788 continue
1790 ac_cv_prog_CC="cc"
1791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1792 break 2
1794 done
1795 done
1797 if test $ac_prog_rejected = yes; then
1798 # We found a bogon in the path, so make sure we never use it.
1799 set dummy $ac_cv_prog_CC
1800 shift
1801 if test $# != 0; then
1802 # We chose a different compiler from the bogus one.
1803 # However, it has the same basename, so the bogon will be chosen
1804 # first if we set CC to just the basename; use the full file name.
1805 shift
1806 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1811 CC=$ac_cv_prog_CC
1812 if test -n "$CC"; then
1813 echo "$as_me:$LINENO: result: $CC" >&5
1814 echo "${ECHO_T}$CC" >&6
1815 else
1816 echo "$as_me:$LINENO: result: no" >&5
1817 echo "${ECHO_T}no" >&6
1821 if test -z "$CC"; then
1822 if test -n "$ac_tool_prefix"; then
1823 for ac_prog in cl
1825 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1826 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1827 echo "$as_me:$LINENO: checking for $ac_word" >&5
1828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1829 if test "${ac_cv_prog_CC+set}" = set; then
1830 echo $ECHO_N "(cached) $ECHO_C" >&6
1831 else
1832 if test -n "$CC"; then
1833 ac_cv_prog_CC="$CC" # Let the user override the test.
1834 else
1835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1836 for as_dir in $PATH
1838 IFS=$as_save_IFS
1839 test -z "$as_dir" && as_dir=.
1840 for ac_exec_ext in '' $ac_executable_extensions; do
1841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1842 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1844 break 2
1846 done
1847 done
1851 CC=$ac_cv_prog_CC
1852 if test -n "$CC"; then
1853 echo "$as_me:$LINENO: result: $CC" >&5
1854 echo "${ECHO_T}$CC" >&6
1855 else
1856 echo "$as_me:$LINENO: result: no" >&5
1857 echo "${ECHO_T}no" >&6
1860 test -n "$CC" && break
1861 done
1863 if test -z "$CC"; then
1864 ac_ct_CC=$CC
1865 for ac_prog in cl
1867 # Extract the first word of "$ac_prog", so it can be a program name with args.
1868 set dummy $ac_prog; ac_word=$2
1869 echo "$as_me:$LINENO: checking for $ac_word" >&5
1870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1871 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1873 else
1874 if test -n "$ac_ct_CC"; then
1875 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1876 else
1877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878 for as_dir in $PATH
1880 IFS=$as_save_IFS
1881 test -z "$as_dir" && as_dir=.
1882 for ac_exec_ext in '' $ac_executable_extensions; do
1883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1884 ac_cv_prog_ac_ct_CC="$ac_prog"
1885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1886 break 2
1888 done
1889 done
1893 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1894 if test -n "$ac_ct_CC"; then
1895 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1896 echo "${ECHO_T}$ac_ct_CC" >&6
1897 else
1898 echo "$as_me:$LINENO: result: no" >&5
1899 echo "${ECHO_T}no" >&6
1902 test -n "$ac_ct_CC" && break
1903 done
1905 CC=$ac_ct_CC
1911 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1912 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1913 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1914 See \`config.log' for more details." >&5
1915 echo "$as_me: error: no acceptable C compiler found in \$PATH
1916 See \`config.log' for more details." >&2;}
1917 { (exit 1); exit 1; }; }; }
1919 # Provide some information about the compiler.
1920 echo "$as_me:$LINENO:" \
1921 "checking for C compiler version" >&5
1922 ac_compiler=`set X $ac_compile; echo $2`
1923 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1924 (eval $ac_compiler --version </dev/null >&5) 2>&5
1925 ac_status=$?
1926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1927 (exit $ac_status); }
1928 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1929 (eval $ac_compiler -v </dev/null >&5) 2>&5
1930 ac_status=$?
1931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932 (exit $ac_status); }
1933 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1934 (eval $ac_compiler -V </dev/null >&5) 2>&5
1935 ac_status=$?
1936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1937 (exit $ac_status); }
1939 cat >conftest.$ac_ext <<_ACEOF
1940 /* confdefs.h. */
1941 _ACEOF
1942 cat confdefs.h >>conftest.$ac_ext
1943 cat >>conftest.$ac_ext <<_ACEOF
1944 /* end confdefs.h. */
1947 main ()
1951 return 0;
1953 _ACEOF
1954 ac_clean_files_save=$ac_clean_files
1955 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1956 # Try to create an executable without -o first, disregard a.out.
1957 # It will help us diagnose broken compilers, and finding out an intuition
1958 # of exeext.
1959 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1960 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1961 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1962 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1963 (eval $ac_link_default) 2>&5
1964 ac_status=$?
1965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1966 (exit $ac_status); }; then
1967 # Find the output, starting from the most likely. This scheme is
1968 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1969 # resort.
1971 # Be careful to initialize this variable, since it used to be cached.
1972 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1973 ac_cv_exeext=
1974 # b.out is created by i960 compilers.
1975 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1977 test -f "$ac_file" || continue
1978 case $ac_file in
1979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1981 conftest.$ac_ext )
1982 # This is the source file.
1984 [ab].out )
1985 # We found the default executable, but exeext='' is most
1986 # certainly right.
1987 break;;
1988 *.* )
1989 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1990 # FIXME: I believe we export ac_cv_exeext for Libtool,
1991 # but it would be cool to find out if it's true. Does anybody
1992 # maintain Libtool? --akim.
1993 export ac_cv_exeext
1994 break;;
1996 break;;
1997 esac
1998 done
1999 else
2000 echo "$as_me: failed program was:" >&5
2001 sed 's/^/| /' conftest.$ac_ext >&5
2003 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2004 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2005 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2006 See \`config.log' for more details." >&5
2007 echo "$as_me: error: C compiler cannot create executables
2008 See \`config.log' for more details." >&2;}
2009 { (exit 77); exit 77; }; }; }
2012 ac_exeext=$ac_cv_exeext
2013 echo "$as_me:$LINENO: result: $ac_file" >&5
2014 echo "${ECHO_T}$ac_file" >&6
2016 # Check the compiler produces executables we can run. If not, either
2017 # the compiler is broken, or we cross compile.
2018 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2019 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2020 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2021 # If not cross compiling, check that we can run a simple program.
2022 if test "$cross_compiling" != yes; then
2023 if { ac_try='./$ac_file'
2024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2025 (eval $ac_try) 2>&5
2026 ac_status=$?
2027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2028 (exit $ac_status); }; }; then
2029 cross_compiling=no
2030 else
2031 if test "$cross_compiling" = maybe; then
2032 cross_compiling=yes
2033 else
2034 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2035 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2036 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2037 If you meant to cross compile, use \`--host'.
2038 See \`config.log' for more details." >&5
2039 echo "$as_me: error: cannot run C compiled programs.
2040 If you meant to cross compile, use \`--host'.
2041 See \`config.log' for more details." >&2;}
2042 { (exit 1); exit 1; }; }; }
2046 echo "$as_me:$LINENO: result: yes" >&5
2047 echo "${ECHO_T}yes" >&6
2049 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2050 ac_clean_files=$ac_clean_files_save
2051 # Check the compiler produces executables we can run. If not, either
2052 # the compiler is broken, or we cross compile.
2053 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2054 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2055 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2056 echo "${ECHO_T}$cross_compiling" >&6
2058 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2059 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2061 (eval $ac_link) 2>&5
2062 ac_status=$?
2063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064 (exit $ac_status); }; then
2065 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2066 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2067 # work properly (i.e., refer to `conftest.exe'), while it won't with
2068 # `rm'.
2069 for ac_file in conftest.exe conftest conftest.*; do
2070 test -f "$ac_file" || continue
2071 case $ac_file in
2072 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2073 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2074 export ac_cv_exeext
2075 break;;
2076 * ) break;;
2077 esac
2078 done
2079 else
2080 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2081 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2082 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2083 See \`config.log' for more details." >&5
2084 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2085 See \`config.log' for more details." >&2;}
2086 { (exit 1); exit 1; }; }; }
2089 rm -f conftest$ac_cv_exeext
2090 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2091 echo "${ECHO_T}$ac_cv_exeext" >&6
2093 rm -f conftest.$ac_ext
2094 EXEEXT=$ac_cv_exeext
2095 ac_exeext=$EXEEXT
2096 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2097 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2098 if test "${ac_cv_objext+set}" = set; then
2099 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 else
2101 cat >conftest.$ac_ext <<_ACEOF
2102 /* confdefs.h. */
2103 _ACEOF
2104 cat confdefs.h >>conftest.$ac_ext
2105 cat >>conftest.$ac_ext <<_ACEOF
2106 /* end confdefs.h. */
2109 main ()
2113 return 0;
2115 _ACEOF
2116 rm -f conftest.o conftest.obj
2117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2118 (eval $ac_compile) 2>&5
2119 ac_status=$?
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); }; then
2122 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2123 case $ac_file in
2124 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2125 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2126 break;;
2127 esac
2128 done
2129 else
2130 echo "$as_me: failed program was:" >&5
2131 sed 's/^/| /' conftest.$ac_ext >&5
2133 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2134 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2135 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2136 See \`config.log' for more details." >&5
2137 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2138 See \`config.log' for more details." >&2;}
2139 { (exit 1); exit 1; }; }; }
2142 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2144 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2145 echo "${ECHO_T}$ac_cv_objext" >&6
2146 OBJEXT=$ac_cv_objext
2147 ac_objext=$OBJEXT
2148 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2149 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2150 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2152 else
2153 cat >conftest.$ac_ext <<_ACEOF
2154 /* confdefs.h. */
2155 _ACEOF
2156 cat confdefs.h >>conftest.$ac_ext
2157 cat >>conftest.$ac_ext <<_ACEOF
2158 /* end confdefs.h. */
2161 main ()
2163 #ifndef __GNUC__
2164 choke me
2165 #endif
2168 return 0;
2170 _ACEOF
2171 rm -f conftest.$ac_objext
2172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2173 (eval $ac_compile) 2>conftest.er1
2174 ac_status=$?
2175 grep -v '^ *+' conftest.er1 >conftest.err
2176 rm -f conftest.er1
2177 cat conftest.err >&5
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); } &&
2180 { ac_try='test -z "$ac_c_werror_flag"
2181 || test ! -s conftest.err'
2182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183 (eval $ac_try) 2>&5
2184 ac_status=$?
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; } &&
2187 { ac_try='test -s conftest.$ac_objext'
2188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2189 (eval $ac_try) 2>&5
2190 ac_status=$?
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 (exit $ac_status); }; }; then
2193 ac_compiler_gnu=yes
2194 else
2195 echo "$as_me: failed program was:" >&5
2196 sed 's/^/| /' conftest.$ac_ext >&5
2198 ac_compiler_gnu=no
2200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2201 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2204 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2205 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2206 GCC=`test $ac_compiler_gnu = yes && echo yes`
2207 ac_test_CFLAGS=${CFLAGS+set}
2208 ac_save_CFLAGS=$CFLAGS
2209 CFLAGS="-g"
2210 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2211 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2212 if test "${ac_cv_prog_cc_g+set}" = set; then
2213 echo $ECHO_N "(cached) $ECHO_C" >&6
2214 else
2215 cat >conftest.$ac_ext <<_ACEOF
2216 /* confdefs.h. */
2217 _ACEOF
2218 cat confdefs.h >>conftest.$ac_ext
2219 cat >>conftest.$ac_ext <<_ACEOF
2220 /* end confdefs.h. */
2223 main ()
2227 return 0;
2229 _ACEOF
2230 rm -f conftest.$ac_objext
2231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2232 (eval $ac_compile) 2>conftest.er1
2233 ac_status=$?
2234 grep -v '^ *+' conftest.er1 >conftest.err
2235 rm -f conftest.er1
2236 cat conftest.err >&5
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); } &&
2239 { ac_try='test -z "$ac_c_werror_flag"
2240 || test ! -s conftest.err'
2241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2242 (eval $ac_try) 2>&5
2243 ac_status=$?
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); }; } &&
2246 { ac_try='test -s conftest.$ac_objext'
2247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2248 (eval $ac_try) 2>&5
2249 ac_status=$?
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); }; }; then
2252 ac_cv_prog_cc_g=yes
2253 else
2254 echo "$as_me: failed program was:" >&5
2255 sed 's/^/| /' conftest.$ac_ext >&5
2257 ac_cv_prog_cc_g=no
2259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2261 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2262 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2263 if test "$ac_test_CFLAGS" = set; then
2264 CFLAGS=$ac_save_CFLAGS
2265 elif test $ac_cv_prog_cc_g = yes; then
2266 if test "$GCC" = yes; then
2267 CFLAGS="-g -O2"
2268 else
2269 CFLAGS="-g"
2271 else
2272 if test "$GCC" = yes; then
2273 CFLAGS="-O2"
2274 else
2275 CFLAGS=
2278 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2279 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2280 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2281 echo $ECHO_N "(cached) $ECHO_C" >&6
2282 else
2283 ac_cv_prog_cc_stdc=no
2284 ac_save_CC=$CC
2285 cat >conftest.$ac_ext <<_ACEOF
2286 /* confdefs.h. */
2287 _ACEOF
2288 cat confdefs.h >>conftest.$ac_ext
2289 cat >>conftest.$ac_ext <<_ACEOF
2290 /* end confdefs.h. */
2291 #include <stdarg.h>
2292 #include <stdio.h>
2293 #include <sys/types.h>
2294 #include <sys/stat.h>
2295 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2296 struct buf { int x; };
2297 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2298 static char *e (p, i)
2299 char **p;
2300 int i;
2302 return p[i];
2304 static char *f (char * (*g) (char **, int), char **p, ...)
2306 char *s;
2307 va_list v;
2308 va_start (v,p);
2309 s = g (p, va_arg (v,int));
2310 va_end (v);
2311 return s;
2314 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2315 function prototypes and stuff, but not '\xHH' hex character constants.
2316 These don't provoke an error unfortunately, instead are silently treated
2317 as 'x'. The following induces an error, until -std1 is added to get
2318 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2319 array size at least. It's necessary to write '\x00'==0 to get something
2320 that's true only with -std1. */
2321 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2323 int test (int i, double x);
2324 struct s1 {int (*f) (int a);};
2325 struct s2 {int (*f) (double a);};
2326 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2327 int argc;
2328 char **argv;
2330 main ()
2332 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2334 return 0;
2336 _ACEOF
2337 # Don't try gcc -ansi; that turns off useful extensions and
2338 # breaks some systems' header files.
2339 # AIX -qlanglvl=ansi
2340 # Ultrix and OSF/1 -std1
2341 # HP-UX 10.20 and later -Ae
2342 # HP-UX older versions -Aa -D_HPUX_SOURCE
2343 # SVR4 -Xc -D__EXTENSIONS__
2344 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2346 CC="$ac_save_CC $ac_arg"
2347 rm -f conftest.$ac_objext
2348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2349 (eval $ac_compile) 2>conftest.er1
2350 ac_status=$?
2351 grep -v '^ *+' conftest.er1 >conftest.err
2352 rm -f conftest.er1
2353 cat conftest.err >&5
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); } &&
2356 { ac_try='test -z "$ac_c_werror_flag"
2357 || test ! -s conftest.err'
2358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359 (eval $ac_try) 2>&5
2360 ac_status=$?
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }; } &&
2363 { ac_try='test -s conftest.$ac_objext'
2364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365 (eval $ac_try) 2>&5
2366 ac_status=$?
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }; }; then
2369 ac_cv_prog_cc_stdc=$ac_arg
2370 break
2371 else
2372 echo "$as_me: failed program was:" >&5
2373 sed 's/^/| /' conftest.$ac_ext >&5
2376 rm -f conftest.err conftest.$ac_objext
2377 done
2378 rm -f conftest.$ac_ext conftest.$ac_objext
2379 CC=$ac_save_CC
2383 case "x$ac_cv_prog_cc_stdc" in
2384 x|xno)
2385 echo "$as_me:$LINENO: result: none needed" >&5
2386 echo "${ECHO_T}none needed" >&6 ;;
2388 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2389 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2390 CC="$CC $ac_cv_prog_cc_stdc" ;;
2391 esac
2393 # Some people use a C++ compiler to compile C. Since we use `exit',
2394 # in C++ we need to declare it. In case someone uses the same compiler
2395 # for both compiling C and C++ we need to have the C++ compiler decide
2396 # the declaration of exit, since it's the most demanding environment.
2397 cat >conftest.$ac_ext <<_ACEOF
2398 #ifndef __cplusplus
2399 choke me
2400 #endif
2401 _ACEOF
2402 rm -f conftest.$ac_objext
2403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2404 (eval $ac_compile) 2>conftest.er1
2405 ac_status=$?
2406 grep -v '^ *+' conftest.er1 >conftest.err
2407 rm -f conftest.er1
2408 cat conftest.err >&5
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); } &&
2411 { ac_try='test -z "$ac_c_werror_flag"
2412 || test ! -s conftest.err'
2413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 (eval $ac_try) 2>&5
2415 ac_status=$?
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; } &&
2418 { ac_try='test -s conftest.$ac_objext'
2419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420 (eval $ac_try) 2>&5
2421 ac_status=$?
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }; }; then
2424 for ac_declaration in \
2425 '' \
2426 'extern "C" void std::exit (int) throw (); using std::exit;' \
2427 'extern "C" void std::exit (int); using std::exit;' \
2428 'extern "C" void exit (int) throw ();' \
2429 'extern "C" void exit (int);' \
2430 'void exit (int);'
2432 cat >conftest.$ac_ext <<_ACEOF
2433 /* confdefs.h. */
2434 _ACEOF
2435 cat confdefs.h >>conftest.$ac_ext
2436 cat >>conftest.$ac_ext <<_ACEOF
2437 /* end confdefs.h. */
2438 $ac_declaration
2439 #include <stdlib.h>
2441 main ()
2443 exit (42);
2445 return 0;
2447 _ACEOF
2448 rm -f conftest.$ac_objext
2449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2450 (eval $ac_compile) 2>conftest.er1
2451 ac_status=$?
2452 grep -v '^ *+' conftest.er1 >conftest.err
2453 rm -f conftest.er1
2454 cat conftest.err >&5
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); } &&
2457 { ac_try='test -z "$ac_c_werror_flag"
2458 || test ! -s conftest.err'
2459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460 (eval $ac_try) 2>&5
2461 ac_status=$?
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); }; } &&
2464 { ac_try='test -s conftest.$ac_objext'
2465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466 (eval $ac_try) 2>&5
2467 ac_status=$?
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; }; then
2471 else
2472 echo "$as_me: failed program was:" >&5
2473 sed 's/^/| /' conftest.$ac_ext >&5
2475 continue
2477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2478 cat >conftest.$ac_ext <<_ACEOF
2479 /* confdefs.h. */
2480 _ACEOF
2481 cat confdefs.h >>conftest.$ac_ext
2482 cat >>conftest.$ac_ext <<_ACEOF
2483 /* end confdefs.h. */
2484 $ac_declaration
2486 main ()
2488 exit (42);
2490 return 0;
2492 _ACEOF
2493 rm -f conftest.$ac_objext
2494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2495 (eval $ac_compile) 2>conftest.er1
2496 ac_status=$?
2497 grep -v '^ *+' conftest.er1 >conftest.err
2498 rm -f conftest.er1
2499 cat conftest.err >&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); } &&
2502 { ac_try='test -z "$ac_c_werror_flag"
2503 || test ! -s conftest.err'
2504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2505 (eval $ac_try) 2>&5
2506 ac_status=$?
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }; } &&
2509 { ac_try='test -s conftest.$ac_objext'
2510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511 (eval $ac_try) 2>&5
2512 ac_status=$?
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; }; then
2515 break
2516 else
2517 echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.$ac_ext >&5
2521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2522 done
2523 rm -f conftest*
2524 if test -n "$ac_declaration"; then
2525 echo '#ifdef __cplusplus' >>confdefs.h
2526 echo $ac_declaration >>confdefs.h
2527 echo '#endif' >>confdefs.h
2530 else
2531 echo "$as_me: failed program was:" >&5
2532 sed 's/^/| /' conftest.$ac_ext >&5
2535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2536 ac_ext=c
2537 ac_cpp='$CPP $CPPFLAGS'
2538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2543 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2544 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2545 if test "${ac_cv_search_strerror+set}" = set; then
2546 echo $ECHO_N "(cached) $ECHO_C" >&6
2547 else
2548 ac_func_search_save_LIBS=$LIBS
2549 ac_cv_search_strerror=no
2550 cat >conftest.$ac_ext <<_ACEOF
2551 /* confdefs.h. */
2552 _ACEOF
2553 cat confdefs.h >>conftest.$ac_ext
2554 cat >>conftest.$ac_ext <<_ACEOF
2555 /* end confdefs.h. */
2557 /* Override any gcc2 internal prototype to avoid an error. */
2558 #ifdef __cplusplus
2559 extern "C"
2560 #endif
2561 /* We use char because int might match the return type of a gcc2
2562 builtin and then its argument prototype would still apply. */
2563 char strerror ();
2565 main ()
2567 strerror ();
2569 return 0;
2571 _ACEOF
2572 rm -f conftest.$ac_objext conftest$ac_exeext
2573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2574 (eval $ac_link) 2>conftest.er1
2575 ac_status=$?
2576 grep -v '^ *+' conftest.er1 >conftest.err
2577 rm -f conftest.er1
2578 cat conftest.err >&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); } &&
2581 { ac_try='test -z "$ac_c_werror_flag"
2582 || test ! -s conftest.err'
2583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584 (eval $ac_try) 2>&5
2585 ac_status=$?
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; } &&
2588 { ac_try='test -s conftest$ac_exeext'
2589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590 (eval $ac_try) 2>&5
2591 ac_status=$?
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; }; then
2594 ac_cv_search_strerror="none required"
2595 else
2596 echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2600 rm -f conftest.err conftest.$ac_objext \
2601 conftest$ac_exeext conftest.$ac_ext
2602 if test "$ac_cv_search_strerror" = no; then
2603 for ac_lib in cposix; do
2604 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2605 cat >conftest.$ac_ext <<_ACEOF
2606 /* confdefs.h. */
2607 _ACEOF
2608 cat confdefs.h >>conftest.$ac_ext
2609 cat >>conftest.$ac_ext <<_ACEOF
2610 /* end confdefs.h. */
2612 /* Override any gcc2 internal prototype to avoid an error. */
2613 #ifdef __cplusplus
2614 extern "C"
2615 #endif
2616 /* We use char because int might match the return type of a gcc2
2617 builtin and then its argument prototype would still apply. */
2618 char strerror ();
2620 main ()
2622 strerror ();
2624 return 0;
2626 _ACEOF
2627 rm -f conftest.$ac_objext conftest$ac_exeext
2628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2629 (eval $ac_link) 2>conftest.er1
2630 ac_status=$?
2631 grep -v '^ *+' conftest.er1 >conftest.err
2632 rm -f conftest.er1
2633 cat conftest.err >&5
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); } &&
2636 { ac_try='test -z "$ac_c_werror_flag"
2637 || test ! -s conftest.err'
2638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639 (eval $ac_try) 2>&5
2640 ac_status=$?
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; } &&
2643 { ac_try='test -s conftest$ac_exeext'
2644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645 (eval $ac_try) 2>&5
2646 ac_status=$?
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; }; then
2649 ac_cv_search_strerror="-l$ac_lib"
2650 break
2651 else
2652 echo "$as_me: failed program was:" >&5
2653 sed 's/^/| /' conftest.$ac_ext >&5
2656 rm -f conftest.err conftest.$ac_objext \
2657 conftest$ac_exeext conftest.$ac_ext
2658 done
2660 LIBS=$ac_func_search_save_LIBS
2662 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2663 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2664 if test "$ac_cv_search_strerror" != no; then
2665 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2670 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2671 am__api_version="1.9"
2672 # Find a good install program. We prefer a C program (faster),
2673 # so one script is as good as another. But avoid the broken or
2674 # incompatible versions:
2675 # SysV /etc/install, /usr/sbin/install
2676 # SunOS /usr/etc/install
2677 # IRIX /sbin/install
2678 # AIX /bin/install
2679 # AmigaOS /C/install, which installs bootblocks on floppy discs
2680 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2681 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2682 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2683 # OS/2's system install, which has a completely different semantic
2684 # ./install, which can be erroneously created by make from ./install.sh.
2685 # Reject install programs that cannot install multiple files.
2686 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2687 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2688 if test -z "$INSTALL"; then
2689 if test "${ac_cv_path_install+set}" = set; then
2690 echo $ECHO_N "(cached) $ECHO_C" >&6
2691 else
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 for as_dir in $PATH
2695 IFS=$as_save_IFS
2696 test -z "$as_dir" && as_dir=.
2697 # Account for people who put trailing slashes in PATH elements.
2698 case $as_dir/ in
2699 ./ | .// | /cC/* | \
2700 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2701 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2702 /usr/ucb/* ) ;;
2704 # OSF1 and SCO ODT 3.0 have their own names for install.
2705 # Don't use installbsd from OSF since it installs stuff as root
2706 # by default.
2707 for ac_prog in ginstall scoinst install; do
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2710 if test $ac_prog = install &&
2711 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2712 # AIX install. It has an incompatible calling convention.
2714 elif test $ac_prog = install &&
2715 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2716 # program-specific install script used by HP pwplus--don't use.
2718 else
2719 rm -rf conftest.one conftest.two conftest.dir
2720 echo one > conftest.one
2721 echo two > conftest.two
2722 mkdir conftest.dir
2723 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2724 test -s conftest.one && test -s conftest.two &&
2725 test -s conftest.dir/conftest.one &&
2726 test -s conftest.dir/conftest.two
2727 then
2728 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2729 break 3
2733 done
2734 done
2736 esac
2737 done
2739 rm -rf conftest.one conftest.two conftest.dir
2742 if test "${ac_cv_path_install+set}" = set; then
2743 INSTALL=$ac_cv_path_install
2744 else
2745 # As a last resort, use the slow shell script. Don't cache a
2746 # value for INSTALL within a source directory, because that will
2747 # break other packages using the cache if that directory is
2748 # removed, or if the value is a relative name.
2749 INSTALL=$ac_install_sh
2752 echo "$as_me:$LINENO: result: $INSTALL" >&5
2753 echo "${ECHO_T}$INSTALL" >&6
2755 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2756 # It thinks the first close brace ends the variable substitution.
2757 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2759 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2761 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2763 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2764 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2765 # Just in case
2766 sleep 1
2767 echo timestamp > conftest.file
2768 # Do `set' in a subshell so we don't clobber the current shell's
2769 # arguments. Must try -L first in case configure is actually a
2770 # symlink; some systems play weird games with the mod time of symlinks
2771 # (eg FreeBSD returns the mod time of the symlink's containing
2772 # directory).
2773 if (
2774 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2775 if test "$*" = "X"; then
2776 # -L didn't work.
2777 set X `ls -t $srcdir/configure conftest.file`
2779 rm -f conftest.file
2780 if test "$*" != "X $srcdir/configure conftest.file" \
2781 && test "$*" != "X conftest.file $srcdir/configure"; then
2783 # If neither matched, then we have a broken ls. This can happen
2784 # if, for instance, CONFIG_SHELL is bash and it inherits a
2785 # broken ls alias from the environment. This has actually
2786 # happened. Such a system could not be considered "sane".
2787 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2788 alias in your environment" >&5
2789 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2790 alias in your environment" >&2;}
2791 { (exit 1); exit 1; }; }
2794 test "$2" = conftest.file
2796 then
2797 # Ok.
2799 else
2800 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2801 Check your system clock" >&5
2802 echo "$as_me: error: newly created file is older than distributed files!
2803 Check your system clock" >&2;}
2804 { (exit 1); exit 1; }; }
2806 echo "$as_me:$LINENO: result: yes" >&5
2807 echo "${ECHO_T}yes" >&6
2808 test "$program_prefix" != NONE &&
2809 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2810 # Use a double $ so make ignores it.
2811 test "$program_suffix" != NONE &&
2812 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2813 # Double any \ or $. echo might interpret backslashes.
2814 # By default was `s,x,x', remove it if useless.
2815 cat <<\_ACEOF >conftest.sed
2816 s/[\\$]/&&/g;s/;s,x,x,$//
2817 _ACEOF
2818 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2819 rm conftest.sed
2821 # expand $ac_aux_dir to an absolute path
2822 am_aux_dir=`cd $ac_aux_dir && pwd`
2824 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2825 # Use eval to expand $SHELL
2826 if eval "$MISSING --run true"; then
2827 am_missing_run="$MISSING --run "
2828 else
2829 am_missing_run=
2830 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2831 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2834 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2835 # We used to keeping the `.' as first argument, in order to
2836 # allow $(mkdir_p) to be used without argument. As in
2837 # $(mkdir_p) $(somedir)
2838 # where $(somedir) is conditionally defined. However this is wrong
2839 # for two reasons:
2840 # 1. if the package is installed by a user who cannot write `.'
2841 # make install will fail,
2842 # 2. the above comment should most certainly read
2843 # $(mkdir_p) $(DESTDIR)$(somedir)
2844 # so it does not work when $(somedir) is undefined and
2845 # $(DESTDIR) is not.
2846 # To support the latter case, we have to write
2847 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2848 # so the `.' trick is pointless.
2849 mkdir_p='mkdir -p --'
2850 else
2851 # On NextStep and OpenStep, the `mkdir' command does not
2852 # recognize any option. It will interpret all options as
2853 # directories to create, and then abort because `.' already
2854 # exists.
2855 for d in ./-p ./--version;
2857 test -d $d && rmdir $d
2858 done
2859 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2860 if test -f "$ac_aux_dir/mkinstalldirs"; then
2861 mkdir_p='$(mkinstalldirs)'
2862 else
2863 mkdir_p='$(install_sh) -d'
2867 for ac_prog in gawk mawk nawk awk
2869 # Extract the first word of "$ac_prog", so it can be a program name with args.
2870 set dummy $ac_prog; ac_word=$2
2871 echo "$as_me:$LINENO: checking for $ac_word" >&5
2872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2873 if test "${ac_cv_prog_AWK+set}" = set; then
2874 echo $ECHO_N "(cached) $ECHO_C" >&6
2875 else
2876 if test -n "$AWK"; then
2877 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2878 else
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 for as_dir in $PATH
2882 IFS=$as_save_IFS
2883 test -z "$as_dir" && as_dir=.
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2886 ac_cv_prog_AWK="$ac_prog"
2887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2888 break 2
2890 done
2891 done
2895 AWK=$ac_cv_prog_AWK
2896 if test -n "$AWK"; then
2897 echo "$as_me:$LINENO: result: $AWK" >&5
2898 echo "${ECHO_T}$AWK" >&6
2899 else
2900 echo "$as_me:$LINENO: result: no" >&5
2901 echo "${ECHO_T}no" >&6
2904 test -n "$AWK" && break
2905 done
2907 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2908 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2909 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2910 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2911 echo $ECHO_N "(cached) $ECHO_C" >&6
2912 else
2913 cat >conftest.make <<\_ACEOF
2914 all:
2915 @echo 'ac_maketemp="$(MAKE)"'
2916 _ACEOF
2917 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2918 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2919 if test -n "$ac_maketemp"; then
2920 eval ac_cv_prog_make_${ac_make}_set=yes
2921 else
2922 eval ac_cv_prog_make_${ac_make}_set=no
2924 rm -f conftest.make
2926 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2927 echo "$as_me:$LINENO: result: yes" >&5
2928 echo "${ECHO_T}yes" >&6
2929 SET_MAKE=
2930 else
2931 echo "$as_me:$LINENO: result: no" >&5
2932 echo "${ECHO_T}no" >&6
2933 SET_MAKE="MAKE=${MAKE-make}"
2936 rm -rf .tst 2>/dev/null
2937 mkdir .tst 2>/dev/null
2938 if test -d .tst; then
2939 am__leading_dot=.
2940 else
2941 am__leading_dot=_
2943 rmdir .tst 2>/dev/null
2945 DEPDIR="${am__leading_dot}deps"
2947 ac_config_commands="$ac_config_commands depfiles"
2950 am_make=${MAKE-make}
2951 cat > confinc << 'END'
2952 am__doit:
2953 @echo done
2954 .PHONY: am__doit
2956 # If we don't find an include directive, just comment out the code.
2957 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2958 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2959 am__include="#"
2960 am__quote=
2961 _am_result=none
2962 # First try GNU make style include.
2963 echo "include confinc" > confmf
2964 # We grep out `Entering directory' and `Leaving directory'
2965 # messages which can occur if `w' ends up in MAKEFLAGS.
2966 # In particular we don't look at `^make:' because GNU make might
2967 # be invoked under some other name (usually "gmake"), in which
2968 # case it prints its new name instead of `make'.
2969 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2970 am__include=include
2971 am__quote=
2972 _am_result=GNU
2974 # Now try BSD make style include.
2975 if test "$am__include" = "#"; then
2976 echo '.include "confinc"' > confmf
2977 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2978 am__include=.include
2979 am__quote="\""
2980 _am_result=BSD
2985 echo "$as_me:$LINENO: result: $_am_result" >&5
2986 echo "${ECHO_T}$_am_result" >&6
2987 rm -f confinc confmf
2989 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2990 if test "${enable_dependency_tracking+set}" = set; then
2991 enableval="$enable_dependency_tracking"
2994 if test "x$enable_dependency_tracking" != xno; then
2995 am_depcomp="$ac_aux_dir/depcomp"
2996 AMDEPBACKSLASH='\'
3000 if test "x$enable_dependency_tracking" != xno; then
3001 AMDEP_TRUE=
3002 AMDEP_FALSE='#'
3003 else
3004 AMDEP_TRUE='#'
3005 AMDEP_FALSE=
3010 # test to see if srcdir already configured
3011 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3012 test -f $srcdir/config.status; then
3013 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3014 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3015 { (exit 1); exit 1; }; }
3018 # test whether we have cygpath
3019 if test -z "$CYGPATH_W"; then
3020 if (cygpath --version) >/dev/null 2>/dev/null; then
3021 CYGPATH_W='cygpath -w'
3022 else
3023 CYGPATH_W=echo
3028 # Define the identity of the package.
3029 PACKAGE=binutils
3030 VERSION=${BFD_VERSION}
3033 cat >>confdefs.h <<_ACEOF
3034 #define PACKAGE "$PACKAGE"
3035 _ACEOF
3038 cat >>confdefs.h <<_ACEOF
3039 #define VERSION "$VERSION"
3040 _ACEOF
3042 # Some tools Automake needs.
3044 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3047 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3050 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3053 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3056 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3058 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3060 # Installed binaries are usually stripped using `strip' when the user
3061 # run `make install-strip'. However `strip' might not be the right
3062 # tool to use in cross-compilation environments, therefore Automake
3063 # will honor the `STRIP' environment variable to overrule this program.
3064 if test "$cross_compiling" != no; then
3065 if test -n "$ac_tool_prefix"; then
3066 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3067 set dummy ${ac_tool_prefix}strip; ac_word=$2
3068 echo "$as_me:$LINENO: checking for $ac_word" >&5
3069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3070 if test "${ac_cv_prog_STRIP+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3072 else
3073 if test -n "$STRIP"; then
3074 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3075 else
3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077 for as_dir in $PATH
3079 IFS=$as_save_IFS
3080 test -z "$as_dir" && as_dir=.
3081 for ac_exec_ext in '' $ac_executable_extensions; do
3082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3083 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3085 break 2
3087 done
3088 done
3092 STRIP=$ac_cv_prog_STRIP
3093 if test -n "$STRIP"; then
3094 echo "$as_me:$LINENO: result: $STRIP" >&5
3095 echo "${ECHO_T}$STRIP" >&6
3096 else
3097 echo "$as_me:$LINENO: result: no" >&5
3098 echo "${ECHO_T}no" >&6
3102 if test -z "$ac_cv_prog_STRIP"; then
3103 ac_ct_STRIP=$STRIP
3104 # Extract the first word of "strip", so it can be a program name with args.
3105 set dummy strip; ac_word=$2
3106 echo "$as_me:$LINENO: checking for $ac_word" >&5
3107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3108 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3109 echo $ECHO_N "(cached) $ECHO_C" >&6
3110 else
3111 if test -n "$ac_ct_STRIP"; then
3112 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3113 else
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115 for as_dir in $PATH
3117 IFS=$as_save_IFS
3118 test -z "$as_dir" && as_dir=.
3119 for ac_exec_ext in '' $ac_executable_extensions; do
3120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3121 ac_cv_prog_ac_ct_STRIP="strip"
3122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3123 break 2
3125 done
3126 done
3128 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3131 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3132 if test -n "$ac_ct_STRIP"; then
3133 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3134 echo "${ECHO_T}$ac_ct_STRIP" >&6
3135 else
3136 echo "$as_me:$LINENO: result: no" >&5
3137 echo "${ECHO_T}no" >&6
3140 STRIP=$ac_ct_STRIP
3141 else
3142 STRIP="$ac_cv_prog_STRIP"
3146 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3148 # We need awk for the "check" target. The system "awk" is bad on
3149 # some platforms.
3150 # Always define AMTAR for backward compatibility.
3152 AMTAR=${AMTAR-"${am_missing_run}tar"}
3154 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3159 depcc="$CC" am_compiler_list=
3161 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3162 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3163 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
3165 else
3166 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3167 # We make a subdir and do the tests there. Otherwise we can end up
3168 # making bogus files that we don't know about and never remove. For
3169 # instance it was reported that on HP-UX the gcc test will end up
3170 # making a dummy file named `D' -- because `-MD' means `put the output
3171 # in D'.
3172 mkdir conftest.dir
3173 # Copy depcomp to subdir because otherwise we won't find it if we're
3174 # using a relative directory.
3175 cp "$am_depcomp" conftest.dir
3176 cd conftest.dir
3177 # We will build objects and dependencies in a subdirectory because
3178 # it helps to detect inapplicable dependency modes. For instance
3179 # both Tru64's cc and ICC support -MD to output dependencies as a
3180 # side effect of compilation, but ICC will put the dependencies in
3181 # the current directory while Tru64 will put them in the object
3182 # directory.
3183 mkdir sub
3185 am_cv_CC_dependencies_compiler_type=none
3186 if test "$am_compiler_list" = ""; then
3187 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3189 for depmode in $am_compiler_list; do
3190 # Setup a source with many dependencies, because some compilers
3191 # like to wrap large dependency lists on column 80 (with \), and
3192 # we should not choose a depcomp mode which is confused by this.
3194 # We need to recreate these files for each test, as the compiler may
3195 # overwrite some of them when testing with obscure command lines.
3196 # This happens at least with the AIX C compiler.
3197 : > sub/conftest.c
3198 for i in 1 2 3 4 5 6; do
3199 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3200 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3201 # Solaris 8's {/usr,}/bin/sh.
3202 touch sub/conftst$i.h
3203 done
3204 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3206 case $depmode in
3207 nosideeffect)
3208 # after this tag, mechanisms are not by side-effect, so they'll
3209 # only be used when explicitly requested
3210 if test "x$enable_dependency_tracking" = xyes; then
3211 continue
3212 else
3213 break
3216 none) break ;;
3217 esac
3218 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3219 # mode. It turns out that the SunPro C++ compiler does not properly
3220 # handle `-M -o', and we need to detect this.
3221 if depmode=$depmode \
3222 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3223 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3224 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3225 >/dev/null 2>conftest.err &&
3226 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3227 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3228 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3229 # icc doesn't choke on unknown options, it will just issue warnings
3230 # or remarks (even with -Werror). So we grep stderr for any message
3231 # that says an option was ignored or not supported.
3232 # When given -MP, icc 7.0 and 7.1 complain thusly:
3233 # icc: Command line warning: ignoring option '-M'; no argument required
3234 # The diagnosis changed in icc 8.0:
3235 # icc: Command line remark: option '-MP' not supported
3236 if (grep 'ignoring option' conftest.err ||
3237 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3238 am_cv_CC_dependencies_compiler_type=$depmode
3239 break
3242 done
3244 cd ..
3245 rm -rf conftest.dir
3246 else
3247 am_cv_CC_dependencies_compiler_type=none
3251 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3252 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3253 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3258 test "x$enable_dependency_tracking" != xno \
3259 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3260 am__fastdepCC_TRUE=
3261 am__fastdepCC_FALSE='#'
3262 else
3263 am__fastdepCC_TRUE='#'
3264 am__fastdepCC_FALSE=
3270 ac_ext=c
3271 ac_cpp='$CPP $CPPFLAGS'
3272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3275 if test -n "$ac_tool_prefix"; then
3276 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3277 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3278 echo "$as_me:$LINENO: checking for $ac_word" >&5
3279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3280 if test "${ac_cv_prog_CC+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 else
3283 if test -n "$CC"; then
3284 ac_cv_prog_CC="$CC" # Let the user override the test.
3285 else
3286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287 for as_dir in $PATH
3289 IFS=$as_save_IFS
3290 test -z "$as_dir" && as_dir=.
3291 for ac_exec_ext in '' $ac_executable_extensions; do
3292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3293 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3295 break 2
3297 done
3298 done
3302 CC=$ac_cv_prog_CC
3303 if test -n "$CC"; then
3304 echo "$as_me:$LINENO: result: $CC" >&5
3305 echo "${ECHO_T}$CC" >&6
3306 else
3307 echo "$as_me:$LINENO: result: no" >&5
3308 echo "${ECHO_T}no" >&6
3312 if test -z "$ac_cv_prog_CC"; then
3313 ac_ct_CC=$CC
3314 # Extract the first word of "gcc", so it can be a program name with args.
3315 set dummy gcc; ac_word=$2
3316 echo "$as_me:$LINENO: checking for $ac_word" >&5
3317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3318 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 else
3321 if test -n "$ac_ct_CC"; then
3322 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3323 else
3324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325 for as_dir in $PATH
3327 IFS=$as_save_IFS
3328 test -z "$as_dir" && as_dir=.
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3331 ac_cv_prog_ac_ct_CC="gcc"
3332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3333 break 2
3335 done
3336 done
3340 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3341 if test -n "$ac_ct_CC"; then
3342 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3343 echo "${ECHO_T}$ac_ct_CC" >&6
3344 else
3345 echo "$as_me:$LINENO: result: no" >&5
3346 echo "${ECHO_T}no" >&6
3349 CC=$ac_ct_CC
3350 else
3351 CC="$ac_cv_prog_CC"
3354 if test -z "$CC"; then
3355 if test -n "$ac_tool_prefix"; then
3356 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3357 set dummy ${ac_tool_prefix}cc; ac_word=$2
3358 echo "$as_me:$LINENO: checking for $ac_word" >&5
3359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3360 if test "${ac_cv_prog_CC+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3362 else
3363 if test -n "$CC"; then
3364 ac_cv_prog_CC="$CC" # Let the user override the test.
3365 else
3366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367 for as_dir in $PATH
3369 IFS=$as_save_IFS
3370 test -z "$as_dir" && as_dir=.
3371 for ac_exec_ext in '' $ac_executable_extensions; do
3372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3373 ac_cv_prog_CC="${ac_tool_prefix}cc"
3374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3375 break 2
3377 done
3378 done
3382 CC=$ac_cv_prog_CC
3383 if test -n "$CC"; then
3384 echo "$as_me:$LINENO: result: $CC" >&5
3385 echo "${ECHO_T}$CC" >&6
3386 else
3387 echo "$as_me:$LINENO: result: no" >&5
3388 echo "${ECHO_T}no" >&6
3392 if test -z "$ac_cv_prog_CC"; then
3393 ac_ct_CC=$CC
3394 # Extract the first word of "cc", so it can be a program name with args.
3395 set dummy cc; ac_word=$2
3396 echo "$as_me:$LINENO: checking for $ac_word" >&5
3397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3398 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
3400 else
3401 if test -n "$ac_ct_CC"; then
3402 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3403 else
3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405 for as_dir in $PATH
3407 IFS=$as_save_IFS
3408 test -z "$as_dir" && as_dir=.
3409 for ac_exec_ext in '' $ac_executable_extensions; do
3410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3411 ac_cv_prog_ac_ct_CC="cc"
3412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3413 break 2
3415 done
3416 done
3420 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3421 if test -n "$ac_ct_CC"; then
3422 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3423 echo "${ECHO_T}$ac_ct_CC" >&6
3424 else
3425 echo "$as_me:$LINENO: result: no" >&5
3426 echo "${ECHO_T}no" >&6
3429 CC=$ac_ct_CC
3430 else
3431 CC="$ac_cv_prog_CC"
3435 if test -z "$CC"; then
3436 # Extract the first word of "cc", so it can be a program name with args.
3437 set dummy cc; ac_word=$2
3438 echo "$as_me:$LINENO: checking for $ac_word" >&5
3439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3440 if test "${ac_cv_prog_CC+set}" = set; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
3442 else
3443 if test -n "$CC"; then
3444 ac_cv_prog_CC="$CC" # Let the user override the test.
3445 else
3446 ac_prog_rejected=no
3447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448 for as_dir in $PATH
3450 IFS=$as_save_IFS
3451 test -z "$as_dir" && as_dir=.
3452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3454 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3455 ac_prog_rejected=yes
3456 continue
3458 ac_cv_prog_CC="cc"
3459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3460 break 2
3462 done
3463 done
3465 if test $ac_prog_rejected = yes; then
3466 # We found a bogon in the path, so make sure we never use it.
3467 set dummy $ac_cv_prog_CC
3468 shift
3469 if test $# != 0; then
3470 # We chose a different compiler from the bogus one.
3471 # However, it has the same basename, so the bogon will be chosen
3472 # first if we set CC to just the basename; use the full file name.
3473 shift
3474 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3479 CC=$ac_cv_prog_CC
3480 if test -n "$CC"; then
3481 echo "$as_me:$LINENO: result: $CC" >&5
3482 echo "${ECHO_T}$CC" >&6
3483 else
3484 echo "$as_me:$LINENO: result: no" >&5
3485 echo "${ECHO_T}no" >&6
3489 if test -z "$CC"; then
3490 if test -n "$ac_tool_prefix"; then
3491 for ac_prog in cl
3493 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3494 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3495 echo "$as_me:$LINENO: checking for $ac_word" >&5
3496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3497 if test "${ac_cv_prog_CC+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3499 else
3500 if test -n "$CC"; then
3501 ac_cv_prog_CC="$CC" # Let the user override the test.
3502 else
3503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504 for as_dir in $PATH
3506 IFS=$as_save_IFS
3507 test -z "$as_dir" && as_dir=.
3508 for ac_exec_ext in '' $ac_executable_extensions; do
3509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3510 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3512 break 2
3514 done
3515 done
3519 CC=$ac_cv_prog_CC
3520 if test -n "$CC"; then
3521 echo "$as_me:$LINENO: result: $CC" >&5
3522 echo "${ECHO_T}$CC" >&6
3523 else
3524 echo "$as_me:$LINENO: result: no" >&5
3525 echo "${ECHO_T}no" >&6
3528 test -n "$CC" && break
3529 done
3531 if test -z "$CC"; then
3532 ac_ct_CC=$CC
3533 for ac_prog in cl
3535 # Extract the first word of "$ac_prog", so it can be a program name with args.
3536 set dummy $ac_prog; ac_word=$2
3537 echo "$as_me:$LINENO: checking for $ac_word" >&5
3538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3539 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3540 echo $ECHO_N "(cached) $ECHO_C" >&6
3541 else
3542 if test -n "$ac_ct_CC"; then
3543 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3544 else
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 for as_dir in $PATH
3548 IFS=$as_save_IFS
3549 test -z "$as_dir" && as_dir=.
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3552 ac_cv_prog_ac_ct_CC="$ac_prog"
3553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3554 break 2
3556 done
3557 done
3561 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3562 if test -n "$ac_ct_CC"; then
3563 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3564 echo "${ECHO_T}$ac_ct_CC" >&6
3565 else
3566 echo "$as_me:$LINENO: result: no" >&5
3567 echo "${ECHO_T}no" >&6
3570 test -n "$ac_ct_CC" && break
3571 done
3573 CC=$ac_ct_CC
3579 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3580 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3581 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3582 See \`config.log' for more details." >&5
3583 echo "$as_me: error: no acceptable C compiler found in \$PATH
3584 See \`config.log' for more details." >&2;}
3585 { (exit 1); exit 1; }; }; }
3587 # Provide some information about the compiler.
3588 echo "$as_me:$LINENO:" \
3589 "checking for C compiler version" >&5
3590 ac_compiler=`set X $ac_compile; echo $2`
3591 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3592 (eval $ac_compiler --version </dev/null >&5) 2>&5
3593 ac_status=$?
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); }
3596 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3597 (eval $ac_compiler -v </dev/null >&5) 2>&5
3598 ac_status=$?
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); }
3601 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3602 (eval $ac_compiler -V </dev/null >&5) 2>&5
3603 ac_status=$?
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); }
3607 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3608 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3609 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3611 else
3612 cat >conftest.$ac_ext <<_ACEOF
3613 /* confdefs.h. */
3614 _ACEOF
3615 cat confdefs.h >>conftest.$ac_ext
3616 cat >>conftest.$ac_ext <<_ACEOF
3617 /* end confdefs.h. */
3620 main ()
3622 #ifndef __GNUC__
3623 choke me
3624 #endif
3627 return 0;
3629 _ACEOF
3630 rm -f conftest.$ac_objext
3631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3632 (eval $ac_compile) 2>conftest.er1
3633 ac_status=$?
3634 grep -v '^ *+' conftest.er1 >conftest.err
3635 rm -f conftest.er1
3636 cat conftest.err >&5
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); } &&
3639 { ac_try='test -z "$ac_c_werror_flag"
3640 || test ! -s conftest.err'
3641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3642 (eval $ac_try) 2>&5
3643 ac_status=$?
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); }; } &&
3646 { ac_try='test -s conftest.$ac_objext'
3647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3648 (eval $ac_try) 2>&5
3649 ac_status=$?
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); }; }; then
3652 ac_compiler_gnu=yes
3653 else
3654 echo "$as_me: failed program was:" >&5
3655 sed 's/^/| /' conftest.$ac_ext >&5
3657 ac_compiler_gnu=no
3659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3660 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3663 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3664 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3665 GCC=`test $ac_compiler_gnu = yes && echo yes`
3666 ac_test_CFLAGS=${CFLAGS+set}
3667 ac_save_CFLAGS=$CFLAGS
3668 CFLAGS="-g"
3669 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3670 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3671 if test "${ac_cv_prog_cc_g+set}" = set; then
3672 echo $ECHO_N "(cached) $ECHO_C" >&6
3673 else
3674 cat >conftest.$ac_ext <<_ACEOF
3675 /* confdefs.h. */
3676 _ACEOF
3677 cat confdefs.h >>conftest.$ac_ext
3678 cat >>conftest.$ac_ext <<_ACEOF
3679 /* end confdefs.h. */
3682 main ()
3686 return 0;
3688 _ACEOF
3689 rm -f conftest.$ac_objext
3690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3691 (eval $ac_compile) 2>conftest.er1
3692 ac_status=$?
3693 grep -v '^ *+' conftest.er1 >conftest.err
3694 rm -f conftest.er1
3695 cat conftest.err >&5
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); } &&
3698 { ac_try='test -z "$ac_c_werror_flag"
3699 || test ! -s conftest.err'
3700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3701 (eval $ac_try) 2>&5
3702 ac_status=$?
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); }; } &&
3705 { ac_try='test -s conftest.$ac_objext'
3706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3707 (eval $ac_try) 2>&5
3708 ac_status=$?
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); }; }; then
3711 ac_cv_prog_cc_g=yes
3712 else
3713 echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3716 ac_cv_prog_cc_g=no
3718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3720 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3721 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3722 if test "$ac_test_CFLAGS" = set; then
3723 CFLAGS=$ac_save_CFLAGS
3724 elif test $ac_cv_prog_cc_g = yes; then
3725 if test "$GCC" = yes; then
3726 CFLAGS="-g -O2"
3727 else
3728 CFLAGS="-g"
3730 else
3731 if test "$GCC" = yes; then
3732 CFLAGS="-O2"
3733 else
3734 CFLAGS=
3737 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3738 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3739 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3741 else
3742 ac_cv_prog_cc_stdc=no
3743 ac_save_CC=$CC
3744 cat >conftest.$ac_ext <<_ACEOF
3745 /* confdefs.h. */
3746 _ACEOF
3747 cat confdefs.h >>conftest.$ac_ext
3748 cat >>conftest.$ac_ext <<_ACEOF
3749 /* end confdefs.h. */
3750 #include <stdarg.h>
3751 #include <stdio.h>
3752 #include <sys/types.h>
3753 #include <sys/stat.h>
3754 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3755 struct buf { int x; };
3756 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3757 static char *e (p, i)
3758 char **p;
3759 int i;
3761 return p[i];
3763 static char *f (char * (*g) (char **, int), char **p, ...)
3765 char *s;
3766 va_list v;
3767 va_start (v,p);
3768 s = g (p, va_arg (v,int));
3769 va_end (v);
3770 return s;
3773 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3774 function prototypes and stuff, but not '\xHH' hex character constants.
3775 These don't provoke an error unfortunately, instead are silently treated
3776 as 'x'. The following induces an error, until -std1 is added to get
3777 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3778 array size at least. It's necessary to write '\x00'==0 to get something
3779 that's true only with -std1. */
3780 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3782 int test (int i, double x);
3783 struct s1 {int (*f) (int a);};
3784 struct s2 {int (*f) (double a);};
3785 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3786 int argc;
3787 char **argv;
3789 main ()
3791 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3793 return 0;
3795 _ACEOF
3796 # Don't try gcc -ansi; that turns off useful extensions and
3797 # breaks some systems' header files.
3798 # AIX -qlanglvl=ansi
3799 # Ultrix and OSF/1 -std1
3800 # HP-UX 10.20 and later -Ae
3801 # HP-UX older versions -Aa -D_HPUX_SOURCE
3802 # SVR4 -Xc -D__EXTENSIONS__
3803 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3805 CC="$ac_save_CC $ac_arg"
3806 rm -f conftest.$ac_objext
3807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3808 (eval $ac_compile) 2>conftest.er1
3809 ac_status=$?
3810 grep -v '^ *+' conftest.er1 >conftest.err
3811 rm -f conftest.er1
3812 cat conftest.err >&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); } &&
3815 { ac_try='test -z "$ac_c_werror_flag"
3816 || test ! -s conftest.err'
3817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818 (eval $ac_try) 2>&5
3819 ac_status=$?
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }; } &&
3822 { ac_try='test -s conftest.$ac_objext'
3823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824 (eval $ac_try) 2>&5
3825 ac_status=$?
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); }; }; then
3828 ac_cv_prog_cc_stdc=$ac_arg
3829 break
3830 else
3831 echo "$as_me: failed program was:" >&5
3832 sed 's/^/| /' conftest.$ac_ext >&5
3835 rm -f conftest.err conftest.$ac_objext
3836 done
3837 rm -f conftest.$ac_ext conftest.$ac_objext
3838 CC=$ac_save_CC
3842 case "x$ac_cv_prog_cc_stdc" in
3843 x|xno)
3844 echo "$as_me:$LINENO: result: none needed" >&5
3845 echo "${ECHO_T}none needed" >&6 ;;
3847 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3848 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3849 CC="$CC $ac_cv_prog_cc_stdc" ;;
3850 esac
3852 # Some people use a C++ compiler to compile C. Since we use `exit',
3853 # in C++ we need to declare it. In case someone uses the same compiler
3854 # for both compiling C and C++ we need to have the C++ compiler decide
3855 # the declaration of exit, since it's the most demanding environment.
3856 cat >conftest.$ac_ext <<_ACEOF
3857 #ifndef __cplusplus
3858 choke me
3859 #endif
3860 _ACEOF
3861 rm -f conftest.$ac_objext
3862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3863 (eval $ac_compile) 2>conftest.er1
3864 ac_status=$?
3865 grep -v '^ *+' conftest.er1 >conftest.err
3866 rm -f conftest.er1
3867 cat conftest.err >&5
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); } &&
3870 { ac_try='test -z "$ac_c_werror_flag"
3871 || test ! -s conftest.err'
3872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3873 (eval $ac_try) 2>&5
3874 ac_status=$?
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); }; } &&
3877 { ac_try='test -s conftest.$ac_objext'
3878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3879 (eval $ac_try) 2>&5
3880 ac_status=$?
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); }; }; then
3883 for ac_declaration in \
3884 '' \
3885 'extern "C" void std::exit (int) throw (); using std::exit;' \
3886 'extern "C" void std::exit (int); using std::exit;' \
3887 'extern "C" void exit (int) throw ();' \
3888 'extern "C" void exit (int);' \
3889 'void exit (int);'
3891 cat >conftest.$ac_ext <<_ACEOF
3892 /* confdefs.h. */
3893 _ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h. */
3897 $ac_declaration
3898 #include <stdlib.h>
3900 main ()
3902 exit (42);
3904 return 0;
3906 _ACEOF
3907 rm -f conftest.$ac_objext
3908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3909 (eval $ac_compile) 2>conftest.er1
3910 ac_status=$?
3911 grep -v '^ *+' conftest.er1 >conftest.err
3912 rm -f conftest.er1
3913 cat conftest.err >&5
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); } &&
3916 { ac_try='test -z "$ac_c_werror_flag"
3917 || test ! -s conftest.err'
3918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3919 (eval $ac_try) 2>&5
3920 ac_status=$?
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); }; } &&
3923 { ac_try='test -s conftest.$ac_objext'
3924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3925 (eval $ac_try) 2>&5
3926 ac_status=$?
3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928 (exit $ac_status); }; }; then
3930 else
3931 echo "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3934 continue
3936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3937 cat >conftest.$ac_ext <<_ACEOF
3938 /* confdefs.h. */
3939 _ACEOF
3940 cat confdefs.h >>conftest.$ac_ext
3941 cat >>conftest.$ac_ext <<_ACEOF
3942 /* end confdefs.h. */
3943 $ac_declaration
3945 main ()
3947 exit (42);
3949 return 0;
3951 _ACEOF
3952 rm -f conftest.$ac_objext
3953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3954 (eval $ac_compile) 2>conftest.er1
3955 ac_status=$?
3956 grep -v '^ *+' conftest.er1 >conftest.err
3957 rm -f conftest.er1
3958 cat conftest.err >&5
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); } &&
3961 { ac_try='test -z "$ac_c_werror_flag"
3962 || test ! -s conftest.err'
3963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3964 (eval $ac_try) 2>&5
3965 ac_status=$?
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); }; } &&
3968 { ac_try='test -s conftest.$ac_objext'
3969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3970 (eval $ac_try) 2>&5
3971 ac_status=$?
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); }; }; then
3974 break
3975 else
3976 echo "$as_me: failed program was:" >&5
3977 sed 's/^/| /' conftest.$ac_ext >&5
3980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3981 done
3982 rm -f conftest*
3983 if test -n "$ac_declaration"; then
3984 echo '#ifdef __cplusplus' >>confdefs.h
3985 echo $ac_declaration >>confdefs.h
3986 echo '#endif' >>confdefs.h
3989 else
3990 echo "$as_me: failed program was:" >&5
3991 sed 's/^/| /' conftest.$ac_ext >&5
3994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3995 ac_ext=c
3996 ac_cpp='$CPP $CPPFLAGS'
3997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4002 cat >>confdefs.h <<\_ACEOF
4003 #define _GNU_SOURCE 1
4004 _ACEOF
4007 ac_ext=c
4008 ac_cpp='$CPP $CPPFLAGS'
4009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4012 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4013 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4014 # On Suns, sometimes $CPP names a directory.
4015 if test -n "$CPP" && test -d "$CPP"; then
4016 CPP=
4018 if test -z "$CPP"; then
4019 if test "${ac_cv_prog_CPP+set}" = set; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4021 else
4022 # Double quotes because CPP needs to be expanded
4023 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4025 ac_preproc_ok=false
4026 for ac_c_preproc_warn_flag in '' yes
4028 # Use a header file that comes with gcc, so configuring glibc
4029 # with a fresh cross-compiler works.
4030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4031 # <limits.h> exists even on freestanding compilers.
4032 # On the NeXT, cc -E runs the code through the compiler's parser,
4033 # not just through cpp. "Syntax error" is here to catch this case.
4034 cat >conftest.$ac_ext <<_ACEOF
4035 /* confdefs.h. */
4036 _ACEOF
4037 cat confdefs.h >>conftest.$ac_ext
4038 cat >>conftest.$ac_ext <<_ACEOF
4039 /* end confdefs.h. */
4040 #ifdef __STDC__
4041 # include <limits.h>
4042 #else
4043 # include <assert.h>
4044 #endif
4045 Syntax error
4046 _ACEOF
4047 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4049 ac_status=$?
4050 grep -v '^ *+' conftest.er1 >conftest.err
4051 rm -f conftest.er1
4052 cat conftest.err >&5
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); } >/dev/null; then
4055 if test -s conftest.err; then
4056 ac_cpp_err=$ac_c_preproc_warn_flag
4057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4058 else
4059 ac_cpp_err=
4061 else
4062 ac_cpp_err=yes
4064 if test -z "$ac_cpp_err"; then
4066 else
4067 echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4070 # Broken: fails on valid input.
4071 continue
4073 rm -f conftest.err conftest.$ac_ext
4075 # OK, works on sane cases. Now check whether non-existent headers
4076 # can be detected and how.
4077 cat >conftest.$ac_ext <<_ACEOF
4078 /* confdefs.h. */
4079 _ACEOF
4080 cat confdefs.h >>conftest.$ac_ext
4081 cat >>conftest.$ac_ext <<_ACEOF
4082 /* end confdefs.h. */
4083 #include <ac_nonexistent.h>
4084 _ACEOF
4085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4086 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
4093 if test -s conftest.err; then
4094 ac_cpp_err=$ac_c_preproc_warn_flag
4095 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4096 else
4097 ac_cpp_err=
4099 else
4100 ac_cpp_err=yes
4102 if test -z "$ac_cpp_err"; then
4103 # Broken: success on invalid input.
4104 continue
4105 else
4106 echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4109 # Passes both tests.
4110 ac_preproc_ok=:
4111 break
4113 rm -f conftest.err conftest.$ac_ext
4115 done
4116 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4117 rm -f conftest.err conftest.$ac_ext
4118 if $ac_preproc_ok; then
4119 break
4122 done
4123 ac_cv_prog_CPP=$CPP
4126 CPP=$ac_cv_prog_CPP
4127 else
4128 ac_cv_prog_CPP=$CPP
4130 echo "$as_me:$LINENO: result: $CPP" >&5
4131 echo "${ECHO_T}$CPP" >&6
4132 ac_preproc_ok=false
4133 for ac_c_preproc_warn_flag in '' yes
4135 # Use a header file that comes with gcc, so configuring glibc
4136 # with a fresh cross-compiler works.
4137 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4138 # <limits.h> exists even on freestanding compilers.
4139 # On the NeXT, cc -E runs the code through the compiler's parser,
4140 # not just through cpp. "Syntax error" is here to catch this case.
4141 cat >conftest.$ac_ext <<_ACEOF
4142 /* confdefs.h. */
4143 _ACEOF
4144 cat confdefs.h >>conftest.$ac_ext
4145 cat >>conftest.$ac_ext <<_ACEOF
4146 /* end confdefs.h. */
4147 #ifdef __STDC__
4148 # include <limits.h>
4149 #else
4150 # include <assert.h>
4151 #endif
4152 Syntax error
4153 _ACEOF
4154 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4156 ac_status=$?
4157 grep -v '^ *+' conftest.er1 >conftest.err
4158 rm -f conftest.er1
4159 cat conftest.err >&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); } >/dev/null; then
4162 if test -s conftest.err; then
4163 ac_cpp_err=$ac_c_preproc_warn_flag
4164 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4165 else
4166 ac_cpp_err=
4168 else
4169 ac_cpp_err=yes
4171 if test -z "$ac_cpp_err"; then
4173 else
4174 echo "$as_me: failed program was:" >&5
4175 sed 's/^/| /' conftest.$ac_ext >&5
4177 # Broken: fails on valid input.
4178 continue
4180 rm -f conftest.err conftest.$ac_ext
4182 # OK, works on sane cases. Now check whether non-existent headers
4183 # can be detected and how.
4184 cat >conftest.$ac_ext <<_ACEOF
4185 /* confdefs.h. */
4186 _ACEOF
4187 cat confdefs.h >>conftest.$ac_ext
4188 cat >>conftest.$ac_ext <<_ACEOF
4189 /* end confdefs.h. */
4190 #include <ac_nonexistent.h>
4191 _ACEOF
4192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4194 ac_status=$?
4195 grep -v '^ *+' conftest.er1 >conftest.err
4196 rm -f conftest.er1
4197 cat conftest.err >&5
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); } >/dev/null; then
4200 if test -s conftest.err; then
4201 ac_cpp_err=$ac_c_preproc_warn_flag
4202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4203 else
4204 ac_cpp_err=
4206 else
4207 ac_cpp_err=yes
4209 if test -z "$ac_cpp_err"; then
4210 # Broken: success on invalid input.
4211 continue
4212 else
4213 echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.$ac_ext >&5
4216 # Passes both tests.
4217 ac_preproc_ok=:
4218 break
4220 rm -f conftest.err conftest.$ac_ext
4222 done
4223 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4224 rm -f conftest.err conftest.$ac_ext
4225 if $ac_preproc_ok; then
4227 else
4228 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4229 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4230 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4231 See \`config.log' for more details." >&5
4232 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4233 See \`config.log' for more details." >&2;}
4234 { (exit 1); exit 1; }; }; }
4237 ac_ext=c
4238 ac_cpp='$CPP $CPPFLAGS'
4239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4244 echo "$as_me:$LINENO: checking for egrep" >&5
4245 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4246 if test "${ac_cv_prog_egrep+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4250 then ac_cv_prog_egrep='grep -E'
4251 else ac_cv_prog_egrep='egrep'
4254 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4255 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4256 EGREP=$ac_cv_prog_egrep
4259 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4260 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4261 if test "${ac_cv_header_stdc+set}" = set; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4263 else
4264 cat >conftest.$ac_ext <<_ACEOF
4265 /* confdefs.h. */
4266 _ACEOF
4267 cat confdefs.h >>conftest.$ac_ext
4268 cat >>conftest.$ac_ext <<_ACEOF
4269 /* end confdefs.h. */
4270 #include <stdlib.h>
4271 #include <stdarg.h>
4272 #include <string.h>
4273 #include <float.h>
4276 main ()
4280 return 0;
4282 _ACEOF
4283 rm -f conftest.$ac_objext
4284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4285 (eval $ac_compile) 2>conftest.er1
4286 ac_status=$?
4287 grep -v '^ *+' conftest.er1 >conftest.err
4288 rm -f conftest.er1
4289 cat conftest.err >&5
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); } &&
4292 { ac_try='test -z "$ac_c_werror_flag"
4293 || test ! -s conftest.err'
4294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4295 (eval $ac_try) 2>&5
4296 ac_status=$?
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); }; } &&
4299 { ac_try='test -s conftest.$ac_objext'
4300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4301 (eval $ac_try) 2>&5
4302 ac_status=$?
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; }; then
4305 ac_cv_header_stdc=yes
4306 else
4307 echo "$as_me: failed program was:" >&5
4308 sed 's/^/| /' conftest.$ac_ext >&5
4310 ac_cv_header_stdc=no
4312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4314 if test $ac_cv_header_stdc = yes; then
4315 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4316 cat >conftest.$ac_ext <<_ACEOF
4317 /* confdefs.h. */
4318 _ACEOF
4319 cat confdefs.h >>conftest.$ac_ext
4320 cat >>conftest.$ac_ext <<_ACEOF
4321 /* end confdefs.h. */
4322 #include <string.h>
4324 _ACEOF
4325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4326 $EGREP "memchr" >/dev/null 2>&1; then
4328 else
4329 ac_cv_header_stdc=no
4331 rm -f conftest*
4335 if test $ac_cv_header_stdc = yes; then
4336 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4337 cat >conftest.$ac_ext <<_ACEOF
4338 /* confdefs.h. */
4339 _ACEOF
4340 cat confdefs.h >>conftest.$ac_ext
4341 cat >>conftest.$ac_ext <<_ACEOF
4342 /* end confdefs.h. */
4343 #include <stdlib.h>
4345 _ACEOF
4346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4347 $EGREP "free" >/dev/null 2>&1; then
4349 else
4350 ac_cv_header_stdc=no
4352 rm -f conftest*
4356 if test $ac_cv_header_stdc = yes; then
4357 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4358 if test "$cross_compiling" = yes; then
4360 else
4361 cat >conftest.$ac_ext <<_ACEOF
4362 /* confdefs.h. */
4363 _ACEOF
4364 cat confdefs.h >>conftest.$ac_ext
4365 cat >>conftest.$ac_ext <<_ACEOF
4366 /* end confdefs.h. */
4367 #include <ctype.h>
4368 #if ((' ' & 0x0FF) == 0x020)
4369 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4370 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4371 #else
4372 # define ISLOWER(c) \
4373 (('a' <= (c) && (c) <= 'i') \
4374 || ('j' <= (c) && (c) <= 'r') \
4375 || ('s' <= (c) && (c) <= 'z'))
4376 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4377 #endif
4379 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4381 main ()
4383 int i;
4384 for (i = 0; i < 256; i++)
4385 if (XOR (islower (i), ISLOWER (i))
4386 || toupper (i) != TOUPPER (i))
4387 exit(2);
4388 exit (0);
4390 _ACEOF
4391 rm -f conftest$ac_exeext
4392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4393 (eval $ac_link) 2>&5
4394 ac_status=$?
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398 (eval $ac_try) 2>&5
4399 ac_status=$?
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; }; then
4403 else
4404 echo "$as_me: program exited with status $ac_status" >&5
4405 echo "$as_me: failed program was:" >&5
4406 sed 's/^/| /' conftest.$ac_ext >&5
4408 ( exit $ac_status )
4409 ac_cv_header_stdc=no
4411 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4415 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4416 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4417 if test $ac_cv_header_stdc = yes; then
4419 cat >>confdefs.h <<\_ACEOF
4420 #define STDC_HEADERS 1
4421 _ACEOF
4425 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4435 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4436 inttypes.h stdint.h unistd.h
4438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4439 echo "$as_me:$LINENO: checking for $ac_header" >&5
4440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4443 else
4444 cat >conftest.$ac_ext <<_ACEOF
4445 /* confdefs.h. */
4446 _ACEOF
4447 cat confdefs.h >>conftest.$ac_ext
4448 cat >>conftest.$ac_ext <<_ACEOF
4449 /* end confdefs.h. */
4450 $ac_includes_default
4452 #include <$ac_header>
4453 _ACEOF
4454 rm -f conftest.$ac_objext
4455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4456 (eval $ac_compile) 2>conftest.er1
4457 ac_status=$?
4458 grep -v '^ *+' conftest.er1 >conftest.err
4459 rm -f conftest.er1
4460 cat conftest.err >&5
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); } &&
4463 { ac_try='test -z "$ac_c_werror_flag"
4464 || test ! -s conftest.err'
4465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4466 (eval $ac_try) 2>&5
4467 ac_status=$?
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); }; } &&
4470 { ac_try='test -s conftest.$ac_objext'
4471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4472 (eval $ac_try) 2>&5
4473 ac_status=$?
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); }; }; then
4476 eval "$as_ac_Header=yes"
4477 else
4478 echo "$as_me: failed program was:" >&5
4479 sed 's/^/| /' conftest.$ac_ext >&5
4481 eval "$as_ac_Header=no"
4483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4488 cat >>confdefs.h <<_ACEOF
4489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4490 _ACEOF
4494 done
4498 if test "${ac_cv_header_minix_config_h+set}" = set; then
4499 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4500 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4501 if test "${ac_cv_header_minix_config_h+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4504 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4505 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4506 else
4507 # Is the header compilable?
4508 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4509 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4510 cat >conftest.$ac_ext <<_ACEOF
4511 /* confdefs.h. */
4512 _ACEOF
4513 cat confdefs.h >>conftest.$ac_ext
4514 cat >>conftest.$ac_ext <<_ACEOF
4515 /* end confdefs.h. */
4516 $ac_includes_default
4517 #include <minix/config.h>
4518 _ACEOF
4519 rm -f conftest.$ac_objext
4520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4521 (eval $ac_compile) 2>conftest.er1
4522 ac_status=$?
4523 grep -v '^ *+' conftest.er1 >conftest.err
4524 rm -f conftest.er1
4525 cat conftest.err >&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); } &&
4528 { ac_try='test -z "$ac_c_werror_flag"
4529 || test ! -s conftest.err'
4530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531 (eval $ac_try) 2>&5
4532 ac_status=$?
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); }; } &&
4535 { ac_try='test -s conftest.$ac_objext'
4536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537 (eval $ac_try) 2>&5
4538 ac_status=$?
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }; }; then
4541 ac_header_compiler=yes
4542 else
4543 echo "$as_me: failed program was:" >&5
4544 sed 's/^/| /' conftest.$ac_ext >&5
4546 ac_header_compiler=no
4548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4549 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4550 echo "${ECHO_T}$ac_header_compiler" >&6
4552 # Is the header present?
4553 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4554 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4555 cat >conftest.$ac_ext <<_ACEOF
4556 /* confdefs.h. */
4557 _ACEOF
4558 cat confdefs.h >>conftest.$ac_ext
4559 cat >>conftest.$ac_ext <<_ACEOF
4560 /* end confdefs.h. */
4561 #include <minix/config.h>
4562 _ACEOF
4563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4565 ac_status=$?
4566 grep -v '^ *+' conftest.er1 >conftest.err
4567 rm -f conftest.er1
4568 cat conftest.err >&5
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); } >/dev/null; then
4571 if test -s conftest.err; then
4572 ac_cpp_err=$ac_c_preproc_warn_flag
4573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4574 else
4575 ac_cpp_err=
4577 else
4578 ac_cpp_err=yes
4580 if test -z "$ac_cpp_err"; then
4581 ac_header_preproc=yes
4582 else
4583 echo "$as_me: failed program was:" >&5
4584 sed 's/^/| /' conftest.$ac_ext >&5
4586 ac_header_preproc=no
4588 rm -f conftest.err conftest.$ac_ext
4589 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4590 echo "${ECHO_T}$ac_header_preproc" >&6
4592 # So? What about this header?
4593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4594 yes:no: )
4595 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4596 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4597 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4598 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4599 ac_header_preproc=yes
4601 no:yes:* )
4602 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4603 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4604 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4605 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4606 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4607 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4608 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4609 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4610 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4611 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4612 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4613 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4615 cat <<\_ASBOX
4616 ## ------------------------------------------ ##
4617 ## Report this to the AC_PACKAGE_NAME lists. ##
4618 ## ------------------------------------------ ##
4619 _ASBOX
4621 sed "s/^/$as_me: WARNING: /" >&2
4623 esac
4624 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4625 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4626 if test "${ac_cv_header_minix_config_h+set}" = set; then
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
4628 else
4629 ac_cv_header_minix_config_h=$ac_header_preproc
4631 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4632 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4635 if test $ac_cv_header_minix_config_h = yes; then
4636 MINIX=yes
4637 else
4638 MINIX=
4642 if test "$MINIX" = yes; then
4644 cat >>confdefs.h <<\_ACEOF
4645 #define _POSIX_SOURCE 1
4646 _ACEOF
4649 cat >>confdefs.h <<\_ACEOF
4650 #define _POSIX_1_SOURCE 2
4651 _ACEOF
4654 cat >>confdefs.h <<\_ACEOF
4655 #define _MINIX 1
4656 _ACEOF
4662 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4663 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4664 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4665 echo $ECHO_N "(cached) $ECHO_C" >&6
4666 else
4667 cat >conftest.$ac_ext <<_ACEOF
4668 /* confdefs.h. */
4669 _ACEOF
4670 cat confdefs.h >>conftest.$ac_ext
4671 cat >>conftest.$ac_ext <<_ACEOF
4672 /* end confdefs.h. */
4674 # define __EXTENSIONS__ 1
4675 $ac_includes_default
4677 main ()
4681 return 0;
4683 _ACEOF
4684 rm -f conftest.$ac_objext
4685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4686 (eval $ac_compile) 2>conftest.er1
4687 ac_status=$?
4688 grep -v '^ *+' conftest.er1 >conftest.err
4689 rm -f conftest.er1
4690 cat conftest.err >&5
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); } &&
4693 { ac_try='test -z "$ac_c_werror_flag"
4694 || test ! -s conftest.err'
4695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4696 (eval $ac_try) 2>&5
4697 ac_status=$?
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); }; } &&
4700 { ac_try='test -s conftest.$ac_objext'
4701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702 (eval $ac_try) 2>&5
4703 ac_status=$?
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); }; }; then
4706 ac_cv_safe_to_define___extensions__=yes
4707 else
4708 echo "$as_me: failed program was:" >&5
4709 sed 's/^/| /' conftest.$ac_ext >&5
4711 ac_cv_safe_to_define___extensions__=no
4713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4715 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4716 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4717 test $ac_cv_safe_to_define___extensions__ = yes &&
4718 cat >>confdefs.h <<\_ACEOF
4719 #define __EXTENSIONS__ 1
4720 _ACEOF
4722 cat >>confdefs.h <<\_ACEOF
4723 #define _ALL_SOURCE 1
4724 _ACEOF
4726 cat >>confdefs.h <<\_ACEOF
4727 #define _GNU_SOURCE 1
4728 _ACEOF
4730 cat >>confdefs.h <<\_ACEOF
4731 #define _POSIX_PTHREAD_SEMANTICS 1
4732 _ACEOF
4734 cat >>confdefs.h <<\_ACEOF
4735 #define _TANDEM_SOURCE 1
4736 _ACEOF
4740 # Check whether --enable-plugins or --disable-plugins was given.
4741 if test "${enable_plugins+set}" = set; then
4742 enableval="$enable_plugins"
4743 case "${enableval}" in
4744 yes | "") plugins=yes ;;
4745 no) plugins=no ;;
4746 *) plugins=yes ;;
4747 esac
4748 else
4749 plugins=no
4752 case "${target}" in
4753 sparc-*-solaris*|i[3-7]86-*-solaris*)
4754 # See comment in bfd/configure.in for the reason for this test.
4755 # PR 9992/binutils: We have to duplicate the behaviour of bfd's
4756 # configure script so that the utilities in this directory agree
4757 # on the size of structures used to describe files.
4758 if test "${target}" = "${host}" -a "$enable_largefile" != 'yes'; then
4759 if test "$plugins" = "no"; then
4760 enable_largefile="no"
4764 esac
4766 # Check whether --enable-largefile or --disable-largefile was given.
4767 if test "${enable_largefile+set}" = set; then
4768 enableval="$enable_largefile"
4771 if test "$enable_largefile" != no; then
4773 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4774 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4775 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4776 echo $ECHO_N "(cached) $ECHO_C" >&6
4777 else
4778 ac_cv_sys_largefile_CC=no
4779 if test "$GCC" != yes; then
4780 ac_save_CC=$CC
4781 while :; do
4782 # IRIX 6.2 and later do not support large files by default,
4783 # so use the C compiler's -n32 option if that helps.
4784 cat >conftest.$ac_ext <<_ACEOF
4785 /* confdefs.h. */
4786 _ACEOF
4787 cat confdefs.h >>conftest.$ac_ext
4788 cat >>conftest.$ac_ext <<_ACEOF
4789 /* end confdefs.h. */
4790 #include <sys/types.h>
4791 /* Check that off_t can represent 2**63 - 1 correctly.
4792 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4793 since some C++ compilers masquerading as C compilers
4794 incorrectly reject 9223372036854775807. */
4795 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4796 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4797 && LARGE_OFF_T % 2147483647 == 1)
4798 ? 1 : -1];
4800 main ()
4804 return 0;
4806 _ACEOF
4807 rm -f conftest.$ac_objext
4808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4809 (eval $ac_compile) 2>conftest.er1
4810 ac_status=$?
4811 grep -v '^ *+' conftest.er1 >conftest.err
4812 rm -f conftest.er1
4813 cat conftest.err >&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); } &&
4816 { ac_try='test -z "$ac_c_werror_flag"
4817 || test ! -s conftest.err'
4818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819 (eval $ac_try) 2>&5
4820 ac_status=$?
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); }; } &&
4823 { ac_try='test -s conftest.$ac_objext'
4824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825 (eval $ac_try) 2>&5
4826 ac_status=$?
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }; }; then
4829 break
4830 else
4831 echo "$as_me: failed program was:" >&5
4832 sed 's/^/| /' conftest.$ac_ext >&5
4835 rm -f conftest.err conftest.$ac_objext
4836 CC="$CC -n32"
4837 rm -f conftest.$ac_objext
4838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4839 (eval $ac_compile) 2>conftest.er1
4840 ac_status=$?
4841 grep -v '^ *+' conftest.er1 >conftest.err
4842 rm -f conftest.er1
4843 cat conftest.err >&5
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); } &&
4846 { ac_try='test -z "$ac_c_werror_flag"
4847 || test ! -s conftest.err'
4848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849 (eval $ac_try) 2>&5
4850 ac_status=$?
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); }; } &&
4853 { ac_try='test -s conftest.$ac_objext'
4854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4855 (eval $ac_try) 2>&5
4856 ac_status=$?
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); }; }; then
4859 ac_cv_sys_largefile_CC=' -n32'; break
4860 else
4861 echo "$as_me: failed program was:" >&5
4862 sed 's/^/| /' conftest.$ac_ext >&5
4865 rm -f conftest.err conftest.$ac_objext
4866 break
4867 done
4868 CC=$ac_save_CC
4869 rm -f conftest.$ac_ext
4872 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4873 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4874 if test "$ac_cv_sys_largefile_CC" != no; then
4875 CC=$CC$ac_cv_sys_largefile_CC
4878 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4879 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4880 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4881 echo $ECHO_N "(cached) $ECHO_C" >&6
4882 else
4883 while :; do
4884 ac_cv_sys_file_offset_bits=no
4885 cat >conftest.$ac_ext <<_ACEOF
4886 /* confdefs.h. */
4887 _ACEOF
4888 cat confdefs.h >>conftest.$ac_ext
4889 cat >>conftest.$ac_ext <<_ACEOF
4890 /* end confdefs.h. */
4891 #include <sys/types.h>
4892 /* Check that off_t can represent 2**63 - 1 correctly.
4893 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4894 since some C++ compilers masquerading as C compilers
4895 incorrectly reject 9223372036854775807. */
4896 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4897 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4898 && LARGE_OFF_T % 2147483647 == 1)
4899 ? 1 : -1];
4901 main ()
4905 return 0;
4907 _ACEOF
4908 rm -f conftest.$ac_objext
4909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4910 (eval $ac_compile) 2>conftest.er1
4911 ac_status=$?
4912 grep -v '^ *+' conftest.er1 >conftest.err
4913 rm -f conftest.er1
4914 cat conftest.err >&5
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); } &&
4917 { ac_try='test -z "$ac_c_werror_flag"
4918 || test ! -s conftest.err'
4919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4920 (eval $ac_try) 2>&5
4921 ac_status=$?
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); }; } &&
4924 { ac_try='test -s conftest.$ac_objext'
4925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4926 (eval $ac_try) 2>&5
4927 ac_status=$?
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); }; }; then
4930 break
4931 else
4932 echo "$as_me: failed program was:" >&5
4933 sed 's/^/| /' conftest.$ac_ext >&5
4936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4937 cat >conftest.$ac_ext <<_ACEOF
4938 /* confdefs.h. */
4939 _ACEOF
4940 cat confdefs.h >>conftest.$ac_ext
4941 cat >>conftest.$ac_ext <<_ACEOF
4942 /* end confdefs.h. */
4943 #define _FILE_OFFSET_BITS 64
4944 #include <sys/types.h>
4945 /* Check that off_t can represent 2**63 - 1 correctly.
4946 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4947 since some C++ compilers masquerading as C compilers
4948 incorrectly reject 9223372036854775807. */
4949 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4950 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4951 && LARGE_OFF_T % 2147483647 == 1)
4952 ? 1 : -1];
4954 main ()
4958 return 0;
4960 _ACEOF
4961 rm -f conftest.$ac_objext
4962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4963 (eval $ac_compile) 2>conftest.er1
4964 ac_status=$?
4965 grep -v '^ *+' conftest.er1 >conftest.err
4966 rm -f conftest.er1
4967 cat conftest.err >&5
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); } &&
4970 { ac_try='test -z "$ac_c_werror_flag"
4971 || test ! -s conftest.err'
4972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4973 (eval $ac_try) 2>&5
4974 ac_status=$?
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); }; } &&
4977 { ac_try='test -s conftest.$ac_objext'
4978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4979 (eval $ac_try) 2>&5
4980 ac_status=$?
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); }; }; then
4983 ac_cv_sys_file_offset_bits=64; break
4984 else
4985 echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.$ac_ext >&5
4989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4990 break
4991 done
4993 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4994 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4995 if test "$ac_cv_sys_file_offset_bits" != no; then
4997 cat >>confdefs.h <<_ACEOF
4998 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4999 _ACEOF
5002 rm -f conftest*
5003 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5004 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5005 if test "${ac_cv_sys_large_files+set}" = set; then
5006 echo $ECHO_N "(cached) $ECHO_C" >&6
5007 else
5008 while :; do
5009 ac_cv_sys_large_files=no
5010 cat >conftest.$ac_ext <<_ACEOF
5011 /* confdefs.h. */
5012 _ACEOF
5013 cat confdefs.h >>conftest.$ac_ext
5014 cat >>conftest.$ac_ext <<_ACEOF
5015 /* end confdefs.h. */
5016 #include <sys/types.h>
5017 /* Check that off_t can represent 2**63 - 1 correctly.
5018 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5019 since some C++ compilers masquerading as C compilers
5020 incorrectly reject 9223372036854775807. */
5021 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5022 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5023 && LARGE_OFF_T % 2147483647 == 1)
5024 ? 1 : -1];
5026 main ()
5030 return 0;
5032 _ACEOF
5033 rm -f conftest.$ac_objext
5034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5035 (eval $ac_compile) 2>conftest.er1
5036 ac_status=$?
5037 grep -v '^ *+' conftest.er1 >conftest.err
5038 rm -f conftest.er1
5039 cat conftest.err >&5
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); } &&
5042 { ac_try='test -z "$ac_c_werror_flag"
5043 || test ! -s conftest.err'
5044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5045 (eval $ac_try) 2>&5
5046 ac_status=$?
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; } &&
5049 { ac_try='test -s conftest.$ac_objext'
5050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5051 (eval $ac_try) 2>&5
5052 ac_status=$?
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); }; }; then
5055 break
5056 else
5057 echo "$as_me: failed program was:" >&5
5058 sed 's/^/| /' conftest.$ac_ext >&5
5061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5062 cat >conftest.$ac_ext <<_ACEOF
5063 /* confdefs.h. */
5064 _ACEOF
5065 cat confdefs.h >>conftest.$ac_ext
5066 cat >>conftest.$ac_ext <<_ACEOF
5067 /* end confdefs.h. */
5068 #define _LARGE_FILES 1
5069 #include <sys/types.h>
5070 /* Check that off_t can represent 2**63 - 1 correctly.
5071 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5072 since some C++ compilers masquerading as C compilers
5073 incorrectly reject 9223372036854775807. */
5074 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5075 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5076 && LARGE_OFF_T % 2147483647 == 1)
5077 ? 1 : -1];
5079 main ()
5083 return 0;
5085 _ACEOF
5086 rm -f conftest.$ac_objext
5087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5088 (eval $ac_compile) 2>conftest.er1
5089 ac_status=$?
5090 grep -v '^ *+' conftest.er1 >conftest.err
5091 rm -f conftest.er1
5092 cat conftest.err >&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } &&
5095 { ac_try='test -z "$ac_c_werror_flag"
5096 || test ! -s conftest.err'
5097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5098 (eval $ac_try) 2>&5
5099 ac_status=$?
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); }; } &&
5102 { ac_try='test -s conftest.$ac_objext'
5103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5104 (eval $ac_try) 2>&5
5105 ac_status=$?
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); }; }; then
5108 ac_cv_sys_large_files=1; break
5109 else
5110 echo "$as_me: failed program was:" >&5
5111 sed 's/^/| /' conftest.$ac_ext >&5
5114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5115 break
5116 done
5118 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5119 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5120 if test "$ac_cv_sys_large_files" != no; then
5122 cat >>confdefs.h <<_ACEOF
5123 #define _LARGE_FILES $ac_cv_sys_large_files
5124 _ACEOF
5127 rm -f conftest*
5130 case `pwd` in
5131 *\ * | *\ *)
5132 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5133 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5134 esac
5138 macro_version='2.2.6'
5139 macro_revision='1.3012'
5153 ltmain="$ac_aux_dir/ltmain.sh"
5155 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5156 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5157 if test "${lt_cv_path_SED+set}" = set; then
5158 echo $ECHO_N "(cached) $ECHO_C" >&6
5159 else
5160 # Loop through the user's path and test for sed and gsed.
5161 # Then use that list of sed's as ones to test for truncation.
5162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163 for as_dir in $PATH
5165 IFS=$as_save_IFS
5166 test -z "$as_dir" && as_dir=.
5167 for lt_ac_prog in sed gsed; do
5168 for ac_exec_ext in '' $ac_executable_extensions; do
5169 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5170 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5172 done
5173 done
5174 done
5175 IFS=$as_save_IFS
5176 lt_ac_max=0
5177 lt_ac_count=0
5178 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5179 # along with /bin/sed that truncates output.
5180 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5181 test ! -f $lt_ac_sed && continue
5182 cat /dev/null > conftest.in
5183 lt_ac_count=0
5184 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5185 # Check for GNU sed and select it if it is found.
5186 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5187 lt_cv_path_SED=$lt_ac_sed
5188 break
5190 while true; do
5191 cat conftest.in conftest.in >conftest.tmp
5192 mv conftest.tmp conftest.in
5193 cp conftest.in conftest.nl
5194 echo >>conftest.nl
5195 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5196 cmp -s conftest.out conftest.nl || break
5197 # 10000 chars as input seems more than enough
5198 test $lt_ac_count -gt 10 && break
5199 lt_ac_count=`expr $lt_ac_count + 1`
5200 if test $lt_ac_count -gt $lt_ac_max; then
5201 lt_ac_max=$lt_ac_count
5202 lt_cv_path_SED=$lt_ac_sed
5204 done
5205 done
5209 SED=$lt_cv_path_SED
5211 echo "$as_me:$LINENO: result: $SED" >&5
5212 echo "${ECHO_T}$SED" >&6
5214 test -z "$SED" && SED=sed
5215 Xsed="$SED -e 1s/^X//"
5227 echo "$as_me:$LINENO: checking for fgrep" >&5
5228 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5229 if test "${ac_cv_prog_fgrep+set}" = set; then
5230 echo $ECHO_N "(cached) $ECHO_C" >&6
5231 else
5232 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5233 then ac_cv_prog_fgrep='grep -F'
5234 else ac_cv_prog_fgrep='fgrep'
5237 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5238 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5239 FGREP=$ac_cv_prog_fgrep
5242 test -z "$GREP" && GREP=grep
5262 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5263 if test "${with_gnu_ld+set}" = set; then
5264 withval="$with_gnu_ld"
5265 test "$withval" = no || with_gnu_ld=yes
5266 else
5267 with_gnu_ld=no
5269 ac_prog=ld
5270 if test "$GCC" = yes; then
5271 # Check if gcc -print-prog-name=ld gives a path.
5272 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5273 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5274 case $host in
5275 *-*-mingw*)
5276 # gcc leaves a trailing carriage return which upsets mingw
5277 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5279 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5280 esac
5281 case $ac_prog in
5282 # Accept absolute paths.
5283 [\\/]* | ?:[\\/]*)
5284 re_direlt='/[^/][^/]*/\.\./'
5285 # Canonicalize the pathname of ld
5286 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5287 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5288 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5289 done
5290 test -z "$LD" && LD="$ac_prog"
5293 # If it fails, then pretend we aren't using GCC.
5294 ac_prog=ld
5297 # If it is relative, then search for the first ld in PATH.
5298 with_gnu_ld=unknown
5300 esac
5301 elif test "$with_gnu_ld" = yes; then
5302 echo "$as_me:$LINENO: checking for GNU ld" >&5
5303 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5304 else
5305 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5306 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5308 if test "${lt_cv_path_LD+set}" = set; then
5309 echo $ECHO_N "(cached) $ECHO_C" >&6
5310 else
5311 if test -z "$LD"; then
5312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5313 for ac_dir in $PATH; do
5314 IFS="$lt_save_ifs"
5315 test -z "$ac_dir" && ac_dir=.
5316 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5317 lt_cv_path_LD="$ac_dir/$ac_prog"
5318 # Check to see if the program is GNU ld. I'd rather use --version,
5319 # but apparently some variants of GNU ld only accept -v.
5320 # Break only if it was the GNU/non-GNU ld that we prefer.
5321 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5322 *GNU* | *'with BFD'*)
5323 test "$with_gnu_ld" != no && break
5326 test "$with_gnu_ld" != yes && break
5328 esac
5330 done
5331 IFS="$lt_save_ifs"
5332 else
5333 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5337 LD="$lt_cv_path_LD"
5338 if test -n "$LD"; then
5339 echo "$as_me:$LINENO: result: $LD" >&5
5340 echo "${ECHO_T}$LD" >&6
5341 else
5342 echo "$as_me:$LINENO: result: no" >&5
5343 echo "${ECHO_T}no" >&6
5345 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5346 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5347 { (exit 1); exit 1; }; }
5348 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5349 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5350 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5351 echo $ECHO_N "(cached) $ECHO_C" >&6
5352 else
5353 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5354 case `$LD -v 2>&1 </dev/null` in
5355 *GNU* | *'with BFD'*)
5356 lt_cv_prog_gnu_ld=yes
5359 lt_cv_prog_gnu_ld=no
5361 esac
5363 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5364 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5365 with_gnu_ld=$lt_cv_prog_gnu_ld
5375 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5376 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5377 if test "${lt_cv_path_NM+set}" = set; then
5378 echo $ECHO_N "(cached) $ECHO_C" >&6
5379 else
5380 if test -n "$NM"; then
5381 # Let the user override the test.
5382 lt_cv_path_NM="$NM"
5383 else
5384 lt_nm_to_check="${ac_tool_prefix}nm"
5385 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5386 lt_nm_to_check="$lt_nm_to_check nm"
5388 for lt_tmp_nm in $lt_nm_to_check; do
5389 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5390 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5391 IFS="$lt_save_ifs"
5392 test -z "$ac_dir" && ac_dir=.
5393 tmp_nm="$ac_dir/$lt_tmp_nm"
5394 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5395 # Check to see if the nm accepts a BSD-compat flag.
5396 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5397 # nm: unknown option "B" ignored
5398 # Tru64's nm complains that /dev/null is an invalid object file
5399 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5400 */dev/null* | *'Invalid file or object type'*)
5401 lt_cv_path_NM="$tmp_nm -B"
5402 break
5405 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5406 */dev/null*)
5407 lt_cv_path_NM="$tmp_nm -p"
5408 break
5411 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5412 continue # so that we can try to find one that supports BSD flags
5414 esac
5416 esac
5418 done
5419 IFS="$lt_save_ifs"
5420 done
5421 : ${lt_cv_path_NM=no}
5424 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5425 echo "${ECHO_T}$lt_cv_path_NM" >&6
5426 if test "$lt_cv_path_NM" != "no"; then
5427 NM="$lt_cv_path_NM"
5428 else
5429 # Didn't find any BSD compatible name lister, look for dumpbin.
5430 if test -n "$ac_tool_prefix"; then
5431 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5433 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5434 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5435 echo "$as_me:$LINENO: checking for $ac_word" >&5
5436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5437 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5438 echo $ECHO_N "(cached) $ECHO_C" >&6
5439 else
5440 if test -n "$DUMPBIN"; then
5441 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5442 else
5443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444 for as_dir in $PATH
5446 IFS=$as_save_IFS
5447 test -z "$as_dir" && as_dir=.
5448 for ac_exec_ext in '' $ac_executable_extensions; do
5449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5450 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5452 break 2
5454 done
5455 done
5459 DUMPBIN=$ac_cv_prog_DUMPBIN
5460 if test -n "$DUMPBIN"; then
5461 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5462 echo "${ECHO_T}$DUMPBIN" >&6
5463 else
5464 echo "$as_me:$LINENO: result: no" >&5
5465 echo "${ECHO_T}no" >&6
5468 test -n "$DUMPBIN" && break
5469 done
5471 if test -z "$DUMPBIN"; then
5472 ac_ct_DUMPBIN=$DUMPBIN
5473 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5475 # Extract the first word of "$ac_prog", so it can be a program name with args.
5476 set dummy $ac_prog; ac_word=$2
5477 echo "$as_me:$LINENO: checking for $ac_word" >&5
5478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5479 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5480 echo $ECHO_N "(cached) $ECHO_C" >&6
5481 else
5482 if test -n "$ac_ct_DUMPBIN"; then
5483 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5484 else
5485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486 for as_dir in $PATH
5488 IFS=$as_save_IFS
5489 test -z "$as_dir" && as_dir=.
5490 for ac_exec_ext in '' $ac_executable_extensions; do
5491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5492 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5494 break 2
5496 done
5497 done
5501 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5502 if test -n "$ac_ct_DUMPBIN"; then
5503 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5504 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5505 else
5506 echo "$as_me:$LINENO: result: no" >&5
5507 echo "${ECHO_T}no" >&6
5510 test -n "$ac_ct_DUMPBIN" && break
5511 done
5512 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5514 DUMPBIN=$ac_ct_DUMPBIN
5518 if test "$DUMPBIN" != ":"; then
5519 NM="$DUMPBIN"
5522 test -z "$NM" && NM=nm
5529 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5530 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5531 if test "${lt_cv_nm_interface+set}" = set; then
5532 echo $ECHO_N "(cached) $ECHO_C" >&6
5533 else
5534 lt_cv_nm_interface="BSD nm"
5535 echo "int some_variable = 0;" > conftest.$ac_ext
5536 (eval echo "\"\$as_me:5536: $ac_compile\"" >&5)
5537 (eval "$ac_compile" 2>conftest.err)
5538 cat conftest.err >&5
5539 (eval echo "\"\$as_me:5539: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5540 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5541 cat conftest.err >&5
5542 (eval echo "\"\$as_me:5542: output\"" >&5)
5543 cat conftest.out >&5
5544 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5545 lt_cv_nm_interface="MS dumpbin"
5547 rm -f conftest*
5549 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5550 echo "${ECHO_T}$lt_cv_nm_interface" >&6
5552 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5553 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5554 LN_S=$as_ln_s
5555 if test "$LN_S" = "ln -s"; then
5556 echo "$as_me:$LINENO: result: yes" >&5
5557 echo "${ECHO_T}yes" >&6
5558 else
5559 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5560 echo "${ECHO_T}no, using $LN_S" >&6
5563 # find the maximum length of command line arguments
5564 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5565 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5566 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5567 echo $ECHO_N "(cached) $ECHO_C" >&6
5568 else
5570 teststring="ABCD"
5572 case $build_os in
5573 msdosdjgpp*)
5574 # On DJGPP, this test can blow up pretty badly due to problems in libc
5575 # (any single argument exceeding 2000 bytes causes a buffer overrun
5576 # during glob expansion). Even if it were fixed, the result of this
5577 # check would be larger than it should be.
5578 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5581 gnu*)
5582 # Under GNU Hurd, this test is not required because there is
5583 # no limit to the length of command line arguments.
5584 # Libtool will interpret -1 as no limit whatsoever
5585 lt_cv_sys_max_cmd_len=-1;
5588 cygwin* | mingw* | cegcc*)
5589 # On Win9x/ME, this test blows up -- it succeeds, but takes
5590 # about 5 minutes as the teststring grows exponentially.
5591 # Worse, since 9x/ME are not pre-emptively multitasking,
5592 # you end up with a "frozen" computer, even though with patience
5593 # the test eventually succeeds (with a max line length of 256k).
5594 # Instead, let's just punt: use the minimum linelength reported by
5595 # all of the supported platforms: 8192 (on NT/2K/XP).
5596 lt_cv_sys_max_cmd_len=8192;
5599 amigaos*)
5600 # On AmigaOS with pdksh, this test takes hours, literally.
5601 # So we just punt and use a minimum line length of 8192.
5602 lt_cv_sys_max_cmd_len=8192;
5605 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5606 # This has been around since 386BSD, at least. Likely further.
5607 if test -x /sbin/sysctl; then
5608 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5609 elif test -x /usr/sbin/sysctl; then
5610 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5611 else
5612 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5614 # And add a safety zone
5615 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5616 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5619 interix*)
5620 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5621 lt_cv_sys_max_cmd_len=196608
5624 osf*)
5625 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5626 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5627 # nice to cause kernel panics so lets avoid the loop below.
5628 # First set a reasonable default.
5629 lt_cv_sys_max_cmd_len=16384
5631 if test -x /sbin/sysconfig; then
5632 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5633 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5634 esac
5637 sco3.2v5*)
5638 lt_cv_sys_max_cmd_len=102400
5640 sysv5* | sco5v6* | sysv4.2uw2*)
5641 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5642 if test -n "$kargmax"; then
5643 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5644 else
5645 lt_cv_sys_max_cmd_len=32768
5649 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5650 if test -n "$lt_cv_sys_max_cmd_len"; then
5651 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5652 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5653 else
5654 # Make teststring a little bigger before we do anything with it.
5655 # a 1K string should be a reasonable start.
5656 for i in 1 2 3 4 5 6 7 8 ; do
5657 teststring=$teststring$teststring
5658 done
5659 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5660 # If test is not a shell built-in, we'll probably end up computing a
5661 # maximum length that is only half of the actual maximum length, but
5662 # we can't tell.
5663 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5664 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5665 test $i != 17 # 1/2 MB should be enough
5667 i=`expr $i + 1`
5668 teststring=$teststring$teststring
5669 done
5670 # Only check the string length outside the loop.
5671 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5672 teststring=
5673 # Add a significant safety factor because C++ compilers can tack on
5674 # massive amounts of additional arguments before passing them to the
5675 # linker. It appears as though 1/2 is a usable value.
5676 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5679 esac
5683 if test -n $lt_cv_sys_max_cmd_len ; then
5684 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5685 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5686 else
5687 echo "$as_me:$LINENO: result: none" >&5
5688 echo "${ECHO_T}none" >&6
5690 max_cmd_len=$lt_cv_sys_max_cmd_len
5697 : ${CP="cp -f"}
5698 : ${MV="mv -f"}
5699 : ${RM="rm -f"}
5701 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5702 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5703 # Try some XSI features
5704 xsi_shell=no
5705 ( _lt_dummy="a/b/c"
5706 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5707 = c,a/b,, \
5708 && eval 'test $(( 1 + 1 )) -eq 2 \
5709 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5710 && xsi_shell=yes
5711 echo "$as_me:$LINENO: result: $xsi_shell" >&5
5712 echo "${ECHO_T}$xsi_shell" >&6
5715 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5716 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5717 lt_shell_append=no
5718 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5719 >/dev/null 2>&1 \
5720 && lt_shell_append=yes
5721 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5722 echo "${ECHO_T}$lt_shell_append" >&6
5725 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5726 lt_unset=unset
5727 else
5728 lt_unset=false
5735 # test EBCDIC or ASCII
5736 case `echo X|tr X '\101'` in
5737 A) # ASCII based system
5738 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5739 lt_SP2NL='tr \040 \012'
5740 lt_NL2SP='tr \015\012 \040\040'
5742 *) # EBCDIC based system
5743 lt_SP2NL='tr \100 \n'
5744 lt_NL2SP='tr \r\n \100\100'
5746 esac
5756 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5757 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5758 if test "${lt_cv_ld_reload_flag+set}" = set; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 else
5761 lt_cv_ld_reload_flag='-r'
5763 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5764 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5765 reload_flag=$lt_cv_ld_reload_flag
5766 case $reload_flag in
5767 "" | " "*) ;;
5768 *) reload_flag=" $reload_flag" ;;
5769 esac
5770 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5771 case $host_os in
5772 darwin*)
5773 if test "$GCC" = yes; then
5774 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5775 else
5776 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5779 esac
5789 if test -n "$ac_tool_prefix"; then
5790 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5791 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5792 echo "$as_me:$LINENO: checking for $ac_word" >&5
5793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5794 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5796 else
5797 if test -n "$OBJDUMP"; then
5798 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5799 else
5800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5801 for as_dir in $PATH
5803 IFS=$as_save_IFS
5804 test -z "$as_dir" && as_dir=.
5805 for ac_exec_ext in '' $ac_executable_extensions; do
5806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5807 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5809 break 2
5811 done
5812 done
5816 OBJDUMP=$ac_cv_prog_OBJDUMP
5817 if test -n "$OBJDUMP"; then
5818 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5819 echo "${ECHO_T}$OBJDUMP" >&6
5820 else
5821 echo "$as_me:$LINENO: result: no" >&5
5822 echo "${ECHO_T}no" >&6
5826 if test -z "$ac_cv_prog_OBJDUMP"; then
5827 ac_ct_OBJDUMP=$OBJDUMP
5828 # Extract the first word of "objdump", so it can be a program name with args.
5829 set dummy objdump; ac_word=$2
5830 echo "$as_me:$LINENO: checking for $ac_word" >&5
5831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5832 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5833 echo $ECHO_N "(cached) $ECHO_C" >&6
5834 else
5835 if test -n "$ac_ct_OBJDUMP"; then
5836 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5837 else
5838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839 for as_dir in $PATH
5841 IFS=$as_save_IFS
5842 test -z "$as_dir" && as_dir=.
5843 for ac_exec_ext in '' $ac_executable_extensions; do
5844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5845 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5847 break 2
5849 done
5850 done
5852 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5855 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5856 if test -n "$ac_ct_OBJDUMP"; then
5857 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5858 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5859 else
5860 echo "$as_me:$LINENO: result: no" >&5
5861 echo "${ECHO_T}no" >&6
5864 OBJDUMP=$ac_ct_OBJDUMP
5865 else
5866 OBJDUMP="$ac_cv_prog_OBJDUMP"
5869 test -z "$OBJDUMP" && OBJDUMP=objdump
5879 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5880 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5881 if test "${lt_cv_deplibs_check_method+set}" = set; then
5882 echo $ECHO_N "(cached) $ECHO_C" >&6
5883 else
5884 lt_cv_file_magic_cmd='$MAGIC_CMD'
5885 lt_cv_file_magic_test_file=
5886 lt_cv_deplibs_check_method='unknown'
5887 # Need to set the preceding variable on all platforms that support
5888 # interlibrary dependencies.
5889 # 'none' -- dependencies not supported.
5890 # `unknown' -- same as none, but documents that we really don't know.
5891 # 'pass_all' -- all dependencies passed with no checks.
5892 # 'test_compile' -- check by making test program.
5893 # 'file_magic [[regex]]' -- check by looking for files in library path
5894 # which responds to the $file_magic_cmd with a given extended regex.
5895 # If you have `file' or equivalent on your system and you're not sure
5896 # whether `pass_all' will *always* work, you probably want this one.
5898 case $host_os in
5899 aix[4-9]*)
5900 lt_cv_deplibs_check_method=pass_all
5903 beos*)
5904 lt_cv_deplibs_check_method=pass_all
5907 bsdi[45]*)
5908 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5909 lt_cv_file_magic_cmd='/usr/bin/file -L'
5910 lt_cv_file_magic_test_file=/shlib/libc.so
5913 cygwin*)
5914 # func_win32_libid is a shell function defined in ltmain.sh
5915 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5916 lt_cv_file_magic_cmd='func_win32_libid'
5919 mingw* | pw32*)
5920 # Base MSYS/MinGW do not provide the 'file' command needed by
5921 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5922 # unless we find 'file', for example because we are cross-compiling.
5923 if ( file / ) >/dev/null 2>&1; then
5924 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5925 lt_cv_file_magic_cmd='func_win32_libid'
5926 else
5927 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5928 lt_cv_file_magic_cmd='$OBJDUMP -f'
5932 cegcc)
5933 # use the weaker test based on 'objdump'. See mingw*.
5934 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5935 lt_cv_file_magic_cmd='$OBJDUMP -f'
5938 darwin* | rhapsody*)
5939 lt_cv_deplibs_check_method=pass_all
5942 freebsd* | dragonfly*)
5943 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5944 case $host_cpu in
5945 i*86 )
5946 # Not sure whether the presence of OpenBSD here was a mistake.
5947 # Let's accept both of them until this is cleared up.
5948 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5949 lt_cv_file_magic_cmd=/usr/bin/file
5950 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5952 esac
5953 else
5954 lt_cv_deplibs_check_method=pass_all
5958 gnu*)
5959 lt_cv_deplibs_check_method=pass_all
5962 hpux10.20* | hpux11*)
5963 lt_cv_file_magic_cmd=/usr/bin/file
5964 case $host_cpu in
5965 ia64*)
5966 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5967 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5969 hppa*64*)
5970 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]'
5971 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5974 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5975 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5977 esac
5980 interix[3-9]*)
5981 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5982 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5985 irix5* | irix6* | nonstopux*)
5986 case $LD in
5987 *-32|*"-32 ") libmagic=32-bit;;
5988 *-n32|*"-n32 ") libmagic=N32;;
5989 *-64|*"-64 ") libmagic=64-bit;;
5990 *) libmagic=never-match;;
5991 esac
5992 lt_cv_deplibs_check_method=pass_all
5995 # This must be Linux ELF.
5996 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5997 lt_cv_deplibs_check_method=pass_all
6000 netbsd*)
6001 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6002 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6003 else
6004 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6008 newos6*)
6009 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6010 lt_cv_file_magic_cmd=/usr/bin/file
6011 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6014 *nto* | *qnx*)
6015 lt_cv_deplibs_check_method=pass_all
6018 openbsd*)
6019 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6020 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6021 else
6022 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6026 osf3* | osf4* | osf5*)
6027 lt_cv_deplibs_check_method=pass_all
6030 rdos*)
6031 lt_cv_deplibs_check_method=pass_all
6034 solaris*)
6035 lt_cv_deplibs_check_method=pass_all
6038 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6039 lt_cv_deplibs_check_method=pass_all
6042 sysv4 | sysv4.3*)
6043 case $host_vendor in
6044 motorola)
6045 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]'
6046 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6048 ncr)
6049 lt_cv_deplibs_check_method=pass_all
6051 sequent)
6052 lt_cv_file_magic_cmd='/bin/file'
6053 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6055 sni)
6056 lt_cv_file_magic_cmd='/bin/file'
6057 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6058 lt_cv_file_magic_test_file=/lib/libc.so
6060 siemens)
6061 lt_cv_deplibs_check_method=pass_all
6064 lt_cv_deplibs_check_method=pass_all
6066 esac
6069 tpf*)
6070 lt_cv_deplibs_check_method=pass_all
6072 esac
6075 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6076 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6077 file_magic_cmd=$lt_cv_file_magic_cmd
6078 deplibs_check_method=$lt_cv_deplibs_check_method
6079 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6092 if test -n "$ac_tool_prefix"; then
6093 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6094 set dummy ${ac_tool_prefix}ar; ac_word=$2
6095 echo "$as_me:$LINENO: checking for $ac_word" >&5
6096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6097 if test "${ac_cv_prog_AR+set}" = set; then
6098 echo $ECHO_N "(cached) $ECHO_C" >&6
6099 else
6100 if test -n "$AR"; then
6101 ac_cv_prog_AR="$AR" # Let the user override the test.
6102 else
6103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104 for as_dir in $PATH
6106 IFS=$as_save_IFS
6107 test -z "$as_dir" && as_dir=.
6108 for ac_exec_ext in '' $ac_executable_extensions; do
6109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6110 ac_cv_prog_AR="${ac_tool_prefix}ar"
6111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6112 break 2
6114 done
6115 done
6119 AR=$ac_cv_prog_AR
6120 if test -n "$AR"; then
6121 echo "$as_me:$LINENO: result: $AR" >&5
6122 echo "${ECHO_T}$AR" >&6
6123 else
6124 echo "$as_me:$LINENO: result: no" >&5
6125 echo "${ECHO_T}no" >&6
6129 if test -z "$ac_cv_prog_AR"; then
6130 ac_ct_AR=$AR
6131 # Extract the first word of "ar", so it can be a program name with args.
6132 set dummy ar; ac_word=$2
6133 echo "$as_me:$LINENO: checking for $ac_word" >&5
6134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6135 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6136 echo $ECHO_N "(cached) $ECHO_C" >&6
6137 else
6138 if test -n "$ac_ct_AR"; then
6139 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6140 else
6141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142 for as_dir in $PATH
6144 IFS=$as_save_IFS
6145 test -z "$as_dir" && as_dir=.
6146 for ac_exec_ext in '' $ac_executable_extensions; do
6147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6148 ac_cv_prog_ac_ct_AR="ar"
6149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6150 break 2
6152 done
6153 done
6155 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6158 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6159 if test -n "$ac_ct_AR"; then
6160 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6161 echo "${ECHO_T}$ac_ct_AR" >&6
6162 else
6163 echo "$as_me:$LINENO: result: no" >&5
6164 echo "${ECHO_T}no" >&6
6167 AR=$ac_ct_AR
6168 else
6169 AR="$ac_cv_prog_AR"
6172 test -z "$AR" && AR=ar
6173 test -z "$AR_FLAGS" && AR_FLAGS=cru
6185 if test -n "$ac_tool_prefix"; then
6186 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6187 set dummy ${ac_tool_prefix}strip; ac_word=$2
6188 echo "$as_me:$LINENO: checking for $ac_word" >&5
6189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6190 if test "${ac_cv_prog_STRIP+set}" = set; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
6192 else
6193 if test -n "$STRIP"; then
6194 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6195 else
6196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197 for as_dir in $PATH
6199 IFS=$as_save_IFS
6200 test -z "$as_dir" && as_dir=.
6201 for ac_exec_ext in '' $ac_executable_extensions; do
6202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6203 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6205 break 2
6207 done
6208 done
6212 STRIP=$ac_cv_prog_STRIP
6213 if test -n "$STRIP"; then
6214 echo "$as_me:$LINENO: result: $STRIP" >&5
6215 echo "${ECHO_T}$STRIP" >&6
6216 else
6217 echo "$as_me:$LINENO: result: no" >&5
6218 echo "${ECHO_T}no" >&6
6222 if test -z "$ac_cv_prog_STRIP"; then
6223 ac_ct_STRIP=$STRIP
6224 # Extract the first word of "strip", so it can be a program name with args.
6225 set dummy strip; ac_word=$2
6226 echo "$as_me:$LINENO: checking for $ac_word" >&5
6227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6228 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
6230 else
6231 if test -n "$ac_ct_STRIP"; then
6232 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6233 else
6234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235 for as_dir in $PATH
6237 IFS=$as_save_IFS
6238 test -z "$as_dir" && as_dir=.
6239 for ac_exec_ext in '' $ac_executable_extensions; do
6240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6241 ac_cv_prog_ac_ct_STRIP="strip"
6242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6243 break 2
6245 done
6246 done
6248 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6251 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6252 if test -n "$ac_ct_STRIP"; then
6253 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6254 echo "${ECHO_T}$ac_ct_STRIP" >&6
6255 else
6256 echo "$as_me:$LINENO: result: no" >&5
6257 echo "${ECHO_T}no" >&6
6260 STRIP=$ac_ct_STRIP
6261 else
6262 STRIP="$ac_cv_prog_STRIP"
6265 test -z "$STRIP" && STRIP=:
6272 if test -n "$ac_tool_prefix"; then
6273 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6274 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6275 echo "$as_me:$LINENO: checking for $ac_word" >&5
6276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6277 if test "${ac_cv_prog_RANLIB+set}" = set; then
6278 echo $ECHO_N "(cached) $ECHO_C" >&6
6279 else
6280 if test -n "$RANLIB"; then
6281 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6282 else
6283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284 for as_dir in $PATH
6286 IFS=$as_save_IFS
6287 test -z "$as_dir" && as_dir=.
6288 for ac_exec_ext in '' $ac_executable_extensions; do
6289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6290 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6292 break 2
6294 done
6295 done
6299 RANLIB=$ac_cv_prog_RANLIB
6300 if test -n "$RANLIB"; then
6301 echo "$as_me:$LINENO: result: $RANLIB" >&5
6302 echo "${ECHO_T}$RANLIB" >&6
6303 else
6304 echo "$as_me:$LINENO: result: no" >&5
6305 echo "${ECHO_T}no" >&6
6309 if test -z "$ac_cv_prog_RANLIB"; then
6310 ac_ct_RANLIB=$RANLIB
6311 # Extract the first word of "ranlib", so it can be a program name with args.
6312 set dummy ranlib; ac_word=$2
6313 echo "$as_me:$LINENO: checking for $ac_word" >&5
6314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6315 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6316 echo $ECHO_N "(cached) $ECHO_C" >&6
6317 else
6318 if test -n "$ac_ct_RANLIB"; then
6319 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6320 else
6321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322 for as_dir in $PATH
6324 IFS=$as_save_IFS
6325 test -z "$as_dir" && as_dir=.
6326 for ac_exec_ext in '' $ac_executable_extensions; do
6327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6328 ac_cv_prog_ac_ct_RANLIB="ranlib"
6329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6330 break 2
6332 done
6333 done
6335 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6338 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6339 if test -n "$ac_ct_RANLIB"; then
6340 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6341 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6342 else
6343 echo "$as_me:$LINENO: result: no" >&5
6344 echo "${ECHO_T}no" >&6
6347 RANLIB=$ac_ct_RANLIB
6348 else
6349 RANLIB="$ac_cv_prog_RANLIB"
6352 test -z "$RANLIB" && RANLIB=:
6359 # Determine commands to create old-style static archives.
6360 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6361 old_postinstall_cmds='chmod 644 $oldlib'
6362 old_postuninstall_cmds=
6364 if test -n "$RANLIB"; then
6365 case $host_os in
6366 openbsd*)
6367 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6370 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6372 esac
6373 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6409 # If no C compiler was specified, use CC.
6410 LTCC=${LTCC-"$CC"}
6412 # If no C compiler flags were specified, use CFLAGS.
6413 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6415 # Allow CC to be a program name with arguments.
6416 compiler=$CC
6419 # Check for command to grab the raw symbol name followed by C symbol from nm.
6420 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6421 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6422 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6423 echo $ECHO_N "(cached) $ECHO_C" >&6
6424 else
6426 # These are sane defaults that work on at least a few old systems.
6427 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6429 # Character class describing NM global symbol codes.
6430 symcode='[BCDEGRST]'
6432 # Regexp to match symbols that can be accessed directly from C.
6433 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6435 # Define system-specific variables.
6436 case $host_os in
6437 aix*)
6438 symcode='[BCDT]'
6440 cygwin* | mingw* | pw32* | cegcc*)
6441 symcode='[ABCDGISTW]'
6443 hpux*)
6444 if test "$host_cpu" = ia64; then
6445 symcode='[ABCDEGRST]'
6448 irix* | nonstopux*)
6449 symcode='[BCDEGRST]'
6451 osf*)
6452 symcode='[BCDEGQRST]'
6454 solaris*)
6455 symcode='[BDRT]'
6457 sco3.2v5*)
6458 symcode='[DT]'
6460 sysv4.2uw2*)
6461 symcode='[DT]'
6463 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6464 symcode='[ABDT]'
6466 sysv4)
6467 symcode='[DFNSTU]'
6469 esac
6471 # If we're using GNU nm, then use its standard symbol codes.
6472 case `$NM -V 2>&1` in
6473 *GNU* | *'with BFD'*)
6474 symcode='[ABCDGIRSTW]' ;;
6475 esac
6477 # Transform an extracted symbol line into a proper C declaration.
6478 # Some systems (esp. on ia64) link data and code symbols differently,
6479 # so use this general approach.
6480 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6482 # Transform an extracted symbol line into symbol name and symbol address
6483 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6484 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6486 # Handle CRLF in mingw tool chain
6487 opt_cr=
6488 case $build_os in
6489 mingw*)
6490 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6492 esac
6494 # Try without a prefix underscore, then with it.
6495 for ac_symprfx in "" "_"; do
6497 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6498 symxfrm="\\1 $ac_symprfx\\2 \\2"
6500 # Write the raw and C identifiers.
6501 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6502 # Fake it for dumpbin and say T for any non-static function
6503 # and D for any global variable.
6504 # Also find C++ and __fastcall symbols from MSVC++,
6505 # which start with @ or ?.
6506 lt_cv_sys_global_symbol_pipe="$AWK '"\
6507 " {last_section=section; section=\$ 3};"\
6508 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6509 " \$ 0!~/External *\|/{next};"\
6510 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6511 " {if(hide[section]) next};"\
6512 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6513 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6514 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6515 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6516 " ' prfx=^$ac_symprfx"
6517 else
6518 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6521 # Check to see that the pipe works correctly.
6522 pipe_works=no
6524 rm -f conftest*
6525 cat > conftest.$ac_ext <<_LT_EOF
6526 #ifdef __cplusplus
6527 extern "C" {
6528 #endif
6529 char nm_test_var;
6530 void nm_test_func(void);
6531 void nm_test_func(void){}
6532 #ifdef __cplusplus
6534 #endif
6535 int main(){nm_test_var='a';nm_test_func();return(0);}
6536 _LT_EOF
6538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6539 (eval $ac_compile) 2>&5
6540 ac_status=$?
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); }; then
6543 # Now try to grab the symbols.
6544 nlist=conftest.nm
6545 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6546 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6547 ac_status=$?
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); } && test -s "$nlist"; then
6550 # Try sorting and uniquifying the output.
6551 if sort "$nlist" | uniq > "$nlist"T; then
6552 mv -f "$nlist"T "$nlist"
6553 else
6554 rm -f "$nlist"T
6557 # Make sure that we snagged all the symbols we need.
6558 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6559 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6560 cat <<_LT_EOF > conftest.$ac_ext
6561 #ifdef __cplusplus
6562 extern "C" {
6563 #endif
6565 _LT_EOF
6566 # Now generate the symbol file.
6567 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6569 cat <<_LT_EOF >> conftest.$ac_ext
6571 /* The mapping between symbol names and symbols. */
6572 const struct {
6573 const char *name;
6574 void *address;
6576 lt__PROGRAM__LTX_preloaded_symbols[] =
6578 { "@PROGRAM@", (void *) 0 },
6579 _LT_EOF
6580 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6581 cat <<\_LT_EOF >> conftest.$ac_ext
6582 {0, (void *) 0}
6585 /* This works around a problem in FreeBSD linker */
6586 #ifdef FREEBSD_WORKAROUND
6587 static const void *lt_preloaded_setup() {
6588 return lt__PROGRAM__LTX_preloaded_symbols;
6590 #endif
6592 #ifdef __cplusplus
6594 #endif
6595 _LT_EOF
6596 # Now try linking the two files.
6597 mv conftest.$ac_objext conftstm.$ac_objext
6598 lt_save_LIBS="$LIBS"
6599 lt_save_CFLAGS="$CFLAGS"
6600 LIBS="conftstm.$ac_objext"
6601 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6603 (eval $ac_link) 2>&5
6604 ac_status=$?
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6607 pipe_works=yes
6609 LIBS="$lt_save_LIBS"
6610 CFLAGS="$lt_save_CFLAGS"
6611 else
6612 echo "cannot find nm_test_func in $nlist" >&5
6614 else
6615 echo "cannot find nm_test_var in $nlist" >&5
6617 else
6618 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6620 else
6621 echo "$progname: failed program was:" >&5
6622 cat conftest.$ac_ext >&5
6624 rm -rf conftest* conftst*
6626 # Do not use the global_symbol_pipe unless it works.
6627 if test "$pipe_works" = yes; then
6628 break
6629 else
6630 lt_cv_sys_global_symbol_pipe=
6632 done
6636 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6637 lt_cv_sys_global_symbol_to_cdecl=
6639 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6640 echo "$as_me:$LINENO: result: failed" >&5
6641 echo "${ECHO_T}failed" >&6
6642 else
6643 echo "$as_me:$LINENO: result: ok" >&5
6644 echo "${ECHO_T}ok" >&6
6668 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6669 if test "${enable_libtool_lock+set}" = set; then
6670 enableval="$enable_libtool_lock"
6673 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6675 # Some flags need to be propagated to the compiler or linker for good
6676 # libtool support.
6677 case $host in
6678 ia64-*-hpux*)
6679 # Find out which ABI we are using.
6680 echo 'int i;' > conftest.$ac_ext
6681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6682 (eval $ac_compile) 2>&5
6683 ac_status=$?
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); }; then
6686 case `/usr/bin/file conftest.$ac_objext` in
6687 *ELF-32*)
6688 HPUX_IA64_MODE="32"
6690 *ELF-64*)
6691 HPUX_IA64_MODE="64"
6693 esac
6695 rm -rf conftest*
6697 *-*-irix6*)
6698 # Find out which ABI we are using.
6699 echo '#line 6699 "configure"' > conftest.$ac_ext
6700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6701 (eval $ac_compile) 2>&5
6702 ac_status=$?
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); }; then
6705 if test "$lt_cv_prog_gnu_ld" = yes; then
6706 case `/usr/bin/file conftest.$ac_objext` in
6707 *32-bit*)
6708 LD="${LD-ld} -melf32bsmip"
6710 *N32*)
6711 LD="${LD-ld} -melf32bmipn32"
6713 *64-bit*)
6714 LD="${LD-ld} -melf64bmip"
6716 esac
6717 else
6718 case `/usr/bin/file conftest.$ac_objext` in
6719 *32-bit*)
6720 LD="${LD-ld} -32"
6722 *N32*)
6723 LD="${LD-ld} -n32"
6725 *64-bit*)
6726 LD="${LD-ld} -64"
6728 esac
6731 rm -rf conftest*
6734 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6735 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6736 # Find out which ABI we are using.
6737 echo 'int i;' > conftest.$ac_ext
6738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6739 (eval $ac_compile) 2>&5
6740 ac_status=$?
6741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742 (exit $ac_status); }; then
6743 case `/usr/bin/file conftest.o` in
6744 *32-bit*)
6745 case $host in
6746 x86_64-*kfreebsd*-gnu)
6747 LD="${LD-ld} -m elf_i386_fbsd"
6749 x86_64-*linux*)
6750 LD="${LD-ld} -m elf_i386"
6752 ppc64-*linux*|powerpc64-*linux*)
6753 LD="${LD-ld} -m elf32ppclinux"
6755 s390x-*linux*)
6756 LD="${LD-ld} -m elf_s390"
6758 sparc64-*linux*)
6759 LD="${LD-ld} -m elf32_sparc"
6761 esac
6763 *64-bit*)
6764 case $host in
6765 x86_64-*kfreebsd*-gnu)
6766 LD="${LD-ld} -m elf_x86_64_fbsd"
6768 x86_64-*linux*)
6769 LD="${LD-ld} -m elf_x86_64"
6771 ppc*-*linux*|powerpc*-*linux*)
6772 LD="${LD-ld} -m elf64ppc"
6774 s390*-*linux*|s390*-*tpf*)
6775 LD="${LD-ld} -m elf64_s390"
6777 sparc*-*linux*)
6778 LD="${LD-ld} -m elf64_sparc"
6780 esac
6782 esac
6784 rm -rf conftest*
6787 *-*-sco3.2v5*)
6788 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6789 SAVE_CFLAGS="$CFLAGS"
6790 CFLAGS="$CFLAGS -belf"
6791 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6792 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6793 if test "${lt_cv_cc_needs_belf+set}" = set; then
6794 echo $ECHO_N "(cached) $ECHO_C" >&6
6795 else
6796 ac_ext=c
6797 ac_cpp='$CPP $CPPFLAGS'
6798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6802 cat >conftest.$ac_ext <<_ACEOF
6803 /* confdefs.h. */
6804 _ACEOF
6805 cat confdefs.h >>conftest.$ac_ext
6806 cat >>conftest.$ac_ext <<_ACEOF
6807 /* end confdefs.h. */
6810 main ()
6814 return 0;
6816 _ACEOF
6817 rm -f conftest.$ac_objext conftest$ac_exeext
6818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6819 (eval $ac_link) 2>conftest.er1
6820 ac_status=$?
6821 grep -v '^ *+' conftest.er1 >conftest.err
6822 rm -f conftest.er1
6823 cat conftest.err >&5
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); } &&
6826 { ac_try='test -z "$ac_c_werror_flag"
6827 || test ! -s conftest.err'
6828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6829 (eval $ac_try) 2>&5
6830 ac_status=$?
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); }; } &&
6833 { ac_try='test -s conftest$ac_exeext'
6834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6835 (eval $ac_try) 2>&5
6836 ac_status=$?
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); }; }; then
6839 lt_cv_cc_needs_belf=yes
6840 else
6841 echo "$as_me: failed program was:" >&5
6842 sed 's/^/| /' conftest.$ac_ext >&5
6844 lt_cv_cc_needs_belf=no
6846 rm -f conftest.err conftest.$ac_objext \
6847 conftest$ac_exeext conftest.$ac_ext
6848 ac_ext=c
6849 ac_cpp='$CPP $CPPFLAGS'
6850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6855 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6856 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6857 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6858 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6859 CFLAGS="$SAVE_CFLAGS"
6862 sparc*-*solaris*)
6863 # Find out which ABI we are using.
6864 echo 'int i;' > conftest.$ac_ext
6865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6866 (eval $ac_compile) 2>&5
6867 ac_status=$?
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); }; then
6870 case `/usr/bin/file conftest.o` in
6871 *64-bit*)
6872 case $lt_cv_prog_gnu_ld in
6873 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6875 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6876 LD="${LD-ld} -64"
6879 esac
6881 esac
6883 rm -rf conftest*
6885 esac
6887 need_locks="$enable_libtool_lock"
6890 case $host_os in
6891 rhapsody* | darwin*)
6892 if test -n "$ac_tool_prefix"; then
6893 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6894 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6895 echo "$as_me:$LINENO: checking for $ac_word" >&5
6896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6897 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6898 echo $ECHO_N "(cached) $ECHO_C" >&6
6899 else
6900 if test -n "$DSYMUTIL"; then
6901 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6902 else
6903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6904 for as_dir in $PATH
6906 IFS=$as_save_IFS
6907 test -z "$as_dir" && as_dir=.
6908 for ac_exec_ext in '' $ac_executable_extensions; do
6909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6910 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6912 break 2
6914 done
6915 done
6919 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6920 if test -n "$DSYMUTIL"; then
6921 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6922 echo "${ECHO_T}$DSYMUTIL" >&6
6923 else
6924 echo "$as_me:$LINENO: result: no" >&5
6925 echo "${ECHO_T}no" >&6
6929 if test -z "$ac_cv_prog_DSYMUTIL"; then
6930 ac_ct_DSYMUTIL=$DSYMUTIL
6931 # Extract the first word of "dsymutil", so it can be a program name with args.
6932 set dummy dsymutil; ac_word=$2
6933 echo "$as_me:$LINENO: checking for $ac_word" >&5
6934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6935 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6936 echo $ECHO_N "(cached) $ECHO_C" >&6
6937 else
6938 if test -n "$ac_ct_DSYMUTIL"; then
6939 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6940 else
6941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942 for as_dir in $PATH
6944 IFS=$as_save_IFS
6945 test -z "$as_dir" && as_dir=.
6946 for ac_exec_ext in '' $ac_executable_extensions; do
6947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6948 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6950 break 2
6952 done
6953 done
6955 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
6958 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6959 if test -n "$ac_ct_DSYMUTIL"; then
6960 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6961 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
6962 else
6963 echo "$as_me:$LINENO: result: no" >&5
6964 echo "${ECHO_T}no" >&6
6967 DSYMUTIL=$ac_ct_DSYMUTIL
6968 else
6969 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6972 if test -n "$ac_tool_prefix"; then
6973 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6974 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6975 echo "$as_me:$LINENO: checking for $ac_word" >&5
6976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6977 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6978 echo $ECHO_N "(cached) $ECHO_C" >&6
6979 else
6980 if test -n "$NMEDIT"; then
6981 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6982 else
6983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984 for as_dir in $PATH
6986 IFS=$as_save_IFS
6987 test -z "$as_dir" && as_dir=.
6988 for ac_exec_ext in '' $ac_executable_extensions; do
6989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6990 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6992 break 2
6994 done
6995 done
6999 NMEDIT=$ac_cv_prog_NMEDIT
7000 if test -n "$NMEDIT"; then
7001 echo "$as_me:$LINENO: result: $NMEDIT" >&5
7002 echo "${ECHO_T}$NMEDIT" >&6
7003 else
7004 echo "$as_me:$LINENO: result: no" >&5
7005 echo "${ECHO_T}no" >&6
7009 if test -z "$ac_cv_prog_NMEDIT"; then
7010 ac_ct_NMEDIT=$NMEDIT
7011 # Extract the first word of "nmedit", so it can be a program name with args.
7012 set dummy nmedit; ac_word=$2
7013 echo "$as_me:$LINENO: checking for $ac_word" >&5
7014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7015 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7016 echo $ECHO_N "(cached) $ECHO_C" >&6
7017 else
7018 if test -n "$ac_ct_NMEDIT"; then
7019 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7020 else
7021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7022 for as_dir in $PATH
7024 IFS=$as_save_IFS
7025 test -z "$as_dir" && as_dir=.
7026 for ac_exec_ext in '' $ac_executable_extensions; do
7027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7028 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7030 break 2
7032 done
7033 done
7035 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
7038 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7039 if test -n "$ac_ct_NMEDIT"; then
7040 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7041 echo "${ECHO_T}$ac_ct_NMEDIT" >&6
7042 else
7043 echo "$as_me:$LINENO: result: no" >&5
7044 echo "${ECHO_T}no" >&6
7047 NMEDIT=$ac_ct_NMEDIT
7048 else
7049 NMEDIT="$ac_cv_prog_NMEDIT"
7052 if test -n "$ac_tool_prefix"; then
7053 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7054 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7055 echo "$as_me:$LINENO: checking for $ac_word" >&5
7056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7057 if test "${ac_cv_prog_LIPO+set}" = set; then
7058 echo $ECHO_N "(cached) $ECHO_C" >&6
7059 else
7060 if test -n "$LIPO"; then
7061 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7062 else
7063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7064 for as_dir in $PATH
7066 IFS=$as_save_IFS
7067 test -z "$as_dir" && as_dir=.
7068 for ac_exec_ext in '' $ac_executable_extensions; do
7069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7070 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7072 break 2
7074 done
7075 done
7079 LIPO=$ac_cv_prog_LIPO
7080 if test -n "$LIPO"; then
7081 echo "$as_me:$LINENO: result: $LIPO" >&5
7082 echo "${ECHO_T}$LIPO" >&6
7083 else
7084 echo "$as_me:$LINENO: result: no" >&5
7085 echo "${ECHO_T}no" >&6
7089 if test -z "$ac_cv_prog_LIPO"; then
7090 ac_ct_LIPO=$LIPO
7091 # Extract the first word of "lipo", so it can be a program name with args.
7092 set dummy lipo; ac_word=$2
7093 echo "$as_me:$LINENO: checking for $ac_word" >&5
7094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7095 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7096 echo $ECHO_N "(cached) $ECHO_C" >&6
7097 else
7098 if test -n "$ac_ct_LIPO"; then
7099 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7100 else
7101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102 for as_dir in $PATH
7104 IFS=$as_save_IFS
7105 test -z "$as_dir" && as_dir=.
7106 for ac_exec_ext in '' $ac_executable_extensions; do
7107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7108 ac_cv_prog_ac_ct_LIPO="lipo"
7109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7110 break 2
7112 done
7113 done
7115 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
7118 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7119 if test -n "$ac_ct_LIPO"; then
7120 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7121 echo "${ECHO_T}$ac_ct_LIPO" >&6
7122 else
7123 echo "$as_me:$LINENO: result: no" >&5
7124 echo "${ECHO_T}no" >&6
7127 LIPO=$ac_ct_LIPO
7128 else
7129 LIPO="$ac_cv_prog_LIPO"
7132 if test -n "$ac_tool_prefix"; then
7133 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7134 set dummy ${ac_tool_prefix}otool; ac_word=$2
7135 echo "$as_me:$LINENO: checking for $ac_word" >&5
7136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7137 if test "${ac_cv_prog_OTOOL+set}" = set; then
7138 echo $ECHO_N "(cached) $ECHO_C" >&6
7139 else
7140 if test -n "$OTOOL"; then
7141 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7142 else
7143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7144 for as_dir in $PATH
7146 IFS=$as_save_IFS
7147 test -z "$as_dir" && as_dir=.
7148 for ac_exec_ext in '' $ac_executable_extensions; do
7149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7150 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7152 break 2
7154 done
7155 done
7159 OTOOL=$ac_cv_prog_OTOOL
7160 if test -n "$OTOOL"; then
7161 echo "$as_me:$LINENO: result: $OTOOL" >&5
7162 echo "${ECHO_T}$OTOOL" >&6
7163 else
7164 echo "$as_me:$LINENO: result: no" >&5
7165 echo "${ECHO_T}no" >&6
7169 if test -z "$ac_cv_prog_OTOOL"; then
7170 ac_ct_OTOOL=$OTOOL
7171 # Extract the first word of "otool", so it can be a program name with args.
7172 set dummy otool; ac_word=$2
7173 echo "$as_me:$LINENO: checking for $ac_word" >&5
7174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7175 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
7177 else
7178 if test -n "$ac_ct_OTOOL"; then
7179 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7180 else
7181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7182 for as_dir in $PATH
7184 IFS=$as_save_IFS
7185 test -z "$as_dir" && as_dir=.
7186 for ac_exec_ext in '' $ac_executable_extensions; do
7187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7188 ac_cv_prog_ac_ct_OTOOL="otool"
7189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7190 break 2
7192 done
7193 done
7195 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
7198 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7199 if test -n "$ac_ct_OTOOL"; then
7200 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7201 echo "${ECHO_T}$ac_ct_OTOOL" >&6
7202 else
7203 echo "$as_me:$LINENO: result: no" >&5
7204 echo "${ECHO_T}no" >&6
7207 OTOOL=$ac_ct_OTOOL
7208 else
7209 OTOOL="$ac_cv_prog_OTOOL"
7212 if test -n "$ac_tool_prefix"; then
7213 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7214 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7215 echo "$as_me:$LINENO: checking for $ac_word" >&5
7216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7217 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7218 echo $ECHO_N "(cached) $ECHO_C" >&6
7219 else
7220 if test -n "$OTOOL64"; then
7221 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7222 else
7223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224 for as_dir in $PATH
7226 IFS=$as_save_IFS
7227 test -z "$as_dir" && as_dir=.
7228 for ac_exec_ext in '' $ac_executable_extensions; do
7229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7230 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7232 break 2
7234 done
7235 done
7239 OTOOL64=$ac_cv_prog_OTOOL64
7240 if test -n "$OTOOL64"; then
7241 echo "$as_me:$LINENO: result: $OTOOL64" >&5
7242 echo "${ECHO_T}$OTOOL64" >&6
7243 else
7244 echo "$as_me:$LINENO: result: no" >&5
7245 echo "${ECHO_T}no" >&6
7249 if test -z "$ac_cv_prog_OTOOL64"; then
7250 ac_ct_OTOOL64=$OTOOL64
7251 # Extract the first word of "otool64", so it can be a program name with args.
7252 set dummy otool64; ac_word=$2
7253 echo "$as_me:$LINENO: checking for $ac_word" >&5
7254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7255 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7256 echo $ECHO_N "(cached) $ECHO_C" >&6
7257 else
7258 if test -n "$ac_ct_OTOOL64"; then
7259 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7260 else
7261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262 for as_dir in $PATH
7264 IFS=$as_save_IFS
7265 test -z "$as_dir" && as_dir=.
7266 for ac_exec_ext in '' $ac_executable_extensions; do
7267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7268 ac_cv_prog_ac_ct_OTOOL64="otool64"
7269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7270 break 2
7272 done
7273 done
7275 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
7278 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7279 if test -n "$ac_ct_OTOOL64"; then
7280 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7281 echo "${ECHO_T}$ac_ct_OTOOL64" >&6
7282 else
7283 echo "$as_me:$LINENO: result: no" >&5
7284 echo "${ECHO_T}no" >&6
7287 OTOOL64=$ac_ct_OTOOL64
7288 else
7289 OTOOL64="$ac_cv_prog_OTOOL64"
7318 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7319 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
7320 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7321 echo $ECHO_N "(cached) $ECHO_C" >&6
7322 else
7323 lt_cv_apple_cc_single_mod=no
7324 if test -z "${LT_MULTI_MODULE}"; then
7325 # By default we will add the -single_module flag. You can override
7326 # by either setting the environment variable LT_MULTI_MODULE
7327 # non-empty at configure time, or by adding -multi_module to the
7328 # link flags.
7329 rm -rf libconftest.dylib*
7330 echo "int foo(void){return 1;}" > conftest.c
7331 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7332 -dynamiclib -Wl,-single_module conftest.c" >&5
7333 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7334 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7335 _lt_result=$?
7336 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7337 lt_cv_apple_cc_single_mod=yes
7338 else
7339 cat conftest.err >&5
7341 rm -rf libconftest.dylib*
7342 rm -f conftest.*
7345 echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7346 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
7347 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7348 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
7349 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
7351 else
7352 lt_cv_ld_exported_symbols_list=no
7353 save_LDFLAGS=$LDFLAGS
7354 echo "_main" > conftest.sym
7355 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7356 cat >conftest.$ac_ext <<_ACEOF
7357 /* confdefs.h. */
7358 _ACEOF
7359 cat confdefs.h >>conftest.$ac_ext
7360 cat >>conftest.$ac_ext <<_ACEOF
7361 /* end confdefs.h. */
7364 main ()
7368 return 0;
7370 _ACEOF
7371 rm -f conftest.$ac_objext conftest$ac_exeext
7372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7373 (eval $ac_link) 2>conftest.er1
7374 ac_status=$?
7375 grep -v '^ *+' conftest.er1 >conftest.err
7376 rm -f conftest.er1
7377 cat conftest.err >&5
7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); } &&
7380 { ac_try='test -z "$ac_c_werror_flag"
7381 || test ! -s conftest.err'
7382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7383 (eval $ac_try) 2>&5
7384 ac_status=$?
7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); }; } &&
7387 { ac_try='test -s conftest$ac_exeext'
7388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7389 (eval $ac_try) 2>&5
7390 ac_status=$?
7391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392 (exit $ac_status); }; }; then
7393 lt_cv_ld_exported_symbols_list=yes
7394 else
7395 echo "$as_me: failed program was:" >&5
7396 sed 's/^/| /' conftest.$ac_ext >&5
7398 lt_cv_ld_exported_symbols_list=no
7400 rm -f conftest.err conftest.$ac_objext \
7401 conftest$ac_exeext conftest.$ac_ext
7402 LDFLAGS="$save_LDFLAGS"
7405 echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7406 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
7407 case $host_os in
7408 rhapsody* | darwin1.[012])
7409 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7410 darwin1.*)
7411 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7412 darwin*) # darwin 5.x on
7413 # if running on 10.5 or later, the deployment target defaults
7414 # to the OS version, if on x86, and 10.4, the deployment
7415 # target defaults to 10.4. Don't you love it?
7416 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7417 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7418 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7419 10.[012]*)
7420 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7421 10.*)
7422 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7423 esac
7425 esac
7426 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7427 _lt_dar_single_mod='$single_module'
7429 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7430 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7431 else
7432 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7434 if test "$DSYMUTIL" != ":"; then
7435 _lt_dsymutil='~$DSYMUTIL $lib || :'
7436 else
7437 _lt_dsymutil=
7440 esac
7443 for ac_header in dlfcn.h
7445 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7446 echo "$as_me:$LINENO: checking for $ac_header" >&5
7447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7449 echo $ECHO_N "(cached) $ECHO_C" >&6
7450 else
7451 cat >conftest.$ac_ext <<_ACEOF
7452 /* confdefs.h. */
7453 _ACEOF
7454 cat confdefs.h >>conftest.$ac_ext
7455 cat >>conftest.$ac_ext <<_ACEOF
7456 /* end confdefs.h. */
7457 $ac_includes_default
7459 #include <$ac_header>
7460 _ACEOF
7461 rm -f conftest.$ac_objext
7462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7463 (eval $ac_compile) 2>conftest.er1
7464 ac_status=$?
7465 grep -v '^ *+' conftest.er1 >conftest.err
7466 rm -f conftest.er1
7467 cat conftest.err >&5
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); } &&
7470 { ac_try='test -z "$ac_c_werror_flag"
7471 || test ! -s conftest.err'
7472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7473 (eval $ac_try) 2>&5
7474 ac_status=$?
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); }; } &&
7477 { ac_try='test -s conftest.$ac_objext'
7478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7479 (eval $ac_try) 2>&5
7480 ac_status=$?
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); }; }; then
7483 eval "$as_ac_Header=yes"
7484 else
7485 echo "$as_me: failed program was:" >&5
7486 sed 's/^/| /' conftest.$ac_ext >&5
7488 eval "$as_ac_Header=no"
7490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7494 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7495 cat >>confdefs.h <<_ACEOF
7496 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7497 _ACEOF
7501 done
7505 # Set options
7509 enable_dlopen=no
7512 enable_win32_dll=no
7515 # Check whether --enable-shared or --disable-shared was given.
7516 if test "${enable_shared+set}" = set; then
7517 enableval="$enable_shared"
7518 p=${PACKAGE-default}
7519 case $enableval in
7520 yes) enable_shared=yes ;;
7521 no) enable_shared=no ;;
7523 enable_shared=no
7524 # Look at the argument we got. We use all the common list separators.
7525 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7526 for pkg in $enableval; do
7527 IFS="$lt_save_ifs"
7528 if test "X$pkg" = "X$p"; then
7529 enable_shared=yes
7531 done
7532 IFS="$lt_save_ifs"
7534 esac
7535 else
7536 enable_shared=yes
7546 # Check whether --enable-static or --disable-static was given.
7547 if test "${enable_static+set}" = set; then
7548 enableval="$enable_static"
7549 p=${PACKAGE-default}
7550 case $enableval in
7551 yes) enable_static=yes ;;
7552 no) enable_static=no ;;
7554 enable_static=no
7555 # Look at the argument we got. We use all the common list separators.
7556 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7557 for pkg in $enableval; do
7558 IFS="$lt_save_ifs"
7559 if test "X$pkg" = "X$p"; then
7560 enable_static=yes
7562 done
7563 IFS="$lt_save_ifs"
7565 esac
7566 else
7567 enable_static=yes
7578 # Check whether --with-pic or --without-pic was given.
7579 if test "${with_pic+set}" = set; then
7580 withval="$with_pic"
7581 pic_mode="$withval"
7582 else
7583 pic_mode=default
7586 test -z "$pic_mode" && pic_mode=default
7594 # Check whether --enable-fast-install or --disable-fast-install was given.
7595 if test "${enable_fast_install+set}" = set; then
7596 enableval="$enable_fast_install"
7597 p=${PACKAGE-default}
7598 case $enableval in
7599 yes) enable_fast_install=yes ;;
7600 no) enable_fast_install=no ;;
7602 enable_fast_install=no
7603 # Look at the argument we got. We use all the common list separators.
7604 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7605 for pkg in $enableval; do
7606 IFS="$lt_save_ifs"
7607 if test "X$pkg" = "X$p"; then
7608 enable_fast_install=yes
7610 done
7611 IFS="$lt_save_ifs"
7613 esac
7614 else
7615 enable_fast_install=yes
7627 # This can be used to rebuild libtool when needed
7628 LIBTOOL_DEPS="$ltmain"
7630 # Always use our own libtool.
7631 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7657 test -z "$LN_S" && LN_S="ln -s"
7672 if test -n "${ZSH_VERSION+set}" ; then
7673 setopt NO_GLOB_SUBST
7676 echo "$as_me:$LINENO: checking for objdir" >&5
7677 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7678 if test "${lt_cv_objdir+set}" = set; then
7679 echo $ECHO_N "(cached) $ECHO_C" >&6
7680 else
7681 rm -f .libs 2>/dev/null
7682 mkdir .libs 2>/dev/null
7683 if test -d .libs; then
7684 lt_cv_objdir=.libs
7685 else
7686 # MS-DOS does not allow filenames that begin with a dot.
7687 lt_cv_objdir=_libs
7689 rmdir .libs 2>/dev/null
7691 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7692 echo "${ECHO_T}$lt_cv_objdir" >&6
7693 objdir=$lt_cv_objdir
7699 cat >>confdefs.h <<_ACEOF
7700 #define LT_OBJDIR "$lt_cv_objdir/"
7701 _ACEOF
7719 case $host_os in
7720 aix3*)
7721 # AIX sometimes has problems with the GCC collect2 program. For some
7722 # reason, if we set the COLLECT_NAMES environment variable, the problems
7723 # vanish in a puff of smoke.
7724 if test "X${COLLECT_NAMES+set}" != Xset; then
7725 COLLECT_NAMES=
7726 export COLLECT_NAMES
7729 esac
7731 # Sed substitution that helps us do robust quoting. It backslashifies
7732 # metacharacters that are still active within double-quoted strings.
7733 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7735 # Same as above, but do not quote variable references.
7736 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7738 # Sed substitution to delay expansion of an escaped shell variable in a
7739 # double_quote_subst'ed string.
7740 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7742 # Sed substitution to delay expansion of an escaped single quote.
7743 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7745 # Sed substitution to avoid accidental globbing in evaled expressions
7746 no_glob_subst='s/\*/\\\*/g'
7748 # Global variables:
7749 ofile=libtool
7750 can_build_shared=yes
7752 # All known linkers require a `.a' archive for static linking (except MSVC,
7753 # which needs '.lib').
7754 libext=a
7756 with_gnu_ld="$lt_cv_prog_gnu_ld"
7758 old_CC="$CC"
7759 old_CFLAGS="$CFLAGS"
7761 # Set sane defaults for various variables
7762 test -z "$CC" && CC=cc
7763 test -z "$LTCC" && LTCC=$CC
7764 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7765 test -z "$LD" && LD=ld
7766 test -z "$ac_objext" && ac_objext=o
7768 for cc_temp in $compiler""; do
7769 case $cc_temp in
7770 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7771 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7772 \-*) ;;
7773 *) break;;
7774 esac
7775 done
7776 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7779 # Only perform the check for file, if the check method requires it
7780 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7781 case $deplibs_check_method in
7782 file_magic*)
7783 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7784 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7785 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7786 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7787 echo $ECHO_N "(cached) $ECHO_C" >&6
7788 else
7789 case $MAGIC_CMD in
7790 [\\/*] | ?:[\\/]*)
7791 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7794 lt_save_MAGIC_CMD="$MAGIC_CMD"
7795 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7796 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7797 for ac_dir in $ac_dummy; do
7798 IFS="$lt_save_ifs"
7799 test -z "$ac_dir" && ac_dir=.
7800 if test -f $ac_dir/${ac_tool_prefix}file; then
7801 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7802 if test -n "$file_magic_test_file"; then
7803 case $deplibs_check_method in
7804 "file_magic "*)
7805 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7806 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7807 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7808 $EGREP "$file_magic_regex" > /dev/null; then
7810 else
7811 cat <<_LT_EOF 1>&2
7813 *** Warning: the command libtool uses to detect shared libraries,
7814 *** $file_magic_cmd, produces output that libtool cannot recognize.
7815 *** The result is that libtool may fail to recognize shared libraries
7816 *** as such. This will affect the creation of libtool libraries that
7817 *** depend on shared libraries, but programs linked with such libtool
7818 *** libraries will work regardless of this problem. Nevertheless, you
7819 *** may want to report the problem to your system manager and/or to
7820 *** bug-libtool@gnu.org
7822 _LT_EOF
7823 fi ;;
7824 esac
7826 break
7828 done
7829 IFS="$lt_save_ifs"
7830 MAGIC_CMD="$lt_save_MAGIC_CMD"
7832 esac
7835 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7836 if test -n "$MAGIC_CMD"; then
7837 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7838 echo "${ECHO_T}$MAGIC_CMD" >&6
7839 else
7840 echo "$as_me:$LINENO: result: no" >&5
7841 echo "${ECHO_T}no" >&6
7848 if test -z "$lt_cv_path_MAGIC_CMD"; then
7849 if test -n "$ac_tool_prefix"; then
7850 echo "$as_me:$LINENO: checking for file" >&5
7851 echo $ECHO_N "checking for file... $ECHO_C" >&6
7852 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7853 echo $ECHO_N "(cached) $ECHO_C" >&6
7854 else
7855 case $MAGIC_CMD in
7856 [\\/*] | ?:[\\/]*)
7857 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7860 lt_save_MAGIC_CMD="$MAGIC_CMD"
7861 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7862 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7863 for ac_dir in $ac_dummy; do
7864 IFS="$lt_save_ifs"
7865 test -z "$ac_dir" && ac_dir=.
7866 if test -f $ac_dir/file; then
7867 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7868 if test -n "$file_magic_test_file"; then
7869 case $deplibs_check_method in
7870 "file_magic "*)
7871 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7872 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7873 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7874 $EGREP "$file_magic_regex" > /dev/null; then
7876 else
7877 cat <<_LT_EOF 1>&2
7879 *** Warning: the command libtool uses to detect shared libraries,
7880 *** $file_magic_cmd, produces output that libtool cannot recognize.
7881 *** The result is that libtool may fail to recognize shared libraries
7882 *** as such. This will affect the creation of libtool libraries that
7883 *** depend on shared libraries, but programs linked with such libtool
7884 *** libraries will work regardless of this problem. Nevertheless, you
7885 *** may want to report the problem to your system manager and/or to
7886 *** bug-libtool@gnu.org
7888 _LT_EOF
7889 fi ;;
7890 esac
7892 break
7894 done
7895 IFS="$lt_save_ifs"
7896 MAGIC_CMD="$lt_save_MAGIC_CMD"
7898 esac
7901 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7902 if test -n "$MAGIC_CMD"; then
7903 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7904 echo "${ECHO_T}$MAGIC_CMD" >&6
7905 else
7906 echo "$as_me:$LINENO: result: no" >&5
7907 echo "${ECHO_T}no" >&6
7911 else
7912 MAGIC_CMD=:
7918 esac
7920 # Use C for the default configuration in the libtool script
7922 lt_save_CC="$CC"
7923 ac_ext=c
7924 ac_cpp='$CPP $CPPFLAGS'
7925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7930 # Source file extension for C test sources.
7931 ac_ext=c
7933 # Object file extension for compiled C test sources.
7934 objext=o
7935 objext=$objext
7937 # Code to be used in simple compile tests
7938 lt_simple_compile_test_code="int some_variable = 0;"
7940 # Code to be used in simple link tests
7941 lt_simple_link_test_code='int main(){return(0);}'
7949 # If no C compiler was specified, use CC.
7950 LTCC=${LTCC-"$CC"}
7952 # If no C compiler flags were specified, use CFLAGS.
7953 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7955 # Allow CC to be a program name with arguments.
7956 compiler=$CC
7958 # Save the default compiler, since it gets overwritten when the other
7959 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7960 compiler_DEFAULT=$CC
7962 # save warnings/boilerplate of simple test code
7963 ac_outfile=conftest.$ac_objext
7964 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7965 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7966 _lt_compiler_boilerplate=`cat conftest.err`
7967 $RM conftest*
7969 ac_outfile=conftest.$ac_objext
7970 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7971 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7972 _lt_linker_boilerplate=`cat conftest.err`
7973 $RM -r conftest*
7976 ## CAVEAT EMPTOR:
7977 ## There is no encapsulation within the following macros, do not change
7978 ## the running order or otherwise move them around unless you know exactly
7979 ## what you are doing...
7980 if test -n "$compiler"; then
7982 lt_prog_compiler_no_builtin_flag=
7984 if test "$GCC" = yes; then
7985 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7987 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7988 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7989 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7990 echo $ECHO_N "(cached) $ECHO_C" >&6
7991 else
7992 lt_cv_prog_compiler_rtti_exceptions=no
7993 ac_outfile=conftest.$ac_objext
7994 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7995 lt_compiler_flag="-fno-rtti -fno-exceptions"
7996 # Insert the option either (1) after the last *FLAGS variable, or
7997 # (2) before a word containing "conftest.", or (3) at the end.
7998 # Note that $ac_compile itself does not contain backslashes and begins
7999 # with a dollar sign (not a hyphen), so the echo should work correctly.
8000 # The option is referenced via a variable to avoid confusing sed.
8001 lt_compile=`echo "$ac_compile" | $SED \
8002 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8003 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8004 -e 's:$: $lt_compiler_flag:'`
8005 (eval echo "\"\$as_me:8005: $lt_compile\"" >&5)
8006 (eval "$lt_compile" 2>conftest.err)
8007 ac_status=$?
8008 cat conftest.err >&5
8009 echo "$as_me:8009: \$? = $ac_status" >&5
8010 if (exit $ac_status) && test -s "$ac_outfile"; then
8011 # The compiler can only warn and ignore the option if not recognized
8012 # So say no if there are warnings other than the usual output.
8013 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8014 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8015 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8016 lt_cv_prog_compiler_rtti_exceptions=yes
8019 $RM conftest*
8022 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8023 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8025 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8026 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8027 else
8038 lt_prog_compiler_wl=
8039 lt_prog_compiler_pic=
8040 lt_prog_compiler_static=
8042 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8043 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8045 if test "$GCC" = yes; then
8046 lt_prog_compiler_wl='-Wl,'
8047 lt_prog_compiler_static='-static'
8049 case $host_os in
8050 aix*)
8051 # All AIX code is PIC.
8052 if test "$host_cpu" = ia64; then
8053 # AIX 5 now supports IA64 processor
8054 lt_prog_compiler_static='-Bstatic'
8058 amigaos*)
8059 case $host_cpu in
8060 powerpc)
8061 # see comment about AmigaOS4 .so support
8062 lt_prog_compiler_pic='-fPIC'
8064 m68k)
8065 # FIXME: we need at least 68020 code to build shared libraries, but
8066 # adding the `-m68020' flag to GCC prevents building anything better,
8067 # like `-m68040'.
8068 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8070 esac
8073 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8074 # PIC is the default for these OSes.
8077 mingw* | cygwin* | pw32* | os2* | cegcc*)
8078 # This hack is so that the source file can tell whether it is being
8079 # built for inclusion in a dll (and should export symbols for example).
8080 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8081 # (--disable-auto-import) libraries
8082 lt_prog_compiler_pic='-DDLL_EXPORT'
8085 darwin* | rhapsody*)
8086 # PIC is the default on this platform
8087 # Common symbols not allowed in MH_DYLIB files
8088 lt_prog_compiler_pic='-fno-common'
8091 hpux*)
8092 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8093 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8094 # sets the default TLS model and affects inlining.
8095 case $host_cpu in
8096 hppa*64*)
8097 # +Z the default
8100 lt_prog_compiler_pic='-fPIC'
8102 esac
8105 interix[3-9]*)
8106 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8107 # Instead, we relocate shared libraries at runtime.
8110 msdosdjgpp*)
8111 # Just because we use GCC doesn't mean we suddenly get shared libraries
8112 # on systems that don't support them.
8113 lt_prog_compiler_can_build_shared=no
8114 enable_shared=no
8117 *nto* | *qnx*)
8118 # QNX uses GNU C++, but need to define -shared option too, otherwise
8119 # it will coredump.
8120 lt_prog_compiler_pic='-fPIC -shared'
8123 sysv4*MP*)
8124 if test -d /usr/nec; then
8125 lt_prog_compiler_pic=-Kconform_pic
8130 lt_prog_compiler_pic='-fPIC'
8132 esac
8133 else
8134 # PORTME Check for flag to pass linker flags through the system compiler.
8135 case $host_os in
8136 aix*)
8137 lt_prog_compiler_wl='-Wl,'
8138 if test "$host_cpu" = ia64; then
8139 # AIX 5 now supports IA64 processor
8140 lt_prog_compiler_static='-Bstatic'
8141 else
8142 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8146 mingw* | cygwin* | pw32* | os2* | cegcc*)
8147 # This hack is so that the source file can tell whether it is being
8148 # built for inclusion in a dll (and should export symbols for example).
8149 lt_prog_compiler_pic='-DDLL_EXPORT'
8152 hpux9* | hpux10* | hpux11*)
8153 lt_prog_compiler_wl='-Wl,'
8154 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8155 # not for PA HP-UX.
8156 case $host_cpu in
8157 hppa*64*|ia64*)
8158 # +Z the default
8161 lt_prog_compiler_pic='+Z'
8163 esac
8164 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8165 lt_prog_compiler_static='${wl}-a ${wl}archive'
8168 irix5* | irix6* | nonstopux*)
8169 lt_prog_compiler_wl='-Wl,'
8170 # PIC (with -KPIC) is the default.
8171 lt_prog_compiler_static='-non_shared'
8174 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8175 case $cc_basename in
8176 # old Intel for x86_64 which still supported -KPIC.
8177 ecc*)
8178 lt_prog_compiler_wl='-Wl,'
8179 lt_prog_compiler_pic='-KPIC'
8180 lt_prog_compiler_static='-static'
8182 # icc used to be incompatible with GCC.
8183 # ICC 10 doesn't accept -KPIC any more.
8184 icc* | ifort*)
8185 lt_prog_compiler_wl='-Wl,'
8186 lt_prog_compiler_pic='-fPIC'
8187 lt_prog_compiler_static='-static'
8189 # Lahey Fortran 8.1.
8190 lf95*)
8191 lt_prog_compiler_wl='-Wl,'
8192 lt_prog_compiler_pic='--shared'
8193 lt_prog_compiler_static='--static'
8195 pgcc* | pgf77* | pgf90* | pgf95*)
8196 # Portland Group compilers (*not* the Pentium gcc compiler,
8197 # which looks to be a dead project)
8198 lt_prog_compiler_wl='-Wl,'
8199 lt_prog_compiler_pic='-fpic'
8200 lt_prog_compiler_static='-Bstatic'
8202 ccc*)
8203 lt_prog_compiler_wl='-Wl,'
8204 # All Alpha code is PIC.
8205 lt_prog_compiler_static='-non_shared'
8207 xl*)
8208 # IBM XL C 8.0/Fortran 10.1 on PPC
8209 lt_prog_compiler_wl='-Wl,'
8210 lt_prog_compiler_pic='-qpic'
8211 lt_prog_compiler_static='-qstaticlink'
8214 case `$CC -V 2>&1 | sed 5q` in
8215 *Sun\ C*)
8216 # Sun C 5.9
8217 lt_prog_compiler_pic='-KPIC'
8218 lt_prog_compiler_static='-Bstatic'
8219 lt_prog_compiler_wl='-Wl,'
8221 *Sun\ F*)
8222 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8223 lt_prog_compiler_pic='-KPIC'
8224 lt_prog_compiler_static='-Bstatic'
8225 lt_prog_compiler_wl=''
8227 esac
8229 esac
8232 newsos6)
8233 lt_prog_compiler_pic='-KPIC'
8234 lt_prog_compiler_static='-Bstatic'
8237 *nto* | *qnx*)
8238 # QNX uses GNU C++, but need to define -shared option too, otherwise
8239 # it will coredump.
8240 lt_prog_compiler_pic='-fPIC -shared'
8243 osf3* | osf4* | osf5*)
8244 lt_prog_compiler_wl='-Wl,'
8245 # All OSF/1 code is PIC.
8246 lt_prog_compiler_static='-non_shared'
8249 rdos*)
8250 lt_prog_compiler_static='-non_shared'
8253 solaris*)
8254 lt_prog_compiler_pic='-KPIC'
8255 lt_prog_compiler_static='-Bstatic'
8256 case $cc_basename in
8257 f77* | f90* | f95*)
8258 lt_prog_compiler_wl='-Qoption ld ';;
8260 lt_prog_compiler_wl='-Wl,';;
8261 esac
8264 sunos4*)
8265 lt_prog_compiler_wl='-Qoption ld '
8266 lt_prog_compiler_pic='-PIC'
8267 lt_prog_compiler_static='-Bstatic'
8270 sysv4 | sysv4.2uw2* | sysv4.3*)
8271 lt_prog_compiler_wl='-Wl,'
8272 lt_prog_compiler_pic='-KPIC'
8273 lt_prog_compiler_static='-Bstatic'
8276 sysv4*MP*)
8277 if test -d /usr/nec ;then
8278 lt_prog_compiler_pic='-Kconform_pic'
8279 lt_prog_compiler_static='-Bstatic'
8283 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8284 lt_prog_compiler_wl='-Wl,'
8285 lt_prog_compiler_pic='-KPIC'
8286 lt_prog_compiler_static='-Bstatic'
8289 unicos*)
8290 lt_prog_compiler_wl='-Wl,'
8291 lt_prog_compiler_can_build_shared=no
8294 uts4*)
8295 lt_prog_compiler_pic='-pic'
8296 lt_prog_compiler_static='-Bstatic'
8300 lt_prog_compiler_can_build_shared=no
8302 esac
8305 case $host_os in
8306 # For platforms which do not support PIC, -DPIC is meaningless:
8307 *djgpp*)
8308 lt_prog_compiler_pic=
8311 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8313 esac
8314 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8315 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8323 # Check to make sure the PIC flag actually works.
8325 if test -n "$lt_prog_compiler_pic"; then
8326 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8327 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8328 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8329 echo $ECHO_N "(cached) $ECHO_C" >&6
8330 else
8331 lt_cv_prog_compiler_pic_works=no
8332 ac_outfile=conftest.$ac_objext
8333 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8334 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8335 # Insert the option either (1) after the last *FLAGS variable, or
8336 # (2) before a word containing "conftest.", or (3) at the end.
8337 # Note that $ac_compile itself does not contain backslashes and begins
8338 # with a dollar sign (not a hyphen), so the echo should work correctly.
8339 # The option is referenced via a variable to avoid confusing sed.
8340 lt_compile=`echo "$ac_compile" | $SED \
8341 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8342 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8343 -e 's:$: $lt_compiler_flag:'`
8344 (eval echo "\"\$as_me:8344: $lt_compile\"" >&5)
8345 (eval "$lt_compile" 2>conftest.err)
8346 ac_status=$?
8347 cat conftest.err >&5
8348 echo "$as_me:8348: \$? = $ac_status" >&5
8349 if (exit $ac_status) && test -s "$ac_outfile"; then
8350 # The compiler can only warn and ignore the option if not recognized
8351 # So say no if there are warnings other than the usual output.
8352 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8353 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8354 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8355 lt_cv_prog_compiler_pic_works=yes
8358 $RM conftest*
8361 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8362 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
8364 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8365 case $lt_prog_compiler_pic in
8366 "" | " "*) ;;
8367 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8368 esac
8369 else
8370 lt_prog_compiler_pic=
8371 lt_prog_compiler_can_build_shared=no
8382 # Check to make sure the static flag actually works.
8384 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8385 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8386 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8387 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8388 echo $ECHO_N "(cached) $ECHO_C" >&6
8389 else
8390 lt_cv_prog_compiler_static_works=no
8391 save_LDFLAGS="$LDFLAGS"
8392 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8393 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8394 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8395 # The linker can only warn and ignore the option if not recognized
8396 # So say no if there are warnings
8397 if test -s conftest.err; then
8398 # Append any errors to the config.log.
8399 cat conftest.err 1>&5
8400 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8401 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8402 if diff conftest.exp conftest.er2 >/dev/null; then
8403 lt_cv_prog_compiler_static_works=yes
8405 else
8406 lt_cv_prog_compiler_static_works=yes
8409 $RM -r conftest*
8410 LDFLAGS="$save_LDFLAGS"
8413 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8414 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
8416 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8418 else
8419 lt_prog_compiler_static=
8428 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8429 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8430 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8431 echo $ECHO_N "(cached) $ECHO_C" >&6
8432 else
8433 lt_cv_prog_compiler_c_o=no
8434 $RM -r conftest 2>/dev/null
8435 mkdir conftest
8436 cd conftest
8437 mkdir out
8438 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8440 lt_compiler_flag="-o out/conftest2.$ac_objext"
8441 # Insert the option either (1) after the last *FLAGS variable, or
8442 # (2) before a word containing "conftest.", or (3) at the end.
8443 # Note that $ac_compile itself does not contain backslashes and begins
8444 # with a dollar sign (not a hyphen), so the echo should work correctly.
8445 lt_compile=`echo "$ac_compile" | $SED \
8446 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8447 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8448 -e 's:$: $lt_compiler_flag:'`
8449 (eval echo "\"\$as_me:8449: $lt_compile\"" >&5)
8450 (eval "$lt_compile" 2>out/conftest.err)
8451 ac_status=$?
8452 cat out/conftest.err >&5
8453 echo "$as_me:8453: \$? = $ac_status" >&5
8454 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8455 then
8456 # The compiler can only warn and ignore the option if not recognized
8457 # So say no if there are warnings
8458 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8459 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8460 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8461 lt_cv_prog_compiler_c_o=yes
8464 chmod u+w . 2>&5
8465 $RM conftest*
8466 # SGI C++ compiler will create directory out/ii_files/ for
8467 # template instantiation
8468 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8469 $RM out/* && rmdir out
8470 cd ..
8471 $RM -r conftest
8472 $RM conftest*
8475 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8476 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8483 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8484 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8485 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8486 echo $ECHO_N "(cached) $ECHO_C" >&6
8487 else
8488 lt_cv_prog_compiler_c_o=no
8489 $RM -r conftest 2>/dev/null
8490 mkdir conftest
8491 cd conftest
8492 mkdir out
8493 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8495 lt_compiler_flag="-o out/conftest2.$ac_objext"
8496 # Insert the option either (1) after the last *FLAGS variable, or
8497 # (2) before a word containing "conftest.", or (3) at the end.
8498 # Note that $ac_compile itself does not contain backslashes and begins
8499 # with a dollar sign (not a hyphen), so the echo should work correctly.
8500 lt_compile=`echo "$ac_compile" | $SED \
8501 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8502 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8503 -e 's:$: $lt_compiler_flag:'`
8504 (eval echo "\"\$as_me:8504: $lt_compile\"" >&5)
8505 (eval "$lt_compile" 2>out/conftest.err)
8506 ac_status=$?
8507 cat out/conftest.err >&5
8508 echo "$as_me:8508: \$? = $ac_status" >&5
8509 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8510 then
8511 # The compiler can only warn and ignore the option if not recognized
8512 # So say no if there are warnings
8513 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8514 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8515 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8516 lt_cv_prog_compiler_c_o=yes
8519 chmod u+w . 2>&5
8520 $RM conftest*
8521 # SGI C++ compiler will create directory out/ii_files/ for
8522 # template instantiation
8523 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8524 $RM out/* && rmdir out
8525 cd ..
8526 $RM -r conftest
8527 $RM conftest*
8530 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8531 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8536 hard_links="nottested"
8537 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8538 # do not overwrite the value of need_locks provided by the user
8539 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8540 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8541 hard_links=yes
8542 $RM conftest*
8543 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8544 touch conftest.a
8545 ln conftest.a conftest.b 2>&5 || hard_links=no
8546 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8547 echo "$as_me:$LINENO: result: $hard_links" >&5
8548 echo "${ECHO_T}$hard_links" >&6
8549 if test "$hard_links" = no; then
8550 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8551 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8552 need_locks=warn
8554 else
8555 need_locks=no
8563 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8564 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8566 runpath_var=
8567 allow_undefined_flag=
8568 always_export_symbols=no
8569 archive_cmds=
8570 archive_expsym_cmds=
8571 compiler_needs_object=no
8572 enable_shared_with_static_runtimes=no
8573 export_dynamic_flag_spec=
8574 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8575 hardcode_automatic=no
8576 hardcode_direct=no
8577 hardcode_direct_absolute=no
8578 hardcode_libdir_flag_spec=
8579 hardcode_libdir_flag_spec_ld=
8580 hardcode_libdir_separator=
8581 hardcode_minus_L=no
8582 hardcode_shlibpath_var=unsupported
8583 inherit_rpath=no
8584 link_all_deplibs=unknown
8585 module_cmds=
8586 module_expsym_cmds=
8587 old_archive_from_new_cmds=
8588 old_archive_from_expsyms_cmds=
8589 thread_safe_flag_spec=
8590 whole_archive_flag_spec=
8591 # include_expsyms should be a list of space-separated symbols to be *always*
8592 # included in the symbol list
8593 include_expsyms=
8594 # exclude_expsyms can be an extended regexp of symbols to exclude
8595 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8596 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8597 # as well as any symbol that contains `d'.
8598 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8599 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8600 # platforms (ab)use it in PIC code, but their linkers get confused if
8601 # the symbol is explicitly referenced. Since portable code cannot
8602 # rely on this symbol name, it's probably fine to never include it in
8603 # preloaded symbol tables.
8604 # Exclude shared library initialization/finalization symbols.
8605 extract_expsyms_cmds=
8607 case $host_os in
8608 cygwin* | mingw* | pw32* | cegcc*)
8609 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8610 # When not using gcc, we currently assume that we are using
8611 # Microsoft Visual C++.
8612 if test "$GCC" != yes; then
8613 with_gnu_ld=no
8616 interix*)
8617 # we just hope/assume this is gcc and not c89 (= MSVC++)
8618 with_gnu_ld=yes
8620 openbsd*)
8621 with_gnu_ld=no
8623 esac
8625 ld_shlibs=yes
8626 if test "$with_gnu_ld" = yes; then
8627 # If archive_cmds runs LD, not CC, wlarc should be empty
8628 wlarc='${wl}'
8630 # Set some defaults for GNU ld with shared library support. These
8631 # are reset later if shared libraries are not supported. Putting them
8632 # here allows them to be overridden if necessary.
8633 runpath_var=LD_RUN_PATH
8634 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8635 export_dynamic_flag_spec='${wl}--export-dynamic'
8636 # ancient GNU ld didn't support --whole-archive et. al.
8637 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8638 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8639 else
8640 whole_archive_flag_spec=
8642 supports_anon_versioning=no
8643 case `$LD -v 2>&1` in
8644 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8645 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8646 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8647 *\ 2.11.*) ;; # other 2.11 versions
8648 *) supports_anon_versioning=yes ;;
8649 esac
8651 # See if GNU ld supports shared libraries.
8652 case $host_os in
8653 aix[3-9]*)
8654 # On AIX/PPC, the GNU linker is very broken
8655 if test "$host_cpu" != ia64; then
8656 ld_shlibs=no
8657 cat <<_LT_EOF 1>&2
8659 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8660 *** to be unable to reliably create shared libraries on AIX.
8661 *** Therefore, libtool is disabling shared libraries support. If you
8662 *** really care for shared libraries, you may want to modify your PATH
8663 *** so that a non-GNU linker is found, and then restart.
8665 _LT_EOF
8669 amigaos*)
8670 case $host_cpu in
8671 powerpc)
8672 # see comment about AmigaOS4 .so support
8673 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8674 archive_expsym_cmds=''
8676 m68k)
8677 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)'
8678 hardcode_libdir_flag_spec='-L$libdir'
8679 hardcode_minus_L=yes
8681 esac
8684 beos*)
8685 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8686 allow_undefined_flag=unsupported
8687 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8688 # support --undefined. This deserves some investigation. FIXME
8689 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8690 else
8691 ld_shlibs=no
8695 cygwin* | mingw* | pw32* | cegcc*)
8696 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8697 # as there is no search path for DLLs.
8698 hardcode_libdir_flag_spec='-L$libdir'
8699 allow_undefined_flag=unsupported
8700 always_export_symbols=no
8701 enable_shared_with_static_runtimes=yes
8702 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8704 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8705 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8706 # If the export-symbols file already is a .def file (1st line
8707 # is EXPORTS), use it as is; otherwise, prepend...
8708 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8709 cp $export_symbols $output_objdir/$soname.def;
8710 else
8711 echo EXPORTS > $output_objdir/$soname.def;
8712 cat $export_symbols >> $output_objdir/$soname.def;
8714 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8715 else
8716 ld_shlibs=no
8720 interix[3-9]*)
8721 hardcode_direct=no
8722 hardcode_shlibpath_var=no
8723 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8724 export_dynamic_flag_spec='${wl}-E'
8725 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8726 # Instead, shared libraries are loaded at an image base (0x10000000 by
8727 # default) and relocated if they conflict, which is a slow very memory
8728 # consuming and fragmenting process. To avoid this, we pick a random,
8729 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8730 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8731 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8732 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'
8735 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8736 tmp_diet=no
8737 if test "$host_os" = linux-dietlibc; then
8738 case $cc_basename in
8739 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8740 esac
8742 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8743 && test "$tmp_diet" = no
8744 then
8745 tmp_addflag=
8746 tmp_sharedflag='-shared'
8747 case $cc_basename,$host_cpu in
8748 pgcc*) # Portland Group C compiler
8749 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'
8750 tmp_addflag=' $pic_flag'
8752 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8753 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'
8754 tmp_addflag=' $pic_flag -Mnomain' ;;
8755 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8756 tmp_addflag=' -i_dynamic' ;;
8757 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8758 tmp_addflag=' -i_dynamic -nofor_main' ;;
8759 ifc* | ifort*) # Intel Fortran compiler
8760 tmp_addflag=' -nofor_main' ;;
8761 lf95*) # Lahey Fortran 8.1
8762 whole_archive_flag_spec=
8763 tmp_sharedflag='--shared' ;;
8764 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8765 tmp_sharedflag='-qmkshrobj'
8766 tmp_addflag= ;;
8767 esac
8768 case `$CC -V 2>&1 | sed 5q` in
8769 *Sun\ C*) # Sun C 5.9
8770 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'
8771 compiler_needs_object=yes
8772 tmp_sharedflag='-G' ;;
8773 *Sun\ F*) # Sun Fortran 8.3
8774 tmp_sharedflag='-G' ;;
8775 esac
8776 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8778 if test "x$supports_anon_versioning" = xyes; then
8779 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8780 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8781 echo "local: *; };" >> $output_objdir/$libname.ver~
8782 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8785 case $cc_basename in
8786 xlf*)
8787 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8788 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8789 hardcode_libdir_flag_spec=
8790 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8791 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8792 if test "x$supports_anon_versioning" = xyes; then
8793 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8794 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8795 echo "local: *; };" >> $output_objdir/$libname.ver~
8796 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8799 esac
8800 else
8801 ld_shlibs=no
8805 netbsd*)
8806 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8807 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8808 wlarc=
8809 else
8810 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8811 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8815 solaris*)
8816 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8817 ld_shlibs=no
8818 cat <<_LT_EOF 1>&2
8820 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8821 *** create shared libraries on Solaris systems. Therefore, libtool
8822 *** is disabling shared libraries support. We urge you to upgrade GNU
8823 *** binutils to release 2.9.1 or newer. Another option is to modify
8824 *** your PATH or compiler configuration so that the native linker is
8825 *** used, and then restart.
8827 _LT_EOF
8828 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8829 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8830 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8831 else
8832 ld_shlibs=no
8836 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8837 case `$LD -v 2>&1` in
8838 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8839 ld_shlibs=no
8840 cat <<_LT_EOF 1>&2
8842 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8843 *** reliably create shared libraries on SCO systems. Therefore, libtool
8844 *** is disabling shared libraries support. We urge you to upgrade GNU
8845 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8846 *** your PATH or compiler configuration so that the native linker is
8847 *** used, and then restart.
8849 _LT_EOF
8852 # For security reasons, it is highly recommended that you always
8853 # use absolute paths for naming shared libraries, and exclude the
8854 # DT_RUNPATH tag from executables and libraries. But doing so
8855 # requires that you compile everything twice, which is a pain.
8856 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8857 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8858 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8859 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8860 else
8861 ld_shlibs=no
8864 esac
8867 sunos4*)
8868 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8869 wlarc=
8870 hardcode_direct=yes
8871 hardcode_shlibpath_var=no
8875 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8876 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8877 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8878 else
8879 ld_shlibs=no
8882 esac
8884 if test "$ld_shlibs" = no; then
8885 runpath_var=
8886 hardcode_libdir_flag_spec=
8887 export_dynamic_flag_spec=
8888 whole_archive_flag_spec=
8890 else
8891 # PORTME fill in a description of your system's linker (not GNU ld)
8892 case $host_os in
8893 aix3*)
8894 allow_undefined_flag=unsupported
8895 always_export_symbols=yes
8896 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'
8897 # Note: this linker hardcodes the directories in LIBPATH if there
8898 # are no directories specified by -L.
8899 hardcode_minus_L=yes
8900 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8901 # Neither direct hardcoding nor static linking is supported with a
8902 # broken collect2.
8903 hardcode_direct=unsupported
8907 aix[4-9]*)
8908 if test "$host_cpu" = ia64; then
8909 # On IA64, the linker does run time linking by default, so we don't
8910 # have to do anything special.
8911 aix_use_runtimelinking=no
8912 exp_sym_flag='-Bexport'
8913 no_entry_flag=""
8914 else
8915 # If we're using GNU nm, then we don't want the "-C" option.
8916 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8917 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8918 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'
8919 else
8920 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'
8922 aix_use_runtimelinking=no
8924 # Test if we are trying to use run time linking or normal
8925 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8926 # need to do runtime linking.
8927 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8928 for ld_flag in $LDFLAGS; do
8929 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8930 aix_use_runtimelinking=yes
8931 break
8933 done
8935 esac
8937 exp_sym_flag='-bexport'
8938 no_entry_flag='-bnoentry'
8941 # When large executables or shared objects are built, AIX ld can
8942 # have problems creating the table of contents. If linking a library
8943 # or program results in "error TOC overflow" add -mminimal-toc to
8944 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8945 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8947 archive_cmds=''
8948 hardcode_direct=yes
8949 hardcode_direct_absolute=yes
8950 hardcode_libdir_separator=':'
8951 link_all_deplibs=yes
8952 file_list_spec='${wl}-f,'
8954 if test "$GCC" = yes; then
8955 case $host_os in aix4.[012]|aix4.[012].*)
8956 # We only want to do this on AIX 4.2 and lower, the check
8957 # below for broken collect2 doesn't work under 4.3+
8958 collect2name=`${CC} -print-prog-name=collect2`
8959 if test -f "$collect2name" &&
8960 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8961 then
8962 # We have reworked collect2
8964 else
8965 # We have old collect2
8966 hardcode_direct=unsupported
8967 # It fails to find uninstalled libraries when the uninstalled
8968 # path is not listed in the libpath. Setting hardcode_minus_L
8969 # to unsupported forces relinking
8970 hardcode_minus_L=yes
8971 hardcode_libdir_flag_spec='-L$libdir'
8972 hardcode_libdir_separator=
8975 esac
8976 shared_flag='-shared'
8977 if test "$aix_use_runtimelinking" = yes; then
8978 shared_flag="$shared_flag "'${wl}-G'
8980 else
8981 # not using gcc
8982 if test "$host_cpu" = ia64; then
8983 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8984 # chokes on -Wl,-G. The following line is correct:
8985 shared_flag='-G'
8986 else
8987 if test "$aix_use_runtimelinking" = yes; then
8988 shared_flag='${wl}-G'
8989 else
8990 shared_flag='${wl}-bM:SRE'
8995 export_dynamic_flag_spec='${wl}-bexpall'
8996 # It seems that -bexpall does not export symbols beginning with
8997 # underscore (_), so it is better to generate a list of symbols to export.
8998 always_export_symbols=yes
8999 if test "$aix_use_runtimelinking" = yes; then
9000 # Warning - without using the other runtime loading flags (-brtl),
9001 # -berok will link without error, but may produce a broken library.
9002 allow_undefined_flag='-berok'
9003 # Determine the default libpath from the value encoded in an
9004 # empty executable.
9005 cat >conftest.$ac_ext <<_ACEOF
9006 /* confdefs.h. */
9007 _ACEOF
9008 cat confdefs.h >>conftest.$ac_ext
9009 cat >>conftest.$ac_ext <<_ACEOF
9010 /* end confdefs.h. */
9013 main ()
9017 return 0;
9019 _ACEOF
9020 rm -f conftest.$ac_objext conftest$ac_exeext
9021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9022 (eval $ac_link) 2>conftest.er1
9023 ac_status=$?
9024 grep -v '^ *+' conftest.er1 >conftest.err
9025 rm -f conftest.er1
9026 cat conftest.err >&5
9027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028 (exit $ac_status); } &&
9029 { ac_try='test -z "$ac_c_werror_flag"
9030 || test ! -s conftest.err'
9031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9032 (eval $ac_try) 2>&5
9033 ac_status=$?
9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035 (exit $ac_status); }; } &&
9036 { ac_try='test -s conftest$ac_exeext'
9037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9038 (eval $ac_try) 2>&5
9039 ac_status=$?
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); }; }; then
9043 lt_aix_libpath_sed='
9044 /Import File Strings/,/^$/ {
9045 /^0/ {
9046 s/^0 *\(.*\)$/\1/
9050 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9051 # Check for a 64-bit object if we didn't find anything.
9052 if test -z "$aix_libpath"; then
9053 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9055 else
9056 echo "$as_me: failed program was:" >&5
9057 sed 's/^/| /' conftest.$ac_ext >&5
9060 rm -f conftest.err conftest.$ac_objext \
9061 conftest$ac_exeext conftest.$ac_ext
9062 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9064 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9065 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"
9066 else
9067 if test "$host_cpu" = ia64; then
9068 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9069 allow_undefined_flag="-z nodefs"
9070 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"
9071 else
9072 # Determine the default libpath from the value encoded in an
9073 # empty executable.
9074 cat >conftest.$ac_ext <<_ACEOF
9075 /* confdefs.h. */
9076 _ACEOF
9077 cat confdefs.h >>conftest.$ac_ext
9078 cat >>conftest.$ac_ext <<_ACEOF
9079 /* end confdefs.h. */
9082 main ()
9086 return 0;
9088 _ACEOF
9089 rm -f conftest.$ac_objext conftest$ac_exeext
9090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9091 (eval $ac_link) 2>conftest.er1
9092 ac_status=$?
9093 grep -v '^ *+' conftest.er1 >conftest.err
9094 rm -f conftest.er1
9095 cat conftest.err >&5
9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097 (exit $ac_status); } &&
9098 { ac_try='test -z "$ac_c_werror_flag"
9099 || test ! -s conftest.err'
9100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9101 (eval $ac_try) 2>&5
9102 ac_status=$?
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); }; } &&
9105 { ac_try='test -s conftest$ac_exeext'
9106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9107 (eval $ac_try) 2>&5
9108 ac_status=$?
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); }; }; then
9112 lt_aix_libpath_sed='
9113 /Import File Strings/,/^$/ {
9114 /^0/ {
9115 s/^0 *\(.*\)$/\1/
9119 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9120 # Check for a 64-bit object if we didn't find anything.
9121 if test -z "$aix_libpath"; then
9122 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9124 else
9125 echo "$as_me: failed program was:" >&5
9126 sed 's/^/| /' conftest.$ac_ext >&5
9129 rm -f conftest.err conftest.$ac_objext \
9130 conftest$ac_exeext conftest.$ac_ext
9131 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9133 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9134 # Warning - without using the other run time loading flags,
9135 # -berok will link without error, but may produce a broken library.
9136 no_undefined_flag=' ${wl}-bernotok'
9137 allow_undefined_flag=' ${wl}-berok'
9138 # Exported symbols can be pulled into shared objects from archives
9139 whole_archive_flag_spec='$convenience'
9140 archive_cmds_need_lc=yes
9141 # This is similar to how AIX traditionally builds its shared libraries.
9142 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'
9147 amigaos*)
9148 case $host_cpu in
9149 powerpc)
9150 # see comment about AmigaOS4 .so support
9151 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9152 archive_expsym_cmds=''
9154 m68k)
9155 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)'
9156 hardcode_libdir_flag_spec='-L$libdir'
9157 hardcode_minus_L=yes
9159 esac
9162 bsdi[45]*)
9163 export_dynamic_flag_spec=-rdynamic
9166 cygwin* | mingw* | pw32* | cegcc*)
9167 # When not using gcc, we currently assume that we are using
9168 # Microsoft Visual C++.
9169 # hardcode_libdir_flag_spec is actually meaningless, as there is
9170 # no search path for DLLs.
9171 hardcode_libdir_flag_spec=' '
9172 allow_undefined_flag=unsupported
9173 # Tell ltmain to make .lib files, not .a files.
9174 libext=lib
9175 # Tell ltmain to make .dll files, not .so files.
9176 shrext_cmds=".dll"
9177 # FIXME: Setting linknames here is a bad hack.
9178 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9179 # The linker will automatically build a .lib file if we build a DLL.
9180 old_archive_from_new_cmds='true'
9181 # FIXME: Should let the user specify the lib program.
9182 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9183 fix_srcfile_path='`cygpath -w "$srcfile"`'
9184 enable_shared_with_static_runtimes=yes
9187 darwin* | rhapsody*)
9190 archive_cmds_need_lc=no
9191 hardcode_direct=no
9192 hardcode_automatic=yes
9193 hardcode_shlibpath_var=unsupported
9194 whole_archive_flag_spec=''
9195 link_all_deplibs=yes
9196 allow_undefined_flag="$_lt_dar_allow_undefined"
9197 case $cc_basename in
9198 ifort*) _lt_dar_can_shared=yes ;;
9199 *) _lt_dar_can_shared=$GCC ;;
9200 esac
9201 if test "$_lt_dar_can_shared" = "yes"; then
9202 output_verbose_link_cmd=echo
9203 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9204 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9205 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 ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9206 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9208 else
9209 ld_shlibs=no
9214 dgux*)
9215 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9216 hardcode_libdir_flag_spec='-L$libdir'
9217 hardcode_shlibpath_var=no
9220 freebsd1*)
9221 ld_shlibs=no
9224 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9225 # support. Future versions do this automatically, but an explicit c++rt0.o
9226 # does not break anything, and helps significantly (at the cost of a little
9227 # extra space).
9228 freebsd2.2*)
9229 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9230 hardcode_libdir_flag_spec='-R$libdir'
9231 hardcode_direct=yes
9232 hardcode_shlibpath_var=no
9235 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9236 freebsd2*)
9237 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9238 hardcode_direct=yes
9239 hardcode_minus_L=yes
9240 hardcode_shlibpath_var=no
9243 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9244 freebsd* | dragonfly*)
9245 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9246 hardcode_libdir_flag_spec='-R$libdir'
9247 hardcode_direct=yes
9248 hardcode_shlibpath_var=no
9251 hpux9*)
9252 if test "$GCC" = yes; then
9253 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'
9254 else
9255 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'
9257 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9258 hardcode_libdir_separator=:
9259 hardcode_direct=yes
9261 # hardcode_minus_L: Not really in the search PATH,
9262 # but as the default location of the library.
9263 hardcode_minus_L=yes
9264 export_dynamic_flag_spec='${wl}-E'
9267 hpux10*)
9268 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9269 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9270 else
9271 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9273 if test "$with_gnu_ld" = no; then
9274 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9275 hardcode_libdir_flag_spec_ld='+b $libdir'
9276 hardcode_libdir_separator=:
9277 hardcode_direct=yes
9278 hardcode_direct_absolute=yes
9279 export_dynamic_flag_spec='${wl}-E'
9280 # hardcode_minus_L: Not really in the search PATH,
9281 # but as the default location of the library.
9282 hardcode_minus_L=yes
9286 hpux11*)
9287 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9288 case $host_cpu in
9289 hppa*64*)
9290 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9292 ia64*)
9293 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9296 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9298 esac
9299 else
9300 case $host_cpu in
9301 hppa*64*)
9302 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9304 ia64*)
9305 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9308 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9310 esac
9312 if test "$with_gnu_ld" = no; then
9313 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9314 hardcode_libdir_separator=:
9316 case $host_cpu in
9317 hppa*64*|ia64*)
9318 hardcode_direct=no
9319 hardcode_shlibpath_var=no
9322 hardcode_direct=yes
9323 hardcode_direct_absolute=yes
9324 export_dynamic_flag_spec='${wl}-E'
9326 # hardcode_minus_L: Not really in the search PATH,
9327 # but as the default location of the library.
9328 hardcode_minus_L=yes
9330 esac
9334 irix5* | irix6* | nonstopux*)
9335 if test "$GCC" = yes; then
9336 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'
9337 # Try to use the -exported_symbol ld option, if it does not
9338 # work, assume that -exports_file does not work either and
9339 # implicitly export all symbols.
9340 save_LDFLAGS="$LDFLAGS"
9341 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9342 cat >conftest.$ac_ext <<_ACEOF
9343 int foo(void) {}
9344 _ACEOF
9345 rm -f conftest.$ac_objext conftest$ac_exeext
9346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9347 (eval $ac_link) 2>conftest.er1
9348 ac_status=$?
9349 grep -v '^ *+' conftest.er1 >conftest.err
9350 rm -f conftest.er1
9351 cat conftest.err >&5
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); } &&
9354 { ac_try='test -z "$ac_c_werror_flag"
9355 || test ! -s conftest.err'
9356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9357 (eval $ac_try) 2>&5
9358 ac_status=$?
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); }; } &&
9361 { ac_try='test -s conftest$ac_exeext'
9362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9363 (eval $ac_try) 2>&5
9364 ac_status=$?
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); }; }; then
9367 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'
9369 else
9370 echo "$as_me: failed program was:" >&5
9371 sed 's/^/| /' conftest.$ac_ext >&5
9374 rm -f conftest.err conftest.$ac_objext \
9375 conftest$ac_exeext conftest.$ac_ext
9376 LDFLAGS="$save_LDFLAGS"
9377 else
9378 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'
9379 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'
9381 archive_cmds_need_lc='no'
9382 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9383 hardcode_libdir_separator=:
9384 inherit_rpath=yes
9385 link_all_deplibs=yes
9388 netbsd*)
9389 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9390 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9391 else
9392 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9394 hardcode_libdir_flag_spec='-R$libdir'
9395 hardcode_direct=yes
9396 hardcode_shlibpath_var=no
9399 newsos6)
9400 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9401 hardcode_direct=yes
9402 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9403 hardcode_libdir_separator=:
9404 hardcode_shlibpath_var=no
9407 *nto* | *qnx*)
9410 openbsd*)
9411 if test -f /usr/libexec/ld.so; then
9412 hardcode_direct=yes
9413 hardcode_shlibpath_var=no
9414 hardcode_direct_absolute=yes
9415 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9416 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9417 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9418 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9419 export_dynamic_flag_spec='${wl}-E'
9420 else
9421 case $host_os in
9422 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9423 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9424 hardcode_libdir_flag_spec='-R$libdir'
9427 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9428 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9430 esac
9432 else
9433 ld_shlibs=no
9437 os2*)
9438 hardcode_libdir_flag_spec='-L$libdir'
9439 hardcode_minus_L=yes
9440 allow_undefined_flag=unsupported
9441 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'
9442 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9445 osf3*)
9446 if test "$GCC" = yes; then
9447 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9448 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'
9449 else
9450 allow_undefined_flag=' -expect_unresolved \*'
9451 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'
9453 archive_cmds_need_lc='no'
9454 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9455 hardcode_libdir_separator=:
9458 osf4* | osf5*) # as osf3* with the addition of -msym flag
9459 if test "$GCC" = yes; then
9460 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9461 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'
9462 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9463 else
9464 allow_undefined_flag=' -expect_unresolved \*'
9465 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'
9466 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~
9467 $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'
9469 # Both c and cxx compiler support -rpath directly
9470 hardcode_libdir_flag_spec='-rpath $libdir'
9472 archive_cmds_need_lc='no'
9473 hardcode_libdir_separator=:
9476 solaris*)
9477 no_undefined_flag=' -z defs'
9478 if test "$GCC" = yes; then
9479 wlarc='${wl}'
9480 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9481 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9482 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9483 else
9484 case `$CC -V 2>&1` in
9485 *"Compilers 5.0"*)
9486 wlarc=''
9487 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9488 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9489 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9492 wlarc='${wl}'
9493 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9494 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9495 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9497 esac
9499 hardcode_libdir_flag_spec='-R$libdir'
9500 hardcode_shlibpath_var=no
9501 case $host_os in
9502 solaris2.[0-5] | solaris2.[0-5].*) ;;
9504 # The compiler driver will combine and reorder linker options,
9505 # but understands `-z linker_flag'. GCC discards it without `$wl',
9506 # but is careful enough not to reorder.
9507 # Supported since Solaris 2.6 (maybe 2.5.1?)
9508 if test "$GCC" = yes; then
9509 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9510 else
9511 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9514 esac
9515 link_all_deplibs=yes
9518 sunos4*)
9519 if test "x$host_vendor" = xsequent; then
9520 # Use $CC to link under sequent, because it throws in some extra .o
9521 # files that make .init and .fini sections work.
9522 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9523 else
9524 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9526 hardcode_libdir_flag_spec='-L$libdir'
9527 hardcode_direct=yes
9528 hardcode_minus_L=yes
9529 hardcode_shlibpath_var=no
9532 sysv4)
9533 case $host_vendor in
9534 sni)
9535 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9536 hardcode_direct=yes # is this really true???
9538 siemens)
9539 ## LD is ld it makes a PLAMLIB
9540 ## CC just makes a GrossModule.
9541 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9542 reload_cmds='$CC -r -o $output$reload_objs'
9543 hardcode_direct=no
9545 motorola)
9546 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9547 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9549 esac
9550 runpath_var='LD_RUN_PATH'
9551 hardcode_shlibpath_var=no
9554 sysv4.3*)
9555 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9556 hardcode_shlibpath_var=no
9557 export_dynamic_flag_spec='-Bexport'
9560 sysv4*MP*)
9561 if test -d /usr/nec; then
9562 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9563 hardcode_shlibpath_var=no
9564 runpath_var=LD_RUN_PATH
9565 hardcode_runpath_var=yes
9566 ld_shlibs=yes
9570 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9571 no_undefined_flag='${wl}-z,text'
9572 archive_cmds_need_lc=no
9573 hardcode_shlibpath_var=no
9574 runpath_var='LD_RUN_PATH'
9576 if test "$GCC" = yes; then
9577 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9578 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9579 else
9580 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9581 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9585 sysv5* | sco3.2v5* | sco5v6*)
9586 # Note: We can NOT use -z defs as we might desire, because we do not
9587 # link with -lc, and that would cause any symbols used from libc to
9588 # always be unresolved, which means just about no library would
9589 # ever link correctly. If we're not using GNU ld we use -z text
9590 # though, which does catch some bad symbols but isn't as heavy-handed
9591 # as -z defs.
9592 no_undefined_flag='${wl}-z,text'
9593 allow_undefined_flag='${wl}-z,nodefs'
9594 archive_cmds_need_lc=no
9595 hardcode_shlibpath_var=no
9596 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9597 hardcode_libdir_separator=':'
9598 link_all_deplibs=yes
9599 export_dynamic_flag_spec='${wl}-Bexport'
9600 runpath_var='LD_RUN_PATH'
9602 if test "$GCC" = yes; then
9603 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9604 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9605 else
9606 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9607 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9611 uts4*)
9612 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9613 hardcode_libdir_flag_spec='-L$libdir'
9614 hardcode_shlibpath_var=no
9618 ld_shlibs=no
9620 esac
9622 if test x$host_vendor = xsni; then
9623 case $host in
9624 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9625 export_dynamic_flag_spec='${wl}-Blargedynsym'
9627 esac
9631 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9632 echo "${ECHO_T}$ld_shlibs" >&6
9633 test "$ld_shlibs" = no && can_build_shared=no
9635 with_gnu_ld=$with_gnu_ld
9652 # Do we need to explicitly link libc?
9654 case "x$archive_cmds_need_lc" in
9655 x|xyes)
9656 # Assume -lc should be added
9657 archive_cmds_need_lc=yes
9659 if test "$enable_shared" = yes && test "$GCC" = yes; then
9660 case $archive_cmds in
9661 *'~'*)
9662 # FIXME: we may have to deal with multi-command sequences.
9664 '$CC '*)
9665 # Test whether the compiler implicitly links with -lc since on some
9666 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9667 # to ld, don't add -lc before -lgcc.
9668 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9669 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9670 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
9671 echo $ECHO_N "(cached) $ECHO_C" >&6
9672 else
9673 $RM conftest*
9674 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9677 (eval $ac_compile) 2>&5
9678 ac_status=$?
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); } 2>conftest.err; then
9681 soname=conftest
9682 lib=conftest
9683 libobjs=conftest.$ac_objext
9684 deplibs=
9685 wl=$lt_prog_compiler_wl
9686 pic_flag=$lt_prog_compiler_pic
9687 compiler_flags=-v
9688 linker_flags=-v
9689 verstring=
9690 output_objdir=.
9691 libname=conftest
9692 lt_save_allow_undefined_flag=$allow_undefined_flag
9693 allow_undefined_flag=
9694 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9695 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9696 ac_status=$?
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); }
9699 then
9700 lt_cv_archive_cmds_need_lc=no
9701 else
9702 lt_cv_archive_cmds_need_lc=yes
9704 allow_undefined_flag=$lt_save_allow_undefined_flag
9705 else
9706 cat conftest.err 1>&5
9708 $RM conftest*
9711 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
9712 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
9713 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9715 esac
9718 esac
9876 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9877 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9879 if test "$GCC" = yes; then
9880 case $host_os in
9881 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9882 *) lt_awk_arg="/^libraries:/" ;;
9883 esac
9884 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9885 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9886 # if the path contains ";" then we assume it to be the separator
9887 # otherwise default to the standard path separator (i.e. ":") - it is
9888 # assumed that no part of a normal pathname contains ";" but that should
9889 # okay in the real world where ";" in dirpaths is itself problematic.
9890 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9891 else
9892 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9894 # Ok, now we have the path, separated by spaces, we can step through it
9895 # and add multilib dir if necessary.
9896 lt_tmp_lt_search_path_spec=
9897 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9898 for lt_sys_path in $lt_search_path_spec; do
9899 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9900 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9901 else
9902 test -d "$lt_sys_path" && \
9903 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9905 done
9906 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9907 BEGIN {RS=" "; FS="/|\n";} {
9908 lt_foo="";
9909 lt_count=0;
9910 for (lt_i = NF; lt_i > 0; lt_i--) {
9911 if ($lt_i != "" && $lt_i != ".") {
9912 if ($lt_i == "..") {
9913 lt_count++;
9914 } else {
9915 if (lt_count == 0) {
9916 lt_foo="/" $lt_i lt_foo;
9917 } else {
9918 lt_count--;
9923 if (lt_foo != "") { lt_freq[lt_foo]++; }
9924 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9926 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9927 else
9928 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9930 library_names_spec=
9931 libname_spec='lib$name'
9932 soname_spec=
9933 shrext_cmds=".so"
9934 postinstall_cmds=
9935 postuninstall_cmds=
9936 finish_cmds=
9937 finish_eval=
9938 shlibpath_var=
9939 shlibpath_overrides_runpath=unknown
9940 version_type=none
9941 dynamic_linker="$host_os ld.so"
9942 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9943 need_lib_prefix=unknown
9944 hardcode_into_libs=no
9946 # when you set need_version to no, make sure it does not cause -set_version
9947 # flags to be left without arguments
9948 need_version=unknown
9950 case $host_os in
9951 aix3*)
9952 version_type=linux
9953 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9954 shlibpath_var=LIBPATH
9956 # AIX 3 has no versioning support, so we append a major version to the name.
9957 soname_spec='${libname}${release}${shared_ext}$major'
9960 aix[4-9]*)
9961 version_type=linux
9962 need_lib_prefix=no
9963 need_version=no
9964 hardcode_into_libs=yes
9965 if test "$host_cpu" = ia64; then
9966 # AIX 5 supports IA64
9967 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9968 shlibpath_var=LD_LIBRARY_PATH
9969 else
9970 # With GCC up to 2.95.x, collect2 would create an import file
9971 # for dependence libraries. The import file would start with
9972 # the line `#! .'. This would cause the generated library to
9973 # depend on `.', always an invalid library. This was fixed in
9974 # development snapshots of GCC prior to 3.0.
9975 case $host_os in
9976 aix4 | aix4.[01] | aix4.[01].*)
9977 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9978 echo ' yes '
9979 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9981 else
9982 can_build_shared=no
9985 esac
9986 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9987 # soname into executable. Probably we can add versioning support to
9988 # collect2, so additional links can be useful in future.
9989 if test "$aix_use_runtimelinking" = yes; then
9990 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9991 # instead of lib<name>.a to let people know that these are not
9992 # typical AIX shared libraries.
9993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9994 else
9995 # We preserve .a as extension for shared libraries through AIX4.2
9996 # and later when we are not doing run time linking.
9997 library_names_spec='${libname}${release}.a $libname.a'
9998 soname_spec='${libname}${release}${shared_ext}$major'
10000 shlibpath_var=LIBPATH
10004 amigaos*)
10005 case $host_cpu in
10006 powerpc)
10007 # Since July 2007 AmigaOS4 officially supports .so libraries.
10008 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10011 m68k)
10012 library_names_spec='$libname.ixlibrary $libname.a'
10013 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10014 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'
10016 esac
10019 beos*)
10020 library_names_spec='${libname}${shared_ext}'
10021 dynamic_linker="$host_os ld.so"
10022 shlibpath_var=LIBRARY_PATH
10025 bsdi[45]*)
10026 version_type=linux
10027 need_version=no
10028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10029 soname_spec='${libname}${release}${shared_ext}$major'
10030 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10031 shlibpath_var=LD_LIBRARY_PATH
10032 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10033 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10034 # the default ld.so.conf also contains /usr/contrib/lib and
10035 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10036 # libtool to hard-code these into programs
10039 cygwin* | mingw* | pw32* | cegcc*)
10040 version_type=windows
10041 shrext_cmds=".dll"
10042 need_version=no
10043 need_lib_prefix=no
10045 case $GCC,$host_os in
10046 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10047 library_names_spec='$libname.dll.a'
10048 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10049 postinstall_cmds='base_file=`basename \${file}`~
10050 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10051 dldir=$destdir/`dirname \$dlpath`~
10052 test -d \$dldir || mkdir -p \$dldir~
10053 $install_prog $dir/$dlname \$dldir/$dlname~
10054 chmod a+x \$dldir/$dlname~
10055 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10056 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10058 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10059 dlpath=$dir/\$dldll~
10060 $RM \$dlpath'
10061 shlibpath_overrides_runpath=yes
10063 case $host_os in
10064 cygwin*)
10065 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10066 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10067 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10069 mingw* | cegcc*)
10070 # MinGW DLLs use traditional 'lib' prefix
10071 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10072 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10073 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10074 # It is most probably a Windows format PATH printed by
10075 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10076 # path with ; separators, and with drive letters. We can handle the
10077 # drive letters (cygwin fileutils understands them), so leave them,
10078 # especially as we might pass files found there to a mingw objdump,
10079 # which wouldn't understand a cygwinified path. Ahh.
10080 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10081 else
10082 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10085 pw32*)
10086 # pw32 DLLs use 'pw' prefix rather than 'lib'
10087 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10089 esac
10093 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10095 esac
10096 dynamic_linker='Win32 ld.exe'
10097 # FIXME: first we should search . and the directory the executable is in
10098 shlibpath_var=PATH
10101 darwin* | rhapsody*)
10102 dynamic_linker="$host_os dyld"
10103 version_type=darwin
10104 need_lib_prefix=no
10105 need_version=no
10106 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10107 soname_spec='${libname}${release}${major}$shared_ext'
10108 shlibpath_overrides_runpath=yes
10109 shlibpath_var=DYLD_LIBRARY_PATH
10110 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10112 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10113 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10116 dgux*)
10117 version_type=linux
10118 need_lib_prefix=no
10119 need_version=no
10120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10121 soname_spec='${libname}${release}${shared_ext}$major'
10122 shlibpath_var=LD_LIBRARY_PATH
10125 freebsd1*)
10126 dynamic_linker=no
10129 freebsd* | dragonfly*)
10130 # DragonFly does not have aout. When/if they implement a new
10131 # versioning mechanism, adjust this.
10132 if test -x /usr/bin/objformat; then
10133 objformat=`/usr/bin/objformat`
10134 else
10135 case $host_os in
10136 freebsd[123]*) objformat=aout ;;
10137 *) objformat=elf ;;
10138 esac
10140 version_type=freebsd-$objformat
10141 case $version_type in
10142 freebsd-elf*)
10143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10144 need_version=no
10145 need_lib_prefix=no
10147 freebsd-*)
10148 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10149 need_version=yes
10151 esac
10152 shlibpath_var=LD_LIBRARY_PATH
10153 case $host_os in
10154 freebsd2*)
10155 shlibpath_overrides_runpath=yes
10157 freebsd3.[01]* | freebsdelf3.[01]*)
10158 shlibpath_overrides_runpath=yes
10159 hardcode_into_libs=yes
10161 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10162 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10163 shlibpath_overrides_runpath=no
10164 hardcode_into_libs=yes
10166 *) # from 4.6 on, and DragonFly
10167 shlibpath_overrides_runpath=yes
10168 hardcode_into_libs=yes
10170 esac
10173 gnu*)
10174 version_type=linux
10175 need_lib_prefix=no
10176 need_version=no
10177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10178 soname_spec='${libname}${release}${shared_ext}$major'
10179 shlibpath_var=LD_LIBRARY_PATH
10180 hardcode_into_libs=yes
10183 hpux9* | hpux10* | hpux11*)
10184 # Give a soname corresponding to the major version so that dld.sl refuses to
10185 # link against other versions.
10186 version_type=sunos
10187 need_lib_prefix=no
10188 need_version=no
10189 case $host_cpu in
10190 ia64*)
10191 shrext_cmds='.so'
10192 hardcode_into_libs=yes
10193 dynamic_linker="$host_os dld.so"
10194 shlibpath_var=LD_LIBRARY_PATH
10195 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10197 soname_spec='${libname}${release}${shared_ext}$major'
10198 if test "X$HPUX_IA64_MODE" = X32; then
10199 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10200 else
10201 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10203 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10205 hppa*64*)
10206 shrext_cmds='.sl'
10207 hardcode_into_libs=yes
10208 dynamic_linker="$host_os dld.sl"
10209 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10210 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10212 soname_spec='${libname}${release}${shared_ext}$major'
10213 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10214 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10217 shrext_cmds='.sl'
10218 dynamic_linker="$host_os dld.sl"
10219 shlibpath_var=SHLIB_PATH
10220 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10222 soname_spec='${libname}${release}${shared_ext}$major'
10224 esac
10225 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10226 postinstall_cmds='chmod 555 $lib'
10229 interix[3-9]*)
10230 version_type=linux
10231 need_lib_prefix=no
10232 need_version=no
10233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10234 soname_spec='${libname}${release}${shared_ext}$major'
10235 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10236 shlibpath_var=LD_LIBRARY_PATH
10237 shlibpath_overrides_runpath=no
10238 hardcode_into_libs=yes
10241 irix5* | irix6* | nonstopux*)
10242 case $host_os in
10243 nonstopux*) version_type=nonstopux ;;
10245 if test "$lt_cv_prog_gnu_ld" = yes; then
10246 version_type=linux
10247 else
10248 version_type=irix
10249 fi ;;
10250 esac
10251 need_lib_prefix=no
10252 need_version=no
10253 soname_spec='${libname}${release}${shared_ext}$major'
10254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10255 case $host_os in
10256 irix5* | nonstopux*)
10257 libsuff= shlibsuff=
10260 case $LD in # libtool.m4 will add one of these switches to LD
10261 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10262 libsuff= shlibsuff= libmagic=32-bit;;
10263 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10264 libsuff=32 shlibsuff=N32 libmagic=N32;;
10265 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10266 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10267 *) libsuff= shlibsuff= libmagic=never-match;;
10268 esac
10270 esac
10271 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10272 shlibpath_overrides_runpath=no
10273 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10274 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10275 hardcode_into_libs=yes
10278 # No shared lib support for Linux oldld, aout, or coff.
10279 linux*oldld* | linux*aout* | linux*coff*)
10280 dynamic_linker=no
10283 # This must be Linux ELF.
10284 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10285 version_type=linux
10286 need_lib_prefix=no
10287 need_version=no
10288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10289 soname_spec='${libname}${release}${shared_ext}$major'
10290 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10291 shlibpath_var=LD_LIBRARY_PATH
10292 shlibpath_overrides_runpath=no
10294 # Some binutils ld are patched to set DT_RUNPATH
10295 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
10296 echo $ECHO_N "(cached) $ECHO_C" >&6
10297 else
10298 lt_cv_shlibpath_overrides_runpath=no
10299 save_LDFLAGS=$LDFLAGS
10300 save_libdir=$libdir
10301 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10302 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10303 cat >conftest.$ac_ext <<_ACEOF
10304 /* confdefs.h. */
10305 _ACEOF
10306 cat confdefs.h >>conftest.$ac_ext
10307 cat >>conftest.$ac_ext <<_ACEOF
10308 /* end confdefs.h. */
10311 main ()
10315 return 0;
10317 _ACEOF
10318 rm -f conftest.$ac_objext conftest$ac_exeext
10319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10320 (eval $ac_link) 2>conftest.er1
10321 ac_status=$?
10322 grep -v '^ *+' conftest.er1 >conftest.err
10323 rm -f conftest.er1
10324 cat conftest.err >&5
10325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326 (exit $ac_status); } &&
10327 { ac_try='test -z "$ac_c_werror_flag"
10328 || test ! -s conftest.err'
10329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10330 (eval $ac_try) 2>&5
10331 ac_status=$?
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); }; } &&
10334 { ac_try='test -s conftest$ac_exeext'
10335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10336 (eval $ac_try) 2>&5
10337 ac_status=$?
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); }; }; then
10340 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10341 lt_cv_shlibpath_overrides_runpath=yes
10344 else
10345 echo "$as_me: failed program was:" >&5
10346 sed 's/^/| /' conftest.$ac_ext >&5
10349 rm -f conftest.err conftest.$ac_objext \
10350 conftest$ac_exeext conftest.$ac_ext
10351 LDFLAGS=$save_LDFLAGS
10352 libdir=$save_libdir
10356 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10358 # This implies no fast_install, which is unacceptable.
10359 # Some rework will be needed to allow for fast_install
10360 # before this can be enabled.
10361 hardcode_into_libs=yes
10363 # Append ld.so.conf contents to the search path
10364 if test -f /etc/ld.so.conf; then
10365 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10366 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10369 # We used to test for /lib/ld.so.1 and disable shared libraries on
10370 # powerpc, because MkLinux only supported shared libraries with the
10371 # GNU dynamic linker. Since this was broken with cross compilers,
10372 # most powerpc-linux boxes support dynamic linking these days and
10373 # people can always --disable-shared, the test was removed, and we
10374 # assume the GNU/Linux dynamic linker is in use.
10375 dynamic_linker='GNU/Linux ld.so'
10378 netbsd*)
10379 version_type=sunos
10380 need_lib_prefix=no
10381 need_version=no
10382 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10384 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10385 dynamic_linker='NetBSD (a.out) ld.so'
10386 else
10387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10388 soname_spec='${libname}${release}${shared_ext}$major'
10389 dynamic_linker='NetBSD ld.elf_so'
10391 shlibpath_var=LD_LIBRARY_PATH
10392 shlibpath_overrides_runpath=yes
10393 hardcode_into_libs=yes
10396 newsos6)
10397 version_type=linux
10398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10399 shlibpath_var=LD_LIBRARY_PATH
10400 shlibpath_overrides_runpath=yes
10403 *nto* | *qnx*)
10404 version_type=qnx
10405 need_lib_prefix=no
10406 need_version=no
10407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10408 soname_spec='${libname}${release}${shared_ext}$major'
10409 shlibpath_var=LD_LIBRARY_PATH
10410 shlibpath_overrides_runpath=no
10411 hardcode_into_libs=yes
10412 dynamic_linker='ldqnx.so'
10415 openbsd*)
10416 version_type=sunos
10417 sys_lib_dlsearch_path_spec="/usr/lib"
10418 need_lib_prefix=no
10419 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10420 case $host_os in
10421 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10422 *) need_version=no ;;
10423 esac
10424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10425 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10426 shlibpath_var=LD_LIBRARY_PATH
10427 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10428 case $host_os in
10429 openbsd2.[89] | openbsd2.[89].*)
10430 shlibpath_overrides_runpath=no
10433 shlibpath_overrides_runpath=yes
10435 esac
10436 else
10437 shlibpath_overrides_runpath=yes
10441 os2*)
10442 libname_spec='$name'
10443 shrext_cmds=".dll"
10444 need_lib_prefix=no
10445 library_names_spec='$libname${shared_ext} $libname.a'
10446 dynamic_linker='OS/2 ld.exe'
10447 shlibpath_var=LIBPATH
10450 osf3* | osf4* | osf5*)
10451 version_type=osf
10452 need_lib_prefix=no
10453 need_version=no
10454 soname_spec='${libname}${release}${shared_ext}$major'
10455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10456 shlibpath_var=LD_LIBRARY_PATH
10457 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10458 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10461 rdos*)
10462 dynamic_linker=no
10465 solaris*)
10466 version_type=linux
10467 need_lib_prefix=no
10468 need_version=no
10469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10470 soname_spec='${libname}${release}${shared_ext}$major'
10471 shlibpath_var=LD_LIBRARY_PATH
10472 shlibpath_overrides_runpath=yes
10473 hardcode_into_libs=yes
10474 # ldd complains unless libraries are executable
10475 postinstall_cmds='chmod +x $lib'
10478 sunos4*)
10479 version_type=sunos
10480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10481 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10482 shlibpath_var=LD_LIBRARY_PATH
10483 shlibpath_overrides_runpath=yes
10484 if test "$with_gnu_ld" = yes; then
10485 need_lib_prefix=no
10487 need_version=yes
10490 sysv4 | sysv4.3*)
10491 version_type=linux
10492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10493 soname_spec='${libname}${release}${shared_ext}$major'
10494 shlibpath_var=LD_LIBRARY_PATH
10495 case $host_vendor in
10496 sni)
10497 shlibpath_overrides_runpath=no
10498 need_lib_prefix=no
10499 runpath_var=LD_RUN_PATH
10501 siemens)
10502 need_lib_prefix=no
10504 motorola)
10505 need_lib_prefix=no
10506 need_version=no
10507 shlibpath_overrides_runpath=no
10508 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10510 esac
10513 sysv4*MP*)
10514 if test -d /usr/nec ;then
10515 version_type=linux
10516 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10517 soname_spec='$libname${shared_ext}.$major'
10518 shlibpath_var=LD_LIBRARY_PATH
10522 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10523 version_type=freebsd-elf
10524 need_lib_prefix=no
10525 need_version=no
10526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10527 soname_spec='${libname}${release}${shared_ext}$major'
10528 shlibpath_var=LD_LIBRARY_PATH
10529 shlibpath_overrides_runpath=yes
10530 hardcode_into_libs=yes
10531 if test "$with_gnu_ld" = yes; then
10532 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10533 else
10534 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10535 case $host_os in
10536 sco3.2v5*)
10537 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10539 esac
10541 sys_lib_dlsearch_path_spec='/usr/lib'
10544 tpf*)
10545 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10546 version_type=linux
10547 need_lib_prefix=no
10548 need_version=no
10549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10550 shlibpath_var=LD_LIBRARY_PATH
10551 shlibpath_overrides_runpath=no
10552 hardcode_into_libs=yes
10555 uts4*)
10556 version_type=linux
10557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10558 soname_spec='${libname}${release}${shared_ext}$major'
10559 shlibpath_var=LD_LIBRARY_PATH
10563 dynamic_linker=no
10565 esac
10566 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10567 echo "${ECHO_T}$dynamic_linker" >&6
10568 test "$dynamic_linker" = no && can_build_shared=no
10570 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10571 if test "$GCC" = yes; then
10572 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10575 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10576 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10578 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10579 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10668 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10669 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10670 hardcode_action=
10671 if test -n "$hardcode_libdir_flag_spec" ||
10672 test -n "$runpath_var" ||
10673 test "X$hardcode_automatic" = "Xyes" ; then
10675 # We can hardcode non-existent directories.
10676 if test "$hardcode_direct" != no &&
10677 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10678 # have to relink, otherwise we might link with an installed library
10679 # when we should be linking with a yet-to-be-installed one
10680 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10681 test "$hardcode_minus_L" != no; then
10682 # Linking always hardcodes the temporary library directory.
10683 hardcode_action=relink
10684 else
10685 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10686 hardcode_action=immediate
10688 else
10689 # We cannot hardcode anything, or else we can only hardcode existing
10690 # directories.
10691 hardcode_action=unsupported
10693 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10694 echo "${ECHO_T}$hardcode_action" >&6
10696 if test "$hardcode_action" = relink ||
10697 test "$inherit_rpath" = yes; then
10698 # Fast installation is not supported
10699 enable_fast_install=no
10700 elif test "$shlibpath_overrides_runpath" = yes ||
10701 test "$enable_shared" = no; then
10702 # Fast installation is not necessary
10703 enable_fast_install=needless
10711 if test "x$enable_dlopen" != xyes; then
10712 enable_dlopen=unknown
10713 enable_dlopen_self=unknown
10714 enable_dlopen_self_static=unknown
10715 else
10716 lt_cv_dlopen=no
10717 lt_cv_dlopen_libs=
10719 case $host_os in
10720 beos*)
10721 lt_cv_dlopen="load_add_on"
10722 lt_cv_dlopen_libs=
10723 lt_cv_dlopen_self=yes
10726 mingw* | pw32* | cegcc*)
10727 lt_cv_dlopen="LoadLibrary"
10728 lt_cv_dlopen_libs=
10731 cygwin*)
10732 lt_cv_dlopen="dlopen"
10733 lt_cv_dlopen_libs=
10736 darwin*)
10737 # if libdl is installed we need to link against it
10738 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10739 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10740 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10741 echo $ECHO_N "(cached) $ECHO_C" >&6
10742 else
10743 ac_check_lib_save_LIBS=$LIBS
10744 LIBS="-ldl $LIBS"
10745 cat >conftest.$ac_ext <<_ACEOF
10746 /* confdefs.h. */
10747 _ACEOF
10748 cat confdefs.h >>conftest.$ac_ext
10749 cat >>conftest.$ac_ext <<_ACEOF
10750 /* end confdefs.h. */
10752 /* Override any gcc2 internal prototype to avoid an error. */
10753 #ifdef __cplusplus
10754 extern "C"
10755 #endif
10756 /* We use char because int might match the return type of a gcc2
10757 builtin and then its argument prototype would still apply. */
10758 char dlopen ();
10760 main ()
10762 dlopen ();
10764 return 0;
10766 _ACEOF
10767 rm -f conftest.$ac_objext conftest$ac_exeext
10768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10769 (eval $ac_link) 2>conftest.er1
10770 ac_status=$?
10771 grep -v '^ *+' conftest.er1 >conftest.err
10772 rm -f conftest.er1
10773 cat conftest.err >&5
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); } &&
10776 { ac_try='test -z "$ac_c_werror_flag"
10777 || test ! -s conftest.err'
10778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10779 (eval $ac_try) 2>&5
10780 ac_status=$?
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); }; } &&
10783 { ac_try='test -s conftest$ac_exeext'
10784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10785 (eval $ac_try) 2>&5
10786 ac_status=$?
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); }; }; then
10789 ac_cv_lib_dl_dlopen=yes
10790 else
10791 echo "$as_me: failed program was:" >&5
10792 sed 's/^/| /' conftest.$ac_ext >&5
10794 ac_cv_lib_dl_dlopen=no
10796 rm -f conftest.err conftest.$ac_objext \
10797 conftest$ac_exeext conftest.$ac_ext
10798 LIBS=$ac_check_lib_save_LIBS
10800 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10801 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10802 if test $ac_cv_lib_dl_dlopen = yes; then
10803 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10804 else
10806 lt_cv_dlopen="dyld"
10807 lt_cv_dlopen_libs=
10808 lt_cv_dlopen_self=yes
10815 echo "$as_me:$LINENO: checking for shl_load" >&5
10816 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10817 if test "${ac_cv_func_shl_load+set}" = set; then
10818 echo $ECHO_N "(cached) $ECHO_C" >&6
10819 else
10820 cat >conftest.$ac_ext <<_ACEOF
10821 /* confdefs.h. */
10822 _ACEOF
10823 cat confdefs.h >>conftest.$ac_ext
10824 cat >>conftest.$ac_ext <<_ACEOF
10825 /* end confdefs.h. */
10826 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10828 #define shl_load innocuous_shl_load
10830 /* System header to define __stub macros and hopefully few prototypes,
10831 which can conflict with char shl_load (); below.
10832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10833 <limits.h> exists even on freestanding compilers. */
10835 #ifdef __STDC__
10836 # include <limits.h>
10837 #else
10838 # include <assert.h>
10839 #endif
10841 #undef shl_load
10843 /* Override any gcc2 internal prototype to avoid an error. */
10844 #ifdef __cplusplus
10845 extern "C"
10847 #endif
10848 /* We use char because int might match the return type of a gcc2
10849 builtin and then its argument prototype would still apply. */
10850 char shl_load ();
10851 /* The GNU C library defines this for functions which it implements
10852 to always fail with ENOSYS. Some functions are actually named
10853 something starting with __ and the normal name is an alias. */
10854 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10855 choke me
10856 #else
10857 char (*f) () = shl_load;
10858 #endif
10859 #ifdef __cplusplus
10861 #endif
10864 main ()
10866 return f != shl_load;
10868 return 0;
10870 _ACEOF
10871 rm -f conftest.$ac_objext conftest$ac_exeext
10872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10873 (eval $ac_link) 2>conftest.er1
10874 ac_status=$?
10875 grep -v '^ *+' conftest.er1 >conftest.err
10876 rm -f conftest.er1
10877 cat conftest.err >&5
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); } &&
10880 { ac_try='test -z "$ac_c_werror_flag"
10881 || test ! -s conftest.err'
10882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10883 (eval $ac_try) 2>&5
10884 ac_status=$?
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); }; } &&
10887 { ac_try='test -s conftest$ac_exeext'
10888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10889 (eval $ac_try) 2>&5
10890 ac_status=$?
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); }; }; then
10893 ac_cv_func_shl_load=yes
10894 else
10895 echo "$as_me: failed program was:" >&5
10896 sed 's/^/| /' conftest.$ac_ext >&5
10898 ac_cv_func_shl_load=no
10900 rm -f conftest.err conftest.$ac_objext \
10901 conftest$ac_exeext conftest.$ac_ext
10903 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10904 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10905 if test $ac_cv_func_shl_load = yes; then
10906 lt_cv_dlopen="shl_load"
10907 else
10908 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10909 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10910 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10911 echo $ECHO_N "(cached) $ECHO_C" >&6
10912 else
10913 ac_check_lib_save_LIBS=$LIBS
10914 LIBS="-ldld $LIBS"
10915 cat >conftest.$ac_ext <<_ACEOF
10916 /* confdefs.h. */
10917 _ACEOF
10918 cat confdefs.h >>conftest.$ac_ext
10919 cat >>conftest.$ac_ext <<_ACEOF
10920 /* end confdefs.h. */
10922 /* Override any gcc2 internal prototype to avoid an error. */
10923 #ifdef __cplusplus
10924 extern "C"
10925 #endif
10926 /* We use char because int might match the return type of a gcc2
10927 builtin and then its argument prototype would still apply. */
10928 char shl_load ();
10930 main ()
10932 shl_load ();
10934 return 0;
10936 _ACEOF
10937 rm -f conftest.$ac_objext conftest$ac_exeext
10938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10939 (eval $ac_link) 2>conftest.er1
10940 ac_status=$?
10941 grep -v '^ *+' conftest.er1 >conftest.err
10942 rm -f conftest.er1
10943 cat conftest.err >&5
10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); } &&
10946 { ac_try='test -z "$ac_c_werror_flag"
10947 || test ! -s conftest.err'
10948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10949 (eval $ac_try) 2>&5
10950 ac_status=$?
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); }; } &&
10953 { ac_try='test -s conftest$ac_exeext'
10954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10955 (eval $ac_try) 2>&5
10956 ac_status=$?
10957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); }; }; then
10959 ac_cv_lib_dld_shl_load=yes
10960 else
10961 echo "$as_me: failed program was:" >&5
10962 sed 's/^/| /' conftest.$ac_ext >&5
10964 ac_cv_lib_dld_shl_load=no
10966 rm -f conftest.err conftest.$ac_objext \
10967 conftest$ac_exeext conftest.$ac_ext
10968 LIBS=$ac_check_lib_save_LIBS
10970 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10971 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10972 if test $ac_cv_lib_dld_shl_load = yes; then
10973 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10974 else
10975 echo "$as_me:$LINENO: checking for dlopen" >&5
10976 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10977 if test "${ac_cv_func_dlopen+set}" = set; then
10978 echo $ECHO_N "(cached) $ECHO_C" >&6
10979 else
10980 cat >conftest.$ac_ext <<_ACEOF
10981 /* confdefs.h. */
10982 _ACEOF
10983 cat confdefs.h >>conftest.$ac_ext
10984 cat >>conftest.$ac_ext <<_ACEOF
10985 /* end confdefs.h. */
10986 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10988 #define dlopen innocuous_dlopen
10990 /* System header to define __stub macros and hopefully few prototypes,
10991 which can conflict with char dlopen (); below.
10992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10993 <limits.h> exists even on freestanding compilers. */
10995 #ifdef __STDC__
10996 # include <limits.h>
10997 #else
10998 # include <assert.h>
10999 #endif
11001 #undef dlopen
11003 /* Override any gcc2 internal prototype to avoid an error. */
11004 #ifdef __cplusplus
11005 extern "C"
11007 #endif
11008 /* We use char because int might match the return type of a gcc2
11009 builtin and then its argument prototype would still apply. */
11010 char dlopen ();
11011 /* The GNU C library defines this for functions which it implements
11012 to always fail with ENOSYS. Some functions are actually named
11013 something starting with __ and the normal name is an alias. */
11014 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11015 choke me
11016 #else
11017 char (*f) () = dlopen;
11018 #endif
11019 #ifdef __cplusplus
11021 #endif
11024 main ()
11026 return f != dlopen;
11028 return 0;
11030 _ACEOF
11031 rm -f conftest.$ac_objext conftest$ac_exeext
11032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11033 (eval $ac_link) 2>conftest.er1
11034 ac_status=$?
11035 grep -v '^ *+' conftest.er1 >conftest.err
11036 rm -f conftest.er1
11037 cat conftest.err >&5
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); } &&
11040 { ac_try='test -z "$ac_c_werror_flag"
11041 || test ! -s conftest.err'
11042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11043 (eval $ac_try) 2>&5
11044 ac_status=$?
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); }; } &&
11047 { ac_try='test -s conftest$ac_exeext'
11048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11049 (eval $ac_try) 2>&5
11050 ac_status=$?
11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); }; }; then
11053 ac_cv_func_dlopen=yes
11054 else
11055 echo "$as_me: failed program was:" >&5
11056 sed 's/^/| /' conftest.$ac_ext >&5
11058 ac_cv_func_dlopen=no
11060 rm -f conftest.err conftest.$ac_objext \
11061 conftest$ac_exeext conftest.$ac_ext
11063 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11064 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11065 if test $ac_cv_func_dlopen = yes; then
11066 lt_cv_dlopen="dlopen"
11067 else
11068 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11069 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11070 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11071 echo $ECHO_N "(cached) $ECHO_C" >&6
11072 else
11073 ac_check_lib_save_LIBS=$LIBS
11074 LIBS="-ldl $LIBS"
11075 cat >conftest.$ac_ext <<_ACEOF
11076 /* confdefs.h. */
11077 _ACEOF
11078 cat confdefs.h >>conftest.$ac_ext
11079 cat >>conftest.$ac_ext <<_ACEOF
11080 /* end confdefs.h. */
11082 /* Override any gcc2 internal prototype to avoid an error. */
11083 #ifdef __cplusplus
11084 extern "C"
11085 #endif
11086 /* We use char because int might match the return type of a gcc2
11087 builtin and then its argument prototype would still apply. */
11088 char dlopen ();
11090 main ()
11092 dlopen ();
11094 return 0;
11096 _ACEOF
11097 rm -f conftest.$ac_objext conftest$ac_exeext
11098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11099 (eval $ac_link) 2>conftest.er1
11100 ac_status=$?
11101 grep -v '^ *+' conftest.er1 >conftest.err
11102 rm -f conftest.er1
11103 cat conftest.err >&5
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); } &&
11106 { ac_try='test -z "$ac_c_werror_flag"
11107 || test ! -s conftest.err'
11108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11109 (eval $ac_try) 2>&5
11110 ac_status=$?
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); }; } &&
11113 { ac_try='test -s conftest$ac_exeext'
11114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11115 (eval $ac_try) 2>&5
11116 ac_status=$?
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); }; }; then
11119 ac_cv_lib_dl_dlopen=yes
11120 else
11121 echo "$as_me: failed program was:" >&5
11122 sed 's/^/| /' conftest.$ac_ext >&5
11124 ac_cv_lib_dl_dlopen=no
11126 rm -f conftest.err conftest.$ac_objext \
11127 conftest$ac_exeext conftest.$ac_ext
11128 LIBS=$ac_check_lib_save_LIBS
11130 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11131 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11132 if test $ac_cv_lib_dl_dlopen = yes; then
11133 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11134 else
11135 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11136 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11137 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11138 echo $ECHO_N "(cached) $ECHO_C" >&6
11139 else
11140 ac_check_lib_save_LIBS=$LIBS
11141 LIBS="-lsvld $LIBS"
11142 cat >conftest.$ac_ext <<_ACEOF
11143 /* confdefs.h. */
11144 _ACEOF
11145 cat confdefs.h >>conftest.$ac_ext
11146 cat >>conftest.$ac_ext <<_ACEOF
11147 /* end confdefs.h. */
11149 /* Override any gcc2 internal prototype to avoid an error. */
11150 #ifdef __cplusplus
11151 extern "C"
11152 #endif
11153 /* We use char because int might match the return type of a gcc2
11154 builtin and then its argument prototype would still apply. */
11155 char dlopen ();
11157 main ()
11159 dlopen ();
11161 return 0;
11163 _ACEOF
11164 rm -f conftest.$ac_objext conftest$ac_exeext
11165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11166 (eval $ac_link) 2>conftest.er1
11167 ac_status=$?
11168 grep -v '^ *+' conftest.er1 >conftest.err
11169 rm -f conftest.er1
11170 cat conftest.err >&5
11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); } &&
11173 { ac_try='test -z "$ac_c_werror_flag"
11174 || test ! -s conftest.err'
11175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11176 (eval $ac_try) 2>&5
11177 ac_status=$?
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); }; } &&
11180 { ac_try='test -s conftest$ac_exeext'
11181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11182 (eval $ac_try) 2>&5
11183 ac_status=$?
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); }; }; then
11186 ac_cv_lib_svld_dlopen=yes
11187 else
11188 echo "$as_me: failed program was:" >&5
11189 sed 's/^/| /' conftest.$ac_ext >&5
11191 ac_cv_lib_svld_dlopen=no
11193 rm -f conftest.err conftest.$ac_objext \
11194 conftest$ac_exeext conftest.$ac_ext
11195 LIBS=$ac_check_lib_save_LIBS
11197 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11198 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11199 if test $ac_cv_lib_svld_dlopen = yes; then
11200 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11201 else
11202 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11203 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11204 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11205 echo $ECHO_N "(cached) $ECHO_C" >&6
11206 else
11207 ac_check_lib_save_LIBS=$LIBS
11208 LIBS="-ldld $LIBS"
11209 cat >conftest.$ac_ext <<_ACEOF
11210 /* confdefs.h. */
11211 _ACEOF
11212 cat confdefs.h >>conftest.$ac_ext
11213 cat >>conftest.$ac_ext <<_ACEOF
11214 /* end confdefs.h. */
11216 /* Override any gcc2 internal prototype to avoid an error. */
11217 #ifdef __cplusplus
11218 extern "C"
11219 #endif
11220 /* We use char because int might match the return type of a gcc2
11221 builtin and then its argument prototype would still apply. */
11222 char dld_link ();
11224 main ()
11226 dld_link ();
11228 return 0;
11230 _ACEOF
11231 rm -f conftest.$ac_objext conftest$ac_exeext
11232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11233 (eval $ac_link) 2>conftest.er1
11234 ac_status=$?
11235 grep -v '^ *+' conftest.er1 >conftest.err
11236 rm -f conftest.er1
11237 cat conftest.err >&5
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); } &&
11240 { ac_try='test -z "$ac_c_werror_flag"
11241 || test ! -s conftest.err'
11242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11243 (eval $ac_try) 2>&5
11244 ac_status=$?
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); }; } &&
11247 { ac_try='test -s conftest$ac_exeext'
11248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11249 (eval $ac_try) 2>&5
11250 ac_status=$?
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); }; }; then
11253 ac_cv_lib_dld_dld_link=yes
11254 else
11255 echo "$as_me: failed program was:" >&5
11256 sed 's/^/| /' conftest.$ac_ext >&5
11258 ac_cv_lib_dld_dld_link=no
11260 rm -f conftest.err conftest.$ac_objext \
11261 conftest$ac_exeext conftest.$ac_ext
11262 LIBS=$ac_check_lib_save_LIBS
11264 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11265 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11266 if test $ac_cv_lib_dld_dld_link = yes; then
11267 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11286 esac
11288 if test "x$lt_cv_dlopen" != xno; then
11289 enable_dlopen=yes
11290 else
11291 enable_dlopen=no
11294 case $lt_cv_dlopen in
11295 dlopen)
11296 save_CPPFLAGS="$CPPFLAGS"
11297 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11299 save_LDFLAGS="$LDFLAGS"
11300 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11302 save_LIBS="$LIBS"
11303 LIBS="$lt_cv_dlopen_libs $LIBS"
11305 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11306 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11307 if test "${lt_cv_dlopen_self+set}" = set; then
11308 echo $ECHO_N "(cached) $ECHO_C" >&6
11309 else
11310 if test "$cross_compiling" = yes; then :
11311 lt_cv_dlopen_self=cross
11312 else
11313 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11314 lt_status=$lt_dlunknown
11315 cat > conftest.$ac_ext <<_LT_EOF
11316 #line 11316 "configure"
11317 #include "confdefs.h"
11319 #if HAVE_DLFCN_H
11320 #include <dlfcn.h>
11321 #endif
11323 #include <stdio.h>
11325 #ifdef RTLD_GLOBAL
11326 # define LT_DLGLOBAL RTLD_GLOBAL
11327 #else
11328 # ifdef DL_GLOBAL
11329 # define LT_DLGLOBAL DL_GLOBAL
11330 # else
11331 # define LT_DLGLOBAL 0
11332 # endif
11333 #endif
11335 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11336 find out it does not work in some platform. */
11337 #ifndef LT_DLLAZY_OR_NOW
11338 # ifdef RTLD_LAZY
11339 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11340 # else
11341 # ifdef DL_LAZY
11342 # define LT_DLLAZY_OR_NOW DL_LAZY
11343 # else
11344 # ifdef RTLD_NOW
11345 # define LT_DLLAZY_OR_NOW RTLD_NOW
11346 # else
11347 # ifdef DL_NOW
11348 # define LT_DLLAZY_OR_NOW DL_NOW
11349 # else
11350 # define LT_DLLAZY_OR_NOW 0
11351 # endif
11352 # endif
11353 # endif
11354 # endif
11355 #endif
11357 void fnord() { int i=42;}
11358 int main ()
11360 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11361 int status = $lt_dlunknown;
11363 if (self)
11365 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11366 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11367 /* dlclose (self); */
11369 else
11370 puts (dlerror ());
11372 return status;
11374 _LT_EOF
11375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11376 (eval $ac_link) 2>&5
11377 ac_status=$?
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11380 (./conftest; exit; ) >&5 2>/dev/null
11381 lt_status=$?
11382 case x$lt_status in
11383 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11384 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11385 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11386 esac
11387 else :
11388 # compilation failed
11389 lt_cv_dlopen_self=no
11392 rm -fr conftest*
11396 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11397 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11399 if test "x$lt_cv_dlopen_self" = xyes; then
11400 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11401 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11402 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11403 if test "${lt_cv_dlopen_self_static+set}" = set; then
11404 echo $ECHO_N "(cached) $ECHO_C" >&6
11405 else
11406 if test "$cross_compiling" = yes; then :
11407 lt_cv_dlopen_self_static=cross
11408 else
11409 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11410 lt_status=$lt_dlunknown
11411 cat > conftest.$ac_ext <<_LT_EOF
11412 #line 11412 "configure"
11413 #include "confdefs.h"
11415 #if HAVE_DLFCN_H
11416 #include <dlfcn.h>
11417 #endif
11419 #include <stdio.h>
11421 #ifdef RTLD_GLOBAL
11422 # define LT_DLGLOBAL RTLD_GLOBAL
11423 #else
11424 # ifdef DL_GLOBAL
11425 # define LT_DLGLOBAL DL_GLOBAL
11426 # else
11427 # define LT_DLGLOBAL 0
11428 # endif
11429 #endif
11431 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11432 find out it does not work in some platform. */
11433 #ifndef LT_DLLAZY_OR_NOW
11434 # ifdef RTLD_LAZY
11435 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11436 # else
11437 # ifdef DL_LAZY
11438 # define LT_DLLAZY_OR_NOW DL_LAZY
11439 # else
11440 # ifdef RTLD_NOW
11441 # define LT_DLLAZY_OR_NOW RTLD_NOW
11442 # else
11443 # ifdef DL_NOW
11444 # define LT_DLLAZY_OR_NOW DL_NOW
11445 # else
11446 # define LT_DLLAZY_OR_NOW 0
11447 # endif
11448 # endif
11449 # endif
11450 # endif
11451 #endif
11453 void fnord() { int i=42;}
11454 int main ()
11456 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11457 int status = $lt_dlunknown;
11459 if (self)
11461 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11462 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11463 /* dlclose (self); */
11465 else
11466 puts (dlerror ());
11468 return status;
11470 _LT_EOF
11471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11472 (eval $ac_link) 2>&5
11473 ac_status=$?
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11476 (./conftest; exit; ) >&5 2>/dev/null
11477 lt_status=$?
11478 case x$lt_status in
11479 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11480 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11481 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11482 esac
11483 else :
11484 # compilation failed
11485 lt_cv_dlopen_self_static=no
11488 rm -fr conftest*
11492 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11493 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11496 CPPFLAGS="$save_CPPFLAGS"
11497 LDFLAGS="$save_LDFLAGS"
11498 LIBS="$save_LIBS"
11500 esac
11502 case $lt_cv_dlopen_self in
11503 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11504 *) enable_dlopen_self=unknown ;;
11505 esac
11507 case $lt_cv_dlopen_self_static in
11508 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11509 *) enable_dlopen_self_static=unknown ;;
11510 esac
11529 striplib=
11530 old_striplib=
11531 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11532 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11533 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11534 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11535 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11536 echo "$as_me:$LINENO: result: yes" >&5
11537 echo "${ECHO_T}yes" >&6
11538 else
11539 # FIXME - insert some real tests, host_os isn't really good enough
11540 case $host_os in
11541 darwin*)
11542 if test -n "$STRIP" ; then
11543 striplib="$STRIP -x"
11544 old_striplib="$STRIP -S"
11545 echo "$as_me:$LINENO: result: yes" >&5
11546 echo "${ECHO_T}yes" >&6
11547 else
11548 echo "$as_me:$LINENO: result: no" >&5
11549 echo "${ECHO_T}no" >&6
11553 echo "$as_me:$LINENO: result: no" >&5
11554 echo "${ECHO_T}no" >&6
11556 esac
11570 # Report which library types will actually be built
11571 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11572 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11573 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11574 echo "${ECHO_T}$can_build_shared" >&6
11576 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11577 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11578 test "$can_build_shared" = "no" && enable_shared=no
11580 # On AIX, shared libraries and static libraries use the same namespace, and
11581 # are all built from PIC.
11582 case $host_os in
11583 aix3*)
11584 test "$enable_shared" = yes && enable_static=no
11585 if test -n "$RANLIB"; then
11586 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11587 postinstall_cmds='$RANLIB $lib'
11591 aix[4-9]*)
11592 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11593 test "$enable_shared" = yes && enable_static=no
11596 esac
11597 echo "$as_me:$LINENO: result: $enable_shared" >&5
11598 echo "${ECHO_T}$enable_shared" >&6
11600 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11601 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11602 # Make sure either enable_shared or enable_static is yes.
11603 test "$enable_shared" = yes || enable_static=yes
11604 echo "$as_me:$LINENO: result: $enable_static" >&5
11605 echo "${ECHO_T}$enable_static" >&6
11611 ac_ext=c
11612 ac_cpp='$CPP $CPPFLAGS'
11613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11617 CC="$lt_save_CC"
11631 ac_config_commands="$ac_config_commands libtool"
11636 # Only expand once:
11640 # Check whether --enable-targets or --disable-targets was given.
11641 if test "${enable_targets+set}" = set; then
11642 enableval="$enable_targets"
11643 case "${enableval}" in
11644 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
11645 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
11646 { (exit 1); exit 1; }; }
11648 no) enable_targets= ;;
11649 *) enable_targets=$enableval ;;
11650 esac
11653 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11655 # Check whether --enable-werror or --disable-werror was given.
11656 if test "${enable_werror+set}" = set; then
11657 enableval="$enable_werror"
11658 case "${enableval}" in
11659 yes | y) ERROR_ON_WARNING="yes" ;;
11660 no | n) ERROR_ON_WARNING="no" ;;
11661 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
11662 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
11663 { (exit 1); exit 1; }; } ;;
11664 esac
11667 # Enable -Wno-format by default when using gcc on mingw
11668 case "${host}" in
11669 *-*-mingw32*)
11670 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11671 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11674 *) ;;
11675 esac
11677 # Enable -Werror by default when using gcc
11678 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11679 ERROR_ON_WARNING=yes
11682 NO_WERROR=
11683 if test "${ERROR_ON_WARNING}" = yes ; then
11684 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11685 NO_WERROR="-Wno-error"
11688 if test "${GCC}" = yes ; then
11689 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11692 # Check whether --enable-build-warnings or --disable-build-warnings was given.
11693 if test "${enable_build_warnings+set}" = set; then
11694 enableval="$enable_build_warnings"
11695 case "${enableval}" in
11696 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11697 no) if test "${GCC}" = yes ; then
11698 WARN_CFLAGS="-w"
11699 fi;;
11700 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11701 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11702 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11703 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11704 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11705 esac
11708 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11709 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11716 ac_config_headers="$ac_config_headers config.h:config.in"
11719 if test -z "$target" ; then
11720 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
11721 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
11722 { (exit 1); exit 1; }; }
11724 if test -z "$host" ; then
11725 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
11726 echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
11727 { (exit 1); exit 1; }; }
11730 for ac_prog in 'bison -y' byacc
11732 # Extract the first word of "$ac_prog", so it can be a program name with args.
11733 set dummy $ac_prog; ac_word=$2
11734 echo "$as_me:$LINENO: checking for $ac_word" >&5
11735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11736 if test "${ac_cv_prog_YACC+set}" = set; then
11737 echo $ECHO_N "(cached) $ECHO_C" >&6
11738 else
11739 if test -n "$YACC"; then
11740 ac_cv_prog_YACC="$YACC" # Let the user override the test.
11741 else
11742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11743 for as_dir in $PATH
11745 IFS=$as_save_IFS
11746 test -z "$as_dir" && as_dir=.
11747 for ac_exec_ext in '' $ac_executable_extensions; do
11748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11749 ac_cv_prog_YACC="$ac_prog"
11750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11751 break 2
11753 done
11754 done
11758 YACC=$ac_cv_prog_YACC
11759 if test -n "$YACC"; then
11760 echo "$as_me:$LINENO: result: $YACC" >&5
11761 echo "${ECHO_T}$YACC" >&6
11762 else
11763 echo "$as_me:$LINENO: result: no" >&5
11764 echo "${ECHO_T}no" >&6
11767 test -n "$YACC" && break
11768 done
11769 test -n "$YACC" || YACC="yacc"
11771 for ac_prog in flex lex
11773 # Extract the first word of "$ac_prog", so it can be a program name with args.
11774 set dummy $ac_prog; ac_word=$2
11775 echo "$as_me:$LINENO: checking for $ac_word" >&5
11776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11777 if test "${ac_cv_prog_LEX+set}" = set; then
11778 echo $ECHO_N "(cached) $ECHO_C" >&6
11779 else
11780 if test -n "$LEX"; then
11781 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11782 else
11783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11784 for as_dir in $PATH
11786 IFS=$as_save_IFS
11787 test -z "$as_dir" && as_dir=.
11788 for ac_exec_ext in '' $ac_executable_extensions; do
11789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11790 ac_cv_prog_LEX="$ac_prog"
11791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11792 break 2
11794 done
11795 done
11799 LEX=$ac_cv_prog_LEX
11800 if test -n "$LEX"; then
11801 echo "$as_me:$LINENO: result: $LEX" >&5
11802 echo "${ECHO_T}$LEX" >&6
11803 else
11804 echo "$as_me:$LINENO: result: no" >&5
11805 echo "${ECHO_T}no" >&6
11808 test -n "$LEX" && break
11809 done
11810 test -n "$LEX" || LEX=":"
11812 if test -z "$LEXLIB"
11813 then
11814 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11815 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11816 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
11817 echo $ECHO_N "(cached) $ECHO_C" >&6
11818 else
11819 ac_check_lib_save_LIBS=$LIBS
11820 LIBS="-lfl $LIBS"
11821 cat >conftest.$ac_ext <<_ACEOF
11822 /* confdefs.h. */
11823 _ACEOF
11824 cat confdefs.h >>conftest.$ac_ext
11825 cat >>conftest.$ac_ext <<_ACEOF
11826 /* end confdefs.h. */
11828 /* Override any gcc2 internal prototype to avoid an error. */
11829 #ifdef __cplusplus
11830 extern "C"
11831 #endif
11832 /* We use char because int might match the return type of a gcc2
11833 builtin and then its argument prototype would still apply. */
11834 char yywrap ();
11836 main ()
11838 yywrap ();
11840 return 0;
11842 _ACEOF
11843 rm -f conftest.$ac_objext conftest$ac_exeext
11844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11845 (eval $ac_link) 2>conftest.er1
11846 ac_status=$?
11847 grep -v '^ *+' conftest.er1 >conftest.err
11848 rm -f conftest.er1
11849 cat conftest.err >&5
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); } &&
11852 { ac_try='test -z "$ac_c_werror_flag"
11853 || test ! -s conftest.err'
11854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11855 (eval $ac_try) 2>&5
11856 ac_status=$?
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); }; } &&
11859 { ac_try='test -s conftest$ac_exeext'
11860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11861 (eval $ac_try) 2>&5
11862 ac_status=$?
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); }; }; then
11865 ac_cv_lib_fl_yywrap=yes
11866 else
11867 echo "$as_me: failed program was:" >&5
11868 sed 's/^/| /' conftest.$ac_ext >&5
11870 ac_cv_lib_fl_yywrap=no
11872 rm -f conftest.err conftest.$ac_objext \
11873 conftest$ac_exeext conftest.$ac_ext
11874 LIBS=$ac_check_lib_save_LIBS
11876 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11877 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11878 if test $ac_cv_lib_fl_yywrap = yes; then
11879 LEXLIB="-lfl"
11880 else
11881 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11882 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11883 if test "${ac_cv_lib_l_yywrap+set}" = set; then
11884 echo $ECHO_N "(cached) $ECHO_C" >&6
11885 else
11886 ac_check_lib_save_LIBS=$LIBS
11887 LIBS="-ll $LIBS"
11888 cat >conftest.$ac_ext <<_ACEOF
11889 /* confdefs.h. */
11890 _ACEOF
11891 cat confdefs.h >>conftest.$ac_ext
11892 cat >>conftest.$ac_ext <<_ACEOF
11893 /* end confdefs.h. */
11895 /* Override any gcc2 internal prototype to avoid an error. */
11896 #ifdef __cplusplus
11897 extern "C"
11898 #endif
11899 /* We use char because int might match the return type of a gcc2
11900 builtin and then its argument prototype would still apply. */
11901 char yywrap ();
11903 main ()
11905 yywrap ();
11907 return 0;
11909 _ACEOF
11910 rm -f conftest.$ac_objext conftest$ac_exeext
11911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11912 (eval $ac_link) 2>conftest.er1
11913 ac_status=$?
11914 grep -v '^ *+' conftest.er1 >conftest.err
11915 rm -f conftest.er1
11916 cat conftest.err >&5
11917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 (exit $ac_status); } &&
11919 { ac_try='test -z "$ac_c_werror_flag"
11920 || test ! -s conftest.err'
11921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11922 (eval $ac_try) 2>&5
11923 ac_status=$?
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); }; } &&
11926 { ac_try='test -s conftest$ac_exeext'
11927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11928 (eval $ac_try) 2>&5
11929 ac_status=$?
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); }; }; then
11932 ac_cv_lib_l_yywrap=yes
11933 else
11934 echo "$as_me: failed program was:" >&5
11935 sed 's/^/| /' conftest.$ac_ext >&5
11937 ac_cv_lib_l_yywrap=no
11939 rm -f conftest.err conftest.$ac_objext \
11940 conftest$ac_exeext conftest.$ac_ext
11941 LIBS=$ac_check_lib_save_LIBS
11943 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11944 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11945 if test $ac_cv_lib_l_yywrap = yes; then
11946 LEXLIB="-ll"
11953 if test "x$LEX" != "x:"; then
11954 echo "$as_me:$LINENO: checking lex output file root" >&5
11955 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11956 if test "${ac_cv_prog_lex_root+set}" = set; then
11957 echo $ECHO_N "(cached) $ECHO_C" >&6
11958 else
11959 # The minimal lex program is just a single line: %%. But some broken lexes
11960 # (Solaris, I think it was) want two %% lines, so accommodate them.
11961 cat >conftest.l <<_ACEOF
11964 _ACEOF
11965 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11966 (eval $LEX conftest.l) 2>&5
11967 ac_status=$?
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); }
11970 if test -f lex.yy.c; then
11971 ac_cv_prog_lex_root=lex.yy
11972 elif test -f lexyy.c; then
11973 ac_cv_prog_lex_root=lexyy
11974 else
11975 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11976 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11977 { (exit 1); exit 1; }; }
11980 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11981 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11982 rm -f conftest.l
11983 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
11985 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11986 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11987 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11988 echo $ECHO_N "(cached) $ECHO_C" >&6
11989 else
11990 # POSIX says lex can declare yytext either as a pointer or an array; the
11991 # default is implementation-dependent. Figure out which it is, since
11992 # not all implementations provide the %pointer and %array declarations.
11993 ac_cv_prog_lex_yytext_pointer=no
11994 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11995 ac_save_LIBS=$LIBS
11996 LIBS="$LIBS $LEXLIB"
11997 cat >conftest.$ac_ext <<_ACEOF
11998 `cat $LEX_OUTPUT_ROOT.c`
11999 _ACEOF
12000 rm -f conftest.$ac_objext conftest$ac_exeext
12001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12002 (eval $ac_link) 2>conftest.er1
12003 ac_status=$?
12004 grep -v '^ *+' conftest.er1 >conftest.err
12005 rm -f conftest.er1
12006 cat conftest.err >&5
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); } &&
12009 { ac_try='test -z "$ac_c_werror_flag"
12010 || test ! -s conftest.err'
12011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12012 (eval $ac_try) 2>&5
12013 ac_status=$?
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); }; } &&
12016 { ac_try='test -s conftest$ac_exeext'
12017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12018 (eval $ac_try) 2>&5
12019 ac_status=$?
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); }; }; then
12022 ac_cv_prog_lex_yytext_pointer=yes
12023 else
12024 echo "$as_me: failed program was:" >&5
12025 sed 's/^/| /' conftest.$ac_ext >&5
12028 rm -f conftest.err conftest.$ac_objext \
12029 conftest$ac_exeext conftest.$ac_ext
12030 LIBS=$ac_save_LIBS
12031 rm -f "${LEX_OUTPUT_ROOT}.c"
12034 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
12035 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
12036 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12038 cat >>confdefs.h <<\_ACEOF
12039 #define YYTEXT_POINTER 1
12040 _ACEOF
12045 if test "$LEX" = :; then
12046 LEX=${am_missing_run}flex
12049 ALL_LINGUAS="da es fi fr id ja ro ru rw sk sv tr uk vi zh_CN zh_TW"
12050 # If we haven't got the data from the intl directory,
12051 # assume NLS is disabled.
12052 USE_NLS=no
12053 LIBINTL=
12054 LIBINTL_DEP=
12055 INCINTL=
12056 XGETTEXT=
12057 GMSGFMT=
12058 POSUB=
12060 if test -f ../intl/config.intl; then
12061 . ../intl/config.intl
12063 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12064 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12065 if test x"$USE_NLS" != xyes; then
12066 echo "$as_me:$LINENO: result: no" >&5
12067 echo "${ECHO_T}no" >&6
12068 else
12069 echo "$as_me:$LINENO: result: yes" >&5
12070 echo "${ECHO_T}yes" >&6
12072 cat >>confdefs.h <<\_ACEOF
12073 #define ENABLE_NLS 1
12074 _ACEOF
12077 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12078 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12079 # Look for .po and .gmo files in the source directory.
12080 CATALOGS=
12081 XLINGUAS=
12082 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12083 # If there aren't any .gmo files the shell will give us the
12084 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12085 # weeded out.
12086 case "$cat" in *\**)
12087 continue;;
12088 esac
12089 # The quadruple backslash is collapsed to a double backslash
12090 # by the backticks, then collapsed again by the double quotes,
12091 # leaving us with one backslash in the sed expression (right
12092 # before the dot that mustn't act as a wildcard).
12093 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12094 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12095 # The user is allowed to set LINGUAS to a list of languages to
12096 # install catalogs for. If it's empty that means "all of them."
12097 if test "x$LINGUAS" = x; then
12098 CATALOGS="$CATALOGS $cat"
12099 XLINGUAS="$XLINGUAS $lang"
12100 else
12101 case "$LINGUAS" in *$lang*)
12102 CATALOGS="$CATALOGS $cat"
12103 XLINGUAS="$XLINGUAS $lang"
12105 esac
12107 done
12108 LINGUAS="$XLINGUAS"
12109 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12110 echo "${ECHO_T}$LINGUAS" >&6
12113 DATADIRNAME=share
12115 INSTOBJEXT=.mo
12117 GENCAT=gencat
12119 CATOBJEXT=.gmo
12123 MKINSTALLDIRS=
12124 if test -n "$ac_aux_dir"; then
12125 case "$ac_aux_dir" in
12126 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12127 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12128 esac
12130 if test -z "$MKINSTALLDIRS"; then
12131 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12136 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12137 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12138 # Check whether --enable-nls or --disable-nls was given.
12139 if test "${enable_nls+set}" = set; then
12140 enableval="$enable_nls"
12141 USE_NLS=$enableval
12142 else
12143 USE_NLS=yes
12145 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12146 echo "${ECHO_T}$USE_NLS" >&6
12153 # Prepare PATH_SEPARATOR.
12154 # The user is always right.
12155 if test "${PATH_SEPARATOR+set}" != set; then
12156 echo "#! /bin/sh" >conf$$.sh
12157 echo "exit 0" >>conf$$.sh
12158 chmod +x conf$$.sh
12159 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12160 PATH_SEPARATOR=';'
12161 else
12162 PATH_SEPARATOR=:
12164 rm -f conf$$.sh
12167 # Find out how to test for executable files. Don't use a zero-byte file,
12168 # as systems may use methods other than mode bits to determine executability.
12169 cat >conf$$.file <<_ASEOF
12170 #! /bin/sh
12171 exit 0
12172 _ASEOF
12173 chmod +x conf$$.file
12174 if test -x conf$$.file >/dev/null 2>&1; then
12175 ac_executable_p="test -x"
12176 else
12177 ac_executable_p="test -f"
12179 rm -f conf$$.file
12181 # Extract the first word of "msgfmt", so it can be a program name with args.
12182 set dummy msgfmt; ac_word=$2
12183 echo "$as_me:$LINENO: checking for $ac_word" >&5
12184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12185 if test "${ac_cv_path_MSGFMT+set}" = set; then
12186 echo $ECHO_N "(cached) $ECHO_C" >&6
12187 else
12188 case "$MSGFMT" in
12189 [\\/]* | ?:[\\/]*)
12190 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12193 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12194 for ac_dir in $PATH; do
12195 IFS="$ac_save_IFS"
12196 test -z "$ac_dir" && ac_dir=.
12197 for ac_exec_ext in '' $ac_executable_extensions; do
12198 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12199 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12200 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12201 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12202 break 2
12205 done
12206 done
12207 IFS="$ac_save_IFS"
12208 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12210 esac
12212 MSGFMT="$ac_cv_path_MSGFMT"
12213 if test "$MSGFMT" != ":"; then
12214 echo "$as_me:$LINENO: result: $MSGFMT" >&5
12215 echo "${ECHO_T}$MSGFMT" >&6
12216 else
12217 echo "$as_me:$LINENO: result: no" >&5
12218 echo "${ECHO_T}no" >&6
12221 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12222 set dummy gmsgfmt; ac_word=$2
12223 echo "$as_me:$LINENO: checking for $ac_word" >&5
12224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12225 if test "${ac_cv_path_GMSGFMT+set}" = set; then
12226 echo $ECHO_N "(cached) $ECHO_C" >&6
12227 else
12228 case $GMSGFMT in
12229 [\\/]* | ?:[\\/]*)
12230 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12234 for as_dir in $PATH
12236 IFS=$as_save_IFS
12237 test -z "$as_dir" && as_dir=.
12238 for ac_exec_ext in '' $ac_executable_extensions; do
12239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12240 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12242 break 2
12244 done
12245 done
12247 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12249 esac
12251 GMSGFMT=$ac_cv_path_GMSGFMT
12253 if test -n "$GMSGFMT"; then
12254 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
12255 echo "${ECHO_T}$GMSGFMT" >&6
12256 else
12257 echo "$as_me:$LINENO: result: no" >&5
12258 echo "${ECHO_T}no" >&6
12263 # Prepare PATH_SEPARATOR.
12264 # The user is always right.
12265 if test "${PATH_SEPARATOR+set}" != set; then
12266 echo "#! /bin/sh" >conf$$.sh
12267 echo "exit 0" >>conf$$.sh
12268 chmod +x conf$$.sh
12269 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12270 PATH_SEPARATOR=';'
12271 else
12272 PATH_SEPARATOR=:
12274 rm -f conf$$.sh
12277 # Find out how to test for executable files. Don't use a zero-byte file,
12278 # as systems may use methods other than mode bits to determine executability.
12279 cat >conf$$.file <<_ASEOF
12280 #! /bin/sh
12281 exit 0
12282 _ASEOF
12283 chmod +x conf$$.file
12284 if test -x conf$$.file >/dev/null 2>&1; then
12285 ac_executable_p="test -x"
12286 else
12287 ac_executable_p="test -f"
12289 rm -f conf$$.file
12291 # Extract the first word of "xgettext", so it can be a program name with args.
12292 set dummy xgettext; ac_word=$2
12293 echo "$as_me:$LINENO: checking for $ac_word" >&5
12294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12295 if test "${ac_cv_path_XGETTEXT+set}" = set; then
12296 echo $ECHO_N "(cached) $ECHO_C" >&6
12297 else
12298 case "$XGETTEXT" in
12299 [\\/]* | ?:[\\/]*)
12300 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12303 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12304 for ac_dir in $PATH; do
12305 IFS="$ac_save_IFS"
12306 test -z "$ac_dir" && ac_dir=.
12307 for ac_exec_ext in '' $ac_executable_extensions; do
12308 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12309 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12310 (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
12311 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12312 break 2
12315 done
12316 done
12317 IFS="$ac_save_IFS"
12318 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12320 esac
12322 XGETTEXT="$ac_cv_path_XGETTEXT"
12323 if test "$XGETTEXT" != ":"; then
12324 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
12325 echo "${ECHO_T}$XGETTEXT" >&6
12326 else
12327 echo "$as_me:$LINENO: result: no" >&5
12328 echo "${ECHO_T}no" >&6
12331 rm -f messages.po
12334 # Prepare PATH_SEPARATOR.
12335 # The user is always right.
12336 if test "${PATH_SEPARATOR+set}" != set; then
12337 echo "#! /bin/sh" >conf$$.sh
12338 echo "exit 0" >>conf$$.sh
12339 chmod +x conf$$.sh
12340 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12341 PATH_SEPARATOR=';'
12342 else
12343 PATH_SEPARATOR=:
12345 rm -f conf$$.sh
12348 # Find out how to test for executable files. Don't use a zero-byte file,
12349 # as systems may use methods other than mode bits to determine executability.
12350 cat >conf$$.file <<_ASEOF
12351 #! /bin/sh
12352 exit 0
12353 _ASEOF
12354 chmod +x conf$$.file
12355 if test -x conf$$.file >/dev/null 2>&1; then
12356 ac_executable_p="test -x"
12357 else
12358 ac_executable_p="test -f"
12360 rm -f conf$$.file
12362 # Extract the first word of "msgmerge", so it can be a program name with args.
12363 set dummy msgmerge; ac_word=$2
12364 echo "$as_me:$LINENO: checking for $ac_word" >&5
12365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12366 if test "${ac_cv_path_MSGMERGE+set}" = set; then
12367 echo $ECHO_N "(cached) $ECHO_C" >&6
12368 else
12369 case "$MSGMERGE" in
12370 [\\/]* | ?:[\\/]*)
12371 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12374 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12375 for ac_dir in $PATH; do
12376 IFS="$ac_save_IFS"
12377 test -z "$ac_dir" && ac_dir=.
12378 for ac_exec_ext in '' $ac_executable_extensions; do
12379 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12380 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12381 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12382 break 2
12385 done
12386 done
12387 IFS="$ac_save_IFS"
12388 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12390 esac
12392 MSGMERGE="$ac_cv_path_MSGMERGE"
12393 if test "$MSGMERGE" != ":"; then
12394 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
12395 echo "${ECHO_T}$MSGMERGE" >&6
12396 else
12397 echo "$as_me:$LINENO: result: no" >&5
12398 echo "${ECHO_T}no" >&6
12402 if test "$GMSGFMT" != ":"; then
12403 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12404 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12406 else
12407 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12408 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12409 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
12410 GMSGFMT=":"
12414 if test "$XGETTEXT" != ":"; then
12415 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12416 (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
12418 else
12419 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
12420 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
12421 XGETTEXT=":"
12423 rm -f messages.po
12426 ac_config_commands="$ac_config_commands default-1"
12430 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12431 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12432 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12433 if test "${enable_maintainer_mode+set}" = set; then
12434 enableval="$enable_maintainer_mode"
12435 USE_MAINTAINER_MODE=$enableval
12436 else
12437 USE_MAINTAINER_MODE=no
12439 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12440 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
12443 if test $USE_MAINTAINER_MODE = yes; then
12444 MAINTAINER_MODE_TRUE=
12445 MAINTAINER_MODE_FALSE='#'
12446 else
12447 MAINTAINER_MODE_TRUE='#'
12448 MAINTAINER_MODE_FALSE=
12451 MAINT=$MAINTAINER_MODE_TRUE
12456 if false; then
12457 GENINSRC_NEVER_TRUE=
12458 GENINSRC_NEVER_FALSE='#'
12459 else
12460 GENINSRC_NEVER_TRUE='#'
12461 GENINSRC_NEVER_FALSE=
12465 if test -n "$EXEEXT"; then
12467 cat >>confdefs.h <<\_ACEOF
12468 #define HAVE_EXECUTABLE_SUFFIX 1
12469 _ACEOF
12473 cat >>confdefs.h <<_ACEOF
12474 #define EXECUTABLE_SUFFIX "${EXEEXT}"
12475 _ACEOF
12478 # host-specific stuff:
12480 HDEFINES=
12482 . ${srcdir}/../bfd/configure.host
12485 AR=${AR-ar}
12487 if test -n "$ac_tool_prefix"; then
12488 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12489 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12490 echo "$as_me:$LINENO: checking for $ac_word" >&5
12491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12492 if test "${ac_cv_prog_RANLIB+set}" = set; then
12493 echo $ECHO_N "(cached) $ECHO_C" >&6
12494 else
12495 if test -n "$RANLIB"; then
12496 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12497 else
12498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12499 for as_dir in $PATH
12501 IFS=$as_save_IFS
12502 test -z "$as_dir" && as_dir=.
12503 for ac_exec_ext in '' $ac_executable_extensions; do
12504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12505 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12507 break 2
12509 done
12510 done
12514 RANLIB=$ac_cv_prog_RANLIB
12515 if test -n "$RANLIB"; then
12516 echo "$as_me:$LINENO: result: $RANLIB" >&5
12517 echo "${ECHO_T}$RANLIB" >&6
12518 else
12519 echo "$as_me:$LINENO: result: no" >&5
12520 echo "${ECHO_T}no" >&6
12524 if test -z "$ac_cv_prog_RANLIB"; then
12525 ac_ct_RANLIB=$RANLIB
12526 # Extract the first word of "ranlib", so it can be a program name with args.
12527 set dummy ranlib; ac_word=$2
12528 echo "$as_me:$LINENO: checking for $ac_word" >&5
12529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12530 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12531 echo $ECHO_N "(cached) $ECHO_C" >&6
12532 else
12533 if test -n "$ac_ct_RANLIB"; then
12534 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12535 else
12536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12537 for as_dir in $PATH
12539 IFS=$as_save_IFS
12540 test -z "$as_dir" && as_dir=.
12541 for ac_exec_ext in '' $ac_executable_extensions; do
12542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12543 ac_cv_prog_ac_ct_RANLIB="ranlib"
12544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12545 break 2
12547 done
12548 done
12550 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12553 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12554 if test -n "$ac_ct_RANLIB"; then
12555 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12556 echo "${ECHO_T}$ac_ct_RANLIB" >&6
12557 else
12558 echo "$as_me:$LINENO: result: no" >&5
12559 echo "${ECHO_T}no" >&6
12562 RANLIB=$ac_ct_RANLIB
12563 else
12564 RANLIB="$ac_cv_prog_RANLIB"
12567 # Find a good install program. We prefer a C program (faster),
12568 # so one script is as good as another. But avoid the broken or
12569 # incompatible versions:
12570 # SysV /etc/install, /usr/sbin/install
12571 # SunOS /usr/etc/install
12572 # IRIX /sbin/install
12573 # AIX /bin/install
12574 # AmigaOS /C/install, which installs bootblocks on floppy discs
12575 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12576 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
12577 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12578 # OS/2's system install, which has a completely different semantic
12579 # ./install, which can be erroneously created by make from ./install.sh.
12580 # Reject install programs that cannot install multiple files.
12581 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12582 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12583 if test -z "$INSTALL"; then
12584 if test "${ac_cv_path_install+set}" = set; then
12585 echo $ECHO_N "(cached) $ECHO_C" >&6
12586 else
12587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12588 for as_dir in $PATH
12590 IFS=$as_save_IFS
12591 test -z "$as_dir" && as_dir=.
12592 # Account for people who put trailing slashes in PATH elements.
12593 case $as_dir/ in
12594 ./ | .// | /cC/* | \
12595 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12596 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12597 /usr/ucb/* ) ;;
12599 # OSF1 and SCO ODT 3.0 have their own names for install.
12600 # Don't use installbsd from OSF since it installs stuff as root
12601 # by default.
12602 for ac_prog in ginstall scoinst install; do
12603 for ac_exec_ext in '' $ac_executable_extensions; do
12604 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12605 if test $ac_prog = install &&
12606 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12607 # AIX install. It has an incompatible calling convention.
12609 elif test $ac_prog = install &&
12610 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12611 # program-specific install script used by HP pwplus--don't use.
12613 else
12614 rm -rf conftest.one conftest.two conftest.dir
12615 echo one > conftest.one
12616 echo two > conftest.two
12617 mkdir conftest.dir
12618 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12619 test -s conftest.one && test -s conftest.two &&
12620 test -s conftest.dir/conftest.one &&
12621 test -s conftest.dir/conftest.two
12622 then
12623 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12624 break 3
12628 done
12629 done
12631 esac
12632 done
12634 rm -rf conftest.one conftest.two conftest.dir
12637 if test "${ac_cv_path_install+set}" = set; then
12638 INSTALL=$ac_cv_path_install
12639 else
12640 # As a last resort, use the slow shell script. Don't cache a
12641 # value for INSTALL within a source directory, because that will
12642 # break other packages using the cache if that directory is
12643 # removed, or if the value is a relative name.
12644 INSTALL=$ac_install_sh
12647 echo "$as_me:$LINENO: result: $INSTALL" >&5
12648 echo "${ECHO_T}$INSTALL" >&6
12650 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12651 # It thinks the first close brace ends the variable substitution.
12652 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12654 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12656 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12659 # Put a plausible default for CC_FOR_BUILD in Makefile.
12660 if test -z "$CC_FOR_BUILD"; then
12661 if test "x$cross_compiling" = "xno"; then
12662 CC_FOR_BUILD='$(CC)'
12663 else
12664 CC_FOR_BUILD=gcc
12668 # Also set EXEEXT_FOR_BUILD.
12669 if test "x$cross_compiling" = "xno"; then
12670 EXEEXT_FOR_BUILD='$(EXEEXT)'
12671 else
12672 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
12673 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
12674 if test "${bfd_cv_build_exeext+set}" = set; then
12675 echo $ECHO_N "(cached) $ECHO_C" >&6
12676 else
12677 rm -f conftest*
12678 echo 'int main () { return 0; }' > conftest.c
12679 bfd_cv_build_exeext=
12680 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12681 for file in conftest.*; do
12682 case $file in
12683 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12684 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12685 esac
12686 done
12687 rm -f conftest*
12688 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
12690 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
12691 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
12692 EXEEXT_FOR_BUILD=""
12693 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
12697 DEMANGLER_NAME=c++filt
12698 case "${host}" in
12699 *-*-go32* | *-*-msdos*)
12700 DEMANGLER_NAME=cxxfilt
12701 esac
12712 for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h sys/param.h
12714 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12716 echo "$as_me:$LINENO: checking for $ac_header" >&5
12717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12719 echo $ECHO_N "(cached) $ECHO_C" >&6
12721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12722 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12723 else
12724 # Is the header compilable?
12725 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12726 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12727 cat >conftest.$ac_ext <<_ACEOF
12728 /* confdefs.h. */
12729 _ACEOF
12730 cat confdefs.h >>conftest.$ac_ext
12731 cat >>conftest.$ac_ext <<_ACEOF
12732 /* end confdefs.h. */
12733 $ac_includes_default
12734 #include <$ac_header>
12735 _ACEOF
12736 rm -f conftest.$ac_objext
12737 if { (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_header_compiler=yes
12759 else
12760 echo "$as_me: failed program was:" >&5
12761 sed 's/^/| /' conftest.$ac_ext >&5
12763 ac_header_compiler=no
12765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12766 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12767 echo "${ECHO_T}$ac_header_compiler" >&6
12769 # Is the header present?
12770 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12771 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12772 cat >conftest.$ac_ext <<_ACEOF
12773 /* confdefs.h. */
12774 _ACEOF
12775 cat confdefs.h >>conftest.$ac_ext
12776 cat >>conftest.$ac_ext <<_ACEOF
12777 /* end confdefs.h. */
12778 #include <$ac_header>
12779 _ACEOF
12780 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12781 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12782 ac_status=$?
12783 grep -v '^ *+' conftest.er1 >conftest.err
12784 rm -f conftest.er1
12785 cat conftest.err >&5
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); } >/dev/null; then
12788 if test -s conftest.err; then
12789 ac_cpp_err=$ac_c_preproc_warn_flag
12790 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12791 else
12792 ac_cpp_err=
12794 else
12795 ac_cpp_err=yes
12797 if test -z "$ac_cpp_err"; then
12798 ac_header_preproc=yes
12799 else
12800 echo "$as_me: failed program was:" >&5
12801 sed 's/^/| /' conftest.$ac_ext >&5
12803 ac_header_preproc=no
12805 rm -f conftest.err conftest.$ac_ext
12806 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12807 echo "${ECHO_T}$ac_header_preproc" >&6
12809 # So? What about this header?
12810 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12811 yes:no: )
12812 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12813 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12815 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12816 ac_header_preproc=yes
12818 no:yes:* )
12819 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12820 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12821 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12822 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12823 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12824 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12825 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12826 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12828 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12829 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12830 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12832 cat <<\_ASBOX
12833 ## ------------------------------------------ ##
12834 ## Report this to the AC_PACKAGE_NAME lists. ##
12835 ## ------------------------------------------ ##
12836 _ASBOX
12838 sed "s/^/$as_me: WARNING: /" >&2
12840 esac
12841 echo "$as_me:$LINENO: checking for $ac_header" >&5
12842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12844 echo $ECHO_N "(cached) $ECHO_C" >&6
12845 else
12846 eval "$as_ac_Header=\$ac_header_preproc"
12848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12849 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12852 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12853 cat >>confdefs.h <<_ACEOF
12854 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12855 _ACEOF
12859 done
12861 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
12862 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
12863 if test "${ac_cv_header_sys_wait_h+set}" = set; then
12864 echo $ECHO_N "(cached) $ECHO_C" >&6
12865 else
12866 cat >conftest.$ac_ext <<_ACEOF
12867 /* confdefs.h. */
12868 _ACEOF
12869 cat confdefs.h >>conftest.$ac_ext
12870 cat >>conftest.$ac_ext <<_ACEOF
12871 /* end confdefs.h. */
12872 #include <sys/types.h>
12873 #include <sys/wait.h>
12874 #ifndef WEXITSTATUS
12875 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
12876 #endif
12877 #ifndef WIFEXITED
12878 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12879 #endif
12882 main ()
12884 int s;
12885 wait (&s);
12886 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12888 return 0;
12890 _ACEOF
12891 rm -f conftest.$ac_objext
12892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12893 (eval $ac_compile) 2>conftest.er1
12894 ac_status=$?
12895 grep -v '^ *+' conftest.er1 >conftest.err
12896 rm -f conftest.er1
12897 cat conftest.err >&5
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); } &&
12900 { ac_try='test -z "$ac_c_werror_flag"
12901 || test ! -s conftest.err'
12902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12903 (eval $ac_try) 2>&5
12904 ac_status=$?
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); }; } &&
12907 { ac_try='test -s conftest.$ac_objext'
12908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12909 (eval $ac_try) 2>&5
12910 ac_status=$?
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); }; }; then
12913 ac_cv_header_sys_wait_h=yes
12914 else
12915 echo "$as_me: failed program was:" >&5
12916 sed 's/^/| /' conftest.$ac_ext >&5
12918 ac_cv_header_sys_wait_h=no
12920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12922 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
12923 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
12924 if test $ac_cv_header_sys_wait_h = yes; then
12926 cat >>confdefs.h <<\_ACEOF
12927 #define HAVE_SYS_WAIT_H 1
12928 _ACEOF
12932 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12933 # for constant arguments. Useless!
12934 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12935 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12936 if test "${ac_cv_working_alloca_h+set}" = set; then
12937 echo $ECHO_N "(cached) $ECHO_C" >&6
12938 else
12939 cat >conftest.$ac_ext <<_ACEOF
12940 /* confdefs.h. */
12941 _ACEOF
12942 cat confdefs.h >>conftest.$ac_ext
12943 cat >>conftest.$ac_ext <<_ACEOF
12944 /* end confdefs.h. */
12945 #include <alloca.h>
12947 main ()
12949 char *p = (char *) alloca (2 * sizeof (int));
12951 return 0;
12953 _ACEOF
12954 rm -f conftest.$ac_objext conftest$ac_exeext
12955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12956 (eval $ac_link) 2>conftest.er1
12957 ac_status=$?
12958 grep -v '^ *+' conftest.er1 >conftest.err
12959 rm -f conftest.er1
12960 cat conftest.err >&5
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); } &&
12963 { ac_try='test -z "$ac_c_werror_flag"
12964 || test ! -s conftest.err'
12965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12966 (eval $ac_try) 2>&5
12967 ac_status=$?
12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969 (exit $ac_status); }; } &&
12970 { ac_try='test -s conftest$ac_exeext'
12971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12972 (eval $ac_try) 2>&5
12973 ac_status=$?
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); }; }; then
12976 ac_cv_working_alloca_h=yes
12977 else
12978 echo "$as_me: failed program was:" >&5
12979 sed 's/^/| /' conftest.$ac_ext >&5
12981 ac_cv_working_alloca_h=no
12983 rm -f conftest.err conftest.$ac_objext \
12984 conftest$ac_exeext conftest.$ac_ext
12986 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12987 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12988 if test $ac_cv_working_alloca_h = yes; then
12990 cat >>confdefs.h <<\_ACEOF
12991 #define HAVE_ALLOCA_H 1
12992 _ACEOF
12996 echo "$as_me:$LINENO: checking for alloca" >&5
12997 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12998 if test "${ac_cv_func_alloca_works+set}" = set; then
12999 echo $ECHO_N "(cached) $ECHO_C" >&6
13000 else
13001 cat >conftest.$ac_ext <<_ACEOF
13002 /* confdefs.h. */
13003 _ACEOF
13004 cat confdefs.h >>conftest.$ac_ext
13005 cat >>conftest.$ac_ext <<_ACEOF
13006 /* end confdefs.h. */
13007 #ifdef __GNUC__
13008 # define alloca __builtin_alloca
13009 #else
13010 # ifdef _MSC_VER
13011 # include <malloc.h>
13012 # define alloca _alloca
13013 # else
13014 # if HAVE_ALLOCA_H
13015 # include <alloca.h>
13016 # else
13017 # ifdef _AIX
13018 #pragma alloca
13019 # else
13020 # ifndef alloca /* predefined by HP cc +Olibcalls */
13021 char *alloca ();
13022 # endif
13023 # endif
13024 # endif
13025 # endif
13026 #endif
13029 main ()
13031 char *p = (char *) alloca (1);
13033 return 0;
13035 _ACEOF
13036 rm -f conftest.$ac_objext conftest$ac_exeext
13037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13038 (eval $ac_link) 2>conftest.er1
13039 ac_status=$?
13040 grep -v '^ *+' conftest.er1 >conftest.err
13041 rm -f conftest.er1
13042 cat conftest.err >&5
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); } &&
13045 { ac_try='test -z "$ac_c_werror_flag"
13046 || test ! -s conftest.err'
13047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13048 (eval $ac_try) 2>&5
13049 ac_status=$?
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); }; } &&
13052 { ac_try='test -s conftest$ac_exeext'
13053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13054 (eval $ac_try) 2>&5
13055 ac_status=$?
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); }; }; then
13058 ac_cv_func_alloca_works=yes
13059 else
13060 echo "$as_me: failed program was:" >&5
13061 sed 's/^/| /' conftest.$ac_ext >&5
13063 ac_cv_func_alloca_works=no
13065 rm -f conftest.err conftest.$ac_objext \
13066 conftest$ac_exeext conftest.$ac_ext
13068 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13069 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13071 if test $ac_cv_func_alloca_works = yes; then
13073 cat >>confdefs.h <<\_ACEOF
13074 #define HAVE_ALLOCA 1
13075 _ACEOF
13077 else
13078 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13079 # that cause trouble. Some versions do not even contain alloca or
13080 # contain a buggy version. If you still want to use their alloca,
13081 # use ar to extract alloca.o from them instead of compiling alloca.c.
13083 ALLOCA=alloca.$ac_objext
13085 cat >>confdefs.h <<\_ACEOF
13086 #define C_ALLOCA 1
13087 _ACEOF
13090 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13091 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13092 if test "${ac_cv_os_cray+set}" = set; then
13093 echo $ECHO_N "(cached) $ECHO_C" >&6
13094 else
13095 cat >conftest.$ac_ext <<_ACEOF
13096 /* confdefs.h. */
13097 _ACEOF
13098 cat confdefs.h >>conftest.$ac_ext
13099 cat >>conftest.$ac_ext <<_ACEOF
13100 /* end confdefs.h. */
13101 #if defined(CRAY) && ! defined(CRAY2)
13102 webecray
13103 #else
13104 wenotbecray
13105 #endif
13107 _ACEOF
13108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13109 $EGREP "webecray" >/dev/null 2>&1; then
13110 ac_cv_os_cray=yes
13111 else
13112 ac_cv_os_cray=no
13114 rm -f conftest*
13117 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13118 echo "${ECHO_T}$ac_cv_os_cray" >&6
13119 if test $ac_cv_os_cray = yes; then
13120 for ac_func in _getb67 GETB67 getb67; do
13121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13122 echo "$as_me:$LINENO: checking for $ac_func" >&5
13123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13124 if eval "test \"\${$as_ac_var+set}\" = set"; then
13125 echo $ECHO_N "(cached) $ECHO_C" >&6
13126 else
13127 cat >conftest.$ac_ext <<_ACEOF
13128 /* confdefs.h. */
13129 _ACEOF
13130 cat confdefs.h >>conftest.$ac_ext
13131 cat >>conftest.$ac_ext <<_ACEOF
13132 /* end confdefs.h. */
13133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13135 #define $ac_func innocuous_$ac_func
13137 /* System header to define __stub macros and hopefully few prototypes,
13138 which can conflict with char $ac_func (); below.
13139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13140 <limits.h> exists even on freestanding compilers. */
13142 #ifdef __STDC__
13143 # include <limits.h>
13144 #else
13145 # include <assert.h>
13146 #endif
13148 #undef $ac_func
13150 /* Override any gcc2 internal prototype to avoid an error. */
13151 #ifdef __cplusplus
13152 extern "C"
13154 #endif
13155 /* We use char because int might match the return type of a gcc2
13156 builtin and then its argument prototype would still apply. */
13157 char $ac_func ();
13158 /* The GNU C library defines this for functions which it implements
13159 to always fail with ENOSYS. Some functions are actually named
13160 something starting with __ and the normal name is an alias. */
13161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13162 choke me
13163 #else
13164 char (*f) () = $ac_func;
13165 #endif
13166 #ifdef __cplusplus
13168 #endif
13171 main ()
13173 return f != $ac_func;
13175 return 0;
13177 _ACEOF
13178 rm -f conftest.$ac_objext conftest$ac_exeext
13179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13180 (eval $ac_link) 2>conftest.er1
13181 ac_status=$?
13182 grep -v '^ *+' conftest.er1 >conftest.err
13183 rm -f conftest.er1
13184 cat conftest.err >&5
13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); } &&
13187 { ac_try='test -z "$ac_c_werror_flag"
13188 || test ! -s conftest.err'
13189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13190 (eval $ac_try) 2>&5
13191 ac_status=$?
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); }; } &&
13194 { ac_try='test -s conftest$ac_exeext'
13195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13196 (eval $ac_try) 2>&5
13197 ac_status=$?
13198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); }; }; then
13200 eval "$as_ac_var=yes"
13201 else
13202 echo "$as_me: failed program was:" >&5
13203 sed 's/^/| /' conftest.$ac_ext >&5
13205 eval "$as_ac_var=no"
13207 rm -f conftest.err conftest.$ac_objext \
13208 conftest$ac_exeext conftest.$ac_ext
13210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13211 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13212 if test `eval echo '${'$as_ac_var'}'` = yes; then
13214 cat >>confdefs.h <<_ACEOF
13215 #define CRAY_STACKSEG_END $ac_func
13216 _ACEOF
13218 break
13221 done
13224 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13225 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13226 if test "${ac_cv_c_stack_direction+set}" = set; then
13227 echo $ECHO_N "(cached) $ECHO_C" >&6
13228 else
13229 if test "$cross_compiling" = yes; then
13230 ac_cv_c_stack_direction=0
13231 else
13232 cat >conftest.$ac_ext <<_ACEOF
13233 /* confdefs.h. */
13234 _ACEOF
13235 cat confdefs.h >>conftest.$ac_ext
13236 cat >>conftest.$ac_ext <<_ACEOF
13237 /* end confdefs.h. */
13239 find_stack_direction ()
13241 static char *addr = 0;
13242 auto char dummy;
13243 if (addr == 0)
13245 addr = &dummy;
13246 return find_stack_direction ();
13248 else
13249 return (&dummy > addr) ? 1 : -1;
13253 main ()
13255 exit (find_stack_direction () < 0);
13257 _ACEOF
13258 rm -f conftest$ac_exeext
13259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13260 (eval $ac_link) 2>&5
13261 ac_status=$?
13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13265 (eval $ac_try) 2>&5
13266 ac_status=$?
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); }; }; then
13269 ac_cv_c_stack_direction=1
13270 else
13271 echo "$as_me: program exited with status $ac_status" >&5
13272 echo "$as_me: failed program was:" >&5
13273 sed 's/^/| /' conftest.$ac_ext >&5
13275 ( exit $ac_status )
13276 ac_cv_c_stack_direction=-1
13278 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13281 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13282 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13284 cat >>confdefs.h <<_ACEOF
13285 #define STACK_DIRECTION $ac_cv_c_stack_direction
13286 _ACEOF
13296 for ac_func in sbrk utimes setmode getc_unlocked strcoll
13298 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13299 echo "$as_me:$LINENO: checking for $ac_func" >&5
13300 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13301 if eval "test \"\${$as_ac_var+set}\" = set"; then
13302 echo $ECHO_N "(cached) $ECHO_C" >&6
13303 else
13304 cat >conftest.$ac_ext <<_ACEOF
13305 /* confdefs.h. */
13306 _ACEOF
13307 cat confdefs.h >>conftest.$ac_ext
13308 cat >>conftest.$ac_ext <<_ACEOF
13309 /* end confdefs.h. */
13310 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13312 #define $ac_func innocuous_$ac_func
13314 /* System header to define __stub macros and hopefully few prototypes,
13315 which can conflict with char $ac_func (); below.
13316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13317 <limits.h> exists even on freestanding compilers. */
13319 #ifdef __STDC__
13320 # include <limits.h>
13321 #else
13322 # include <assert.h>
13323 #endif
13325 #undef $ac_func
13327 /* Override any gcc2 internal prototype to avoid an error. */
13328 #ifdef __cplusplus
13329 extern "C"
13331 #endif
13332 /* We use char because int might match the return type of a gcc2
13333 builtin and then its argument prototype would still apply. */
13334 char $ac_func ();
13335 /* The GNU C library defines this for functions which it implements
13336 to always fail with ENOSYS. Some functions are actually named
13337 something starting with __ and the normal name is an alias. */
13338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13339 choke me
13340 #else
13341 char (*f) () = $ac_func;
13342 #endif
13343 #ifdef __cplusplus
13345 #endif
13348 main ()
13350 return f != $ac_func;
13352 return 0;
13354 _ACEOF
13355 rm -f conftest.$ac_objext conftest$ac_exeext
13356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13357 (eval $ac_link) 2>conftest.er1
13358 ac_status=$?
13359 grep -v '^ *+' conftest.er1 >conftest.err
13360 rm -f conftest.er1
13361 cat conftest.err >&5
13362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 (exit $ac_status); } &&
13364 { ac_try='test -z "$ac_c_werror_flag"
13365 || test ! -s conftest.err'
13366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13367 (eval $ac_try) 2>&5
13368 ac_status=$?
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); }; } &&
13371 { ac_try='test -s conftest$ac_exeext'
13372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13373 (eval $ac_try) 2>&5
13374 ac_status=$?
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); }; }; then
13377 eval "$as_ac_var=yes"
13378 else
13379 echo "$as_me: failed program was:" >&5
13380 sed 's/^/| /' conftest.$ac_ext >&5
13382 eval "$as_ac_var=no"
13384 rm -f conftest.err conftest.$ac_objext \
13385 conftest$ac_exeext conftest.$ac_ext
13387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13388 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13389 if test `eval echo '${'$as_ac_var'}'` = yes; then
13390 cat >>confdefs.h <<_ACEOF
13391 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13392 _ACEOF
13395 done
13397 echo "$as_me:$LINENO: checking for mkstemp" >&5
13398 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
13399 if test "${ac_cv_func_mkstemp+set}" = set; then
13400 echo $ECHO_N "(cached) $ECHO_C" >&6
13401 else
13402 cat >conftest.$ac_ext <<_ACEOF
13403 /* confdefs.h. */
13404 _ACEOF
13405 cat confdefs.h >>conftest.$ac_ext
13406 cat >>conftest.$ac_ext <<_ACEOF
13407 /* end confdefs.h. */
13408 /* Define mkstemp to an innocuous variant, in case <limits.h> declares mkstemp.
13409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13410 #define mkstemp innocuous_mkstemp
13412 /* System header to define __stub macros and hopefully few prototypes,
13413 which can conflict with char mkstemp (); below.
13414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13415 <limits.h> exists even on freestanding compilers. */
13417 #ifdef __STDC__
13418 # include <limits.h>
13419 #else
13420 # include <assert.h>
13421 #endif
13423 #undef mkstemp
13425 /* Override any gcc2 internal prototype to avoid an error. */
13426 #ifdef __cplusplus
13427 extern "C"
13429 #endif
13430 /* We use char because int might match the return type of a gcc2
13431 builtin and then its argument prototype would still apply. */
13432 char mkstemp ();
13433 /* The GNU C library defines this for functions which it implements
13434 to always fail with ENOSYS. Some functions are actually named
13435 something starting with __ and the normal name is an alias. */
13436 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
13437 choke me
13438 #else
13439 char (*f) () = mkstemp;
13440 #endif
13441 #ifdef __cplusplus
13443 #endif
13446 main ()
13448 return f != mkstemp;
13450 return 0;
13452 _ACEOF
13453 rm -f conftest.$ac_objext conftest$ac_exeext
13454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13455 (eval $ac_link) 2>conftest.er1
13456 ac_status=$?
13457 grep -v '^ *+' conftest.er1 >conftest.err
13458 rm -f conftest.er1
13459 cat conftest.err >&5
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); } &&
13462 { ac_try='test -z "$ac_c_werror_flag"
13463 || test ! -s conftest.err'
13464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13465 (eval $ac_try) 2>&5
13466 ac_status=$?
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); }; } &&
13469 { ac_try='test -s conftest$ac_exeext'
13470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13471 (eval $ac_try) 2>&5
13472 ac_status=$?
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); }; }; then
13475 ac_cv_func_mkstemp=yes
13476 else
13477 echo "$as_me: failed program was:" >&5
13478 sed 's/^/| /' conftest.$ac_ext >&5
13480 ac_cv_func_mkstemp=no
13482 rm -f conftest.err conftest.$ac_objext \
13483 conftest$ac_exeext conftest.$ac_ext
13485 echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5
13486 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
13487 if test $ac_cv_func_mkstemp = yes; then
13489 cat >>confdefs.h <<\_ACEOF
13490 #define HAVE_MKSTEMP 1
13491 _ACEOF
13495 echo "$as_me:$LINENO: checking for mkdtemp" >&5
13496 echo $ECHO_N "checking for mkdtemp... $ECHO_C" >&6
13497 if test "${ac_cv_func_mkdtemp+set}" = set; then
13498 echo $ECHO_N "(cached) $ECHO_C" >&6
13499 else
13500 cat >conftest.$ac_ext <<_ACEOF
13501 /* confdefs.h. */
13502 _ACEOF
13503 cat confdefs.h >>conftest.$ac_ext
13504 cat >>conftest.$ac_ext <<_ACEOF
13505 /* end confdefs.h. */
13506 /* Define mkdtemp to an innocuous variant, in case <limits.h> declares mkdtemp.
13507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13508 #define mkdtemp innocuous_mkdtemp
13510 /* System header to define __stub macros and hopefully few prototypes,
13511 which can conflict with char mkdtemp (); below.
13512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13513 <limits.h> exists even on freestanding compilers. */
13515 #ifdef __STDC__
13516 # include <limits.h>
13517 #else
13518 # include <assert.h>
13519 #endif
13521 #undef mkdtemp
13523 /* Override any gcc2 internal prototype to avoid an error. */
13524 #ifdef __cplusplus
13525 extern "C"
13527 #endif
13528 /* We use char because int might match the return type of a gcc2
13529 builtin and then its argument prototype would still apply. */
13530 char mkdtemp ();
13531 /* The GNU C library defines this for functions which it implements
13532 to always fail with ENOSYS. Some functions are actually named
13533 something starting with __ and the normal name is an alias. */
13534 #if defined (__stub_mkdtemp) || defined (__stub___mkdtemp)
13535 choke me
13536 #else
13537 char (*f) () = mkdtemp;
13538 #endif
13539 #ifdef __cplusplus
13541 #endif
13544 main ()
13546 return f != mkdtemp;
13548 return 0;
13550 _ACEOF
13551 rm -f conftest.$ac_objext conftest$ac_exeext
13552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13553 (eval $ac_link) 2>conftest.er1
13554 ac_status=$?
13555 grep -v '^ *+' conftest.er1 >conftest.err
13556 rm -f conftest.er1
13557 cat conftest.err >&5
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); } &&
13560 { ac_try='test -z "$ac_c_werror_flag"
13561 || test ! -s conftest.err'
13562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563 (eval $ac_try) 2>&5
13564 ac_status=$?
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); }; } &&
13567 { ac_try='test -s conftest$ac_exeext'
13568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13569 (eval $ac_try) 2>&5
13570 ac_status=$?
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); }; }; then
13573 ac_cv_func_mkdtemp=yes
13574 else
13575 echo "$as_me: failed program was:" >&5
13576 sed 's/^/| /' conftest.$ac_ext >&5
13578 ac_cv_func_mkdtemp=no
13580 rm -f conftest.err conftest.$ac_objext \
13581 conftest$ac_exeext conftest.$ac_ext
13583 echo "$as_me:$LINENO: result: $ac_cv_func_mkdtemp" >&5
13584 echo "${ECHO_T}$ac_cv_func_mkdtemp" >&6
13585 if test $ac_cv_func_mkdtemp = yes; then
13587 cat >>confdefs.h <<\_ACEOF
13588 #define HAVE_MKDTEMP 1
13589 _ACEOF
13594 # Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
13595 # needs to be defined for it
13596 echo "$as_me:$LINENO: checking for fopen64" >&5
13597 echo $ECHO_N "checking for fopen64... $ECHO_C" >&6
13598 if test "${bu_cv_have_fopen64+set}" = set; then
13599 echo $ECHO_N "(cached) $ECHO_C" >&6
13600 else
13601 cat >conftest.$ac_ext <<_ACEOF
13602 /* confdefs.h. */
13603 _ACEOF
13604 cat confdefs.h >>conftest.$ac_ext
13605 cat >>conftest.$ac_ext <<_ACEOF
13606 /* end confdefs.h. */
13607 #include <stdio.h>
13609 main ()
13611 FILE *f = fopen64 ("/tmp/foo","r");
13613 return 0;
13615 _ACEOF
13616 rm -f conftest.$ac_objext conftest$ac_exeext
13617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13618 (eval $ac_link) 2>conftest.er1
13619 ac_status=$?
13620 grep -v '^ *+' conftest.er1 >conftest.err
13621 rm -f conftest.er1
13622 cat conftest.err >&5
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); } &&
13625 { ac_try='test -z "$ac_c_werror_flag"
13626 || test ! -s conftest.err'
13627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13628 (eval $ac_try) 2>&5
13629 ac_status=$?
13630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631 (exit $ac_status); }; } &&
13632 { ac_try='test -s conftest$ac_exeext'
13633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13634 (eval $ac_try) 2>&5
13635 ac_status=$?
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); }; }; then
13638 bu_cv_have_fopen64=yes
13639 else
13640 echo "$as_me: failed program was:" >&5
13641 sed 's/^/| /' conftest.$ac_ext >&5
13643 saved_CPPFLAGS=$CPPFLAGS
13644 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
13645 cat >conftest.$ac_ext <<_ACEOF
13646 /* confdefs.h. */
13647 _ACEOF
13648 cat confdefs.h >>conftest.$ac_ext
13649 cat >>conftest.$ac_ext <<_ACEOF
13650 /* end confdefs.h. */
13651 #include <stdio.h>
13653 main ()
13655 FILE *f = fopen64 ("/tmp/foo","r");
13657 return 0;
13659 _ACEOF
13660 rm -f conftest.$ac_objext conftest$ac_exeext
13661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13662 (eval $ac_link) 2>conftest.er1
13663 ac_status=$?
13664 grep -v '^ *+' conftest.er1 >conftest.err
13665 rm -f conftest.er1
13666 cat conftest.err >&5
13667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668 (exit $ac_status); } &&
13669 { ac_try='test -z "$ac_c_werror_flag"
13670 || test ! -s conftest.err'
13671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13672 (eval $ac_try) 2>&5
13673 ac_status=$?
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); }; } &&
13676 { ac_try='test -s conftest$ac_exeext'
13677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13678 (eval $ac_try) 2>&5
13679 ac_status=$?
13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); }; }; then
13682 bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
13683 else
13684 echo "$as_me: failed program was:" >&5
13685 sed 's/^/| /' conftest.$ac_ext >&5
13687 bu_cv_have_fopen64=no
13689 rm -f conftest.err conftest.$ac_objext \
13690 conftest$ac_exeext conftest.$ac_ext
13691 CPPFLAGS=$saved_CPPFLAGS
13693 rm -f conftest.err conftest.$ac_objext \
13694 conftest$ac_exeext conftest.$ac_ext
13697 echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5
13698 echo "${ECHO_T}$bu_cv_have_fopen64" >&6
13699 if test "$bu_cv_have_fopen64" != no; then
13701 cat >>confdefs.h <<\_ACEOF
13702 #define HAVE_FOPEN64 1
13703 _ACEOF
13706 echo "$as_me:$LINENO: checking for stat64" >&5
13707 echo $ECHO_N "checking for stat64... $ECHO_C" >&6
13708 if test "${bu_cv_have_stat64+set}" = set; then
13709 echo $ECHO_N "(cached) $ECHO_C" >&6
13710 else
13711 cat >conftest.$ac_ext <<_ACEOF
13712 /* confdefs.h. */
13713 _ACEOF
13714 cat confdefs.h >>conftest.$ac_ext
13715 cat >>conftest.$ac_ext <<_ACEOF
13716 /* end confdefs.h. */
13717 #include <sys/stat.h>
13719 main ()
13721 struct stat64 st; stat64 ("/tmp/foo", &st);
13723 return 0;
13725 _ACEOF
13726 rm -f conftest.$ac_objext conftest$ac_exeext
13727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13728 (eval $ac_link) 2>conftest.er1
13729 ac_status=$?
13730 grep -v '^ *+' conftest.er1 >conftest.err
13731 rm -f conftest.er1
13732 cat conftest.err >&5
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); } &&
13735 { ac_try='test -z "$ac_c_werror_flag"
13736 || test ! -s conftest.err'
13737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13738 (eval $ac_try) 2>&5
13739 ac_status=$?
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); }; } &&
13742 { ac_try='test -s conftest$ac_exeext'
13743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13744 (eval $ac_try) 2>&5
13745 ac_status=$?
13746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747 (exit $ac_status); }; }; then
13748 bu_cv_have_stat64=yes
13749 else
13750 echo "$as_me: failed program was:" >&5
13751 sed 's/^/| /' conftest.$ac_ext >&5
13753 saved_CPPFLAGS=$CPPFLAGS
13754 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
13755 cat >conftest.$ac_ext <<_ACEOF
13756 /* confdefs.h. */
13757 _ACEOF
13758 cat confdefs.h >>conftest.$ac_ext
13759 cat >>conftest.$ac_ext <<_ACEOF
13760 /* end confdefs.h. */
13761 #include <sys/stat.h>
13763 main ()
13765 struct stat64 st; stat64 ("/tmp/foo", &st);
13767 return 0;
13769 _ACEOF
13770 rm -f conftest.$ac_objext conftest$ac_exeext
13771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13772 (eval $ac_link) 2>conftest.er1
13773 ac_status=$?
13774 grep -v '^ *+' conftest.er1 >conftest.err
13775 rm -f conftest.er1
13776 cat conftest.err >&5
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); } &&
13779 { ac_try='test -z "$ac_c_werror_flag"
13780 || test ! -s conftest.err'
13781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13782 (eval $ac_try) 2>&5
13783 ac_status=$?
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); }; } &&
13786 { ac_try='test -s conftest$ac_exeext'
13787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13788 (eval $ac_try) 2>&5
13789 ac_status=$?
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); }; }; then
13792 bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE"
13793 else
13794 echo "$as_me: failed program was:" >&5
13795 sed 's/^/| /' conftest.$ac_ext >&5
13797 bu_cv_have_stat64=no
13799 rm -f conftest.err conftest.$ac_objext \
13800 conftest$ac_exeext conftest.$ac_ext
13801 CPPFLAGS=$saved_CPPFLAGS
13803 rm -f conftest.err conftest.$ac_objext \
13804 conftest$ac_exeext conftest.$ac_ext
13807 echo "$as_me:$LINENO: result: $bu_cv_have_stat64" >&5
13808 echo "${ECHO_T}$bu_cv_have_stat64" >&6
13809 if test "$bu_cv_have_stat64" != no; then
13811 cat >>confdefs.h <<\_ACEOF
13812 #define HAVE_STAT64 1
13813 _ACEOF
13816 if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
13817 || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
13819 cat >>confdefs.h <<\_ACEOF
13820 #define _LARGEFILE64_SOURCE 1
13821 _ACEOF
13823 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
13826 # Some systems have frexp only in -lm, not in -lc.
13827 echo "$as_me:$LINENO: checking for library containing frexp" >&5
13828 echo $ECHO_N "checking for library containing frexp... $ECHO_C" >&6
13829 if test "${ac_cv_search_frexp+set}" = set; then
13830 echo $ECHO_N "(cached) $ECHO_C" >&6
13831 else
13832 ac_func_search_save_LIBS=$LIBS
13833 ac_cv_search_frexp=no
13834 cat >conftest.$ac_ext <<_ACEOF
13835 /* confdefs.h. */
13836 _ACEOF
13837 cat confdefs.h >>conftest.$ac_ext
13838 cat >>conftest.$ac_ext <<_ACEOF
13839 /* end confdefs.h. */
13841 /* Override any gcc2 internal prototype to avoid an error. */
13842 #ifdef __cplusplus
13843 extern "C"
13844 #endif
13845 /* We use char because int might match the return type of a gcc2
13846 builtin and then its argument prototype would still apply. */
13847 char frexp ();
13849 main ()
13851 frexp ();
13853 return 0;
13855 _ACEOF
13856 rm -f conftest.$ac_objext conftest$ac_exeext
13857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13858 (eval $ac_link) 2>conftest.er1
13859 ac_status=$?
13860 grep -v '^ *+' conftest.er1 >conftest.err
13861 rm -f conftest.er1
13862 cat conftest.err >&5
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); } &&
13865 { ac_try='test -z "$ac_c_werror_flag"
13866 || test ! -s conftest.err'
13867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13868 (eval $ac_try) 2>&5
13869 ac_status=$?
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); }; } &&
13872 { ac_try='test -s conftest$ac_exeext'
13873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13874 (eval $ac_try) 2>&5
13875 ac_status=$?
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); }; }; then
13878 ac_cv_search_frexp="none required"
13879 else
13880 echo "$as_me: failed program was:" >&5
13881 sed 's/^/| /' conftest.$ac_ext >&5
13884 rm -f conftest.err conftest.$ac_objext \
13885 conftest$ac_exeext conftest.$ac_ext
13886 if test "$ac_cv_search_frexp" = no; then
13887 for ac_lib in m; do
13888 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13889 cat >conftest.$ac_ext <<_ACEOF
13890 /* confdefs.h. */
13891 _ACEOF
13892 cat confdefs.h >>conftest.$ac_ext
13893 cat >>conftest.$ac_ext <<_ACEOF
13894 /* end confdefs.h. */
13896 /* Override any gcc2 internal prototype to avoid an error. */
13897 #ifdef __cplusplus
13898 extern "C"
13899 #endif
13900 /* We use char because int might match the return type of a gcc2
13901 builtin and then its argument prototype would still apply. */
13902 char frexp ();
13904 main ()
13906 frexp ();
13908 return 0;
13910 _ACEOF
13911 rm -f conftest.$ac_objext conftest$ac_exeext
13912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13913 (eval $ac_link) 2>conftest.er1
13914 ac_status=$?
13915 grep -v '^ *+' conftest.er1 >conftest.err
13916 rm -f conftest.er1
13917 cat conftest.err >&5
13918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919 (exit $ac_status); } &&
13920 { ac_try='test -z "$ac_c_werror_flag"
13921 || test ! -s conftest.err'
13922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13923 (eval $ac_try) 2>&5
13924 ac_status=$?
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); }; } &&
13927 { ac_try='test -s conftest$ac_exeext'
13928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13929 (eval $ac_try) 2>&5
13930 ac_status=$?
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); }; }; then
13933 ac_cv_search_frexp="-l$ac_lib"
13934 break
13935 else
13936 echo "$as_me: failed program was:" >&5
13937 sed 's/^/| /' conftest.$ac_ext >&5
13940 rm -f conftest.err conftest.$ac_objext \
13941 conftest$ac_exeext conftest.$ac_ext
13942 done
13944 LIBS=$ac_func_search_save_LIBS
13946 echo "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5
13947 echo "${ECHO_T}$ac_cv_search_frexp" >&6
13948 if test "$ac_cv_search_frexp" != no; then
13949 test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
13954 echo "$as_me:$LINENO: checking for time_t in time.h" >&5
13955 echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6
13956 if test "${bu_cv_decl_time_t_time_h+set}" = set; then
13957 echo $ECHO_N "(cached) $ECHO_C" >&6
13958 else
13959 cat >conftest.$ac_ext <<_ACEOF
13960 /* confdefs.h. */
13961 _ACEOF
13962 cat confdefs.h >>conftest.$ac_ext
13963 cat >>conftest.$ac_ext <<_ACEOF
13964 /* end confdefs.h. */
13965 #include <time.h>
13967 main ()
13969 time_t i;
13971 return 0;
13973 _ACEOF
13974 rm -f conftest.$ac_objext
13975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13976 (eval $ac_compile) 2>conftest.er1
13977 ac_status=$?
13978 grep -v '^ *+' conftest.er1 >conftest.err
13979 rm -f conftest.er1
13980 cat conftest.err >&5
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); } &&
13983 { ac_try='test -z "$ac_c_werror_flag"
13984 || test ! -s conftest.err'
13985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13986 (eval $ac_try) 2>&5
13987 ac_status=$?
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); }; } &&
13990 { ac_try='test -s conftest.$ac_objext'
13991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13992 (eval $ac_try) 2>&5
13993 ac_status=$?
13994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995 (exit $ac_status); }; }; then
13996 bu_cv_decl_time_t_time_h=yes
13997 else
13998 echo "$as_me: failed program was:" >&5
13999 sed 's/^/| /' conftest.$ac_ext >&5
14001 bu_cv_decl_time_t_time_h=no
14003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14006 echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5
14007 echo "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6
14008 if test $bu_cv_decl_time_t_time_h = yes; then
14010 cat >>confdefs.h <<\_ACEOF
14011 #define HAVE_TIME_T_IN_TIME_H 1
14012 _ACEOF
14016 echo "$as_me:$LINENO: checking for time_t in sys/types.h" >&5
14017 echo $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6
14018 if test "${bu_cv_decl_time_t_types_h+set}" = set; then
14019 echo $ECHO_N "(cached) $ECHO_C" >&6
14020 else
14021 cat >conftest.$ac_ext <<_ACEOF
14022 /* confdefs.h. */
14023 _ACEOF
14024 cat confdefs.h >>conftest.$ac_ext
14025 cat >>conftest.$ac_ext <<_ACEOF
14026 /* end confdefs.h. */
14027 #include <sys/types.h>
14029 main ()
14031 time_t i;
14033 return 0;
14035 _ACEOF
14036 rm -f conftest.$ac_objext
14037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14038 (eval $ac_compile) 2>conftest.er1
14039 ac_status=$?
14040 grep -v '^ *+' conftest.er1 >conftest.err
14041 rm -f conftest.er1
14042 cat conftest.err >&5
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); } &&
14045 { ac_try='test -z "$ac_c_werror_flag"
14046 || test ! -s conftest.err'
14047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14048 (eval $ac_try) 2>&5
14049 ac_status=$?
14050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051 (exit $ac_status); }; } &&
14052 { ac_try='test -s conftest.$ac_objext'
14053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14054 (eval $ac_try) 2>&5
14055 ac_status=$?
14056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057 (exit $ac_status); }; }; then
14058 bu_cv_decl_time_t_types_h=yes
14059 else
14060 echo "$as_me: failed program was:" >&5
14061 sed 's/^/| /' conftest.$ac_ext >&5
14063 bu_cv_decl_time_t_types_h=no
14065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14068 echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5
14069 echo "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6
14070 if test $bu_cv_decl_time_t_types_h = yes; then
14072 cat >>confdefs.h <<\_ACEOF
14073 #define HAVE_TIME_T_IN_TYPES_H 1
14074 _ACEOF
14078 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
14079 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
14080 if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then
14081 echo $ECHO_N "(cached) $ECHO_C" >&6
14082 else
14083 cat >conftest.$ac_ext <<_ACEOF
14084 /* confdefs.h. */
14085 _ACEOF
14086 cat confdefs.h >>conftest.$ac_ext
14087 cat >>conftest.$ac_ext <<_ACEOF
14088 /* end confdefs.h. */
14089 #include <unistd.h>
14091 main ()
14093 extern int getopt (int, char *const*, const char *);
14095 return 0;
14097 _ACEOF
14098 rm -f conftest.$ac_objext
14099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14100 (eval $ac_compile) 2>conftest.er1
14101 ac_status=$?
14102 grep -v '^ *+' conftest.er1 >conftest.err
14103 rm -f conftest.er1
14104 cat conftest.err >&5
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); } &&
14107 { ac_try='test -z "$ac_c_werror_flag"
14108 || test ! -s conftest.err'
14109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14110 (eval $ac_try) 2>&5
14111 ac_status=$?
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); }; } &&
14114 { ac_try='test -s conftest.$ac_objext'
14115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14116 (eval $ac_try) 2>&5
14117 ac_status=$?
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); }; }; then
14120 bu_cv_decl_getopt_unistd_h=yes
14121 else
14122 echo "$as_me: failed program was:" >&5
14123 sed 's/^/| /' conftest.$ac_ext >&5
14125 bu_cv_decl_getopt_unistd_h=no
14127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14130 echo "$as_me:$LINENO: result: $bu_cv_decl_getopt_unistd_h" >&5
14131 echo "${ECHO_T}$bu_cv_decl_getopt_unistd_h" >&6
14132 if test $bu_cv_decl_getopt_unistd_h = yes; then
14134 cat >>confdefs.h <<\_ACEOF
14135 #define HAVE_DECL_GETOPT 1
14136 _ACEOF
14140 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
14141 # by default.
14142 echo "$as_me:$LINENO: checking for utime.h" >&5
14143 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
14144 if test "${bu_cv_header_utime_h+set}" = set; then
14145 echo $ECHO_N "(cached) $ECHO_C" >&6
14146 else
14147 cat >conftest.$ac_ext <<_ACEOF
14148 /* confdefs.h. */
14149 _ACEOF
14150 cat confdefs.h >>conftest.$ac_ext
14151 cat >>conftest.$ac_ext <<_ACEOF
14152 /* end confdefs.h. */
14153 #include <sys/types.h>
14154 #ifdef HAVE_TIME_H
14155 #include <time.h>
14156 #endif
14157 #include <utime.h>
14159 main ()
14161 struct utimbuf s;
14163 return 0;
14165 _ACEOF
14166 rm -f conftest.$ac_objext
14167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14168 (eval $ac_compile) 2>conftest.er1
14169 ac_status=$?
14170 grep -v '^ *+' conftest.er1 >conftest.err
14171 rm -f conftest.er1
14172 cat conftest.err >&5
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); } &&
14175 { ac_try='test -z "$ac_c_werror_flag"
14176 || test ! -s conftest.err'
14177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14178 (eval $ac_try) 2>&5
14179 ac_status=$?
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); }; } &&
14182 { ac_try='test -s conftest.$ac_objext'
14183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14184 (eval $ac_try) 2>&5
14185 ac_status=$?
14186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187 (exit $ac_status); }; }; then
14188 bu_cv_header_utime_h=yes
14189 else
14190 echo "$as_me: failed program was:" >&5
14191 sed 's/^/| /' conftest.$ac_ext >&5
14193 bu_cv_header_utime_h=no
14195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14198 echo "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5
14199 echo "${ECHO_T}$bu_cv_header_utime_h" >&6
14200 if test $bu_cv_header_utime_h = yes; then
14202 cat >>confdefs.h <<\_ACEOF
14203 #define HAVE_GOOD_UTIME_H 1
14204 _ACEOF
14208 echo "$as_me:$LINENO: checking whether fprintf is declared" >&5
14209 echo $ECHO_N "checking whether fprintf is declared... $ECHO_C" >&6
14210 if test "${ac_cv_have_decl_fprintf+set}" = set; then
14211 echo $ECHO_N "(cached) $ECHO_C" >&6
14212 else
14213 cat >conftest.$ac_ext <<_ACEOF
14214 /* confdefs.h. */
14215 _ACEOF
14216 cat confdefs.h >>conftest.$ac_ext
14217 cat >>conftest.$ac_ext <<_ACEOF
14218 /* end confdefs.h. */
14219 $ac_includes_default
14221 main ()
14223 #ifndef fprintf
14224 char *p = (char *) fprintf;
14225 #endif
14228 return 0;
14230 _ACEOF
14231 rm -f conftest.$ac_objext
14232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14233 (eval $ac_compile) 2>conftest.er1
14234 ac_status=$?
14235 grep -v '^ *+' conftest.er1 >conftest.err
14236 rm -f conftest.er1
14237 cat conftest.err >&5
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); } &&
14240 { ac_try='test -z "$ac_c_werror_flag"
14241 || test ! -s conftest.err'
14242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14243 (eval $ac_try) 2>&5
14244 ac_status=$?
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); }; } &&
14247 { ac_try='test -s conftest.$ac_objext'
14248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14249 (eval $ac_try) 2>&5
14250 ac_status=$?
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); }; }; then
14253 ac_cv_have_decl_fprintf=yes
14254 else
14255 echo "$as_me: failed program was:" >&5
14256 sed 's/^/| /' conftest.$ac_ext >&5
14258 ac_cv_have_decl_fprintf=no
14260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14262 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf" >&5
14263 echo "${ECHO_T}$ac_cv_have_decl_fprintf" >&6
14264 if test $ac_cv_have_decl_fprintf = yes; then
14266 cat >>confdefs.h <<_ACEOF
14267 #define HAVE_DECL_FPRINTF 1
14268 _ACEOF
14271 else
14272 cat >>confdefs.h <<_ACEOF
14273 #define HAVE_DECL_FPRINTF 0
14274 _ACEOF
14278 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
14279 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
14280 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
14281 echo $ECHO_N "(cached) $ECHO_C" >&6
14282 else
14283 cat >conftest.$ac_ext <<_ACEOF
14284 /* confdefs.h. */
14285 _ACEOF
14286 cat confdefs.h >>conftest.$ac_ext
14287 cat >>conftest.$ac_ext <<_ACEOF
14288 /* end confdefs.h. */
14289 $ac_includes_default
14291 main ()
14293 #ifndef stpcpy
14294 char *p = (char *) stpcpy;
14295 #endif
14298 return 0;
14300 _ACEOF
14301 rm -f conftest.$ac_objext
14302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14303 (eval $ac_compile) 2>conftest.er1
14304 ac_status=$?
14305 grep -v '^ *+' conftest.er1 >conftest.err
14306 rm -f conftest.er1
14307 cat conftest.err >&5
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); } &&
14310 { ac_try='test -z "$ac_c_werror_flag"
14311 || test ! -s conftest.err'
14312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14313 (eval $ac_try) 2>&5
14314 ac_status=$?
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); }; } &&
14317 { ac_try='test -s conftest.$ac_objext'
14318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14319 (eval $ac_try) 2>&5
14320 ac_status=$?
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); }; }; then
14323 ac_cv_have_decl_stpcpy=yes
14324 else
14325 echo "$as_me: failed program was:" >&5
14326 sed 's/^/| /' conftest.$ac_ext >&5
14328 ac_cv_have_decl_stpcpy=no
14330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14332 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
14333 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
14334 if test $ac_cv_have_decl_stpcpy = yes; then
14336 cat >>confdefs.h <<_ACEOF
14337 #define HAVE_DECL_STPCPY 1
14338 _ACEOF
14341 else
14342 cat >>confdefs.h <<_ACEOF
14343 #define HAVE_DECL_STPCPY 0
14344 _ACEOF
14348 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
14349 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
14350 if test "${ac_cv_have_decl_strstr+set}" = set; then
14351 echo $ECHO_N "(cached) $ECHO_C" >&6
14352 else
14353 cat >conftest.$ac_ext <<_ACEOF
14354 /* confdefs.h. */
14355 _ACEOF
14356 cat confdefs.h >>conftest.$ac_ext
14357 cat >>conftest.$ac_ext <<_ACEOF
14358 /* end confdefs.h. */
14359 $ac_includes_default
14361 main ()
14363 #ifndef strstr
14364 char *p = (char *) strstr;
14365 #endif
14368 return 0;
14370 _ACEOF
14371 rm -f conftest.$ac_objext
14372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14373 (eval $ac_compile) 2>conftest.er1
14374 ac_status=$?
14375 grep -v '^ *+' conftest.er1 >conftest.err
14376 rm -f conftest.er1
14377 cat conftest.err >&5
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); } &&
14380 { ac_try='test -z "$ac_c_werror_flag"
14381 || test ! -s conftest.err'
14382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14383 (eval $ac_try) 2>&5
14384 ac_status=$?
14385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); }; } &&
14387 { ac_try='test -s conftest.$ac_objext'
14388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14389 (eval $ac_try) 2>&5
14390 ac_status=$?
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); }; }; then
14393 ac_cv_have_decl_strstr=yes
14394 else
14395 echo "$as_me: failed program was:" >&5
14396 sed 's/^/| /' conftest.$ac_ext >&5
14398 ac_cv_have_decl_strstr=no
14400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14402 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
14403 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
14404 if test $ac_cv_have_decl_strstr = yes; then
14406 cat >>confdefs.h <<_ACEOF
14407 #define HAVE_DECL_STRSTR 1
14408 _ACEOF
14411 else
14412 cat >>confdefs.h <<_ACEOF
14413 #define HAVE_DECL_STRSTR 0
14414 _ACEOF
14418 echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
14419 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
14420 if test "${ac_cv_have_decl_sbrk+set}" = set; then
14421 echo $ECHO_N "(cached) $ECHO_C" >&6
14422 else
14423 cat >conftest.$ac_ext <<_ACEOF
14424 /* confdefs.h. */
14425 _ACEOF
14426 cat confdefs.h >>conftest.$ac_ext
14427 cat >>conftest.$ac_ext <<_ACEOF
14428 /* end confdefs.h. */
14429 $ac_includes_default
14431 main ()
14433 #ifndef sbrk
14434 char *p = (char *) sbrk;
14435 #endif
14438 return 0;
14440 _ACEOF
14441 rm -f conftest.$ac_objext
14442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14443 (eval $ac_compile) 2>conftest.er1
14444 ac_status=$?
14445 grep -v '^ *+' conftest.er1 >conftest.err
14446 rm -f conftest.er1
14447 cat conftest.err >&5
14448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449 (exit $ac_status); } &&
14450 { ac_try='test -z "$ac_c_werror_flag"
14451 || test ! -s conftest.err'
14452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14453 (eval $ac_try) 2>&5
14454 ac_status=$?
14455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456 (exit $ac_status); }; } &&
14457 { ac_try='test -s conftest.$ac_objext'
14458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14459 (eval $ac_try) 2>&5
14460 ac_status=$?
14461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462 (exit $ac_status); }; }; then
14463 ac_cv_have_decl_sbrk=yes
14464 else
14465 echo "$as_me: failed program was:" >&5
14466 sed 's/^/| /' conftest.$ac_ext >&5
14468 ac_cv_have_decl_sbrk=no
14470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14472 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
14473 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
14474 if test $ac_cv_have_decl_sbrk = yes; then
14476 cat >>confdefs.h <<_ACEOF
14477 #define HAVE_DECL_SBRK 1
14478 _ACEOF
14481 else
14482 cat >>confdefs.h <<_ACEOF
14483 #define HAVE_DECL_SBRK 0
14484 _ACEOF
14488 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
14489 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
14490 if test "${ac_cv_have_decl_getenv+set}" = set; then
14491 echo $ECHO_N "(cached) $ECHO_C" >&6
14492 else
14493 cat >conftest.$ac_ext <<_ACEOF
14494 /* confdefs.h. */
14495 _ACEOF
14496 cat confdefs.h >>conftest.$ac_ext
14497 cat >>conftest.$ac_ext <<_ACEOF
14498 /* end confdefs.h. */
14499 $ac_includes_default
14501 main ()
14503 #ifndef getenv
14504 char *p = (char *) getenv;
14505 #endif
14508 return 0;
14510 _ACEOF
14511 rm -f conftest.$ac_objext
14512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14513 (eval $ac_compile) 2>conftest.er1
14514 ac_status=$?
14515 grep -v '^ *+' conftest.er1 >conftest.err
14516 rm -f conftest.er1
14517 cat conftest.err >&5
14518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519 (exit $ac_status); } &&
14520 { ac_try='test -z "$ac_c_werror_flag"
14521 || test ! -s conftest.err'
14522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14523 (eval $ac_try) 2>&5
14524 ac_status=$?
14525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526 (exit $ac_status); }; } &&
14527 { ac_try='test -s conftest.$ac_objext'
14528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14529 (eval $ac_try) 2>&5
14530 ac_status=$?
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); }; }; then
14533 ac_cv_have_decl_getenv=yes
14534 else
14535 echo "$as_me: failed program was:" >&5
14536 sed 's/^/| /' conftest.$ac_ext >&5
14538 ac_cv_have_decl_getenv=no
14540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14542 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
14543 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
14544 if test $ac_cv_have_decl_getenv = yes; then
14546 cat >>confdefs.h <<_ACEOF
14547 #define HAVE_DECL_GETENV 1
14548 _ACEOF
14551 else
14552 cat >>confdefs.h <<_ACEOF
14553 #define HAVE_DECL_GETENV 0
14554 _ACEOF
14558 echo "$as_me:$LINENO: checking whether environ is declared" >&5
14559 echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
14560 if test "${ac_cv_have_decl_environ+set}" = set; then
14561 echo $ECHO_N "(cached) $ECHO_C" >&6
14562 else
14563 cat >conftest.$ac_ext <<_ACEOF
14564 /* confdefs.h. */
14565 _ACEOF
14566 cat confdefs.h >>conftest.$ac_ext
14567 cat >>conftest.$ac_ext <<_ACEOF
14568 /* end confdefs.h. */
14569 $ac_includes_default
14571 main ()
14573 #ifndef environ
14574 char *p = (char *) environ;
14575 #endif
14578 return 0;
14580 _ACEOF
14581 rm -f conftest.$ac_objext
14582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14583 (eval $ac_compile) 2>conftest.er1
14584 ac_status=$?
14585 grep -v '^ *+' conftest.er1 >conftest.err
14586 rm -f conftest.er1
14587 cat conftest.err >&5
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); } &&
14590 { ac_try='test -z "$ac_c_werror_flag"
14591 || test ! -s conftest.err'
14592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14593 (eval $ac_try) 2>&5
14594 ac_status=$?
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); }; } &&
14597 { ac_try='test -s conftest.$ac_objext'
14598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14599 (eval $ac_try) 2>&5
14600 ac_status=$?
14601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602 (exit $ac_status); }; }; then
14603 ac_cv_have_decl_environ=yes
14604 else
14605 echo "$as_me: failed program was:" >&5
14606 sed 's/^/| /' conftest.$ac_ext >&5
14608 ac_cv_have_decl_environ=no
14610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14612 echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
14613 echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
14614 if test $ac_cv_have_decl_environ = yes; then
14616 cat >>confdefs.h <<_ACEOF
14617 #define HAVE_DECL_ENVIRON 1
14618 _ACEOF
14621 else
14622 cat >>confdefs.h <<_ACEOF
14623 #define HAVE_DECL_ENVIRON 0
14624 _ACEOF
14628 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
14629 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
14630 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
14631 echo $ECHO_N "(cached) $ECHO_C" >&6
14632 else
14633 cat >conftest.$ac_ext <<_ACEOF
14634 /* confdefs.h. */
14635 _ACEOF
14636 cat confdefs.h >>conftest.$ac_ext
14637 cat >>conftest.$ac_ext <<_ACEOF
14638 /* end confdefs.h. */
14639 $ac_includes_default
14641 main ()
14643 #ifndef getc_unlocked
14644 char *p = (char *) getc_unlocked;
14645 #endif
14648 return 0;
14650 _ACEOF
14651 rm -f conftest.$ac_objext
14652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14653 (eval $ac_compile) 2>conftest.er1
14654 ac_status=$?
14655 grep -v '^ *+' conftest.er1 >conftest.err
14656 rm -f conftest.er1
14657 cat conftest.err >&5
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); } &&
14660 { ac_try='test -z "$ac_c_werror_flag"
14661 || test ! -s conftest.err'
14662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14663 (eval $ac_try) 2>&5
14664 ac_status=$?
14665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666 (exit $ac_status); }; } &&
14667 { ac_try='test -s conftest.$ac_objext'
14668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14669 (eval $ac_try) 2>&5
14670 ac_status=$?
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); }; }; then
14673 ac_cv_have_decl_getc_unlocked=yes
14674 else
14675 echo "$as_me: failed program was:" >&5
14676 sed 's/^/| /' conftest.$ac_ext >&5
14678 ac_cv_have_decl_getc_unlocked=no
14680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14682 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
14683 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
14684 if test $ac_cv_have_decl_getc_unlocked = yes; then
14686 cat >>confdefs.h <<_ACEOF
14687 #define HAVE_DECL_GETC_UNLOCKED 1
14688 _ACEOF
14691 else
14692 cat >>confdefs.h <<_ACEOF
14693 #define HAVE_DECL_GETC_UNLOCKED 0
14694 _ACEOF
14698 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
14699 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
14700 if test "${ac_cv_have_decl_snprintf+set}" = set; then
14701 echo $ECHO_N "(cached) $ECHO_C" >&6
14702 else
14703 cat >conftest.$ac_ext <<_ACEOF
14704 /* confdefs.h. */
14705 _ACEOF
14706 cat confdefs.h >>conftest.$ac_ext
14707 cat >>conftest.$ac_ext <<_ACEOF
14708 /* end confdefs.h. */
14709 $ac_includes_default
14711 main ()
14713 #ifndef snprintf
14714 char *p = (char *) snprintf;
14715 #endif
14718 return 0;
14720 _ACEOF
14721 rm -f conftest.$ac_objext
14722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14723 (eval $ac_compile) 2>conftest.er1
14724 ac_status=$?
14725 grep -v '^ *+' conftest.er1 >conftest.err
14726 rm -f conftest.er1
14727 cat conftest.err >&5
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); } &&
14730 { ac_try='test -z "$ac_c_werror_flag"
14731 || test ! -s conftest.err'
14732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14733 (eval $ac_try) 2>&5
14734 ac_status=$?
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); }; } &&
14737 { ac_try='test -s conftest.$ac_objext'
14738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14739 (eval $ac_try) 2>&5
14740 ac_status=$?
14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); }; }; then
14743 ac_cv_have_decl_snprintf=yes
14744 else
14745 echo "$as_me: failed program was:" >&5
14746 sed 's/^/| /' conftest.$ac_ext >&5
14748 ac_cv_have_decl_snprintf=no
14750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14752 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
14753 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
14754 if test $ac_cv_have_decl_snprintf = yes; then
14756 cat >>confdefs.h <<_ACEOF
14757 #define HAVE_DECL_SNPRINTF 1
14758 _ACEOF
14761 else
14762 cat >>confdefs.h <<_ACEOF
14763 #define HAVE_DECL_SNPRINTF 0
14764 _ACEOF
14768 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14769 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
14770 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14771 echo $ECHO_N "(cached) $ECHO_C" >&6
14772 else
14773 cat >conftest.$ac_ext <<_ACEOF
14774 /* confdefs.h. */
14775 _ACEOF
14776 cat confdefs.h >>conftest.$ac_ext
14777 cat >>conftest.$ac_ext <<_ACEOF
14778 /* end confdefs.h. */
14779 $ac_includes_default
14781 main ()
14783 #ifndef vsnprintf
14784 char *p = (char *) vsnprintf;
14785 #endif
14788 return 0;
14790 _ACEOF
14791 rm -f conftest.$ac_objext
14792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14793 (eval $ac_compile) 2>conftest.er1
14794 ac_status=$?
14795 grep -v '^ *+' conftest.er1 >conftest.err
14796 rm -f conftest.er1
14797 cat conftest.err >&5
14798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799 (exit $ac_status); } &&
14800 { ac_try='test -z "$ac_c_werror_flag"
14801 || test ! -s conftest.err'
14802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14803 (eval $ac_try) 2>&5
14804 ac_status=$?
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); }; } &&
14807 { ac_try='test -s conftest.$ac_objext'
14808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14809 (eval $ac_try) 2>&5
14810 ac_status=$?
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); }; }; then
14813 ac_cv_have_decl_vsnprintf=yes
14814 else
14815 echo "$as_me: failed program was:" >&5
14816 sed 's/^/| /' conftest.$ac_ext >&5
14818 ac_cv_have_decl_vsnprintf=no
14820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14822 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
14823 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
14824 if test $ac_cv_have_decl_vsnprintf = yes; then
14826 cat >>confdefs.h <<_ACEOF
14827 #define HAVE_DECL_VSNPRINTF 1
14828 _ACEOF
14831 else
14832 cat >>confdefs.h <<_ACEOF
14833 #define HAVE_DECL_VSNPRINTF 0
14834 _ACEOF
14841 # Link in zlib if we can. This allows us to read compressed debug
14842 # sections. This is used only by readelf.c (objdump uses bfd for
14843 # reading compressed sections).
14844 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
14845 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
14846 if test "${ac_cv_search_zlibVersion+set}" = set; then
14847 echo $ECHO_N "(cached) $ECHO_C" >&6
14848 else
14849 ac_func_search_save_LIBS=$LIBS
14850 ac_cv_search_zlibVersion=no
14851 cat >conftest.$ac_ext <<_ACEOF
14852 /* confdefs.h. */
14853 _ACEOF
14854 cat confdefs.h >>conftest.$ac_ext
14855 cat >>conftest.$ac_ext <<_ACEOF
14856 /* end confdefs.h. */
14858 /* Override any gcc2 internal prototype to avoid an error. */
14859 #ifdef __cplusplus
14860 extern "C"
14861 #endif
14862 /* We use char because int might match the return type of a gcc2
14863 builtin and then its argument prototype would still apply. */
14864 char zlibVersion ();
14866 main ()
14868 zlibVersion ();
14870 return 0;
14872 _ACEOF
14873 rm -f conftest.$ac_objext conftest$ac_exeext
14874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14875 (eval $ac_link) 2>conftest.er1
14876 ac_status=$?
14877 grep -v '^ *+' conftest.er1 >conftest.err
14878 rm -f conftest.er1
14879 cat conftest.err >&5
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); } &&
14882 { ac_try='test -z "$ac_c_werror_flag"
14883 || test ! -s conftest.err'
14884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14885 (eval $ac_try) 2>&5
14886 ac_status=$?
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); }; } &&
14889 { ac_try='test -s conftest$ac_exeext'
14890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14891 (eval $ac_try) 2>&5
14892 ac_status=$?
14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); }; }; then
14895 ac_cv_search_zlibVersion="none required"
14896 else
14897 echo "$as_me: failed program was:" >&5
14898 sed 's/^/| /' conftest.$ac_ext >&5
14901 rm -f conftest.err conftest.$ac_objext \
14902 conftest$ac_exeext conftest.$ac_ext
14903 if test "$ac_cv_search_zlibVersion" = no; then
14904 for ac_lib in z; do
14905 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14906 cat >conftest.$ac_ext <<_ACEOF
14907 /* confdefs.h. */
14908 _ACEOF
14909 cat confdefs.h >>conftest.$ac_ext
14910 cat >>conftest.$ac_ext <<_ACEOF
14911 /* end confdefs.h. */
14913 /* Override any gcc2 internal prototype to avoid an error. */
14914 #ifdef __cplusplus
14915 extern "C"
14916 #endif
14917 /* We use char because int might match the return type of a gcc2
14918 builtin and then its argument prototype would still apply. */
14919 char zlibVersion ();
14921 main ()
14923 zlibVersion ();
14925 return 0;
14927 _ACEOF
14928 rm -f conftest.$ac_objext conftest$ac_exeext
14929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14930 (eval $ac_link) 2>conftest.er1
14931 ac_status=$?
14932 grep -v '^ *+' conftest.er1 >conftest.err
14933 rm -f conftest.er1
14934 cat conftest.err >&5
14935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936 (exit $ac_status); } &&
14937 { ac_try='test -z "$ac_c_werror_flag"
14938 || test ! -s conftest.err'
14939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14940 (eval $ac_try) 2>&5
14941 ac_status=$?
14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943 (exit $ac_status); }; } &&
14944 { ac_try='test -s conftest$ac_exeext'
14945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14946 (eval $ac_try) 2>&5
14947 ac_status=$?
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); }; }; then
14950 ac_cv_search_zlibVersion="-l$ac_lib"
14951 break
14952 else
14953 echo "$as_me: failed program was:" >&5
14954 sed 's/^/| /' conftest.$ac_ext >&5
14957 rm -f conftest.err conftest.$ac_objext \
14958 conftest$ac_exeext conftest.$ac_ext
14959 done
14961 LIBS=$ac_func_search_save_LIBS
14963 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
14964 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
14965 if test "$ac_cv_search_zlibVersion" != no; then
14966 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
14968 for ac_header in zlib.h
14970 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14972 echo "$as_me:$LINENO: checking for $ac_header" >&5
14973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14975 echo $ECHO_N "(cached) $ECHO_C" >&6
14977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14978 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14979 else
14980 # Is the header compilable?
14981 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14982 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14983 cat >conftest.$ac_ext <<_ACEOF
14984 /* confdefs.h. */
14985 _ACEOF
14986 cat confdefs.h >>conftest.$ac_ext
14987 cat >>conftest.$ac_ext <<_ACEOF
14988 /* end confdefs.h. */
14989 $ac_includes_default
14990 #include <$ac_header>
14991 _ACEOF
14992 rm -f conftest.$ac_objext
14993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14994 (eval $ac_compile) 2>conftest.er1
14995 ac_status=$?
14996 grep -v '^ *+' conftest.er1 >conftest.err
14997 rm -f conftest.er1
14998 cat conftest.err >&5
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); } &&
15001 { ac_try='test -z "$ac_c_werror_flag"
15002 || test ! -s conftest.err'
15003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15004 (eval $ac_try) 2>&5
15005 ac_status=$?
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); }; } &&
15008 { ac_try='test -s conftest.$ac_objext'
15009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15010 (eval $ac_try) 2>&5
15011 ac_status=$?
15012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013 (exit $ac_status); }; }; then
15014 ac_header_compiler=yes
15015 else
15016 echo "$as_me: failed program was:" >&5
15017 sed 's/^/| /' conftest.$ac_ext >&5
15019 ac_header_compiler=no
15021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15022 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15023 echo "${ECHO_T}$ac_header_compiler" >&6
15025 # Is the header present?
15026 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15027 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15028 cat >conftest.$ac_ext <<_ACEOF
15029 /* confdefs.h. */
15030 _ACEOF
15031 cat confdefs.h >>conftest.$ac_ext
15032 cat >>conftest.$ac_ext <<_ACEOF
15033 /* end confdefs.h. */
15034 #include <$ac_header>
15035 _ACEOF
15036 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15037 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15038 ac_status=$?
15039 grep -v '^ *+' conftest.er1 >conftest.err
15040 rm -f conftest.er1
15041 cat conftest.err >&5
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); } >/dev/null; then
15044 if test -s conftest.err; then
15045 ac_cpp_err=$ac_c_preproc_warn_flag
15046 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15047 else
15048 ac_cpp_err=
15050 else
15051 ac_cpp_err=yes
15053 if test -z "$ac_cpp_err"; then
15054 ac_header_preproc=yes
15055 else
15056 echo "$as_me: failed program was:" >&5
15057 sed 's/^/| /' conftest.$ac_ext >&5
15059 ac_header_preproc=no
15061 rm -f conftest.err conftest.$ac_ext
15062 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15063 echo "${ECHO_T}$ac_header_preproc" >&6
15065 # So? What about this header?
15066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15067 yes:no: )
15068 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15069 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15071 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15072 ac_header_preproc=yes
15074 no:yes:* )
15075 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15076 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15077 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15078 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15079 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15080 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15081 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15082 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15084 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15085 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15086 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15088 cat <<\_ASBOX
15089 ## ------------------------------------------ ##
15090 ## Report this to the AC_PACKAGE_NAME lists. ##
15091 ## ------------------------------------------ ##
15092 _ASBOX
15094 sed "s/^/$as_me: WARNING: /" >&2
15096 esac
15097 echo "$as_me:$LINENO: checking for $ac_header" >&5
15098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15100 echo $ECHO_N "(cached) $ECHO_C" >&6
15101 else
15102 eval "$as_ac_Header=\$ac_header_preproc"
15104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15108 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15109 cat >>confdefs.h <<_ACEOF
15110 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15111 _ACEOF
15115 done
15121 case "${host}" in
15122 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
15124 cat >>confdefs.h <<\_ACEOF
15125 #define USE_BINARY_FOPEN 1
15126 _ACEOF
15128 esac
15130 # target-specific stuff:
15132 # Canonicalize the secondary target names.
15133 if test -n "$enable_targets"; then
15134 for targ in `echo $enable_targets | sed 's/,/ /g'`
15136 result=`$ac_config_sub $targ 2>/dev/null`
15137 if test -n "$result"; then
15138 canon_targets="$canon_targets $result"
15139 else
15140 # Allow targets that config.sub doesn't recognize, like "all".
15141 canon_targets="$canon_targets $targ"
15143 done
15146 if test "${ac_cv_header_iconv_h+set}" = set; then
15147 echo "$as_me:$LINENO: checking for iconv.h" >&5
15148 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
15149 if test "${ac_cv_header_iconv_h+set}" = set; then
15150 echo $ECHO_N "(cached) $ECHO_C" >&6
15152 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
15153 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
15154 else
15155 # Is the header compilable?
15156 echo "$as_me:$LINENO: checking iconv.h usability" >&5
15157 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
15158 cat >conftest.$ac_ext <<_ACEOF
15159 /* confdefs.h. */
15160 _ACEOF
15161 cat confdefs.h >>conftest.$ac_ext
15162 cat >>conftest.$ac_ext <<_ACEOF
15163 /* end confdefs.h. */
15164 $ac_includes_default
15165 #include <iconv.h>
15166 _ACEOF
15167 rm -f conftest.$ac_objext
15168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15169 (eval $ac_compile) 2>conftest.er1
15170 ac_status=$?
15171 grep -v '^ *+' conftest.er1 >conftest.err
15172 rm -f conftest.er1
15173 cat conftest.err >&5
15174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175 (exit $ac_status); } &&
15176 { ac_try='test -z "$ac_c_werror_flag"
15177 || test ! -s conftest.err'
15178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15179 (eval $ac_try) 2>&5
15180 ac_status=$?
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); }; } &&
15183 { ac_try='test -s conftest.$ac_objext'
15184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15185 (eval $ac_try) 2>&5
15186 ac_status=$?
15187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 (exit $ac_status); }; }; then
15189 ac_header_compiler=yes
15190 else
15191 echo "$as_me: failed program was:" >&5
15192 sed 's/^/| /' conftest.$ac_ext >&5
15194 ac_header_compiler=no
15196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15197 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15198 echo "${ECHO_T}$ac_header_compiler" >&6
15200 # Is the header present?
15201 echo "$as_me:$LINENO: checking iconv.h presence" >&5
15202 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
15203 cat >conftest.$ac_ext <<_ACEOF
15204 /* confdefs.h. */
15205 _ACEOF
15206 cat confdefs.h >>conftest.$ac_ext
15207 cat >>conftest.$ac_ext <<_ACEOF
15208 /* end confdefs.h. */
15209 #include <iconv.h>
15210 _ACEOF
15211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15213 ac_status=$?
15214 grep -v '^ *+' conftest.er1 >conftest.err
15215 rm -f conftest.er1
15216 cat conftest.err >&5
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); } >/dev/null; then
15219 if test -s conftest.err; then
15220 ac_cpp_err=$ac_c_preproc_warn_flag
15221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15222 else
15223 ac_cpp_err=
15225 else
15226 ac_cpp_err=yes
15228 if test -z "$ac_cpp_err"; then
15229 ac_header_preproc=yes
15230 else
15231 echo "$as_me: failed program was:" >&5
15232 sed 's/^/| /' conftest.$ac_ext >&5
15234 ac_header_preproc=no
15236 rm -f conftest.err conftest.$ac_ext
15237 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15238 echo "${ECHO_T}$ac_header_preproc" >&6
15240 # So? What about this header?
15241 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15242 yes:no: )
15243 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
15244 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15245 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
15246 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
15247 ac_header_preproc=yes
15249 no:yes:* )
15250 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
15251 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
15252 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
15253 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
15254 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
15255 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
15256 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
15257 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
15258 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
15259 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
15260 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
15261 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
15263 cat <<\_ASBOX
15264 ## ------------------------------------------ ##
15265 ## Report this to the AC_PACKAGE_NAME lists. ##
15266 ## ------------------------------------------ ##
15267 _ASBOX
15269 sed "s/^/$as_me: WARNING: /" >&2
15271 esac
15272 echo "$as_me:$LINENO: checking for iconv.h" >&5
15273 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
15274 if test "${ac_cv_header_iconv_h+set}" = set; then
15275 echo $ECHO_N "(cached) $ECHO_C" >&6
15276 else
15277 ac_cv_header_iconv_h=$ac_header_preproc
15279 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
15280 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
15286 if test "X$prefix" = "XNONE"; then
15287 acl_final_prefix="$ac_default_prefix"
15288 else
15289 acl_final_prefix="$prefix"
15291 if test "X$exec_prefix" = "XNONE"; then
15292 acl_final_exec_prefix='${prefix}'
15293 else
15294 acl_final_exec_prefix="$exec_prefix"
15296 acl_save_prefix="$prefix"
15297 prefix="$acl_final_prefix"
15298 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
15299 prefix="$acl_save_prefix"
15302 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15303 if test "${with_gnu_ld+set}" = set; then
15304 withval="$with_gnu_ld"
15305 test "$withval" = no || with_gnu_ld=yes
15306 else
15307 with_gnu_ld=no
15309 # Prepare PATH_SEPARATOR.
15310 # The user is always right.
15311 if test "${PATH_SEPARATOR+set}" != set; then
15312 echo "#! /bin/sh" >conf$$.sh
15313 echo "exit 0" >>conf$$.sh
15314 chmod +x conf$$.sh
15315 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15316 PATH_SEPARATOR=';'
15317 else
15318 PATH_SEPARATOR=:
15320 rm -f conf$$.sh
15322 ac_prog=ld
15323 if test "$GCC" = yes; then
15324 # Check if gcc -print-prog-name=ld gives a path.
15325 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
15326 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
15327 case $host in
15328 *-*-mingw*)
15329 # gcc leaves a trailing carriage return which upsets mingw
15330 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15332 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15333 esac
15334 case $ac_prog in
15335 # Accept absolute paths.
15336 [\\/]* | [A-Za-z]:[\\/]*)
15337 re_direlt='/[^/][^/]*/\.\./'
15338 # Canonicalize the path of ld
15339 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
15340 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15341 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
15342 done
15343 test -z "$LD" && LD="$ac_prog"
15346 # If it fails, then pretend we aren't using GCC.
15347 ac_prog=ld
15350 # If it is relative, then search for the first ld in PATH.
15351 with_gnu_ld=unknown
15353 esac
15354 elif test "$with_gnu_ld" = yes; then
15355 echo "$as_me:$LINENO: checking for GNU ld" >&5
15356 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15357 else
15358 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15359 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15361 if test "${acl_cv_path_LD+set}" = set; then
15362 echo $ECHO_N "(cached) $ECHO_C" >&6
15363 else
15364 if test -z "$LD"; then
15365 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
15366 for ac_dir in $PATH; do
15367 test -z "$ac_dir" && ac_dir=.
15368 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15369 acl_cv_path_LD="$ac_dir/$ac_prog"
15370 # Check to see if the program is GNU ld. I'd rather use --version,
15371 # but apparently some GNU ld's only accept -v.
15372 # Break only if it was the GNU/non-GNU ld that we prefer.
15373 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
15374 test "$with_gnu_ld" != no && break
15375 else
15376 test "$with_gnu_ld" != yes && break
15379 done
15380 IFS="$ac_save_ifs"
15381 else
15382 acl_cv_path_LD="$LD" # Let the user override the test with a path.
15386 LD="$acl_cv_path_LD"
15387 if test -n "$LD"; then
15388 echo "$as_me:$LINENO: result: $LD" >&5
15389 echo "${ECHO_T}$LD" >&6
15390 else
15391 echo "$as_me:$LINENO: result: no" >&5
15392 echo "${ECHO_T}no" >&6
15394 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15395 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15396 { (exit 1); exit 1; }; }
15397 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15398 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15399 if test "${acl_cv_prog_gnu_ld+set}" = set; then
15400 echo $ECHO_N "(cached) $ECHO_C" >&6
15401 else
15402 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15403 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
15404 acl_cv_prog_gnu_ld=yes
15405 else
15406 acl_cv_prog_gnu_ld=no
15409 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
15410 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
15411 with_gnu_ld=$acl_cv_prog_gnu_ld
15415 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
15416 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
15417 if test "${acl_cv_rpath+set}" = set; then
15418 echo $ECHO_N "(cached) $ECHO_C" >&6
15419 else
15421 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
15422 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
15423 . ./conftest.sh
15424 rm -f ./conftest.sh
15425 acl_cv_rpath=done
15428 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
15429 echo "${ECHO_T}$acl_cv_rpath" >&6
15430 wl="$acl_cv_wl"
15431 libext="$acl_cv_libext"
15432 shlibext="$acl_cv_shlibext"
15433 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
15434 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
15435 hardcode_direct="$acl_cv_hardcode_direct"
15436 hardcode_minus_L="$acl_cv_hardcode_minus_L"
15437 # Check whether --enable-rpath or --disable-rpath was given.
15438 if test "${enable_rpath+set}" = set; then
15439 enableval="$enable_rpath"
15441 else
15442 enable_rpath=yes
15451 use_additional=yes
15453 acl_save_prefix="$prefix"
15454 prefix="$acl_final_prefix"
15455 acl_save_exec_prefix="$exec_prefix"
15456 exec_prefix="$acl_final_exec_prefix"
15458 eval additional_includedir=\"$includedir\"
15459 eval additional_libdir=\"$libdir\"
15461 exec_prefix="$acl_save_exec_prefix"
15462 prefix="$acl_save_prefix"
15465 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
15466 if test "${with_libiconv_prefix+set}" = set; then
15467 withval="$with_libiconv_prefix"
15469 if test "X$withval" = "Xno"; then
15470 use_additional=no
15471 else
15472 if test "X$withval" = "X"; then
15474 acl_save_prefix="$prefix"
15475 prefix="$acl_final_prefix"
15476 acl_save_exec_prefix="$exec_prefix"
15477 exec_prefix="$acl_final_exec_prefix"
15479 eval additional_includedir=\"$includedir\"
15480 eval additional_libdir=\"$libdir\"
15482 exec_prefix="$acl_save_exec_prefix"
15483 prefix="$acl_save_prefix"
15485 else
15486 additional_includedir="$withval/include"
15487 additional_libdir="$withval/lib"
15492 LIBICONV=
15493 LTLIBICONV=
15494 INCICONV=
15495 rpathdirs=
15496 ltrpathdirs=
15497 names_already_handled=
15498 names_next_round='iconv '
15499 while test -n "$names_next_round"; do
15500 names_this_round="$names_next_round"
15501 names_next_round=
15502 for name in $names_this_round; do
15503 already_handled=
15504 for n in $names_already_handled; do
15505 if test "$n" = "$name"; then
15506 already_handled=yes
15507 break
15509 done
15510 if test -z "$already_handled"; then
15511 names_already_handled="$names_already_handled $name"
15512 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15513 eval value=\"\$HAVE_LIB$uppername\"
15514 if test -n "$value"; then
15515 if test "$value" = yes; then
15516 eval value=\"\$LIB$uppername\"
15517 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
15518 eval value=\"\$LTLIB$uppername\"
15519 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
15520 else
15523 else
15524 found_dir=
15525 found_la=
15526 found_so=
15527 found_a=
15528 if test $use_additional = yes; then
15529 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15530 found_dir="$additional_libdir"
15531 found_so="$additional_libdir/lib$name.$shlibext"
15532 if test -f "$additional_libdir/lib$name.la"; then
15533 found_la="$additional_libdir/lib$name.la"
15535 else
15536 if test -f "$additional_libdir/lib$name.$libext"; then
15537 found_dir="$additional_libdir"
15538 found_a="$additional_libdir/lib$name.$libext"
15539 if test -f "$additional_libdir/lib$name.la"; then
15540 found_la="$additional_libdir/lib$name.la"
15545 if test "X$found_dir" = "X"; then
15546 for x in $LDFLAGS $LTLIBICONV; do
15548 acl_save_prefix="$prefix"
15549 prefix="$acl_final_prefix"
15550 acl_save_exec_prefix="$exec_prefix"
15551 exec_prefix="$acl_final_exec_prefix"
15552 eval x=\"$x\"
15553 exec_prefix="$acl_save_exec_prefix"
15554 prefix="$acl_save_prefix"
15556 case "$x" in
15557 -L*)
15558 dir=`echo "X$x" | sed -e 's/^X-L//'`
15559 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15560 found_dir="$dir"
15561 found_so="$dir/lib$name.$shlibext"
15562 if test -f "$dir/lib$name.la"; then
15563 found_la="$dir/lib$name.la"
15565 else
15566 if test -f "$dir/lib$name.$libext"; then
15567 found_dir="$dir"
15568 found_a="$dir/lib$name.$libext"
15569 if test -f "$dir/lib$name.la"; then
15570 found_la="$dir/lib$name.la"
15575 esac
15576 if test "X$found_dir" != "X"; then
15577 break
15579 done
15581 if test "X$found_dir" != "X"; then
15582 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15583 if test "X$found_so" != "X"; then
15584 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
15585 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15586 else
15587 haveit=
15588 for x in $ltrpathdirs; do
15589 if test "X$x" = "X$found_dir"; then
15590 haveit=yes
15591 break
15593 done
15594 if test -z "$haveit"; then
15595 ltrpathdirs="$ltrpathdirs $found_dir"
15597 if test "$hardcode_direct" = yes; then
15598 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15599 else
15600 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
15601 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15602 haveit=
15603 for x in $rpathdirs; do
15604 if test "X$x" = "X$found_dir"; then
15605 haveit=yes
15606 break
15608 done
15609 if test -z "$haveit"; then
15610 rpathdirs="$rpathdirs $found_dir"
15612 else
15613 haveit=
15614 for x in $LDFLAGS $LIBICONV; do
15616 acl_save_prefix="$prefix"
15617 prefix="$acl_final_prefix"
15618 acl_save_exec_prefix="$exec_prefix"
15619 exec_prefix="$acl_final_exec_prefix"
15620 eval x=\"$x\"
15621 exec_prefix="$acl_save_exec_prefix"
15622 prefix="$acl_save_prefix"
15624 if test "X$x" = "X-L$found_dir"; then
15625 haveit=yes
15626 break
15628 done
15629 if test -z "$haveit"; then
15630 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
15632 if test "$hardcode_minus_L" != no; then
15633 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15634 else
15635 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15640 else
15641 if test "X$found_a" != "X"; then
15642 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15643 else
15644 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15647 additional_includedir=
15648 case "$found_dir" in
15649 */lib | */lib/)
15650 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
15651 additional_includedir="$basedir/include"
15653 esac
15654 if test "X$additional_includedir" != "X"; then
15655 if test "X$additional_includedir" != "X/usr/include"; then
15656 haveit=
15657 if test "X$additional_includedir" = "X/usr/local/include"; then
15658 if test -n "$GCC"; then
15659 case $host_os in
15660 linux*) haveit=yes;;
15661 esac
15664 if test -z "$haveit"; then
15665 for x in $CPPFLAGS $INCICONV; do
15667 acl_save_prefix="$prefix"
15668 prefix="$acl_final_prefix"
15669 acl_save_exec_prefix="$exec_prefix"
15670 exec_prefix="$acl_final_exec_prefix"
15671 eval x=\"$x\"
15672 exec_prefix="$acl_save_exec_prefix"
15673 prefix="$acl_save_prefix"
15675 if test "X$x" = "X-I$additional_includedir"; then
15676 haveit=yes
15677 break
15679 done
15680 if test -z "$haveit"; then
15681 if test -d "$additional_includedir"; then
15682 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15688 if test -n "$found_la"; then
15689 save_libdir="$libdir"
15690 case "$found_la" in
15691 */* | *\\*) . "$found_la" ;;
15692 *) . "./$found_la" ;;
15693 esac
15694 libdir="$save_libdir"
15695 for dep in $dependency_libs; do
15696 case "$dep" in
15697 -L*)
15698 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15699 if test "X$additional_libdir" != "X/usr/lib"; then
15700 haveit=
15701 if test "X$additional_libdir" = "X/usr/local/lib"; then
15702 if test -n "$GCC"; then
15703 case $host_os in
15704 linux*) haveit=yes;;
15705 esac
15708 if test -z "$haveit"; then
15709 haveit=
15710 for x in $LDFLAGS $LIBICONV; do
15712 acl_save_prefix="$prefix"
15713 prefix="$acl_final_prefix"
15714 acl_save_exec_prefix="$exec_prefix"
15715 exec_prefix="$acl_final_exec_prefix"
15716 eval x=\"$x\"
15717 exec_prefix="$acl_save_exec_prefix"
15718 prefix="$acl_save_prefix"
15720 if test "X$x" = "X-L$additional_libdir"; then
15721 haveit=yes
15722 break
15724 done
15725 if test -z "$haveit"; then
15726 if test -d "$additional_libdir"; then
15727 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15730 haveit=
15731 for x in $LDFLAGS $LTLIBICONV; do
15733 acl_save_prefix="$prefix"
15734 prefix="$acl_final_prefix"
15735 acl_save_exec_prefix="$exec_prefix"
15736 exec_prefix="$acl_final_exec_prefix"
15737 eval x=\"$x\"
15738 exec_prefix="$acl_save_exec_prefix"
15739 prefix="$acl_save_prefix"
15741 if test "X$x" = "X-L$additional_libdir"; then
15742 haveit=yes
15743 break
15745 done
15746 if test -z "$haveit"; then
15747 if test -d "$additional_libdir"; then
15748 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15754 -R*)
15755 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15756 if test "$enable_rpath" != no; then
15757 haveit=
15758 for x in $rpathdirs; do
15759 if test "X$x" = "X$dir"; then
15760 haveit=yes
15761 break
15763 done
15764 if test -z "$haveit"; then
15765 rpathdirs="$rpathdirs $dir"
15767 haveit=
15768 for x in $ltrpathdirs; do
15769 if test "X$x" = "X$dir"; then
15770 haveit=yes
15771 break
15773 done
15774 if test -z "$haveit"; then
15775 ltrpathdirs="$ltrpathdirs $dir"
15779 -l*)
15780 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15782 *.la)
15783 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15786 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15787 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15789 esac
15790 done
15792 else
15793 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15794 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15798 done
15799 done
15800 if test "X$rpathdirs" != "X"; then
15801 if test -n "$hardcode_libdir_separator"; then
15802 alldirs=
15803 for found_dir in $rpathdirs; do
15804 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15805 done
15806 acl_save_libdir="$libdir"
15807 libdir="$alldirs"
15808 eval flag=\"$hardcode_libdir_flag_spec\"
15809 libdir="$acl_save_libdir"
15810 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15811 else
15812 for found_dir in $rpathdirs; do
15813 acl_save_libdir="$libdir"
15814 libdir="$found_dir"
15815 eval flag=\"$hardcode_libdir_flag_spec\"
15816 libdir="$acl_save_libdir"
15817 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15818 done
15821 if test "X$ltrpathdirs" != "X"; then
15822 for found_dir in $ltrpathdirs; do
15823 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15824 done
15833 am_save_CPPFLAGS="$CPPFLAGS"
15835 for element in $INCICONV; do
15836 haveit=
15837 for x in $CPPFLAGS; do
15839 acl_save_prefix="$prefix"
15840 prefix="$acl_final_prefix"
15841 acl_save_exec_prefix="$exec_prefix"
15842 exec_prefix="$acl_final_exec_prefix"
15843 eval x=\"$x\"
15844 exec_prefix="$acl_save_exec_prefix"
15845 prefix="$acl_save_prefix"
15847 if test "X$x" = "X$element"; then
15848 haveit=yes
15849 break
15851 done
15852 if test -z "$haveit"; then
15853 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15855 done
15858 echo "$as_me:$LINENO: checking for iconv" >&5
15859 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
15860 if test "${am_cv_func_iconv+set}" = set; then
15861 echo $ECHO_N "(cached) $ECHO_C" >&6
15862 else
15864 am_cv_func_iconv="no, consider installing GNU libiconv"
15865 am_cv_lib_iconv=no
15866 cat >conftest.$ac_ext <<_ACEOF
15867 /* confdefs.h. */
15868 _ACEOF
15869 cat confdefs.h >>conftest.$ac_ext
15870 cat >>conftest.$ac_ext <<_ACEOF
15871 /* end confdefs.h. */
15872 #include <stdlib.h>
15873 #include <iconv.h>
15875 main ()
15877 iconv_t cd = iconv_open("","");
15878 iconv(cd,NULL,NULL,NULL,NULL);
15879 iconv_close(cd);
15881 return 0;
15883 _ACEOF
15884 rm -f conftest.$ac_objext conftest$ac_exeext
15885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15886 (eval $ac_link) 2>conftest.er1
15887 ac_status=$?
15888 grep -v '^ *+' conftest.er1 >conftest.err
15889 rm -f conftest.er1
15890 cat conftest.err >&5
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); } &&
15893 { ac_try='test -z "$ac_c_werror_flag"
15894 || test ! -s conftest.err'
15895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15896 (eval $ac_try) 2>&5
15897 ac_status=$?
15898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899 (exit $ac_status); }; } &&
15900 { ac_try='test -s conftest$ac_exeext'
15901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15902 (eval $ac_try) 2>&5
15903 ac_status=$?
15904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); }; }; then
15906 am_cv_func_iconv=yes
15907 else
15908 echo "$as_me: failed program was:" >&5
15909 sed 's/^/| /' conftest.$ac_ext >&5
15912 rm -f conftest.err conftest.$ac_objext \
15913 conftest$ac_exeext conftest.$ac_ext
15914 if test "$am_cv_func_iconv" != yes; then
15915 am_save_LIBS="$LIBS"
15916 LIBS="$LIBS $LIBICONV"
15917 cat >conftest.$ac_ext <<_ACEOF
15918 /* confdefs.h. */
15919 _ACEOF
15920 cat confdefs.h >>conftest.$ac_ext
15921 cat >>conftest.$ac_ext <<_ACEOF
15922 /* end confdefs.h. */
15923 #include <stdlib.h>
15924 #include <iconv.h>
15926 main ()
15928 iconv_t cd = iconv_open("","");
15929 iconv(cd,NULL,NULL,NULL,NULL);
15930 iconv_close(cd);
15932 return 0;
15934 _ACEOF
15935 rm -f conftest.$ac_objext conftest$ac_exeext
15936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15937 (eval $ac_link) 2>conftest.er1
15938 ac_status=$?
15939 grep -v '^ *+' conftest.er1 >conftest.err
15940 rm -f conftest.er1
15941 cat conftest.err >&5
15942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943 (exit $ac_status); } &&
15944 { ac_try='test -z "$ac_c_werror_flag"
15945 || test ! -s conftest.err'
15946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15947 (eval $ac_try) 2>&5
15948 ac_status=$?
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); }; } &&
15951 { ac_try='test -s conftest$ac_exeext'
15952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15953 (eval $ac_try) 2>&5
15954 ac_status=$?
15955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956 (exit $ac_status); }; }; then
15957 am_cv_lib_iconv=yes
15958 am_cv_func_iconv=yes
15959 else
15960 echo "$as_me: failed program was:" >&5
15961 sed 's/^/| /' conftest.$ac_ext >&5
15964 rm -f conftest.err conftest.$ac_objext \
15965 conftest$ac_exeext conftest.$ac_ext
15966 LIBS="$am_save_LIBS"
15970 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
15971 echo "${ECHO_T}$am_cv_func_iconv" >&6
15972 if test "$am_cv_func_iconv" = yes; then
15974 cat >>confdefs.h <<\_ACEOF
15975 #define HAVE_ICONV 1
15976 _ACEOF
15979 if test "$am_cv_lib_iconv" = yes; then
15980 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
15981 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
15982 echo "$as_me:$LINENO: result: $LIBICONV" >&5
15983 echo "${ECHO_T}$LIBICONV" >&6
15984 else
15985 CPPFLAGS="$am_save_CPPFLAGS"
15986 LIBICONV=
15987 LTLIBICONV=
15992 if test "$am_cv_func_iconv" = yes; then
15993 echo "$as_me:$LINENO: checking for iconv declaration" >&5
15994 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
15995 if test "${am_cv_proto_iconv+set}" = set; then
15996 echo $ECHO_N "(cached) $ECHO_C" >&6
15997 else
15999 cat >conftest.$ac_ext <<_ACEOF
16000 /* confdefs.h. */
16001 _ACEOF
16002 cat confdefs.h >>conftest.$ac_ext
16003 cat >>conftest.$ac_ext <<_ACEOF
16004 /* end confdefs.h. */
16006 #include <stdlib.h>
16007 #include <iconv.h>
16008 extern
16009 #ifdef __cplusplus
16011 #endif
16012 #if defined(__STDC__) || defined(__cplusplus)
16013 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16014 #else
16015 size_t iconv();
16016 #endif
16019 main ()
16023 return 0;
16025 _ACEOF
16026 rm -f conftest.$ac_objext
16027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16028 (eval $ac_compile) 2>conftest.er1
16029 ac_status=$?
16030 grep -v '^ *+' conftest.er1 >conftest.err
16031 rm -f conftest.er1
16032 cat conftest.err >&5
16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); } &&
16035 { ac_try='test -z "$ac_c_werror_flag"
16036 || test ! -s conftest.err'
16037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16038 (eval $ac_try) 2>&5
16039 ac_status=$?
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); }; } &&
16042 { ac_try='test -s conftest.$ac_objext'
16043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16044 (eval $ac_try) 2>&5
16045 ac_status=$?
16046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047 (exit $ac_status); }; }; then
16048 am_cv_proto_iconv_arg1=""
16049 else
16050 echo "$as_me: failed program was:" >&5
16051 sed 's/^/| /' conftest.$ac_ext >&5
16053 am_cv_proto_iconv_arg1="const"
16055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16056 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
16059 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
16060 echo "$as_me:$LINENO: result: ${ac_t:-
16061 }$am_cv_proto_iconv" >&5
16062 echo "${ECHO_T}${ac_t:-
16063 }$am_cv_proto_iconv" >&6
16065 cat >>confdefs.h <<_ACEOF
16066 #define ICONV_CONST $am_cv_proto_iconv_arg1
16067 _ACEOF
16072 all_targets=false
16073 BUILD_NLMCONV=
16074 NLMCONV_DEFS=
16075 BUILD_SRCONV=
16076 BUILD_DLLTOOL=
16077 DLLTOOL_DEFS=
16078 DLLTOOL_DEFAULT=
16079 BUILD_WINDRES=
16080 BUILD_WINDMC=
16081 BUILD_DLLWRAP=
16082 BUILD_MISC=
16083 BUILD_INSTALL_MISC=
16084 OBJDUMP_DEFS=
16086 for targ in $target $canon_targets
16088 if test "x$targ" = "xall"; then
16089 all_targets=true
16090 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
16091 BUILD_SRCONV='$(SRCONV_PROG)'
16092 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
16093 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
16094 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16095 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16096 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16097 if test -z "$DLLTOOL_DEFAULT"; then
16098 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
16100 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
16101 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
16102 else
16103 case $targ in
16104 i[3-7]86*-*-netware*)
16105 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
16106 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
16108 alpha*-*-netware*)
16109 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
16110 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
16112 powerpc*-*-netware*)
16113 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
16114 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
16116 sparc*-*-netware*)
16117 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
16118 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
16120 esac
16121 case $targ in
16122 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
16123 esac
16124 case $targ in
16125 arm-epoc-pe*)
16126 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16127 if test -z "$DLLTOOL_DEFAULT"; then
16128 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_EPOC"
16130 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
16131 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16132 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16134 arm-wince-pe* | arm-*-wince)
16135 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16136 if test -z "$DLLTOOL_DEFAULT"; then
16137 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
16139 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
16140 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16141 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16143 arm-*-pe*)
16144 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16145 if test -z "$DLLTOOL_DEFAULT"; then
16146 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
16148 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
16149 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16150 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16152 thumb-*-pe*)
16153 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16154 if test -z "$DLLTOOL_DEFAULT"; then
16155 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
16157 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
16158 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16159 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16161 x86_64-*-mingw*)
16162 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16163 if test -z "$DLLTOOL_DEFAULT"; then
16164 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
16166 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
16167 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16168 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16169 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
16171 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
16172 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16173 if test -z "$DLLTOOL_DEFAULT"; then
16174 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
16176 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
16177 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16178 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16179 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
16181 i[3-7]86-*-interix)
16182 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
16183 if test -z "$DLLTOOL_DEFAULT"; then
16184 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
16186 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
16188 powerpc*-aix5.[01])
16190 powerpc*-aix[5-9].*)
16191 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
16193 powerpc*-*-pe* | powerpc*-*-cygwin*)
16194 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16195 if test -z "$DLLTOOL_DEFAULT"; then
16196 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
16198 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
16199 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16200 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16202 powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
16203 BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
16205 sh*-*-pe)
16206 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16207 if test -z "$DLLTOOL_DEFAULT"; then
16208 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
16210 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
16211 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16212 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16214 spu-*-*)
16215 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
16217 mips*-*-pe)
16218 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16219 if test -z "$DLLTOOL_DEFAULT"; then
16220 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
16222 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
16223 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16224 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16226 mcore-*-pe)
16227 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16228 if test -z "$DLLTOOL_DEFAULT"; then
16229 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
16231 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
16232 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16233 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16235 mcore-*-elf)
16236 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16237 if test -z "$DLLTOOL_DEFAULT"; then
16238 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
16240 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
16242 mep-*)
16243 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
16245 esac
16247 done
16249 DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
16251 if test "${with_windres+set}" = set; then
16252 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16255 if test "${with_windmc+set}" = set; then
16256 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16272 cat >>confdefs.h <<_ACEOF
16273 #define TARGET "${target}"
16274 _ACEOF
16277 targ=$target
16278 . $srcdir/../bfd/config.bfd
16279 if test "x$targ_underscore" = "xyes"; then
16280 UNDERSCORE=1
16281 else
16282 UNDERSCORE=0
16285 cat >>confdefs.h <<_ACEOF
16286 #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
16287 _ACEOF
16290 # Emulation
16291 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
16293 # Canonicalize the secondary target names.
16294 result=`$ac_config_sub $targ_alias 2>/dev/null`
16295 if test -n "$result"; then
16296 targ=$result
16297 else
16298 targ=$targ_alias
16301 . ${srcdir}/configure.tgt
16303 EMULATION=$targ_emul
16304 EMULATION_VECTOR=$targ_emul_vector
16305 done
16310 # Required for html and install-html
16316 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
16318 cat >confcache <<\_ACEOF
16319 # This file is a shell script that caches the results of configure
16320 # tests run on this system so they can be shared between configure
16321 # scripts and configure runs, see configure's option --config-cache.
16322 # It is not useful on other systems. If it contains results you don't
16323 # want to keep, you may remove or edit it.
16325 # config.status only pays attention to the cache file if you give it
16326 # the --recheck option to rerun configure.
16328 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16329 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16330 # following values.
16332 _ACEOF
16334 # The following way of writing the cache mishandles newlines in values,
16335 # but we know of no workaround that is simple, portable, and efficient.
16336 # So, don't put newlines in cache variables' values.
16337 # Ultrix sh set writes to stderr and can't be redirected directly,
16338 # and sets the high bit in the cache file unless we assign to the vars.
16340 (set) 2>&1 |
16341 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16342 *ac_space=\ *)
16343 # `set' does not quote correctly, so add quotes (double-quote
16344 # substitution turns \\\\ into \\, and sed turns \\ into \).
16345 sed -n \
16346 "s/'/'\\\\''/g;
16347 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16350 # `set' quotes correctly as required by POSIX, so do not add quotes.
16351 sed -n \
16352 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16354 esac;
16356 sed '
16357 t clear
16358 : clear
16359 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16360 t end
16361 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16362 : end' >>confcache
16363 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16364 if test -w $cache_file; then
16365 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16366 cat confcache >$cache_file
16367 else
16368 echo "not updating unwritable cache $cache_file"
16371 rm -f confcache
16373 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16374 # Let make expand exec_prefix.
16375 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16377 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16378 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16379 # trailing colons and then remove the whole line if VPATH becomes empty
16380 # (actually we leave an empty line to preserve line numbers).
16381 if test "x$srcdir" = x.; then
16382 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16383 s/:*\$(srcdir):*/:/;
16384 s/:*\${srcdir}:*/:/;
16385 s/:*@srcdir@:*/:/;
16386 s/^\([^=]*=[ ]*\):*/\1/;
16387 s/:*$//;
16388 s/^[^=]*=[ ]*$//;
16392 DEFS=-DHAVE_CONFIG_H
16394 ac_libobjs=
16395 ac_ltlibobjs=
16396 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16397 # 1. Remove the extension, and $U if already installed.
16398 ac_i=`echo "$ac_i" |
16399 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16400 # 2. Add them.
16401 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16402 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16403 done
16404 LIBOBJS=$ac_libobjs
16406 LTLIBOBJS=$ac_ltlibobjs
16409 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16410 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16411 Usually this means the macro was only invoked conditionally." >&5
16412 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16413 Usually this means the macro was only invoked conditionally." >&2;}
16414 { (exit 1); exit 1; }; }
16416 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16417 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16418 Usually this means the macro was only invoked conditionally." >&5
16419 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16420 Usually this means the macro was only invoked conditionally." >&2;}
16421 { (exit 1); exit 1; }; }
16423 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16424 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16425 Usually this means the macro was only invoked conditionally." >&5
16426 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16427 Usually this means the macro was only invoked conditionally." >&2;}
16428 { (exit 1); exit 1; }; }
16430 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
16431 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
16432 Usually this means the macro was only invoked conditionally." >&5
16433 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
16434 Usually this means the macro was only invoked conditionally." >&2;}
16435 { (exit 1); exit 1; }; }
16438 : ${CONFIG_STATUS=./config.status}
16439 ac_clean_files_save=$ac_clean_files
16440 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16441 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16442 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16443 cat >$CONFIG_STATUS <<_ACEOF
16444 #! $SHELL
16445 # Generated by $as_me.
16446 # Run this file to recreate the current configuration.
16447 # Compiler output produced by configure, useful for debugging
16448 # configure, is in config.log if it exists.
16450 debug=false
16451 ac_cs_recheck=false
16452 ac_cs_silent=false
16453 SHELL=\${CONFIG_SHELL-$SHELL}
16454 _ACEOF
16456 cat >>$CONFIG_STATUS <<\_ACEOF
16457 ## --------------------- ##
16458 ## M4sh Initialization. ##
16459 ## --------------------- ##
16461 # Be Bourne compatible
16462 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16463 emulate sh
16464 NULLCMD=:
16465 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16466 # is contrary to our usage. Disable this feature.
16467 alias -g '${1+"$@"}'='"$@"'
16468 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16469 set -o posix
16471 DUALCASE=1; export DUALCASE # for MKS sh
16473 # Support unset when possible.
16474 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16475 as_unset=unset
16476 else
16477 as_unset=false
16481 # Work around bugs in pre-3.0 UWIN ksh.
16482 $as_unset ENV MAIL MAILPATH
16483 PS1='$ '
16484 PS2='> '
16485 PS4='+ '
16487 # NLS nuisances.
16488 for as_var in \
16489 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16490 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16491 LC_TELEPHONE LC_TIME
16493 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16494 eval $as_var=C; export $as_var
16495 else
16496 $as_unset $as_var
16498 done
16500 # Required to use basename.
16501 if expr a : '\(a\)' >/dev/null 2>&1; then
16502 as_expr=expr
16503 else
16504 as_expr=false
16507 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16508 as_basename=basename
16509 else
16510 as_basename=false
16514 # Name of the executable.
16515 as_me=`$as_basename "$0" ||
16516 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16517 X"$0" : 'X\(//\)$' \| \
16518 X"$0" : 'X\(/\)$' \| \
16519 . : '\(.\)' 2>/dev/null ||
16520 echo X/"$0" |
16521 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16522 /^X\/\(\/\/\)$/{ s//\1/; q; }
16523 /^X\/\(\/\).*/{ s//\1/; q; }
16524 s/.*/./; q'`
16527 # PATH needs CR, and LINENO needs CR and PATH.
16528 # Avoid depending upon Character Ranges.
16529 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16530 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16531 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16532 as_cr_digits='0123456789'
16533 as_cr_alnum=$as_cr_Letters$as_cr_digits
16535 # The user is always right.
16536 if test "${PATH_SEPARATOR+set}" != set; then
16537 echo "#! /bin/sh" >conf$$.sh
16538 echo "exit 0" >>conf$$.sh
16539 chmod +x conf$$.sh
16540 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16541 PATH_SEPARATOR=';'
16542 else
16543 PATH_SEPARATOR=:
16545 rm -f conf$$.sh
16549 as_lineno_1=$LINENO
16550 as_lineno_2=$LINENO
16551 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16552 test "x$as_lineno_1" != "x$as_lineno_2" &&
16553 test "x$as_lineno_3" = "x$as_lineno_2" || {
16554 # Find who we are. Look in the path if we contain no path at all
16555 # relative or not.
16556 case $0 in
16557 *[\\/]* ) as_myself=$0 ;;
16558 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16559 for as_dir in $PATH
16561 IFS=$as_save_IFS
16562 test -z "$as_dir" && as_dir=.
16563 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16564 done
16567 esac
16568 # We did not find ourselves, most probably we were run as `sh COMMAND'
16569 # in which case we are not to be found in the path.
16570 if test "x$as_myself" = x; then
16571 as_myself=$0
16573 if test ! -f "$as_myself"; then
16574 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16575 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16576 { (exit 1); exit 1; }; }
16578 case $CONFIG_SHELL in
16580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16581 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16583 IFS=$as_save_IFS
16584 test -z "$as_dir" && as_dir=.
16585 for as_base in sh bash ksh sh5; do
16586 case $as_dir in
16588 if ("$as_dir/$as_base" -c '
16589 as_lineno_1=$LINENO
16590 as_lineno_2=$LINENO
16591 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16592 test "x$as_lineno_1" != "x$as_lineno_2" &&
16593 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16594 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16595 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16596 CONFIG_SHELL=$as_dir/$as_base
16597 export CONFIG_SHELL
16598 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16599 fi;;
16600 esac
16601 done
16602 done
16604 esac
16606 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16607 # uniformly replaced by the line number. The first 'sed' inserts a
16608 # line-number line before each line; the second 'sed' does the real
16609 # work. The second script uses 'N' to pair each line-number line
16610 # with the numbered line, and appends trailing '-' during
16611 # substitution so that $LINENO is not a special case at line end.
16612 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16613 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16614 sed '=' <$as_myself |
16615 sed '
16617 s,$,-,
16618 : loop
16619 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16620 t loop
16621 s,-$,,
16622 s,^['$as_cr_digits']*\n,,
16623 ' >$as_me.lineno &&
16624 chmod +x $as_me.lineno ||
16625 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16626 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16627 { (exit 1); exit 1; }; }
16629 # Don't try to exec as it changes $[0], causing all sort of problems
16630 # (the dirname of $[0] is not the place where we might find the
16631 # original and so on. Autoconf is especially sensible to this).
16632 . ./$as_me.lineno
16633 # Exit status is that of the last command.
16634 exit
16638 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16639 *c*,-n*) ECHO_N= ECHO_C='
16640 ' ECHO_T=' ' ;;
16641 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16642 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16643 esac
16645 if expr a : '\(a\)' >/dev/null 2>&1; then
16646 as_expr=expr
16647 else
16648 as_expr=false
16651 rm -f conf$$ conf$$.exe conf$$.file
16652 echo >conf$$.file
16653 if ln -s conf$$.file conf$$ 2>/dev/null; then
16654 # We could just check for DJGPP; but this test a) works b) is more generic
16655 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16656 if test -f conf$$.exe; then
16657 # Don't use ln at all; we don't have any links
16658 as_ln_s='cp -p'
16659 else
16660 as_ln_s='ln -s'
16662 elif ln conf$$.file conf$$ 2>/dev/null; then
16663 as_ln_s=ln
16664 else
16665 as_ln_s='cp -p'
16667 rm -f conf$$ conf$$.exe conf$$.file
16669 if mkdir -p . 2>/dev/null; then
16670 as_mkdir_p=:
16671 else
16672 test -d ./-p && rmdir ./-p
16673 as_mkdir_p=false
16676 as_executable_p="test -f"
16678 # Sed expression to map a string onto a valid CPP name.
16679 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16681 # Sed expression to map a string onto a valid variable name.
16682 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16685 # IFS
16686 # We need space, tab and new line, in precisely that order.
16687 as_nl='
16689 IFS=" $as_nl"
16691 # CDPATH.
16692 $as_unset CDPATH
16694 exec 6>&1
16696 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16697 # report actual input values of CONFIG_FILES etc. instead of their
16698 # values after options handling. Logging --version etc. is OK.
16699 exec 5>>config.log
16701 echo
16702 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16703 ## Running $as_me. ##
16704 _ASBOX
16705 } >&5
16706 cat >&5 <<_CSEOF
16708 This file was extended by $as_me, which was
16709 generated by GNU Autoconf 2.59. Invocation command line was
16711 CONFIG_FILES = $CONFIG_FILES
16712 CONFIG_HEADERS = $CONFIG_HEADERS
16713 CONFIG_LINKS = $CONFIG_LINKS
16714 CONFIG_COMMANDS = $CONFIG_COMMANDS
16715 $ $0 $@
16717 _CSEOF
16718 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16719 echo >&5
16720 _ACEOF
16722 # Files that config.status was made for.
16723 if test -n "$ac_config_files"; then
16724 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16727 if test -n "$ac_config_headers"; then
16728 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16731 if test -n "$ac_config_links"; then
16732 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16735 if test -n "$ac_config_commands"; then
16736 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16739 cat >>$CONFIG_STATUS <<\_ACEOF
16741 ac_cs_usage="\
16742 \`$as_me' instantiates files from templates according to the
16743 current configuration.
16745 Usage: $0 [OPTIONS] [FILE]...
16747 -h, --help print this help, then exit
16748 -V, --version print version number, then exit
16749 -q, --quiet do not print progress messages
16750 -d, --debug don't remove temporary files
16751 --recheck update $as_me by reconfiguring in the same conditions
16752 --file=FILE[:TEMPLATE]
16753 instantiate the configuration file FILE
16754 --header=FILE[:TEMPLATE]
16755 instantiate the configuration header FILE
16757 Configuration files:
16758 $config_files
16760 Configuration headers:
16761 $config_headers
16763 Configuration commands:
16764 $config_commands
16766 Report bugs to <bug-autoconf@gnu.org>."
16767 _ACEOF
16769 cat >>$CONFIG_STATUS <<_ACEOF
16770 ac_cs_version="\\
16771 config.status
16772 configured by $0, generated by GNU Autoconf 2.59,
16773 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16775 Copyright (C) 2003 Free Software Foundation, Inc.
16776 This config.status script is free software; the Free Software Foundation
16777 gives unlimited permission to copy, distribute and modify it."
16778 srcdir=$srcdir
16779 INSTALL="$INSTALL"
16780 _ACEOF
16782 cat >>$CONFIG_STATUS <<\_ACEOF
16783 # If no file are specified by the user, then we need to provide default
16784 # value. By we need to know if files were specified by the user.
16785 ac_need_defaults=:
16786 while test $# != 0
16788 case $1 in
16789 --*=*)
16790 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16791 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16792 ac_shift=:
16795 ac_option=$1
16796 ac_optarg=$2
16797 ac_shift=shift
16799 *) # This is not an option, so the user has probably given explicit
16800 # arguments.
16801 ac_option=$1
16802 ac_need_defaults=false;;
16803 esac
16805 case $ac_option in
16806 # Handling of the options.
16807 _ACEOF
16808 cat >>$CONFIG_STATUS <<\_ACEOF
16809 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16810 ac_cs_recheck=: ;;
16811 --version | --vers* | -V )
16812 echo "$ac_cs_version"; exit 0 ;;
16813 --he | --h)
16814 # Conflict between --help and --header
16815 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16816 Try \`$0 --help' for more information." >&5
16817 echo "$as_me: error: ambiguous option: $1
16818 Try \`$0 --help' for more information." >&2;}
16819 { (exit 1); exit 1; }; };;
16820 --help | --hel | -h )
16821 echo "$ac_cs_usage"; exit 0 ;;
16822 --debug | --d* | -d )
16823 debug=: ;;
16824 --file | --fil | --fi | --f )
16825 $ac_shift
16826 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16827 ac_need_defaults=false;;
16828 --header | --heade | --head | --hea )
16829 $ac_shift
16830 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16831 ac_need_defaults=false;;
16832 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16833 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16834 ac_cs_silent=: ;;
16836 # This is an error.
16837 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16838 Try \`$0 --help' for more information." >&5
16839 echo "$as_me: error: unrecognized option: $1
16840 Try \`$0 --help' for more information." >&2;}
16841 { (exit 1); exit 1; }; } ;;
16843 *) ac_config_targets="$ac_config_targets $1" ;;
16845 esac
16846 shift
16847 done
16849 ac_configure_extra_args=
16851 if $ac_cs_silent; then
16852 exec 6>/dev/null
16853 ac_configure_extra_args="$ac_configure_extra_args --silent"
16856 _ACEOF
16857 cat >>$CONFIG_STATUS <<_ACEOF
16858 if \$ac_cs_recheck; then
16859 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16860 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16863 _ACEOF
16865 cat >>$CONFIG_STATUS <<_ACEOF
16867 # INIT-COMMANDS section.
16870 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16873 # The HP-UX ksh and POSIX shell print the target directory to stdout
16874 # if CDPATH is set.
16875 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16877 sed_quote_subst='$sed_quote_subst'
16878 double_quote_subst='$double_quote_subst'
16879 delay_variable_subst='$delay_variable_subst'
16880 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16881 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16882 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16883 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16884 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16885 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16886 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16887 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16888 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16889 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16890 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16891 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16892 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16893 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16894 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16895 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16896 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16897 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16898 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16899 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16900 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16901 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16902 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16903 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16904 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16905 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16906 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16907 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16908 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16909 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16910 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16911 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16912 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16913 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16914 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16915 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16916 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16917 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16918 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16919 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16920 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16921 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16922 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16923 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16924 lt_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"`'
16925 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16926 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16927 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16928 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16929 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16930 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16931 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16932 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16933 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16934 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16935 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16936 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16937 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16938 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16939 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16940 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16941 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16942 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16943 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16944 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16945 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16946 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16947 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16948 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16949 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16950 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16951 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16952 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16953 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16954 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16955 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16956 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16957 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16958 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16959 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16960 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16961 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16962 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16963 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16964 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16965 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16966 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16967 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16968 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16969 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16970 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16971 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16972 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16973 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16974 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16975 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16976 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16977 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16978 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16979 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16980 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16981 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16982 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16983 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16984 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16985 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16986 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16987 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16988 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16989 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16990 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16991 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16992 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16993 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16994 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16995 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16996 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16997 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16999 LTCC='$LTCC'
17000 LTCFLAGS='$LTCFLAGS'
17001 compiler='$compiler_DEFAULT'
17003 # Quote evaled strings.
17004 for var in SED \
17005 GREP \
17006 EGREP \
17007 FGREP \
17008 LD \
17009 NM \
17010 LN_S \
17011 lt_SP2NL \
17012 lt_NL2SP \
17013 reload_flag \
17014 OBJDUMP \
17015 deplibs_check_method \
17016 file_magic_cmd \
17017 AR \
17018 AR_FLAGS \
17019 STRIP \
17020 RANLIB \
17021 CC \
17022 CFLAGS \
17023 compiler \
17024 lt_cv_sys_global_symbol_pipe \
17025 lt_cv_sys_global_symbol_to_cdecl \
17026 lt_cv_sys_global_symbol_to_c_name_address \
17027 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17028 SHELL \
17029 ECHO \
17030 lt_prog_compiler_no_builtin_flag \
17031 lt_prog_compiler_wl \
17032 lt_prog_compiler_pic \
17033 lt_prog_compiler_static \
17034 lt_cv_prog_compiler_c_o \
17035 need_locks \
17036 DSYMUTIL \
17037 NMEDIT \
17038 LIPO \
17039 OTOOL \
17040 OTOOL64 \
17041 shrext_cmds \
17042 export_dynamic_flag_spec \
17043 whole_archive_flag_spec \
17044 compiler_needs_object \
17045 with_gnu_ld \
17046 allow_undefined_flag \
17047 no_undefined_flag \
17048 hardcode_libdir_flag_spec \
17049 hardcode_libdir_flag_spec_ld \
17050 hardcode_libdir_separator \
17051 fix_srcfile_path \
17052 exclude_expsyms \
17053 include_expsyms \
17054 file_list_spec \
17055 variables_saved_for_relink \
17056 libname_spec \
17057 library_names_spec \
17058 soname_spec \
17059 finish_eval \
17060 old_striplib \
17061 striplib; do
17062 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17063 *[\\\\\\\`\\"\\\$]*)
17064 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17067 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17069 esac
17070 done
17072 # Double-quote double-evaled strings.
17073 for var in reload_cmds \
17074 old_postinstall_cmds \
17075 old_postuninstall_cmds \
17076 old_archive_cmds \
17077 extract_expsyms_cmds \
17078 old_archive_from_new_cmds \
17079 old_archive_from_expsyms_cmds \
17080 archive_cmds \
17081 archive_expsym_cmds \
17082 module_cmds \
17083 module_expsym_cmds \
17084 export_symbols_cmds \
17085 prelink_cmds \
17086 postinstall_cmds \
17087 postuninstall_cmds \
17088 finish_cmds \
17089 sys_lib_search_path_spec \
17090 sys_lib_dlsearch_path_spec; do
17091 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17092 *[\\\\\\\`\\"\\\$]*)
17093 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17096 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17098 esac
17099 done
17101 # Fix-up fallback echo if it was mangled by the above quoting rules.
17102 case \$lt_ECHO in
17103 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17105 esac
17107 ac_aux_dir='$ac_aux_dir'
17108 xsi_shell='$xsi_shell'
17109 lt_shell_append='$lt_shell_append'
17111 # See if we are running on zsh, and set the options which allow our
17112 # commands through without removal of \ escapes INIT.
17113 if test -n "\${ZSH_VERSION+set}" ; then
17114 setopt NO_GLOB_SUBST
17118 PACKAGE='$PACKAGE'
17119 VERSION='$VERSION'
17120 TIMESTAMP='$TIMESTAMP'
17121 RM='$RM'
17122 ofile='$ofile'
17126 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17127 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
17128 # from automake.
17129 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17130 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17131 LINGUAS="${LINGUAS-%UNSET%}"
17134 _ACEOF
17138 cat >>$CONFIG_STATUS <<\_ACEOF
17139 for ac_config_target in $ac_config_targets
17141 case "$ac_config_target" in
17142 # Handling of arguments.
17143 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17144 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17145 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
17146 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17147 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17148 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17149 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
17150 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17151 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17152 { (exit 1); exit 1; }; };;
17153 esac
17154 done
17156 # If the user did not use the arguments to specify the items to instantiate,
17157 # then the envvar interface is used. Set only those that are not.
17158 # We use the long form for the default assignment because of an extremely
17159 # bizarre bug on SunOS 4.1.3.
17160 if $ac_need_defaults; then
17161 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17162 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17163 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17166 # Have a temporary directory for convenience. Make it in the build tree
17167 # simply because there is no reason to put it here, and in addition,
17168 # creating and moving files from /tmp can sometimes cause problems.
17169 # Create a temporary directory, and hook for its removal unless debugging.
17170 $debug ||
17172 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17173 trap '{ (exit 1); exit 1; }' 1 2 13 15
17176 # Create a (secure) tmp directory for tmp files.
17179 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17180 test -n "$tmp" && test -d "$tmp"
17181 } ||
17183 tmp=./confstat$$-$RANDOM
17184 (umask 077 && mkdir $tmp)
17185 } ||
17187 echo "$me: cannot create a temporary directory in ." >&2
17188 { (exit 1); exit 1; }
17191 _ACEOF
17193 cat >>$CONFIG_STATUS <<_ACEOF
17196 # CONFIG_FILES section.
17199 # No need to generate the scripts if there are no CONFIG_FILES.
17200 # This happens for instance when ./config.status config.h
17201 if test -n "\$CONFIG_FILES"; then
17202 # Protect against being on the right side of a sed subst in config.status.
17203 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17204 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17205 s,@SHELL@,$SHELL,;t t
17206 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17207 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17208 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17209 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17210 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17211 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17212 s,@exec_prefix@,$exec_prefix,;t t
17213 s,@prefix@,$prefix,;t t
17214 s,@program_transform_name@,$program_transform_name,;t t
17215 s,@bindir@,$bindir,;t t
17216 s,@sbindir@,$sbindir,;t t
17217 s,@libexecdir@,$libexecdir,;t t
17218 s,@datadir@,$datadir,;t t
17219 s,@sysconfdir@,$sysconfdir,;t t
17220 s,@sharedstatedir@,$sharedstatedir,;t t
17221 s,@localstatedir@,$localstatedir,;t t
17222 s,@libdir@,$libdir,;t t
17223 s,@includedir@,$includedir,;t t
17224 s,@oldincludedir@,$oldincludedir,;t t
17225 s,@infodir@,$infodir,;t t
17226 s,@mandir@,$mandir,;t t
17227 s,@build_alias@,$build_alias,;t t
17228 s,@host_alias@,$host_alias,;t t
17229 s,@target_alias@,$target_alias,;t t
17230 s,@DEFS@,$DEFS,;t t
17231 s,@ECHO_C@,$ECHO_C,;t t
17232 s,@ECHO_N@,$ECHO_N,;t t
17233 s,@ECHO_T@,$ECHO_T,;t t
17234 s,@LIBS@,$LIBS,;t t
17235 s,@build@,$build,;t t
17236 s,@build_cpu@,$build_cpu,;t t
17237 s,@build_vendor@,$build_vendor,;t t
17238 s,@build_os@,$build_os,;t t
17239 s,@host@,$host,;t t
17240 s,@host_cpu@,$host_cpu,;t t
17241 s,@host_vendor@,$host_vendor,;t t
17242 s,@host_os@,$host_os,;t t
17243 s,@target@,$target,;t t
17244 s,@target_cpu@,$target_cpu,;t t
17245 s,@target_vendor@,$target_vendor,;t t
17246 s,@target_os@,$target_os,;t t
17247 s,@CC@,$CC,;t t
17248 s,@CFLAGS@,$CFLAGS,;t t
17249 s,@LDFLAGS@,$LDFLAGS,;t t
17250 s,@CPPFLAGS@,$CPPFLAGS,;t t
17251 s,@ac_ct_CC@,$ac_ct_CC,;t t
17252 s,@EXEEXT@,$EXEEXT,;t t
17253 s,@OBJEXT@,$OBJEXT,;t t
17254 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17255 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17256 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17257 s,@CYGPATH_W@,$CYGPATH_W,;t t
17258 s,@PACKAGE@,$PACKAGE,;t t
17259 s,@VERSION@,$VERSION,;t t
17260 s,@ACLOCAL@,$ACLOCAL,;t t
17261 s,@AUTOCONF@,$AUTOCONF,;t t
17262 s,@AUTOMAKE@,$AUTOMAKE,;t t
17263 s,@AUTOHEADER@,$AUTOHEADER,;t t
17264 s,@MAKEINFO@,$MAKEINFO,;t t
17265 s,@install_sh@,$install_sh,;t t
17266 s,@STRIP@,$STRIP,;t t
17267 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17268 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17269 s,@mkdir_p@,$mkdir_p,;t t
17270 s,@AWK@,$AWK,;t t
17271 s,@SET_MAKE@,$SET_MAKE,;t t
17272 s,@am__leading_dot@,$am__leading_dot,;t t
17273 s,@AMTAR@,$AMTAR,;t t
17274 s,@am__tar@,$am__tar,;t t
17275 s,@am__untar@,$am__untar,;t t
17276 s,@DEPDIR@,$DEPDIR,;t t
17277 s,@am__include@,$am__include,;t t
17278 s,@am__quote@,$am__quote,;t t
17279 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17280 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17281 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17282 s,@CCDEPMODE@,$CCDEPMODE,;t t
17283 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17284 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17285 s,@CPP@,$CPP,;t t
17286 s,@EGREP@,$EGREP,;t t
17287 s,@LIBTOOL@,$LIBTOOL,;t t
17288 s,@SED@,$SED,;t t
17289 s,@FGREP@,$FGREP,;t t
17290 s,@GREP@,$GREP,;t t
17291 s,@LD@,$LD,;t t
17292 s,@DUMPBIN@,$DUMPBIN,;t t
17293 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
17294 s,@NM@,$NM,;t t
17295 s,@LN_S@,$LN_S,;t t
17296 s,@OBJDUMP@,$OBJDUMP,;t t
17297 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
17298 s,@AR@,$AR,;t t
17299 s,@ac_ct_AR@,$ac_ct_AR,;t t
17300 s,@RANLIB@,$RANLIB,;t t
17301 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17302 s,@lt_ECHO@,$lt_ECHO,;t t
17303 s,@DSYMUTIL@,$DSYMUTIL,;t t
17304 s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
17305 s,@NMEDIT@,$NMEDIT,;t t
17306 s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
17307 s,@LIPO@,$LIPO,;t t
17308 s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
17309 s,@OTOOL@,$OTOOL,;t t
17310 s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
17311 s,@OTOOL64@,$OTOOL64,;t t
17312 s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
17313 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
17314 s,@NO_WERROR@,$NO_WERROR,;t t
17315 s,@YACC@,$YACC,;t t
17316 s,@LEX@,$LEX,;t t
17317 s,@LEXLIB@,$LEXLIB,;t t
17318 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
17319 s,@USE_NLS@,$USE_NLS,;t t
17320 s,@LIBINTL@,$LIBINTL,;t t
17321 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
17322 s,@INCINTL@,$INCINTL,;t t
17323 s,@XGETTEXT@,$XGETTEXT,;t t
17324 s,@GMSGFMT@,$GMSGFMT,;t t
17325 s,@POSUB@,$POSUB,;t t
17326 s,@CATALOGS@,$CATALOGS,;t t
17327 s,@DATADIRNAME@,$DATADIRNAME,;t t
17328 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
17329 s,@GENCAT@,$GENCAT,;t t
17330 s,@CATOBJEXT@,$CATOBJEXT,;t t
17331 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
17332 s,@MSGFMT@,$MSGFMT,;t t
17333 s,@MSGMERGE@,$MSGMERGE,;t t
17334 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17335 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17336 s,@MAINT@,$MAINT,;t t
17337 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
17338 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
17339 s,@HDEFINES@,$HDEFINES,;t t
17340 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
17341 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
17342 s,@DEMANGLER_NAME@,$DEMANGLER_NAME,;t t
17343 s,@ALLOCA@,$ALLOCA,;t t
17344 s,@LIBICONV@,$LIBICONV,;t t
17345 s,@LTLIBICONV@,$LTLIBICONV,;t t
17346 s,@NLMCONV_DEFS@,$NLMCONV_DEFS,;t t
17347 s,@BUILD_NLMCONV@,$BUILD_NLMCONV,;t t
17348 s,@BUILD_SRCONV@,$BUILD_SRCONV,;t t
17349 s,@BUILD_DLLTOOL@,$BUILD_DLLTOOL,;t t
17350 s,@DLLTOOL_DEFS@,$DLLTOOL_DEFS,;t t
17351 s,@BUILD_WINDRES@,$BUILD_WINDRES,;t t
17352 s,@BUILD_WINDMC@,$BUILD_WINDMC,;t t
17353 s,@BUILD_DLLWRAP@,$BUILD_DLLWRAP,;t t
17354 s,@BUILD_MISC@,$BUILD_MISC,;t t
17355 s,@BUILD_INSTALL_MISC@,$BUILD_INSTALL_MISC,;t t
17356 s,@OBJDUMP_DEFS@,$OBJDUMP_DEFS,;t t
17357 s,@EMULATION@,$EMULATION,;t t
17358 s,@EMULATION_VECTOR@,$EMULATION_VECTOR,;t t
17359 s,@datarootdir@,$datarootdir,;t t
17360 s,@docdir@,$docdir,;t t
17361 s,@htmldir@,$htmldir,;t t
17362 s,@pdfdir@,$pdfdir,;t t
17363 s,@LIBOBJS@,$LIBOBJS,;t t
17364 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17365 CEOF
17367 _ACEOF
17369 cat >>$CONFIG_STATUS <<\_ACEOF
17370 # Split the substitutions into bite-sized pieces for seds with
17371 # small command number limits, like on Digital OSF/1 and HP-UX.
17372 ac_max_sed_lines=48
17373 ac_sed_frag=1 # Number of current file.
17374 ac_beg=1 # First line for current file.
17375 ac_end=$ac_max_sed_lines # Line after last line for current file.
17376 ac_more_lines=:
17377 ac_sed_cmds=
17378 while $ac_more_lines; do
17379 if test $ac_beg -gt 1; then
17380 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17381 else
17382 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17384 if test ! -s $tmp/subs.frag; then
17385 ac_more_lines=false
17386 else
17387 # The purpose of the label and of the branching condition is to
17388 # speed up the sed processing (if there are no `@' at all, there
17389 # is no need to browse any of the substitutions).
17390 # These are the two extra sed commands mentioned above.
17391 (echo ':t
17392 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17393 if test -z "$ac_sed_cmds"; then
17394 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17395 else
17396 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17398 ac_sed_frag=`expr $ac_sed_frag + 1`
17399 ac_beg=$ac_end
17400 ac_end=`expr $ac_end + $ac_max_sed_lines`
17402 done
17403 if test -z "$ac_sed_cmds"; then
17404 ac_sed_cmds=cat
17406 fi # test -n "$CONFIG_FILES"
17408 _ACEOF
17409 cat >>$CONFIG_STATUS <<\_ACEOF
17410 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17411 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17412 case $ac_file in
17413 - | *:- | *:-:* ) # input from stdin
17414 cat >$tmp/stdin
17415 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17416 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17417 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17418 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17419 * ) ac_file_in=$ac_file.in ;;
17420 esac
17422 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17423 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17424 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17425 X"$ac_file" : 'X\(//\)[^/]' \| \
17426 X"$ac_file" : 'X\(//\)$' \| \
17427 X"$ac_file" : 'X\(/\)' \| \
17428 . : '\(.\)' 2>/dev/null ||
17429 echo X"$ac_file" |
17430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17431 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17432 /^X\(\/\/\)$/{ s//\1/; q; }
17433 /^X\(\/\).*/{ s//\1/; q; }
17434 s/.*/./; q'`
17435 { if $as_mkdir_p; then
17436 mkdir -p "$ac_dir"
17437 else
17438 as_dir="$ac_dir"
17439 as_dirs=
17440 while test ! -d "$as_dir"; do
17441 as_dirs="$as_dir $as_dirs"
17442 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17443 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17444 X"$as_dir" : 'X\(//\)[^/]' \| \
17445 X"$as_dir" : 'X\(//\)$' \| \
17446 X"$as_dir" : 'X\(/\)' \| \
17447 . : '\(.\)' 2>/dev/null ||
17448 echo X"$as_dir" |
17449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17450 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17451 /^X\(\/\/\)$/{ s//\1/; q; }
17452 /^X\(\/\).*/{ s//\1/; q; }
17453 s/.*/./; q'`
17454 done
17455 test ! -n "$as_dirs" || mkdir $as_dirs
17456 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17457 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17458 { (exit 1); exit 1; }; }; }
17460 ac_builddir=.
17462 if test "$ac_dir" != .; then
17463 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17464 # A "../" for each directory in $ac_dir_suffix.
17465 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17466 else
17467 ac_dir_suffix= ac_top_builddir=
17470 case $srcdir in
17471 .) # No --srcdir option. We are building in place.
17472 ac_srcdir=.
17473 if test -z "$ac_top_builddir"; then
17474 ac_top_srcdir=.
17475 else
17476 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17477 fi ;;
17478 [\\/]* | ?:[\\/]* ) # Absolute path.
17479 ac_srcdir=$srcdir$ac_dir_suffix;
17480 ac_top_srcdir=$srcdir ;;
17481 *) # Relative path.
17482 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17483 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17484 esac
17486 # Do not use `cd foo && pwd` to compute absolute paths, because
17487 # the directories may not exist.
17488 case `pwd` in
17489 .) ac_abs_builddir="$ac_dir";;
17491 case "$ac_dir" in
17492 .) ac_abs_builddir=`pwd`;;
17493 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17494 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17495 esac;;
17496 esac
17497 case $ac_abs_builddir in
17498 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17500 case ${ac_top_builddir}. in
17501 .) ac_abs_top_builddir=$ac_abs_builddir;;
17502 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17503 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17504 esac;;
17505 esac
17506 case $ac_abs_builddir in
17507 .) ac_abs_srcdir=$ac_srcdir;;
17509 case $ac_srcdir in
17510 .) ac_abs_srcdir=$ac_abs_builddir;;
17511 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17512 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17513 esac;;
17514 esac
17515 case $ac_abs_builddir in
17516 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17518 case $ac_top_srcdir in
17519 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17520 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17521 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17522 esac;;
17523 esac
17526 case $INSTALL in
17527 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17528 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17529 esac
17531 if test x"$ac_file" != x-; then
17532 { echo "$as_me:$LINENO: creating $ac_file" >&5
17533 echo "$as_me: creating $ac_file" >&6;}
17534 rm -f "$ac_file"
17536 # Let's still pretend it is `configure' which instantiates (i.e., don't
17537 # use $as_me), people would be surprised to read:
17538 # /* config.h. Generated by config.status. */
17539 if test x"$ac_file" = x-; then
17540 configure_input=
17541 else
17542 configure_input="$ac_file. "
17544 configure_input=$configure_input"Generated from `echo $ac_file_in |
17545 sed 's,.*/,,'` by configure."
17547 # First look for the input files in the build tree, otherwise in the
17548 # src tree.
17549 ac_file_inputs=`IFS=:
17550 for f in $ac_file_in; do
17551 case $f in
17552 -) echo $tmp/stdin ;;
17553 [\\/$]*)
17554 # Absolute (can't be DOS-style, as IFS=:)
17555 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17556 echo "$as_me: error: cannot find input file: $f" >&2;}
17557 { (exit 1); exit 1; }; }
17558 echo "$f";;
17559 *) # Relative
17560 if test -f "$f"; then
17561 # Build tree
17562 echo "$f"
17563 elif test -f "$srcdir/$f"; then
17564 # Source tree
17565 echo "$srcdir/$f"
17566 else
17567 # /dev/null tree
17568 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17569 echo "$as_me: error: cannot find input file: $f" >&2;}
17570 { (exit 1); exit 1; }; }
17571 fi;;
17572 esac
17573 done` || { (exit 1); exit 1; }
17574 _ACEOF
17575 cat >>$CONFIG_STATUS <<_ACEOF
17576 sed "$ac_vpsub
17577 $extrasub
17578 _ACEOF
17579 cat >>$CONFIG_STATUS <<\_ACEOF
17581 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17582 s,@configure_input@,$configure_input,;t t
17583 s,@srcdir@,$ac_srcdir,;t t
17584 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17585 s,@top_srcdir@,$ac_top_srcdir,;t t
17586 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17587 s,@builddir@,$ac_builddir,;t t
17588 s,@abs_builddir@,$ac_abs_builddir,;t t
17589 s,@top_builddir@,$ac_top_builddir,;t t
17590 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17591 s,@INSTALL@,$ac_INSTALL,;t t
17592 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17593 rm -f $tmp/stdin
17594 if test x"$ac_file" != x-; then
17595 mv $tmp/out $ac_file
17596 else
17597 cat $tmp/out
17598 rm -f $tmp/out
17601 done
17602 _ACEOF
17603 cat >>$CONFIG_STATUS <<\_ACEOF
17606 # CONFIG_HEADER section.
17609 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17610 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17612 # ac_d sets the value in "#define NAME VALUE" lines.
17613 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17614 ac_dB='[ ].*$,\1#\2'
17615 ac_dC=' '
17616 ac_dD=',;t'
17617 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17618 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17619 ac_uB='$,\1#\2define\3'
17620 ac_uC=' '
17621 ac_uD=',;t'
17623 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17624 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17625 case $ac_file in
17626 - | *:- | *:-:* ) # input from stdin
17627 cat >$tmp/stdin
17628 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17629 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17630 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17631 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17632 * ) ac_file_in=$ac_file.in ;;
17633 esac
17635 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17636 echo "$as_me: creating $ac_file" >&6;}
17638 # First look for the input files in the build tree, otherwise in the
17639 # src tree.
17640 ac_file_inputs=`IFS=:
17641 for f in $ac_file_in; do
17642 case $f in
17643 -) echo $tmp/stdin ;;
17644 [\\/$]*)
17645 # Absolute (can't be DOS-style, as IFS=:)
17646 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17647 echo "$as_me: error: cannot find input file: $f" >&2;}
17648 { (exit 1); exit 1; }; }
17649 # Do quote $f, to prevent DOS paths from being IFS'd.
17650 echo "$f";;
17651 *) # Relative
17652 if test -f "$f"; then
17653 # Build tree
17654 echo "$f"
17655 elif test -f "$srcdir/$f"; then
17656 # Source tree
17657 echo "$srcdir/$f"
17658 else
17659 # /dev/null tree
17660 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17661 echo "$as_me: error: cannot find input file: $f" >&2;}
17662 { (exit 1); exit 1; }; }
17663 fi;;
17664 esac
17665 done` || { (exit 1); exit 1; }
17666 # Remove the trailing spaces.
17667 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17669 _ACEOF
17671 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17672 # `conftest.undefs', that substitutes the proper values into
17673 # config.h.in to produce config.h. The first handles `#define'
17674 # templates, and the second `#undef' templates.
17675 # And first: Protect against being on the right side of a sed subst in
17676 # config.status. Protect against being in an unquoted here document
17677 # in config.status.
17678 rm -f conftest.defines conftest.undefs
17679 # Using a here document instead of a string reduces the quoting nightmare.
17680 # Putting comments in sed scripts is not portable.
17682 # `end' is used to avoid that the second main sed command (meant for
17683 # 0-ary CPP macros) applies to n-ary macro definitions.
17684 # See the Autoconf documentation for `clear'.
17685 cat >confdef2sed.sed <<\_ACEOF
17686 s/[\\&,]/\\&/g
17687 s,[\\$`],\\&,g
17688 t clear
17689 : clear
17690 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17691 t end
17692 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17693 : end
17694 _ACEOF
17695 # If some macros were called several times there might be several times
17696 # the same #defines, which is useless. Nevertheless, we may not want to
17697 # sort them, since we want the *last* AC-DEFINE to be honored.
17698 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17699 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17700 rm -f confdef2sed.sed
17702 # This sed command replaces #undef with comments. This is necessary, for
17703 # example, in the case of _POSIX_SOURCE, which is predefined and required
17704 # on some systems where configure will not decide to define it.
17705 cat >>conftest.undefs <<\_ACEOF
17706 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17707 _ACEOF
17709 # Break up conftest.defines because some shells have a limit on the size
17710 # of here documents, and old seds have small limits too (100 cmds).
17711 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17712 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17713 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17714 echo ' :' >>$CONFIG_STATUS
17715 rm -f conftest.tail
17716 while grep . conftest.defines >/dev/null
17718 # Write a limited-size here document to $tmp/defines.sed.
17719 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17720 # Speed up: don't consider the non `#define' lines.
17721 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17722 # Work around the forget-to-reset-the-flag bug.
17723 echo 't clr' >>$CONFIG_STATUS
17724 echo ': clr' >>$CONFIG_STATUS
17725 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17726 echo 'CEOF
17727 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17728 rm -f $tmp/in
17729 mv $tmp/out $tmp/in
17730 ' >>$CONFIG_STATUS
17731 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17732 rm -f conftest.defines
17733 mv conftest.tail conftest.defines
17734 done
17735 rm -f conftest.defines
17736 echo ' fi # grep' >>$CONFIG_STATUS
17737 echo >>$CONFIG_STATUS
17739 # Break up conftest.undefs because some shells have a limit on the size
17740 # of here documents, and old seds have small limits too (100 cmds).
17741 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17742 rm -f conftest.tail
17743 while grep . conftest.undefs >/dev/null
17745 # Write a limited-size here document to $tmp/undefs.sed.
17746 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17747 # Speed up: don't consider the non `#undef'
17748 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17749 # Work around the forget-to-reset-the-flag bug.
17750 echo 't clr' >>$CONFIG_STATUS
17751 echo ': clr' >>$CONFIG_STATUS
17752 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17753 echo 'CEOF
17754 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17755 rm -f $tmp/in
17756 mv $tmp/out $tmp/in
17757 ' >>$CONFIG_STATUS
17758 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17759 rm -f conftest.undefs
17760 mv conftest.tail conftest.undefs
17761 done
17762 rm -f conftest.undefs
17764 cat >>$CONFIG_STATUS <<\_ACEOF
17765 # Let's still pretend it is `configure' which instantiates (i.e., don't
17766 # use $as_me), people would be surprised to read:
17767 # /* config.h. Generated by config.status. */
17768 if test x"$ac_file" = x-; then
17769 echo "/* Generated by configure. */" >$tmp/config.h
17770 else
17771 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17773 cat $tmp/in >>$tmp/config.h
17774 rm -f $tmp/in
17775 if test x"$ac_file" != x-; then
17776 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17777 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17778 echo "$as_me: $ac_file is unchanged" >&6;}
17779 else
17780 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17781 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17782 X"$ac_file" : 'X\(//\)[^/]' \| \
17783 X"$ac_file" : 'X\(//\)$' \| \
17784 X"$ac_file" : 'X\(/\)' \| \
17785 . : '\(.\)' 2>/dev/null ||
17786 echo X"$ac_file" |
17787 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17788 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17789 /^X\(\/\/\)$/{ s//\1/; q; }
17790 /^X\(\/\).*/{ s//\1/; q; }
17791 s/.*/./; q'`
17792 { if $as_mkdir_p; then
17793 mkdir -p "$ac_dir"
17794 else
17795 as_dir="$ac_dir"
17796 as_dirs=
17797 while test ! -d "$as_dir"; do
17798 as_dirs="$as_dir $as_dirs"
17799 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17800 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17801 X"$as_dir" : 'X\(//\)[^/]' \| \
17802 X"$as_dir" : 'X\(//\)$' \| \
17803 X"$as_dir" : 'X\(/\)' \| \
17804 . : '\(.\)' 2>/dev/null ||
17805 echo X"$as_dir" |
17806 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17807 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17808 /^X\(\/\/\)$/{ s//\1/; q; }
17809 /^X\(\/\).*/{ s//\1/; q; }
17810 s/.*/./; q'`
17811 done
17812 test ! -n "$as_dirs" || mkdir $as_dirs
17813 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17814 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17815 { (exit 1); exit 1; }; }; }
17817 rm -f $ac_file
17818 mv $tmp/config.h $ac_file
17820 else
17821 cat $tmp/config.h
17822 rm -f $tmp/config.h
17824 # Compute $ac_file's index in $config_headers.
17825 _am_stamp_count=1
17826 for _am_header in $config_headers :; do
17827 case $_am_header in
17828 $ac_file | $ac_file:* )
17829 break ;;
17831 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17832 esac
17833 done
17834 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17835 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17836 X$ac_file : 'X\(//\)[^/]' \| \
17837 X$ac_file : 'X\(//\)$' \| \
17838 X$ac_file : 'X\(/\)' \| \
17839 . : '\(.\)' 2>/dev/null ||
17840 echo X$ac_file |
17841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17842 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17843 /^X\(\/\/\)$/{ s//\1/; q; }
17844 /^X\(\/\).*/{ s//\1/; q; }
17845 s/.*/./; q'`/stamp-h$_am_stamp_count
17846 done
17847 _ACEOF
17848 cat >>$CONFIG_STATUS <<\_ACEOF
17851 # CONFIG_COMMANDS section.
17853 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17854 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17855 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17856 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17857 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17858 X"$ac_dest" : 'X\(//\)[^/]' \| \
17859 X"$ac_dest" : 'X\(//\)$' \| \
17860 X"$ac_dest" : 'X\(/\)' \| \
17861 . : '\(.\)' 2>/dev/null ||
17862 echo X"$ac_dest" |
17863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17864 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17865 /^X\(\/\/\)$/{ s//\1/; q; }
17866 /^X\(\/\).*/{ s//\1/; q; }
17867 s/.*/./; q'`
17868 { if $as_mkdir_p; then
17869 mkdir -p "$ac_dir"
17870 else
17871 as_dir="$ac_dir"
17872 as_dirs=
17873 while test ! -d "$as_dir"; do
17874 as_dirs="$as_dir $as_dirs"
17875 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17876 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17877 X"$as_dir" : 'X\(//\)[^/]' \| \
17878 X"$as_dir" : 'X\(//\)$' \| \
17879 X"$as_dir" : 'X\(/\)' \| \
17880 . : '\(.\)' 2>/dev/null ||
17881 echo X"$as_dir" |
17882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17883 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17884 /^X\(\/\/\)$/{ s//\1/; q; }
17885 /^X\(\/\).*/{ s//\1/; q; }
17886 s/.*/./; q'`
17887 done
17888 test ! -n "$as_dirs" || mkdir $as_dirs
17889 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17890 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17891 { (exit 1); exit 1; }; }; }
17893 ac_builddir=.
17895 if test "$ac_dir" != .; then
17896 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17897 # A "../" for each directory in $ac_dir_suffix.
17898 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17899 else
17900 ac_dir_suffix= ac_top_builddir=
17903 case $srcdir in
17904 .) # No --srcdir option. We are building in place.
17905 ac_srcdir=.
17906 if test -z "$ac_top_builddir"; then
17907 ac_top_srcdir=.
17908 else
17909 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17910 fi ;;
17911 [\\/]* | ?:[\\/]* ) # Absolute path.
17912 ac_srcdir=$srcdir$ac_dir_suffix;
17913 ac_top_srcdir=$srcdir ;;
17914 *) # Relative path.
17915 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17916 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17917 esac
17919 # Do not use `cd foo && pwd` to compute absolute paths, because
17920 # the directories may not exist.
17921 case `pwd` in
17922 .) ac_abs_builddir="$ac_dir";;
17924 case "$ac_dir" in
17925 .) ac_abs_builddir=`pwd`;;
17926 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17927 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17928 esac;;
17929 esac
17930 case $ac_abs_builddir in
17931 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17933 case ${ac_top_builddir}. in
17934 .) ac_abs_top_builddir=$ac_abs_builddir;;
17935 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17936 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17937 esac;;
17938 esac
17939 case $ac_abs_builddir in
17940 .) ac_abs_srcdir=$ac_srcdir;;
17942 case $ac_srcdir in
17943 .) ac_abs_srcdir=$ac_abs_builddir;;
17944 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17945 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17946 esac;;
17947 esac
17948 case $ac_abs_builddir in
17949 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17951 case $ac_top_srcdir in
17952 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17953 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17954 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17955 esac;;
17956 esac
17959 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17960 echo "$as_me: executing $ac_dest commands" >&6;}
17961 case $ac_dest in
17962 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17963 # Strip MF so we end up with the name of the file.
17964 mf=`echo "$mf" | sed -e 's/:.*$//'`
17965 # Check whether this is an Automake generated Makefile or not.
17966 # We used to match only the files named `Makefile.in', but
17967 # some people rename them; so instead we look at the file content.
17968 # Grep'ing the first line is not enough: some people post-process
17969 # each Makefile.in and add a new line on top of each file to say so.
17970 # So let's grep whole file.
17971 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17972 dirpart=`(dirname "$mf") 2>/dev/null ||
17973 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17974 X"$mf" : 'X\(//\)[^/]' \| \
17975 X"$mf" : 'X\(//\)$' \| \
17976 X"$mf" : 'X\(/\)' \| \
17977 . : '\(.\)' 2>/dev/null ||
17978 echo X"$mf" |
17979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17980 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17981 /^X\(\/\/\)$/{ s//\1/; q; }
17982 /^X\(\/\).*/{ s//\1/; q; }
17983 s/.*/./; q'`
17984 else
17985 continue
17987 # Extract the definition of DEPDIR, am__include, and am__quote
17988 # from the Makefile without running `make'.
17989 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17990 test -z "$DEPDIR" && continue
17991 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17992 test -z "am__include" && continue
17993 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17994 # When using ansi2knr, U may be empty or an underscore; expand it
17995 U=`sed -n 's/^U = //p' < "$mf"`
17996 # Find all dependency output files, they are included files with
17997 # $(DEPDIR) in their names. We invoke sed twice because it is the
17998 # simplest approach to changing $(DEPDIR) to its actual value in the
17999 # expansion.
18000 for file in `sed -n "
18001 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18002 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18003 # Make sure the directory exists.
18004 test -f "$dirpart/$file" && continue
18005 fdir=`(dirname "$file") 2>/dev/null ||
18006 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18007 X"$file" : 'X\(//\)[^/]' \| \
18008 X"$file" : 'X\(//\)$' \| \
18009 X"$file" : 'X\(/\)' \| \
18010 . : '\(.\)' 2>/dev/null ||
18011 echo X"$file" |
18012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18013 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18014 /^X\(\/\/\)$/{ s//\1/; q; }
18015 /^X\(\/\).*/{ s//\1/; q; }
18016 s/.*/./; q'`
18017 { if $as_mkdir_p; then
18018 mkdir -p $dirpart/$fdir
18019 else
18020 as_dir=$dirpart/$fdir
18021 as_dirs=
18022 while test ! -d "$as_dir"; do
18023 as_dirs="$as_dir $as_dirs"
18024 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18025 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18026 X"$as_dir" : 'X\(//\)[^/]' \| \
18027 X"$as_dir" : 'X\(//\)$' \| \
18028 X"$as_dir" : 'X\(/\)' \| \
18029 . : '\(.\)' 2>/dev/null ||
18030 echo X"$as_dir" |
18031 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18032 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18033 /^X\(\/\/\)$/{ s//\1/; q; }
18034 /^X\(\/\).*/{ s//\1/; q; }
18035 s/.*/./; q'`
18036 done
18037 test ! -n "$as_dirs" || mkdir $as_dirs
18038 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18039 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18040 { (exit 1); exit 1; }; }; }
18042 # echo "creating $dirpart/$file"
18043 echo '# dummy' > "$dirpart/$file"
18044 done
18045 done
18047 libtool )
18049 # See if we are running on zsh, and set the options which allow our
18050 # commands through without removal of \ escapes.
18051 if test -n "${ZSH_VERSION+set}" ; then
18052 setopt NO_GLOB_SUBST
18055 cfgfile="${ofile}T"
18056 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18057 $RM "$cfgfile"
18059 cat <<_LT_EOF >> "$cfgfile"
18060 #! $SHELL
18062 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18063 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18064 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18065 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18067 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18068 # 2006, 2007, 2008 Free Software Foundation, Inc.
18069 # Written by Gordon Matzigkeit, 1996
18071 # This file is part of GNU Libtool.
18073 # GNU Libtool is free software; you can redistribute it and/or
18074 # modify it under the terms of the GNU General Public License as
18075 # published by the Free Software Foundation; either version 2 of
18076 # the License, or (at your option) any later version.
18078 # As a special exception to the GNU General Public License,
18079 # if you distribute this file as part of a program or library that
18080 # is built using GNU Libtool, you may include this file under the
18081 # same distribution terms that you use for the rest of that program.
18083 # GNU Libtool is distributed in the hope that it will be useful,
18084 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18085 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18086 # GNU General Public License for more details.
18088 # You should have received a copy of the GNU General Public License
18089 # along with GNU Libtool; see the file COPYING. If not, a copy
18090 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18091 # obtained by writing to the Free Software Foundation, Inc.,
18092 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18095 # The names of the tagged configurations supported by this script.
18096 available_tags=""
18098 # ### BEGIN LIBTOOL CONFIG
18100 # Which release of libtool.m4 was used?
18101 macro_version=$macro_version
18102 macro_revision=$macro_revision
18104 # Whether or not to build shared libraries.
18105 build_libtool_libs=$enable_shared
18107 # Whether or not to build static libraries.
18108 build_old_libs=$enable_static
18110 # What type of objects to build.
18111 pic_mode=$pic_mode
18113 # Whether or not to optimize for fast installation.
18114 fast_install=$enable_fast_install
18116 # The host system.
18117 host_alias=$host_alias
18118 host=$host
18119 host_os=$host_os
18121 # The build system.
18122 build_alias=$build_alias
18123 build=$build
18124 build_os=$build_os
18126 # A sed program that does not truncate output.
18127 SED=$lt_SED
18129 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18130 Xsed="\$SED -e 1s/^X//"
18132 # A grep program that handles long lines.
18133 GREP=$lt_GREP
18135 # An ERE matcher.
18136 EGREP=$lt_EGREP
18138 # A literal string matcher.
18139 FGREP=$lt_FGREP
18141 # A BSD- or MS-compatible name lister.
18142 NM=$lt_NM
18144 # Whether we need soft or hard links.
18145 LN_S=$lt_LN_S
18147 # What is the maximum length of a command?
18148 max_cmd_len=$max_cmd_len
18150 # Object file suffix (normally "o").
18151 objext=$ac_objext
18153 # Executable file suffix (normally "").
18154 exeext=$exeext
18156 # whether the shell understands "unset".
18157 lt_unset=$lt_unset
18159 # turn spaces into newlines.
18160 SP2NL=$lt_lt_SP2NL
18162 # turn newlines into spaces.
18163 NL2SP=$lt_lt_NL2SP
18165 # How to create reloadable object files.
18166 reload_flag=$lt_reload_flag
18167 reload_cmds=$lt_reload_cmds
18169 # An object symbol dumper.
18170 OBJDUMP=$lt_OBJDUMP
18172 # Method to check whether dependent libraries are shared objects.
18173 deplibs_check_method=$lt_deplibs_check_method
18175 # Command to use when deplibs_check_method == "file_magic".
18176 file_magic_cmd=$lt_file_magic_cmd
18178 # The archiver.
18179 AR=$lt_AR
18180 AR_FLAGS=$lt_AR_FLAGS
18182 # A symbol stripping program.
18183 STRIP=$lt_STRIP
18185 # Commands used to install an old-style archive.
18186 RANLIB=$lt_RANLIB
18187 old_postinstall_cmds=$lt_old_postinstall_cmds
18188 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18190 # A C compiler.
18191 LTCC=$lt_CC
18193 # LTCC compiler flags.
18194 LTCFLAGS=$lt_CFLAGS
18196 # Take the output of nm and produce a listing of raw symbols and C names.
18197 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18199 # Transform the output of nm in a proper C declaration.
18200 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18202 # Transform the output of nm in a C name address pair.
18203 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18205 # Transform the output of nm in a C name address pair when lib prefix is needed.
18206 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18208 # The name of the directory that contains temporary libtool files.
18209 objdir=$objdir
18211 # Shell to use when invoking shell scripts.
18212 SHELL=$lt_SHELL
18214 # An echo program that does not interpret backslashes.
18215 ECHO=$lt_ECHO
18217 # Used to examine libraries when file_magic_cmd begins with "file".
18218 MAGIC_CMD=$MAGIC_CMD
18220 # Must we lock files when doing compilation?
18221 need_locks=$lt_need_locks
18223 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18224 DSYMUTIL=$lt_DSYMUTIL
18226 # Tool to change global to local symbols on Mac OS X.
18227 NMEDIT=$lt_NMEDIT
18229 # Tool to manipulate fat objects and archives on Mac OS X.
18230 LIPO=$lt_LIPO
18232 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18233 OTOOL=$lt_OTOOL
18235 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18236 OTOOL64=$lt_OTOOL64
18238 # Old archive suffix (normally "a").
18239 libext=$libext
18241 # Shared library suffix (normally ".so").
18242 shrext_cmds=$lt_shrext_cmds
18244 # The commands to extract the exported symbol list from a shared archive.
18245 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18247 # Variables whose values should be saved in libtool wrapper scripts and
18248 # restored at link time.
18249 variables_saved_for_relink=$lt_variables_saved_for_relink
18251 # Do we need the "lib" prefix for modules?
18252 need_lib_prefix=$need_lib_prefix
18254 # Do we need a version for libraries?
18255 need_version=$need_version
18257 # Library versioning type.
18258 version_type=$version_type
18260 # Shared library runtime path variable.
18261 runpath_var=$runpath_var
18263 # Shared library path variable.
18264 shlibpath_var=$shlibpath_var
18266 # Is shlibpath searched before the hard-coded library search path?
18267 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18269 # Format of library name prefix.
18270 libname_spec=$lt_libname_spec
18272 # List of archive names. First name is the real one, the rest are links.
18273 # The last name is the one that the linker finds with -lNAME
18274 library_names_spec=$lt_library_names_spec
18276 # The coded name of the library, if different from the real name.
18277 soname_spec=$lt_soname_spec
18279 # Command to use after installation of a shared archive.
18280 postinstall_cmds=$lt_postinstall_cmds
18282 # Command to use after uninstallation of a shared archive.
18283 postuninstall_cmds=$lt_postuninstall_cmds
18285 # Commands used to finish a libtool library installation in a directory.
18286 finish_cmds=$lt_finish_cmds
18288 # As "finish_cmds", except a single script fragment to be evaled but
18289 # not shown.
18290 finish_eval=$lt_finish_eval
18292 # Whether we should hardcode library paths into libraries.
18293 hardcode_into_libs=$hardcode_into_libs
18295 # Compile-time system search path for libraries.
18296 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18298 # Run-time system search path for libraries.
18299 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18301 # Whether dlopen is supported.
18302 dlopen_support=$enable_dlopen
18304 # Whether dlopen of programs is supported.
18305 dlopen_self=$enable_dlopen_self
18307 # Whether dlopen of statically linked programs is supported.
18308 dlopen_self_static=$enable_dlopen_self_static
18310 # Commands to strip libraries.
18311 old_striplib=$lt_old_striplib
18312 striplib=$lt_striplib
18315 # The linker used to build libraries.
18316 LD=$lt_LD
18318 # Commands used to build an old-style archive.
18319 old_archive_cmds=$lt_old_archive_cmds
18321 # A language specific compiler.
18322 CC=$lt_compiler
18324 # Is the compiler the GNU compiler?
18325 with_gcc=$GCC
18327 # Compiler flag to turn off builtin functions.
18328 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18330 # How to pass a linker flag through the compiler.
18331 wl=$lt_lt_prog_compiler_wl
18333 # Additional compiler flags for building library objects.
18334 pic_flag=$lt_lt_prog_compiler_pic
18336 # Compiler flag to prevent dynamic linking.
18337 link_static_flag=$lt_lt_prog_compiler_static
18339 # Does compiler simultaneously support -c and -o options?
18340 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18342 # Whether or not to add -lc for building shared libraries.
18343 build_libtool_need_lc=$archive_cmds_need_lc
18345 # Whether or not to disallow shared libs when runtime libs are static.
18346 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18348 # Compiler flag to allow reflexive dlopens.
18349 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18351 # Compiler flag to generate shared objects directly from archives.
18352 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18354 # Whether the compiler copes with passing no objects directly.
18355 compiler_needs_object=$lt_compiler_needs_object
18357 # Create an old-style archive from a shared archive.
18358 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18360 # Create a temporary old-style archive to link instead of a shared archive.
18361 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18363 # Commands used to build a shared archive.
18364 archive_cmds=$lt_archive_cmds
18365 archive_expsym_cmds=$lt_archive_expsym_cmds
18367 # Commands used to build a loadable module if different from building
18368 # a shared archive.
18369 module_cmds=$lt_module_cmds
18370 module_expsym_cmds=$lt_module_expsym_cmds
18372 # Whether we are building with GNU ld or not.
18373 with_gnu_ld=$lt_with_gnu_ld
18375 # Flag that allows shared libraries with undefined symbols to be built.
18376 allow_undefined_flag=$lt_allow_undefined_flag
18378 # Flag that enforces no undefined symbols.
18379 no_undefined_flag=$lt_no_undefined_flag
18381 # Flag to hardcode \$libdir into a binary during linking.
18382 # This must work even if \$libdir does not exist
18383 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18385 # If ld is used when linking, flag to hardcode \$libdir into a binary
18386 # during linking. This must work even if \$libdir does not exist.
18387 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18389 # Whether we need a single "-rpath" flag with a separated argument.
18390 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18392 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18393 # DIR into the resulting binary.
18394 hardcode_direct=$hardcode_direct
18396 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18397 # DIR into the resulting binary and the resulting library dependency is
18398 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18399 # library is relocated.
18400 hardcode_direct_absolute=$hardcode_direct_absolute
18402 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18403 # into the resulting binary.
18404 hardcode_minus_L=$hardcode_minus_L
18406 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18407 # into the resulting binary.
18408 hardcode_shlibpath_var=$hardcode_shlibpath_var
18410 # Set to "yes" if building a shared library automatically hardcodes DIR
18411 # into the library and all subsequent libraries and executables linked
18412 # against it.
18413 hardcode_automatic=$hardcode_automatic
18415 # Set to yes if linker adds runtime paths of dependent libraries
18416 # to runtime path list.
18417 inherit_rpath=$inherit_rpath
18419 # Whether libtool must link a program against all its dependency libraries.
18420 link_all_deplibs=$link_all_deplibs
18422 # Fix the shell variable \$srcfile for the compiler.
18423 fix_srcfile_path=$lt_fix_srcfile_path
18425 # Set to "yes" if exported symbols are required.
18426 always_export_symbols=$always_export_symbols
18428 # The commands to list exported symbols.
18429 export_symbols_cmds=$lt_export_symbols_cmds
18431 # Symbols that should not be listed in the preloaded symbols.
18432 exclude_expsyms=$lt_exclude_expsyms
18434 # Symbols that must always be exported.
18435 include_expsyms=$lt_include_expsyms
18437 # Commands necessary for linking programs (against libraries) with templates.
18438 prelink_cmds=$lt_prelink_cmds
18440 # Specify filename containing input files.
18441 file_list_spec=$lt_file_list_spec
18443 # How to hardcode a shared library path into an executable.
18444 hardcode_action=$hardcode_action
18446 # ### END LIBTOOL CONFIG
18448 _LT_EOF
18450 case $host_os in
18451 aix3*)
18452 cat <<\_LT_EOF >> "$cfgfile"
18453 # AIX sometimes has problems with the GCC collect2 program. For some
18454 # reason, if we set the COLLECT_NAMES environment variable, the problems
18455 # vanish in a puff of smoke.
18456 if test "X${COLLECT_NAMES+set}" != Xset; then
18457 COLLECT_NAMES=
18458 export COLLECT_NAMES
18460 _LT_EOF
18462 esac
18465 ltmain="$ac_aux_dir/ltmain.sh"
18468 # We use sed instead of cat because bash on DJGPP gets confused if
18469 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18470 # text mode, it properly converts lines to CR/LF. This bash problem
18471 # is reportedly fixed, but why not run on old versions too?
18472 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18473 || (rm -f "$cfgfile"; exit 1)
18475 case $xsi_shell in
18476 yes)
18477 cat << \_LT_EOF >> "$cfgfile"
18479 # func_dirname file append nondir_replacement
18480 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18481 # otherwise set result to NONDIR_REPLACEMENT.
18482 func_dirname ()
18484 case ${1} in
18485 */*) func_dirname_result="${1%/*}${2}" ;;
18486 * ) func_dirname_result="${3}" ;;
18487 esac
18490 # func_basename file
18491 func_basename ()
18493 func_basename_result="${1##*/}"
18496 # func_dirname_and_basename file append nondir_replacement
18497 # perform func_basename and func_dirname in a single function
18498 # call:
18499 # dirname: Compute the dirname of FILE. If nonempty,
18500 # add APPEND to the result, otherwise set result
18501 # to NONDIR_REPLACEMENT.
18502 # value returned in "$func_dirname_result"
18503 # basename: Compute filename of FILE.
18504 # value retuned in "$func_basename_result"
18505 # Implementation must be kept synchronized with func_dirname
18506 # and func_basename. For efficiency, we do not delegate to
18507 # those functions but instead duplicate the functionality here.
18508 func_dirname_and_basename ()
18510 case ${1} in
18511 */*) func_dirname_result="${1%/*}${2}" ;;
18512 * ) func_dirname_result="${3}" ;;
18513 esac
18514 func_basename_result="${1##*/}"
18517 # func_stripname prefix suffix name
18518 # strip PREFIX and SUFFIX off of NAME.
18519 # PREFIX and SUFFIX must not contain globbing or regex special
18520 # characters, hashes, percent signs, but SUFFIX may contain a leading
18521 # dot (in which case that matches only a dot).
18522 func_stripname ()
18524 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18525 # positional parameters, so assign one to ordinary parameter first.
18526 func_stripname_result=${3}
18527 func_stripname_result=${func_stripname_result#"${1}"}
18528 func_stripname_result=${func_stripname_result%"${2}"}
18531 # func_opt_split
18532 func_opt_split ()
18534 func_opt_split_opt=${1%%=*}
18535 func_opt_split_arg=${1#*=}
18538 # func_lo2o object
18539 func_lo2o ()
18541 case ${1} in
18542 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18543 *) func_lo2o_result=${1} ;;
18544 esac
18547 # func_xform libobj-or-source
18548 func_xform ()
18550 func_xform_result=${1%.*}.lo
18553 # func_arith arithmetic-term...
18554 func_arith ()
18556 func_arith_result=$(( $* ))
18559 # func_len string
18560 # STRING may not start with a hyphen.
18561 func_len ()
18563 func_len_result=${#1}
18566 _LT_EOF
18568 *) # Bourne compatible functions.
18569 cat << \_LT_EOF >> "$cfgfile"
18571 # func_dirname file append nondir_replacement
18572 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18573 # otherwise set result to NONDIR_REPLACEMENT.
18574 func_dirname ()
18576 # Extract subdirectory from the argument.
18577 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18578 if test "X$func_dirname_result" = "X${1}"; then
18579 func_dirname_result="${3}"
18580 else
18581 func_dirname_result="$func_dirname_result${2}"
18585 # func_basename file
18586 func_basename ()
18588 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18592 # func_stripname prefix suffix name
18593 # strip PREFIX and SUFFIX off of NAME.
18594 # PREFIX and SUFFIX must not contain globbing or regex special
18595 # characters, hashes, percent signs, but SUFFIX may contain a leading
18596 # dot (in which case that matches only a dot).
18597 # func_strip_suffix prefix name
18598 func_stripname ()
18600 case ${2} in
18601 .*) func_stripname_result=`$ECHO "X${3}" \
18602 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18603 *) func_stripname_result=`$ECHO "X${3}" \
18604 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18605 esac
18608 # sed scripts:
18609 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18610 my_sed_long_arg='1s/^-[^=]*=//'
18612 # func_opt_split
18613 func_opt_split ()
18615 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18616 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18619 # func_lo2o object
18620 func_lo2o ()
18622 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18625 # func_xform libobj-or-source
18626 func_xform ()
18628 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18631 # func_arith arithmetic-term...
18632 func_arith ()
18634 func_arith_result=`expr "$@"`
18637 # func_len string
18638 # STRING may not start with a hyphen.
18639 func_len ()
18641 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18644 _LT_EOF
18645 esac
18647 case $lt_shell_append in
18648 yes)
18649 cat << \_LT_EOF >> "$cfgfile"
18651 # func_append var value
18652 # Append VALUE to the end of shell variable VAR.
18653 func_append ()
18655 eval "$1+=\$2"
18657 _LT_EOF
18660 cat << \_LT_EOF >> "$cfgfile"
18662 # func_append var value
18663 # Append VALUE to the end of shell variable VAR.
18664 func_append ()
18666 eval "$1=\$$1\$2"
18669 _LT_EOF
18671 esac
18674 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18675 || (rm -f "$cfgfile"; exit 1)
18677 mv -f "$cfgfile" "$ofile" ||
18678 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18679 chmod +x "$ofile"
18682 default-1 )
18683 for ac_file in $CONFIG_FILES; do
18684 # Support "outfile[:infile[:infile...]]"
18685 case "$ac_file" in
18686 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18687 esac
18688 # PO directories have a Makefile.in generated from Makefile.in.in.
18689 case "$ac_file" in */Makefile.in)
18690 # Adjust a relative srcdir.
18691 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18692 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18693 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18694 # In autoconf-2.13 it is called $ac_given_srcdir.
18695 # In autoconf-2.50 it is called $srcdir.
18696 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18697 case "$ac_given_srcdir" in
18698 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18699 /*) top_srcdir="$ac_given_srcdir" ;;
18700 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
18701 esac
18702 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18703 rm -f "$ac_dir/POTFILES"
18704 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18705 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18706 POMAKEFILEDEPS="POTFILES.in"
18707 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
18708 # on $ac_dir but don't depend on user-specified configuration
18709 # parameters.
18710 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18711 # The LINGUAS file contains the set of available languages.
18712 if test -n "$OBSOLETE_ALL_LINGUAS"; then
18713 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
18715 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18716 # Hide the ALL_LINGUAS assigment from automake.
18717 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18718 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18719 else
18720 # The set of available languages was given in configure.in.
18721 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18723 case "$ac_given_srcdir" in
18724 .) srcdirpre= ;;
18725 *) srcdirpre='$(srcdir)/' ;;
18726 esac
18727 POFILES=
18728 GMOFILES=
18729 UPDATEPOFILES=
18730 DUMMYPOFILES=
18731 for lang in $ALL_LINGUAS; do
18732 POFILES="$POFILES $srcdirpre$lang.po"
18733 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18734 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18735 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18736 done
18737 # CATALOGS depends on both $ac_dir and the user's LINGUAS
18738 # environment variable.
18739 INST_LINGUAS=
18740 if test -n "$ALL_LINGUAS"; then
18741 for presentlang in $ALL_LINGUAS; do
18742 useit=no
18743 if test "%UNSET%" != "$LINGUAS"; then
18744 desiredlanguages="$LINGUAS"
18745 else
18746 desiredlanguages="$ALL_LINGUAS"
18748 for desiredlang in $desiredlanguages; do
18749 # Use the presentlang catalog if desiredlang is
18750 # a. equal to presentlang, or
18751 # b. a variant of presentlang (because in this case,
18752 # presentlang can be used as a fallback for messages
18753 # which are not translated in the desiredlang catalog).
18754 case "$desiredlang" in
18755 "$presentlang"*) useit=yes;;
18756 esac
18757 done
18758 if test $useit = yes; then
18759 INST_LINGUAS="$INST_LINGUAS $presentlang"
18761 done
18763 CATALOGS=
18764 if test -n "$INST_LINGUAS"; then
18765 for lang in $INST_LINGUAS; do
18766 CATALOGS="$CATALOGS $lang.gmo"
18767 done
18769 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18770 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"
18771 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18772 if test -f "$f"; then
18773 case "$f" in
18774 *.orig | *.bak | *~) ;;
18775 *) cat "$f" >> "$ac_dir/Makefile" ;;
18776 esac
18778 done
18781 esac
18782 done ;;
18783 esac
18784 done
18785 _ACEOF
18787 cat >>$CONFIG_STATUS <<\_ACEOF
18789 { (exit 0); exit 0; }
18790 _ACEOF
18791 chmod +x $CONFIG_STATUS
18792 ac_clean_files=$ac_clean_files_save
18795 # configure is writing to config.log, and then calls config.status.
18796 # config.status does its own redirection, appending to config.log.
18797 # Unfortunately, on DOS this fails, as config.log is still kept open
18798 # by configure, so config.status won't be able to write to it; its
18799 # output is simply discarded. So we exec the FD to /dev/null,
18800 # effectively closing config.log, so it can be properly (re)opened and
18801 # appended to by config.status. When coming back to configure, we
18802 # need to make the FD available again.
18803 if test "$no_create" != yes; then
18804 ac_cs_success=:
18805 ac_config_status_args=
18806 test "$silent" = yes &&
18807 ac_config_status_args="$ac_config_status_args --quiet"
18808 exec 5>/dev/null
18809 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18810 exec 5>>config.log
18811 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18812 # would make configure fail if this is the last instruction.
18813 $ac_cs_success || { (exit 1); exit 1; }