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="ldmain.c"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
428 # include <sys/types.h>
431 # include <sys/stat.h>
442 # if !STDC_HEADERS && HAVE_MEMORY_H
448 # include <strings.h>
451 # include <inttypes.h>
461 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE use_sysroot TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS NO_WERROR LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO CPP USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE YACC LEX LEXLIB LEX_OUTPUT_ROOT MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE HDEFINES HOSTING_CRT0 HOSTING_LIBS NATIVE_LIB_DIRS STRINGIFY EMUL EMULATION_OFILES EMUL_EXTRA_OFILES LIB_PATH EMULATION_LIBPATH TESTBFDLIB datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
462 ac_subst_files='TDIRS'
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-targets alternative target configurations
1006 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1007 --enable-got=<type> GOT handling scheme (target, single, negative,
1009 --enable-werror treat compile warnings as errors
1010 --enable-build-warnings enable build-time compiler warnings
1011 --enable-shared[=PKGS]
1012 build shared libraries [default=yes]
1013 --enable-static[=PKGS]
1014 build static libraries [default=yes]
1015 --enable-fast-install[=PKGS]
1016 optimize for fast installation [default=yes]
1017 --disable-libtool-lock avoid locking (might break parallel builds)
1018 --disable-nls do not use Native Language Support
1019 --enable-maintainer-mode enable make rules and dependencies not useful
1020 (and sometimes confusing) to the casual installer
1023 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1024 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1025 --with-lib-path=dir1:dir2... set default LIB_PATH
1026 --with-sysroot=DIR Search for usr/lib et al within DIR.
1027 --with-pic try to use only PIC/non-PIC objects [default=use
1029 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1031 Some influential environment variables:
1032 CC C compiler command
1033 CFLAGS C compiler flags
1034 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1035 nonstandard directory <lib dir>
1036 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1037 headers in a nonstandard directory <include dir>
1040 Use these variables to override the choices made by `configure' or to help
1041 it to find libraries and programs with nonstandard names/locations.
1046 if test "$ac_init_help" = "recursive"; then
1047 # If there are subdirs, report their specific --help.
1049 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1050 test -d $ac_dir || continue
1053 if test "$ac_dir" != .; then
1054 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1055 # A "../" for each directory in $ac_dir_suffix.
1056 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1058 ac_dir_suffix= ac_top_builddir=
1062 .) # No --srcdir option. We are building in place.
1064 if test -z "$ac_top_builddir"; then
1067 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1069 [\\/]* | ?:[\\/]* ) # Absolute path.
1070 ac_srcdir=$srcdir$ac_dir_suffix;
1071 ac_top_srcdir=$srcdir ;;
1073 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1074 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1077 # Do not use `cd foo && pwd` to compute absolute paths, because
1078 # the directories may not exist.
1080 .) ac_abs_builddir="$ac_dir";;
1083 .) ac_abs_builddir=`pwd`;;
1084 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1085 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1088 case $ac_abs_builddir in
1089 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1091 case ${ac_top_builddir}. in
1092 .) ac_abs_top_builddir=$ac_abs_builddir;;
1093 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1094 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1097 case $ac_abs_builddir in
1098 .) ac_abs_srcdir=$ac_srcdir;;
1101 .) ac_abs_srcdir=$ac_abs_builddir;;
1102 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1103 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1106 case $ac_abs_builddir in
1107 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1109 case $ac_top_srcdir in
1110 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1111 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1112 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1117 # Check for guested configure; otherwise get Cygnus style configure.
1118 if test -f $ac_srcdir/configure.gnu; then
1120 $SHELL $ac_srcdir/configure.gnu --help=recursive
1121 elif test -f $ac_srcdir/configure; then
1123 $SHELL $ac_srcdir/configure --help=recursive
1124 elif test -f $ac_srcdir/configure.ac ||
1125 test -f $ac_srcdir/configure.in; then
1127 $ac_configure --help
1129 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1135 test -n "$ac_init_help" && exit 0
1136 if $ac_init_version; then
1139 Copyright (C) 2003 Free Software Foundation, Inc.
1140 This configure script is free software; the Free Software Foundation
1141 gives unlimited permission to copy, distribute and modify it.
1147 This file contains any messages produced by compilers while
1148 running configure, to aid debugging if configure makes a mistake.
1150 It was created by $as_me, which was
1151 generated by GNU Autoconf 2.59. Invocation command line was
1162 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1163 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1164 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1165 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1166 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1168 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1169 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1171 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1172 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1173 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1174 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1175 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1176 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1177 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1185 test -z "$as_dir" && as_dir=.
1186 echo "PATH: $as_dir"
1201 # Keep a trace of the command line.
1202 # Strip out --no-create and --no-recursion so they do not pile up.
1203 # Strip out --silent because we don't want to record it for future runs.
1204 # Also quote any args containing shell meta-characters.
1205 # Make two passes to allow for proper duplicate-argument suppression.
1210 ac_must_keep_next=false
1216 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218 | -silent | --silent | --silen | --sile | --sil)
1220 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1221 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1224 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1226 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1227 if test $ac_must_keep_next = true; then
1228 ac_must_keep_next=false # Got value, back to normal.
1231 *=* | --config-cache | -C | -disable-* | --disable-* \
1232 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1233 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1234 | -with-* | --with-* | -without-* | --without-* | --x)
1235 case "$ac_configure_args0 " in
1236 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1239 -* ) ac_must_keep_next=true ;;
1242 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1243 # Get rid of the leading space.
1249 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1250 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1252 # When interrupted or exit'd, cleanup temporary files, and complete
1253 # config.log. We remove comments because anyway the quotes in there
1254 # would cause problems or look ugly.
1255 # WARNING: Be sure not to use single quotes in there, as some shells,
1256 # such as our DU 5.0 friend, will then `close' the trap.
1257 trap 'exit_status=$?
1258 # Save into config.log some information that might help in debugging.
1263 ## ---------------- ##
1264 ## Cache variables. ##
1265 ## ---------------- ##
1268 # The following way of writing the cache mishandles newlines in values,
1271 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1274 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1275 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1279 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1286 ## ----------------- ##
1287 ## Output variables. ##
1288 ## ----------------- ##
1291 for ac_var in $ac_subst_vars
1293 eval ac_val=$`echo $ac_var`
1294 echo "$ac_var='"'"'$ac_val'"'"'"
1298 if test -n "$ac_subst_files"; then
1305 for ac_var in $ac_subst_files
1307 eval ac_val=$`echo $ac_var`
1308 echo "$ac_var='"'"'$ac_val'"'"'"
1313 if test -s confdefs.h; then
1320 sed "/^$/d" confdefs.h | sort
1323 test "$ac_signal" != 0 &&
1324 echo "$as_me: caught signal $ac_signal"
1325 echo "$as_me: exit $exit_status"
1327 rm -f core *.core &&
1328 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1331 for ac_signal in 1 2 13 15; do
1332 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1336 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1337 rm -rf conftest* confdefs.h
1338 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1341 # Predefined preprocessor variables.
1343 cat >>confdefs.h <<_ACEOF
1344 #define PACKAGE_NAME "$PACKAGE_NAME"
1348 cat >>confdefs.h <<_ACEOF
1349 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1353 cat >>confdefs.h <<_ACEOF
1354 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1358 cat >>confdefs.h <<_ACEOF
1359 #define PACKAGE_STRING "$PACKAGE_STRING"
1363 cat >>confdefs.h <<_ACEOF
1364 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1368 # Let the site file select an alternate cache file if it wants to.
1369 # Prefer explicitly selected file to automatically selected ones.
1370 if test -z "$CONFIG_SITE"; then
1371 if test "x$prefix" != xNONE; then
1372 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1374 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1377 for ac_site_file in $CONFIG_SITE; do
1378 if test -r "$ac_site_file"; then
1379 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1380 echo "$as_me: loading site script $ac_site_file" >&6;}
1381 sed 's/^/| /' "$ac_site_file" >&5
1386 if test -r "$cache_file"; then
1387 # Some versions of bash will fail to source /dev/null (special
1388 # files actually), so we avoid doing that.
1389 if test -f "$cache_file"; then
1390 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1391 echo "$as_me: loading cache $cache_file" >&6;}
1393 [\\/]* | ?:[\\/]* ) . $cache_file;;
1394 *) . ./$cache_file;;
1398 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1399 echo "$as_me: creating cache $cache_file" >&6;}
1403 # Check that the precious variables saved in the cache have kept the same
1405 ac_cache_corrupted=false
1406 for ac_var in `(set) 2>&1 |
1407 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1408 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1409 eval ac_new_set=\$ac_env_${ac_var}_set
1410 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1411 eval ac_new_val="\$ac_env_${ac_var}_value"
1412 case $ac_old_set,$ac_new_set in
1414 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1415 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1416 ac_cache_corrupted=: ;;
1418 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1419 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1420 ac_cache_corrupted=: ;;
1423 if test "x$ac_old_val" != "x$ac_new_val"; then
1424 # differences in whitespace do not lead to failure.
1425 ac_old_val_w=`echo x $ac_old_val`
1426 ac_new_val_w=`echo x $ac_new_val`
1427 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1428 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1429 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1430 ac_cache_corrupted=:
1432 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1433 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1434 eval $ac_var=\$ac_old_val
1436 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1437 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1438 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1439 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1442 # Pass precious variables to config.status.
1443 if test "$ac_new_set" = set; then
1445 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1446 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1447 *) ac_arg=$ac_var=$ac_new_val ;;
1449 case " $ac_configure_args " in
1450 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1451 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1455 if $ac_cache_corrupted; then
1456 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1457 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1458 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1459 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1460 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1461 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1462 { (exit 1); exit 1; }; }
1466 ac_cpp='$CPP $CPPFLAGS'
1467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1494 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1495 if test -f $ac_dir/install-sh; then
1497 ac_install_sh="$ac_aux_dir/install-sh -c"
1499 elif test -f $ac_dir/install.sh; then
1501 ac_install_sh="$ac_aux_dir/install.sh -c"
1503 elif test -f $ac_dir/shtool; then
1505 ac_install_sh="$ac_aux_dir/shtool install -c"
1509 if test -z "$ac_aux_dir"; then
1510 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1511 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1512 { (exit 1); exit 1; }; }
1514 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1515 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1516 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1518 # Make sure we can run config.sub.
1519 $ac_config_sub sun4 >/dev/null 2>&1 ||
1520 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1521 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1522 { (exit 1); exit 1; }; }
1524 echo "$as_me:$LINENO: checking build system type" >&5
1525 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1526 if test "${ac_cv_build+set}" = set; then
1527 echo $ECHO_N "(cached) $ECHO_C" >&6
1529 ac_cv_build_alias=$build_alias
1530 test -z "$ac_cv_build_alias" &&
1531 ac_cv_build_alias=`$ac_config_guess`
1532 test -z "$ac_cv_build_alias" &&
1533 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1534 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1535 { (exit 1); exit 1; }; }
1536 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1537 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1538 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1539 { (exit 1); exit 1; }; }
1542 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1543 echo "${ECHO_T}$ac_cv_build" >&6
1545 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1546 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1547 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1550 echo "$as_me:$LINENO: checking host system type" >&5
1551 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1552 if test "${ac_cv_host+set}" = set; then
1553 echo $ECHO_N "(cached) $ECHO_C" >&6
1555 ac_cv_host_alias=$host_alias
1556 test -z "$ac_cv_host_alias" &&
1557 ac_cv_host_alias=$ac_cv_build_alias
1558 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1559 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1560 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1561 { (exit 1); exit 1; }; }
1564 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1565 echo "${ECHO_T}$ac_cv_host" >&6
1567 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1568 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1569 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1572 echo "$as_me:$LINENO: checking target system type" >&5
1573 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1574 if test "${ac_cv_target+set}" = set; then
1575 echo $ECHO_N "(cached) $ECHO_C" >&6
1577 ac_cv_target_alias=$target_alias
1578 test "x$ac_cv_target_alias" = "x" &&
1579 ac_cv_target_alias=$ac_cv_host_alias
1580 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1581 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1582 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1583 { (exit 1); exit 1; }; }
1586 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1587 echo "${ECHO_T}$ac_cv_target" >&6
1588 target=$ac_cv_target
1589 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1590 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1591 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1594 # The aliases save the names the user supplied, while $host etc.
1595 # will get canonicalized.
1596 test -n "$target_alias" &&
1597 test "$program_prefix$program_suffix$program_transform_name" = \
1599 program_prefix=${target_alias}-
1601 ac_cpp='$CPP $CPPFLAGS'
1602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1605 if test -n "$ac_tool_prefix"; then
1606 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1607 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1608 echo "$as_me:$LINENO: checking for $ac_word" >&5
1609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1610 if test "${ac_cv_prog_CC+set}" = set; then
1611 echo $ECHO_N "(cached) $ECHO_C" >&6
1613 if test -n "$CC"; then
1614 ac_cv_prog_CC="$CC" # Let the user override the test.
1616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1620 test -z "$as_dir" && as_dir=.
1621 for ac_exec_ext in '' $ac_executable_extensions; do
1622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1623 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1633 if test -n "$CC"; then
1634 echo "$as_me:$LINENO: result: $CC" >&5
1635 echo "${ECHO_T}$CC" >&6
1637 echo "$as_me:$LINENO: result: no" >&5
1638 echo "${ECHO_T}no" >&6
1642 if test -z "$ac_cv_prog_CC"; then
1644 # Extract the first word of "gcc", so it can be a program name with args.
1645 set dummy gcc; ac_word=$2
1646 echo "$as_me:$LINENO: checking for $ac_word" >&5
1647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1648 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1649 echo $ECHO_N "(cached) $ECHO_C" >&6
1651 if test -n "$ac_ct_CC"; then
1652 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1658 test -z "$as_dir" && as_dir=.
1659 for ac_exec_ext in '' $ac_executable_extensions; do
1660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1661 ac_cv_prog_ac_ct_CC="gcc"
1662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1671 if test -n "$ac_ct_CC"; then
1672 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1673 echo "${ECHO_T}$ac_ct_CC" >&6
1675 echo "$as_me:$LINENO: result: no" >&5
1676 echo "${ECHO_T}no" >&6
1684 if test -z "$CC"; then
1685 if test -n "$ac_tool_prefix"; then
1686 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1687 set dummy ${ac_tool_prefix}cc; ac_word=$2
1688 echo "$as_me:$LINENO: checking for $ac_word" >&5
1689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1690 if test "${ac_cv_prog_CC+set}" = set; then
1691 echo $ECHO_N "(cached) $ECHO_C" >&6
1693 if test -n "$CC"; then
1694 ac_cv_prog_CC="$CC" # Let the user override the test.
1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700 test -z "$as_dir" && as_dir=.
1701 for ac_exec_ext in '' $ac_executable_extensions; do
1702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1703 ac_cv_prog_CC="${ac_tool_prefix}cc"
1704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713 if test -n "$CC"; then
1714 echo "$as_me:$LINENO: result: $CC" >&5
1715 echo "${ECHO_T}$CC" >&6
1717 echo "$as_me:$LINENO: result: no" >&5
1718 echo "${ECHO_T}no" >&6
1722 if test -z "$ac_cv_prog_CC"; then
1724 # Extract the first word of "cc", so it can be a program name with args.
1725 set dummy cc; ac_word=$2
1726 echo "$as_me:$LINENO: checking for $ac_word" >&5
1727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1728 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1729 echo $ECHO_N "(cached) $ECHO_C" >&6
1731 if test -n "$ac_ct_CC"; then
1732 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1738 test -z "$as_dir" && as_dir=.
1739 for ac_exec_ext in '' $ac_executable_extensions; do
1740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1741 ac_cv_prog_ac_ct_CC="cc"
1742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1750 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1751 if test -n "$ac_ct_CC"; then
1752 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1753 echo "${ECHO_T}$ac_ct_CC" >&6
1755 echo "$as_me:$LINENO: result: no" >&5
1756 echo "${ECHO_T}no" >&6
1765 if test -z "$CC"; then
1766 # Extract the first word of "cc", so it can be a program name with args.
1767 set dummy cc; ac_word=$2
1768 echo "$as_me:$LINENO: checking for $ac_word" >&5
1769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1770 if test "${ac_cv_prog_CC+set}" = set; then
1771 echo $ECHO_N "(cached) $ECHO_C" >&6
1773 if test -n "$CC"; then
1774 ac_cv_prog_CC="$CC" # Let the user override the test.
1777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1781 test -z "$as_dir" && as_dir=.
1782 for ac_exec_ext in '' $ac_executable_extensions; do
1783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1784 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1785 ac_prog_rejected=yes
1789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1795 if test $ac_prog_rejected = yes; then
1796 # We found a bogon in the path, so make sure we never use it.
1797 set dummy $ac_cv_prog_CC
1799 if test $# != 0; then
1800 # We chose a different compiler from the bogus one.
1801 # However, it has the same basename, so the bogon will be chosen
1802 # first if we set CC to just the basename; use the full file name.
1804 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1810 if test -n "$CC"; then
1811 echo "$as_me:$LINENO: result: $CC" >&5
1812 echo "${ECHO_T}$CC" >&6
1814 echo "$as_me:$LINENO: result: no" >&5
1815 echo "${ECHO_T}no" >&6
1819 if test -z "$CC"; then
1820 if test -n "$ac_tool_prefix"; then
1823 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1824 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1825 echo "$as_me:$LINENO: checking for $ac_word" >&5
1826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1827 if test "${ac_cv_prog_CC+set}" = set; then
1828 echo $ECHO_N "(cached) $ECHO_C" >&6
1830 if test -n "$CC"; then
1831 ac_cv_prog_CC="$CC" # Let the user override the test.
1833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1837 test -z "$as_dir" && as_dir=.
1838 for ac_exec_ext in '' $ac_executable_extensions; do
1839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1840 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1850 if test -n "$CC"; then
1851 echo "$as_me:$LINENO: result: $CC" >&5
1852 echo "${ECHO_T}$CC" >&6
1854 echo "$as_me:$LINENO: result: no" >&5
1855 echo "${ECHO_T}no" >&6
1858 test -n "$CC" && break
1861 if test -z "$CC"; then
1865 # Extract the first word of "$ac_prog", so it can be a program name with args.
1866 set dummy $ac_prog; ac_word=$2
1867 echo "$as_me:$LINENO: checking for $ac_word" >&5
1868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1869 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1870 echo $ECHO_N "(cached) $ECHO_C" >&6
1872 if test -n "$ac_ct_CC"; then
1873 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1879 test -z "$as_dir" && as_dir=.
1880 for ac_exec_ext in '' $ac_executable_extensions; do
1881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1882 ac_cv_prog_ac_ct_CC="$ac_prog"
1883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1891 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1892 if test -n "$ac_ct_CC"; then
1893 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1894 echo "${ECHO_T}$ac_ct_CC" >&6
1896 echo "$as_me:$LINENO: result: no" >&5
1897 echo "${ECHO_T}no" >&6
1900 test -n "$ac_ct_CC" && break
1909 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1910 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1911 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1912 See \`config.log' for more details." >&5
1913 echo "$as_me: error: no acceptable C compiler found in \$PATH
1914 See \`config.log' for more details." >&2;}
1915 { (exit 1); exit 1; }; }; }
1917 # Provide some information about the compiler.
1918 echo "$as_me:$LINENO:" \
1919 "checking for C compiler version" >&5
1920 ac_compiler=`set X $ac_compile; echo $2`
1921 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1922 (eval $ac_compiler --version </dev/null >&5) 2>&5
1924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925 (exit $ac_status); }
1926 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1927 (eval $ac_compiler -v </dev/null >&5) 2>&5
1929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1930 (exit $ac_status); }
1931 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1932 (eval $ac_compiler -V </dev/null >&5) 2>&5
1934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935 (exit $ac_status); }
1937 cat >conftest.$ac_ext <<_ACEOF
1940 cat confdefs.h >>conftest.$ac_ext
1941 cat >>conftest.$ac_ext <<_ACEOF
1942 /* end confdefs.h. */
1952 ac_clean_files_save=$ac_clean_files
1953 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1954 # Try to create an executable without -o first, disregard a.out.
1955 # It will help us diagnose broken compilers, and finding out an intuition
1957 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1958 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1959 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1960 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1961 (eval $ac_link_default) 2>&5
1963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964 (exit $ac_status); }; then
1965 # Find the output, starting from the most likely. This scheme is
1966 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1969 # Be careful to initialize this variable, since it used to be cached.
1970 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1972 # b.out is created by i960 compilers.
1973 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1975 test -f "$ac_file" || continue
1977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1980 # This is the source file.
1983 # We found the default executable, but exeext='' is most
1987 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1988 # FIXME: I believe we export ac_cv_exeext for Libtool,
1989 # but it would be cool to find out if it's true. Does anybody
1990 # maintain Libtool? --akim.
1998 echo "$as_me: failed program was:" >&5
1999 sed 's/^/| /' conftest.$ac_ext >&5
2001 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2002 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2003 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2004 See \`config.log' for more details." >&5
2005 echo "$as_me: error: C compiler cannot create executables
2006 See \`config.log' for more details." >&2;}
2007 { (exit 77); exit 77; }; }; }
2010 ac_exeext=$ac_cv_exeext
2011 echo "$as_me:$LINENO: result: $ac_file" >&5
2012 echo "${ECHO_T}$ac_file" >&6
2014 # Check the compiler produces executables we can run. If not, either
2015 # the compiler is broken, or we cross compile.
2016 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2017 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2018 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2019 # If not cross compiling, check that we can run a simple program.
2020 if test "$cross_compiling" != yes; then
2021 if { ac_try='./$ac_file'
2022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2026 (exit $ac_status); }; }; then
2029 if test "$cross_compiling" = maybe; then
2032 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2033 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2034 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2035 If you meant to cross compile, use \`--host'.
2036 See \`config.log' for more details." >&5
2037 echo "$as_me: error: cannot run C compiled programs.
2038 If you meant to cross compile, use \`--host'.
2039 See \`config.log' for more details." >&2;}
2040 { (exit 1); exit 1; }; }; }
2044 echo "$as_me:$LINENO: result: yes" >&5
2045 echo "${ECHO_T}yes" >&6
2047 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2048 ac_clean_files=$ac_clean_files_save
2049 # Check the compiler produces executables we can run. If not, either
2050 # the compiler is broken, or we cross compile.
2051 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2052 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2053 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2054 echo "${ECHO_T}$cross_compiling" >&6
2056 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2057 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2059 (eval $ac_link) 2>&5
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); }; then
2063 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2064 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2065 # work properly (i.e., refer to `conftest.exe'), while it won't with
2067 for ac_file in conftest.exe conftest conftest.*; do
2068 test -f "$ac_file" || continue
2070 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2071 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2078 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2079 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2080 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2081 See \`config.log' for more details." >&5
2082 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2083 See \`config.log' for more details." >&2;}
2084 { (exit 1); exit 1; }; }; }
2087 rm -f conftest$ac_cv_exeext
2088 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2089 echo "${ECHO_T}$ac_cv_exeext" >&6
2091 rm -f conftest.$ac_ext
2092 EXEEXT=$ac_cv_exeext
2094 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2095 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2096 if test "${ac_cv_objext+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2099 cat >conftest.$ac_ext <<_ACEOF
2102 cat confdefs.h >>conftest.$ac_ext
2103 cat >>conftest.$ac_ext <<_ACEOF
2104 /* end confdefs.h. */
2114 rm -f conftest.o conftest.obj
2115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2116 (eval $ac_compile) 2>&5
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }; then
2120 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2122 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2123 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2128 echo "$as_me: failed program was:" >&5
2129 sed 's/^/| /' conftest.$ac_ext >&5
2131 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2132 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2133 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2134 See \`config.log' for more details." >&5
2135 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2136 See \`config.log' for more details." >&2;}
2137 { (exit 1); exit 1; }; }; }
2140 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2142 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2143 echo "${ECHO_T}$ac_cv_objext" >&6
2144 OBJEXT=$ac_cv_objext
2146 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2147 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2148 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2151 cat >conftest.$ac_ext <<_ACEOF
2154 cat confdefs.h >>conftest.$ac_ext
2155 cat >>conftest.$ac_ext <<_ACEOF
2156 /* end confdefs.h. */
2169 rm -f conftest.$ac_objext
2170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2171 (eval $ac_compile) 2>conftest.er1
2173 grep -v '^ *+' conftest.er1 >conftest.err
2175 cat conftest.err >&5
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); } &&
2178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }; } &&
2184 { ac_try='test -s conftest.$ac_objext'
2185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }; }; then
2192 echo "$as_me: failed program was:" >&5
2193 sed 's/^/| /' conftest.$ac_ext >&5
2197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2198 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2201 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2202 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2203 GCC=`test $ac_compiler_gnu = yes && echo yes`
2204 ac_test_CFLAGS=${CFLAGS+set}
2205 ac_save_CFLAGS=$CFLAGS
2207 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2208 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2209 if test "${ac_cv_prog_cc_g+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 cat >conftest.$ac_ext <<_ACEOF
2215 cat confdefs.h >>conftest.$ac_ext
2216 cat >>conftest.$ac_ext <<_ACEOF
2217 /* end confdefs.h. */
2227 rm -f conftest.$ac_objext
2228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2229 (eval $ac_compile) 2>conftest.er1
2231 grep -v '^ *+' conftest.er1 >conftest.err
2233 cat conftest.err >&5
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); } &&
2236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; } &&
2242 { ac_try='test -s conftest.$ac_objext'
2243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; }; then
2250 echo "$as_me: failed program was:" >&5
2251 sed 's/^/| /' conftest.$ac_ext >&5
2255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2257 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2258 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2259 if test "$ac_test_CFLAGS" = set; then
2260 CFLAGS=$ac_save_CFLAGS
2261 elif test $ac_cv_prog_cc_g = yes; then
2262 if test "$GCC" = yes; then
2268 if test "$GCC" = yes; then
2274 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2275 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2276 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2277 echo $ECHO_N "(cached) $ECHO_C" >&6
2279 ac_cv_prog_cc_stdc=no
2281 cat >conftest.$ac_ext <<_ACEOF
2284 cat confdefs.h >>conftest.$ac_ext
2285 cat >>conftest.$ac_ext <<_ACEOF
2286 /* end confdefs.h. */
2289 #include <sys/types.h>
2290 #include <sys/stat.h>
2291 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2292 struct buf { int x; };
2293 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2294 static char *e (p, i)
2300 static char *f (char * (*g) (char **, int), char **p, ...)
2305 s = g (p, va_arg (v,int));
2310 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2311 function prototypes and stuff, but not '\xHH' hex character constants.
2312 These don't provoke an error unfortunately, instead are silently treated
2313 as 'x'. The following induces an error, until -std1 is added to get
2314 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2315 array size at least. It's necessary to write '\x00'==0 to get something
2316 that's true only with -std1. */
2317 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2319 int test (int i, double x);
2320 struct s1 {int (*f) (int a);};
2321 struct s2 {int (*f) (double a);};
2322 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2328 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2333 # Don't try gcc -ansi; that turns off useful extensions and
2334 # breaks some systems' header files.
2335 # AIX -qlanglvl=ansi
2336 # Ultrix and OSF/1 -std1
2337 # HP-UX 10.20 and later -Ae
2338 # HP-UX older versions -Aa -D_HPUX_SOURCE
2339 # SVR4 -Xc -D__EXTENSIONS__
2340 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2342 CC="$ac_save_CC $ac_arg"
2343 rm -f conftest.$ac_objext
2344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2345 (eval $ac_compile) 2>conftest.er1
2347 grep -v '^ *+' conftest.er1 >conftest.err
2349 cat conftest.err >&5
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); } &&
2352 { ac_try='test -z "$ac_c_werror_flag" || 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" || test ! -s conftest.err'
2407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; } &&
2412 { ac_try='test -s conftest.$ac_objext'
2413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; }; then
2418 for ac_declaration in \
2420 'extern "C" void std::exit (int) throw (); using std::exit;' \
2421 'extern "C" void std::exit (int); using std::exit;' \
2422 'extern "C" void exit (int) throw ();' \
2423 'extern "C" void exit (int);' \
2426 cat >conftest.$ac_ext <<_ACEOF
2429 cat confdefs.h >>conftest.$ac_ext
2430 cat >>conftest.$ac_ext <<_ACEOF
2431 /* end confdefs.h. */
2442 rm -f conftest.$ac_objext
2443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2444 (eval $ac_compile) 2>conftest.er1
2446 grep -v '^ *+' conftest.er1 >conftest.err
2448 cat conftest.err >&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); } &&
2451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); }; } &&
2457 { ac_try='test -s conftest.$ac_objext'
2458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); }; }; then
2465 echo "$as_me: failed program was:" >&5
2466 sed 's/^/| /' conftest.$ac_ext >&5
2470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2471 cat >conftest.$ac_ext <<_ACEOF
2474 cat confdefs.h >>conftest.$ac_ext
2475 cat >>conftest.$ac_ext <<_ACEOF
2476 /* end confdefs.h. */
2486 rm -f conftest.$ac_objext
2487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2488 (eval $ac_compile) 2>conftest.er1
2490 grep -v '^ *+' conftest.er1 >conftest.err
2492 cat conftest.err >&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); } &&
2495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); }; } &&
2501 { ac_try='test -s conftest.$ac_objext'
2502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); }; }; then
2509 echo "$as_me: failed program was:" >&5
2510 sed 's/^/| /' conftest.$ac_ext >&5
2513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2516 if test -n "$ac_declaration"; then
2517 echo '#ifdef __cplusplus' >>confdefs.h
2518 echo $ac_declaration >>confdefs.h
2519 echo '#endif' >>confdefs.h
2523 echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2529 ac_cpp='$CPP $CPPFLAGS'
2530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2535 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2536 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2537 if test "${ac_cv_search_strerror+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2540 ac_func_search_save_LIBS=$LIBS
2541 ac_cv_search_strerror=no
2542 cat >conftest.$ac_ext <<_ACEOF
2545 cat confdefs.h >>conftest.$ac_ext
2546 cat >>conftest.$ac_ext <<_ACEOF
2547 /* end confdefs.h. */
2549 /* Override any gcc2 internal prototype to avoid an error. */
2553 /* We use char because int might match the return type of a gcc2
2554 builtin and then its argument prototype would still apply. */
2564 rm -f conftest.$ac_objext conftest$ac_exeext
2565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2566 (eval $ac_link) 2>conftest.er1
2568 grep -v '^ *+' conftest.er1 >conftest.err
2570 cat conftest.err >&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); } &&
2573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); }; } &&
2579 { ac_try='test -s conftest$ac_exeext'
2580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); }; }; then
2585 ac_cv_search_strerror="none required"
2587 echo "$as_me: failed program was:" >&5
2588 sed 's/^/| /' conftest.$ac_ext >&5
2591 rm -f conftest.err conftest.$ac_objext \
2592 conftest$ac_exeext conftest.$ac_ext
2593 if test "$ac_cv_search_strerror" = no; then
2594 for ac_lib in cposix; do
2595 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2596 cat >conftest.$ac_ext <<_ACEOF
2599 cat confdefs.h >>conftest.$ac_ext
2600 cat >>conftest.$ac_ext <<_ACEOF
2601 /* end confdefs.h. */
2603 /* Override any gcc2 internal prototype to avoid an error. */
2607 /* We use char because int might match the return type of a gcc2
2608 builtin and then its argument prototype would still apply. */
2618 rm -f conftest.$ac_objext conftest$ac_exeext
2619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2620 (eval $ac_link) 2>conftest.er1
2622 grep -v '^ *+' conftest.er1 >conftest.err
2624 cat conftest.err >&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); } &&
2627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; } &&
2633 { ac_try='test -s conftest$ac_exeext'
2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; }; then
2639 ac_cv_search_strerror="-l$ac_lib"
2642 echo "$as_me: failed program was:" >&5
2643 sed 's/^/| /' conftest.$ac_ext >&5
2646 rm -f conftest.err conftest.$ac_objext \
2647 conftest$ac_exeext conftest.$ac_ext
2650 LIBS=$ac_func_search_save_LIBS
2652 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2653 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2654 if test "$ac_cv_search_strerror" != no; then
2655 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2660 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2661 am__api_version="1.9"
2662 # Find a good install program. We prefer a C program (faster),
2663 # so one script is as good as another. But avoid the broken or
2664 # incompatible versions:
2665 # SysV /etc/install, /usr/sbin/install
2666 # SunOS /usr/etc/install
2667 # IRIX /sbin/install
2669 # AmigaOS /C/install, which installs bootblocks on floppy discs
2670 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2671 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2672 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2673 # OS/2's system install, which has a completely different semantic
2674 # ./install, which can be erroneously created by make from ./install.sh.
2675 # Reject install programs that cannot install multiple files.
2676 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2677 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2678 if test -z "$INSTALL"; then
2679 if test "${ac_cv_path_install+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 test -z "$as_dir" && as_dir=.
2687 # Account for people who put trailing slashes in PATH elements.
2689 ./ | .// | /cC/* | \
2690 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2691 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2694 # OSF1 and SCO ODT 3.0 have their own names for install.
2695 # Don't use installbsd from OSF since it installs stuff as root
2697 for ac_prog in ginstall scoinst install; do
2698 for ac_exec_ext in '' $ac_executable_extensions; do
2699 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2700 if test $ac_prog = install &&
2701 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2702 # AIX install. It has an incompatible calling convention.
2704 elif test $ac_prog = install &&
2705 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2706 # program-specific install script used by HP pwplus--don't use.
2709 rm -rf conftest.one conftest.two conftest.dir
2710 echo one > conftest.one
2711 echo two > conftest.two
2713 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2714 test -s conftest.one && test -s conftest.two &&
2715 test -s conftest.dir/conftest.one &&
2716 test -s conftest.dir/conftest.two
2718 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2729 rm -rf conftest.one conftest.two conftest.dir
2732 if test "${ac_cv_path_install+set}" = set; then
2733 INSTALL=$ac_cv_path_install
2735 # As a last resort, use the slow shell script. Don't cache a
2736 # value for INSTALL within a source directory, because that will
2737 # break other packages using the cache if that directory is
2738 # removed, or if the value is a relative name.
2739 INSTALL=$ac_install_sh
2742 echo "$as_me:$LINENO: result: $INSTALL" >&5
2743 echo "${ECHO_T}$INSTALL" >&6
2745 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2746 # It thinks the first close brace ends the variable substitution.
2747 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2749 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2751 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2753 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2754 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2757 echo timestamp > conftest.file
2758 # Do `set' in a subshell so we don't clobber the current shell's
2759 # arguments. Must try -L first in case configure is actually a
2760 # symlink; some systems play weird games with the mod time of symlinks
2761 # (eg FreeBSD returns the mod time of the symlink's containing
2764 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2765 if test "$*" = "X"; then
2767 set X `ls -t $srcdir/configure conftest.file`
2770 if test "$*" != "X $srcdir/configure conftest.file" \
2771 && test "$*" != "X conftest.file $srcdir/configure"; then
2773 # If neither matched, then we have a broken ls. This can happen
2774 # if, for instance, CONFIG_SHELL is bash and it inherits a
2775 # broken ls alias from the environment. This has actually
2776 # happened. Such a system could not be considered "sane".
2777 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2778 alias in your environment" >&5
2779 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2780 alias in your environment" >&2;}
2781 { (exit 1); exit 1; }; }
2784 test "$2" = conftest.file
2790 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2791 Check your system clock" >&5
2792 echo "$as_me: error: newly created file is older than distributed files!
2793 Check your system clock" >&2;}
2794 { (exit 1); exit 1; }; }
2796 echo "$as_me:$LINENO: result: yes" >&5
2797 echo "${ECHO_T}yes" >&6
2798 test "$program_prefix" != NONE &&
2799 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2800 # Use a double $ so make ignores it.
2801 test "$program_suffix" != NONE &&
2802 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2803 # Double any \ or $. echo might interpret backslashes.
2804 # By default was `s,x,x', remove it if useless.
2805 cat <<\_ACEOF >conftest.sed
2806 s/[\\$]/&&/g;s/;s,x,x,$//
2808 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2811 # expand $ac_aux_dir to an absolute path
2812 am_aux_dir=`cd $ac_aux_dir && pwd`
2814 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2815 # Use eval to expand $SHELL
2816 if eval "$MISSING --run true"; then
2817 am_missing_run="$MISSING --run "
2820 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2821 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2824 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2825 # We used to keeping the `.' as first argument, in order to
2826 # allow $(mkdir_p) to be used without argument. As in
2827 # $(mkdir_p) $(somedir)
2828 # where $(somedir) is conditionally defined. However this is wrong
2830 # 1. if the package is installed by a user who cannot write `.'
2831 # make install will fail,
2832 # 2. the above comment should most certainly read
2833 # $(mkdir_p) $(DESTDIR)$(somedir)
2834 # so it does not work when $(somedir) is undefined and
2835 # $(DESTDIR) is not.
2836 # To support the latter case, we have to write
2837 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2838 # so the `.' trick is pointless.
2839 mkdir_p='mkdir -p --'
2841 # On NextStep and OpenStep, the `mkdir' command does not
2842 # recognize any option. It will interpret all options as
2843 # directories to create, and then abort because `.' already
2845 for d in ./-p ./--version;
2847 test -d $d && rmdir $d
2849 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2850 if test -f "$ac_aux_dir/mkinstalldirs"; then
2851 mkdir_p='$(mkinstalldirs)'
2853 mkdir_p='$(install_sh) -d'
2857 for ac_prog in gawk mawk nawk awk
2859 # Extract the first word of "$ac_prog", so it can be a program name with args.
2860 set dummy $ac_prog; ac_word=$2
2861 echo "$as_me:$LINENO: checking for $ac_word" >&5
2862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2863 if test "${ac_cv_prog_AWK+set}" = set; then
2864 echo $ECHO_N "(cached) $ECHO_C" >&6
2866 if test -n "$AWK"; then
2867 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 test -z "$as_dir" && as_dir=.
2874 for ac_exec_ext in '' $ac_executable_extensions; do
2875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2876 ac_cv_prog_AWK="$ac_prog"
2877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2886 if test -n "$AWK"; then
2887 echo "$as_me:$LINENO: result: $AWK" >&5
2888 echo "${ECHO_T}$AWK" >&6
2890 echo "$as_me:$LINENO: result: no" >&5
2891 echo "${ECHO_T}no" >&6
2894 test -n "$AWK" && break
2897 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2898 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2899 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2900 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2903 cat >conftest.make <<\_ACEOF
2905 @echo 'ac_maketemp="$(MAKE)"'
2907 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2908 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2909 if test -n "$ac_maketemp"; then
2910 eval ac_cv_prog_make_${ac_make}_set=yes
2912 eval ac_cv_prog_make_${ac_make}_set=no
2916 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2917 echo "$as_me:$LINENO: result: yes" >&5
2918 echo "${ECHO_T}yes" >&6
2921 echo "$as_me:$LINENO: result: no" >&5
2922 echo "${ECHO_T}no" >&6
2923 SET_MAKE="MAKE=${MAKE-make}"
2926 rm -rf .tst 2>/dev/null
2927 mkdir .tst 2>/dev/null
2928 if test -d .tst; then
2933 rmdir .tst 2>/dev/null
2935 DEPDIR="${am__leading_dot}deps"
2937 ac_config_commands="$ac_config_commands depfiles"
2940 am_make=${MAKE-make}
2941 cat > confinc << 'END'
2946 # If we don't find an include directive, just comment out the code.
2947 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2948 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2952 # First try GNU make style include.
2953 echo "include confinc" > confmf
2954 # We grep out `Entering directory' and `Leaving directory'
2955 # messages which can occur if `w' ends up in MAKEFLAGS.
2956 # In particular we don't look at `^make:' because GNU make might
2957 # be invoked under some other name (usually "gmake"), in which
2958 # case it prints its new name instead of `make'.
2959 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2964 # Now try BSD make style include.
2965 if test "$am__include" = "#"; then
2966 echo '.include "confinc"' > confmf
2967 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2968 am__include=.include
2975 echo "$as_me:$LINENO: result: $_am_result" >&5
2976 echo "${ECHO_T}$_am_result" >&6
2977 rm -f confinc confmf
2979 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2980 if test "${enable_dependency_tracking+set}" = set; then
2981 enableval="$enable_dependency_tracking"
2984 if test "x$enable_dependency_tracking" != xno; then
2985 am_depcomp="$ac_aux_dir/depcomp"
2990 if test "x$enable_dependency_tracking" != xno; then
3000 # test to see if srcdir already configured
3001 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3002 test -f $srcdir/config.status; then
3003 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3004 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3005 { (exit 1); exit 1; }; }
3008 # test whether we have cygpath
3009 if test -z "$CYGPATH_W"; then
3010 if (cygpath --version) >/dev/null 2>/dev/null; then
3011 CYGPATH_W='cygpath -w'
3018 # Define the identity of the package.
3020 VERSION=${BFD_VERSION}
3023 cat >>confdefs.h <<_ACEOF
3024 #define PACKAGE "$PACKAGE"
3028 cat >>confdefs.h <<_ACEOF
3029 #define VERSION "$VERSION"
3032 # Some tools Automake needs.
3034 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3037 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3040 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3043 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3046 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3048 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3050 # Installed binaries are usually stripped using `strip' when the user
3051 # run `make install-strip'. However `strip' might not be the right
3052 # tool to use in cross-compilation environments, therefore Automake
3053 # will honor the `STRIP' environment variable to overrule this program.
3054 if test "$cross_compiling" != no; then
3055 if test -n "$ac_tool_prefix"; then
3056 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3057 set dummy ${ac_tool_prefix}strip; ac_word=$2
3058 echo "$as_me:$LINENO: checking for $ac_word" >&5
3059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3060 if test "${ac_cv_prog_STRIP+set}" = set; then
3061 echo $ECHO_N "(cached) $ECHO_C" >&6
3063 if test -n "$STRIP"; then
3064 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 test -z "$as_dir" && as_dir=.
3071 for ac_exec_ext in '' $ac_executable_extensions; do
3072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3073 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3082 STRIP=$ac_cv_prog_STRIP
3083 if test -n "$STRIP"; then
3084 echo "$as_me:$LINENO: result: $STRIP" >&5
3085 echo "${ECHO_T}$STRIP" >&6
3087 echo "$as_me:$LINENO: result: no" >&5
3088 echo "${ECHO_T}no" >&6
3092 if test -z "$ac_cv_prog_STRIP"; then
3094 # Extract the first word of "strip", so it can be a program name with args.
3095 set dummy strip; ac_word=$2
3096 echo "$as_me:$LINENO: checking for $ac_word" >&5
3097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3098 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3099 echo $ECHO_N "(cached) $ECHO_C" >&6
3101 if test -n "$ac_ct_STRIP"; then
3102 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108 test -z "$as_dir" && as_dir=.
3109 for ac_exec_ext in '' $ac_executable_extensions; do
3110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3111 ac_cv_prog_ac_ct_STRIP="strip"
3112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3118 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3121 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3122 if test -n "$ac_ct_STRIP"; then
3123 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3124 echo "${ECHO_T}$ac_ct_STRIP" >&6
3126 echo "$as_me:$LINENO: result: no" >&5
3127 echo "${ECHO_T}no" >&6
3132 STRIP="$ac_cv_prog_STRIP"
3136 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3138 # We need awk for the "check" target. The system "awk" is bad on
3140 # Always define AMTAR for backward compatibility.
3142 AMTAR=${AMTAR-"${am_missing_run}tar"}
3144 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3149 depcc="$CC" am_compiler_list=
3151 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3152 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3153 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3154 echo $ECHO_N "(cached) $ECHO_C" >&6
3156 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3157 # We make a subdir and do the tests there. Otherwise we can end up
3158 # making bogus files that we don't know about and never remove. For
3159 # instance it was reported that on HP-UX the gcc test will end up
3160 # making a dummy file named `D' -- because `-MD' means `put the output
3163 # Copy depcomp to subdir because otherwise we won't find it if we're
3164 # using a relative directory.
3165 cp "$am_depcomp" conftest.dir
3167 # We will build objects and dependencies in a subdirectory because
3168 # it helps to detect inapplicable dependency modes. For instance
3169 # both Tru64's cc and ICC support -MD to output dependencies as a
3170 # side effect of compilation, but ICC will put the dependencies in
3171 # the current directory while Tru64 will put them in the object
3175 am_cv_CC_dependencies_compiler_type=none
3176 if test "$am_compiler_list" = ""; then
3177 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3179 for depmode in $am_compiler_list; do
3180 # Setup a source with many dependencies, because some compilers
3181 # like to wrap large dependency lists on column 80 (with \), and
3182 # we should not choose a depcomp mode which is confused by this.
3184 # We need to recreate these files for each test, as the compiler may
3185 # overwrite some of them when testing with obscure command lines.
3186 # This happens at least with the AIX C compiler.
3188 for i in 1 2 3 4 5 6; do
3189 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3190 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3191 # Solaris 8's {/usr,}/bin/sh.
3192 touch sub/conftst$i.h
3194 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3198 # after this tag, mechanisms are not by side-effect, so they'll
3199 # only be used when explicitly requested
3200 if test "x$enable_dependency_tracking" = xyes; then
3208 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3209 # mode. It turns out that the SunPro C++ compiler does not properly
3210 # handle `-M -o', and we need to detect this.
3211 if depmode=$depmode \
3212 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3213 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3214 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3215 >/dev/null 2>conftest.err &&
3216 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3217 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3218 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3219 # icc doesn't choke on unknown options, it will just issue warnings
3220 # or remarks (even with -Werror). So we grep stderr for any message
3221 # that says an option was ignored or not supported.
3222 # When given -MP, icc 7.0 and 7.1 complain thusly:
3223 # icc: Command line warning: ignoring option '-M'; no argument required
3224 # The diagnosis changed in icc 8.0:
3225 # icc: Command line remark: option '-MP' not supported
3226 if (grep 'ignoring option' conftest.err ||
3227 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3228 am_cv_CC_dependencies_compiler_type=$depmode
3237 am_cv_CC_dependencies_compiler_type=none
3241 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3242 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3243 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3248 test "x$enable_dependency_tracking" != xno \
3249 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3251 am__fastdepCC_FALSE='#'
3253 am__fastdepCC_TRUE='#'
3254 am__fastdepCC_FALSE=
3261 # Check whether --with-lib-path or --without-lib-path was given.
3262 if test "${with_lib_path+set}" = set; then
3263 withval="$with_lib_path"
3266 # Check whether --enable-targets or --disable-targets was given.
3267 if test "${enable_targets+set}" = set; then
3268 enableval="$enable_targets"
3269 case "${enableval}" in
3270 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
3271 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
3272 { (exit 1); exit 1; }; }
3274 no) enable_targets= ;;
3275 *) enable_targets=$enableval ;;
3277 fi; # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
3278 if test "${enable_64_bit_bfd+set}" = set; then
3279 enableval="$enable_64_bit_bfd"
3280 case "${enableval}" in
3283 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
3284 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
3285 { (exit 1); exit 1; }; } ;;
3291 # Check whether --with-sysroot or --without-sysroot was given.
3292 if test "${with_sysroot+set}" = set; then
3293 withval="$with_sysroot"
3295 case ${with_sysroot} in
3296 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
3297 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3300 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3303 if test "x$prefix" = xNONE; then
3304 test_prefix=/usr/local
3308 if test "x$exec_prefix" = xNONE; then
3309 test_exec_prefix=$test_prefix
3311 test_exec_prefix=$exec_prefix
3313 case ${TARGET_SYSTEM_ROOT} in
3314 "${test_prefix}"|"${test_prefix}/"*|\
3315 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3316 '${prefix}'|'${prefix}/'*|\
3317 '${exec_prefix}'|'${exec_prefix}/'*)
3318 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3319 TARGET_SYSTEM_ROOT_DEFINE="$t"
3327 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
3334 # Check whether --enable-got or --disable-got was given.
3335 if test "${enable_got+set}" = set; then
3336 enableval="$enable_got"
3337 case "${enableval}" in
3338 target | single | negative | multigot) got_handling=$enableval ;;
3339 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-got option" >&5
3340 echo "$as_me: error: bad value ${enableval} for --enable-got option" >&2;}
3341 { (exit 1); exit 1; }; } ;;
3347 case "${got_handling}" in
3350 cat >>confdefs.h <<\_ACEOF
3351 #define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT
3356 cat >>confdefs.h <<\_ACEOF
3357 #define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE
3362 cat >>confdefs.h <<\_ACEOF
3363 #define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE
3368 cat >>confdefs.h <<\_ACEOF
3369 #define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT
3372 *) { { echo "$as_me:$LINENO: error: bad value ${got_handling} for --enable-got option" >&5
3373 echo "$as_me: error: bad value ${got_handling} for --enable-got option" >&2;}
3374 { (exit 1); exit 1; }; } ;;
3378 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
3380 # Check whether --enable-werror or --disable-werror was given.
3381 if test "${enable_werror+set}" = set; then
3382 enableval="$enable_werror"
3383 case "${enableval}" in
3384 yes | y) ERROR_ON_WARNING="yes" ;;
3385 no | n) ERROR_ON_WARNING="no" ;;
3386 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
3387 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
3388 { (exit 1); exit 1; }; } ;;
3392 # Enable -Wno-format by default when using gcc on mingw
3395 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
3396 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
3402 # Enable -Werror by default when using gcc
3403 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
3404 ERROR_ON_WARNING=yes
3408 if test "${ERROR_ON_WARNING}" = yes ; then
3409 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
3410 NO_WERROR="-Wno-error"
3413 if test "${GCC}" = yes ; then
3414 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
3417 # Check whether --enable-build-warnings or --disable-build-warnings was given.
3418 if test "${enable_build_warnings+set}" = set; then
3419 enableval="$enable_build_warnings"
3420 case "${enableval}" in
3421 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
3422 no) if test "${GCC}" = yes ; then
3425 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3426 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
3427 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3428 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
3429 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3433 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
3434 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
3441 ac_config_headers="$ac_config_headers config.h:config.in"
3444 if test -z "$target" ; then
3445 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
3446 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
3447 { (exit 1); exit 1; }; }
3449 if test -z "$host" ; then
3450 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
3451 echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
3452 { (exit 1); exit 1; }; }
3455 # host-specific stuff:
3458 ac_cpp='$CPP $CPPFLAGS'
3459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3462 if test -n "$ac_tool_prefix"; then
3463 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3464 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3465 echo "$as_me:$LINENO: checking for $ac_word" >&5
3466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3467 if test "${ac_cv_prog_CC+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3470 if test -n "$CC"; then
3471 ac_cv_prog_CC="$CC" # Let the user override the test.
3473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477 test -z "$as_dir" && as_dir=.
3478 for ac_exec_ext in '' $ac_executable_extensions; do
3479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3480 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3490 if test -n "$CC"; then
3491 echo "$as_me:$LINENO: result: $CC" >&5
3492 echo "${ECHO_T}$CC" >&6
3494 echo "$as_me:$LINENO: result: no" >&5
3495 echo "${ECHO_T}no" >&6
3499 if test -z "$ac_cv_prog_CC"; then
3501 # Extract the first word of "gcc", so it can be a program name with args.
3502 set dummy gcc; ac_word=$2
3503 echo "$as_me:$LINENO: checking for $ac_word" >&5
3504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3505 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3506 echo $ECHO_N "(cached) $ECHO_C" >&6
3508 if test -n "$ac_ct_CC"; then
3509 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3515 test -z "$as_dir" && as_dir=.
3516 for ac_exec_ext in '' $ac_executable_extensions; do
3517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3518 ac_cv_prog_ac_ct_CC="gcc"
3519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3527 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3528 if test -n "$ac_ct_CC"; then
3529 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3530 echo "${ECHO_T}$ac_ct_CC" >&6
3532 echo "$as_me:$LINENO: result: no" >&5
3533 echo "${ECHO_T}no" >&6
3541 if test -z "$CC"; then
3542 if test -n "$ac_tool_prefix"; then
3543 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3544 set dummy ${ac_tool_prefix}cc; ac_word=$2
3545 echo "$as_me:$LINENO: checking for $ac_word" >&5
3546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3547 if test "${ac_cv_prog_CC+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3550 if test -n "$CC"; then
3551 ac_cv_prog_CC="$CC" # Let the user override the test.
3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557 test -z "$as_dir" && as_dir=.
3558 for ac_exec_ext in '' $ac_executable_extensions; do
3559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3560 ac_cv_prog_CC="${ac_tool_prefix}cc"
3561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3570 if test -n "$CC"; then
3571 echo "$as_me:$LINENO: result: $CC" >&5
3572 echo "${ECHO_T}$CC" >&6
3574 echo "$as_me:$LINENO: result: no" >&5
3575 echo "${ECHO_T}no" >&6
3579 if test -z "$ac_cv_prog_CC"; then
3581 # Extract the first word of "cc", so it can be a program name with args.
3582 set dummy cc; ac_word=$2
3583 echo "$as_me:$LINENO: checking for $ac_word" >&5
3584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3585 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3586 echo $ECHO_N "(cached) $ECHO_C" >&6
3588 if test -n "$ac_ct_CC"; then
3589 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 test -z "$as_dir" && as_dir=.
3596 for ac_exec_ext in '' $ac_executable_extensions; do
3597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3598 ac_cv_prog_ac_ct_CC="cc"
3599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3607 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3608 if test -n "$ac_ct_CC"; then
3609 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3610 echo "${ECHO_T}$ac_ct_CC" >&6
3612 echo "$as_me:$LINENO: result: no" >&5
3613 echo "${ECHO_T}no" >&6
3622 if test -z "$CC"; then
3623 # Extract the first word of "cc", so it can be a program name with args.
3624 set dummy cc; ac_word=$2
3625 echo "$as_me:$LINENO: checking for $ac_word" >&5
3626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3627 if test "${ac_cv_prog_CC+set}" = set; then
3628 echo $ECHO_N "(cached) $ECHO_C" >&6
3630 if test -n "$CC"; then
3631 ac_cv_prog_CC="$CC" # Let the user override the test.
3634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638 test -z "$as_dir" && as_dir=.
3639 for ac_exec_ext in '' $ac_executable_extensions; do
3640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3641 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3642 ac_prog_rejected=yes
3646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3652 if test $ac_prog_rejected = yes; then
3653 # We found a bogon in the path, so make sure we never use it.
3654 set dummy $ac_cv_prog_CC
3656 if test $# != 0; then
3657 # We chose a different compiler from the bogus one.
3658 # However, it has the same basename, so the bogon will be chosen
3659 # first if we set CC to just the basename; use the full file name.
3661 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3667 if test -n "$CC"; then
3668 echo "$as_me:$LINENO: result: $CC" >&5
3669 echo "${ECHO_T}$CC" >&6
3671 echo "$as_me:$LINENO: result: no" >&5
3672 echo "${ECHO_T}no" >&6
3676 if test -z "$CC"; then
3677 if test -n "$ac_tool_prefix"; then
3680 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3681 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3682 echo "$as_me:$LINENO: checking for $ac_word" >&5
3683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3684 if test "${ac_cv_prog_CC+set}" = set; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3687 if test -n "$CC"; then
3688 ac_cv_prog_CC="$CC" # Let the user override the test.
3690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694 test -z "$as_dir" && as_dir=.
3695 for ac_exec_ext in '' $ac_executable_extensions; do
3696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3697 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3707 if test -n "$CC"; then
3708 echo "$as_me:$LINENO: result: $CC" >&5
3709 echo "${ECHO_T}$CC" >&6
3711 echo "$as_me:$LINENO: result: no" >&5
3712 echo "${ECHO_T}no" >&6
3715 test -n "$CC" && break
3718 if test -z "$CC"; then
3722 # Extract the first word of "$ac_prog", so it can be a program name with args.
3723 set dummy $ac_prog; ac_word=$2
3724 echo "$as_me:$LINENO: checking for $ac_word" >&5
3725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3726 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3729 if test -n "$ac_ct_CC"; then
3730 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736 test -z "$as_dir" && as_dir=.
3737 for ac_exec_ext in '' $ac_executable_extensions; do
3738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3739 ac_cv_prog_ac_ct_CC="$ac_prog"
3740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3748 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3749 if test -n "$ac_ct_CC"; then
3750 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3751 echo "${ECHO_T}$ac_ct_CC" >&6
3753 echo "$as_me:$LINENO: result: no" >&5
3754 echo "${ECHO_T}no" >&6
3757 test -n "$ac_ct_CC" && break
3766 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3767 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3768 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3769 See \`config.log' for more details." >&5
3770 echo "$as_me: error: no acceptable C compiler found in \$PATH
3771 See \`config.log' for more details." >&2;}
3772 { (exit 1); exit 1; }; }; }
3774 # Provide some information about the compiler.
3775 echo "$as_me:$LINENO:" \
3776 "checking for C compiler version" >&5
3777 ac_compiler=`set X $ac_compile; echo $2`
3778 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3779 (eval $ac_compiler --version </dev/null >&5) 2>&5
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); }
3783 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3784 (eval $ac_compiler -v </dev/null >&5) 2>&5
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); }
3788 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3789 (eval $ac_compiler -V </dev/null >&5) 2>&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); }
3794 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3795 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3796 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3797 echo $ECHO_N "(cached) $ECHO_C" >&6
3799 cat >conftest.$ac_ext <<_ACEOF
3802 cat confdefs.h >>conftest.$ac_ext
3803 cat >>conftest.$ac_ext <<_ACEOF
3804 /* end confdefs.h. */
3817 rm -f conftest.$ac_objext
3818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3819 (eval $ac_compile) 2>conftest.er1
3821 grep -v '^ *+' conftest.er1 >conftest.err
3823 cat conftest.err >&5
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); } &&
3826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); }; } &&
3832 { ac_try='test -s conftest.$ac_objext'
3833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); }; }; then
3840 echo "$as_me: failed program was:" >&5
3841 sed 's/^/| /' conftest.$ac_ext >&5
3845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3846 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3849 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3850 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3851 GCC=`test $ac_compiler_gnu = yes && echo yes`
3852 ac_test_CFLAGS=${CFLAGS+set}
3853 ac_save_CFLAGS=$CFLAGS
3855 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3856 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3857 if test "${ac_cv_prog_cc_g+set}" = set; then
3858 echo $ECHO_N "(cached) $ECHO_C" >&6
3860 cat >conftest.$ac_ext <<_ACEOF
3863 cat confdefs.h >>conftest.$ac_ext
3864 cat >>conftest.$ac_ext <<_ACEOF
3865 /* end confdefs.h. */
3875 rm -f conftest.$ac_objext
3876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3877 (eval $ac_compile) 2>conftest.er1
3879 grep -v '^ *+' conftest.er1 >conftest.err
3881 cat conftest.err >&5
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); } &&
3884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); }; } &&
3890 { ac_try='test -s conftest.$ac_objext'
3891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); }; }; then
3898 echo "$as_me: failed program was:" >&5
3899 sed 's/^/| /' conftest.$ac_ext >&5
3903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3905 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3906 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3907 if test "$ac_test_CFLAGS" = set; then
3908 CFLAGS=$ac_save_CFLAGS
3909 elif test $ac_cv_prog_cc_g = yes; then
3910 if test "$GCC" = yes; then
3916 if test "$GCC" = yes; then
3922 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3923 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3924 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3927 ac_cv_prog_cc_stdc=no
3929 cat >conftest.$ac_ext <<_ACEOF
3932 cat confdefs.h >>conftest.$ac_ext
3933 cat >>conftest.$ac_ext <<_ACEOF
3934 /* end confdefs.h. */
3937 #include <sys/types.h>
3938 #include <sys/stat.h>
3939 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3940 struct buf { int x; };
3941 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3942 static char *e (p, i)
3948 static char *f (char * (*g) (char **, int), char **p, ...)
3953 s = g (p, va_arg (v,int));
3958 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3959 function prototypes and stuff, but not '\xHH' hex character constants.
3960 These don't provoke an error unfortunately, instead are silently treated
3961 as 'x'. The following induces an error, until -std1 is added to get
3962 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3963 array size at least. It's necessary to write '\x00'==0 to get something
3964 that's true only with -std1. */
3965 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3967 int test (int i, double x);
3968 struct s1 {int (*f) (int a);};
3969 struct s2 {int (*f) (double a);};
3970 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3976 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3981 # Don't try gcc -ansi; that turns off useful extensions and
3982 # breaks some systems' header files.
3983 # AIX -qlanglvl=ansi
3984 # Ultrix and OSF/1 -std1
3985 # HP-UX 10.20 and later -Ae
3986 # HP-UX older versions -Aa -D_HPUX_SOURCE
3987 # SVR4 -Xc -D__EXTENSIONS__
3988 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3990 CC="$ac_save_CC $ac_arg"
3991 rm -f conftest.$ac_objext
3992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3993 (eval $ac_compile) 2>conftest.er1
3995 grep -v '^ *+' conftest.er1 >conftest.err
3997 cat conftest.err >&5
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); } &&
4000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); }; } &&
4006 { ac_try='test -s conftest.$ac_objext'
4007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); }; }; then
4012 ac_cv_prog_cc_stdc=$ac_arg
4015 echo "$as_me: failed program was:" >&5
4016 sed 's/^/| /' conftest.$ac_ext >&5
4019 rm -f conftest.err conftest.$ac_objext
4021 rm -f conftest.$ac_ext conftest.$ac_objext
4026 case "x$ac_cv_prog_cc_stdc" in
4028 echo "$as_me:$LINENO: result: none needed" >&5
4029 echo "${ECHO_T}none needed" >&6 ;;
4031 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4032 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4033 CC="$CC $ac_cv_prog_cc_stdc" ;;
4036 # Some people use a C++ compiler to compile C. Since we use `exit',
4037 # in C++ we need to declare it. In case someone uses the same compiler
4038 # for both compiling C and C++ we need to have the C++ compiler decide
4039 # the declaration of exit, since it's the most demanding environment.
4040 cat >conftest.$ac_ext <<_ACEOF
4045 rm -f conftest.$ac_objext
4046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4047 (eval $ac_compile) 2>conftest.er1
4049 grep -v '^ *+' conftest.er1 >conftest.err
4051 cat conftest.err >&5
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); } &&
4054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); }; } &&
4060 { ac_try='test -s conftest.$ac_objext'
4061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); }; }; then
4066 for ac_declaration in \
4068 'extern "C" void std::exit (int) throw (); using std::exit;' \
4069 'extern "C" void std::exit (int); using std::exit;' \
4070 'extern "C" void exit (int) throw ();' \
4071 'extern "C" void exit (int);' \
4074 cat >conftest.$ac_ext <<_ACEOF
4077 cat confdefs.h >>conftest.$ac_ext
4078 cat >>conftest.$ac_ext <<_ACEOF
4079 /* end confdefs.h. */
4090 rm -f conftest.$ac_objext
4091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4092 (eval $ac_compile) 2>conftest.er1
4094 grep -v '^ *+' conftest.er1 >conftest.err
4096 cat conftest.err >&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); } &&
4099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }; } &&
4105 { ac_try='test -s conftest.$ac_objext'
4106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); }; }; then
4113 echo "$as_me: failed program was:" >&5
4114 sed 's/^/| /' conftest.$ac_ext >&5
4118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4119 cat >conftest.$ac_ext <<_ACEOF
4122 cat confdefs.h >>conftest.$ac_ext
4123 cat >>conftest.$ac_ext <<_ACEOF
4124 /* end confdefs.h. */
4134 rm -f conftest.$ac_objext
4135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4136 (eval $ac_compile) 2>conftest.er1
4138 grep -v '^ *+' conftest.er1 >conftest.err
4140 cat conftest.err >&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); } &&
4143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); }; } &&
4149 { ac_try='test -s conftest.$ac_objext'
4150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }; }; then
4157 echo "$as_me: failed program was:" >&5
4158 sed 's/^/| /' conftest.$ac_ext >&5
4161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4164 if test -n "$ac_declaration"; then
4165 echo '#ifdef __cplusplus' >>confdefs.h
4166 echo $ac_declaration >>confdefs.h
4167 echo '#endif' >>confdefs.h
4171 echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.$ac_ext >&5
4175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4177 ac_cpp='$CPP $CPPFLAGS'
4178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4183 cat >>confdefs.h <<\_ACEOF
4184 #define _GNU_SOURCE 1
4188 # Find a good install program. We prefer a C program (faster),
4189 # so one script is as good as another. But avoid the broken or
4190 # incompatible versions:
4191 # SysV /etc/install, /usr/sbin/install
4192 # SunOS /usr/etc/install
4193 # IRIX /sbin/install
4195 # AmigaOS /C/install, which installs bootblocks on floppy discs
4196 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4197 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4198 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4199 # OS/2's system install, which has a completely different semantic
4200 # ./install, which can be erroneously created by make from ./install.sh.
4201 # Reject install programs that cannot install multiple files.
4202 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4203 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4204 if test -z "$INSTALL"; then
4205 if test "${ac_cv_path_install+set}" = set; then
4206 echo $ECHO_N "(cached) $ECHO_C" >&6
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212 test -z "$as_dir" && as_dir=.
4213 # Account for people who put trailing slashes in PATH elements.
4215 ./ | .// | /cC/* | \
4216 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4217 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4220 # OSF1 and SCO ODT 3.0 have their own names for install.
4221 # Don't use installbsd from OSF since it installs stuff as root
4223 for ac_prog in ginstall scoinst install; do
4224 for ac_exec_ext in '' $ac_executable_extensions; do
4225 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4226 if test $ac_prog = install &&
4227 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4228 # AIX install. It has an incompatible calling convention.
4230 elif test $ac_prog = install &&
4231 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4232 # program-specific install script used by HP pwplus--don't use.
4235 rm -rf conftest.one conftest.two conftest.dir
4236 echo one > conftest.one
4237 echo two > conftest.two
4239 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4240 test -s conftest.one && test -s conftest.two &&
4241 test -s conftest.dir/conftest.one &&
4242 test -s conftest.dir/conftest.two
4244 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4255 rm -rf conftest.one conftest.two conftest.dir
4258 if test "${ac_cv_path_install+set}" = set; then
4259 INSTALL=$ac_cv_path_install
4261 # As a last resort, use the slow shell script. Don't cache a
4262 # value for INSTALL within a source directory, because that will
4263 # break other packages using the cache if that directory is
4264 # removed, or if the value is a relative name.
4265 INSTALL=$ac_install_sh
4268 echo "$as_me:$LINENO: result: $INSTALL" >&5
4269 echo "${ECHO_T}$INSTALL" >&6
4271 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4272 # It thinks the first close brace ends the variable substitution.
4273 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4275 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4277 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4282 macro_version='2.1a'
4283 macro_revision='1.2435'
4296 ltmain="$ac_aux_dir/ltmain.sh"
4306 # Check whether --enable-shared or --disable-shared was given.
4307 if test "${enable_shared+set}" = set; then
4308 enableval="$enable_shared"
4309 p=${PACKAGE-default}
4311 yes) enable_shared=yes ;;
4312 no) enable_shared=no ;;
4315 # Look at the argument we got. We use all the common list separators.
4316 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4317 for pkg in $enableval; do
4319 if test "X$pkg" = "X$p"; then
4337 # Check whether --enable-static or --disable-static was given.
4338 if test "${enable_static+set}" = set; then
4339 enableval="$enable_static"
4340 p=${PACKAGE-default}
4342 yes) enable_static=yes ;;
4343 no) enable_static=no ;;
4346 # Look at the argument we got. We use all the common list separators.
4347 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4348 for pkg in $enableval; do
4350 if test "X$pkg" = "X$p"; then
4369 # Check whether --with-pic or --without-pic was given.
4370 if test "${with_pic+set}" = set; then
4377 test -z "$pic_mode" && pic_mode=default
4385 # Check whether --enable-fast-install or --disable-fast-install was given.
4386 if test "${enable_fast_install+set}" = set; then
4387 enableval="$enable_fast_install"
4388 p=${PACKAGE-default}
4390 yes) enable_fast_install=yes ;;
4391 no) enable_fast_install=no ;;
4393 enable_fast_install=no
4394 # Look at the argument we got. We use all the common list separators.
4395 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4396 for pkg in $enableval; do
4398 if test "X$pkg" = "X$p"; then
4399 enable_fast_install=yes
4406 enable_fast_install=yes
4416 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4417 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4418 if test "${lt_cv_path_SED+set}" = set; then
4419 echo $ECHO_N "(cached) $ECHO_C" >&6
4421 # Loop through the user's path and test for sed and gsed.
4422 # Then use that list of sed's as ones to test for truncation.
4423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427 test -z "$as_dir" && as_dir=.
4428 for lt_ac_prog in sed gsed; do
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4431 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4439 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4440 # along with /bin/sed that truncates output.
4441 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4442 test ! -f $lt_ac_sed && continue
4443 cat /dev/null > conftest.in
4445 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4446 # Check for GNU sed and select it if it is found.
4447 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4448 lt_cv_path_SED=$lt_ac_sed
4452 cat conftest.in conftest.in >conftest.tmp
4453 mv conftest.tmp conftest.in
4454 cp conftest.in conftest.nl
4456 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4457 cmp -s conftest.out conftest.nl || break
4458 # 10000 chars as input seems more than enough
4459 test $lt_ac_count -gt 10 && break
4460 lt_ac_count=`expr $lt_ac_count + 1`
4461 if test $lt_ac_count -gt $lt_ac_max; then
4462 lt_ac_max=$lt_ac_count
4463 lt_cv_path_SED=$lt_ac_sed
4472 echo "$as_me:$LINENO: result: $SED" >&5
4473 echo "${ECHO_T}$SED" >&6
4475 test -z "$SED" && SED=sed
4476 Xsed="$SED -e 1s/^X//"
4488 echo "$as_me:$LINENO: checking for egrep" >&5
4489 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4490 if test "${ac_cv_prog_egrep+set}" = set; then
4491 echo $ECHO_N "(cached) $ECHO_C" >&6
4493 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4494 then ac_cv_prog_egrep='grep -E'
4495 else ac_cv_prog_egrep='egrep'
4498 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4499 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4500 EGREP=$ac_cv_prog_egrep
4503 echo "$as_me:$LINENO: checking for fgrep" >&5
4504 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4505 if test "${ac_cv_prog_fgrep+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4508 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4509 then ac_cv_prog_fgrep='grep -F'
4510 else ac_cv_prog_fgrep='fgrep'
4513 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4514 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4515 FGREP=$ac_cv_prog_fgrep
4518 test -z "$GREP" && GREP=grep
4538 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4539 if test "${with_gnu_ld+set}" = set; then
4540 withval="$with_gnu_ld"
4541 test "$withval" = no || with_gnu_ld=yes
4546 if test "$GCC" = yes; then
4547 # Check if gcc -print-prog-name=ld gives a path.
4548 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4549 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4552 # gcc leaves a trailing carriage return which upsets mingw
4553 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4555 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4558 # Accept absolute paths.
4560 re_direlt='/[^/][^/]*/\.\./'
4561 # Canonicalize the pathname of ld
4562 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4563 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4564 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4566 test -z "$LD" && LD="$ac_prog"
4569 # If it fails, then pretend we aren't using GCC.
4573 # If it is relative, then search for the first ld in PATH.
4577 elif test "$with_gnu_ld" = yes; then
4578 echo "$as_me:$LINENO: checking for GNU ld" >&5
4579 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4581 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4582 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4584 if test "${lt_cv_path_LD+set}" = set; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4587 if test -z "$LD"; then
4588 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4589 for ac_dir in $PATH; do
4591 test -z "$ac_dir" && ac_dir=.
4592 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4593 lt_cv_path_LD="$ac_dir/$ac_prog"
4594 # Check to see if the program is GNU ld. I'd rather use --version,
4595 # but apparently some variants of GNU ld only accept -v.
4596 # Break only if it was the GNU/non-GNU ld that we prefer.
4597 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4598 *GNU* | *'with BFD'*)
4599 test "$with_gnu_ld" != no && break
4602 test "$with_gnu_ld" != yes && break
4609 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4614 if test -n "$LD"; then
4615 echo "$as_me:$LINENO: result: $LD" >&5
4616 echo "${ECHO_T}$LD" >&6
4618 echo "$as_me:$LINENO: result: no" >&5
4619 echo "${ECHO_T}no" >&6
4621 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4622 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4623 { (exit 1); exit 1; }; }
4624 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4625 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4626 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
4629 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4630 case `$LD -v 2>&1 </dev/null` in
4631 *GNU* | *'with BFD'*)
4632 lt_cv_prog_gnu_ld=yes
4635 lt_cv_prog_gnu_ld=no
4639 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4640 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4641 with_gnu_ld=$lt_cv_prog_gnu_ld
4652 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4653 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4654 if test "${lt_cv_path_NM+set}" = set; then
4655 echo $ECHO_N "(cached) $ECHO_C" >&6
4657 if test -n "$NM"; then
4658 # Let the user override the test.
4661 lt_nm_to_check="${ac_tool_prefix}nm"
4662 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4663 lt_nm_to_check="$lt_nm_to_check nm"
4665 for lt_tmp_nm in $lt_nm_to_check; do
4666 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4667 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4669 test -z "$ac_dir" && ac_dir=.
4670 tmp_nm="$ac_dir/$lt_tmp_nm"
4671 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4672 # Check to see if the nm accepts a BSD-compat flag.
4673 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4674 # nm: unknown option "B" ignored
4675 # Tru64's nm complains that /dev/null is an invalid object file
4676 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4677 */dev/null* | *'Invalid file or object type'*)
4678 lt_cv_path_NM="$tmp_nm -B"
4682 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4684 lt_cv_path_NM="$tmp_nm -p"
4688 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4689 continue # so that we can try to find one that supports BSD flags
4698 : ${lt_cv_path_NM=no}
4701 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4702 echo "${ECHO_T}$lt_cv_path_NM" >&6
4703 if test "$lt_cv_path_NM" != "no"; then
4706 # Didn't find any BSD compatible name lister, look for dumpbin.
4707 if test -n "$ac_tool_prefix"; then
4708 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4710 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4711 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4712 echo "$as_me:$LINENO: checking for $ac_word" >&5
4713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4714 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4715 echo $ECHO_N "(cached) $ECHO_C" >&6
4717 if test -n "$DUMPBIN"; then
4718 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724 test -z "$as_dir" && as_dir=.
4725 for ac_exec_ext in '' $ac_executable_extensions; do
4726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4727 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4736 DUMPBIN=$ac_cv_prog_DUMPBIN
4737 if test -n "$DUMPBIN"; then
4738 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4739 echo "${ECHO_T}$DUMPBIN" >&6
4741 echo "$as_me:$LINENO: result: no" >&5
4742 echo "${ECHO_T}no" >&6
4745 test -n "$DUMPBIN" && break
4748 if test -z "$DUMPBIN"; then
4749 ac_ct_DUMPBIN=$DUMPBIN
4750 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4752 # Extract the first word of "$ac_prog", so it can be a program name with args.
4753 set dummy $ac_prog; ac_word=$2
4754 echo "$as_me:$LINENO: checking for $ac_word" >&5
4755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4756 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4757 echo $ECHO_N "(cached) $ECHO_C" >&6
4759 if test -n "$ac_ct_DUMPBIN"; then
4760 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766 test -z "$as_dir" && as_dir=.
4767 for ac_exec_ext in '' $ac_executable_extensions; do
4768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4769 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4778 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4779 if test -n "$ac_ct_DUMPBIN"; then
4780 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4781 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4783 echo "$as_me:$LINENO: result: no" >&5
4784 echo "${ECHO_T}no" >&6
4787 test -n "$ac_ct_DUMPBIN" && break
4789 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4791 DUMPBIN=$ac_ct_DUMPBIN
4795 if test "$DUMPBIN" != ":"; then
4799 test -z "$NM" && NM=nm
4806 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4807 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4808 if test "${lt_cv_nm_interface+set}" = set; then
4809 echo $ECHO_N "(cached) $ECHO_C" >&6
4811 lt_cv_nm_interface="BSD nm"
4812 echo "int some_variable = 0;" > conftest.$ac_ext
4813 (eval echo "\"\$as_me:4813: $ac_compile\"" >&5)
4814 (eval "$ac_compile" 2>conftest.err)
4815 cat conftest.err >&5
4816 (eval echo "\"\$as_me:4816: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4817 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4818 cat conftest.err >&5
4819 (eval echo "\"\$as_me:4819: output\"" >&5)
4820 cat conftest.out >&5
4821 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4822 lt_cv_nm_interface="MS dumpbin"
4826 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4827 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4829 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4830 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4832 if test "$LN_S" = "ln -s"; then
4833 echo "$as_me:$LINENO: result: yes" >&5
4834 echo "${ECHO_T}yes" >&6
4836 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4837 echo "${ECHO_T}no, using $LN_S" >&6
4840 # find the maximum length of command line arguments
4841 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4842 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4843 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4844 echo $ECHO_N "(cached) $ECHO_C" >&6
4851 # On DJGPP, this test can blow up pretty badly due to problems in libc
4852 # (any single argument exceeding 2000 bytes causes a buffer overrun
4853 # during glob expansion). Even if it were fixed, the result of this
4854 # check would be larger than it should be.
4855 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4859 # Under GNU Hurd, this test is not required because there is
4860 # no limit to the length of command line arguments.
4861 # Libtool will interpret -1 as no limit whatsoever
4862 lt_cv_sys_max_cmd_len=-1;
4866 # On Win9x/ME, this test blows up -- it succeeds, but takes
4867 # about 5 minutes as the teststring grows exponentially.
4868 # Worse, since 9x/ME are not pre-emptively multitasking,
4869 # you end up with a "frozen" computer, even though with patience
4870 # the test eventually succeeds (with a max line length of 256k).
4871 # Instead, let's just punt: use the minimum linelength reported by
4872 # all of the supported platforms: 8192 (on NT/2K/XP).
4873 lt_cv_sys_max_cmd_len=8192;
4877 # On AmigaOS with pdksh, this test takes hours, literally.
4878 # So we just punt and use a minimum line length of 8192.
4879 lt_cv_sys_max_cmd_len=8192;
4882 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4883 # This has been around since 386BSD, at least. Likely further.
4884 if test -x /sbin/sysctl; then
4885 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4886 elif test -x /usr/sbin/sysctl; then
4887 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4889 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4891 # And add a safety zone
4892 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4893 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4897 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4898 lt_cv_sys_max_cmd_len=196608
4902 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4903 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4904 # nice to cause kernel panics so lets avoid the loop below.
4905 # First set a reasonable default.
4906 lt_cv_sys_max_cmd_len=16384
4908 if test -x /sbin/sysconfig; then
4909 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4910 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4915 lt_cv_sys_max_cmd_len=102400
4917 sysv5* | sco5v6* | sysv4.2uw2*)
4918 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4919 if test -n "$kargmax"; then
4920 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4922 lt_cv_sys_max_cmd_len=32768
4926 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4927 if test -n $lt_cv_sys_max_cmd_len; then
4928 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4929 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4931 # Make teststring a little bigger before we do anything with it.
4932 # a 1K string should be a reasonable start.
4933 for i in 1 2 3 4 5 6 7 8 ; do
4934 teststring=$teststring$teststring
4936 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4937 # If test is not a shell built-in, we'll probably end up computing a
4938 # maximum length that is only half of the actual maximum length, but
4940 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4941 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4942 test $i != 17 # 1/2 MB should be enough
4945 teststring=$teststring$teststring
4947 # Only check the string length outside the loop.
4948 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4950 # Add a significant safety factor because C++ compilers can tack on
4951 # massive amounts of additional arguments before passing them to the
4952 # linker. It appears as though 1/2 is a usable value.
4953 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4960 if test -n $lt_cv_sys_max_cmd_len ; then
4961 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4962 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4964 echo "$as_me:$LINENO: result: none" >&5
4965 echo "${ECHO_T}none" >&6
4967 max_cmd_len=$lt_cv_sys_max_cmd_len
4979 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4980 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4981 # Try some XSI features
4984 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4985 = c,a/b,, ) >/dev/null 2>&1 \
4987 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4988 echo "${ECHO_T}$xsi_shell" >&6
4991 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4992 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4994 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4996 && lt_shell_append=yes
4997 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4998 echo "${ECHO_T}$lt_shell_append" >&6
5001 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5011 # test EBCDIC or ASCII
5012 case `echo X|tr X '\101'` in
5013 A) # ASCII based system
5014 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5015 lt_SP2NL='tr \040 \012'
5016 lt_NL2SP='tr \015\012 \040\040'
5018 *) # EBCDIC based system
5019 lt_SP2NL='tr \100 \n'
5020 lt_NL2SP='tr \r\n \100\100'
5032 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5033 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5034 if test "${lt_cv_ld_reload_flag+set}" = set; then
5035 echo $ECHO_N "(cached) $ECHO_C" >&6
5037 lt_cv_ld_reload_flag='-r'
5039 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5040 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5041 reload_flag=$lt_cv_ld_reload_flag
5042 case $reload_flag in
5044 *) reload_flag=" $reload_flag" ;;
5046 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5049 if test "$GCC" = yes; then
5050 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5052 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5066 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5067 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5068 if test "${lt_cv_deplibs_check_method+set}" = set; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
5071 lt_cv_file_magic_cmd='$MAGIC_CMD'
5072 lt_cv_file_magic_test_file=
5073 lt_cv_deplibs_check_method='unknown'
5074 # Need to set the preceding variable on all platforms that support
5075 # interlibrary dependencies.
5076 # 'none' -- dependencies not supported.
5077 # `unknown' -- same as none, but documents that we really don't know.
5078 # 'pass_all' -- all dependencies passed with no checks.
5079 # 'test_compile' -- check by making test program.
5080 # 'file_magic [[regex]]' -- check by looking for files in library path
5081 # which responds to the $file_magic_cmd with a given extended regex.
5082 # If you have `file' or equivalent on your system and you're not sure
5083 # whether `pass_all' will *always* work, you probably want this one.
5087 lt_cv_deplibs_check_method=pass_all
5091 lt_cv_deplibs_check_method=pass_all
5095 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5096 lt_cv_file_magic_cmd='/usr/bin/file -L'
5097 lt_cv_file_magic_test_file=/shlib/libc.so
5101 # func_win32_libid is a shell function defined in ltmain.sh
5102 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5103 lt_cv_file_magic_cmd='func_win32_libid'
5107 # Base MSYS/MinGW do not provide the 'file' command needed by
5108 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5109 # unless we find 'file', for example because we are cross-compiling.
5110 if ( file / ) >/dev/null 2>&1; then
5111 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5112 lt_cv_file_magic_cmd='func_win32_libid'
5114 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5115 lt_cv_file_magic_cmd='$OBJDUMP -f'
5119 darwin* | rhapsody*)
5120 lt_cv_deplibs_check_method=pass_all
5123 freebsd* | dragonfly*)
5124 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5127 # Not sure whether the presence of OpenBSD here was a mistake.
5128 # Let's accept both of them until this is cleared up.
5129 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5130 lt_cv_file_magic_cmd=/usr/bin/file
5131 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5135 lt_cv_deplibs_check_method=pass_all
5140 lt_cv_deplibs_check_method=pass_all
5143 hpux10.20* | hpux11*)
5144 lt_cv_file_magic_cmd=/usr/bin/file
5147 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5148 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5151 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]'
5152 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5155 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5156 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5162 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5163 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5166 irix5* | irix6* | nonstopux*)
5168 *-32|*"-32 ") libmagic=32-bit;;
5169 *-n32|*"-n32 ") libmagic=N32;;
5170 *-64|*"-64 ") libmagic=64-bit;;
5171 *) libmagic=never-match;;
5173 lt_cv_deplibs_check_method=pass_all
5176 # This must be Linux ELF.
5177 linux* | k*bsd*-gnu)
5178 lt_cv_deplibs_check_method=pass_all
5182 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5183 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5185 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5190 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5191 lt_cv_file_magic_cmd=/usr/bin/file
5192 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5196 lt_cv_deplibs_check_method=pass_all
5200 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5201 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5203 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5207 osf3* | osf4* | osf5*)
5208 lt_cv_deplibs_check_method=pass_all
5212 lt_cv_deplibs_check_method=pass_all
5216 lt_cv_deplibs_check_method=pass_all
5219 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5220 lt_cv_deplibs_check_method=pass_all
5224 case $host_vendor in
5226 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]'
5227 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5230 lt_cv_deplibs_check_method=pass_all
5233 lt_cv_file_magic_cmd='/bin/file'
5234 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5237 lt_cv_file_magic_cmd='/bin/file'
5238 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5239 lt_cv_file_magic_test_file=/lib/libc.so
5242 lt_cv_deplibs_check_method=pass_all
5245 lt_cv_deplibs_check_method=pass_all
5251 lt_cv_deplibs_check_method=pass_all
5256 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5257 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5258 file_magic_cmd=$lt_cv_file_magic_cmd
5259 deplibs_check_method=$lt_cv_deplibs_check_method
5260 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5273 if test -n "$ac_tool_prefix"; then
5274 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5275 set dummy ${ac_tool_prefix}ar; ac_word=$2
5276 echo "$as_me:$LINENO: checking for $ac_word" >&5
5277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5278 if test "${ac_cv_prog_AR+set}" = set; then
5279 echo $ECHO_N "(cached) $ECHO_C" >&6
5281 if test -n "$AR"; then
5282 ac_cv_prog_AR="$AR" # Let the user override the test.
5284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288 test -z "$as_dir" && as_dir=.
5289 for ac_exec_ext in '' $ac_executable_extensions; do
5290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5291 ac_cv_prog_AR="${ac_tool_prefix}ar"
5292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5301 if test -n "$AR"; then
5302 echo "$as_me:$LINENO: result: $AR" >&5
5303 echo "${ECHO_T}$AR" >&6
5305 echo "$as_me:$LINENO: result: no" >&5
5306 echo "${ECHO_T}no" >&6
5310 if test -z "$ac_cv_prog_AR"; then
5312 # Extract the first word of "ar", so it can be a program name with args.
5313 set dummy ar; ac_word=$2
5314 echo "$as_me:$LINENO: checking for $ac_word" >&5
5315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5316 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5319 if test -n "$ac_ct_AR"; then
5320 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326 test -z "$as_dir" && as_dir=.
5327 for ac_exec_ext in '' $ac_executable_extensions; do
5328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5329 ac_cv_prog_ac_ct_AR="ar"
5330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5336 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5339 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5340 if test -n "$ac_ct_AR"; then
5341 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5342 echo "${ECHO_T}$ac_ct_AR" >&6
5344 echo "$as_me:$LINENO: result: no" >&5
5345 echo "${ECHO_T}no" >&6
5353 test -z "$AR" && AR=ar
5354 test -z "$AR_FLAGS" && AR_FLAGS=cru
5366 if test -n "$ac_tool_prefix"; then
5367 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5368 set dummy ${ac_tool_prefix}strip; ac_word=$2
5369 echo "$as_me:$LINENO: checking for $ac_word" >&5
5370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5371 if test "${ac_cv_prog_STRIP+set}" = set; then
5372 echo $ECHO_N "(cached) $ECHO_C" >&6
5374 if test -n "$STRIP"; then
5375 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5381 test -z "$as_dir" && as_dir=.
5382 for ac_exec_ext in '' $ac_executable_extensions; do
5383 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5384 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5393 STRIP=$ac_cv_prog_STRIP
5394 if test -n "$STRIP"; then
5395 echo "$as_me:$LINENO: result: $STRIP" >&5
5396 echo "${ECHO_T}$STRIP" >&6
5398 echo "$as_me:$LINENO: result: no" >&5
5399 echo "${ECHO_T}no" >&6
5403 if test -z "$ac_cv_prog_STRIP"; then
5405 # Extract the first word of "strip", so it can be a program name with args.
5406 set dummy strip; ac_word=$2
5407 echo "$as_me:$LINENO: checking for $ac_word" >&5
5408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5409 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5410 echo $ECHO_N "(cached) $ECHO_C" >&6
5412 if test -n "$ac_ct_STRIP"; then
5413 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419 test -z "$as_dir" && as_dir=.
5420 for ac_exec_ext in '' $ac_executable_extensions; do
5421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5422 ac_cv_prog_ac_ct_STRIP="strip"
5423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5429 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5432 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5433 if test -n "$ac_ct_STRIP"; then
5434 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5435 echo "${ECHO_T}$ac_ct_STRIP" >&6
5437 echo "$as_me:$LINENO: result: no" >&5
5438 echo "${ECHO_T}no" >&6
5443 STRIP="$ac_cv_prog_STRIP"
5446 test -z "$STRIP" && STRIP=:
5453 if test -n "$ac_tool_prefix"; then
5454 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5455 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5456 echo "$as_me:$LINENO: checking for $ac_word" >&5
5457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5458 if test "${ac_cv_prog_RANLIB+set}" = set; then
5459 echo $ECHO_N "(cached) $ECHO_C" >&6
5461 if test -n "$RANLIB"; then
5462 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468 test -z "$as_dir" && as_dir=.
5469 for ac_exec_ext in '' $ac_executable_extensions; do
5470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5471 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5480 RANLIB=$ac_cv_prog_RANLIB
5481 if test -n "$RANLIB"; then
5482 echo "$as_me:$LINENO: result: $RANLIB" >&5
5483 echo "${ECHO_T}$RANLIB" >&6
5485 echo "$as_me:$LINENO: result: no" >&5
5486 echo "${ECHO_T}no" >&6
5490 if test -z "$ac_cv_prog_RANLIB"; then
5491 ac_ct_RANLIB=$RANLIB
5492 # Extract the first word of "ranlib", so it can be a program name with args.
5493 set dummy ranlib; ac_word=$2
5494 echo "$as_me:$LINENO: checking for $ac_word" >&5
5495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5496 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5497 echo $ECHO_N "(cached) $ECHO_C" >&6
5499 if test -n "$ac_ct_RANLIB"; then
5500 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506 test -z "$as_dir" && as_dir=.
5507 for ac_exec_ext in '' $ac_executable_extensions; do
5508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5509 ac_cv_prog_ac_ct_RANLIB="ranlib"
5510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5516 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5519 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5520 if test -n "$ac_ct_RANLIB"; then
5521 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5522 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5524 echo "$as_me:$LINENO: result: no" >&5
5525 echo "${ECHO_T}no" >&6
5528 RANLIB=$ac_ct_RANLIB
5530 RANLIB="$ac_cv_prog_RANLIB"
5533 test -z "$RANLIB" && RANLIB=:
5540 # Determine commands to create old-style static archives.
5541 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5542 old_postinstall_cmds='chmod 644 $oldlib'
5543 old_postuninstall_cmds=
5545 if test -n "$RANLIB"; then
5548 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5551 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5554 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5590 # If no C compiler was specified, use CC.
5593 # If no C compiler flags were specified, use CFLAGS.
5594 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5596 # Allow CC to be a program name with arguments.
5600 # Check for command to grab the raw symbol name followed by C symbol from nm.
5601 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5602 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5603 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5604 echo $ECHO_N "(cached) $ECHO_C" >&6
5607 # These are sane defaults that work on at least a few old systems.
5608 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5610 # Character class describing NM global symbol codes.
5611 symcode='[BCDEGRST]'
5613 # Regexp to match symbols that can be accessed directly from C.
5614 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5616 # Define system-specific variables.
5621 cygwin* | mingw* | pw32*)
5622 symcode='[ABCDGISTW]'
5625 if test "$host_cpu" = ia64; then
5626 symcode='[ABCDEGRST]'
5630 symcode='[BCDEGRST]'
5633 symcode='[BCDEGQRST]'
5644 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5652 # If we're using GNU nm, then use its standard symbol codes.
5653 case `$NM -V 2>&1` in
5654 *GNU* | *'with BFD'*)
5655 symcode='[ABCDGIRSTW]' ;;
5658 # Transform an extracted symbol line into a proper C declaration.
5659 # Some systems (esp. on ia64) link data and code symbols differently,
5660 # so use this general approach.
5661 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5663 # Transform an extracted symbol line into symbol name and symbol address
5664 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5666 # Handle CRLF in mingw tool chain
5670 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5674 # Try without a prefix underscore, then with it.
5675 for ac_symprfx in "" "_"; do
5677 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5678 symxfrm="\\1 $ac_symprfx\\2 \\2"
5680 # Write the raw and C identifiers.
5681 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5682 # Fake it for dumpbin and say T for any non-static function
5683 # and D for any global variable.
5684 # Also find C++ and __fastcall symbols from MSVC++,
5685 # which start with @ or ?.
5686 lt_cv_sys_global_symbol_pipe="$AWK '"\
5687 " {last_section=section; section=\$ 3};"\
5688 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5689 " \$ 0!~/External *\|/{next};"\
5690 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5691 " {if(hide[section]) next};"\
5692 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5693 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5694 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5695 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5696 " ' prfx=^$ac_symprfx"
5698 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5701 # Check to see that the pipe works correctly.
5705 cat > conftest.$ac_ext <<_LT_EOF
5710 void nm_test_func(void);
5711 void nm_test_func(void){}
5715 int main(){nm_test_var='a';nm_test_func();return(0);}
5718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5719 (eval $ac_compile) 2>&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; then
5723 # Now try to grab the symbols.
5725 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5726 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); } && test -s "$nlist"; then
5730 # Try sorting and uniquifying the output.
5731 if sort "$nlist" | uniq > "$nlist"T; then
5732 mv -f "$nlist"T "$nlist"
5737 # Make sure that we snagged all the symbols we need.
5738 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5739 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5740 cat <<_LT_EOF > conftest.$ac_ext
5746 # Now generate the symbol file.
5747 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5749 cat <<_LT_EOF >> conftest.$ac_ext
5751 /* The mapping between symbol names and symbols. */
5756 lt__PROGRAM__LTX_preloaded_symbols[] =
5758 { "@PROGRAM@", (void *) 0 },
5760 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5761 cat <<\_LT_EOF >> conftest.$ac_ext
5765 /* This works around a problem in FreeBSD linker */
5766 #ifdef FREEBSD_WORKAROUND
5767 static const void *lt_preloaded_setup() {
5768 return lt__PROGRAM__LTX_preloaded_symbols;
5776 # Now try linking the two files.
5777 mv conftest.$ac_objext conftstm.$ac_objext
5778 lt_save_LIBS="$LIBS"
5779 lt_save_CFLAGS="$CFLAGS"
5780 LIBS="conftstm.$ac_objext"
5781 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5783 (eval $ac_link) 2>&5
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5789 LIBS="$lt_save_LIBS"
5790 CFLAGS="$lt_save_CFLAGS"
5792 echo "cannot find nm_test_func in $nlist" >&5
5795 echo "cannot find nm_test_var in $nlist" >&5
5798 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5801 echo "$progname: failed program was:" >&5
5802 cat conftest.$ac_ext >&5
5804 rm -f conftest* conftst*
5806 # Do not use the global_symbol_pipe unless it works.
5807 if test "$pipe_works" = yes; then
5810 lt_cv_sys_global_symbol_pipe=
5816 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5817 lt_cv_sys_global_symbol_to_cdecl=
5819 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5820 echo "$as_me:$LINENO: result: failed" >&5
5821 echo "${ECHO_T}failed" >&6
5823 echo "$as_me:$LINENO: result: ok" >&5
5824 echo "${ECHO_T}ok" >&6
5843 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5844 if test "${enable_libtool_lock+set}" = set; then
5845 enableval="$enable_libtool_lock"
5848 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5850 # Some flags need to be propagated to the compiler or linker for good
5854 # Find out which ABI we are using.
5855 echo 'int i;' > conftest.$ac_ext
5856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5857 (eval $ac_compile) 2>&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); }; then
5861 case `/usr/bin/file conftest.$ac_objext` in
5873 # Find out which ABI we are using.
5874 echo '#line 5874 "configure"' > conftest.$ac_ext
5875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5876 (eval $ac_compile) 2>&5
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; then
5880 if test "$lt_cv_prog_gnu_ld" = yes; then
5881 case `/usr/bin/file conftest.$ac_objext` in
5883 LD="${LD-ld} -melf32bsmip"
5886 LD="${LD-ld} -melf32bmipn32"
5889 LD="${LD-ld} -melf64bmip"
5893 case `/usr/bin/file conftest.$ac_objext` in
5909 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5910 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5911 # Find out which ABI we are using.
5912 echo 'int i;' > conftest.$ac_ext
5913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5914 (eval $ac_compile) 2>&5
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); }; then
5918 case `/usr/bin/file conftest.o` in
5921 x86_64-*kfreebsd*-gnu)
5922 LD="${LD-ld} -m elf_i386_fbsd"
5925 LD="${LD-ld} -m elf_i386"
5927 ppc64-*linux*|powerpc64-*linux*)
5928 LD="${LD-ld} -m elf32ppclinux"
5931 LD="${LD-ld} -m elf_s390"
5934 LD="${LD-ld} -m elf32_sparc"
5940 x86_64-*kfreebsd*-gnu)
5941 LD="${LD-ld} -m elf_x86_64_fbsd"
5944 LD="${LD-ld} -m elf_x86_64"
5946 ppc*-*linux*|powerpc*-*linux*)
5947 LD="${LD-ld} -m elf64ppc"
5949 s390*-*linux*|s390*-*tpf*)
5950 LD="${LD-ld} -m elf64_s390"
5953 LD="${LD-ld} -m elf64_sparc"
5963 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5964 SAVE_CFLAGS="$CFLAGS"
5965 CFLAGS="$CFLAGS -belf"
5966 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5967 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5968 if test "${lt_cv_cc_needs_belf+set}" = set; then
5969 echo $ECHO_N "(cached) $ECHO_C" >&6
5972 ac_cpp='$CPP $CPPFLAGS'
5973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5977 cat >conftest.$ac_ext <<_ACEOF
5980 cat confdefs.h >>conftest.$ac_ext
5981 cat >>conftest.$ac_ext <<_ACEOF
5982 /* end confdefs.h. */
5992 rm -f conftest.$ac_objext conftest$ac_exeext
5993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5994 (eval $ac_link) 2>conftest.er1
5996 grep -v '^ *+' conftest.er1 >conftest.err
5998 cat conftest.err >&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); } &&
6001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); }; } &&
6007 { ac_try='test -s conftest$ac_exeext'
6008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; }; then
6013 lt_cv_cc_needs_belf=yes
6015 echo "$as_me: failed program was:" >&5
6016 sed 's/^/| /' conftest.$ac_ext >&5
6018 lt_cv_cc_needs_belf=no
6020 rm -f conftest.err conftest.$ac_objext \
6021 conftest$ac_exeext conftest.$ac_ext
6023 ac_cpp='$CPP $CPPFLAGS'
6024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6029 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6030 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6031 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6032 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6033 CFLAGS="$SAVE_CFLAGS"
6037 # Find out which ABI we are using.
6038 echo 'int i;' > conftest.$ac_ext
6039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6040 (eval $ac_compile) 2>&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); }; then
6044 case `/usr/bin/file conftest.o` in
6046 case $lt_cv_prog_gnu_ld in
6047 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6048 *) LD="${LD-ld} -64" ;;
6057 need_locks="$enable_libtool_lock"
6060 ac_cpp='$CPP $CPPFLAGS'
6061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6064 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6065 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6066 # On Suns, sometimes $CPP names a directory.
6067 if test -n "$CPP" && test -d "$CPP"; then
6070 if test -z "$CPP"; then
6071 if test "${ac_cv_prog_CPP+set}" = set; then
6072 echo $ECHO_N "(cached) $ECHO_C" >&6
6074 # Double quotes because CPP needs to be expanded
6075 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6078 for ac_c_preproc_warn_flag in '' yes
6080 # Use a header file that comes with gcc, so configuring glibc
6081 # with a fresh cross-compiler works.
6082 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6083 # <limits.h> exists even on freestanding compilers.
6084 # On the NeXT, cc -E runs the code through the compiler's parser,
6085 # not just through cpp. "Syntax error" is here to catch this case.
6086 cat >conftest.$ac_ext <<_ACEOF
6089 cat confdefs.h >>conftest.$ac_ext
6090 cat >>conftest.$ac_ext <<_ACEOF
6091 /* end confdefs.h. */
6093 # include <limits.h>
6095 # include <assert.h>
6099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6102 grep -v '^ *+' conftest.er1 >conftest.err
6104 cat conftest.err >&5
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); } >/dev/null; then
6107 if test -s conftest.err; then
6108 ac_cpp_err=$ac_c_preproc_warn_flag
6109 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6116 if test -z "$ac_cpp_err"; then
6119 echo "$as_me: failed program was:" >&5
6120 sed 's/^/| /' conftest.$ac_ext >&5
6122 # Broken: fails on valid input.
6125 rm -f conftest.err conftest.$ac_ext
6127 # OK, works on sane cases. Now check whether non-existent headers
6128 # can be detected and how.
6129 cat >conftest.$ac_ext <<_ACEOF
6132 cat confdefs.h >>conftest.$ac_ext
6133 cat >>conftest.$ac_ext <<_ACEOF
6134 /* end confdefs.h. */
6135 #include <ac_nonexistent.h>
6137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6140 grep -v '^ *+' conftest.er1 >conftest.err
6142 cat conftest.err >&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); } >/dev/null; then
6145 if test -s conftest.err; then
6146 ac_cpp_err=$ac_c_preproc_warn_flag
6147 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6154 if test -z "$ac_cpp_err"; then
6155 # Broken: success on invalid input.
6158 echo "$as_me: failed program was:" >&5
6159 sed 's/^/| /' conftest.$ac_ext >&5
6161 # Passes both tests.
6165 rm -f conftest.err conftest.$ac_ext
6168 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6169 rm -f conftest.err conftest.$ac_ext
6170 if $ac_preproc_ok; then
6182 echo "$as_me:$LINENO: result: $CPP" >&5
6183 echo "${ECHO_T}$CPP" >&6
6185 for ac_c_preproc_warn_flag in '' yes
6187 # Use a header file that comes with gcc, so configuring glibc
6188 # with a fresh cross-compiler works.
6189 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6190 # <limits.h> exists even on freestanding compilers.
6191 # On the NeXT, cc -E runs the code through the compiler's parser,
6192 # not just through cpp. "Syntax error" is here to catch this case.
6193 cat >conftest.$ac_ext <<_ACEOF
6196 cat confdefs.h >>conftest.$ac_ext
6197 cat >>conftest.$ac_ext <<_ACEOF
6198 /* end confdefs.h. */
6200 # include <limits.h>
6202 # include <assert.h>
6206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6209 grep -v '^ *+' conftest.er1 >conftest.err
6211 cat conftest.err >&5
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); } >/dev/null; then
6214 if test -s conftest.err; then
6215 ac_cpp_err=$ac_c_preproc_warn_flag
6216 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6223 if test -z "$ac_cpp_err"; then
6226 echo "$as_me: failed program was:" >&5
6227 sed 's/^/| /' conftest.$ac_ext >&5
6229 # Broken: fails on valid input.
6232 rm -f conftest.err conftest.$ac_ext
6234 # OK, works on sane cases. Now check whether non-existent headers
6235 # can be detected and how.
6236 cat >conftest.$ac_ext <<_ACEOF
6239 cat confdefs.h >>conftest.$ac_ext
6240 cat >>conftest.$ac_ext <<_ACEOF
6241 /* end confdefs.h. */
6242 #include <ac_nonexistent.h>
6244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6247 grep -v '^ *+' conftest.er1 >conftest.err
6249 cat conftest.err >&5
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); } >/dev/null; then
6252 if test -s conftest.err; then
6253 ac_cpp_err=$ac_c_preproc_warn_flag
6254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6261 if test -z "$ac_cpp_err"; then
6262 # Broken: success on invalid input.
6265 echo "$as_me: failed program was:" >&5
6266 sed 's/^/| /' conftest.$ac_ext >&5
6268 # Passes both tests.
6272 rm -f conftest.err conftest.$ac_ext
6275 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6276 rm -f conftest.err conftest.$ac_ext
6277 if $ac_preproc_ok; then
6280 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6281 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6282 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6283 See \`config.log' for more details." >&5
6284 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6285 See \`config.log' for more details." >&2;}
6286 { (exit 1); exit 1; }; }; }
6290 ac_cpp='$CPP $CPPFLAGS'
6291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6296 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6297 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6298 if test "${ac_cv_header_stdc+set}" = set; then
6299 echo $ECHO_N "(cached) $ECHO_C" >&6
6301 cat >conftest.$ac_ext <<_ACEOF
6304 cat confdefs.h >>conftest.$ac_ext
6305 cat >>conftest.$ac_ext <<_ACEOF
6306 /* end confdefs.h. */
6320 rm -f conftest.$ac_objext
6321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6322 (eval $ac_compile) 2>conftest.er1
6324 grep -v '^ *+' conftest.er1 >conftest.err
6326 cat conftest.err >&5
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); } &&
6329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); }; } &&
6335 { ac_try='test -s conftest.$ac_objext'
6336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); }; }; then
6341 ac_cv_header_stdc=yes
6343 echo "$as_me: failed program was:" >&5
6344 sed 's/^/| /' conftest.$ac_ext >&5
6346 ac_cv_header_stdc=no
6348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6350 if test $ac_cv_header_stdc = yes; then
6351 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6352 cat >conftest.$ac_ext <<_ACEOF
6355 cat confdefs.h >>conftest.$ac_ext
6356 cat >>conftest.$ac_ext <<_ACEOF
6357 /* end confdefs.h. */
6361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6362 $EGREP "memchr" >/dev/null 2>&1; then
6365 ac_cv_header_stdc=no
6371 if test $ac_cv_header_stdc = yes; then
6372 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6373 cat >conftest.$ac_ext <<_ACEOF
6376 cat confdefs.h >>conftest.$ac_ext
6377 cat >>conftest.$ac_ext <<_ACEOF
6378 /* end confdefs.h. */
6382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6383 $EGREP "free" >/dev/null 2>&1; then
6386 ac_cv_header_stdc=no
6392 if test $ac_cv_header_stdc = yes; then
6393 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6394 if test "$cross_compiling" = yes; then
6397 cat >conftest.$ac_ext <<_ACEOF
6400 cat confdefs.h >>conftest.$ac_ext
6401 cat >>conftest.$ac_ext <<_ACEOF
6402 /* end confdefs.h. */
6404 #if ((' ' & 0x0FF) == 0x020)
6405 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6406 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6408 # define ISLOWER(c) \
6409 (('a' <= (c) && (c) <= 'i') \
6410 || ('j' <= (c) && (c) <= 'r') \
6411 || ('s' <= (c) && (c) <= 'z'))
6412 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6415 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6420 for (i = 0; i < 256; i++)
6421 if (XOR (islower (i), ISLOWER (i))
6422 || toupper (i) != TOUPPER (i))
6427 rm -f conftest$ac_exeext
6428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6429 (eval $ac_link) 2>&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); }; }; then
6440 echo "$as_me: program exited with status $ac_status" >&5
6441 echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.$ac_ext >&5
6445 ac_cv_header_stdc=no
6447 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6451 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6452 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6453 if test $ac_cv_header_stdc = yes; then
6455 cat >>confdefs.h <<\_ACEOF
6456 #define STDC_HEADERS 1
6461 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6471 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6472 inttypes.h stdint.h unistd.h
6474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6475 echo "$as_me:$LINENO: checking for $ac_header" >&5
6476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6478 echo $ECHO_N "(cached) $ECHO_C" >&6
6480 cat >conftest.$ac_ext <<_ACEOF
6483 cat confdefs.h >>conftest.$ac_ext
6484 cat >>conftest.$ac_ext <<_ACEOF
6485 /* end confdefs.h. */
6486 $ac_includes_default
6488 #include <$ac_header>
6490 rm -f conftest.$ac_objext
6491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6492 (eval $ac_compile) 2>conftest.er1
6494 grep -v '^ *+' conftest.er1 >conftest.err
6496 cat conftest.err >&5
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); } &&
6499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); }; } &&
6505 { ac_try='test -s conftest.$ac_objext'
6506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); }; }; then
6511 eval "$as_ac_Header=yes"
6513 echo "$as_me: failed program was:" >&5
6514 sed 's/^/| /' conftest.$ac_ext >&5
6516 eval "$as_ac_Header=no"
6518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6521 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6523 cat >>confdefs.h <<_ACEOF
6524 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6533 for ac_header in dlfcn.h
6535 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6536 echo "$as_me:$LINENO: checking for $ac_header" >&5
6537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6539 echo $ECHO_N "(cached) $ECHO_C" >&6
6541 cat >conftest.$ac_ext <<_ACEOF
6544 cat confdefs.h >>conftest.$ac_ext
6545 cat >>conftest.$ac_ext <<_ACEOF
6546 /* end confdefs.h. */
6547 $ac_includes_default
6549 #include <$ac_header>
6551 rm -f conftest.$ac_objext
6552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6553 (eval $ac_compile) 2>conftest.er1
6555 grep -v '^ *+' conftest.er1 >conftest.err
6557 cat conftest.err >&5
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); } &&
6560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); }; } &&
6566 { ac_try='test -s conftest.$ac_objext'
6567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); }; }; then
6572 eval "$as_ac_Header=yes"
6574 echo "$as_me: failed program was:" >&5
6575 sed 's/^/| /' conftest.$ac_ext >&5
6577 eval "$as_ac_Header=no"
6579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6582 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6584 cat >>confdefs.h <<_ACEOF
6585 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6594 # This can be used to rebuild libtool when needed
6595 LIBTOOL_DEPS="$ltmain"
6597 # Always use our own libtool.
6598 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6624 test -z "$LN_S" && LN_S="ln -s"
6639 if test -n "${ZSH_VERSION+set}" ; then
6640 setopt NO_GLOB_SUBST
6643 echo "$as_me:$LINENO: checking for objdir" >&5
6644 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6645 if test "${lt_cv_objdir+set}" = set; then
6646 echo $ECHO_N "(cached) $ECHO_C" >&6
6648 rm -f .libs 2>/dev/null
6649 mkdir .libs 2>/dev/null
6650 if test -d .libs; then
6653 # MS-DOS does not allow filenames that begin with a dot.
6656 rmdir .libs 2>/dev/null
6658 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6659 echo "${ECHO_T}$lt_cv_objdir" >&6
6660 objdir=$lt_cv_objdir
6666 cat >>confdefs.h <<_ACEOF
6667 #define LT_OBJDIR "$lt_cv_objdir/"
6688 # AIX sometimes has problems with the GCC collect2 program. For some
6689 # reason, if we set the COLLECT_NAMES environment variable, the problems
6690 # vanish in a puff of smoke.
6691 if test "X${COLLECT_NAMES+set}" != Xset; then
6693 export COLLECT_NAMES
6698 # Sed substitution that helps us do robust quoting. It backslashifies
6699 # metacharacters that are still active within double-quoted strings.
6700 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6702 # Same as above, but do not quote variable references.
6703 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6705 # Sed substitution to delay expansion of an escaped shell variable in a
6706 # double_quote_subst'ed string.
6707 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6709 # Sed substitution to delay expansion of an escaped single quote.
6710 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6712 # Sed substitution to avoid accidental globbing in evaled expressions
6713 no_glob_subst='s/\*/\\\*/g'
6717 can_build_shared=yes
6719 # All known linkers require a `.a' archive for static linking (except MSVC,
6720 # which needs '.lib').
6723 with_gnu_ld="$lt_cv_prog_gnu_ld"
6726 old_CFLAGS="$CFLAGS"
6728 # Set sane defaults for various variables
6729 test -z "$CC" && CC=cc
6730 test -z "$LTCC" && LTCC=$CC
6731 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6732 test -z "$LD" && LD=ld
6733 test -z "$ac_objext" && ac_objext=o
6735 for cc_temp in $compiler""; do
6737 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6738 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6743 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6746 # Only perform the check for file, if the check method requires it
6747 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6748 case $deplibs_check_method in
6750 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6751 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6752 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6753 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6754 echo $ECHO_N "(cached) $ECHO_C" >&6
6758 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6761 lt_save_MAGIC_CMD="$MAGIC_CMD"
6762 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6763 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6764 for ac_dir in $ac_dummy; do
6766 test -z "$ac_dir" && ac_dir=.
6767 if test -f $ac_dir/${ac_tool_prefix}file; then
6768 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6769 if test -n "$file_magic_test_file"; then
6770 case $deplibs_check_method in
6772 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6773 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6774 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6775 $EGREP "$file_magic_regex" > /dev/null; then
6780 *** Warning: the command libtool uses to detect shared libraries,
6781 *** $file_magic_cmd, produces output that libtool cannot recognize.
6782 *** The result is that libtool may fail to recognize shared libraries
6783 *** as such. This will affect the creation of libtool libraries that
6784 *** depend on shared libraries, but programs linked with such libtool
6785 *** libraries will work regardless of this problem. Nevertheless, you
6786 *** may want to report the problem to your system manager and/or to
6787 *** bug-libtool@gnu.org
6797 MAGIC_CMD="$lt_save_MAGIC_CMD"
6802 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6803 if test -n "$MAGIC_CMD"; then
6804 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6805 echo "${ECHO_T}$MAGIC_CMD" >&6
6807 echo "$as_me:$LINENO: result: no" >&5
6808 echo "${ECHO_T}no" >&6
6815 if test -z "$lt_cv_path_MAGIC_CMD"; then
6816 if test -n "$ac_tool_prefix"; then
6817 echo "$as_me:$LINENO: checking for file" >&5
6818 echo $ECHO_N "checking for file... $ECHO_C" >&6
6819 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6820 echo $ECHO_N "(cached) $ECHO_C" >&6
6824 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6827 lt_save_MAGIC_CMD="$MAGIC_CMD"
6828 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6829 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6830 for ac_dir in $ac_dummy; do
6832 test -z "$ac_dir" && ac_dir=.
6833 if test -f $ac_dir/file; then
6834 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6835 if test -n "$file_magic_test_file"; then
6836 case $deplibs_check_method in
6838 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6839 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6840 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6841 $EGREP "$file_magic_regex" > /dev/null; then
6846 *** Warning: the command libtool uses to detect shared libraries,
6847 *** $file_magic_cmd, produces output that libtool cannot recognize.
6848 *** The result is that libtool may fail to recognize shared libraries
6849 *** as such. This will affect the creation of libtool libraries that
6850 *** depend on shared libraries, but programs linked with such libtool
6851 *** libraries will work regardless of this problem. Nevertheless, you
6852 *** may want to report the problem to your system manager and/or to
6853 *** bug-libtool@gnu.org
6863 MAGIC_CMD="$lt_save_MAGIC_CMD"
6868 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6869 if test -n "$MAGIC_CMD"; then
6870 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6871 echo "${ECHO_T}$MAGIC_CMD" >&6
6873 echo "$as_me:$LINENO: result: no" >&5
6874 echo "${ECHO_T}no" >&6
6887 # Use C for the default configuration in the libtool script
6891 ac_cpp='$CPP $CPPFLAGS'
6892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6897 # Source file extension for C test sources.
6900 # Object file extension for compiled C test sources.
6904 # Code to be used in simple compile tests
6905 lt_simple_compile_test_code="int some_variable = 0;"
6907 # Code to be used in simple link tests
6908 lt_simple_link_test_code='int main(){return(0);}'
6916 # If no C compiler was specified, use CC.
6919 # If no C compiler flags were specified, use CFLAGS.
6920 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6922 # Allow CC to be a program name with arguments.
6925 # Save the default compiler, since it gets overwritten when the other
6926 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6927 compiler_DEFAULT=$CC
6929 # save warnings/boilerplate of simple test code
6930 ac_outfile=conftest.$ac_objext
6931 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6932 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6933 _lt_compiler_boilerplate=`cat conftest.err`
6936 ac_outfile=conftest.$ac_objext
6937 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6938 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6939 _lt_linker_boilerplate=`cat conftest.err`
6944 ## There is no encapsulation within the following macros, do not change
6945 ## the running order or otherwise move them around unless you know exactly
6946 ## what you are doing...
6947 if test -n "$compiler"; then
6949 lt_prog_compiler_no_builtin_flag=
6951 if test "$GCC" = yes; then
6952 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6954 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6955 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6956 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6957 echo $ECHO_N "(cached) $ECHO_C" >&6
6959 lt_cv_prog_compiler_rtti_exceptions=no
6960 ac_outfile=conftest.$ac_objext
6961 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6962 lt_compiler_flag="-fno-rtti -fno-exceptions"
6963 # Insert the option either (1) after the last *FLAGS variable, or
6964 # (2) before a word containing "conftest.", or (3) at the end.
6965 # Note that $ac_compile itself does not contain backslashes and begins
6966 # with a dollar sign (not a hyphen), so the echo should work correctly.
6967 # The option is referenced via a variable to avoid confusing sed.
6968 lt_compile=`echo "$ac_compile" | $SED \
6969 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6970 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6971 -e 's:$: $lt_compiler_flag:'`
6972 (eval echo "\"\$as_me:6972: $lt_compile\"" >&5)
6973 (eval "$lt_compile" 2>conftest.err)
6975 cat conftest.err >&5
6976 echo "$as_me:6976: \$? = $ac_status" >&5
6977 if (exit $ac_status) && test -s "$ac_outfile"; then
6978 # The compiler can only warn and ignore the option if not recognized
6979 # So say no if there are warnings other than the usual output.
6980 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6981 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6982 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6983 lt_cv_prog_compiler_rtti_exceptions=yes
6989 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6990 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6992 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6993 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7005 lt_prog_compiler_wl=
7006 lt_prog_compiler_pic=
7007 lt_prog_compiler_static=
7009 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7010 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7012 if test "$GCC" = yes; then
7013 lt_prog_compiler_wl='-Wl,'
7014 lt_prog_compiler_static='-static'
7018 # All AIX code is PIC.
7019 if test "$host_cpu" = ia64; then
7020 # AIX 5 now supports IA64 processor
7021 lt_prog_compiler_static='-Bstatic'
7026 if test "$host_cpu" = m68k; then
7027 # FIXME: we need at least 68020 code to build shared libraries, but
7028 # adding the `-m68020' flag to GCC prevents building anything better,
7030 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7034 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7035 # PIC is the default for these OSes.
7038 mingw* | cygwin* | pw32* | os2*)
7039 # This hack is so that the source file can tell whether it is being
7040 # built for inclusion in a dll (and should export symbols for example).
7041 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7042 # (--disable-auto-import) libraries
7043 lt_prog_compiler_pic='-DDLL_EXPORT'
7046 darwin* | rhapsody*)
7047 # PIC is the default on this platform
7048 # Common symbols not allowed in MH_DYLIB files
7049 lt_prog_compiler_pic='-fno-common'
7053 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7060 lt_prog_compiler_pic='-fPIC'
7066 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7067 # Instead, we relocate shared libraries at runtime.
7071 # Just because we use GCC doesn't mean we suddenly get shared libraries
7072 # on systems that don't support them.
7073 lt_prog_compiler_can_build_shared=no
7078 # QNX uses GNU C++, but need to define -shared option too, otherwise
7080 lt_prog_compiler_pic='-fPIC -shared'
7084 if test -d /usr/nec; then
7085 lt_prog_compiler_pic=-Kconform_pic
7090 lt_prog_compiler_pic='-fPIC'
7094 # PORTME Check for flag to pass linker flags through the system compiler.
7097 lt_prog_compiler_wl='-Wl,'
7098 if test "$host_cpu" = ia64; then
7099 # AIX 5 now supports IA64 processor
7100 lt_prog_compiler_static='-Bstatic'
7102 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7106 # PIC is the default on this platform
7107 # Common symbols not allowed in MH_DYLIB files
7108 case $cc_basename in
7110 lt_prog_compiler_pic='-qnocommon'
7111 lt_prog_compiler_wl='-Wl,'
7116 mingw* | cygwin* | pw32* | os2*)
7117 # This hack is so that the source file can tell whether it is being
7118 # built for inclusion in a dll (and should export symbols for example).
7119 lt_prog_compiler_pic='-DDLL_EXPORT'
7122 hpux9* | hpux10* | hpux11*)
7123 lt_prog_compiler_wl='-Wl,'
7124 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7131 lt_prog_compiler_pic='+Z'
7134 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7135 lt_prog_compiler_static='${wl}-a ${wl}archive'
7138 irix5* | irix6* | nonstopux*)
7139 lt_prog_compiler_wl='-Wl,'
7140 # PIC (with -KPIC) is the default.
7141 lt_prog_compiler_static='-non_shared'
7144 linux* | k*bsd*-gnu)
7145 case $cc_basename in
7147 lt_prog_compiler_wl='-Wl,'
7148 lt_prog_compiler_pic='-KPIC'
7149 lt_prog_compiler_static='-static'
7151 pgcc* | pgf77* | pgf90* | pgf95*)
7152 # Portland Group compilers (*not* the Pentium gcc compiler,
7153 # which looks to be a dead project)
7154 lt_prog_compiler_wl='-Wl,'
7155 lt_prog_compiler_pic='-fpic'
7156 lt_prog_compiler_static='-Bstatic'
7159 lt_prog_compiler_wl='-Wl,'
7160 # All Alpha code is PIC.
7161 lt_prog_compiler_static='-non_shared'
7164 case `$CC -V 2>&1 | sed 5q` in
7167 lt_prog_compiler_pic='-KPIC'
7168 lt_prog_compiler_static='-Bstatic'
7169 lt_prog_compiler_wl='-Wl,'
7172 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7173 lt_prog_compiler_pic='-KPIC'
7174 lt_prog_compiler_static='-Bstatic'
7175 lt_prog_compiler_wl=''
7183 lt_prog_compiler_pic='-KPIC'
7184 lt_prog_compiler_static='-Bstatic'
7188 # QNX uses GNU C++, but need to define -shared option too, otherwise
7190 lt_prog_compiler_pic='-fPIC -shared'
7193 osf3* | osf4* | osf5*)
7194 lt_prog_compiler_wl='-Wl,'
7195 # All OSF/1 code is PIC.
7196 lt_prog_compiler_static='-non_shared'
7200 lt_prog_compiler_static='-non_shared'
7204 lt_prog_compiler_pic='-KPIC'
7205 lt_prog_compiler_static='-Bstatic'
7206 case $cc_basename in
7208 lt_prog_compiler_wl='-Qoption ld ';;
7210 lt_prog_compiler_wl='-Wl,';;
7215 lt_prog_compiler_wl='-Qoption ld '
7216 lt_prog_compiler_pic='-PIC'
7217 lt_prog_compiler_static='-Bstatic'
7220 sysv4 | sysv4.2uw2* | sysv4.3*)
7221 lt_prog_compiler_wl='-Wl,'
7222 lt_prog_compiler_pic='-KPIC'
7223 lt_prog_compiler_static='-Bstatic'
7227 if test -d /usr/nec ;then
7228 lt_prog_compiler_pic='-Kconform_pic'
7229 lt_prog_compiler_static='-Bstatic'
7233 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7234 lt_prog_compiler_wl='-Wl,'
7235 lt_prog_compiler_pic='-KPIC'
7236 lt_prog_compiler_static='-Bstatic'
7240 lt_prog_compiler_wl='-Wl,'
7241 lt_prog_compiler_can_build_shared=no
7245 lt_prog_compiler_pic='-pic'
7246 lt_prog_compiler_static='-Bstatic'
7250 lt_prog_compiler_can_build_shared=no
7256 # For platforms which do not support PIC, -DPIC is meaningless:
7258 lt_prog_compiler_pic=
7261 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7264 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7265 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7273 # Check to make sure the PIC flag actually works.
7275 if test -n "$lt_prog_compiler_pic"; then
7276 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7277 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7278 if test "${lt_prog_compiler_pic_works+set}" = set; then
7279 echo $ECHO_N "(cached) $ECHO_C" >&6
7281 lt_prog_compiler_pic_works=no
7282 ac_outfile=conftest.$ac_objext
7283 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7284 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7285 # Insert the option either (1) after the last *FLAGS variable, or
7286 # (2) before a word containing "conftest.", or (3) at the end.
7287 # Note that $ac_compile itself does not contain backslashes and begins
7288 # with a dollar sign (not a hyphen), so the echo should work correctly.
7289 # The option is referenced via a variable to avoid confusing sed.
7290 lt_compile=`echo "$ac_compile" | $SED \
7291 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7292 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7293 -e 's:$: $lt_compiler_flag:'`
7294 (eval echo "\"\$as_me:7294: $lt_compile\"" >&5)
7295 (eval "$lt_compile" 2>conftest.err)
7297 cat conftest.err >&5
7298 echo "$as_me:7298: \$? = $ac_status" >&5
7299 if (exit $ac_status) && test -s "$ac_outfile"; then
7300 # The compiler can only warn and ignore the option if not recognized
7301 # So say no if there are warnings other than the usual output.
7302 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7303 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7304 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7305 lt_prog_compiler_pic_works=yes
7311 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7312 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7314 if test x"$lt_prog_compiler_pic_works" = xyes; then
7315 case $lt_prog_compiler_pic in
7317 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7320 lt_prog_compiler_pic=
7321 lt_prog_compiler_can_build_shared=no
7332 # Check to make sure the static flag actually works.
7334 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7335 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7336 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7337 if test "${lt_prog_compiler_static_works+set}" = set; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
7340 lt_prog_compiler_static_works=no
7341 save_LDFLAGS="$LDFLAGS"
7342 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7343 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7344 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7345 # The linker can only warn and ignore the option if not recognized
7346 # So say no if there are warnings
7347 if test -s conftest.err; then
7348 # Append any errors to the config.log.
7349 cat conftest.err 1>&5
7350 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7351 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7352 if diff conftest.exp conftest.er2 >/dev/null; then
7353 lt_prog_compiler_static_works=yes
7356 lt_prog_compiler_static_works=yes
7360 LDFLAGS="$save_LDFLAGS"
7363 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7364 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7366 if test x"$lt_prog_compiler_static_works" = xyes; then
7369 lt_prog_compiler_static=
7378 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7379 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7380 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7381 echo $ECHO_N "(cached) $ECHO_C" >&6
7383 lt_cv_prog_compiler_c_o=no
7384 $RM -r conftest 2>/dev/null
7388 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7390 lt_compiler_flag="-o out/conftest2.$ac_objext"
7391 # Insert the option either (1) after the last *FLAGS variable, or
7392 # (2) before a word containing "conftest.", or (3) at the end.
7393 # Note that $ac_compile itself does not contain backslashes and begins
7394 # with a dollar sign (not a hyphen), so the echo should work correctly.
7395 lt_compile=`echo "$ac_compile" | $SED \
7396 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7397 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7398 -e 's:$: $lt_compiler_flag:'`
7399 (eval echo "\"\$as_me:7399: $lt_compile\"" >&5)
7400 (eval "$lt_compile" 2>out/conftest.err)
7402 cat out/conftest.err >&5
7403 echo "$as_me:7403: \$? = $ac_status" >&5
7404 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7406 # The compiler can only warn and ignore the option if not recognized
7407 # So say no if there are warnings
7408 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7409 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7410 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7411 lt_cv_prog_compiler_c_o=yes
7416 # SGI C++ compiler will create directory out/ii_files/ for
7417 # template instantiation
7418 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7419 $RM out/* && rmdir out
7425 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7426 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7433 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7434 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7435 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7436 echo $ECHO_N "(cached) $ECHO_C" >&6
7438 lt_cv_prog_compiler_c_o=no
7439 $RM -r conftest 2>/dev/null
7443 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7445 lt_compiler_flag="-o out/conftest2.$ac_objext"
7446 # Insert the option either (1) after the last *FLAGS variable, or
7447 # (2) before a word containing "conftest.", or (3) at the end.
7448 # Note that $ac_compile itself does not contain backslashes and begins
7449 # with a dollar sign (not a hyphen), so the echo should work correctly.
7450 lt_compile=`echo "$ac_compile" | $SED \
7451 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7452 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7453 -e 's:$: $lt_compiler_flag:'`
7454 (eval echo "\"\$as_me:7454: $lt_compile\"" >&5)
7455 (eval "$lt_compile" 2>out/conftest.err)
7457 cat out/conftest.err >&5
7458 echo "$as_me:7458: \$? = $ac_status" >&5
7459 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7461 # The compiler can only warn and ignore the option if not recognized
7462 # So say no if there are warnings
7463 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7464 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7465 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7466 lt_cv_prog_compiler_c_o=yes
7471 # SGI C++ compiler will create directory out/ii_files/ for
7472 # template instantiation
7473 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7474 $RM out/* && rmdir out
7480 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7481 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7486 hard_links="nottested"
7487 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7488 # do not overwrite the value of need_locks provided by the user
7489 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7490 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7493 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7495 ln conftest.a conftest.b 2>&5 || hard_links=no
7496 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7497 echo "$as_me:$LINENO: result: $hard_links" >&5
7498 echo "${ECHO_T}$hard_links" >&6
7499 if test "$hard_links" = no; then
7500 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7501 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7513 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7514 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7517 allow_undefined_flag=
7518 always_export_symbols=no
7520 archive_expsym_cmds=
7521 compiler_needs_object=no
7522 enable_shared_with_static_runtimes=no
7523 export_dynamic_flag_spec=
7524 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7525 hardcode_automatic=no
7527 hardcode_direct_absolute=no
7528 hardcode_libdir_flag_spec=
7529 hardcode_libdir_flag_spec_ld=
7530 hardcode_libdir_separator=
7532 hardcode_shlibpath_var=unsupported
7534 link_all_deplibs=unknown
7537 old_archive_from_new_cmds=
7538 old_archive_from_expsyms_cmds=
7539 thread_safe_flag_spec=
7540 whole_archive_flag_spec=
7541 # include_expsyms should be a list of space-separated symbols to be *always*
7542 # included in the symbol list
7544 # exclude_expsyms can be an extended regexp of symbols to exclude
7545 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7546 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7547 # as well as any symbol that contains `d'.
7548 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7549 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7550 # platforms (ab)use it in PIC code, but their linkers get confused if
7551 # the symbol is explicitly referenced. Since portable code cannot
7552 # rely on this symbol name, it's probably fine to never include it in
7553 # preloaded symbol tables.
7554 extract_expsyms_cmds=
7557 cygwin* | mingw* | pw32*)
7558 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7559 # When not using gcc, we currently assume that we are using
7560 # Microsoft Visual C++.
7561 if test "$GCC" != yes; then
7566 # we just hope/assume this is gcc and not c89 (= MSVC++)
7575 if test "$with_gnu_ld" = yes; then
7576 # If archive_cmds runs LD, not CC, wlarc should be empty
7579 # Set some defaults for GNU ld with shared library support. These
7580 # are reset later if shared libraries are not supported. Putting them
7581 # here allows them to be overridden if necessary.
7582 runpath_var=LD_RUN_PATH
7583 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7584 export_dynamic_flag_spec='${wl}--export-dynamic'
7585 # ancient GNU ld didn't support --whole-archive et. al.
7586 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7587 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7589 whole_archive_flag_spec=
7591 supports_anon_versioning=no
7592 case `$LD -v 2>&1` in
7593 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7594 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7595 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7596 *\ 2.11.*) ;; # other 2.11 versions
7597 *) supports_anon_versioning=yes ;;
7600 # See if GNU ld supports shared libraries.
7603 # On AIX/PPC, the GNU linker is very broken
7604 if test "$host_cpu" != ia64; then
7608 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7609 *** to be unable to reliably create shared libraries on AIX.
7610 *** Therefore, libtool is disabling shared libraries support. If you
7611 *** really care for shared libraries, you may want to modify your PATH
7612 *** so that a non-GNU linker is found, and then restart.
7619 if test "$host_cpu" = m68k; then
7620 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)'
7621 hardcode_libdir_flag_spec='-L$libdir'
7622 hardcode_minus_L=yes
7625 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7626 # that the semantics of dynamic libraries on AmigaOS, at least up
7627 # to version 4, is to share data among multiple programs linked
7628 # with the same dynamic library. Since this doesn't match the
7629 # behavior of shared libraries on other platforms, we can't use
7635 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7636 allow_undefined_flag=unsupported
7637 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7638 # support --undefined. This deserves some investigation. FIXME
7639 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7645 cygwin* | mingw* | pw32*)
7646 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7647 # as there is no search path for DLLs.
7648 hardcode_libdir_flag_spec='-L$libdir'
7649 allow_undefined_flag=unsupported
7650 always_export_symbols=no
7651 enable_shared_with_static_runtimes=yes
7652 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7654 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7655 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7656 # If the export-symbols file already is a .def file (1st line
7657 # is EXPORTS), use it as is; otherwise, prepend...
7658 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7659 cp $export_symbols $output_objdir/$soname.def;
7661 echo EXPORTS > $output_objdir/$soname.def;
7662 cat $export_symbols >> $output_objdir/$soname.def;
7664 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7672 hardcode_shlibpath_var=no
7673 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7674 export_dynamic_flag_spec='${wl}-E'
7675 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7676 # Instead, shared libraries are loaded at an image base (0x10000000 by
7677 # default) and relocated if they conflict, which is a slow very memory
7678 # consuming and fragmenting process. To avoid this, we pick a random,
7679 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7680 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7681 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7682 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'
7685 gnu* | linux* | tpf* | k*bsd*-gnu)
7687 if test "$host_os" = linux-dietlibc; then
7688 case $cc_basename in
7689 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7692 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7693 && test "$tmp_diet" = no
7696 case $cc_basename,$host_cpu in
7697 pgcc*) # Portland Group C compiler
7698 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'
7699 tmp_addflag=' $pic_flag'
7701 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7702 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'
7703 tmp_addflag=' $pic_flag -Mnomain' ;;
7704 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7705 tmp_addflag=' -i_dynamic' ;;
7706 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7707 tmp_addflag=' -i_dynamic -nofor_main' ;;
7708 ifc* | ifort*) # Intel Fortran compiler
7709 tmp_addflag=' -nofor_main' ;;
7711 case `$CC -V 2>&1 | sed 5q` in
7712 *Sun\ C*) # Sun C 5.9
7713 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'
7714 compiler_needs_object=yes
7715 tmp_sharedflag='-G' ;;
7716 *Sun\ F*) # Sun Fortran 8.3
7717 tmp_sharedflag='-G' ;;
7719 tmp_sharedflag='-shared' ;;
7721 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7723 if test "x$supports_anon_versioning" = xyes; then
7724 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7725 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7726 echo "local: *; };" >> $output_objdir/$libname.ver~
7727 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7735 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7736 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7739 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7740 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7745 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7749 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7750 *** create shared libraries on Solaris systems. Therefore, libtool
7751 *** is disabling shared libraries support. We urge you to upgrade GNU
7752 *** binutils to release 2.9.1 or newer. Another option is to modify
7753 *** your PATH or compiler configuration so that the native linker is
7754 *** used, and then restart.
7757 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7758 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7759 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7765 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7766 case `$LD -v 2>&1` in
7767 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7771 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7772 *** reliably create shared libraries on SCO systems. Therefore, libtool
7773 *** is disabling shared libraries support. We urge you to upgrade GNU
7774 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7775 *** your PATH or compiler configuration so that the native linker is
7776 *** used, and then restart.
7781 # For security reasons, it is highly recommended that you always
7782 # use absolute paths for naming shared libraries, and exclude the
7783 # DT_RUNPATH tag from executables and libraries. But doing so
7784 # requires that you compile everything twice, which is a pain.
7785 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7786 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7787 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7788 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7797 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7800 hardcode_shlibpath_var=no
7804 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7805 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7806 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7813 if test "$ld_shlibs" = no; then
7815 hardcode_libdir_flag_spec=
7816 export_dynamic_flag_spec=
7817 whole_archive_flag_spec=
7820 # PORTME fill in a description of your system's linker (not GNU ld)
7823 allow_undefined_flag=unsupported
7824 always_export_symbols=yes
7825 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'
7826 # Note: this linker hardcodes the directories in LIBPATH if there
7827 # are no directories specified by -L.
7828 hardcode_minus_L=yes
7829 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7830 # Neither direct hardcoding nor static linking is supported with a
7832 hardcode_direct=unsupported
7837 if test "$host_cpu" = ia64; then
7838 # On IA64, the linker does run time linking by default, so we don't
7839 # have to do anything special.
7840 aix_use_runtimelinking=no
7841 exp_sym_flag='-Bexport'
7844 # If we're using GNU nm, then we don't want the "-C" option.
7845 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7846 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7847 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'
7849 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'
7851 aix_use_runtimelinking=no
7853 # Test if we are trying to use run time linking or normal
7854 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7855 # need to do runtime linking.
7856 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7857 for ld_flag in $LDFLAGS; do
7858 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7859 aix_use_runtimelinking=yes
7866 exp_sym_flag='-bexport'
7867 no_entry_flag='-bnoentry'
7870 # When large executables or shared objects are built, AIX ld can
7871 # have problems creating the table of contents. If linking a library
7872 # or program results in "error TOC overflow" add -mminimal-toc to
7873 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7874 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7878 hardcode_direct_absolute=yes
7879 hardcode_libdir_separator=':'
7880 link_all_deplibs=yes
7881 file_list_spec='${wl}-f,'
7883 if test "$GCC" = yes; then
7884 case $host_os in aix4.[012]|aix4.[012].*)
7885 # We only want to do this on AIX 4.2 and lower, the check
7886 # below for broken collect2 doesn't work under 4.3+
7887 collect2name=`${CC} -print-prog-name=collect2`
7888 if test -f "$collect2name" &&
7889 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7891 # We have reworked collect2
7894 # We have old collect2
7895 hardcode_direct=unsupported
7896 # It fails to find uninstalled libraries when the uninstalled
7897 # path is not listed in the libpath. Setting hardcode_minus_L
7898 # to unsupported forces relinking
7899 hardcode_minus_L=yes
7900 hardcode_libdir_flag_spec='-L$libdir'
7901 hardcode_libdir_separator=
7905 shared_flag='-shared'
7906 if test "$aix_use_runtimelinking" = yes; then
7907 shared_flag="$shared_flag "'${wl}-G'
7911 if test "$host_cpu" = ia64; then
7912 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7913 # chokes on -Wl,-G. The following line is correct:
7916 if test "$aix_use_runtimelinking" = yes; then
7917 shared_flag='${wl}-G'
7919 shared_flag='${wl}-bM:SRE'
7924 # It seems that -bexpall does not export symbols beginning with
7925 # underscore (_), so it is better to generate a list of symbols to export.
7926 always_export_symbols=yes
7927 if test "$aix_use_runtimelinking" = yes; then
7928 # Warning - without using the other runtime loading flags (-brtl),
7929 # -berok will link without error, but may produce a broken library.
7930 allow_undefined_flag='-berok'
7931 # Determine the default libpath from the value encoded in an
7933 cat >conftest.$ac_ext <<_ACEOF
7936 cat confdefs.h >>conftest.$ac_ext
7937 cat >>conftest.$ac_ext <<_ACEOF
7938 /* end confdefs.h. */
7948 rm -f conftest.$ac_objext conftest$ac_exeext
7949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7950 (eval $ac_link) 2>conftest.er1
7952 grep -v '^ *+' conftest.er1 >conftest.err
7954 cat conftest.err >&5
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); } &&
7957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962 (exit $ac_status); }; } &&
7963 { ac_try='test -s conftest$ac_exeext'
7964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); }; }; then
7970 lt_aix_libpath_sed='
7971 /Import File Strings/,/^$/ {
7977 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7978 # Check for a 64-bit object if we didn't find anything.
7979 if test -z "$aix_libpath"; then
7980 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7983 echo "$as_me: failed program was:" >&5
7984 sed 's/^/| /' conftest.$ac_ext >&5
7987 rm -f conftest.err conftest.$ac_objext \
7988 conftest$ac_exeext conftest.$ac_ext
7989 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7991 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7992 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"
7994 if test "$host_cpu" = ia64; then
7995 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7996 allow_undefined_flag="-z nodefs"
7997 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"
7999 # Determine the default libpath from the value encoded in an
8001 cat >conftest.$ac_ext <<_ACEOF
8004 cat confdefs.h >>conftest.$ac_ext
8005 cat >>conftest.$ac_ext <<_ACEOF
8006 /* end confdefs.h. */
8016 rm -f conftest.$ac_objext conftest$ac_exeext
8017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8018 (eval $ac_link) 2>conftest.er1
8020 grep -v '^ *+' conftest.er1 >conftest.err
8022 cat conftest.err >&5
8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 (exit $ac_status); } &&
8025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); }; } &&
8031 { ac_try='test -s conftest$ac_exeext'
8032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); }; }; then
8038 lt_aix_libpath_sed='
8039 /Import File Strings/,/^$/ {
8045 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8046 # Check for a 64-bit object if we didn't find anything.
8047 if test -z "$aix_libpath"; then
8048 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8051 echo "$as_me: failed program was:" >&5
8052 sed 's/^/| /' conftest.$ac_ext >&5
8055 rm -f conftest.err conftest.$ac_objext \
8056 conftest$ac_exeext conftest.$ac_ext
8057 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8059 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8060 # Warning - without using the other run time loading flags,
8061 # -berok will link without error, but may produce a broken library.
8062 no_undefined_flag=' ${wl}-bernotok'
8063 allow_undefined_flag=' ${wl}-berok'
8064 # Exported symbols can be pulled into shared objects from archives
8065 whole_archive_flag_spec='$convenience'
8066 archive_cmds_need_lc=yes
8067 # This is similar to how AIX traditionally builds its shared libraries.
8068 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'
8074 if test "$host_cpu" = m68k; then
8075 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)'
8076 hardcode_libdir_flag_spec='-L$libdir'
8077 hardcode_minus_L=yes
8079 # see comment about different semantics on the GNU ld section
8084 export_dynamic_flag_spec=-rdynamic
8087 cygwin* | mingw* | pw32*)
8088 # When not using gcc, we currently assume that we are using
8089 # Microsoft Visual C++.
8090 # hardcode_libdir_flag_spec is actually meaningless, as there is
8091 # no search path for DLLs.
8092 hardcode_libdir_flag_spec=' '
8093 allow_undefined_flag=unsupported
8094 # Tell ltmain to make .lib files, not .a files.
8096 # Tell ltmain to make .dll files, not .so files.
8098 # FIXME: Setting linknames here is a bad hack.
8099 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8100 # The linker will automatically build a .lib file if we build a DLL.
8101 old_archive_from_new_cmds='true'
8102 # FIXME: Should let the user specify the lib program.
8103 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8104 fix_srcfile_path='`cygpath -w "$srcfile"`'
8105 enable_shared_with_static_runtimes=yes
8108 darwin* | rhapsody*)
8110 rhapsody* | darwin1.[012])
8111 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8114 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8116 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8119 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8124 archive_cmds_need_lc=no
8126 hardcode_automatic=yes
8127 hardcode_shlibpath_var=unsupported
8128 whole_archive_flag_spec=''
8129 link_all_deplibs=yes
8130 if test "$GCC" = yes ; then
8131 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8132 echo $ECHO_N "(cached) $ECHO_C" >&6
8134 lt_cv_apple_cc_single_mod=no
8135 if test -z "${LT_MULTI_MODULE}"; then
8136 # By default we will add the -single_module flag. You can override
8137 # by either setting the environment variable LT_MULTI_MODULE
8138 # non-empty at configure time, or by adding -multi-module to the
8140 echo "int foo(void){return 1;}" > conftest.c
8141 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8142 -dynamiclib ${wl}-single_module conftest.c
8143 if test -f libconftest.dylib; then
8144 lt_cv_apple_cc_single_mod=yes
8145 rm libconftest.dylib
8151 output_verbose_link_cmd=echo
8152 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8153 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8154 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}'
8156 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8157 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}'
8159 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8160 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}'
8162 case $cc_basename in
8164 output_verbose_link_cmd=echo
8165 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8166 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8167 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8168 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}'
8169 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}'
8179 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8180 hardcode_libdir_flag_spec='-L$libdir'
8181 hardcode_shlibpath_var=no
8188 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8189 # support. Future versions do this automatically, but an explicit c++rt0.o
8190 # does not break anything, and helps significantly (at the cost of a little
8193 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8194 hardcode_libdir_flag_spec='-R$libdir'
8196 hardcode_shlibpath_var=no
8199 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8201 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8203 hardcode_minus_L=yes
8204 hardcode_shlibpath_var=no
8207 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8208 freebsd* | dragonfly*)
8209 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8210 hardcode_libdir_flag_spec='-R$libdir'
8212 hardcode_shlibpath_var=no
8216 if test "$GCC" = yes; then
8217 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'
8219 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'
8221 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8222 hardcode_libdir_separator=:
8225 # hardcode_minus_L: Not really in the search PATH,
8226 # but as the default location of the library.
8227 hardcode_minus_L=yes
8228 export_dynamic_flag_spec='${wl}-E'
8232 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8233 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8235 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8237 if test "$with_gnu_ld" = no; then
8238 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8239 hardcode_libdir_flag_spec_ld='+b $libdir'
8240 hardcode_libdir_separator=:
8242 hardcode_direct_absolute=yes
8243 export_dynamic_flag_spec='${wl}-E'
8244 # hardcode_minus_L: Not really in the search PATH,
8245 # but as the default location of the library.
8246 hardcode_minus_L=yes
8251 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8254 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8257 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8260 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8266 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8269 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8272 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8276 if test "$with_gnu_ld" = no; then
8277 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8278 hardcode_libdir_separator=:
8283 hardcode_shlibpath_var=no
8287 hardcode_direct_absolute=yes
8288 export_dynamic_flag_spec='${wl}-E'
8290 # hardcode_minus_L: Not really in the search PATH,
8291 # but as the default location of the library.
8292 hardcode_minus_L=yes
8298 irix5* | irix6* | nonstopux*)
8299 if test "$GCC" = yes; then
8300 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'
8301 # Try to use the -exported_symbol ld option, if it does not
8302 # work, assume that -exports_file does not work either and
8303 # implicitly export all symbols.
8304 save_LDFLAGS="$LDFLAGS"
8305 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8306 cat >conftest.$ac_ext <<_ACEOF
8309 rm -f conftest.$ac_objext conftest$ac_exeext
8310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8311 (eval $ac_link) 2>conftest.er1
8313 grep -v '^ *+' conftest.er1 >conftest.err
8315 cat conftest.err >&5
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); } &&
8318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); }; } &&
8324 { ac_try='test -s conftest$ac_exeext'
8325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); }; }; then
8330 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'
8333 echo "$as_me: failed program was:" >&5
8334 sed 's/^/| /' conftest.$ac_ext >&5
8337 rm -f conftest.err conftest.$ac_objext \
8338 conftest$ac_exeext conftest.$ac_ext
8339 LDFLAGS="$save_LDFLAGS"
8341 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'
8342 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'
8344 archive_cmds_need_lc='no'
8345 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8346 hardcode_libdir_separator=:
8348 link_all_deplibs=yes
8352 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8353 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8355 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8357 hardcode_libdir_flag_spec='-R$libdir'
8359 hardcode_shlibpath_var=no
8363 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8365 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8366 hardcode_libdir_separator=:
8367 hardcode_shlibpath_var=no
8375 hardcode_shlibpath_var=no
8376 hardcode_direct_absolute=yes
8377 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8378 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8379 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8380 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8381 export_dynamic_flag_spec='${wl}-E'
8384 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8385 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8386 hardcode_libdir_flag_spec='-R$libdir'
8389 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8390 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8397 hardcode_libdir_flag_spec='-L$libdir'
8398 hardcode_minus_L=yes
8399 allow_undefined_flag=unsupported
8400 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'
8401 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8405 if test "$GCC" = yes; then
8406 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8407 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'
8409 allow_undefined_flag=' -expect_unresolved \*'
8410 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'
8412 archive_cmds_need_lc='no'
8413 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8414 hardcode_libdir_separator=:
8417 osf4* | osf5*) # as osf3* with the addition of -msym flag
8418 if test "$GCC" = yes; then
8419 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8420 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'
8421 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8423 allow_undefined_flag=' -expect_unresolved \*'
8424 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'
8425 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~
8426 $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'
8428 # Both c and cxx compiler support -rpath directly
8429 hardcode_libdir_flag_spec='-rpath $libdir'
8431 archive_cmds_need_lc='no'
8432 hardcode_libdir_separator=:
8436 no_undefined_flag=' -z defs'
8437 if test "$GCC" = yes; then
8439 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8440 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8441 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8443 case `$CC -V 2>&1` in
8446 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8447 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8448 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8452 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8453 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8454 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8458 hardcode_libdir_flag_spec='-R$libdir'
8459 hardcode_shlibpath_var=no
8461 solaris2.[0-5] | solaris2.[0-5].*) ;;
8463 # The compiler driver will combine and reorder linker options,
8464 # but understands `-z linker_flag'. GCC discards it without `$wl',
8465 # but is careful enough not to reorder.
8466 # Supported since Solaris 2.6 (maybe 2.5.1?)
8467 if test "$GCC" = yes; then
8468 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8470 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8474 link_all_deplibs=yes
8478 if test "x$host_vendor" = xsequent; then
8479 # Use $CC to link under sequent, because it throws in some extra .o
8480 # files that make .init and .fini sections work.
8481 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8483 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8485 hardcode_libdir_flag_spec='-L$libdir'
8487 hardcode_minus_L=yes
8488 hardcode_shlibpath_var=no
8492 case $host_vendor in
8494 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8495 hardcode_direct=yes # is this really true???
8498 ## LD is ld it makes a PLAMLIB
8499 ## CC just makes a GrossModule.
8500 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8501 reload_cmds='$CC -r -o $output$reload_objs'
8505 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8506 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8509 runpath_var='LD_RUN_PATH'
8510 hardcode_shlibpath_var=no
8514 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8515 hardcode_shlibpath_var=no
8516 export_dynamic_flag_spec='-Bexport'
8520 if test -d /usr/nec; then
8521 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8522 hardcode_shlibpath_var=no
8523 runpath_var=LD_RUN_PATH
8524 hardcode_runpath_var=yes
8529 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8530 no_undefined_flag='${wl}-z,text'
8531 archive_cmds_need_lc=no
8532 hardcode_shlibpath_var=no
8533 runpath_var='LD_RUN_PATH'
8535 if test "$GCC" = yes; then
8536 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8537 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8539 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8540 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8544 sysv5* | sco3.2v5* | sco5v6*)
8545 # Note: We can NOT use -z defs as we might desire, because we do not
8546 # link with -lc, and that would cause any symbols used from libc to
8547 # always be unresolved, which means just about no library would
8548 # ever link correctly. If we're not using GNU ld we use -z text
8549 # though, which does catch some bad symbols but isn't as heavy-handed
8551 no_undefined_flag='${wl}-z,text'
8552 allow_undefined_flag='${wl}-z,nodefs'
8553 archive_cmds_need_lc=no
8554 hardcode_shlibpath_var=no
8555 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8556 hardcode_libdir_separator=':'
8557 link_all_deplibs=yes
8558 export_dynamic_flag_spec='${wl}-Bexport'
8559 runpath_var='LD_RUN_PATH'
8561 if test "$GCC" = yes; then
8562 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8563 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8565 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8566 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8571 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8572 hardcode_libdir_flag_spec='-L$libdir'
8573 hardcode_shlibpath_var=no
8581 if test x$host_vendor = xsni; then
8583 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8584 export_dynamic_flag_spec='${wl}-Blargedynsym'
8590 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8591 echo "${ECHO_T}$ld_shlibs" >&6
8592 test "$ld_shlibs" = no && can_build_shared=no
8594 with_gnu_ld=$with_gnu_ld
8611 # Do we need to explicitly link libc?
8613 case "x$archive_cmds_need_lc" in
8615 # Assume -lc should be added
8616 archive_cmds_need_lc=yes
8618 if test "$enable_shared" = yes && test "$GCC" = yes; then
8619 case $archive_cmds in
8621 # FIXME: we may have to deal with multi-command sequences.
8624 # Test whether the compiler implicitly links with -lc since on some
8625 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8626 # to ld, don't add -lc before -lgcc.
8627 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8628 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8630 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8633 (eval $ac_compile) 2>&5
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); } 2>conftest.err; then
8639 libobjs=conftest.$ac_objext
8641 wl=$lt_prog_compiler_wl
8642 pic_flag=$lt_prog_compiler_pic
8648 lt_save_allow_undefined_flag=$allow_undefined_flag
8649 allow_undefined_flag=
8650 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8651 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); }
8656 archive_cmds_need_lc=no
8658 archive_cmds_need_lc=yes
8660 allow_undefined_flag=$lt_save_allow_undefined_flag
8662 cat conftest.err 1>&5
8665 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8666 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8829 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8830 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8832 if test "$withGCC" = yes; then
8834 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8835 *) lt_awk_arg="/^libraries:/" ;;
8837 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8838 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8839 # if the path contains ";" then we assume it to be the separator
8840 # otherwise default to the standard path separator (i.e. ":") - it is
8841 # assumed that no part of a normal pathname contains ";" but that should
8842 # okay in the real world where ";" in dirpaths is itself problematic.
8843 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8845 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8847 # Ok, now we have the path, separated by spaces, we can step through it
8848 # and add multilib dir if necessary.
8849 lt_tmp_lt_search_path_spec=
8850 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8851 for lt_sys_path in $lt_search_path_spec; do
8852 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8853 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8855 test -d "$lt_sys_path" && \
8856 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8859 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8860 BEGIN {RS=" "; FS="/|\n";} {
8863 for (lt_i = NF; lt_i > 0; lt_i--) {
8864 if ($lt_i != "" && $lt_i != ".") {
8865 if ($lt_i == "..") {
8868 if (lt_count == 0) {
8869 lt_foo="/" $lt_i lt_foo;
8876 if (lt_foo != "") { lt_freq[lt_foo]++; }
8877 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8879 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8881 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8884 libname_spec='lib$name'
8892 shlibpath_overrides_runpath=unknown
8894 dynamic_linker="$host_os ld.so"
8895 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8896 need_lib_prefix=unknown
8897 hardcode_into_libs=no
8899 # when you set need_version to no, make sure it does not cause -set_version
8900 # flags to be left without arguments
8901 need_version=unknown
8906 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8907 shlibpath_var=LIBPATH
8909 # AIX 3 has no versioning support, so we append a major version to the name.
8910 soname_spec='${libname}${release}${shared_ext}$major'
8917 hardcode_into_libs=yes
8918 if test "$host_cpu" = ia64; then
8919 # AIX 5 supports IA64
8920 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8921 shlibpath_var=LD_LIBRARY_PATH
8923 # With GCC up to 2.95.x, collect2 would create an import file
8924 # for dependence libraries. The import file would start with
8925 # the line `#! .'. This would cause the generated library to
8926 # depend on `.', always an invalid library. This was fixed in
8927 # development snapshots of GCC prior to 3.0.
8929 aix4 | aix4.[01] | aix4.[01].*)
8930 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8932 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8939 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8940 # soname into executable. Probably we can add versioning support to
8941 # collect2, so additional links can be useful in future.
8942 if test "$aix_use_runtimelinking" = yes; then
8943 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8944 # instead of lib<name>.a to let people know that these are not
8945 # typical AIX shared libraries.
8946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8948 # We preserve .a as extension for shared libraries through AIX4.2
8949 # and later when we are not doing run time linking.
8950 library_names_spec='${libname}${release}.a $libname.a'
8951 soname_spec='${libname}${release}${shared_ext}$major'
8953 shlibpath_var=LIBPATH
8958 if test "$host_cpu" = m68k; then
8959 library_names_spec='$libname.ixlibrary $libname.a'
8960 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8961 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'
8968 library_names_spec='${libname}${shared_ext}'
8969 dynamic_linker="$host_os ld.so"
8970 shlibpath_var=LIBRARY_PATH
8976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8977 soname_spec='${libname}${release}${shared_ext}$major'
8978 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8979 shlibpath_var=LD_LIBRARY_PATH
8980 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8981 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8982 # the default ld.so.conf also contains /usr/contrib/lib and
8983 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8984 # libtool to hard-code these into programs
8987 cygwin* | mingw* | pw32*)
8988 version_type=windows
8993 case $withGCC,$host_os in
8994 yes,cygwin* | yes,mingw* | yes,pw32*)
8995 library_names_spec='$libname.dll.a'
8996 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8997 postinstall_cmds='base_file=`basename \${file}`~
8998 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8999 dldir=$destdir/`dirname \$dlpath`~
9000 test -d \$dldir || mkdir -p \$dldir~
9001 $install_prog $dir/$dlname \$dldir/$dlname~
9002 chmod a+x \$dldir/$dlname~
9003 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9004 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9006 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9007 dlpath=$dir/\$dldll~
9009 shlibpath_overrides_runpath=yes
9013 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9014 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9015 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9018 # MinGW DLLs use traditional 'lib' prefix
9019 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9020 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9021 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9022 # It is most probably a Windows format PATH printed by
9023 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9024 # path with ; separators, and with drive letters. We can handle the
9025 # drive letters (cygwin fileutils understands them), so leave them,
9026 # especially as we might pass files found there to a mingw objdump,
9027 # which wouldn't understand a cygwinified path. Ahh.
9028 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9030 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9034 # pw32 DLLs use 'pw' prefix rather than 'lib'
9035 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9041 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9044 dynamic_linker='Win32 ld.exe'
9045 # FIXME: first we should search . and the directory the executable is in
9049 darwin* | rhapsody*)
9050 dynamic_linker="$host_os dyld"
9054 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9055 soname_spec='${libname}${release}${major}$shared_ext'
9056 shlibpath_overrides_runpath=yes
9057 shlibpath_var=DYLD_LIBRARY_PATH
9058 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9060 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9061 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9069 soname_spec='${libname}${release}${shared_ext}$major'
9070 shlibpath_var=LD_LIBRARY_PATH
9077 freebsd* | dragonfly*)
9078 # DragonFly does not have aout. When/if they implement a new
9079 # versioning mechanism, adjust this.
9080 if test -x /usr/bin/objformat; then
9081 objformat=`/usr/bin/objformat`
9084 freebsd[123]*) objformat=aout ;;
9088 version_type=freebsd-$objformat
9089 case $version_type in
9091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9096 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9100 shlibpath_var=LD_LIBRARY_PATH
9103 shlibpath_overrides_runpath=yes
9105 freebsd3.[01]* | freebsdelf3.[01]*)
9106 shlibpath_overrides_runpath=yes
9107 hardcode_into_libs=yes
9109 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9110 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9111 shlibpath_overrides_runpath=no
9112 hardcode_into_libs=yes
9114 *) # from 4.6 on, and DragonFly
9115 shlibpath_overrides_runpath=yes
9116 hardcode_into_libs=yes
9125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9126 soname_spec='${libname}${release}${shared_ext}$major'
9127 shlibpath_var=LD_LIBRARY_PATH
9128 hardcode_into_libs=yes
9131 hpux9* | hpux10* | hpux11*)
9132 # Give a soname corresponding to the major version so that dld.sl refuses to
9133 # link against other versions.
9140 hardcode_into_libs=yes
9141 dynamic_linker="$host_os dld.so"
9142 shlibpath_var=LD_LIBRARY_PATH
9143 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9145 soname_spec='${libname}${release}${shared_ext}$major'
9146 if test "X$HPUX_IA64_MODE" = X32; then
9147 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9149 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9151 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9155 hardcode_into_libs=yes
9156 dynamic_linker="$host_os dld.sl"
9157 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9158 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9160 soname_spec='${libname}${release}${shared_ext}$major'
9161 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9162 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9166 dynamic_linker="$host_os dld.sl"
9167 shlibpath_var=SHLIB_PATH
9168 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9170 soname_spec='${libname}${release}${shared_ext}$major'
9173 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9174 postinstall_cmds='chmod 555 $lib'
9181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9182 soname_spec='${libname}${release}${shared_ext}$major'
9183 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9184 shlibpath_var=LD_LIBRARY_PATH
9185 shlibpath_overrides_runpath=no
9186 hardcode_into_libs=yes
9189 irix5* | irix6* | nonstopux*)
9191 nonstopux*) version_type=nonstopux ;;
9193 if test "$lt_cv_prog_gnu_ld" = yes; then
9201 soname_spec='${libname}${release}${shared_ext}$major'
9202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9204 irix5* | nonstopux*)
9208 case $LD in # libtool.m4 will add one of these switches to LD
9209 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9210 libsuff= shlibsuff= libmagic=32-bit;;
9211 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9212 libsuff=32 shlibsuff=N32 libmagic=N32;;
9213 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9214 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9215 *) libsuff= shlibsuff= libmagic=never-match;;
9219 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9220 shlibpath_overrides_runpath=no
9221 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9222 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9223 hardcode_into_libs=yes
9226 # No shared lib support for Linux oldld, aout, or coff.
9227 linux*oldld* | linux*aout* | linux*coff*)
9231 # This must be Linux ELF.
9232 linux* | k*bsd*-gnu)
9236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9237 soname_spec='${libname}${release}${shared_ext}$major'
9238 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9239 shlibpath_var=LD_LIBRARY_PATH
9240 shlibpath_overrides_runpath=no
9241 # Some binutils ld are patched to set DT_RUNPATH
9242 save_LDFLAGS=$LDFLAGS
9244 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9245 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9246 cat >conftest.$ac_ext <<_ACEOF
9249 cat confdefs.h >>conftest.$ac_ext
9250 cat >>conftest.$ac_ext <<_ACEOF
9251 /* end confdefs.h. */
9261 rm -f conftest.$ac_objext conftest$ac_exeext
9262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9263 (eval $ac_link) 2>conftest.er1
9265 grep -v '^ *+' conftest.er1 >conftest.err
9267 cat conftest.err >&5
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); } &&
9270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275 (exit $ac_status); }; } &&
9276 { ac_try='test -s conftest$ac_exeext'
9277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); }; }; then
9282 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9283 shlibpath_overrides_runpath=yes
9287 echo "$as_me: failed program was:" >&5
9288 sed 's/^/| /' conftest.$ac_ext >&5
9291 rm -f conftest.err conftest.$ac_objext \
9292 conftest$ac_exeext conftest.$ac_ext
9293 LDFLAGS=$save_LDFLAGS
9296 # This implies no fast_install, which is unacceptable.
9297 # Some rework will be needed to allow for fast_install
9298 # before this can be enabled.
9299 hardcode_into_libs=yes
9301 # Append ld.so.conf contents to the search path
9302 if test -f /etc/ld.so.conf; then
9303 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' ' '`
9304 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9307 # We used to test for /lib/ld.so.1 and disable shared libraries on
9308 # powerpc, because MkLinux only supported shared libraries with the
9309 # GNU dynamic linker. Since this was broken with cross compilers,
9310 # most powerpc-linux boxes support dynamic linking these days and
9311 # people can always --disable-shared, the test was removed, and we
9312 # assume the GNU/Linux dynamic linker is in use.
9313 dynamic_linker='GNU/Linux ld.so'
9320 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9322 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9323 dynamic_linker='NetBSD (a.out) ld.so'
9325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9326 soname_spec='${libname}${release}${shared_ext}$major'
9327 dynamic_linker='NetBSD ld.elf_so'
9329 shlibpath_var=LD_LIBRARY_PATH
9330 shlibpath_overrides_runpath=yes
9331 hardcode_into_libs=yes
9336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9337 shlibpath_var=LD_LIBRARY_PATH
9338 shlibpath_overrides_runpath=yes
9345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9346 soname_spec='${libname}${release}${shared_ext}$major'
9347 shlibpath_var=LD_LIBRARY_PATH
9348 shlibpath_overrides_runpath=no
9349 hardcode_into_libs=yes
9350 dynamic_linker='ldqnx.so'
9355 sys_lib_dlsearch_path_spec="/usr/lib"
9357 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9359 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9360 *) need_version=no ;;
9362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9363 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9364 shlibpath_var=LD_LIBRARY_PATH
9365 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9367 openbsd2.[89] | openbsd2.[89].*)
9368 shlibpath_overrides_runpath=no
9371 shlibpath_overrides_runpath=yes
9375 shlibpath_overrides_runpath=yes
9380 libname_spec='$name'
9383 library_names_spec='$libname${shared_ext} $libname.a'
9384 dynamic_linker='OS/2 ld.exe'
9385 shlibpath_var=LIBPATH
9388 osf3* | osf4* | osf5*)
9392 soname_spec='${libname}${release}${shared_ext}$major'
9393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9394 shlibpath_var=LD_LIBRARY_PATH
9395 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9396 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9408 soname_spec='${libname}${release}${shared_ext}$major'
9409 shlibpath_var=LD_LIBRARY_PATH
9410 shlibpath_overrides_runpath=yes
9411 hardcode_into_libs=yes
9412 # ldd complains unless libraries are executable
9413 postinstall_cmds='chmod +x $lib'
9418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9419 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9420 shlibpath_var=LD_LIBRARY_PATH
9421 shlibpath_overrides_runpath=yes
9422 if test "$with_gnu_ld" = yes; then
9430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9431 soname_spec='${libname}${release}${shared_ext}$major'
9432 shlibpath_var=LD_LIBRARY_PATH
9433 case $host_vendor in
9435 shlibpath_overrides_runpath=no
9437 runpath_var=LD_RUN_PATH
9445 shlibpath_overrides_runpath=no
9446 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9452 if test -d /usr/nec ;then
9454 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9455 soname_spec='$libname${shared_ext}.$major'
9456 shlibpath_var=LD_LIBRARY_PATH
9460 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9461 version_type=freebsd-elf
9464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9465 soname_spec='${libname}${release}${shared_ext}$major'
9466 shlibpath_var=LD_LIBRARY_PATH
9467 shlibpath_overrides_runpath=yes
9468 hardcode_into_libs=yes
9469 if test "$with_gnu_ld" = yes; then
9470 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9472 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9475 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9479 sys_lib_dlsearch_path_spec='/usr/lib'
9483 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9487 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9488 shlibpath_var=LD_LIBRARY_PATH
9489 shlibpath_overrides_runpath=no
9490 hardcode_into_libs=yes
9495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9496 soname_spec='${libname}${release}${shared_ext}$major'
9497 shlibpath_var=LD_LIBRARY_PATH
9504 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9505 echo "${ECHO_T}$dynamic_linker" >&6
9506 test "$dynamic_linker" = no && can_build_shared=no
9508 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9509 if test "$GCC" = yes; then
9510 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9599 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9600 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9602 if test -n "$hardcode_libdir_flag_spec" ||
9603 test -n "$runpath_var" ||
9604 test "X$hardcode_automatic" = "Xyes" ; then
9606 # We can hardcode non-existent directories.
9607 if test "$hardcode_direct" != no &&
9608 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9609 # have to relink, otherwise we might link with an installed library
9610 # when we should be linking with a yet-to-be-installed one
9611 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9612 test "$hardcode_minus_L" != no; then
9613 # Linking always hardcodes the temporary library directory.
9614 hardcode_action=relink
9616 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9617 hardcode_action=immediate
9620 # We cannot hardcode anything, or else we can only hardcode existing
9622 hardcode_action=unsupported
9624 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9625 echo "${ECHO_T}$hardcode_action" >&6
9627 if test "$hardcode_action" = relink ||
9628 test "$inherit_rpath" = yes; then
9629 # Fast installation is not supported
9630 enable_fast_install=no
9631 elif test "$shlibpath_overrides_runpath" = yes ||
9632 test "$enable_shared" = no; then
9633 # Fast installation is not necessary
9634 enable_fast_install=needless
9642 if test "x$enable_dlopen" != xyes; then
9643 enable_dlopen=unknown
9644 enable_dlopen_self=unknown
9645 enable_dlopen_self_static=unknown
9652 lt_cv_dlopen="load_add_on"
9654 lt_cv_dlopen_self=yes
9658 lt_cv_dlopen="LoadLibrary"
9663 lt_cv_dlopen="dlopen"
9668 # if libdl is installed we need to link against it
9669 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9670 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9671 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9672 echo $ECHO_N "(cached) $ECHO_C" >&6
9674 ac_check_lib_save_LIBS=$LIBS
9676 cat >conftest.$ac_ext <<_ACEOF
9679 cat confdefs.h >>conftest.$ac_ext
9680 cat >>conftest.$ac_ext <<_ACEOF
9681 /* end confdefs.h. */
9683 /* Override any gcc2 internal prototype to avoid an error. */
9687 /* We use char because int might match the return type of a gcc2
9688 builtin and then its argument prototype would still apply. */
9698 rm -f conftest.$ac_objext conftest$ac_exeext
9699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9700 (eval $ac_link) 2>conftest.er1
9702 grep -v '^ *+' conftest.er1 >conftest.err
9704 cat conftest.err >&5
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); } &&
9707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); }; } &&
9713 { ac_try='test -s conftest$ac_exeext'
9714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); }; }; then
9719 ac_cv_lib_dl_dlopen=yes
9721 echo "$as_me: failed program was:" >&5
9722 sed 's/^/| /' conftest.$ac_ext >&5
9724 ac_cv_lib_dl_dlopen=no
9726 rm -f conftest.err conftest.$ac_objext \
9727 conftest$ac_exeext conftest.$ac_ext
9728 LIBS=$ac_check_lib_save_LIBS
9730 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9731 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9732 if test $ac_cv_lib_dl_dlopen = yes; then
9733 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9738 lt_cv_dlopen_self=yes
9745 echo "$as_me:$LINENO: checking for shl_load" >&5
9746 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9747 if test "${ac_cv_func_shl_load+set}" = set; then
9748 echo $ECHO_N "(cached) $ECHO_C" >&6
9750 cat >conftest.$ac_ext <<_ACEOF
9753 cat confdefs.h >>conftest.$ac_ext
9754 cat >>conftest.$ac_ext <<_ACEOF
9755 /* end confdefs.h. */
9756 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9758 #define shl_load innocuous_shl_load
9760 /* System header to define __stub macros and hopefully few prototypes,
9761 which can conflict with char shl_load (); below.
9762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9763 <limits.h> exists even on freestanding compilers. */
9766 # include <limits.h>
9768 # include <assert.h>
9773 /* Override any gcc2 internal prototype to avoid an error. */
9778 /* We use char because int might match the return type of a gcc2
9779 builtin and then its argument prototype would still apply. */
9781 /* The GNU C library defines this for functions which it implements
9782 to always fail with ENOSYS. Some functions are actually named
9783 something starting with __ and the normal name is an alias. */
9784 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9787 char (*f) () = shl_load;
9796 return f != shl_load;
9801 rm -f conftest.$ac_objext conftest$ac_exeext
9802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9803 (eval $ac_link) 2>conftest.er1
9805 grep -v '^ *+' conftest.er1 >conftest.err
9807 cat conftest.err >&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); } &&
9810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); }; } &&
9816 { ac_try='test -s conftest$ac_exeext'
9817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); }; }; then
9822 ac_cv_func_shl_load=yes
9824 echo "$as_me: failed program was:" >&5
9825 sed 's/^/| /' conftest.$ac_ext >&5
9827 ac_cv_func_shl_load=no
9829 rm -f conftest.err conftest.$ac_objext \
9830 conftest$ac_exeext conftest.$ac_ext
9832 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9833 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9834 if test $ac_cv_func_shl_load = yes; then
9835 lt_cv_dlopen="shl_load"
9837 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9838 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9839 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9840 echo $ECHO_N "(cached) $ECHO_C" >&6
9842 ac_check_lib_save_LIBS=$LIBS
9844 cat >conftest.$ac_ext <<_ACEOF
9847 cat confdefs.h >>conftest.$ac_ext
9848 cat >>conftest.$ac_ext <<_ACEOF
9849 /* end confdefs.h. */
9851 /* Override any gcc2 internal prototype to avoid an error. */
9855 /* We use char because int might match the return type of a gcc2
9856 builtin and then its argument prototype would still apply. */
9866 rm -f conftest.$ac_objext conftest$ac_exeext
9867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9868 (eval $ac_link) 2>conftest.er1
9870 grep -v '^ *+' conftest.er1 >conftest.err
9872 cat conftest.err >&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); } &&
9875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); }; } &&
9881 { ac_try='test -s conftest$ac_exeext'
9882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); }; }; then
9887 ac_cv_lib_dld_shl_load=yes
9889 echo "$as_me: failed program was:" >&5
9890 sed 's/^/| /' conftest.$ac_ext >&5
9892 ac_cv_lib_dld_shl_load=no
9894 rm -f conftest.err conftest.$ac_objext \
9895 conftest$ac_exeext conftest.$ac_ext
9896 LIBS=$ac_check_lib_save_LIBS
9898 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9899 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9900 if test $ac_cv_lib_dld_shl_load = yes; then
9901 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9903 echo "$as_me:$LINENO: checking for dlopen" >&5
9904 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9905 if test "${ac_cv_func_dlopen+set}" = set; then
9906 echo $ECHO_N "(cached) $ECHO_C" >&6
9908 cat >conftest.$ac_ext <<_ACEOF
9911 cat confdefs.h >>conftest.$ac_ext
9912 cat >>conftest.$ac_ext <<_ACEOF
9913 /* end confdefs.h. */
9914 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9916 #define dlopen innocuous_dlopen
9918 /* System header to define __stub macros and hopefully few prototypes,
9919 which can conflict with char dlopen (); below.
9920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9921 <limits.h> exists even on freestanding compilers. */
9924 # include <limits.h>
9926 # include <assert.h>
9931 /* Override any gcc2 internal prototype to avoid an error. */
9936 /* We use char because int might match the return type of a gcc2
9937 builtin and then its argument prototype would still apply. */
9939 /* The GNU C library defines this for functions which it implements
9940 to always fail with ENOSYS. Some functions are actually named
9941 something starting with __ and the normal name is an alias. */
9942 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9945 char (*f) () = dlopen;
9959 rm -f conftest.$ac_objext conftest$ac_exeext
9960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9961 (eval $ac_link) 2>conftest.er1
9963 grep -v '^ *+' conftest.er1 >conftest.err
9965 cat conftest.err >&5
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); } &&
9968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); }; } &&
9974 { ac_try='test -s conftest$ac_exeext'
9975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); }; }; then
9980 ac_cv_func_dlopen=yes
9982 echo "$as_me: failed program was:" >&5
9983 sed 's/^/| /' conftest.$ac_ext >&5
9985 ac_cv_func_dlopen=no
9987 rm -f conftest.err conftest.$ac_objext \
9988 conftest$ac_exeext conftest.$ac_ext
9990 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9991 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9992 if test $ac_cv_func_dlopen = yes; then
9993 lt_cv_dlopen="dlopen"
9995 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9996 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9997 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9998 echo $ECHO_N "(cached) $ECHO_C" >&6
10000 ac_check_lib_save_LIBS=$LIBS
10002 cat >conftest.$ac_ext <<_ACEOF
10005 cat confdefs.h >>conftest.$ac_ext
10006 cat >>conftest.$ac_ext <<_ACEOF
10007 /* end confdefs.h. */
10009 /* Override any gcc2 internal prototype to avoid an error. */
10013 /* We use char because int might match the return type of a gcc2
10014 builtin and then its argument prototype would still apply. */
10024 rm -f conftest.$ac_objext conftest$ac_exeext
10025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10026 (eval $ac_link) 2>conftest.er1
10028 grep -v '^ *+' conftest.er1 >conftest.err
10030 cat conftest.err >&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); } &&
10033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10035 (eval $ac_try) 2>&5
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); }; } &&
10039 { ac_try='test -s conftest$ac_exeext'
10040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041 (eval $ac_try) 2>&5
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); }; }; then
10045 ac_cv_lib_dl_dlopen=yes
10047 echo "$as_me: failed program was:" >&5
10048 sed 's/^/| /' conftest.$ac_ext >&5
10050 ac_cv_lib_dl_dlopen=no
10052 rm -f conftest.err conftest.$ac_objext \
10053 conftest$ac_exeext conftest.$ac_ext
10054 LIBS=$ac_check_lib_save_LIBS
10056 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10057 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10058 if test $ac_cv_lib_dl_dlopen = yes; then
10059 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10061 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10062 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10063 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10064 echo $ECHO_N "(cached) $ECHO_C" >&6
10066 ac_check_lib_save_LIBS=$LIBS
10067 LIBS="-lsvld $LIBS"
10068 cat >conftest.$ac_ext <<_ACEOF
10071 cat confdefs.h >>conftest.$ac_ext
10072 cat >>conftest.$ac_ext <<_ACEOF
10073 /* end confdefs.h. */
10075 /* Override any gcc2 internal prototype to avoid an error. */
10079 /* We use char because int might match the return type of a gcc2
10080 builtin and then its argument prototype would still apply. */
10090 rm -f conftest.$ac_objext conftest$ac_exeext
10091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10092 (eval $ac_link) 2>conftest.er1
10094 grep -v '^ *+' conftest.er1 >conftest.err
10096 cat conftest.err >&5
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); } &&
10099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10101 (eval $ac_try) 2>&5
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 (exit $ac_status); }; } &&
10105 { ac_try='test -s conftest$ac_exeext'
10106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10107 (eval $ac_try) 2>&5
10109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110 (exit $ac_status); }; }; then
10111 ac_cv_lib_svld_dlopen=yes
10113 echo "$as_me: failed program was:" >&5
10114 sed 's/^/| /' conftest.$ac_ext >&5
10116 ac_cv_lib_svld_dlopen=no
10118 rm -f conftest.err conftest.$ac_objext \
10119 conftest$ac_exeext conftest.$ac_ext
10120 LIBS=$ac_check_lib_save_LIBS
10122 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10123 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10124 if test $ac_cv_lib_svld_dlopen = yes; then
10125 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10127 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10128 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10129 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10130 echo $ECHO_N "(cached) $ECHO_C" >&6
10132 ac_check_lib_save_LIBS=$LIBS
10134 cat >conftest.$ac_ext <<_ACEOF
10137 cat confdefs.h >>conftest.$ac_ext
10138 cat >>conftest.$ac_ext <<_ACEOF
10139 /* end confdefs.h. */
10141 /* Override any gcc2 internal prototype to avoid an error. */
10145 /* We use char because int might match the return type of a gcc2
10146 builtin and then its argument prototype would still apply. */
10156 rm -f conftest.$ac_objext conftest$ac_exeext
10157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10158 (eval $ac_link) 2>conftest.er1
10160 grep -v '^ *+' conftest.er1 >conftest.err
10162 cat conftest.err >&5
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); } &&
10165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10167 (eval $ac_try) 2>&5
10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); }; } &&
10171 { ac_try='test -s conftest$ac_exeext'
10172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10173 (eval $ac_try) 2>&5
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); }; }; then
10177 ac_cv_lib_dld_dld_link=yes
10179 echo "$as_me: failed program was:" >&5
10180 sed 's/^/| /' conftest.$ac_ext >&5
10182 ac_cv_lib_dld_dld_link=no
10184 rm -f conftest.err conftest.$ac_objext \
10185 conftest$ac_exeext conftest.$ac_ext
10186 LIBS=$ac_check_lib_save_LIBS
10188 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10189 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10190 if test $ac_cv_lib_dld_dld_link = yes; then
10191 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10212 if test "x$lt_cv_dlopen" != xno; then
10218 case $lt_cv_dlopen in
10220 save_CPPFLAGS="$CPPFLAGS"
10221 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10223 save_LDFLAGS="$LDFLAGS"
10224 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10227 LIBS="$lt_cv_dlopen_libs $LIBS"
10229 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10230 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10231 if test "${lt_cv_dlopen_self+set}" = set; then
10232 echo $ECHO_N "(cached) $ECHO_C" >&6
10234 if test "$cross_compiling" = yes; then :
10235 lt_cv_dlopen_self=cross
10237 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10238 lt_status=$lt_dlunknown
10239 cat > conftest.$ac_ext <<_LT_EOF
10240 #line 10240 "configure"
10241 #include "confdefs.h"
10250 # define LT_DLGLOBAL RTLD_GLOBAL
10253 # define LT_DLGLOBAL DL_GLOBAL
10255 # define LT_DLGLOBAL 0
10259 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10260 find out it does not work in some platform. */
10261 #ifndef LT_DLLAZY_OR_NOW
10263 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10266 # define LT_DLLAZY_OR_NOW DL_LAZY
10269 # define LT_DLLAZY_OR_NOW RTLD_NOW
10272 # define LT_DLLAZY_OR_NOW DL_NOW
10274 # define LT_DLLAZY_OR_NOW 0
10282 extern "C" void exit (int);
10285 void fnord() { int i=42;}
10288 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10289 int status = $lt_dlunknown;
10293 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10294 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10295 /* dlclose (self); */
10303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10304 (eval $ac_link) 2>&5
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10308 (./conftest; exit; ) >&5 2>/dev/null
10310 case x$lt_status in
10311 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10312 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10313 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10316 # compilation failed
10317 lt_cv_dlopen_self=no
10324 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10325 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10327 if test "x$lt_cv_dlopen_self" = xyes; then
10328 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10329 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10330 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10331 if test "${lt_cv_dlopen_self_static+set}" = set; then
10332 echo $ECHO_N "(cached) $ECHO_C" >&6
10334 if test "$cross_compiling" = yes; then :
10335 lt_cv_dlopen_self_static=cross
10337 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10338 lt_status=$lt_dlunknown
10339 cat > conftest.$ac_ext <<_LT_EOF
10340 #line 10340 "configure"
10341 #include "confdefs.h"
10350 # define LT_DLGLOBAL RTLD_GLOBAL
10353 # define LT_DLGLOBAL DL_GLOBAL
10355 # define LT_DLGLOBAL 0
10359 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10360 find out it does not work in some platform. */
10361 #ifndef LT_DLLAZY_OR_NOW
10363 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10366 # define LT_DLLAZY_OR_NOW DL_LAZY
10369 # define LT_DLLAZY_OR_NOW RTLD_NOW
10372 # define LT_DLLAZY_OR_NOW DL_NOW
10374 # define LT_DLLAZY_OR_NOW 0
10382 extern "C" void exit (int);
10385 void fnord() { int i=42;}
10388 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10389 int status = $lt_dlunknown;
10393 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10394 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10395 /* dlclose (self); */
10403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10404 (eval $ac_link) 2>&5
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10408 (./conftest; exit; ) >&5 2>/dev/null
10410 case x$lt_status in
10411 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10412 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10413 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10416 # compilation failed
10417 lt_cv_dlopen_self_static=no
10424 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10425 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10428 CPPFLAGS="$save_CPPFLAGS"
10429 LDFLAGS="$save_LDFLAGS"
10434 case $lt_cv_dlopen_self in
10435 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10436 *) enable_dlopen_self=unknown ;;
10439 case $lt_cv_dlopen_self_static in
10440 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10441 *) enable_dlopen_self_static=unknown ;;
10463 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10464 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10465 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10466 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10467 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10468 echo "$as_me:$LINENO: result: yes" >&5
10469 echo "${ECHO_T}yes" >&6
10471 # FIXME - insert some real tests, host_os isn't really good enough
10474 if test -n "$STRIP" ; then
10475 striplib="$STRIP -x"
10476 old_striplib="$STRIP -S"
10477 echo "$as_me:$LINENO: result: yes" >&5
10478 echo "${ECHO_T}yes" >&6
10480 echo "$as_me:$LINENO: result: no" >&5
10481 echo "${ECHO_T}no" >&6
10485 echo "$as_me:$LINENO: result: no" >&5
10486 echo "${ECHO_T}no" >&6
10502 # Report which library types will actually be built
10503 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10504 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10505 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10506 echo "${ECHO_T}$can_build_shared" >&6
10508 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10509 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10510 test "$can_build_shared" = "no" && enable_shared=no
10512 # On AIX, shared libraries and static libraries use the same namespace, and
10513 # are all built from PIC.
10516 test "$enable_shared" = yes && enable_static=no
10517 if test -n "$RANLIB"; then
10518 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10519 postinstall_cmds='$RANLIB $lib'
10524 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10525 test "$enable_shared" = yes && enable_static=no
10529 echo "$as_me:$LINENO: result: $enable_shared" >&5
10530 echo "${ECHO_T}$enable_shared" >&6
10532 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10533 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10534 # Make sure either enable_shared or enable_static is yes.
10535 test "$enable_shared" = yes || enable_static=yes
10536 echo "$as_me:$LINENO: result: $enable_static" >&5
10537 echo "${ECHO_T}$enable_static" >&6
10544 ac_cpp='$CPP $CPPFLAGS'
10545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10563 ac_config_commands="$ac_config_commands libtool"
10568 # Only expand once:
10572 ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi"
10573 # If we haven't got the data from the intl directory,
10574 # assume NLS is disabled.
10583 if test -f ../intl/config.intl; then
10584 . ../intl/config.intl
10586 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10587 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10588 if test x"$USE_NLS" != xyes; then
10589 echo "$as_me:$LINENO: result: no" >&5
10590 echo "${ECHO_T}no" >&6
10592 echo "$as_me:$LINENO: result: yes" >&5
10593 echo "${ECHO_T}yes" >&6
10595 cat >>confdefs.h <<\_ACEOF
10596 #define ENABLE_NLS 1
10600 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10601 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10602 # Look for .po and .gmo files in the source directory.
10605 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10606 # If there aren't any .gmo files the shell will give us the
10607 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10609 case "$cat" in *\**)
10612 # The quadruple backslash is collapsed to a double backslash
10613 # by the backticks, then collapsed again by the double quotes,
10614 # leaving us with one backslash in the sed expression (right
10615 # before the dot that mustn't act as a wildcard).
10616 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10617 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10618 # The user is allowed to set LINGUAS to a list of languages to
10619 # install catalogs for. If it's empty that means "all of them."
10620 if test "x$LINGUAS" = x; then
10621 CATALOGS="$CATALOGS $cat"
10622 XLINGUAS="$XLINGUAS $lang"
10624 case "$LINGUAS" in *$lang*)
10625 CATALOGS="$CATALOGS $cat"
10626 XLINGUAS="$XLINGUAS $lang"
10631 LINGUAS="$XLINGUAS"
10632 echo "$as_me:$LINENO: result: $LINGUAS" >&5
10633 echo "${ECHO_T}$LINGUAS" >&6
10647 if test -n "$ac_aux_dir"; then
10648 case "$ac_aux_dir" in
10649 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10650 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10653 if test -z "$MKINSTALLDIRS"; then
10654 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10659 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10660 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10661 # Check whether --enable-nls or --disable-nls was given.
10662 if test "${enable_nls+set}" = set; then
10663 enableval="$enable_nls"
10668 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10669 echo "${ECHO_T}$USE_NLS" >&6
10676 # Prepare PATH_SEPARATOR.
10677 # The user is always right.
10678 if test "${PATH_SEPARATOR+set}" != set; then
10679 echo "#! /bin/sh" >conf$$.sh
10680 echo "exit 0" >>conf$$.sh
10682 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10690 # Find out how to test for executable files. Don't use a zero-byte file,
10691 # as systems may use methods other than mode bits to determine executability.
10692 cat >conf$$.file <<_ASEOF
10696 chmod +x conf$$.file
10697 if test -x conf$$.file >/dev/null 2>&1; then
10698 ac_executable_p="test -x"
10700 ac_executable_p="test -f"
10704 # Extract the first word of "msgfmt", so it can be a program name with args.
10705 set dummy msgfmt; ac_word=$2
10706 echo "$as_me:$LINENO: checking for $ac_word" >&5
10707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10708 if test "${ac_cv_path_MSGFMT+set}" = set; then
10709 echo $ECHO_N "(cached) $ECHO_C" >&6
10713 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10716 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10717 for ac_dir in $PATH; do
10719 test -z "$ac_dir" && ac_dir=.
10720 for ac_exec_ext in '' $ac_executable_extensions; do
10721 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10722 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10723 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10724 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10731 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10735 MSGFMT="$ac_cv_path_MSGFMT"
10736 if test "$MSGFMT" != ":"; then
10737 echo "$as_me:$LINENO: result: $MSGFMT" >&5
10738 echo "${ECHO_T}$MSGFMT" >&6
10740 echo "$as_me:$LINENO: result: no" >&5
10741 echo "${ECHO_T}no" >&6
10744 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10745 set dummy gmsgfmt; ac_word=$2
10746 echo "$as_me:$LINENO: checking for $ac_word" >&5
10747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10748 if test "${ac_cv_path_GMSGFMT+set}" = set; then
10749 echo $ECHO_N "(cached) $ECHO_C" >&6
10753 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10757 for as_dir in $PATH
10760 test -z "$as_dir" && as_dir=.
10761 for ac_exec_ext in '' $ac_executable_extensions; do
10762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10763 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10770 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10774 GMSGFMT=$ac_cv_path_GMSGFMT
10776 if test -n "$GMSGFMT"; then
10777 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10778 echo "${ECHO_T}$GMSGFMT" >&6
10780 echo "$as_me:$LINENO: result: no" >&5
10781 echo "${ECHO_T}no" >&6
10786 # Prepare PATH_SEPARATOR.
10787 # The user is always right.
10788 if test "${PATH_SEPARATOR+set}" != set; then
10789 echo "#! /bin/sh" >conf$$.sh
10790 echo "exit 0" >>conf$$.sh
10792 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10800 # Find out how to test for executable files. Don't use a zero-byte file,
10801 # as systems may use methods other than mode bits to determine executability.
10802 cat >conf$$.file <<_ASEOF
10806 chmod +x conf$$.file
10807 if test -x conf$$.file >/dev/null 2>&1; then
10808 ac_executable_p="test -x"
10810 ac_executable_p="test -f"
10814 # Extract the first word of "xgettext", so it can be a program name with args.
10815 set dummy xgettext; ac_word=$2
10816 echo "$as_me:$LINENO: checking for $ac_word" >&5
10817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10818 if test "${ac_cv_path_XGETTEXT+set}" = set; then
10819 echo $ECHO_N "(cached) $ECHO_C" >&6
10821 case "$XGETTEXT" in
10823 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10826 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10827 for ac_dir in $PATH; do
10829 test -z "$ac_dir" && ac_dir=.
10830 for ac_exec_ext in '' $ac_executable_extensions; do
10831 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10832 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10833 (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
10834 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10841 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10845 XGETTEXT="$ac_cv_path_XGETTEXT"
10846 if test "$XGETTEXT" != ":"; then
10847 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10848 echo "${ECHO_T}$XGETTEXT" >&6
10850 echo "$as_me:$LINENO: result: no" >&5
10851 echo "${ECHO_T}no" >&6
10857 # Prepare PATH_SEPARATOR.
10858 # The user is always right.
10859 if test "${PATH_SEPARATOR+set}" != set; then
10860 echo "#! /bin/sh" >conf$$.sh
10861 echo "exit 0" >>conf$$.sh
10863 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10871 # Find out how to test for executable files. Don't use a zero-byte file,
10872 # as systems may use methods other than mode bits to determine executability.
10873 cat >conf$$.file <<_ASEOF
10877 chmod +x conf$$.file
10878 if test -x conf$$.file >/dev/null 2>&1; then
10879 ac_executable_p="test -x"
10881 ac_executable_p="test -f"
10885 # Extract the first word of "msgmerge", so it can be a program name with args.
10886 set dummy msgmerge; ac_word=$2
10887 echo "$as_me:$LINENO: checking for $ac_word" >&5
10888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10889 if test "${ac_cv_path_MSGMERGE+set}" = set; then
10890 echo $ECHO_N "(cached) $ECHO_C" >&6
10892 case "$MSGMERGE" in
10894 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
10897 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10898 for ac_dir in $PATH; do
10900 test -z "$ac_dir" && ac_dir=.
10901 for ac_exec_ext in '' $ac_executable_extensions; do
10902 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10903 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
10904 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
10911 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
10915 MSGMERGE="$ac_cv_path_MSGMERGE"
10916 if test "$MSGMERGE" != ":"; then
10917 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
10918 echo "${ECHO_T}$MSGMERGE" >&6
10920 echo "$as_me:$LINENO: result: no" >&5
10921 echo "${ECHO_T}no" >&6
10925 if test "$GMSGFMT" != ":"; then
10926 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
10927 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10930 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
10931 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
10932 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
10937 if test "$XGETTEXT" != ":"; then
10938 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10939 (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
10942 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
10943 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
10949 ac_config_commands="$ac_config_commands default-1"
10955 for ac_prog in 'bison -y' byacc
10957 # Extract the first word of "$ac_prog", so it can be a program name with args.
10958 set dummy $ac_prog; ac_word=$2
10959 echo "$as_me:$LINENO: checking for $ac_word" >&5
10960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10961 if test "${ac_cv_prog_YACC+set}" = set; then
10962 echo $ECHO_N "(cached) $ECHO_C" >&6
10964 if test -n "$YACC"; then
10965 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10968 for as_dir in $PATH
10971 test -z "$as_dir" && as_dir=.
10972 for ac_exec_ext in '' $ac_executable_extensions; do
10973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10974 ac_cv_prog_YACC="$ac_prog"
10975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10983 YACC=$ac_cv_prog_YACC
10984 if test -n "$YACC"; then
10985 echo "$as_me:$LINENO: result: $YACC" >&5
10986 echo "${ECHO_T}$YACC" >&6
10988 echo "$as_me:$LINENO: result: no" >&5
10989 echo "${ECHO_T}no" >&6
10992 test -n "$YACC" && break
10994 test -n "$YACC" || YACC="yacc"
10996 for ac_prog in flex lex
10998 # Extract the first word of "$ac_prog", so it can be a program name with args.
10999 set dummy $ac_prog; ac_word=$2
11000 echo "$as_me:$LINENO: checking for $ac_word" >&5
11001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11002 if test "${ac_cv_prog_LEX+set}" = set; then
11003 echo $ECHO_N "(cached) $ECHO_C" >&6
11005 if test -n "$LEX"; then
11006 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11009 for as_dir in $PATH
11012 test -z "$as_dir" && as_dir=.
11013 for ac_exec_ext in '' $ac_executable_extensions; do
11014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11015 ac_cv_prog_LEX="$ac_prog"
11016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11024 LEX=$ac_cv_prog_LEX
11025 if test -n "$LEX"; then
11026 echo "$as_me:$LINENO: result: $LEX" >&5
11027 echo "${ECHO_T}$LEX" >&6
11029 echo "$as_me:$LINENO: result: no" >&5
11030 echo "${ECHO_T}no" >&6
11033 test -n "$LEX" && break
11035 test -n "$LEX" || LEX=":"
11037 if test -z "$LEXLIB"
11039 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11040 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11041 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
11042 echo $ECHO_N "(cached) $ECHO_C" >&6
11044 ac_check_lib_save_LIBS=$LIBS
11046 cat >conftest.$ac_ext <<_ACEOF
11049 cat confdefs.h >>conftest.$ac_ext
11050 cat >>conftest.$ac_ext <<_ACEOF
11051 /* end confdefs.h. */
11053 /* Override any gcc2 internal prototype to avoid an error. */
11057 /* We use char because int might match the return type of a gcc2
11058 builtin and then its argument prototype would still apply. */
11068 rm -f conftest.$ac_objext conftest$ac_exeext
11069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11070 (eval $ac_link) 2>conftest.er1
11072 grep -v '^ *+' conftest.er1 >conftest.err
11074 cat conftest.err >&5
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); } &&
11077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11079 (eval $ac_try) 2>&5
11081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082 (exit $ac_status); }; } &&
11083 { ac_try='test -s conftest$ac_exeext'
11084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11085 (eval $ac_try) 2>&5
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); }; }; then
11089 ac_cv_lib_fl_yywrap=yes
11091 echo "$as_me: failed program was:" >&5
11092 sed 's/^/| /' conftest.$ac_ext >&5
11094 ac_cv_lib_fl_yywrap=no
11096 rm -f conftest.err conftest.$ac_objext \
11097 conftest$ac_exeext conftest.$ac_ext
11098 LIBS=$ac_check_lib_save_LIBS
11100 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11101 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11102 if test $ac_cv_lib_fl_yywrap = yes; then
11105 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11106 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11107 if test "${ac_cv_lib_l_yywrap+set}" = set; then
11108 echo $ECHO_N "(cached) $ECHO_C" >&6
11110 ac_check_lib_save_LIBS=$LIBS
11112 cat >conftest.$ac_ext <<_ACEOF
11115 cat confdefs.h >>conftest.$ac_ext
11116 cat >>conftest.$ac_ext <<_ACEOF
11117 /* end confdefs.h. */
11119 /* Override any gcc2 internal prototype to avoid an error. */
11123 /* We use char because int might match the return type of a gcc2
11124 builtin and then its argument prototype would still apply. */
11134 rm -f conftest.$ac_objext conftest$ac_exeext
11135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11136 (eval $ac_link) 2>conftest.er1
11138 grep -v '^ *+' conftest.er1 >conftest.err
11140 cat conftest.err >&5
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); } &&
11143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11145 (eval $ac_try) 2>&5
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); }; } &&
11149 { ac_try='test -s conftest$ac_exeext'
11150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11151 (eval $ac_try) 2>&5
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); }; }; then
11155 ac_cv_lib_l_yywrap=yes
11157 echo "$as_me: failed program was:" >&5
11158 sed 's/^/| /' conftest.$ac_ext >&5
11160 ac_cv_lib_l_yywrap=no
11162 rm -f conftest.err conftest.$ac_objext \
11163 conftest$ac_exeext conftest.$ac_ext
11164 LIBS=$ac_check_lib_save_LIBS
11166 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11167 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11168 if test $ac_cv_lib_l_yywrap = yes; then
11176 if test "x$LEX" != "x:"; then
11177 echo "$as_me:$LINENO: checking lex output file root" >&5
11178 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11179 if test "${ac_cv_prog_lex_root+set}" = set; then
11180 echo $ECHO_N "(cached) $ECHO_C" >&6
11182 # The minimal lex program is just a single line: %%. But some broken lexes
11183 # (Solaris, I think it was) want two %% lines, so accommodate them.
11184 cat >conftest.l <<_ACEOF
11188 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11189 (eval $LEX conftest.l) 2>&5
11191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); }
11193 if test -f lex.yy.c; then
11194 ac_cv_prog_lex_root=lex.yy
11195 elif test -f lexyy.c; then
11196 ac_cv_prog_lex_root=lexyy
11198 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11199 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11200 { (exit 1); exit 1; }; }
11203 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11204 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11206 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
11208 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11209 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11210 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11211 echo $ECHO_N "(cached) $ECHO_C" >&6
11213 # POSIX says lex can declare yytext either as a pointer or an array; the
11214 # default is implementation-dependent. Figure out which it is, since
11215 # not all implementations provide the %pointer and %array declarations.
11216 ac_cv_prog_lex_yytext_pointer=no
11217 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11219 LIBS="$LIBS $LEXLIB"
11220 cat >conftest.$ac_ext <<_ACEOF
11221 `cat $LEX_OUTPUT_ROOT.c`
11223 rm -f conftest.$ac_objext conftest$ac_exeext
11224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11225 (eval $ac_link) 2>conftest.er1
11227 grep -v '^ *+' conftest.er1 >conftest.err
11229 cat conftest.err >&5
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); } &&
11232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11234 (eval $ac_try) 2>&5
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); }; } &&
11238 { ac_try='test -s conftest$ac_exeext'
11239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11240 (eval $ac_try) 2>&5
11242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243 (exit $ac_status); }; }; then
11244 ac_cv_prog_lex_yytext_pointer=yes
11246 echo "$as_me: failed program was:" >&5
11247 sed 's/^/| /' conftest.$ac_ext >&5
11250 rm -f conftest.err conftest.$ac_objext \
11251 conftest$ac_exeext conftest.$ac_ext
11253 rm -f "${LEX_OUTPUT_ROOT}.c"
11256 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11257 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11258 if test $ac_cv_prog_lex_yytext_pointer = yes; then
11260 cat >>confdefs.h <<\_ACEOF
11261 #define YYTEXT_POINTER 1
11267 if test "$LEX" = :; then
11268 LEX=${am_missing_run}flex
11271 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11272 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11273 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11274 if test "${enable_maintainer_mode+set}" = set; then
11275 enableval="$enable_maintainer_mode"
11276 USE_MAINTAINER_MODE=$enableval
11278 USE_MAINTAINER_MODE=no
11280 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11281 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
11284 if test $USE_MAINTAINER_MODE = yes; then
11285 MAINTAINER_MODE_TRUE=
11286 MAINTAINER_MODE_FALSE='#'
11288 MAINTAINER_MODE_TRUE='#'
11289 MAINTAINER_MODE_FALSE=
11292 MAINT=$MAINTAINER_MODE_TRUE
11298 GENINSRC_NEVER_TRUE=
11299 GENINSRC_NEVER_FALSE='#'
11301 GENINSRC_NEVER_TRUE='#'
11302 GENINSRC_NEVER_FALSE=
11306 . ${srcdir}/configure.host
11320 for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h sys/param.h
11322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11324 echo "$as_me:$LINENO: checking for $ac_header" >&5
11325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11327 echo $ECHO_N "(cached) $ECHO_C" >&6
11329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11332 # Is the header compilable?
11333 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11335 cat >conftest.$ac_ext <<_ACEOF
11338 cat confdefs.h >>conftest.$ac_ext
11339 cat >>conftest.$ac_ext <<_ACEOF
11340 /* end confdefs.h. */
11341 $ac_includes_default
11342 #include <$ac_header>
11344 rm -f conftest.$ac_objext
11345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11346 (eval $ac_compile) 2>conftest.er1
11348 grep -v '^ *+' conftest.er1 >conftest.err
11350 cat conftest.err >&5
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); } &&
11353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11355 (eval $ac_try) 2>&5
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); }; } &&
11359 { ac_try='test -s conftest.$ac_objext'
11360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11361 (eval $ac_try) 2>&5
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); }; }; then
11365 ac_header_compiler=yes
11367 echo "$as_me: failed program was:" >&5
11368 sed 's/^/| /' conftest.$ac_ext >&5
11370 ac_header_compiler=no
11372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11373 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11374 echo "${ECHO_T}$ac_header_compiler" >&6
11376 # Is the header present?
11377 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11378 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11379 cat >conftest.$ac_ext <<_ACEOF
11382 cat confdefs.h >>conftest.$ac_ext
11383 cat >>conftest.$ac_ext <<_ACEOF
11384 /* end confdefs.h. */
11385 #include <$ac_header>
11387 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11388 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11390 grep -v '^ *+' conftest.er1 >conftest.err
11392 cat conftest.err >&5
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); } >/dev/null; then
11395 if test -s conftest.err; then
11396 ac_cpp_err=$ac_c_preproc_warn_flag
11397 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11404 if test -z "$ac_cpp_err"; then
11405 ac_header_preproc=yes
11407 echo "$as_me: failed program was:" >&5
11408 sed 's/^/| /' conftest.$ac_ext >&5
11410 ac_header_preproc=no
11412 rm -f conftest.err conftest.$ac_ext
11413 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11414 echo "${ECHO_T}$ac_header_preproc" >&6
11416 # So? What about this header?
11417 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11419 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11420 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11422 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11423 ac_header_preproc=yes
11426 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11427 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11428 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11429 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11430 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11431 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11432 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11433 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11435 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11436 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11437 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11440 ## ------------------------------------------ ##
11441 ## Report this to the AC_PACKAGE_NAME lists. ##
11442 ## ------------------------------------------ ##
11445 sed "s/^/$as_me: WARNING: /" >&2
11448 echo "$as_me:$LINENO: checking for $ac_header" >&5
11449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11451 echo $ECHO_N "(cached) $ECHO_C" >&6
11453 eval "$as_ac_Header=\$ac_header_preproc"
11455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11456 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11460 cat >>confdefs.h <<_ACEOF
11461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11473 for ac_func in glob mkstemp realpath sbrk waitpid
11475 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11476 echo "$as_me:$LINENO: checking for $ac_func" >&5
11477 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11478 if eval "test \"\${$as_ac_var+set}\" = set"; then
11479 echo $ECHO_N "(cached) $ECHO_C" >&6
11481 cat >conftest.$ac_ext <<_ACEOF
11484 cat confdefs.h >>conftest.$ac_ext
11485 cat >>conftest.$ac_ext <<_ACEOF
11486 /* end confdefs.h. */
11487 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11489 #define $ac_func innocuous_$ac_func
11491 /* System header to define __stub macros and hopefully few prototypes,
11492 which can conflict with char $ac_func (); below.
11493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11494 <limits.h> exists even on freestanding compilers. */
11497 # include <limits.h>
11499 # include <assert.h>
11504 /* Override any gcc2 internal prototype to avoid an error. */
11509 /* We use char because int might match the return type of a gcc2
11510 builtin and then its argument prototype would still apply. */
11512 /* The GNU C library defines this for functions which it implements
11513 to always fail with ENOSYS. Some functions are actually named
11514 something starting with __ and the normal name is an alias. */
11515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11518 char (*f) () = $ac_func;
11527 return f != $ac_func;
11532 rm -f conftest.$ac_objext conftest$ac_exeext
11533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11534 (eval $ac_link) 2>conftest.er1
11536 grep -v '^ *+' conftest.er1 >conftest.err
11538 cat conftest.err >&5
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); } &&
11541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11543 (eval $ac_try) 2>&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); }; } &&
11547 { ac_try='test -s conftest$ac_exeext'
11548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11549 (eval $ac_try) 2>&5
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); }; }; then
11553 eval "$as_ac_var=yes"
11555 echo "$as_me: failed program was:" >&5
11556 sed 's/^/| /' conftest.$ac_ext >&5
11558 eval "$as_ac_var=no"
11560 rm -f conftest.err conftest.$ac_objext \
11561 conftest$ac_exeext conftest.$ac_ext
11563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11564 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11565 if test `eval echo '${'$as_ac_var'}'` = yes; then
11566 cat >>confdefs.h <<_ACEOF
11567 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11578 ac_header_dirent=no
11579 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11580 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11581 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11582 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11584 echo $ECHO_N "(cached) $ECHO_C" >&6
11586 cat >conftest.$ac_ext <<_ACEOF
11589 cat confdefs.h >>conftest.$ac_ext
11590 cat >>conftest.$ac_ext <<_ACEOF
11591 /* end confdefs.h. */
11592 #include <sys/types.h>
11604 rm -f conftest.$ac_objext
11605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11606 (eval $ac_compile) 2>conftest.er1
11608 grep -v '^ *+' conftest.er1 >conftest.err
11610 cat conftest.err >&5
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); } &&
11613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11615 (eval $ac_try) 2>&5
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); }; } &&
11619 { ac_try='test -s conftest.$ac_objext'
11620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11621 (eval $ac_try) 2>&5
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); }; }; then
11625 eval "$as_ac_Header=yes"
11627 echo "$as_me: failed program was:" >&5
11628 sed 's/^/| /' conftest.$ac_ext >&5
11630 eval "$as_ac_Header=no"
11632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11635 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11637 cat >>confdefs.h <<_ACEOF
11638 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11641 ac_header_dirent=$ac_hdr; break
11645 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11646 if test $ac_header_dirent = dirent.h; then
11647 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11648 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11649 if test "${ac_cv_search_opendir+set}" = set; then
11650 echo $ECHO_N "(cached) $ECHO_C" >&6
11652 ac_func_search_save_LIBS=$LIBS
11653 ac_cv_search_opendir=no
11654 cat >conftest.$ac_ext <<_ACEOF
11657 cat confdefs.h >>conftest.$ac_ext
11658 cat >>conftest.$ac_ext <<_ACEOF
11659 /* end confdefs.h. */
11661 /* Override any gcc2 internal prototype to avoid an error. */
11665 /* We use char because int might match the return type of a gcc2
11666 builtin and then its argument prototype would still apply. */
11676 rm -f conftest.$ac_objext conftest$ac_exeext
11677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11678 (eval $ac_link) 2>conftest.er1
11680 grep -v '^ *+' conftest.er1 >conftest.err
11682 cat conftest.err >&5
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); } &&
11685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11687 (eval $ac_try) 2>&5
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); }; } &&
11691 { ac_try='test -s conftest$ac_exeext'
11692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11693 (eval $ac_try) 2>&5
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); }; }; then
11697 ac_cv_search_opendir="none required"
11699 echo "$as_me: failed program was:" >&5
11700 sed 's/^/| /' conftest.$ac_ext >&5
11703 rm -f conftest.err conftest.$ac_objext \
11704 conftest$ac_exeext conftest.$ac_ext
11705 if test "$ac_cv_search_opendir" = no; then
11706 for ac_lib in dir; do
11707 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11708 cat >conftest.$ac_ext <<_ACEOF
11711 cat confdefs.h >>conftest.$ac_ext
11712 cat >>conftest.$ac_ext <<_ACEOF
11713 /* end confdefs.h. */
11715 /* Override any gcc2 internal prototype to avoid an error. */
11719 /* We use char because int might match the return type of a gcc2
11720 builtin and then its argument prototype would still apply. */
11730 rm -f conftest.$ac_objext conftest$ac_exeext
11731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11732 (eval $ac_link) 2>conftest.er1
11734 grep -v '^ *+' conftest.er1 >conftest.err
11736 cat conftest.err >&5
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); } &&
11739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11741 (eval $ac_try) 2>&5
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); }; } &&
11745 { ac_try='test -s conftest$ac_exeext'
11746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11747 (eval $ac_try) 2>&5
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); }; }; then
11751 ac_cv_search_opendir="-l$ac_lib"
11754 echo "$as_me: failed program was:" >&5
11755 sed 's/^/| /' conftest.$ac_ext >&5
11758 rm -f conftest.err conftest.$ac_objext \
11759 conftest$ac_exeext conftest.$ac_ext
11762 LIBS=$ac_func_search_save_LIBS
11764 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11765 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11766 if test "$ac_cv_search_opendir" != no; then
11767 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11772 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11773 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11774 if test "${ac_cv_search_opendir+set}" = set; then
11775 echo $ECHO_N "(cached) $ECHO_C" >&6
11777 ac_func_search_save_LIBS=$LIBS
11778 ac_cv_search_opendir=no
11779 cat >conftest.$ac_ext <<_ACEOF
11782 cat confdefs.h >>conftest.$ac_ext
11783 cat >>conftest.$ac_ext <<_ACEOF
11784 /* end confdefs.h. */
11786 /* Override any gcc2 internal prototype to avoid an error. */
11790 /* We use char because int might match the return type of a gcc2
11791 builtin and then its argument prototype would still apply. */
11801 rm -f conftest.$ac_objext conftest$ac_exeext
11802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11803 (eval $ac_link) 2>conftest.er1
11805 grep -v '^ *+' conftest.er1 >conftest.err
11807 cat conftest.err >&5
11808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809 (exit $ac_status); } &&
11810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11812 (eval $ac_try) 2>&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); }; } &&
11816 { ac_try='test -s conftest$ac_exeext'
11817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11818 (eval $ac_try) 2>&5
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); }; }; then
11822 ac_cv_search_opendir="none required"
11824 echo "$as_me: failed program was:" >&5
11825 sed 's/^/| /' conftest.$ac_ext >&5
11828 rm -f conftest.err conftest.$ac_objext \
11829 conftest$ac_exeext conftest.$ac_ext
11830 if test "$ac_cv_search_opendir" = no; then
11831 for ac_lib in x; do
11832 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11833 cat >conftest.$ac_ext <<_ACEOF
11836 cat confdefs.h >>conftest.$ac_ext
11837 cat >>conftest.$ac_ext <<_ACEOF
11838 /* end confdefs.h. */
11840 /* Override any gcc2 internal prototype to avoid an error. */
11844 /* We use char because int might match the return type of a gcc2
11845 builtin and then its argument prototype would still apply. */
11855 rm -f conftest.$ac_objext conftest$ac_exeext
11856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11857 (eval $ac_link) 2>conftest.er1
11859 grep -v '^ *+' conftest.er1 >conftest.err
11861 cat conftest.err >&5
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); } &&
11864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11866 (eval $ac_try) 2>&5
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); }; } &&
11870 { ac_try='test -s conftest$ac_exeext'
11871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11872 (eval $ac_try) 2>&5
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); }; }; then
11876 ac_cv_search_opendir="-l$ac_lib"
11879 echo "$as_me: failed program was:" >&5
11880 sed 's/^/| /' conftest.$ac_ext >&5
11883 rm -f conftest.err conftest.$ac_objext \
11884 conftest$ac_exeext conftest.$ac_ext
11887 LIBS=$ac_func_search_save_LIBS
11889 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11890 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11891 if test "$ac_cv_search_opendir" != no; then
11892 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11899 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
11900 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
11901 if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then
11902 echo $ECHO_N "(cached) $ECHO_C" >&6
11904 cat >conftest.$ac_ext <<_ACEOF
11907 cat confdefs.h >>conftest.$ac_ext
11908 cat >>conftest.$ac_ext <<_ACEOF
11909 /* end confdefs.h. */
11910 #include <unistd.h>
11914 extern int getopt (int, char *const*, const char *);
11919 rm -f conftest.$ac_objext
11920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11921 (eval $ac_compile) 2>conftest.er1
11923 grep -v '^ *+' conftest.er1 >conftest.err
11925 cat conftest.err >&5
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); } &&
11928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11930 (eval $ac_try) 2>&5
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); }; } &&
11934 { ac_try='test -s conftest.$ac_objext'
11935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11936 (eval $ac_try) 2>&5
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); }; }; then
11940 ld_cv_decl_getopt_unistd_h=yes
11942 echo "$as_me: failed program was:" >&5
11943 sed 's/^/| /' conftest.$ac_ext >&5
11945 ld_cv_decl_getopt_unistd_h=no
11947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11950 echo "$as_me:$LINENO: result: $ld_cv_decl_getopt_unistd_h" >&5
11951 echo "${ECHO_T}$ld_cv_decl_getopt_unistd_h" >&6
11952 if test $ld_cv_decl_getopt_unistd_h = yes; then
11954 cat >>confdefs.h <<\_ACEOF
11955 #define HAVE_DECL_GETOPT 1
11962 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
11964 cat >>confdefs.h <<\_ACEOF
11965 #define USE_BINARY_FOPEN 1
11970 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
11971 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
11972 if test "${ac_cv_have_decl_strstr+set}" = set; then
11973 echo $ECHO_N "(cached) $ECHO_C" >&6
11975 cat >conftest.$ac_ext <<_ACEOF
11978 cat confdefs.h >>conftest.$ac_ext
11979 cat >>conftest.$ac_ext <<_ACEOF
11980 /* end confdefs.h. */
11981 $ac_includes_default
11986 char *p = (char *) strstr;
11993 rm -f conftest.$ac_objext
11994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11995 (eval $ac_compile) 2>conftest.er1
11997 grep -v '^ *+' conftest.er1 >conftest.err
11999 cat conftest.err >&5
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); } &&
12002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004 (eval $ac_try) 2>&5
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); }; } &&
12008 { ac_try='test -s conftest.$ac_objext'
12009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12010 (eval $ac_try) 2>&5
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; }; then
12014 ac_cv_have_decl_strstr=yes
12016 echo "$as_me: failed program was:" >&5
12017 sed 's/^/| /' conftest.$ac_ext >&5
12019 ac_cv_have_decl_strstr=no
12021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12023 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
12024 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
12025 if test $ac_cv_have_decl_strstr = yes; then
12027 cat >>confdefs.h <<_ACEOF
12028 #define HAVE_DECL_STRSTR 1
12033 cat >>confdefs.h <<_ACEOF
12034 #define HAVE_DECL_STRSTR 0
12039 echo "$as_me:$LINENO: checking whether free is declared" >&5
12040 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
12041 if test "${ac_cv_have_decl_free+set}" = set; then
12042 echo $ECHO_N "(cached) $ECHO_C" >&6
12044 cat >conftest.$ac_ext <<_ACEOF
12047 cat confdefs.h >>conftest.$ac_ext
12048 cat >>conftest.$ac_ext <<_ACEOF
12049 /* end confdefs.h. */
12050 $ac_includes_default
12055 char *p = (char *) free;
12062 rm -f conftest.$ac_objext
12063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12064 (eval $ac_compile) 2>conftest.er1
12066 grep -v '^ *+' conftest.er1 >conftest.err
12068 cat conftest.err >&5
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); } &&
12071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12073 (eval $ac_try) 2>&5
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); }; } &&
12077 { ac_try='test -s conftest.$ac_objext'
12078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12079 (eval $ac_try) 2>&5
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); }; }; then
12083 ac_cv_have_decl_free=yes
12085 echo "$as_me: failed program was:" >&5
12086 sed 's/^/| /' conftest.$ac_ext >&5
12088 ac_cv_have_decl_free=no
12090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12092 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
12093 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
12094 if test $ac_cv_have_decl_free = yes; then
12096 cat >>confdefs.h <<_ACEOF
12097 #define HAVE_DECL_FREE 1
12102 cat >>confdefs.h <<_ACEOF
12103 #define HAVE_DECL_FREE 0
12108 echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
12109 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
12110 if test "${ac_cv_have_decl_sbrk+set}" = set; then
12111 echo $ECHO_N "(cached) $ECHO_C" >&6
12113 cat >conftest.$ac_ext <<_ACEOF
12116 cat confdefs.h >>conftest.$ac_ext
12117 cat >>conftest.$ac_ext <<_ACEOF
12118 /* end confdefs.h. */
12119 $ac_includes_default
12124 char *p = (char *) sbrk;
12131 rm -f conftest.$ac_objext
12132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12133 (eval $ac_compile) 2>conftest.er1
12135 grep -v '^ *+' conftest.er1 >conftest.err
12137 cat conftest.err >&5
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); } &&
12140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12142 (eval $ac_try) 2>&5
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); }; } &&
12146 { ac_try='test -s conftest.$ac_objext'
12147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12148 (eval $ac_try) 2>&5
12150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); }; }; then
12152 ac_cv_have_decl_sbrk=yes
12154 echo "$as_me: failed program was:" >&5
12155 sed 's/^/| /' conftest.$ac_ext >&5
12157 ac_cv_have_decl_sbrk=no
12159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12161 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
12162 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
12163 if test $ac_cv_have_decl_sbrk = yes; then
12165 cat >>confdefs.h <<_ACEOF
12166 #define HAVE_DECL_SBRK 1
12171 cat >>confdefs.h <<_ACEOF
12172 #define HAVE_DECL_SBRK 0
12177 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
12178 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
12179 if test "${ac_cv_have_decl_getenv+set}" = set; then
12180 echo $ECHO_N "(cached) $ECHO_C" >&6
12182 cat >conftest.$ac_ext <<_ACEOF
12185 cat confdefs.h >>conftest.$ac_ext
12186 cat >>conftest.$ac_ext <<_ACEOF
12187 /* end confdefs.h. */
12188 $ac_includes_default
12193 char *p = (char *) getenv;
12200 rm -f conftest.$ac_objext
12201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12202 (eval $ac_compile) 2>conftest.er1
12204 grep -v '^ *+' conftest.er1 >conftest.err
12206 cat conftest.err >&5
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); } &&
12209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12211 (eval $ac_try) 2>&5
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); }; } &&
12215 { ac_try='test -s conftest.$ac_objext'
12216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12217 (eval $ac_try) 2>&5
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); }; }; then
12221 ac_cv_have_decl_getenv=yes
12223 echo "$as_me: failed program was:" >&5
12224 sed 's/^/| /' conftest.$ac_ext >&5
12226 ac_cv_have_decl_getenv=no
12228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12230 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
12231 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
12232 if test $ac_cv_have_decl_getenv = yes; then
12234 cat >>confdefs.h <<_ACEOF
12235 #define HAVE_DECL_GETENV 1
12240 cat >>confdefs.h <<_ACEOF
12241 #define HAVE_DECL_GETENV 0
12246 echo "$as_me:$LINENO: checking whether environ is declared" >&5
12247 echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
12248 if test "${ac_cv_have_decl_environ+set}" = set; then
12249 echo $ECHO_N "(cached) $ECHO_C" >&6
12251 cat >conftest.$ac_ext <<_ACEOF
12254 cat confdefs.h >>conftest.$ac_ext
12255 cat >>conftest.$ac_ext <<_ACEOF
12256 /* end confdefs.h. */
12257 $ac_includes_default
12262 char *p = (char *) environ;
12269 rm -f conftest.$ac_objext
12270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12271 (eval $ac_compile) 2>conftest.er1
12273 grep -v '^ *+' conftest.er1 >conftest.err
12275 cat conftest.err >&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); } &&
12278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12280 (eval $ac_try) 2>&5
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); }; } &&
12284 { ac_try='test -s conftest.$ac_objext'
12285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12286 (eval $ac_try) 2>&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); }; }; then
12290 ac_cv_have_decl_environ=yes
12292 echo "$as_me: failed program was:" >&5
12293 sed 's/^/| /' conftest.$ac_ext >&5
12295 ac_cv_have_decl_environ=no
12297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12299 echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
12300 echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
12301 if test $ac_cv_have_decl_environ = yes; then
12303 cat >>confdefs.h <<_ACEOF
12304 #define HAVE_DECL_ENVIRON 1
12309 cat >>confdefs.h <<_ACEOF
12310 #define HAVE_DECL_ENVIRON 0
12318 # Link in zlib if we can. This is needed only for the bootstrap tests
12319 # right now, since those tests use libbfd, which depends on zlib.
12320 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
12321 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
12322 if test "${ac_cv_search_zlibVersion+set}" = set; then
12323 echo $ECHO_N "(cached) $ECHO_C" >&6
12325 ac_func_search_save_LIBS=$LIBS
12326 ac_cv_search_zlibVersion=no
12327 cat >conftest.$ac_ext <<_ACEOF
12330 cat confdefs.h >>conftest.$ac_ext
12331 cat >>conftest.$ac_ext <<_ACEOF
12332 /* end confdefs.h. */
12334 /* Override any gcc2 internal prototype to avoid an error. */
12338 /* We use char because int might match the return type of a gcc2
12339 builtin and then its argument prototype would still apply. */
12340 char zlibVersion ();
12349 rm -f conftest.$ac_objext conftest$ac_exeext
12350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12351 (eval $ac_link) 2>conftest.er1
12353 grep -v '^ *+' conftest.er1 >conftest.err
12355 cat conftest.err >&5
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); } &&
12358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12360 (eval $ac_try) 2>&5
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); }; } &&
12364 { ac_try='test -s conftest$ac_exeext'
12365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366 (eval $ac_try) 2>&5
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); }; }; then
12370 ac_cv_search_zlibVersion="none required"
12372 echo "$as_me: failed program was:" >&5
12373 sed 's/^/| /' conftest.$ac_ext >&5
12376 rm -f conftest.err conftest.$ac_objext \
12377 conftest$ac_exeext conftest.$ac_ext
12378 if test "$ac_cv_search_zlibVersion" = no; then
12379 for ac_lib in z; do
12380 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12381 cat >conftest.$ac_ext <<_ACEOF
12384 cat confdefs.h >>conftest.$ac_ext
12385 cat >>conftest.$ac_ext <<_ACEOF
12386 /* end confdefs.h. */
12388 /* Override any gcc2 internal prototype to avoid an error. */
12392 /* We use char because int might match the return type of a gcc2
12393 builtin and then its argument prototype would still apply. */
12394 char zlibVersion ();
12403 rm -f conftest.$ac_objext conftest$ac_exeext
12404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12405 (eval $ac_link) 2>conftest.er1
12407 grep -v '^ *+' conftest.er1 >conftest.err
12409 cat conftest.err >&5
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); } &&
12412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12414 (eval $ac_try) 2>&5
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); }; } &&
12418 { ac_try='test -s conftest$ac_exeext'
12419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12420 (eval $ac_try) 2>&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); }; }; then
12424 ac_cv_search_zlibVersion="-l$ac_lib"
12427 echo "$as_me: failed program was:" >&5
12428 sed 's/^/| /' conftest.$ac_ext >&5
12431 rm -f conftest.err conftest.$ac_objext \
12432 conftest$ac_exeext conftest.$ac_ext
12435 LIBS=$ac_func_search_save_LIBS
12437 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
12438 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
12439 if test "$ac_cv_search_zlibVersion" != no; then
12440 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
12442 for ac_header in zlib.h
12444 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12446 echo "$as_me:$LINENO: checking for $ac_header" >&5
12447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12449 echo $ECHO_N "(cached) $ECHO_C" >&6
12451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12452 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12454 # Is the header compilable?
12455 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12456 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12457 cat >conftest.$ac_ext <<_ACEOF
12460 cat confdefs.h >>conftest.$ac_ext
12461 cat >>conftest.$ac_ext <<_ACEOF
12462 /* end confdefs.h. */
12463 $ac_includes_default
12464 #include <$ac_header>
12466 rm -f conftest.$ac_objext
12467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12468 (eval $ac_compile) 2>conftest.er1
12470 grep -v '^ *+' conftest.er1 >conftest.err
12472 cat conftest.err >&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); } &&
12475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12477 (eval $ac_try) 2>&5
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); }; } &&
12481 { ac_try='test -s conftest.$ac_objext'
12482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12483 (eval $ac_try) 2>&5
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); }; }; then
12487 ac_header_compiler=yes
12489 echo "$as_me: failed program was:" >&5
12490 sed 's/^/| /' conftest.$ac_ext >&5
12492 ac_header_compiler=no
12494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12495 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12496 echo "${ECHO_T}$ac_header_compiler" >&6
12498 # Is the header present?
12499 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12500 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12501 cat >conftest.$ac_ext <<_ACEOF
12504 cat confdefs.h >>conftest.$ac_ext
12505 cat >>conftest.$ac_ext <<_ACEOF
12506 /* end confdefs.h. */
12507 #include <$ac_header>
12509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12510 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12512 grep -v '^ *+' conftest.er1 >conftest.err
12514 cat conftest.err >&5
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); } >/dev/null; then
12517 if test -s conftest.err; then
12518 ac_cpp_err=$ac_c_preproc_warn_flag
12519 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12526 if test -z "$ac_cpp_err"; then
12527 ac_header_preproc=yes
12529 echo "$as_me: failed program was:" >&5
12530 sed 's/^/| /' conftest.$ac_ext >&5
12532 ac_header_preproc=no
12534 rm -f conftest.err conftest.$ac_ext
12535 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12536 echo "${ECHO_T}$ac_header_preproc" >&6
12538 # So? What about this header?
12539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12541 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12542 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12544 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12545 ac_header_preproc=yes
12548 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12549 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12550 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12551 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12552 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12553 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12554 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12555 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12557 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12558 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12559 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12562 ## ------------------------------------------ ##
12563 ## Report this to the AC_PACKAGE_NAME lists. ##
12564 ## ------------------------------------------ ##
12567 sed "s/^/$as_me: WARNING: /" >&2
12570 echo "$as_me:$LINENO: checking for $ac_header" >&5
12571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12573 echo $ECHO_N "(cached) $ECHO_C" >&6
12575 eval "$as_ac_Header=\$ac_header_preproc"
12577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12578 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12582 cat >>confdefs.h <<_ACEOF
12583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12593 # When converting linker scripts into strings for use in emulation
12594 # files, use astring.sed if the compiler supports ANSI string
12595 # concatenation, or ostring.sed otherwise. This is to support the
12596 # broken Microsoft MSVC compiler, which limits the length of string
12597 # constants, while still supporting pre-ANSI compilers which do not
12598 # support string concatenation.
12599 echo "$as_me:$LINENO: checking whether ANSI C string concatenation works" >&5
12600 echo $ECHO_N "checking whether ANSI C string concatenation works... $ECHO_C" >&6
12601 if test "${ld_cv_string_concatenation+set}" = set; then
12602 echo $ECHO_N "(cached) $ECHO_C" >&6
12604 cat >conftest.$ac_ext <<_ACEOF
12607 cat confdefs.h >>conftest.$ac_ext
12608 cat >>conftest.$ac_ext <<_ACEOF
12609 /* end confdefs.h. */
12619 rm -f conftest.$ac_objext
12620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12621 (eval $ac_compile) 2>conftest.er1
12623 grep -v '^ *+' conftest.er1 >conftest.err
12625 cat conftest.err >&5
12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); } &&
12628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12630 (eval $ac_try) 2>&5
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); }; } &&
12634 { ac_try='test -s conftest.$ac_objext'
12635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12636 (eval $ac_try) 2>&5
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); }; }; then
12640 ld_cv_string_concatenation=yes
12642 echo "$as_me: failed program was:" >&5
12643 sed 's/^/| /' conftest.$ac_ext >&5
12645 ld_cv_string_concatenation=no
12647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12650 echo "$as_me:$LINENO: result: $ld_cv_string_concatenation" >&5
12651 echo "${ECHO_T}$ld_cv_string_concatenation" >&6
12652 if test "$ld_cv_string_concatenation" = "yes"; then
12653 STRINGIFY=astring.sed
12655 STRINGIFY=ostring.sed
12659 # target-specific stuff:
12669 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
12671 if test "$targ_alias" = "all"; then
12674 # Canonicalize the secondary target names.
12675 result=`$ac_config_sub $targ_alias 2>/dev/null`
12676 if test -n "$result"; then
12682 . ${srcdir}/configure.tgt
12684 if test "$targ" = "$target"; then
12688 if test x${want64} = xfalse; then
12689 . ${srcdir}/../bfd/config.bfd
12692 if test x${want64} = xtrue; then
12693 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
12694 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
12697 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
12698 case " $all_emuls " in
12701 all_emuls="$all_emuls e${i}.o"
12702 eval result=\$tdir_$i
12703 test -z "$result" && result=$targ_alias
12704 echo tdir_$i=$result >> tdirs
12709 for i in $targ_emul $targ_extra_libpath; do
12710 case " $all_libpath " in
12713 if test -z "$all_libpath"; then
12716 all_libpath="$all_libpath ${i}"
12722 for i in $targ_extra_ofiles; do
12723 case " $all_emul_extras " in
12726 all_emul_extras="$all_emul_extras ${i}"
12738 if test x${all_targets} = xtrue; then
12739 if test x${want64} = xfalse; then
12740 echo "$as_me:$LINENO: checking for long" >&5
12741 echo $ECHO_N "checking for long... $ECHO_C" >&6
12742 if test "${ac_cv_type_long+set}" = set; then
12743 echo $ECHO_N "(cached) $ECHO_C" >&6
12745 cat >conftest.$ac_ext <<_ACEOF
12748 cat confdefs.h >>conftest.$ac_ext
12749 cat >>conftest.$ac_ext <<_ACEOF
12750 /* end confdefs.h. */
12751 $ac_includes_default
12763 rm -f conftest.$ac_objext
12764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12765 (eval $ac_compile) 2>conftest.er1
12767 grep -v '^ *+' conftest.er1 >conftest.err
12769 cat conftest.err >&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); } &&
12772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12774 (eval $ac_try) 2>&5
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); }; } &&
12778 { ac_try='test -s conftest.$ac_objext'
12779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12780 (eval $ac_try) 2>&5
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); }; }; then
12784 ac_cv_type_long=yes
12786 echo "$as_me: failed program was:" >&5
12787 sed 's/^/| /' conftest.$ac_ext >&5
12791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12793 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12794 echo "${ECHO_T}$ac_cv_type_long" >&6
12796 echo "$as_me:$LINENO: checking size of long" >&5
12797 echo $ECHO_N "checking size of long... $ECHO_C" >&6
12798 if test "${ac_cv_sizeof_long+set}" = set; then
12799 echo $ECHO_N "(cached) $ECHO_C" >&6
12801 if test "$ac_cv_type_long" = yes; then
12802 # The cast to unsigned long works around a bug in the HP C Compiler
12803 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12804 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12805 # This bug is HP SR number 8606223364.
12806 if test "$cross_compiling" = yes; then
12807 # Depending upon the size, compute the lo and hi bounds.
12808 cat >conftest.$ac_ext <<_ACEOF
12811 cat confdefs.h >>conftest.$ac_ext
12812 cat >>conftest.$ac_ext <<_ACEOF
12813 /* end confdefs.h. */
12814 $ac_includes_default
12818 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12825 rm -f conftest.$ac_objext
12826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12827 (eval $ac_compile) 2>conftest.er1
12829 grep -v '^ *+' conftest.er1 >conftest.err
12831 cat conftest.err >&5
12832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833 (exit $ac_status); } &&
12834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12836 (eval $ac_try) 2>&5
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); }; } &&
12840 { ac_try='test -s conftest.$ac_objext'
12841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12842 (eval $ac_try) 2>&5
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); }; }; then
12848 cat >conftest.$ac_ext <<_ACEOF
12851 cat confdefs.h >>conftest.$ac_ext
12852 cat >>conftest.$ac_ext <<_ACEOF
12853 /* end confdefs.h. */
12854 $ac_includes_default
12858 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12865 rm -f conftest.$ac_objext
12866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12867 (eval $ac_compile) 2>conftest.er1
12869 grep -v '^ *+' conftest.er1 >conftest.err
12871 cat conftest.err >&5
12872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873 (exit $ac_status); } &&
12874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12876 (eval $ac_try) 2>&5
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); }; } &&
12880 { ac_try='test -s conftest.$ac_objext'
12881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12882 (eval $ac_try) 2>&5
12884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); }; }; then
12886 ac_hi=$ac_mid; break
12888 echo "$as_me: failed program was:" >&5
12889 sed 's/^/| /' conftest.$ac_ext >&5
12891 ac_lo=`expr $ac_mid + 1`
12892 if test $ac_lo -le $ac_mid; then
12896 ac_mid=`expr 2 '*' $ac_mid + 1`
12898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12901 echo "$as_me: failed program was:" >&5
12902 sed 's/^/| /' conftest.$ac_ext >&5
12904 cat >conftest.$ac_ext <<_ACEOF
12907 cat confdefs.h >>conftest.$ac_ext
12908 cat >>conftest.$ac_ext <<_ACEOF
12909 /* end confdefs.h. */
12910 $ac_includes_default
12914 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12921 rm -f conftest.$ac_objext
12922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12923 (eval $ac_compile) 2>conftest.er1
12925 grep -v '^ *+' conftest.er1 >conftest.err
12927 cat conftest.err >&5
12928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 (exit $ac_status); } &&
12930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12932 (eval $ac_try) 2>&5
12934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); }; } &&
12936 { ac_try='test -s conftest.$ac_objext'
12937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12938 (eval $ac_try) 2>&5
12940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941 (exit $ac_status); }; }; then
12944 cat >conftest.$ac_ext <<_ACEOF
12947 cat confdefs.h >>conftest.$ac_ext
12948 cat >>conftest.$ac_ext <<_ACEOF
12949 /* end confdefs.h. */
12950 $ac_includes_default
12954 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12961 rm -f conftest.$ac_objext
12962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12963 (eval $ac_compile) 2>conftest.er1
12965 grep -v '^ *+' conftest.er1 >conftest.err
12967 cat conftest.err >&5
12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969 (exit $ac_status); } &&
12970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12972 (eval $ac_try) 2>&5
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); }; } &&
12976 { ac_try='test -s conftest.$ac_objext'
12977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12978 (eval $ac_try) 2>&5
12980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 (exit $ac_status); }; }; then
12982 ac_lo=$ac_mid; break
12984 echo "$as_me: failed program was:" >&5
12985 sed 's/^/| /' conftest.$ac_ext >&5
12987 ac_hi=`expr '(' $ac_mid ')' - 1`
12988 if test $ac_mid -le $ac_hi; then
12992 ac_mid=`expr 2 '*' $ac_mid`
12994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12997 echo "$as_me: failed program was:" >&5
12998 sed 's/^/| /' conftest.$ac_ext >&5
13002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13005 # Binary search between lo and hi bounds.
13006 while test "x$ac_lo" != "x$ac_hi"; do
13007 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13008 cat >conftest.$ac_ext <<_ACEOF
13011 cat confdefs.h >>conftest.$ac_ext
13012 cat >>conftest.$ac_ext <<_ACEOF
13013 /* end confdefs.h. */
13014 $ac_includes_default
13018 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13025 rm -f conftest.$ac_objext
13026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13027 (eval $ac_compile) 2>conftest.er1
13029 grep -v '^ *+' conftest.er1 >conftest.err
13031 cat conftest.err >&5
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 (exit $ac_status); } &&
13034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13036 (eval $ac_try) 2>&5
13038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039 (exit $ac_status); }; } &&
13040 { ac_try='test -s conftest.$ac_objext'
13041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13042 (eval $ac_try) 2>&5
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); }; }; then
13048 echo "$as_me: failed program was:" >&5
13049 sed 's/^/| /' conftest.$ac_ext >&5
13051 ac_lo=`expr '(' $ac_mid ')' + 1`
13053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13056 ?*) ac_cv_sizeof_long=$ac_lo;;
13057 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13058 echo "$as_me: error: in \`$ac_pwd':" >&2;}
13059 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13060 See \`config.log' for more details." >&5
13061 echo "$as_me: error: cannot compute sizeof (long), 77
13062 See \`config.log' for more details." >&2;}
13063 { (exit 1); exit 1; }; }; } ;;
13066 if test "$cross_compiling" = yes; then
13067 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13068 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13069 { (exit 1); exit 1; }; }
13071 cat >conftest.$ac_ext <<_ACEOF
13074 cat confdefs.h >>conftest.$ac_ext
13075 cat >>conftest.$ac_ext <<_ACEOF
13076 /* end confdefs.h. */
13077 $ac_includes_default
13078 long longval () { return (long) (sizeof (long)); }
13079 unsigned long ulongval () { return (long) (sizeof (long)); }
13081 #include <stdlib.h>
13086 FILE *f = fopen ("conftest.val", "w");
13089 if (((long) (sizeof (long))) < 0)
13091 long i = longval ();
13092 if (i != ((long) (sizeof (long))))
13094 fprintf (f, "%ld\n", i);
13098 unsigned long i = ulongval ();
13099 if (i != ((long) (sizeof (long))))
13101 fprintf (f, "%lu\n", i);
13103 exit (ferror (f) || fclose (f) != 0);
13109 rm -f conftest$ac_exeext
13110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13111 (eval $ac_link) 2>&5
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13116 (eval $ac_try) 2>&5
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); }; }; then
13120 ac_cv_sizeof_long=`cat conftest.val`
13122 echo "$as_me: program exited with status $ac_status" >&5
13123 echo "$as_me: failed program was:" >&5
13124 sed 's/^/| /' conftest.$ac_ext >&5
13126 ( exit $ac_status )
13127 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13128 echo "$as_me: error: in \`$ac_pwd':" >&2;}
13129 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13130 See \`config.log' for more details." >&5
13131 echo "$as_me: error: cannot compute sizeof (long), 77
13132 See \`config.log' for more details." >&2;}
13133 { (exit 1); exit 1; }; }; }
13135 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13140 ac_cv_sizeof_long=0
13143 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13144 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13145 cat >>confdefs.h <<_ACEOF
13146 #define SIZEOF_LONG $ac_cv_sizeof_long
13150 if test "x${ac_cv_sizeof_long}" = "x8"; then
13154 if test x${want64} = xtrue; then
13155 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
13157 EMULATION_OFILES='$(ALL_EMULATIONS)'
13159 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
13161 EMULATION_OFILES=$all_emuls
13162 EMUL_EXTRA_OFILES=$all_emul_extras
13168 EMULATION_LIBPATH=$all_libpath
13171 if test x${enable_static} = xno; then
13172 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
13174 TESTBFDLIB="../bfd/.libs/libbfd.a"
13178 target_vendor=${target_vendor=$host_vendor}
13179 case "$target_vendor" in
13180 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
13181 *) EXTRA_SHLIB_EXTENSION= ;;
13184 case "$target_os" in
13185 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
13188 if test x${EXTRA_SHLIB_EXTENSION} != x ; then
13190 cat >>confdefs.h <<_ACEOF
13191 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
13200 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
13201 cat >confcache <<\_ACEOF
13202 # This file is a shell script that caches the results of configure
13203 # tests run on this system so they can be shared between configure
13204 # scripts and configure runs, see configure's option --config-cache.
13205 # It is not useful on other systems. If it contains results you don't
13206 # want to keep, you may remove or edit it.
13208 # config.status only pays attention to the cache file if you give it
13209 # the --recheck option to rerun configure.
13211 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13212 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13213 # following values.
13217 # The following way of writing the cache mishandles newlines in values,
13218 # but we know of no workaround that is simple, portable, and efficient.
13219 # So, don't put newlines in cache variables' values.
13220 # Ultrix sh set writes to stderr and can't be redirected directly,
13221 # and sets the high bit in the cache file unless we assign to the vars.
13224 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13226 # `set' does not quote correctly, so add quotes (double-quote
13227 # substitution turns \\\\ into \\, and sed turns \\ into \).
13230 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13233 # `set' quotes correctly as required by POSIX, so do not add quotes.
13235 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13242 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13244 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13246 if diff $cache_file confcache >/dev/null 2>&1; then :; else
13247 if test -w $cache_file; then
13248 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13249 cat confcache >$cache_file
13251 echo "not updating unwritable cache $cache_file"
13256 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13257 # Let make expand exec_prefix.
13258 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13260 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13261 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13262 # trailing colons and then remove the whole line if VPATH becomes empty
13263 # (actually we leave an empty line to preserve line numbers).
13264 if test "x$srcdir" = x.; then
13265 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13266 s/:*\$(srcdir):*/:/;
13267 s/:*\${srcdir}:*/:/;
13269 s/^\([^=]*=[ ]*\):*/\1/;
13275 DEFS=-DHAVE_CONFIG_H
13279 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13280 # 1. Remove the extension, and $U if already installed.
13281 ac_i=`echo "$ac_i" |
13282 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13284 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13285 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13287 LIBOBJS=$ac_libobjs
13289 LTLIBOBJS=$ac_ltlibobjs
13292 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13293 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13294 Usually this means the macro was only invoked conditionally." >&5
13295 echo "$as_me: error: conditional \"AMDEP\" was never defined.
13296 Usually this means the macro was only invoked conditionally." >&2;}
13297 { (exit 1); exit 1; }; }
13299 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13300 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13301 Usually this means the macro was only invoked conditionally." >&5
13302 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13303 Usually this means the macro was only invoked conditionally." >&2;}
13304 { (exit 1); exit 1; }; }
13306 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13307 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13308 Usually this means the macro was only invoked conditionally." >&5
13309 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13310 Usually this means the macro was only invoked conditionally." >&2;}
13311 { (exit 1); exit 1; }; }
13313 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
13314 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
13315 Usually this means the macro was only invoked conditionally." >&5
13316 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
13317 Usually this means the macro was only invoked conditionally." >&2;}
13318 { (exit 1); exit 1; }; }
13321 : ${CONFIG_STATUS=./config.status}
13322 ac_clean_files_save=$ac_clean_files
13323 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13324 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13325 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13326 cat >$CONFIG_STATUS <<_ACEOF
13328 # Generated by $as_me.
13329 # Run this file to recreate the current configuration.
13330 # Compiler output produced by configure, useful for debugging
13331 # configure, is in config.log if it exists.
13334 ac_cs_recheck=false
13336 SHELL=\${CONFIG_SHELL-$SHELL}
13339 cat >>$CONFIG_STATUS <<\_ACEOF
13340 ## --------------------- ##
13341 ## M4sh Initialization. ##
13342 ## --------------------- ##
13344 # Be Bourne compatible
13345 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13348 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13349 # is contrary to our usage. Disable this feature.
13350 alias -g '${1+"$@"}'='"$@"'
13351 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13354 DUALCASE=1; export DUALCASE # for MKS sh
13356 # Support unset when possible.
13357 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13364 # Work around bugs in pre-3.0 UWIN ksh.
13365 $as_unset ENV MAIL MAILPATH
13372 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13373 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13374 LC_TELEPHONE LC_TIME
13376 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13377 eval $as_var=C; export $as_var
13383 # Required to use basename.
13384 if expr a : '\(a\)' >/dev/null 2>&1; then
13390 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13391 as_basename=basename
13397 # Name of the executable.
13398 as_me=`$as_basename "$0" ||
13399 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13400 X"$0" : 'X\(//\)$' \| \
13401 X"$0" : 'X\(/\)$' \| \
13402 . : '\(.\)' 2>/dev/null ||
13404 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13405 /^X\/\(\/\/\)$/{ s//\1/; q; }
13406 /^X\/\(\/\).*/{ s//\1/; q; }
13410 # PATH needs CR, and LINENO needs CR and PATH.
13411 # Avoid depending upon Character Ranges.
13412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13415 as_cr_digits='0123456789'
13416 as_cr_alnum=$as_cr_Letters$as_cr_digits
13418 # The user is always right.
13419 if test "${PATH_SEPARATOR+set}" != set; then
13420 echo "#! /bin/sh" >conf$$.sh
13421 echo "exit 0" >>conf$$.sh
13423 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13432 as_lineno_1=$LINENO
13433 as_lineno_2=$LINENO
13434 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13435 test "x$as_lineno_1" != "x$as_lineno_2" &&
13436 test "x$as_lineno_3" = "x$as_lineno_2" || {
13437 # Find who we are. Look in the path if we contain no path at all
13440 *[\\/]* ) as_myself=$0 ;;
13441 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13442 for as_dir in $PATH
13445 test -z "$as_dir" && as_dir=.
13446 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13451 # We did not find ourselves, most probably we were run as `sh COMMAND'
13452 # in which case we are not to be found in the path.
13453 if test "x$as_myself" = x; then
13456 if test ! -f "$as_myself"; then
13457 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13458 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13459 { (exit 1); exit 1; }; }
13461 case $CONFIG_SHELL in
13463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13464 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13467 test -z "$as_dir" && as_dir=.
13468 for as_base in sh bash ksh sh5; do
13471 if ("$as_dir/$as_base" -c '
13472 as_lineno_1=$LINENO
13473 as_lineno_2=$LINENO
13474 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13475 test "x$as_lineno_1" != "x$as_lineno_2" &&
13476 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13477 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13478 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13479 CONFIG_SHELL=$as_dir/$as_base
13480 export CONFIG_SHELL
13481 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13489 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13490 # uniformly replaced by the line number. The first 'sed' inserts a
13491 # line-number line before each line; the second 'sed' does the real
13492 # work. The second script uses 'N' to pair each line-number line
13493 # with the numbered line, and appends trailing '-' during
13494 # substitution so that $LINENO is not a special case at line end.
13495 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13496 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13497 sed '=' <$as_myself |
13502 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13505 s,^['$as_cr_digits']*\n,,
13506 ' >$as_me.lineno &&
13507 chmod +x $as_me.lineno ||
13508 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13509 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13510 { (exit 1); exit 1; }; }
13512 # Don't try to exec as it changes $[0], causing all sort of problems
13513 # (the dirname of $[0] is not the place where we might find the
13514 # original and so on. Autoconf is especially sensible to this).
13516 # Exit status is that of the last command.
13521 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13522 *c*,-n*) ECHO_N= ECHO_C='
13524 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13525 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13528 if expr a : '\(a\)' >/dev/null 2>&1; then
13534 rm -f conf$$ conf$$.exe conf$$.file
13536 if ln -s conf$$.file conf$$ 2>/dev/null; then
13537 # We could just check for DJGPP; but this test a) works b) is more generic
13538 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13539 if test -f conf$$.exe; then
13540 # Don't use ln at all; we don't have any links
13545 elif ln conf$$.file conf$$ 2>/dev/null; then
13550 rm -f conf$$ conf$$.exe conf$$.file
13552 if mkdir -p . 2>/dev/null; then
13555 test -d ./-p && rmdir ./-p
13559 as_executable_p="test -f"
13561 # Sed expression to map a string onto a valid CPP name.
13562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13564 # Sed expression to map a string onto a valid variable name.
13565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13569 # We need space, tab and new line, in precisely that order.
13579 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13580 # report actual input values of CONFIG_FILES etc. instead of their
13581 # values after options handling. Logging --version etc. is OK.
13585 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13586 ## Running $as_me. ##
13591 This file was extended by $as_me, which was
13592 generated by GNU Autoconf 2.59. Invocation command line was
13594 CONFIG_FILES = $CONFIG_FILES
13595 CONFIG_HEADERS = $CONFIG_HEADERS
13596 CONFIG_LINKS = $CONFIG_LINKS
13597 CONFIG_COMMANDS = $CONFIG_COMMANDS
13601 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13605 # Files that config.status was made for.
13606 if test -n "$ac_config_files"; then
13607 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13610 if test -n "$ac_config_headers"; then
13611 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13614 if test -n "$ac_config_links"; then
13615 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13618 if test -n "$ac_config_commands"; then
13619 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13622 cat >>$CONFIG_STATUS <<\_ACEOF
13625 \`$as_me' instantiates files from templates according to the
13626 current configuration.
13628 Usage: $0 [OPTIONS] [FILE]...
13630 -h, --help print this help, then exit
13631 -V, --version print version number, then exit
13632 -q, --quiet do not print progress messages
13633 -d, --debug don't remove temporary files
13634 --recheck update $as_me by reconfiguring in the same conditions
13635 --file=FILE[:TEMPLATE]
13636 instantiate the configuration file FILE
13637 --header=FILE[:TEMPLATE]
13638 instantiate the configuration header FILE
13640 Configuration files:
13643 Configuration headers:
13646 Configuration commands:
13649 Report bugs to <bug-autoconf@gnu.org>."
13652 cat >>$CONFIG_STATUS <<_ACEOF
13655 configured by $0, generated by GNU Autoconf 2.59,
13656 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13658 Copyright (C) 2003 Free Software Foundation, Inc.
13659 This config.status script is free software; the Free Software Foundation
13660 gives unlimited permission to copy, distribute and modify it."
13665 cat >>$CONFIG_STATUS <<\_ACEOF
13666 # If no file are specified by the user, then we need to provide default
13667 # value. By we need to know if files were specified by the user.
13673 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13674 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13682 *) # This is not an option, so the user has probably given explicit
13685 ac_need_defaults=false;;
13689 # Handling of the options.
13691 cat >>$CONFIG_STATUS <<\_ACEOF
13692 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13694 --version | --vers* | -V )
13695 echo "$ac_cs_version"; exit 0 ;;
13697 # Conflict between --help and --header
13698 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13699 Try \`$0 --help' for more information." >&5
13700 echo "$as_me: error: ambiguous option: $1
13701 Try \`$0 --help' for more information." >&2;}
13702 { (exit 1); exit 1; }; };;
13703 --help | --hel | -h )
13704 echo "$ac_cs_usage"; exit 0 ;;
13705 --debug | --d* | -d )
13707 --file | --fil | --fi | --f )
13709 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13710 ac_need_defaults=false;;
13711 --header | --heade | --head | --hea )
13713 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13714 ac_need_defaults=false;;
13715 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13716 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13719 # This is an error.
13720 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13721 Try \`$0 --help' for more information." >&5
13722 echo "$as_me: error: unrecognized option: $1
13723 Try \`$0 --help' for more information." >&2;}
13724 { (exit 1); exit 1; }; } ;;
13726 *) ac_config_targets="$ac_config_targets $1" ;;
13732 ac_configure_extra_args=
13734 if $ac_cs_silent; then
13736 ac_configure_extra_args="$ac_configure_extra_args --silent"
13740 cat >>$CONFIG_STATUS <<_ACEOF
13741 if \$ac_cs_recheck; then
13742 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13743 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13748 cat >>$CONFIG_STATUS <<_ACEOF
13750 # INIT-COMMANDS section.
13753 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13756 # The HP-UX ksh and POSIX shell print the target directory to stdout
13757 # if CDPATH is set.
13758 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13760 sed_quote_subst='$sed_quote_subst'
13761 double_quote_subst='$double_quote_subst'
13762 delay_variable_subst='$delay_variable_subst'
13763 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13764 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13765 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13766 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13767 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13768 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13769 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13770 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13771 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13772 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13773 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13774 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13775 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13776 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13777 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13778 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13779 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13780 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13781 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13782 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13783 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13784 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13785 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13786 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13787 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13788 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13789 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13790 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13791 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13792 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13793 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13794 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13795 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13796 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13797 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13798 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13799 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13800 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13801 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13802 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13803 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13804 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13805 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13806 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"`'
13807 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13808 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13809 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13810 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13811 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13812 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13813 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13814 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13815 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13816 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13817 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13818 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13819 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13820 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13821 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13822 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13823 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13824 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13825 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13826 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13827 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13828 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13829 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13830 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13831 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13832 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13833 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13834 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13835 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13836 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13837 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13838 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13839 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13840 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13841 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13842 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13843 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13844 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13845 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13846 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13847 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13848 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13849 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13850 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13851 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13852 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13853 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13854 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13855 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13856 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13857 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13858 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13859 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13860 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13861 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13862 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13863 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13864 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13865 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13866 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13867 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13868 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13869 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13870 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13871 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13872 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13873 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13876 LTCFLAGS='$LTCFLAGS'
13877 compiler='$compiler_DEFAULT'
13879 # Quote evaled strings.
13890 deplibs_check_method \
13899 lt_cv_sys_global_symbol_pipe \
13900 lt_cv_sys_global_symbol_to_cdecl \
13901 lt_cv_sys_global_symbol_to_c_name_address \
13904 lt_prog_compiler_no_builtin_flag \
13905 lt_prog_compiler_wl \
13906 lt_prog_compiler_pic \
13907 lt_prog_compiler_static \
13908 lt_cv_prog_compiler_c_o \
13911 export_dynamic_flag_spec \
13912 whole_archive_flag_spec \
13913 compiler_needs_object \
13915 allow_undefined_flag \
13916 no_undefined_flag \
13917 hardcode_libdir_flag_spec \
13918 hardcode_libdir_flag_spec_ld \
13919 hardcode_libdir_separator \
13924 variables_saved_for_relink \
13926 library_names_spec \
13931 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13932 *[\\\\\\\`\\"\\\$]*)
13933 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13936 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13941 # Double-quote double-evaled strings.
13942 for var in reload_cmds \
13943 old_postinstall_cmds \
13944 old_postuninstall_cmds \
13946 extract_expsyms_cmds \
13947 old_archive_from_new_cmds \
13948 old_archive_from_expsyms_cmds \
13950 archive_expsym_cmds \
13952 module_expsym_cmds \
13953 export_symbols_cmds \
13956 postuninstall_cmds \
13958 sys_lib_search_path_spec \
13959 sys_lib_dlsearch_path_spec; do
13960 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13961 *[\\\\\\\`\\"\\\$]*)
13962 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13965 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13970 # Fix-up fallback echo if it was mangled by the above quoting rules.
13972 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13976 ac_aux_dir='$ac_aux_dir'
13977 xsi_shell='$xsi_shell'
13978 lt_shell_append='$lt_shell_append'
13980 # See if we are running on zsh, and set the options which allow our
13981 # commands through without removal of \ escapes INIT.
13982 if test -n "\${ZSH_VERSION+set}" ; then
13983 setopt NO_GLOB_SUBST
13989 TIMESTAMP='$TIMESTAMP'
13995 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
13996 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
13998 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13999 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14000 LINGUAS="${LINGUAS-%UNSET%}"
14007 cat >>$CONFIG_STATUS <<\_ACEOF
14008 for ac_config_target in $ac_config_targets
14010 case "$ac_config_target" in
14011 # Handling of arguments.
14012 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14013 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14014 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14015 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14016 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14017 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14018 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14019 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14020 { (exit 1); exit 1; }; };;
14024 # If the user did not use the arguments to specify the items to instantiate,
14025 # then the envvar interface is used. Set only those that are not.
14026 # We use the long form for the default assignment because of an extremely
14027 # bizarre bug on SunOS 4.1.3.
14028 if $ac_need_defaults; then
14029 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14030 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14031 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14034 # Have a temporary directory for convenience. Make it in the build tree
14035 # simply because there is no reason to put it here, and in addition,
14036 # creating and moving files from /tmp can sometimes cause problems.
14037 # Create a temporary directory, and hook for its removal unless debugging.
14040 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14041 trap '{ (exit 1); exit 1; }' 1 2 13 15
14044 # Create a (secure) tmp directory for tmp files.
14047 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14048 test -n "$tmp" && test -d "$tmp"
14051 tmp=./confstat$$-$RANDOM
14052 (umask 077 && mkdir $tmp)
14055 echo "$me: cannot create a temporary directory in ." >&2
14056 { (exit 1); exit 1; }
14061 cat >>$CONFIG_STATUS <<_ACEOF
14064 # CONFIG_FILES section.
14067 # No need to generate the scripts if there are no CONFIG_FILES.
14068 # This happens for instance when ./config.status config.h
14069 if test -n "\$CONFIG_FILES"; then
14070 # Protect against being on the right side of a sed subst in config.status.
14071 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14072 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14073 s,@SHELL@,$SHELL,;t t
14074 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14075 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14076 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14077 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14078 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14079 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14080 s,@exec_prefix@,$exec_prefix,;t t
14081 s,@prefix@,$prefix,;t t
14082 s,@program_transform_name@,$program_transform_name,;t t
14083 s,@bindir@,$bindir,;t t
14084 s,@sbindir@,$sbindir,;t t
14085 s,@libexecdir@,$libexecdir,;t t
14086 s,@datadir@,$datadir,;t t
14087 s,@sysconfdir@,$sysconfdir,;t t
14088 s,@sharedstatedir@,$sharedstatedir,;t t
14089 s,@localstatedir@,$localstatedir,;t t
14090 s,@libdir@,$libdir,;t t
14091 s,@includedir@,$includedir,;t t
14092 s,@oldincludedir@,$oldincludedir,;t t
14093 s,@infodir@,$infodir,;t t
14094 s,@mandir@,$mandir,;t t
14095 s,@build_alias@,$build_alias,;t t
14096 s,@host_alias@,$host_alias,;t t
14097 s,@target_alias@,$target_alias,;t t
14098 s,@DEFS@,$DEFS,;t t
14099 s,@ECHO_C@,$ECHO_C,;t t
14100 s,@ECHO_N@,$ECHO_N,;t t
14101 s,@ECHO_T@,$ECHO_T,;t t
14102 s,@LIBS@,$LIBS,;t t
14103 s,@build@,$build,;t t
14104 s,@build_cpu@,$build_cpu,;t t
14105 s,@build_vendor@,$build_vendor,;t t
14106 s,@build_os@,$build_os,;t t
14107 s,@host@,$host,;t t
14108 s,@host_cpu@,$host_cpu,;t t
14109 s,@host_vendor@,$host_vendor,;t t
14110 s,@host_os@,$host_os,;t t
14111 s,@target@,$target,;t t
14112 s,@target_cpu@,$target_cpu,;t t
14113 s,@target_vendor@,$target_vendor,;t t
14114 s,@target_os@,$target_os,;t t
14116 s,@CFLAGS@,$CFLAGS,;t t
14117 s,@LDFLAGS@,$LDFLAGS,;t t
14118 s,@CPPFLAGS@,$CPPFLAGS,;t t
14119 s,@ac_ct_CC@,$ac_ct_CC,;t t
14120 s,@EXEEXT@,$EXEEXT,;t t
14121 s,@OBJEXT@,$OBJEXT,;t t
14122 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14123 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14124 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14125 s,@CYGPATH_W@,$CYGPATH_W,;t t
14126 s,@PACKAGE@,$PACKAGE,;t t
14127 s,@VERSION@,$VERSION,;t t
14128 s,@ACLOCAL@,$ACLOCAL,;t t
14129 s,@AUTOCONF@,$AUTOCONF,;t t
14130 s,@AUTOMAKE@,$AUTOMAKE,;t t
14131 s,@AUTOHEADER@,$AUTOHEADER,;t t
14132 s,@MAKEINFO@,$MAKEINFO,;t t
14133 s,@install_sh@,$install_sh,;t t
14134 s,@STRIP@,$STRIP,;t t
14135 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14136 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
14137 s,@mkdir_p@,$mkdir_p,;t t
14139 s,@SET_MAKE@,$SET_MAKE,;t t
14140 s,@am__leading_dot@,$am__leading_dot,;t t
14141 s,@AMTAR@,$AMTAR,;t t
14142 s,@am__tar@,$am__tar,;t t
14143 s,@am__untar@,$am__untar,;t t
14144 s,@DEPDIR@,$DEPDIR,;t t
14145 s,@am__include@,$am__include,;t t
14146 s,@am__quote@,$am__quote,;t t
14147 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
14148 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
14149 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
14150 s,@CCDEPMODE@,$CCDEPMODE,;t t
14151 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
14152 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
14153 s,@use_sysroot@,$use_sysroot,;t t
14154 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
14155 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
14156 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
14157 s,@NO_WERROR@,$NO_WERROR,;t t
14158 s,@LIBTOOL@,$LIBTOOL,;t t
14160 s,@EGREP@,$EGREP,;t t
14161 s,@FGREP@,$FGREP,;t t
14162 s,@GREP@,$GREP,;t t
14164 s,@DUMPBIN@,$DUMPBIN,;t t
14165 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
14167 s,@LN_S@,$LN_S,;t t
14169 s,@ac_ct_AR@,$ac_ct_AR,;t t
14170 s,@RANLIB@,$RANLIB,;t t
14171 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14172 s,@lt_ECHO@,$lt_ECHO,;t t
14174 s,@USE_NLS@,$USE_NLS,;t t
14175 s,@LIBINTL@,$LIBINTL,;t t
14176 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
14177 s,@INCINTL@,$INCINTL,;t t
14178 s,@XGETTEXT@,$XGETTEXT,;t t
14179 s,@GMSGFMT@,$GMSGFMT,;t t
14180 s,@POSUB@,$POSUB,;t t
14181 s,@CATALOGS@,$CATALOGS,;t t
14182 s,@DATADIRNAME@,$DATADIRNAME,;t t
14183 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
14184 s,@GENCAT@,$GENCAT,;t t
14185 s,@CATOBJEXT@,$CATOBJEXT,;t t
14186 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
14187 s,@MSGFMT@,$MSGFMT,;t t
14188 s,@MSGMERGE@,$MSGMERGE,;t t
14189 s,@YACC@,$YACC,;t t
14191 s,@LEXLIB@,$LEXLIB,;t t
14192 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
14193 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
14194 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
14195 s,@MAINT@,$MAINT,;t t
14196 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
14197 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
14198 s,@HDEFINES@,$HDEFINES,;t t
14199 s,@HOSTING_CRT0@,$HOSTING_CRT0,;t t
14200 s,@HOSTING_LIBS@,$HOSTING_LIBS,;t t
14201 s,@NATIVE_LIB_DIRS@,$NATIVE_LIB_DIRS,;t t
14202 s,@STRINGIFY@,$STRINGIFY,;t t
14203 s,@EMUL@,$EMUL,;t t
14204 s,@EMULATION_OFILES@,$EMULATION_OFILES,;t t
14205 s,@EMUL_EXTRA_OFILES@,$EMUL_EXTRA_OFILES,;t t
14206 s,@LIB_PATH@,$LIB_PATH,;t t
14207 s,@EMULATION_LIBPATH@,$EMULATION_LIBPATH,;t t
14208 s,@TESTBFDLIB@,$TESTBFDLIB,;t t
14209 s,@datarootdir@,$datarootdir,;t t
14210 s,@docdir@,$docdir,;t t
14211 s,@htmldir@,$htmldir,;t t
14212 s,@LIBOBJS@,$LIBOBJS,;t t
14213 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
14220 cat >>$CONFIG_STATUS <<\_ACEOF
14221 # Split the substitutions into bite-sized pieces for seds with
14222 # small command number limits, like on Digital OSF/1 and HP-UX.
14223 ac_max_sed_lines=48
14224 ac_sed_frag=1 # Number of current file.
14225 ac_beg=1 # First line for current file.
14226 ac_end=$ac_max_sed_lines # Line after last line for current file.
14229 while $ac_more_lines; do
14230 if test $ac_beg -gt 1; then
14231 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14233 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14235 if test ! -s $tmp/subs.frag; then
14236 ac_more_lines=false
14238 # The purpose of the label and of the branching condition is to
14239 # speed up the sed processing (if there are no `@' at all, there
14240 # is no need to browse any of the substitutions).
14241 # These are the two extra sed commands mentioned above.
14243 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14244 if test -z "$ac_sed_cmds"; then
14245 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14247 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14249 ac_sed_frag=`expr $ac_sed_frag + 1`
14251 ac_end=`expr $ac_end + $ac_max_sed_lines`
14254 if test -z "$ac_sed_cmds"; then
14257 fi # test -n "$CONFIG_FILES"
14260 cat >>$CONFIG_STATUS <<\_ACEOF
14261 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14262 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14264 - | *:- | *:-:* ) # input from stdin
14266 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14267 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14268 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14269 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14270 * ) ac_file_in=$ac_file.in ;;
14273 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14274 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14275 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14276 X"$ac_file" : 'X\(//\)[^/]' \| \
14277 X"$ac_file" : 'X\(//\)$' \| \
14278 X"$ac_file" : 'X\(/\)' \| \
14279 . : '\(.\)' 2>/dev/null ||
14281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14282 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14283 /^X\(\/\/\)$/{ s//\1/; q; }
14284 /^X\(\/\).*/{ s//\1/; q; }
14286 { if $as_mkdir_p; then
14291 while test ! -d "$as_dir"; do
14292 as_dirs="$as_dir $as_dirs"
14293 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14295 X"$as_dir" : 'X\(//\)[^/]' \| \
14296 X"$as_dir" : 'X\(//\)$' \| \
14297 X"$as_dir" : 'X\(/\)' \| \
14298 . : '\(.\)' 2>/dev/null ||
14300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14301 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14302 /^X\(\/\/\)$/{ s//\1/; q; }
14303 /^X\(\/\).*/{ s//\1/; q; }
14306 test ! -n "$as_dirs" || mkdir $as_dirs
14307 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14308 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14309 { (exit 1); exit 1; }; }; }
14313 if test "$ac_dir" != .; then
14314 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14315 # A "../" for each directory in $ac_dir_suffix.
14316 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14318 ac_dir_suffix= ac_top_builddir=
14322 .) # No --srcdir option. We are building in place.
14324 if test -z "$ac_top_builddir"; then
14327 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14329 [\\/]* | ?:[\\/]* ) # Absolute path.
14330 ac_srcdir=$srcdir$ac_dir_suffix;
14331 ac_top_srcdir=$srcdir ;;
14332 *) # Relative path.
14333 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14334 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14337 # Do not use `cd foo && pwd` to compute absolute paths, because
14338 # the directories may not exist.
14340 .) ac_abs_builddir="$ac_dir";;
14343 .) ac_abs_builddir=`pwd`;;
14344 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14345 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14348 case $ac_abs_builddir in
14349 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14351 case ${ac_top_builddir}. in
14352 .) ac_abs_top_builddir=$ac_abs_builddir;;
14353 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14354 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14357 case $ac_abs_builddir in
14358 .) ac_abs_srcdir=$ac_srcdir;;
14361 .) ac_abs_srcdir=$ac_abs_builddir;;
14362 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14363 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14366 case $ac_abs_builddir in
14367 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14369 case $ac_top_srcdir in
14370 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14371 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14372 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14378 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14379 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14382 # Let's still pretend it is `configure' which instantiates (i.e., don't
14383 # use $as_me), people would be surprised to read:
14384 # /* config.h. Generated by config.status. */
14385 if test x"$ac_file" = x-; then
14388 configure_input="$ac_file. "
14390 configure_input=$configure_input"Generated from `echo $ac_file_in |
14391 sed 's,.*/,,'` by configure."
14393 # First look for the input files in the build tree, otherwise in the
14395 ac_file_inputs=`IFS=:
14396 for f in $ac_file_in; do
14398 -) echo $tmp/stdin ;;
14400 # Absolute (can't be DOS-style, as IFS=:)
14401 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14402 echo "$as_me: error: cannot find input file: $f" >&2;}
14403 { (exit 1); exit 1; }; }
14406 if test -f "$f"; then
14409 elif test -f "$srcdir/$f"; then
14414 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14415 echo "$as_me: error: cannot find input file: $f" >&2;}
14416 { (exit 1); exit 1; }; }
14419 done` || { (exit 1); exit 1; }
14421 if test x"$ac_file" != x-; then
14422 { echo "$as_me:$LINENO: creating $ac_file" >&5
14423 echo "$as_me: creating $ac_file" >&6;}
14427 cat >>$CONFIG_STATUS <<_ACEOF
14431 cat >>$CONFIG_STATUS <<\_ACEOF
14433 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14434 s,@configure_input@,$configure_input,;t t
14435 s,@srcdir@,$ac_srcdir,;t t
14436 s,@abs_srcdir@,$ac_abs_srcdir,;t t
14437 s,@top_srcdir@,$ac_top_srcdir,;t t
14438 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14439 s,@builddir@,$ac_builddir,;t t
14440 s,@abs_builddir@,$ac_abs_builddir,;t t
14441 s,@top_builddir@,$ac_top_builddir,;t t
14442 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14443 s,@INSTALL@,$ac_INSTALL,;t t
14444 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14446 if test x"$ac_file" != x-; then
14447 mv $tmp/out $ac_file
14455 cat >>$CONFIG_STATUS <<\_ACEOF
14458 # CONFIG_HEADER section.
14461 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14462 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14464 # ac_d sets the value in "#define NAME VALUE" lines.
14465 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14466 ac_dB='[ ].*$,\1#\2'
14469 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14470 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14471 ac_uB='$,\1#\2define\3'
14475 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14476 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14478 - | *:- | *:-:* ) # input from stdin
14480 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14481 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14482 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14483 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14484 * ) ac_file_in=$ac_file.in ;;
14487 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14488 echo "$as_me: creating $ac_file" >&6;}
14490 # First look for the input files in the build tree, otherwise in the
14492 ac_file_inputs=`IFS=:
14493 for f in $ac_file_in; do
14495 -) echo $tmp/stdin ;;
14497 # Absolute (can't be DOS-style, as IFS=:)
14498 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14499 echo "$as_me: error: cannot find input file: $f" >&2;}
14500 { (exit 1); exit 1; }; }
14501 # Do quote $f, to prevent DOS paths from being IFS'd.
14504 if test -f "$f"; then
14507 elif test -f "$srcdir/$f"; then
14512 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14513 echo "$as_me: error: cannot find input file: $f" >&2;}
14514 { (exit 1); exit 1; }; }
14517 done` || { (exit 1); exit 1; }
14518 # Remove the trailing spaces.
14519 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14523 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14524 # `conftest.undefs', that substitutes the proper values into
14525 # config.h.in to produce config.h. The first handles `#define'
14526 # templates, and the second `#undef' templates.
14527 # And first: Protect against being on the right side of a sed subst in
14528 # config.status. Protect against being in an unquoted here document
14529 # in config.status.
14530 rm -f conftest.defines conftest.undefs
14531 # Using a here document instead of a string reduces the quoting nightmare.
14532 # Putting comments in sed scripts is not portable.
14534 # `end' is used to avoid that the second main sed command (meant for
14535 # 0-ary CPP macros) applies to n-ary macro definitions.
14536 # See the Autoconf documentation for `clear'.
14537 cat >confdef2sed.sed <<\_ACEOF
14542 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14544 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14547 # If some macros were called several times there might be several times
14548 # the same #defines, which is useless. Nevertheless, we may not want to
14549 # sort them, since we want the *last* AC-DEFINE to be honored.
14550 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14551 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14552 rm -f confdef2sed.sed
14554 # This sed command replaces #undef with comments. This is necessary, for
14555 # example, in the case of _POSIX_SOURCE, which is predefined and required
14556 # on some systems where configure will not decide to define it.
14557 cat >>conftest.undefs <<\_ACEOF
14558 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14561 # Break up conftest.defines because some shells have a limit on the size
14562 # of here documents, and old seds have small limits too (100 cmds).
14563 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14564 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14565 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14566 echo ' :' >>$CONFIG_STATUS
14567 rm -f conftest.tail
14568 while grep . conftest.defines >/dev/null
14570 # Write a limited-size here document to $tmp/defines.sed.
14571 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14572 # Speed up: don't consider the non `#define' lines.
14573 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14574 # Work around the forget-to-reset-the-flag bug.
14575 echo 't clr' >>$CONFIG_STATUS
14576 echo ': clr' >>$CONFIG_STATUS
14577 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14579 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14581 mv $tmp/out $tmp/in
14583 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14584 rm -f conftest.defines
14585 mv conftest.tail conftest.defines
14587 rm -f conftest.defines
14588 echo ' fi # grep' >>$CONFIG_STATUS
14589 echo >>$CONFIG_STATUS
14591 # Break up conftest.undefs because some shells have a limit on the size
14592 # of here documents, and old seds have small limits too (100 cmds).
14593 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14594 rm -f conftest.tail
14595 while grep . conftest.undefs >/dev/null
14597 # Write a limited-size here document to $tmp/undefs.sed.
14598 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14599 # Speed up: don't consider the non `#undef'
14600 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14601 # Work around the forget-to-reset-the-flag bug.
14602 echo 't clr' >>$CONFIG_STATUS
14603 echo ': clr' >>$CONFIG_STATUS
14604 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14606 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14608 mv $tmp/out $tmp/in
14610 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14611 rm -f conftest.undefs
14612 mv conftest.tail conftest.undefs
14614 rm -f conftest.undefs
14616 cat >>$CONFIG_STATUS <<\_ACEOF
14617 # Let's still pretend it is `configure' which instantiates (i.e., don't
14618 # use $as_me), people would be surprised to read:
14619 # /* config.h. Generated by config.status. */
14620 if test x"$ac_file" = x-; then
14621 echo "/* Generated by configure. */" >$tmp/config.h
14623 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14625 cat $tmp/in >>$tmp/config.h
14627 if test x"$ac_file" != x-; then
14628 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14629 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14630 echo "$as_me: $ac_file is unchanged" >&6;}
14632 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14633 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14634 X"$ac_file" : 'X\(//\)[^/]' \| \
14635 X"$ac_file" : 'X\(//\)$' \| \
14636 X"$ac_file" : 'X\(/\)' \| \
14637 . : '\(.\)' 2>/dev/null ||
14639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14640 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14641 /^X\(\/\/\)$/{ s//\1/; q; }
14642 /^X\(\/\).*/{ s//\1/; q; }
14644 { if $as_mkdir_p; then
14649 while test ! -d "$as_dir"; do
14650 as_dirs="$as_dir $as_dirs"
14651 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14652 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14653 X"$as_dir" : 'X\(//\)[^/]' \| \
14654 X"$as_dir" : 'X\(//\)$' \| \
14655 X"$as_dir" : 'X\(/\)' \| \
14656 . : '\(.\)' 2>/dev/null ||
14658 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14659 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14660 /^X\(\/\/\)$/{ s//\1/; q; }
14661 /^X\(\/\).*/{ s//\1/; q; }
14664 test ! -n "$as_dirs" || mkdir $as_dirs
14665 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14666 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14667 { (exit 1); exit 1; }; }; }
14670 mv $tmp/config.h $ac_file
14674 rm -f $tmp/config.h
14676 # Compute $ac_file's index in $config_headers.
14678 for _am_header in $config_headers :; do
14679 case $_am_header in
14680 $ac_file | $ac_file:* )
14683 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14686 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
14687 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14688 X$ac_file : 'X\(//\)[^/]' \| \
14689 X$ac_file : 'X\(//\)$' \| \
14690 X$ac_file : 'X\(/\)' \| \
14691 . : '\(.\)' 2>/dev/null ||
14693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14694 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14695 /^X\(\/\/\)$/{ s//\1/; q; }
14696 /^X\(\/\).*/{ s//\1/; q; }
14697 s/.*/./; q'`/stamp-h$_am_stamp_count
14700 cat >>$CONFIG_STATUS <<\_ACEOF
14703 # CONFIG_COMMANDS section.
14705 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14706 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14707 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14708 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14709 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14710 X"$ac_dest" : 'X\(//\)[^/]' \| \
14711 X"$ac_dest" : 'X\(//\)$' \| \
14712 X"$ac_dest" : 'X\(/\)' \| \
14713 . : '\(.\)' 2>/dev/null ||
14715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14717 /^X\(\/\/\)$/{ s//\1/; q; }
14718 /^X\(\/\).*/{ s//\1/; q; }
14720 { if $as_mkdir_p; then
14725 while test ! -d "$as_dir"; do
14726 as_dirs="$as_dir $as_dirs"
14727 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14728 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14729 X"$as_dir" : 'X\(//\)[^/]' \| \
14730 X"$as_dir" : 'X\(//\)$' \| \
14731 X"$as_dir" : 'X\(/\)' \| \
14732 . : '\(.\)' 2>/dev/null ||
14734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14735 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14736 /^X\(\/\/\)$/{ s//\1/; q; }
14737 /^X\(\/\).*/{ s//\1/; q; }
14740 test ! -n "$as_dirs" || mkdir $as_dirs
14741 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14742 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14743 { (exit 1); exit 1; }; }; }
14747 if test "$ac_dir" != .; then
14748 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14749 # A "../" for each directory in $ac_dir_suffix.
14750 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14752 ac_dir_suffix= ac_top_builddir=
14756 .) # No --srcdir option. We are building in place.
14758 if test -z "$ac_top_builddir"; then
14761 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14763 [\\/]* | ?:[\\/]* ) # Absolute path.
14764 ac_srcdir=$srcdir$ac_dir_suffix;
14765 ac_top_srcdir=$srcdir ;;
14766 *) # Relative path.
14767 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14768 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14771 # Do not use `cd foo && pwd` to compute absolute paths, because
14772 # the directories may not exist.
14774 .) ac_abs_builddir="$ac_dir";;
14777 .) ac_abs_builddir=`pwd`;;
14778 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14779 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14782 case $ac_abs_builddir in
14783 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14785 case ${ac_top_builddir}. in
14786 .) ac_abs_top_builddir=$ac_abs_builddir;;
14787 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14788 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14791 case $ac_abs_builddir in
14792 .) ac_abs_srcdir=$ac_srcdir;;
14795 .) ac_abs_srcdir=$ac_abs_builddir;;
14796 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14797 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14800 case $ac_abs_builddir in
14801 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14803 case $ac_top_srcdir in
14804 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14805 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14806 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14811 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14812 echo "$as_me: executing $ac_dest commands" >&6;}
14814 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14815 # Strip MF so we end up with the name of the file.
14816 mf=`echo "$mf" | sed -e 's/:.*$//'`
14817 # Check whether this is an Automake generated Makefile or not.
14818 # We used to match only the files named `Makefile.in', but
14819 # some people rename them; so instead we look at the file content.
14820 # Grep'ing the first line is not enough: some people post-process
14821 # each Makefile.in and add a new line on top of each file to say so.
14822 # So let's grep whole file.
14823 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14824 dirpart=`(dirname "$mf") 2>/dev/null ||
14825 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14826 X"$mf" : 'X\(//\)[^/]' \| \
14827 X"$mf" : 'X\(//\)$' \| \
14828 X"$mf" : 'X\(/\)' \| \
14829 . : '\(.\)' 2>/dev/null ||
14831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14832 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14833 /^X\(\/\/\)$/{ s//\1/; q; }
14834 /^X\(\/\).*/{ s//\1/; q; }
14839 # Extract the definition of DEPDIR, am__include, and am__quote
14840 # from the Makefile without running `make'.
14841 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14842 test -z "$DEPDIR" && continue
14843 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14844 test -z "am__include" && continue
14845 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14846 # When using ansi2knr, U may be empty or an underscore; expand it
14847 U=`sed -n 's/^U = //p' < "$mf"`
14848 # Find all dependency output files, they are included files with
14849 # $(DEPDIR) in their names. We invoke sed twice because it is the
14850 # simplest approach to changing $(DEPDIR) to its actual value in the
14852 for file in `sed -n "
14853 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14854 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14855 # Make sure the directory exists.
14856 test -f "$dirpart/$file" && continue
14857 fdir=`(dirname "$file") 2>/dev/null ||
14858 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14859 X"$file" : 'X\(//\)[^/]' \| \
14860 X"$file" : 'X\(//\)$' \| \
14861 X"$file" : 'X\(/\)' \| \
14862 . : '\(.\)' 2>/dev/null ||
14864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14865 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14866 /^X\(\/\/\)$/{ s//\1/; q; }
14867 /^X\(\/\).*/{ s//\1/; q; }
14869 { if $as_mkdir_p; then
14870 mkdir -p $dirpart/$fdir
14872 as_dir=$dirpart/$fdir
14874 while test ! -d "$as_dir"; do
14875 as_dirs="$as_dir $as_dirs"
14876 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14877 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14878 X"$as_dir" : 'X\(//\)[^/]' \| \
14879 X"$as_dir" : 'X\(//\)$' \| \
14880 X"$as_dir" : 'X\(/\)' \| \
14881 . : '\(.\)' 2>/dev/null ||
14883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14885 /^X\(\/\/\)$/{ s//\1/; q; }
14886 /^X\(\/\).*/{ s//\1/; q; }
14889 test ! -n "$as_dirs" || mkdir $as_dirs
14890 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14891 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14892 { (exit 1); exit 1; }; }; }
14894 # echo "creating $dirpart/$file"
14895 echo '# dummy' > "$dirpart/$file"
14901 # See if we are running on zsh, and set the options which allow our
14902 # commands through without removal of \ escapes.
14903 if test -n "${ZSH_VERSION+set}" ; then
14904 setopt NO_GLOB_SUBST
14907 cfgfile="${ofile}T"
14908 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14911 cat <<_LT_EOF >> "$cfgfile"
14914 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14915 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
14916 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14917 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14919 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14920 # 2006, 2007 Free Software Foundation, Inc.
14922 # This file is part of GNU Libtool:
14923 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14925 # This program is free software; you can redistribute it and/or modify
14926 # it under the terms of the GNU General Public License as published by
14927 # the Free Software Foundation; either version 2 of the License, or
14928 # (at your option) any later version.
14930 # This program is distributed in the hope that it will be useful, but
14931 # WITHOUT ANY WARRANTY; without even the implied warranty of
14932 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14933 # General Public License for more details.
14935 # You should have received a copy of the GNU General Public License
14936 # along with this program; if not, a copy can be downloaded from
14937 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
14938 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
14939 # MA 02110-1301, USA.
14941 # As a special exception to the GNU General Public License, if you
14942 # distribute this file as part of a program that contains a
14943 # configuration script generated by Autoconf, you may include it under
14944 # the same distribution terms that you use for the rest of that program.
14947 # The names of the tagged configurations supported by this script.
14950 # ### BEGIN LIBTOOL CONFIG
14952 # Which release of libtool.m4 was used?
14953 macro_version=$macro_version
14954 macro_revision=$macro_revision
14956 # Whether or not to build shared libraries.
14957 build_libtool_libs=$enable_shared
14959 # Whether or not to build static libraries.
14960 build_old_libs=$enable_static
14962 # What type of objects to build.
14965 # Whether or not to optimize for fast installation.
14966 fast_install=$enable_fast_install
14969 host_alias=$host_alias
14973 # The build system.
14974 build_alias=$build_alias
14978 # A sed program that does not truncate output.
14981 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14982 Xsed="\$SED -e 1s/^X//"
14984 # A grep program that handles long lines.
14990 # A literal string matcher.
14993 # A BSD- or MS-compatible name lister.
14996 # Whether we need soft or hard links.
14999 # What is the maximum length of a command?
15000 max_cmd_len=$max_cmd_len
15002 # Object file suffix (normally "o").
15005 # Executable file suffix (normally "").
15008 # whether the shell understands "unset".
15011 # turn spaces into newlines.
15014 # turn newlines into spaces.
15017 # How to create reloadable object files.
15018 reload_flag=$lt_reload_flag
15019 reload_cmds=$lt_reload_cmds
15021 # Method to check whether dependent libraries are shared objects.
15022 deplibs_check_method=$lt_deplibs_check_method
15024 # Command to use when deplibs_check_method == "file_magic".
15025 file_magic_cmd=$lt_file_magic_cmd
15029 AR_FLAGS=$lt_AR_FLAGS
15031 # A symbol stripping program.
15034 # Commands used to install an old-style archive.
15036 old_postinstall_cmds=$lt_old_postinstall_cmds
15037 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15042 # LTCC compiler flags.
15043 LTCFLAGS=$lt_CFLAGS
15045 # Take the output of nm and produce a listing of raw symbols and C names.
15046 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15048 # Transform the output of nm in a proper C declaration.
15049 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15051 # Transform the output of nm in a C name address pair.
15052 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15054 # The name of the directory that contains temporary libtool files.
15057 # Shell to use when invoking shell scripts.
15060 # An echo program that does not interpret backslashes.
15063 # Used to examine libraries when file_magic_cmd begins with "file".
15064 MAGIC_CMD=$MAGIC_CMD
15066 # Must we lock files when doing compilation?
15067 need_locks=$lt_need_locks
15069 # Old archive suffix (normally "a").
15072 # Shared library suffix (normally ".so").
15073 shrext_cmds=$lt_shrext_cmds
15075 # The commands to extract the exported symbol list from a shared archive.
15076 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15078 # Variables whose values should be saved in libtool wrapper scripts and
15079 # restored at link time.
15080 variables_saved_for_relink=$lt_variables_saved_for_relink
15082 # Do we need the "lib" prefix for modules?
15083 need_lib_prefix=$need_lib_prefix
15085 # Do we need a version for libraries?
15086 need_version=$need_version
15088 # Library versioning type.
15089 version_type=$version_type
15091 # Shared library runtime path variable.
15092 runpath_var=$runpath_var
15094 # Shared library path variable.
15095 shlibpath_var=$shlibpath_var
15097 # Is shlibpath searched before the hard-coded library search path?
15098 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15100 # Format of library name prefix.
15101 libname_spec=$lt_libname_spec
15103 # List of archive names. First name is the real one, the rest are links.
15104 # The last name is the one that the linker finds with -lNAME
15105 library_names_spec=$lt_library_names_spec
15107 # The coded name of the library, if different from the real name.
15108 soname_spec=$lt_soname_spec
15110 # Command to use after installation of a shared archive.
15111 postinstall_cmds=$lt_postinstall_cmds
15113 # Command to use after uninstallation of a shared archive.
15114 postuninstall_cmds=$lt_postuninstall_cmds
15116 # Commands used to finish a libtool library installation in a directory.
15117 finish_cmds=$lt_finish_cmds
15119 # As "finish_cmds", except a single script fragment to be evaled but
15121 finish_eval=$lt_finish_eval
15123 # Whether we should hardcode library paths into libraries.
15124 hardcode_into_libs=$hardcode_into_libs
15126 # Compile-time system search path for libraries.
15127 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15129 # Run-time system search path for libraries.
15130 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15132 # Whether dlopen is supported.
15133 dlopen_support=$enable_dlopen
15135 # Whether dlopen of programs is supported.
15136 dlopen_self=$enable_dlopen_self
15138 # Whether dlopen of statically linked programs is supported.
15139 dlopen_self_static=$enable_dlopen_self_static
15141 # Commands to strip libraries.
15142 old_striplib=$lt_old_striplib
15143 striplib=$lt_striplib
15146 # The linker used to build libraries.
15149 # Commands used to build an old-style archive.
15150 old_archive_cmds=$lt_old_archive_cmds
15152 # A language specific compiler.
15155 # Is the compiler the GNU compiler?
15158 # Compiler flag to turn off builtin functions.
15159 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15161 # How to pass a linker flag through the compiler.
15162 wl=$lt_lt_prog_compiler_wl
15164 # Additional compiler flags for building library objects.
15165 pic_flag=$lt_lt_prog_compiler_pic
15167 # Compiler flag to prevent dynamic linking.
15168 link_static_flag=$lt_lt_prog_compiler_static
15170 # Does compiler simultaneously support -c and -o options?
15171 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15173 # Whether or not to add -lc for building shared libraries.
15174 build_libtool_need_lc=$archive_cmds_need_lc
15176 # Whether or not to disallow shared libs when runtime libs are static.
15177 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15179 # Compiler flag to allow reflexive dlopens.
15180 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15182 # Compiler flag to generate shared objects directly from archives.
15183 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15185 # Whether the compiler copes with passing no objects directly.
15186 compiler_needs_object=$lt_compiler_needs_object
15188 # Create an old-style archive from a shared archive.
15189 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15191 # Create a temporary old-style archive to link instead of a shared archive.
15192 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15194 # Commands used to build a shared archive.
15195 archive_cmds=$lt_archive_cmds
15196 archive_expsym_cmds=$lt_archive_expsym_cmds
15198 # Commands used to build a loadable module if different from building
15199 # a shared archive.
15200 module_cmds=$lt_module_cmds
15201 module_expsym_cmds=$lt_module_expsym_cmds
15203 # Whether we are building with GNU ld or not.
15204 with_gnu_ld=$lt_with_gnu_ld
15206 # Flag that allows shared libraries with undefined symbols to be built.
15207 allow_undefined_flag=$lt_allow_undefined_flag
15209 # Flag that enforces no undefined symbols.
15210 no_undefined_flag=$lt_no_undefined_flag
15212 # Flag to hardcode \$libdir into a binary during linking.
15213 # This must work even if \$libdir does not exist
15214 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15216 # If ld is used when linking, flag to hardcode \$libdir into a binary
15217 # during linking. This must work even if \$libdir does not exist.
15218 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15220 # Whether we need a single "-rpath" flag with a separated argument.
15221 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15223 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15224 # DIR into the resulting binary.
15225 hardcode_direct=$hardcode_direct
15227 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15228 # DIR into the resulting binary and the resulting library dependency is
15229 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15230 # library is relocated.
15231 hardcode_direct_absolute=$hardcode_direct_absolute
15233 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15234 # into the resulting binary.
15235 hardcode_minus_L=$hardcode_minus_L
15237 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15238 # into the resulting binary.
15239 hardcode_shlibpath_var=$hardcode_shlibpath_var
15241 # Set to "yes" if building a shared library automatically hardcodes DIR
15242 # into the library and all subsequent libraries and executables linked
15244 hardcode_automatic=$hardcode_automatic
15246 # Set to yes if linker adds runtime paths of dependent libraries
15247 # to runtime path list.
15248 inherit_rpath=$inherit_rpath
15250 # Whether libtool must link a program against all its dependency libraries.
15251 link_all_deplibs=$link_all_deplibs
15253 # Fix the shell variable \$srcfile for the compiler.
15254 fix_srcfile_path=$lt_fix_srcfile_path
15256 # Set to "yes" if exported symbols are required.
15257 always_export_symbols=$always_export_symbols
15259 # The commands to list exported symbols.
15260 export_symbols_cmds=$lt_export_symbols_cmds
15262 # Symbols that should not be listed in the preloaded symbols.
15263 exclude_expsyms=$lt_exclude_expsyms
15265 # Symbols that must always be exported.
15266 include_expsyms=$lt_include_expsyms
15268 # Commands necessary for linking programs (against libraries) with templates.
15269 prelink_cmds=$lt_prelink_cmds
15271 # Specify filename containing input files.
15272 file_list_spec=$lt_file_list_spec
15274 # How to hardcode a shared library path into an executable.
15275 hardcode_action=$hardcode_action
15277 # ### END LIBTOOL CONFIG
15283 cat <<\_LT_EOF >> "$cfgfile"
15284 # AIX sometimes has problems with the GCC collect2 program. For some
15285 # reason, if we set the COLLECT_NAMES environment variable, the problems
15286 # vanish in a puff of smoke.
15287 if test "X${COLLECT_NAMES+set}" != Xset; then
15289 export COLLECT_NAMES
15296 ltmain="$ac_aux_dir/ltmain.sh"
15299 # We use sed instead of cat because bash on DJGPP gets confused if
15300 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15301 # text mode, it properly converts lines to CR/LF. This bash problem
15302 # is reportedly fixed, but why not run on old versions too?
15303 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15304 || (rm -f "$cfgfile"; exit 1)
15308 cat << \_LT_EOF >> "$cfgfile"
15309 # func_dirname file append nondir_replacement
15310 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15311 # otherwise set result to NONDIR_REPLACEMENT.
15315 */*) func_dirname_result="${1%/*}${2}" ;;
15316 * ) func_dirname_result="${3}" ;;
15320 # func_basename file
15323 func_basename_result="${1##*/}"
15326 # func_stripname prefix suffix name
15327 # strip PREFIX and SUFFIX off of NAME.
15328 # PREFIX and SUFFIX must not contain globbing or regex special
15329 # characters, hashes, percent signs, but SUFFIX may contain a leading
15330 # dot (in which case that matches only a dot).
15333 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15334 # positional parameters, so assign one to ordinary parameter first.
15335 func_stripname_result=${3}
15336 func_stripname_result=${func_stripname_result#"${1}"}
15337 func_stripname_result=${func_stripname_result%"${2}"}
15343 func_opt_split_opt=${1%%=*}
15344 func_opt_split_arg=${1#*=}
15351 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15352 *) func_lo2o_result=${1} ;;
15357 *) # Bourne compatible functions.
15358 cat << \_LT_EOF >> "$cfgfile"
15359 # func_dirname file append nondir_replacement
15360 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15361 # otherwise set result to NONDIR_REPLACEMENT.
15364 # Extract subdirectory from the argument.
15365 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15366 if test "X$func_dirname_result" = "X${1}"; then
15367 func_dirname_result="${3}"
15369 func_dirname_result="$func_dirname_result${2}"
15373 # func_basename file
15376 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15379 # func_stripname prefix suffix name
15380 # strip PREFIX and SUFFIX off of NAME.
15381 # PREFIX and SUFFIX must not contain globbing or regex special
15382 # characters, hashes, percent signs, but SUFFIX may contain a leading
15383 # dot (in which case that matches only a dot).
15384 # func_strip_suffix prefix name
15388 .*) func_stripname_result=`$ECHO "X${3}" \
15389 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15390 *) func_stripname_result=`$ECHO "X${3}" \
15391 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15396 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15397 my_sed_long_arg='1s/^-[^=]*=//'
15402 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15403 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15409 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15414 case $lt_shell_append in
15416 cat << \_LT_EOF >> "$cfgfile"
15418 # func_append var value
15419 # Append VALUE to the end of shell variable VAR.
15427 cat << \_LT_EOF >> "$cfgfile"
15429 # func_append var value
15430 # Append VALUE to the end of shell variable VAR.
15440 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15441 || (rm -f "$cfgfile"; exit 1)
15443 mv -f "$cfgfile" "$ofile" ||
15444 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15449 for ac_file in $CONFIG_FILES; do
15450 # Support "outfile[:infile[:infile...]]"
15452 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15454 # PO directories have a Makefile.in generated from Makefile.in.in.
15455 case "$ac_file" in */Makefile.in)
15456 # Adjust a relative srcdir.
15457 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15458 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15459 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15460 # In autoconf-2.13 it is called $ac_given_srcdir.
15461 # In autoconf-2.50 it is called $srcdir.
15462 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15463 case "$ac_given_srcdir" in
15464 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15465 /*) top_srcdir="$ac_given_srcdir" ;;
15466 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15468 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15469 rm -f "$ac_dir/POTFILES"
15470 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15471 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15472 POMAKEFILEDEPS="POTFILES.in"
15473 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15474 # on $ac_dir but don't depend on user-specified configuration
15476 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15477 # The LINGUAS file contains the set of available languages.
15478 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15479 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15481 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15482 # Hide the ALL_LINGUAS assigment from automake.
15483 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15484 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15486 # The set of available languages was given in configure.in.
15487 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15489 case "$ac_given_srcdir" in
15491 *) srcdirpre='$(srcdir)/' ;;
15497 for lang in $ALL_LINGUAS; do
15498 POFILES="$POFILES $srcdirpre$lang.po"
15499 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15500 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15501 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15503 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15504 # environment variable.
15506 if test -n "$ALL_LINGUAS"; then
15507 for presentlang in $ALL_LINGUAS; do
15509 if test "%UNSET%" != "$LINGUAS"; then
15510 desiredlanguages="$LINGUAS"
15512 desiredlanguages="$ALL_LINGUAS"
15514 for desiredlang in $desiredlanguages; do
15515 # Use the presentlang catalog if desiredlang is
15516 # a. equal to presentlang, or
15517 # b. a variant of presentlang (because in this case,
15518 # presentlang can be used as a fallback for messages
15519 # which are not translated in the desiredlang catalog).
15520 case "$desiredlang" in
15521 "$presentlang"*) useit=yes;;
15524 if test $useit = yes; then
15525 INST_LINGUAS="$INST_LINGUAS $presentlang"
15530 if test -n "$INST_LINGUAS"; then
15531 for lang in $INST_LINGUAS; do
15532 CATALOGS="$CATALOGS $lang.gmo"
15535 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15536 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"
15537 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15538 if test -f "$f"; then
15540 *.orig | *.bak | *~) ;;
15541 *) cat "$f" >> "$ac_dir/Makefile" ;;
15553 cat >>$CONFIG_STATUS <<\_ACEOF
15555 { (exit 0); exit 0; }
15557 chmod +x $CONFIG_STATUS
15558 ac_clean_files=$ac_clean_files_save
15561 # configure is writing to config.log, and then calls config.status.
15562 # config.status does its own redirection, appending to config.log.
15563 # Unfortunately, on DOS this fails, as config.log is still kept open
15564 # by configure, so config.status won't be able to write to it; its
15565 # output is simply discarded. So we exec the FD to /dev/null,
15566 # effectively closing config.log, so it can be properly (re)opened and
15567 # appended to by config.status. When coming back to configure, we
15568 # need to make the FD available again.
15569 if test "$no_create" != yes; then
15571 ac_config_status_args=
15572 test "$silent" = yes &&
15573 ac_config_status_args="$ac_config_status_args --quiet"
15575 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15577 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15578 # would make configure fail if this is the last instruction.
15579 $ac_cs_success || { (exit 1); exit 1; }