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
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
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
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
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 \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
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 ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; 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
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
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
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
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
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
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).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe 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
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
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'"
235 # We need space, tab and new line, in precisely that order.
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
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!
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
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
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
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
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
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
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.
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
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
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
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
349 SHELL="$CONFIG_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"
358 # maybe with a smaller string...
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
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+"$@"}
374 # Oops. We lost completely, so just stick with 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.
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
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`
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
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.
423 ac_unique_file="z8k-dis.c"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
428 # include <sys/types.h>
431 # include <sys/stat.h>
442 # if !STDC_HEADERS && HAVE_MEMORY_H
448 # include <strings.h>
451 # include <inttypes.h>
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 AR ac_ct_AR RANLIB ac_ct_RANLIB LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO CPP WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE CC_FOR_BUILD EXEEXT_FOR_BUILD HDEFINES CGEN_MAINT_TRUE CGEN_MAINT_FALSE cgendir WIN32LDFLAGS WIN32LIBADD archdefs BFD_MACHINES LIBOBJS LTLIBOBJS'
464 # Initialize some variables set by options.
466 ac_init_version=false
467 # The variables have the same names as the options, with
468 # dashes changed to underlines.
476 program_transform_name=s,x,x,
484 # Installation directory options.
485 # These are left unexpanded so users can "make install exec_prefix=/foo"
486 # and all the variables that are supposed to be based on exec_prefix
487 # by default will actually change.
488 # Use braces instead of parens because sh, perl, etc. also accept them.
489 bindir='${exec_prefix}/bin'
490 sbindir='${exec_prefix}/sbin'
491 libexecdir='${exec_prefix}/libexec'
492 datadir='${prefix}/share'
493 sysconfdir='${prefix}/etc'
494 sharedstatedir='${prefix}/com'
495 localstatedir='${prefix}/var'
496 libdir='${exec_prefix}/lib'
497 includedir='${prefix}/include'
498 oldincludedir='/usr/include'
499 infodir='${prefix}/info'
500 mandir='${prefix}/man'
505 # If the previous option needs an argument, assign it.
506 if test -n "$ac_prev"; then
507 eval "$ac_prev=\$ac_option"
512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514 # Accept the important Cygnus configure options, so we can diagnose typos.
518 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
523 -build | --build | --buil | --bui | --bu)
524 ac_prev=build_alias ;;
525 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526 build_alias=$ac_optarg ;;
528 -cache-file | --cache-file | --cache-fil | --cache-fi \
529 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530 ac_prev=cache_file ;;
531 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
533 cache_file=$ac_optarg ;;
536 cache_file=config.cache ;;
538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 datadir=$ac_optarg ;;
544 -disable-* | --disable-*)
545 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546 # Reject names that are not valid shell variable names.
547 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549 { (exit 1); exit 1; }; }
550 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551 eval "enable_$ac_feature=no" ;;
553 -enable-* | --enable-*)
554 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555 # Reject names that are not valid shell variable names.
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
564 eval "enable_$ac_feature='$ac_optarg'" ;;
566 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568 | --exec | --exe | --ex)
569 ac_prev=exec_prefix ;;
570 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572 | --exec=* | --exe=* | --ex=*)
573 exec_prefix=$ac_optarg ;;
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
579 -help | --help | --hel | --he | -h)
581 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582 ac_init_help=recursive ;;
583 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584 ac_init_help=short ;;
586 -host | --host | --hos | --ho)
587 ac_prev=host_alias ;;
588 -host=* | --host=* | --hos=* | --ho=*)
589 host_alias=$ac_optarg ;;
591 -includedir | --includedir | --includedi | --included | --include \
592 | --includ | --inclu | --incl | --inc)
593 ac_prev=includedir ;;
594 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595 | --includ=* | --inclu=* | --incl=* | --inc=*)
596 includedir=$ac_optarg ;;
598 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601 infodir=$ac_optarg ;;
603 -libdir | --libdir | --libdi | --libd)
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
608 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609 | --libexe | --libex | --libe)
610 ac_prev=libexecdir ;;
611 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612 | --libexe=* | --libex=* | --libe=*)
613 libexecdir=$ac_optarg ;;
615 -localstatedir | --localstatedir | --localstatedi | --localstated \
616 | --localstate | --localstat | --localsta | --localst \
617 | --locals | --local | --loca | --loc | --lo)
618 ac_prev=localstatedir ;;
619 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
622 localstatedir=$ac_optarg ;;
624 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
630 # Obsolete; use --without-fp.
633 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634 | --no-cr | --no-c | -n)
637 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
641 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643 | --oldin | --oldi | --old | --ol | --o)
644 ac_prev=oldincludedir ;;
645 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
648 oldincludedir=$ac_optarg ;;
650 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
655 -program-prefix | --program-prefix | --program-prefi | --program-pref \
656 | --program-pre | --program-pr | --program-p)
657 ac_prev=program_prefix ;;
658 -program-prefix=* | --program-prefix=* | --program-prefi=* \
659 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
660 program_prefix=$ac_optarg ;;
662 -program-suffix | --program-suffix | --program-suffi | --program-suff \
663 | --program-suf | --program-su | --program-s)
664 ac_prev=program_suffix ;;
665 -program-suffix=* | --program-suffix=* | --program-suffi=* \
666 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
667 program_suffix=$ac_optarg ;;
669 -program-transform-name | --program-transform-name \
670 | --program-transform-nam | --program-transform-na \
671 | --program-transform-n | --program-transform- \
672 | --program-transform | --program-transfor \
673 | --program-transfo | --program-transf \
674 | --program-trans | --program-tran \
675 | --progr-tra | --program-tr | --program-t)
676 ac_prev=program_transform_name ;;
677 -program-transform-name=* | --program-transform-name=* \
678 | --program-transform-nam=* | --program-transform-na=* \
679 | --program-transform-n=* | --program-transform-=* \
680 | --program-transform=* | --program-transfor=* \
681 | --program-transfo=* | --program-transf=* \
682 | --program-trans=* | --program-tran=* \
683 | --progr-tra=* | --program-tr=* | --program-t=*)
684 program_transform_name=$ac_optarg ;;
686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687 | -silent | --silent | --silen | --sile | --sil)
690 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 sbindir=$ac_optarg ;;
696 -sharedstatedir | --sharedstatedir | --sharedstatedi \
697 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698 | --sharedst | --shareds | --shared | --share | --shar \
700 ac_prev=sharedstatedir ;;
701 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 sharedstatedir=$ac_optarg ;;
707 -site | --site | --sit)
709 -site=* | --site=* | --sit=*)
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
717 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718 | --syscon | --sysco | --sysc | --sys | --sy)
719 ac_prev=sysconfdir ;;
720 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
722 sysconfdir=$ac_optarg ;;
724 -target | --target | --targe | --targ | --tar | --ta | --t)
725 ac_prev=target_alias ;;
726 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727 target_alias=$ac_optarg ;;
729 -v | -verbose | --verbose | --verbos | --verbo | --verb)
732 -version | --version | --versio | --versi | --vers | -V)
736 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737 # Reject names that are not valid shell variable names.
738 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739 { echo "$as_me: error: invalid package name: $ac_package" >&2
740 { (exit 1); exit 1; }; }
741 ac_package=`echo $ac_package| sed 's/-/_/g'`
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
746 eval "with_$ac_package='$ac_optarg'" ;;
748 -without-* | --without-*)
749 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750 # Reject names that are not valid shell variable names.
751 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752 { echo "$as_me: error: invalid package name: $ac_package" >&2
753 { (exit 1); exit 1; }; }
754 ac_package=`echo $ac_package | sed 's/-/_/g'`
755 eval "with_$ac_package=no" ;;
758 # Obsolete; use --with-x.
761 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762 | --x-incl | --x-inc | --x-in | --x-i)
763 ac_prev=x_includes ;;
764 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
766 x_includes=$ac_optarg ;;
768 -x-libraries | --x-libraries | --x-librarie | --x-librari \
769 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770 ac_prev=x_libraries ;;
771 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
773 x_libraries=$ac_optarg ;;
775 -*) { echo "$as_me: error: unrecognized option: $ac_option
776 Try \`$0 --help' for more information." >&2
777 { (exit 1); exit 1; }; }
781 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785 { (exit 1); exit 1; }; }
786 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787 eval "$ac_envvar='$ac_optarg'"
791 # FIXME: should be removed in autoconf 3.0.
792 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801 if test -n "$ac_prev"; then
802 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803 { echo "$as_me: error: missing argument to $ac_option" >&2
804 { (exit 1); exit 1; }; }
807 # Be sure to have absolute paths.
808 for ac_var in exec_prefix prefix
810 eval ac_val=$`echo $ac_var`
812 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814 { (exit 1); exit 1; }; };;
818 # Be sure to have absolute paths.
819 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820 localstatedir libdir includedir oldincludedir infodir mandir
822 eval ac_val=$`echo $ac_var`
824 [\\/$]* | ?:[\\/]* ) ;;
825 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826 { (exit 1); exit 1; }; };;
830 # There might be people who depend on the old broken behavior: `$host'
831 # used to hold the argument of --host etc.
832 # FIXME: To remove some day.
837 # FIXME: To remove some day.
838 if test "x$host_alias" != x; then
839 if test "x$build_alias" = x; then
840 cross_compiling=maybe
841 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842 If a cross compiler is detected then cross compile mode will be used." >&2
843 elif test "x$build_alias" != "x$host_alias"; then
849 test -n "$host_alias" && ac_tool_prefix=$host_alias-
851 test "$silent" = yes && exec 6>/dev/null
854 # Find the source files, if location was not specified.
855 if test -z "$srcdir"; then
856 ac_srcdir_defaulted=yes
857 # Try the directory containing this script, then its parent.
858 ac_confdir=`(dirname "$0") 2>/dev/null ||
859 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860 X"$0" : 'X\(//\)[^/]' \| \
861 X"$0" : 'X\(//\)$' \| \
862 X"$0" : 'X\(/\)' \| \
863 . : '\(.\)' 2>/dev/null ||
865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867 /^X\(\/\/\)$/{ s//\1/; q; }
868 /^X\(\/\).*/{ s//\1/; q; }
871 if test ! -r $srcdir/$ac_unique_file; then
875 ac_srcdir_defaulted=no
877 if test ! -r $srcdir/$ac_unique_file; then
878 if test "$ac_srcdir_defaulted" = yes; then
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880 { (exit 1); exit 1; }; }
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883 { (exit 1); exit 1; }; }
886 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888 { (exit 1); exit 1; }; }
889 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890 ac_env_build_alias_set=${build_alias+set}
891 ac_env_build_alias_value=$build_alias
892 ac_cv_env_build_alias_set=${build_alias+set}
893 ac_cv_env_build_alias_value=$build_alias
894 ac_env_host_alias_set=${host_alias+set}
895 ac_env_host_alias_value=$host_alias
896 ac_cv_env_host_alias_set=${host_alias+set}
897 ac_cv_env_host_alias_value=$host_alias
898 ac_env_target_alias_set=${target_alias+set}
899 ac_env_target_alias_value=$target_alias
900 ac_cv_env_target_alias_set=${target_alias+set}
901 ac_cv_env_target_alias_value=$target_alias
902 ac_env_CC_set=${CC+set}
904 ac_cv_env_CC_set=${CC+set}
905 ac_cv_env_CC_value=$CC
906 ac_env_CFLAGS_set=${CFLAGS+set}
907 ac_env_CFLAGS_value=$CFLAGS
908 ac_cv_env_CFLAGS_set=${CFLAGS+set}
909 ac_cv_env_CFLAGS_value=$CFLAGS
910 ac_env_LDFLAGS_set=${LDFLAGS+set}
911 ac_env_LDFLAGS_value=$LDFLAGS
912 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
913 ac_cv_env_LDFLAGS_value=$LDFLAGS
914 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
915 ac_env_CPPFLAGS_value=$CPPFLAGS
916 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
917 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
918 ac_env_CPP_set=${CPP+set}
919 ac_env_CPP_value=$CPP
920 ac_cv_env_CPP_set=${CPP+set}
921 ac_cv_env_CPP_value=$CPP
924 # Report the --help message.
926 if test "$ac_init_help" = "long"; then
927 # Omit some internal or obsolete options to make the list less imposing.
928 # This message is too long to be a string in the A/UX 3.1 sh.
930 \`configure' configures this package to adapt to many kinds of systems.
932 Usage: $0 [OPTION]... [VAR=VALUE]...
934 To assign environment variables (e.g., CC, CFLAGS...), specify them as
935 VAR=VALUE. See below for descriptions of some of the useful variables.
937 Defaults for the options are specified in brackets.
940 -h, --help display this help and exit
941 --help=short display options specific to this package
942 --help=recursive display the short help of all the included packages
943 -V, --version display version information and exit
944 -q, --quiet, --silent do not print \`checking...' messages
945 --cache-file=FILE cache test results in FILE [disabled]
946 -C, --config-cache alias for \`--cache-file=config.cache'
947 -n, --no-create do not create output files
948 --srcdir=DIR find the sources in DIR [configure dir or \`..']
953 Installation directories:
954 --prefix=PREFIX install architecture-independent files in PREFIX
956 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
959 By default, \`make install' will install all the files in
960 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
961 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
962 for instance \`--prefix=\$HOME'.
964 For better control, use the options below.
966 Fine tuning of the installation directories:
967 --bindir=DIR user executables [EPREFIX/bin]
968 --sbindir=DIR system admin executables [EPREFIX/sbin]
969 --libexecdir=DIR program executables [EPREFIX/libexec]
970 --datadir=DIR read-only architecture-independent data [PREFIX/share]
971 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
972 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
973 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
974 --libdir=DIR object code libraries [EPREFIX/lib]
975 --includedir=DIR C header files [PREFIX/include]
976 --oldincludedir=DIR C header files for non-gcc [/usr/include]
977 --infodir=DIR info documentation [PREFIX/info]
978 --mandir=DIR man documentation [PREFIX/man]
984 --program-prefix=PREFIX prepend PREFIX to installed program names
985 --program-suffix=SUFFIX append SUFFIX to installed program names
986 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
989 --build=BUILD configure for building on BUILD [guessed]
990 --host=HOST cross-compile to build programs to run on HOST [BUILD]
991 --target=TARGET configure for building compilers for TARGET [HOST]
995 if test -n "$ac_init_help"; then
1000 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1001 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1002 --disable-dependency-tracking speeds up one-time build
1003 --enable-dependency-tracking do not reject slow dependency extractors
1004 --enable-shared[=PKGS]
1005 build shared libraries [default=no]
1006 --enable-static[=PKGS]
1007 build static libraries [default=yes]
1008 --enable-fast-install[=PKGS]
1009 optimize for fast installation [default=yes]
1010 --disable-libtool-lock avoid locking (might break parallel builds)
1011 --enable-targets alternative target configurations
1012 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
1013 --enable-werror treat compile warnings as errors
1014 --enable-build-warnings enable build-time compiler warnings
1015 --enable-maintainer-mode enable make rules and dependencies not useful
1016 (and sometimes confusing) to the casual installer
1017 --enable-install-libbfd controls installation of libbfd and related headers
1018 --disable-nls do not use Native Language Support
1019 --enable-cgen-maint=dir build cgen generated files
1022 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1023 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1024 --with-pic try to use only PIC/non-PIC objects [default=use
1026 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1028 Some influential environment variables:
1029 CC C compiler command
1030 CFLAGS C compiler flags
1031 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1032 nonstandard directory <lib dir>
1033 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1034 headers in a nonstandard directory <include dir>
1037 Use these variables to override the choices made by `configure' or to help
1038 it to find libraries and programs with nonstandard names/locations.
1043 if test "$ac_init_help" = "recursive"; then
1044 # If there are subdirs, report their specific --help.
1046 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1047 test -d $ac_dir || continue
1050 if test "$ac_dir" != .; then
1051 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1052 # A "../" for each directory in $ac_dir_suffix.
1053 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1055 ac_dir_suffix= ac_top_builddir=
1059 .) # No --srcdir option. We are building in place.
1061 if test -z "$ac_top_builddir"; then
1064 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1066 [\\/]* | ?:[\\/]* ) # Absolute path.
1067 ac_srcdir=$srcdir$ac_dir_suffix;
1068 ac_top_srcdir=$srcdir ;;
1070 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1071 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1074 # Do not use `cd foo && pwd` to compute absolute paths, because
1075 # the directories may not exist.
1077 .) ac_abs_builddir="$ac_dir";;
1080 .) ac_abs_builddir=`pwd`;;
1081 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1082 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1085 case $ac_abs_builddir in
1086 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1088 case ${ac_top_builddir}. in
1089 .) ac_abs_top_builddir=$ac_abs_builddir;;
1090 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1091 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1094 case $ac_abs_builddir in
1095 .) ac_abs_srcdir=$ac_srcdir;;
1098 .) ac_abs_srcdir=$ac_abs_builddir;;
1099 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1100 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1103 case $ac_abs_builddir in
1104 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1106 case $ac_top_srcdir in
1107 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1108 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1109 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1114 # Check for guested configure; otherwise get Cygnus style configure.
1115 if test -f $ac_srcdir/configure.gnu; then
1117 $SHELL $ac_srcdir/configure.gnu --help=recursive
1118 elif test -f $ac_srcdir/configure; then
1120 $SHELL $ac_srcdir/configure --help=recursive
1121 elif test -f $ac_srcdir/configure.ac ||
1122 test -f $ac_srcdir/configure.in; then
1124 $ac_configure --help
1126 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1132 test -n "$ac_init_help" && exit 0
1133 if $ac_init_version; then
1136 Copyright (C) 2003 Free Software Foundation, Inc.
1137 This configure script is free software; the Free Software Foundation
1138 gives unlimited permission to copy, distribute and modify it.
1144 This file contains any messages produced by compilers while
1145 running configure, to aid debugging if configure makes a mistake.
1147 It was created by $as_me, which was
1148 generated by GNU Autoconf 2.59. Invocation command line was
1159 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1160 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1161 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1162 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1163 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1165 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1166 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1168 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1169 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1170 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1171 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1172 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1173 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1174 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1182 test -z "$as_dir" && as_dir=.
1183 echo "PATH: $as_dir"
1198 # Keep a trace of the command line.
1199 # Strip out --no-create and --no-recursion so they do not pile up.
1200 # Strip out --silent because we don't want to record it for future runs.
1201 # Also quote any args containing shell meta-characters.
1202 # Make two passes to allow for proper duplicate-argument suppression.
1207 ac_must_keep_next=false
1213 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1214 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215 | -silent | --silent | --silen | --sile | --sil)
1217 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1218 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1223 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1224 if test $ac_must_keep_next = true; then
1225 ac_must_keep_next=false # Got value, back to normal.
1228 *=* | --config-cache | -C | -disable-* | --disable-* \
1229 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1230 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1231 | -with-* | --with-* | -without-* | --without-* | --x)
1232 case "$ac_configure_args0 " in
1233 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236 -* ) ac_must_keep_next=true ;;
1239 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1240 # Get rid of the leading space.
1246 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1247 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1249 # When interrupted or exit'd, cleanup temporary files, and complete
1250 # config.log. We remove comments because anyway the quotes in there
1251 # would cause problems or look ugly.
1252 # WARNING: Be sure not to use single quotes in there, as some shells,
1253 # such as our DU 5.0 friend, will then `close' the trap.
1254 trap 'exit_status=$?
1255 # Save into config.log some information that might help in debugging.
1260 ## ---------------- ##
1261 ## Cache variables. ##
1262 ## ---------------- ##
1265 # The following way of writing the cache mishandles newlines in values,
1268 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1272 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1276 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1283 ## ----------------- ##
1284 ## Output variables. ##
1285 ## ----------------- ##
1288 for ac_var in $ac_subst_vars
1290 eval ac_val=$`echo $ac_var`
1291 echo "$ac_var='"'"'$ac_val'"'"'"
1295 if test -n "$ac_subst_files"; then
1302 for ac_var in $ac_subst_files
1304 eval ac_val=$`echo $ac_var`
1305 echo "$ac_var='"'"'$ac_val'"'"'"
1310 if test -s confdefs.h; then
1317 sed "/^$/d" confdefs.h | sort
1320 test "$ac_signal" != 0 &&
1321 echo "$as_me: caught signal $ac_signal"
1322 echo "$as_me: exit $exit_status"
1324 rm -f core *.core &&
1325 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328 for ac_signal in 1 2 13 15; do
1329 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1333 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1334 rm -rf conftest* confdefs.h
1335 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338 # Predefined preprocessor variables.
1340 cat >>confdefs.h <<_ACEOF
1341 #define PACKAGE_NAME "$PACKAGE_NAME"
1345 cat >>confdefs.h <<_ACEOF
1346 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1350 cat >>confdefs.h <<_ACEOF
1351 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1355 cat >>confdefs.h <<_ACEOF
1356 #define PACKAGE_STRING "$PACKAGE_STRING"
1360 cat >>confdefs.h <<_ACEOF
1361 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1365 # Let the site file select an alternate cache file if it wants to.
1366 # Prefer explicitly selected file to automatically selected ones.
1367 if test -z "$CONFIG_SITE"; then
1368 if test "x$prefix" != xNONE; then
1369 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1371 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374 for ac_site_file in $CONFIG_SITE; do
1375 if test -r "$ac_site_file"; then
1376 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1377 echo "$as_me: loading site script $ac_site_file" >&6;}
1378 sed 's/^/| /' "$ac_site_file" >&5
1383 if test -r "$cache_file"; then
1384 # Some versions of bash will fail to source /dev/null (special
1385 # files actually), so we avoid doing that.
1386 if test -f "$cache_file"; then
1387 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1388 echo "$as_me: loading cache $cache_file" >&6;}
1390 [\\/]* | ?:[\\/]* ) . $cache_file;;
1391 *) . ./$cache_file;;
1395 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1396 echo "$as_me: creating cache $cache_file" >&6;}
1400 # Check that the precious variables saved in the cache have kept the same
1402 ac_cache_corrupted=false
1403 for ac_var in `(set) 2>&1 |
1404 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1405 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1406 eval ac_new_set=\$ac_env_${ac_var}_set
1407 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1408 eval ac_new_val="\$ac_env_${ac_var}_value"
1409 case $ac_old_set,$ac_new_set in
1411 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1412 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1413 ac_cache_corrupted=: ;;
1415 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1416 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1417 ac_cache_corrupted=: ;;
1420 if test "x$ac_old_val" != "x$ac_new_val"; then
1421 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1422 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1423 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1424 echo "$as_me: former value: $ac_old_val" >&2;}
1425 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1426 echo "$as_me: current value: $ac_new_val" >&2;}
1427 ac_cache_corrupted=:
1430 # Pass precious variables to config.status.
1431 if test "$ac_new_set" = set; then
1433 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1434 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1435 *) ac_arg=$ac_var=$ac_new_val ;;
1437 case " $ac_configure_args " in
1438 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1439 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1443 if $ac_cache_corrupted; then
1444 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1445 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1446 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1447 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1448 { (exit 1); exit 1; }; }
1452 ac_cpp='$CPP $CPPFLAGS'
1453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1478 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1479 if test -f $ac_dir/install-sh; then
1481 ac_install_sh="$ac_aux_dir/install-sh -c"
1483 elif test -f $ac_dir/install.sh; then
1485 ac_install_sh="$ac_aux_dir/install.sh -c"
1487 elif test -f $ac_dir/shtool; then
1489 ac_install_sh="$ac_aux_dir/shtool install -c"
1493 if test -z "$ac_aux_dir"; then
1494 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1495 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1496 { (exit 1); exit 1; }; }
1498 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1499 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1500 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1502 # Make sure we can run config.sub.
1503 $ac_config_sub sun4 >/dev/null 2>&1 ||
1504 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1505 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1506 { (exit 1); exit 1; }; }
1508 echo "$as_me:$LINENO: checking build system type" >&5
1509 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1510 if test "${ac_cv_build+set}" = set; then
1511 echo $ECHO_N "(cached) $ECHO_C" >&6
1513 ac_cv_build_alias=$build_alias
1514 test -z "$ac_cv_build_alias" &&
1515 ac_cv_build_alias=`$ac_config_guess`
1516 test -z "$ac_cv_build_alias" &&
1517 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1518 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1519 { (exit 1); exit 1; }; }
1520 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1521 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1522 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1523 { (exit 1); exit 1; }; }
1526 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1527 echo "${ECHO_T}$ac_cv_build" >&6
1529 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1530 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1531 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1534 echo "$as_me:$LINENO: checking host system type" >&5
1535 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1536 if test "${ac_cv_host+set}" = set; then
1537 echo $ECHO_N "(cached) $ECHO_C" >&6
1539 ac_cv_host_alias=$host_alias
1540 test -z "$ac_cv_host_alias" &&
1541 ac_cv_host_alias=$ac_cv_build_alias
1542 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1543 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1544 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1545 { (exit 1); exit 1; }; }
1548 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1549 echo "${ECHO_T}$ac_cv_host" >&6
1551 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1552 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1553 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1556 echo "$as_me:$LINENO: checking target system type" >&5
1557 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1558 if test "${ac_cv_target+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1561 ac_cv_target_alias=$target_alias
1562 test "x$ac_cv_target_alias" = "x" &&
1563 ac_cv_target_alias=$ac_cv_host_alias
1564 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1565 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1566 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1567 { (exit 1); exit 1; }; }
1570 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1571 echo "${ECHO_T}$ac_cv_target" >&6
1572 target=$ac_cv_target
1573 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1574 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1575 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1578 # The aliases save the names the user supplied, while $host etc.
1579 # will get canonicalized.
1580 test -n "$target_alias" &&
1581 test "$program_prefix$program_suffix$program_transform_name" = \
1583 program_prefix=${target_alias}-
1585 ac_cpp='$CPP $CPPFLAGS'
1586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1589 if test -n "$ac_tool_prefix"; then
1590 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1591 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1592 echo "$as_me:$LINENO: checking for $ac_word" >&5
1593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1594 if test "${ac_cv_prog_CC+set}" = set; then
1595 echo $ECHO_N "(cached) $ECHO_C" >&6
1597 if test -n "$CC"; then
1598 ac_cv_prog_CC="$CC" # Let the user override the test.
1600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1604 test -z "$as_dir" && as_dir=.
1605 for ac_exec_ext in '' $ac_executable_extensions; do
1606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1607 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1617 if test -n "$CC"; then
1618 echo "$as_me:$LINENO: result: $CC" >&5
1619 echo "${ECHO_T}$CC" >&6
1621 echo "$as_me:$LINENO: result: no" >&5
1622 echo "${ECHO_T}no" >&6
1626 if test -z "$ac_cv_prog_CC"; then
1628 # Extract the first word of "gcc", so it can be a program name with args.
1629 set dummy gcc; ac_word=$2
1630 echo "$as_me:$LINENO: checking for $ac_word" >&5
1631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1632 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1633 echo $ECHO_N "(cached) $ECHO_C" >&6
1635 if test -n "$ac_ct_CC"; then
1636 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642 test -z "$as_dir" && as_dir=.
1643 for ac_exec_ext in '' $ac_executable_extensions; do
1644 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1645 ac_cv_prog_ac_ct_CC="gcc"
1646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1654 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1655 if test -n "$ac_ct_CC"; then
1656 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1657 echo "${ECHO_T}$ac_ct_CC" >&6
1659 echo "$as_me:$LINENO: result: no" >&5
1660 echo "${ECHO_T}no" >&6
1668 if test -z "$CC"; then
1669 if test -n "$ac_tool_prefix"; then
1670 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1671 set dummy ${ac_tool_prefix}cc; ac_word=$2
1672 echo "$as_me:$LINENO: checking for $ac_word" >&5
1673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1674 if test "${ac_cv_prog_CC+set}" = set; then
1675 echo $ECHO_N "(cached) $ECHO_C" >&6
1677 if test -n "$CC"; then
1678 ac_cv_prog_CC="$CC" # Let the user override the test.
1680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1684 test -z "$as_dir" && as_dir=.
1685 for ac_exec_ext in '' $ac_executable_extensions; do
1686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1687 ac_cv_prog_CC="${ac_tool_prefix}cc"
1688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1697 if test -n "$CC"; then
1698 echo "$as_me:$LINENO: result: $CC" >&5
1699 echo "${ECHO_T}$CC" >&6
1701 echo "$as_me:$LINENO: result: no" >&5
1702 echo "${ECHO_T}no" >&6
1706 if test -z "$ac_cv_prog_CC"; then
1708 # Extract the first word of "cc", so it can be a program name with args.
1709 set dummy cc; ac_word=$2
1710 echo "$as_me:$LINENO: checking for $ac_word" >&5
1711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1712 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1713 echo $ECHO_N "(cached) $ECHO_C" >&6
1715 if test -n "$ac_ct_CC"; then
1716 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1722 test -z "$as_dir" && as_dir=.
1723 for ac_exec_ext in '' $ac_executable_extensions; do
1724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1725 ac_cv_prog_ac_ct_CC="cc"
1726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1734 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1735 if test -n "$ac_ct_CC"; then
1736 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1737 echo "${ECHO_T}$ac_ct_CC" >&6
1739 echo "$as_me:$LINENO: result: no" >&5
1740 echo "${ECHO_T}no" >&6
1749 if test -z "$CC"; then
1750 # Extract the first word of "cc", so it can be a program name with args.
1751 set dummy cc; ac_word=$2
1752 echo "$as_me:$LINENO: checking for $ac_word" >&5
1753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1754 if test "${ac_cv_prog_CC+set}" = set; then
1755 echo $ECHO_N "(cached) $ECHO_C" >&6
1757 if test -n "$CC"; then
1758 ac_cv_prog_CC="$CC" # Let the user override the test.
1761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1765 test -z "$as_dir" && as_dir=.
1766 for ac_exec_ext in '' $ac_executable_extensions; do
1767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1768 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1769 ac_prog_rejected=yes
1773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1779 if test $ac_prog_rejected = yes; then
1780 # We found a bogon in the path, so make sure we never use it.
1781 set dummy $ac_cv_prog_CC
1783 if test $# != 0; then
1784 # We chose a different compiler from the bogus one.
1785 # However, it has the same basename, so the bogon will be chosen
1786 # first if we set CC to just the basename; use the full file name.
1788 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1794 if test -n "$CC"; then
1795 echo "$as_me:$LINENO: result: $CC" >&5
1796 echo "${ECHO_T}$CC" >&6
1798 echo "$as_me:$LINENO: result: no" >&5
1799 echo "${ECHO_T}no" >&6
1803 if test -z "$CC"; then
1804 if test -n "$ac_tool_prefix"; then
1807 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1808 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1809 echo "$as_me:$LINENO: checking for $ac_word" >&5
1810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1811 if test "${ac_cv_prog_CC+set}" = set; then
1812 echo $ECHO_N "(cached) $ECHO_C" >&6
1814 if test -n "$CC"; then
1815 ac_cv_prog_CC="$CC" # Let the user override the test.
1817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1821 test -z "$as_dir" && as_dir=.
1822 for ac_exec_ext in '' $ac_executable_extensions; do
1823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1824 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1834 if test -n "$CC"; then
1835 echo "$as_me:$LINENO: result: $CC" >&5
1836 echo "${ECHO_T}$CC" >&6
1838 echo "$as_me:$LINENO: result: no" >&5
1839 echo "${ECHO_T}no" >&6
1842 test -n "$CC" && break
1845 if test -z "$CC"; then
1849 # Extract the first word of "$ac_prog", so it can be a program name with args.
1850 set dummy $ac_prog; ac_word=$2
1851 echo "$as_me:$LINENO: checking for $ac_word" >&5
1852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1853 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1854 echo $ECHO_N "(cached) $ECHO_C" >&6
1856 if test -n "$ac_ct_CC"; then
1857 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1863 test -z "$as_dir" && as_dir=.
1864 for ac_exec_ext in '' $ac_executable_extensions; do
1865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1866 ac_cv_prog_ac_ct_CC="$ac_prog"
1867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1875 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1876 if test -n "$ac_ct_CC"; then
1877 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1878 echo "${ECHO_T}$ac_ct_CC" >&6
1880 echo "$as_me:$LINENO: result: no" >&5
1881 echo "${ECHO_T}no" >&6
1884 test -n "$ac_ct_CC" && break
1893 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1894 See \`config.log' for more details." >&5
1895 echo "$as_me: error: no acceptable C compiler found in \$PATH
1896 See \`config.log' for more details." >&2;}
1897 { (exit 1); exit 1; }; }
1899 # Provide some information about the compiler.
1900 echo "$as_me:$LINENO:" \
1901 "checking for C compiler version" >&5
1902 ac_compiler=`set X $ac_compile; echo $2`
1903 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1904 (eval $ac_compiler --version </dev/null >&5) 2>&5
1906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1907 (exit $ac_status); }
1908 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1909 (eval $ac_compiler -v </dev/null >&5) 2>&5
1911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1912 (exit $ac_status); }
1913 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1914 (eval $ac_compiler -V </dev/null >&5) 2>&5
1916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1917 (exit $ac_status); }
1919 cat >conftest.$ac_ext <<_ACEOF
1922 cat confdefs.h >>conftest.$ac_ext
1923 cat >>conftest.$ac_ext <<_ACEOF
1924 /* end confdefs.h. */
1934 ac_clean_files_save=$ac_clean_files
1935 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1936 # Try to create an executable without -o first, disregard a.out.
1937 # It will help us diagnose broken compilers, and finding out an intuition
1939 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1940 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1941 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1942 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1943 (eval $ac_link_default) 2>&5
1945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946 (exit $ac_status); }; then
1947 # Find the output, starting from the most likely. This scheme is
1948 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1951 # Be careful to initialize this variable, since it used to be cached.
1952 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1954 # b.out is created by i960 compilers.
1955 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1957 test -f "$ac_file" || continue
1959 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1962 # This is the source file.
1965 # We found the default executable, but exeext='' is most
1969 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1970 # FIXME: I believe we export ac_cv_exeext for Libtool,
1971 # but it would be cool to find out if it's true. Does anybody
1972 # maintain Libtool? --akim.
1980 echo "$as_me: failed program was:" >&5
1981 sed 's/^/| /' conftest.$ac_ext >&5
1983 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1984 See \`config.log' for more details." >&5
1985 echo "$as_me: error: C compiler cannot create executables
1986 See \`config.log' for more details." >&2;}
1987 { (exit 77); exit 77; }; }
1990 ac_exeext=$ac_cv_exeext
1991 echo "$as_me:$LINENO: result: $ac_file" >&5
1992 echo "${ECHO_T}$ac_file" >&6
1994 # Check the compiler produces executables we can run. If not, either
1995 # the compiler is broken, or we cross compile.
1996 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1997 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1998 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1999 # If not cross compiling, check that we can run a simple program.
2000 if test "$cross_compiling" != yes; then
2001 if { ac_try='./$ac_file'
2002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006 (exit $ac_status); }; }; then
2009 if test "$cross_compiling" = maybe; then
2012 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2013 If you meant to cross compile, use \`--host'.
2014 See \`config.log' for more details." >&5
2015 echo "$as_me: error: cannot run C compiled programs.
2016 If you meant to cross compile, use \`--host'.
2017 See \`config.log' for more details." >&2;}
2018 { (exit 1); exit 1; }; }
2022 echo "$as_me:$LINENO: result: yes" >&5
2023 echo "${ECHO_T}yes" >&6
2025 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2026 ac_clean_files=$ac_clean_files_save
2027 # Check the compiler produces executables we can run. If not, either
2028 # the compiler is broken, or we cross compile.
2029 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2030 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2031 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2032 echo "${ECHO_T}$cross_compiling" >&6
2034 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2035 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2037 (eval $ac_link) 2>&5
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); }; then
2041 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2042 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2043 # work properly (i.e., refer to `conftest.exe'), while it won't with
2045 for ac_file in conftest.exe conftest conftest.*; do
2046 test -f "$ac_file" || continue
2048 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2049 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2056 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2057 See \`config.log' for more details." >&5
2058 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2059 See \`config.log' for more details." >&2;}
2060 { (exit 1); exit 1; }; }
2063 rm -f conftest$ac_cv_exeext
2064 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2065 echo "${ECHO_T}$ac_cv_exeext" >&6
2067 rm -f conftest.$ac_ext
2068 EXEEXT=$ac_cv_exeext
2070 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2071 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2072 if test "${ac_cv_objext+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2075 cat >conftest.$ac_ext <<_ACEOF
2078 cat confdefs.h >>conftest.$ac_ext
2079 cat >>conftest.$ac_ext <<_ACEOF
2080 /* end confdefs.h. */
2090 rm -f conftest.o conftest.obj
2091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2092 (eval $ac_compile) 2>&5
2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095 (exit $ac_status); }; then
2096 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2098 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2099 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2104 echo "$as_me: failed program was:" >&5
2105 sed 's/^/| /' conftest.$ac_ext >&5
2107 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2108 See \`config.log' for more details." >&5
2109 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2110 See \`config.log' for more details." >&2;}
2111 { (exit 1); exit 1; }; }
2114 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2116 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2117 echo "${ECHO_T}$ac_cv_objext" >&6
2118 OBJEXT=$ac_cv_objext
2120 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2121 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2122 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2123 echo $ECHO_N "(cached) $ECHO_C" >&6
2125 cat >conftest.$ac_ext <<_ACEOF
2128 cat confdefs.h >>conftest.$ac_ext
2129 cat >>conftest.$ac_ext <<_ACEOF
2130 /* end confdefs.h. */
2143 rm -f conftest.$ac_objext
2144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2145 (eval $ac_compile) 2>conftest.er1
2147 grep -v '^ *+' conftest.er1 >conftest.err
2149 cat conftest.err >&5
2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151 (exit $ac_status); } &&
2152 { ac_try='test -z "$ac_c_werror_flag"
2153 || test ! -s conftest.err'
2154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }; } &&
2159 { ac_try='test -s conftest.$ac_objext'
2160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); }; }; then
2167 echo "$as_me: failed program was:" >&5
2168 sed 's/^/| /' conftest.$ac_ext >&5
2172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2173 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2176 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2177 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2178 GCC=`test $ac_compiler_gnu = yes && echo yes`
2179 ac_test_CFLAGS=${CFLAGS+set}
2180 ac_save_CFLAGS=$CFLAGS
2182 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2183 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2184 if test "${ac_cv_prog_cc_g+set}" = set; then
2185 echo $ECHO_N "(cached) $ECHO_C" >&6
2187 cat >conftest.$ac_ext <<_ACEOF
2190 cat confdefs.h >>conftest.$ac_ext
2191 cat >>conftest.$ac_ext <<_ACEOF
2192 /* end confdefs.h. */
2202 rm -f conftest.$ac_objext
2203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2204 (eval $ac_compile) 2>conftest.er1
2206 grep -v '^ *+' conftest.er1 >conftest.err
2208 cat conftest.err >&5
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); } &&
2211 { ac_try='test -z "$ac_c_werror_flag"
2212 || test ! -s conftest.err'
2213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217 (exit $ac_status); }; } &&
2218 { ac_try='test -s conftest.$ac_objext'
2219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); }; }; then
2226 echo "$as_me: failed program was:" >&5
2227 sed 's/^/| /' conftest.$ac_ext >&5
2231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2233 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2234 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2235 if test "$ac_test_CFLAGS" = set; then
2236 CFLAGS=$ac_save_CFLAGS
2237 elif test $ac_cv_prog_cc_g = yes; then
2238 if test "$GCC" = yes; then
2244 if test "$GCC" = yes; then
2250 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2251 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2252 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2253 echo $ECHO_N "(cached) $ECHO_C" >&6
2255 ac_cv_prog_cc_stdc=no
2257 cat >conftest.$ac_ext <<_ACEOF
2260 cat confdefs.h >>conftest.$ac_ext
2261 cat >>conftest.$ac_ext <<_ACEOF
2262 /* end confdefs.h. */
2265 #include <sys/types.h>
2266 #include <sys/stat.h>
2267 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2268 struct buf { int x; };
2269 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2270 static char *e (p, i)
2276 static char *f (char * (*g) (char **, int), char **p, ...)
2281 s = g (p, va_arg (v,int));
2286 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2287 function prototypes and stuff, but not '\xHH' hex character constants.
2288 These don't provoke an error unfortunately, instead are silently treated
2289 as 'x'. The following induces an error, until -std1 is added to get
2290 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2291 array size at least. It's necessary to write '\x00'==0 to get something
2292 that's true only with -std1. */
2293 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2295 int test (int i, double x);
2296 struct s1 {int (*f) (int a);};
2297 struct s2 {int (*f) (double a);};
2298 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2304 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2309 # Don't try gcc -ansi; that turns off useful extensions and
2310 # breaks some systems' header files.
2311 # AIX -qlanglvl=ansi
2312 # Ultrix and OSF/1 -std1
2313 # HP-UX 10.20 and later -Ae
2314 # HP-UX older versions -Aa -D_HPUX_SOURCE
2315 # SVR4 -Xc -D__EXTENSIONS__
2316 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2318 CC="$ac_save_CC $ac_arg"
2319 rm -f conftest.$ac_objext
2320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2321 (eval $ac_compile) 2>conftest.er1
2323 grep -v '^ *+' conftest.er1 >conftest.err
2325 cat conftest.err >&5
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); } &&
2328 { ac_try='test -z "$ac_c_werror_flag"
2329 || test ! -s conftest.err'
2330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); }; } &&
2335 { ac_try='test -s conftest.$ac_objext'
2336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }; }; then
2341 ac_cv_prog_cc_stdc=$ac_arg
2344 echo "$as_me: failed program was:" >&5
2345 sed 's/^/| /' conftest.$ac_ext >&5
2348 rm -f conftest.err conftest.$ac_objext
2350 rm -f conftest.$ac_ext conftest.$ac_objext
2355 case "x$ac_cv_prog_cc_stdc" in
2357 echo "$as_me:$LINENO: result: none needed" >&5
2358 echo "${ECHO_T}none needed" >&6 ;;
2360 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2361 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2362 CC="$CC $ac_cv_prog_cc_stdc" ;;
2365 # Some people use a C++ compiler to compile C. Since we use `exit',
2366 # in C++ we need to declare it. In case someone uses the same compiler
2367 # for both compiling C and C++ we need to have the C++ compiler decide
2368 # the declaration of exit, since it's the most demanding environment.
2369 cat >conftest.$ac_ext <<_ACEOF
2374 rm -f conftest.$ac_objext
2375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2376 (eval $ac_compile) 2>conftest.er1
2378 grep -v '^ *+' conftest.er1 >conftest.err
2380 cat conftest.err >&5
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); } &&
2383 { ac_try='test -z "$ac_c_werror_flag"
2384 || test ! -s conftest.err'
2385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; } &&
2390 { ac_try='test -s conftest.$ac_objext'
2391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }; }; then
2396 for ac_declaration in \
2398 'extern "C" void std::exit (int) throw (); using std::exit;' \
2399 'extern "C" void std::exit (int); using std::exit;' \
2400 'extern "C" void exit (int) throw ();' \
2401 'extern "C" void exit (int);' \
2404 cat >conftest.$ac_ext <<_ACEOF
2407 cat confdefs.h >>conftest.$ac_ext
2408 cat >>conftest.$ac_ext <<_ACEOF
2409 /* end confdefs.h. */
2420 rm -f conftest.$ac_objext
2421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2422 (eval $ac_compile) 2>conftest.er1
2424 grep -v '^ *+' conftest.er1 >conftest.err
2426 cat conftest.err >&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); } &&
2429 { ac_try='test -z "$ac_c_werror_flag"
2430 || test ! -s conftest.err'
2431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }; } &&
2436 { ac_try='test -s conftest.$ac_objext'
2437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); }; }; then
2444 echo "$as_me: failed program was:" >&5
2445 sed 's/^/| /' conftest.$ac_ext >&5
2449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2450 cat >conftest.$ac_ext <<_ACEOF
2453 cat confdefs.h >>conftest.$ac_ext
2454 cat >>conftest.$ac_ext <<_ACEOF
2455 /* end confdefs.h. */
2465 rm -f conftest.$ac_objext
2466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2467 (eval $ac_compile) 2>conftest.er1
2469 grep -v '^ *+' conftest.er1 >conftest.err
2471 cat conftest.err >&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); } &&
2474 { ac_try='test -z "$ac_c_werror_flag"
2475 || test ! -s conftest.err'
2476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; } &&
2481 { ac_try='test -s conftest.$ac_objext'
2482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }; }; then
2489 echo "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.$ac_ext >&5
2493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2496 if test -n "$ac_declaration"; then
2497 echo '#ifdef __cplusplus' >>confdefs.h
2498 echo $ac_declaration >>confdefs.h
2499 echo '#endif' >>confdefs.h
2503 echo "$as_me: failed program was:" >&5
2504 sed 's/^/| /' conftest.$ac_ext >&5
2507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2509 ac_cpp='$CPP $CPPFLAGS'
2510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2515 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2516 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2517 if test "${ac_cv_search_strerror+set}" = set; then
2518 echo $ECHO_N "(cached) $ECHO_C" >&6
2520 ac_func_search_save_LIBS=$LIBS
2521 ac_cv_search_strerror=no
2522 cat >conftest.$ac_ext <<_ACEOF
2525 cat confdefs.h >>conftest.$ac_ext
2526 cat >>conftest.$ac_ext <<_ACEOF
2527 /* end confdefs.h. */
2529 /* Override any gcc2 internal prototype to avoid an error. */
2533 /* We use char because int might match the return type of a gcc2
2534 builtin and then its argument prototype would still apply. */
2544 rm -f conftest.$ac_objext conftest$ac_exeext
2545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2546 (eval $ac_link) 2>conftest.er1
2548 grep -v '^ *+' conftest.er1 >conftest.err
2550 cat conftest.err >&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); } &&
2553 { ac_try='test -z "$ac_c_werror_flag"
2554 || test ! -s conftest.err'
2555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; } &&
2560 { ac_try='test -s conftest$ac_exeext'
2561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; }; then
2566 ac_cv_search_strerror="none required"
2568 echo "$as_me: failed program was:" >&5
2569 sed 's/^/| /' conftest.$ac_ext >&5
2572 rm -f conftest.err conftest.$ac_objext \
2573 conftest$ac_exeext conftest.$ac_ext
2574 if test "$ac_cv_search_strerror" = no; then
2575 for ac_lib in cposix; do
2576 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2577 cat >conftest.$ac_ext <<_ACEOF
2580 cat confdefs.h >>conftest.$ac_ext
2581 cat >>conftest.$ac_ext <<_ACEOF
2582 /* end confdefs.h. */
2584 /* Override any gcc2 internal prototype to avoid an error. */
2588 /* We use char because int might match the return type of a gcc2
2589 builtin and then its argument prototype would still apply. */
2599 rm -f conftest.$ac_objext conftest$ac_exeext
2600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2601 (eval $ac_link) 2>conftest.er1
2603 grep -v '^ *+' conftest.er1 >conftest.err
2605 cat conftest.err >&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); } &&
2608 { ac_try='test -z "$ac_c_werror_flag"
2609 || test ! -s conftest.err'
2610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; } &&
2615 { ac_try='test -s conftest$ac_exeext'
2616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; }; then
2621 ac_cv_search_strerror="-l$ac_lib"
2624 echo "$as_me: failed program was:" >&5
2625 sed 's/^/| /' conftest.$ac_ext >&5
2628 rm -f conftest.err conftest.$ac_objext \
2629 conftest$ac_exeext conftest.$ac_ext
2632 LIBS=$ac_func_search_save_LIBS
2634 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2635 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2636 if test "$ac_cv_search_strerror" != no; then
2637 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2642 # We currently only use the version number for the name of any shared
2643 # library. For user convenience, we always use the same version
2644 # number that BFD is using.
2645 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2647 am__api_version="1.9"
2648 # Find a good install program. We prefer a C program (faster),
2649 # so one script is as good as another. But avoid the broken or
2650 # incompatible versions:
2651 # SysV /etc/install, /usr/sbin/install
2652 # SunOS /usr/etc/install
2653 # IRIX /sbin/install
2655 # AmigaOS /C/install, which installs bootblocks on floppy discs
2656 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2657 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2658 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2659 # OS/2's system install, which has a completely different semantic
2660 # ./install, which can be erroneously created by make from ./install.sh.
2661 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2662 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2663 if test -z "$INSTALL"; then
2664 if test "${ac_cv_path_install+set}" = set; then
2665 echo $ECHO_N "(cached) $ECHO_C" >&6
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671 test -z "$as_dir" && as_dir=.
2672 # Account for people who put trailing slashes in PATH elements.
2674 ./ | .// | /cC/* | \
2675 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2676 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2679 # OSF1 and SCO ODT 3.0 have their own names for install.
2680 # Don't use installbsd from OSF since it installs stuff as root
2682 for ac_prog in ginstall scoinst install; do
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2685 if test $ac_prog = install &&
2686 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2687 # AIX install. It has an incompatible calling convention.
2689 elif test $ac_prog = install &&
2690 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2691 # program-specific install script used by HP pwplus--don't use.
2694 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2706 if test "${ac_cv_path_install+set}" = set; then
2707 INSTALL=$ac_cv_path_install
2709 # As a last resort, use the slow shell script. We don't cache a
2710 # path for INSTALL within a source directory, because that will
2711 # break other packages using the cache if that directory is
2712 # removed, or if the path is relative.
2713 INSTALL=$ac_install_sh
2716 echo "$as_me:$LINENO: result: $INSTALL" >&5
2717 echo "${ECHO_T}$INSTALL" >&6
2719 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2720 # It thinks the first close brace ends the variable substitution.
2721 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2723 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2725 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2727 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2728 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2731 echo timestamp > conftest.file
2732 # Do `set' in a subshell so we don't clobber the current shell's
2733 # arguments. Must try -L first in case configure is actually a
2734 # symlink; some systems play weird games with the mod time of symlinks
2735 # (eg FreeBSD returns the mod time of the symlink's containing
2738 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2739 if test "$*" = "X"; then
2741 set X `ls -t $srcdir/configure conftest.file`
2744 if test "$*" != "X $srcdir/configure conftest.file" \
2745 && test "$*" != "X conftest.file $srcdir/configure"; then
2747 # If neither matched, then we have a broken ls. This can happen
2748 # if, for instance, CONFIG_SHELL is bash and it inherits a
2749 # broken ls alias from the environment. This has actually
2750 # happened. Such a system could not be considered "sane".
2751 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2752 alias in your environment" >&5
2753 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2754 alias in your environment" >&2;}
2755 { (exit 1); exit 1; }; }
2758 test "$2" = conftest.file
2764 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2765 Check your system clock" >&5
2766 echo "$as_me: error: newly created file is older than distributed files!
2767 Check your system clock" >&2;}
2768 { (exit 1); exit 1; }; }
2770 echo "$as_me:$LINENO: result: yes" >&5
2771 echo "${ECHO_T}yes" >&6
2772 test "$program_prefix" != NONE &&
2773 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2774 # Use a double $ so make ignores it.
2775 test "$program_suffix" != NONE &&
2776 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2777 # Double any \ or $. echo might interpret backslashes.
2778 # By default was `s,x,x', remove it if useless.
2779 cat <<\_ACEOF >conftest.sed
2780 s/[\\$]/&&/g;s/;s,x,x,$//
2782 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2785 # expand $ac_aux_dir to an absolute path
2786 am_aux_dir=`cd $ac_aux_dir && pwd`
2788 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2789 # Use eval to expand $SHELL
2790 if eval "$MISSING --run true"; then
2791 am_missing_run="$MISSING --run "
2794 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2795 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2798 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2799 # We used to keeping the `.' as first argument, in order to
2800 # allow $(mkdir_p) to be used without argument. As in
2801 # $(mkdir_p) $(somedir)
2802 # where $(somedir) is conditionally defined. However this is wrong
2804 # 1. if the package is installed by a user who cannot write `.'
2805 # make install will fail,
2806 # 2. the above comment should most certainly read
2807 # $(mkdir_p) $(DESTDIR)$(somedir)
2808 # so it does not work when $(somedir) is undefined and
2809 # $(DESTDIR) is not.
2810 # To support the latter case, we have to write
2811 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2812 # so the `.' trick is pointless.
2813 mkdir_p='mkdir -p --'
2815 # On NextStep and OpenStep, the `mkdir' command does not
2816 # recognize any option. It will interpret all options as
2817 # directories to create, and then abort because `.' already
2819 for d in ./-p ./--version;
2821 test -d $d && rmdir $d
2823 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2824 if test -f "$ac_aux_dir/mkinstalldirs"; then
2825 mkdir_p='$(mkinstalldirs)'
2827 mkdir_p='$(install_sh) -d'
2831 for ac_prog in gawk mawk nawk awk
2833 # Extract the first word of "$ac_prog", so it can be a program name with args.
2834 set dummy $ac_prog; ac_word=$2
2835 echo "$as_me:$LINENO: checking for $ac_word" >&5
2836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2837 if test "${ac_cv_prog_AWK+set}" = set; then
2838 echo $ECHO_N "(cached) $ECHO_C" >&6
2840 if test -n "$AWK"; then
2841 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 test -z "$as_dir" && as_dir=.
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2850 ac_cv_prog_AWK="$ac_prog"
2851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2860 if test -n "$AWK"; then
2861 echo "$as_me:$LINENO: result: $AWK" >&5
2862 echo "${ECHO_T}$AWK" >&6
2864 echo "$as_me:$LINENO: result: no" >&5
2865 echo "${ECHO_T}no" >&6
2868 test -n "$AWK" && break
2871 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2872 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2873 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2874 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2875 echo $ECHO_N "(cached) $ECHO_C" >&6
2877 cat >conftest.make <<\_ACEOF
2879 @echo 'ac_maketemp="$(MAKE)"'
2881 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2882 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2883 if test -n "$ac_maketemp"; then
2884 eval ac_cv_prog_make_${ac_make}_set=yes
2886 eval ac_cv_prog_make_${ac_make}_set=no
2890 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2891 echo "$as_me:$LINENO: result: yes" >&5
2892 echo "${ECHO_T}yes" >&6
2895 echo "$as_me:$LINENO: result: no" >&5
2896 echo "${ECHO_T}no" >&6
2897 SET_MAKE="MAKE=${MAKE-make}"
2900 rm -rf .tst 2>/dev/null
2901 mkdir .tst 2>/dev/null
2902 if test -d .tst; then
2907 rmdir .tst 2>/dev/null
2909 DEPDIR="${am__leading_dot}deps"
2911 ac_config_commands="$ac_config_commands depfiles"
2914 am_make=${MAKE-make}
2915 cat > confinc << 'END'
2920 # If we don't find an include directive, just comment out the code.
2921 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2922 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2926 # First try GNU make style include.
2927 echo "include confinc" > confmf
2928 # We grep out `Entering directory' and `Leaving directory'
2929 # messages which can occur if `w' ends up in MAKEFLAGS.
2930 # In particular we don't look at `^make:' because GNU make might
2931 # be invoked under some other name (usually "gmake"), in which
2932 # case it prints its new name instead of `make'.
2933 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2938 # Now try BSD make style include.
2939 if test "$am__include" = "#"; then
2940 echo '.include "confinc"' > confmf
2941 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2942 am__include=.include
2949 echo "$as_me:$LINENO: result: $_am_result" >&5
2950 echo "${ECHO_T}$_am_result" >&6
2951 rm -f confinc confmf
2953 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2954 if test "${enable_dependency_tracking+set}" = set; then
2955 enableval="$enable_dependency_tracking"
2958 if test "x$enable_dependency_tracking" != xno; then
2959 am_depcomp="$ac_aux_dir/depcomp"
2964 if test "x$enable_dependency_tracking" != xno; then
2974 # test to see if srcdir already configured
2975 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2976 test -f $srcdir/config.status; then
2977 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2978 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2979 { (exit 1); exit 1; }; }
2982 # test whether we have cygpath
2983 if test -z "$CYGPATH_W"; then
2984 if (cygpath --version) >/dev/null 2>/dev/null; then
2985 CYGPATH_W='cygpath -w'
2992 # Define the identity of the package.
2994 VERSION=${BFD_VERSION}
2997 cat >>confdefs.h <<_ACEOF
2998 #define PACKAGE "$PACKAGE"
3002 cat >>confdefs.h <<_ACEOF
3003 #define VERSION "$VERSION"
3006 # Some tools Automake needs.
3008 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3011 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3014 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3017 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3020 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3022 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3024 # Installed binaries are usually stripped using `strip' when the user
3025 # run `make install-strip'. However `strip' might not be the right
3026 # tool to use in cross-compilation environments, therefore Automake
3027 # will honor the `STRIP' environment variable to overrule this program.
3028 if test "$cross_compiling" != no; then
3029 if test -n "$ac_tool_prefix"; then
3030 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3031 set dummy ${ac_tool_prefix}strip; ac_word=$2
3032 echo "$as_me:$LINENO: checking for $ac_word" >&5
3033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3034 if test "${ac_cv_prog_STRIP+set}" = set; then
3035 echo $ECHO_N "(cached) $ECHO_C" >&6
3037 if test -n "$STRIP"; then
3038 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 test -z "$as_dir" && as_dir=.
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3047 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3056 STRIP=$ac_cv_prog_STRIP
3057 if test -n "$STRIP"; then
3058 echo "$as_me:$LINENO: result: $STRIP" >&5
3059 echo "${ECHO_T}$STRIP" >&6
3061 echo "$as_me:$LINENO: result: no" >&5
3062 echo "${ECHO_T}no" >&6
3066 if test -z "$ac_cv_prog_STRIP"; then
3068 # Extract the first word of "strip", so it can be a program name with args.
3069 set dummy strip; ac_word=$2
3070 echo "$as_me:$LINENO: checking for $ac_word" >&5
3071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3072 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3073 echo $ECHO_N "(cached) $ECHO_C" >&6
3075 if test -n "$ac_ct_STRIP"; then
3076 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082 test -z "$as_dir" && as_dir=.
3083 for ac_exec_ext in '' $ac_executable_extensions; do
3084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3085 ac_cv_prog_ac_ct_STRIP="strip"
3086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3092 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3095 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3096 if test -n "$ac_ct_STRIP"; then
3097 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3098 echo "${ECHO_T}$ac_ct_STRIP" >&6
3100 echo "$as_me:$LINENO: result: no" >&5
3101 echo "${ECHO_T}no" >&6
3106 STRIP="$ac_cv_prog_STRIP"
3110 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3112 # We need awk for the "check" target. The system "awk" is bad on
3114 # Always define AMTAR for backward compatibility.
3116 AMTAR=${AMTAR-"${am_missing_run}tar"}
3118 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3123 depcc="$CC" am_compiler_list=
3125 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3126 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3127 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
3130 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3131 # We make a subdir and do the tests there. Otherwise we can end up
3132 # making bogus files that we don't know about and never remove. For
3133 # instance it was reported that on HP-UX the gcc test will end up
3134 # making a dummy file named `D' -- because `-MD' means `put the output
3137 # Copy depcomp to subdir because otherwise we won't find it if we're
3138 # using a relative directory.
3139 cp "$am_depcomp" conftest.dir
3141 # We will build objects and dependencies in a subdirectory because
3142 # it helps to detect inapplicable dependency modes. For instance
3143 # both Tru64's cc and ICC support -MD to output dependencies as a
3144 # side effect of compilation, but ICC will put the dependencies in
3145 # the current directory while Tru64 will put them in the object
3149 am_cv_CC_dependencies_compiler_type=none
3150 if test "$am_compiler_list" = ""; then
3151 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3153 for depmode in $am_compiler_list; do
3154 # Setup a source with many dependencies, because some compilers
3155 # like to wrap large dependency lists on column 80 (with \), and
3156 # we should not choose a depcomp mode which is confused by this.
3158 # We need to recreate these files for each test, as the compiler may
3159 # overwrite some of them when testing with obscure command lines.
3160 # This happens at least with the AIX C compiler.
3162 for i in 1 2 3 4 5 6; do
3163 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3164 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3165 # Solaris 8's {/usr,}/bin/sh.
3166 touch sub/conftst$i.h
3168 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3172 # after this tag, mechanisms are not by side-effect, so they'll
3173 # only be used when explicitly requested
3174 if test "x$enable_dependency_tracking" = xyes; then
3182 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3183 # mode. It turns out that the SunPro C++ compiler does not properly
3184 # handle `-M -o', and we need to detect this.
3185 if depmode=$depmode \
3186 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3187 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3188 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3189 >/dev/null 2>conftest.err &&
3190 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3191 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3192 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3193 # icc doesn't choke on unknown options, it will just issue warnings
3194 # or remarks (even with -Werror). So we grep stderr for any message
3195 # that says an option was ignored or not supported.
3196 # When given -MP, icc 7.0 and 7.1 complain thusly:
3197 # icc: Command line warning: ignoring option '-M'; no argument required
3198 # The diagnosis changed in icc 8.0:
3199 # icc: Command line remark: option '-MP' not supported
3200 if (grep 'ignoring option' conftest.err ||
3201 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3202 am_cv_CC_dependencies_compiler_type=$depmode
3211 am_cv_CC_dependencies_compiler_type=none
3215 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3216 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3217 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3222 test "x$enable_dependency_tracking" != xno \
3223 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3225 am__fastdepCC_FALSE='#'
3227 am__fastdepCC_TRUE='#'
3228 am__fastdepCC_FALSE=
3234 if test -n "$ac_tool_prefix"; then
3235 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3236 set dummy ${ac_tool_prefix}ar; ac_word=$2
3237 echo "$as_me:$LINENO: checking for $ac_word" >&5
3238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3239 if test "${ac_cv_prog_AR+set}" = set; then
3240 echo $ECHO_N "(cached) $ECHO_C" >&6
3242 if test -n "$AR"; then
3243 ac_cv_prog_AR="$AR" # Let the user override the test.
3245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3249 test -z "$as_dir" && as_dir=.
3250 for ac_exec_ext in '' $ac_executable_extensions; do
3251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3252 ac_cv_prog_AR="${ac_tool_prefix}ar"
3253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3262 if test -n "$AR"; then
3263 echo "$as_me:$LINENO: result: $AR" >&5
3264 echo "${ECHO_T}$AR" >&6
3266 echo "$as_me:$LINENO: result: no" >&5
3267 echo "${ECHO_T}no" >&6
3271 if test -z "$ac_cv_prog_AR"; then
3273 # Extract the first word of "ar", so it can be a program name with args.
3274 set dummy ar; ac_word=$2
3275 echo "$as_me:$LINENO: checking for $ac_word" >&5
3276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3277 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3280 if test -n "$ac_ct_AR"; then
3281 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287 test -z "$as_dir" && as_dir=.
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3290 ac_cv_prog_ac_ct_AR="ar"
3291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3299 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3300 if test -n "$ac_ct_AR"; then
3301 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3302 echo "${ECHO_T}$ac_ct_AR" >&6
3304 echo "$as_me:$LINENO: result: no" >&5
3305 echo "${ECHO_T}no" >&6
3313 if test -n "$ac_tool_prefix"; then
3314 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3315 set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 if test -n "$RANLIB"; then
3322 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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_RANLIB="${ac_tool_prefix}ranlib"
3332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3340 RANLIB=$ac_cv_prog_RANLIB
3341 if test -n "$RANLIB"; then
3342 echo "$as_me:$LINENO: result: $RANLIB" >&5
3343 echo "${ECHO_T}$RANLIB" >&6
3345 echo "$as_me:$LINENO: result: no" >&5
3346 echo "${ECHO_T}no" >&6
3350 if test -z "$ac_cv_prog_RANLIB"; then
3351 ac_ct_RANLIB=$RANLIB
3352 # Extract the first word of "ranlib", so it can be a program name with args.
3353 set dummy ranlib; ac_word=$2
3354 echo "$as_me:$LINENO: checking for $ac_word" >&5
3355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3356 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3359 if test -n "$ac_ct_RANLIB"; then
3360 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366 test -z "$as_dir" && as_dir=.
3367 for ac_exec_ext in '' $ac_executable_extensions; do
3368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3369 ac_cv_prog_ac_ct_RANLIB="ranlib"
3370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3376 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3379 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3380 if test -n "$ac_ct_RANLIB"; then
3381 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3382 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3384 echo "$as_me:$LINENO: result: no" >&5
3385 echo "${ECHO_T}no" >&6
3388 RANLIB=$ac_ct_RANLIB
3390 RANLIB="$ac_cv_prog_RANLIB"
3394 # Check whether --enable-shared or --disable-shared was given.
3395 if test "${enable_shared+set}" = set; then
3396 enableval="$enable_shared"
3397 p=${PACKAGE-default}
3399 yes) enable_shared=yes ;;
3400 no) enable_shared=no ;;
3403 # Look at the argument we got. We use all the common list separators.
3404 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3405 for pkg in $enableval; do
3407 if test "X$pkg" = "X$p"; then
3428 macro_version='2.1a'
3429 macro_revision='1.2435'
3442 ltmain="$ac_aux_dir/ltmain.sh"
3453 # Check whether --enable-static or --disable-static was given.
3454 if test "${enable_static+set}" = set; then
3455 enableval="$enable_static"
3456 p=${PACKAGE-default}
3458 yes) enable_static=yes ;;
3459 no) enable_static=no ;;
3462 # Look at the argument we got. We use all the common list separators.
3463 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3464 for pkg in $enableval; do
3466 if test "X$pkg" = "X$p"; then
3485 # Check whether --with-pic or --without-pic was given.
3486 if test "${with_pic+set}" = set; then
3493 test -z "$pic_mode" && pic_mode=default
3501 # Check whether --enable-fast-install or --disable-fast-install was given.
3502 if test "${enable_fast_install+set}" = set; then
3503 enableval="$enable_fast_install"
3504 p=${PACKAGE-default}
3506 yes) enable_fast_install=yes ;;
3507 no) enable_fast_install=no ;;
3509 enable_fast_install=no
3510 # Look at the argument we got. We use all the common list separators.
3511 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3512 for pkg in $enableval; do
3514 if test "X$pkg" = "X$p"; then
3515 enable_fast_install=yes
3522 enable_fast_install=yes
3532 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3533 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3534 if test "${lt_cv_path_SED+set}" = set; then
3535 echo $ECHO_N "(cached) $ECHO_C" >&6
3537 # Loop through the user's path and test for sed and gsed.
3538 # Then use that list of sed's as ones to test for truncation.
3539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3543 test -z "$as_dir" && as_dir=.
3544 for lt_ac_prog in sed gsed; do
3545 for ac_exec_ext in '' $ac_executable_extensions; do
3546 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3547 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3555 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3556 # along with /bin/sed that truncates output.
3557 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3558 test ! -f $lt_ac_sed && continue
3559 cat /dev/null > conftest.in
3561 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3562 # Check for GNU sed and select it if it is found.
3563 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3564 lt_cv_path_SED=$lt_ac_sed
3568 cat conftest.in conftest.in >conftest.tmp
3569 mv conftest.tmp conftest.in
3570 cp conftest.in conftest.nl
3572 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3573 cmp -s conftest.out conftest.nl || break
3574 # 10000 chars as input seems more than enough
3575 test $lt_ac_count -gt 10 && break
3576 lt_ac_count=`expr $lt_ac_count + 1`
3577 if test $lt_ac_count -gt $lt_ac_max; then
3578 lt_ac_max=$lt_ac_count
3579 lt_cv_path_SED=$lt_ac_sed
3588 echo "$as_me:$LINENO: result: $SED" >&5
3589 echo "${ECHO_T}$SED" >&6
3591 test -z "$SED" && SED=sed
3592 Xsed="$SED -e 1s/^X//"
3604 echo "$as_me:$LINENO: checking for egrep" >&5
3605 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3606 if test "${ac_cv_prog_egrep+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3610 then ac_cv_prog_egrep='grep -E'
3611 else ac_cv_prog_egrep='egrep'
3614 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3615 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3616 EGREP=$ac_cv_prog_egrep
3619 echo "$as_me:$LINENO: checking for fgrep" >&5
3620 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3621 if test "${ac_cv_prog_fgrep+set}" = set; then
3622 echo $ECHO_N "(cached) $ECHO_C" >&6
3624 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3625 then ac_cv_prog_fgrep='grep -F'
3626 else ac_cv_prog_fgrep='fgrep'
3629 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3630 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3631 FGREP=$ac_cv_prog_fgrep
3634 test -z "$GREP" && GREP=grep
3654 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3655 if test "${with_gnu_ld+set}" = set; then
3656 withval="$with_gnu_ld"
3657 test "$withval" = no || with_gnu_ld=yes
3662 if test "$GCC" = yes; then
3663 # Check if gcc -print-prog-name=ld gives a path.
3664 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3665 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3668 # gcc leaves a trailing carriage return which upsets mingw
3669 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3671 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3674 # Accept absolute paths.
3676 re_direlt='/[^/][^/]*/\.\./'
3677 # Canonicalize the pathname of ld
3678 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3679 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3680 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3682 test -z "$LD" && LD="$ac_prog"
3685 # If it fails, then pretend we aren't using GCC.
3689 # If it is relative, then search for the first ld in PATH.
3693 elif test "$with_gnu_ld" = yes; then
3694 echo "$as_me:$LINENO: checking for GNU ld" >&5
3695 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3697 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3698 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3700 if test "${lt_cv_path_LD+set}" = set; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6
3703 if test -z "$LD"; then
3704 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3705 for ac_dir in $PATH; do
3707 test -z "$ac_dir" && ac_dir=.
3708 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3709 lt_cv_path_LD="$ac_dir/$ac_prog"
3710 # Check to see if the program is GNU ld. I'd rather use --version,
3711 # but apparently some variants of GNU ld only accept -v.
3712 # Break only if it was the GNU/non-GNU ld that we prefer.
3713 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3714 *GNU* | *'with BFD'*)
3715 test "$with_gnu_ld" != no && break
3718 test "$with_gnu_ld" != yes && break
3725 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3730 if test -n "$LD"; then
3731 echo "$as_me:$LINENO: result: $LD" >&5
3732 echo "${ECHO_T}$LD" >&6
3734 echo "$as_me:$LINENO: result: no" >&5
3735 echo "${ECHO_T}no" >&6
3737 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3738 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3739 { (exit 1); exit 1; }; }
3740 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3741 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3742 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3745 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3746 case `$LD -v 2>&1 </dev/null` in
3747 *GNU* | *'with BFD'*)
3748 lt_cv_prog_gnu_ld=yes
3751 lt_cv_prog_gnu_ld=no
3755 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3756 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3757 with_gnu_ld=$lt_cv_prog_gnu_ld
3768 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3769 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
3770 if test "${lt_cv_path_NM+set}" = set; then
3771 echo $ECHO_N "(cached) $ECHO_C" >&6
3773 if test -n "$NM"; then
3774 # Let the user override the test.
3777 lt_nm_to_check="${ac_tool_prefix}nm"
3778 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3779 lt_nm_to_check="$lt_nm_to_check nm"
3781 for lt_tmp_nm in $lt_nm_to_check; do
3782 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3783 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3785 test -z "$ac_dir" && ac_dir=.
3786 tmp_nm="$ac_dir/$lt_tmp_nm"
3787 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3788 # Check to see if the nm accepts a BSD-compat flag.
3789 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3790 # nm: unknown option "B" ignored
3791 # Tru64's nm complains that /dev/null is an invalid object file
3792 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3793 */dev/null* | *'Invalid file or object type'*)
3794 lt_cv_path_NM="$tmp_nm -B"
3798 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3800 lt_cv_path_NM="$tmp_nm -p"
3804 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3805 continue # so that we can try to find one that supports BSD flags
3814 : ${lt_cv_path_NM=no}
3817 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3818 echo "${ECHO_T}$lt_cv_path_NM" >&6
3819 if test "$lt_cv_path_NM" != "no"; then
3822 # Didn't find any BSD compatible name lister, look for dumpbin.
3823 if test -n "$ac_tool_prefix"; then
3824 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3826 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3827 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3828 echo "$as_me:$LINENO: checking for $ac_word" >&5
3829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3830 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3831 echo $ECHO_N "(cached) $ECHO_C" >&6
3833 if test -n "$DUMPBIN"; then
3834 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3840 test -z "$as_dir" && as_dir=.
3841 for ac_exec_ext in '' $ac_executable_extensions; do
3842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3843 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3852 DUMPBIN=$ac_cv_prog_DUMPBIN
3853 if test -n "$DUMPBIN"; then
3854 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3855 echo "${ECHO_T}$DUMPBIN" >&6
3857 echo "$as_me:$LINENO: result: no" >&5
3858 echo "${ECHO_T}no" >&6
3861 test -n "$DUMPBIN" && break
3864 if test -z "$DUMPBIN"; then
3865 ac_ct_DUMPBIN=$DUMPBIN
3866 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3868 # Extract the first word of "$ac_prog", so it can be a program name with args.
3869 set dummy $ac_prog; ac_word=$2
3870 echo "$as_me:$LINENO: checking for $ac_word" >&5
3871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3872 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3873 echo $ECHO_N "(cached) $ECHO_C" >&6
3875 if test -n "$ac_ct_DUMPBIN"; then
3876 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882 test -z "$as_dir" && as_dir=.
3883 for ac_exec_ext in '' $ac_executable_extensions; do
3884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3885 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3894 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3895 if test -n "$ac_ct_DUMPBIN"; then
3896 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3897 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
3899 echo "$as_me:$LINENO: result: no" >&5
3900 echo "${ECHO_T}no" >&6
3903 test -n "$ac_ct_DUMPBIN" && break
3905 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
3907 DUMPBIN=$ac_ct_DUMPBIN
3911 if test "$DUMPBIN" != ":"; then
3915 test -z "$NM" && NM=nm
3922 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3923 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
3924 if test "${lt_cv_nm_interface+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3927 lt_cv_nm_interface="BSD nm"
3928 echo "int some_variable = 0;" > conftest.$ac_ext
3929 (eval echo "\"\$as_me:3929: $ac_compile\"" >&5)
3930 (eval "$ac_compile" 2>conftest.err)
3931 cat conftest.err >&5
3932 (eval echo "\"\$as_me:3932: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3933 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3934 cat conftest.err >&5
3935 (eval echo "\"\$as_me:3935: output\"" >&5)
3936 cat conftest.out >&5
3937 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3938 lt_cv_nm_interface="MS dumpbin"
3942 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3943 echo "${ECHO_T}$lt_cv_nm_interface" >&6
3945 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3946 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3948 if test "$LN_S" = "ln -s"; then
3949 echo "$as_me:$LINENO: result: yes" >&5
3950 echo "${ECHO_T}yes" >&6
3952 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3953 echo "${ECHO_T}no, using $LN_S" >&6
3956 # find the maximum length of command line arguments
3957 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3958 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3959 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3960 echo $ECHO_N "(cached) $ECHO_C" >&6
3967 # On DJGPP, this test can blow up pretty badly due to problems in libc
3968 # (any single argument exceeding 2000 bytes causes a buffer overrun
3969 # during glob expansion). Even if it were fixed, the result of this
3970 # check would be larger than it should be.
3971 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3975 # Under GNU Hurd, this test is not required because there is
3976 # no limit to the length of command line arguments.
3977 # Libtool will interpret -1 as no limit whatsoever
3978 lt_cv_sys_max_cmd_len=-1;
3982 # On Win9x/ME, this test blows up -- it succeeds, but takes
3983 # about 5 minutes as the teststring grows exponentially.
3984 # Worse, since 9x/ME are not pre-emptively multitasking,
3985 # you end up with a "frozen" computer, even though with patience
3986 # the test eventually succeeds (with a max line length of 256k).
3987 # Instead, let's just punt: use the minimum linelength reported by
3988 # all of the supported platforms: 8192 (on NT/2K/XP).
3989 lt_cv_sys_max_cmd_len=8192;
3993 # On AmigaOS with pdksh, this test takes hours, literally.
3994 # So we just punt and use a minimum line length of 8192.
3995 lt_cv_sys_max_cmd_len=8192;
3998 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3999 # This has been around since 386BSD, at least. Likely further.
4000 if test -x /sbin/sysctl; then
4001 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4002 elif test -x /usr/sbin/sysctl; then
4003 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4005 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4007 # And add a safety zone
4008 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4009 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4013 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4014 lt_cv_sys_max_cmd_len=196608
4018 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4019 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4020 # nice to cause kernel panics so lets avoid the loop below.
4021 # First set a reasonable default.
4022 lt_cv_sys_max_cmd_len=16384
4024 if test -x /sbin/sysconfig; then
4025 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4026 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4031 lt_cv_sys_max_cmd_len=102400
4033 sysv5* | sco5v6* | sysv4.2uw2*)
4034 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4035 if test -n "$kargmax"; then
4036 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4038 lt_cv_sys_max_cmd_len=32768
4042 # Make teststring a little bigger before we do anything with it.
4043 # a 1K string should be a reasonable start.
4044 for i in 1 2 3 4 5 6 7 8 ; do
4045 teststring=$teststring$teststring
4047 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4048 # If test is not a shell built-in, we'll probably end up computing a
4049 # maximum length that is only half of the actual maximum length, but
4051 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4052 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4053 test $i != 17 # 1/2 MB should be enough
4056 teststring=$teststring$teststring
4058 # Only check the string length outside the loop.
4059 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4061 # Add a significant safety factor because C++ compilers can tack on massive
4062 # amounts of additional arguments before passing them to the linker.
4063 # It appears as though 1/2 is a usable value.
4064 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4070 if test -n $lt_cv_sys_max_cmd_len ; then
4071 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4072 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4074 echo "$as_me:$LINENO: result: none" >&5
4075 echo "${ECHO_T}none" >&6
4077 max_cmd_len=$lt_cv_sys_max_cmd_len
4089 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4090 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4091 # Try some XSI features
4094 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4095 = c,a/b,, ) >/dev/null 2>&1 \
4097 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4098 echo "${ECHO_T}$xsi_shell" >&6
4101 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4102 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4104 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4106 && lt_shell_append=yes
4107 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4108 echo "${ECHO_T}$lt_shell_append" >&6
4111 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4121 # test EBCDIC or ASCII
4122 case `echo X|tr X '\101'` in
4123 A) # ASCII based system
4124 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4125 lt_SP2NL='tr \040 \012'
4126 lt_NL2SP='tr \015\012 \040\040'
4128 *) # EBCDIC based system
4129 lt_SP2NL='tr \100 \n'
4130 lt_NL2SP='tr \r\n \100\100'
4142 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4143 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4144 if test "${lt_cv_ld_reload_flag+set}" = set; then
4145 echo $ECHO_N "(cached) $ECHO_C" >&6
4147 lt_cv_ld_reload_flag='-r'
4149 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4150 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4151 reload_flag=$lt_cv_ld_reload_flag
4152 case $reload_flag in
4154 *) reload_flag=" $reload_flag" ;;
4156 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4159 if test "$GCC" = yes; then
4160 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4162 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4176 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4177 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4178 if test "${lt_cv_deplibs_check_method+set}" = set; then
4179 echo $ECHO_N "(cached) $ECHO_C" >&6
4181 lt_cv_file_magic_cmd='$MAGIC_CMD'
4182 lt_cv_file_magic_test_file=
4183 lt_cv_deplibs_check_method='unknown'
4184 # Need to set the preceding variable on all platforms that support
4185 # interlibrary dependencies.
4186 # 'none' -- dependencies not supported.
4187 # `unknown' -- same as none, but documents that we really don't know.
4188 # 'pass_all' -- all dependencies passed with no checks.
4189 # 'test_compile' -- check by making test program.
4190 # 'file_magic [[regex]]' -- check by looking for files in library path
4191 # which responds to the $file_magic_cmd with a given extended regex.
4192 # If you have `file' or equivalent on your system and you're not sure
4193 # whether `pass_all' will *always* work, you probably want this one.
4197 lt_cv_deplibs_check_method=pass_all
4201 lt_cv_deplibs_check_method=pass_all
4205 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4206 lt_cv_file_magic_cmd='/usr/bin/file -L'
4207 lt_cv_file_magic_test_file=/shlib/libc.so
4211 # func_win32_libid is a shell function defined in ltmain.sh
4212 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4213 lt_cv_file_magic_cmd='func_win32_libid'
4217 # Base MSYS/MinGW do not provide the 'file' command needed by
4218 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4219 # unless we find 'file', for example because we are cross-compiling.
4220 if ( file / ) >/dev/null 2>&1; then
4221 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4222 lt_cv_file_magic_cmd='func_win32_libid'
4224 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4225 lt_cv_file_magic_cmd='$OBJDUMP -f'
4229 darwin* | rhapsody*)
4230 lt_cv_deplibs_check_method=pass_all
4233 freebsd* | dragonfly*)
4234 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4237 # Not sure whether the presence of OpenBSD here was a mistake.
4238 # Let's accept both of them until this is cleared up.
4239 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4240 lt_cv_file_magic_cmd=/usr/bin/file
4241 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4245 lt_cv_deplibs_check_method=pass_all
4250 lt_cv_deplibs_check_method=pass_all
4253 hpux10.20* | hpux11*)
4254 lt_cv_file_magic_cmd=/usr/bin/file
4257 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4258 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4261 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]'
4262 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4265 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4266 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4272 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4273 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4276 irix5* | irix6* | nonstopux*)
4278 *-32|*"-32 ") libmagic=32-bit;;
4279 *-n32|*"-n32 ") libmagic=N32;;
4280 *-64|*"-64 ") libmagic=64-bit;;
4281 *) libmagic=never-match;;
4283 lt_cv_deplibs_check_method=pass_all
4286 # This must be Linux ELF.
4287 linux* | k*bsd*-gnu)
4288 lt_cv_deplibs_check_method=pass_all
4292 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4293 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4295 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4300 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4301 lt_cv_file_magic_cmd=/usr/bin/file
4302 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4306 lt_cv_deplibs_check_method=pass_all
4310 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4311 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4313 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4317 osf3* | osf4* | osf5*)
4318 lt_cv_deplibs_check_method=pass_all
4322 lt_cv_deplibs_check_method=pass_all
4326 lt_cv_deplibs_check_method=pass_all
4329 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4330 lt_cv_deplibs_check_method=pass_all
4334 case $host_vendor in
4336 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]'
4337 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4340 lt_cv_deplibs_check_method=pass_all
4343 lt_cv_file_magic_cmd='/bin/file'
4344 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4347 lt_cv_file_magic_cmd='/bin/file'
4348 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4349 lt_cv_file_magic_test_file=/lib/libc.so
4352 lt_cv_deplibs_check_method=pass_all
4355 lt_cv_deplibs_check_method=pass_all
4361 lt_cv_deplibs_check_method=pass_all
4366 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4367 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4368 file_magic_cmd=$lt_cv_file_magic_cmd
4369 deplibs_check_method=$lt_cv_deplibs_check_method
4370 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4383 if test -n "$ac_tool_prefix"; then
4384 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4385 set dummy ${ac_tool_prefix}ar; ac_word=$2
4386 echo "$as_me:$LINENO: checking for $ac_word" >&5
4387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4388 if test "${ac_cv_prog_AR+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4391 if test -n "$AR"; then
4392 ac_cv_prog_AR="$AR" # Let the user override the test.
4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 test -z "$as_dir" && as_dir=.
4399 for ac_exec_ext in '' $ac_executable_extensions; do
4400 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4401 ac_cv_prog_AR="${ac_tool_prefix}ar"
4402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4411 if test -n "$AR"; then
4412 echo "$as_me:$LINENO: result: $AR" >&5
4413 echo "${ECHO_T}$AR" >&6
4415 echo "$as_me:$LINENO: result: no" >&5
4416 echo "${ECHO_T}no" >&6
4420 if test -z "$ac_cv_prog_AR"; then
4422 # Extract the first word of "ar", so it can be a program name with args.
4423 set dummy ar; ac_word=$2
4424 echo "$as_me:$LINENO: checking for $ac_word" >&5
4425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4426 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 if test -n "$ac_ct_AR"; then
4430 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 test -z "$as_dir" && as_dir=.
4437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4439 ac_cv_prog_ac_ct_AR="ar"
4440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4446 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4449 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4450 if test -n "$ac_ct_AR"; then
4451 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4452 echo "${ECHO_T}$ac_ct_AR" >&6
4454 echo "$as_me:$LINENO: result: no" >&5
4455 echo "${ECHO_T}no" >&6
4463 test -z "$AR" && AR=ar
4464 test -z "$AR_FLAGS" && AR_FLAGS=cru
4476 if test -n "$ac_tool_prefix"; then
4477 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4478 set dummy ${ac_tool_prefix}strip; ac_word=$2
4479 echo "$as_me:$LINENO: checking for $ac_word" >&5
4480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4481 if test "${ac_cv_prog_STRIP+set}" = set; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4484 if test -n "$STRIP"; then
4485 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4491 test -z "$as_dir" && as_dir=.
4492 for ac_exec_ext in '' $ac_executable_extensions; do
4493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4494 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4503 STRIP=$ac_cv_prog_STRIP
4504 if test -n "$STRIP"; then
4505 echo "$as_me:$LINENO: result: $STRIP" >&5
4506 echo "${ECHO_T}$STRIP" >&6
4508 echo "$as_me:$LINENO: result: no" >&5
4509 echo "${ECHO_T}no" >&6
4513 if test -z "$ac_cv_prog_STRIP"; then
4515 # Extract the first word of "strip", so it can be a program name with args.
4516 set dummy strip; ac_word=$2
4517 echo "$as_me:$LINENO: checking for $ac_word" >&5
4518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4519 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4522 if test -n "$ac_ct_STRIP"; then
4523 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 test -z "$as_dir" && as_dir=.
4530 for ac_exec_ext in '' $ac_executable_extensions; do
4531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4532 ac_cv_prog_ac_ct_STRIP="strip"
4533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4539 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4542 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4543 if test -n "$ac_ct_STRIP"; then
4544 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4545 echo "${ECHO_T}$ac_ct_STRIP" >&6
4547 echo "$as_me:$LINENO: result: no" >&5
4548 echo "${ECHO_T}no" >&6
4553 STRIP="$ac_cv_prog_STRIP"
4556 test -z "$STRIP" && STRIP=:
4563 if test -n "$ac_tool_prefix"; then
4564 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4565 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4566 echo "$as_me:$LINENO: checking for $ac_word" >&5
4567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4568 if test "${ac_cv_prog_RANLIB+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4571 if test -n "$RANLIB"; then
4572 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578 test -z "$as_dir" && as_dir=.
4579 for ac_exec_ext in '' $ac_executable_extensions; do
4580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4581 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4590 RANLIB=$ac_cv_prog_RANLIB
4591 if test -n "$RANLIB"; then
4592 echo "$as_me:$LINENO: result: $RANLIB" >&5
4593 echo "${ECHO_T}$RANLIB" >&6
4595 echo "$as_me:$LINENO: result: no" >&5
4596 echo "${ECHO_T}no" >&6
4600 if test -z "$ac_cv_prog_RANLIB"; then
4601 ac_ct_RANLIB=$RANLIB
4602 # Extract the first word of "ranlib", so it can be a program name with args.
4603 set dummy ranlib; ac_word=$2
4604 echo "$as_me:$LINENO: checking for $ac_word" >&5
4605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4606 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4609 if test -n "$ac_ct_RANLIB"; then
4610 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616 test -z "$as_dir" && as_dir=.
4617 for ac_exec_ext in '' $ac_executable_extensions; do
4618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4619 ac_cv_prog_ac_ct_RANLIB="ranlib"
4620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4629 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4630 if test -n "$ac_ct_RANLIB"; then
4631 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4632 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4634 echo "$as_me:$LINENO: result: no" >&5
4635 echo "${ECHO_T}no" >&6
4638 RANLIB=$ac_ct_RANLIB
4640 RANLIB="$ac_cv_prog_RANLIB"
4643 test -z "$RANLIB" && RANLIB=:
4650 # Determine commands to create old-style static archives.
4651 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4652 old_postinstall_cmds='chmod 644 $oldlib'
4653 old_postuninstall_cmds=
4655 if test -n "$RANLIB"; then
4658 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4661 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4664 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4700 # If no C compiler was specified, use CC.
4703 # If no C compiler flags were specified, use CFLAGS.
4704 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4706 # Allow CC to be a program name with arguments.
4710 # Check for command to grab the raw symbol name followed by C symbol from nm.
4711 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4712 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4713 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4714 echo $ECHO_N "(cached) $ECHO_C" >&6
4717 # These are sane defaults that work on at least a few old systems.
4718 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4720 # Character class describing NM global symbol codes.
4721 symcode='[BCDEGRST]'
4723 # Regexp to match symbols that can be accessed directly from C.
4724 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4726 # Define system-specific variables.
4731 cygwin* | mingw* | pw32*)
4732 symcode='[ABCDGISTW]'
4735 if test "$host_cpu" = ia64; then
4736 symcode='[ABCDEGRST]'
4740 symcode='[BCDEGRST]'
4743 symcode='[BCDEGQRST]'
4754 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4762 # If we're using GNU nm, then use its standard symbol codes.
4763 case `$NM -V 2>&1` in
4764 *GNU* | *'with BFD'*)
4765 symcode='[ABCDGIRSTW]' ;;
4768 # Transform an extracted symbol line into a proper C declaration.
4769 # Some systems (esp. on ia64) link data and code symbols differently,
4770 # so use this general approach.
4771 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4773 # Transform an extracted symbol line into symbol name and symbol address
4774 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4776 # Handle CRLF in mingw tool chain
4780 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4784 # Try without a prefix underscore, then with it.
4785 for ac_symprfx in "" "_"; do
4787 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4788 symxfrm="\\1 $ac_symprfx\\2 \\2"
4790 # Write the raw and C identifiers.
4791 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4792 # Fake it for dumpbin and say T for any non-static function
4793 # and D for any global variable.
4794 # Also find C++ and __fastcall symbols from MSVC++,
4795 # which start with @ or ?.
4796 lt_cv_sys_global_symbol_pipe="$AWK '"\
4797 " {last_section=section; section=\$ 3};"\
4798 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4799 " \$ 0!~/External *\|/{next};"\
4800 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4801 " {if(hide[section]) next};"\
4802 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4803 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4804 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
4805 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4806 " ' prfx=^$ac_symprfx"
4808 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4811 # Check to see that the pipe works correctly.
4815 cat > conftest.$ac_ext <<_LT_EOF
4820 void nm_test_func(void);
4821 void nm_test_func(void){}
4825 int main(){nm_test_var='a';nm_test_func();return(0);}
4828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4829 (eval $ac_compile) 2>&5
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); }; then
4833 # Now try to grab the symbols.
4835 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4836 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); } && test -s "$nlist"; then
4840 # Try sorting and uniquifying the output.
4841 if sort "$nlist" | uniq > "$nlist"T; then
4842 mv -f "$nlist"T "$nlist"
4847 # Make sure that we snagged all the symbols we need.
4848 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4849 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4850 cat <<_LT_EOF > conftest.$ac_ext
4856 # Now generate the symbol file.
4857 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4859 cat <<_LT_EOF >> conftest.$ac_ext
4861 /* The mapping between symbol names and symbols. */
4866 lt__PROGRAM__LTX_preloaded_symbols[] =
4868 { "@PROGRAM@", (void *) 0 },
4870 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4871 cat <<\_LT_EOF >> conftest.$ac_ext
4875 /* This works around a problem in FreeBSD linker */
4876 #ifdef FREEBSD_WORKAROUND
4877 static const void *lt_preloaded_setup() {
4878 return lt__PROGRAM__LTX_preloaded_symbols;
4886 # Now try linking the two files.
4887 mv conftest.$ac_objext conftstm.$ac_objext
4888 lt_save_LIBS="$LIBS"
4889 lt_save_CFLAGS="$CFLAGS"
4890 LIBS="conftstm.$ac_objext"
4891 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4893 (eval $ac_link) 2>&5
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4899 LIBS="$lt_save_LIBS"
4900 CFLAGS="$lt_save_CFLAGS"
4902 echo "cannot find nm_test_func in $nlist" >&5
4905 echo "cannot find nm_test_var in $nlist" >&5
4908 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4911 echo "$progname: failed program was:" >&5
4912 cat conftest.$ac_ext >&5
4914 rm -f conftest* conftst*
4916 # Do not use the global_symbol_pipe unless it works.
4917 if test "$pipe_works" = yes; then
4920 lt_cv_sys_global_symbol_pipe=
4926 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4927 lt_cv_sys_global_symbol_to_cdecl=
4929 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4930 echo "$as_me:$LINENO: result: failed" >&5
4931 echo "${ECHO_T}failed" >&6
4933 echo "$as_me:$LINENO: result: ok" >&5
4934 echo "${ECHO_T}ok" >&6
4953 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4954 if test "${enable_libtool_lock+set}" = set; then
4955 enableval="$enable_libtool_lock"
4958 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4960 # Some flags need to be propagated to the compiler or linker for good
4964 # Find out which ABI we are using.
4965 echo 'int i;' > conftest.$ac_ext
4966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4967 (eval $ac_compile) 2>&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); }; then
4971 case `/usr/bin/file conftest.$ac_objext` in
4983 # Find out which ABI we are using.
4984 echo '#line 4984 "configure"' > conftest.$ac_ext
4985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4986 (eval $ac_compile) 2>&5
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); }; then
4990 if test "$lt_cv_prog_gnu_ld" = yes; then
4991 case `/usr/bin/file conftest.$ac_objext` in
4993 LD="${LD-ld} -melf32bsmip"
4996 LD="${LD-ld} -melf32bmipn32"
4999 LD="${LD-ld} -melf64bmip"
5003 case `/usr/bin/file conftest.$ac_objext` in
5019 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5020 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5021 # Find out which ABI we are using.
5022 echo 'int i;' > conftest.$ac_ext
5023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5024 (eval $ac_compile) 2>&5
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); }; then
5028 case `/usr/bin/file conftest.o` in
5031 x86_64-*kfreebsd*-gnu)
5032 LD="${LD-ld} -m elf_i386_fbsd"
5035 LD="${LD-ld} -m elf_i386"
5037 ppc64-*linux*|powerpc64-*linux*)
5038 LD="${LD-ld} -m elf32ppclinux"
5041 LD="${LD-ld} -m elf_s390"
5044 LD="${LD-ld} -m elf32_sparc"
5050 x86_64-*kfreebsd*-gnu)
5051 LD="${LD-ld} -m elf_x86_64_fbsd"
5054 LD="${LD-ld} -m elf_x86_64"
5056 ppc*-*linux*|powerpc*-*linux*)
5057 LD="${LD-ld} -m elf64ppc"
5059 s390*-*linux*|s390*-*tpf*)
5060 LD="${LD-ld} -m elf64_s390"
5063 LD="${LD-ld} -m elf64_sparc"
5073 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5074 SAVE_CFLAGS="$CFLAGS"
5075 CFLAGS="$CFLAGS -belf"
5076 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5077 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5078 if test "${lt_cv_cc_needs_belf+set}" = set; then
5079 echo $ECHO_N "(cached) $ECHO_C" >&6
5082 ac_cpp='$CPP $CPPFLAGS'
5083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5087 cat >conftest.$ac_ext <<_ACEOF
5090 cat confdefs.h >>conftest.$ac_ext
5091 cat >>conftest.$ac_ext <<_ACEOF
5092 /* end confdefs.h. */
5102 rm -f conftest.$ac_objext conftest$ac_exeext
5103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5104 (eval $ac_link) 2>conftest.er1
5106 grep -v '^ *+' conftest.er1 >conftest.err
5108 cat conftest.err >&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } &&
5111 { ac_try='test -z "$ac_c_werror_flag"
5112 || test ! -s conftest.err'
5113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); }; } &&
5118 { ac_try='test -s conftest$ac_exeext'
5119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); }; }; then
5124 lt_cv_cc_needs_belf=yes
5126 echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.$ac_ext >&5
5129 lt_cv_cc_needs_belf=no
5131 rm -f conftest.err conftest.$ac_objext \
5132 conftest$ac_exeext conftest.$ac_ext
5134 ac_cpp='$CPP $CPPFLAGS'
5135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5140 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5141 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5142 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5143 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5144 CFLAGS="$SAVE_CFLAGS"
5148 # Find out which ABI we are using.
5149 echo 'int i;' > conftest.$ac_ext
5150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5151 (eval $ac_compile) 2>&5
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); }; then
5155 case `/usr/bin/file conftest.o` in
5157 case $lt_cv_prog_gnu_ld in
5158 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5159 *) LD="${LD-ld} -64" ;;
5168 need_locks="$enable_libtool_lock"
5171 ac_cpp='$CPP $CPPFLAGS'
5172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5175 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5176 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5177 # On Suns, sometimes $CPP names a directory.
5178 if test -n "$CPP" && test -d "$CPP"; then
5181 if test -z "$CPP"; then
5182 if test "${ac_cv_prog_CPP+set}" = set; then
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
5185 # Double quotes because CPP needs to be expanded
5186 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5189 for ac_c_preproc_warn_flag in '' yes
5191 # Use a header file that comes with gcc, so configuring glibc
5192 # with a fresh cross-compiler works.
5193 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5194 # <limits.h> exists even on freestanding compilers.
5195 # On the NeXT, cc -E runs the code through the compiler's parser,
5196 # not just through cpp. "Syntax error" is here to catch this case.
5197 cat >conftest.$ac_ext <<_ACEOF
5200 cat confdefs.h >>conftest.$ac_ext
5201 cat >>conftest.$ac_ext <<_ACEOF
5202 /* end confdefs.h. */
5204 # include <limits.h>
5206 # include <assert.h>
5210 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5211 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5213 grep -v '^ *+' conftest.er1 >conftest.err
5215 cat conftest.err >&5
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); } >/dev/null; then
5218 if test -s conftest.err; then
5219 ac_cpp_err=$ac_c_preproc_warn_flag
5220 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5227 if test -z "$ac_cpp_err"; then
5230 echo "$as_me: failed program was:" >&5
5231 sed 's/^/| /' conftest.$ac_ext >&5
5233 # Broken: fails on valid input.
5236 rm -f conftest.err conftest.$ac_ext
5238 # OK, works on sane cases. Now check whether non-existent headers
5239 # can be detected and how.
5240 cat >conftest.$ac_ext <<_ACEOF
5243 cat confdefs.h >>conftest.$ac_ext
5244 cat >>conftest.$ac_ext <<_ACEOF
5245 /* end confdefs.h. */
5246 #include <ac_nonexistent.h>
5248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5249 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5251 grep -v '^ *+' conftest.er1 >conftest.err
5253 cat conftest.err >&5
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); } >/dev/null; then
5256 if test -s conftest.err; then
5257 ac_cpp_err=$ac_c_preproc_warn_flag
5258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5265 if test -z "$ac_cpp_err"; then
5266 # Broken: success on invalid input.
5269 echo "$as_me: failed program was:" >&5
5270 sed 's/^/| /' conftest.$ac_ext >&5
5272 # Passes both tests.
5276 rm -f conftest.err conftest.$ac_ext
5279 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5280 rm -f conftest.err conftest.$ac_ext
5281 if $ac_preproc_ok; then
5293 echo "$as_me:$LINENO: result: $CPP" >&5
5294 echo "${ECHO_T}$CPP" >&6
5296 for ac_c_preproc_warn_flag in '' yes
5298 # Use a header file that comes with gcc, so configuring glibc
5299 # with a fresh cross-compiler works.
5300 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5301 # <limits.h> exists even on freestanding compilers.
5302 # On the NeXT, cc -E runs the code through the compiler's parser,
5303 # not just through cpp. "Syntax error" is here to catch this case.
5304 cat >conftest.$ac_ext <<_ACEOF
5307 cat confdefs.h >>conftest.$ac_ext
5308 cat >>conftest.$ac_ext <<_ACEOF
5309 /* end confdefs.h. */
5311 # include <limits.h>
5313 # include <assert.h>
5317 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5318 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5320 grep -v '^ *+' conftest.er1 >conftest.err
5322 cat conftest.err >&5
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); } >/dev/null; then
5325 if test -s conftest.err; then
5326 ac_cpp_err=$ac_c_preproc_warn_flag
5327 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5334 if test -z "$ac_cpp_err"; then
5337 echo "$as_me: failed program was:" >&5
5338 sed 's/^/| /' conftest.$ac_ext >&5
5340 # Broken: fails on valid input.
5343 rm -f conftest.err conftest.$ac_ext
5345 # OK, works on sane cases. Now check whether non-existent headers
5346 # can be detected and how.
5347 cat >conftest.$ac_ext <<_ACEOF
5350 cat confdefs.h >>conftest.$ac_ext
5351 cat >>conftest.$ac_ext <<_ACEOF
5352 /* end confdefs.h. */
5353 #include <ac_nonexistent.h>
5355 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5356 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5358 grep -v '^ *+' conftest.er1 >conftest.err
5360 cat conftest.err >&5
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); } >/dev/null; then
5363 if test -s conftest.err; then
5364 ac_cpp_err=$ac_c_preproc_warn_flag
5365 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5372 if test -z "$ac_cpp_err"; then
5373 # Broken: success on invalid input.
5376 echo "$as_me: failed program was:" >&5
5377 sed 's/^/| /' conftest.$ac_ext >&5
5379 # Passes both tests.
5383 rm -f conftest.err conftest.$ac_ext
5386 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5387 rm -f conftest.err conftest.$ac_ext
5388 if $ac_preproc_ok; then
5391 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5392 See \`config.log' for more details." >&5
5393 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5394 See \`config.log' for more details." >&2;}
5395 { (exit 1); exit 1; }; }
5399 ac_cpp='$CPP $CPPFLAGS'
5400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5405 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5406 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5407 if test "${ac_cv_header_stdc+set}" = set; then
5408 echo $ECHO_N "(cached) $ECHO_C" >&6
5410 cat >conftest.$ac_ext <<_ACEOF
5413 cat confdefs.h >>conftest.$ac_ext
5414 cat >>conftest.$ac_ext <<_ACEOF
5415 /* end confdefs.h. */
5429 rm -f conftest.$ac_objext
5430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5431 (eval $ac_compile) 2>conftest.er1
5433 grep -v '^ *+' conftest.er1 >conftest.err
5435 cat conftest.err >&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); } &&
5438 { ac_try='test -z "$ac_c_werror_flag"
5439 || test ! -s conftest.err'
5440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); }; } &&
5445 { ac_try='test -s conftest.$ac_objext'
5446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); }; }; then
5451 ac_cv_header_stdc=yes
5453 echo "$as_me: failed program was:" >&5
5454 sed 's/^/| /' conftest.$ac_ext >&5
5456 ac_cv_header_stdc=no
5458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5460 if test $ac_cv_header_stdc = yes; then
5461 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5462 cat >conftest.$ac_ext <<_ACEOF
5465 cat confdefs.h >>conftest.$ac_ext
5466 cat >>conftest.$ac_ext <<_ACEOF
5467 /* end confdefs.h. */
5471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5472 $EGREP "memchr" >/dev/null 2>&1; then
5475 ac_cv_header_stdc=no
5481 if test $ac_cv_header_stdc = yes; then
5482 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5483 cat >conftest.$ac_ext <<_ACEOF
5486 cat confdefs.h >>conftest.$ac_ext
5487 cat >>conftest.$ac_ext <<_ACEOF
5488 /* end confdefs.h. */
5492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5493 $EGREP "free" >/dev/null 2>&1; then
5496 ac_cv_header_stdc=no
5502 if test $ac_cv_header_stdc = yes; then
5503 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5504 if test "$cross_compiling" = yes; then
5507 cat >conftest.$ac_ext <<_ACEOF
5510 cat confdefs.h >>conftest.$ac_ext
5511 cat >>conftest.$ac_ext <<_ACEOF
5512 /* end confdefs.h. */
5514 #if ((' ' & 0x0FF) == 0x020)
5515 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5516 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5518 # define ISLOWER(c) \
5519 (('a' <= (c) && (c) <= 'i') \
5520 || ('j' <= (c) && (c) <= 'r') \
5521 || ('s' <= (c) && (c) <= 'z'))
5522 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5525 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5530 for (i = 0; i < 256; i++)
5531 if (XOR (islower (i), ISLOWER (i))
5532 || toupper (i) != TOUPPER (i))
5537 rm -f conftest$ac_exeext
5538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5539 (eval $ac_link) 2>&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); }; }; then
5550 echo "$as_me: program exited with status $ac_status" >&5
5551 echo "$as_me: failed program was:" >&5
5552 sed 's/^/| /' conftest.$ac_ext >&5
5555 ac_cv_header_stdc=no
5557 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5561 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5562 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5563 if test $ac_cv_header_stdc = yes; then
5565 cat >>confdefs.h <<\_ACEOF
5566 #define STDC_HEADERS 1
5571 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5581 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5582 inttypes.h stdint.h unistd.h
5584 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5585 echo "$as_me:$LINENO: checking for $ac_header" >&5
5586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5588 echo $ECHO_N "(cached) $ECHO_C" >&6
5590 cat >conftest.$ac_ext <<_ACEOF
5593 cat confdefs.h >>conftest.$ac_ext
5594 cat >>conftest.$ac_ext <<_ACEOF
5595 /* end confdefs.h. */
5596 $ac_includes_default
5598 #include <$ac_header>
5600 rm -f conftest.$ac_objext
5601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5602 (eval $ac_compile) 2>conftest.er1
5604 grep -v '^ *+' conftest.er1 >conftest.err
5606 cat conftest.err >&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } &&
5609 { ac_try='test -z "$ac_c_werror_flag"
5610 || test ! -s conftest.err'
5611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; } &&
5616 { ac_try='test -s conftest.$ac_objext'
5617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); }; }; then
5622 eval "$as_ac_Header=yes"
5624 echo "$as_me: failed program was:" >&5
5625 sed 's/^/| /' conftest.$ac_ext >&5
5627 eval "$as_ac_Header=no"
5629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5632 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5633 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5634 cat >>confdefs.h <<_ACEOF
5635 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5644 for ac_header in dlfcn.h
5646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5647 echo "$as_me:$LINENO: checking for $ac_header" >&5
5648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5650 echo $ECHO_N "(cached) $ECHO_C" >&6
5652 cat >conftest.$ac_ext <<_ACEOF
5655 cat confdefs.h >>conftest.$ac_ext
5656 cat >>conftest.$ac_ext <<_ACEOF
5657 /* end confdefs.h. */
5658 $ac_includes_default
5660 #include <$ac_header>
5662 rm -f conftest.$ac_objext
5663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5664 (eval $ac_compile) 2>conftest.er1
5666 grep -v '^ *+' conftest.er1 >conftest.err
5668 cat conftest.err >&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); } &&
5671 { ac_try='test -z "$ac_c_werror_flag"
5672 || test ! -s conftest.err'
5673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); }; } &&
5678 { ac_try='test -s conftest.$ac_objext'
5679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }; }; then
5684 eval "$as_ac_Header=yes"
5686 echo "$as_me: failed program was:" >&5
5687 sed 's/^/| /' conftest.$ac_ext >&5
5689 eval "$as_ac_Header=no"
5691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5696 cat >>confdefs.h <<_ACEOF
5697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5706 # This can be used to rebuild libtool when needed
5707 LIBTOOL_DEPS="$ltmain"
5709 # Always use our own libtool.
5710 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5736 test -z "$LN_S" && LN_S="ln -s"
5751 if test -n "${ZSH_VERSION+set}" ; then
5752 setopt NO_GLOB_SUBST
5755 echo "$as_me:$LINENO: checking for objdir" >&5
5756 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5757 if test "${lt_cv_objdir+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 rm -f .libs 2>/dev/null
5761 mkdir .libs 2>/dev/null
5762 if test -d .libs; then
5765 # MS-DOS does not allow filenames that begin with a dot.
5768 rmdir .libs 2>/dev/null
5770 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5771 echo "${ECHO_T}$lt_cv_objdir" >&6
5772 objdir=$lt_cv_objdir
5778 cat >>confdefs.h <<_ACEOF
5779 #define LT_OBJDIR "$lt_cv_objdir/"
5800 # AIX sometimes has problems with the GCC collect2 program. For some
5801 # reason, if we set the COLLECT_NAMES environment variable, the problems
5802 # vanish in a puff of smoke.
5803 if test "X${COLLECT_NAMES+set}" != Xset; then
5805 export COLLECT_NAMES
5810 # Sed substitution that helps us do robust quoting. It backslashifies
5811 # metacharacters that are still active within double-quoted strings.
5812 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5814 # Same as above, but do not quote variable references.
5815 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5817 # Sed substitution to delay expansion of an escaped shell variable in a
5818 # double_quote_subst'ed string.
5819 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5821 # Sed substitution to delay expansion of an escaped single quote.
5822 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5824 # Sed substitution to avoid accidental globbing in evaled expressions
5825 no_glob_subst='s/\*/\\\*/g'
5829 can_build_shared=yes
5831 # All known linkers require a `.a' archive for static linking (except MSVC,
5832 # which needs '.lib').
5835 with_gnu_ld="$lt_cv_prog_gnu_ld"
5838 old_CFLAGS="$CFLAGS"
5840 # Set sane defaults for various variables
5841 test -z "$CC" && CC=cc
5842 test -z "$LTCC" && LTCC=$CC
5843 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5844 test -z "$LD" && LD=ld
5845 test -z "$ac_objext" && ac_objext=o
5847 for cc_temp in $compiler""; do
5849 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5850 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5855 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5858 # Only perform the check for file, if the check method requires it
5859 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5860 case $deplibs_check_method in
5862 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5863 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5864 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5865 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5866 echo $ECHO_N "(cached) $ECHO_C" >&6
5870 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5873 lt_save_MAGIC_CMD="$MAGIC_CMD"
5874 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5875 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5876 for ac_dir in $ac_dummy; do
5878 test -z "$ac_dir" && ac_dir=.
5879 if test -f $ac_dir/${ac_tool_prefix}file; then
5880 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5881 if test -n "$file_magic_test_file"; then
5882 case $deplibs_check_method in
5884 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5885 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5886 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5887 $EGREP "$file_magic_regex" > /dev/null; then
5892 *** Warning: the command libtool uses to detect shared libraries,
5893 *** $file_magic_cmd, produces output that libtool cannot recognize.
5894 *** The result is that libtool may fail to recognize shared libraries
5895 *** as such. This will affect the creation of libtool libraries that
5896 *** depend on shared libraries, but programs linked with such libtool
5897 *** libraries will work regardless of this problem. Nevertheless, you
5898 *** may want to report the problem to your system manager and/or to
5899 *** bug-libtool@gnu.org
5909 MAGIC_CMD="$lt_save_MAGIC_CMD"
5914 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5915 if test -n "$MAGIC_CMD"; then
5916 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5917 echo "${ECHO_T}$MAGIC_CMD" >&6
5919 echo "$as_me:$LINENO: result: no" >&5
5920 echo "${ECHO_T}no" >&6
5927 if test -z "$lt_cv_path_MAGIC_CMD"; then
5928 if test -n "$ac_tool_prefix"; then
5929 echo "$as_me:$LINENO: checking for file" >&5
5930 echo $ECHO_N "checking for file... $ECHO_C" >&6
5931 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5932 echo $ECHO_N "(cached) $ECHO_C" >&6
5936 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5939 lt_save_MAGIC_CMD="$MAGIC_CMD"
5940 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5941 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5942 for ac_dir in $ac_dummy; do
5944 test -z "$ac_dir" && ac_dir=.
5945 if test -f $ac_dir/file; then
5946 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5947 if test -n "$file_magic_test_file"; then
5948 case $deplibs_check_method in
5950 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5951 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5952 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5953 $EGREP "$file_magic_regex" > /dev/null; then
5958 *** Warning: the command libtool uses to detect shared libraries,
5959 *** $file_magic_cmd, produces output that libtool cannot recognize.
5960 *** The result is that libtool may fail to recognize shared libraries
5961 *** as such. This will affect the creation of libtool libraries that
5962 *** depend on shared libraries, but programs linked with such libtool
5963 *** libraries will work regardless of this problem. Nevertheless, you
5964 *** may want to report the problem to your system manager and/or to
5965 *** bug-libtool@gnu.org
5975 MAGIC_CMD="$lt_save_MAGIC_CMD"
5980 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5981 if test -n "$MAGIC_CMD"; then
5982 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5983 echo "${ECHO_T}$MAGIC_CMD" >&6
5985 echo "$as_me:$LINENO: result: no" >&5
5986 echo "${ECHO_T}no" >&6
5999 # Use C for the default configuration in the libtool script
6003 ac_cpp='$CPP $CPPFLAGS'
6004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6009 # Source file extension for C test sources.
6012 # Object file extension for compiled C test sources.
6016 # Code to be used in simple compile tests
6017 lt_simple_compile_test_code="int some_variable = 0;"
6019 # Code to be used in simple link tests
6020 lt_simple_link_test_code='int main(){return(0);}'
6028 # If no C compiler was specified, use CC.
6031 # If no C compiler flags were specified, use CFLAGS.
6032 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6034 # Allow CC to be a program name with arguments.
6037 # Save the default compiler, since it gets overwritten when the other
6038 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6039 compiler_DEFAULT=$CC
6041 # save warnings/boilerplate of simple test code
6042 ac_outfile=conftest.$ac_objext
6043 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6044 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6045 _lt_compiler_boilerplate=`cat conftest.err`
6048 ac_outfile=conftest.$ac_objext
6049 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6050 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6051 _lt_linker_boilerplate=`cat conftest.err`
6056 ## There is no encapsulation within the following macros, do not change
6057 ## the running order or otherwise move them around unless you know exactly
6058 ## what you are doing...
6059 if test -n "$compiler"; then
6061 lt_prog_compiler_no_builtin_flag=
6063 if test "$GCC" = yes; then
6064 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6066 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6067 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6068 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6071 lt_cv_prog_compiler_rtti_exceptions=no
6072 ac_outfile=conftest.$ac_objext
6073 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6074 lt_compiler_flag="-fno-rtti -fno-exceptions"
6075 # Insert the option either (1) after the last *FLAGS variable, or
6076 # (2) before a word containing "conftest.", or (3) at the end.
6077 # Note that $ac_compile itself does not contain backslashes and begins
6078 # with a dollar sign (not a hyphen), so the echo should work correctly.
6079 # The option is referenced via a variable to avoid confusing sed.
6080 lt_compile=`echo "$ac_compile" | $SED \
6081 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6082 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6083 -e 's:$: $lt_compiler_flag:'`
6084 (eval echo "\"\$as_me:6084: $lt_compile\"" >&5)
6085 (eval "$lt_compile" 2>conftest.err)
6087 cat conftest.err >&5
6088 echo "$as_me:6088: \$? = $ac_status" >&5
6089 if (exit $ac_status) && test -s "$ac_outfile"; then
6090 # The compiler can only warn and ignore the option if not recognized
6091 # So say no if there are warnings other than the usual output.
6092 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6093 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6094 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6095 lt_cv_prog_compiler_rtti_exceptions=yes
6101 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6102 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6104 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6105 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6117 lt_prog_compiler_wl=
6118 lt_prog_compiler_pic=
6119 lt_prog_compiler_static=
6121 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6122 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6124 if test "$GCC" = yes; then
6125 lt_prog_compiler_wl='-Wl,'
6126 lt_prog_compiler_static='-static'
6130 # All AIX code is PIC.
6131 if test "$host_cpu" = ia64; then
6132 # AIX 5 now supports IA64 processor
6133 lt_prog_compiler_static='-Bstatic'
6138 if test "$host_cpu" = m68k; then
6139 # FIXME: we need at least 68020 code to build shared libraries, but
6140 # adding the `-m68020' flag to GCC prevents building anything better,
6142 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6146 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6147 # PIC is the default for these OSes.
6150 mingw* | cygwin* | pw32* | os2*)
6151 # This hack is so that the source file can tell whether it is being
6152 # built for inclusion in a dll (and should export symbols for example).
6153 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6154 # (--disable-auto-import) libraries
6155 lt_prog_compiler_pic='-DDLL_EXPORT'
6158 darwin* | rhapsody*)
6159 # PIC is the default on this platform
6160 # Common symbols not allowed in MH_DYLIB files
6161 lt_prog_compiler_pic='-fno-common'
6165 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6172 lt_prog_compiler_pic='-fPIC'
6178 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6179 # Instead, we relocate shared libraries at runtime.
6183 # Just because we use GCC doesn't mean we suddenly get shared libraries
6184 # on systems that don't support them.
6185 lt_prog_compiler_can_build_shared=no
6190 # QNX uses GNU C++, but need to define -shared option too, otherwise
6192 lt_prog_compiler_pic='-fPIC -shared'
6196 if test -d /usr/nec; then
6197 lt_prog_compiler_pic=-Kconform_pic
6202 lt_prog_compiler_pic='-fPIC'
6206 # PORTME Check for flag to pass linker flags through the system compiler.
6209 lt_prog_compiler_wl='-Wl,'
6210 if test "$host_cpu" = ia64; then
6211 # AIX 5 now supports IA64 processor
6212 lt_prog_compiler_static='-Bstatic'
6214 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6218 # PIC is the default on this platform
6219 # Common symbols not allowed in MH_DYLIB files
6220 case $cc_basename in
6222 lt_prog_compiler_pic='-qnocommon'
6223 lt_prog_compiler_wl='-Wl,'
6228 mingw* | cygwin* | pw32* | os2*)
6229 # This hack is so that the source file can tell whether it is being
6230 # built for inclusion in a dll (and should export symbols for example).
6231 lt_prog_compiler_pic='-DDLL_EXPORT'
6234 hpux9* | hpux10* | hpux11*)
6235 lt_prog_compiler_wl='-Wl,'
6236 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6243 lt_prog_compiler_pic='+Z'
6246 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6247 lt_prog_compiler_static='${wl}-a ${wl}archive'
6250 irix5* | irix6* | nonstopux*)
6251 lt_prog_compiler_wl='-Wl,'
6252 # PIC (with -KPIC) is the default.
6253 lt_prog_compiler_static='-non_shared'
6256 linux* | k*bsd*-gnu)
6257 case $cc_basename in
6259 lt_prog_compiler_wl='-Wl,'
6260 lt_prog_compiler_pic='-KPIC'
6261 lt_prog_compiler_static='-static'
6263 pgcc* | pgf77* | pgf90* | pgf95*)
6264 # Portland Group compilers (*not* the Pentium gcc compiler,
6265 # which looks to be a dead project)
6266 lt_prog_compiler_wl='-Wl,'
6267 lt_prog_compiler_pic='-fpic'
6268 lt_prog_compiler_static='-Bstatic'
6271 lt_prog_compiler_wl='-Wl,'
6272 # All Alpha code is PIC.
6273 lt_prog_compiler_static='-non_shared'
6276 case `$CC -V 2>&1 | sed 5q` in
6279 lt_prog_compiler_pic='-KPIC'
6280 lt_prog_compiler_static='-Bstatic'
6281 lt_prog_compiler_wl='-Wl,'
6284 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6285 lt_prog_compiler_pic='-KPIC'
6286 lt_prog_compiler_static='-Bstatic'
6287 lt_prog_compiler_wl=''
6295 lt_prog_compiler_pic='-KPIC'
6296 lt_prog_compiler_static='-Bstatic'
6300 # QNX uses GNU C++, but need to define -shared option too, otherwise
6302 lt_prog_compiler_pic='-fPIC -shared'
6305 osf3* | osf4* | osf5*)
6306 lt_prog_compiler_wl='-Wl,'
6307 # All OSF/1 code is PIC.
6308 lt_prog_compiler_static='-non_shared'
6312 lt_prog_compiler_static='-non_shared'
6316 lt_prog_compiler_pic='-KPIC'
6317 lt_prog_compiler_static='-Bstatic'
6318 case $cc_basename in
6320 lt_prog_compiler_wl='-Qoption ld ';;
6322 lt_prog_compiler_wl='-Wl,';;
6327 lt_prog_compiler_wl='-Qoption ld '
6328 lt_prog_compiler_pic='-PIC'
6329 lt_prog_compiler_static='-Bstatic'
6332 sysv4 | sysv4.2uw2* | sysv4.3*)
6333 lt_prog_compiler_wl='-Wl,'
6334 lt_prog_compiler_pic='-KPIC'
6335 lt_prog_compiler_static='-Bstatic'
6339 if test -d /usr/nec ;then
6340 lt_prog_compiler_pic='-Kconform_pic'
6341 lt_prog_compiler_static='-Bstatic'
6345 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6346 lt_prog_compiler_wl='-Wl,'
6347 lt_prog_compiler_pic='-KPIC'
6348 lt_prog_compiler_static='-Bstatic'
6352 lt_prog_compiler_wl='-Wl,'
6353 lt_prog_compiler_can_build_shared=no
6357 lt_prog_compiler_pic='-pic'
6358 lt_prog_compiler_static='-Bstatic'
6362 lt_prog_compiler_can_build_shared=no
6368 # For platforms which do not support PIC, -DPIC is meaningless:
6370 lt_prog_compiler_pic=
6373 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6376 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6377 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6385 # Check to make sure the PIC flag actually works.
6387 if test -n "$lt_prog_compiler_pic"; then
6388 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6389 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6390 if test "${lt_prog_compiler_pic_works+set}" = set; then
6391 echo $ECHO_N "(cached) $ECHO_C" >&6
6393 lt_prog_compiler_pic_works=no
6394 ac_outfile=conftest.$ac_objext
6395 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6396 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6397 # Insert the option either (1) after the last *FLAGS variable, or
6398 # (2) before a word containing "conftest.", or (3) at the end.
6399 # Note that $ac_compile itself does not contain backslashes and begins
6400 # with a dollar sign (not a hyphen), so the echo should work correctly.
6401 # The option is referenced via a variable to avoid confusing sed.
6402 lt_compile=`echo "$ac_compile" | $SED \
6403 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6404 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6405 -e 's:$: $lt_compiler_flag:'`
6406 (eval echo "\"\$as_me:6406: $lt_compile\"" >&5)
6407 (eval "$lt_compile" 2>conftest.err)
6409 cat conftest.err >&5
6410 echo "$as_me:6410: \$? = $ac_status" >&5
6411 if (exit $ac_status) && test -s "$ac_outfile"; then
6412 # The compiler can only warn and ignore the option if not recognized
6413 # So say no if there are warnings other than the usual output.
6414 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6415 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6416 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6417 lt_prog_compiler_pic_works=yes
6423 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6424 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6426 if test x"$lt_prog_compiler_pic_works" = xyes; then
6427 case $lt_prog_compiler_pic in
6429 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6432 lt_prog_compiler_pic=
6433 lt_prog_compiler_can_build_shared=no
6444 # Check to make sure the static flag actually works.
6446 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6447 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6448 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6449 if test "${lt_prog_compiler_static_works+set}" = set; then
6450 echo $ECHO_N "(cached) $ECHO_C" >&6
6452 lt_prog_compiler_static_works=no
6453 save_LDFLAGS="$LDFLAGS"
6454 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6455 echo "$lt_simple_link_test_code" > conftest.$ac_ext
6456 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6457 # The linker can only warn and ignore the option if not recognized
6458 # So say no if there are warnings
6459 if test -s conftest.err; then
6460 # Append any errors to the config.log.
6461 cat conftest.err 1>&5
6462 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6463 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6464 if diff conftest.exp conftest.er2 >/dev/null; then
6465 lt_prog_compiler_static_works=yes
6468 lt_prog_compiler_static_works=yes
6472 LDFLAGS="$save_LDFLAGS"
6475 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6476 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6478 if test x"$lt_prog_compiler_static_works" = xyes; then
6481 lt_prog_compiler_static=
6490 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6491 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6492 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6493 echo $ECHO_N "(cached) $ECHO_C" >&6
6495 lt_cv_prog_compiler_c_o=no
6496 $RM -r conftest 2>/dev/null
6500 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6502 lt_compiler_flag="-o out/conftest2.$ac_objext"
6503 # Insert the option either (1) after the last *FLAGS variable, or
6504 # (2) before a word containing "conftest.", or (3) at the end.
6505 # Note that $ac_compile itself does not contain backslashes and begins
6506 # with a dollar sign (not a hyphen), so the echo should work correctly.
6507 lt_compile=`echo "$ac_compile" | $SED \
6508 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6509 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6510 -e 's:$: $lt_compiler_flag:'`
6511 (eval echo "\"\$as_me:6511: $lt_compile\"" >&5)
6512 (eval "$lt_compile" 2>out/conftest.err)
6514 cat out/conftest.err >&5
6515 echo "$as_me:6515: \$? = $ac_status" >&5
6516 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6518 # The compiler can only warn and ignore the option if not recognized
6519 # So say no if there are warnings
6520 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6521 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6522 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6523 lt_cv_prog_compiler_c_o=yes
6528 # SGI C++ compiler will create directory out/ii_files/ for
6529 # template instantiation
6530 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6531 $RM out/* && rmdir out
6537 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6538 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6545 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6546 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6547 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
6550 lt_cv_prog_compiler_c_o=no
6551 $RM -r conftest 2>/dev/null
6555 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6557 lt_compiler_flag="-o out/conftest2.$ac_objext"
6558 # Insert the option either (1) after the last *FLAGS variable, or
6559 # (2) before a word containing "conftest.", or (3) at the end.
6560 # Note that $ac_compile itself does not contain backslashes and begins
6561 # with a dollar sign (not a hyphen), so the echo should work correctly.
6562 lt_compile=`echo "$ac_compile" | $SED \
6563 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6564 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6565 -e 's:$: $lt_compiler_flag:'`
6566 (eval echo "\"\$as_me:6566: $lt_compile\"" >&5)
6567 (eval "$lt_compile" 2>out/conftest.err)
6569 cat out/conftest.err >&5
6570 echo "$as_me:6570: \$? = $ac_status" >&5
6571 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6573 # The compiler can only warn and ignore the option if not recognized
6574 # So say no if there are warnings
6575 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6576 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6577 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6578 lt_cv_prog_compiler_c_o=yes
6583 # SGI C++ compiler will create directory out/ii_files/ for
6584 # template instantiation
6585 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6586 $RM out/* && rmdir out
6592 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6593 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6598 hard_links="nottested"
6599 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6600 # do not overwrite the value of need_locks provided by the user
6601 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6602 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6605 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6607 ln conftest.a conftest.b 2>&5 || hard_links=no
6608 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6609 echo "$as_me:$LINENO: result: $hard_links" >&5
6610 echo "${ECHO_T}$hard_links" >&6
6611 if test "$hard_links" = no; then
6612 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6613 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6625 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6626 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6629 allow_undefined_flag=
6630 always_export_symbols=no
6632 archive_expsym_cmds=
6633 compiler_needs_object=no
6634 enable_shared_with_static_runtimes=no
6635 export_dynamic_flag_spec=
6636 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6637 hardcode_automatic=no
6639 hardcode_direct_absolute=no
6640 hardcode_libdir_flag_spec=
6641 hardcode_libdir_flag_spec_ld=
6642 hardcode_libdir_separator=
6644 hardcode_shlibpath_var=unsupported
6646 link_all_deplibs=unknown
6649 old_archive_from_new_cmds=
6650 old_archive_from_expsyms_cmds=
6651 thread_safe_flag_spec=
6652 whole_archive_flag_spec=
6653 # include_expsyms should be a list of space-separated symbols to be *always*
6654 # included in the symbol list
6656 # exclude_expsyms can be an extended regexp of symbols to exclude
6657 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6658 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6659 # as well as any symbol that contains `d'.
6660 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6661 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6662 # platforms (ab)use it in PIC code, but their linkers get confused if
6663 # the symbol is explicitly referenced. Since portable code cannot
6664 # rely on this symbol name, it's probably fine to never include it in
6665 # preloaded symbol tables.
6666 extract_expsyms_cmds=
6669 cygwin* | mingw* | pw32*)
6670 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6671 # When not using gcc, we currently assume that we are using
6672 # Microsoft Visual C++.
6673 if test "$GCC" != yes; then
6678 # we just hope/assume this is gcc and not c89 (= MSVC++)
6687 if test "$with_gnu_ld" = yes; then
6688 # If archive_cmds runs LD, not CC, wlarc should be empty
6691 # Set some defaults for GNU ld with shared library support. These
6692 # are reset later if shared libraries are not supported. Putting them
6693 # here allows them to be overridden if necessary.
6694 runpath_var=LD_RUN_PATH
6695 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6696 export_dynamic_flag_spec='${wl}--export-dynamic'
6697 # ancient GNU ld didn't support --whole-archive et. al.
6698 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
6699 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6701 whole_archive_flag_spec=
6703 supports_anon_versioning=no
6704 case `$LD -v 2>&1` in
6705 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6706 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6707 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6708 *\ 2.11.*) ;; # other 2.11 versions
6709 *) supports_anon_versioning=yes ;;
6712 # See if GNU ld supports shared libraries.
6714 aix3* | aix4* | aix5*)
6715 # On AIX/PPC, the GNU linker is very broken
6716 if test "$host_cpu" != ia64; then
6720 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6721 *** to be unable to reliably create shared libraries on AIX.
6722 *** Therefore, libtool is disabling shared libraries support. If you
6723 *** really care for shared libraries, you may want to modify your PATH
6724 *** so that a non-GNU linker is found, and then restart.
6731 if test "$host_cpu" = m68k; then
6732 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)'
6733 hardcode_libdir_flag_spec='-L$libdir'
6734 hardcode_minus_L=yes
6737 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6738 # that the semantics of dynamic libraries on AmigaOS, at least up
6739 # to version 4, is to share data among multiple programs linked
6740 # with the same dynamic library. Since this doesn't match the
6741 # behavior of shared libraries on other platforms, we can't use
6747 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6748 allow_undefined_flag=unsupported
6749 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6750 # support --undefined. This deserves some investigation. FIXME
6751 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6757 cygwin* | mingw* | pw32*)
6758 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6759 # as there is no search path for DLLs.
6760 hardcode_libdir_flag_spec='-L$libdir'
6761 allow_undefined_flag=unsupported
6762 always_export_symbols=no
6763 enable_shared_with_static_runtimes=yes
6764 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
6766 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6767 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6768 # If the export-symbols file already is a .def file (1st line
6769 # is EXPORTS), use it as is; otherwise, prepend...
6770 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6771 cp $export_symbols $output_objdir/$soname.def;
6773 echo EXPORTS > $output_objdir/$soname.def;
6774 cat $export_symbols >> $output_objdir/$soname.def;
6776 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6784 hardcode_shlibpath_var=no
6785 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6786 export_dynamic_flag_spec='${wl}-E'
6787 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6788 # Instead, shared libraries are loaded at an image base (0x10000000 by
6789 # default) and relocated if they conflict, which is a slow very memory
6790 # consuming and fragmenting process. To avoid this, we pick a random,
6791 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6792 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6793 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6794 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'
6797 gnu* | linux* | tpf* | k*bsd*-gnu)
6799 if test "$host_os" = linux-dietlibc; then
6800 case $cc_basename in
6801 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
6804 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
6805 && test "$tmp_diet" = no
6808 case $cc_basename,$host_cpu in
6809 pgcc*) # Portland Group C compiler
6810 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'
6811 tmp_addflag=' $pic_flag'
6813 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6814 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'
6815 tmp_addflag=' $pic_flag -Mnomain' ;;
6816 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6817 tmp_addflag=' -i_dynamic' ;;
6818 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6819 tmp_addflag=' -i_dynamic -nofor_main' ;;
6820 ifc* | ifort*) # Intel Fortran compiler
6821 tmp_addflag=' -nofor_main' ;;
6823 case `$CC -V 2>&1 | sed 5q` in
6824 *Sun\ C*) # Sun C 5.9
6825 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'
6826 compiler_needs_object=yes
6827 tmp_sharedflag='-G' ;;
6828 *Sun\ F*) # Sun Fortran 8.3
6829 tmp_sharedflag='-G' ;;
6831 tmp_sharedflag='-shared' ;;
6833 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6835 if test "x$supports_anon_versioning" = xyes; then
6836 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
6837 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6838 echo "local: *; };" >> $output_objdir/$libname.ver~
6839 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6847 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6848 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6851 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6852 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6857 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
6861 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6862 *** create shared libraries on Solaris systems. Therefore, libtool
6863 *** is disabling shared libraries support. We urge you to upgrade GNU
6864 *** binutils to release 2.9.1 or newer. Another option is to modify
6865 *** your PATH or compiler configuration so that the native linker is
6866 *** used, and then restart.
6869 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6870 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6871 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6877 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6878 case `$LD -v 2>&1` in
6879 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6883 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6884 *** reliably create shared libraries on SCO systems. Therefore, libtool
6885 *** is disabling shared libraries support. We urge you to upgrade GNU
6886 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6887 *** your PATH or compiler configuration so that the native linker is
6888 *** used, and then restart.
6893 # For security reasons, it is highly recommended that you always
6894 # use absolute paths for naming shared libraries, and exclude the
6895 # DT_RUNPATH tag from executables and libraries. But doing so
6896 # requires that you compile everything twice, which is a pain.
6897 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6898 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6899 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6900 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6909 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6912 hardcode_shlibpath_var=no
6916 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6917 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6918 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6925 if test "$ld_shlibs" = no; then
6927 hardcode_libdir_flag_spec=
6928 export_dynamic_flag_spec=
6929 whole_archive_flag_spec=
6932 # PORTME fill in a description of your system's linker (not GNU ld)
6935 allow_undefined_flag=unsupported
6936 always_export_symbols=yes
6937 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'
6938 # Note: this linker hardcodes the directories in LIBPATH if there
6939 # are no directories specified by -L.
6940 hardcode_minus_L=yes
6941 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6942 # Neither direct hardcoding nor static linking is supported with a
6944 hardcode_direct=unsupported
6949 if test "$host_cpu" = ia64; then
6950 # On IA64, the linker does run time linking by default, so we don't
6951 # have to do anything special.
6952 aix_use_runtimelinking=no
6953 exp_sym_flag='-Bexport'
6956 # If we're using GNU nm, then we don't want the "-C" option.
6957 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6958 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6959 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'
6961 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'
6963 aix_use_runtimelinking=no
6965 # Test if we are trying to use run time linking or normal
6966 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6967 # need to do runtime linking.
6968 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6969 for ld_flag in $LDFLAGS; do
6970 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6971 aix_use_runtimelinking=yes
6978 exp_sym_flag='-bexport'
6979 no_entry_flag='-bnoentry'
6982 # When large executables or shared objects are built, AIX ld can
6983 # have problems creating the table of contents. If linking a library
6984 # or program results in "error TOC overflow" add -mminimal-toc to
6985 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6986 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6990 hardcode_direct_absolute=yes
6991 hardcode_libdir_separator=':'
6992 link_all_deplibs=yes
6993 file_list_spec='${wl}-f,'
6995 if test "$GCC" = yes; then
6996 case $host_os in aix4.[012]|aix4.[012].*)
6997 # We only want to do this on AIX 4.2 and lower, the check
6998 # below for broken collect2 doesn't work under 4.3+
6999 collect2name=`${CC} -print-prog-name=collect2`
7000 if test -f "$collect2name" &&
7001 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7003 # We have reworked collect2
7006 # We have old collect2
7007 hardcode_direct=unsupported
7008 # It fails to find uninstalled libraries when the uninstalled
7009 # path is not listed in the libpath. Setting hardcode_minus_L
7010 # to unsupported forces relinking
7011 hardcode_minus_L=yes
7012 hardcode_libdir_flag_spec='-L$libdir'
7013 hardcode_libdir_separator=
7017 shared_flag='-shared'
7018 if test "$aix_use_runtimelinking" = yes; then
7019 shared_flag="$shared_flag "'${wl}-G'
7023 if test "$host_cpu" = ia64; then
7024 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7025 # chokes on -Wl,-G. The following line is correct:
7028 if test "$aix_use_runtimelinking" = yes; then
7029 shared_flag='${wl}-G'
7031 shared_flag='${wl}-bM:SRE'
7036 # It seems that -bexpall does not export symbols beginning with
7037 # underscore (_), so it is better to generate a list of symbols to export.
7038 always_export_symbols=yes
7039 if test "$aix_use_runtimelinking" = yes; then
7040 # Warning - without using the other runtime loading flags (-brtl),
7041 # -berok will link without error, but may produce a broken library.
7042 allow_undefined_flag='-berok'
7043 # Determine the default libpath from the value encoded in an
7045 cat >conftest.$ac_ext <<_ACEOF
7048 cat confdefs.h >>conftest.$ac_ext
7049 cat >>conftest.$ac_ext <<_ACEOF
7050 /* end confdefs.h. */
7060 rm -f conftest.$ac_objext conftest$ac_exeext
7061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7062 (eval $ac_link) 2>conftest.er1
7064 grep -v '^ *+' conftest.er1 >conftest.err
7066 cat conftest.err >&5
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); } &&
7069 { ac_try='test -z "$ac_c_werror_flag"
7070 || test ! -s conftest.err'
7071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); }; } &&
7076 { ac_try='test -s conftest$ac_exeext'
7077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); }; }; then
7083 lt_aix_libpath_sed='
7084 /Import File Strings/,/^$/ {
7090 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7091 # Check for a 64-bit object if we didn't find anything.
7092 if test -z "$aix_libpath"; then
7093 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7096 echo "$as_me: failed program was:" >&5
7097 sed 's/^/| /' conftest.$ac_ext >&5
7100 rm -f conftest.err conftest.$ac_objext \
7101 conftest$ac_exeext conftest.$ac_ext
7102 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7104 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7105 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"
7107 if test "$host_cpu" = ia64; then
7108 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7109 allow_undefined_flag="-z nodefs"
7110 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"
7112 # Determine the default libpath from the value encoded in an
7114 cat >conftest.$ac_ext <<_ACEOF
7117 cat confdefs.h >>conftest.$ac_ext
7118 cat >>conftest.$ac_ext <<_ACEOF
7119 /* end confdefs.h. */
7129 rm -f conftest.$ac_objext conftest$ac_exeext
7130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7131 (eval $ac_link) 2>conftest.er1
7133 grep -v '^ *+' conftest.er1 >conftest.err
7135 cat conftest.err >&5
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); } &&
7138 { ac_try='test -z "$ac_c_werror_flag"
7139 || test ! -s conftest.err'
7140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144 (exit $ac_status); }; } &&
7145 { ac_try='test -s conftest$ac_exeext'
7146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); }; }; then
7152 lt_aix_libpath_sed='
7153 /Import File Strings/,/^$/ {
7159 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7160 # Check for a 64-bit object if we didn't find anything.
7161 if test -z "$aix_libpath"; then
7162 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7165 echo "$as_me: failed program was:" >&5
7166 sed 's/^/| /' conftest.$ac_ext >&5
7169 rm -f conftest.err conftest.$ac_objext \
7170 conftest$ac_exeext conftest.$ac_ext
7171 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7173 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7174 # Warning - without using the other run time loading flags,
7175 # -berok will link without error, but may produce a broken library.
7176 no_undefined_flag=' ${wl}-bernotok'
7177 allow_undefined_flag=' ${wl}-berok'
7178 # Exported symbols can be pulled into shared objects from archives
7179 whole_archive_flag_spec='$convenience'
7180 archive_cmds_need_lc=yes
7181 # This is similar to how AIX traditionally builds its shared libraries.
7182 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'
7188 if test "$host_cpu" = m68k; then
7189 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)'
7190 hardcode_libdir_flag_spec='-L$libdir'
7191 hardcode_minus_L=yes
7193 # see comment about different semantics on the GNU ld section
7198 export_dynamic_flag_spec=-rdynamic
7201 cygwin* | mingw* | pw32*)
7202 # When not using gcc, we currently assume that we are using
7203 # Microsoft Visual C++.
7204 # hardcode_libdir_flag_spec is actually meaningless, as there is
7205 # no search path for DLLs.
7206 hardcode_libdir_flag_spec=' '
7207 allow_undefined_flag=unsupported
7208 # Tell ltmain to make .lib files, not .a files.
7210 # Tell ltmain to make .dll files, not .so files.
7212 # FIXME: Setting linknames here is a bad hack.
7213 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7214 # The linker will automatically build a .lib file if we build a DLL.
7215 old_archive_from_new_cmds='true'
7216 # FIXME: Should let the user specify the lib program.
7217 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7218 fix_srcfile_path='`cygpath -w "$srcfile"`'
7219 enable_shared_with_static_runtimes=yes
7222 darwin* | rhapsody*)
7224 rhapsody* | darwin1.[012])
7225 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7228 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7230 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7233 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7238 archive_cmds_need_lc=no
7240 hardcode_automatic=yes
7241 hardcode_shlibpath_var=unsupported
7242 whole_archive_flag_spec=''
7243 link_all_deplibs=yes
7244 if test "$GCC" = yes ; then
7245 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7246 echo $ECHO_N "(cached) $ECHO_C" >&6
7248 lt_cv_apple_cc_single_mod=no
7249 if test -z "${LT_MULTI_MODULE}"; then
7250 # By default we will add the -single_module flag. You can override
7251 # by either setting the environment variable LT_MULTI_MODULE
7252 # non-empty at configure time, or by adding -multi-module to the
7254 echo "int foo(void){return 1;}" > conftest.c
7255 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7256 -dynamiclib ${wl}-single_module conftest.c
7257 if test -f libconftest.dylib; then
7258 lt_cv_apple_cc_single_mod=yes
7259 rm libconftest.dylib
7265 output_verbose_link_cmd=echo
7266 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7267 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7268 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7270 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7271 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7273 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7274 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7276 case $cc_basename in
7278 output_verbose_link_cmd=echo
7279 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7280 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7281 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7282 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7283 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7293 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7294 hardcode_libdir_flag_spec='-L$libdir'
7295 hardcode_shlibpath_var=no
7302 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7303 # support. Future versions do this automatically, but an explicit c++rt0.o
7304 # does not break anything, and helps significantly (at the cost of a little
7307 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7308 hardcode_libdir_flag_spec='-R$libdir'
7310 hardcode_shlibpath_var=no
7313 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7315 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7317 hardcode_minus_L=yes
7318 hardcode_shlibpath_var=no
7321 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7322 freebsd* | dragonfly*)
7323 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7324 hardcode_libdir_flag_spec='-R$libdir'
7326 hardcode_shlibpath_var=no
7330 if test "$GCC" = yes; then
7331 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'
7333 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'
7335 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7336 hardcode_libdir_separator=:
7339 # hardcode_minus_L: Not really in the search PATH,
7340 # but as the default location of the library.
7341 hardcode_minus_L=yes
7342 export_dynamic_flag_spec='${wl}-E'
7346 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7347 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7349 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7351 if test "$with_gnu_ld" = no; then
7352 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7353 hardcode_libdir_flag_spec_ld='+b $libdir'
7354 hardcode_libdir_separator=:
7356 hardcode_direct_absolute=yes
7357 export_dynamic_flag_spec='${wl}-E'
7358 # hardcode_minus_L: Not really in the search PATH,
7359 # but as the default location of the library.
7360 hardcode_minus_L=yes
7365 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7368 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7371 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7374 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7380 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7383 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7386 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7390 if test "$with_gnu_ld" = no; then
7391 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7392 hardcode_libdir_separator=:
7397 hardcode_shlibpath_var=no
7401 hardcode_direct_absolute=yes
7402 export_dynamic_flag_spec='${wl}-E'
7404 # hardcode_minus_L: Not really in the search PATH,
7405 # but as the default location of the library.
7406 hardcode_minus_L=yes
7412 irix5* | irix6* | nonstopux*)
7413 if test "$GCC" = yes; then
7414 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'
7415 # Try to use the -exported_symbol ld option, if it does not
7416 # work, assume that -exports_file does not work either and
7417 # implicitly export all symbols.
7418 save_LDFLAGS="$LDFLAGS"
7419 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7420 cat >conftest.$ac_ext <<_ACEOF
7423 rm -f conftest.$ac_objext conftest$ac_exeext
7424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7425 (eval $ac_link) 2>conftest.er1
7427 grep -v '^ *+' conftest.er1 >conftest.err
7429 cat conftest.err >&5
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); } &&
7432 { ac_try='test -z "$ac_c_werror_flag"
7433 || test ! -s conftest.err'
7434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438 (exit $ac_status); }; } &&
7439 { ac_try='test -s conftest$ac_exeext'
7440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); }; }; then
7445 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'
7448 echo "$as_me: failed program was:" >&5
7449 sed 's/^/| /' conftest.$ac_ext >&5
7452 rm -f conftest.err conftest.$ac_objext \
7453 conftest$ac_exeext conftest.$ac_ext
7454 LDFLAGS="$save_LDFLAGS"
7456 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'
7457 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'
7459 archive_cmds_need_lc='no'
7460 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7461 hardcode_libdir_separator=:
7463 link_all_deplibs=yes
7467 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7468 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7470 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7472 hardcode_libdir_flag_spec='-R$libdir'
7474 hardcode_shlibpath_var=no
7478 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7480 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7481 hardcode_libdir_separator=:
7482 hardcode_shlibpath_var=no
7490 hardcode_shlibpath_var=no
7491 hardcode_direct_absolute=yes
7492 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7493 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7494 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7495 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7496 export_dynamic_flag_spec='${wl}-E'
7499 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7500 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7501 hardcode_libdir_flag_spec='-R$libdir'
7504 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7505 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7512 hardcode_libdir_flag_spec='-L$libdir'
7513 hardcode_minus_L=yes
7514 allow_undefined_flag=unsupported
7515 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'
7516 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7520 if test "$GCC" = yes; then
7521 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7522 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'
7524 allow_undefined_flag=' -expect_unresolved \*'
7525 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'
7527 archive_cmds_need_lc='no'
7528 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7529 hardcode_libdir_separator=:
7532 osf4* | osf5*) # as osf3* with the addition of -msym flag
7533 if test "$GCC" = yes; then
7534 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7535 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'
7536 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7538 allow_undefined_flag=' -expect_unresolved \*'
7539 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'
7540 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~
7541 $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'
7543 # Both c and cxx compiler support -rpath directly
7544 hardcode_libdir_flag_spec='-rpath $libdir'
7546 archive_cmds_need_lc='no'
7547 hardcode_libdir_separator=:
7551 no_undefined_flag=' -z defs'
7552 if test "$GCC" = yes; then
7554 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7555 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7556 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7558 case `$CC -V 2>&1` in
7561 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7562 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7563 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7567 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7568 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7569 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7573 hardcode_libdir_flag_spec='-R$libdir'
7574 hardcode_shlibpath_var=no
7576 solaris2.[0-5] | solaris2.[0-5].*) ;;
7578 # The compiler driver will combine and reorder linker options,
7579 # but understands `-z linker_flag'. GCC discards it without `$wl',
7580 # but is careful enough not to reorder.
7581 # Supported since Solaris 2.6 (maybe 2.5.1?)
7582 if test "$GCC" = yes; then
7583 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7585 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7589 link_all_deplibs=yes
7593 if test "x$host_vendor" = xsequent; then
7594 # Use $CC to link under sequent, because it throws in some extra .o
7595 # files that make .init and .fini sections work.
7596 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7598 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7600 hardcode_libdir_flag_spec='-L$libdir'
7602 hardcode_minus_L=yes
7603 hardcode_shlibpath_var=no
7607 case $host_vendor in
7609 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7610 hardcode_direct=yes # is this really true???
7613 ## LD is ld it makes a PLAMLIB
7614 ## CC just makes a GrossModule.
7615 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7616 reload_cmds='$CC -r -o $output$reload_objs'
7620 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7621 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7624 runpath_var='LD_RUN_PATH'
7625 hardcode_shlibpath_var=no
7629 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7630 hardcode_shlibpath_var=no
7631 export_dynamic_flag_spec='-Bexport'
7635 if test -d /usr/nec; then
7636 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7637 hardcode_shlibpath_var=no
7638 runpath_var=LD_RUN_PATH
7639 hardcode_runpath_var=yes
7644 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7645 no_undefined_flag='${wl}-z,text'
7646 archive_cmds_need_lc=no
7647 hardcode_shlibpath_var=no
7648 runpath_var='LD_RUN_PATH'
7650 if test "$GCC" = yes; then
7651 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7652 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7654 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7655 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7659 sysv5* | sco3.2v5* | sco5v6*)
7660 # Note: We can NOT use -z defs as we might desire, because we do not
7661 # link with -lc, and that would cause any symbols used from libc to
7662 # always be unresolved, which means just about no library would
7663 # ever link correctly. If we're not using GNU ld we use -z text
7664 # though, which does catch some bad symbols but isn't as heavy-handed
7666 no_undefined_flag='${wl}-z,text'
7667 allow_undefined_flag='${wl}-z,nodefs'
7668 archive_cmds_need_lc=no
7669 hardcode_shlibpath_var=no
7670 hardcode_libdir_flag_spec='${wl}-R,$libdir'
7671 hardcode_libdir_separator=':'
7672 link_all_deplibs=yes
7673 export_dynamic_flag_spec='${wl}-Bexport'
7674 runpath_var='LD_RUN_PATH'
7676 if test "$GCC" = yes; then
7677 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7678 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7680 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7681 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7686 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7687 hardcode_libdir_flag_spec='-L$libdir'
7688 hardcode_shlibpath_var=no
7696 if test x$host_vendor = xsni; then
7698 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7699 export_dynamic_flag_spec='${wl}-Blargedynsym'
7705 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7706 echo "${ECHO_T}$ld_shlibs" >&6
7707 test "$ld_shlibs" = no && can_build_shared=no
7709 with_gnu_ld=$with_gnu_ld
7726 # Do we need to explicitly link libc?
7728 case "x$archive_cmds_need_lc" in
7730 # Assume -lc should be added
7731 archive_cmds_need_lc=yes
7733 if test "$enable_shared" = yes && test "$GCC" = yes; then
7734 case $archive_cmds in
7736 # FIXME: we may have to deal with multi-command sequences.
7739 # Test whether the compiler implicitly links with -lc since on some
7740 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7741 # to ld, don't add -lc before -lgcc.
7742 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7743 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7745 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7748 (eval $ac_compile) 2>&5
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); } 2>conftest.err; then
7754 libobjs=conftest.$ac_objext
7756 wl=$lt_prog_compiler_wl
7757 pic_flag=$lt_prog_compiler_pic
7763 lt_save_allow_undefined_flag=$allow_undefined_flag
7764 allow_undefined_flag=
7765 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
7766 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); }
7771 archive_cmds_need_lc=no
7773 archive_cmds_need_lc=yes
7775 allow_undefined_flag=$lt_save_allow_undefined_flag
7777 cat conftest.err 1>&5
7780 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7781 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7944 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7945 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7947 if test "$withGCC" = yes; then
7949 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
7950 *) lt_awk_arg="/^libraries:/" ;;
7952 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7953 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
7954 # if the path contains ";" then we assume it to be the separator
7955 # otherwise default to the standard path separator (i.e. ":") - it is
7956 # assumed that no part of a normal pathname contains ";" but that should
7957 # okay in the real world where ";" in dirpaths is itself problematic.
7958 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
7960 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7962 # Ok, now we have the path, separated by spaces, we can step through it
7963 # and add multilib dir if necessary.
7964 lt_tmp_lt_search_path_spec=
7965 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
7966 for lt_sys_path in $lt_search_path_spec; do
7967 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
7968 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
7970 test -d "$lt_sys_path" && \
7971 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
7974 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
7975 BEGIN {RS=" "; FS="/|\n";} {
7978 for (lt_i = NF; lt_i > 0; lt_i--) {
7979 if ($lt_i != "" && $lt_i != ".") {
7980 if ($lt_i == "..") {
7983 if (lt_count == 0) {
7984 lt_foo="/" $lt_i lt_foo;
7991 if (lt_foo != "") { lt_freq[lt_foo]++; }
7992 if (lt_freq[lt_foo] == 1) { print lt_foo; }
7994 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
7996 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7999 libname_spec='lib$name'
8007 shlibpath_overrides_runpath=unknown
8009 dynamic_linker="$host_os ld.so"
8010 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8011 need_lib_prefix=unknown
8012 hardcode_into_libs=no
8014 # when you set need_version to no, make sure it does not cause -set_version
8015 # flags to be left without arguments
8016 need_version=unknown
8021 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8022 shlibpath_var=LIBPATH
8024 # AIX 3 has no versioning support, so we append a major version to the name.
8025 soname_spec='${libname}${release}${shared_ext}$major'
8032 hardcode_into_libs=yes
8033 if test "$host_cpu" = ia64; then
8034 # AIX 5 supports IA64
8035 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8036 shlibpath_var=LD_LIBRARY_PATH
8038 # With GCC up to 2.95.x, collect2 would create an import file
8039 # for dependence libraries. The import file would start with
8040 # the line `#! .'. This would cause the generated library to
8041 # depend on `.', always an invalid library. This was fixed in
8042 # development snapshots of GCC prior to 3.0.
8044 aix4 | aix4.[01] | aix4.[01].*)
8045 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8047 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8054 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8055 # soname into executable. Probably we can add versioning support to
8056 # collect2, so additional links can be useful in future.
8057 if test "$aix_use_runtimelinking" = yes; then
8058 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8059 # instead of lib<name>.a to let people know that these are not
8060 # typical AIX shared libraries.
8061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8063 # We preserve .a as extension for shared libraries through AIX4.2
8064 # and later when we are not doing run time linking.
8065 library_names_spec='${libname}${release}.a $libname.a'
8066 soname_spec='${libname}${release}${shared_ext}$major'
8068 shlibpath_var=LIBPATH
8073 if test "$host_cpu" = m68k; then
8074 library_names_spec='$libname.ixlibrary $libname.a'
8075 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8076 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'
8083 library_names_spec='${libname}${shared_ext}'
8084 dynamic_linker="$host_os ld.so"
8085 shlibpath_var=LIBRARY_PATH
8091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8092 soname_spec='${libname}${release}${shared_ext}$major'
8093 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8094 shlibpath_var=LD_LIBRARY_PATH
8095 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8096 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8097 # the default ld.so.conf also contains /usr/contrib/lib and
8098 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8099 # libtool to hard-code these into programs
8102 cygwin* | mingw* | pw32*)
8103 version_type=windows
8108 case $withGCC,$host_os in
8109 yes,cygwin* | yes,mingw* | yes,pw32*)
8110 library_names_spec='$libname.dll.a'
8111 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8112 postinstall_cmds='base_file=`basename \${file}`~
8113 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8114 dldir=$destdir/`dirname \$dlpath`~
8115 test -d \$dldir || mkdir -p \$dldir~
8116 $install_prog $dir/$dlname \$dldir/$dlname~
8117 chmod a+x \$dldir/$dlname~
8118 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8119 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8121 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8122 dlpath=$dir/\$dldll~
8124 shlibpath_overrides_runpath=yes
8128 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8129 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8130 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8133 # MinGW DLLs use traditional 'lib' prefix
8134 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8135 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8136 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8137 # It is most probably a Windows format PATH printed by
8138 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8139 # path with ; separators, and with drive letters. We can handle the
8140 # drive letters (cygwin fileutils understands them), so leave them,
8141 # especially as we might pass files found there to a mingw objdump,
8142 # which wouldn't understand a cygwinified path. Ahh.
8143 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8145 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8149 # pw32 DLLs use 'pw' prefix rather than 'lib'
8150 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8156 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8159 dynamic_linker='Win32 ld.exe'
8160 # FIXME: first we should search . and the directory the executable is in
8164 darwin* | rhapsody*)
8165 dynamic_linker="$host_os dyld"
8169 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8170 soname_spec='${libname}${release}${major}$shared_ext'
8171 shlibpath_overrides_runpath=yes
8172 shlibpath_var=DYLD_LIBRARY_PATH
8173 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8175 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8176 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8184 soname_spec='${libname}${release}${shared_ext}$major'
8185 shlibpath_var=LD_LIBRARY_PATH
8192 freebsd* | dragonfly*)
8193 # DragonFly does not have aout. When/if they implement a new
8194 # versioning mechanism, adjust this.
8195 if test -x /usr/bin/objformat; then
8196 objformat=`/usr/bin/objformat`
8199 freebsd[123]*) objformat=aout ;;
8203 version_type=freebsd-$objformat
8204 case $version_type in
8206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8211 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8215 shlibpath_var=LD_LIBRARY_PATH
8218 shlibpath_overrides_runpath=yes
8220 freebsd3.[01]* | freebsdelf3.[01]*)
8221 shlibpath_overrides_runpath=yes
8222 hardcode_into_libs=yes
8224 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8225 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8226 shlibpath_overrides_runpath=no
8227 hardcode_into_libs=yes
8229 *) # from 4.6 on, and DragonFly
8230 shlibpath_overrides_runpath=yes
8231 hardcode_into_libs=yes
8240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8241 soname_spec='${libname}${release}${shared_ext}$major'
8242 shlibpath_var=LD_LIBRARY_PATH
8243 hardcode_into_libs=yes
8246 hpux9* | hpux10* | hpux11*)
8247 # Give a soname corresponding to the major version so that dld.sl refuses to
8248 # link against other versions.
8255 hardcode_into_libs=yes
8256 dynamic_linker="$host_os dld.so"
8257 shlibpath_var=LD_LIBRARY_PATH
8258 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8260 soname_spec='${libname}${release}${shared_ext}$major'
8261 if test "X$HPUX_IA64_MODE" = X32; then
8262 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8264 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8266 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8270 hardcode_into_libs=yes
8271 dynamic_linker="$host_os dld.sl"
8272 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8273 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8275 soname_spec='${libname}${release}${shared_ext}$major'
8276 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8277 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8281 dynamic_linker="$host_os dld.sl"
8282 shlibpath_var=SHLIB_PATH
8283 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8285 soname_spec='${libname}${release}${shared_ext}$major'
8288 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8289 postinstall_cmds='chmod 555 $lib'
8296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8297 soname_spec='${libname}${release}${shared_ext}$major'
8298 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8299 shlibpath_var=LD_LIBRARY_PATH
8300 shlibpath_overrides_runpath=no
8301 hardcode_into_libs=yes
8304 irix5* | irix6* | nonstopux*)
8306 nonstopux*) version_type=nonstopux ;;
8308 if test "$lt_cv_prog_gnu_ld" = yes; then
8316 soname_spec='${libname}${release}${shared_ext}$major'
8317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8319 irix5* | nonstopux*)
8323 case $LD in # libtool.m4 will add one of these switches to LD
8324 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8325 libsuff= shlibsuff= libmagic=32-bit;;
8326 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8327 libsuff=32 shlibsuff=N32 libmagic=N32;;
8328 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8329 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8330 *) libsuff= shlibsuff= libmagic=never-match;;
8334 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8335 shlibpath_overrides_runpath=no
8336 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8337 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8338 hardcode_into_libs=yes
8341 # No shared lib support for Linux oldld, aout, or coff.
8342 linux*oldld* | linux*aout* | linux*coff*)
8346 # This must be Linux ELF.
8347 linux* | k*bsd*-gnu)
8351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8352 soname_spec='${libname}${release}${shared_ext}$major'
8353 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8354 shlibpath_var=LD_LIBRARY_PATH
8355 shlibpath_overrides_runpath=no
8356 # Some binutils ld are patched to set DT_RUNPATH
8357 save_LDFLAGS=$LDFLAGS
8359 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8360 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8361 cat >conftest.$ac_ext <<_ACEOF
8364 cat confdefs.h >>conftest.$ac_ext
8365 cat >>conftest.$ac_ext <<_ACEOF
8366 /* end confdefs.h. */
8376 rm -f conftest.$ac_objext conftest$ac_exeext
8377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8378 (eval $ac_link) 2>conftest.er1
8380 grep -v '^ *+' conftest.er1 >conftest.err
8382 cat conftest.err >&5
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); } &&
8385 { ac_try='test -z "$ac_c_werror_flag"
8386 || test ! -s conftest.err'
8387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); }; } &&
8392 { ac_try='test -s conftest$ac_exeext'
8393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); }; }; then
8398 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8399 shlibpath_overrides_runpath=yes
8403 echo "$as_me: failed program was:" >&5
8404 sed 's/^/| /' conftest.$ac_ext >&5
8407 rm -f conftest.err conftest.$ac_objext \
8408 conftest$ac_exeext conftest.$ac_ext
8409 LDFLAGS=$save_LDFLAGS
8412 # This implies no fast_install, which is unacceptable.
8413 # Some rework will be needed to allow for fast_install
8414 # before this can be enabled.
8415 hardcode_into_libs=yes
8417 # Append ld.so.conf contents to the search path
8418 if test -f /etc/ld.so.conf; then
8419 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8420 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8423 # We used to test for /lib/ld.so.1 and disable shared libraries on
8424 # powerpc, because MkLinux only supported shared libraries with the
8425 # GNU dynamic linker. Since this was broken with cross compilers,
8426 # most powerpc-linux boxes support dynamic linking these days and
8427 # people can always --disable-shared, the test was removed, and we
8428 # assume the GNU/Linux dynamic linker is in use.
8429 dynamic_linker='GNU/Linux ld.so'
8436 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8438 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8439 dynamic_linker='NetBSD (a.out) ld.so'
8441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8442 soname_spec='${libname}${release}${shared_ext}$major'
8443 dynamic_linker='NetBSD ld.elf_so'
8445 shlibpath_var=LD_LIBRARY_PATH
8446 shlibpath_overrides_runpath=yes
8447 hardcode_into_libs=yes
8452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8453 shlibpath_var=LD_LIBRARY_PATH
8454 shlibpath_overrides_runpath=yes
8461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8462 soname_spec='${libname}${release}${shared_ext}$major'
8463 shlibpath_var=LD_LIBRARY_PATH
8464 shlibpath_overrides_runpath=no
8465 hardcode_into_libs=yes
8466 dynamic_linker='ldqnx.so'
8471 sys_lib_dlsearch_path_spec="/usr/lib"
8473 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8475 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8476 *) need_version=no ;;
8478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8479 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8480 shlibpath_var=LD_LIBRARY_PATH
8481 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8483 openbsd2.[89] | openbsd2.[89].*)
8484 shlibpath_overrides_runpath=no
8487 shlibpath_overrides_runpath=yes
8491 shlibpath_overrides_runpath=yes
8496 libname_spec='$name'
8499 library_names_spec='$libname${shared_ext} $libname.a'
8500 dynamic_linker='OS/2 ld.exe'
8501 shlibpath_var=LIBPATH
8504 osf3* | osf4* | osf5*)
8508 soname_spec='${libname}${release}${shared_ext}$major'
8509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8510 shlibpath_var=LD_LIBRARY_PATH
8511 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8512 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8524 soname_spec='${libname}${release}${shared_ext}$major'
8525 shlibpath_var=LD_LIBRARY_PATH
8526 shlibpath_overrides_runpath=yes
8527 hardcode_into_libs=yes
8528 # ldd complains unless libraries are executable
8529 postinstall_cmds='chmod +x $lib'
8534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8535 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8536 shlibpath_var=LD_LIBRARY_PATH
8537 shlibpath_overrides_runpath=yes
8538 if test "$with_gnu_ld" = yes; then
8546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8547 soname_spec='${libname}${release}${shared_ext}$major'
8548 shlibpath_var=LD_LIBRARY_PATH
8549 case $host_vendor in
8551 shlibpath_overrides_runpath=no
8553 runpath_var=LD_RUN_PATH
8561 shlibpath_overrides_runpath=no
8562 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8568 if test -d /usr/nec ;then
8570 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8571 soname_spec='$libname${shared_ext}.$major'
8572 shlibpath_var=LD_LIBRARY_PATH
8576 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8577 version_type=freebsd-elf
8580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8581 soname_spec='${libname}${release}${shared_ext}$major'
8582 shlibpath_var=LD_LIBRARY_PATH
8583 shlibpath_overrides_runpath=yes
8584 hardcode_into_libs=yes
8585 if test "$with_gnu_ld" = yes; then
8586 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8588 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8591 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8595 sys_lib_dlsearch_path_spec='/usr/lib'
8599 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
8603 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8604 shlibpath_var=LD_LIBRARY_PATH
8605 shlibpath_overrides_runpath=no
8606 hardcode_into_libs=yes
8611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8612 soname_spec='${libname}${release}${shared_ext}$major'
8613 shlibpath_var=LD_LIBRARY_PATH
8620 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8621 echo "${ECHO_T}$dynamic_linker" >&6
8622 test "$dynamic_linker" = no && can_build_shared=no
8624 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8625 if test "$GCC" = yes; then
8626 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8715 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8716 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8718 if test -n "$hardcode_libdir_flag_spec" ||
8719 test -n "$runpath_var" ||
8720 test "X$hardcode_automatic" = "Xyes" ; then
8722 # We can hardcode non-existent directories.
8723 if test "$hardcode_direct" != no &&
8724 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8725 # have to relink, otherwise we might link with an installed library
8726 # when we should be linking with a yet-to-be-installed one
8727 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
8728 test "$hardcode_minus_L" != no; then
8729 # Linking always hardcodes the temporary library directory.
8730 hardcode_action=relink
8732 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8733 hardcode_action=immediate
8736 # We cannot hardcode anything, or else we can only hardcode existing
8738 hardcode_action=unsupported
8740 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8741 echo "${ECHO_T}$hardcode_action" >&6
8743 if test "$hardcode_action" = relink ||
8744 test "$inherit_rpath" = yes; then
8745 # Fast installation is not supported
8746 enable_fast_install=no
8747 elif test "$shlibpath_overrides_runpath" = yes ||
8748 test "$enable_shared" = no; then
8749 # Fast installation is not necessary
8750 enable_fast_install=needless
8758 if test "x$enable_dlopen" != xyes; then
8759 enable_dlopen=unknown
8760 enable_dlopen_self=unknown
8761 enable_dlopen_self_static=unknown
8768 lt_cv_dlopen="load_add_on"
8770 lt_cv_dlopen_self=yes
8774 lt_cv_dlopen="LoadLibrary"
8779 lt_cv_dlopen="dlopen"
8784 # if libdl is installed we need to link against it
8785 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8786 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8787 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8788 echo $ECHO_N "(cached) $ECHO_C" >&6
8790 ac_check_lib_save_LIBS=$LIBS
8792 cat >conftest.$ac_ext <<_ACEOF
8795 cat confdefs.h >>conftest.$ac_ext
8796 cat >>conftest.$ac_ext <<_ACEOF
8797 /* end confdefs.h. */
8799 /* Override any gcc2 internal prototype to avoid an error. */
8803 /* We use char because int might match the return type of a gcc2
8804 builtin and then its argument prototype would still apply. */
8814 rm -f conftest.$ac_objext conftest$ac_exeext
8815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8816 (eval $ac_link) 2>conftest.er1
8818 grep -v '^ *+' conftest.er1 >conftest.err
8820 cat conftest.err >&5
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); } &&
8823 { ac_try='test -z "$ac_c_werror_flag"
8824 || test ! -s conftest.err'
8825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); }; } &&
8830 { ac_try='test -s conftest$ac_exeext'
8831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); }; }; then
8836 ac_cv_lib_dl_dlopen=yes
8838 echo "$as_me: failed program was:" >&5
8839 sed 's/^/| /' conftest.$ac_ext >&5
8841 ac_cv_lib_dl_dlopen=no
8843 rm -f conftest.err conftest.$ac_objext \
8844 conftest$ac_exeext conftest.$ac_ext
8845 LIBS=$ac_check_lib_save_LIBS
8847 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8848 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8849 if test $ac_cv_lib_dl_dlopen = yes; then
8850 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8855 lt_cv_dlopen_self=yes
8862 echo "$as_me:$LINENO: checking for shl_load" >&5
8863 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8864 if test "${ac_cv_func_shl_load+set}" = set; then
8865 echo $ECHO_N "(cached) $ECHO_C" >&6
8867 cat >conftest.$ac_ext <<_ACEOF
8870 cat confdefs.h >>conftest.$ac_ext
8871 cat >>conftest.$ac_ext <<_ACEOF
8872 /* end confdefs.h. */
8873 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8875 #define shl_load innocuous_shl_load
8877 /* System header to define __stub macros and hopefully few prototypes,
8878 which can conflict with char shl_load (); below.
8879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8880 <limits.h> exists even on freestanding compilers. */
8883 # include <limits.h>
8885 # include <assert.h>
8890 /* Override any gcc2 internal prototype to avoid an error. */
8895 /* We use char because int might match the return type of a gcc2
8896 builtin and then its argument prototype would still apply. */
8898 /* The GNU C library defines this for functions which it implements
8899 to always fail with ENOSYS. Some functions are actually named
8900 something starting with __ and the normal name is an alias. */
8901 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8904 char (*f) () = shl_load;
8913 return f != shl_load;
8918 rm -f conftest.$ac_objext conftest$ac_exeext
8919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8920 (eval $ac_link) 2>conftest.er1
8922 grep -v '^ *+' conftest.er1 >conftest.err
8924 cat conftest.err >&5
8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); } &&
8927 { ac_try='test -z "$ac_c_werror_flag"
8928 || test ! -s conftest.err'
8929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); }; } &&
8934 { ac_try='test -s conftest$ac_exeext'
8935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); }; }; then
8940 ac_cv_func_shl_load=yes
8942 echo "$as_me: failed program was:" >&5
8943 sed 's/^/| /' conftest.$ac_ext >&5
8945 ac_cv_func_shl_load=no
8947 rm -f conftest.err conftest.$ac_objext \
8948 conftest$ac_exeext conftest.$ac_ext
8950 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8951 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8952 if test $ac_cv_func_shl_load = yes; then
8953 lt_cv_dlopen="shl_load"
8955 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8956 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8957 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8958 echo $ECHO_N "(cached) $ECHO_C" >&6
8960 ac_check_lib_save_LIBS=$LIBS
8962 cat >conftest.$ac_ext <<_ACEOF
8965 cat confdefs.h >>conftest.$ac_ext
8966 cat >>conftest.$ac_ext <<_ACEOF
8967 /* end confdefs.h. */
8969 /* Override any gcc2 internal prototype to avoid an error. */
8973 /* We use char because int might match the return type of a gcc2
8974 builtin and then its argument prototype would still apply. */
8984 rm -f conftest.$ac_objext conftest$ac_exeext
8985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8986 (eval $ac_link) 2>conftest.er1
8988 grep -v '^ *+' conftest.er1 >conftest.err
8990 cat conftest.err >&5
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); } &&
8993 { ac_try='test -z "$ac_c_werror_flag"
8994 || test ! -s conftest.err'
8995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); }; } &&
9000 { ac_try='test -s conftest$ac_exeext'
9001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); }; }; then
9006 ac_cv_lib_dld_shl_load=yes
9008 echo "$as_me: failed program was:" >&5
9009 sed 's/^/| /' conftest.$ac_ext >&5
9011 ac_cv_lib_dld_shl_load=no
9013 rm -f conftest.err conftest.$ac_objext \
9014 conftest$ac_exeext conftest.$ac_ext
9015 LIBS=$ac_check_lib_save_LIBS
9017 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9018 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9019 if test $ac_cv_lib_dld_shl_load = yes; then
9020 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9022 echo "$as_me:$LINENO: checking for dlopen" >&5
9023 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9024 if test "${ac_cv_func_dlopen+set}" = set; then
9025 echo $ECHO_N "(cached) $ECHO_C" >&6
9027 cat >conftest.$ac_ext <<_ACEOF
9030 cat confdefs.h >>conftest.$ac_ext
9031 cat >>conftest.$ac_ext <<_ACEOF
9032 /* end confdefs.h. */
9033 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9035 #define dlopen innocuous_dlopen
9037 /* System header to define __stub macros and hopefully few prototypes,
9038 which can conflict with char dlopen (); below.
9039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9040 <limits.h> exists even on freestanding compilers. */
9043 # include <limits.h>
9045 # include <assert.h>
9050 /* Override any gcc2 internal prototype to avoid an error. */
9055 /* We use char because int might match the return type of a gcc2
9056 builtin and then its argument prototype would still apply. */
9058 /* The GNU C library defines this for functions which it implements
9059 to always fail with ENOSYS. Some functions are actually named
9060 something starting with __ and the normal name is an alias. */
9061 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9064 char (*f) () = dlopen;
9078 rm -f conftest.$ac_objext conftest$ac_exeext
9079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9080 (eval $ac_link) 2>conftest.er1
9082 grep -v '^ *+' conftest.er1 >conftest.err
9084 cat conftest.err >&5
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); } &&
9087 { ac_try='test -z "$ac_c_werror_flag"
9088 || test ! -s conftest.err'
9089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); }; } &&
9094 { ac_try='test -s conftest$ac_exeext'
9095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); }; }; then
9100 ac_cv_func_dlopen=yes
9102 echo "$as_me: failed program was:" >&5
9103 sed 's/^/| /' conftest.$ac_ext >&5
9105 ac_cv_func_dlopen=no
9107 rm -f conftest.err conftest.$ac_objext \
9108 conftest$ac_exeext conftest.$ac_ext
9110 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9111 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9112 if test $ac_cv_func_dlopen = yes; then
9113 lt_cv_dlopen="dlopen"
9115 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9116 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9117 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9118 echo $ECHO_N "(cached) $ECHO_C" >&6
9120 ac_check_lib_save_LIBS=$LIBS
9122 cat >conftest.$ac_ext <<_ACEOF
9125 cat confdefs.h >>conftest.$ac_ext
9126 cat >>conftest.$ac_ext <<_ACEOF
9127 /* end confdefs.h. */
9129 /* Override any gcc2 internal prototype to avoid an error. */
9133 /* We use char because int might match the return type of a gcc2
9134 builtin and then its argument prototype would still apply. */
9144 rm -f conftest.$ac_objext conftest$ac_exeext
9145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9146 (eval $ac_link) 2>conftest.er1
9148 grep -v '^ *+' conftest.er1 >conftest.err
9150 cat conftest.err >&5
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); } &&
9153 { ac_try='test -z "$ac_c_werror_flag"
9154 || test ! -s conftest.err'
9155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); }; } &&
9160 { ac_try='test -s conftest$ac_exeext'
9161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); }; }; then
9166 ac_cv_lib_dl_dlopen=yes
9168 echo "$as_me: failed program was:" >&5
9169 sed 's/^/| /' conftest.$ac_ext >&5
9171 ac_cv_lib_dl_dlopen=no
9173 rm -f conftest.err conftest.$ac_objext \
9174 conftest$ac_exeext conftest.$ac_ext
9175 LIBS=$ac_check_lib_save_LIBS
9177 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9178 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9179 if test $ac_cv_lib_dl_dlopen = yes; then
9180 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9182 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9183 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9184 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9185 echo $ECHO_N "(cached) $ECHO_C" >&6
9187 ac_check_lib_save_LIBS=$LIBS
9189 cat >conftest.$ac_ext <<_ACEOF
9192 cat confdefs.h >>conftest.$ac_ext
9193 cat >>conftest.$ac_ext <<_ACEOF
9194 /* end confdefs.h. */
9196 /* Override any gcc2 internal prototype to avoid an error. */
9200 /* We use char because int might match the return type of a gcc2
9201 builtin and then its argument prototype would still apply. */
9211 rm -f conftest.$ac_objext conftest$ac_exeext
9212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9213 (eval $ac_link) 2>conftest.er1
9215 grep -v '^ *+' conftest.er1 >conftest.err
9217 cat conftest.err >&5
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); } &&
9220 { ac_try='test -z "$ac_c_werror_flag"
9221 || test ! -s conftest.err'
9222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); }; } &&
9227 { ac_try='test -s conftest$ac_exeext'
9228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); }; }; then
9233 ac_cv_lib_svld_dlopen=yes
9235 echo "$as_me: failed program was:" >&5
9236 sed 's/^/| /' conftest.$ac_ext >&5
9238 ac_cv_lib_svld_dlopen=no
9240 rm -f conftest.err conftest.$ac_objext \
9241 conftest$ac_exeext conftest.$ac_ext
9242 LIBS=$ac_check_lib_save_LIBS
9244 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9245 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9246 if test $ac_cv_lib_svld_dlopen = yes; then
9247 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9249 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9250 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9251 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9252 echo $ECHO_N "(cached) $ECHO_C" >&6
9254 ac_check_lib_save_LIBS=$LIBS
9256 cat >conftest.$ac_ext <<_ACEOF
9259 cat confdefs.h >>conftest.$ac_ext
9260 cat >>conftest.$ac_ext <<_ACEOF
9261 /* end confdefs.h. */
9263 /* Override any gcc2 internal prototype to avoid an error. */
9267 /* We use char because int might match the return type of a gcc2
9268 builtin and then its argument prototype would still apply. */
9278 rm -f conftest.$ac_objext conftest$ac_exeext
9279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9280 (eval $ac_link) 2>conftest.er1
9282 grep -v '^ *+' conftest.er1 >conftest.err
9284 cat conftest.err >&5
9285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286 (exit $ac_status); } &&
9287 { ac_try='test -z "$ac_c_werror_flag"
9288 || test ! -s conftest.err'
9289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); }; } &&
9294 { ac_try='test -s conftest$ac_exeext'
9295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); }; }; then
9300 ac_cv_lib_dld_dld_link=yes
9302 echo "$as_me: failed program was:" >&5
9303 sed 's/^/| /' conftest.$ac_ext >&5
9305 ac_cv_lib_dld_dld_link=no
9307 rm -f conftest.err conftest.$ac_objext \
9308 conftest$ac_exeext conftest.$ac_ext
9309 LIBS=$ac_check_lib_save_LIBS
9311 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9312 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9313 if test $ac_cv_lib_dld_dld_link = yes; then
9314 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9335 if test "x$lt_cv_dlopen" != xno; then
9341 case $lt_cv_dlopen in
9343 save_CPPFLAGS="$CPPFLAGS"
9344 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9346 save_LDFLAGS="$LDFLAGS"
9347 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9350 LIBS="$lt_cv_dlopen_libs $LIBS"
9352 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9353 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9354 if test "${lt_cv_dlopen_self+set}" = set; then
9355 echo $ECHO_N "(cached) $ECHO_C" >&6
9357 if test "$cross_compiling" = yes; then :
9358 lt_cv_dlopen_self=cross
9360 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9361 lt_status=$lt_dlunknown
9362 cat > conftest.$ac_ext <<_LT_EOF
9363 #line 9363 "configure"
9364 #include "confdefs.h"
9373 # define LT_DLGLOBAL RTLD_GLOBAL
9376 # define LT_DLGLOBAL DL_GLOBAL
9378 # define LT_DLGLOBAL 0
9382 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9383 find out it does not work in some platform. */
9384 #ifndef LT_DLLAZY_OR_NOW
9386 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9389 # define LT_DLLAZY_OR_NOW DL_LAZY
9392 # define LT_DLLAZY_OR_NOW RTLD_NOW
9395 # define LT_DLLAZY_OR_NOW DL_NOW
9397 # define LT_DLLAZY_OR_NOW 0
9405 extern "C" void exit (int);
9408 void fnord() { int i=42;}
9411 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9412 int status = $lt_dlunknown;
9416 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9417 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9418 /* dlclose (self); */
9426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9427 (eval $ac_link) 2>&5
9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9431 (./conftest; exit; ) >&5 2>/dev/null
9434 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9435 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9436 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9439 # compilation failed
9440 lt_cv_dlopen_self=no
9447 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9448 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9450 if test "x$lt_cv_dlopen_self" = xyes; then
9451 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9452 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9453 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9454 if test "${lt_cv_dlopen_self_static+set}" = set; then
9455 echo $ECHO_N "(cached) $ECHO_C" >&6
9457 if test "$cross_compiling" = yes; then :
9458 lt_cv_dlopen_self_static=cross
9460 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9461 lt_status=$lt_dlunknown
9462 cat > conftest.$ac_ext <<_LT_EOF
9463 #line 9463 "configure"
9464 #include "confdefs.h"
9473 # define LT_DLGLOBAL RTLD_GLOBAL
9476 # define LT_DLGLOBAL DL_GLOBAL
9478 # define LT_DLGLOBAL 0
9482 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9483 find out it does not work in some platform. */
9484 #ifndef LT_DLLAZY_OR_NOW
9486 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9489 # define LT_DLLAZY_OR_NOW DL_LAZY
9492 # define LT_DLLAZY_OR_NOW RTLD_NOW
9495 # define LT_DLLAZY_OR_NOW DL_NOW
9497 # define LT_DLLAZY_OR_NOW 0
9505 extern "C" void exit (int);
9508 void fnord() { int i=42;}
9511 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9512 int status = $lt_dlunknown;
9516 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9517 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9518 /* dlclose (self); */
9526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9527 (eval $ac_link) 2>&5
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9531 (./conftest; exit; ) >&5 2>/dev/null
9534 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9535 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9536 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9539 # compilation failed
9540 lt_cv_dlopen_self_static=no
9547 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9548 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9551 CPPFLAGS="$save_CPPFLAGS"
9552 LDFLAGS="$save_LDFLAGS"
9557 case $lt_cv_dlopen_self in
9558 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9559 *) enable_dlopen_self=unknown ;;
9562 case $lt_cv_dlopen_self_static in
9563 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9564 *) enable_dlopen_self_static=unknown ;;
9586 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9587 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9588 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9589 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9590 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9591 echo "$as_me:$LINENO: result: yes" >&5
9592 echo "${ECHO_T}yes" >&6
9594 # FIXME - insert some real tests, host_os isn't really good enough
9597 if test -n "$STRIP" ; then
9598 striplib="$STRIP -x"
9599 old_striplib="$STRIP -S"
9600 echo "$as_me:$LINENO: result: yes" >&5
9601 echo "${ECHO_T}yes" >&6
9603 echo "$as_me:$LINENO: result: no" >&5
9604 echo "${ECHO_T}no" >&6
9608 echo "$as_me:$LINENO: result: no" >&5
9609 echo "${ECHO_T}no" >&6
9625 # Report which library types will actually be built
9626 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9627 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9628 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9629 echo "${ECHO_T}$can_build_shared" >&6
9631 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9632 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9633 test "$can_build_shared" = "no" && enable_shared=no
9635 # On AIX, shared libraries and static libraries use the same namespace, and
9636 # are all built from PIC.
9639 test "$enable_shared" = yes && enable_static=no
9640 if test -n "$RANLIB"; then
9641 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9642 postinstall_cmds='$RANLIB $lib'
9647 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9648 test "$enable_shared" = yes && enable_static=no
9652 echo "$as_me:$LINENO: result: $enable_shared" >&5
9653 echo "${ECHO_T}$enable_shared" >&6
9655 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9656 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9657 # Make sure either enable_shared or enable_static is yes.
9658 test "$enable_shared" = yes || enable_static=yes
9659 echo "$as_me:$LINENO: result: $enable_static" >&5
9660 echo "${ECHO_T}$enable_static" >&6
9667 ac_cpp='$CPP $CPPFLAGS'
9668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9686 ac_config_commands="$ac_config_commands libtool"
9695 # Check whether --enable-targets or --disable-targets was given.
9696 if test "${enable_targets+set}" = set; then
9697 enableval="$enable_targets"
9698 case "${enableval}" in
9699 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
9700 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
9701 { (exit 1); exit 1; }; }
9703 no) enable_targets= ;;
9704 *) enable_targets=$enableval ;;
9706 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
9707 if test "${enable_commonbfdlib+set}" = set; then
9708 enableval="$enable_commonbfdlib"
9709 case "${enableval}" in
9710 yes) commonbfdlib=true ;;
9711 no) commonbfdlib=false ;;
9712 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for opcodes commonbfdlib option" >&5
9713 echo "$as_me: error: bad value ${enableval} for opcodes commonbfdlib option" >&2;}
9714 { (exit 1); exit 1; }; } ;;
9718 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9720 # Check whether --enable-werror or --disable-werror was given.
9721 if test "${enable_werror+set}" = set; then
9722 enableval="$enable_werror"
9723 case "${enableval}" in
9724 yes | y) ERROR_ON_WARNING="yes" ;;
9725 no | n) ERROR_ON_WARNING="no" ;;
9726 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
9727 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
9728 { (exit 1); exit 1; }; } ;;
9732 # Enable -Werror by default when using gcc
9733 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
9734 ERROR_ON_WARNING=yes
9738 if test "${ERROR_ON_WARNING}" = yes ; then
9739 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
9740 NO_WERROR="-Wno-error"
9743 if test "${GCC}" = yes ; then
9744 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
9747 # Check whether --enable-build-warnings or --disable-build-warnings was given.
9748 if test "${enable_build_warnings+set}" = set; then
9749 enableval="$enable_build_warnings"
9750 case "${enableval}" in
9751 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
9752 no) if test "${GCC}" = yes ; then
9755 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9756 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
9757 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9758 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
9759 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9763 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
9764 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
9771 ac_config_headers="$ac_config_headers config.h:config.in"
9774 if test -z "$target" ; then
9775 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
9776 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
9777 { (exit 1); exit 1; }; }
9780 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9781 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
9782 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9783 if test "${enable_maintainer_mode+set}" = set; then
9784 enableval="$enable_maintainer_mode"
9785 USE_MAINTAINER_MODE=$enableval
9787 USE_MAINTAINER_MODE=no
9789 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
9790 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
9793 if test $USE_MAINTAINER_MODE = yes; then
9794 MAINTAINER_MODE_TRUE=
9795 MAINTAINER_MODE_FALSE='#'
9797 MAINTAINER_MODE_TRUE='#'
9798 MAINTAINER_MODE_FALSE=
9801 MAINT=$MAINTAINER_MODE_TRUE
9804 case ${build_alias} in
9805 "") build_noncanonical=${build} ;;
9806 *) build_noncanonical=${build_alias} ;;
9809 case ${host_alias} in
9810 "") host_noncanonical=${build_noncanonical} ;;
9811 *) host_noncanonical=${host_alias} ;;
9814 case ${target_alias} in
9815 "") target_noncanonical=${host_noncanonical} ;;
9816 *) target_noncanonical=${target_alias} ;;
9819 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
9820 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
9821 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
9822 if test "${enable_install_libbfd+set}" = set; then
9823 enableval="$enable_install_libbfd"
9824 install_libbfd_p=$enableval
9826 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
9827 install_libbfd_p=yes
9832 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
9833 echo "${ECHO_T}$install_libbfd_p" >&6
9836 if test $install_libbfd_p = yes; then
9837 INSTALL_LIBBFD_TRUE=
9838 INSTALL_LIBBFD_FALSE='#'
9840 INSTALL_LIBBFD_TRUE='#'
9841 INSTALL_LIBBFD_FALSE=
9844 # Need _noncanonical variables for this.
9849 # libbfd.a is a host library containing target dependent code
9850 bfdlibdir='$(libdir)'
9851 bfdincludedir='$(includedir)'
9852 if test "${host}" != "${target}"; then
9853 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
9854 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
9862 # host-specific stuff:
9865 ac_cpp='$CPP $CPPFLAGS'
9866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9869 if test -n "$ac_tool_prefix"; then
9870 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9871 set dummy ${ac_tool_prefix}gcc; ac_word=$2
9872 echo "$as_me:$LINENO: checking for $ac_word" >&5
9873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9874 if test "${ac_cv_prog_CC+set}" = set; then
9875 echo $ECHO_N "(cached) $ECHO_C" >&6
9877 if test -n "$CC"; then
9878 ac_cv_prog_CC="$CC" # Let the user override the test.
9880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9884 test -z "$as_dir" && as_dir=.
9885 for ac_exec_ext in '' $ac_executable_extensions; do
9886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9887 ac_cv_prog_CC="${ac_tool_prefix}gcc"
9888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9897 if test -n "$CC"; then
9898 echo "$as_me:$LINENO: result: $CC" >&5
9899 echo "${ECHO_T}$CC" >&6
9901 echo "$as_me:$LINENO: result: no" >&5
9902 echo "${ECHO_T}no" >&6
9906 if test -z "$ac_cv_prog_CC"; then
9908 # Extract the first word of "gcc", so it can be a program name with args.
9909 set dummy gcc; ac_word=$2
9910 echo "$as_me:$LINENO: checking for $ac_word" >&5
9911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9912 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9913 echo $ECHO_N "(cached) $ECHO_C" >&6
9915 if test -n "$ac_ct_CC"; then
9916 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9922 test -z "$as_dir" && as_dir=.
9923 for ac_exec_ext in '' $ac_executable_extensions; do
9924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9925 ac_cv_prog_ac_ct_CC="gcc"
9926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9934 ac_ct_CC=$ac_cv_prog_ac_ct_CC
9935 if test -n "$ac_ct_CC"; then
9936 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9937 echo "${ECHO_T}$ac_ct_CC" >&6
9939 echo "$as_me:$LINENO: result: no" >&5
9940 echo "${ECHO_T}no" >&6
9948 if test -z "$CC"; then
9949 if test -n "$ac_tool_prefix"; then
9950 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
9951 set dummy ${ac_tool_prefix}cc; ac_word=$2
9952 echo "$as_me:$LINENO: checking for $ac_word" >&5
9953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9954 if test "${ac_cv_prog_CC+set}" = set; then
9955 echo $ECHO_N "(cached) $ECHO_C" >&6
9957 if test -n "$CC"; then
9958 ac_cv_prog_CC="$CC" # Let the user override the test.
9960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9964 test -z "$as_dir" && as_dir=.
9965 for ac_exec_ext in '' $ac_executable_extensions; do
9966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9967 ac_cv_prog_CC="${ac_tool_prefix}cc"
9968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9977 if test -n "$CC"; then
9978 echo "$as_me:$LINENO: result: $CC" >&5
9979 echo "${ECHO_T}$CC" >&6
9981 echo "$as_me:$LINENO: result: no" >&5
9982 echo "${ECHO_T}no" >&6
9986 if test -z "$ac_cv_prog_CC"; then
9988 # Extract the first word of "cc", so it can be a program name with args.
9989 set dummy cc; ac_word=$2
9990 echo "$as_me:$LINENO: checking for $ac_word" >&5
9991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9992 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9993 echo $ECHO_N "(cached) $ECHO_C" >&6
9995 if test -n "$ac_ct_CC"; then
9996 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10002 test -z "$as_dir" && as_dir=.
10003 for ac_exec_ext in '' $ac_executable_extensions; do
10004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10005 ac_cv_prog_ac_ct_CC="cc"
10006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10014 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10015 if test -n "$ac_ct_CC"; then
10016 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10017 echo "${ECHO_T}$ac_ct_CC" >&6
10019 echo "$as_me:$LINENO: result: no" >&5
10020 echo "${ECHO_T}no" >&6
10025 CC="$ac_cv_prog_CC"
10029 if test -z "$CC"; then
10030 # Extract the first word of "cc", so it can be a program name with args.
10031 set dummy cc; ac_word=$2
10032 echo "$as_me:$LINENO: checking for $ac_word" >&5
10033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10034 if test "${ac_cv_prog_CC+set}" = set; then
10035 echo $ECHO_N "(cached) $ECHO_C" >&6
10037 if test -n "$CC"; then
10038 ac_cv_prog_CC="$CC" # Let the user override the test.
10040 ac_prog_rejected=no
10041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10042 for as_dir in $PATH
10045 test -z "$as_dir" && as_dir=.
10046 for ac_exec_ext in '' $ac_executable_extensions; do
10047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10048 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10049 ac_prog_rejected=yes
10053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10059 if test $ac_prog_rejected = yes; then
10060 # We found a bogon in the path, so make sure we never use it.
10061 set dummy $ac_cv_prog_CC
10063 if test $# != 0; then
10064 # We chose a different compiler from the bogus one.
10065 # However, it has the same basename, so the bogon will be chosen
10066 # first if we set CC to just the basename; use the full file name.
10068 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10074 if test -n "$CC"; then
10075 echo "$as_me:$LINENO: result: $CC" >&5
10076 echo "${ECHO_T}$CC" >&6
10078 echo "$as_me:$LINENO: result: no" >&5
10079 echo "${ECHO_T}no" >&6
10083 if test -z "$CC"; then
10084 if test -n "$ac_tool_prefix"; then
10087 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10088 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10089 echo "$as_me:$LINENO: checking for $ac_word" >&5
10090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10091 if test "${ac_cv_prog_CC+set}" = set; then
10092 echo $ECHO_N "(cached) $ECHO_C" >&6
10094 if test -n "$CC"; then
10095 ac_cv_prog_CC="$CC" # Let the user override the test.
10097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10098 for as_dir in $PATH
10101 test -z "$as_dir" && as_dir=.
10102 for ac_exec_ext in '' $ac_executable_extensions; do
10103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10104 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10114 if test -n "$CC"; then
10115 echo "$as_me:$LINENO: result: $CC" >&5
10116 echo "${ECHO_T}$CC" >&6
10118 echo "$as_me:$LINENO: result: no" >&5
10119 echo "${ECHO_T}no" >&6
10122 test -n "$CC" && break
10125 if test -z "$CC"; then
10129 # Extract the first word of "$ac_prog", so it can be a program name with args.
10130 set dummy $ac_prog; ac_word=$2
10131 echo "$as_me:$LINENO: checking for $ac_word" >&5
10132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10133 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10134 echo $ECHO_N "(cached) $ECHO_C" >&6
10136 if test -n "$ac_ct_CC"; then
10137 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10140 for as_dir in $PATH
10143 test -z "$as_dir" && as_dir=.
10144 for ac_exec_ext in '' $ac_executable_extensions; do
10145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10146 ac_cv_prog_ac_ct_CC="$ac_prog"
10147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10155 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10156 if test -n "$ac_ct_CC"; then
10157 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10158 echo "${ECHO_T}$ac_ct_CC" >&6
10160 echo "$as_me:$LINENO: result: no" >&5
10161 echo "${ECHO_T}no" >&6
10164 test -n "$ac_ct_CC" && break
10173 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10174 See \`config.log' for more details." >&5
10175 echo "$as_me: error: no acceptable C compiler found in \$PATH
10176 See \`config.log' for more details." >&2;}
10177 { (exit 1); exit 1; }; }
10179 # Provide some information about the compiler.
10180 echo "$as_me:$LINENO:" \
10181 "checking for C compiler version" >&5
10182 ac_compiler=`set X $ac_compile; echo $2`
10183 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10184 (eval $ac_compiler --version </dev/null >&5) 2>&5
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); }
10188 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10189 (eval $ac_compiler -v </dev/null >&5) 2>&5
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); }
10193 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10194 (eval $ac_compiler -V </dev/null >&5) 2>&5
10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 (exit $ac_status); }
10199 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10200 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10201 if test "${ac_cv_c_compiler_gnu+set}" = set; then
10202 echo $ECHO_N "(cached) $ECHO_C" >&6
10204 cat >conftest.$ac_ext <<_ACEOF
10207 cat confdefs.h >>conftest.$ac_ext
10208 cat >>conftest.$ac_ext <<_ACEOF
10209 /* end confdefs.h. */
10222 rm -f conftest.$ac_objext
10223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10224 (eval $ac_compile) 2>conftest.er1
10226 grep -v '^ *+' conftest.er1 >conftest.err
10228 cat conftest.err >&5
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); } &&
10231 { ac_try='test -z "$ac_c_werror_flag"
10232 || test ! -s conftest.err'
10233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10234 (eval $ac_try) 2>&5
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); }; } &&
10238 { ac_try='test -s conftest.$ac_objext'
10239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240 (eval $ac_try) 2>&5
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); }; }; then
10244 ac_compiler_gnu=yes
10246 echo "$as_me: failed program was:" >&5
10247 sed 's/^/| /' conftest.$ac_ext >&5
10251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10252 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10255 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10256 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10257 GCC=`test $ac_compiler_gnu = yes && echo yes`
10258 ac_test_CFLAGS=${CFLAGS+set}
10259 ac_save_CFLAGS=$CFLAGS
10261 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10262 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10263 if test "${ac_cv_prog_cc_g+set}" = set; then
10264 echo $ECHO_N "(cached) $ECHO_C" >&6
10266 cat >conftest.$ac_ext <<_ACEOF
10269 cat confdefs.h >>conftest.$ac_ext
10270 cat >>conftest.$ac_ext <<_ACEOF
10271 /* end confdefs.h. */
10281 rm -f conftest.$ac_objext
10282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10283 (eval $ac_compile) 2>conftest.er1
10285 grep -v '^ *+' conftest.er1 >conftest.err
10287 cat conftest.err >&5
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); } &&
10290 { ac_try='test -z "$ac_c_werror_flag"
10291 || test ! -s conftest.err'
10292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10293 (eval $ac_try) 2>&5
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); }; } &&
10297 { ac_try='test -s conftest.$ac_objext'
10298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299 (eval $ac_try) 2>&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); }; }; then
10303 ac_cv_prog_cc_g=yes
10305 echo "$as_me: failed program was:" >&5
10306 sed 's/^/| /' conftest.$ac_ext >&5
10310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10312 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10313 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10314 if test "$ac_test_CFLAGS" = set; then
10315 CFLAGS=$ac_save_CFLAGS
10316 elif test $ac_cv_prog_cc_g = yes; then
10317 if test "$GCC" = yes; then
10323 if test "$GCC" = yes; then
10329 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10330 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10331 if test "${ac_cv_prog_cc_stdc+set}" = set; then
10332 echo $ECHO_N "(cached) $ECHO_C" >&6
10334 ac_cv_prog_cc_stdc=no
10336 cat >conftest.$ac_ext <<_ACEOF
10339 cat confdefs.h >>conftest.$ac_ext
10340 cat >>conftest.$ac_ext <<_ACEOF
10341 /* end confdefs.h. */
10342 #include <stdarg.h>
10344 #include <sys/types.h>
10345 #include <sys/stat.h>
10346 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10347 struct buf { int x; };
10348 FILE * (*rcsopen) (struct buf *, struct stat *, int);
10349 static char *e (p, i)
10355 static char *f (char * (*g) (char **, int), char **p, ...)
10360 s = g (p, va_arg (v,int));
10365 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10366 function prototypes and stuff, but not '\xHH' hex character constants.
10367 These don't provoke an error unfortunately, instead are silently treated
10368 as 'x'. The following induces an error, until -std1 is added to get
10369 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10370 array size at least. It's necessary to write '\x00'==0 to get something
10371 that's true only with -std1. */
10372 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10374 int test (int i, double x);
10375 struct s1 {int (*f) (int a);};
10376 struct s2 {int (*f) (double a);};
10377 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10383 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10388 # Don't try gcc -ansi; that turns off useful extensions and
10389 # breaks some systems' header files.
10390 # AIX -qlanglvl=ansi
10391 # Ultrix and OSF/1 -std1
10392 # HP-UX 10.20 and later -Ae
10393 # HP-UX older versions -Aa -D_HPUX_SOURCE
10394 # SVR4 -Xc -D__EXTENSIONS__
10395 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10397 CC="$ac_save_CC $ac_arg"
10398 rm -f conftest.$ac_objext
10399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10400 (eval $ac_compile) 2>conftest.er1
10402 grep -v '^ *+' conftest.er1 >conftest.err
10404 cat conftest.err >&5
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); } &&
10407 { ac_try='test -z "$ac_c_werror_flag"
10408 || test ! -s conftest.err'
10409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10410 (eval $ac_try) 2>&5
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); }; } &&
10414 { ac_try='test -s conftest.$ac_objext'
10415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10416 (eval $ac_try) 2>&5
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); }; }; then
10420 ac_cv_prog_cc_stdc=$ac_arg
10423 echo "$as_me: failed program was:" >&5
10424 sed 's/^/| /' conftest.$ac_ext >&5
10427 rm -f conftest.err conftest.$ac_objext
10429 rm -f conftest.$ac_ext conftest.$ac_objext
10434 case "x$ac_cv_prog_cc_stdc" in
10436 echo "$as_me:$LINENO: result: none needed" >&5
10437 echo "${ECHO_T}none needed" >&6 ;;
10439 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10440 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10441 CC="$CC $ac_cv_prog_cc_stdc" ;;
10444 # Some people use a C++ compiler to compile C. Since we use `exit',
10445 # in C++ we need to declare it. In case someone uses the same compiler
10446 # for both compiling C and C++ we need to have the C++ compiler decide
10447 # the declaration of exit, since it's the most demanding environment.
10448 cat >conftest.$ac_ext <<_ACEOF
10449 #ifndef __cplusplus
10453 rm -f conftest.$ac_objext
10454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10455 (eval $ac_compile) 2>conftest.er1
10457 grep -v '^ *+' conftest.er1 >conftest.err
10459 cat conftest.err >&5
10460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461 (exit $ac_status); } &&
10462 { ac_try='test -z "$ac_c_werror_flag"
10463 || test ! -s conftest.err'
10464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10465 (eval $ac_try) 2>&5
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); }; } &&
10469 { ac_try='test -s conftest.$ac_objext'
10470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10471 (eval $ac_try) 2>&5
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); }; }; then
10475 for ac_declaration in \
10477 'extern "C" void std::exit (int) throw (); using std::exit;' \
10478 'extern "C" void std::exit (int); using std::exit;' \
10479 'extern "C" void exit (int) throw ();' \
10480 'extern "C" void exit (int);' \
10483 cat >conftest.$ac_ext <<_ACEOF
10486 cat confdefs.h >>conftest.$ac_ext
10487 cat >>conftest.$ac_ext <<_ACEOF
10488 /* end confdefs.h. */
10490 #include <stdlib.h>
10499 rm -f conftest.$ac_objext
10500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10501 (eval $ac_compile) 2>conftest.er1
10503 grep -v '^ *+' conftest.er1 >conftest.err
10505 cat conftest.err >&5
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); } &&
10508 { ac_try='test -z "$ac_c_werror_flag"
10509 || test ! -s conftest.err'
10510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10511 (eval $ac_try) 2>&5
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); }; } &&
10515 { ac_try='test -s conftest.$ac_objext'
10516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10517 (eval $ac_try) 2>&5
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); }; }; then
10523 echo "$as_me: failed program was:" >&5
10524 sed 's/^/| /' conftest.$ac_ext >&5
10528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10529 cat >conftest.$ac_ext <<_ACEOF
10532 cat confdefs.h >>conftest.$ac_ext
10533 cat >>conftest.$ac_ext <<_ACEOF
10534 /* end confdefs.h. */
10544 rm -f conftest.$ac_objext
10545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10546 (eval $ac_compile) 2>conftest.er1
10548 grep -v '^ *+' conftest.er1 >conftest.err
10550 cat conftest.err >&5
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); } &&
10553 { ac_try='test -z "$ac_c_werror_flag"
10554 || test ! -s conftest.err'
10555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10556 (eval $ac_try) 2>&5
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); }; } &&
10560 { ac_try='test -s conftest.$ac_objext'
10561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10562 (eval $ac_try) 2>&5
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); }; }; then
10568 echo "$as_me: failed program was:" >&5
10569 sed 's/^/| /' conftest.$ac_ext >&5
10572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10575 if test -n "$ac_declaration"; then
10576 echo '#ifdef __cplusplus' >>confdefs.h
10577 echo $ac_declaration >>confdefs.h
10578 echo '#endif' >>confdefs.h
10582 echo "$as_me: failed program was:" >&5
10583 sed 's/^/| /' conftest.$ac_ext >&5
10586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10588 ac_cpp='$CPP $CPPFLAGS'
10589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10594 ALL_LINGUAS="fr sv tr es da de id pt_BR ro nl fi vi ga zh_CN"
10595 # If we haven't got the data from the intl directory,
10596 # assume NLS is disabled.
10605 if test -f ../intl/config.intl; then
10606 . ../intl/config.intl
10608 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10609 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10610 if test x"$USE_NLS" != xyes; then
10611 echo "$as_me:$LINENO: result: no" >&5
10612 echo "${ECHO_T}no" >&6
10614 echo "$as_me:$LINENO: result: yes" >&5
10615 echo "${ECHO_T}yes" >&6
10617 cat >>confdefs.h <<\_ACEOF
10618 #define ENABLE_NLS 1
10622 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10623 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10624 # Look for .po and .gmo files in the source directory.
10627 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10628 # If there aren't any .gmo files the shell will give us the
10629 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10631 case "$cat" in *\**)
10634 # The quadruple backslash is collapsed to a double backslash
10635 # by the backticks, then collapsed again by the double quotes,
10636 # leaving us with one backslash in the sed expression (right
10637 # before the dot that mustn't act as a wildcard).
10638 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10639 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10640 # The user is allowed to set LINGUAS to a list of languages to
10641 # install catalogs for. If it's empty that means "all of them."
10642 if test "x$LINGUAS" = x; then
10643 CATALOGS="$CATALOGS $cat"
10644 XLINGUAS="$XLINGUAS $lang"
10646 case "$LINGUAS" in *$lang*)
10647 CATALOGS="$CATALOGS $cat"
10648 XLINGUAS="$XLINGUAS $lang"
10653 LINGUAS="$XLINGUAS"
10654 echo "$as_me:$LINENO: result: $LINGUAS" >&5
10655 echo "${ECHO_T}$LINGUAS" >&6
10669 if test -n "$ac_aux_dir"; then
10670 case "$ac_aux_dir" in
10671 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10672 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10675 if test -z "$MKINSTALLDIRS"; then
10676 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10681 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10682 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10683 # Check whether --enable-nls or --disable-nls was given.
10684 if test "${enable_nls+set}" = set; then
10685 enableval="$enable_nls"
10690 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10691 echo "${ECHO_T}$USE_NLS" >&6
10698 # Prepare PATH_SEPARATOR.
10699 # The user is always right.
10700 if test "${PATH_SEPARATOR+set}" != set; then
10701 echo "#! /bin/sh" >conf$$.sh
10702 echo "exit 0" >>conf$$.sh
10704 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10712 # Find out how to test for executable files. Don't use a zero-byte file,
10713 # as systems may use methods other than mode bits to determine executability.
10714 cat >conf$$.file <<_ASEOF
10718 chmod +x conf$$.file
10719 if test -x conf$$.file >/dev/null 2>&1; then
10720 ac_executable_p="test -x"
10722 ac_executable_p="test -f"
10726 # Extract the first word of "msgfmt", so it can be a program name with args.
10727 set dummy msgfmt; ac_word=$2
10728 echo "$as_me:$LINENO: checking for $ac_word" >&5
10729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10730 if test "${ac_cv_path_MSGFMT+set}" = set; then
10731 echo $ECHO_N "(cached) $ECHO_C" >&6
10735 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10738 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10739 for ac_dir in $PATH; do
10741 test -z "$ac_dir" && ac_dir=.
10742 for ac_exec_ext in '' $ac_executable_extensions; do
10743 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10744 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10745 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10746 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10753 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10757 MSGFMT="$ac_cv_path_MSGFMT"
10758 if test "$MSGFMT" != ":"; then
10759 echo "$as_me:$LINENO: result: $MSGFMT" >&5
10760 echo "${ECHO_T}$MSGFMT" >&6
10762 echo "$as_me:$LINENO: result: no" >&5
10763 echo "${ECHO_T}no" >&6
10766 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10767 set dummy gmsgfmt; ac_word=$2
10768 echo "$as_me:$LINENO: checking for $ac_word" >&5
10769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10770 if test "${ac_cv_path_GMSGFMT+set}" = set; then
10771 echo $ECHO_N "(cached) $ECHO_C" >&6
10775 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10779 for as_dir in $PATH
10782 test -z "$as_dir" && as_dir=.
10783 for ac_exec_ext in '' $ac_executable_extensions; do
10784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10785 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10792 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10796 GMSGFMT=$ac_cv_path_GMSGFMT
10798 if test -n "$GMSGFMT"; then
10799 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10800 echo "${ECHO_T}$GMSGFMT" >&6
10802 echo "$as_me:$LINENO: result: no" >&5
10803 echo "${ECHO_T}no" >&6
10808 # Prepare PATH_SEPARATOR.
10809 # The user is always right.
10810 if test "${PATH_SEPARATOR+set}" != set; then
10811 echo "#! /bin/sh" >conf$$.sh
10812 echo "exit 0" >>conf$$.sh
10814 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10822 # Find out how to test for executable files. Don't use a zero-byte file,
10823 # as systems may use methods other than mode bits to determine executability.
10824 cat >conf$$.file <<_ASEOF
10828 chmod +x conf$$.file
10829 if test -x conf$$.file >/dev/null 2>&1; then
10830 ac_executable_p="test -x"
10832 ac_executable_p="test -f"
10836 # Extract the first word of "xgettext", so it can be a program name with args.
10837 set dummy xgettext; ac_word=$2
10838 echo "$as_me:$LINENO: checking for $ac_word" >&5
10839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10840 if test "${ac_cv_path_XGETTEXT+set}" = set; then
10841 echo $ECHO_N "(cached) $ECHO_C" >&6
10843 case "$XGETTEXT" in
10845 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10848 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10849 for ac_dir in $PATH; do
10851 test -z "$ac_dir" && ac_dir=.
10852 for ac_exec_ext in '' $ac_executable_extensions; do
10853 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10854 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10855 (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
10856 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10863 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10867 XGETTEXT="$ac_cv_path_XGETTEXT"
10868 if test "$XGETTEXT" != ":"; then
10869 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10870 echo "${ECHO_T}$XGETTEXT" >&6
10872 echo "$as_me:$LINENO: result: no" >&5
10873 echo "${ECHO_T}no" >&6
10879 # Prepare PATH_SEPARATOR.
10880 # The user is always right.
10881 if test "${PATH_SEPARATOR+set}" != set; then
10882 echo "#! /bin/sh" >conf$$.sh
10883 echo "exit 0" >>conf$$.sh
10885 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10893 # Find out how to test for executable files. Don't use a zero-byte file,
10894 # as systems may use methods other than mode bits to determine executability.
10895 cat >conf$$.file <<_ASEOF
10899 chmod +x conf$$.file
10900 if test -x conf$$.file >/dev/null 2>&1; then
10901 ac_executable_p="test -x"
10903 ac_executable_p="test -f"
10907 # Extract the first word of "msgmerge", so it can be a program name with args.
10908 set dummy msgmerge; ac_word=$2
10909 echo "$as_me:$LINENO: checking for $ac_word" >&5
10910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10911 if test "${ac_cv_path_MSGMERGE+set}" = set; then
10912 echo $ECHO_N "(cached) $ECHO_C" >&6
10914 case "$MSGMERGE" in
10916 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
10919 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10920 for ac_dir in $PATH; do
10922 test -z "$ac_dir" && ac_dir=.
10923 for ac_exec_ext in '' $ac_executable_extensions; do
10924 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10925 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
10926 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
10933 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
10937 MSGMERGE="$ac_cv_path_MSGMERGE"
10938 if test "$MSGMERGE" != ":"; then
10939 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
10940 echo "${ECHO_T}$MSGMERGE" >&6
10942 echo "$as_me:$LINENO: result: no" >&5
10943 echo "${ECHO_T}no" >&6
10947 if test "$GMSGFMT" != ":"; then
10948 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
10949 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10952 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
10953 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
10954 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
10959 if test "$XGETTEXT" != ":"; then
10960 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10961 (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
10964 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
10965 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
10971 ac_config_commands="$ac_config_commands default-1"
10975 . ${srcdir}/../bfd/configure.host
10977 # Put a plausible default for CC_FOR_BUILD in Makefile.
10978 if test -z "$CC_FOR_BUILD"; then
10979 if test "x$cross_compiling" = "xno"; then
10980 CC_FOR_BUILD='$(CC)'
10986 # Also set EXEEXT_FOR_BUILD.
10987 if test "x$cross_compiling" = "xno"; then
10988 EXEEXT_FOR_BUILD='$(EXEEXT)'
10990 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
10991 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
10992 if test "${bfd_cv_build_exeext+set}" = set; then
10993 echo $ECHO_N "(cached) $ECHO_C" >&6
10996 echo 'int main () { return 0; }' > conftest.c
10997 bfd_cv_build_exeext=
10998 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
10999 for file in conftest.*; do
11001 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
11002 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
11006 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
11008 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
11009 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
11010 EXEEXT_FOR_BUILD=""
11011 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
11016 # Find a good install program. We prefer a C program (faster),
11017 # so one script is as good as another. But avoid the broken or
11018 # incompatible versions:
11019 # SysV /etc/install, /usr/sbin/install
11020 # SunOS /usr/etc/install
11021 # IRIX /sbin/install
11023 # AmigaOS /C/install, which installs bootblocks on floppy discs
11024 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11025 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11026 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11027 # OS/2's system install, which has a completely different semantic
11028 # ./install, which can be erroneously created by make from ./install.sh.
11029 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11030 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11031 if test -z "$INSTALL"; then
11032 if test "${ac_cv_path_install+set}" = set; then
11033 echo $ECHO_N "(cached) $ECHO_C" >&6
11035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11036 for as_dir in $PATH
11039 test -z "$as_dir" && as_dir=.
11040 # Account for people who put trailing slashes in PATH elements.
11042 ./ | .// | /cC/* | \
11043 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11044 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11047 # OSF1 and SCO ODT 3.0 have their own names for install.
11048 # Don't use installbsd from OSF since it installs stuff as root
11050 for ac_prog in ginstall scoinst install; do
11051 for ac_exec_ext in '' $ac_executable_extensions; do
11052 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11053 if test $ac_prog = install &&
11054 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11055 # AIX install. It has an incompatible calling convention.
11057 elif test $ac_prog = install &&
11058 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11059 # program-specific install script used by HP pwplus--don't use.
11062 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11074 if test "${ac_cv_path_install+set}" = set; then
11075 INSTALL=$ac_cv_path_install
11077 # As a last resort, use the slow shell script. We don't cache a
11078 # path for INSTALL within a source directory, because that will
11079 # break other packages using the cache if that directory is
11080 # removed, or if the path is relative.
11081 INSTALL=$ac_install_sh
11084 echo "$as_me:$LINENO: result: $INSTALL" >&5
11085 echo "${ECHO_T}$INSTALL" >&6
11087 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11088 # It thinks the first close brace ends the variable substitution.
11089 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11091 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11093 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11099 for ac_header in string.h strings.h stdlib.h
11101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11103 echo "$as_me:$LINENO: checking for $ac_header" >&5
11104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11106 echo $ECHO_N "(cached) $ECHO_C" >&6
11108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11111 # Is the header compilable?
11112 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11113 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11114 cat >conftest.$ac_ext <<_ACEOF
11117 cat confdefs.h >>conftest.$ac_ext
11118 cat >>conftest.$ac_ext <<_ACEOF
11119 /* end confdefs.h. */
11120 $ac_includes_default
11121 #include <$ac_header>
11123 rm -f conftest.$ac_objext
11124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11125 (eval $ac_compile) 2>conftest.er1
11127 grep -v '^ *+' conftest.er1 >conftest.err
11129 cat conftest.err >&5
11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); } &&
11132 { ac_try='test -z "$ac_c_werror_flag"
11133 || test ! -s conftest.err'
11134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11135 (eval $ac_try) 2>&5
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); }; } &&
11139 { ac_try='test -s conftest.$ac_objext'
11140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11141 (eval $ac_try) 2>&5
11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 (exit $ac_status); }; }; then
11145 ac_header_compiler=yes
11147 echo "$as_me: failed program was:" >&5
11148 sed 's/^/| /' conftest.$ac_ext >&5
11150 ac_header_compiler=no
11152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11153 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11154 echo "${ECHO_T}$ac_header_compiler" >&6
11156 # Is the header present?
11157 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11158 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11159 cat >conftest.$ac_ext <<_ACEOF
11162 cat confdefs.h >>conftest.$ac_ext
11163 cat >>conftest.$ac_ext <<_ACEOF
11164 /* end confdefs.h. */
11165 #include <$ac_header>
11167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11170 grep -v '^ *+' conftest.er1 >conftest.err
11172 cat conftest.err >&5
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); } >/dev/null; then
11175 if test -s conftest.err; then
11176 ac_cpp_err=$ac_c_preproc_warn_flag
11177 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11184 if test -z "$ac_cpp_err"; then
11185 ac_header_preproc=yes
11187 echo "$as_me: failed program was:" >&5
11188 sed 's/^/| /' conftest.$ac_ext >&5
11190 ac_header_preproc=no
11192 rm -f conftest.err conftest.$ac_ext
11193 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11194 echo "${ECHO_T}$ac_header_preproc" >&6
11196 # So? What about this header?
11197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11199 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11202 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11203 ac_header_preproc=yes
11206 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11208 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11209 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11210 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11211 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11212 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11213 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11216 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11217 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11220 ## ------------------------------------------ ##
11221 ## Report this to the AC_PACKAGE_NAME lists. ##
11222 ## ------------------------------------------ ##
11225 sed "s/^/$as_me: WARNING: /" >&2
11228 echo "$as_me:$LINENO: checking for $ac_header" >&5
11229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11231 echo $ECHO_N "(cached) $ECHO_C" >&6
11233 eval "$as_ac_Header=\$ac_header_preproc"
11235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11240 cat >>confdefs.h <<_ACEOF
11241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11249 echo "$as_me:$LINENO: checking whether basename is declared" >&5
11250 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
11251 if test "${ac_cv_have_decl_basename+set}" = set; then
11252 echo $ECHO_N "(cached) $ECHO_C" >&6
11254 cat >conftest.$ac_ext <<_ACEOF
11257 cat confdefs.h >>conftest.$ac_ext
11258 cat >>conftest.$ac_ext <<_ACEOF
11259 /* end confdefs.h. */
11260 $ac_includes_default
11265 char *p = (char *) basename;
11272 rm -f conftest.$ac_objext
11273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11274 (eval $ac_compile) 2>conftest.er1
11276 grep -v '^ *+' conftest.er1 >conftest.err
11278 cat conftest.err >&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); } &&
11281 { ac_try='test -z "$ac_c_werror_flag"
11282 || test ! -s conftest.err'
11283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11284 (eval $ac_try) 2>&5
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); }; } &&
11288 { ac_try='test -s conftest.$ac_objext'
11289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11290 (eval $ac_try) 2>&5
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); }; }; then
11294 ac_cv_have_decl_basename=yes
11296 echo "$as_me: failed program was:" >&5
11297 sed 's/^/| /' conftest.$ac_ext >&5
11299 ac_cv_have_decl_basename=no
11301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11303 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
11304 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
11305 if test $ac_cv_have_decl_basename = yes; then
11307 cat >>confdefs.h <<_ACEOF
11308 #define HAVE_DECL_BASENAME 1
11313 cat >>confdefs.h <<_ACEOF
11314 #define HAVE_DECL_BASENAME 0
11323 cgendir='$(srcdir)/../cgen'
11325 # Check whether --enable-cgen-maint or --disable-cgen-maint was given.
11326 if test "${enable_cgen_maint+set}" = set; then
11327 enableval="$enable_cgen_maint"
11328 case "${enableval}" in
11329 yes) cgen_maint=yes ;;
11330 no) cgen_maint=no ;;
11332 # argument is cgen install directory (not implemented yet).
11333 # Having a `share' directory might be more appropriate for the .scm,
11334 # .cpu, etc. files.
11336 cgendir=${cgen_maint}/lib/cgen
11341 if test x${cgen_maint} = xyes; then
11343 CGEN_MAINT_FALSE='#'
11345 CGEN_MAINT_TRUE='#'
11353 # Horrible hacks to build DLLs on Windows.
11358 if test "$enable_shared" = "yes"; then
11359 WIN32LDFLAGS="-no-undefined"
11360 WIN32LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
11367 # target-specific stuff:
11369 # Canonicalize the secondary target names.
11370 if test -n "$enable_targets" ; then
11371 for targ in `echo $enable_targets | sed 's/,/ /g'`
11373 result=`$ac_config_sub $targ 2>/dev/null`
11374 if test -n "$result" ; then
11375 canon_targets="$canon_targets $result"
11377 # Allow targets that config.sub doesn't recognize, like "all".
11378 canon_targets="$canon_targets $targ"
11385 for targ in $target $canon_targets
11387 if test "x$targ" = "xall" ; then
11390 . $srcdir/../bfd/config.bfd
11391 selarchs="$selarchs $targ_archs"
11395 # Utility var, documents generic cgen support files.
11397 cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo cgen-bitset.lo"
11399 # We don't do any links based on the target system, just makefile config.
11401 if test x${all_targets} = xfalse ; then
11403 # Target architecture .o files.
11406 for arch in $selarchs
11408 ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
11409 archdefs="$archdefs -DARCH_$ad"
11411 bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;;
11412 bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;;
11413 bfd_arm_arch) ta="$ta arm-dis.lo" ;;
11414 bfd_avr_arch) ta="$ta avr-dis.lo" ;;
11415 bfd_bfin_arch) ta="$ta bfin-dis.lo" ;;
11416 bfd_cris_arch) ta="$ta cris-dis.lo cris-opc.lo cgen-bitset.lo" ;;
11417 bfd_crx_arch) ta="$ta crx-dis.lo crx-opc.lo" ;;
11418 bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;;
11419 bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;;
11420 bfd_dlx_arch) ta="$ta dlx-dis.lo" ;;
11421 bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;;
11422 bfd_frv_arch) ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;;
11423 bfd_h8300_arch) ta="$ta h8300-dis.lo" ;;
11424 bfd_h8500_arch) ta="$ta h8500-dis.lo" ;;
11425 bfd_hppa_arch) ta="$ta hppa-dis.lo" ;;
11426 bfd_i370_arch) ta="$ta i370-dis.lo i370-opc.lo" ;;
11427 bfd_i386_arch) ta="$ta i386-dis.lo i386-opc.lo" ;;
11428 bfd_i860_arch) ta="$ta i860-dis.lo" ;;
11429 bfd_i960_arch) ta="$ta i960-dis.lo" ;;
11430 bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;;
11431 bfd_ip2k_arch) ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;;
11432 bfd_iq2000_arch) ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;;
11433 bfd_m32c_arch) ta="$ta m32c-asm.lo m32c-desc.lo m32c-dis.lo m32c-ibld.lo m32c-opc.lo" using_cgen=yes ;;
11434 bfd_m32r_arch) ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;;
11435 bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
11436 bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
11437 bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;;
11438 bfd_m88k_arch) ta="$ta m88k-dis.lo" ;;
11439 bfd_maxq_arch) ta="$ta maxq-dis.lo" ;;
11440 bfd_mcore_arch) ta="$ta mcore-dis.lo" ;;
11441 bfd_mep_arch) ta="$ta mep-asm.lo mep-desc.lo mep-dis.lo mep-ibld.lo mep-opc.lo" using_cgen=yes ;;
11442 bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
11443 bfd_mmix_arch) ta="$ta mmix-dis.lo mmix-opc.lo" ;;
11444 bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;;
11445 bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;;
11446 bfd_mt_arch) ta="$ta mt-asm.lo mt-desc.lo mt-dis.lo mt-ibld.lo mt-opc.lo" using_cgen=yes ;;
11447 bfd_msp430_arch) ta="$ta msp430-dis.lo" ;;
11448 bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;;
11449 bfd_openrisc_arch) ta="$ta openrisc-asm.lo openrisc-desc.lo openrisc-dis.lo openrisc-ibld.lo openrisc-opc.lo" using_cgen=yes ;;
11450 bfd_or32_arch) ta="$ta or32-dis.lo or32-opc.lo" using_cgen=yes ;;
11451 bfd_pdp11_arch) ta="$ta pdp11-dis.lo pdp11-opc.lo" ;;
11452 bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;;
11453 bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
11454 bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
11455 bfd_pyramid_arch) ;;
11457 bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
11458 bfd_s390_arch) ta="$ta s390-dis.lo s390-opc.lo" ;;
11459 bfd_score_arch) ta="$ta score-dis.lo" ;;
11461 # We can't decide what we want just from the CPU family.
11462 # We want SH5 support unless a specific version of sh is
11463 # specified, as in sh3-elf, sh3b-linux-gnu, etc.
11464 # Include it just for ELF targets, since the SH5 bfd:s are ELF only.
11465 for t in $target $canon_targets; do
11467 all | sh5*-* | sh64*-* | sh-*-*elf* | shl*-*-*elf* | \
11468 sh-*-linux* | shl-*-linux*)
11469 ta="$ta sh64-dis.lo sh64-opc.lo"
11470 archdefs="$archdefs -DINCLUDE_SHMEDIA"
11474 ta="$ta sh-dis.lo cgen-bitset.lo" ;;
11475 bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;;
11476 bfd_spu_arch) ta="$ta spu-dis.lo spu-opc.lo" ;;
11478 bfd_tic30_arch) ta="$ta tic30-dis.lo" ;;
11479 bfd_tic4x_arch) ta="$ta tic4x-dis.lo" ;;
11480 bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;;
11481 bfd_tic80_arch) ta="$ta tic80-dis.lo tic80-opc.lo" ;;
11482 bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
11483 bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
11484 bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
11485 bfd_vax_arch) ta="$ta vax-dis.lo" ;;
11486 bfd_w65_arch) ta="$ta w65-dis.lo" ;;
11488 bfd_xc16x_arch) ta="$ta xc16x-asm.lo xc16x-desc.lo xc16x-dis.lo xc16x-ibld.lo xc16x-opc.lo" using_cgen=yes ;;
11489 bfd_xstormy16_arch) ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;;
11490 bfd_xtensa_arch) ta="$ta xtensa-dis.lo" ;;
11491 bfd_z80_arch) ta="$ta z80-dis.lo" ;;
11492 bfd_z8k_arch) ta="$ta z8k-dis.lo" ;;
11495 *) { { echo "$as_me:$LINENO: error: *** unknown target architecture $arch" >&5
11496 echo "$as_me: error: *** unknown target architecture $arch" >&2;}
11497 { (exit 1); exit 1; }; } ;;
11501 if test $using_cgen = yes ; then
11502 ta="$ta $cgen_files"
11505 # Weed out duplicate .o files.
11515 # And duplicate -D flags.
11517 for i in $archdefs ; do
11527 else # all_targets is true
11528 archdefs=-DARCH_all
11529 BFD_MACHINES='$(ALL_MACHINES)'
11535 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
11537 cat >confcache <<\_ACEOF
11538 # This file is a shell script that caches the results of configure
11539 # tests run on this system so they can be shared between configure
11540 # scripts and configure runs, see configure's option --config-cache.
11541 # It is not useful on other systems. If it contains results you don't
11542 # want to keep, you may remove or edit it.
11544 # config.status only pays attention to the cache file if you give it
11545 # the --recheck option to rerun configure.
11547 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11548 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11549 # following values.
11553 # The following way of writing the cache mishandles newlines in values,
11554 # but we know of no workaround that is simple, portable, and efficient.
11555 # So, don't put newlines in cache variables' values.
11556 # Ultrix sh set writes to stderr and can't be redirected directly,
11557 # and sets the high bit in the cache file unless we assign to the vars.
11560 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11562 # `set' does not quote correctly, so add quotes (double-quote
11563 # substitution turns \\\\ into \\, and sed turns \\ into \).
11566 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11569 # `set' quotes correctly as required by POSIX, so do not add quotes.
11571 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11578 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11580 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11582 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11583 if test -w $cache_file; then
11584 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11585 cat confcache >$cache_file
11587 echo "not updating unwritable cache $cache_file"
11592 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11593 # Let make expand exec_prefix.
11594 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11596 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11597 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11598 # trailing colons and then remove the whole line if VPATH becomes empty
11599 # (actually we leave an empty line to preserve line numbers).
11600 if test "x$srcdir" = x.; then
11601 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11602 s/:*\$(srcdir):*/:/;
11603 s/:*\${srcdir}:*/:/;
11605 s/^\([^=]*=[ ]*\):*/\1/;
11611 DEFS=-DHAVE_CONFIG_H
11615 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11616 # 1. Remove the extension, and $U if already installed.
11617 ac_i=`echo "$ac_i" |
11618 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11620 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11621 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11623 LIBOBJS=$ac_libobjs
11625 LTLIBOBJS=$ac_ltlibobjs
11628 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11629 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11630 Usually this means the macro was only invoked conditionally." >&5
11631 echo "$as_me: error: conditional \"AMDEP\" was never defined.
11632 Usually this means the macro was only invoked conditionally." >&2;}
11633 { (exit 1); exit 1; }; }
11635 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11636 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11637 Usually this means the macro was only invoked conditionally." >&5
11638 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11639 Usually this means the macro was only invoked conditionally." >&2;}
11640 { (exit 1); exit 1; }; }
11642 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11643 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11644 Usually this means the macro was only invoked conditionally." >&5
11645 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11646 Usually this means the macro was only invoked conditionally." >&2;}
11647 { (exit 1); exit 1; }; }
11649 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
11650 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
11651 Usually this means the macro was only invoked conditionally." >&5
11652 echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
11653 Usually this means the macro was only invoked conditionally." >&2;}
11654 { (exit 1); exit 1; }; }
11656 if test -z "${CGEN_MAINT_TRUE}" && test -z "${CGEN_MAINT_FALSE}"; then
11657 { { echo "$as_me:$LINENO: error: conditional \"CGEN_MAINT\" was never defined.
11658 Usually this means the macro was only invoked conditionally." >&5
11659 echo "$as_me: error: conditional \"CGEN_MAINT\" was never defined.
11660 Usually this means the macro was only invoked conditionally." >&2;}
11661 { (exit 1); exit 1; }; }
11664 : ${CONFIG_STATUS=./config.status}
11665 ac_clean_files_save=$ac_clean_files
11666 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11667 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11668 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11669 cat >$CONFIG_STATUS <<_ACEOF
11671 # Generated by $as_me.
11672 # Run this file to recreate the current configuration.
11673 # Compiler output produced by configure, useful for debugging
11674 # configure, is in config.log if it exists.
11677 ac_cs_recheck=false
11679 SHELL=\${CONFIG_SHELL-$SHELL}
11682 cat >>$CONFIG_STATUS <<\_ACEOF
11683 ## --------------------- ##
11684 ## M4sh Initialization. ##
11685 ## --------------------- ##
11687 # Be Bourne compatible
11688 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11691 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11692 # is contrary to our usage. Disable this feature.
11693 alias -g '${1+"$@"}'='"$@"'
11694 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11697 DUALCASE=1; export DUALCASE # for MKS sh
11699 # Support unset when possible.
11700 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11707 # Work around bugs in pre-3.0 UWIN ksh.
11708 $as_unset ENV MAIL MAILPATH
11715 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11716 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11717 LC_TELEPHONE LC_TIME
11719 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11720 eval $as_var=C; export $as_var
11726 # Required to use basename.
11727 if expr a : '\(a\)' >/dev/null 2>&1; then
11733 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11734 as_basename=basename
11740 # Name of the executable.
11741 as_me=`$as_basename "$0" ||
11742 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11743 X"$0" : 'X\(//\)$' \| \
11744 X"$0" : 'X\(/\)$' \| \
11745 . : '\(.\)' 2>/dev/null ||
11747 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11748 /^X\/\(\/\/\)$/{ s//\1/; q; }
11749 /^X\/\(\/\).*/{ s//\1/; q; }
11753 # PATH needs CR, and LINENO needs CR and PATH.
11754 # Avoid depending upon Character Ranges.
11755 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11756 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11757 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11758 as_cr_digits='0123456789'
11759 as_cr_alnum=$as_cr_Letters$as_cr_digits
11761 # The user is always right.
11762 if test "${PATH_SEPARATOR+set}" != set; then
11763 echo "#! /bin/sh" >conf$$.sh
11764 echo "exit 0" >>conf$$.sh
11766 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11775 as_lineno_1=$LINENO
11776 as_lineno_2=$LINENO
11777 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11778 test "x$as_lineno_1" != "x$as_lineno_2" &&
11779 test "x$as_lineno_3" = "x$as_lineno_2" || {
11780 # Find who we are. Look in the path if we contain no path at all
11783 *[\\/]* ) as_myself=$0 ;;
11784 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11785 for as_dir in $PATH
11788 test -z "$as_dir" && as_dir=.
11789 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11794 # We did not find ourselves, most probably we were run as `sh COMMAND'
11795 # in which case we are not to be found in the path.
11796 if test "x$as_myself" = x; then
11799 if test ! -f "$as_myself"; then
11800 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11801 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11802 { (exit 1); exit 1; }; }
11804 case $CONFIG_SHELL in
11806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11807 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11810 test -z "$as_dir" && as_dir=.
11811 for as_base in sh bash ksh sh5; do
11814 if ("$as_dir/$as_base" -c '
11815 as_lineno_1=$LINENO
11816 as_lineno_2=$LINENO
11817 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11818 test "x$as_lineno_1" != "x$as_lineno_2" &&
11819 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11820 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11821 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11822 CONFIG_SHELL=$as_dir/$as_base
11823 export CONFIG_SHELL
11824 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11832 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11833 # uniformly replaced by the line number. The first 'sed' inserts a
11834 # line-number line before each line; the second 'sed' does the real
11835 # work. The second script uses 'N' to pair each line-number line
11836 # with the numbered line, and appends trailing '-' during
11837 # substitution so that $LINENO is not a special case at line end.
11838 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11839 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11840 sed '=' <$as_myself |
11845 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11848 s,^['$as_cr_digits']*\n,,
11849 ' >$as_me.lineno &&
11850 chmod +x $as_me.lineno ||
11851 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11852 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11853 { (exit 1); exit 1; }; }
11855 # Don't try to exec as it changes $[0], causing all sort of problems
11856 # (the dirname of $[0] is not the place where we might find the
11857 # original and so on. Autoconf is especially sensible to this).
11859 # Exit status is that of the last command.
11864 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11865 *c*,-n*) ECHO_N= ECHO_C='
11867 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11868 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11871 if expr a : '\(a\)' >/dev/null 2>&1; then
11877 rm -f conf$$ conf$$.exe conf$$.file
11879 if ln -s conf$$.file conf$$ 2>/dev/null; then
11880 # We could just check for DJGPP; but this test a) works b) is more generic
11881 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11882 if test -f conf$$.exe; then
11883 # Don't use ln at all; we don't have any links
11888 elif ln conf$$.file conf$$ 2>/dev/null; then
11893 rm -f conf$$ conf$$.exe conf$$.file
11895 if mkdir -p . 2>/dev/null; then
11898 test -d ./-p && rmdir ./-p
11902 as_executable_p="test -f"
11904 # Sed expression to map a string onto a valid CPP name.
11905 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11907 # Sed expression to map a string onto a valid variable name.
11908 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11912 # We need space, tab and new line, in precisely that order.
11922 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11923 # report actual input values of CONFIG_FILES etc. instead of their
11924 # values after options handling. Logging --version etc. is OK.
11928 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11929 ## Running $as_me. ##
11934 This file was extended by $as_me, which was
11935 generated by GNU Autoconf 2.59. Invocation command line was
11937 CONFIG_FILES = $CONFIG_FILES
11938 CONFIG_HEADERS = $CONFIG_HEADERS
11939 CONFIG_LINKS = $CONFIG_LINKS
11940 CONFIG_COMMANDS = $CONFIG_COMMANDS
11944 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11948 # Files that config.status was made for.
11949 if test -n "$ac_config_files"; then
11950 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11953 if test -n "$ac_config_headers"; then
11954 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11957 if test -n "$ac_config_links"; then
11958 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11961 if test -n "$ac_config_commands"; then
11962 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11965 cat >>$CONFIG_STATUS <<\_ACEOF
11968 \`$as_me' instantiates files from templates according to the
11969 current configuration.
11971 Usage: $0 [OPTIONS] [FILE]...
11973 -h, --help print this help, then exit
11974 -V, --version print version number, then exit
11975 -q, --quiet do not print progress messages
11976 -d, --debug don't remove temporary files
11977 --recheck update $as_me by reconfiguring in the same conditions
11978 --file=FILE[:TEMPLATE]
11979 instantiate the configuration file FILE
11980 --header=FILE[:TEMPLATE]
11981 instantiate the configuration header FILE
11983 Configuration files:
11986 Configuration headers:
11989 Configuration commands:
11992 Report bugs to <bug-autoconf@gnu.org>."
11995 cat >>$CONFIG_STATUS <<_ACEOF
11998 configured by $0, generated by GNU Autoconf 2.59,
11999 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12001 Copyright (C) 2003 Free Software Foundation, Inc.
12002 This config.status script is free software; the Free Software Foundation
12003 gives unlimited permission to copy, distribute and modify it."
12008 cat >>$CONFIG_STATUS <<\_ACEOF
12009 # If no file are specified by the user, then we need to provide default
12010 # value. By we need to know if files were specified by the user.
12016 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12017 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12025 *) # This is not an option, so the user has probably given explicit
12028 ac_need_defaults=false;;
12032 # Handling of the options.
12034 cat >>$CONFIG_STATUS <<\_ACEOF
12035 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12037 --version | --vers* | -V )
12038 echo "$ac_cs_version"; exit 0 ;;
12040 # Conflict between --help and --header
12041 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12042 Try \`$0 --help' for more information." >&5
12043 echo "$as_me: error: ambiguous option: $1
12044 Try \`$0 --help' for more information." >&2;}
12045 { (exit 1); exit 1; }; };;
12046 --help | --hel | -h )
12047 echo "$ac_cs_usage"; exit 0 ;;
12048 --debug | --d* | -d )
12050 --file | --fil | --fi | --f )
12052 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12053 ac_need_defaults=false;;
12054 --header | --heade | --head | --hea )
12056 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12057 ac_need_defaults=false;;
12058 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12059 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12062 # This is an error.
12063 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12064 Try \`$0 --help' for more information." >&5
12065 echo "$as_me: error: unrecognized option: $1
12066 Try \`$0 --help' for more information." >&2;}
12067 { (exit 1); exit 1; }; } ;;
12069 *) ac_config_targets="$ac_config_targets $1" ;;
12075 ac_configure_extra_args=
12077 if $ac_cs_silent; then
12079 ac_configure_extra_args="$ac_configure_extra_args --silent"
12083 cat >>$CONFIG_STATUS <<_ACEOF
12084 if \$ac_cs_recheck; then
12085 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12086 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12091 cat >>$CONFIG_STATUS <<_ACEOF
12093 # INIT-COMMANDS section.
12096 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12099 # The HP-UX ksh and POSIX shell print the target directory to stdout
12100 # if CDPATH is set.
12101 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12103 sed_quote_subst='$sed_quote_subst'
12104 double_quote_subst='$double_quote_subst'
12105 delay_variable_subst='$delay_variable_subst'
12106 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12107 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12108 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12109 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12110 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12111 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12112 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12113 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12114 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12115 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12116 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12117 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12118 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12119 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12120 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12121 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12122 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12123 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12124 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12125 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12126 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12127 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12128 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12129 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12130 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12131 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12132 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12133 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12134 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12135 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12136 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12137 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12138 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12139 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12140 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12141 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12142 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12143 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12144 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12145 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12146 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12147 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12148 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12149 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"`'
12150 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12151 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12152 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12153 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12154 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12155 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12156 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12157 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12158 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12159 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12160 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12161 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12162 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12163 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12164 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12165 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12166 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12167 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12168 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12169 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12170 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12171 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12172 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12173 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12174 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12175 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12176 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12177 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12178 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12179 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12180 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12181 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12182 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12183 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12184 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12185 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12186 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12187 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12188 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12189 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12190 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12191 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12192 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12193 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12194 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12195 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12196 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12197 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12198 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12199 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12200 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12201 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12202 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12203 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12204 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12205 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12206 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12207 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12208 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12209 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12210 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12211 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12212 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12213 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12214 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12215 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12216 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12219 LTCFLAGS='$LTCFLAGS'
12220 compiler='$compiler_DEFAULT'
12222 # Quote evaled strings.
12233 deplibs_check_method \
12242 lt_cv_sys_global_symbol_pipe \
12243 lt_cv_sys_global_symbol_to_cdecl \
12244 lt_cv_sys_global_symbol_to_c_name_address \
12247 lt_prog_compiler_no_builtin_flag \
12248 lt_prog_compiler_wl \
12249 lt_prog_compiler_pic \
12250 lt_prog_compiler_static \
12251 lt_cv_prog_compiler_c_o \
12254 export_dynamic_flag_spec \
12255 whole_archive_flag_spec \
12256 compiler_needs_object \
12258 allow_undefined_flag \
12259 no_undefined_flag \
12260 hardcode_libdir_flag_spec \
12261 hardcode_libdir_flag_spec_ld \
12262 hardcode_libdir_separator \
12267 variables_saved_for_relink \
12269 library_names_spec \
12274 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12275 *[\\\\\\\`\\"\\\$]*)
12276 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12279 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12284 # Double-quote double-evaled strings.
12285 for var in reload_cmds \
12286 old_postinstall_cmds \
12287 old_postuninstall_cmds \
12289 extract_expsyms_cmds \
12290 old_archive_from_new_cmds \
12291 old_archive_from_expsyms_cmds \
12293 archive_expsym_cmds \
12295 module_expsym_cmds \
12296 export_symbols_cmds \
12299 postuninstall_cmds \
12301 sys_lib_search_path_spec \
12302 sys_lib_dlsearch_path_spec; do
12303 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12304 *[\\\\\\\`\\"\\\$]*)
12305 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12308 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12313 # Fix-up fallback echo if it was mangled by the above quoting rules.
12315 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12319 ac_aux_dir='$ac_aux_dir'
12320 xsi_shell='$xsi_shell'
12321 lt_shell_append='$lt_shell_append'
12323 # See if we are running on zsh, and set the options which allow our
12324 # commands through without removal of \ escapes INIT.
12325 if test -n "\${ZSH_VERSION+set}" ; then
12326 setopt NO_GLOB_SUBST
12332 TIMESTAMP='$TIMESTAMP'
12338 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12339 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
12341 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12342 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12343 LINGUAS="${LINGUAS-%UNSET%}"
12350 cat >>$CONFIG_STATUS <<\_ACEOF
12351 for ac_config_target in $ac_config_targets
12353 case "$ac_config_target" in
12354 # Handling of arguments.
12355 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12356 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
12357 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12358 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12359 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12360 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
12361 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12362 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12363 { (exit 1); exit 1; }; };;
12367 # If the user did not use the arguments to specify the items to instantiate,
12368 # then the envvar interface is used. Set only those that are not.
12369 # We use the long form for the default assignment because of an extremely
12370 # bizarre bug on SunOS 4.1.3.
12371 if $ac_need_defaults; then
12372 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12373 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12374 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12377 # Have a temporary directory for convenience. Make it in the build tree
12378 # simply because there is no reason to put it here, and in addition,
12379 # creating and moving files from /tmp can sometimes cause problems.
12380 # Create a temporary directory, and hook for its removal unless debugging.
12383 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12384 trap '{ (exit 1); exit 1; }' 1 2 13 15
12387 # Create a (secure) tmp directory for tmp files.
12390 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12391 test -n "$tmp" && test -d "$tmp"
12394 tmp=./confstat$$-$RANDOM
12395 (umask 077 && mkdir $tmp)
12398 echo "$me: cannot create a temporary directory in ." >&2
12399 { (exit 1); exit 1; }
12404 cat >>$CONFIG_STATUS <<_ACEOF
12407 # CONFIG_FILES section.
12410 # No need to generate the scripts if there are no CONFIG_FILES.
12411 # This happens for instance when ./config.status config.h
12412 if test -n "\$CONFIG_FILES"; then
12413 # Protect against being on the right side of a sed subst in config.status.
12414 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12415 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12416 s,@SHELL@,$SHELL,;t t
12417 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12418 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12419 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12420 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12421 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12422 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12423 s,@exec_prefix@,$exec_prefix,;t t
12424 s,@prefix@,$prefix,;t t
12425 s,@program_transform_name@,$program_transform_name,;t t
12426 s,@bindir@,$bindir,;t t
12427 s,@sbindir@,$sbindir,;t t
12428 s,@libexecdir@,$libexecdir,;t t
12429 s,@datadir@,$datadir,;t t
12430 s,@sysconfdir@,$sysconfdir,;t t
12431 s,@sharedstatedir@,$sharedstatedir,;t t
12432 s,@localstatedir@,$localstatedir,;t t
12433 s,@libdir@,$libdir,;t t
12434 s,@includedir@,$includedir,;t t
12435 s,@oldincludedir@,$oldincludedir,;t t
12436 s,@infodir@,$infodir,;t t
12437 s,@mandir@,$mandir,;t t
12438 s,@build_alias@,$build_alias,;t t
12439 s,@host_alias@,$host_alias,;t t
12440 s,@target_alias@,$target_alias,;t t
12441 s,@DEFS@,$DEFS,;t t
12442 s,@ECHO_C@,$ECHO_C,;t t
12443 s,@ECHO_N@,$ECHO_N,;t t
12444 s,@ECHO_T@,$ECHO_T,;t t
12445 s,@LIBS@,$LIBS,;t t
12446 s,@build@,$build,;t t
12447 s,@build_cpu@,$build_cpu,;t t
12448 s,@build_vendor@,$build_vendor,;t t
12449 s,@build_os@,$build_os,;t t
12450 s,@host@,$host,;t t
12451 s,@host_cpu@,$host_cpu,;t t
12452 s,@host_vendor@,$host_vendor,;t t
12453 s,@host_os@,$host_os,;t t
12454 s,@target@,$target,;t t
12455 s,@target_cpu@,$target_cpu,;t t
12456 s,@target_vendor@,$target_vendor,;t t
12457 s,@target_os@,$target_os,;t t
12459 s,@CFLAGS@,$CFLAGS,;t t
12460 s,@LDFLAGS@,$LDFLAGS,;t t
12461 s,@CPPFLAGS@,$CPPFLAGS,;t t
12462 s,@ac_ct_CC@,$ac_ct_CC,;t t
12463 s,@EXEEXT@,$EXEEXT,;t t
12464 s,@OBJEXT@,$OBJEXT,;t t
12465 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12466 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12467 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12468 s,@CYGPATH_W@,$CYGPATH_W,;t t
12469 s,@PACKAGE@,$PACKAGE,;t t
12470 s,@VERSION@,$VERSION,;t t
12471 s,@ACLOCAL@,$ACLOCAL,;t t
12472 s,@AUTOCONF@,$AUTOCONF,;t t
12473 s,@AUTOMAKE@,$AUTOMAKE,;t t
12474 s,@AUTOHEADER@,$AUTOHEADER,;t t
12475 s,@MAKEINFO@,$MAKEINFO,;t t
12476 s,@install_sh@,$install_sh,;t t
12477 s,@STRIP@,$STRIP,;t t
12478 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12479 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12480 s,@mkdir_p@,$mkdir_p,;t t
12482 s,@SET_MAKE@,$SET_MAKE,;t t
12483 s,@am__leading_dot@,$am__leading_dot,;t t
12484 s,@AMTAR@,$AMTAR,;t t
12485 s,@am__tar@,$am__tar,;t t
12486 s,@am__untar@,$am__untar,;t t
12487 s,@DEPDIR@,$DEPDIR,;t t
12488 s,@am__include@,$am__include,;t t
12489 s,@am__quote@,$am__quote,;t t
12490 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12491 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12492 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12493 s,@CCDEPMODE@,$CCDEPMODE,;t t
12494 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
12495 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
12497 s,@ac_ct_AR@,$ac_ct_AR,;t t
12498 s,@RANLIB@,$RANLIB,;t t
12499 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12500 s,@LIBTOOL@,$LIBTOOL,;t t
12502 s,@EGREP@,$EGREP,;t t
12503 s,@FGREP@,$FGREP,;t t
12504 s,@GREP@,$GREP,;t t
12506 s,@DUMPBIN@,$DUMPBIN,;t t
12507 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
12509 s,@LN_S@,$LN_S,;t t
12510 s,@lt_ECHO@,$lt_ECHO,;t t
12512 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
12513 s,@NO_WERROR@,$NO_WERROR,;t t
12514 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12515 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12516 s,@MAINT@,$MAINT,;t t
12517 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
12518 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
12519 s,@host_noncanonical@,$host_noncanonical,;t t
12520 s,@target_noncanonical@,$target_noncanonical,;t t
12521 s,@bfdlibdir@,$bfdlibdir,;t t
12522 s,@bfdincludedir@,$bfdincludedir,;t t
12523 s,@USE_NLS@,$USE_NLS,;t t
12524 s,@LIBINTL@,$LIBINTL,;t t
12525 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
12526 s,@INCINTL@,$INCINTL,;t t
12527 s,@XGETTEXT@,$XGETTEXT,;t t
12528 s,@GMSGFMT@,$GMSGFMT,;t t
12529 s,@POSUB@,$POSUB,;t t
12530 s,@CATALOGS@,$CATALOGS,;t t
12531 s,@DATADIRNAME@,$DATADIRNAME,;t t
12532 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
12533 s,@GENCAT@,$GENCAT,;t t
12534 s,@CATOBJEXT@,$CATOBJEXT,;t t
12535 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
12536 s,@MSGFMT@,$MSGFMT,;t t
12537 s,@MSGMERGE@,$MSGMERGE,;t t
12538 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12539 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
12540 s,@HDEFINES@,$HDEFINES,;t t
12541 s,@CGEN_MAINT_TRUE@,$CGEN_MAINT_TRUE,;t t
12542 s,@CGEN_MAINT_FALSE@,$CGEN_MAINT_FALSE,;t t
12543 s,@cgendir@,$cgendir,;t t
12544 s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
12545 s,@WIN32LIBADD@,$WIN32LIBADD,;t t
12546 s,@archdefs@,$archdefs,;t t
12547 s,@BFD_MACHINES@,$BFD_MACHINES,;t t
12548 s,@LIBOBJS@,$LIBOBJS,;t t
12549 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12554 cat >>$CONFIG_STATUS <<\_ACEOF
12555 # Split the substitutions into bite-sized pieces for seds with
12556 # small command number limits, like on Digital OSF/1 and HP-UX.
12557 ac_max_sed_lines=48
12558 ac_sed_frag=1 # Number of current file.
12559 ac_beg=1 # First line for current file.
12560 ac_end=$ac_max_sed_lines # Line after last line for current file.
12563 while $ac_more_lines; do
12564 if test $ac_beg -gt 1; then
12565 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12567 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12569 if test ! -s $tmp/subs.frag; then
12570 ac_more_lines=false
12572 # The purpose of the label and of the branching condition is to
12573 # speed up the sed processing (if there are no `@' at all, there
12574 # is no need to browse any of the substitutions).
12575 # These are the two extra sed commands mentioned above.
12577 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12578 if test -z "$ac_sed_cmds"; then
12579 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12581 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12583 ac_sed_frag=`expr $ac_sed_frag + 1`
12585 ac_end=`expr $ac_end + $ac_max_sed_lines`
12588 if test -z "$ac_sed_cmds"; then
12591 fi # test -n "$CONFIG_FILES"
12594 cat >>$CONFIG_STATUS <<\_ACEOF
12595 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12596 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12598 - | *:- | *:-:* ) # input from stdin
12600 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12601 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12602 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12603 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12604 * ) ac_file_in=$ac_file.in ;;
12607 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12608 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12609 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12610 X"$ac_file" : 'X\(//\)[^/]' \| \
12611 X"$ac_file" : 'X\(//\)$' \| \
12612 X"$ac_file" : 'X\(/\)' \| \
12613 . : '\(.\)' 2>/dev/null ||
12615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12616 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12617 /^X\(\/\/\)$/{ s//\1/; q; }
12618 /^X\(\/\).*/{ s//\1/; q; }
12620 { if $as_mkdir_p; then
12625 while test ! -d "$as_dir"; do
12626 as_dirs="$as_dir $as_dirs"
12627 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12628 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12629 X"$as_dir" : 'X\(//\)[^/]' \| \
12630 X"$as_dir" : 'X\(//\)$' \| \
12631 X"$as_dir" : 'X\(/\)' \| \
12632 . : '\(.\)' 2>/dev/null ||
12634 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12635 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12636 /^X\(\/\/\)$/{ s//\1/; q; }
12637 /^X\(\/\).*/{ s//\1/; q; }
12640 test ! -n "$as_dirs" || mkdir $as_dirs
12641 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12642 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12643 { (exit 1); exit 1; }; }; }
12647 if test "$ac_dir" != .; then
12648 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12649 # A "../" for each directory in $ac_dir_suffix.
12650 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12652 ac_dir_suffix= ac_top_builddir=
12656 .) # No --srcdir option. We are building in place.
12658 if test -z "$ac_top_builddir"; then
12661 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12663 [\\/]* | ?:[\\/]* ) # Absolute path.
12664 ac_srcdir=$srcdir$ac_dir_suffix;
12665 ac_top_srcdir=$srcdir ;;
12666 *) # Relative path.
12667 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12668 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12671 # Do not use `cd foo && pwd` to compute absolute paths, because
12672 # the directories may not exist.
12674 .) ac_abs_builddir="$ac_dir";;
12677 .) ac_abs_builddir=`pwd`;;
12678 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12679 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12682 case $ac_abs_builddir in
12683 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12685 case ${ac_top_builddir}. in
12686 .) ac_abs_top_builddir=$ac_abs_builddir;;
12687 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12688 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12691 case $ac_abs_builddir in
12692 .) ac_abs_srcdir=$ac_srcdir;;
12695 .) ac_abs_srcdir=$ac_abs_builddir;;
12696 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12697 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12700 case $ac_abs_builddir in
12701 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12703 case $ac_top_srcdir in
12704 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12705 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12706 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12712 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12713 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12716 if test x"$ac_file" != x-; then
12717 { echo "$as_me:$LINENO: creating $ac_file" >&5
12718 echo "$as_me: creating $ac_file" >&6;}
12721 # Let's still pretend it is `configure' which instantiates (i.e., don't
12722 # use $as_me), people would be surprised to read:
12723 # /* config.h. Generated by config.status. */
12724 if test x"$ac_file" = x-; then
12727 configure_input="$ac_file. "
12729 configure_input=$configure_input"Generated from `echo $ac_file_in |
12730 sed 's,.*/,,'` by configure."
12732 # First look for the input files in the build tree, otherwise in the
12734 ac_file_inputs=`IFS=:
12735 for f in $ac_file_in; do
12737 -) echo $tmp/stdin ;;
12739 # Absolute (can't be DOS-style, as IFS=:)
12740 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12741 echo "$as_me: error: cannot find input file: $f" >&2;}
12742 { (exit 1); exit 1; }; }
12745 if test -f "$f"; then
12748 elif test -f "$srcdir/$f"; then
12753 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12754 echo "$as_me: error: cannot find input file: $f" >&2;}
12755 { (exit 1); exit 1; }; }
12758 done` || { (exit 1); exit 1; }
12760 cat >>$CONFIG_STATUS <<_ACEOF
12764 cat >>$CONFIG_STATUS <<\_ACEOF
12766 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12767 s,@configure_input@,$configure_input,;t t
12768 s,@srcdir@,$ac_srcdir,;t t
12769 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12770 s,@top_srcdir@,$ac_top_srcdir,;t t
12771 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12772 s,@builddir@,$ac_builddir,;t t
12773 s,@abs_builddir@,$ac_abs_builddir,;t t
12774 s,@top_builddir@,$ac_top_builddir,;t t
12775 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12776 s,@INSTALL@,$ac_INSTALL,;t t
12777 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12779 if test x"$ac_file" != x-; then
12780 mv $tmp/out $ac_file
12788 cat >>$CONFIG_STATUS <<\_ACEOF
12791 # CONFIG_HEADER section.
12794 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12795 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12797 # ac_d sets the value in "#define NAME VALUE" lines.
12798 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12799 ac_dB='[ ].*$,\1#\2'
12802 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12803 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12804 ac_uB='$,\1#\2define\3'
12808 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12809 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12811 - | *:- | *:-:* ) # input from stdin
12813 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12814 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12815 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12816 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12817 * ) ac_file_in=$ac_file.in ;;
12820 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12821 echo "$as_me: creating $ac_file" >&6;}
12823 # First look for the input files in the build tree, otherwise in the
12825 ac_file_inputs=`IFS=:
12826 for f in $ac_file_in; do
12828 -) echo $tmp/stdin ;;
12830 # Absolute (can't be DOS-style, as IFS=:)
12831 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12832 echo "$as_me: error: cannot find input file: $f" >&2;}
12833 { (exit 1); exit 1; }; }
12834 # Do quote $f, to prevent DOS paths from being IFS'd.
12837 if test -f "$f"; then
12840 elif test -f "$srcdir/$f"; then
12845 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12846 echo "$as_me: error: cannot find input file: $f" >&2;}
12847 { (exit 1); exit 1; }; }
12850 done` || { (exit 1); exit 1; }
12851 # Remove the trailing spaces.
12852 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12856 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12857 # `conftest.undefs', that substitutes the proper values into
12858 # config.h.in to produce config.h. The first handles `#define'
12859 # templates, and the second `#undef' templates.
12860 # And first: Protect against being on the right side of a sed subst in
12861 # config.status. Protect against being in an unquoted here document
12862 # in config.status.
12863 rm -f conftest.defines conftest.undefs
12864 # Using a here document instead of a string reduces the quoting nightmare.
12865 # Putting comments in sed scripts is not portable.
12867 # `end' is used to avoid that the second main sed command (meant for
12868 # 0-ary CPP macros) applies to n-ary macro definitions.
12869 # See the Autoconf documentation for `clear'.
12870 cat >confdef2sed.sed <<\_ACEOF
12875 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12877 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12880 # If some macros were called several times there might be several times
12881 # the same #defines, which is useless. Nevertheless, we may not want to
12882 # sort them, since we want the *last* AC-DEFINE to be honored.
12883 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12884 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12885 rm -f confdef2sed.sed
12887 # This sed command replaces #undef with comments. This is necessary, for
12888 # example, in the case of _POSIX_SOURCE, which is predefined and required
12889 # on some systems where configure will not decide to define it.
12890 cat >>conftest.undefs <<\_ACEOF
12891 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12894 # Break up conftest.defines because some shells have a limit on the size
12895 # of here documents, and old seds have small limits too (100 cmds).
12896 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12897 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12898 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12899 echo ' :' >>$CONFIG_STATUS
12900 rm -f conftest.tail
12901 while grep . conftest.defines >/dev/null
12903 # Write a limited-size here document to $tmp/defines.sed.
12904 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12905 # Speed up: don't consider the non `#define' lines.
12906 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12907 # Work around the forget-to-reset-the-flag bug.
12908 echo 't clr' >>$CONFIG_STATUS
12909 echo ': clr' >>$CONFIG_STATUS
12910 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12912 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12914 mv $tmp/out $tmp/in
12916 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12917 rm -f conftest.defines
12918 mv conftest.tail conftest.defines
12920 rm -f conftest.defines
12921 echo ' fi # grep' >>$CONFIG_STATUS
12922 echo >>$CONFIG_STATUS
12924 # Break up conftest.undefs because some shells have a limit on the size
12925 # of here documents, and old seds have small limits too (100 cmds).
12926 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12927 rm -f conftest.tail
12928 while grep . conftest.undefs >/dev/null
12930 # Write a limited-size here document to $tmp/undefs.sed.
12931 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12932 # Speed up: don't consider the non `#undef'
12933 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12934 # Work around the forget-to-reset-the-flag bug.
12935 echo 't clr' >>$CONFIG_STATUS
12936 echo ': clr' >>$CONFIG_STATUS
12937 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12939 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12941 mv $tmp/out $tmp/in
12943 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12944 rm -f conftest.undefs
12945 mv conftest.tail conftest.undefs
12947 rm -f conftest.undefs
12949 cat >>$CONFIG_STATUS <<\_ACEOF
12950 # Let's still pretend it is `configure' which instantiates (i.e., don't
12951 # use $as_me), people would be surprised to read:
12952 # /* config.h. Generated by config.status. */
12953 if test x"$ac_file" = x-; then
12954 echo "/* Generated by configure. */" >$tmp/config.h
12956 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12958 cat $tmp/in >>$tmp/config.h
12960 if test x"$ac_file" != x-; then
12961 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12962 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12963 echo "$as_me: $ac_file is unchanged" >&6;}
12965 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12966 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12967 X"$ac_file" : 'X\(//\)[^/]' \| \
12968 X"$ac_file" : 'X\(//\)$' \| \
12969 X"$ac_file" : 'X\(/\)' \| \
12970 . : '\(.\)' 2>/dev/null ||
12972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12973 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12974 /^X\(\/\/\)$/{ s//\1/; q; }
12975 /^X\(\/\).*/{ s//\1/; q; }
12977 { if $as_mkdir_p; then
12982 while test ! -d "$as_dir"; do
12983 as_dirs="$as_dir $as_dirs"
12984 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12985 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12986 X"$as_dir" : 'X\(//\)[^/]' \| \
12987 X"$as_dir" : 'X\(//\)$' \| \
12988 X"$as_dir" : 'X\(/\)' \| \
12989 . : '\(.\)' 2>/dev/null ||
12991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12992 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12993 /^X\(\/\/\)$/{ s//\1/; q; }
12994 /^X\(\/\).*/{ s//\1/; q; }
12997 test ! -n "$as_dirs" || mkdir $as_dirs
12998 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12999 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13000 { (exit 1); exit 1; }; }; }
13003 mv $tmp/config.h $ac_file
13007 rm -f $tmp/config.h
13009 # Compute $ac_file's index in $config_headers.
13011 for _am_header in $config_headers :; do
13012 case $_am_header in
13013 $ac_file | $ac_file:* )
13016 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13019 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13020 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13021 X$ac_file : 'X\(//\)[^/]' \| \
13022 X$ac_file : 'X\(//\)$' \| \
13023 X$ac_file : 'X\(/\)' \| \
13024 . : '\(.\)' 2>/dev/null ||
13026 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13027 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13028 /^X\(\/\/\)$/{ s//\1/; q; }
13029 /^X\(\/\).*/{ s//\1/; q; }
13030 s/.*/./; q'`/stamp-h$_am_stamp_count
13033 cat >>$CONFIG_STATUS <<\_ACEOF
13036 # CONFIG_COMMANDS section.
13038 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13039 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13040 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13041 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13042 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13043 X"$ac_dest" : 'X\(//\)[^/]' \| \
13044 X"$ac_dest" : 'X\(//\)$' \| \
13045 X"$ac_dest" : 'X\(/\)' \| \
13046 . : '\(.\)' 2>/dev/null ||
13048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13049 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13050 /^X\(\/\/\)$/{ s//\1/; q; }
13051 /^X\(\/\).*/{ s//\1/; q; }
13053 { if $as_mkdir_p; then
13058 while test ! -d "$as_dir"; do
13059 as_dirs="$as_dir $as_dirs"
13060 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13061 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13062 X"$as_dir" : 'X\(//\)[^/]' \| \
13063 X"$as_dir" : 'X\(//\)$' \| \
13064 X"$as_dir" : 'X\(/\)' \| \
13065 . : '\(.\)' 2>/dev/null ||
13067 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13068 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13069 /^X\(\/\/\)$/{ s//\1/; q; }
13070 /^X\(\/\).*/{ s//\1/; q; }
13073 test ! -n "$as_dirs" || mkdir $as_dirs
13074 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13075 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13076 { (exit 1); exit 1; }; }; }
13080 if test "$ac_dir" != .; then
13081 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13082 # A "../" for each directory in $ac_dir_suffix.
13083 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13085 ac_dir_suffix= ac_top_builddir=
13089 .) # No --srcdir option. We are building in place.
13091 if test -z "$ac_top_builddir"; then
13094 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13096 [\\/]* | ?:[\\/]* ) # Absolute path.
13097 ac_srcdir=$srcdir$ac_dir_suffix;
13098 ac_top_srcdir=$srcdir ;;
13099 *) # Relative path.
13100 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13101 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13104 # Do not use `cd foo && pwd` to compute absolute paths, because
13105 # the directories may not exist.
13107 .) ac_abs_builddir="$ac_dir";;
13110 .) ac_abs_builddir=`pwd`;;
13111 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13112 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13115 case $ac_abs_builddir in
13116 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13118 case ${ac_top_builddir}. in
13119 .) ac_abs_top_builddir=$ac_abs_builddir;;
13120 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13121 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13124 case $ac_abs_builddir in
13125 .) ac_abs_srcdir=$ac_srcdir;;
13128 .) ac_abs_srcdir=$ac_abs_builddir;;
13129 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13130 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13133 case $ac_abs_builddir in
13134 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13136 case $ac_top_srcdir in
13137 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13138 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13139 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13144 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13145 echo "$as_me: executing $ac_dest commands" >&6;}
13147 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13148 # Strip MF so we end up with the name of the file.
13149 mf=`echo "$mf" | sed -e 's/:.*$//'`
13150 # Check whether this is an Automake generated Makefile or not.
13151 # We used to match only the files named `Makefile.in', but
13152 # some people rename them; so instead we look at the file content.
13153 # Grep'ing the first line is not enough: some people post-process
13154 # each Makefile.in and add a new line on top of each file to say so.
13155 # So let's grep whole file.
13156 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13157 dirpart=`(dirname "$mf") 2>/dev/null ||
13158 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13159 X"$mf" : 'X\(//\)[^/]' \| \
13160 X"$mf" : 'X\(//\)$' \| \
13161 X"$mf" : 'X\(/\)' \| \
13162 . : '\(.\)' 2>/dev/null ||
13164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13165 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13166 /^X\(\/\/\)$/{ s//\1/; q; }
13167 /^X\(\/\).*/{ s//\1/; q; }
13172 # Extract the definition of DEPDIR, am__include, and am__quote
13173 # from the Makefile without running `make'.
13174 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13175 test -z "$DEPDIR" && continue
13176 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13177 test -z "am__include" && continue
13178 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13179 # When using ansi2knr, U may be empty or an underscore; expand it
13180 U=`sed -n 's/^U = //p' < "$mf"`
13181 # Find all dependency output files, they are included files with
13182 # $(DEPDIR) in their names. We invoke sed twice because it is the
13183 # simplest approach to changing $(DEPDIR) to its actual value in the
13185 for file in `sed -n "
13186 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13187 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13188 # Make sure the directory exists.
13189 test -f "$dirpart/$file" && continue
13190 fdir=`(dirname "$file") 2>/dev/null ||
13191 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13192 X"$file" : 'X\(//\)[^/]' \| \
13193 X"$file" : 'X\(//\)$' \| \
13194 X"$file" : 'X\(/\)' \| \
13195 . : '\(.\)' 2>/dev/null ||
13197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13198 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13199 /^X\(\/\/\)$/{ s//\1/; q; }
13200 /^X\(\/\).*/{ s//\1/; q; }
13202 { if $as_mkdir_p; then
13203 mkdir -p $dirpart/$fdir
13205 as_dir=$dirpart/$fdir
13207 while test ! -d "$as_dir"; do
13208 as_dirs="$as_dir $as_dirs"
13209 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13210 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13211 X"$as_dir" : 'X\(//\)[^/]' \| \
13212 X"$as_dir" : 'X\(//\)$' \| \
13213 X"$as_dir" : 'X\(/\)' \| \
13214 . : '\(.\)' 2>/dev/null ||
13216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13217 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13218 /^X\(\/\/\)$/{ s//\1/; q; }
13219 /^X\(\/\).*/{ s//\1/; q; }
13222 test ! -n "$as_dirs" || mkdir $as_dirs
13223 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13224 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13225 { (exit 1); exit 1; }; }; }
13227 # echo "creating $dirpart/$file"
13228 echo '# dummy' > "$dirpart/$file"
13234 # See if we are running on zsh, and set the options which allow our
13235 # commands through without removal of \ escapes.
13236 if test -n "${ZSH_VERSION+set}" ; then
13237 setopt NO_GLOB_SUBST
13240 cfgfile="${ofile}T"
13241 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13244 cat <<_LT_EOF >> "$cfgfile"
13247 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13248 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
13249 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13250 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13252 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13253 # 2006, 2007 Free Software Foundation, Inc.
13255 # This file is part of GNU Libtool:
13256 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
13258 # This program is free software; you can redistribute it and/or modify
13259 # it under the terms of the GNU General Public License as published by
13260 # the Free Software Foundation; either version 2 of the License, or
13261 # (at your option) any later version.
13263 # This program is distributed in the hope that it will be useful, but
13264 # WITHOUT ANY WARRANTY; without even the implied warranty of
13265 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13266 # General Public License for more details.
13268 # You should have received a copy of the GNU General Public License
13269 # along with this program; if not, a copy can be downloaded from
13270 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
13271 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
13272 # MA 02110-1301, USA.
13274 # As a special exception to the GNU General Public License, if you
13275 # distribute this file as part of a program that contains a
13276 # configuration script generated by Autoconf, you may include it under
13277 # the same distribution terms that you use for the rest of that program.
13280 # The names of the tagged configurations supported by this script.
13283 # ### BEGIN LIBTOOL CONFIG
13285 # Whether or not to build shared libraries.
13286 build_libtool_libs=$enable_shared
13288 # Which release of libtool.m4 was used?
13289 macro_version=$macro_version
13290 macro_revision=$macro_revision
13292 # Whether or not to build static libraries.
13293 build_old_libs=$enable_static
13295 # What type of objects to build.
13298 # Whether or not to optimize for fast installation.
13299 fast_install=$enable_fast_install
13302 host_alias=$host_alias
13306 # The build system.
13307 build_alias=$build_alias
13311 # A sed program that does not truncate output.
13314 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13315 Xsed="\$SED -e 1s/^X//"
13317 # A grep program that handles long lines.
13323 # A literal string matcher.
13326 # A BSD- or MS-compatible name lister.
13329 # Whether we need soft or hard links.
13332 # What is the maximum length of a command?
13333 max_cmd_len=$max_cmd_len
13335 # Object file suffix (normally "o").
13338 # Executable file suffix (normally "").
13341 # whether the shell understands "unset".
13344 # turn spaces into newlines.
13347 # turn newlines into spaces.
13350 # How to create reloadable object files.
13351 reload_flag=$lt_reload_flag
13352 reload_cmds=$lt_reload_cmds
13354 # Method to check whether dependent libraries are shared objects.
13355 deplibs_check_method=$lt_deplibs_check_method
13357 # Command to use when deplibs_check_method == "file_magic".
13358 file_magic_cmd=$lt_file_magic_cmd
13362 AR_FLAGS=$lt_AR_FLAGS
13364 # A symbol stripping program.
13367 # Commands used to install an old-style archive.
13369 old_postinstall_cmds=$lt_old_postinstall_cmds
13370 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13375 # LTCC compiler flags.
13376 LTCFLAGS=$lt_CFLAGS
13378 # Take the output of nm and produce a listing of raw symbols and C names.
13379 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13381 # Transform the output of nm in a proper C declaration.
13382 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13384 # Transform the output of nm in a C name address pair.
13385 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13387 # The name of the directory that contains temporary libtool files.
13390 # Shell to use when invoking shell scripts.
13393 # An echo program that does not interpret backslashes.
13396 # Used to examine libraries when file_magic_cmd begins with "file".
13397 MAGIC_CMD=$MAGIC_CMD
13399 # Must we lock files when doing compilation?
13400 need_locks=$lt_need_locks
13402 # Old archive suffix (normally "a").
13405 # Shared library suffix (normally ".so").
13406 shrext_cmds=$lt_shrext_cmds
13408 # The commands to extract the exported symbol list from a shared archive.
13409 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13411 # Variables whose values should be saved in libtool wrapper scripts and
13412 # restored at link time.
13413 variables_saved_for_relink=$lt_variables_saved_for_relink
13415 # Do we need the "lib" prefix for modules?
13416 need_lib_prefix=$need_lib_prefix
13418 # Do we need a version for libraries?
13419 need_version=$need_version
13421 # Library versioning type.
13422 version_type=$version_type
13424 # Shared library runtime path variable.
13425 runpath_var=$runpath_var
13427 # Shared library path variable.
13428 shlibpath_var=$shlibpath_var
13430 # Is shlibpath searched before the hard-coded library search path?
13431 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13433 # Format of library name prefix.
13434 libname_spec=$lt_libname_spec
13436 # List of archive names. First name is the real one, the rest are links.
13437 # The last name is the one that the linker finds with -lNAME
13438 library_names_spec=$lt_library_names_spec
13440 # The coded name of the library, if different from the real name.
13441 soname_spec=$lt_soname_spec
13443 # Command to use after installation of a shared archive.
13444 postinstall_cmds=$lt_postinstall_cmds
13446 # Command to use after uninstallation of a shared archive.
13447 postuninstall_cmds=$lt_postuninstall_cmds
13449 # Commands used to finish a libtool library installation in a directory.
13450 finish_cmds=$lt_finish_cmds
13452 # As "finish_cmds", except a single script fragment to be evaled but
13454 finish_eval=$lt_finish_eval
13456 # Whether we should hardcode library paths into libraries.
13457 hardcode_into_libs=$hardcode_into_libs
13459 # Compile-time system search path for libraries.
13460 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13462 # Run-time system search path for libraries.
13463 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13465 # Whether dlopen is supported.
13466 dlopen_support=$enable_dlopen
13468 # Whether dlopen of programs is supported.
13469 dlopen_self=$enable_dlopen_self
13471 # Whether dlopen of statically linked programs is supported.
13472 dlopen_self_static=$enable_dlopen_self_static
13474 # Commands to strip libraries.
13475 old_striplib=$lt_old_striplib
13476 striplib=$lt_striplib
13479 # The linker used to build libraries.
13482 # Commands used to build an old-style archive.
13483 old_archive_cmds=$lt_old_archive_cmds
13485 # A language specific compiler.
13488 # Is the compiler the GNU compiler?
13491 # Compiler flag to turn off builtin functions.
13492 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13494 # How to pass a linker flag through the compiler.
13495 wl=$lt_lt_prog_compiler_wl
13497 # Additional compiler flags for building library objects.
13498 pic_flag=$lt_lt_prog_compiler_pic
13500 # Compiler flag to prevent dynamic linking.
13501 link_static_flag=$lt_lt_prog_compiler_static
13503 # Does compiler simultaneously support -c and -o options?
13504 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13506 # Whether or not to add -lc for building shared libraries.
13507 build_libtool_need_lc=$archive_cmds_need_lc
13509 # Whether or not to disallow shared libs when runtime libs are static.
13510 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13512 # Compiler flag to allow reflexive dlopens.
13513 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13515 # Compiler flag to generate shared objects directly from archives.
13516 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13518 # Whether the compiler copes with passing no objects directly.
13519 compiler_needs_object=$lt_compiler_needs_object
13521 # Create an old-style archive from a shared archive.
13522 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13524 # Create a temporary old-style archive to link instead of a shared archive.
13525 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13527 # Commands used to build a shared archive.
13528 archive_cmds=$lt_archive_cmds
13529 archive_expsym_cmds=$lt_archive_expsym_cmds
13531 # Commands used to build a loadable module if different from building
13532 # a shared archive.
13533 module_cmds=$lt_module_cmds
13534 module_expsym_cmds=$lt_module_expsym_cmds
13536 # Whether we are building with GNU ld or not.
13537 with_gnu_ld=$lt_with_gnu_ld
13539 # Flag that allows shared libraries with undefined symbols to be built.
13540 allow_undefined_flag=$lt_allow_undefined_flag
13542 # Flag that enforces no undefined symbols.
13543 no_undefined_flag=$lt_no_undefined_flag
13545 # Flag to hardcode \$libdir into a binary during linking.
13546 # This must work even if \$libdir does not exist
13547 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13549 # If ld is used when linking, flag to hardcode \$libdir into a binary
13550 # during linking. This must work even if \$libdir does not exist.
13551 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13553 # Whether we need a single "-rpath" flag with a separated argument.
13554 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13556 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13557 # DIR into the resulting binary.
13558 hardcode_direct=$hardcode_direct
13560 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13561 # DIR into the resulting binary and the resulting library dependency is
13562 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13563 # library is relocated.
13564 hardcode_direct_absolute=$hardcode_direct_absolute
13566 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13567 # into the resulting binary.
13568 hardcode_minus_L=$hardcode_minus_L
13570 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13571 # into the resulting binary.
13572 hardcode_shlibpath_var=$hardcode_shlibpath_var
13574 # Set to "yes" if building a shared library automatically hardcodes DIR
13575 # into the library and all subsequent libraries and executables linked
13577 hardcode_automatic=$hardcode_automatic
13579 # Set to yes if linker adds runtime paths of dependent libraries
13580 # to runtime path list.
13581 inherit_rpath=$inherit_rpath
13583 # Whether libtool must link a program against all its dependency libraries.
13584 link_all_deplibs=$link_all_deplibs
13586 # Fix the shell variable \$srcfile for the compiler.
13587 fix_srcfile_path=$lt_fix_srcfile_path
13589 # Set to "yes" if exported symbols are required.
13590 always_export_symbols=$always_export_symbols
13592 # The commands to list exported symbols.
13593 export_symbols_cmds=$lt_export_symbols_cmds
13595 # Symbols that should not be listed in the preloaded symbols.
13596 exclude_expsyms=$lt_exclude_expsyms
13598 # Symbols that must always be exported.
13599 include_expsyms=$lt_include_expsyms
13601 # Commands necessary for linking programs (against libraries) with templates.
13602 prelink_cmds=$lt_prelink_cmds
13604 # Specify filename containing input files.
13605 file_list_spec=$lt_file_list_spec
13607 # How to hardcode a shared library path into an executable.
13608 hardcode_action=$hardcode_action
13610 # ### END LIBTOOL CONFIG
13616 cat <<\_LT_EOF >> "$cfgfile"
13617 # AIX sometimes has problems with the GCC collect2 program. For some
13618 # reason, if we set the COLLECT_NAMES environment variable, the problems
13619 # vanish in a puff of smoke.
13620 if test "X${COLLECT_NAMES+set}" != Xset; then
13622 export COLLECT_NAMES
13629 ltmain="$ac_aux_dir/ltmain.sh"
13632 # We use sed instead of cat because bash on DJGPP gets confused if
13633 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13634 # text mode, it properly converts lines to CR/LF. This bash problem
13635 # is reportedly fixed, but why not run on old versions too?
13636 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13637 || (rm -f "$cfgfile"; exit 1)
13641 cat << \_LT_EOF >> "$cfgfile"
13642 # func_dirname file append nondir_replacement
13643 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13644 # otherwise set result to NONDIR_REPLACEMENT.
13648 */*) func_dirname_result="${1%/*}${2}" ;;
13649 * ) func_dirname_result="${3}" ;;
13653 # func_basename file
13656 func_basename_result="${1##*/}"
13659 # func_stripname prefix suffix name
13660 # strip PREFIX and SUFFIX off of NAME.
13661 # PREFIX and SUFFIX must not contain globbing or regex special
13662 # characters, hashes, percent signs, but SUFFIX may contain a leading
13663 # dot (in which case that matches only a dot).
13666 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13667 # positional parameters, so assign one to ordinary parameter first.
13668 func_stripname_result=${3}
13669 func_stripname_result=${func_stripname_result#"${1}"}
13670 func_stripname_result=${func_stripname_result%"${2}"}
13676 func_opt_split_opt=${1%%=*}
13677 func_opt_split_arg=${1#*=}
13684 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13685 *) func_lo2o_result=${1} ;;
13690 *) # Bourne compatible functions.
13691 cat << \_LT_EOF >> "$cfgfile"
13692 # func_dirname file append nondir_replacement
13693 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13694 # otherwise set result to NONDIR_REPLACEMENT.
13697 # Extract subdirectory from the argument.
13698 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13699 if test "X$func_dirname_result" = "X${1}"; then
13700 func_dirname_result="${3}"
13702 func_dirname_result="$func_dirname_result${2}"
13706 # func_basename file
13709 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13712 # func_stripname prefix suffix name
13713 # strip PREFIX and SUFFIX off of NAME.
13714 # PREFIX and SUFFIX must not contain globbing or regex special
13715 # characters, hashes, percent signs, but SUFFIX may contain a leading
13716 # dot (in which case that matches only a dot).
13717 # func_strip_suffix prefix name
13721 .*) func_stripname_result=`$ECHO "X${3}" \
13722 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13723 *) func_stripname_result=`$ECHO "X${3}" \
13724 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13729 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13730 my_sed_long_arg='1s/^-[^=]*=//'
13735 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13736 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13742 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13747 case $lt_shell_append in
13749 cat << \_LT_EOF >> "$cfgfile"
13751 # func_append var value
13752 # Append VALUE to the end of shell variable VAR.
13760 cat << \_LT_EOF >> "$cfgfile"
13762 # func_append var value
13763 # Append VALUE to the end of shell variable VAR.
13773 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13774 || (rm -f "$cfgfile"; exit 1)
13776 mv -f "$cfgfile" "$ofile" ||
13777 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13782 for ac_file in $CONFIG_FILES; do
13783 # Support "outfile[:infile[:infile...]]"
13785 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13787 # PO directories have a Makefile.in generated from Makefile.in.in.
13788 case "$ac_file" in */Makefile.in)
13789 # Adjust a relative srcdir.
13790 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13791 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13792 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13793 # In autoconf-2.13 it is called $ac_given_srcdir.
13794 # In autoconf-2.50 it is called $srcdir.
13795 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13796 case "$ac_given_srcdir" in
13797 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13798 /*) top_srcdir="$ac_given_srcdir" ;;
13799 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
13801 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13802 rm -f "$ac_dir/POTFILES"
13803 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13804 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13805 POMAKEFILEDEPS="POTFILES.in"
13806 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
13807 # on $ac_dir but don't depend on user-specified configuration
13809 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13810 # The LINGUAS file contains the set of available languages.
13811 if test -n "$OBSOLETE_ALL_LINGUAS"; then
13812 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13814 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13815 # Hide the ALL_LINGUAS assigment from automake.
13816 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13817 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13819 # The set of available languages was given in configure.in.
13820 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13822 case "$ac_given_srcdir" in
13824 *) srcdirpre='$(srcdir)/' ;;
13830 for lang in $ALL_LINGUAS; do
13831 POFILES="$POFILES $srcdirpre$lang.po"
13832 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13833 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13834 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13836 # CATALOGS depends on both $ac_dir and the user's LINGUAS
13837 # environment variable.
13839 if test -n "$ALL_LINGUAS"; then
13840 for presentlang in $ALL_LINGUAS; do
13842 if test "%UNSET%" != "$LINGUAS"; then
13843 desiredlanguages="$LINGUAS"
13845 desiredlanguages="$ALL_LINGUAS"
13847 for desiredlang in $desiredlanguages; do
13848 # Use the presentlang catalog if desiredlang is
13849 # a. equal to presentlang, or
13850 # b. a variant of presentlang (because in this case,
13851 # presentlang can be used as a fallback for messages
13852 # which are not translated in the desiredlang catalog).
13853 case "$desiredlang" in
13854 "$presentlang"*) useit=yes;;
13857 if test $useit = yes; then
13858 INST_LINGUAS="$INST_LINGUAS $presentlang"
13863 if test -n "$INST_LINGUAS"; then
13864 for lang in $INST_LINGUAS; do
13865 CATALOGS="$CATALOGS $lang.gmo"
13868 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13869 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"
13870 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13871 if test -f "$f"; then
13873 *.orig | *.bak | *~) ;;
13874 *) cat "$f" >> "$ac_dir/Makefile" ;;
13886 cat >>$CONFIG_STATUS <<\_ACEOF
13888 { (exit 0); exit 0; }
13890 chmod +x $CONFIG_STATUS
13891 ac_clean_files=$ac_clean_files_save
13894 # configure is writing to config.log, and then calls config.status.
13895 # config.status does its own redirection, appending to config.log.
13896 # Unfortunately, on DOS this fails, as config.log is still kept open
13897 # by configure, so config.status won't be able to write to it; its
13898 # output is simply discarded. So we exec the FD to /dev/null,
13899 # effectively closing config.log, so it can be properly (re)opened and
13900 # appended to by config.status. When coming back to configure, we
13901 # need to make the FD available again.
13902 if test "$no_create" != yes; then
13904 ac_config_status_args=
13905 test "$silent" = yes &&
13906 ac_config_status_args="$ac_config_status_args --quiet"
13908 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13910 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13911 # would make configure fail if this is the last instruction.
13912 $ac_cs_success || { (exit 1); exit 1; }