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="as.h"
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 LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO CPP WARN_CFLAGS NO_WERROR GDBINIT cgen_cpu_prefix extra_objects target_cpu_type obj_format te_file install_tooldir atof OPCODES_LIB YACC LEX LEXLIB LEX_OUTPUT_ROOT USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE ALLOCA LIBM datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
465 # Initialize some variables set by options.
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
477 program_transform_name=s,x,x,
485 # Installation directory options.
486 # These are left unexpanded so users can "make install exec_prefix=/foo"
487 # and all the variables that are supposed to be based on exec_prefix
488 # by default will actually change.
489 # Use braces instead of parens because sh, perl, etc. also accept them.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
515 # Accept the important Cygnus configure options, so we can diagnose typos.
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
524 -build | --build | --buil | --bui | --bu)
525 ac_prev=build_alias ;;
526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527 build_alias=$ac_optarg ;;
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534 cache_file=$ac_optarg ;;
537 cache_file=config.cache ;;
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
543 datadir=$ac_optarg ;;
545 -disable-* | --disable-*)
546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547 # Reject names that are not valid shell variable names.
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
554 -enable-* | --enable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
565 eval "enable_$ac_feature='$ac_optarg'" ;;
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
574 exec_prefix=$ac_optarg ;;
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
580 -help | --help | --hel | --he | -h)
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
587 -host | --host | --hos | --ho)
588 ac_prev=host_alias ;;
589 -host=* | --host=* | --hos=* | --ho=*)
590 host_alias=$ac_optarg ;;
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
597 includedir=$ac_optarg ;;
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602 infodir=$ac_optarg ;;
604 -libdir | --libdir | --libdi | --libd)
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
614 libexecdir=$ac_optarg ;;
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623 localstatedir=$ac_optarg ;;
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
631 # Obsolete; use --without-fp.
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635 | --no-cr | --no-c | -n)
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649 oldincludedir=$ac_optarg ;;
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661 program_prefix=$ac_optarg ;;
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668 program_suffix=$ac_optarg ;;
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
685 program_transform_name=$ac_optarg ;;
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
695 sbindir=$ac_optarg ;;
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
706 sharedstatedir=$ac_optarg ;;
708 -site | --site | --sit)
710 -site=* | --site=* | --sit=*)
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723 sysconfdir=$ac_optarg ;;
725 -target | --target | --targe | --targ | --tar | --ta | --t)
726 ac_prev=target_alias ;;
727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728 target_alias=$ac_optarg ;;
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
733 -version | --version | --versio | --versi | --vers | -V)
737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738 # Reject names that are not valid shell variable names.
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
742 ac_package=`echo $ac_package| sed 's/-/_/g'`
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
747 eval "with_$ac_package='$ac_optarg'" ;;
749 -without-* | --without-*)
750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751 # Reject names that are not valid shell variable names.
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
759 # Obsolete; use --with-x.
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767 x_includes=$ac_optarg ;;
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774 x_libraries=$ac_optarg ;;
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802 if test -n "$ac_prev"; then
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
811 eval ac_val=$`echo $ac_var`
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
823 eval ac_val=$`echo $ac_var`
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
852 test "$silent" = yes && exec 6>/dev/null
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
872 if test ! -r $srcdir/$ac_unique_file; then
876 ac_srcdir_defaulted=no
878 if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
887 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CC_set=${CC+set}
905 ac_cv_env_CC_set=${CC+set}
906 ac_cv_env_CC_value=$CC
907 ac_env_CFLAGS_set=${CFLAGS+set}
908 ac_env_CFLAGS_value=$CFLAGS
909 ac_cv_env_CFLAGS_set=${CFLAGS+set}
910 ac_cv_env_CFLAGS_value=$CFLAGS
911 ac_env_LDFLAGS_set=${LDFLAGS+set}
912 ac_env_LDFLAGS_value=$LDFLAGS
913 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914 ac_cv_env_LDFLAGS_value=$LDFLAGS
915 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916 ac_env_CPPFLAGS_value=$CPPFLAGS
917 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919 ac_env_CPP_set=${CPP+set}
920 ac_env_CPP_value=$CPP
921 ac_cv_env_CPP_set=${CPP+set}
922 ac_cv_env_CPP_value=$CPP
925 # Report the --help message.
927 if test "$ac_init_help" = "long"; then
928 # Omit some internal or obsolete options to make the list less imposing.
929 # This message is too long to be a string in the A/UX 3.1 sh.
931 \`configure' configures this package to adapt to many kinds of systems.
933 Usage: $0 [OPTION]... [VAR=VALUE]...
935 To assign environment variables (e.g., CC, CFLAGS...), specify them as
936 VAR=VALUE. See below for descriptions of some of the useful variables.
938 Defaults for the options are specified in brackets.
941 -h, --help display this help and exit
942 --help=short display options specific to this package
943 --help=recursive display the short help of all the included packages
944 -V, --version display version information and exit
945 -q, --quiet, --silent do not print \`checking...' messages
946 --cache-file=FILE cache test results in FILE [disabled]
947 -C, --config-cache alias for \`--cache-file=config.cache'
948 -n, --no-create do not create output files
949 --srcdir=DIR find the sources in DIR [configure dir or \`..']
954 Installation directories:
955 --prefix=PREFIX install architecture-independent files in PREFIX
957 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
960 By default, \`make install' will install all the files in
961 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
962 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
963 for instance \`--prefix=\$HOME'.
965 For better control, use the options below.
967 Fine tuning of the installation directories:
968 --bindir=DIR user executables [EPREFIX/bin]
969 --sbindir=DIR system admin executables [EPREFIX/sbin]
970 --libexecdir=DIR program executables [EPREFIX/libexec]
971 --datadir=DIR read-only architecture-independent data [PREFIX/share]
972 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
973 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
974 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
975 --libdir=DIR object code libraries [EPREFIX/lib]
976 --includedir=DIR C header files [PREFIX/include]
977 --oldincludedir=DIR C header files for non-gcc [/usr/include]
978 --infodir=DIR info documentation [PREFIX/info]
979 --mandir=DIR man documentation [PREFIX/man]
985 --program-prefix=PREFIX prepend PREFIX to installed program names
986 --program-suffix=SUFFIX append SUFFIX to installed program names
987 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
990 --build=BUILD configure for building on BUILD [guessed]
991 --host=HOST cross-compile to build programs to run on HOST [BUILD]
992 --target=TARGET configure for building compilers for TARGET [HOST]
996 if test -n "$ac_init_help"; then
1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1003 --disable-dependency-tracking speeds up one-time build
1004 --enable-dependency-tracking do not reject slow dependency extractors
1005 --enable-shared[=PKGS]
1006 build shared libraries [default=yes]
1007 --enable-static[=PKGS]
1008 build static libraries [default=yes]
1009 --enable-fast-install[=PKGS]
1010 optimize for fast installation [default=yes]
1011 --disable-libtool-lock avoid locking (might break parallel builds)
1012 --enable-targets alternative target configurations besides the primary
1013 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
1014 --enable-checking enable run-time checks
1015 --enable-werror treat compile warnings as errors
1016 --enable-build-warnings enable build-time compiler warnings
1017 --disable-nls do not use Native Language Support
1018 --enable-maintainer-mode enable make rules and dependencies not useful
1019 (and sometimes confusing) to the casual installer
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 # differences in whitespace do not lead to failure.
1422 ac_old_val_w=`echo x $ac_old_val`
1423 ac_new_val_w=`echo x $ac_new_val`
1424 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1425 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1426 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1427 ac_cache_corrupted=:
1429 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1430 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1431 eval $ac_var=\$ac_old_val
1433 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1434 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1435 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1436 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1439 # Pass precious variables to config.status.
1440 if test "$ac_new_set" = set; then
1442 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1443 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1444 *) ac_arg=$ac_var=$ac_new_val ;;
1446 case " $ac_configure_args " in
1447 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1448 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1452 if $ac_cache_corrupted; then
1453 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1454 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1455 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1456 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1457 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1458 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1459 { (exit 1); exit 1; }; }
1463 ac_cpp='$CPP $CPPFLAGS'
1464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1491 for ac_dir in .. $srcdir/..; do
1492 if test -f $ac_dir/install-sh; then
1494 ac_install_sh="$ac_aux_dir/install-sh -c"
1496 elif test -f $ac_dir/install.sh; then
1498 ac_install_sh="$ac_aux_dir/install.sh -c"
1500 elif test -f $ac_dir/shtool; then
1502 ac_install_sh="$ac_aux_dir/shtool install -c"
1506 if test -z "$ac_aux_dir"; then
1507 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1508 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1509 { (exit 1); exit 1; }; }
1511 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1512 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1513 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1515 # Make sure we can run config.sub.
1516 $ac_config_sub sun4 >/dev/null 2>&1 ||
1517 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1518 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1519 { (exit 1); exit 1; }; }
1521 echo "$as_me:$LINENO: checking build system type" >&5
1522 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1523 if test "${ac_cv_build+set}" = set; then
1524 echo $ECHO_N "(cached) $ECHO_C" >&6
1526 ac_cv_build_alias=$build_alias
1527 test -z "$ac_cv_build_alias" &&
1528 ac_cv_build_alias=`$ac_config_guess`
1529 test -z "$ac_cv_build_alias" &&
1530 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1531 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1532 { (exit 1); exit 1; }; }
1533 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1534 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1535 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1536 { (exit 1); exit 1; }; }
1539 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1540 echo "${ECHO_T}$ac_cv_build" >&6
1542 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1543 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1544 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1547 echo "$as_me:$LINENO: checking host system type" >&5
1548 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1549 if test "${ac_cv_host+set}" = set; then
1550 echo $ECHO_N "(cached) $ECHO_C" >&6
1552 ac_cv_host_alias=$host_alias
1553 test -z "$ac_cv_host_alias" &&
1554 ac_cv_host_alias=$ac_cv_build_alias
1555 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1556 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1557 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1558 { (exit 1); exit 1; }; }
1561 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1562 echo "${ECHO_T}$ac_cv_host" >&6
1564 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1565 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1566 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1569 echo "$as_me:$LINENO: checking target system type" >&5
1570 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1571 if test "${ac_cv_target+set}" = set; then
1572 echo $ECHO_N "(cached) $ECHO_C" >&6
1574 ac_cv_target_alias=$target_alias
1575 test "x$ac_cv_target_alias" = "x" &&
1576 ac_cv_target_alias=$ac_cv_host_alias
1577 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1578 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1579 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1580 { (exit 1); exit 1; }; }
1583 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1584 echo "${ECHO_T}$ac_cv_target" >&6
1585 target=$ac_cv_target
1586 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1587 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1588 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1591 # The aliases save the names the user supplied, while $host etc.
1592 # will get canonicalized.
1593 test -n "$target_alias" &&
1594 test "$program_prefix$program_suffix$program_transform_name" = \
1596 program_prefix=${target_alias}-
1598 ac_cpp='$CPP $CPPFLAGS'
1599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1602 if test -n "$ac_tool_prefix"; then
1603 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1604 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1605 echo "$as_me:$LINENO: checking for $ac_word" >&5
1606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1607 if test "${ac_cv_prog_CC+set}" = set; then
1608 echo $ECHO_N "(cached) $ECHO_C" >&6
1610 if test -n "$CC"; then
1611 ac_cv_prog_CC="$CC" # Let the user override the test.
1613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617 test -z "$as_dir" && as_dir=.
1618 for ac_exec_ext in '' $ac_executable_extensions; do
1619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1620 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1630 if test -n "$CC"; then
1631 echo "$as_me:$LINENO: result: $CC" >&5
1632 echo "${ECHO_T}$CC" >&6
1634 echo "$as_me:$LINENO: result: no" >&5
1635 echo "${ECHO_T}no" >&6
1639 if test -z "$ac_cv_prog_CC"; then
1641 # Extract the first word of "gcc", so it can be a program name with args.
1642 set dummy gcc; ac_word=$2
1643 echo "$as_me:$LINENO: checking for $ac_word" >&5
1644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1645 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1646 echo $ECHO_N "(cached) $ECHO_C" >&6
1648 if test -n "$ac_ct_CC"; then
1649 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1655 test -z "$as_dir" && as_dir=.
1656 for ac_exec_ext in '' $ac_executable_extensions; do
1657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1658 ac_cv_prog_ac_ct_CC="gcc"
1659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1667 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1668 if test -n "$ac_ct_CC"; then
1669 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1670 echo "${ECHO_T}$ac_ct_CC" >&6
1672 echo "$as_me:$LINENO: result: no" >&5
1673 echo "${ECHO_T}no" >&6
1681 if test -z "$CC"; then
1682 if test -n "$ac_tool_prefix"; then
1683 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1684 set dummy ${ac_tool_prefix}cc; ac_word=$2
1685 echo "$as_me:$LINENO: checking for $ac_word" >&5
1686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1687 if test "${ac_cv_prog_CC+set}" = set; then
1688 echo $ECHO_N "(cached) $ECHO_C" >&6
1690 if test -n "$CC"; then
1691 ac_cv_prog_CC="$CC" # Let the user override the test.
1693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697 test -z "$as_dir" && as_dir=.
1698 for ac_exec_ext in '' $ac_executable_extensions; do
1699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1700 ac_cv_prog_CC="${ac_tool_prefix}cc"
1701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1710 if test -n "$CC"; then
1711 echo "$as_me:$LINENO: result: $CC" >&5
1712 echo "${ECHO_T}$CC" >&6
1714 echo "$as_me:$LINENO: result: no" >&5
1715 echo "${ECHO_T}no" >&6
1719 if test -z "$ac_cv_prog_CC"; then
1721 # Extract the first word of "cc", so it can be a program name with args.
1722 set dummy cc; ac_word=$2
1723 echo "$as_me:$LINENO: checking for $ac_word" >&5
1724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1725 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1726 echo $ECHO_N "(cached) $ECHO_C" >&6
1728 if test -n "$ac_ct_CC"; then
1729 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1735 test -z "$as_dir" && as_dir=.
1736 for ac_exec_ext in '' $ac_executable_extensions; do
1737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1738 ac_cv_prog_ac_ct_CC="cc"
1739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1747 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1748 if test -n "$ac_ct_CC"; then
1749 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1750 echo "${ECHO_T}$ac_ct_CC" >&6
1752 echo "$as_me:$LINENO: result: no" >&5
1753 echo "${ECHO_T}no" >&6
1762 if test -z "$CC"; then
1763 # Extract the first word of "cc", so it can be a program name with args.
1764 set dummy cc; ac_word=$2
1765 echo "$as_me:$LINENO: checking for $ac_word" >&5
1766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1767 if test "${ac_cv_prog_CC+set}" = set; then
1768 echo $ECHO_N "(cached) $ECHO_C" >&6
1770 if test -n "$CC"; then
1771 ac_cv_prog_CC="$CC" # Let the user override the test.
1774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1778 test -z "$as_dir" && as_dir=.
1779 for ac_exec_ext in '' $ac_executable_extensions; do
1780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1781 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1782 ac_prog_rejected=yes
1786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1792 if test $ac_prog_rejected = yes; then
1793 # We found a bogon in the path, so make sure we never use it.
1794 set dummy $ac_cv_prog_CC
1796 if test $# != 0; then
1797 # We chose a different compiler from the bogus one.
1798 # However, it has the same basename, so the bogon will be chosen
1799 # first if we set CC to just the basename; use the full file name.
1801 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1807 if test -n "$CC"; then
1808 echo "$as_me:$LINENO: result: $CC" >&5
1809 echo "${ECHO_T}$CC" >&6
1811 echo "$as_me:$LINENO: result: no" >&5
1812 echo "${ECHO_T}no" >&6
1816 if test -z "$CC"; then
1817 if test -n "$ac_tool_prefix"; then
1820 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1821 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1822 echo "$as_me:$LINENO: checking for $ac_word" >&5
1823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1824 if test "${ac_cv_prog_CC+set}" = set; then
1825 echo $ECHO_N "(cached) $ECHO_C" >&6
1827 if test -n "$CC"; then
1828 ac_cv_prog_CC="$CC" # Let the user override the test.
1830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1834 test -z "$as_dir" && as_dir=.
1835 for ac_exec_ext in '' $ac_executable_extensions; do
1836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1837 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1847 if test -n "$CC"; then
1848 echo "$as_me:$LINENO: result: $CC" >&5
1849 echo "${ECHO_T}$CC" >&6
1851 echo "$as_me:$LINENO: result: no" >&5
1852 echo "${ECHO_T}no" >&6
1855 test -n "$CC" && break
1858 if test -z "$CC"; then
1862 # Extract the first word of "$ac_prog", so it can be a program name with args.
1863 set dummy $ac_prog; ac_word=$2
1864 echo "$as_me:$LINENO: checking for $ac_word" >&5
1865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1866 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1867 echo $ECHO_N "(cached) $ECHO_C" >&6
1869 if test -n "$ac_ct_CC"; then
1870 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1876 test -z "$as_dir" && as_dir=.
1877 for ac_exec_ext in '' $ac_executable_extensions; do
1878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1879 ac_cv_prog_ac_ct_CC="$ac_prog"
1880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1888 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1889 if test -n "$ac_ct_CC"; then
1890 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1891 echo "${ECHO_T}$ac_ct_CC" >&6
1893 echo "$as_me:$LINENO: result: no" >&5
1894 echo "${ECHO_T}no" >&6
1897 test -n "$ac_ct_CC" && break
1906 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1907 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1908 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1909 See \`config.log' for more details." >&5
1910 echo "$as_me: error: no acceptable C compiler found in \$PATH
1911 See \`config.log' for more details." >&2;}
1912 { (exit 1); exit 1; }; }; }
1914 # Provide some information about the compiler.
1915 echo "$as_me:$LINENO:" \
1916 "checking for C compiler version" >&5
1917 ac_compiler=`set X $ac_compile; echo $2`
1918 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1919 (eval $ac_compiler --version </dev/null >&5) 2>&5
1921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1922 (exit $ac_status); }
1923 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1924 (eval $ac_compiler -v </dev/null >&5) 2>&5
1926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1927 (exit $ac_status); }
1928 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1929 (eval $ac_compiler -V </dev/null >&5) 2>&5
1931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932 (exit $ac_status); }
1934 cat >conftest.$ac_ext <<_ACEOF
1937 cat confdefs.h >>conftest.$ac_ext
1938 cat >>conftest.$ac_ext <<_ACEOF
1939 /* end confdefs.h. */
1949 ac_clean_files_save=$ac_clean_files
1950 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1951 # Try to create an executable without -o first, disregard a.out.
1952 # It will help us diagnose broken compilers, and finding out an intuition
1954 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1955 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1956 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1957 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1958 (eval $ac_link_default) 2>&5
1960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1961 (exit $ac_status); }; then
1962 # Find the output, starting from the most likely. This scheme is
1963 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1966 # Be careful to initialize this variable, since it used to be cached.
1967 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1969 # b.out is created by i960 compilers.
1970 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1972 test -f "$ac_file" || continue
1974 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1977 # This is the source file.
1980 # We found the default executable, but exeext='' is most
1984 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1985 # FIXME: I believe we export ac_cv_exeext for Libtool,
1986 # but it would be cool to find out if it's true. Does anybody
1987 # maintain Libtool? --akim.
1995 echo "$as_me: failed program was:" >&5
1996 sed 's/^/| /' conftest.$ac_ext >&5
1998 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1999 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2000 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2001 See \`config.log' for more details." >&5
2002 echo "$as_me: error: C compiler cannot create executables
2003 See \`config.log' for more details." >&2;}
2004 { (exit 77); exit 77; }; }; }
2007 ac_exeext=$ac_cv_exeext
2008 echo "$as_me:$LINENO: result: $ac_file" >&5
2009 echo "${ECHO_T}$ac_file" >&6
2011 # Check the compiler produces executables we can run. If not, either
2012 # the compiler is broken, or we cross compile.
2013 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2014 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2015 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2016 # If not cross compiling, check that we can run a simple program.
2017 if test "$cross_compiling" != yes; then
2018 if { ac_try='./$ac_file'
2019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2023 (exit $ac_status); }; }; then
2026 if test "$cross_compiling" = maybe; then
2029 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2030 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2031 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2032 If you meant to cross compile, use \`--host'.
2033 See \`config.log' for more details." >&5
2034 echo "$as_me: error: cannot run C compiled programs.
2035 If you meant to cross compile, use \`--host'.
2036 See \`config.log' for more details." >&2;}
2037 { (exit 1); exit 1; }; }; }
2041 echo "$as_me:$LINENO: result: yes" >&5
2042 echo "${ECHO_T}yes" >&6
2044 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2045 ac_clean_files=$ac_clean_files_save
2046 # Check the compiler produces executables we can run. If not, either
2047 # the compiler is broken, or we cross compile.
2048 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2049 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2050 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2051 echo "${ECHO_T}$cross_compiling" >&6
2053 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2054 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2056 (eval $ac_link) 2>&5
2058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059 (exit $ac_status); }; then
2060 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2061 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2062 # work properly (i.e., refer to `conftest.exe'), while it won't with
2064 for ac_file in conftest.exe conftest conftest.*; do
2065 test -f "$ac_file" || continue
2067 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2068 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2075 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2076 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2077 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2078 See \`config.log' for more details." >&5
2079 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2080 See \`config.log' for more details." >&2;}
2081 { (exit 1); exit 1; }; }; }
2084 rm -f conftest$ac_cv_exeext
2085 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2086 echo "${ECHO_T}$ac_cv_exeext" >&6
2088 rm -f conftest.$ac_ext
2089 EXEEXT=$ac_cv_exeext
2091 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2092 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2093 if test "${ac_cv_objext+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2096 cat >conftest.$ac_ext <<_ACEOF
2099 cat confdefs.h >>conftest.$ac_ext
2100 cat >>conftest.$ac_ext <<_ACEOF
2101 /* end confdefs.h. */
2111 rm -f conftest.o conftest.obj
2112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2113 (eval $ac_compile) 2>&5
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); }; then
2117 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2119 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2120 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2125 echo "$as_me: failed program was:" >&5
2126 sed 's/^/| /' conftest.$ac_ext >&5
2128 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2129 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2130 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2131 See \`config.log' for more details." >&5
2132 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2133 See \`config.log' for more details." >&2;}
2134 { (exit 1); exit 1; }; }; }
2137 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2139 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2140 echo "${ECHO_T}$ac_cv_objext" >&6
2141 OBJEXT=$ac_cv_objext
2143 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2144 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2145 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
2148 cat >conftest.$ac_ext <<_ACEOF
2151 cat confdefs.h >>conftest.$ac_ext
2152 cat >>conftest.$ac_ext <<_ACEOF
2153 /* end confdefs.h. */
2166 rm -f conftest.$ac_objext
2167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2168 (eval $ac_compile) 2>conftest.er1
2170 grep -v '^ *+' conftest.er1 >conftest.err
2172 cat conftest.err >&5
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); } &&
2175 { ac_try='test -z "$ac_c_werror_flag"
2176 || test ! -s conftest.err'
2177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); }; } &&
2182 { ac_try='test -s conftest.$ac_objext'
2183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); }; }; then
2190 echo "$as_me: failed program was:" >&5
2191 sed 's/^/| /' conftest.$ac_ext >&5
2195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2196 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2199 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2200 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2201 GCC=`test $ac_compiler_gnu = yes && echo yes`
2202 ac_test_CFLAGS=${CFLAGS+set}
2203 ac_save_CFLAGS=$CFLAGS
2205 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2206 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2207 if test "${ac_cv_prog_cc_g+set}" = set; then
2208 echo $ECHO_N "(cached) $ECHO_C" >&6
2210 cat >conftest.$ac_ext <<_ACEOF
2213 cat confdefs.h >>conftest.$ac_ext
2214 cat >>conftest.$ac_ext <<_ACEOF
2215 /* end confdefs.h. */
2225 rm -f conftest.$ac_objext
2226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2227 (eval $ac_compile) 2>conftest.er1
2229 grep -v '^ *+' conftest.er1 >conftest.err
2231 cat conftest.err >&5
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); } &&
2234 { ac_try='test -z "$ac_c_werror_flag"
2235 || test ! -s conftest.err'
2236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); }; } &&
2241 { ac_try='test -s conftest.$ac_objext'
2242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }; }; then
2249 echo "$as_me: failed program was:" >&5
2250 sed 's/^/| /' conftest.$ac_ext >&5
2254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2256 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2257 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2258 if test "$ac_test_CFLAGS" = set; then
2259 CFLAGS=$ac_save_CFLAGS
2260 elif test $ac_cv_prog_cc_g = yes; then
2261 if test "$GCC" = yes; then
2267 if test "$GCC" = yes; then
2273 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2274 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2275 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2276 echo $ECHO_N "(cached) $ECHO_C" >&6
2278 ac_cv_prog_cc_stdc=no
2280 cat >conftest.$ac_ext <<_ACEOF
2283 cat confdefs.h >>conftest.$ac_ext
2284 cat >>conftest.$ac_ext <<_ACEOF
2285 /* end confdefs.h. */
2288 #include <sys/types.h>
2289 #include <sys/stat.h>
2290 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2291 struct buf { int x; };
2292 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2293 static char *e (p, i)
2299 static char *f (char * (*g) (char **, int), char **p, ...)
2304 s = g (p, va_arg (v,int));
2309 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2310 function prototypes and stuff, but not '\xHH' hex character constants.
2311 These don't provoke an error unfortunately, instead are silently treated
2312 as 'x'. The following induces an error, until -std1 is added to get
2313 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2314 array size at least. It's necessary to write '\x00'==0 to get something
2315 that's true only with -std1. */
2316 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2318 int test (int i, double x);
2319 struct s1 {int (*f) (int a);};
2320 struct s2 {int (*f) (double a);};
2321 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2327 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2332 # Don't try gcc -ansi; that turns off useful extensions and
2333 # breaks some systems' header files.
2334 # AIX -qlanglvl=ansi
2335 # Ultrix and OSF/1 -std1
2336 # HP-UX 10.20 and later -Ae
2337 # HP-UX older versions -Aa -D_HPUX_SOURCE
2338 # SVR4 -Xc -D__EXTENSIONS__
2339 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2341 CC="$ac_save_CC $ac_arg"
2342 rm -f conftest.$ac_objext
2343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2344 (eval $ac_compile) 2>conftest.er1
2346 grep -v '^ *+' conftest.er1 >conftest.err
2348 cat conftest.err >&5
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); } &&
2351 { ac_try='test -z "$ac_c_werror_flag"
2352 || test ! -s conftest.err'
2353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }; } &&
2358 { ac_try='test -s conftest.$ac_objext'
2359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; }; then
2364 ac_cv_prog_cc_stdc=$ac_arg
2367 echo "$as_me: failed program was:" >&5
2368 sed 's/^/| /' conftest.$ac_ext >&5
2371 rm -f conftest.err conftest.$ac_objext
2373 rm -f conftest.$ac_ext conftest.$ac_objext
2378 case "x$ac_cv_prog_cc_stdc" in
2380 echo "$as_me:$LINENO: result: none needed" >&5
2381 echo "${ECHO_T}none needed" >&6 ;;
2383 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2384 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2385 CC="$CC $ac_cv_prog_cc_stdc" ;;
2388 # Some people use a C++ compiler to compile C. Since we use `exit',
2389 # in C++ we need to declare it. In case someone uses the same compiler
2390 # for both compiling C and C++ we need to have the C++ compiler decide
2391 # the declaration of exit, since it's the most demanding environment.
2392 cat >conftest.$ac_ext <<_ACEOF
2397 rm -f conftest.$ac_objext
2398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399 (eval $ac_compile) 2>conftest.er1
2401 grep -v '^ *+' conftest.er1 >conftest.err
2403 cat conftest.err >&5
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); } &&
2406 { ac_try='test -z "$ac_c_werror_flag"
2407 || test ! -s conftest.err'
2408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; } &&
2413 { ac_try='test -s conftest.$ac_objext'
2414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); }; }; then
2419 for ac_declaration in \
2421 'extern "C" void std::exit (int) throw (); using std::exit;' \
2422 'extern "C" void std::exit (int); using std::exit;' \
2423 'extern "C" void exit (int) throw ();' \
2424 'extern "C" void exit (int);' \
2427 cat >conftest.$ac_ext <<_ACEOF
2430 cat confdefs.h >>conftest.$ac_ext
2431 cat >>conftest.$ac_ext <<_ACEOF
2432 /* end confdefs.h. */
2443 rm -f conftest.$ac_objext
2444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2445 (eval $ac_compile) 2>conftest.er1
2447 grep -v '^ *+' conftest.er1 >conftest.err
2449 cat conftest.err >&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); } &&
2452 { ac_try='test -z "$ac_c_werror_flag"
2453 || test ! -s conftest.err'
2454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; } &&
2459 { ac_try='test -s conftest.$ac_objext'
2460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; }; then
2467 echo "$as_me: failed program was:" >&5
2468 sed 's/^/| /' conftest.$ac_ext >&5
2472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2473 cat >conftest.$ac_ext <<_ACEOF
2476 cat confdefs.h >>conftest.$ac_ext
2477 cat >>conftest.$ac_ext <<_ACEOF
2478 /* end confdefs.h. */
2488 rm -f conftest.$ac_objext
2489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2490 (eval $ac_compile) 2>conftest.er1
2492 grep -v '^ *+' conftest.er1 >conftest.err
2494 cat conftest.err >&5
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); } &&
2497 { ac_try='test -z "$ac_c_werror_flag"
2498 || test ! -s conftest.err'
2499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); }; } &&
2504 { ac_try='test -s conftest.$ac_objext'
2505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }; }; then
2512 echo "$as_me: failed program was:" >&5
2513 sed 's/^/| /' conftest.$ac_ext >&5
2516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2519 if test -n "$ac_declaration"; then
2520 echo '#ifdef __cplusplus' >>confdefs.h
2521 echo $ac_declaration >>confdefs.h
2522 echo '#endif' >>confdefs.h
2526 echo "$as_me: failed program was:" >&5
2527 sed 's/^/| /' conftest.$ac_ext >&5
2530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2532 ac_cpp='$CPP $CPPFLAGS'
2533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2538 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2539 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2540 if test "${ac_cv_search_strerror+set}" = set; then
2541 echo $ECHO_N "(cached) $ECHO_C" >&6
2543 ac_func_search_save_LIBS=$LIBS
2544 ac_cv_search_strerror=no
2545 cat >conftest.$ac_ext <<_ACEOF
2548 cat confdefs.h >>conftest.$ac_ext
2549 cat >>conftest.$ac_ext <<_ACEOF
2550 /* end confdefs.h. */
2552 /* Override any gcc2 internal prototype to avoid an error. */
2556 /* We use char because int might match the return type of a gcc2
2557 builtin and then its argument prototype would still apply. */
2567 rm -f conftest.$ac_objext conftest$ac_exeext
2568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2569 (eval $ac_link) 2>conftest.er1
2571 grep -v '^ *+' conftest.er1 >conftest.err
2573 cat conftest.err >&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); } &&
2576 { ac_try='test -z "$ac_c_werror_flag"
2577 || test ! -s conftest.err'
2578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; } &&
2583 { ac_try='test -s conftest$ac_exeext'
2584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }; }; then
2589 ac_cv_search_strerror="none required"
2591 echo "$as_me: failed program was:" >&5
2592 sed 's/^/| /' conftest.$ac_ext >&5
2595 rm -f conftest.err conftest.$ac_objext \
2596 conftest$ac_exeext conftest.$ac_ext
2597 if test "$ac_cv_search_strerror" = no; then
2598 for ac_lib in cposix; do
2599 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2600 cat >conftest.$ac_ext <<_ACEOF
2603 cat confdefs.h >>conftest.$ac_ext
2604 cat >>conftest.$ac_ext <<_ACEOF
2605 /* end confdefs.h. */
2607 /* Override any gcc2 internal prototype to avoid an error. */
2611 /* We use char because int might match the return type of a gcc2
2612 builtin and then its argument prototype would still apply. */
2622 rm -f conftest.$ac_objext conftest$ac_exeext
2623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2624 (eval $ac_link) 2>conftest.er1
2626 grep -v '^ *+' conftest.er1 >conftest.err
2628 cat conftest.err >&5
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); } &&
2631 { ac_try='test -z "$ac_c_werror_flag"
2632 || test ! -s conftest.err'
2633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); }; } &&
2638 { ac_try='test -s conftest$ac_exeext'
2639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); }; }; then
2644 ac_cv_search_strerror="-l$ac_lib"
2647 echo "$as_me: failed program was:" >&5
2648 sed 's/^/| /' conftest.$ac_ext >&5
2651 rm -f conftest.err conftest.$ac_objext \
2652 conftest$ac_exeext conftest.$ac_ext
2655 LIBS=$ac_func_search_save_LIBS
2657 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2658 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2659 if test "$ac_cv_search_strerror" != no; then
2660 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2665 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2666 am__api_version="1.9"
2667 # Find a good install program. We prefer a C program (faster),
2668 # so one script is as good as another. But avoid the broken or
2669 # incompatible versions:
2670 # SysV /etc/install, /usr/sbin/install
2671 # SunOS /usr/etc/install
2672 # IRIX /sbin/install
2674 # AmigaOS /C/install, which installs bootblocks on floppy discs
2675 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2676 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2677 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2678 # OS/2's system install, which has a completely different semantic
2679 # ./install, which can be erroneously created by make from ./install.sh.
2680 # Reject install programs that cannot install multiple files.
2681 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2682 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2683 if test -z "$INSTALL"; then
2684 if test "${ac_cv_path_install+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 test -z "$as_dir" && as_dir=.
2692 # Account for people who put trailing slashes in PATH elements.
2694 ./ | .// | /cC/* | \
2695 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2696 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2699 # OSF1 and SCO ODT 3.0 have their own names for install.
2700 # Don't use installbsd from OSF since it installs stuff as root
2702 for ac_prog in ginstall scoinst install; do
2703 for ac_exec_ext in '' $ac_executable_extensions; do
2704 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2705 if test $ac_prog = install &&
2706 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2707 # AIX install. It has an incompatible calling convention.
2709 elif test $ac_prog = install &&
2710 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2711 # program-specific install script used by HP pwplus--don't use.
2714 rm -rf conftest.one conftest.two conftest.dir
2715 echo one > conftest.one
2716 echo two > conftest.two
2718 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2719 test -s conftest.one && test -s conftest.two &&
2720 test -s conftest.dir/conftest.one &&
2721 test -s conftest.dir/conftest.two
2723 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2734 rm -rf conftest.one conftest.two conftest.dir
2737 if test "${ac_cv_path_install+set}" = set; then
2738 INSTALL=$ac_cv_path_install
2740 # As a last resort, use the slow shell script. Don't cache a
2741 # value for INSTALL within a source directory, because that will
2742 # break other packages using the cache if that directory is
2743 # removed, or if the value is a relative name.
2744 INSTALL=$ac_install_sh
2747 echo "$as_me:$LINENO: result: $INSTALL" >&5
2748 echo "${ECHO_T}$INSTALL" >&6
2750 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2751 # It thinks the first close brace ends the variable substitution.
2752 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2754 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2756 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2758 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2759 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2762 echo timestamp > conftest.file
2763 # Do `set' in a subshell so we don't clobber the current shell's
2764 # arguments. Must try -L first in case configure is actually a
2765 # symlink; some systems play weird games with the mod time of symlinks
2766 # (eg FreeBSD returns the mod time of the symlink's containing
2769 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2770 if test "$*" = "X"; then
2772 set X `ls -t $srcdir/configure conftest.file`
2775 if test "$*" != "X $srcdir/configure conftest.file" \
2776 && test "$*" != "X conftest.file $srcdir/configure"; then
2778 # If neither matched, then we have a broken ls. This can happen
2779 # if, for instance, CONFIG_SHELL is bash and it inherits a
2780 # broken ls alias from the environment. This has actually
2781 # happened. Such a system could not be considered "sane".
2782 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2783 alias in your environment" >&5
2784 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2785 alias in your environment" >&2;}
2786 { (exit 1); exit 1; }; }
2789 test "$2" = conftest.file
2795 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2796 Check your system clock" >&5
2797 echo "$as_me: error: newly created file is older than distributed files!
2798 Check your system clock" >&2;}
2799 { (exit 1); exit 1; }; }
2801 echo "$as_me:$LINENO: result: yes" >&5
2802 echo "${ECHO_T}yes" >&6
2803 test "$program_prefix" != NONE &&
2804 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2805 # Use a double $ so make ignores it.
2806 test "$program_suffix" != NONE &&
2807 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2808 # Double any \ or $. echo might interpret backslashes.
2809 # By default was `s,x,x', remove it if useless.
2810 cat <<\_ACEOF >conftest.sed
2811 s/[\\$]/&&/g;s/;s,x,x,$//
2813 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2816 # expand $ac_aux_dir to an absolute path
2817 am_aux_dir=`cd $ac_aux_dir && pwd`
2819 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2820 # Use eval to expand $SHELL
2821 if eval "$MISSING --run true"; then
2822 am_missing_run="$MISSING --run "
2825 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2826 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2829 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2830 # We used to keeping the `.' as first argument, in order to
2831 # allow $(mkdir_p) to be used without argument. As in
2832 # $(mkdir_p) $(somedir)
2833 # where $(somedir) is conditionally defined. However this is wrong
2835 # 1. if the package is installed by a user who cannot write `.'
2836 # make install will fail,
2837 # 2. the above comment should most certainly read
2838 # $(mkdir_p) $(DESTDIR)$(somedir)
2839 # so it does not work when $(somedir) is undefined and
2840 # $(DESTDIR) is not.
2841 # To support the latter case, we have to write
2842 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2843 # so the `.' trick is pointless.
2844 mkdir_p='mkdir -p --'
2846 # On NextStep and OpenStep, the `mkdir' command does not
2847 # recognize any option. It will interpret all options as
2848 # directories to create, and then abort because `.' already
2850 for d in ./-p ./--version;
2852 test -d $d && rmdir $d
2854 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2855 if test -f "$ac_aux_dir/mkinstalldirs"; then
2856 mkdir_p='$(mkinstalldirs)'
2858 mkdir_p='$(install_sh) -d'
2862 for ac_prog in gawk mawk nawk awk
2864 # Extract the first word of "$ac_prog", so it can be a program name with args.
2865 set dummy $ac_prog; ac_word=$2
2866 echo "$as_me:$LINENO: checking for $ac_word" >&5
2867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2868 if test "${ac_cv_prog_AWK+set}" = set; then
2869 echo $ECHO_N "(cached) $ECHO_C" >&6
2871 if test -n "$AWK"; then
2872 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878 test -z "$as_dir" && as_dir=.
2879 for ac_exec_ext in '' $ac_executable_extensions; do
2880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2881 ac_cv_prog_AWK="$ac_prog"
2882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2891 if test -n "$AWK"; then
2892 echo "$as_me:$LINENO: result: $AWK" >&5
2893 echo "${ECHO_T}$AWK" >&6
2895 echo "$as_me:$LINENO: result: no" >&5
2896 echo "${ECHO_T}no" >&6
2899 test -n "$AWK" && break
2902 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2903 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2904 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2905 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
2908 cat >conftest.make <<\_ACEOF
2910 @echo 'ac_maketemp="$(MAKE)"'
2912 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2913 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2914 if test -n "$ac_maketemp"; then
2915 eval ac_cv_prog_make_${ac_make}_set=yes
2917 eval ac_cv_prog_make_${ac_make}_set=no
2921 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2922 echo "$as_me:$LINENO: result: yes" >&5
2923 echo "${ECHO_T}yes" >&6
2926 echo "$as_me:$LINENO: result: no" >&5
2927 echo "${ECHO_T}no" >&6
2928 SET_MAKE="MAKE=${MAKE-make}"
2931 rm -rf .tst 2>/dev/null
2932 mkdir .tst 2>/dev/null
2933 if test -d .tst; then
2938 rmdir .tst 2>/dev/null
2940 DEPDIR="${am__leading_dot}deps"
2942 ac_config_commands="$ac_config_commands depfiles"
2945 am_make=${MAKE-make}
2946 cat > confinc << 'END'
2951 # If we don't find an include directive, just comment out the code.
2952 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2953 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2957 # First try GNU make style include.
2958 echo "include confinc" > confmf
2959 # We grep out `Entering directory' and `Leaving directory'
2960 # messages which can occur if `w' ends up in MAKEFLAGS.
2961 # In particular we don't look at `^make:' because GNU make might
2962 # be invoked under some other name (usually "gmake"), in which
2963 # case it prints its new name instead of `make'.
2964 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2969 # Now try BSD make style include.
2970 if test "$am__include" = "#"; then
2971 echo '.include "confinc"' > confmf
2972 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2973 am__include=.include
2980 echo "$as_me:$LINENO: result: $_am_result" >&5
2981 echo "${ECHO_T}$_am_result" >&6
2982 rm -f confinc confmf
2984 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2985 if test "${enable_dependency_tracking+set}" = set; then
2986 enableval="$enable_dependency_tracking"
2989 if test "x$enable_dependency_tracking" != xno; then
2990 am_depcomp="$ac_aux_dir/depcomp"
2995 if test "x$enable_dependency_tracking" != xno; then
3005 # test to see if srcdir already configured
3006 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3007 test -f $srcdir/config.status; then
3008 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3009 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3010 { (exit 1); exit 1; }; }
3013 # test whether we have cygpath
3014 if test -z "$CYGPATH_W"; then
3015 if (cygpath --version) >/dev/null 2>/dev/null; then
3016 CYGPATH_W='cygpath -w'
3023 # Define the identity of the package.
3025 VERSION=${BFD_VERSION}
3028 cat >>confdefs.h <<_ACEOF
3029 #define PACKAGE "$PACKAGE"
3033 cat >>confdefs.h <<_ACEOF
3034 #define VERSION "$VERSION"
3037 # Some tools Automake needs.
3039 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3042 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3045 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3048 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3051 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3053 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3055 # Installed binaries are usually stripped using `strip' when the user
3056 # run `make install-strip'. However `strip' might not be the right
3057 # tool to use in cross-compilation environments, therefore Automake
3058 # will honor the `STRIP' environment variable to overrule this program.
3059 if test "$cross_compiling" != no; then
3060 if test -n "$ac_tool_prefix"; then
3061 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3062 set dummy ${ac_tool_prefix}strip; ac_word=$2
3063 echo "$as_me:$LINENO: checking for $ac_word" >&5
3064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3065 if test "${ac_cv_prog_STRIP+set}" = set; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
3068 if test -n "$STRIP"; then
3069 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 test -z "$as_dir" && as_dir=.
3076 for ac_exec_ext in '' $ac_executable_extensions; do
3077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3087 STRIP=$ac_cv_prog_STRIP
3088 if test -n "$STRIP"; then
3089 echo "$as_me:$LINENO: result: $STRIP" >&5
3090 echo "${ECHO_T}$STRIP" >&6
3092 echo "$as_me:$LINENO: result: no" >&5
3093 echo "${ECHO_T}no" >&6
3097 if test -z "$ac_cv_prog_STRIP"; then
3099 # Extract the first word of "strip", so it can be a program name with args.
3100 set dummy strip; ac_word=$2
3101 echo "$as_me:$LINENO: checking for $ac_word" >&5
3102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3103 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3104 echo $ECHO_N "(cached) $ECHO_C" >&6
3106 if test -n "$ac_ct_STRIP"; then
3107 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113 test -z "$as_dir" && as_dir=.
3114 for ac_exec_ext in '' $ac_executable_extensions; do
3115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3116 ac_cv_prog_ac_ct_STRIP="strip"
3117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3123 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3126 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3127 if test -n "$ac_ct_STRIP"; then
3128 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3129 echo "${ECHO_T}$ac_ct_STRIP" >&6
3131 echo "$as_me:$LINENO: result: no" >&5
3132 echo "${ECHO_T}no" >&6
3137 STRIP="$ac_cv_prog_STRIP"
3141 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3143 # We need awk for the "check" target. The system "awk" is bad on
3145 # Always define AMTAR for backward compatibility.
3147 AMTAR=${AMTAR-"${am_missing_run}tar"}
3149 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3154 depcc="$CC" am_compiler_list=
3156 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3157 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3158 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3159 echo $ECHO_N "(cached) $ECHO_C" >&6
3161 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3162 # We make a subdir and do the tests there. Otherwise we can end up
3163 # making bogus files that we don't know about and never remove. For
3164 # instance it was reported that on HP-UX the gcc test will end up
3165 # making a dummy file named `D' -- because `-MD' means `put the output
3168 # Copy depcomp to subdir because otherwise we won't find it if we're
3169 # using a relative directory.
3170 cp "$am_depcomp" conftest.dir
3172 # We will build objects and dependencies in a subdirectory because
3173 # it helps to detect inapplicable dependency modes. For instance
3174 # both Tru64's cc and ICC support -MD to output dependencies as a
3175 # side effect of compilation, but ICC will put the dependencies in
3176 # the current directory while Tru64 will put them in the object
3180 am_cv_CC_dependencies_compiler_type=none
3181 if test "$am_compiler_list" = ""; then
3182 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3184 for depmode in $am_compiler_list; do
3185 # Setup a source with many dependencies, because some compilers
3186 # like to wrap large dependency lists on column 80 (with \), and
3187 # we should not choose a depcomp mode which is confused by this.
3189 # We need to recreate these files for each test, as the compiler may
3190 # overwrite some of them when testing with obscure command lines.
3191 # This happens at least with the AIX C compiler.
3193 for i in 1 2 3 4 5 6; do
3194 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3195 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3196 # Solaris 8's {/usr,}/bin/sh.
3197 touch sub/conftst$i.h
3199 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3203 # after this tag, mechanisms are not by side-effect, so they'll
3204 # only be used when explicitly requested
3205 if test "x$enable_dependency_tracking" = xyes; then
3213 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3214 # mode. It turns out that the SunPro C++ compiler does not properly
3215 # handle `-M -o', and we need to detect this.
3216 if depmode=$depmode \
3217 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3218 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3219 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3220 >/dev/null 2>conftest.err &&
3221 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3222 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3223 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3224 # icc doesn't choke on unknown options, it will just issue warnings
3225 # or remarks (even with -Werror). So we grep stderr for any message
3226 # that says an option was ignored or not supported.
3227 # When given -MP, icc 7.0 and 7.1 complain thusly:
3228 # icc: Command line warning: ignoring option '-M'; no argument required
3229 # The diagnosis changed in icc 8.0:
3230 # icc: Command line remark: option '-MP' not supported
3231 if (grep 'ignoring option' conftest.err ||
3232 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3233 am_cv_CC_dependencies_compiler_type=$depmode
3242 am_cv_CC_dependencies_compiler_type=none
3246 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3247 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3248 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3253 test "x$enable_dependency_tracking" != xno \
3254 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3256 am__fastdepCC_FALSE='#'
3258 am__fastdepCC_TRUE='#'
3259 am__fastdepCC_FALSE=
3266 ac_cpp='$CPP $CPPFLAGS'
3267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3270 if test -n "$ac_tool_prefix"; then
3271 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3272 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3273 echo "$as_me:$LINENO: checking for $ac_word" >&5
3274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3275 if test "${ac_cv_prog_CC+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3278 if test -n "$CC"; then
3279 ac_cv_prog_CC="$CC" # Let the user override the test.
3281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 test -z "$as_dir" && as_dir=.
3286 for ac_exec_ext in '' $ac_executable_extensions; do
3287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3288 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3298 if test -n "$CC"; then
3299 echo "$as_me:$LINENO: result: $CC" >&5
3300 echo "${ECHO_T}$CC" >&6
3302 echo "$as_me:$LINENO: result: no" >&5
3303 echo "${ECHO_T}no" >&6
3307 if test -z "$ac_cv_prog_CC"; then
3309 # Extract the first word of "gcc", so it can be a program name with args.
3310 set dummy gcc; ac_word=$2
3311 echo "$as_me:$LINENO: checking for $ac_word" >&5
3312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3313 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3314 echo $ECHO_N "(cached) $ECHO_C" >&6
3316 if test -n "$ac_ct_CC"; then
3317 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323 test -z "$as_dir" && as_dir=.
3324 for ac_exec_ext in '' $ac_executable_extensions; do
3325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3326 ac_cv_prog_ac_ct_CC="gcc"
3327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3335 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3336 if test -n "$ac_ct_CC"; then
3337 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3338 echo "${ECHO_T}$ac_ct_CC" >&6
3340 echo "$as_me:$LINENO: result: no" >&5
3341 echo "${ECHO_T}no" >&6
3349 if test -z "$CC"; then
3350 if test -n "$ac_tool_prefix"; then
3351 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3352 set dummy ${ac_tool_prefix}cc; ac_word=$2
3353 echo "$as_me:$LINENO: checking for $ac_word" >&5
3354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3355 if test "${ac_cv_prog_CC+set}" = set; then
3356 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 if test -n "$CC"; then
3359 ac_cv_prog_CC="$CC" # Let the user override the test.
3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365 test -z "$as_dir" && as_dir=.
3366 for ac_exec_ext in '' $ac_executable_extensions; do
3367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3368 ac_cv_prog_CC="${ac_tool_prefix}cc"
3369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3378 if test -n "$CC"; then
3379 echo "$as_me:$LINENO: result: $CC" >&5
3380 echo "${ECHO_T}$CC" >&6
3382 echo "$as_me:$LINENO: result: no" >&5
3383 echo "${ECHO_T}no" >&6
3387 if test -z "$ac_cv_prog_CC"; then
3389 # Extract the first word of "cc", so it can be a program name with args.
3390 set dummy cc; ac_word=$2
3391 echo "$as_me:$LINENO: checking for $ac_word" >&5
3392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3393 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3394 echo $ECHO_N "(cached) $ECHO_C" >&6
3396 if test -n "$ac_ct_CC"; then
3397 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403 test -z "$as_dir" && as_dir=.
3404 for ac_exec_ext in '' $ac_executable_extensions; do
3405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3406 ac_cv_prog_ac_ct_CC="cc"
3407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3415 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3416 if test -n "$ac_ct_CC"; then
3417 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3418 echo "${ECHO_T}$ac_ct_CC" >&6
3420 echo "$as_me:$LINENO: result: no" >&5
3421 echo "${ECHO_T}no" >&6
3430 if test -z "$CC"; then
3431 # Extract the first word of "cc", so it can be a program name with args.
3432 set dummy cc; ac_word=$2
3433 echo "$as_me:$LINENO: checking for $ac_word" >&5
3434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3435 if test "${ac_cv_prog_CC+set}" = set; then
3436 echo $ECHO_N "(cached) $ECHO_C" >&6
3438 if test -n "$CC"; then
3439 ac_cv_prog_CC="$CC" # Let the user override the test.
3442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446 test -z "$as_dir" && as_dir=.
3447 for ac_exec_ext in '' $ac_executable_extensions; do
3448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3449 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3450 ac_prog_rejected=yes
3454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3460 if test $ac_prog_rejected = yes; then
3461 # We found a bogon in the path, so make sure we never use it.
3462 set dummy $ac_cv_prog_CC
3464 if test $# != 0; then
3465 # We chose a different compiler from the bogus one.
3466 # However, it has the same basename, so the bogon will be chosen
3467 # first if we set CC to just the basename; use the full file name.
3469 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3475 if test -n "$CC"; then
3476 echo "$as_me:$LINENO: result: $CC" >&5
3477 echo "${ECHO_T}$CC" >&6
3479 echo "$as_me:$LINENO: result: no" >&5
3480 echo "${ECHO_T}no" >&6
3484 if test -z "$CC"; then
3485 if test -n "$ac_tool_prefix"; then
3488 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3489 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3490 echo "$as_me:$LINENO: checking for $ac_word" >&5
3491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3492 if test "${ac_cv_prog_CC+set}" = set; then
3493 echo $ECHO_N "(cached) $ECHO_C" >&6
3495 if test -n "$CC"; then
3496 ac_cv_prog_CC="$CC" # Let the user override the test.
3498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502 test -z "$as_dir" && as_dir=.
3503 for ac_exec_ext in '' $ac_executable_extensions; do
3504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3505 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3515 if test -n "$CC"; then
3516 echo "$as_me:$LINENO: result: $CC" >&5
3517 echo "${ECHO_T}$CC" >&6
3519 echo "$as_me:$LINENO: result: no" >&5
3520 echo "${ECHO_T}no" >&6
3523 test -n "$CC" && break
3526 if test -z "$CC"; then
3530 # Extract the first word of "$ac_prog", so it can be a program name with args.
3531 set dummy $ac_prog; ac_word=$2
3532 echo "$as_me:$LINENO: checking for $ac_word" >&5
3533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3534 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3535 echo $ECHO_N "(cached) $ECHO_C" >&6
3537 if test -n "$ac_ct_CC"; then
3538 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544 test -z "$as_dir" && as_dir=.
3545 for ac_exec_ext in '' $ac_executable_extensions; do
3546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3547 ac_cv_prog_ac_ct_CC="$ac_prog"
3548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3556 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3557 if test -n "$ac_ct_CC"; then
3558 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3559 echo "${ECHO_T}$ac_ct_CC" >&6
3561 echo "$as_me:$LINENO: result: no" >&5
3562 echo "${ECHO_T}no" >&6
3565 test -n "$ac_ct_CC" && break
3574 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3575 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3576 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3577 See \`config.log' for more details." >&5
3578 echo "$as_me: error: no acceptable C compiler found in \$PATH
3579 See \`config.log' for more details." >&2;}
3580 { (exit 1); exit 1; }; }; }
3582 # Provide some information about the compiler.
3583 echo "$as_me:$LINENO:" \
3584 "checking for C compiler version" >&5
3585 ac_compiler=`set X $ac_compile; echo $2`
3586 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3587 (eval $ac_compiler --version </dev/null >&5) 2>&5
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }
3591 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3592 (eval $ac_compiler -v </dev/null >&5) 2>&5
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); }
3596 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3597 (eval $ac_compiler -V </dev/null >&5) 2>&5
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); }
3602 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3603 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3604 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3605 echo $ECHO_N "(cached) $ECHO_C" >&6
3607 cat >conftest.$ac_ext <<_ACEOF
3610 cat confdefs.h >>conftest.$ac_ext
3611 cat >>conftest.$ac_ext <<_ACEOF
3612 /* end confdefs.h. */
3625 rm -f conftest.$ac_objext
3626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3627 (eval $ac_compile) 2>conftest.er1
3629 grep -v '^ *+' conftest.er1 >conftest.err
3631 cat conftest.err >&5
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); } &&
3634 { ac_try='test -z "$ac_c_werror_flag"
3635 || test ! -s conftest.err'
3636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); }; } &&
3641 { ac_try='test -s conftest.$ac_objext'
3642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); }; }; then
3649 echo "$as_me: failed program was:" >&5
3650 sed 's/^/| /' conftest.$ac_ext >&5
3654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3655 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3658 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3659 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3660 GCC=`test $ac_compiler_gnu = yes && echo yes`
3661 ac_test_CFLAGS=${CFLAGS+set}
3662 ac_save_CFLAGS=$CFLAGS
3664 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3665 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3666 if test "${ac_cv_prog_cc_g+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3669 cat >conftest.$ac_ext <<_ACEOF
3672 cat confdefs.h >>conftest.$ac_ext
3673 cat >>conftest.$ac_ext <<_ACEOF
3674 /* end confdefs.h. */
3684 rm -f conftest.$ac_objext
3685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3686 (eval $ac_compile) 2>conftest.er1
3688 grep -v '^ *+' conftest.er1 >conftest.err
3690 cat conftest.err >&5
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); } &&
3693 { ac_try='test -z "$ac_c_werror_flag"
3694 || test ! -s conftest.err'
3695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); }; } &&
3700 { ac_try='test -s conftest.$ac_objext'
3701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); }; }; then
3708 echo "$as_me: failed program was:" >&5
3709 sed 's/^/| /' conftest.$ac_ext >&5
3713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3715 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3716 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3717 if test "$ac_test_CFLAGS" = set; then
3718 CFLAGS=$ac_save_CFLAGS
3719 elif test $ac_cv_prog_cc_g = yes; then
3720 if test "$GCC" = yes; then
3726 if test "$GCC" = yes; then
3732 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3733 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3734 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3735 echo $ECHO_N "(cached) $ECHO_C" >&6
3737 ac_cv_prog_cc_stdc=no
3739 cat >conftest.$ac_ext <<_ACEOF
3742 cat confdefs.h >>conftest.$ac_ext
3743 cat >>conftest.$ac_ext <<_ACEOF
3744 /* end confdefs.h. */
3747 #include <sys/types.h>
3748 #include <sys/stat.h>
3749 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3750 struct buf { int x; };
3751 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3752 static char *e (p, i)
3758 static char *f (char * (*g) (char **, int), char **p, ...)
3763 s = g (p, va_arg (v,int));
3768 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3769 function prototypes and stuff, but not '\xHH' hex character constants.
3770 These don't provoke an error unfortunately, instead are silently treated
3771 as 'x'. The following induces an error, until -std1 is added to get
3772 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3773 array size at least. It's necessary to write '\x00'==0 to get something
3774 that's true only with -std1. */
3775 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3777 int test (int i, double x);
3778 struct s1 {int (*f) (int a);};
3779 struct s2 {int (*f) (double a);};
3780 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3786 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3791 # Don't try gcc -ansi; that turns off useful extensions and
3792 # breaks some systems' header files.
3793 # AIX -qlanglvl=ansi
3794 # Ultrix and OSF/1 -std1
3795 # HP-UX 10.20 and later -Ae
3796 # HP-UX older versions -Aa -D_HPUX_SOURCE
3797 # SVR4 -Xc -D__EXTENSIONS__
3798 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3800 CC="$ac_save_CC $ac_arg"
3801 rm -f conftest.$ac_objext
3802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3803 (eval $ac_compile) 2>conftest.er1
3805 grep -v '^ *+' conftest.er1 >conftest.err
3807 cat conftest.err >&5
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); } &&
3810 { ac_try='test -z "$ac_c_werror_flag"
3811 || test ! -s conftest.err'
3812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); }; } &&
3817 { ac_try='test -s conftest.$ac_objext'
3818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); }; }; then
3823 ac_cv_prog_cc_stdc=$ac_arg
3826 echo "$as_me: failed program was:" >&5
3827 sed 's/^/| /' conftest.$ac_ext >&5
3830 rm -f conftest.err conftest.$ac_objext
3832 rm -f conftest.$ac_ext conftest.$ac_objext
3837 case "x$ac_cv_prog_cc_stdc" in
3839 echo "$as_me:$LINENO: result: none needed" >&5
3840 echo "${ECHO_T}none needed" >&6 ;;
3842 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3843 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3844 CC="$CC $ac_cv_prog_cc_stdc" ;;
3847 # Some people use a C++ compiler to compile C. Since we use `exit',
3848 # in C++ we need to declare it. In case someone uses the same compiler
3849 # for both compiling C and C++ we need to have the C++ compiler decide
3850 # the declaration of exit, since it's the most demanding environment.
3851 cat >conftest.$ac_ext <<_ACEOF
3856 rm -f conftest.$ac_objext
3857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3858 (eval $ac_compile) 2>conftest.er1
3860 grep -v '^ *+' conftest.er1 >conftest.err
3862 cat conftest.err >&5
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); } &&
3865 { ac_try='test -z "$ac_c_werror_flag"
3866 || test ! -s conftest.err'
3867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); }; } &&
3872 { ac_try='test -s conftest.$ac_objext'
3873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); }; }; then
3878 for ac_declaration in \
3880 'extern "C" void std::exit (int) throw (); using std::exit;' \
3881 'extern "C" void std::exit (int); using std::exit;' \
3882 'extern "C" void exit (int) throw ();' \
3883 'extern "C" void exit (int);' \
3886 cat >conftest.$ac_ext <<_ACEOF
3889 cat confdefs.h >>conftest.$ac_ext
3890 cat >>conftest.$ac_ext <<_ACEOF
3891 /* end confdefs.h. */
3902 rm -f conftest.$ac_objext
3903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3904 (eval $ac_compile) 2>conftest.er1
3906 grep -v '^ *+' conftest.er1 >conftest.err
3908 cat conftest.err >&5
3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910 (exit $ac_status); } &&
3911 { ac_try='test -z "$ac_c_werror_flag"
3912 || test ! -s conftest.err'
3913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); }; } &&
3918 { ac_try='test -s conftest.$ac_objext'
3919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); }; }; then
3926 echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3932 cat >conftest.$ac_ext <<_ACEOF
3935 cat confdefs.h >>conftest.$ac_ext
3936 cat >>conftest.$ac_ext <<_ACEOF
3937 /* end confdefs.h. */
3947 rm -f conftest.$ac_objext
3948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3949 (eval $ac_compile) 2>conftest.er1
3951 grep -v '^ *+' conftest.er1 >conftest.err
3953 cat conftest.err >&5
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); } &&
3956 { ac_try='test -z "$ac_c_werror_flag"
3957 || test ! -s conftest.err'
3958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); }; } &&
3963 { ac_try='test -s conftest.$ac_objext'
3964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); }; }; then
3971 echo "$as_me: failed program was:" >&5
3972 sed 's/^/| /' conftest.$ac_ext >&5
3975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3978 if test -n "$ac_declaration"; then
3979 echo '#ifdef __cplusplus' >>confdefs.h
3980 echo $ac_declaration >>confdefs.h
3981 echo '#endif' >>confdefs.h
3985 echo "$as_me: failed program was:" >&5
3986 sed 's/^/| /' conftest.$ac_ext >&5
3989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3991 ac_cpp='$CPP $CPPFLAGS'
3992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3997 cat >>confdefs.h <<\_ACEOF
3998 #define _GNU_SOURCE 1
4005 macro_version='2.1a'
4006 macro_revision='1.2435'
4019 ltmain="$ac_aux_dir/ltmain.sh"
4029 # Check whether --enable-shared or --disable-shared was given.
4030 if test "${enable_shared+set}" = set; then
4031 enableval="$enable_shared"
4032 p=${PACKAGE-default}
4034 yes) enable_shared=yes ;;
4035 no) enable_shared=no ;;
4038 # Look at the argument we got. We use all the common list separators.
4039 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4040 for pkg in $enableval; do
4042 if test "X$pkg" = "X$p"; then
4060 # Check whether --enable-static or --disable-static was given.
4061 if test "${enable_static+set}" = set; then
4062 enableval="$enable_static"
4063 p=${PACKAGE-default}
4065 yes) enable_static=yes ;;
4066 no) enable_static=no ;;
4069 # Look at the argument we got. We use all the common list separators.
4070 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4071 for pkg in $enableval; do
4073 if test "X$pkg" = "X$p"; then
4092 # Check whether --with-pic or --without-pic was given.
4093 if test "${with_pic+set}" = set; then
4100 test -z "$pic_mode" && pic_mode=default
4108 # Check whether --enable-fast-install or --disable-fast-install was given.
4109 if test "${enable_fast_install+set}" = set; then
4110 enableval="$enable_fast_install"
4111 p=${PACKAGE-default}
4113 yes) enable_fast_install=yes ;;
4114 no) enable_fast_install=no ;;
4116 enable_fast_install=no
4117 # Look at the argument we got. We use all the common list separators.
4118 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4119 for pkg in $enableval; do
4121 if test "X$pkg" = "X$p"; then
4122 enable_fast_install=yes
4129 enable_fast_install=yes
4139 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4140 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4141 if test "${lt_cv_path_SED+set}" = set; then
4142 echo $ECHO_N "(cached) $ECHO_C" >&6
4144 # Loop through the user's path and test for sed and gsed.
4145 # Then use that list of sed's as ones to test for truncation.
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150 test -z "$as_dir" && as_dir=.
4151 for lt_ac_prog in sed gsed; do
4152 for ac_exec_ext in '' $ac_executable_extensions; do
4153 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4154 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4162 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4163 # along with /bin/sed that truncates output.
4164 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4165 test ! -f $lt_ac_sed && continue
4166 cat /dev/null > conftest.in
4168 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4169 # Check for GNU sed and select it if it is found.
4170 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4171 lt_cv_path_SED=$lt_ac_sed
4175 cat conftest.in conftest.in >conftest.tmp
4176 mv conftest.tmp conftest.in
4177 cp conftest.in conftest.nl
4179 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4180 cmp -s conftest.out conftest.nl || break
4181 # 10000 chars as input seems more than enough
4182 test $lt_ac_count -gt 10 && break
4183 lt_ac_count=`expr $lt_ac_count + 1`
4184 if test $lt_ac_count -gt $lt_ac_max; then
4185 lt_ac_max=$lt_ac_count
4186 lt_cv_path_SED=$lt_ac_sed
4195 echo "$as_me:$LINENO: result: $SED" >&5
4196 echo "${ECHO_T}$SED" >&6
4198 test -z "$SED" && SED=sed
4199 Xsed="$SED -e 1s/^X//"
4211 echo "$as_me:$LINENO: checking for egrep" >&5
4212 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4213 if test "${ac_cv_prog_egrep+set}" = set; then
4214 echo $ECHO_N "(cached) $ECHO_C" >&6
4216 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4217 then ac_cv_prog_egrep='grep -E'
4218 else ac_cv_prog_egrep='egrep'
4221 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4222 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4223 EGREP=$ac_cv_prog_egrep
4226 echo "$as_me:$LINENO: checking for fgrep" >&5
4227 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4228 if test "${ac_cv_prog_fgrep+set}" = set; then
4229 echo $ECHO_N "(cached) $ECHO_C" >&6
4231 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4232 then ac_cv_prog_fgrep='grep -F'
4233 else ac_cv_prog_fgrep='fgrep'
4236 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4237 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4238 FGREP=$ac_cv_prog_fgrep
4241 test -z "$GREP" && GREP=grep
4261 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4262 if test "${with_gnu_ld+set}" = set; then
4263 withval="$with_gnu_ld"
4264 test "$withval" = no || with_gnu_ld=yes
4269 if test "$GCC" = yes; then
4270 # Check if gcc -print-prog-name=ld gives a path.
4271 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4272 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4275 # gcc leaves a trailing carriage return which upsets mingw
4276 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4278 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4281 # Accept absolute paths.
4283 re_direlt='/[^/][^/]*/\.\./'
4284 # Canonicalize the pathname of ld
4285 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4286 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4287 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4289 test -z "$LD" && LD="$ac_prog"
4292 # If it fails, then pretend we aren't using GCC.
4296 # If it is relative, then search for the first ld in PATH.
4300 elif test "$with_gnu_ld" = yes; then
4301 echo "$as_me:$LINENO: checking for GNU ld" >&5
4302 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4304 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4305 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4307 if test "${lt_cv_path_LD+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4310 if test -z "$LD"; then
4311 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4312 for ac_dir in $PATH; do
4314 test -z "$ac_dir" && ac_dir=.
4315 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4316 lt_cv_path_LD="$ac_dir/$ac_prog"
4317 # Check to see if the program is GNU ld. I'd rather use --version,
4318 # but apparently some variants of GNU ld only accept -v.
4319 # Break only if it was the GNU/non-GNU ld that we prefer.
4320 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4321 *GNU* | *'with BFD'*)
4322 test "$with_gnu_ld" != no && break
4325 test "$with_gnu_ld" != yes && break
4332 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4337 if test -n "$LD"; then
4338 echo "$as_me:$LINENO: result: $LD" >&5
4339 echo "${ECHO_T}$LD" >&6
4341 echo "$as_me:$LINENO: result: no" >&5
4342 echo "${ECHO_T}no" >&6
4344 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4345 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4346 { (exit 1); exit 1; }; }
4347 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4348 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4349 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4353 case `$LD -v 2>&1 </dev/null` in
4354 *GNU* | *'with BFD'*)
4355 lt_cv_prog_gnu_ld=yes
4358 lt_cv_prog_gnu_ld=no
4362 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4363 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4364 with_gnu_ld=$lt_cv_prog_gnu_ld
4375 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4376 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4377 if test "${lt_cv_path_NM+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
4380 if test -n "$NM"; then
4381 # Let the user override the test.
4384 lt_nm_to_check="${ac_tool_prefix}nm"
4385 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4386 lt_nm_to_check="$lt_nm_to_check nm"
4388 for lt_tmp_nm in $lt_nm_to_check; do
4389 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4390 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4392 test -z "$ac_dir" && ac_dir=.
4393 tmp_nm="$ac_dir/$lt_tmp_nm"
4394 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4395 # Check to see if the nm accepts a BSD-compat flag.
4396 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4397 # nm: unknown option "B" ignored
4398 # Tru64's nm complains that /dev/null is an invalid object file
4399 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4400 */dev/null* | *'Invalid file or object type'*)
4401 lt_cv_path_NM="$tmp_nm -B"
4405 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4407 lt_cv_path_NM="$tmp_nm -p"
4411 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4412 continue # so that we can try to find one that supports BSD flags
4421 : ${lt_cv_path_NM=no}
4424 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4425 echo "${ECHO_T}$lt_cv_path_NM" >&6
4426 if test "$lt_cv_path_NM" != "no"; then
4429 # Didn't find any BSD compatible name lister, look for dumpbin.
4430 if test -n "$ac_tool_prefix"; then
4431 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4433 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4434 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4435 echo "$as_me:$LINENO: checking for $ac_word" >&5
4436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4437 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4438 echo $ECHO_N "(cached) $ECHO_C" >&6
4440 if test -n "$DUMPBIN"; then
4441 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 test -z "$as_dir" && as_dir=.
4448 for ac_exec_ext in '' $ac_executable_extensions; do
4449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4450 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4459 DUMPBIN=$ac_cv_prog_DUMPBIN
4460 if test -n "$DUMPBIN"; then
4461 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4462 echo "${ECHO_T}$DUMPBIN" >&6
4464 echo "$as_me:$LINENO: result: no" >&5
4465 echo "${ECHO_T}no" >&6
4468 test -n "$DUMPBIN" && break
4471 if test -z "$DUMPBIN"; then
4472 ac_ct_DUMPBIN=$DUMPBIN
4473 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4475 # Extract the first word of "$ac_prog", so it can be a program name with args.
4476 set dummy $ac_prog; ac_word=$2
4477 echo "$as_me:$LINENO: checking for $ac_word" >&5
4478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4479 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4480 echo $ECHO_N "(cached) $ECHO_C" >&6
4482 if test -n "$ac_ct_DUMPBIN"; then
4483 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489 test -z "$as_dir" && as_dir=.
4490 for ac_exec_ext in '' $ac_executable_extensions; do
4491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4492 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4501 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4502 if test -n "$ac_ct_DUMPBIN"; then
4503 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4504 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4506 echo "$as_me:$LINENO: result: no" >&5
4507 echo "${ECHO_T}no" >&6
4510 test -n "$ac_ct_DUMPBIN" && break
4512 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4514 DUMPBIN=$ac_ct_DUMPBIN
4518 if test "$DUMPBIN" != ":"; then
4522 test -z "$NM" && NM=nm
4529 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4530 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4531 if test "${lt_cv_nm_interface+set}" = set; then
4532 echo $ECHO_N "(cached) $ECHO_C" >&6
4534 lt_cv_nm_interface="BSD nm"
4535 echo "int some_variable = 0;" > conftest.$ac_ext
4536 (eval echo "\"\$as_me:4536: $ac_compile\"" >&5)
4537 (eval "$ac_compile" 2>conftest.err)
4538 cat conftest.err >&5
4539 (eval echo "\"\$as_me:4539: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4540 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4541 cat conftest.err >&5
4542 (eval echo "\"\$as_me:4542: output\"" >&5)
4543 cat conftest.out >&5
4544 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4545 lt_cv_nm_interface="MS dumpbin"
4549 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4550 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4552 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4553 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4555 if test "$LN_S" = "ln -s"; then
4556 echo "$as_me:$LINENO: result: yes" >&5
4557 echo "${ECHO_T}yes" >&6
4559 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4560 echo "${ECHO_T}no, using $LN_S" >&6
4563 # find the maximum length of command line arguments
4564 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4565 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4566 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4574 # On DJGPP, this test can blow up pretty badly due to problems in libc
4575 # (any single argument exceeding 2000 bytes causes a buffer overrun
4576 # during glob expansion). Even if it were fixed, the result of this
4577 # check would be larger than it should be.
4578 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4582 # Under GNU Hurd, this test is not required because there is
4583 # no limit to the length of command line arguments.
4584 # Libtool will interpret -1 as no limit whatsoever
4585 lt_cv_sys_max_cmd_len=-1;
4589 # On Win9x/ME, this test blows up -- it succeeds, but takes
4590 # about 5 minutes as the teststring grows exponentially.
4591 # Worse, since 9x/ME are not pre-emptively multitasking,
4592 # you end up with a "frozen" computer, even though with patience
4593 # the test eventually succeeds (with a max line length of 256k).
4594 # Instead, let's just punt: use the minimum linelength reported by
4595 # all of the supported platforms: 8192 (on NT/2K/XP).
4596 lt_cv_sys_max_cmd_len=8192;
4600 # On AmigaOS with pdksh, this test takes hours, literally.
4601 # So we just punt and use a minimum line length of 8192.
4602 lt_cv_sys_max_cmd_len=8192;
4605 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4606 # This has been around since 386BSD, at least. Likely further.
4607 if test -x /sbin/sysctl; then
4608 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4609 elif test -x /usr/sbin/sysctl; then
4610 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4612 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4614 # And add a safety zone
4615 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4616 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4620 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4621 lt_cv_sys_max_cmd_len=196608
4625 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4626 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4627 # nice to cause kernel panics so lets avoid the loop below.
4628 # First set a reasonable default.
4629 lt_cv_sys_max_cmd_len=16384
4631 if test -x /sbin/sysconfig; then
4632 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4633 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4638 lt_cv_sys_max_cmd_len=102400
4640 sysv5* | sco5v6* | sysv4.2uw2*)
4641 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4642 if test -n "$kargmax"; then
4643 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4645 lt_cv_sys_max_cmd_len=32768
4649 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4650 if test -n $lt_cv_sys_max_cmd_len; then
4651 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4652 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4654 # Make teststring a little bigger before we do anything with it.
4655 # a 1K string should be a reasonable start.
4656 for i in 1 2 3 4 5 6 7 8 ; do
4657 teststring=$teststring$teststring
4659 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4660 # If test is not a shell built-in, we'll probably end up computing a
4661 # maximum length that is only half of the actual maximum length, but
4663 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4664 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4665 test $i != 17 # 1/2 MB should be enough
4668 teststring=$teststring$teststring
4670 # Only check the string length outside the loop.
4671 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4673 # Add a significant safety factor because C++ compilers can tack on
4674 # massive amounts of additional arguments before passing them to the
4675 # linker. It appears as though 1/2 is a usable value.
4676 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4683 if test -n $lt_cv_sys_max_cmd_len ; then
4684 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4685 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4687 echo "$as_me:$LINENO: result: none" >&5
4688 echo "${ECHO_T}none" >&6
4690 max_cmd_len=$lt_cv_sys_max_cmd_len
4702 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4703 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4704 # Try some XSI features
4707 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4708 = c,a/b,, ) >/dev/null 2>&1 \
4710 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4711 echo "${ECHO_T}$xsi_shell" >&6
4714 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4715 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4717 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4719 && lt_shell_append=yes
4720 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4721 echo "${ECHO_T}$lt_shell_append" >&6
4724 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4734 # test EBCDIC or ASCII
4735 case `echo X|tr X '\101'` in
4736 A) # ASCII based system
4737 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4738 lt_SP2NL='tr \040 \012'
4739 lt_NL2SP='tr \015\012 \040\040'
4741 *) # EBCDIC based system
4742 lt_SP2NL='tr \100 \n'
4743 lt_NL2SP='tr \r\n \100\100'
4755 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4756 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4757 if test "${lt_cv_ld_reload_flag+set}" = set; then
4758 echo $ECHO_N "(cached) $ECHO_C" >&6
4760 lt_cv_ld_reload_flag='-r'
4762 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4763 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4764 reload_flag=$lt_cv_ld_reload_flag
4765 case $reload_flag in
4767 *) reload_flag=" $reload_flag" ;;
4769 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4772 if test "$GCC" = yes; then
4773 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4775 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4789 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4790 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4791 if test "${lt_cv_deplibs_check_method+set}" = set; then
4792 echo $ECHO_N "(cached) $ECHO_C" >&6
4794 lt_cv_file_magic_cmd='$MAGIC_CMD'
4795 lt_cv_file_magic_test_file=
4796 lt_cv_deplibs_check_method='unknown'
4797 # Need to set the preceding variable on all platforms that support
4798 # interlibrary dependencies.
4799 # 'none' -- dependencies not supported.
4800 # `unknown' -- same as none, but documents that we really don't know.
4801 # 'pass_all' -- all dependencies passed with no checks.
4802 # 'test_compile' -- check by making test program.
4803 # 'file_magic [[regex]]' -- check by looking for files in library path
4804 # which responds to the $file_magic_cmd with a given extended regex.
4805 # If you have `file' or equivalent on your system and you're not sure
4806 # whether `pass_all' will *always* work, you probably want this one.
4810 lt_cv_deplibs_check_method=pass_all
4814 lt_cv_deplibs_check_method=pass_all
4818 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4819 lt_cv_file_magic_cmd='/usr/bin/file -L'
4820 lt_cv_file_magic_test_file=/shlib/libc.so
4824 # func_win32_libid is a shell function defined in ltmain.sh
4825 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4826 lt_cv_file_magic_cmd='func_win32_libid'
4830 # Base MSYS/MinGW do not provide the 'file' command needed by
4831 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4832 # unless we find 'file', for example because we are cross-compiling.
4833 if ( file / ) >/dev/null 2>&1; then
4834 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4835 lt_cv_file_magic_cmd='func_win32_libid'
4837 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4838 lt_cv_file_magic_cmd='$OBJDUMP -f'
4842 darwin* | rhapsody*)
4843 lt_cv_deplibs_check_method=pass_all
4846 freebsd* | dragonfly*)
4847 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4850 # Not sure whether the presence of OpenBSD here was a mistake.
4851 # Let's accept both of them until this is cleared up.
4852 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4853 lt_cv_file_magic_cmd=/usr/bin/file
4854 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4858 lt_cv_deplibs_check_method=pass_all
4863 lt_cv_deplibs_check_method=pass_all
4866 hpux10.20* | hpux11*)
4867 lt_cv_file_magic_cmd=/usr/bin/file
4870 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4871 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4874 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]'
4875 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4878 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4879 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4885 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4886 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4889 irix5* | irix6* | nonstopux*)
4891 *-32|*"-32 ") libmagic=32-bit;;
4892 *-n32|*"-n32 ") libmagic=N32;;
4893 *-64|*"-64 ") libmagic=64-bit;;
4894 *) libmagic=never-match;;
4896 lt_cv_deplibs_check_method=pass_all
4899 # This must be Linux ELF.
4900 linux* | k*bsd*-gnu)
4901 lt_cv_deplibs_check_method=pass_all
4905 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4906 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4908 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4913 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4914 lt_cv_file_magic_cmd=/usr/bin/file
4915 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4919 lt_cv_deplibs_check_method=pass_all
4923 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4924 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4926 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4930 osf3* | osf4* | osf5*)
4931 lt_cv_deplibs_check_method=pass_all
4935 lt_cv_deplibs_check_method=pass_all
4939 lt_cv_deplibs_check_method=pass_all
4942 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4943 lt_cv_deplibs_check_method=pass_all
4947 case $host_vendor in
4949 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]'
4950 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4953 lt_cv_deplibs_check_method=pass_all
4956 lt_cv_file_magic_cmd='/bin/file'
4957 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4960 lt_cv_file_magic_cmd='/bin/file'
4961 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4962 lt_cv_file_magic_test_file=/lib/libc.so
4965 lt_cv_deplibs_check_method=pass_all
4968 lt_cv_deplibs_check_method=pass_all
4974 lt_cv_deplibs_check_method=pass_all
4979 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4980 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4981 file_magic_cmd=$lt_cv_file_magic_cmd
4982 deplibs_check_method=$lt_cv_deplibs_check_method
4983 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4996 if test -n "$ac_tool_prefix"; then
4997 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4998 set dummy ${ac_tool_prefix}ar; ac_word=$2
4999 echo "$as_me:$LINENO: checking for $ac_word" >&5
5000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5001 if test "${ac_cv_prog_AR+set}" = set; then
5002 echo $ECHO_N "(cached) $ECHO_C" >&6
5004 if test -n "$AR"; then
5005 ac_cv_prog_AR="$AR" # Let the user override the test.
5007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011 test -z "$as_dir" && as_dir=.
5012 for ac_exec_ext in '' $ac_executable_extensions; do
5013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5014 ac_cv_prog_AR="${ac_tool_prefix}ar"
5015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5024 if test -n "$AR"; then
5025 echo "$as_me:$LINENO: result: $AR" >&5
5026 echo "${ECHO_T}$AR" >&6
5028 echo "$as_me:$LINENO: result: no" >&5
5029 echo "${ECHO_T}no" >&6
5033 if test -z "$ac_cv_prog_AR"; then
5035 # Extract the first word of "ar", so it can be a program name with args.
5036 set dummy ar; ac_word=$2
5037 echo "$as_me:$LINENO: checking for $ac_word" >&5
5038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5039 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5040 echo $ECHO_N "(cached) $ECHO_C" >&6
5042 if test -n "$ac_ct_AR"; then
5043 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049 test -z "$as_dir" && as_dir=.
5050 for ac_exec_ext in '' $ac_executable_extensions; do
5051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5052 ac_cv_prog_ac_ct_AR="ar"
5053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5059 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5062 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5063 if test -n "$ac_ct_AR"; then
5064 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5065 echo "${ECHO_T}$ac_ct_AR" >&6
5067 echo "$as_me:$LINENO: result: no" >&5
5068 echo "${ECHO_T}no" >&6
5076 test -z "$AR" && AR=ar
5077 test -z "$AR_FLAGS" && AR_FLAGS=cru
5089 if test -n "$ac_tool_prefix"; then
5090 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5091 set dummy ${ac_tool_prefix}strip; ac_word=$2
5092 echo "$as_me:$LINENO: checking for $ac_word" >&5
5093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5094 if test "${ac_cv_prog_STRIP+set}" = set; then
5095 echo $ECHO_N "(cached) $ECHO_C" >&6
5097 if test -n "$STRIP"; then
5098 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 test -z "$as_dir" && as_dir=.
5105 for ac_exec_ext in '' $ac_executable_extensions; do
5106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5107 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5116 STRIP=$ac_cv_prog_STRIP
5117 if test -n "$STRIP"; then
5118 echo "$as_me:$LINENO: result: $STRIP" >&5
5119 echo "${ECHO_T}$STRIP" >&6
5121 echo "$as_me:$LINENO: result: no" >&5
5122 echo "${ECHO_T}no" >&6
5126 if test -z "$ac_cv_prog_STRIP"; then
5128 # Extract the first word of "strip", so it can be a program name with args.
5129 set dummy strip; ac_word=$2
5130 echo "$as_me:$LINENO: checking for $ac_word" >&5
5131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5132 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5133 echo $ECHO_N "(cached) $ECHO_C" >&6
5135 if test -n "$ac_ct_STRIP"; then
5136 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142 test -z "$as_dir" && as_dir=.
5143 for ac_exec_ext in '' $ac_executable_extensions; do
5144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5145 ac_cv_prog_ac_ct_STRIP="strip"
5146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5152 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5155 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5156 if test -n "$ac_ct_STRIP"; then
5157 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5158 echo "${ECHO_T}$ac_ct_STRIP" >&6
5160 echo "$as_me:$LINENO: result: no" >&5
5161 echo "${ECHO_T}no" >&6
5166 STRIP="$ac_cv_prog_STRIP"
5169 test -z "$STRIP" && STRIP=:
5176 if test -n "$ac_tool_prefix"; then
5177 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5178 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5179 echo "$as_me:$LINENO: checking for $ac_word" >&5
5180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5181 if test "${ac_cv_prog_RANLIB+set}" = set; then
5182 echo $ECHO_N "(cached) $ECHO_C" >&6
5184 if test -n "$RANLIB"; then
5185 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191 test -z "$as_dir" && as_dir=.
5192 for ac_exec_ext in '' $ac_executable_extensions; do
5193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5194 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 RANLIB=$ac_cv_prog_RANLIB
5204 if test -n "$RANLIB"; then
5205 echo "$as_me:$LINENO: result: $RANLIB" >&5
5206 echo "${ECHO_T}$RANLIB" >&6
5208 echo "$as_me:$LINENO: result: no" >&5
5209 echo "${ECHO_T}no" >&6
5213 if test -z "$ac_cv_prog_RANLIB"; then
5214 ac_ct_RANLIB=$RANLIB
5215 # Extract the first word of "ranlib", so it can be a program name with args.
5216 set dummy ranlib; ac_word=$2
5217 echo "$as_me:$LINENO: checking for $ac_word" >&5
5218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5219 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5222 if test -n "$ac_ct_RANLIB"; then
5223 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229 test -z "$as_dir" && as_dir=.
5230 for ac_exec_ext in '' $ac_executable_extensions; do
5231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5232 ac_cv_prog_ac_ct_RANLIB="ranlib"
5233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5239 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5242 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5243 if test -n "$ac_ct_RANLIB"; then
5244 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5245 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5247 echo "$as_me:$LINENO: result: no" >&5
5248 echo "${ECHO_T}no" >&6
5251 RANLIB=$ac_ct_RANLIB
5253 RANLIB="$ac_cv_prog_RANLIB"
5256 test -z "$RANLIB" && RANLIB=:
5263 # Determine commands to create old-style static archives.
5264 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5265 old_postinstall_cmds='chmod 644 $oldlib'
5266 old_postuninstall_cmds=
5268 if test -n "$RANLIB"; then
5271 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5274 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5277 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5313 # If no C compiler was specified, use CC.
5316 # If no C compiler flags were specified, use CFLAGS.
5317 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5319 # Allow CC to be a program name with arguments.
5323 # Check for command to grab the raw symbol name followed by C symbol from nm.
5324 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5325 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5326 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5327 echo $ECHO_N "(cached) $ECHO_C" >&6
5330 # These are sane defaults that work on at least a few old systems.
5331 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5333 # Character class describing NM global symbol codes.
5334 symcode='[BCDEGRST]'
5336 # Regexp to match symbols that can be accessed directly from C.
5337 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5339 # Define system-specific variables.
5344 cygwin* | mingw* | pw32*)
5345 symcode='[ABCDGISTW]'
5348 if test "$host_cpu" = ia64; then
5349 symcode='[ABCDEGRST]'
5353 symcode='[BCDEGRST]'
5356 symcode='[BCDEGQRST]'
5367 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5375 # If we're using GNU nm, then use its standard symbol codes.
5376 case `$NM -V 2>&1` in
5377 *GNU* | *'with BFD'*)
5378 symcode='[ABCDGIRSTW]' ;;
5381 # Transform an extracted symbol line into a proper C declaration.
5382 # Some systems (esp. on ia64) link data and code symbols differently,
5383 # so use this general approach.
5384 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5386 # Transform an extracted symbol line into symbol name and symbol address
5387 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5389 # Handle CRLF in mingw tool chain
5393 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5397 # Try without a prefix underscore, then with it.
5398 for ac_symprfx in "" "_"; do
5400 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5401 symxfrm="\\1 $ac_symprfx\\2 \\2"
5403 # Write the raw and C identifiers.
5404 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5405 # Fake it for dumpbin and say T for any non-static function
5406 # and D for any global variable.
5407 # Also find C++ and __fastcall symbols from MSVC++,
5408 # which start with @ or ?.
5409 lt_cv_sys_global_symbol_pipe="$AWK '"\
5410 " {last_section=section; section=\$ 3};"\
5411 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5412 " \$ 0!~/External *\|/{next};"\
5413 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5414 " {if(hide[section]) next};"\
5415 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5416 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5417 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5418 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5419 " ' prfx=^$ac_symprfx"
5421 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5424 # Check to see that the pipe works correctly.
5428 cat > conftest.$ac_ext <<_LT_EOF
5433 void nm_test_func(void);
5434 void nm_test_func(void){}
5438 int main(){nm_test_var='a';nm_test_func();return(0);}
5441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5442 (eval $ac_compile) 2>&5
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); }; then
5446 # Now try to grab the symbols.
5448 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5449 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); } && test -s "$nlist"; then
5453 # Try sorting and uniquifying the output.
5454 if sort "$nlist" | uniq > "$nlist"T; then
5455 mv -f "$nlist"T "$nlist"
5460 # Make sure that we snagged all the symbols we need.
5461 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5462 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5463 cat <<_LT_EOF > conftest.$ac_ext
5469 # Now generate the symbol file.
5470 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5472 cat <<_LT_EOF >> conftest.$ac_ext
5474 /* The mapping between symbol names and symbols. */
5479 lt__PROGRAM__LTX_preloaded_symbols[] =
5481 { "@PROGRAM@", (void *) 0 },
5483 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5484 cat <<\_LT_EOF >> conftest.$ac_ext
5488 /* This works around a problem in FreeBSD linker */
5489 #ifdef FREEBSD_WORKAROUND
5490 static const void *lt_preloaded_setup() {
5491 return lt__PROGRAM__LTX_preloaded_symbols;
5499 # Now try linking the two files.
5500 mv conftest.$ac_objext conftstm.$ac_objext
5501 lt_save_LIBS="$LIBS"
5502 lt_save_CFLAGS="$CFLAGS"
5503 LIBS="conftstm.$ac_objext"
5504 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5506 (eval $ac_link) 2>&5
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5512 LIBS="$lt_save_LIBS"
5513 CFLAGS="$lt_save_CFLAGS"
5515 echo "cannot find nm_test_func in $nlist" >&5
5518 echo "cannot find nm_test_var in $nlist" >&5
5521 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5524 echo "$progname: failed program was:" >&5
5525 cat conftest.$ac_ext >&5
5527 rm -f conftest* conftst*
5529 # Do not use the global_symbol_pipe unless it works.
5530 if test "$pipe_works" = yes; then
5533 lt_cv_sys_global_symbol_pipe=
5539 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5540 lt_cv_sys_global_symbol_to_cdecl=
5542 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5543 echo "$as_me:$LINENO: result: failed" >&5
5544 echo "${ECHO_T}failed" >&6
5546 echo "$as_me:$LINENO: result: ok" >&5
5547 echo "${ECHO_T}ok" >&6
5566 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5567 if test "${enable_libtool_lock+set}" = set; then
5568 enableval="$enable_libtool_lock"
5571 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5573 # Some flags need to be propagated to the compiler or linker for good
5577 # Find out which ABI we are using.
5578 echo 'int i;' > conftest.$ac_ext
5579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5580 (eval $ac_compile) 2>&5
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); }; then
5584 case `/usr/bin/file conftest.$ac_objext` in
5596 # Find out which ABI we are using.
5597 echo '#line 5597 "configure"' > conftest.$ac_ext
5598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5599 (eval $ac_compile) 2>&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); }; then
5603 if test "$lt_cv_prog_gnu_ld" = yes; then
5604 case `/usr/bin/file conftest.$ac_objext` in
5606 LD="${LD-ld} -melf32bsmip"
5609 LD="${LD-ld} -melf32bmipn32"
5612 LD="${LD-ld} -melf64bmip"
5616 case `/usr/bin/file conftest.$ac_objext` in
5632 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5633 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5634 # Find out which ABI we are using.
5635 echo 'int i;' > conftest.$ac_ext
5636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5637 (eval $ac_compile) 2>&5
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); }; then
5641 case `/usr/bin/file conftest.o` in
5644 x86_64-*kfreebsd*-gnu)
5645 LD="${LD-ld} -m elf_i386_fbsd"
5648 LD="${LD-ld} -m elf_i386"
5650 ppc64-*linux*|powerpc64-*linux*)
5651 LD="${LD-ld} -m elf32ppclinux"
5654 LD="${LD-ld} -m elf_s390"
5657 LD="${LD-ld} -m elf32_sparc"
5663 x86_64-*kfreebsd*-gnu)
5664 LD="${LD-ld} -m elf_x86_64_fbsd"
5667 LD="${LD-ld} -m elf_x86_64"
5669 ppc*-*linux*|powerpc*-*linux*)
5670 LD="${LD-ld} -m elf64ppc"
5672 s390*-*linux*|s390*-*tpf*)
5673 LD="${LD-ld} -m elf64_s390"
5676 LD="${LD-ld} -m elf64_sparc"
5686 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5687 SAVE_CFLAGS="$CFLAGS"
5688 CFLAGS="$CFLAGS -belf"
5689 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5690 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5691 if test "${lt_cv_cc_needs_belf+set}" = set; then
5692 echo $ECHO_N "(cached) $ECHO_C" >&6
5695 ac_cpp='$CPP $CPPFLAGS'
5696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5700 cat >conftest.$ac_ext <<_ACEOF
5703 cat confdefs.h >>conftest.$ac_ext
5704 cat >>conftest.$ac_ext <<_ACEOF
5705 /* end confdefs.h. */
5715 rm -f conftest.$ac_objext conftest$ac_exeext
5716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5717 (eval $ac_link) 2>conftest.er1
5719 grep -v '^ *+' conftest.er1 >conftest.err
5721 cat conftest.err >&5
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); } &&
5724 { ac_try='test -z "$ac_c_werror_flag"
5725 || test ! -s conftest.err'
5726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); }; } &&
5731 { ac_try='test -s conftest$ac_exeext'
5732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); }; }; then
5737 lt_cv_cc_needs_belf=yes
5739 echo "$as_me: failed program was:" >&5
5740 sed 's/^/| /' conftest.$ac_ext >&5
5742 lt_cv_cc_needs_belf=no
5744 rm -f conftest.err conftest.$ac_objext \
5745 conftest$ac_exeext conftest.$ac_ext
5747 ac_cpp='$CPP $CPPFLAGS'
5748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5753 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5754 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5755 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5756 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5757 CFLAGS="$SAVE_CFLAGS"
5761 # Find out which ABI we are using.
5762 echo 'int i;' > conftest.$ac_ext
5763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5764 (eval $ac_compile) 2>&5
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); }; then
5768 case `/usr/bin/file conftest.o` in
5770 case $lt_cv_prog_gnu_ld in
5771 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5772 *) LD="${LD-ld} -64" ;;
5781 need_locks="$enable_libtool_lock"
5784 ac_cpp='$CPP $CPPFLAGS'
5785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5788 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5789 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5790 # On Suns, sometimes $CPP names a directory.
5791 if test -n "$CPP" && test -d "$CPP"; then
5794 if test -z "$CPP"; then
5795 if test "${ac_cv_prog_CPP+set}" = set; then
5796 echo $ECHO_N "(cached) $ECHO_C" >&6
5798 # Double quotes because CPP needs to be expanded
5799 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5802 for ac_c_preproc_warn_flag in '' yes
5804 # Use a header file that comes with gcc, so configuring glibc
5805 # with a fresh cross-compiler works.
5806 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5807 # <limits.h> exists even on freestanding compilers.
5808 # On the NeXT, cc -E runs the code through the compiler's parser,
5809 # not just through cpp. "Syntax error" is here to catch this case.
5810 cat >conftest.$ac_ext <<_ACEOF
5813 cat confdefs.h >>conftest.$ac_ext
5814 cat >>conftest.$ac_ext <<_ACEOF
5815 /* end confdefs.h. */
5817 # include <limits.h>
5819 # include <assert.h>
5823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5824 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5826 grep -v '^ *+' conftest.er1 >conftest.err
5828 cat conftest.err >&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); } >/dev/null; then
5831 if test -s conftest.err; then
5832 ac_cpp_err=$ac_c_preproc_warn_flag
5833 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5840 if test -z "$ac_cpp_err"; then
5843 echo "$as_me: failed program was:" >&5
5844 sed 's/^/| /' conftest.$ac_ext >&5
5846 # Broken: fails on valid input.
5849 rm -f conftest.err conftest.$ac_ext
5851 # OK, works on sane cases. Now check whether non-existent headers
5852 # can be detected and how.
5853 cat >conftest.$ac_ext <<_ACEOF
5856 cat confdefs.h >>conftest.$ac_ext
5857 cat >>conftest.$ac_ext <<_ACEOF
5858 /* end confdefs.h. */
5859 #include <ac_nonexistent.h>
5861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5864 grep -v '^ *+' conftest.er1 >conftest.err
5866 cat conftest.err >&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); } >/dev/null; then
5869 if test -s conftest.err; then
5870 ac_cpp_err=$ac_c_preproc_warn_flag
5871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5878 if test -z "$ac_cpp_err"; then
5879 # Broken: success on invalid input.
5882 echo "$as_me: failed program was:" >&5
5883 sed 's/^/| /' conftest.$ac_ext >&5
5885 # Passes both tests.
5889 rm -f conftest.err conftest.$ac_ext
5892 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5893 rm -f conftest.err conftest.$ac_ext
5894 if $ac_preproc_ok; then
5906 echo "$as_me:$LINENO: result: $CPP" >&5
5907 echo "${ECHO_T}$CPP" >&6
5909 for ac_c_preproc_warn_flag in '' yes
5911 # Use a header file that comes with gcc, so configuring glibc
5912 # with a fresh cross-compiler works.
5913 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5914 # <limits.h> exists even on freestanding compilers.
5915 # On the NeXT, cc -E runs the code through the compiler's parser,
5916 # not just through cpp. "Syntax error" is here to catch this case.
5917 cat >conftest.$ac_ext <<_ACEOF
5920 cat confdefs.h >>conftest.$ac_ext
5921 cat >>conftest.$ac_ext <<_ACEOF
5922 /* end confdefs.h. */
5924 # include <limits.h>
5926 # include <assert.h>
5930 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5931 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5933 grep -v '^ *+' conftest.er1 >conftest.err
5935 cat conftest.err >&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); } >/dev/null; then
5938 if test -s conftest.err; then
5939 ac_cpp_err=$ac_c_preproc_warn_flag
5940 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5947 if test -z "$ac_cpp_err"; then
5950 echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5953 # Broken: fails on valid input.
5956 rm -f conftest.err conftest.$ac_ext
5958 # OK, works on sane cases. Now check whether non-existent headers
5959 # can be detected and how.
5960 cat >conftest.$ac_ext <<_ACEOF
5963 cat confdefs.h >>conftest.$ac_ext
5964 cat >>conftest.$ac_ext <<_ACEOF
5965 /* end confdefs.h. */
5966 #include <ac_nonexistent.h>
5968 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5969 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5971 grep -v '^ *+' conftest.er1 >conftest.err
5973 cat conftest.err >&5
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); } >/dev/null; then
5976 if test -s conftest.err; then
5977 ac_cpp_err=$ac_c_preproc_warn_flag
5978 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5985 if test -z "$ac_cpp_err"; then
5986 # Broken: success on invalid input.
5989 echo "$as_me: failed program was:" >&5
5990 sed 's/^/| /' conftest.$ac_ext >&5
5992 # Passes both tests.
5996 rm -f conftest.err conftest.$ac_ext
5999 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6000 rm -f conftest.err conftest.$ac_ext
6001 if $ac_preproc_ok; then
6004 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6005 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6006 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6007 See \`config.log' for more details." >&5
6008 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6009 See \`config.log' for more details." >&2;}
6010 { (exit 1); exit 1; }; }; }
6014 ac_cpp='$CPP $CPPFLAGS'
6015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6020 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6021 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6022 if test "${ac_cv_header_stdc+set}" = set; then
6023 echo $ECHO_N "(cached) $ECHO_C" >&6
6025 cat >conftest.$ac_ext <<_ACEOF
6028 cat confdefs.h >>conftest.$ac_ext
6029 cat >>conftest.$ac_ext <<_ACEOF
6030 /* end confdefs.h. */
6044 rm -f conftest.$ac_objext
6045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6046 (eval $ac_compile) 2>conftest.er1
6048 grep -v '^ *+' conftest.er1 >conftest.err
6050 cat conftest.err >&5
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); } &&
6053 { ac_try='test -z "$ac_c_werror_flag"
6054 || test ! -s conftest.err'
6055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); }; } &&
6060 { ac_try='test -s conftest.$ac_objext'
6061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); }; }; then
6066 ac_cv_header_stdc=yes
6068 echo "$as_me: failed program was:" >&5
6069 sed 's/^/| /' conftest.$ac_ext >&5
6071 ac_cv_header_stdc=no
6073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6075 if test $ac_cv_header_stdc = yes; then
6076 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6077 cat >conftest.$ac_ext <<_ACEOF
6080 cat confdefs.h >>conftest.$ac_ext
6081 cat >>conftest.$ac_ext <<_ACEOF
6082 /* end confdefs.h. */
6086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6087 $EGREP "memchr" >/dev/null 2>&1; then
6090 ac_cv_header_stdc=no
6096 if test $ac_cv_header_stdc = yes; then
6097 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6098 cat >conftest.$ac_ext <<_ACEOF
6101 cat confdefs.h >>conftest.$ac_ext
6102 cat >>conftest.$ac_ext <<_ACEOF
6103 /* end confdefs.h. */
6107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6108 $EGREP "free" >/dev/null 2>&1; then
6111 ac_cv_header_stdc=no
6117 if test $ac_cv_header_stdc = yes; then
6118 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6119 if test "$cross_compiling" = yes; then
6122 cat >conftest.$ac_ext <<_ACEOF
6125 cat confdefs.h >>conftest.$ac_ext
6126 cat >>conftest.$ac_ext <<_ACEOF
6127 /* end confdefs.h. */
6129 #if ((' ' & 0x0FF) == 0x020)
6130 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6131 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6133 # define ISLOWER(c) \
6134 (('a' <= (c) && (c) <= 'i') \
6135 || ('j' <= (c) && (c) <= 'r') \
6136 || ('s' <= (c) && (c) <= 'z'))
6137 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6140 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6145 for (i = 0; i < 256; i++)
6146 if (XOR (islower (i), ISLOWER (i))
6147 || toupper (i) != TOUPPER (i))
6152 rm -f conftest$ac_exeext
6153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6154 (eval $ac_link) 2>&5
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); }; }; then
6165 echo "$as_me: program exited with status $ac_status" >&5
6166 echo "$as_me: failed program was:" >&5
6167 sed 's/^/| /' conftest.$ac_ext >&5
6170 ac_cv_header_stdc=no
6172 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6176 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6177 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6178 if test $ac_cv_header_stdc = yes; then
6180 cat >>confdefs.h <<\_ACEOF
6181 #define STDC_HEADERS 1
6186 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6196 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6197 inttypes.h stdint.h unistd.h
6199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6200 echo "$as_me:$LINENO: checking for $ac_header" >&5
6201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6202 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6203 echo $ECHO_N "(cached) $ECHO_C" >&6
6205 cat >conftest.$ac_ext <<_ACEOF
6208 cat confdefs.h >>conftest.$ac_ext
6209 cat >>conftest.$ac_ext <<_ACEOF
6210 /* end confdefs.h. */
6211 $ac_includes_default
6213 #include <$ac_header>
6215 rm -f conftest.$ac_objext
6216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6217 (eval $ac_compile) 2>conftest.er1
6219 grep -v '^ *+' conftest.er1 >conftest.err
6221 cat conftest.err >&5
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); } &&
6224 { ac_try='test -z "$ac_c_werror_flag"
6225 || test ! -s conftest.err'
6226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); }; } &&
6231 { ac_try='test -s conftest.$ac_objext'
6232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); }; }; then
6237 eval "$as_ac_Header=yes"
6239 echo "$as_me: failed program was:" >&5
6240 sed 's/^/| /' conftest.$ac_ext >&5
6242 eval "$as_ac_Header=no"
6244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6247 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6248 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6249 cat >>confdefs.h <<_ACEOF
6250 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6259 for ac_header in dlfcn.h
6261 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6262 echo "$as_me:$LINENO: checking for $ac_header" >&5
6263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6265 echo $ECHO_N "(cached) $ECHO_C" >&6
6267 cat >conftest.$ac_ext <<_ACEOF
6270 cat confdefs.h >>conftest.$ac_ext
6271 cat >>conftest.$ac_ext <<_ACEOF
6272 /* end confdefs.h. */
6273 $ac_includes_default
6275 #include <$ac_header>
6277 rm -f conftest.$ac_objext
6278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6279 (eval $ac_compile) 2>conftest.er1
6281 grep -v '^ *+' conftest.er1 >conftest.err
6283 cat conftest.err >&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); } &&
6286 { ac_try='test -z "$ac_c_werror_flag"
6287 || test ! -s conftest.err'
6288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); }; } &&
6293 { ac_try='test -s conftest.$ac_objext'
6294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); }; }; then
6299 eval "$as_ac_Header=yes"
6301 echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.$ac_ext >&5
6304 eval "$as_ac_Header=no"
6306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6310 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6311 cat >>confdefs.h <<_ACEOF
6312 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6321 # This can be used to rebuild libtool when needed
6322 LIBTOOL_DEPS="$ltmain"
6324 # Always use our own libtool.
6325 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6351 test -z "$LN_S" && LN_S="ln -s"
6366 if test -n "${ZSH_VERSION+set}" ; then
6367 setopt NO_GLOB_SUBST
6370 echo "$as_me:$LINENO: checking for objdir" >&5
6371 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6372 if test "${lt_cv_objdir+set}" = set; then
6373 echo $ECHO_N "(cached) $ECHO_C" >&6
6375 rm -f .libs 2>/dev/null
6376 mkdir .libs 2>/dev/null
6377 if test -d .libs; then
6380 # MS-DOS does not allow filenames that begin with a dot.
6383 rmdir .libs 2>/dev/null
6385 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6386 echo "${ECHO_T}$lt_cv_objdir" >&6
6387 objdir=$lt_cv_objdir
6393 cat >>confdefs.h <<_ACEOF
6394 #define LT_OBJDIR "$lt_cv_objdir/"
6415 # AIX sometimes has problems with the GCC collect2 program. For some
6416 # reason, if we set the COLLECT_NAMES environment variable, the problems
6417 # vanish in a puff of smoke.
6418 if test "X${COLLECT_NAMES+set}" != Xset; then
6420 export COLLECT_NAMES
6425 # Sed substitution that helps us do robust quoting. It backslashifies
6426 # metacharacters that are still active within double-quoted strings.
6427 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6429 # Same as above, but do not quote variable references.
6430 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6432 # Sed substitution to delay expansion of an escaped shell variable in a
6433 # double_quote_subst'ed string.
6434 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6436 # Sed substitution to delay expansion of an escaped single quote.
6437 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6439 # Sed substitution to avoid accidental globbing in evaled expressions
6440 no_glob_subst='s/\*/\\\*/g'
6444 can_build_shared=yes
6446 # All known linkers require a `.a' archive for static linking (except MSVC,
6447 # which needs '.lib').
6450 with_gnu_ld="$lt_cv_prog_gnu_ld"
6453 old_CFLAGS="$CFLAGS"
6455 # Set sane defaults for various variables
6456 test -z "$CC" && CC=cc
6457 test -z "$LTCC" && LTCC=$CC
6458 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6459 test -z "$LD" && LD=ld
6460 test -z "$ac_objext" && ac_objext=o
6462 for cc_temp in $compiler""; do
6464 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6465 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6470 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6473 # Only perform the check for file, if the check method requires it
6474 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6475 case $deplibs_check_method in
6477 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6478 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6479 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6480 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6481 echo $ECHO_N "(cached) $ECHO_C" >&6
6485 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6488 lt_save_MAGIC_CMD="$MAGIC_CMD"
6489 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6490 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6491 for ac_dir in $ac_dummy; do
6493 test -z "$ac_dir" && ac_dir=.
6494 if test -f $ac_dir/${ac_tool_prefix}file; then
6495 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6496 if test -n "$file_magic_test_file"; then
6497 case $deplibs_check_method in
6499 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6500 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6501 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6502 $EGREP "$file_magic_regex" > /dev/null; then
6507 *** Warning: the command libtool uses to detect shared libraries,
6508 *** $file_magic_cmd, produces output that libtool cannot recognize.
6509 *** The result is that libtool may fail to recognize shared libraries
6510 *** as such. This will affect the creation of libtool libraries that
6511 *** depend on shared libraries, but programs linked with such libtool
6512 *** libraries will work regardless of this problem. Nevertheless, you
6513 *** may want to report the problem to your system manager and/or to
6514 *** bug-libtool@gnu.org
6524 MAGIC_CMD="$lt_save_MAGIC_CMD"
6529 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6530 if test -n "$MAGIC_CMD"; then
6531 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6532 echo "${ECHO_T}$MAGIC_CMD" >&6
6534 echo "$as_me:$LINENO: result: no" >&5
6535 echo "${ECHO_T}no" >&6
6542 if test -z "$lt_cv_path_MAGIC_CMD"; then
6543 if test -n "$ac_tool_prefix"; then
6544 echo "$as_me:$LINENO: checking for file" >&5
6545 echo $ECHO_N "checking for file... $ECHO_C" >&6
6546 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6547 echo $ECHO_N "(cached) $ECHO_C" >&6
6551 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6554 lt_save_MAGIC_CMD="$MAGIC_CMD"
6555 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6556 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6557 for ac_dir in $ac_dummy; do
6559 test -z "$ac_dir" && ac_dir=.
6560 if test -f $ac_dir/file; then
6561 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6562 if test -n "$file_magic_test_file"; then
6563 case $deplibs_check_method in
6565 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6566 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6567 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6568 $EGREP "$file_magic_regex" > /dev/null; then
6573 *** Warning: the command libtool uses to detect shared libraries,
6574 *** $file_magic_cmd, produces output that libtool cannot recognize.
6575 *** The result is that libtool may fail to recognize shared libraries
6576 *** as such. This will affect the creation of libtool libraries that
6577 *** depend on shared libraries, but programs linked with such libtool
6578 *** libraries will work regardless of this problem. Nevertheless, you
6579 *** may want to report the problem to your system manager and/or to
6580 *** bug-libtool@gnu.org
6590 MAGIC_CMD="$lt_save_MAGIC_CMD"
6595 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6596 if test -n "$MAGIC_CMD"; then
6597 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6598 echo "${ECHO_T}$MAGIC_CMD" >&6
6600 echo "$as_me:$LINENO: result: no" >&5
6601 echo "${ECHO_T}no" >&6
6614 # Use C for the default configuration in the libtool script
6618 ac_cpp='$CPP $CPPFLAGS'
6619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6624 # Source file extension for C test sources.
6627 # Object file extension for compiled C test sources.
6631 # Code to be used in simple compile tests
6632 lt_simple_compile_test_code="int some_variable = 0;"
6634 # Code to be used in simple link tests
6635 lt_simple_link_test_code='int main(){return(0);}'
6643 # If no C compiler was specified, use CC.
6646 # If no C compiler flags were specified, use CFLAGS.
6647 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6649 # Allow CC to be a program name with arguments.
6652 # Save the default compiler, since it gets overwritten when the other
6653 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6654 compiler_DEFAULT=$CC
6656 # save warnings/boilerplate of simple test code
6657 ac_outfile=conftest.$ac_objext
6658 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6659 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6660 _lt_compiler_boilerplate=`cat conftest.err`
6663 ac_outfile=conftest.$ac_objext
6664 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6665 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6666 _lt_linker_boilerplate=`cat conftest.err`
6671 ## There is no encapsulation within the following macros, do not change
6672 ## the running order or otherwise move them around unless you know exactly
6673 ## what you are doing...
6674 if test -n "$compiler"; then
6676 lt_prog_compiler_no_builtin_flag=
6678 if test "$GCC" = yes; then
6679 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6681 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6682 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6683 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6684 echo $ECHO_N "(cached) $ECHO_C" >&6
6686 lt_cv_prog_compiler_rtti_exceptions=no
6687 ac_outfile=conftest.$ac_objext
6688 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6689 lt_compiler_flag="-fno-rtti -fno-exceptions"
6690 # Insert the option either (1) after the last *FLAGS variable, or
6691 # (2) before a word containing "conftest.", or (3) at the end.
6692 # Note that $ac_compile itself does not contain backslashes and begins
6693 # with a dollar sign (not a hyphen), so the echo should work correctly.
6694 # The option is referenced via a variable to avoid confusing sed.
6695 lt_compile=`echo "$ac_compile" | $SED \
6696 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6697 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6698 -e 's:$: $lt_compiler_flag:'`
6699 (eval echo "\"\$as_me:6699: $lt_compile\"" >&5)
6700 (eval "$lt_compile" 2>conftest.err)
6702 cat conftest.err >&5
6703 echo "$as_me:6703: \$? = $ac_status" >&5
6704 if (exit $ac_status) && test -s "$ac_outfile"; then
6705 # The compiler can only warn and ignore the option if not recognized
6706 # So say no if there are warnings other than the usual output.
6707 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6708 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6709 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6710 lt_cv_prog_compiler_rtti_exceptions=yes
6716 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6717 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6719 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6720 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6732 lt_prog_compiler_wl=
6733 lt_prog_compiler_pic=
6734 lt_prog_compiler_static=
6736 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6737 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6739 if test "$GCC" = yes; then
6740 lt_prog_compiler_wl='-Wl,'
6741 lt_prog_compiler_static='-static'
6745 # All AIX code is PIC.
6746 if test "$host_cpu" = ia64; then
6747 # AIX 5 now supports IA64 processor
6748 lt_prog_compiler_static='-Bstatic'
6753 if test "$host_cpu" = m68k; then
6754 # FIXME: we need at least 68020 code to build shared libraries, but
6755 # adding the `-m68020' flag to GCC prevents building anything better,
6757 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6761 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6762 # PIC is the default for these OSes.
6765 mingw* | cygwin* | pw32* | os2*)
6766 # This hack is so that the source file can tell whether it is being
6767 # built for inclusion in a dll (and should export symbols for example).
6768 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6769 # (--disable-auto-import) libraries
6770 lt_prog_compiler_pic='-DDLL_EXPORT'
6773 darwin* | rhapsody*)
6774 # PIC is the default on this platform
6775 # Common symbols not allowed in MH_DYLIB files
6776 lt_prog_compiler_pic='-fno-common'
6780 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6787 lt_prog_compiler_pic='-fPIC'
6793 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6794 # Instead, we relocate shared libraries at runtime.
6798 # Just because we use GCC doesn't mean we suddenly get shared libraries
6799 # on systems that don't support them.
6800 lt_prog_compiler_can_build_shared=no
6805 # QNX uses GNU C++, but need to define -shared option too, otherwise
6807 lt_prog_compiler_pic='-fPIC -shared'
6811 if test -d /usr/nec; then
6812 lt_prog_compiler_pic=-Kconform_pic
6817 lt_prog_compiler_pic='-fPIC'
6821 # PORTME Check for flag to pass linker flags through the system compiler.
6824 lt_prog_compiler_wl='-Wl,'
6825 if test "$host_cpu" = ia64; then
6826 # AIX 5 now supports IA64 processor
6827 lt_prog_compiler_static='-Bstatic'
6829 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6833 # PIC is the default on this platform
6834 # Common symbols not allowed in MH_DYLIB files
6835 case $cc_basename in
6837 lt_prog_compiler_pic='-qnocommon'
6838 lt_prog_compiler_wl='-Wl,'
6843 mingw* | cygwin* | pw32* | os2*)
6844 # This hack is so that the source file can tell whether it is being
6845 # built for inclusion in a dll (and should export symbols for example).
6846 lt_prog_compiler_pic='-DDLL_EXPORT'
6849 hpux9* | hpux10* | hpux11*)
6850 lt_prog_compiler_wl='-Wl,'
6851 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6858 lt_prog_compiler_pic='+Z'
6861 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6862 lt_prog_compiler_static='${wl}-a ${wl}archive'
6865 irix5* | irix6* | nonstopux*)
6866 lt_prog_compiler_wl='-Wl,'
6867 # PIC (with -KPIC) is the default.
6868 lt_prog_compiler_static='-non_shared'
6871 linux* | k*bsd*-gnu)
6872 case $cc_basename in
6874 lt_prog_compiler_wl='-Wl,'
6875 lt_prog_compiler_pic='-KPIC'
6876 lt_prog_compiler_static='-static'
6878 pgcc* | pgf77* | pgf90* | pgf95*)
6879 # Portland Group compilers (*not* the Pentium gcc compiler,
6880 # which looks to be a dead project)
6881 lt_prog_compiler_wl='-Wl,'
6882 lt_prog_compiler_pic='-fpic'
6883 lt_prog_compiler_static='-Bstatic'
6886 lt_prog_compiler_wl='-Wl,'
6887 # All Alpha code is PIC.
6888 lt_prog_compiler_static='-non_shared'
6891 case `$CC -V 2>&1 | sed 5q` in
6894 lt_prog_compiler_pic='-KPIC'
6895 lt_prog_compiler_static='-Bstatic'
6896 lt_prog_compiler_wl='-Wl,'
6899 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6900 lt_prog_compiler_pic='-KPIC'
6901 lt_prog_compiler_static='-Bstatic'
6902 lt_prog_compiler_wl=''
6910 lt_prog_compiler_pic='-KPIC'
6911 lt_prog_compiler_static='-Bstatic'
6915 # QNX uses GNU C++, but need to define -shared option too, otherwise
6917 lt_prog_compiler_pic='-fPIC -shared'
6920 osf3* | osf4* | osf5*)
6921 lt_prog_compiler_wl='-Wl,'
6922 # All OSF/1 code is PIC.
6923 lt_prog_compiler_static='-non_shared'
6927 lt_prog_compiler_static='-non_shared'
6931 lt_prog_compiler_pic='-KPIC'
6932 lt_prog_compiler_static='-Bstatic'
6933 case $cc_basename in
6935 lt_prog_compiler_wl='-Qoption ld ';;
6937 lt_prog_compiler_wl='-Wl,';;
6942 lt_prog_compiler_wl='-Qoption ld '
6943 lt_prog_compiler_pic='-PIC'
6944 lt_prog_compiler_static='-Bstatic'
6947 sysv4 | sysv4.2uw2* | sysv4.3*)
6948 lt_prog_compiler_wl='-Wl,'
6949 lt_prog_compiler_pic='-KPIC'
6950 lt_prog_compiler_static='-Bstatic'
6954 if test -d /usr/nec ;then
6955 lt_prog_compiler_pic='-Kconform_pic'
6956 lt_prog_compiler_static='-Bstatic'
6960 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6961 lt_prog_compiler_wl='-Wl,'
6962 lt_prog_compiler_pic='-KPIC'
6963 lt_prog_compiler_static='-Bstatic'
6967 lt_prog_compiler_wl='-Wl,'
6968 lt_prog_compiler_can_build_shared=no
6972 lt_prog_compiler_pic='-pic'
6973 lt_prog_compiler_static='-Bstatic'
6977 lt_prog_compiler_can_build_shared=no
6983 # For platforms which do not support PIC, -DPIC is meaningless:
6985 lt_prog_compiler_pic=
6988 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6991 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6992 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7000 # Check to make sure the PIC flag actually works.
7002 if test -n "$lt_prog_compiler_pic"; then
7003 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7004 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7005 if test "${lt_prog_compiler_pic_works+set}" = set; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
7008 lt_prog_compiler_pic_works=no
7009 ac_outfile=conftest.$ac_objext
7010 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7011 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7012 # Insert the option either (1) after the last *FLAGS variable, or
7013 # (2) before a word containing "conftest.", or (3) at the end.
7014 # Note that $ac_compile itself does not contain backslashes and begins
7015 # with a dollar sign (not a hyphen), so the echo should work correctly.
7016 # The option is referenced via a variable to avoid confusing sed.
7017 lt_compile=`echo "$ac_compile" | $SED \
7018 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7019 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7020 -e 's:$: $lt_compiler_flag:'`
7021 (eval echo "\"\$as_me:7021: $lt_compile\"" >&5)
7022 (eval "$lt_compile" 2>conftest.err)
7024 cat conftest.err >&5
7025 echo "$as_me:7025: \$? = $ac_status" >&5
7026 if (exit $ac_status) && test -s "$ac_outfile"; then
7027 # The compiler can only warn and ignore the option if not recognized
7028 # So say no if there are warnings other than the usual output.
7029 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7030 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7031 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7032 lt_prog_compiler_pic_works=yes
7038 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7039 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7041 if test x"$lt_prog_compiler_pic_works" = xyes; then
7042 case $lt_prog_compiler_pic in
7044 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7047 lt_prog_compiler_pic=
7048 lt_prog_compiler_can_build_shared=no
7059 # Check to make sure the static flag actually works.
7061 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7062 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7063 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7064 if test "${lt_prog_compiler_static_works+set}" = set; then
7065 echo $ECHO_N "(cached) $ECHO_C" >&6
7067 lt_prog_compiler_static_works=no
7068 save_LDFLAGS="$LDFLAGS"
7069 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7070 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7071 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7072 # The linker can only warn and ignore the option if not recognized
7073 # So say no if there are warnings
7074 if test -s conftest.err; then
7075 # Append any errors to the config.log.
7076 cat conftest.err 1>&5
7077 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7078 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7079 if diff conftest.exp conftest.er2 >/dev/null; then
7080 lt_prog_compiler_static_works=yes
7083 lt_prog_compiler_static_works=yes
7087 LDFLAGS="$save_LDFLAGS"
7090 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7091 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7093 if test x"$lt_prog_compiler_static_works" = xyes; then
7096 lt_prog_compiler_static=
7105 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7106 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7107 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7110 lt_cv_prog_compiler_c_o=no
7111 $RM -r conftest 2>/dev/null
7115 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7117 lt_compiler_flag="-o out/conftest2.$ac_objext"
7118 # Insert the option either (1) after the last *FLAGS variable, or
7119 # (2) before a word containing "conftest.", or (3) at the end.
7120 # Note that $ac_compile itself does not contain backslashes and begins
7121 # with a dollar sign (not a hyphen), so the echo should work correctly.
7122 lt_compile=`echo "$ac_compile" | $SED \
7123 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7124 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7125 -e 's:$: $lt_compiler_flag:'`
7126 (eval echo "\"\$as_me:7126: $lt_compile\"" >&5)
7127 (eval "$lt_compile" 2>out/conftest.err)
7129 cat out/conftest.err >&5
7130 echo "$as_me:7130: \$? = $ac_status" >&5
7131 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7133 # The compiler can only warn and ignore the option if not recognized
7134 # So say no if there are warnings
7135 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7136 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7137 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7138 lt_cv_prog_compiler_c_o=yes
7143 # SGI C++ compiler will create directory out/ii_files/ for
7144 # template instantiation
7145 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7146 $RM out/* && rmdir out
7152 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7153 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7160 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7161 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7162 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7165 lt_cv_prog_compiler_c_o=no
7166 $RM -r conftest 2>/dev/null
7170 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7172 lt_compiler_flag="-o out/conftest2.$ac_objext"
7173 # Insert the option either (1) after the last *FLAGS variable, or
7174 # (2) before a word containing "conftest.", or (3) at the end.
7175 # Note that $ac_compile itself does not contain backslashes and begins
7176 # with a dollar sign (not a hyphen), so the echo should work correctly.
7177 lt_compile=`echo "$ac_compile" | $SED \
7178 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7179 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7180 -e 's:$: $lt_compiler_flag:'`
7181 (eval echo "\"\$as_me:7181: $lt_compile\"" >&5)
7182 (eval "$lt_compile" 2>out/conftest.err)
7184 cat out/conftest.err >&5
7185 echo "$as_me:7185: \$? = $ac_status" >&5
7186 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7188 # The compiler can only warn and ignore the option if not recognized
7189 # So say no if there are warnings
7190 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7191 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7192 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7193 lt_cv_prog_compiler_c_o=yes
7198 # SGI C++ compiler will create directory out/ii_files/ for
7199 # template instantiation
7200 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7201 $RM out/* && rmdir out
7207 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7208 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7213 hard_links="nottested"
7214 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7215 # do not overwrite the value of need_locks provided by the user
7216 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7217 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7220 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7222 ln conftest.a conftest.b 2>&5 || hard_links=no
7223 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7224 echo "$as_me:$LINENO: result: $hard_links" >&5
7225 echo "${ECHO_T}$hard_links" >&6
7226 if test "$hard_links" = no; then
7227 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7228 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7240 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7241 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7244 allow_undefined_flag=
7245 always_export_symbols=no
7247 archive_expsym_cmds=
7248 compiler_needs_object=no
7249 enable_shared_with_static_runtimes=no
7250 export_dynamic_flag_spec=
7251 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7252 hardcode_automatic=no
7254 hardcode_direct_absolute=no
7255 hardcode_libdir_flag_spec=
7256 hardcode_libdir_flag_spec_ld=
7257 hardcode_libdir_separator=
7259 hardcode_shlibpath_var=unsupported
7261 link_all_deplibs=unknown
7264 old_archive_from_new_cmds=
7265 old_archive_from_expsyms_cmds=
7266 thread_safe_flag_spec=
7267 whole_archive_flag_spec=
7268 # include_expsyms should be a list of space-separated symbols to be *always*
7269 # included in the symbol list
7271 # exclude_expsyms can be an extended regexp of symbols to exclude
7272 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7273 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7274 # as well as any symbol that contains `d'.
7275 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7276 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7277 # platforms (ab)use it in PIC code, but their linkers get confused if
7278 # the symbol is explicitly referenced. Since portable code cannot
7279 # rely on this symbol name, it's probably fine to never include it in
7280 # preloaded symbol tables.
7281 extract_expsyms_cmds=
7284 cygwin* | mingw* | pw32*)
7285 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7286 # When not using gcc, we currently assume that we are using
7287 # Microsoft Visual C++.
7288 if test "$GCC" != yes; then
7293 # we just hope/assume this is gcc and not c89 (= MSVC++)
7302 if test "$with_gnu_ld" = yes; then
7303 # If archive_cmds runs LD, not CC, wlarc should be empty
7306 # Set some defaults for GNU ld with shared library support. These
7307 # are reset later if shared libraries are not supported. Putting them
7308 # here allows them to be overridden if necessary.
7309 runpath_var=LD_RUN_PATH
7310 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7311 export_dynamic_flag_spec='${wl}--export-dynamic'
7312 # ancient GNU ld didn't support --whole-archive et. al.
7313 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7314 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7316 whole_archive_flag_spec=
7318 supports_anon_versioning=no
7319 case `$LD -v 2>&1` in
7320 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7321 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7322 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7323 *\ 2.11.*) ;; # other 2.11 versions
7324 *) supports_anon_versioning=yes ;;
7327 # See if GNU ld supports shared libraries.
7330 # On AIX/PPC, the GNU linker is very broken
7331 if test "$host_cpu" != ia64; then
7335 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7336 *** to be unable to reliably create shared libraries on AIX.
7337 *** Therefore, libtool is disabling shared libraries support. If you
7338 *** really care for shared libraries, you may want to modify your PATH
7339 *** so that a non-GNU linker is found, and then restart.
7346 if test "$host_cpu" = m68k; then
7347 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)'
7348 hardcode_libdir_flag_spec='-L$libdir'
7349 hardcode_minus_L=yes
7352 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7353 # that the semantics of dynamic libraries on AmigaOS, at least up
7354 # to version 4, is to share data among multiple programs linked
7355 # with the same dynamic library. Since this doesn't match the
7356 # behavior of shared libraries on other platforms, we can't use
7362 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7363 allow_undefined_flag=unsupported
7364 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7365 # support --undefined. This deserves some investigation. FIXME
7366 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7372 cygwin* | mingw* | pw32*)
7373 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7374 # as there is no search path for DLLs.
7375 hardcode_libdir_flag_spec='-L$libdir'
7376 allow_undefined_flag=unsupported
7377 always_export_symbols=no
7378 enable_shared_with_static_runtimes=yes
7379 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7381 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7382 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7383 # If the export-symbols file already is a .def file (1st line
7384 # is EXPORTS), use it as is; otherwise, prepend...
7385 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7386 cp $export_symbols $output_objdir/$soname.def;
7388 echo EXPORTS > $output_objdir/$soname.def;
7389 cat $export_symbols >> $output_objdir/$soname.def;
7391 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7399 hardcode_shlibpath_var=no
7400 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7401 export_dynamic_flag_spec='${wl}-E'
7402 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7403 # Instead, shared libraries are loaded at an image base (0x10000000 by
7404 # default) and relocated if they conflict, which is a slow very memory
7405 # consuming and fragmenting process. To avoid this, we pick a random,
7406 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7407 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7408 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7409 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'
7412 gnu* | linux* | tpf* | k*bsd*-gnu)
7414 if test "$host_os" = linux-dietlibc; then
7415 case $cc_basename in
7416 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7419 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7420 && test "$tmp_diet" = no
7423 case $cc_basename,$host_cpu in
7424 pgcc*) # Portland Group C compiler
7425 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'
7426 tmp_addflag=' $pic_flag'
7428 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7429 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'
7430 tmp_addflag=' $pic_flag -Mnomain' ;;
7431 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7432 tmp_addflag=' -i_dynamic' ;;
7433 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7434 tmp_addflag=' -i_dynamic -nofor_main' ;;
7435 ifc* | ifort*) # Intel Fortran compiler
7436 tmp_addflag=' -nofor_main' ;;
7438 case `$CC -V 2>&1 | sed 5q` in
7439 *Sun\ C*) # Sun C 5.9
7440 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'
7441 compiler_needs_object=yes
7442 tmp_sharedflag='-G' ;;
7443 *Sun\ F*) # Sun Fortran 8.3
7444 tmp_sharedflag='-G' ;;
7446 tmp_sharedflag='-shared' ;;
7448 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7450 if test "x$supports_anon_versioning" = xyes; then
7451 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7452 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7453 echo "local: *; };" >> $output_objdir/$libname.ver~
7454 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7462 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7463 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7466 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7467 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7472 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7476 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7477 *** create shared libraries on Solaris systems. Therefore, libtool
7478 *** is disabling shared libraries support. We urge you to upgrade GNU
7479 *** binutils to release 2.9.1 or newer. Another option is to modify
7480 *** your PATH or compiler configuration so that the native linker is
7481 *** used, and then restart.
7484 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7485 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7486 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7492 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7493 case `$LD -v 2>&1` in
7494 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7498 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7499 *** reliably create shared libraries on SCO systems. Therefore, libtool
7500 *** is disabling shared libraries support. We urge you to upgrade GNU
7501 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7502 *** your PATH or compiler configuration so that the native linker is
7503 *** used, and then restart.
7508 # For security reasons, it is highly recommended that you always
7509 # use absolute paths for naming shared libraries, and exclude the
7510 # DT_RUNPATH tag from executables and libraries. But doing so
7511 # requires that you compile everything twice, which is a pain.
7512 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7513 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7514 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7515 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7524 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7527 hardcode_shlibpath_var=no
7531 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7532 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7533 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7540 if test "$ld_shlibs" = no; then
7542 hardcode_libdir_flag_spec=
7543 export_dynamic_flag_spec=
7544 whole_archive_flag_spec=
7547 # PORTME fill in a description of your system's linker (not GNU ld)
7550 allow_undefined_flag=unsupported
7551 always_export_symbols=yes
7552 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'
7553 # Note: this linker hardcodes the directories in LIBPATH if there
7554 # are no directories specified by -L.
7555 hardcode_minus_L=yes
7556 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7557 # Neither direct hardcoding nor static linking is supported with a
7559 hardcode_direct=unsupported
7564 if test "$host_cpu" = ia64; then
7565 # On IA64, the linker does run time linking by default, so we don't
7566 # have to do anything special.
7567 aix_use_runtimelinking=no
7568 exp_sym_flag='-Bexport'
7571 # If we're using GNU nm, then we don't want the "-C" option.
7572 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7573 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7574 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'
7576 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'
7578 aix_use_runtimelinking=no
7580 # Test if we are trying to use run time linking or normal
7581 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7582 # need to do runtime linking.
7583 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7584 for ld_flag in $LDFLAGS; do
7585 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7586 aix_use_runtimelinking=yes
7593 exp_sym_flag='-bexport'
7594 no_entry_flag='-bnoentry'
7597 # When large executables or shared objects are built, AIX ld can
7598 # have problems creating the table of contents. If linking a library
7599 # or program results in "error TOC overflow" add -mminimal-toc to
7600 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7601 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7605 hardcode_direct_absolute=yes
7606 hardcode_libdir_separator=':'
7607 link_all_deplibs=yes
7608 file_list_spec='${wl}-f,'
7610 if test "$GCC" = yes; then
7611 case $host_os in aix4.[012]|aix4.[012].*)
7612 # We only want to do this on AIX 4.2 and lower, the check
7613 # below for broken collect2 doesn't work under 4.3+
7614 collect2name=`${CC} -print-prog-name=collect2`
7615 if test -f "$collect2name" &&
7616 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7618 # We have reworked collect2
7621 # We have old collect2
7622 hardcode_direct=unsupported
7623 # It fails to find uninstalled libraries when the uninstalled
7624 # path is not listed in the libpath. Setting hardcode_minus_L
7625 # to unsupported forces relinking
7626 hardcode_minus_L=yes
7627 hardcode_libdir_flag_spec='-L$libdir'
7628 hardcode_libdir_separator=
7632 shared_flag='-shared'
7633 if test "$aix_use_runtimelinking" = yes; then
7634 shared_flag="$shared_flag "'${wl}-G'
7638 if test "$host_cpu" = ia64; then
7639 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7640 # chokes on -Wl,-G. The following line is correct:
7643 if test "$aix_use_runtimelinking" = yes; then
7644 shared_flag='${wl}-G'
7646 shared_flag='${wl}-bM:SRE'
7651 # It seems that -bexpall does not export symbols beginning with
7652 # underscore (_), so it is better to generate a list of symbols to export.
7653 always_export_symbols=yes
7654 if test "$aix_use_runtimelinking" = yes; then
7655 # Warning - without using the other runtime loading flags (-brtl),
7656 # -berok will link without error, but may produce a broken library.
7657 allow_undefined_flag='-berok'
7658 # Determine the default libpath from the value encoded in an
7660 cat >conftest.$ac_ext <<_ACEOF
7663 cat confdefs.h >>conftest.$ac_ext
7664 cat >>conftest.$ac_ext <<_ACEOF
7665 /* end confdefs.h. */
7675 rm -f conftest.$ac_objext conftest$ac_exeext
7676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7677 (eval $ac_link) 2>conftest.er1
7679 grep -v '^ *+' conftest.er1 >conftest.err
7681 cat conftest.err >&5
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); } &&
7684 { ac_try='test -z "$ac_c_werror_flag"
7685 || test ! -s conftest.err'
7686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); }; } &&
7691 { ac_try='test -s conftest$ac_exeext'
7692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); }; }; then
7698 lt_aix_libpath_sed='
7699 /Import File Strings/,/^$/ {
7705 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7706 # Check for a 64-bit object if we didn't find anything.
7707 if test -z "$aix_libpath"; then
7708 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7711 echo "$as_me: failed program was:" >&5
7712 sed 's/^/| /' conftest.$ac_ext >&5
7715 rm -f conftest.err conftest.$ac_objext \
7716 conftest$ac_exeext conftest.$ac_ext
7717 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7719 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7720 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"
7722 if test "$host_cpu" = ia64; then
7723 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7724 allow_undefined_flag="-z nodefs"
7725 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"
7727 # Determine the default libpath from the value encoded in an
7729 cat >conftest.$ac_ext <<_ACEOF
7732 cat confdefs.h >>conftest.$ac_ext
7733 cat >>conftest.$ac_ext <<_ACEOF
7734 /* end confdefs.h. */
7744 rm -f conftest.$ac_objext conftest$ac_exeext
7745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7746 (eval $ac_link) 2>conftest.er1
7748 grep -v '^ *+' conftest.er1 >conftest.err
7750 cat conftest.err >&5
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); } &&
7753 { ac_try='test -z "$ac_c_werror_flag"
7754 || test ! -s conftest.err'
7755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); }; } &&
7760 { ac_try='test -s conftest$ac_exeext'
7761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); }; }; then
7767 lt_aix_libpath_sed='
7768 /Import File Strings/,/^$/ {
7774 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7775 # Check for a 64-bit object if we didn't find anything.
7776 if test -z "$aix_libpath"; then
7777 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7780 echo "$as_me: failed program was:" >&5
7781 sed 's/^/| /' conftest.$ac_ext >&5
7784 rm -f conftest.err conftest.$ac_objext \
7785 conftest$ac_exeext conftest.$ac_ext
7786 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7788 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7789 # Warning - without using the other run time loading flags,
7790 # -berok will link without error, but may produce a broken library.
7791 no_undefined_flag=' ${wl}-bernotok'
7792 allow_undefined_flag=' ${wl}-berok'
7793 # Exported symbols can be pulled into shared objects from archives
7794 whole_archive_flag_spec='$convenience'
7795 archive_cmds_need_lc=yes
7796 # This is similar to how AIX traditionally builds its shared libraries.
7797 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'
7803 if test "$host_cpu" = m68k; then
7804 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)'
7805 hardcode_libdir_flag_spec='-L$libdir'
7806 hardcode_minus_L=yes
7808 # see comment about different semantics on the GNU ld section
7813 export_dynamic_flag_spec=-rdynamic
7816 cygwin* | mingw* | pw32*)
7817 # When not using gcc, we currently assume that we are using
7818 # Microsoft Visual C++.
7819 # hardcode_libdir_flag_spec is actually meaningless, as there is
7820 # no search path for DLLs.
7821 hardcode_libdir_flag_spec=' '
7822 allow_undefined_flag=unsupported
7823 # Tell ltmain to make .lib files, not .a files.
7825 # Tell ltmain to make .dll files, not .so files.
7827 # FIXME: Setting linknames here is a bad hack.
7828 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7829 # The linker will automatically build a .lib file if we build a DLL.
7830 old_archive_from_new_cmds='true'
7831 # FIXME: Should let the user specify the lib program.
7832 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7833 fix_srcfile_path='`cygpath -w "$srcfile"`'
7834 enable_shared_with_static_runtimes=yes
7837 darwin* | rhapsody*)
7839 rhapsody* | darwin1.[012])
7840 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7843 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7845 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7848 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7853 archive_cmds_need_lc=no
7855 hardcode_automatic=yes
7856 hardcode_shlibpath_var=unsupported
7857 whole_archive_flag_spec=''
7858 link_all_deplibs=yes
7859 if test "$GCC" = yes ; then
7860 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7861 echo $ECHO_N "(cached) $ECHO_C" >&6
7863 lt_cv_apple_cc_single_mod=no
7864 if test -z "${LT_MULTI_MODULE}"; then
7865 # By default we will add the -single_module flag. You can override
7866 # by either setting the environment variable LT_MULTI_MODULE
7867 # non-empty at configure time, or by adding -multi-module to the
7869 echo "int foo(void){return 1;}" > conftest.c
7870 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7871 -dynamiclib ${wl}-single_module conftest.c
7872 if test -f libconftest.dylib; then
7873 lt_cv_apple_cc_single_mod=yes
7874 rm libconftest.dylib
7880 output_verbose_link_cmd=echo
7881 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7882 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7883 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}'
7885 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7886 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}'
7888 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7889 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}'
7891 case $cc_basename in
7893 output_verbose_link_cmd=echo
7894 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7895 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7896 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7897 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}'
7898 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}'
7908 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7909 hardcode_libdir_flag_spec='-L$libdir'
7910 hardcode_shlibpath_var=no
7917 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7918 # support. Future versions do this automatically, but an explicit c++rt0.o
7919 # does not break anything, and helps significantly (at the cost of a little
7922 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7923 hardcode_libdir_flag_spec='-R$libdir'
7925 hardcode_shlibpath_var=no
7928 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7930 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7932 hardcode_minus_L=yes
7933 hardcode_shlibpath_var=no
7936 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7937 freebsd* | dragonfly*)
7938 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7939 hardcode_libdir_flag_spec='-R$libdir'
7941 hardcode_shlibpath_var=no
7945 if test "$GCC" = yes; then
7946 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'
7948 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'
7950 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7951 hardcode_libdir_separator=:
7954 # hardcode_minus_L: Not really in the search PATH,
7955 # but as the default location of the library.
7956 hardcode_minus_L=yes
7957 export_dynamic_flag_spec='${wl}-E'
7961 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7962 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7964 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7966 if test "$with_gnu_ld" = no; then
7967 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7968 hardcode_libdir_flag_spec_ld='+b $libdir'
7969 hardcode_libdir_separator=:
7971 hardcode_direct_absolute=yes
7972 export_dynamic_flag_spec='${wl}-E'
7973 # hardcode_minus_L: Not really in the search PATH,
7974 # but as the default location of the library.
7975 hardcode_minus_L=yes
7980 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7983 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7986 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7989 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7995 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7998 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8001 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8005 if test "$with_gnu_ld" = no; then
8006 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8007 hardcode_libdir_separator=:
8012 hardcode_shlibpath_var=no
8016 hardcode_direct_absolute=yes
8017 export_dynamic_flag_spec='${wl}-E'
8019 # hardcode_minus_L: Not really in the search PATH,
8020 # but as the default location of the library.
8021 hardcode_minus_L=yes
8027 irix5* | irix6* | nonstopux*)
8028 if test "$GCC" = yes; then
8029 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'
8030 # Try to use the -exported_symbol ld option, if it does not
8031 # work, assume that -exports_file does not work either and
8032 # implicitly export all symbols.
8033 save_LDFLAGS="$LDFLAGS"
8034 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8035 cat >conftest.$ac_ext <<_ACEOF
8038 rm -f conftest.$ac_objext conftest$ac_exeext
8039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8040 (eval $ac_link) 2>conftest.er1
8042 grep -v '^ *+' conftest.er1 >conftest.err
8044 cat conftest.err >&5
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); } &&
8047 { ac_try='test -z "$ac_c_werror_flag"
8048 || test ! -s conftest.err'
8049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); }; } &&
8054 { ac_try='test -s conftest$ac_exeext'
8055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 (exit $ac_status); }; }; then
8060 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'
8063 echo "$as_me: failed program was:" >&5
8064 sed 's/^/| /' conftest.$ac_ext >&5
8067 rm -f conftest.err conftest.$ac_objext \
8068 conftest$ac_exeext conftest.$ac_ext
8069 LDFLAGS="$save_LDFLAGS"
8071 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'
8072 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'
8074 archive_cmds_need_lc='no'
8075 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8076 hardcode_libdir_separator=:
8078 link_all_deplibs=yes
8082 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8083 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8085 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8087 hardcode_libdir_flag_spec='-R$libdir'
8089 hardcode_shlibpath_var=no
8093 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8095 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8096 hardcode_libdir_separator=:
8097 hardcode_shlibpath_var=no
8105 hardcode_shlibpath_var=no
8106 hardcode_direct_absolute=yes
8107 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8108 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8109 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8110 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8111 export_dynamic_flag_spec='${wl}-E'
8114 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8115 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8116 hardcode_libdir_flag_spec='-R$libdir'
8119 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8120 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8127 hardcode_libdir_flag_spec='-L$libdir'
8128 hardcode_minus_L=yes
8129 allow_undefined_flag=unsupported
8130 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'
8131 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8135 if test "$GCC" = yes; then
8136 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8137 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'
8139 allow_undefined_flag=' -expect_unresolved \*'
8140 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'
8142 archive_cmds_need_lc='no'
8143 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8144 hardcode_libdir_separator=:
8147 osf4* | osf5*) # as osf3* with the addition of -msym flag
8148 if test "$GCC" = yes; then
8149 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8150 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'
8151 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8153 allow_undefined_flag=' -expect_unresolved \*'
8154 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'
8155 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~
8156 $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'
8158 # Both c and cxx compiler support -rpath directly
8159 hardcode_libdir_flag_spec='-rpath $libdir'
8161 archive_cmds_need_lc='no'
8162 hardcode_libdir_separator=:
8166 no_undefined_flag=' -z defs'
8167 if test "$GCC" = yes; then
8169 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8170 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8171 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8173 case `$CC -V 2>&1` in
8176 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8177 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8178 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8182 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8183 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8184 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8188 hardcode_libdir_flag_spec='-R$libdir'
8189 hardcode_shlibpath_var=no
8191 solaris2.[0-5] | solaris2.[0-5].*) ;;
8193 # The compiler driver will combine and reorder linker options,
8194 # but understands `-z linker_flag'. GCC discards it without `$wl',
8195 # but is careful enough not to reorder.
8196 # Supported since Solaris 2.6 (maybe 2.5.1?)
8197 if test "$GCC" = yes; then
8198 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8200 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8204 link_all_deplibs=yes
8208 if test "x$host_vendor" = xsequent; then
8209 # Use $CC to link under sequent, because it throws in some extra .o
8210 # files that make .init and .fini sections work.
8211 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8213 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8215 hardcode_libdir_flag_spec='-L$libdir'
8217 hardcode_minus_L=yes
8218 hardcode_shlibpath_var=no
8222 case $host_vendor in
8224 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8225 hardcode_direct=yes # is this really true???
8228 ## LD is ld it makes a PLAMLIB
8229 ## CC just makes a GrossModule.
8230 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8231 reload_cmds='$CC -r -o $output$reload_objs'
8235 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8236 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8239 runpath_var='LD_RUN_PATH'
8240 hardcode_shlibpath_var=no
8244 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8245 hardcode_shlibpath_var=no
8246 export_dynamic_flag_spec='-Bexport'
8250 if test -d /usr/nec; then
8251 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8252 hardcode_shlibpath_var=no
8253 runpath_var=LD_RUN_PATH
8254 hardcode_runpath_var=yes
8259 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8260 no_undefined_flag='${wl}-z,text'
8261 archive_cmds_need_lc=no
8262 hardcode_shlibpath_var=no
8263 runpath_var='LD_RUN_PATH'
8265 if test "$GCC" = yes; then
8266 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8267 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8269 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8270 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8274 sysv5* | sco3.2v5* | sco5v6*)
8275 # Note: We can NOT use -z defs as we might desire, because we do not
8276 # link with -lc, and that would cause any symbols used from libc to
8277 # always be unresolved, which means just about no library would
8278 # ever link correctly. If we're not using GNU ld we use -z text
8279 # though, which does catch some bad symbols but isn't as heavy-handed
8281 no_undefined_flag='${wl}-z,text'
8282 allow_undefined_flag='${wl}-z,nodefs'
8283 archive_cmds_need_lc=no
8284 hardcode_shlibpath_var=no
8285 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8286 hardcode_libdir_separator=':'
8287 link_all_deplibs=yes
8288 export_dynamic_flag_spec='${wl}-Bexport'
8289 runpath_var='LD_RUN_PATH'
8291 if test "$GCC" = yes; then
8292 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8293 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8295 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8296 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8301 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8302 hardcode_libdir_flag_spec='-L$libdir'
8303 hardcode_shlibpath_var=no
8311 if test x$host_vendor = xsni; then
8313 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8314 export_dynamic_flag_spec='${wl}-Blargedynsym'
8320 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8321 echo "${ECHO_T}$ld_shlibs" >&6
8322 test "$ld_shlibs" = no && can_build_shared=no
8324 with_gnu_ld=$with_gnu_ld
8341 # Do we need to explicitly link libc?
8343 case "x$archive_cmds_need_lc" in
8345 # Assume -lc should be added
8346 archive_cmds_need_lc=yes
8348 if test "$enable_shared" = yes && test "$GCC" = yes; then
8349 case $archive_cmds in
8351 # FIXME: we may have to deal with multi-command sequences.
8354 # Test whether the compiler implicitly links with -lc since on some
8355 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8356 # to ld, don't add -lc before -lgcc.
8357 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8358 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8360 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8363 (eval $ac_compile) 2>&5
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); } 2>conftest.err; then
8369 libobjs=conftest.$ac_objext
8371 wl=$lt_prog_compiler_wl
8372 pic_flag=$lt_prog_compiler_pic
8378 lt_save_allow_undefined_flag=$allow_undefined_flag
8379 allow_undefined_flag=
8380 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8381 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); }
8386 archive_cmds_need_lc=no
8388 archive_cmds_need_lc=yes
8390 allow_undefined_flag=$lt_save_allow_undefined_flag
8392 cat conftest.err 1>&5
8395 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8396 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8559 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8560 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8562 if test "$withGCC" = yes; then
8564 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8565 *) lt_awk_arg="/^libraries:/" ;;
8567 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8568 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8569 # if the path contains ";" then we assume it to be the separator
8570 # otherwise default to the standard path separator (i.e. ":") - it is
8571 # assumed that no part of a normal pathname contains ";" but that should
8572 # okay in the real world where ";" in dirpaths is itself problematic.
8573 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8575 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8577 # Ok, now we have the path, separated by spaces, we can step through it
8578 # and add multilib dir if necessary.
8579 lt_tmp_lt_search_path_spec=
8580 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8581 for lt_sys_path in $lt_search_path_spec; do
8582 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8583 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8585 test -d "$lt_sys_path" && \
8586 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8589 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8590 BEGIN {RS=" "; FS="/|\n";} {
8593 for (lt_i = NF; lt_i > 0; lt_i--) {
8594 if ($lt_i != "" && $lt_i != ".") {
8595 if ($lt_i == "..") {
8598 if (lt_count == 0) {
8599 lt_foo="/" $lt_i lt_foo;
8606 if (lt_foo != "") { lt_freq[lt_foo]++; }
8607 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8609 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8611 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8614 libname_spec='lib$name'
8622 shlibpath_overrides_runpath=unknown
8624 dynamic_linker="$host_os ld.so"
8625 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8626 need_lib_prefix=unknown
8627 hardcode_into_libs=no
8629 # when you set need_version to no, make sure it does not cause -set_version
8630 # flags to be left without arguments
8631 need_version=unknown
8636 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8637 shlibpath_var=LIBPATH
8639 # AIX 3 has no versioning support, so we append a major version to the name.
8640 soname_spec='${libname}${release}${shared_ext}$major'
8647 hardcode_into_libs=yes
8648 if test "$host_cpu" = ia64; then
8649 # AIX 5 supports IA64
8650 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8651 shlibpath_var=LD_LIBRARY_PATH
8653 # With GCC up to 2.95.x, collect2 would create an import file
8654 # for dependence libraries. The import file would start with
8655 # the line `#! .'. This would cause the generated library to
8656 # depend on `.', always an invalid library. This was fixed in
8657 # development snapshots of GCC prior to 3.0.
8659 aix4 | aix4.[01] | aix4.[01].*)
8660 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8662 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8669 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8670 # soname into executable. Probably we can add versioning support to
8671 # collect2, so additional links can be useful in future.
8672 if test "$aix_use_runtimelinking" = yes; then
8673 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8674 # instead of lib<name>.a to let people know that these are not
8675 # typical AIX shared libraries.
8676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8678 # We preserve .a as extension for shared libraries through AIX4.2
8679 # and later when we are not doing run time linking.
8680 library_names_spec='${libname}${release}.a $libname.a'
8681 soname_spec='${libname}${release}${shared_ext}$major'
8683 shlibpath_var=LIBPATH
8688 if test "$host_cpu" = m68k; then
8689 library_names_spec='$libname.ixlibrary $libname.a'
8690 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8691 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'
8698 library_names_spec='${libname}${shared_ext}'
8699 dynamic_linker="$host_os ld.so"
8700 shlibpath_var=LIBRARY_PATH
8706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8707 soname_spec='${libname}${release}${shared_ext}$major'
8708 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8709 shlibpath_var=LD_LIBRARY_PATH
8710 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8711 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8712 # the default ld.so.conf also contains /usr/contrib/lib and
8713 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8714 # libtool to hard-code these into programs
8717 cygwin* | mingw* | pw32*)
8718 version_type=windows
8723 case $withGCC,$host_os in
8724 yes,cygwin* | yes,mingw* | yes,pw32*)
8725 library_names_spec='$libname.dll.a'
8726 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8727 postinstall_cmds='base_file=`basename \${file}`~
8728 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8729 dldir=$destdir/`dirname \$dlpath`~
8730 test -d \$dldir || mkdir -p \$dldir~
8731 $install_prog $dir/$dlname \$dldir/$dlname~
8732 chmod a+x \$dldir/$dlname~
8733 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8734 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8736 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8737 dlpath=$dir/\$dldll~
8739 shlibpath_overrides_runpath=yes
8743 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8744 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8745 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8748 # MinGW DLLs use traditional 'lib' prefix
8749 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8750 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8751 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8752 # It is most probably a Windows format PATH printed by
8753 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8754 # path with ; separators, and with drive letters. We can handle the
8755 # drive letters (cygwin fileutils understands them), so leave them,
8756 # especially as we might pass files found there to a mingw objdump,
8757 # which wouldn't understand a cygwinified path. Ahh.
8758 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8760 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8764 # pw32 DLLs use 'pw' prefix rather than 'lib'
8765 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8771 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8774 dynamic_linker='Win32 ld.exe'
8775 # FIXME: first we should search . and the directory the executable is in
8779 darwin* | rhapsody*)
8780 dynamic_linker="$host_os dyld"
8784 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8785 soname_spec='${libname}${release}${major}$shared_ext'
8786 shlibpath_overrides_runpath=yes
8787 shlibpath_var=DYLD_LIBRARY_PATH
8788 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8790 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8791 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8799 soname_spec='${libname}${release}${shared_ext}$major'
8800 shlibpath_var=LD_LIBRARY_PATH
8807 freebsd* | dragonfly*)
8808 # DragonFly does not have aout. When/if they implement a new
8809 # versioning mechanism, adjust this.
8810 if test -x /usr/bin/objformat; then
8811 objformat=`/usr/bin/objformat`
8814 freebsd[123]*) objformat=aout ;;
8818 version_type=freebsd-$objformat
8819 case $version_type in
8821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8826 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8830 shlibpath_var=LD_LIBRARY_PATH
8833 shlibpath_overrides_runpath=yes
8835 freebsd3.[01]* | freebsdelf3.[01]*)
8836 shlibpath_overrides_runpath=yes
8837 hardcode_into_libs=yes
8839 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8840 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8841 shlibpath_overrides_runpath=no
8842 hardcode_into_libs=yes
8844 *) # from 4.6 on, and DragonFly
8845 shlibpath_overrides_runpath=yes
8846 hardcode_into_libs=yes
8855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8856 soname_spec='${libname}${release}${shared_ext}$major'
8857 shlibpath_var=LD_LIBRARY_PATH
8858 hardcode_into_libs=yes
8861 hpux9* | hpux10* | hpux11*)
8862 # Give a soname corresponding to the major version so that dld.sl refuses to
8863 # link against other versions.
8870 hardcode_into_libs=yes
8871 dynamic_linker="$host_os dld.so"
8872 shlibpath_var=LD_LIBRARY_PATH
8873 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8875 soname_spec='${libname}${release}${shared_ext}$major'
8876 if test "X$HPUX_IA64_MODE" = X32; then
8877 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8879 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8881 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8885 hardcode_into_libs=yes
8886 dynamic_linker="$host_os dld.sl"
8887 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8888 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8890 soname_spec='${libname}${release}${shared_ext}$major'
8891 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8892 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8896 dynamic_linker="$host_os dld.sl"
8897 shlibpath_var=SHLIB_PATH
8898 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8900 soname_spec='${libname}${release}${shared_ext}$major'
8903 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8904 postinstall_cmds='chmod 555 $lib'
8911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8912 soname_spec='${libname}${release}${shared_ext}$major'
8913 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8914 shlibpath_var=LD_LIBRARY_PATH
8915 shlibpath_overrides_runpath=no
8916 hardcode_into_libs=yes
8919 irix5* | irix6* | nonstopux*)
8921 nonstopux*) version_type=nonstopux ;;
8923 if test "$lt_cv_prog_gnu_ld" = yes; then
8931 soname_spec='${libname}${release}${shared_ext}$major'
8932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8934 irix5* | nonstopux*)
8938 case $LD in # libtool.m4 will add one of these switches to LD
8939 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8940 libsuff= shlibsuff= libmagic=32-bit;;
8941 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8942 libsuff=32 shlibsuff=N32 libmagic=N32;;
8943 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8944 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8945 *) libsuff= shlibsuff= libmagic=never-match;;
8949 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8950 shlibpath_overrides_runpath=no
8951 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8952 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8953 hardcode_into_libs=yes
8956 # No shared lib support for Linux oldld, aout, or coff.
8957 linux*oldld* | linux*aout* | linux*coff*)
8961 # This must be Linux ELF.
8962 linux* | k*bsd*-gnu)
8966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8967 soname_spec='${libname}${release}${shared_ext}$major'
8968 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8969 shlibpath_var=LD_LIBRARY_PATH
8970 shlibpath_overrides_runpath=no
8971 # Some binutils ld are patched to set DT_RUNPATH
8972 save_LDFLAGS=$LDFLAGS
8974 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8975 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8976 cat >conftest.$ac_ext <<_ACEOF
8979 cat confdefs.h >>conftest.$ac_ext
8980 cat >>conftest.$ac_ext <<_ACEOF
8981 /* end confdefs.h. */
8991 rm -f conftest.$ac_objext conftest$ac_exeext
8992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8993 (eval $ac_link) 2>conftest.er1
8995 grep -v '^ *+' conftest.er1 >conftest.err
8997 cat conftest.err >&5
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); } &&
9000 { ac_try='test -z "$ac_c_werror_flag"
9001 || test ! -s conftest.err'
9002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); }; } &&
9007 { ac_try='test -s conftest$ac_exeext'
9008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); }; }; then
9013 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9014 shlibpath_overrides_runpath=yes
9018 echo "$as_me: failed program was:" >&5
9019 sed 's/^/| /' conftest.$ac_ext >&5
9022 rm -f conftest.err conftest.$ac_objext \
9023 conftest$ac_exeext conftest.$ac_ext
9024 LDFLAGS=$save_LDFLAGS
9027 # This implies no fast_install, which is unacceptable.
9028 # Some rework will be needed to allow for fast_install
9029 # before this can be enabled.
9030 hardcode_into_libs=yes
9032 # Append ld.so.conf contents to the search path
9033 if test -f /etc/ld.so.conf; then
9034 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' ' '`
9035 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9038 # We used to test for /lib/ld.so.1 and disable shared libraries on
9039 # powerpc, because MkLinux only supported shared libraries with the
9040 # GNU dynamic linker. Since this was broken with cross compilers,
9041 # most powerpc-linux boxes support dynamic linking these days and
9042 # people can always --disable-shared, the test was removed, and we
9043 # assume the GNU/Linux dynamic linker is in use.
9044 dynamic_linker='GNU/Linux ld.so'
9051 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9053 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9054 dynamic_linker='NetBSD (a.out) ld.so'
9056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9057 soname_spec='${libname}${release}${shared_ext}$major'
9058 dynamic_linker='NetBSD ld.elf_so'
9060 shlibpath_var=LD_LIBRARY_PATH
9061 shlibpath_overrides_runpath=yes
9062 hardcode_into_libs=yes
9067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9068 shlibpath_var=LD_LIBRARY_PATH
9069 shlibpath_overrides_runpath=yes
9076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9077 soname_spec='${libname}${release}${shared_ext}$major'
9078 shlibpath_var=LD_LIBRARY_PATH
9079 shlibpath_overrides_runpath=no
9080 hardcode_into_libs=yes
9081 dynamic_linker='ldqnx.so'
9086 sys_lib_dlsearch_path_spec="/usr/lib"
9088 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9090 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9091 *) need_version=no ;;
9093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9094 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9095 shlibpath_var=LD_LIBRARY_PATH
9096 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9098 openbsd2.[89] | openbsd2.[89].*)
9099 shlibpath_overrides_runpath=no
9102 shlibpath_overrides_runpath=yes
9106 shlibpath_overrides_runpath=yes
9111 libname_spec='$name'
9114 library_names_spec='$libname${shared_ext} $libname.a'
9115 dynamic_linker='OS/2 ld.exe'
9116 shlibpath_var=LIBPATH
9119 osf3* | osf4* | osf5*)
9123 soname_spec='${libname}${release}${shared_ext}$major'
9124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9125 shlibpath_var=LD_LIBRARY_PATH
9126 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9127 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9139 soname_spec='${libname}${release}${shared_ext}$major'
9140 shlibpath_var=LD_LIBRARY_PATH
9141 shlibpath_overrides_runpath=yes
9142 hardcode_into_libs=yes
9143 # ldd complains unless libraries are executable
9144 postinstall_cmds='chmod +x $lib'
9149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9150 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9151 shlibpath_var=LD_LIBRARY_PATH
9152 shlibpath_overrides_runpath=yes
9153 if test "$with_gnu_ld" = yes; then
9161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9162 soname_spec='${libname}${release}${shared_ext}$major'
9163 shlibpath_var=LD_LIBRARY_PATH
9164 case $host_vendor in
9166 shlibpath_overrides_runpath=no
9168 runpath_var=LD_RUN_PATH
9176 shlibpath_overrides_runpath=no
9177 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9183 if test -d /usr/nec ;then
9185 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9186 soname_spec='$libname${shared_ext}.$major'
9187 shlibpath_var=LD_LIBRARY_PATH
9191 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9192 version_type=freebsd-elf
9195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9196 soname_spec='${libname}${release}${shared_ext}$major'
9197 shlibpath_var=LD_LIBRARY_PATH
9198 shlibpath_overrides_runpath=yes
9199 hardcode_into_libs=yes
9200 if test "$with_gnu_ld" = yes; then
9201 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9203 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9206 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9210 sys_lib_dlsearch_path_spec='/usr/lib'
9214 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9218 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9219 shlibpath_var=LD_LIBRARY_PATH
9220 shlibpath_overrides_runpath=no
9221 hardcode_into_libs=yes
9226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9227 soname_spec='${libname}${release}${shared_ext}$major'
9228 shlibpath_var=LD_LIBRARY_PATH
9235 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9236 echo "${ECHO_T}$dynamic_linker" >&6
9237 test "$dynamic_linker" = no && can_build_shared=no
9239 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9240 if test "$GCC" = yes; then
9241 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9330 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9331 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9333 if test -n "$hardcode_libdir_flag_spec" ||
9334 test -n "$runpath_var" ||
9335 test "X$hardcode_automatic" = "Xyes" ; then
9337 # We can hardcode non-existent directories.
9338 if test "$hardcode_direct" != no &&
9339 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9340 # have to relink, otherwise we might link with an installed library
9341 # when we should be linking with a yet-to-be-installed one
9342 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9343 test "$hardcode_minus_L" != no; then
9344 # Linking always hardcodes the temporary library directory.
9345 hardcode_action=relink
9347 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9348 hardcode_action=immediate
9351 # We cannot hardcode anything, or else we can only hardcode existing
9353 hardcode_action=unsupported
9355 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9356 echo "${ECHO_T}$hardcode_action" >&6
9358 if test "$hardcode_action" = relink ||
9359 test "$inherit_rpath" = yes; then
9360 # Fast installation is not supported
9361 enable_fast_install=no
9362 elif test "$shlibpath_overrides_runpath" = yes ||
9363 test "$enable_shared" = no; then
9364 # Fast installation is not necessary
9365 enable_fast_install=needless
9373 if test "x$enable_dlopen" != xyes; then
9374 enable_dlopen=unknown
9375 enable_dlopen_self=unknown
9376 enable_dlopen_self_static=unknown
9383 lt_cv_dlopen="load_add_on"
9385 lt_cv_dlopen_self=yes
9389 lt_cv_dlopen="LoadLibrary"
9394 lt_cv_dlopen="dlopen"
9399 # if libdl is installed we need to link against it
9400 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9401 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9402 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9403 echo $ECHO_N "(cached) $ECHO_C" >&6
9405 ac_check_lib_save_LIBS=$LIBS
9407 cat >conftest.$ac_ext <<_ACEOF
9410 cat confdefs.h >>conftest.$ac_ext
9411 cat >>conftest.$ac_ext <<_ACEOF
9412 /* end confdefs.h. */
9414 /* Override any gcc2 internal prototype to avoid an error. */
9418 /* We use char because int might match the return type of a gcc2
9419 builtin and then its argument prototype would still apply. */
9429 rm -f conftest.$ac_objext conftest$ac_exeext
9430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9431 (eval $ac_link) 2>conftest.er1
9433 grep -v '^ *+' conftest.er1 >conftest.err
9435 cat conftest.err >&5
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); } &&
9438 { ac_try='test -z "$ac_c_werror_flag"
9439 || test ! -s conftest.err'
9440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); }; } &&
9445 { ac_try='test -s conftest$ac_exeext'
9446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450 (exit $ac_status); }; }; then
9451 ac_cv_lib_dl_dlopen=yes
9453 echo "$as_me: failed program was:" >&5
9454 sed 's/^/| /' conftest.$ac_ext >&5
9456 ac_cv_lib_dl_dlopen=no
9458 rm -f conftest.err conftest.$ac_objext \
9459 conftest$ac_exeext conftest.$ac_ext
9460 LIBS=$ac_check_lib_save_LIBS
9462 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9463 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9464 if test $ac_cv_lib_dl_dlopen = yes; then
9465 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9470 lt_cv_dlopen_self=yes
9477 echo "$as_me:$LINENO: checking for shl_load" >&5
9478 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9479 if test "${ac_cv_func_shl_load+set}" = set; then
9480 echo $ECHO_N "(cached) $ECHO_C" >&6
9482 cat >conftest.$ac_ext <<_ACEOF
9485 cat confdefs.h >>conftest.$ac_ext
9486 cat >>conftest.$ac_ext <<_ACEOF
9487 /* end confdefs.h. */
9488 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9490 #define shl_load innocuous_shl_load
9492 /* System header to define __stub macros and hopefully few prototypes,
9493 which can conflict with char shl_load (); below.
9494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9495 <limits.h> exists even on freestanding compilers. */
9498 # include <limits.h>
9500 # include <assert.h>
9505 /* Override any gcc2 internal prototype to avoid an error. */
9510 /* We use char because int might match the return type of a gcc2
9511 builtin and then its argument prototype would still apply. */
9513 /* The GNU C library defines this for functions which it implements
9514 to always fail with ENOSYS. Some functions are actually named
9515 something starting with __ and the normal name is an alias. */
9516 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9519 char (*f) () = shl_load;
9528 return f != shl_load;
9533 rm -f conftest.$ac_objext conftest$ac_exeext
9534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9535 (eval $ac_link) 2>conftest.er1
9537 grep -v '^ *+' conftest.er1 >conftest.err
9539 cat conftest.err >&5
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); } &&
9542 { ac_try='test -z "$ac_c_werror_flag"
9543 || test ! -s conftest.err'
9544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); }; } &&
9549 { ac_try='test -s conftest$ac_exeext'
9550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); }; }; then
9555 ac_cv_func_shl_load=yes
9557 echo "$as_me: failed program was:" >&5
9558 sed 's/^/| /' conftest.$ac_ext >&5
9560 ac_cv_func_shl_load=no
9562 rm -f conftest.err conftest.$ac_objext \
9563 conftest$ac_exeext conftest.$ac_ext
9565 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9566 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9567 if test $ac_cv_func_shl_load = yes; then
9568 lt_cv_dlopen="shl_load"
9570 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9571 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9572 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9573 echo $ECHO_N "(cached) $ECHO_C" >&6
9575 ac_check_lib_save_LIBS=$LIBS
9577 cat >conftest.$ac_ext <<_ACEOF
9580 cat confdefs.h >>conftest.$ac_ext
9581 cat >>conftest.$ac_ext <<_ACEOF
9582 /* end confdefs.h. */
9584 /* Override any gcc2 internal prototype to avoid an error. */
9588 /* We use char because int might match the return type of a gcc2
9589 builtin and then its argument prototype would still apply. */
9599 rm -f conftest.$ac_objext conftest$ac_exeext
9600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9601 (eval $ac_link) 2>conftest.er1
9603 grep -v '^ *+' conftest.er1 >conftest.err
9605 cat conftest.err >&5
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); } &&
9608 { ac_try='test -z "$ac_c_werror_flag"
9609 || test ! -s conftest.err'
9610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); }; } &&
9615 { ac_try='test -s conftest$ac_exeext'
9616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); }; }; then
9621 ac_cv_lib_dld_shl_load=yes
9623 echo "$as_me: failed program was:" >&5
9624 sed 's/^/| /' conftest.$ac_ext >&5
9626 ac_cv_lib_dld_shl_load=no
9628 rm -f conftest.err conftest.$ac_objext \
9629 conftest$ac_exeext conftest.$ac_ext
9630 LIBS=$ac_check_lib_save_LIBS
9632 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9633 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9634 if test $ac_cv_lib_dld_shl_load = yes; then
9635 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9637 echo "$as_me:$LINENO: checking for dlopen" >&5
9638 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9639 if test "${ac_cv_func_dlopen+set}" = set; then
9640 echo $ECHO_N "(cached) $ECHO_C" >&6
9642 cat >conftest.$ac_ext <<_ACEOF
9645 cat confdefs.h >>conftest.$ac_ext
9646 cat >>conftest.$ac_ext <<_ACEOF
9647 /* end confdefs.h. */
9648 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9650 #define dlopen innocuous_dlopen
9652 /* System header to define __stub macros and hopefully few prototypes,
9653 which can conflict with char dlopen (); below.
9654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9655 <limits.h> exists even on freestanding compilers. */
9658 # include <limits.h>
9660 # include <assert.h>
9665 /* Override any gcc2 internal prototype to avoid an error. */
9670 /* We use char because int might match the return type of a gcc2
9671 builtin and then its argument prototype would still apply. */
9673 /* The GNU C library defines this for functions which it implements
9674 to always fail with ENOSYS. Some functions are actually named
9675 something starting with __ and the normal name is an alias. */
9676 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9679 char (*f) () = dlopen;
9693 rm -f conftest.$ac_objext conftest$ac_exeext
9694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9695 (eval $ac_link) 2>conftest.er1
9697 grep -v '^ *+' conftest.er1 >conftest.err
9699 cat conftest.err >&5
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); } &&
9702 { ac_try='test -z "$ac_c_werror_flag"
9703 || test ! -s conftest.err'
9704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); }; } &&
9709 { ac_try='test -s conftest$ac_exeext'
9710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); }; }; then
9715 ac_cv_func_dlopen=yes
9717 echo "$as_me: failed program was:" >&5
9718 sed 's/^/| /' conftest.$ac_ext >&5
9720 ac_cv_func_dlopen=no
9722 rm -f conftest.err conftest.$ac_objext \
9723 conftest$ac_exeext conftest.$ac_ext
9725 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9726 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9727 if test $ac_cv_func_dlopen = yes; then
9728 lt_cv_dlopen="dlopen"
9730 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9731 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9732 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9733 echo $ECHO_N "(cached) $ECHO_C" >&6
9735 ac_check_lib_save_LIBS=$LIBS
9737 cat >conftest.$ac_ext <<_ACEOF
9740 cat confdefs.h >>conftest.$ac_ext
9741 cat >>conftest.$ac_ext <<_ACEOF
9742 /* end confdefs.h. */
9744 /* Override any gcc2 internal prototype to avoid an error. */
9748 /* We use char because int might match the return type of a gcc2
9749 builtin and then its argument prototype would still apply. */
9759 rm -f conftest.$ac_objext conftest$ac_exeext
9760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9761 (eval $ac_link) 2>conftest.er1
9763 grep -v '^ *+' conftest.er1 >conftest.err
9765 cat conftest.err >&5
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); } &&
9768 { ac_try='test -z "$ac_c_werror_flag"
9769 || test ! -s conftest.err'
9770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); }; } &&
9775 { ac_try='test -s conftest$ac_exeext'
9776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); }; }; then
9781 ac_cv_lib_dl_dlopen=yes
9783 echo "$as_me: failed program was:" >&5
9784 sed 's/^/| /' conftest.$ac_ext >&5
9786 ac_cv_lib_dl_dlopen=no
9788 rm -f conftest.err conftest.$ac_objext \
9789 conftest$ac_exeext conftest.$ac_ext
9790 LIBS=$ac_check_lib_save_LIBS
9792 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9793 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9794 if test $ac_cv_lib_dl_dlopen = yes; then
9795 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9797 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9798 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9799 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9800 echo $ECHO_N "(cached) $ECHO_C" >&6
9802 ac_check_lib_save_LIBS=$LIBS
9804 cat >conftest.$ac_ext <<_ACEOF
9807 cat confdefs.h >>conftest.$ac_ext
9808 cat >>conftest.$ac_ext <<_ACEOF
9809 /* end confdefs.h. */
9811 /* Override any gcc2 internal prototype to avoid an error. */
9815 /* We use char because int might match the return type of a gcc2
9816 builtin and then its argument prototype would still apply. */
9826 rm -f conftest.$ac_objext conftest$ac_exeext
9827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9828 (eval $ac_link) 2>conftest.er1
9830 grep -v '^ *+' conftest.er1 >conftest.err
9832 cat conftest.err >&5
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); } &&
9835 { ac_try='test -z "$ac_c_werror_flag"
9836 || test ! -s conftest.err'
9837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); }; } &&
9842 { ac_try='test -s conftest$ac_exeext'
9843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); }; }; then
9848 ac_cv_lib_svld_dlopen=yes
9850 echo "$as_me: failed program was:" >&5
9851 sed 's/^/| /' conftest.$ac_ext >&5
9853 ac_cv_lib_svld_dlopen=no
9855 rm -f conftest.err conftest.$ac_objext \
9856 conftest$ac_exeext conftest.$ac_ext
9857 LIBS=$ac_check_lib_save_LIBS
9859 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9860 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9861 if test $ac_cv_lib_svld_dlopen = yes; then
9862 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9864 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9865 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9866 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9867 echo $ECHO_N "(cached) $ECHO_C" >&6
9869 ac_check_lib_save_LIBS=$LIBS
9871 cat >conftest.$ac_ext <<_ACEOF
9874 cat confdefs.h >>conftest.$ac_ext
9875 cat >>conftest.$ac_ext <<_ACEOF
9876 /* end confdefs.h. */
9878 /* Override any gcc2 internal prototype to avoid an error. */
9882 /* We use char because int might match the return type of a gcc2
9883 builtin and then its argument prototype would still apply. */
9893 rm -f conftest.$ac_objext conftest$ac_exeext
9894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9895 (eval $ac_link) 2>conftest.er1
9897 grep -v '^ *+' conftest.er1 >conftest.err
9899 cat conftest.err >&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); } &&
9902 { ac_try='test -z "$ac_c_werror_flag"
9903 || test ! -s conftest.err'
9904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); }; } &&
9909 { ac_try='test -s conftest$ac_exeext'
9910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); }; }; then
9915 ac_cv_lib_dld_dld_link=yes
9917 echo "$as_me: failed program was:" >&5
9918 sed 's/^/| /' conftest.$ac_ext >&5
9920 ac_cv_lib_dld_dld_link=no
9922 rm -f conftest.err conftest.$ac_objext \
9923 conftest$ac_exeext conftest.$ac_ext
9924 LIBS=$ac_check_lib_save_LIBS
9926 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9927 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9928 if test $ac_cv_lib_dld_dld_link = yes; then
9929 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9950 if test "x$lt_cv_dlopen" != xno; then
9956 case $lt_cv_dlopen in
9958 save_CPPFLAGS="$CPPFLAGS"
9959 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9961 save_LDFLAGS="$LDFLAGS"
9962 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9965 LIBS="$lt_cv_dlopen_libs $LIBS"
9967 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9968 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9969 if test "${lt_cv_dlopen_self+set}" = set; then
9970 echo $ECHO_N "(cached) $ECHO_C" >&6
9972 if test "$cross_compiling" = yes; then :
9973 lt_cv_dlopen_self=cross
9975 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9976 lt_status=$lt_dlunknown
9977 cat > conftest.$ac_ext <<_LT_EOF
9978 #line 9978 "configure"
9979 #include "confdefs.h"
9988 # define LT_DLGLOBAL RTLD_GLOBAL
9991 # define LT_DLGLOBAL DL_GLOBAL
9993 # define LT_DLGLOBAL 0
9997 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9998 find out it does not work in some platform. */
9999 #ifndef LT_DLLAZY_OR_NOW
10001 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10004 # define LT_DLLAZY_OR_NOW DL_LAZY
10007 # define LT_DLLAZY_OR_NOW RTLD_NOW
10010 # define LT_DLLAZY_OR_NOW DL_NOW
10012 # define LT_DLLAZY_OR_NOW 0
10020 extern "C" void exit (int);
10023 void fnord() { int i=42;}
10026 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10027 int status = $lt_dlunknown;
10031 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10032 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10033 /* dlclose (self); */
10041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10042 (eval $ac_link) 2>&5
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10046 (./conftest; exit; ) >&5 2>/dev/null
10048 case x$lt_status in
10049 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10050 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10051 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10054 # compilation failed
10055 lt_cv_dlopen_self=no
10062 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10063 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10065 if test "x$lt_cv_dlopen_self" = xyes; then
10066 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10067 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10068 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10069 if test "${lt_cv_dlopen_self_static+set}" = set; then
10070 echo $ECHO_N "(cached) $ECHO_C" >&6
10072 if test "$cross_compiling" = yes; then :
10073 lt_cv_dlopen_self_static=cross
10075 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10076 lt_status=$lt_dlunknown
10077 cat > conftest.$ac_ext <<_LT_EOF
10078 #line 10078 "configure"
10079 #include "confdefs.h"
10088 # define LT_DLGLOBAL RTLD_GLOBAL
10091 # define LT_DLGLOBAL DL_GLOBAL
10093 # define LT_DLGLOBAL 0
10097 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10098 find out it does not work in some platform. */
10099 #ifndef LT_DLLAZY_OR_NOW
10101 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10104 # define LT_DLLAZY_OR_NOW DL_LAZY
10107 # define LT_DLLAZY_OR_NOW RTLD_NOW
10110 # define LT_DLLAZY_OR_NOW DL_NOW
10112 # define LT_DLLAZY_OR_NOW 0
10120 extern "C" void exit (int);
10123 void fnord() { int i=42;}
10126 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10127 int status = $lt_dlunknown;
10131 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10132 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10133 /* dlclose (self); */
10141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10142 (eval $ac_link) 2>&5
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10146 (./conftest; exit; ) >&5 2>/dev/null
10148 case x$lt_status in
10149 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10150 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10151 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10154 # compilation failed
10155 lt_cv_dlopen_self_static=no
10162 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10163 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10166 CPPFLAGS="$save_CPPFLAGS"
10167 LDFLAGS="$save_LDFLAGS"
10172 case $lt_cv_dlopen_self in
10173 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10174 *) enable_dlopen_self=unknown ;;
10177 case $lt_cv_dlopen_self_static in
10178 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10179 *) enable_dlopen_self_static=unknown ;;
10201 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10202 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10203 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10204 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10205 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10206 echo "$as_me:$LINENO: result: yes" >&5
10207 echo "${ECHO_T}yes" >&6
10209 # FIXME - insert some real tests, host_os isn't really good enough
10212 if test -n "$STRIP" ; then
10213 striplib="$STRIP -x"
10214 old_striplib="$STRIP -S"
10215 echo "$as_me:$LINENO: result: yes" >&5
10216 echo "${ECHO_T}yes" >&6
10218 echo "$as_me:$LINENO: result: no" >&5
10219 echo "${ECHO_T}no" >&6
10223 echo "$as_me:$LINENO: result: no" >&5
10224 echo "${ECHO_T}no" >&6
10240 # Report which library types will actually be built
10241 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10242 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10243 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10244 echo "${ECHO_T}$can_build_shared" >&6
10246 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10247 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10248 test "$can_build_shared" = "no" && enable_shared=no
10250 # On AIX, shared libraries and static libraries use the same namespace, and
10251 # are all built from PIC.
10254 test "$enable_shared" = yes && enable_static=no
10255 if test -n "$RANLIB"; then
10256 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10257 postinstall_cmds='$RANLIB $lib'
10262 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10263 test "$enable_shared" = yes && enable_static=no
10267 echo "$as_me:$LINENO: result: $enable_shared" >&5
10268 echo "${ECHO_T}$enable_shared" >&6
10270 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10271 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10272 # Make sure either enable_shared or enable_static is yes.
10273 test "$enable_shared" = yes || enable_static=yes
10274 echo "$as_me:$LINENO: result: $enable_static" >&5
10275 echo "${ECHO_T}$enable_static" >&6
10282 ac_cpp='$CPP $CPPFLAGS'
10283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10301 ac_config_commands="$ac_config_commands libtool"
10306 # Only expand once:
10310 # Check whether --enable-targets or --disable-targets was given.
10311 if test "${enable_targets+set}" = set; then
10312 enableval="$enable_targets"
10313 case "${enableval}" in
10314 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10315 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10316 { (exit 1); exit 1; }; }
10318 no) enable_targets= ;;
10319 *) enable_targets=$enableval ;;
10322 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10323 if test "${enable_commonbfdlib+set}" = set; then
10324 enableval="$enable_commonbfdlib"
10325 case "${enableval}" in
10326 yes) commonbfdlib=true ;;
10327 no) commonbfdlib=false ;;
10328 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
10329 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10330 { (exit 1); exit 1; }; } ;;
10334 if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then
10337 # Check whether --enable-checking or --disable-checking was given.
10338 if test "${enable_checking+set}" = set; then
10339 enableval="$enable_checking"
10340 case "${enableval}" in
10341 no|none) ac_checking= ;;
10342 *) ac_checking=yes ;;
10344 fi; if test x$ac_checking != x ; then
10346 cat >>confdefs.h <<\_ACEOF
10347 #define ENABLE_CHECKING 1
10355 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10357 # Check whether --enable-werror or --disable-werror was given.
10358 if test "${enable_werror+set}" = set; then
10359 enableval="$enable_werror"
10360 case "${enableval}" in
10361 yes | y) ERROR_ON_WARNING="yes" ;;
10362 no | n) ERROR_ON_WARNING="no" ;;
10363 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10364 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10365 { (exit 1); exit 1; }; } ;;
10369 # Enable -Wno-format by default when using gcc on mingw
10372 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10373 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
10379 # Enable -Werror by default when using gcc
10380 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10381 ERROR_ON_WARNING=yes
10385 if test "${ERROR_ON_WARNING}" = yes ; then
10386 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10387 NO_WERROR="-Wno-error"
10390 if test "${GCC}" = yes ; then
10391 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10394 # Check whether --enable-build-warnings or --disable-build-warnings was given.
10395 if test "${enable_build_warnings+set}" = set; then
10396 enableval="$enable_build_warnings"
10397 case "${enableval}" in
10398 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10399 no) if test "${GCC}" = yes ; then
10402 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10403 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10404 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10405 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10406 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10410 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10411 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
10418 # Generate a header file
10419 ac_config_headers="$ac_config_headers config.h:config.in"
10422 # If we are on a DOS filesystem, we must use gdb.ini rather than
10425 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
10427 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
10432 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
10438 #We need this for the host. BOUT header is in host order.
10439 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
10440 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
10441 if test "${ac_cv_c_bigendian+set}" = set; then
10442 echo $ECHO_N "(cached) $ECHO_C" >&6
10444 # See if sys/param.h defines the BYTE_ORDER macro.
10445 cat >conftest.$ac_ext <<_ACEOF
10448 cat confdefs.h >>conftest.$ac_ext
10449 cat >>conftest.$ac_ext <<_ACEOF
10450 /* end confdefs.h. */
10451 #include <sys/types.h>
10452 #include <sys/param.h>
10457 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10458 bogus endian macros
10465 rm -f conftest.$ac_objext
10466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10467 (eval $ac_compile) 2>conftest.er1
10469 grep -v '^ *+' conftest.er1 >conftest.err
10471 cat conftest.err >&5
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); } &&
10474 { ac_try='test -z "$ac_c_werror_flag"
10475 || test ! -s conftest.err'
10476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10477 (eval $ac_try) 2>&5
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); }; } &&
10481 { ac_try='test -s conftest.$ac_objext'
10482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10483 (eval $ac_try) 2>&5
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); }; }; then
10487 # It does; now see whether it defined to BIG_ENDIAN or not.
10488 cat >conftest.$ac_ext <<_ACEOF
10491 cat confdefs.h >>conftest.$ac_ext
10492 cat >>conftest.$ac_ext <<_ACEOF
10493 /* end confdefs.h. */
10494 #include <sys/types.h>
10495 #include <sys/param.h>
10500 #if BYTE_ORDER != BIG_ENDIAN
10508 rm -f conftest.$ac_objext
10509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10510 (eval $ac_compile) 2>conftest.er1
10512 grep -v '^ *+' conftest.er1 >conftest.err
10514 cat conftest.err >&5
10515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516 (exit $ac_status); } &&
10517 { ac_try='test -z "$ac_c_werror_flag"
10518 || test ! -s conftest.err'
10519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10520 (eval $ac_try) 2>&5
10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 (exit $ac_status); }; } &&
10524 { ac_try='test -s conftest.$ac_objext'
10525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10526 (eval $ac_try) 2>&5
10528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529 (exit $ac_status); }; }; then
10530 ac_cv_c_bigendian=yes
10532 echo "$as_me: failed program was:" >&5
10533 sed 's/^/| /' conftest.$ac_ext >&5
10535 ac_cv_c_bigendian=no
10537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10539 echo "$as_me: failed program was:" >&5
10540 sed 's/^/| /' conftest.$ac_ext >&5
10542 # It does not; compile a test program.
10543 if test "$cross_compiling" = yes; then
10544 # try to guess the endianness by grepping values into an object file
10545 ac_cv_c_bigendian=unknown
10546 cat >conftest.$ac_ext <<_ACEOF
10549 cat confdefs.h >>conftest.$ac_ext
10550 cat >>conftest.$ac_ext <<_ACEOF
10551 /* end confdefs.h. */
10552 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10553 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10554 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
10555 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10556 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10557 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
10561 _ascii (); _ebcdic ();
10566 rm -f conftest.$ac_objext
10567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10568 (eval $ac_compile) 2>conftest.er1
10570 grep -v '^ *+' conftest.er1 >conftest.err
10572 cat conftest.err >&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); } &&
10575 { ac_try='test -z "$ac_c_werror_flag"
10576 || test ! -s conftest.err'
10577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10578 (eval $ac_try) 2>&5
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); }; } &&
10582 { ac_try='test -s conftest.$ac_objext'
10583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10584 (eval $ac_try) 2>&5
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); }; }; then
10588 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
10589 ac_cv_c_bigendian=yes
10591 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10592 if test "$ac_cv_c_bigendian" = unknown; then
10593 ac_cv_c_bigendian=no
10595 # finding both strings is unlikely to happen, but who knows?
10596 ac_cv_c_bigendian=unknown
10600 echo "$as_me: failed program was:" >&5
10601 sed 's/^/| /' conftest.$ac_ext >&5
10604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10606 cat >conftest.$ac_ext <<_ACEOF
10609 cat confdefs.h >>conftest.$ac_ext
10610 cat >>conftest.$ac_ext <<_ACEOF
10611 /* end confdefs.h. */
10615 /* Are we little or big endian? From Harbison&Steele. */
10619 char c[sizeof (long)];
10622 exit (u.c[sizeof (long) - 1] == 1);
10625 rm -f conftest$ac_exeext
10626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10627 (eval $ac_link) 2>&5
10629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10632 (eval $ac_try) 2>&5
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); }; }; then
10636 ac_cv_c_bigendian=no
10638 echo "$as_me: program exited with status $ac_status" >&5
10639 echo "$as_me: failed program was:" >&5
10640 sed 's/^/| /' conftest.$ac_ext >&5
10642 ( exit $ac_status )
10643 ac_cv_c_bigendian=yes
10645 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10650 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
10651 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
10652 case $ac_cv_c_bigendian in
10655 cat >>confdefs.h <<\_ACEOF
10656 #define WORDS_BIGENDIAN 1
10662 { { echo "$as_me:$LINENO: error: unknown endianness
10663 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
10664 echo "$as_me: error: unknown endianness
10665 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
10666 { (exit 1); exit 1; }; } ;;
10672 # Makefile target for installing gas in $(tooldir)/bin.
10673 install_tooldir=install-exec-tooldir
10677 if test -n "$enable_targets" ; then
10678 for t in `echo $enable_targets | sed 's/,/ /g'`; do
10679 if test $t = "all"; then
10683 result=`$ac_config_sub $t 2>/dev/null`
10684 if test -n "$result" ; then
10685 canon_targets="$canon_targets $result"
10687 # # Permit "all", etc. We don't support it yet though.
10688 # canon_targets="$canon_targets $t"
10691 _gas_uniq_list="$canon_targets"
10692 _gas_uniq_newlist=""
10693 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
10694 case $_gas_uniq_i in
10695 _gas_uniq_dummy) ;;
10696 *) case " $_gas_uniq_newlist " in
10697 *" $_gas_uniq_i "*) ;;
10698 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
10702 canon_targets=$_gas_uniq_newlist
10708 for this_target in $target $canon_targets ; do
10710 targ=${this_target}
10711 . ${srcdir}/configure.tgt
10713 case ${target_cpu} in
10716 cat >>confdefs.h <<_ACEOF
10717 #define DEFAULT_CRIS_ARCH $arch
10723 if test ${this_target} = $target ; then
10724 target_cpu_type=${cpu_type}
10725 elif test ${target_cpu_type} != ${cpu_type} ; then
10729 generic_target=${cpu_type}-${target_vendor}-${target_os}
10730 case ${generic_target} in
10732 if test ${this_target} = $target; then
10734 cat >>confdefs.h <<\_ACEOF
10741 i386-*-msdosdjgpp* \
10743 | i386-go32-rtems*)
10745 cat >>confdefs.h <<\_ACEOF
10746 #define STRICTCOFF 1
10752 { echo "$as_me:$LINENO: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
10753 echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
10759 { { echo "$as_me:$LINENO: error: Unknown vendor for mips-bsd configuration." >&5
10760 echo "$as_me: error: Unknown vendor for mips-bsd configuration." >&2;}
10761 { (exit 1); exit 1; }; }
10766 cat >>confdefs.h <<\_ACEOF
10767 #define AIX_WEAK_SUPPORT 1
10774 *) { { echo "$as_me:$LINENO: error: GNU/Linux must be configured big endian" >&5
10775 echo "$as_me: error: GNU/Linux must be configured big endian" >&2;}
10776 { (exit 1); exit 1; }; } ;;
10780 if test ${this_target} = $target; then
10782 cat >>confdefs.h <<\_ACEOF
10783 #define TARGET_SOLARIS_COMMENT 1
10787 if test x${endian} = xbig; then
10788 { { echo "$as_me:$LINENO: error: Solaris must be configured little endian" >&5
10789 echo "$as_me: error: Solaris must be configured little endian" >&2;}
10790 { (exit 1); exit 1; }; }
10796 cat >>confdefs.h <<\_ACEOF
10797 #define TARGET_SYMBIAN 1
10803 if test ${this_target} = $target ; then
10805 if test x${endian} = xbig; then
10807 elif test x${endian} = xlittle; then
10810 if test x${endian_def} != x; then
10812 cat >>confdefs.h <<_ACEOF
10813 #define TARGET_BYTES_BIG_ENDIAN $endian_def
10819 # Other random stuff.
10821 case ${cpu_type} in
10823 # Set mips_cpu to the name of the default CPU.
10824 case ${target_cpu} in
10825 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
10828 mipsisa32 | mipsisa32el)
10831 mipsisa32r2 | mipsisa32r2el)
10834 mipsisa64 | mipsisa64el)
10837 mipsisa64r2 | mipsisa64r2el)
10840 mipstx39 | mipstx39el)
10843 mips64vr | mips64vrel)
10846 mipsisa32r2* | mipsisa64r2*)
10847 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
10849 mips64* | mipsisa64* | mipsisa32*)
10850 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
10853 { { echo "$as_me:$LINENO: error: $target_cpu isn't a supported MIPS CPU name" >&5
10854 echo "$as_me: error: $target_cpu isn't a supported MIPS CPU name" >&2;}
10855 { (exit 1); exit 1; }; }
10858 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
10859 # binaries. It's a GNU extension that some OSes don't understand.
10860 # The value only matters on ELF targets.
10863 use_e_mips_abi_o32=0
10866 use_e_mips_abi_o32=1
10869 # Decide whether to generate 32-bit or 64-bit code by default.
10870 # Used to resolve -march=from-abi when an embedded ABI is selected.
10872 mips64*-*-* | mipsisa64*-*-*)
10873 mips_default_64bit=1
10876 mips_default_64bit=0
10879 # Decide which ABI to target by default.
10881 mips64*-linux* | mips-sgi-irix6*)
10882 mips_default_abi=N32_ABI
10885 mips_default_abi=O32_ABI
10888 mips_default_abi=N64_ABI
10891 mips_default_abi=NO_ABI
10895 cat >>confdefs.h <<_ACEOF
10896 #define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
10900 cat >>confdefs.h <<_ACEOF
10901 #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
10905 cat >>confdefs.h <<_ACEOF
10906 #define MIPS_DEFAULT_64BIT $mips_default_64bit
10910 cat >>confdefs.h <<_ACEOF
10911 #define MIPS_DEFAULT_ABI $mips_default_abi
10917 # Do we need the opcodes library?
10918 case ${cpu_type} in
10925 case "${enable_shared}" in
10926 yes) shared_opcodes=true ;;
10927 *opcodes*) shared_opcodes=true ;;
10928 *) shared_opcodes=false ;;
10933 # Any other special object files needed ?
10934 case ${cpu_type} in
10937 echo ${extra_objects} | grep -s "bfin-parse.o"
10938 if test $? -ne 0 ; then
10939 extra_objects="$extra_objects bfin-parse.o"
10942 echo ${extra_objects} | grep -s "bfin-lex.o"
10943 if test $? -ne 0 ; then
10944 extra_objects="$extra_objects bfin-lex.o"
10948 fr30 | ip2k | iq2000 | m32r | openrisc)
10959 case ${extra_objects} in
10961 *) extra_objects="$extra_objects m68k-parse.o" ;;
10970 echo ${extra_objects} | grep -s "itbl-parse.o"
10971 if test $? -ne 0 ; then
10972 extra_objects="$extra_objects itbl-parse.o"
10975 echo ${extra_objects} | grep -s "itbl-lex.o"
10976 if test $? -ne 0 ; then
10977 extra_objects="$extra_objects itbl-lex.o"
10980 echo ${extra_objects} | grep -s "itbl-ops.o"
10981 if test $? -ne 0 ; then
10982 extra_objects="$extra_objects itbl-ops.o"
10990 i386 | s390 | sparc)
10991 if test $this_target = $target ; then
10993 cat >>confdefs.h <<_ACEOF
10994 #define DEFAULT_ARCH "${arch}"
11009 echo ${extra_objects} | grep -s "xtensa-relax.o"
11010 if test $? -ne 0 ; then
11011 extra_objects="$extra_objects xtensa-relax.o"
11019 if test $using_cgen = yes ; then
11020 case "x${extra_objects}" in
11022 *) extra_objects="$extra_objects cgen.o" ;;
11026 # See if we really can support this configuration with the emulation code.
11028 if test $this_target = $target ; then
11033 # From target name and format, produce a list of supported emulations.
11035 case ${generic_target}-${fmt} in
11036 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
11037 mips*-*-linux*-*) case "$endian" in
11038 big) emulation="mipsbelf mipslelf mipself" ;;
11039 *) emulation="mipslelf mipsbelf mipself" ;;
11041 mips-*-lnews*-ecoff) ;;
11042 mips-*-*-ecoff) case "$endian" in
11043 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
11044 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
11046 mips-*-*-elf) case "$endian" in
11047 big) emulation="mipsbelf mipslelf mipself" ;;
11048 *) emulation="mipslelf mipsbelf mipself" ;;
11050 mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
11051 # i386-pc-pe-coff != i386-pc-coff.
11053 # Uncommenting the next line will turn on support for i386 AOUT
11054 # for the default linux configuration
11055 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
11057 i386-*-aout) emulation="i386aout" ;;
11058 i386-*-coff) emulation="i386coff" ;;
11059 i386-*-elf) emulation="i386elf" ;;
11061 # Always all formats. The first stated emulation becomes the default.
11062 cris-*-*aout*) emulation="crisaout criself" ;;
11063 cris-*-*) emulation="criself crisaout" ;;
11066 emulations="$emulations $emulation"
11070 # Turn on all targets if possible
11071 if test ${all_targets} = "yes"; then
11072 case ${target_cpu_type} in
11074 case ${obj_format} in
11076 emulations="$emulations i386coff i386elf"
11079 emulations="$emulations i386aout i386elf"
11082 emulations="$emulations i386aout i386coff"
11087 case ${obj_format} in
11089 emulations="$emulations i386coff i386elf"
11092 emulations="$emulations i386aout i386elf"
11095 emulations="$emulations i386aout i386coff"
11102 # Assign floating point type. Most processors with FP support
11103 # IEEE FP. On those that don't support FP at all, usually IEEE
11105 case ${target_cpu} in
11106 vax | pdp11 ) atof=vax ;;
11110 case "${obj_format}" in
11111 "") { { echo "$as_me:$LINENO: error: GAS does not know what format to use for target ${target}" >&5
11112 echo "$as_me: error: GAS does not know what format to use for target ${target}" >&2;}
11113 { (exit 1); exit 1; }; } ;;
11116 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
11118 if test $using_cgen = yes ; then
11119 case ${target_cpu} in
11120 *) cgen_cpu_prefix=${target_cpu} ;;
11124 cat >>confdefs.h <<\_ACEOF
11125 #define USING_CGEN 1
11131 if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
11132 { { echo "$as_me:$LINENO: error: GAS does not support target CPU ${target_cpu_type}" >&5
11133 echo "$as_me: error: GAS does not support target CPU ${target_cpu_type}" >&2;}
11134 { (exit 1); exit 1; }; }
11137 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
11138 { { echo "$as_me:$LINENO: error: GAS does not have support for object file format ${obj_format}" >&5
11139 echo "$as_me: error: GAS does not have support for object file format ${obj_format}" >&2;}
11140 { (exit 1); exit 1; }; }
11143 # Some COFF configurations want these random other flags set.
11144 case ${obj_format} in
11146 case ${target_cpu_type} in
11148 cat >>confdefs.h <<\_ACEOF
11153 cat >>confdefs.h <<\_ACEOF
11158 cat >>confdefs.h <<\_ACEOF
11163 cat >>confdefs.h <<\_ACEOF
11171 # Getting this done right is going to be a bitch. Each configuration specified
11172 # with --enable-targets=... should be checked for environment, format, cpu
11175 # For each configuration, the necessary object file support code must be linked
11176 # in. This might be only one, it might be up to four. The necessary emulation
11177 # code needs to be provided, too.
11179 # And then there's "--enable-targets=all"....
11181 # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
11183 formats="${obj_format}"
11186 _gas_uniq_list="$emulations"
11187 _gas_uniq_newlist=""
11188 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
11189 case $_gas_uniq_i in
11190 _gas_uniq_dummy) ;;
11191 *) case " $_gas_uniq_newlist " in
11192 *" $_gas_uniq_i "*) ;;
11193 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
11197 emulations=$_gas_uniq_newlist
11199 for em in . $emulations ; do
11202 mipsbelf | mipslelf | mipself)
11203 fmt=elf file=mipself ;;
11204 mipsbecoff | mipslecoff | mipsecoff)
11205 fmt=ecoff file=mipsecoff ;;
11207 fmt=coff file=$em ;;
11209 fmt=aout file=$em ;;
11211 fmt=elf file=$em ;;
11213 formats="$formats $fmt"
11214 emfiles="$emfiles e-$file.o"
11215 EMULATIONS="$EMULATIONS &$em,"
11217 _gas_uniq_list="$formats"
11218 _gas_uniq_newlist=""
11219 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
11220 case $_gas_uniq_i in
11221 _gas_uniq_dummy) ;;
11222 *) case " $_gas_uniq_newlist " in
11223 *" $_gas_uniq_i "*) ;;
11224 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
11228 formats=$_gas_uniq_newlist
11230 _gas_uniq_list="$emfiles"
11231 _gas_uniq_newlist=""
11232 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
11233 case $_gas_uniq_i in
11234 _gas_uniq_dummy) ;;
11235 *) case " $_gas_uniq_newlist " in
11236 *" $_gas_uniq_i "*) ;;
11237 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
11241 emfiles=$_gas_uniq_newlist
11243 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
11244 for fmt in $formats ; do
11247 cat >>confdefs.h <<\_ACEOF
11248 #define OBJ_MAYBE_AOUT 1
11252 cat >>confdefs.h <<\_ACEOF
11253 #define OBJ_MAYBE_BOUT 1
11257 cat >>confdefs.h <<\_ACEOF
11258 #define OBJ_MAYBE_COFF 1
11262 cat >>confdefs.h <<\_ACEOF
11263 #define OBJ_MAYBE_ECOFF 1
11267 cat >>confdefs.h <<\_ACEOF
11268 #define OBJ_MAYBE_ELF 1
11272 cat >>confdefs.h <<\_ACEOF
11273 #define OBJ_MAYBE_GENERIC 1
11277 cat >>confdefs.h <<\_ACEOF
11278 #define OBJ_MAYBE_SOM 1
11282 extra_objects="$extra_objects obj-$fmt.o"
11286 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
11287 DEFAULT_EMULATION=`set . $emulations ; echo $2`
11288 # e-mips* has more than one emulation per file, e-i386* has just one at the
11289 # moment. If only one emulation is specified, then don't define
11290 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
11291 case "${obj_format}${emfiles}" in
11293 extra_objects="$extra_objects $emfiles"
11295 cat >>confdefs.h <<\_ACEOF
11296 #define USE_EMULATIONS 1
11303 cat >>confdefs.h <<_ACEOF
11304 #define EMULATIONS $EMULATIONS
11308 cat >>confdefs.h <<_ACEOF
11309 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
11313 reject_dev_configs=yes
11315 case ${reject_dev_configs}-${dev} in
11317 { { echo "$as_me:$LINENO: error: GAS does not support the ${generic_target} configuration." >&5
11318 echo "$as_me: error: GAS does not support the ${generic_target} configuration." >&2;}
11319 { (exit 1); exit 1; }; }
11329 # do we need the opcodes library?
11330 case "${need_opcodes}" in
11332 OPCODES_LIB=../opcodes/libopcodes.la
11339 cat >>confdefs.h <<_ACEOF
11340 #define TARGET_ALIAS "${target_alias}"
11344 cat >>confdefs.h <<_ACEOF
11345 #define TARGET_CANONICAL "${target}"
11349 cat >>confdefs.h <<_ACEOF
11350 #define TARGET_CPU "${target_cpu}"
11354 cat >>confdefs.h <<_ACEOF
11355 #define TARGET_VENDOR "${target_vendor}"
11359 cat >>confdefs.h <<_ACEOF
11360 #define TARGET_OS "${target_os}"
11364 for ac_prog in 'bison -y' byacc
11366 # Extract the first word of "$ac_prog", so it can be a program name with args.
11367 set dummy $ac_prog; ac_word=$2
11368 echo "$as_me:$LINENO: checking for $ac_word" >&5
11369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11370 if test "${ac_cv_prog_YACC+set}" = set; then
11371 echo $ECHO_N "(cached) $ECHO_C" >&6
11373 if test -n "$YACC"; then
11374 ac_cv_prog_YACC="$YACC" # Let the user override the test.
11376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11377 for as_dir in $PATH
11380 test -z "$as_dir" && as_dir=.
11381 for ac_exec_ext in '' $ac_executable_extensions; do
11382 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11383 ac_cv_prog_YACC="$ac_prog"
11384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11392 YACC=$ac_cv_prog_YACC
11393 if test -n "$YACC"; then
11394 echo "$as_me:$LINENO: result: $YACC" >&5
11395 echo "${ECHO_T}$YACC" >&6
11397 echo "$as_me:$LINENO: result: no" >&5
11398 echo "${ECHO_T}no" >&6
11401 test -n "$YACC" && break
11403 test -n "$YACC" || YACC="yacc"
11405 for ac_prog in flex lex
11407 # Extract the first word of "$ac_prog", so it can be a program name with args.
11408 set dummy $ac_prog; ac_word=$2
11409 echo "$as_me:$LINENO: checking for $ac_word" >&5
11410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11411 if test "${ac_cv_prog_LEX+set}" = set; then
11412 echo $ECHO_N "(cached) $ECHO_C" >&6
11414 if test -n "$LEX"; then
11415 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11418 for as_dir in $PATH
11421 test -z "$as_dir" && as_dir=.
11422 for ac_exec_ext in '' $ac_executable_extensions; do
11423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11424 ac_cv_prog_LEX="$ac_prog"
11425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11433 LEX=$ac_cv_prog_LEX
11434 if test -n "$LEX"; then
11435 echo "$as_me:$LINENO: result: $LEX" >&5
11436 echo "${ECHO_T}$LEX" >&6
11438 echo "$as_me:$LINENO: result: no" >&5
11439 echo "${ECHO_T}no" >&6
11442 test -n "$LEX" && break
11444 test -n "$LEX" || LEX=":"
11446 if test -z "$LEXLIB"
11448 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11449 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11450 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
11451 echo $ECHO_N "(cached) $ECHO_C" >&6
11453 ac_check_lib_save_LIBS=$LIBS
11455 cat >conftest.$ac_ext <<_ACEOF
11458 cat confdefs.h >>conftest.$ac_ext
11459 cat >>conftest.$ac_ext <<_ACEOF
11460 /* end confdefs.h. */
11462 /* Override any gcc2 internal prototype to avoid an error. */
11466 /* We use char because int might match the return type of a gcc2
11467 builtin and then its argument prototype would still apply. */
11477 rm -f conftest.$ac_objext conftest$ac_exeext
11478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11479 (eval $ac_link) 2>conftest.er1
11481 grep -v '^ *+' conftest.er1 >conftest.err
11483 cat conftest.err >&5
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); } &&
11486 { ac_try='test -z "$ac_c_werror_flag"
11487 || test ! -s conftest.err'
11488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11489 (eval $ac_try) 2>&5
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); }; } &&
11493 { ac_try='test -s conftest$ac_exeext'
11494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11495 (eval $ac_try) 2>&5
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); }; }; then
11499 ac_cv_lib_fl_yywrap=yes
11501 echo "$as_me: failed program was:" >&5
11502 sed 's/^/| /' conftest.$ac_ext >&5
11504 ac_cv_lib_fl_yywrap=no
11506 rm -f conftest.err conftest.$ac_objext \
11507 conftest$ac_exeext conftest.$ac_ext
11508 LIBS=$ac_check_lib_save_LIBS
11510 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11511 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11512 if test $ac_cv_lib_fl_yywrap = yes; then
11515 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11516 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11517 if test "${ac_cv_lib_l_yywrap+set}" = set; then
11518 echo $ECHO_N "(cached) $ECHO_C" >&6
11520 ac_check_lib_save_LIBS=$LIBS
11522 cat >conftest.$ac_ext <<_ACEOF
11525 cat confdefs.h >>conftest.$ac_ext
11526 cat >>conftest.$ac_ext <<_ACEOF
11527 /* end confdefs.h. */
11529 /* Override any gcc2 internal prototype to avoid an error. */
11533 /* We use char because int might match the return type of a gcc2
11534 builtin and then its argument prototype would still apply. */
11544 rm -f conftest.$ac_objext conftest$ac_exeext
11545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11546 (eval $ac_link) 2>conftest.er1
11548 grep -v '^ *+' conftest.er1 >conftest.err
11550 cat conftest.err >&5
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); } &&
11553 { ac_try='test -z "$ac_c_werror_flag"
11554 || test ! -s conftest.err'
11555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11556 (eval $ac_try) 2>&5
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); }; } &&
11560 { ac_try='test -s conftest$ac_exeext'
11561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11562 (eval $ac_try) 2>&5
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); }; }; then
11566 ac_cv_lib_l_yywrap=yes
11568 echo "$as_me: failed program was:" >&5
11569 sed 's/^/| /' conftest.$ac_ext >&5
11571 ac_cv_lib_l_yywrap=no
11573 rm -f conftest.err conftest.$ac_objext \
11574 conftest$ac_exeext conftest.$ac_ext
11575 LIBS=$ac_check_lib_save_LIBS
11577 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11578 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11579 if test $ac_cv_lib_l_yywrap = yes; then
11587 if test "x$LEX" != "x:"; then
11588 echo "$as_me:$LINENO: checking lex output file root" >&5
11589 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11590 if test "${ac_cv_prog_lex_root+set}" = set; then
11591 echo $ECHO_N "(cached) $ECHO_C" >&6
11593 # The minimal lex program is just a single line: %%. But some broken lexes
11594 # (Solaris, I think it was) want two %% lines, so accommodate them.
11595 cat >conftest.l <<_ACEOF
11599 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11600 (eval $LEX conftest.l) 2>&5
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); }
11604 if test -f lex.yy.c; then
11605 ac_cv_prog_lex_root=lex.yy
11606 elif test -f lexyy.c; then
11607 ac_cv_prog_lex_root=lexyy
11609 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11610 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11611 { (exit 1); exit 1; }; }
11614 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11615 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11617 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
11619 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11620 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11621 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11622 echo $ECHO_N "(cached) $ECHO_C" >&6
11624 # POSIX says lex can declare yytext either as a pointer or an array; the
11625 # default is implementation-dependent. Figure out which it is, since
11626 # not all implementations provide the %pointer and %array declarations.
11627 ac_cv_prog_lex_yytext_pointer=no
11628 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11630 LIBS="$LIBS $LEXLIB"
11631 cat >conftest.$ac_ext <<_ACEOF
11632 `cat $LEX_OUTPUT_ROOT.c`
11634 rm -f conftest.$ac_objext conftest$ac_exeext
11635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11636 (eval $ac_link) 2>conftest.er1
11638 grep -v '^ *+' conftest.er1 >conftest.err
11640 cat conftest.err >&5
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); } &&
11643 { ac_try='test -z "$ac_c_werror_flag"
11644 || test ! -s conftest.err'
11645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11646 (eval $ac_try) 2>&5
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); }; } &&
11650 { ac_try='test -s conftest$ac_exeext'
11651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11652 (eval $ac_try) 2>&5
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); }; }; then
11656 ac_cv_prog_lex_yytext_pointer=yes
11658 echo "$as_me: failed program was:" >&5
11659 sed 's/^/| /' conftest.$ac_ext >&5
11662 rm -f conftest.err conftest.$ac_objext \
11663 conftest$ac_exeext conftest.$ac_ext
11665 rm -f "${LEX_OUTPUT_ROOT}.c"
11668 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11669 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11670 if test $ac_cv_prog_lex_yytext_pointer = yes; then
11672 cat >>confdefs.h <<\_ACEOF
11673 #define YYTEXT_POINTER 1
11679 if test "$LEX" = :; then
11680 LEX=${am_missing_run}flex
11683 ALL_LINGUAS="fr tr es rw"
11684 # If we haven't got the data from the intl directory,
11685 # assume NLS is disabled.
11694 if test -f ../intl/config.intl; then
11695 . ../intl/config.intl
11697 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11698 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11699 if test x"$USE_NLS" != xyes; then
11700 echo "$as_me:$LINENO: result: no" >&5
11701 echo "${ECHO_T}no" >&6
11703 echo "$as_me:$LINENO: result: yes" >&5
11704 echo "${ECHO_T}yes" >&6
11706 cat >>confdefs.h <<\_ACEOF
11707 #define ENABLE_NLS 1
11711 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11712 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
11713 # Look for .po and .gmo files in the source directory.
11716 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11717 # If there aren't any .gmo files the shell will give us the
11718 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11720 case "$cat" in *\**)
11723 # The quadruple backslash is collapsed to a double backslash
11724 # by the backticks, then collapsed again by the double quotes,
11725 # leaving us with one backslash in the sed expression (right
11726 # before the dot that mustn't act as a wildcard).
11727 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11728 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11729 # The user is allowed to set LINGUAS to a list of languages to
11730 # install catalogs for. If it's empty that means "all of them."
11731 if test "x$LINGUAS" = x; then
11732 CATALOGS="$CATALOGS $cat"
11733 XLINGUAS="$XLINGUAS $lang"
11735 case "$LINGUAS" in *$lang*)
11736 CATALOGS="$CATALOGS $cat"
11737 XLINGUAS="$XLINGUAS $lang"
11742 LINGUAS="$XLINGUAS"
11743 echo "$as_me:$LINENO: result: $LINGUAS" >&5
11744 echo "${ECHO_T}$LINGUAS" >&6
11758 if test -n "$ac_aux_dir"; then
11759 case "$ac_aux_dir" in
11760 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11761 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11764 if test -z "$MKINSTALLDIRS"; then
11765 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11770 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11771 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11772 # Check whether --enable-nls or --disable-nls was given.
11773 if test "${enable_nls+set}" = set; then
11774 enableval="$enable_nls"
11779 echo "$as_me:$LINENO: result: $USE_NLS" >&5
11780 echo "${ECHO_T}$USE_NLS" >&6
11787 # Prepare PATH_SEPARATOR.
11788 # The user is always right.
11789 if test "${PATH_SEPARATOR+set}" != set; then
11790 echo "#! /bin/sh" >conf$$.sh
11791 echo "exit 0" >>conf$$.sh
11793 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11801 # Find out how to test for executable files. Don't use a zero-byte file,
11802 # as systems may use methods other than mode bits to determine executability.
11803 cat >conf$$.file <<_ASEOF
11807 chmod +x conf$$.file
11808 if test -x conf$$.file >/dev/null 2>&1; then
11809 ac_executable_p="test -x"
11811 ac_executable_p="test -f"
11815 # Extract the first word of "msgfmt", so it can be a program name with args.
11816 set dummy msgfmt; ac_word=$2
11817 echo "$as_me:$LINENO: checking for $ac_word" >&5
11818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11819 if test "${ac_cv_path_MSGFMT+set}" = set; then
11820 echo $ECHO_N "(cached) $ECHO_C" >&6
11824 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11827 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11828 for ac_dir in $PATH; do
11830 test -z "$ac_dir" && ac_dir=.
11831 for ac_exec_ext in '' $ac_executable_extensions; do
11832 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11833 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11834 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11835 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11842 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11846 MSGFMT="$ac_cv_path_MSGFMT"
11847 if test "$MSGFMT" != ":"; then
11848 echo "$as_me:$LINENO: result: $MSGFMT" >&5
11849 echo "${ECHO_T}$MSGFMT" >&6
11851 echo "$as_me:$LINENO: result: no" >&5
11852 echo "${ECHO_T}no" >&6
11855 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11856 set dummy gmsgfmt; ac_word=$2
11857 echo "$as_me:$LINENO: checking for $ac_word" >&5
11858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11859 if test "${ac_cv_path_GMSGFMT+set}" = set; then
11860 echo $ECHO_N "(cached) $ECHO_C" >&6
11864 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11868 for as_dir in $PATH
11871 test -z "$as_dir" && as_dir=.
11872 for ac_exec_ext in '' $ac_executable_extensions; do
11873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11874 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11881 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11885 GMSGFMT=$ac_cv_path_GMSGFMT
11887 if test -n "$GMSGFMT"; then
11888 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
11889 echo "${ECHO_T}$GMSGFMT" >&6
11891 echo "$as_me:$LINENO: result: no" >&5
11892 echo "${ECHO_T}no" >&6
11897 # Prepare PATH_SEPARATOR.
11898 # The user is always right.
11899 if test "${PATH_SEPARATOR+set}" != set; then
11900 echo "#! /bin/sh" >conf$$.sh
11901 echo "exit 0" >>conf$$.sh
11903 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11911 # Find out how to test for executable files. Don't use a zero-byte file,
11912 # as systems may use methods other than mode bits to determine executability.
11913 cat >conf$$.file <<_ASEOF
11917 chmod +x conf$$.file
11918 if test -x conf$$.file >/dev/null 2>&1; then
11919 ac_executable_p="test -x"
11921 ac_executable_p="test -f"
11925 # Extract the first word of "xgettext", so it can be a program name with args.
11926 set dummy xgettext; ac_word=$2
11927 echo "$as_me:$LINENO: checking for $ac_word" >&5
11928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11929 if test "${ac_cv_path_XGETTEXT+set}" = set; then
11930 echo $ECHO_N "(cached) $ECHO_C" >&6
11932 case "$XGETTEXT" in
11934 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11937 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11938 for ac_dir in $PATH; do
11940 test -z "$ac_dir" && ac_dir=.
11941 for ac_exec_ext in '' $ac_executable_extensions; do
11942 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11943 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11944 (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
11945 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11952 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11956 XGETTEXT="$ac_cv_path_XGETTEXT"
11957 if test "$XGETTEXT" != ":"; then
11958 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11959 echo "${ECHO_T}$XGETTEXT" >&6
11961 echo "$as_me:$LINENO: result: no" >&5
11962 echo "${ECHO_T}no" >&6
11968 # Prepare PATH_SEPARATOR.
11969 # The user is always right.
11970 if test "${PATH_SEPARATOR+set}" != set; then
11971 echo "#! /bin/sh" >conf$$.sh
11972 echo "exit 0" >>conf$$.sh
11974 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11982 # Find out how to test for executable files. Don't use a zero-byte file,
11983 # as systems may use methods other than mode bits to determine executability.
11984 cat >conf$$.file <<_ASEOF
11988 chmod +x conf$$.file
11989 if test -x conf$$.file >/dev/null 2>&1; then
11990 ac_executable_p="test -x"
11992 ac_executable_p="test -f"
11996 # Extract the first word of "msgmerge", so it can be a program name with args.
11997 set dummy msgmerge; ac_word=$2
11998 echo "$as_me:$LINENO: checking for $ac_word" >&5
11999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12000 if test "${ac_cv_path_MSGMERGE+set}" = set; then
12001 echo $ECHO_N "(cached) $ECHO_C" >&6
12003 case "$MSGMERGE" in
12005 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12008 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12009 for ac_dir in $PATH; do
12011 test -z "$ac_dir" && ac_dir=.
12012 for ac_exec_ext in '' $ac_executable_extensions; do
12013 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12014 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12015 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12022 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12026 MSGMERGE="$ac_cv_path_MSGMERGE"
12027 if test "$MSGMERGE" != ":"; then
12028 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
12029 echo "${ECHO_T}$MSGMERGE" >&6
12031 echo "$as_me:$LINENO: result: no" >&5
12032 echo "${ECHO_T}no" >&6
12036 if test "$GMSGFMT" != ":"; then
12037 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12038 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12041 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12042 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12043 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
12048 if test "$XGETTEXT" != ":"; then
12049 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12050 (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
12053 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
12054 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
12060 ac_config_commands="$ac_config_commands default-1"
12064 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12065 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12066 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12067 if test "${enable_maintainer_mode+set}" = set; then
12068 enableval="$enable_maintainer_mode"
12069 USE_MAINTAINER_MODE=$enableval
12071 USE_MAINTAINER_MODE=no
12073 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12074 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
12077 if test $USE_MAINTAINER_MODE = yes; then
12078 MAINTAINER_MODE_TRUE=
12079 MAINTAINER_MODE_FALSE='#'
12081 MAINTAINER_MODE_TRUE='#'
12082 MAINTAINER_MODE_FALSE=
12085 MAINT=$MAINTAINER_MODE_TRUE
12091 GENINSRC_NEVER_TRUE=
12092 GENINSRC_NEVER_FALSE='#'
12094 GENINSRC_NEVER_TRUE='#'
12095 GENINSRC_NEVER_FALSE=
12110 for ac_header in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h limits.h
12112 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12114 echo "$as_me:$LINENO: checking for $ac_header" >&5
12115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12117 echo $ECHO_N "(cached) $ECHO_C" >&6
12119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12120 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12122 # Is the header compilable?
12123 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12124 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12125 cat >conftest.$ac_ext <<_ACEOF
12128 cat confdefs.h >>conftest.$ac_ext
12129 cat >>conftest.$ac_ext <<_ACEOF
12130 /* end confdefs.h. */
12131 $ac_includes_default
12132 #include <$ac_header>
12134 rm -f conftest.$ac_objext
12135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12136 (eval $ac_compile) 2>conftest.er1
12138 grep -v '^ *+' conftest.er1 >conftest.err
12140 cat conftest.err >&5
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); } &&
12143 { ac_try='test -z "$ac_c_werror_flag"
12144 || test ! -s conftest.err'
12145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12146 (eval $ac_try) 2>&5
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); }; } &&
12150 { ac_try='test -s conftest.$ac_objext'
12151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12152 (eval $ac_try) 2>&5
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); }; }; then
12156 ac_header_compiler=yes
12158 echo "$as_me: failed program was:" >&5
12159 sed 's/^/| /' conftest.$ac_ext >&5
12161 ac_header_compiler=no
12163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12164 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12165 echo "${ECHO_T}$ac_header_compiler" >&6
12167 # Is the header present?
12168 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12169 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12170 cat >conftest.$ac_ext <<_ACEOF
12173 cat confdefs.h >>conftest.$ac_ext
12174 cat >>conftest.$ac_ext <<_ACEOF
12175 /* end confdefs.h. */
12176 #include <$ac_header>
12178 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12179 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12181 grep -v '^ *+' conftest.er1 >conftest.err
12183 cat conftest.err >&5
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); } >/dev/null; then
12186 if test -s conftest.err; then
12187 ac_cpp_err=$ac_c_preproc_warn_flag
12188 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12195 if test -z "$ac_cpp_err"; then
12196 ac_header_preproc=yes
12198 echo "$as_me: failed program was:" >&5
12199 sed 's/^/| /' conftest.$ac_ext >&5
12201 ac_header_preproc=no
12203 rm -f conftest.err conftest.$ac_ext
12204 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12205 echo "${ECHO_T}$ac_header_preproc" >&6
12207 # So? What about this header?
12208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12210 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12211 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12213 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12214 ac_header_preproc=yes
12217 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12218 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12219 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12220 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12221 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12222 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12223 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12224 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12226 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12227 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12228 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12231 ## ------------------------------------------ ##
12232 ## Report this to the AC_PACKAGE_NAME lists. ##
12233 ## ------------------------------------------ ##
12236 sed "s/^/$as_me: WARNING: /" >&2
12239 echo "$as_me:$LINENO: checking for $ac_header" >&5
12240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12242 echo $ECHO_N "(cached) $ECHO_C" >&6
12244 eval "$as_ac_Header=\$ac_header_preproc"
12246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12247 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12251 cat >>confdefs.h <<_ACEOF
12252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12260 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
12261 # people who are not cross-compiling but are compiling cross-assemblers.
12262 echo "$as_me:$LINENO: checking whether compiling a cross-assembler" >&5
12263 echo $ECHO_N "checking whether compiling a cross-assembler... $ECHO_C" >&6
12264 if test "${host}" = "${target}"; then
12269 cat >>confdefs.h <<\_ACEOF
12270 #define CROSS_COMPILE 1
12274 echo "$as_me:$LINENO: result: $cross_gas" >&5
12275 echo "${ECHO_T}$cross_gas" >&6
12277 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12278 # for constant arguments. Useless!
12279 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12280 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12281 if test "${ac_cv_working_alloca_h+set}" = set; then
12282 echo $ECHO_N "(cached) $ECHO_C" >&6
12284 cat >conftest.$ac_ext <<_ACEOF
12287 cat confdefs.h >>conftest.$ac_ext
12288 cat >>conftest.$ac_ext <<_ACEOF
12289 /* end confdefs.h. */
12290 #include <alloca.h>
12294 char *p = (char *) alloca (2 * sizeof (int));
12299 rm -f conftest.$ac_objext conftest$ac_exeext
12300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12301 (eval $ac_link) 2>conftest.er1
12303 grep -v '^ *+' conftest.er1 >conftest.err
12305 cat conftest.err >&5
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); } &&
12308 { ac_try='test -z "$ac_c_werror_flag"
12309 || test ! -s conftest.err'
12310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12311 (eval $ac_try) 2>&5
12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 (exit $ac_status); }; } &&
12315 { ac_try='test -s conftest$ac_exeext'
12316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12317 (eval $ac_try) 2>&5
12319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320 (exit $ac_status); }; }; then
12321 ac_cv_working_alloca_h=yes
12323 echo "$as_me: failed program was:" >&5
12324 sed 's/^/| /' conftest.$ac_ext >&5
12326 ac_cv_working_alloca_h=no
12328 rm -f conftest.err conftest.$ac_objext \
12329 conftest$ac_exeext conftest.$ac_ext
12331 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12332 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12333 if test $ac_cv_working_alloca_h = yes; then
12335 cat >>confdefs.h <<\_ACEOF
12336 #define HAVE_ALLOCA_H 1
12341 echo "$as_me:$LINENO: checking for alloca" >&5
12342 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12343 if test "${ac_cv_func_alloca_works+set}" = set; then
12344 echo $ECHO_N "(cached) $ECHO_C" >&6
12346 cat >conftest.$ac_ext <<_ACEOF
12349 cat confdefs.h >>conftest.$ac_ext
12350 cat >>conftest.$ac_ext <<_ACEOF
12351 /* end confdefs.h. */
12353 # define alloca __builtin_alloca
12356 # include <malloc.h>
12357 # define alloca _alloca
12360 # include <alloca.h>
12365 # ifndef alloca /* predefined by HP cc +Olibcalls */
12376 char *p = (char *) alloca (1);
12381 rm -f conftest.$ac_objext conftest$ac_exeext
12382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12383 (eval $ac_link) 2>conftest.er1
12385 grep -v '^ *+' conftest.er1 >conftest.err
12387 cat conftest.err >&5
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); } &&
12390 { ac_try='test -z "$ac_c_werror_flag"
12391 || test ! -s conftest.err'
12392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12393 (eval $ac_try) 2>&5
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); }; } &&
12397 { ac_try='test -s conftest$ac_exeext'
12398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12399 (eval $ac_try) 2>&5
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); }; }; then
12403 ac_cv_func_alloca_works=yes
12405 echo "$as_me: failed program was:" >&5
12406 sed 's/^/| /' conftest.$ac_ext >&5
12408 ac_cv_func_alloca_works=no
12410 rm -f conftest.err conftest.$ac_objext \
12411 conftest$ac_exeext conftest.$ac_ext
12413 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12414 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12416 if test $ac_cv_func_alloca_works = yes; then
12418 cat >>confdefs.h <<\_ACEOF
12419 #define HAVE_ALLOCA 1
12423 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12424 # that cause trouble. Some versions do not even contain alloca or
12425 # contain a buggy version. If you still want to use their alloca,
12426 # use ar to extract alloca.o from them instead of compiling alloca.c.
12428 ALLOCA=alloca.$ac_objext
12430 cat >>confdefs.h <<\_ACEOF
12435 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12436 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12437 if test "${ac_cv_os_cray+set}" = set; then
12438 echo $ECHO_N "(cached) $ECHO_C" >&6
12440 cat >conftest.$ac_ext <<_ACEOF
12443 cat confdefs.h >>conftest.$ac_ext
12444 cat >>conftest.$ac_ext <<_ACEOF
12445 /* end confdefs.h. */
12446 #if defined(CRAY) && ! defined(CRAY2)
12453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12454 $EGREP "webecray" >/dev/null 2>&1; then
12462 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12463 echo "${ECHO_T}$ac_cv_os_cray" >&6
12464 if test $ac_cv_os_cray = yes; then
12465 for ac_func in _getb67 GETB67 getb67; do
12466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12467 echo "$as_me:$LINENO: checking for $ac_func" >&5
12468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12469 if eval "test \"\${$as_ac_var+set}\" = set"; then
12470 echo $ECHO_N "(cached) $ECHO_C" >&6
12472 cat >conftest.$ac_ext <<_ACEOF
12475 cat confdefs.h >>conftest.$ac_ext
12476 cat >>conftest.$ac_ext <<_ACEOF
12477 /* end confdefs.h. */
12478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12480 #define $ac_func innocuous_$ac_func
12482 /* System header to define __stub macros and hopefully few prototypes,
12483 which can conflict with char $ac_func (); below.
12484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12485 <limits.h> exists even on freestanding compilers. */
12488 # include <limits.h>
12490 # include <assert.h>
12495 /* Override any gcc2 internal prototype to avoid an error. */
12500 /* We use char because int might match the return type of a gcc2
12501 builtin and then its argument prototype would still apply. */
12503 /* The GNU C library defines this for functions which it implements
12504 to always fail with ENOSYS. Some functions are actually named
12505 something starting with __ and the normal name is an alias. */
12506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12509 char (*f) () = $ac_func;
12518 return f != $ac_func;
12523 rm -f conftest.$ac_objext conftest$ac_exeext
12524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12525 (eval $ac_link) 2>conftest.er1
12527 grep -v '^ *+' conftest.er1 >conftest.err
12529 cat conftest.err >&5
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); } &&
12532 { ac_try='test -z "$ac_c_werror_flag"
12533 || test ! -s conftest.err'
12534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12535 (eval $ac_try) 2>&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); }; } &&
12539 { ac_try='test -s conftest$ac_exeext'
12540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12541 (eval $ac_try) 2>&5
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); }; }; then
12545 eval "$as_ac_var=yes"
12547 echo "$as_me: failed program was:" >&5
12548 sed 's/^/| /' conftest.$ac_ext >&5
12550 eval "$as_ac_var=no"
12552 rm -f conftest.err conftest.$ac_objext \
12553 conftest$ac_exeext conftest.$ac_ext
12555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12556 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12557 if test `eval echo '${'$as_ac_var'}'` = yes; then
12559 cat >>confdefs.h <<_ACEOF
12560 #define CRAY_STACKSEG_END $ac_func
12569 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12570 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12571 if test "${ac_cv_c_stack_direction+set}" = set; then
12572 echo $ECHO_N "(cached) $ECHO_C" >&6
12574 if test "$cross_compiling" = yes; then
12575 ac_cv_c_stack_direction=0
12577 cat >conftest.$ac_ext <<_ACEOF
12580 cat confdefs.h >>conftest.$ac_ext
12581 cat >>conftest.$ac_ext <<_ACEOF
12582 /* end confdefs.h. */
12584 find_stack_direction ()
12586 static char *addr = 0;
12591 return find_stack_direction ();
12594 return (&dummy > addr) ? 1 : -1;
12600 exit (find_stack_direction () < 0);
12603 rm -f conftest$ac_exeext
12604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12605 (eval $ac_link) 2>&5
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610 (eval $ac_try) 2>&5
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; }; then
12614 ac_cv_c_stack_direction=1
12616 echo "$as_me: program exited with status $ac_status" >&5
12617 echo "$as_me: failed program was:" >&5
12618 sed 's/^/| /' conftest.$ac_ext >&5
12620 ( exit $ac_status )
12621 ac_cv_c_stack_direction=-1
12623 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12626 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12627 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12629 cat >>confdefs.h <<_ACEOF
12630 #define STACK_DIRECTION $ac_cv_c_stack_direction
12636 echo "$as_me:$LINENO: checking for inline" >&5
12637 echo $ECHO_N "checking for inline... $ECHO_C" >&6
12638 if test "${ac_cv_c_inline+set}" = set; then
12639 echo $ECHO_N "(cached) $ECHO_C" >&6
12642 for ac_kw in inline __inline__ __inline; do
12643 cat >conftest.$ac_ext <<_ACEOF
12646 cat confdefs.h >>conftest.$ac_ext
12647 cat >>conftest.$ac_ext <<_ACEOF
12648 /* end confdefs.h. */
12649 #ifndef __cplusplus
12651 static $ac_kw foo_t static_foo () {return 0; }
12652 $ac_kw foo_t foo () {return 0; }
12656 rm -f conftest.$ac_objext
12657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12658 (eval $ac_compile) 2>conftest.er1
12660 grep -v '^ *+' conftest.er1 >conftest.err
12662 cat conftest.err >&5
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); } &&
12665 { ac_try='test -z "$ac_c_werror_flag"
12666 || test ! -s conftest.err'
12667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12668 (eval $ac_try) 2>&5
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); }; } &&
12672 { ac_try='test -s conftest.$ac_objext'
12673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12674 (eval $ac_try) 2>&5
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); }; }; then
12678 ac_cv_c_inline=$ac_kw; break
12680 echo "$as_me: failed program was:" >&5
12681 sed 's/^/| /' conftest.$ac_ext >&5
12684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12688 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12689 echo "${ECHO_T}$ac_cv_c_inline" >&6
12692 case $ac_cv_c_inline in
12695 case $ac_cv_c_inline in
12697 *) ac_val=$ac_cv_c_inline;;
12699 cat >>confdefs.h <<_ACEOF
12700 #ifndef __cplusplus
12701 #define inline $ac_val
12708 # VMS doesn't have unlink.
12711 for ac_func in unlink remove
12713 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12714 echo "$as_me:$LINENO: checking for $ac_func" >&5
12715 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12716 if eval "test \"\${$as_ac_var+set}\" = set"; then
12717 echo $ECHO_N "(cached) $ECHO_C" >&6
12719 cat >conftest.$ac_ext <<_ACEOF
12722 cat confdefs.h >>conftest.$ac_ext
12723 cat >>conftest.$ac_ext <<_ACEOF
12724 /* end confdefs.h. */
12725 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12727 #define $ac_func innocuous_$ac_func
12729 /* System header to define __stub macros and hopefully few prototypes,
12730 which can conflict with char $ac_func (); below.
12731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12732 <limits.h> exists even on freestanding compilers. */
12735 # include <limits.h>
12737 # include <assert.h>
12742 /* Override any gcc2 internal prototype to avoid an error. */
12747 /* We use char because int might match the return type of a gcc2
12748 builtin and then its argument prototype would still apply. */
12750 /* The GNU C library defines this for functions which it implements
12751 to always fail with ENOSYS. Some functions are actually named
12752 something starting with __ and the normal name is an alias. */
12753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12756 char (*f) () = $ac_func;
12765 return f != $ac_func;
12770 rm -f conftest.$ac_objext conftest$ac_exeext
12771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12772 (eval $ac_link) 2>conftest.er1
12774 grep -v '^ *+' conftest.er1 >conftest.err
12776 cat conftest.err >&5
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); } &&
12779 { ac_try='test -z "$ac_c_werror_flag"
12780 || test ! -s conftest.err'
12781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12782 (eval $ac_try) 2>&5
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); }; } &&
12786 { ac_try='test -s conftest$ac_exeext'
12787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12788 (eval $ac_try) 2>&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); }; }; then
12792 eval "$as_ac_var=yes"
12794 echo "$as_me: failed program was:" >&5
12795 sed 's/^/| /' conftest.$ac_ext >&5
12797 eval "$as_ac_var=no"
12799 rm -f conftest.err conftest.$ac_objext \
12800 conftest$ac_exeext conftest.$ac_ext
12802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12803 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12804 if test `eval echo '${'$as_ac_var'}'` = yes; then
12805 cat >>confdefs.h <<_ACEOF
12806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12813 # Some systems don't have sbrk().
12815 for ac_func in sbrk
12817 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12818 echo "$as_me:$LINENO: checking for $ac_func" >&5
12819 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12820 if eval "test \"\${$as_ac_var+set}\" = set"; then
12821 echo $ECHO_N "(cached) $ECHO_C" >&6
12823 cat >conftest.$ac_ext <<_ACEOF
12826 cat confdefs.h >>conftest.$ac_ext
12827 cat >>conftest.$ac_ext <<_ACEOF
12828 /* end confdefs.h. */
12829 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12831 #define $ac_func innocuous_$ac_func
12833 /* System header to define __stub macros and hopefully few prototypes,
12834 which can conflict with char $ac_func (); below.
12835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12836 <limits.h> exists even on freestanding compilers. */
12839 # include <limits.h>
12841 # include <assert.h>
12846 /* Override any gcc2 internal prototype to avoid an error. */
12851 /* We use char because int might match the return type of a gcc2
12852 builtin and then its argument prototype would still apply. */
12854 /* The GNU C library defines this for functions which it implements
12855 to always fail with ENOSYS. Some functions are actually named
12856 something starting with __ and the normal name is an alias. */
12857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12860 char (*f) () = $ac_func;
12869 return f != $ac_func;
12874 rm -f conftest.$ac_objext conftest$ac_exeext
12875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12876 (eval $ac_link) 2>conftest.er1
12878 grep -v '^ *+' conftest.er1 >conftest.err
12880 cat conftest.err >&5
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); } &&
12883 { ac_try='test -z "$ac_c_werror_flag"
12884 || test ! -s conftest.err'
12885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12886 (eval $ac_try) 2>&5
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }; } &&
12890 { ac_try='test -s conftest$ac_exeext'
12891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12892 (eval $ac_try) 2>&5
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); }; }; then
12896 eval "$as_ac_var=yes"
12898 echo "$as_me: failed program was:" >&5
12899 sed 's/^/| /' conftest.$ac_ext >&5
12901 eval "$as_ac_var=no"
12903 rm -f conftest.err conftest.$ac_objext \
12904 conftest$ac_exeext conftest.$ac_ext
12906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12907 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12908 if test `eval echo '${'$as_ac_var'}'` = yes; then
12909 cat >>confdefs.h <<_ACEOF
12910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12917 # do we need the math library?
12918 case "${need_libm}" in
12922 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
12923 # These system don't have libm, or don't need it
12926 echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
12927 echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
12928 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
12929 echo $ECHO_N "(cached) $ECHO_C" >&6
12931 ac_check_lib_save_LIBS=$LIBS
12933 cat >conftest.$ac_ext <<_ACEOF
12936 cat confdefs.h >>conftest.$ac_ext
12937 cat >>conftest.$ac_ext <<_ACEOF
12938 /* end confdefs.h. */
12940 /* Override any gcc2 internal prototype to avoid an error. */
12944 /* We use char because int might match the return type of a gcc2
12945 builtin and then its argument prototype would still apply. */
12946 char _mwvalidcheckl ();
12955 rm -f conftest.$ac_objext conftest$ac_exeext
12956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12957 (eval $ac_link) 2>conftest.er1
12959 grep -v '^ *+' conftest.er1 >conftest.err
12961 cat conftest.err >&5
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); } &&
12964 { ac_try='test -z "$ac_c_werror_flag"
12965 || test ! -s conftest.err'
12966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12967 (eval $ac_try) 2>&5
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); }; } &&
12971 { ac_try='test -s conftest$ac_exeext'
12972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12973 (eval $ac_try) 2>&5
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); }; }; then
12977 ac_cv_lib_mw__mwvalidcheckl=yes
12979 echo "$as_me: failed program was:" >&5
12980 sed 's/^/| /' conftest.$ac_ext >&5
12982 ac_cv_lib_mw__mwvalidcheckl=no
12984 rm -f conftest.err conftest.$ac_objext \
12985 conftest$ac_exeext conftest.$ac_ext
12986 LIBS=$ac_check_lib_save_LIBS
12988 echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
12989 echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
12990 if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
12994 echo "$as_me:$LINENO: checking for cos in -lm" >&5
12995 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
12996 if test "${ac_cv_lib_m_cos+set}" = set; then
12997 echo $ECHO_N "(cached) $ECHO_C" >&6
12999 ac_check_lib_save_LIBS=$LIBS
13001 cat >conftest.$ac_ext <<_ACEOF
13004 cat confdefs.h >>conftest.$ac_ext
13005 cat >>conftest.$ac_ext <<_ACEOF
13006 /* end confdefs.h. */
13008 /* Override any gcc2 internal prototype to avoid an error. */
13012 /* We use char because int might match the return type of a gcc2
13013 builtin and then its argument prototype would still apply. */
13023 rm -f conftest.$ac_objext conftest$ac_exeext
13024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13025 (eval $ac_link) 2>conftest.er1
13027 grep -v '^ *+' conftest.er1 >conftest.err
13029 cat conftest.err >&5
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); } &&
13032 { ac_try='test -z "$ac_c_werror_flag"
13033 || test ! -s conftest.err'
13034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13035 (eval $ac_try) 2>&5
13037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038 (exit $ac_status); }; } &&
13039 { ac_try='test -s conftest$ac_exeext'
13040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13041 (eval $ac_try) 2>&5
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); }; }; then
13045 ac_cv_lib_m_cos=yes
13047 echo "$as_me: failed program was:" >&5
13048 sed 's/^/| /' conftest.$ac_ext >&5
13052 rm -f conftest.err conftest.$ac_objext \
13053 conftest$ac_exeext conftest.$ac_ext
13054 LIBS=$ac_check_lib_save_LIBS
13056 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
13057 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
13058 if test $ac_cv_lib_m_cos = yes; then
13064 echo "$as_me:$LINENO: checking for cos in -lm" >&5
13065 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
13066 if test "${ac_cv_lib_m_cos+set}" = set; then
13067 echo $ECHO_N "(cached) $ECHO_C" >&6
13069 ac_check_lib_save_LIBS=$LIBS
13071 cat >conftest.$ac_ext <<_ACEOF
13074 cat confdefs.h >>conftest.$ac_ext
13075 cat >>conftest.$ac_ext <<_ACEOF
13076 /* end confdefs.h. */
13078 /* Override any gcc2 internal prototype to avoid an error. */
13082 /* We use char because int might match the return type of a gcc2
13083 builtin and then its argument prototype would still apply. */
13093 rm -f conftest.$ac_objext conftest$ac_exeext
13094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13095 (eval $ac_link) 2>conftest.er1
13097 grep -v '^ *+' conftest.er1 >conftest.err
13099 cat conftest.err >&5
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); } &&
13102 { ac_try='test -z "$ac_c_werror_flag"
13103 || test ! -s conftest.err'
13104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13105 (eval $ac_try) 2>&5
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); }; } &&
13109 { ac_try='test -s conftest$ac_exeext'
13110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13111 (eval $ac_try) 2>&5
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); }; }; then
13115 ac_cv_lib_m_cos=yes
13117 echo "$as_me: failed program was:" >&5
13118 sed 's/^/| /' conftest.$ac_ext >&5
13122 rm -f conftest.err conftest.$ac_objext \
13123 conftest$ac_exeext conftest.$ac_ext
13124 LIBS=$ac_check_lib_save_LIBS
13126 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
13127 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
13128 if test $ac_cv_lib_m_cos = yes; then
13140 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
13141 # enough, but on some of those systems, the assert macro relies on requoting
13142 # working properly!
13143 echo "$as_me:$LINENO: checking for working assert macro" >&5
13144 echo $ECHO_N "checking for working assert macro... $ECHO_C" >&6
13145 if test "${gas_cv_assert_ok+set}" = set; then
13146 echo $ECHO_N "(cached) $ECHO_C" >&6
13148 cat >conftest.$ac_ext <<_ACEOF
13151 cat confdefs.h >>conftest.$ac_ext
13152 cat >>conftest.$ac_ext <<_ACEOF
13153 /* end confdefs.h. */
13154 #include <assert.h>
13160 /* check for requoting problems */
13161 static int a, b, c, d;
13163 assert (!strcmp(s, "foo bar baz quux"));
13164 /* check for newline handling */
13172 rm -f conftest.$ac_objext conftest$ac_exeext
13173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13174 (eval $ac_link) 2>conftest.er1
13176 grep -v '^ *+' conftest.er1 >conftest.err
13178 cat conftest.err >&5
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); } &&
13181 { ac_try='test -z "$ac_c_werror_flag"
13182 || test ! -s conftest.err'
13183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13184 (eval $ac_try) 2>&5
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); }; } &&
13188 { ac_try='test -s conftest$ac_exeext'
13189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13190 (eval $ac_try) 2>&5
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); }; }; then
13194 gas_cv_assert_ok=yes
13196 echo "$as_me: failed program was:" >&5
13197 sed 's/^/| /' conftest.$ac_ext >&5
13199 gas_cv_assert_ok=no
13201 rm -f conftest.err conftest.$ac_objext \
13202 conftest$ac_exeext conftest.$ac_ext
13204 echo "$as_me:$LINENO: result: $gas_cv_assert_ok" >&5
13205 echo "${ECHO_T}$gas_cv_assert_ok" >&6
13206 test $gas_cv_assert_ok = yes ||
13207 cat >>confdefs.h <<\_ACEOF
13208 #define BROKEN_ASSERT 1
13213 # On some systems, the system header files may not declare malloc, realloc,
13214 # and free. There are places where gas needs these functions to have been
13215 # declared -- such as when taking their addresses.
13217 #ifdef HAVE_MEMORY_H
13218 #include <memory.h>
13220 #ifdef HAVE_STRING_H
13221 #include <string.h>
13223 #ifdef HAVE_STRINGS_H
13224 #include <strings.h>
13227 #ifdef HAVE_STDLIB_H
13228 #include <stdlib.h>
13230 #ifdef HAVE_UNISTD_H
13231 #include <unistd.h>
13235 # Does errno.h declare errno, or do we have to add a separate declaration
13238 echo "$as_me:$LINENO: checking whether declaration is required for errno" >&5
13239 echo $ECHO_N "checking whether declaration is required for errno... $ECHO_C" >&6
13240 if test "${gas_cv_decl_needed_errno+set}" = set; then
13241 echo $ECHO_N "(cached) $ECHO_C" >&6
13243 cat >conftest.$ac_ext <<_ACEOF
13246 cat confdefs.h >>conftest.$ac_ext
13247 cat >>conftest.$ac_ext <<_ACEOF
13248 /* end confdefs.h. */
13250 #ifdef HAVE_ERRNO_H
13266 rm -f conftest.$ac_objext conftest$ac_exeext
13267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13268 (eval $ac_link) 2>conftest.er1
13270 grep -v '^ *+' conftest.er1 >conftest.err
13272 cat conftest.err >&5
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); } &&
13275 { ac_try='test -z "$ac_c_werror_flag"
13276 || test ! -s conftest.err'
13277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13278 (eval $ac_try) 2>&5
13280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281 (exit $ac_status); }; } &&
13282 { ac_try='test -s conftest$ac_exeext'
13283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13284 (eval $ac_try) 2>&5
13286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287 (exit $ac_status); }; }; then
13288 gas_cv_decl_needed_errno=no
13290 echo "$as_me: failed program was:" >&5
13291 sed 's/^/| /' conftest.$ac_ext >&5
13293 gas_cv_decl_needed_errno=yes
13295 rm -f conftest.err conftest.$ac_objext \
13296 conftest$ac_exeext conftest.$ac_ext
13298 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_errno" >&5
13299 echo "${ECHO_T}$gas_cv_decl_needed_errno" >&6
13300 if test $gas_cv_decl_needed_errno = yes; then
13302 cat >>confdefs.h <<\_ACEOF
13303 #define NEED_DECLARATION_ERRNO 1
13309 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
13310 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
13311 if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then
13312 echo $ECHO_N "(cached) $ECHO_C" >&6
13314 cat >conftest.$ac_ext <<_ACEOF
13317 cat confdefs.h >>conftest.$ac_ext
13318 cat >>conftest.$ac_ext <<_ACEOF
13319 /* end confdefs.h. */
13320 #include <unistd.h>
13324 extern int getopt (int, char *const*, const char *);
13329 rm -f conftest.$ac_objext
13330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13331 (eval $ac_compile) 2>conftest.er1
13333 grep -v '^ *+' conftest.er1 >conftest.err
13335 cat conftest.err >&5
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); } &&
13338 { ac_try='test -z "$ac_c_werror_flag"
13339 || test ! -s conftest.err'
13340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13341 (eval $ac_try) 2>&5
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); }; } &&
13345 { ac_try='test -s conftest.$ac_objext'
13346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13347 (eval $ac_try) 2>&5
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); }; }; then
13351 gas_cv_decl_getopt_unistd_h=yes
13353 echo "$as_me: failed program was:" >&5
13354 sed 's/^/| /' conftest.$ac_ext >&5
13356 gas_cv_decl_getopt_unistd_h=no
13358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13361 echo "$as_me:$LINENO: result: $gas_cv_decl_getopt_unistd_h" >&5
13362 echo "${ECHO_T}$gas_cv_decl_getopt_unistd_h" >&6
13363 if test $gas_cv_decl_getopt_unistd_h = yes; then
13365 cat >>confdefs.h <<\_ACEOF
13366 #define HAVE_DECL_GETOPT 1
13372 echo "$as_me:$LINENO: checking whether declaration is required for environ" >&5
13373 echo $ECHO_N "checking whether declaration is required for environ... $ECHO_C" >&6
13374 if test "${gas_cv_decl_needed_environ+set}" = set; then
13375 echo $ECHO_N "(cached) $ECHO_C" >&6
13377 cat >conftest.$ac_ext <<_ACEOF
13380 cat confdefs.h >>conftest.$ac_ext
13381 cat >>conftest.$ac_ext <<_ACEOF
13382 /* end confdefs.h. */
13396 rm -f conftest.$ac_objext conftest$ac_exeext
13397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13398 (eval $ac_link) 2>conftest.er1
13400 grep -v '^ *+' conftest.er1 >conftest.err
13402 cat conftest.err >&5
13403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404 (exit $ac_status); } &&
13405 { ac_try='test -z "$ac_c_werror_flag"
13406 || test ! -s conftest.err'
13407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13408 (eval $ac_try) 2>&5
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); }; } &&
13412 { ac_try='test -s conftest$ac_exeext'
13413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13414 (eval $ac_try) 2>&5
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); }; }; then
13418 gas_cv_decl_needed_environ=no
13420 echo "$as_me: failed program was:" >&5
13421 sed 's/^/| /' conftest.$ac_ext >&5
13423 gas_cv_decl_needed_environ=yes
13425 rm -f conftest.err conftest.$ac_objext \
13426 conftest$ac_exeext conftest.$ac_ext
13428 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_environ" >&5
13429 echo "${ECHO_T}$gas_cv_decl_needed_environ" >&6
13430 if test $gas_cv_decl_needed_environ = yes; then
13432 cat >>confdefs.h <<\_ACEOF
13433 #define NEED_DECLARATION_ENVIRON 1
13439 echo "$as_me:$LINENO: checking whether declaration is required for ffs" >&5
13440 echo $ECHO_N "checking whether declaration is required for ffs... $ECHO_C" >&6
13441 if test "${gas_cv_decl_needed_ffs+set}" = set; then
13442 echo $ECHO_N "(cached) $ECHO_C" >&6
13444 cat >conftest.$ac_ext <<_ACEOF
13447 cat confdefs.h >>conftest.$ac_ext
13448 cat >>conftest.$ac_ext <<_ACEOF
13449 /* end confdefs.h. */
13455 typedef int (*f)(int);
13463 rm -f conftest.$ac_objext conftest$ac_exeext
13464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13465 (eval $ac_link) 2>conftest.er1
13467 grep -v '^ *+' conftest.er1 >conftest.err
13469 cat conftest.err >&5
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); } &&
13472 { ac_try='test -z "$ac_c_werror_flag"
13473 || test ! -s conftest.err'
13474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13475 (eval $ac_try) 2>&5
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); }; } &&
13479 { ac_try='test -s conftest$ac_exeext'
13480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13481 (eval $ac_try) 2>&5
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); }; }; then
13485 gas_cv_decl_needed_ffs=no
13487 echo "$as_me: failed program was:" >&5
13488 sed 's/^/| /' conftest.$ac_ext >&5
13490 gas_cv_decl_needed_ffs=yes
13492 rm -f conftest.err conftest.$ac_objext \
13493 conftest$ac_exeext conftest.$ac_ext
13495 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_ffs" >&5
13496 echo "${ECHO_T}$gas_cv_decl_needed_ffs" >&6
13497 if test $gas_cv_decl_needed_ffs = yes; then
13499 cat >>confdefs.h <<\_ACEOF
13500 #define NEED_DECLARATION_FFS 1
13506 echo "$as_me:$LINENO: checking whether declaration is required for free" >&5
13507 echo $ECHO_N "checking whether declaration is required for free... $ECHO_C" >&6
13508 if test "${gas_cv_decl_needed_free+set}" = set; then
13509 echo $ECHO_N "(cached) $ECHO_C" >&6
13511 cat >conftest.$ac_ext <<_ACEOF
13514 cat confdefs.h >>conftest.$ac_ext
13515 cat >>conftest.$ac_ext <<_ACEOF
13516 /* end confdefs.h. */
13522 typedef void (*f)();
13530 rm -f conftest.$ac_objext conftest$ac_exeext
13531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13532 (eval $ac_link) 2>conftest.er1
13534 grep -v '^ *+' conftest.er1 >conftest.err
13536 cat conftest.err >&5
13537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); } &&
13539 { ac_try='test -z "$ac_c_werror_flag"
13540 || test ! -s conftest.err'
13541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13542 (eval $ac_try) 2>&5
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); }; } &&
13546 { ac_try='test -s conftest$ac_exeext'
13547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13548 (eval $ac_try) 2>&5
13550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); }; }; then
13552 gas_cv_decl_needed_free=no
13554 echo "$as_me: failed program was:" >&5
13555 sed 's/^/| /' conftest.$ac_ext >&5
13557 gas_cv_decl_needed_free=yes
13559 rm -f conftest.err conftest.$ac_objext \
13560 conftest$ac_exeext conftest.$ac_ext
13562 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_free" >&5
13563 echo "${ECHO_T}$gas_cv_decl_needed_free" >&6
13564 if test $gas_cv_decl_needed_free = yes; then
13566 cat >>confdefs.h <<\_ACEOF
13567 #define NEED_DECLARATION_FREE 1
13573 echo "$as_me:$LINENO: checking whether declaration is required for malloc" >&5
13574 echo $ECHO_N "checking whether declaration is required for malloc... $ECHO_C" >&6
13575 if test "${gas_cv_decl_needed_malloc+set}" = set; then
13576 echo $ECHO_N "(cached) $ECHO_C" >&6
13578 cat >conftest.$ac_ext <<_ACEOF
13581 cat confdefs.h >>conftest.$ac_ext
13582 cat >>conftest.$ac_ext <<_ACEOF
13583 /* end confdefs.h. */
13589 typedef char *(*f)();
13597 rm -f conftest.$ac_objext conftest$ac_exeext
13598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13599 (eval $ac_link) 2>conftest.er1
13601 grep -v '^ *+' conftest.er1 >conftest.err
13603 cat conftest.err >&5
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); } &&
13606 { ac_try='test -z "$ac_c_werror_flag"
13607 || test ! -s conftest.err'
13608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13609 (eval $ac_try) 2>&5
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); }; } &&
13613 { ac_try='test -s conftest$ac_exeext'
13614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13615 (eval $ac_try) 2>&5
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); }; }; then
13619 gas_cv_decl_needed_malloc=no
13621 echo "$as_me: failed program was:" >&5
13622 sed 's/^/| /' conftest.$ac_ext >&5
13624 gas_cv_decl_needed_malloc=yes
13626 rm -f conftest.err conftest.$ac_objext \
13627 conftest$ac_exeext conftest.$ac_ext
13629 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_malloc" >&5
13630 echo "${ECHO_T}$gas_cv_decl_needed_malloc" >&6
13631 if test $gas_cv_decl_needed_malloc = yes; then
13633 cat >>confdefs.h <<\_ACEOF
13634 #define NEED_DECLARATION_MALLOC 1
13640 echo "$as_me:$LINENO: checking whether declaration is required for sbrk" >&5
13641 echo $ECHO_N "checking whether declaration is required for sbrk... $ECHO_C" >&6
13642 if test "${gas_cv_decl_needed_sbrk+set}" = set; then
13643 echo $ECHO_N "(cached) $ECHO_C" >&6
13645 cat >conftest.$ac_ext <<_ACEOF
13648 cat confdefs.h >>conftest.$ac_ext
13649 cat >>conftest.$ac_ext <<_ACEOF
13650 /* end confdefs.h. */
13656 typedef char *(*f)();
13664 rm -f conftest.$ac_objext conftest$ac_exeext
13665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13666 (eval $ac_link) 2>conftest.er1
13668 grep -v '^ *+' conftest.er1 >conftest.err
13670 cat conftest.err >&5
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); } &&
13673 { ac_try='test -z "$ac_c_werror_flag"
13674 || test ! -s conftest.err'
13675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13676 (eval $ac_try) 2>&5
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); }; } &&
13680 { ac_try='test -s conftest$ac_exeext'
13681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13682 (eval $ac_try) 2>&5
13684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685 (exit $ac_status); }; }; then
13686 gas_cv_decl_needed_sbrk=no
13688 echo "$as_me: failed program was:" >&5
13689 sed 's/^/| /' conftest.$ac_ext >&5
13691 gas_cv_decl_needed_sbrk=yes
13693 rm -f conftest.err conftest.$ac_objext \
13694 conftest$ac_exeext conftest.$ac_ext
13696 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_sbrk" >&5
13697 echo "${ECHO_T}$gas_cv_decl_needed_sbrk" >&6
13698 if test $gas_cv_decl_needed_sbrk = yes; then
13700 cat >>confdefs.h <<\_ACEOF
13701 #define NEED_DECLARATION_SBRK 1
13707 echo "$as_me:$LINENO: checking whether declaration is required for strstr" >&5
13708 echo $ECHO_N "checking whether declaration is required for strstr... $ECHO_C" >&6
13709 if test "${gas_cv_decl_needed_strstr+set}" = set; then
13710 echo $ECHO_N "(cached) $ECHO_C" >&6
13712 cat >conftest.$ac_ext <<_ACEOF
13715 cat confdefs.h >>conftest.$ac_ext
13716 cat >>conftest.$ac_ext <<_ACEOF
13717 /* end confdefs.h. */
13723 typedef char *(*f)();
13731 rm -f conftest.$ac_objext conftest$ac_exeext
13732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13733 (eval $ac_link) 2>conftest.er1
13735 grep -v '^ *+' conftest.er1 >conftest.err
13737 cat conftest.err >&5
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); } &&
13740 { ac_try='test -z "$ac_c_werror_flag"
13741 || test ! -s conftest.err'
13742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13743 (eval $ac_try) 2>&5
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); }; } &&
13747 { ac_try='test -s conftest$ac_exeext'
13748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13749 (eval $ac_try) 2>&5
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); }; }; then
13753 gas_cv_decl_needed_strstr=no
13755 echo "$as_me: failed program was:" >&5
13756 sed 's/^/| /' conftest.$ac_ext >&5
13758 gas_cv_decl_needed_strstr=yes
13760 rm -f conftest.err conftest.$ac_objext \
13761 conftest$ac_exeext conftest.$ac_ext
13763 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_strstr" >&5
13764 echo "${ECHO_T}$gas_cv_decl_needed_strstr" >&6
13765 if test $gas_cv_decl_needed_strstr = yes; then
13767 cat >>confdefs.h <<\_ACEOF
13768 #define NEED_DECLARATION_STRSTR 1
13774 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13775 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13776 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13777 echo $ECHO_N "(cached) $ECHO_C" >&6
13779 cat >conftest.$ac_ext <<_ACEOF
13782 cat confdefs.h >>conftest.$ac_ext
13783 cat >>conftest.$ac_ext <<_ACEOF
13784 /* end confdefs.h. */
13785 $ac_includes_default
13790 char *p = (char *) vsnprintf;
13797 rm -f conftest.$ac_objext
13798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13799 (eval $ac_compile) 2>conftest.er1
13801 grep -v '^ *+' conftest.er1 >conftest.err
13803 cat conftest.err >&5
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805 (exit $ac_status); } &&
13806 { ac_try='test -z "$ac_c_werror_flag"
13807 || test ! -s conftest.err'
13808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13809 (eval $ac_try) 2>&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); }; } &&
13813 { ac_try='test -s conftest.$ac_objext'
13814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13815 (eval $ac_try) 2>&5
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); }; }; then
13819 ac_cv_have_decl_vsnprintf=yes
13821 echo "$as_me: failed program was:" >&5
13822 sed 's/^/| /' conftest.$ac_ext >&5
13824 ac_cv_have_decl_vsnprintf=no
13826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13828 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13829 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13830 if test $ac_cv_have_decl_vsnprintf = yes; then
13832 cat >>confdefs.h <<_ACEOF
13833 #define HAVE_DECL_VSNPRINTF 1
13838 cat >>confdefs.h <<_ACEOF
13839 #define HAVE_DECL_VSNPRINTF 0
13849 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13851 cat >>confdefs.h <<\_ACEOF
13852 #define USE_BINARY_FOPEN 1
13863 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
13865 ac_config_commands="$ac_config_commands default"
13868 cat >confcache <<\_ACEOF
13869 # This file is a shell script that caches the results of configure
13870 # tests run on this system so they can be shared between configure
13871 # scripts and configure runs, see configure's option --config-cache.
13872 # It is not useful on other systems. If it contains results you don't
13873 # want to keep, you may remove or edit it.
13875 # config.status only pays attention to the cache file if you give it
13876 # the --recheck option to rerun configure.
13878 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13879 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13880 # following values.
13884 # The following way of writing the cache mishandles newlines in values,
13885 # but we know of no workaround that is simple, portable, and efficient.
13886 # So, don't put newlines in cache variables' values.
13887 # Ultrix sh set writes to stderr and can't be redirected directly,
13888 # and sets the high bit in the cache file unless we assign to the vars.
13891 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13893 # `set' does not quote correctly, so add quotes (double-quote
13894 # substitution turns \\\\ into \\, and sed turns \\ into \).
13897 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13900 # `set' quotes correctly as required by POSIX, so do not add quotes.
13902 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13909 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13911 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13913 if diff $cache_file confcache >/dev/null 2>&1; then :; else
13914 if test -w $cache_file; then
13915 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13916 cat confcache >$cache_file
13918 echo "not updating unwritable cache $cache_file"
13923 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13924 # Let make expand exec_prefix.
13925 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13927 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13928 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13929 # trailing colons and then remove the whole line if VPATH becomes empty
13930 # (actually we leave an empty line to preserve line numbers).
13931 if test "x$srcdir" = x.; then
13932 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13933 s/:*\$(srcdir):*/:/;
13934 s/:*\${srcdir}:*/:/;
13936 s/^\([^=]*=[ ]*\):*/\1/;
13942 DEFS=-DHAVE_CONFIG_H
13946 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13947 # 1. Remove the extension, and $U if already installed.
13948 ac_i=`echo "$ac_i" |
13949 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13951 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13952 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13954 LIBOBJS=$ac_libobjs
13956 LTLIBOBJS=$ac_ltlibobjs
13959 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13960 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13961 Usually this means the macro was only invoked conditionally." >&5
13962 echo "$as_me: error: conditional \"AMDEP\" was never defined.
13963 Usually this means the macro was only invoked conditionally." >&2;}
13964 { (exit 1); exit 1; }; }
13966 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13967 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13968 Usually this means the macro was only invoked conditionally." >&5
13969 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13970 Usually this means the macro was only invoked conditionally." >&2;}
13971 { (exit 1); exit 1; }; }
13973 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13974 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13975 Usually this means the macro was only invoked conditionally." >&5
13976 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13977 Usually this means the macro was only invoked conditionally." >&2;}
13978 { (exit 1); exit 1; }; }
13980 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
13981 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
13982 Usually this means the macro was only invoked conditionally." >&5
13983 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
13984 Usually this means the macro was only invoked conditionally." >&2;}
13985 { (exit 1); exit 1; }; }
13988 : ${CONFIG_STATUS=./config.status}
13989 ac_clean_files_save=$ac_clean_files
13990 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13991 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13992 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13993 cat >$CONFIG_STATUS <<_ACEOF
13995 # Generated by $as_me.
13996 # Run this file to recreate the current configuration.
13997 # Compiler output produced by configure, useful for debugging
13998 # configure, is in config.log if it exists.
14001 ac_cs_recheck=false
14003 SHELL=\${CONFIG_SHELL-$SHELL}
14006 cat >>$CONFIG_STATUS <<\_ACEOF
14007 ## --------------------- ##
14008 ## M4sh Initialization. ##
14009 ## --------------------- ##
14011 # Be Bourne compatible
14012 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14015 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14016 # is contrary to our usage. Disable this feature.
14017 alias -g '${1+"$@"}'='"$@"'
14018 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14021 DUALCASE=1; export DUALCASE # for MKS sh
14023 # Support unset when possible.
14024 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14031 # Work around bugs in pre-3.0 UWIN ksh.
14032 $as_unset ENV MAIL MAILPATH
14039 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14040 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14041 LC_TELEPHONE LC_TIME
14043 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14044 eval $as_var=C; export $as_var
14050 # Required to use basename.
14051 if expr a : '\(a\)' >/dev/null 2>&1; then
14057 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14058 as_basename=basename
14064 # Name of the executable.
14065 as_me=`$as_basename "$0" ||
14066 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14067 X"$0" : 'X\(//\)$' \| \
14068 X"$0" : 'X\(/\)$' \| \
14069 . : '\(.\)' 2>/dev/null ||
14071 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14072 /^X\/\(\/\/\)$/{ s//\1/; q; }
14073 /^X\/\(\/\).*/{ s//\1/; q; }
14077 # PATH needs CR, and LINENO needs CR and PATH.
14078 # Avoid depending upon Character Ranges.
14079 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14080 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14081 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14082 as_cr_digits='0123456789'
14083 as_cr_alnum=$as_cr_Letters$as_cr_digits
14085 # The user is always right.
14086 if test "${PATH_SEPARATOR+set}" != set; then
14087 echo "#! /bin/sh" >conf$$.sh
14088 echo "exit 0" >>conf$$.sh
14090 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14099 as_lineno_1=$LINENO
14100 as_lineno_2=$LINENO
14101 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14102 test "x$as_lineno_1" != "x$as_lineno_2" &&
14103 test "x$as_lineno_3" = "x$as_lineno_2" || {
14104 # Find who we are. Look in the path if we contain no path at all
14107 *[\\/]* ) as_myself=$0 ;;
14108 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14109 for as_dir in $PATH
14112 test -z "$as_dir" && as_dir=.
14113 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14118 # We did not find ourselves, most probably we were run as `sh COMMAND'
14119 # in which case we are not to be found in the path.
14120 if test "x$as_myself" = x; then
14123 if test ! -f "$as_myself"; then
14124 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14125 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14126 { (exit 1); exit 1; }; }
14128 case $CONFIG_SHELL in
14130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14134 test -z "$as_dir" && as_dir=.
14135 for as_base in sh bash ksh sh5; do
14138 if ("$as_dir/$as_base" -c '
14139 as_lineno_1=$LINENO
14140 as_lineno_2=$LINENO
14141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14142 test "x$as_lineno_1" != "x$as_lineno_2" &&
14143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14146 CONFIG_SHELL=$as_dir/$as_base
14147 export CONFIG_SHELL
14148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14157 # uniformly replaced by the line number. The first 'sed' inserts a
14158 # line-number line before each line; the second 'sed' does the real
14159 # work. The second script uses 'N' to pair each line-number line
14160 # with the numbered line, and appends trailing '-' during
14161 # substitution so that $LINENO is not a special case at line end.
14162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14164 sed '=' <$as_myself |
14169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14172 s,^['$as_cr_digits']*\n,,
14173 ' >$as_me.lineno &&
14174 chmod +x $as_me.lineno ||
14175 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14176 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14177 { (exit 1); exit 1; }; }
14179 # Don't try to exec as it changes $[0], causing all sort of problems
14180 # (the dirname of $[0] is not the place where we might find the
14181 # original and so on. Autoconf is especially sensible to this).
14183 # Exit status is that of the last command.
14188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14189 *c*,-n*) ECHO_N= ECHO_C='
14191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14195 if expr a : '\(a\)' >/dev/null 2>&1; then
14201 rm -f conf$$ conf$$.exe conf$$.file
14203 if ln -s conf$$.file conf$$ 2>/dev/null; then
14204 # We could just check for DJGPP; but this test a) works b) is more generic
14205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14206 if test -f conf$$.exe; then
14207 # Don't use ln at all; we don't have any links
14212 elif ln conf$$.file conf$$ 2>/dev/null; then
14217 rm -f conf$$ conf$$.exe conf$$.file
14219 if mkdir -p . 2>/dev/null; then
14222 test -d ./-p && rmdir ./-p
14226 as_executable_p="test -f"
14228 # Sed expression to map a string onto a valid CPP name.
14229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14231 # Sed expression to map a string onto a valid variable name.
14232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14236 # We need space, tab and new line, in precisely that order.
14246 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14247 # report actual input values of CONFIG_FILES etc. instead of their
14248 # values after options handling. Logging --version etc. is OK.
14252 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14253 ## Running $as_me. ##
14258 This file was extended by $as_me, which was
14259 generated by GNU Autoconf 2.59. Invocation command line was
14261 CONFIG_FILES = $CONFIG_FILES
14262 CONFIG_HEADERS = $CONFIG_HEADERS
14263 CONFIG_LINKS = $CONFIG_LINKS
14264 CONFIG_COMMANDS = $CONFIG_COMMANDS
14268 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14272 # Files that config.status was made for.
14273 if test -n "$ac_config_files"; then
14274 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14277 if test -n "$ac_config_headers"; then
14278 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14281 if test -n "$ac_config_links"; then
14282 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14285 if test -n "$ac_config_commands"; then
14286 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14289 cat >>$CONFIG_STATUS <<\_ACEOF
14292 \`$as_me' instantiates files from templates according to the
14293 current configuration.
14295 Usage: $0 [OPTIONS] [FILE]...
14297 -h, --help print this help, then exit
14298 -V, --version print version number, then exit
14299 -q, --quiet do not print progress messages
14300 -d, --debug don't remove temporary files
14301 --recheck update $as_me by reconfiguring in the same conditions
14302 --file=FILE[:TEMPLATE]
14303 instantiate the configuration file FILE
14304 --header=FILE[:TEMPLATE]
14305 instantiate the configuration header FILE
14307 Configuration files:
14310 Configuration headers:
14313 Configuration commands:
14316 Report bugs to <bug-autoconf@gnu.org>."
14319 cat >>$CONFIG_STATUS <<_ACEOF
14322 configured by $0, generated by GNU Autoconf 2.59,
14323 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14325 Copyright (C) 2003 Free Software Foundation, Inc.
14326 This config.status script is free software; the Free Software Foundation
14327 gives unlimited permission to copy, distribute and modify it."
14332 cat >>$CONFIG_STATUS <<\_ACEOF
14333 # If no file are specified by the user, then we need to provide default
14334 # value. By we need to know if files were specified by the user.
14340 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14341 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14349 *) # This is not an option, so the user has probably given explicit
14352 ac_need_defaults=false;;
14356 # Handling of the options.
14358 cat >>$CONFIG_STATUS <<\_ACEOF
14359 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14361 --version | --vers* | -V )
14362 echo "$ac_cs_version"; exit 0 ;;
14364 # Conflict between --help and --header
14365 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14366 Try \`$0 --help' for more information." >&5
14367 echo "$as_me: error: ambiguous option: $1
14368 Try \`$0 --help' for more information." >&2;}
14369 { (exit 1); exit 1; }; };;
14370 --help | --hel | -h )
14371 echo "$ac_cs_usage"; exit 0 ;;
14372 --debug | --d* | -d )
14374 --file | --fil | --fi | --f )
14376 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14377 ac_need_defaults=false;;
14378 --header | --heade | --head | --hea )
14380 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14381 ac_need_defaults=false;;
14382 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14383 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14386 # This is an error.
14387 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14388 Try \`$0 --help' for more information." >&5
14389 echo "$as_me: error: unrecognized option: $1
14390 Try \`$0 --help' for more information." >&2;}
14391 { (exit 1); exit 1; }; } ;;
14393 *) ac_config_targets="$ac_config_targets $1" ;;
14399 ac_configure_extra_args=
14401 if $ac_cs_silent; then
14403 ac_configure_extra_args="$ac_configure_extra_args --silent"
14407 cat >>$CONFIG_STATUS <<_ACEOF
14408 if \$ac_cs_recheck; then
14409 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14410 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14415 cat >>$CONFIG_STATUS <<_ACEOF
14417 # INIT-COMMANDS section.
14420 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14423 # The HP-UX ksh and POSIX shell print the target directory to stdout
14424 # if CDPATH is set.
14425 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14427 sed_quote_subst='$sed_quote_subst'
14428 double_quote_subst='$double_quote_subst'
14429 delay_variable_subst='$delay_variable_subst'
14430 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14431 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14432 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14433 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14434 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14435 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14436 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14437 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14438 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14439 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14440 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14441 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14442 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14443 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14444 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14445 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14446 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14447 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14448 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14449 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14450 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14451 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14452 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14453 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14454 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14455 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14456 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14457 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14458 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14459 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14460 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14461 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14462 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14463 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14464 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14465 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14466 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14467 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14468 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14469 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14470 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14471 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14472 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14473 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"`'
14474 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14475 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14476 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14477 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14478 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14479 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14480 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14481 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14482 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14483 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14484 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14485 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14486 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14487 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14488 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14489 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14490 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14491 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14492 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14493 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14494 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14495 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14496 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14497 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14498 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14499 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14500 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14501 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14502 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14503 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14504 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14505 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14506 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14507 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14508 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14509 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14510 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14511 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14512 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14513 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14514 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14515 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14516 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14517 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14518 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14519 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14520 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14521 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14522 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14523 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14524 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14525 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14526 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14527 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14528 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14529 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14530 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14531 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14532 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14533 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14534 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14535 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14536 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14537 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14538 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14539 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14540 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14543 LTCFLAGS='$LTCFLAGS'
14544 compiler='$compiler_DEFAULT'
14546 # Quote evaled strings.
14557 deplibs_check_method \
14566 lt_cv_sys_global_symbol_pipe \
14567 lt_cv_sys_global_symbol_to_cdecl \
14568 lt_cv_sys_global_symbol_to_c_name_address \
14571 lt_prog_compiler_no_builtin_flag \
14572 lt_prog_compiler_wl \
14573 lt_prog_compiler_pic \
14574 lt_prog_compiler_static \
14575 lt_cv_prog_compiler_c_o \
14578 export_dynamic_flag_spec \
14579 whole_archive_flag_spec \
14580 compiler_needs_object \
14582 allow_undefined_flag \
14583 no_undefined_flag \
14584 hardcode_libdir_flag_spec \
14585 hardcode_libdir_flag_spec_ld \
14586 hardcode_libdir_separator \
14591 variables_saved_for_relink \
14593 library_names_spec \
14598 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14599 *[\\\\\\\`\\"\\\$]*)
14600 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14603 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14608 # Double-quote double-evaled strings.
14609 for var in reload_cmds \
14610 old_postinstall_cmds \
14611 old_postuninstall_cmds \
14613 extract_expsyms_cmds \
14614 old_archive_from_new_cmds \
14615 old_archive_from_expsyms_cmds \
14617 archive_expsym_cmds \
14619 module_expsym_cmds \
14620 export_symbols_cmds \
14623 postuninstall_cmds \
14625 sys_lib_search_path_spec \
14626 sys_lib_dlsearch_path_spec; do
14627 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14628 *[\\\\\\\`\\"\\\$]*)
14629 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14632 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14637 # Fix-up fallback echo if it was mangled by the above quoting rules.
14639 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14643 ac_aux_dir='$ac_aux_dir'
14644 xsi_shell='$xsi_shell'
14645 lt_shell_append='$lt_shell_append'
14647 # See if we are running on zsh, and set the options which allow our
14648 # commands through without removal of \ escapes INIT.
14649 if test -n "\${ZSH_VERSION+set}" ; then
14650 setopt NO_GLOB_SUBST
14656 TIMESTAMP='$TIMESTAMP'
14662 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14663 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14665 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14666 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14667 LINGUAS="${LINGUAS-%UNSET%}"
14669 target_cpu_type=${target_cpu_type}
14670 cgen_cpu_prefix=${cgen_cpu_prefix}
14671 obj_format=${obj_format}
14678 cat >>$CONFIG_STATUS <<\_ACEOF
14679 for ac_config_target in $ac_config_targets
14681 case "$ac_config_target" in
14682 # Handling of arguments.
14683 "gdb.ini" ) CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
14684 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
14685 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14686 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14687 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14688 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14689 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14690 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14691 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14692 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14693 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14694 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14695 { (exit 1); exit 1; }; };;
14699 # If the user did not use the arguments to specify the items to instantiate,
14700 # then the envvar interface is used. Set only those that are not.
14701 # We use the long form for the default assignment because of an extremely
14702 # bizarre bug on SunOS 4.1.3.
14703 if $ac_need_defaults; then
14704 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14705 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14706 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14709 # Have a temporary directory for convenience. Make it in the build tree
14710 # simply because there is no reason to put it here, and in addition,
14711 # creating and moving files from /tmp can sometimes cause problems.
14712 # Create a temporary directory, and hook for its removal unless debugging.
14715 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14716 trap '{ (exit 1); exit 1; }' 1 2 13 15
14719 # Create a (secure) tmp directory for tmp files.
14722 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14723 test -n "$tmp" && test -d "$tmp"
14726 tmp=./confstat$$-$RANDOM
14727 (umask 077 && mkdir $tmp)
14730 echo "$me: cannot create a temporary directory in ." >&2
14731 { (exit 1); exit 1; }
14736 cat >>$CONFIG_STATUS <<_ACEOF
14739 # CONFIG_FILES section.
14742 # No need to generate the scripts if there are no CONFIG_FILES.
14743 # This happens for instance when ./config.status config.h
14744 if test -n "\$CONFIG_FILES"; then
14745 # Protect against being on the right side of a sed subst in config.status.
14746 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14747 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14748 s,@SHELL@,$SHELL,;t t
14749 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14750 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14751 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14752 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14753 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14754 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14755 s,@exec_prefix@,$exec_prefix,;t t
14756 s,@prefix@,$prefix,;t t
14757 s,@program_transform_name@,$program_transform_name,;t t
14758 s,@bindir@,$bindir,;t t
14759 s,@sbindir@,$sbindir,;t t
14760 s,@libexecdir@,$libexecdir,;t t
14761 s,@datadir@,$datadir,;t t
14762 s,@sysconfdir@,$sysconfdir,;t t
14763 s,@sharedstatedir@,$sharedstatedir,;t t
14764 s,@localstatedir@,$localstatedir,;t t
14765 s,@libdir@,$libdir,;t t
14766 s,@includedir@,$includedir,;t t
14767 s,@oldincludedir@,$oldincludedir,;t t
14768 s,@infodir@,$infodir,;t t
14769 s,@mandir@,$mandir,;t t
14770 s,@build_alias@,$build_alias,;t t
14771 s,@host_alias@,$host_alias,;t t
14772 s,@target_alias@,$target_alias,;t t
14773 s,@DEFS@,$DEFS,;t t
14774 s,@ECHO_C@,$ECHO_C,;t t
14775 s,@ECHO_N@,$ECHO_N,;t t
14776 s,@ECHO_T@,$ECHO_T,;t t
14777 s,@LIBS@,$LIBS,;t t
14778 s,@build@,$build,;t t
14779 s,@build_cpu@,$build_cpu,;t t
14780 s,@build_vendor@,$build_vendor,;t t
14781 s,@build_os@,$build_os,;t t
14782 s,@host@,$host,;t t
14783 s,@host_cpu@,$host_cpu,;t t
14784 s,@host_vendor@,$host_vendor,;t t
14785 s,@host_os@,$host_os,;t t
14786 s,@target@,$target,;t t
14787 s,@target_cpu@,$target_cpu,;t t
14788 s,@target_vendor@,$target_vendor,;t t
14789 s,@target_os@,$target_os,;t t
14791 s,@CFLAGS@,$CFLAGS,;t t
14792 s,@LDFLAGS@,$LDFLAGS,;t t
14793 s,@CPPFLAGS@,$CPPFLAGS,;t t
14794 s,@ac_ct_CC@,$ac_ct_CC,;t t
14795 s,@EXEEXT@,$EXEEXT,;t t
14796 s,@OBJEXT@,$OBJEXT,;t t
14797 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14798 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14799 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14800 s,@CYGPATH_W@,$CYGPATH_W,;t t
14801 s,@PACKAGE@,$PACKAGE,;t t
14802 s,@VERSION@,$VERSION,;t t
14803 s,@ACLOCAL@,$ACLOCAL,;t t
14804 s,@AUTOCONF@,$AUTOCONF,;t t
14805 s,@AUTOMAKE@,$AUTOMAKE,;t t
14806 s,@AUTOHEADER@,$AUTOHEADER,;t t
14807 s,@MAKEINFO@,$MAKEINFO,;t t
14808 s,@install_sh@,$install_sh,;t t
14809 s,@STRIP@,$STRIP,;t t
14810 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14811 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
14812 s,@mkdir_p@,$mkdir_p,;t t
14814 s,@SET_MAKE@,$SET_MAKE,;t t
14815 s,@am__leading_dot@,$am__leading_dot,;t t
14816 s,@AMTAR@,$AMTAR,;t t
14817 s,@am__tar@,$am__tar,;t t
14818 s,@am__untar@,$am__untar,;t t
14819 s,@DEPDIR@,$DEPDIR,;t t
14820 s,@am__include@,$am__include,;t t
14821 s,@am__quote@,$am__quote,;t t
14822 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
14823 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
14824 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
14825 s,@CCDEPMODE@,$CCDEPMODE,;t t
14826 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
14827 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
14828 s,@LIBTOOL@,$LIBTOOL,;t t
14830 s,@EGREP@,$EGREP,;t t
14831 s,@FGREP@,$FGREP,;t t
14832 s,@GREP@,$GREP,;t t
14834 s,@DUMPBIN@,$DUMPBIN,;t t
14835 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
14837 s,@LN_S@,$LN_S,;t t
14839 s,@ac_ct_AR@,$ac_ct_AR,;t t
14840 s,@RANLIB@,$RANLIB,;t t
14841 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14842 s,@lt_ECHO@,$lt_ECHO,;t t
14844 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
14845 s,@NO_WERROR@,$NO_WERROR,;t t
14846 s,@GDBINIT@,$GDBINIT,;t t
14847 s,@cgen_cpu_prefix@,$cgen_cpu_prefix,;t t
14848 s,@extra_objects@,$extra_objects,;t t
14849 s,@target_cpu_type@,$target_cpu_type,;t t
14850 s,@obj_format@,$obj_format,;t t
14851 s,@te_file@,$te_file,;t t
14852 s,@install_tooldir@,$install_tooldir,;t t
14853 s,@atof@,$atof,;t t
14854 s,@OPCODES_LIB@,$OPCODES_LIB,;t t
14855 s,@YACC@,$YACC,;t t
14857 s,@LEXLIB@,$LEXLIB,;t t
14858 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
14859 s,@USE_NLS@,$USE_NLS,;t t
14860 s,@LIBINTL@,$LIBINTL,;t t
14861 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
14862 s,@INCINTL@,$INCINTL,;t t
14863 s,@XGETTEXT@,$XGETTEXT,;t t
14864 s,@GMSGFMT@,$GMSGFMT,;t t
14865 s,@POSUB@,$POSUB,;t t
14866 s,@CATALOGS@,$CATALOGS,;t t
14867 s,@DATADIRNAME@,$DATADIRNAME,;t t
14868 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
14869 s,@GENCAT@,$GENCAT,;t t
14870 s,@CATOBJEXT@,$CATOBJEXT,;t t
14871 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
14872 s,@MSGFMT@,$MSGFMT,;t t
14873 s,@MSGMERGE@,$MSGMERGE,;t t
14874 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
14875 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
14876 s,@MAINT@,$MAINT,;t t
14877 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
14878 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
14879 s,@ALLOCA@,$ALLOCA,;t t
14880 s,@LIBM@,$LIBM,;t t
14881 s,@datarootdir@,$datarootdir,;t t
14882 s,@docdir@,$docdir,;t t
14883 s,@htmldir@,$htmldir,;t t
14884 s,@LIBOBJS@,$LIBOBJS,;t t
14885 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
14890 cat >>$CONFIG_STATUS <<\_ACEOF
14891 # Split the substitutions into bite-sized pieces for seds with
14892 # small command number limits, like on Digital OSF/1 and HP-UX.
14893 ac_max_sed_lines=48
14894 ac_sed_frag=1 # Number of current file.
14895 ac_beg=1 # First line for current file.
14896 ac_end=$ac_max_sed_lines # Line after last line for current file.
14899 while $ac_more_lines; do
14900 if test $ac_beg -gt 1; then
14901 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14903 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14905 if test ! -s $tmp/subs.frag; then
14906 ac_more_lines=false
14908 # The purpose of the label and of the branching condition is to
14909 # speed up the sed processing (if there are no `@' at all, there
14910 # is no need to browse any of the substitutions).
14911 # These are the two extra sed commands mentioned above.
14913 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14914 if test -z "$ac_sed_cmds"; then
14915 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14917 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14919 ac_sed_frag=`expr $ac_sed_frag + 1`
14921 ac_end=`expr $ac_end + $ac_max_sed_lines`
14924 if test -z "$ac_sed_cmds"; then
14927 fi # test -n "$CONFIG_FILES"
14930 cat >>$CONFIG_STATUS <<\_ACEOF
14931 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14932 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14934 - | *:- | *:-:* ) # input from stdin
14936 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14937 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14938 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14939 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14940 * ) ac_file_in=$ac_file.in ;;
14943 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14944 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14945 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14946 X"$ac_file" : 'X\(//\)[^/]' \| \
14947 X"$ac_file" : 'X\(//\)$' \| \
14948 X"$ac_file" : 'X\(/\)' \| \
14949 . : '\(.\)' 2>/dev/null ||
14951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14952 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14953 /^X\(\/\/\)$/{ s//\1/; q; }
14954 /^X\(\/\).*/{ s//\1/; q; }
14956 { if $as_mkdir_p; then
14961 while test ! -d "$as_dir"; do
14962 as_dirs="$as_dir $as_dirs"
14963 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14964 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14965 X"$as_dir" : 'X\(//\)[^/]' \| \
14966 X"$as_dir" : 'X\(//\)$' \| \
14967 X"$as_dir" : 'X\(/\)' \| \
14968 . : '\(.\)' 2>/dev/null ||
14970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14971 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14972 /^X\(\/\/\)$/{ s//\1/; q; }
14973 /^X\(\/\).*/{ s//\1/; q; }
14976 test ! -n "$as_dirs" || mkdir $as_dirs
14977 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14978 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14979 { (exit 1); exit 1; }; }; }
14983 if test "$ac_dir" != .; then
14984 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14985 # A "../" for each directory in $ac_dir_suffix.
14986 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14988 ac_dir_suffix= ac_top_builddir=
14992 .) # No --srcdir option. We are building in place.
14994 if test -z "$ac_top_builddir"; then
14997 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14999 [\\/]* | ?:[\\/]* ) # Absolute path.
15000 ac_srcdir=$srcdir$ac_dir_suffix;
15001 ac_top_srcdir=$srcdir ;;
15002 *) # Relative path.
15003 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15004 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15007 # Do not use `cd foo && pwd` to compute absolute paths, because
15008 # the directories may not exist.
15010 .) ac_abs_builddir="$ac_dir";;
15013 .) ac_abs_builddir=`pwd`;;
15014 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15015 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15018 case $ac_abs_builddir in
15019 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15021 case ${ac_top_builddir}. in
15022 .) ac_abs_top_builddir=$ac_abs_builddir;;
15023 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15024 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15027 case $ac_abs_builddir in
15028 .) ac_abs_srcdir=$ac_srcdir;;
15031 .) ac_abs_srcdir=$ac_abs_builddir;;
15032 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15033 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15036 case $ac_abs_builddir in
15037 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15039 case $ac_top_srcdir in
15040 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15041 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15042 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15048 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15049 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15052 if test x"$ac_file" != x-; then
15053 { echo "$as_me:$LINENO: creating $ac_file" >&5
15054 echo "$as_me: creating $ac_file" >&6;}
15057 # Let's still pretend it is `configure' which instantiates (i.e., don't
15058 # use $as_me), people would be surprised to read:
15059 # /* config.h. Generated by config.status. */
15060 if test x"$ac_file" = x-; then
15063 configure_input="$ac_file. "
15065 configure_input=$configure_input"Generated from `echo $ac_file_in |
15066 sed 's,.*/,,'` by configure."
15068 # First look for the input files in the build tree, otherwise in the
15070 ac_file_inputs=`IFS=:
15071 for f in $ac_file_in; do
15073 -) echo $tmp/stdin ;;
15075 # Absolute (can't be DOS-style, as IFS=:)
15076 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15077 echo "$as_me: error: cannot find input file: $f" >&2;}
15078 { (exit 1); exit 1; }; }
15081 if test -f "$f"; then
15084 elif test -f "$srcdir/$f"; then
15089 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15090 echo "$as_me: error: cannot find input file: $f" >&2;}
15091 { (exit 1); exit 1; }; }
15094 done` || { (exit 1); exit 1; }
15096 cat >>$CONFIG_STATUS <<_ACEOF
15100 cat >>$CONFIG_STATUS <<\_ACEOF
15102 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15103 s,@configure_input@,$configure_input,;t t
15104 s,@srcdir@,$ac_srcdir,;t t
15105 s,@abs_srcdir@,$ac_abs_srcdir,;t t
15106 s,@top_srcdir@,$ac_top_srcdir,;t t
15107 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15108 s,@builddir@,$ac_builddir,;t t
15109 s,@abs_builddir@,$ac_abs_builddir,;t t
15110 s,@top_builddir@,$ac_top_builddir,;t t
15111 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15112 s,@INSTALL@,$ac_INSTALL,;t t
15113 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15115 if test x"$ac_file" != x-; then
15116 mv $tmp/out $ac_file
15124 cat >>$CONFIG_STATUS <<\_ACEOF
15127 # CONFIG_HEADER section.
15130 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15131 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15133 # ac_d sets the value in "#define NAME VALUE" lines.
15134 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15135 ac_dB='[ ].*$,\1#\2'
15138 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15139 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15140 ac_uB='$,\1#\2define\3'
15144 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15145 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15147 - | *:- | *:-:* ) # input from stdin
15149 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15150 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15151 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15152 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15153 * ) ac_file_in=$ac_file.in ;;
15156 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15157 echo "$as_me: creating $ac_file" >&6;}
15159 # First look for the input files in the build tree, otherwise in the
15161 ac_file_inputs=`IFS=:
15162 for f in $ac_file_in; do
15164 -) echo $tmp/stdin ;;
15166 # Absolute (can't be DOS-style, as IFS=:)
15167 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15168 echo "$as_me: error: cannot find input file: $f" >&2;}
15169 { (exit 1); exit 1; }; }
15170 # Do quote $f, to prevent DOS paths from being IFS'd.
15173 if test -f "$f"; then
15176 elif test -f "$srcdir/$f"; then
15181 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15182 echo "$as_me: error: cannot find input file: $f" >&2;}
15183 { (exit 1); exit 1; }; }
15186 done` || { (exit 1); exit 1; }
15187 # Remove the trailing spaces.
15188 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
15192 # Transform confdefs.h into two sed scripts, `conftest.defines' and
15193 # `conftest.undefs', that substitutes the proper values into
15194 # config.h.in to produce config.h. The first handles `#define'
15195 # templates, and the second `#undef' templates.
15196 # And first: Protect against being on the right side of a sed subst in
15197 # config.status. Protect against being in an unquoted here document
15198 # in config.status.
15199 rm -f conftest.defines conftest.undefs
15200 # Using a here document instead of a string reduces the quoting nightmare.
15201 # Putting comments in sed scripts is not portable.
15203 # `end' is used to avoid that the second main sed command (meant for
15204 # 0-ary CPP macros) applies to n-ary macro definitions.
15205 # See the Autoconf documentation for `clear'.
15206 cat >confdef2sed.sed <<\_ACEOF
15211 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15213 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15216 # If some macros were called several times there might be several times
15217 # the same #defines, which is useless. Nevertheless, we may not want to
15218 # sort them, since we want the *last* AC-DEFINE to be honored.
15219 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15220 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15221 rm -f confdef2sed.sed
15223 # This sed command replaces #undef with comments. This is necessary, for
15224 # example, in the case of _POSIX_SOURCE, which is predefined and required
15225 # on some systems where configure will not decide to define it.
15226 cat >>conftest.undefs <<\_ACEOF
15227 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15230 # Break up conftest.defines because some shells have a limit on the size
15231 # of here documents, and old seds have small limits too (100 cmds).
15232 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15233 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15234 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15235 echo ' :' >>$CONFIG_STATUS
15236 rm -f conftest.tail
15237 while grep . conftest.defines >/dev/null
15239 # Write a limited-size here document to $tmp/defines.sed.
15240 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15241 # Speed up: don't consider the non `#define' lines.
15242 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
15243 # Work around the forget-to-reset-the-flag bug.
15244 echo 't clr' >>$CONFIG_STATUS
15245 echo ': clr' >>$CONFIG_STATUS
15246 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15248 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15250 mv $tmp/out $tmp/in
15252 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15253 rm -f conftest.defines
15254 mv conftest.tail conftest.defines
15256 rm -f conftest.defines
15257 echo ' fi # grep' >>$CONFIG_STATUS
15258 echo >>$CONFIG_STATUS
15260 # Break up conftest.undefs because some shells have a limit on the size
15261 # of here documents, and old seds have small limits too (100 cmds).
15262 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
15263 rm -f conftest.tail
15264 while grep . conftest.undefs >/dev/null
15266 # Write a limited-size here document to $tmp/undefs.sed.
15267 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15268 # Speed up: don't consider the non `#undef'
15269 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
15270 # Work around the forget-to-reset-the-flag bug.
15271 echo 't clr' >>$CONFIG_STATUS
15272 echo ': clr' >>$CONFIG_STATUS
15273 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15275 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15277 mv $tmp/out $tmp/in
15279 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15280 rm -f conftest.undefs
15281 mv conftest.tail conftest.undefs
15283 rm -f conftest.undefs
15285 cat >>$CONFIG_STATUS <<\_ACEOF
15286 # Let's still pretend it is `configure' which instantiates (i.e., don't
15287 # use $as_me), people would be surprised to read:
15288 # /* config.h. Generated by config.status. */
15289 if test x"$ac_file" = x-; then
15290 echo "/* Generated by configure. */" >$tmp/config.h
15292 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
15294 cat $tmp/in >>$tmp/config.h
15296 if test x"$ac_file" != x-; then
15297 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15298 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15299 echo "$as_me: $ac_file is unchanged" >&6;}
15301 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15302 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15303 X"$ac_file" : 'X\(//\)[^/]' \| \
15304 X"$ac_file" : 'X\(//\)$' \| \
15305 X"$ac_file" : 'X\(/\)' \| \
15306 . : '\(.\)' 2>/dev/null ||
15308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15309 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15310 /^X\(\/\/\)$/{ s//\1/; q; }
15311 /^X\(\/\).*/{ s//\1/; q; }
15313 { if $as_mkdir_p; then
15318 while test ! -d "$as_dir"; do
15319 as_dirs="$as_dir $as_dirs"
15320 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15321 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15322 X"$as_dir" : 'X\(//\)[^/]' \| \
15323 X"$as_dir" : 'X\(//\)$' \| \
15324 X"$as_dir" : 'X\(/\)' \| \
15325 . : '\(.\)' 2>/dev/null ||
15327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15328 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15329 /^X\(\/\/\)$/{ s//\1/; q; }
15330 /^X\(\/\).*/{ s//\1/; q; }
15333 test ! -n "$as_dirs" || mkdir $as_dirs
15334 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15335 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15336 { (exit 1); exit 1; }; }; }
15339 mv $tmp/config.h $ac_file
15343 rm -f $tmp/config.h
15345 # Compute $ac_file's index in $config_headers.
15347 for _am_header in $config_headers :; do
15348 case $_am_header in
15349 $ac_file | $ac_file:* )
15352 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15355 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
15356 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15357 X$ac_file : 'X\(//\)[^/]' \| \
15358 X$ac_file : 'X\(//\)$' \| \
15359 X$ac_file : 'X\(/\)' \| \
15360 . : '\(.\)' 2>/dev/null ||
15362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15363 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15364 /^X\(\/\/\)$/{ s//\1/; q; }
15365 /^X\(\/\).*/{ s//\1/; q; }
15366 s/.*/./; q'`/stamp-h$_am_stamp_count
15369 cat >>$CONFIG_STATUS <<\_ACEOF
15372 # CONFIG_COMMANDS section.
15374 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15375 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15376 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15377 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15378 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15379 X"$ac_dest" : 'X\(//\)[^/]' \| \
15380 X"$ac_dest" : 'X\(//\)$' \| \
15381 X"$ac_dest" : 'X\(/\)' \| \
15382 . : '\(.\)' 2>/dev/null ||
15384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15385 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15386 /^X\(\/\/\)$/{ s//\1/; q; }
15387 /^X\(\/\).*/{ s//\1/; q; }
15389 { if $as_mkdir_p; then
15394 while test ! -d "$as_dir"; do
15395 as_dirs="$as_dir $as_dirs"
15396 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15397 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15398 X"$as_dir" : 'X\(//\)[^/]' \| \
15399 X"$as_dir" : 'X\(//\)$' \| \
15400 X"$as_dir" : 'X\(/\)' \| \
15401 . : '\(.\)' 2>/dev/null ||
15403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15404 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15405 /^X\(\/\/\)$/{ s//\1/; q; }
15406 /^X\(\/\).*/{ s//\1/; q; }
15409 test ! -n "$as_dirs" || mkdir $as_dirs
15410 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15411 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15412 { (exit 1); exit 1; }; }; }
15416 if test "$ac_dir" != .; then
15417 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15418 # A "../" for each directory in $ac_dir_suffix.
15419 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15421 ac_dir_suffix= ac_top_builddir=
15425 .) # No --srcdir option. We are building in place.
15427 if test -z "$ac_top_builddir"; then
15430 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15432 [\\/]* | ?:[\\/]* ) # Absolute path.
15433 ac_srcdir=$srcdir$ac_dir_suffix;
15434 ac_top_srcdir=$srcdir ;;
15435 *) # Relative path.
15436 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15437 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15440 # Do not use `cd foo && pwd` to compute absolute paths, because
15441 # the directories may not exist.
15443 .) ac_abs_builddir="$ac_dir";;
15446 .) ac_abs_builddir=`pwd`;;
15447 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15448 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15451 case $ac_abs_builddir in
15452 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15454 case ${ac_top_builddir}. in
15455 .) ac_abs_top_builddir=$ac_abs_builddir;;
15456 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15457 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15460 case $ac_abs_builddir in
15461 .) ac_abs_srcdir=$ac_srcdir;;
15464 .) ac_abs_srcdir=$ac_abs_builddir;;
15465 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15466 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15469 case $ac_abs_builddir in
15470 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15472 case $ac_top_srcdir in
15473 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15474 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15475 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15480 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15481 echo "$as_me: executing $ac_dest commands" >&6;}
15483 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15484 # Strip MF so we end up with the name of the file.
15485 mf=`echo "$mf" | sed -e 's/:.*$//'`
15486 # Check whether this is an Automake generated Makefile or not.
15487 # We used to match only the files named `Makefile.in', but
15488 # some people rename them; so instead we look at the file content.
15489 # Grep'ing the first line is not enough: some people post-process
15490 # each Makefile.in and add a new line on top of each file to say so.
15491 # So let's grep whole file.
15492 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15493 dirpart=`(dirname "$mf") 2>/dev/null ||
15494 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15495 X"$mf" : 'X\(//\)[^/]' \| \
15496 X"$mf" : 'X\(//\)$' \| \
15497 X"$mf" : 'X\(/\)' \| \
15498 . : '\(.\)' 2>/dev/null ||
15500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15501 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15502 /^X\(\/\/\)$/{ s//\1/; q; }
15503 /^X\(\/\).*/{ s//\1/; q; }
15508 # Extract the definition of DEPDIR, am__include, and am__quote
15509 # from the Makefile without running `make'.
15510 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15511 test -z "$DEPDIR" && continue
15512 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15513 test -z "am__include" && continue
15514 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15515 # When using ansi2knr, U may be empty or an underscore; expand it
15516 U=`sed -n 's/^U = //p' < "$mf"`
15517 # Find all dependency output files, they are included files with
15518 # $(DEPDIR) in their names. We invoke sed twice because it is the
15519 # simplest approach to changing $(DEPDIR) to its actual value in the
15521 for file in `sed -n "
15522 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15523 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15524 # Make sure the directory exists.
15525 test -f "$dirpart/$file" && continue
15526 fdir=`(dirname "$file") 2>/dev/null ||
15527 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15528 X"$file" : 'X\(//\)[^/]' \| \
15529 X"$file" : 'X\(//\)$' \| \
15530 X"$file" : 'X\(/\)' \| \
15531 . : '\(.\)' 2>/dev/null ||
15533 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15534 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15535 /^X\(\/\/\)$/{ s//\1/; q; }
15536 /^X\(\/\).*/{ s//\1/; q; }
15538 { if $as_mkdir_p; then
15539 mkdir -p $dirpart/$fdir
15541 as_dir=$dirpart/$fdir
15543 while test ! -d "$as_dir"; do
15544 as_dirs="$as_dir $as_dirs"
15545 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15546 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15547 X"$as_dir" : 'X\(//\)[^/]' \| \
15548 X"$as_dir" : 'X\(//\)$' \| \
15549 X"$as_dir" : 'X\(/\)' \| \
15550 . : '\(.\)' 2>/dev/null ||
15552 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15553 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15554 /^X\(\/\/\)$/{ s//\1/; q; }
15555 /^X\(\/\).*/{ s//\1/; q; }
15558 test ! -n "$as_dirs" || mkdir $as_dirs
15559 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
15560 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
15561 { (exit 1); exit 1; }; }; }
15563 # echo "creating $dirpart/$file"
15564 echo '# dummy' > "$dirpart/$file"
15570 # See if we are running on zsh, and set the options which allow our
15571 # commands through without removal of \ escapes.
15572 if test -n "${ZSH_VERSION+set}" ; then
15573 setopt NO_GLOB_SUBST
15576 cfgfile="${ofile}T"
15577 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15580 cat <<_LT_EOF >> "$cfgfile"
15583 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15584 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
15585 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15586 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15588 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15589 # 2006, 2007 Free Software Foundation, Inc.
15591 # This file is part of GNU Libtool:
15592 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
15594 # This program is free software; you can redistribute it and/or modify
15595 # it under the terms of the GNU General Public License as published by
15596 # the Free Software Foundation; either version 2 of the License, or
15597 # (at your option) any later version.
15599 # This program is distributed in the hope that it will be useful, but
15600 # WITHOUT ANY WARRANTY; without even the implied warranty of
15601 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15602 # General Public License for more details.
15604 # You should have received a copy of the GNU General Public License
15605 # along with this program; if not, a copy can be downloaded from
15606 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
15607 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
15608 # MA 02110-1301, USA.
15610 # As a special exception to the GNU General Public License, if you
15611 # distribute this file as part of a program that contains a
15612 # configuration script generated by Autoconf, you may include it under
15613 # the same distribution terms that you use for the rest of that program.
15616 # The names of the tagged configurations supported by this script.
15619 # ### BEGIN LIBTOOL CONFIG
15621 # Which release of libtool.m4 was used?
15622 macro_version=$macro_version
15623 macro_revision=$macro_revision
15625 # Whether or not to build shared libraries.
15626 build_libtool_libs=$enable_shared
15628 # Whether or not to build static libraries.
15629 build_old_libs=$enable_static
15631 # What type of objects to build.
15634 # Whether or not to optimize for fast installation.
15635 fast_install=$enable_fast_install
15638 host_alias=$host_alias
15642 # The build system.
15643 build_alias=$build_alias
15647 # A sed program that does not truncate output.
15650 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15651 Xsed="\$SED -e 1s/^X//"
15653 # A grep program that handles long lines.
15659 # A literal string matcher.
15662 # A BSD- or MS-compatible name lister.
15665 # Whether we need soft or hard links.
15668 # What is the maximum length of a command?
15669 max_cmd_len=$max_cmd_len
15671 # Object file suffix (normally "o").
15674 # Executable file suffix (normally "").
15677 # whether the shell understands "unset".
15680 # turn spaces into newlines.
15683 # turn newlines into spaces.
15686 # How to create reloadable object files.
15687 reload_flag=$lt_reload_flag
15688 reload_cmds=$lt_reload_cmds
15690 # Method to check whether dependent libraries are shared objects.
15691 deplibs_check_method=$lt_deplibs_check_method
15693 # Command to use when deplibs_check_method == "file_magic".
15694 file_magic_cmd=$lt_file_magic_cmd
15698 AR_FLAGS=$lt_AR_FLAGS
15700 # A symbol stripping program.
15703 # Commands used to install an old-style archive.
15705 old_postinstall_cmds=$lt_old_postinstall_cmds
15706 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15711 # LTCC compiler flags.
15712 LTCFLAGS=$lt_CFLAGS
15714 # Take the output of nm and produce a listing of raw symbols and C names.
15715 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15717 # Transform the output of nm in a proper C declaration.
15718 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15720 # Transform the output of nm in a C name address pair.
15721 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15723 # The name of the directory that contains temporary libtool files.
15726 # Shell to use when invoking shell scripts.
15729 # An echo program that does not interpret backslashes.
15732 # Used to examine libraries when file_magic_cmd begins with "file".
15733 MAGIC_CMD=$MAGIC_CMD
15735 # Must we lock files when doing compilation?
15736 need_locks=$lt_need_locks
15738 # Old archive suffix (normally "a").
15741 # Shared library suffix (normally ".so").
15742 shrext_cmds=$lt_shrext_cmds
15744 # The commands to extract the exported symbol list from a shared archive.
15745 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15747 # Variables whose values should be saved in libtool wrapper scripts and
15748 # restored at link time.
15749 variables_saved_for_relink=$lt_variables_saved_for_relink
15751 # Do we need the "lib" prefix for modules?
15752 need_lib_prefix=$need_lib_prefix
15754 # Do we need a version for libraries?
15755 need_version=$need_version
15757 # Library versioning type.
15758 version_type=$version_type
15760 # Shared library runtime path variable.
15761 runpath_var=$runpath_var
15763 # Shared library path variable.
15764 shlibpath_var=$shlibpath_var
15766 # Is shlibpath searched before the hard-coded library search path?
15767 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15769 # Format of library name prefix.
15770 libname_spec=$lt_libname_spec
15772 # List of archive names. First name is the real one, the rest are links.
15773 # The last name is the one that the linker finds with -lNAME
15774 library_names_spec=$lt_library_names_spec
15776 # The coded name of the library, if different from the real name.
15777 soname_spec=$lt_soname_spec
15779 # Command to use after installation of a shared archive.
15780 postinstall_cmds=$lt_postinstall_cmds
15782 # Command to use after uninstallation of a shared archive.
15783 postuninstall_cmds=$lt_postuninstall_cmds
15785 # Commands used to finish a libtool library installation in a directory.
15786 finish_cmds=$lt_finish_cmds
15788 # As "finish_cmds", except a single script fragment to be evaled but
15790 finish_eval=$lt_finish_eval
15792 # Whether we should hardcode library paths into libraries.
15793 hardcode_into_libs=$hardcode_into_libs
15795 # Compile-time system search path for libraries.
15796 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15798 # Run-time system search path for libraries.
15799 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15801 # Whether dlopen is supported.
15802 dlopen_support=$enable_dlopen
15804 # Whether dlopen of programs is supported.
15805 dlopen_self=$enable_dlopen_self
15807 # Whether dlopen of statically linked programs is supported.
15808 dlopen_self_static=$enable_dlopen_self_static
15810 # Commands to strip libraries.
15811 old_striplib=$lt_old_striplib
15812 striplib=$lt_striplib
15815 # The linker used to build libraries.
15818 # Commands used to build an old-style archive.
15819 old_archive_cmds=$lt_old_archive_cmds
15821 # A language specific compiler.
15824 # Is the compiler the GNU compiler?
15827 # Compiler flag to turn off builtin functions.
15828 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15830 # How to pass a linker flag through the compiler.
15831 wl=$lt_lt_prog_compiler_wl
15833 # Additional compiler flags for building library objects.
15834 pic_flag=$lt_lt_prog_compiler_pic
15836 # Compiler flag to prevent dynamic linking.
15837 link_static_flag=$lt_lt_prog_compiler_static
15839 # Does compiler simultaneously support -c and -o options?
15840 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15842 # Whether or not to add -lc for building shared libraries.
15843 build_libtool_need_lc=$archive_cmds_need_lc
15845 # Whether or not to disallow shared libs when runtime libs are static.
15846 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15848 # Compiler flag to allow reflexive dlopens.
15849 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15851 # Compiler flag to generate shared objects directly from archives.
15852 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15854 # Whether the compiler copes with passing no objects directly.
15855 compiler_needs_object=$lt_compiler_needs_object
15857 # Create an old-style archive from a shared archive.
15858 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15860 # Create a temporary old-style archive to link instead of a shared archive.
15861 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15863 # Commands used to build a shared archive.
15864 archive_cmds=$lt_archive_cmds
15865 archive_expsym_cmds=$lt_archive_expsym_cmds
15867 # Commands used to build a loadable module if different from building
15868 # a shared archive.
15869 module_cmds=$lt_module_cmds
15870 module_expsym_cmds=$lt_module_expsym_cmds
15872 # Whether we are building with GNU ld or not.
15873 with_gnu_ld=$lt_with_gnu_ld
15875 # Flag that allows shared libraries with undefined symbols to be built.
15876 allow_undefined_flag=$lt_allow_undefined_flag
15878 # Flag that enforces no undefined symbols.
15879 no_undefined_flag=$lt_no_undefined_flag
15881 # Flag to hardcode \$libdir into a binary during linking.
15882 # This must work even if \$libdir does not exist
15883 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15885 # If ld is used when linking, flag to hardcode \$libdir into a binary
15886 # during linking. This must work even if \$libdir does not exist.
15887 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15889 # Whether we need a single "-rpath" flag with a separated argument.
15890 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15892 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15893 # DIR into the resulting binary.
15894 hardcode_direct=$hardcode_direct
15896 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15897 # DIR into the resulting binary and the resulting library dependency is
15898 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15899 # library is relocated.
15900 hardcode_direct_absolute=$hardcode_direct_absolute
15902 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15903 # into the resulting binary.
15904 hardcode_minus_L=$hardcode_minus_L
15906 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15907 # into the resulting binary.
15908 hardcode_shlibpath_var=$hardcode_shlibpath_var
15910 # Set to "yes" if building a shared library automatically hardcodes DIR
15911 # into the library and all subsequent libraries and executables linked
15913 hardcode_automatic=$hardcode_automatic
15915 # Set to yes if linker adds runtime paths of dependent libraries
15916 # to runtime path list.
15917 inherit_rpath=$inherit_rpath
15919 # Whether libtool must link a program against all its dependency libraries.
15920 link_all_deplibs=$link_all_deplibs
15922 # Fix the shell variable \$srcfile for the compiler.
15923 fix_srcfile_path=$lt_fix_srcfile_path
15925 # Set to "yes" if exported symbols are required.
15926 always_export_symbols=$always_export_symbols
15928 # The commands to list exported symbols.
15929 export_symbols_cmds=$lt_export_symbols_cmds
15931 # Symbols that should not be listed in the preloaded symbols.
15932 exclude_expsyms=$lt_exclude_expsyms
15934 # Symbols that must always be exported.
15935 include_expsyms=$lt_include_expsyms
15937 # Commands necessary for linking programs (against libraries) with templates.
15938 prelink_cmds=$lt_prelink_cmds
15940 # Specify filename containing input files.
15941 file_list_spec=$lt_file_list_spec
15943 # How to hardcode a shared library path into an executable.
15944 hardcode_action=$hardcode_action
15946 # ### END LIBTOOL CONFIG
15952 cat <<\_LT_EOF >> "$cfgfile"
15953 # AIX sometimes has problems with the GCC collect2 program. For some
15954 # reason, if we set the COLLECT_NAMES environment variable, the problems
15955 # vanish in a puff of smoke.
15956 if test "X${COLLECT_NAMES+set}" != Xset; then
15958 export COLLECT_NAMES
15965 ltmain="$ac_aux_dir/ltmain.sh"
15968 # We use sed instead of cat because bash on DJGPP gets confused if
15969 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15970 # text mode, it properly converts lines to CR/LF. This bash problem
15971 # is reportedly fixed, but why not run on old versions too?
15972 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15973 || (rm -f "$cfgfile"; exit 1)
15977 cat << \_LT_EOF >> "$cfgfile"
15978 # func_dirname file append nondir_replacement
15979 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15980 # otherwise set result to NONDIR_REPLACEMENT.
15984 */*) func_dirname_result="${1%/*}${2}" ;;
15985 * ) func_dirname_result="${3}" ;;
15989 # func_basename file
15992 func_basename_result="${1##*/}"
15995 # func_stripname prefix suffix name
15996 # strip PREFIX and SUFFIX off of NAME.
15997 # PREFIX and SUFFIX must not contain globbing or regex special
15998 # characters, hashes, percent signs, but SUFFIX may contain a leading
15999 # dot (in which case that matches only a dot).
16002 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16003 # positional parameters, so assign one to ordinary parameter first.
16004 func_stripname_result=${3}
16005 func_stripname_result=${func_stripname_result#"${1}"}
16006 func_stripname_result=${func_stripname_result%"${2}"}
16012 func_opt_split_opt=${1%%=*}
16013 func_opt_split_arg=${1#*=}
16020 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16021 *) func_lo2o_result=${1} ;;
16026 *) # Bourne compatible functions.
16027 cat << \_LT_EOF >> "$cfgfile"
16028 # func_dirname file append nondir_replacement
16029 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16030 # otherwise set result to NONDIR_REPLACEMENT.
16033 # Extract subdirectory from the argument.
16034 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16035 if test "X$func_dirname_result" = "X${1}"; then
16036 func_dirname_result="${3}"
16038 func_dirname_result="$func_dirname_result${2}"
16042 # func_basename file
16045 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16048 # func_stripname prefix suffix name
16049 # strip PREFIX and SUFFIX off of NAME.
16050 # PREFIX and SUFFIX must not contain globbing or regex special
16051 # characters, hashes, percent signs, but SUFFIX may contain a leading
16052 # dot (in which case that matches only a dot).
16053 # func_strip_suffix prefix name
16057 .*) func_stripname_result=`$ECHO "X${3}" \
16058 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16059 *) func_stripname_result=`$ECHO "X${3}" \
16060 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16065 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16066 my_sed_long_arg='1s/^-[^=]*=//'
16071 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16072 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16078 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16083 case $lt_shell_append in
16085 cat << \_LT_EOF >> "$cfgfile"
16087 # func_append var value
16088 # Append VALUE to the end of shell variable VAR.
16096 cat << \_LT_EOF >> "$cfgfile"
16098 # func_append var value
16099 # Append VALUE to the end of shell variable VAR.
16109 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16110 || (rm -f "$cfgfile"; exit 1)
16112 mv -f "$cfgfile" "$ofile" ||
16113 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16118 for ac_file in $CONFIG_FILES; do
16119 # Support "outfile[:infile[:infile...]]"
16121 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16123 # PO directories have a Makefile.in generated from Makefile.in.in.
16124 case "$ac_file" in */Makefile.in)
16125 # Adjust a relative srcdir.
16126 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16127 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16128 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16129 # In autoconf-2.13 it is called $ac_given_srcdir.
16130 # In autoconf-2.50 it is called $srcdir.
16131 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16132 case "$ac_given_srcdir" in
16133 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16134 /*) top_srcdir="$ac_given_srcdir" ;;
16135 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16137 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16138 rm -f "$ac_dir/POTFILES"
16139 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16140 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16141 POMAKEFILEDEPS="POTFILES.in"
16142 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16143 # on $ac_dir but don't depend on user-specified configuration
16145 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16146 # The LINGUAS file contains the set of available languages.
16147 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16148 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16150 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16151 # Hide the ALL_LINGUAS assigment from automake.
16152 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16153 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16155 # The set of available languages was given in configure.in.
16156 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16158 case "$ac_given_srcdir" in
16160 *) srcdirpre='$(srcdir)/' ;;
16166 for lang in $ALL_LINGUAS; do
16167 POFILES="$POFILES $srcdirpre$lang.po"
16168 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16169 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16170 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16172 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16173 # environment variable.
16175 if test -n "$ALL_LINGUAS"; then
16176 for presentlang in $ALL_LINGUAS; do
16178 if test "%UNSET%" != "$LINGUAS"; then
16179 desiredlanguages="$LINGUAS"
16181 desiredlanguages="$ALL_LINGUAS"
16183 for desiredlang in $desiredlanguages; do
16184 # Use the presentlang catalog if desiredlang is
16185 # a. equal to presentlang, or
16186 # b. a variant of presentlang (because in this case,
16187 # presentlang can be used as a fallback for messages
16188 # which are not translated in the desiredlang catalog).
16189 case "$desiredlang" in
16190 "$presentlang"*) useit=yes;;
16193 if test $useit = yes; then
16194 INST_LINGUAS="$INST_LINGUAS $presentlang"
16199 if test -n "$INST_LINGUAS"; then
16200 for lang in $INST_LINGUAS; do
16201 CATALOGS="$CATALOGS $lang.gmo"
16204 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16205 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"
16206 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16207 if test -f "$f"; then
16209 *.orig | *.bak | *~) ;;
16210 *) cat "$f" >> "$ac_dir/Makefile" ;;
16218 default ) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
16219 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
16220 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
16221 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
16222 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
16223 if test "x$cgen_cpu_prefix" != x ; then
16224 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
16230 cat >>$CONFIG_STATUS <<\_ACEOF
16232 { (exit 0); exit 0; }
16234 chmod +x $CONFIG_STATUS
16235 ac_clean_files=$ac_clean_files_save
16238 # configure is writing to config.log, and then calls config.status.
16239 # config.status does its own redirection, appending to config.log.
16240 # Unfortunately, on DOS this fails, as config.log is still kept open
16241 # by configure, so config.status won't be able to write to it; its
16242 # output is simply discarded. So we exec the FD to /dev/null,
16243 # effectively closing config.log, so it can be properly (re)opened and
16244 # appended to by config.status. When coming back to configure, we
16245 # need to make the FD available again.
16246 if test "$no_create" != yes; then
16248 ac_config_status_args=
16249 test "$silent" = yes &&
16250 ac_config_status_args="$ac_config_status_args --quiet"
16252 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16254 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16255 # would make configure fail if this is the last instruction.
16256 $ac_cs_success || { (exit 1); exit 1; }