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="libbfd.c"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
428 # include <sys/types.h>
431 # include <sys/stat.h>
442 # if !STDC_HEADERS && HAVE_MEMORY_H
448 # include <strings.h>
451 # include <inttypes.h>
461 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO DEBUGDIR PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_64BIT_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT BFD_HOSTPTR_T CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG WIN32LDFLAGS WIN32LIBADD TDEFINES wordsize bfd64_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
465 # Initialize some variables set by options.
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
477 program_transform_name=s,x,x,
485 # Installation directory options.
486 # These are left unexpanded so users can "make install exec_prefix=/foo"
487 # and all the variables that are supposed to be based on exec_prefix
488 # by default will actually change.
489 # Use braces instead of parens because sh, perl, etc. also accept them.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
515 # Accept the important Cygnus configure options, so we can diagnose typos.
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
524 -build | --build | --buil | --bui | --bu)
525 ac_prev=build_alias ;;
526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527 build_alias=$ac_optarg ;;
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534 cache_file=$ac_optarg ;;
537 cache_file=config.cache ;;
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
543 datadir=$ac_optarg ;;
545 -disable-* | --disable-*)
546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547 # Reject names that are not valid shell variable names.
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
554 -enable-* | --enable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
565 eval "enable_$ac_feature='$ac_optarg'" ;;
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
574 exec_prefix=$ac_optarg ;;
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
580 -help | --help | --hel | --he | -h)
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
587 -host | --host | --hos | --ho)
588 ac_prev=host_alias ;;
589 -host=* | --host=* | --hos=* | --ho=*)
590 host_alias=$ac_optarg ;;
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
597 includedir=$ac_optarg ;;
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602 infodir=$ac_optarg ;;
604 -libdir | --libdir | --libdi | --libd)
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
614 libexecdir=$ac_optarg ;;
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623 localstatedir=$ac_optarg ;;
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
631 # Obsolete; use --without-fp.
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635 | --no-cr | --no-c | -n)
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649 oldincludedir=$ac_optarg ;;
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661 program_prefix=$ac_optarg ;;
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668 program_suffix=$ac_optarg ;;
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
685 program_transform_name=$ac_optarg ;;
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
695 sbindir=$ac_optarg ;;
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
706 sharedstatedir=$ac_optarg ;;
708 -site | --site | --sit)
710 -site=* | --site=* | --sit=*)
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723 sysconfdir=$ac_optarg ;;
725 -target | --target | --targe | --targ | --tar | --ta | --t)
726 ac_prev=target_alias ;;
727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728 target_alias=$ac_optarg ;;
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
733 -version | --version | --versio | --versi | --vers | -V)
737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738 # Reject names that are not valid shell variable names.
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
742 ac_package=`echo $ac_package| sed 's/-/_/g'`
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
747 eval "with_$ac_package='$ac_optarg'" ;;
749 -without-* | --without-*)
750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751 # Reject names that are not valid shell variable names.
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
759 # Obsolete; use --with-x.
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767 x_includes=$ac_optarg ;;
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774 x_libraries=$ac_optarg ;;
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802 if test -n "$ac_prev"; then
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
811 eval ac_val=$`echo $ac_var`
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
823 eval ac_val=$`echo $ac_var`
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
852 test "$silent" = yes && exec 6>/dev/null
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
872 if test ! -r $srcdir/$ac_unique_file; then
876 ac_srcdir_defaulted=no
878 if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
887 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CC_set=${CC+set}
905 ac_cv_env_CC_set=${CC+set}
906 ac_cv_env_CC_value=$CC
907 ac_env_CFLAGS_set=${CFLAGS+set}
908 ac_env_CFLAGS_value=$CFLAGS
909 ac_cv_env_CFLAGS_set=${CFLAGS+set}
910 ac_cv_env_CFLAGS_value=$CFLAGS
911 ac_env_LDFLAGS_set=${LDFLAGS+set}
912 ac_env_LDFLAGS_value=$LDFLAGS
913 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914 ac_cv_env_LDFLAGS_value=$LDFLAGS
915 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916 ac_env_CPPFLAGS_value=$CPPFLAGS
917 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919 ac_env_CPP_set=${CPP+set}
920 ac_env_CPP_value=$CPP
921 ac_cv_env_CPP_set=${CPP+set}
922 ac_cv_env_CPP_value=$CPP
925 # Report the --help message.
927 if test "$ac_init_help" = "long"; then
928 # Omit some internal or obsolete options to make the list less imposing.
929 # This message is too long to be a string in the A/UX 3.1 sh.
931 \`configure' configures this package to adapt to many kinds of systems.
933 Usage: $0 [OPTION]... [VAR=VALUE]...
935 To assign environment variables (e.g., CC, CFLAGS...), specify them as
936 VAR=VALUE. See below for descriptions of some of the useful variables.
938 Defaults for the options are specified in brackets.
941 -h, --help display this help and exit
942 --help=short display options specific to this package
943 --help=recursive display the short help of all the included packages
944 -V, --version display version information and exit
945 -q, --quiet, --silent do not print \`checking...' messages
946 --cache-file=FILE cache test results in FILE [disabled]
947 -C, --config-cache alias for \`--cache-file=config.cache'
948 -n, --no-create do not create output files
949 --srcdir=DIR find the sources in DIR [configure dir or \`..']
954 Installation directories:
955 --prefix=PREFIX install architecture-independent files in PREFIX
957 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
960 By default, \`make install' will install all the files in
961 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
962 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
963 for instance \`--prefix=\$HOME'.
965 For better control, use the options below.
967 Fine tuning of the installation directories:
968 --bindir=DIR user executables [EPREFIX/bin]
969 --sbindir=DIR system admin executables [EPREFIX/sbin]
970 --libexecdir=DIR program executables [EPREFIX/libexec]
971 --datadir=DIR read-only architecture-independent data [PREFIX/share]
972 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
973 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
974 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
975 --libdir=DIR object code libraries [EPREFIX/lib]
976 --includedir=DIR C header files [PREFIX/include]
977 --oldincludedir=DIR C header files for non-gcc [/usr/include]
978 --infodir=DIR info documentation [PREFIX/info]
979 --mandir=DIR man documentation [PREFIX/man]
985 --program-prefix=PREFIX prepend PREFIX to installed program names
986 --program-suffix=SUFFIX append SUFFIX to installed program names
987 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
990 --build=BUILD configure for building on BUILD [guessed]
991 --host=HOST cross-compile to build programs to run on HOST [BUILD]
992 --target=TARGET configure for building compilers for TARGET [HOST]
996 if test -n "$ac_init_help"; then
1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1003 --disable-dependency-tracking speeds up one-time build
1004 --enable-dependency-tracking do not reject slow dependency extractors
1005 --enable-shared[=PKGS]
1006 build shared libraries [default=no]
1007 --enable-static[=PKGS]
1008 build static libraries [default=yes]
1009 --enable-fast-install[=PKGS]
1010 optimize for fast installation [default=yes]
1011 --disable-libtool-lock avoid locking (might break parallel builds)
1012 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1013 --enable-targets alternative target configurations
1014 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
1015 --enable-secureplt Default to creating read-only plt entries
1016 --enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type
1017 --enable-werror treat compile warnings as errors
1018 --enable-build-warnings enable build-time compiler warnings
1019 --enable-maintainer-mode enable make rules and dependencies not useful
1020 (and sometimes confusing) to the casual installer
1021 --enable-install-libbfd controls installation of libbfd and related headers
1022 --disable-nls do not use Native Language Support
1025 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1026 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
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]
1030 --with-mmap try using mmap for BFD input files if available
1031 --with-separate-debug-dir=DIR
1032 Look for global separate debug info in DIR
1033 [default=LIBDIR/debug]
1034 --with-pkgversion=PKG Use PKG in the version string in place of "GNU
1036 --with-bugurl=URL Direct users to URL to report a bug
1038 Some influential environment variables:
1039 CC C compiler command
1040 CFLAGS C compiler flags
1041 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1042 nonstandard directory <lib dir>
1043 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1044 headers in a nonstandard directory <include dir>
1047 Use these variables to override the choices made by `configure' or to help
1048 it to find libraries and programs with nonstandard names/locations.
1053 if test "$ac_init_help" = "recursive"; then
1054 # If there are subdirs, report their specific --help.
1056 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1057 test -d $ac_dir || continue
1060 if test "$ac_dir" != .; then
1061 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1062 # A "../" for each directory in $ac_dir_suffix.
1063 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1065 ac_dir_suffix= ac_top_builddir=
1069 .) # No --srcdir option. We are building in place.
1071 if test -z "$ac_top_builddir"; then
1074 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1076 [\\/]* | ?:[\\/]* ) # Absolute path.
1077 ac_srcdir=$srcdir$ac_dir_suffix;
1078 ac_top_srcdir=$srcdir ;;
1080 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1081 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1084 # Do not use `cd foo && pwd` to compute absolute paths, because
1085 # the directories may not exist.
1087 .) ac_abs_builddir="$ac_dir";;
1090 .) ac_abs_builddir=`pwd`;;
1091 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1092 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1095 case $ac_abs_builddir in
1096 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1098 case ${ac_top_builddir}. in
1099 .) ac_abs_top_builddir=$ac_abs_builddir;;
1100 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1101 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1104 case $ac_abs_builddir in
1105 .) ac_abs_srcdir=$ac_srcdir;;
1108 .) ac_abs_srcdir=$ac_abs_builddir;;
1109 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1110 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1113 case $ac_abs_builddir in
1114 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1116 case $ac_top_srcdir in
1117 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1118 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1119 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1124 # Check for guested configure; otherwise get Cygnus style configure.
1125 if test -f $ac_srcdir/configure.gnu; then
1127 $SHELL $ac_srcdir/configure.gnu --help=recursive
1128 elif test -f $ac_srcdir/configure; then
1130 $SHELL $ac_srcdir/configure --help=recursive
1131 elif test -f $ac_srcdir/configure.ac ||
1132 test -f $ac_srcdir/configure.in; then
1134 $ac_configure --help
1136 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1142 test -n "$ac_init_help" && exit 0
1143 if $ac_init_version; then
1146 Copyright (C) 2003 Free Software Foundation, Inc.
1147 This configure script is free software; the Free Software Foundation
1148 gives unlimited permission to copy, distribute and modify it.
1154 This file contains any messages produced by compilers while
1155 running configure, to aid debugging if configure makes a mistake.
1157 It was created by $as_me, which was
1158 generated by GNU Autoconf 2.59. Invocation command line was
1169 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1170 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1171 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1172 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1173 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1175 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1176 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1178 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1179 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1180 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1181 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1182 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1183 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1184 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1192 test -z "$as_dir" && as_dir=.
1193 echo "PATH: $as_dir"
1208 # Keep a trace of the command line.
1209 # Strip out --no-create and --no-recursion so they do not pile up.
1210 # Strip out --silent because we don't want to record it for future runs.
1211 # Also quote any args containing shell meta-characters.
1212 # Make two passes to allow for proper duplicate-argument suppression.
1217 ac_must_keep_next=false
1223 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1224 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225 | -silent | --silent | --silen | --sile | --sil)
1227 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1228 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1231 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1233 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1234 if test $ac_must_keep_next = true; then
1235 ac_must_keep_next=false # Got value, back to normal.
1238 *=* | --config-cache | -C | -disable-* | --disable-* \
1239 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1240 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1241 | -with-* | --with-* | -without-* | --without-* | --x)
1242 case "$ac_configure_args0 " in
1243 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1246 -* ) ac_must_keep_next=true ;;
1249 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1250 # Get rid of the leading space.
1256 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1257 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1259 # When interrupted or exit'd, cleanup temporary files, and complete
1260 # config.log. We remove comments because anyway the quotes in there
1261 # would cause problems or look ugly.
1262 # WARNING: Be sure not to use single quotes in there, as some shells,
1263 # such as our DU 5.0 friend, will then `close' the trap.
1264 trap 'exit_status=$?
1265 # Save into config.log some information that might help in debugging.
1270 ## ---------------- ##
1271 ## Cache variables. ##
1272 ## ---------------- ##
1275 # The following way of writing the cache mishandles newlines in values,
1278 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1281 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1282 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1286 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1293 ## ----------------- ##
1294 ## Output variables. ##
1295 ## ----------------- ##
1298 for ac_var in $ac_subst_vars
1300 eval ac_val=$`echo $ac_var`
1301 echo "$ac_var='"'"'$ac_val'"'"'"
1305 if test -n "$ac_subst_files"; then
1312 for ac_var in $ac_subst_files
1314 eval ac_val=$`echo $ac_var`
1315 echo "$ac_var='"'"'$ac_val'"'"'"
1320 if test -s confdefs.h; then
1327 sed "/^$/d" confdefs.h | sort
1330 test "$ac_signal" != 0 &&
1331 echo "$as_me: caught signal $ac_signal"
1332 echo "$as_me: exit $exit_status"
1334 rm -f core *.core &&
1335 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1338 for ac_signal in 1 2 13 15; do
1339 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1343 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1344 rm -rf conftest* confdefs.h
1345 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1348 # Predefined preprocessor variables.
1350 cat >>confdefs.h <<_ACEOF
1351 #define PACKAGE_NAME "$PACKAGE_NAME"
1355 cat >>confdefs.h <<_ACEOF
1356 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1360 cat >>confdefs.h <<_ACEOF
1361 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1365 cat >>confdefs.h <<_ACEOF
1366 #define PACKAGE_STRING "$PACKAGE_STRING"
1370 cat >>confdefs.h <<_ACEOF
1371 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1375 # Let the site file select an alternate cache file if it wants to.
1376 # Prefer explicitly selected file to automatically selected ones.
1377 if test -z "$CONFIG_SITE"; then
1378 if test "x$prefix" != xNONE; then
1379 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1381 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1384 for ac_site_file in $CONFIG_SITE; do
1385 if test -r "$ac_site_file"; then
1386 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1387 echo "$as_me: loading site script $ac_site_file" >&6;}
1388 sed 's/^/| /' "$ac_site_file" >&5
1393 if test -r "$cache_file"; then
1394 # Some versions of bash will fail to source /dev/null (special
1395 # files actually), so we avoid doing that.
1396 if test -f "$cache_file"; then
1397 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1398 echo "$as_me: loading cache $cache_file" >&6;}
1400 [\\/]* | ?:[\\/]* ) . $cache_file;;
1401 *) . ./$cache_file;;
1405 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1406 echo "$as_me: creating cache $cache_file" >&6;}
1410 # Check that the precious variables saved in the cache have kept the same
1412 ac_cache_corrupted=false
1413 for ac_var in `(set) 2>&1 |
1414 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1415 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1416 eval ac_new_set=\$ac_env_${ac_var}_set
1417 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1418 eval ac_new_val="\$ac_env_${ac_var}_value"
1419 case $ac_old_set,$ac_new_set in
1421 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1422 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1423 ac_cache_corrupted=: ;;
1425 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1426 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1427 ac_cache_corrupted=: ;;
1430 if test "x$ac_old_val" != "x$ac_new_val"; then
1431 # differences in whitespace do not lead to failure.
1432 ac_old_val_w=`echo x $ac_old_val`
1433 ac_new_val_w=`echo x $ac_new_val`
1434 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1435 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1436 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1437 ac_cache_corrupted=:
1439 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1440 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1441 eval $ac_var=\$ac_old_val
1443 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1444 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1445 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1446 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1449 # Pass precious variables to config.status.
1450 if test "$ac_new_set" = set; then
1452 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1453 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1454 *) ac_arg=$ac_var=$ac_new_val ;;
1456 case " $ac_configure_args " in
1457 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1458 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1462 if $ac_cache_corrupted; then
1463 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1464 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1465 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1466 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1467 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1468 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1469 { (exit 1); exit 1; }; }
1473 ac_cpp='$CPP $CPPFLAGS'
1474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1502 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1503 if test -f $ac_dir/install-sh; then
1505 ac_install_sh="$ac_aux_dir/install-sh -c"
1507 elif test -f $ac_dir/install.sh; then
1509 ac_install_sh="$ac_aux_dir/install.sh -c"
1511 elif test -f $ac_dir/shtool; then
1513 ac_install_sh="$ac_aux_dir/shtool install -c"
1517 if test -z "$ac_aux_dir"; then
1518 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1519 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1520 { (exit 1); exit 1; }; }
1522 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1523 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1524 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1526 # Make sure we can run config.sub.
1527 $ac_config_sub sun4 >/dev/null 2>&1 ||
1528 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1529 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1530 { (exit 1); exit 1; }; }
1532 echo "$as_me:$LINENO: checking build system type" >&5
1533 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1534 if test "${ac_cv_build+set}" = set; then
1535 echo $ECHO_N "(cached) $ECHO_C" >&6
1537 ac_cv_build_alias=$build_alias
1538 test -z "$ac_cv_build_alias" &&
1539 ac_cv_build_alias=`$ac_config_guess`
1540 test -z "$ac_cv_build_alias" &&
1541 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1542 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1543 { (exit 1); exit 1; }; }
1544 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1545 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1546 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1547 { (exit 1); exit 1; }; }
1550 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1551 echo "${ECHO_T}$ac_cv_build" >&6
1553 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1554 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1555 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1558 echo "$as_me:$LINENO: checking host system type" >&5
1559 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1560 if test "${ac_cv_host+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1563 ac_cv_host_alias=$host_alias
1564 test -z "$ac_cv_host_alias" &&
1565 ac_cv_host_alias=$ac_cv_build_alias
1566 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1567 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1568 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1569 { (exit 1); exit 1; }; }
1572 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1573 echo "${ECHO_T}$ac_cv_host" >&6
1575 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1576 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1577 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1580 echo "$as_me:$LINENO: checking target system type" >&5
1581 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1582 if test "${ac_cv_target+set}" = set; then
1583 echo $ECHO_N "(cached) $ECHO_C" >&6
1585 ac_cv_target_alias=$target_alias
1586 test "x$ac_cv_target_alias" = "x" &&
1587 ac_cv_target_alias=$ac_cv_host_alias
1588 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1589 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1590 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1591 { (exit 1); exit 1; }; }
1594 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1595 echo "${ECHO_T}$ac_cv_target" >&6
1596 target=$ac_cv_target
1597 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1598 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1599 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1602 # The aliases save the names the user supplied, while $host etc.
1603 # will get canonicalized.
1604 test -n "$target_alias" &&
1605 test "$program_prefix$program_suffix$program_transform_name" = \
1607 program_prefix=${target_alias}-
1609 ac_cpp='$CPP $CPPFLAGS'
1610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1613 if test -n "$ac_tool_prefix"; then
1614 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1615 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1616 echo "$as_me:$LINENO: checking for $ac_word" >&5
1617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1618 if test "${ac_cv_prog_CC+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1621 if test -n "$CC"; then
1622 ac_cv_prog_CC="$CC" # Let the user override the test.
1624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1628 test -z "$as_dir" && as_dir=.
1629 for ac_exec_ext in '' $ac_executable_extensions; do
1630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1631 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1641 if test -n "$CC"; then
1642 echo "$as_me:$LINENO: result: $CC" >&5
1643 echo "${ECHO_T}$CC" >&6
1645 echo "$as_me:$LINENO: result: no" >&5
1646 echo "${ECHO_T}no" >&6
1650 if test -z "$ac_cv_prog_CC"; then
1652 # Extract the first word of "gcc", so it can be a program name with args.
1653 set dummy gcc; ac_word=$2
1654 echo "$as_me:$LINENO: checking for $ac_word" >&5
1655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1656 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1657 echo $ECHO_N "(cached) $ECHO_C" >&6
1659 if test -n "$ac_ct_CC"; then
1660 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666 test -z "$as_dir" && as_dir=.
1667 for ac_exec_ext in '' $ac_executable_extensions; do
1668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1669 ac_cv_prog_ac_ct_CC="gcc"
1670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1678 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1679 if test -n "$ac_ct_CC"; then
1680 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1681 echo "${ECHO_T}$ac_ct_CC" >&6
1683 echo "$as_me:$LINENO: result: no" >&5
1684 echo "${ECHO_T}no" >&6
1692 if test -z "$CC"; then
1693 if test -n "$ac_tool_prefix"; then
1694 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1695 set dummy ${ac_tool_prefix}cc; ac_word=$2
1696 echo "$as_me:$LINENO: checking for $ac_word" >&5
1697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698 if test "${ac_cv_prog_CC+set}" = set; then
1699 echo $ECHO_N "(cached) $ECHO_C" >&6
1701 if test -n "$CC"; then
1702 ac_cv_prog_CC="$CC" # Let the user override the test.
1704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708 test -z "$as_dir" && as_dir=.
1709 for ac_exec_ext in '' $ac_executable_extensions; do
1710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711 ac_cv_prog_CC="${ac_tool_prefix}cc"
1712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1721 if test -n "$CC"; then
1722 echo "$as_me:$LINENO: result: $CC" >&5
1723 echo "${ECHO_T}$CC" >&6
1725 echo "$as_me:$LINENO: result: no" >&5
1726 echo "${ECHO_T}no" >&6
1730 if test -z "$ac_cv_prog_CC"; then
1732 # Extract the first word of "cc", so it can be a program name with args.
1733 set dummy cc; ac_word=$2
1734 echo "$as_me:$LINENO: checking for $ac_word" >&5
1735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1736 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1737 echo $ECHO_N "(cached) $ECHO_C" >&6
1739 if test -n "$ac_ct_CC"; then
1740 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1746 test -z "$as_dir" && as_dir=.
1747 for ac_exec_ext in '' $ac_executable_extensions; do
1748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1749 ac_cv_prog_ac_ct_CC="cc"
1750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1759 if test -n "$ac_ct_CC"; then
1760 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1761 echo "${ECHO_T}$ac_ct_CC" >&6
1763 echo "$as_me:$LINENO: result: no" >&5
1764 echo "${ECHO_T}no" >&6
1773 if test -z "$CC"; then
1774 # Extract the first word of "cc", so it can be a program name with args.
1775 set dummy cc; ac_word=$2
1776 echo "$as_me:$LINENO: checking for $ac_word" >&5
1777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1778 if test "${ac_cv_prog_CC+set}" = set; then
1779 echo $ECHO_N "(cached) $ECHO_C" >&6
1781 if test -n "$CC"; then
1782 ac_cv_prog_CC="$CC" # Let the user override the test.
1785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1789 test -z "$as_dir" && as_dir=.
1790 for ac_exec_ext in '' $ac_executable_extensions; do
1791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1792 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1793 ac_prog_rejected=yes
1797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1803 if test $ac_prog_rejected = yes; then
1804 # We found a bogon in the path, so make sure we never use it.
1805 set dummy $ac_cv_prog_CC
1807 if test $# != 0; then
1808 # We chose a different compiler from the bogus one.
1809 # However, it has the same basename, so the bogon will be chosen
1810 # first if we set CC to just the basename; use the full file name.
1812 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1818 if test -n "$CC"; then
1819 echo "$as_me:$LINENO: result: $CC" >&5
1820 echo "${ECHO_T}$CC" >&6
1822 echo "$as_me:$LINENO: result: no" >&5
1823 echo "${ECHO_T}no" >&6
1827 if test -z "$CC"; then
1828 if test -n "$ac_tool_prefix"; then
1831 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1832 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1833 echo "$as_me:$LINENO: checking for $ac_word" >&5
1834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1835 if test "${ac_cv_prog_CC+set}" = set; then
1836 echo $ECHO_N "(cached) $ECHO_C" >&6
1838 if test -n "$CC"; then
1839 ac_cv_prog_CC="$CC" # Let the user override the test.
1841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1845 test -z "$as_dir" && as_dir=.
1846 for ac_exec_ext in '' $ac_executable_extensions; do
1847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1848 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1858 if test -n "$CC"; then
1859 echo "$as_me:$LINENO: result: $CC" >&5
1860 echo "${ECHO_T}$CC" >&6
1862 echo "$as_me:$LINENO: result: no" >&5
1863 echo "${ECHO_T}no" >&6
1866 test -n "$CC" && break
1869 if test -z "$CC"; then
1873 # Extract the first word of "$ac_prog", so it can be a program name with args.
1874 set dummy $ac_prog; ac_word=$2
1875 echo "$as_me:$LINENO: checking for $ac_word" >&5
1876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1877 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1878 echo $ECHO_N "(cached) $ECHO_C" >&6
1880 if test -n "$ac_ct_CC"; then
1881 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887 test -z "$as_dir" && as_dir=.
1888 for ac_exec_ext in '' $ac_executable_extensions; do
1889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1890 ac_cv_prog_ac_ct_CC="$ac_prog"
1891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1899 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1900 if test -n "$ac_ct_CC"; then
1901 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1902 echo "${ECHO_T}$ac_ct_CC" >&6
1904 echo "$as_me:$LINENO: result: no" >&5
1905 echo "${ECHO_T}no" >&6
1908 test -n "$ac_ct_CC" && break
1917 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1918 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1919 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1920 See \`config.log' for more details." >&5
1921 echo "$as_me: error: no acceptable C compiler found in \$PATH
1922 See \`config.log' for more details." >&2;}
1923 { (exit 1); exit 1; }; }; }
1925 # Provide some information about the compiler.
1926 echo "$as_me:$LINENO:" \
1927 "checking for C compiler version" >&5
1928 ac_compiler=`set X $ac_compile; echo $2`
1929 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1930 (eval $ac_compiler --version </dev/null >&5) 2>&5
1932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1933 (exit $ac_status); }
1934 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1935 (eval $ac_compiler -v </dev/null >&5) 2>&5
1937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938 (exit $ac_status); }
1939 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1940 (eval $ac_compiler -V </dev/null >&5) 2>&5
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); }
1945 cat >conftest.$ac_ext <<_ACEOF
1948 cat confdefs.h >>conftest.$ac_ext
1949 cat >>conftest.$ac_ext <<_ACEOF
1950 /* end confdefs.h. */
1960 ac_clean_files_save=$ac_clean_files
1961 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1962 # Try to create an executable without -o first, disregard a.out.
1963 # It will help us diagnose broken compilers, and finding out an intuition
1965 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1966 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1967 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1968 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1969 (eval $ac_link_default) 2>&5
1971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972 (exit $ac_status); }; then
1973 # Find the output, starting from the most likely. This scheme is
1974 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1977 # Be careful to initialize this variable, since it used to be cached.
1978 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1980 # b.out is created by i960 compilers.
1981 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1983 test -f "$ac_file" || continue
1985 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1988 # This is the source file.
1991 # We found the default executable, but exeext='' is most
1995 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1996 # FIXME: I believe we export ac_cv_exeext for Libtool,
1997 # but it would be cool to find out if it's true. Does anybody
1998 # maintain Libtool? --akim.
2006 echo "$as_me: failed program was:" >&5
2007 sed 's/^/| /' conftest.$ac_ext >&5
2009 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2010 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2011 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2012 See \`config.log' for more details." >&5
2013 echo "$as_me: error: C compiler cannot create executables
2014 See \`config.log' for more details." >&2;}
2015 { (exit 77); exit 77; }; }; }
2018 ac_exeext=$ac_cv_exeext
2019 echo "$as_me:$LINENO: result: $ac_file" >&5
2020 echo "${ECHO_T}$ac_file" >&6
2022 # Check the compiler produces executables we can run. If not, either
2023 # the compiler is broken, or we cross compile.
2024 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2025 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2026 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2027 # If not cross compiling, check that we can run a simple program.
2028 if test "$cross_compiling" != yes; then
2029 if { ac_try='./$ac_file'
2030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034 (exit $ac_status); }; }; then
2037 if test "$cross_compiling" = maybe; then
2040 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2041 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2042 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2043 If you meant to cross compile, use \`--host'.
2044 See \`config.log' for more details." >&5
2045 echo "$as_me: error: cannot run C compiled programs.
2046 If you meant to cross compile, use \`--host'.
2047 See \`config.log' for more details." >&2;}
2048 { (exit 1); exit 1; }; }; }
2052 echo "$as_me:$LINENO: result: yes" >&5
2053 echo "${ECHO_T}yes" >&6
2055 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2056 ac_clean_files=$ac_clean_files_save
2057 # Check the compiler produces executables we can run. If not, either
2058 # the compiler is broken, or we cross compile.
2059 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2060 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2061 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2062 echo "${ECHO_T}$cross_compiling" >&6
2064 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2065 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2067 (eval $ac_link) 2>&5
2069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070 (exit $ac_status); }; then
2071 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2072 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2073 # work properly (i.e., refer to `conftest.exe'), while it won't with
2075 for ac_file in conftest.exe conftest conftest.*; do
2076 test -f "$ac_file" || continue
2078 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2079 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2086 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2087 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2088 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2089 See \`config.log' for more details." >&5
2090 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2091 See \`config.log' for more details." >&2;}
2092 { (exit 1); exit 1; }; }; }
2095 rm -f conftest$ac_cv_exeext
2096 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2097 echo "${ECHO_T}$ac_cv_exeext" >&6
2099 rm -f conftest.$ac_ext
2100 EXEEXT=$ac_cv_exeext
2102 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2103 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2104 if test "${ac_cv_objext+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2107 cat >conftest.$ac_ext <<_ACEOF
2110 cat confdefs.h >>conftest.$ac_ext
2111 cat >>conftest.$ac_ext <<_ACEOF
2112 /* end confdefs.h. */
2122 rm -f conftest.o conftest.obj
2123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2124 (eval $ac_compile) 2>&5
2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127 (exit $ac_status); }; then
2128 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2131 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2136 echo "$as_me: failed program was:" >&5
2137 sed 's/^/| /' conftest.$ac_ext >&5
2139 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2140 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2141 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2142 See \`config.log' for more details." >&5
2143 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2144 See \`config.log' for more details." >&2;}
2145 { (exit 1); exit 1; }; }; }
2148 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2150 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2151 echo "${ECHO_T}$ac_cv_objext" >&6
2152 OBJEXT=$ac_cv_objext
2154 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2155 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2156 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2157 echo $ECHO_N "(cached) $ECHO_C" >&6
2159 cat >conftest.$ac_ext <<_ACEOF
2162 cat confdefs.h >>conftest.$ac_ext
2163 cat >>conftest.$ac_ext <<_ACEOF
2164 /* end confdefs.h. */
2177 rm -f conftest.$ac_objext
2178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2179 (eval $ac_compile) 2>conftest.er1
2181 grep -v '^ *+' conftest.er1 >conftest.err
2183 cat conftest.err >&5
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); } &&
2186 { ac_try='test -z "$ac_c_werror_flag"
2187 || test ! -s conftest.err'
2188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 (exit $ac_status); }; } &&
2193 { ac_try='test -s conftest.$ac_objext'
2194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); }; }; then
2201 echo "$as_me: failed program was:" >&5
2202 sed 's/^/| /' conftest.$ac_ext >&5
2206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2207 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2210 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2211 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2212 GCC=`test $ac_compiler_gnu = yes && echo yes`
2213 ac_test_CFLAGS=${CFLAGS+set}
2214 ac_save_CFLAGS=$CFLAGS
2216 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2217 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2218 if test "${ac_cv_prog_cc_g+set}" = set; then
2219 echo $ECHO_N "(cached) $ECHO_C" >&6
2221 cat >conftest.$ac_ext <<_ACEOF
2224 cat confdefs.h >>conftest.$ac_ext
2225 cat >>conftest.$ac_ext <<_ACEOF
2226 /* end confdefs.h. */
2236 rm -f conftest.$ac_objext
2237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2238 (eval $ac_compile) 2>conftest.er1
2240 grep -v '^ *+' conftest.er1 >conftest.err
2242 cat conftest.err >&5
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); } &&
2245 { ac_try='test -z "$ac_c_werror_flag"
2246 || test ! -s conftest.err'
2247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); }; } &&
2252 { ac_try='test -s conftest.$ac_objext'
2253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257 (exit $ac_status); }; }; then
2260 echo "$as_me: failed program was:" >&5
2261 sed 's/^/| /' conftest.$ac_ext >&5
2265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2267 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2268 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2269 if test "$ac_test_CFLAGS" = set; then
2270 CFLAGS=$ac_save_CFLAGS
2271 elif test $ac_cv_prog_cc_g = yes; then
2272 if test "$GCC" = yes; then
2278 if test "$GCC" = yes; then
2284 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2285 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2286 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
2289 ac_cv_prog_cc_stdc=no
2291 cat >conftest.$ac_ext <<_ACEOF
2294 cat confdefs.h >>conftest.$ac_ext
2295 cat >>conftest.$ac_ext <<_ACEOF
2296 /* end confdefs.h. */
2299 #include <sys/types.h>
2300 #include <sys/stat.h>
2301 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2302 struct buf { int x; };
2303 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2304 static char *e (p, i)
2310 static char *f (char * (*g) (char **, int), char **p, ...)
2315 s = g (p, va_arg (v,int));
2320 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2321 function prototypes and stuff, but not '\xHH' hex character constants.
2322 These don't provoke an error unfortunately, instead are silently treated
2323 as 'x'. The following induces an error, until -std1 is added to get
2324 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2325 array size at least. It's necessary to write '\x00'==0 to get something
2326 that's true only with -std1. */
2327 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2329 int test (int i, double x);
2330 struct s1 {int (*f) (int a);};
2331 struct s2 {int (*f) (double a);};
2332 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2338 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2343 # Don't try gcc -ansi; that turns off useful extensions and
2344 # breaks some systems' header files.
2345 # AIX -qlanglvl=ansi
2346 # Ultrix and OSF/1 -std1
2347 # HP-UX 10.20 and later -Ae
2348 # HP-UX older versions -Aa -D_HPUX_SOURCE
2349 # SVR4 -Xc -D__EXTENSIONS__
2350 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2352 CC="$ac_save_CC $ac_arg"
2353 rm -f conftest.$ac_objext
2354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2355 (eval $ac_compile) 2>conftest.er1
2357 grep -v '^ *+' conftest.er1 >conftest.err
2359 cat conftest.err >&5
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); } &&
2362 { ac_try='test -z "$ac_c_werror_flag"
2363 || test ! -s conftest.err'
2364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }; } &&
2369 { ac_try='test -s conftest.$ac_objext'
2370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); }; }; then
2375 ac_cv_prog_cc_stdc=$ac_arg
2378 echo "$as_me: failed program was:" >&5
2379 sed 's/^/| /' conftest.$ac_ext >&5
2382 rm -f conftest.err conftest.$ac_objext
2384 rm -f conftest.$ac_ext conftest.$ac_objext
2389 case "x$ac_cv_prog_cc_stdc" in
2391 echo "$as_me:$LINENO: result: none needed" >&5
2392 echo "${ECHO_T}none needed" >&6 ;;
2394 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2395 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2396 CC="$CC $ac_cv_prog_cc_stdc" ;;
2399 # Some people use a C++ compiler to compile C. Since we use `exit',
2400 # in C++ we need to declare it. In case someone uses the same compiler
2401 # for both compiling C and C++ we need to have the C++ compiler decide
2402 # the declaration of exit, since it's the most demanding environment.
2403 cat >conftest.$ac_ext <<_ACEOF
2408 rm -f conftest.$ac_objext
2409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2410 (eval $ac_compile) 2>conftest.er1
2412 grep -v '^ *+' conftest.er1 >conftest.err
2414 cat conftest.err >&5
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); } &&
2417 { ac_try='test -z "$ac_c_werror_flag"
2418 || test ! -s conftest.err'
2419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }; } &&
2424 { ac_try='test -s conftest.$ac_objext'
2425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }; }; then
2430 for ac_declaration in \
2432 'extern "C" void std::exit (int) throw (); using std::exit;' \
2433 'extern "C" void std::exit (int); using std::exit;' \
2434 'extern "C" void exit (int) throw ();' \
2435 'extern "C" void exit (int);' \
2438 cat >conftest.$ac_ext <<_ACEOF
2441 cat confdefs.h >>conftest.$ac_ext
2442 cat >>conftest.$ac_ext <<_ACEOF
2443 /* end confdefs.h. */
2454 rm -f conftest.$ac_objext
2455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2456 (eval $ac_compile) 2>conftest.er1
2458 grep -v '^ *+' conftest.er1 >conftest.err
2460 cat conftest.err >&5
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); } &&
2463 { ac_try='test -z "$ac_c_werror_flag"
2464 || test ! -s conftest.err'
2465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; } &&
2470 { ac_try='test -s conftest.$ac_objext'
2471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); }; }; then
2478 echo "$as_me: failed program was:" >&5
2479 sed 's/^/| /' conftest.$ac_ext >&5
2483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2484 cat >conftest.$ac_ext <<_ACEOF
2487 cat confdefs.h >>conftest.$ac_ext
2488 cat >>conftest.$ac_ext <<_ACEOF
2489 /* end confdefs.h. */
2499 rm -f conftest.$ac_objext
2500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2501 (eval $ac_compile) 2>conftest.er1
2503 grep -v '^ *+' conftest.er1 >conftest.err
2505 cat conftest.err >&5
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); } &&
2508 { ac_try='test -z "$ac_c_werror_flag"
2509 || test ! -s conftest.err'
2510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; } &&
2515 { ac_try='test -s conftest.$ac_objext'
2516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }; }; then
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
2530 if test -n "$ac_declaration"; then
2531 echo '#ifdef __cplusplus' >>confdefs.h
2532 echo $ac_declaration >>confdefs.h
2533 echo '#endif' >>confdefs.h
2537 echo "$as_me: failed program was:" >&5
2538 sed 's/^/| /' conftest.$ac_ext >&5
2541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2543 ac_cpp='$CPP $CPPFLAGS'
2544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2549 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2550 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2551 if test "${ac_cv_search_strerror+set}" = set; then
2552 echo $ECHO_N "(cached) $ECHO_C" >&6
2554 ac_func_search_save_LIBS=$LIBS
2555 ac_cv_search_strerror=no
2556 cat >conftest.$ac_ext <<_ACEOF
2559 cat confdefs.h >>conftest.$ac_ext
2560 cat >>conftest.$ac_ext <<_ACEOF
2561 /* end confdefs.h. */
2563 /* Override any gcc2 internal prototype to avoid an error. */
2567 /* We use char because int might match the return type of a gcc2
2568 builtin and then its argument prototype would still apply. */
2578 rm -f conftest.$ac_objext conftest$ac_exeext
2579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2580 (eval $ac_link) 2>conftest.er1
2582 grep -v '^ *+' conftest.er1 >conftest.err
2584 cat conftest.err >&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); } &&
2587 { ac_try='test -z "$ac_c_werror_flag"
2588 || test ! -s conftest.err'
2589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; } &&
2594 { ac_try='test -s conftest$ac_exeext'
2595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; }; then
2600 ac_cv_search_strerror="none required"
2602 echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2606 rm -f conftest.err conftest.$ac_objext \
2607 conftest$ac_exeext conftest.$ac_ext
2608 if test "$ac_cv_search_strerror" = no; then
2609 for ac_lib in cposix; do
2610 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2611 cat >conftest.$ac_ext <<_ACEOF
2614 cat confdefs.h >>conftest.$ac_ext
2615 cat >>conftest.$ac_ext <<_ACEOF
2616 /* end confdefs.h. */
2618 /* Override any gcc2 internal prototype to avoid an error. */
2622 /* We use char because int might match the return type of a gcc2
2623 builtin and then its argument prototype would still apply. */
2633 rm -f conftest.$ac_objext conftest$ac_exeext
2634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2635 (eval $ac_link) 2>conftest.er1
2637 grep -v '^ *+' conftest.er1 >conftest.err
2639 cat conftest.err >&5
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); } &&
2642 { ac_try='test -z "$ac_c_werror_flag"
2643 || test ! -s conftest.err'
2644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; } &&
2649 { ac_try='test -s conftest$ac_exeext'
2650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); }; }; then
2655 ac_cv_search_strerror="-l$ac_lib"
2658 echo "$as_me: failed program was:" >&5
2659 sed 's/^/| /' conftest.$ac_ext >&5
2662 rm -f conftest.err conftest.$ac_objext \
2663 conftest$ac_exeext conftest.$ac_ext
2666 LIBS=$ac_func_search_save_LIBS
2668 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2669 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2670 if test "$ac_cv_search_strerror" != no; then
2671 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2676 am__api_version="1.9"
2677 # Find a good install program. We prefer a C program (faster),
2678 # so one script is as good as another. But avoid the broken or
2679 # incompatible versions:
2680 # SysV /etc/install, /usr/sbin/install
2681 # SunOS /usr/etc/install
2682 # IRIX /sbin/install
2684 # AmigaOS /C/install, which installs bootblocks on floppy discs
2685 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2686 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2687 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2688 # OS/2's system install, which has a completely different semantic
2689 # ./install, which can be erroneously created by make from ./install.sh.
2690 # Reject install programs that cannot install multiple files.
2691 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2692 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2693 if test -z "$INSTALL"; then
2694 if test "${ac_cv_path_install+set}" = set; then
2695 echo $ECHO_N "(cached) $ECHO_C" >&6
2697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701 test -z "$as_dir" && as_dir=.
2702 # Account for people who put trailing slashes in PATH elements.
2704 ./ | .// | /cC/* | \
2705 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2706 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2709 # OSF1 and SCO ODT 3.0 have their own names for install.
2710 # Don't use installbsd from OSF since it installs stuff as root
2712 for ac_prog in ginstall scoinst install; do
2713 for ac_exec_ext in '' $ac_executable_extensions; do
2714 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2715 if test $ac_prog = install &&
2716 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2717 # AIX install. It has an incompatible calling convention.
2719 elif test $ac_prog = install &&
2720 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2721 # program-specific install script used by HP pwplus--don't use.
2724 rm -rf conftest.one conftest.two conftest.dir
2725 echo one > conftest.one
2726 echo two > conftest.two
2728 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2729 test -s conftest.one && test -s conftest.two &&
2730 test -s conftest.dir/conftest.one &&
2731 test -s conftest.dir/conftest.two
2733 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2744 rm -rf conftest.one conftest.two conftest.dir
2747 if test "${ac_cv_path_install+set}" = set; then
2748 INSTALL=$ac_cv_path_install
2750 # As a last resort, use the slow shell script. Don't cache a
2751 # value for INSTALL within a source directory, because that will
2752 # break other packages using the cache if that directory is
2753 # removed, or if the value is a relative name.
2754 INSTALL=$ac_install_sh
2757 echo "$as_me:$LINENO: result: $INSTALL" >&5
2758 echo "${ECHO_T}$INSTALL" >&6
2760 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2761 # It thinks the first close brace ends the variable substitution.
2762 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2764 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2766 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2768 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2769 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2772 echo timestamp > conftest.file
2773 # Do `set' in a subshell so we don't clobber the current shell's
2774 # arguments. Must try -L first in case configure is actually a
2775 # symlink; some systems play weird games with the mod time of symlinks
2776 # (eg FreeBSD returns the mod time of the symlink's containing
2779 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2780 if test "$*" = "X"; then
2782 set X `ls -t $srcdir/configure conftest.file`
2785 if test "$*" != "X $srcdir/configure conftest.file" \
2786 && test "$*" != "X conftest.file $srcdir/configure"; then
2788 # If neither matched, then we have a broken ls. This can happen
2789 # if, for instance, CONFIG_SHELL is bash and it inherits a
2790 # broken ls alias from the environment. This has actually
2791 # happened. Such a system could not be considered "sane".
2792 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2793 alias in your environment" >&5
2794 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2795 alias in your environment" >&2;}
2796 { (exit 1); exit 1; }; }
2799 test "$2" = conftest.file
2805 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2806 Check your system clock" >&5
2807 echo "$as_me: error: newly created file is older than distributed files!
2808 Check your system clock" >&2;}
2809 { (exit 1); exit 1; }; }
2811 echo "$as_me:$LINENO: result: yes" >&5
2812 echo "${ECHO_T}yes" >&6
2813 test "$program_prefix" != NONE &&
2814 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2815 # Use a double $ so make ignores it.
2816 test "$program_suffix" != NONE &&
2817 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2818 # Double any \ or $. echo might interpret backslashes.
2819 # By default was `s,x,x', remove it if useless.
2820 cat <<\_ACEOF >conftest.sed
2821 s/[\\$]/&&/g;s/;s,x,x,$//
2823 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2826 # expand $ac_aux_dir to an absolute path
2827 am_aux_dir=`cd $ac_aux_dir && pwd`
2829 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2830 # Use eval to expand $SHELL
2831 if eval "$MISSING --run true"; then
2832 am_missing_run="$MISSING --run "
2835 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2836 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2839 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2840 # We used to keeping the `.' as first argument, in order to
2841 # allow $(mkdir_p) to be used without argument. As in
2842 # $(mkdir_p) $(somedir)
2843 # where $(somedir) is conditionally defined. However this is wrong
2845 # 1. if the package is installed by a user who cannot write `.'
2846 # make install will fail,
2847 # 2. the above comment should most certainly read
2848 # $(mkdir_p) $(DESTDIR)$(somedir)
2849 # so it does not work when $(somedir) is undefined and
2850 # $(DESTDIR) is not.
2851 # To support the latter case, we have to write
2852 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2853 # so the `.' trick is pointless.
2854 mkdir_p='mkdir -p --'
2856 # On NextStep and OpenStep, the `mkdir' command does not
2857 # recognize any option. It will interpret all options as
2858 # directories to create, and then abort because `.' already
2860 for d in ./-p ./--version;
2862 test -d $d && rmdir $d
2864 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2865 if test -f "$ac_aux_dir/mkinstalldirs"; then
2866 mkdir_p='$(mkinstalldirs)'
2868 mkdir_p='$(install_sh) -d'
2872 for ac_prog in gawk mawk nawk awk
2874 # Extract the first word of "$ac_prog", so it can be a program name with args.
2875 set dummy $ac_prog; ac_word=$2
2876 echo "$as_me:$LINENO: checking for $ac_word" >&5
2877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2878 if test "${ac_cv_prog_AWK+set}" = set; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2881 if test -n "$AWK"; then
2882 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2891 ac_cv_prog_AWK="$ac_prog"
2892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 if test -n "$AWK"; then
2902 echo "$as_me:$LINENO: result: $AWK" >&5
2903 echo "${ECHO_T}$AWK" >&6
2905 echo "$as_me:$LINENO: result: no" >&5
2906 echo "${ECHO_T}no" >&6
2909 test -n "$AWK" && break
2912 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2913 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2914 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2915 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2916 echo $ECHO_N "(cached) $ECHO_C" >&6
2918 cat >conftest.make <<\_ACEOF
2920 @echo 'ac_maketemp="$(MAKE)"'
2922 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2923 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2924 if test -n "$ac_maketemp"; then
2925 eval ac_cv_prog_make_${ac_make}_set=yes
2927 eval ac_cv_prog_make_${ac_make}_set=no
2931 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2932 echo "$as_me:$LINENO: result: yes" >&5
2933 echo "${ECHO_T}yes" >&6
2936 echo "$as_me:$LINENO: result: no" >&5
2937 echo "${ECHO_T}no" >&6
2938 SET_MAKE="MAKE=${MAKE-make}"
2941 rm -rf .tst 2>/dev/null
2942 mkdir .tst 2>/dev/null
2943 if test -d .tst; then
2948 rmdir .tst 2>/dev/null
2950 DEPDIR="${am__leading_dot}deps"
2952 ac_config_commands="$ac_config_commands depfiles"
2955 am_make=${MAKE-make}
2956 cat > confinc << 'END'
2961 # If we don't find an include directive, just comment out the code.
2962 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2963 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2967 # First try GNU make style include.
2968 echo "include confinc" > confmf
2969 # We grep out `Entering directory' and `Leaving directory'
2970 # messages which can occur if `w' ends up in MAKEFLAGS.
2971 # In particular we don't look at `^make:' because GNU make might
2972 # be invoked under some other name (usually "gmake"), in which
2973 # case it prints its new name instead of `make'.
2974 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2979 # Now try BSD make style include.
2980 if test "$am__include" = "#"; then
2981 echo '.include "confinc"' > confmf
2982 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2983 am__include=.include
2990 echo "$as_me:$LINENO: result: $_am_result" >&5
2991 echo "${ECHO_T}$_am_result" >&6
2992 rm -f confinc confmf
2994 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2995 if test "${enable_dependency_tracking+set}" = set; then
2996 enableval="$enable_dependency_tracking"
2999 if test "x$enable_dependency_tracking" != xno; then
3000 am_depcomp="$ac_aux_dir/depcomp"
3005 if test "x$enable_dependency_tracking" != xno; then
3015 # test to see if srcdir already configured
3016 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3017 test -f $srcdir/config.status; then
3018 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3019 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3020 { (exit 1); exit 1; }; }
3023 # test whether we have cygpath
3024 if test -z "$CYGPATH_W"; then
3025 if (cygpath --version) >/dev/null 2>/dev/null; then
3026 CYGPATH_W='cygpath -w'
3033 # Define the identity of the package.
3038 cat >>confdefs.h <<_ACEOF
3039 #define PACKAGE "$PACKAGE"
3043 cat >>confdefs.h <<_ACEOF
3044 #define VERSION "$VERSION"
3047 # Some tools Automake needs.
3049 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3052 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3055 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3058 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3061 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3063 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3065 # Installed binaries are usually stripped using `strip' when the user
3066 # run `make install-strip'. However `strip' might not be the right
3067 # tool to use in cross-compilation environments, therefore Automake
3068 # will honor the `STRIP' environment variable to overrule this program.
3069 if test "$cross_compiling" != no; then
3070 if test -n "$ac_tool_prefix"; then
3071 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3072 set dummy ${ac_tool_prefix}strip; ac_word=$2
3073 echo "$as_me:$LINENO: checking for $ac_word" >&5
3074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3075 if test "${ac_cv_prog_STRIP+set}" = set; then
3076 echo $ECHO_N "(cached) $ECHO_C" >&6
3078 if test -n "$STRIP"; then
3079 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 test -z "$as_dir" && as_dir=.
3086 for ac_exec_ext in '' $ac_executable_extensions; do
3087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3088 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3097 STRIP=$ac_cv_prog_STRIP
3098 if test -n "$STRIP"; then
3099 echo "$as_me:$LINENO: result: $STRIP" >&5
3100 echo "${ECHO_T}$STRIP" >&6
3102 echo "$as_me:$LINENO: result: no" >&5
3103 echo "${ECHO_T}no" >&6
3107 if test -z "$ac_cv_prog_STRIP"; then
3109 # Extract the first word of "strip", so it can be a program name with args.
3110 set dummy strip; ac_word=$2
3111 echo "$as_me:$LINENO: checking for $ac_word" >&5
3112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3113 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3114 echo $ECHO_N "(cached) $ECHO_C" >&6
3116 if test -n "$ac_ct_STRIP"; then
3117 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123 test -z "$as_dir" && as_dir=.
3124 for ac_exec_ext in '' $ac_executable_extensions; do
3125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3126 ac_cv_prog_ac_ct_STRIP="strip"
3127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3133 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3136 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3137 if test -n "$ac_ct_STRIP"; then
3138 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3139 echo "${ECHO_T}$ac_ct_STRIP" >&6
3141 echo "$as_me:$LINENO: result: no" >&5
3142 echo "${ECHO_T}no" >&6
3147 STRIP="$ac_cv_prog_STRIP"
3151 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3153 # We need awk for the "check" target. The system "awk" is bad on
3155 # Always define AMTAR for backward compatibility.
3157 AMTAR=${AMTAR-"${am_missing_run}tar"}
3159 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3164 depcc="$CC" am_compiler_list=
3166 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3167 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3168 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3169 echo $ECHO_N "(cached) $ECHO_C" >&6
3171 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3172 # We make a subdir and do the tests there. Otherwise we can end up
3173 # making bogus files that we don't know about and never remove. For
3174 # instance it was reported that on HP-UX the gcc test will end up
3175 # making a dummy file named `D' -- because `-MD' means `put the output
3178 # Copy depcomp to subdir because otherwise we won't find it if we're
3179 # using a relative directory.
3180 cp "$am_depcomp" conftest.dir
3182 # We will build objects and dependencies in a subdirectory because
3183 # it helps to detect inapplicable dependency modes. For instance
3184 # both Tru64's cc and ICC support -MD to output dependencies as a
3185 # side effect of compilation, but ICC will put the dependencies in
3186 # the current directory while Tru64 will put them in the object
3190 am_cv_CC_dependencies_compiler_type=none
3191 if test "$am_compiler_list" = ""; then
3192 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3194 for depmode in $am_compiler_list; do
3195 # Setup a source with many dependencies, because some compilers
3196 # like to wrap large dependency lists on column 80 (with \), and
3197 # we should not choose a depcomp mode which is confused by this.
3199 # We need to recreate these files for each test, as the compiler may
3200 # overwrite some of them when testing with obscure command lines.
3201 # This happens at least with the AIX C compiler.
3203 for i in 1 2 3 4 5 6; do
3204 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3205 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3206 # Solaris 8's {/usr,}/bin/sh.
3207 touch sub/conftst$i.h
3209 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3213 # after this tag, mechanisms are not by side-effect, so they'll
3214 # only be used when explicitly requested
3215 if test "x$enable_dependency_tracking" = xyes; then
3223 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3224 # mode. It turns out that the SunPro C++ compiler does not properly
3225 # handle `-M -o', and we need to detect this.
3226 if depmode=$depmode \
3227 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3228 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3229 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3230 >/dev/null 2>conftest.err &&
3231 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3232 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3233 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3234 # icc doesn't choke on unknown options, it will just issue warnings
3235 # or remarks (even with -Werror). So we grep stderr for any message
3236 # that says an option was ignored or not supported.
3237 # When given -MP, icc 7.0 and 7.1 complain thusly:
3238 # icc: Command line warning: ignoring option '-M'; no argument required
3239 # The diagnosis changed in icc 8.0:
3240 # icc: Command line remark: option '-MP' not supported
3241 if (grep 'ignoring option' conftest.err ||
3242 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3243 am_cv_CC_dependencies_compiler_type=$depmode
3252 am_cv_CC_dependencies_compiler_type=none
3256 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3257 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3258 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3263 test "x$enable_dependency_tracking" != xno \
3264 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3266 am__fastdepCC_FALSE='#'
3268 am__fastdepCC_TRUE='#'
3269 am__fastdepCC_FALSE=
3275 if test -n "$ac_tool_prefix"; then
3276 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3277 set dummy ${ac_tool_prefix}ar; ac_word=$2
3278 echo "$as_me:$LINENO: checking for $ac_word" >&5
3279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3280 if test "${ac_cv_prog_AR+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
3283 if test -n "$AR"; then
3284 ac_cv_prog_AR="$AR" # Let the user override the test.
3286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290 test -z "$as_dir" && as_dir=.
3291 for ac_exec_ext in '' $ac_executable_extensions; do
3292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3293 ac_cv_prog_AR="${ac_tool_prefix}ar"
3294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3303 if test -n "$AR"; then
3304 echo "$as_me:$LINENO: result: $AR" >&5
3305 echo "${ECHO_T}$AR" >&6
3307 echo "$as_me:$LINENO: result: no" >&5
3308 echo "${ECHO_T}no" >&6
3312 if test -z "$ac_cv_prog_AR"; then
3314 # Extract the first word of "ar", so it can be a program name with args.
3315 set dummy ar; ac_word=$2
3316 echo "$as_me:$LINENO: checking for $ac_word" >&5
3317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3318 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 if test -n "$ac_ct_AR"; then
3322 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328 test -z "$as_dir" && as_dir=.
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3331 ac_cv_prog_ac_ct_AR="ar"
3332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3340 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3341 if test -n "$ac_ct_AR"; then
3342 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3343 echo "${ECHO_T}$ac_ct_AR" >&6
3345 echo "$as_me:$LINENO: result: no" >&5
3346 echo "${ECHO_T}no" >&6
3354 if test -n "$ac_tool_prefix"; then
3355 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3356 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3357 echo "$as_me:$LINENO: checking for $ac_word" >&5
3358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3359 if test "${ac_cv_prog_RANLIB+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" >&6
3362 if test -n "$RANLIB"; then
3363 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369 test -z "$as_dir" && as_dir=.
3370 for ac_exec_ext in '' $ac_executable_extensions; do
3371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3372 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3381 RANLIB=$ac_cv_prog_RANLIB
3382 if test -n "$RANLIB"; then
3383 echo "$as_me:$LINENO: result: $RANLIB" >&5
3384 echo "${ECHO_T}$RANLIB" >&6
3386 echo "$as_me:$LINENO: result: no" >&5
3387 echo "${ECHO_T}no" >&6
3391 if test -z "$ac_cv_prog_RANLIB"; then
3392 ac_ct_RANLIB=$RANLIB
3393 # Extract the first word of "ranlib", so it can be a program name with args.
3394 set dummy ranlib; ac_word=$2
3395 echo "$as_me:$LINENO: checking for $ac_word" >&5
3396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3397 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3400 if test -n "$ac_ct_RANLIB"; then
3401 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407 test -z "$as_dir" && as_dir=.
3408 for ac_exec_ext in '' $ac_executable_extensions; do
3409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3410 ac_cv_prog_ac_ct_RANLIB="ranlib"
3411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3417 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3420 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3421 if test -n "$ac_ct_RANLIB"; then
3422 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3423 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3425 echo "$as_me:$LINENO: result: no" >&5
3426 echo "${ECHO_T}no" >&6
3429 RANLIB=$ac_ct_RANLIB
3431 RANLIB="$ac_cv_prog_RANLIB"
3435 # Check whether --enable-shared or --disable-shared was given.
3436 if test "${enable_shared+set}" = set; then
3437 enableval="$enable_shared"
3438 p=${PACKAGE-default}
3440 yes) enable_shared=yes ;;
3441 no) enable_shared=no ;;
3444 # Look at the argument we got. We use all the common list separators.
3445 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3446 for pkg in $enableval; do
3448 if test "X$pkg" = "X$p"; then
3468 ac_cpp='$CPP $CPPFLAGS'
3469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3472 if test -n "$ac_tool_prefix"; then
3473 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3474 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3475 echo "$as_me:$LINENO: checking for $ac_word" >&5
3476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3477 if test "${ac_cv_prog_CC+set}" = set; then
3478 echo $ECHO_N "(cached) $ECHO_C" >&6
3480 if test -n "$CC"; then
3481 ac_cv_prog_CC="$CC" # Let the user override the test.
3483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3487 test -z "$as_dir" && as_dir=.
3488 for ac_exec_ext in '' $ac_executable_extensions; do
3489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3490 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3500 if test -n "$CC"; then
3501 echo "$as_me:$LINENO: result: $CC" >&5
3502 echo "${ECHO_T}$CC" >&6
3504 echo "$as_me:$LINENO: result: no" >&5
3505 echo "${ECHO_T}no" >&6
3509 if test -z "$ac_cv_prog_CC"; then
3511 # Extract the first word of "gcc", so it can be a program name with args.
3512 set dummy gcc; ac_word=$2
3513 echo "$as_me:$LINENO: checking for $ac_word" >&5
3514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3515 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3516 echo $ECHO_N "(cached) $ECHO_C" >&6
3518 if test -n "$ac_ct_CC"; then
3519 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3525 test -z "$as_dir" && as_dir=.
3526 for ac_exec_ext in '' $ac_executable_extensions; do
3527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3528 ac_cv_prog_ac_ct_CC="gcc"
3529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3537 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3538 if test -n "$ac_ct_CC"; then
3539 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3540 echo "${ECHO_T}$ac_ct_CC" >&6
3542 echo "$as_me:$LINENO: result: no" >&5
3543 echo "${ECHO_T}no" >&6
3551 if test -z "$CC"; then
3552 if test -n "$ac_tool_prefix"; then
3553 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3554 set dummy ${ac_tool_prefix}cc; ac_word=$2
3555 echo "$as_me:$LINENO: checking for $ac_word" >&5
3556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3557 if test "${ac_cv_prog_CC+set}" = set; then
3558 echo $ECHO_N "(cached) $ECHO_C" >&6
3560 if test -n "$CC"; then
3561 ac_cv_prog_CC="$CC" # Let the user override the test.
3563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3567 test -z "$as_dir" && as_dir=.
3568 for ac_exec_ext in '' $ac_executable_extensions; do
3569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3570 ac_cv_prog_CC="${ac_tool_prefix}cc"
3571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3580 if test -n "$CC"; then
3581 echo "$as_me:$LINENO: result: $CC" >&5
3582 echo "${ECHO_T}$CC" >&6
3584 echo "$as_me:$LINENO: result: no" >&5
3585 echo "${ECHO_T}no" >&6
3589 if test -z "$ac_cv_prog_CC"; then
3591 # Extract the first word of "cc", so it can be a program name with args.
3592 set dummy cc; ac_word=$2
3593 echo "$as_me:$LINENO: checking for $ac_word" >&5
3594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3595 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3596 echo $ECHO_N "(cached) $ECHO_C" >&6
3598 if test -n "$ac_ct_CC"; then
3599 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3605 test -z "$as_dir" && as_dir=.
3606 for ac_exec_ext in '' $ac_executable_extensions; do
3607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3608 ac_cv_prog_ac_ct_CC="cc"
3609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3617 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3618 if test -n "$ac_ct_CC"; then
3619 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3620 echo "${ECHO_T}$ac_ct_CC" >&6
3622 echo "$as_me:$LINENO: result: no" >&5
3623 echo "${ECHO_T}no" >&6
3632 if test -z "$CC"; then
3633 # Extract the first word of "cc", so it can be a program name with args.
3634 set dummy cc; ac_word=$2
3635 echo "$as_me:$LINENO: checking for $ac_word" >&5
3636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3637 if test "${ac_cv_prog_CC+set}" = set; then
3638 echo $ECHO_N "(cached) $ECHO_C" >&6
3640 if test -n "$CC"; then
3641 ac_cv_prog_CC="$CC" # Let the user override the test.
3644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3648 test -z "$as_dir" && as_dir=.
3649 for ac_exec_ext in '' $ac_executable_extensions; do
3650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3651 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3652 ac_prog_rejected=yes
3656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3662 if test $ac_prog_rejected = yes; then
3663 # We found a bogon in the path, so make sure we never use it.
3664 set dummy $ac_cv_prog_CC
3666 if test $# != 0; then
3667 # We chose a different compiler from the bogus one.
3668 # However, it has the same basename, so the bogon will be chosen
3669 # first if we set CC to just the basename; use the full file name.
3671 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3677 if test -n "$CC"; then
3678 echo "$as_me:$LINENO: result: $CC" >&5
3679 echo "${ECHO_T}$CC" >&6
3681 echo "$as_me:$LINENO: result: no" >&5
3682 echo "${ECHO_T}no" >&6
3686 if test -z "$CC"; then
3687 if test -n "$ac_tool_prefix"; then
3690 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3691 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3692 echo "$as_me:$LINENO: checking for $ac_word" >&5
3693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3694 if test "${ac_cv_prog_CC+set}" = set; then
3695 echo $ECHO_N "(cached) $ECHO_C" >&6
3697 if test -n "$CC"; then
3698 ac_cv_prog_CC="$CC" # Let the user override the test.
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704 test -z "$as_dir" && as_dir=.
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3707 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3717 if test -n "$CC"; then
3718 echo "$as_me:$LINENO: result: $CC" >&5
3719 echo "${ECHO_T}$CC" >&6
3721 echo "$as_me:$LINENO: result: no" >&5
3722 echo "${ECHO_T}no" >&6
3725 test -n "$CC" && break
3728 if test -z "$CC"; then
3732 # Extract the first word of "$ac_prog", so it can be a program name with args.
3733 set dummy $ac_prog; ac_word=$2
3734 echo "$as_me:$LINENO: checking for $ac_word" >&5
3735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3736 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3739 if test -n "$ac_ct_CC"; then
3740 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746 test -z "$as_dir" && as_dir=.
3747 for ac_exec_ext in '' $ac_executable_extensions; do
3748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3749 ac_cv_prog_ac_ct_CC="$ac_prog"
3750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3759 if test -n "$ac_ct_CC"; then
3760 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3761 echo "${ECHO_T}$ac_ct_CC" >&6
3763 echo "$as_me:$LINENO: result: no" >&5
3764 echo "${ECHO_T}no" >&6
3767 test -n "$ac_ct_CC" && break
3776 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3777 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3778 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3779 See \`config.log' for more details." >&5
3780 echo "$as_me: error: no acceptable C compiler found in \$PATH
3781 See \`config.log' for more details." >&2;}
3782 { (exit 1); exit 1; }; }; }
3784 # Provide some information about the compiler.
3785 echo "$as_me:$LINENO:" \
3786 "checking for C compiler version" >&5
3787 ac_compiler=`set X $ac_compile; echo $2`
3788 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3789 (eval $ac_compiler --version </dev/null >&5) 2>&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); }
3793 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3794 (eval $ac_compiler -v </dev/null >&5) 2>&5
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); }
3798 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3799 (eval $ac_compiler -V </dev/null >&5) 2>&5
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); }
3804 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3805 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3806 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3807 echo $ECHO_N "(cached) $ECHO_C" >&6
3809 cat >conftest.$ac_ext <<_ACEOF
3812 cat confdefs.h >>conftest.$ac_ext
3813 cat >>conftest.$ac_ext <<_ACEOF
3814 /* end confdefs.h. */
3827 rm -f conftest.$ac_objext
3828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3829 (eval $ac_compile) 2>conftest.er1
3831 grep -v '^ *+' conftest.er1 >conftest.err
3833 cat conftest.err >&5
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); } &&
3836 { ac_try='test -z "$ac_c_werror_flag"
3837 || test ! -s conftest.err'
3838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); }; } &&
3843 { ac_try='test -s conftest.$ac_objext'
3844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); }; }; then
3851 echo "$as_me: failed program was:" >&5
3852 sed 's/^/| /' conftest.$ac_ext >&5
3856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3857 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3860 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3861 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3862 GCC=`test $ac_compiler_gnu = yes && echo yes`
3863 ac_test_CFLAGS=${CFLAGS+set}
3864 ac_save_CFLAGS=$CFLAGS
3866 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3867 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3868 if test "${ac_cv_prog_cc_g+set}" = set; then
3869 echo $ECHO_N "(cached) $ECHO_C" >&6
3871 cat >conftest.$ac_ext <<_ACEOF
3874 cat confdefs.h >>conftest.$ac_ext
3875 cat >>conftest.$ac_ext <<_ACEOF
3876 /* end confdefs.h. */
3886 rm -f conftest.$ac_objext
3887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3888 (eval $ac_compile) 2>conftest.er1
3890 grep -v '^ *+' conftest.er1 >conftest.err
3892 cat conftest.err >&5
3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894 (exit $ac_status); } &&
3895 { ac_try='test -z "$ac_c_werror_flag"
3896 || test ! -s conftest.err'
3897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); }; } &&
3902 { ac_try='test -s conftest.$ac_objext'
3903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); }; }; then
3910 echo "$as_me: failed program was:" >&5
3911 sed 's/^/| /' conftest.$ac_ext >&5
3915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3917 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3918 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3919 if test "$ac_test_CFLAGS" = set; then
3920 CFLAGS=$ac_save_CFLAGS
3921 elif test $ac_cv_prog_cc_g = yes; then
3922 if test "$GCC" = yes; then
3928 if test "$GCC" = yes; then
3934 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3935 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3936 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3937 echo $ECHO_N "(cached) $ECHO_C" >&6
3939 ac_cv_prog_cc_stdc=no
3941 cat >conftest.$ac_ext <<_ACEOF
3944 cat confdefs.h >>conftest.$ac_ext
3945 cat >>conftest.$ac_ext <<_ACEOF
3946 /* end confdefs.h. */
3949 #include <sys/types.h>
3950 #include <sys/stat.h>
3951 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3952 struct buf { int x; };
3953 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3954 static char *e (p, i)
3960 static char *f (char * (*g) (char **, int), char **p, ...)
3965 s = g (p, va_arg (v,int));
3970 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3971 function prototypes and stuff, but not '\xHH' hex character constants.
3972 These don't provoke an error unfortunately, instead are silently treated
3973 as 'x'. The following induces an error, until -std1 is added to get
3974 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3975 array size at least. It's necessary to write '\x00'==0 to get something
3976 that's true only with -std1. */
3977 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3979 int test (int i, double x);
3980 struct s1 {int (*f) (int a);};
3981 struct s2 {int (*f) (double a);};
3982 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3988 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3993 # Don't try gcc -ansi; that turns off useful extensions and
3994 # breaks some systems' header files.
3995 # AIX -qlanglvl=ansi
3996 # Ultrix and OSF/1 -std1
3997 # HP-UX 10.20 and later -Ae
3998 # HP-UX older versions -Aa -D_HPUX_SOURCE
3999 # SVR4 -Xc -D__EXTENSIONS__
4000 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4002 CC="$ac_save_CC $ac_arg"
4003 rm -f conftest.$ac_objext
4004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4005 (eval $ac_compile) 2>conftest.er1
4007 grep -v '^ *+' conftest.er1 >conftest.err
4009 cat conftest.err >&5
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); } &&
4012 { ac_try='test -z "$ac_c_werror_flag"
4013 || test ! -s conftest.err'
4014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }; } &&
4019 { ac_try='test -s conftest.$ac_objext'
4020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); }; }; then
4025 ac_cv_prog_cc_stdc=$ac_arg
4028 echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4032 rm -f conftest.err conftest.$ac_objext
4034 rm -f conftest.$ac_ext conftest.$ac_objext
4039 case "x$ac_cv_prog_cc_stdc" in
4041 echo "$as_me:$LINENO: result: none needed" >&5
4042 echo "${ECHO_T}none needed" >&6 ;;
4044 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4045 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4046 CC="$CC $ac_cv_prog_cc_stdc" ;;
4049 # Some people use a C++ compiler to compile C. Since we use `exit',
4050 # in C++ we need to declare it. In case someone uses the same compiler
4051 # for both compiling C and C++ we need to have the C++ compiler decide
4052 # the declaration of exit, since it's the most demanding environment.
4053 cat >conftest.$ac_ext <<_ACEOF
4058 rm -f conftest.$ac_objext
4059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4060 (eval $ac_compile) 2>conftest.er1
4062 grep -v '^ *+' conftest.er1 >conftest.err
4064 cat conftest.err >&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); } &&
4067 { ac_try='test -z "$ac_c_werror_flag"
4068 || test ! -s conftest.err'
4069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); }; } &&
4074 { ac_try='test -s conftest.$ac_objext'
4075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; }; then
4080 for ac_declaration in \
4082 'extern "C" void std::exit (int) throw (); using std::exit;' \
4083 'extern "C" void std::exit (int); using std::exit;' \
4084 'extern "C" void exit (int) throw ();' \
4085 'extern "C" void exit (int);' \
4088 cat >conftest.$ac_ext <<_ACEOF
4091 cat confdefs.h >>conftest.$ac_ext
4092 cat >>conftest.$ac_ext <<_ACEOF
4093 /* end confdefs.h. */
4104 rm -f conftest.$ac_objext
4105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4106 (eval $ac_compile) 2>conftest.er1
4108 grep -v '^ *+' conftest.er1 >conftest.err
4110 cat conftest.err >&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); } &&
4113 { ac_try='test -z "$ac_c_werror_flag"
4114 || test ! -s conftest.err'
4115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); }; } &&
4120 { ac_try='test -s conftest.$ac_objext'
4121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); }; }; then
4128 echo "$as_me: failed program was:" >&5
4129 sed 's/^/| /' conftest.$ac_ext >&5
4133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4134 cat >conftest.$ac_ext <<_ACEOF
4137 cat confdefs.h >>conftest.$ac_ext
4138 cat >>conftest.$ac_ext <<_ACEOF
4139 /* end confdefs.h. */
4149 rm -f conftest.$ac_objext
4150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4151 (eval $ac_compile) 2>conftest.er1
4153 grep -v '^ *+' conftest.er1 >conftest.err
4155 cat conftest.err >&5
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); } &&
4158 { ac_try='test -z "$ac_c_werror_flag"
4159 || test ! -s conftest.err'
4160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; } &&
4165 { ac_try='test -s conftest.$ac_objext'
4166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); }; }; then
4173 echo "$as_me: failed program was:" >&5
4174 sed 's/^/| /' conftest.$ac_ext >&5
4177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4180 if test -n "$ac_declaration"; then
4181 echo '#ifdef __cplusplus' >>confdefs.h
4182 echo $ac_declaration >>confdefs.h
4183 echo '#endif' >>confdefs.h
4187 echo "$as_me: failed program was:" >&5
4188 sed 's/^/| /' conftest.$ac_ext >&5
4191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4193 ac_cpp='$CPP $CPPFLAGS'
4194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4199 cat >>confdefs.h <<\_ACEOF
4200 #define _GNU_SOURCE 1
4205 ac_cpp='$CPP $CPPFLAGS'
4206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4209 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4210 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4211 # On Suns, sometimes $CPP names a directory.
4212 if test -n "$CPP" && test -d "$CPP"; then
4215 if test -z "$CPP"; then
4216 if test "${ac_cv_prog_CPP+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4219 # Double quotes because CPP needs to be expanded
4220 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4223 for ac_c_preproc_warn_flag in '' yes
4225 # Use a header file that comes with gcc, so configuring glibc
4226 # with a fresh cross-compiler works.
4227 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4228 # <limits.h> exists even on freestanding compilers.
4229 # On the NeXT, cc -E runs the code through the compiler's parser,
4230 # not just through cpp. "Syntax error" is here to catch this case.
4231 cat >conftest.$ac_ext <<_ACEOF
4234 cat confdefs.h >>conftest.$ac_ext
4235 cat >>conftest.$ac_ext <<_ACEOF
4236 /* end confdefs.h. */
4238 # include <limits.h>
4240 # include <assert.h>
4244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4247 grep -v '^ *+' conftest.er1 >conftest.err
4249 cat conftest.err >&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); } >/dev/null; then
4252 if test -s conftest.err; then
4253 ac_cpp_err=$ac_c_preproc_warn_flag
4254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4261 if test -z "$ac_cpp_err"; then
4264 echo "$as_me: failed program was:" >&5
4265 sed 's/^/| /' conftest.$ac_ext >&5
4267 # Broken: fails on valid input.
4270 rm -f conftest.err conftest.$ac_ext
4272 # OK, works on sane cases. Now check whether non-existent headers
4273 # can be detected and how.
4274 cat >conftest.$ac_ext <<_ACEOF
4277 cat confdefs.h >>conftest.$ac_ext
4278 cat >>conftest.$ac_ext <<_ACEOF
4279 /* end confdefs.h. */
4280 #include <ac_nonexistent.h>
4282 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4283 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4285 grep -v '^ *+' conftest.er1 >conftest.err
4287 cat conftest.err >&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); } >/dev/null; then
4290 if test -s conftest.err; then
4291 ac_cpp_err=$ac_c_preproc_warn_flag
4292 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4299 if test -z "$ac_cpp_err"; then
4300 # Broken: success on invalid input.
4303 echo "$as_me: failed program was:" >&5
4304 sed 's/^/| /' conftest.$ac_ext >&5
4306 # Passes both tests.
4310 rm -f conftest.err conftest.$ac_ext
4313 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4314 rm -f conftest.err conftest.$ac_ext
4315 if $ac_preproc_ok; then
4327 echo "$as_me:$LINENO: result: $CPP" >&5
4328 echo "${ECHO_T}$CPP" >&6
4330 for ac_c_preproc_warn_flag in '' yes
4332 # Use a header file that comes with gcc, so configuring glibc
4333 # with a fresh cross-compiler works.
4334 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4335 # <limits.h> exists even on freestanding compilers.
4336 # On the NeXT, cc -E runs the code through the compiler's parser,
4337 # not just through cpp. "Syntax error" is here to catch this case.
4338 cat >conftest.$ac_ext <<_ACEOF
4341 cat confdefs.h >>conftest.$ac_ext
4342 cat >>conftest.$ac_ext <<_ACEOF
4343 /* end confdefs.h. */
4345 # include <limits.h>
4347 # include <assert.h>
4351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4354 grep -v '^ *+' conftest.er1 >conftest.err
4356 cat conftest.err >&5
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); } >/dev/null; then
4359 if test -s conftest.err; then
4360 ac_cpp_err=$ac_c_preproc_warn_flag
4361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4368 if test -z "$ac_cpp_err"; then
4371 echo "$as_me: failed program was:" >&5
4372 sed 's/^/| /' conftest.$ac_ext >&5
4374 # Broken: fails on valid input.
4377 rm -f conftest.err conftest.$ac_ext
4379 # OK, works on sane cases. Now check whether non-existent headers
4380 # can be detected and how.
4381 cat >conftest.$ac_ext <<_ACEOF
4384 cat confdefs.h >>conftest.$ac_ext
4385 cat >>conftest.$ac_ext <<_ACEOF
4386 /* end confdefs.h. */
4387 #include <ac_nonexistent.h>
4389 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4392 grep -v '^ *+' conftest.er1 >conftest.err
4394 cat conftest.err >&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } >/dev/null; then
4397 if test -s conftest.err; then
4398 ac_cpp_err=$ac_c_preproc_warn_flag
4399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4406 if test -z "$ac_cpp_err"; then
4407 # Broken: success on invalid input.
4410 echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4413 # Passes both tests.
4417 rm -f conftest.err conftest.$ac_ext
4420 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4421 rm -f conftest.err conftest.$ac_ext
4422 if $ac_preproc_ok; then
4425 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4426 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4427 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4428 See \`config.log' for more details." >&5
4429 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4430 See \`config.log' for more details." >&2;}
4431 { (exit 1); exit 1; }; }; }
4435 ac_cpp='$CPP $CPPFLAGS'
4436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4441 echo "$as_me:$LINENO: checking for egrep" >&5
4442 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4443 if test "${ac_cv_prog_egrep+set}" = set; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
4446 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4447 then ac_cv_prog_egrep='grep -E'
4448 else ac_cv_prog_egrep='egrep'
4451 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4452 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4453 EGREP=$ac_cv_prog_egrep
4456 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4457 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4458 if test "${ac_cv_header_stdc+set}" = set; then
4459 echo $ECHO_N "(cached) $ECHO_C" >&6
4461 cat >conftest.$ac_ext <<_ACEOF
4464 cat confdefs.h >>conftest.$ac_ext
4465 cat >>conftest.$ac_ext <<_ACEOF
4466 /* end confdefs.h. */
4480 rm -f conftest.$ac_objext
4481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4482 (eval $ac_compile) 2>conftest.er1
4484 grep -v '^ *+' conftest.er1 >conftest.err
4486 cat conftest.err >&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); } &&
4489 { ac_try='test -z "$ac_c_werror_flag"
4490 || test ! -s conftest.err'
4491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); }; } &&
4496 { ac_try='test -s conftest.$ac_objext'
4497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; }; then
4502 ac_cv_header_stdc=yes
4504 echo "$as_me: failed program was:" >&5
4505 sed 's/^/| /' conftest.$ac_ext >&5
4507 ac_cv_header_stdc=no
4509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4511 if test $ac_cv_header_stdc = yes; then
4512 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4513 cat >conftest.$ac_ext <<_ACEOF
4516 cat confdefs.h >>conftest.$ac_ext
4517 cat >>conftest.$ac_ext <<_ACEOF
4518 /* end confdefs.h. */
4522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4523 $EGREP "memchr" >/dev/null 2>&1; then
4526 ac_cv_header_stdc=no
4532 if test $ac_cv_header_stdc = yes; then
4533 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4534 cat >conftest.$ac_ext <<_ACEOF
4537 cat confdefs.h >>conftest.$ac_ext
4538 cat >>conftest.$ac_ext <<_ACEOF
4539 /* end confdefs.h. */
4543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4544 $EGREP "free" >/dev/null 2>&1; then
4547 ac_cv_header_stdc=no
4553 if test $ac_cv_header_stdc = yes; then
4554 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4555 if test "$cross_compiling" = yes; then
4558 cat >conftest.$ac_ext <<_ACEOF
4561 cat confdefs.h >>conftest.$ac_ext
4562 cat >>conftest.$ac_ext <<_ACEOF
4563 /* end confdefs.h. */
4565 #if ((' ' & 0x0FF) == 0x020)
4566 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4567 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4569 # define ISLOWER(c) \
4570 (('a' <= (c) && (c) <= 'i') \
4571 || ('j' <= (c) && (c) <= 'r') \
4572 || ('s' <= (c) && (c) <= 'z'))
4573 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4576 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4581 for (i = 0; i < 256; i++)
4582 if (XOR (islower (i), ISLOWER (i))
4583 || toupper (i) != TOUPPER (i))
4588 rm -f conftest$ac_exeext
4589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4590 (eval $ac_link) 2>&5
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }; }; then
4601 echo "$as_me: program exited with status $ac_status" >&5
4602 echo "$as_me: failed program was:" >&5
4603 sed 's/^/| /' conftest.$ac_ext >&5
4606 ac_cv_header_stdc=no
4608 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4612 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4613 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4614 if test $ac_cv_header_stdc = yes; then
4616 cat >>confdefs.h <<\_ACEOF
4617 #define STDC_HEADERS 1
4622 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4632 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4633 inttypes.h stdint.h unistd.h
4635 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4636 echo "$as_me:$LINENO: checking for $ac_header" >&5
4637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4641 cat >conftest.$ac_ext <<_ACEOF
4644 cat confdefs.h >>conftest.$ac_ext
4645 cat >>conftest.$ac_ext <<_ACEOF
4646 /* end confdefs.h. */
4647 $ac_includes_default
4649 #include <$ac_header>
4651 rm -f conftest.$ac_objext
4652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4653 (eval $ac_compile) 2>conftest.er1
4655 grep -v '^ *+' conftest.er1 >conftest.err
4657 cat conftest.err >&5
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); } &&
4660 { ac_try='test -z "$ac_c_werror_flag"
4661 || test ! -s conftest.err'
4662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); }; } &&
4667 { ac_try='test -s conftest.$ac_objext'
4668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); }; }; then
4673 eval "$as_ac_Header=yes"
4675 echo "$as_me: failed program was:" >&5
4676 sed 's/^/| /' conftest.$ac_ext >&5
4678 eval "$as_ac_Header=no"
4680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4682 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4683 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4684 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4685 cat >>confdefs.h <<_ACEOF
4686 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4695 if test "${ac_cv_header_minix_config_h+set}" = set; then
4696 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4697 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4698 if test "${ac_cv_header_minix_config_h+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4702 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4704 # Is the header compilable?
4705 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4706 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4707 cat >conftest.$ac_ext <<_ACEOF
4710 cat confdefs.h >>conftest.$ac_ext
4711 cat >>conftest.$ac_ext <<_ACEOF
4712 /* end confdefs.h. */
4713 $ac_includes_default
4714 #include <minix/config.h>
4716 rm -f conftest.$ac_objext
4717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4718 (eval $ac_compile) 2>conftest.er1
4720 grep -v '^ *+' conftest.er1 >conftest.err
4722 cat conftest.err >&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); } &&
4725 { ac_try='test -z "$ac_c_werror_flag"
4726 || test ! -s conftest.err'
4727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); }; } &&
4732 { ac_try='test -s conftest.$ac_objext'
4733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); }; }; then
4738 ac_header_compiler=yes
4740 echo "$as_me: failed program was:" >&5
4741 sed 's/^/| /' conftest.$ac_ext >&5
4743 ac_header_compiler=no
4745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4746 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4747 echo "${ECHO_T}$ac_header_compiler" >&6
4749 # Is the header present?
4750 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4751 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4752 cat >conftest.$ac_ext <<_ACEOF
4755 cat confdefs.h >>conftest.$ac_ext
4756 cat >>conftest.$ac_ext <<_ACEOF
4757 /* end confdefs.h. */
4758 #include <minix/config.h>
4760 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4761 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4763 grep -v '^ *+' conftest.er1 >conftest.err
4765 cat conftest.err >&5
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); } >/dev/null; then
4768 if test -s conftest.err; then
4769 ac_cpp_err=$ac_c_preproc_warn_flag
4770 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4777 if test -z "$ac_cpp_err"; then
4778 ac_header_preproc=yes
4780 echo "$as_me: failed program was:" >&5
4781 sed 's/^/| /' conftest.$ac_ext >&5
4783 ac_header_preproc=no
4785 rm -f conftest.err conftest.$ac_ext
4786 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4787 echo "${ECHO_T}$ac_header_preproc" >&6
4789 # So? What about this header?
4790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4792 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4793 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4794 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4795 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4796 ac_header_preproc=yes
4799 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4800 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4801 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4802 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4803 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4804 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4805 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4806 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4807 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4808 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4809 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4810 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4813 ## ------------------------------------------ ##
4814 ## Report this to the AC_PACKAGE_NAME lists. ##
4815 ## ------------------------------------------ ##
4818 sed "s/^/$as_me: WARNING: /" >&2
4821 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4822 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4823 if test "${ac_cv_header_minix_config_h+set}" = set; then
4824 echo $ECHO_N "(cached) $ECHO_C" >&6
4826 ac_cv_header_minix_config_h=$ac_header_preproc
4828 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4829 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4832 if test $ac_cv_header_minix_config_h = yes; then
4839 if test "$MINIX" = yes; then
4841 cat >>confdefs.h <<\_ACEOF
4842 #define _POSIX_SOURCE 1
4846 cat >>confdefs.h <<\_ACEOF
4847 #define _POSIX_1_SOURCE 2
4851 cat >>confdefs.h <<\_ACEOF
4859 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4860 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4861 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4864 cat >conftest.$ac_ext <<_ACEOF
4867 cat confdefs.h >>conftest.$ac_ext
4868 cat >>conftest.$ac_ext <<_ACEOF
4869 /* end confdefs.h. */
4871 # define __EXTENSIONS__ 1
4872 $ac_includes_default
4881 rm -f conftest.$ac_objext
4882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4883 (eval $ac_compile) 2>conftest.er1
4885 grep -v '^ *+' conftest.er1 >conftest.err
4887 cat conftest.err >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } &&
4890 { ac_try='test -z "$ac_c_werror_flag"
4891 || test ! -s conftest.err'
4892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }; } &&
4897 { ac_try='test -s conftest.$ac_objext'
4898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }; }; then
4903 ac_cv_safe_to_define___extensions__=yes
4905 echo "$as_me: failed program was:" >&5
4906 sed 's/^/| /' conftest.$ac_ext >&5
4908 ac_cv_safe_to_define___extensions__=no
4910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4912 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4913 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4914 test $ac_cv_safe_to_define___extensions__ = yes &&
4915 cat >>confdefs.h <<\_ACEOF
4916 #define __EXTENSIONS__ 1
4919 cat >>confdefs.h <<\_ACEOF
4920 #define _ALL_SOURCE 1
4923 cat >>confdefs.h <<\_ACEOF
4924 #define _GNU_SOURCE 1
4927 cat >>confdefs.h <<\_ACEOF
4928 #define _POSIX_PTHREAD_SEMANTICS 1
4931 cat >>confdefs.h <<\_ACEOF
4932 #define _TANDEM_SOURCE 1
4939 macro_version='2.1a'
4940 macro_revision='1.2435'
4953 ltmain="$ac_aux_dir/ltmain.sh"
4964 # Check whether --enable-static or --disable-static was given.
4965 if test "${enable_static+set}" = set; then
4966 enableval="$enable_static"
4967 p=${PACKAGE-default}
4969 yes) enable_static=yes ;;
4970 no) enable_static=no ;;
4973 # Look at the argument we got. We use all the common list separators.
4974 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4975 for pkg in $enableval; do
4977 if test "X$pkg" = "X$p"; then
4996 # Check whether --with-pic or --without-pic was given.
4997 if test "${with_pic+set}" = set; then
5004 test -z "$pic_mode" && pic_mode=default
5012 # Check whether --enable-fast-install or --disable-fast-install was given.
5013 if test "${enable_fast_install+set}" = set; then
5014 enableval="$enable_fast_install"
5015 p=${PACKAGE-default}
5017 yes) enable_fast_install=yes ;;
5018 no) enable_fast_install=no ;;
5020 enable_fast_install=no
5021 # Look at the argument we got. We use all the common list separators.
5022 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5023 for pkg in $enableval; do
5025 if test "X$pkg" = "X$p"; then
5026 enable_fast_install=yes
5033 enable_fast_install=yes
5043 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5044 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5045 if test "${lt_cv_path_SED+set}" = set; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5048 # Loop through the user's path and test for sed and gsed.
5049 # Then use that list of sed's as ones to test for truncation.
5050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054 test -z "$as_dir" && as_dir=.
5055 for lt_ac_prog in sed gsed; do
5056 for ac_exec_ext in '' $ac_executable_extensions; do
5057 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5058 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5066 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5067 # along with /bin/sed that truncates output.
5068 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5069 test ! -f $lt_ac_sed && continue
5070 cat /dev/null > conftest.in
5072 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5073 # Check for GNU sed and select it if it is found.
5074 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5075 lt_cv_path_SED=$lt_ac_sed
5079 cat conftest.in conftest.in >conftest.tmp
5080 mv conftest.tmp conftest.in
5081 cp conftest.in conftest.nl
5083 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5084 cmp -s conftest.out conftest.nl || break
5085 # 10000 chars as input seems more than enough
5086 test $lt_ac_count -gt 10 && break
5087 lt_ac_count=`expr $lt_ac_count + 1`
5088 if test $lt_ac_count -gt $lt_ac_max; then
5089 lt_ac_max=$lt_ac_count
5090 lt_cv_path_SED=$lt_ac_sed
5099 echo "$as_me:$LINENO: result: $SED" >&5
5100 echo "${ECHO_T}$SED" >&6
5102 test -z "$SED" && SED=sed
5103 Xsed="$SED -e 1s/^X//"
5115 echo "$as_me:$LINENO: checking for fgrep" >&5
5116 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5117 if test "${ac_cv_prog_fgrep+set}" = set; then
5118 echo $ECHO_N "(cached) $ECHO_C" >&6
5120 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5121 then ac_cv_prog_fgrep='grep -F'
5122 else ac_cv_prog_fgrep='fgrep'
5125 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5126 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5127 FGREP=$ac_cv_prog_fgrep
5130 test -z "$GREP" && GREP=grep
5150 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5151 if test "${with_gnu_ld+set}" = set; then
5152 withval="$with_gnu_ld"
5153 test "$withval" = no || with_gnu_ld=yes
5158 if test "$GCC" = yes; then
5159 # Check if gcc -print-prog-name=ld gives a path.
5160 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5161 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5164 # gcc leaves a trailing carriage return which upsets mingw
5165 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5167 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5170 # Accept absolute paths.
5172 re_direlt='/[^/][^/]*/\.\./'
5173 # Canonicalize the pathname of ld
5174 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5175 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5176 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5178 test -z "$LD" && LD="$ac_prog"
5181 # If it fails, then pretend we aren't using GCC.
5185 # If it is relative, then search for the first ld in PATH.
5189 elif test "$with_gnu_ld" = yes; then
5190 echo "$as_me:$LINENO: checking for GNU ld" >&5
5191 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5193 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5194 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5196 if test "${lt_cv_path_LD+set}" = set; then
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 if test -z "$LD"; then
5200 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5201 for ac_dir in $PATH; do
5203 test -z "$ac_dir" && ac_dir=.
5204 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5205 lt_cv_path_LD="$ac_dir/$ac_prog"
5206 # Check to see if the program is GNU ld. I'd rather use --version,
5207 # but apparently some variants of GNU ld only accept -v.
5208 # Break only if it was the GNU/non-GNU ld that we prefer.
5209 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5210 *GNU* | *'with BFD'*)
5211 test "$with_gnu_ld" != no && break
5214 test "$with_gnu_ld" != yes && break
5221 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5226 if test -n "$LD"; then
5227 echo "$as_me:$LINENO: result: $LD" >&5
5228 echo "${ECHO_T}$LD" >&6
5230 echo "$as_me:$LINENO: result: no" >&5
5231 echo "${ECHO_T}no" >&6
5233 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5234 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5235 { (exit 1); exit 1; }; }
5236 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5237 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5238 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
5241 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5242 case `$LD -v 2>&1 </dev/null` in
5243 *GNU* | *'with BFD'*)
5244 lt_cv_prog_gnu_ld=yes
5247 lt_cv_prog_gnu_ld=no
5251 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5252 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5253 with_gnu_ld=$lt_cv_prog_gnu_ld
5264 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5265 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5266 if test "${lt_cv_path_NM+set}" = set; then
5267 echo $ECHO_N "(cached) $ECHO_C" >&6
5269 if test -n "$NM"; then
5270 # Let the user override the test.
5273 lt_nm_to_check="${ac_tool_prefix}nm"
5274 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5275 lt_nm_to_check="$lt_nm_to_check nm"
5277 for lt_tmp_nm in $lt_nm_to_check; do
5278 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5279 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5281 test -z "$ac_dir" && ac_dir=.
5282 tmp_nm="$ac_dir/$lt_tmp_nm"
5283 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5284 # Check to see if the nm accepts a BSD-compat flag.
5285 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5286 # nm: unknown option "B" ignored
5287 # Tru64's nm complains that /dev/null is an invalid object file
5288 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5289 */dev/null* | *'Invalid file or object type'*)
5290 lt_cv_path_NM="$tmp_nm -B"
5294 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5296 lt_cv_path_NM="$tmp_nm -p"
5300 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5301 continue # so that we can try to find one that supports BSD flags
5310 : ${lt_cv_path_NM=no}
5313 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5314 echo "${ECHO_T}$lt_cv_path_NM" >&6
5315 if test "$lt_cv_path_NM" != "no"; then
5318 # Didn't find any BSD compatible name lister, look for dumpbin.
5319 if test -n "$ac_tool_prefix"; then
5320 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5322 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5323 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5324 echo "$as_me:$LINENO: checking for $ac_word" >&5
5325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5326 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5327 echo $ECHO_N "(cached) $ECHO_C" >&6
5329 if test -n "$DUMPBIN"; then
5330 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336 test -z "$as_dir" && as_dir=.
5337 for ac_exec_ext in '' $ac_executable_extensions; do
5338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5339 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5348 DUMPBIN=$ac_cv_prog_DUMPBIN
5349 if test -n "$DUMPBIN"; then
5350 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5351 echo "${ECHO_T}$DUMPBIN" >&6
5353 echo "$as_me:$LINENO: result: no" >&5
5354 echo "${ECHO_T}no" >&6
5357 test -n "$DUMPBIN" && break
5360 if test -z "$DUMPBIN"; then
5361 ac_ct_DUMPBIN=$DUMPBIN
5362 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5364 # Extract the first word of "$ac_prog", so it can be a program name with args.
5365 set dummy $ac_prog; ac_word=$2
5366 echo "$as_me:$LINENO: checking for $ac_word" >&5
5367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5368 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5369 echo $ECHO_N "(cached) $ECHO_C" >&6
5371 if test -n "$ac_ct_DUMPBIN"; then
5372 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5378 test -z "$as_dir" && as_dir=.
5379 for ac_exec_ext in '' $ac_executable_extensions; do
5380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5381 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5390 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5391 if test -n "$ac_ct_DUMPBIN"; then
5392 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5393 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5395 echo "$as_me:$LINENO: result: no" >&5
5396 echo "${ECHO_T}no" >&6
5399 test -n "$ac_ct_DUMPBIN" && break
5401 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5403 DUMPBIN=$ac_ct_DUMPBIN
5407 if test "$DUMPBIN" != ":"; then
5411 test -z "$NM" && NM=nm
5418 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5419 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5420 if test "${lt_cv_nm_interface+set}" = set; then
5421 echo $ECHO_N "(cached) $ECHO_C" >&6
5423 lt_cv_nm_interface="BSD nm"
5424 echo "int some_variable = 0;" > conftest.$ac_ext
5425 (eval echo "\"\$as_me:5425: $ac_compile\"" >&5)
5426 (eval "$ac_compile" 2>conftest.err)
5427 cat conftest.err >&5
5428 (eval echo "\"\$as_me:5428: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5429 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5430 cat conftest.err >&5
5431 (eval echo "\"\$as_me:5431: output\"" >&5)
5432 cat conftest.out >&5
5433 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5434 lt_cv_nm_interface="MS dumpbin"
5438 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5439 echo "${ECHO_T}$lt_cv_nm_interface" >&6
5441 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5442 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5444 if test "$LN_S" = "ln -s"; then
5445 echo "$as_me:$LINENO: result: yes" >&5
5446 echo "${ECHO_T}yes" >&6
5448 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5449 echo "${ECHO_T}no, using $LN_S" >&6
5452 # find the maximum length of command line arguments
5453 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5454 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5455 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5456 echo $ECHO_N "(cached) $ECHO_C" >&6
5463 # On DJGPP, this test can blow up pretty badly due to problems in libc
5464 # (any single argument exceeding 2000 bytes causes a buffer overrun
5465 # during glob expansion). Even if it were fixed, the result of this
5466 # check would be larger than it should be.
5467 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5471 # Under GNU Hurd, this test is not required because there is
5472 # no limit to the length of command line arguments.
5473 # Libtool will interpret -1 as no limit whatsoever
5474 lt_cv_sys_max_cmd_len=-1;
5478 # On Win9x/ME, this test blows up -- it succeeds, but takes
5479 # about 5 minutes as the teststring grows exponentially.
5480 # Worse, since 9x/ME are not pre-emptively multitasking,
5481 # you end up with a "frozen" computer, even though with patience
5482 # the test eventually succeeds (with a max line length of 256k).
5483 # Instead, let's just punt: use the minimum linelength reported by
5484 # all of the supported platforms: 8192 (on NT/2K/XP).
5485 lt_cv_sys_max_cmd_len=8192;
5489 # On AmigaOS with pdksh, this test takes hours, literally.
5490 # So we just punt and use a minimum line length of 8192.
5491 lt_cv_sys_max_cmd_len=8192;
5494 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5495 # This has been around since 386BSD, at least. Likely further.
5496 if test -x /sbin/sysctl; then
5497 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5498 elif test -x /usr/sbin/sysctl; then
5499 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5501 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5503 # And add a safety zone
5504 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5505 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5509 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5510 lt_cv_sys_max_cmd_len=196608
5514 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5515 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5516 # nice to cause kernel panics so lets avoid the loop below.
5517 # First set a reasonable default.
5518 lt_cv_sys_max_cmd_len=16384
5520 if test -x /sbin/sysconfig; then
5521 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5522 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5527 lt_cv_sys_max_cmd_len=102400
5529 sysv5* | sco5v6* | sysv4.2uw2*)
5530 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5531 if test -n "$kargmax"; then
5532 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5534 lt_cv_sys_max_cmd_len=32768
5538 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
5539 if test -n $lt_cv_sys_max_cmd_len; then
5540 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5541 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5543 # Make teststring a little bigger before we do anything with it.
5544 # a 1K string should be a reasonable start.
5545 for i in 1 2 3 4 5 6 7 8 ; do
5546 teststring=$teststring$teststring
5548 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5549 # If test is not a shell built-in, we'll probably end up computing a
5550 # maximum length that is only half of the actual maximum length, but
5552 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5553 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5554 test $i != 17 # 1/2 MB should be enough
5557 teststring=$teststring$teststring
5559 # Only check the string length outside the loop.
5560 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5562 # Add a significant safety factor because C++ compilers can tack on
5563 # massive amounts of additional arguments before passing them to the
5564 # linker. It appears as though 1/2 is a usable value.
5565 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5572 if test -n $lt_cv_sys_max_cmd_len ; then
5573 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5574 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5576 echo "$as_me:$LINENO: result: none" >&5
5577 echo "${ECHO_T}none" >&6
5579 max_cmd_len=$lt_cv_sys_max_cmd_len
5591 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5592 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5593 # Try some XSI features
5596 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5597 = c,a/b,, ) >/dev/null 2>&1 \
5599 echo "$as_me:$LINENO: result: $xsi_shell" >&5
5600 echo "${ECHO_T}$xsi_shell" >&6
5603 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5604 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5606 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5608 && lt_shell_append=yes
5609 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5610 echo "${ECHO_T}$lt_shell_append" >&6
5613 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5623 # test EBCDIC or ASCII
5624 case `echo X|tr X '\101'` in
5625 A) # ASCII based system
5626 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5627 lt_SP2NL='tr \040 \012'
5628 lt_NL2SP='tr \015\012 \040\040'
5630 *) # EBCDIC based system
5631 lt_SP2NL='tr \100 \n'
5632 lt_NL2SP='tr \r\n \100\100'
5644 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5645 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5646 if test "${lt_cv_ld_reload_flag+set}" = set; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
5649 lt_cv_ld_reload_flag='-r'
5651 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5652 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5653 reload_flag=$lt_cv_ld_reload_flag
5654 case $reload_flag in
5656 *) reload_flag=" $reload_flag" ;;
5658 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5661 if test "$GCC" = yes; then
5662 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5664 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5678 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5679 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5680 if test "${lt_cv_deplibs_check_method+set}" = set; then
5681 echo $ECHO_N "(cached) $ECHO_C" >&6
5683 lt_cv_file_magic_cmd='$MAGIC_CMD'
5684 lt_cv_file_magic_test_file=
5685 lt_cv_deplibs_check_method='unknown'
5686 # Need to set the preceding variable on all platforms that support
5687 # interlibrary dependencies.
5688 # 'none' -- dependencies not supported.
5689 # `unknown' -- same as none, but documents that we really don't know.
5690 # 'pass_all' -- all dependencies passed with no checks.
5691 # 'test_compile' -- check by making test program.
5692 # 'file_magic [[regex]]' -- check by looking for files in library path
5693 # which responds to the $file_magic_cmd with a given extended regex.
5694 # If you have `file' or equivalent on your system and you're not sure
5695 # whether `pass_all' will *always* work, you probably want this one.
5699 lt_cv_deplibs_check_method=pass_all
5703 lt_cv_deplibs_check_method=pass_all
5707 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5708 lt_cv_file_magic_cmd='/usr/bin/file -L'
5709 lt_cv_file_magic_test_file=/shlib/libc.so
5713 # func_win32_libid is a shell function defined in ltmain.sh
5714 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5715 lt_cv_file_magic_cmd='func_win32_libid'
5719 # Base MSYS/MinGW do not provide the 'file' command needed by
5720 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5721 # unless we find 'file', for example because we are cross-compiling.
5722 if ( file / ) >/dev/null 2>&1; then
5723 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5724 lt_cv_file_magic_cmd='func_win32_libid'
5726 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5727 lt_cv_file_magic_cmd='$OBJDUMP -f'
5731 darwin* | rhapsody*)
5732 lt_cv_deplibs_check_method=pass_all
5735 freebsd* | dragonfly*)
5736 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5739 # Not sure whether the presence of OpenBSD here was a mistake.
5740 # Let's accept both of them until this is cleared up.
5741 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5742 lt_cv_file_magic_cmd=/usr/bin/file
5743 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5747 lt_cv_deplibs_check_method=pass_all
5752 lt_cv_deplibs_check_method=pass_all
5755 hpux10.20* | hpux11*)
5756 lt_cv_file_magic_cmd=/usr/bin/file
5759 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5760 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5763 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]'
5764 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5767 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5768 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5774 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5775 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5778 irix5* | irix6* | nonstopux*)
5780 *-32|*"-32 ") libmagic=32-bit;;
5781 *-n32|*"-n32 ") libmagic=N32;;
5782 *-64|*"-64 ") libmagic=64-bit;;
5783 *) libmagic=never-match;;
5785 lt_cv_deplibs_check_method=pass_all
5788 # This must be Linux ELF.
5789 linux* | k*bsd*-gnu)
5790 lt_cv_deplibs_check_method=pass_all
5794 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5795 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5797 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5802 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5803 lt_cv_file_magic_cmd=/usr/bin/file
5804 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5808 lt_cv_deplibs_check_method=pass_all
5812 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5813 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5815 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5819 osf3* | osf4* | osf5*)
5820 lt_cv_deplibs_check_method=pass_all
5824 lt_cv_deplibs_check_method=pass_all
5828 lt_cv_deplibs_check_method=pass_all
5831 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5832 lt_cv_deplibs_check_method=pass_all
5836 case $host_vendor in
5838 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]'
5839 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5842 lt_cv_deplibs_check_method=pass_all
5845 lt_cv_file_magic_cmd='/bin/file'
5846 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5849 lt_cv_file_magic_cmd='/bin/file'
5850 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5851 lt_cv_file_magic_test_file=/lib/libc.so
5854 lt_cv_deplibs_check_method=pass_all
5857 lt_cv_deplibs_check_method=pass_all
5863 lt_cv_deplibs_check_method=pass_all
5868 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5869 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5870 file_magic_cmd=$lt_cv_file_magic_cmd
5871 deplibs_check_method=$lt_cv_deplibs_check_method
5872 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5885 if test -n "$ac_tool_prefix"; then
5886 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5887 set dummy ${ac_tool_prefix}ar; ac_word=$2
5888 echo "$as_me:$LINENO: checking for $ac_word" >&5
5889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5890 if test "${ac_cv_prog_AR+set}" = set; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
5893 if test -n "$AR"; then
5894 ac_cv_prog_AR="$AR" # Let the user override the test.
5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900 test -z "$as_dir" && as_dir=.
5901 for ac_exec_ext in '' $ac_executable_extensions; do
5902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5903 ac_cv_prog_AR="${ac_tool_prefix}ar"
5904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5913 if test -n "$AR"; then
5914 echo "$as_me:$LINENO: result: $AR" >&5
5915 echo "${ECHO_T}$AR" >&6
5917 echo "$as_me:$LINENO: result: no" >&5
5918 echo "${ECHO_T}no" >&6
5922 if test -z "$ac_cv_prog_AR"; then
5924 # Extract the first word of "ar", so it can be a program name with args.
5925 set dummy ar; ac_word=$2
5926 echo "$as_me:$LINENO: checking for $ac_word" >&5
5927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5928 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5929 echo $ECHO_N "(cached) $ECHO_C" >&6
5931 if test -n "$ac_ct_AR"; then
5932 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 test -z "$as_dir" && as_dir=.
5939 for ac_exec_ext in '' $ac_executable_extensions; do
5940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5941 ac_cv_prog_ac_ct_AR="ar"
5942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5948 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5951 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5952 if test -n "$ac_ct_AR"; then
5953 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5954 echo "${ECHO_T}$ac_ct_AR" >&6
5956 echo "$as_me:$LINENO: result: no" >&5
5957 echo "${ECHO_T}no" >&6
5965 test -z "$AR" && AR=ar
5966 test -z "$AR_FLAGS" && AR_FLAGS=cru
5978 if test -n "$ac_tool_prefix"; then
5979 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5980 set dummy ${ac_tool_prefix}strip; ac_word=$2
5981 echo "$as_me:$LINENO: checking for $ac_word" >&5
5982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5983 if test "${ac_cv_prog_STRIP+set}" = set; then
5984 echo $ECHO_N "(cached) $ECHO_C" >&6
5986 if test -n "$STRIP"; then
5987 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993 test -z "$as_dir" && as_dir=.
5994 for ac_exec_ext in '' $ac_executable_extensions; do
5995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5996 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6005 STRIP=$ac_cv_prog_STRIP
6006 if test -n "$STRIP"; then
6007 echo "$as_me:$LINENO: result: $STRIP" >&5
6008 echo "${ECHO_T}$STRIP" >&6
6010 echo "$as_me:$LINENO: result: no" >&5
6011 echo "${ECHO_T}no" >&6
6015 if test -z "$ac_cv_prog_STRIP"; then
6017 # Extract the first word of "strip", so it can be a program name with args.
6018 set dummy strip; ac_word=$2
6019 echo "$as_me:$LINENO: checking for $ac_word" >&5
6020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6021 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6022 echo $ECHO_N "(cached) $ECHO_C" >&6
6024 if test -n "$ac_ct_STRIP"; then
6025 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6031 test -z "$as_dir" && as_dir=.
6032 for ac_exec_ext in '' $ac_executable_extensions; do
6033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6034 ac_cv_prog_ac_ct_STRIP="strip"
6035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6041 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6044 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6045 if test -n "$ac_ct_STRIP"; then
6046 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6047 echo "${ECHO_T}$ac_ct_STRIP" >&6
6049 echo "$as_me:$LINENO: result: no" >&5
6050 echo "${ECHO_T}no" >&6
6055 STRIP="$ac_cv_prog_STRIP"
6058 test -z "$STRIP" && STRIP=:
6065 if test -n "$ac_tool_prefix"; then
6066 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6067 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6068 echo "$as_me:$LINENO: checking for $ac_word" >&5
6069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6070 if test "${ac_cv_prog_RANLIB+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 if test -n "$RANLIB"; then
6074 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080 test -z "$as_dir" && as_dir=.
6081 for ac_exec_ext in '' $ac_executable_extensions; do
6082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6083 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6092 RANLIB=$ac_cv_prog_RANLIB
6093 if test -n "$RANLIB"; then
6094 echo "$as_me:$LINENO: result: $RANLIB" >&5
6095 echo "${ECHO_T}$RANLIB" >&6
6097 echo "$as_me:$LINENO: result: no" >&5
6098 echo "${ECHO_T}no" >&6
6102 if test -z "$ac_cv_prog_RANLIB"; then
6103 ac_ct_RANLIB=$RANLIB
6104 # Extract the first word of "ranlib", so it can be a program name with args.
6105 set dummy ranlib; ac_word=$2
6106 echo "$as_me:$LINENO: checking for $ac_word" >&5
6107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6108 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 if test -n "$ac_ct_RANLIB"; then
6112 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118 test -z "$as_dir" && as_dir=.
6119 for ac_exec_ext in '' $ac_executable_extensions; do
6120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6121 ac_cv_prog_ac_ct_RANLIB="ranlib"
6122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6128 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6131 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6132 if test -n "$ac_ct_RANLIB"; then
6133 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6134 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6136 echo "$as_me:$LINENO: result: no" >&5
6137 echo "${ECHO_T}no" >&6
6140 RANLIB=$ac_ct_RANLIB
6142 RANLIB="$ac_cv_prog_RANLIB"
6145 test -z "$RANLIB" && RANLIB=:
6152 # Determine commands to create old-style static archives.
6153 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6154 old_postinstall_cmds='chmod 644 $oldlib'
6155 old_postuninstall_cmds=
6157 if test -n "$RANLIB"; then
6160 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6163 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6166 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6202 # If no C compiler was specified, use CC.
6205 # If no C compiler flags were specified, use CFLAGS.
6206 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6208 # Allow CC to be a program name with arguments.
6212 # Check for command to grab the raw symbol name followed by C symbol from nm.
6213 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6214 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6215 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
6219 # These are sane defaults that work on at least a few old systems.
6220 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6222 # Character class describing NM global symbol codes.
6223 symcode='[BCDEGRST]'
6225 # Regexp to match symbols that can be accessed directly from C.
6226 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6228 # Define system-specific variables.
6233 cygwin* | mingw* | pw32*)
6234 symcode='[ABCDGISTW]'
6237 if test "$host_cpu" = ia64; then
6238 symcode='[ABCDEGRST]'
6242 symcode='[BCDEGRST]'
6245 symcode='[BCDEGQRST]'
6256 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6264 # If we're using GNU nm, then use its standard symbol codes.
6265 case `$NM -V 2>&1` in
6266 *GNU* | *'with BFD'*)
6267 symcode='[ABCDGIRSTW]' ;;
6270 # Transform an extracted symbol line into a proper C declaration.
6271 # Some systems (esp. on ia64) link data and code symbols differently,
6272 # so use this general approach.
6273 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6275 # Transform an extracted symbol line into symbol name and symbol address
6276 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6278 # Handle CRLF in mingw tool chain
6282 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6286 # Try without a prefix underscore, then with it.
6287 for ac_symprfx in "" "_"; do
6289 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6290 symxfrm="\\1 $ac_symprfx\\2 \\2"
6292 # Write the raw and C identifiers.
6293 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6294 # Fake it for dumpbin and say T for any non-static function
6295 # and D for any global variable.
6296 # Also find C++ and __fastcall symbols from MSVC++,
6297 # which start with @ or ?.
6298 lt_cv_sys_global_symbol_pipe="$AWK '"\
6299 " {last_section=section; section=\$ 3};"\
6300 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6301 " \$ 0!~/External *\|/{next};"\
6302 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6303 " {if(hide[section]) next};"\
6304 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6305 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6306 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6307 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6308 " ' prfx=^$ac_symprfx"
6310 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6313 # Check to see that the pipe works correctly.
6317 cat > conftest.$ac_ext <<_LT_EOF
6322 void nm_test_func(void);
6323 void nm_test_func(void){}
6327 int main(){nm_test_var='a';nm_test_func();return(0);}
6330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6331 (eval $ac_compile) 2>&5
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); }; then
6335 # Now try to grab the symbols.
6337 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6338 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } && test -s "$nlist"; then
6342 # Try sorting and uniquifying the output.
6343 if sort "$nlist" | uniq > "$nlist"T; then
6344 mv -f "$nlist"T "$nlist"
6349 # Make sure that we snagged all the symbols we need.
6350 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6351 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6352 cat <<_LT_EOF > conftest.$ac_ext
6358 # Now generate the symbol file.
6359 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6361 cat <<_LT_EOF >> conftest.$ac_ext
6363 /* The mapping between symbol names and symbols. */
6368 lt__PROGRAM__LTX_preloaded_symbols[] =
6370 { "@PROGRAM@", (void *) 0 },
6372 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6373 cat <<\_LT_EOF >> conftest.$ac_ext
6377 /* This works around a problem in FreeBSD linker */
6378 #ifdef FREEBSD_WORKAROUND
6379 static const void *lt_preloaded_setup() {
6380 return lt__PROGRAM__LTX_preloaded_symbols;
6388 # Now try linking the two files.
6389 mv conftest.$ac_objext conftstm.$ac_objext
6390 lt_save_LIBS="$LIBS"
6391 lt_save_CFLAGS="$CFLAGS"
6392 LIBS="conftstm.$ac_objext"
6393 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6395 (eval $ac_link) 2>&5
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6401 LIBS="$lt_save_LIBS"
6402 CFLAGS="$lt_save_CFLAGS"
6404 echo "cannot find nm_test_func in $nlist" >&5
6407 echo "cannot find nm_test_var in $nlist" >&5
6410 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6413 echo "$progname: failed program was:" >&5
6414 cat conftest.$ac_ext >&5
6416 rm -f conftest* conftst*
6418 # Do not use the global_symbol_pipe unless it works.
6419 if test "$pipe_works" = yes; then
6422 lt_cv_sys_global_symbol_pipe=
6428 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6429 lt_cv_sys_global_symbol_to_cdecl=
6431 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6432 echo "$as_me:$LINENO: result: failed" >&5
6433 echo "${ECHO_T}failed" >&6
6435 echo "$as_me:$LINENO: result: ok" >&5
6436 echo "${ECHO_T}ok" >&6
6455 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6456 if test "${enable_libtool_lock+set}" = set; then
6457 enableval="$enable_libtool_lock"
6460 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6462 # Some flags need to be propagated to the compiler or linker for good
6466 # Find out which ABI we are using.
6467 echo 'int i;' > conftest.$ac_ext
6468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6469 (eval $ac_compile) 2>&5
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); }; then
6473 case `/usr/bin/file conftest.$ac_objext` in
6485 # Find out which ABI we are using.
6486 echo '#line 6486 "configure"' > conftest.$ac_ext
6487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6488 (eval $ac_compile) 2>&5
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); }; then
6492 if test "$lt_cv_prog_gnu_ld" = yes; then
6493 case `/usr/bin/file conftest.$ac_objext` in
6495 LD="${LD-ld} -melf32bsmip"
6498 LD="${LD-ld} -melf32bmipn32"
6501 LD="${LD-ld} -melf64bmip"
6505 case `/usr/bin/file conftest.$ac_objext` in
6521 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6522 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6523 # Find out which ABI we are using.
6524 echo 'int i;' > conftest.$ac_ext
6525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6526 (eval $ac_compile) 2>&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); }; then
6530 case `/usr/bin/file conftest.o` in
6533 x86_64-*kfreebsd*-gnu)
6534 LD="${LD-ld} -m elf_i386_fbsd"
6537 LD="${LD-ld} -m elf_i386"
6539 ppc64-*linux*|powerpc64-*linux*)
6540 LD="${LD-ld} -m elf32ppclinux"
6543 LD="${LD-ld} -m elf_s390"
6546 LD="${LD-ld} -m elf32_sparc"
6552 x86_64-*kfreebsd*-gnu)
6553 LD="${LD-ld} -m elf_x86_64_fbsd"
6556 LD="${LD-ld} -m elf_x86_64"
6558 ppc*-*linux*|powerpc*-*linux*)
6559 LD="${LD-ld} -m elf64ppc"
6561 s390*-*linux*|s390*-*tpf*)
6562 LD="${LD-ld} -m elf64_s390"
6565 LD="${LD-ld} -m elf64_sparc"
6575 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6576 SAVE_CFLAGS="$CFLAGS"
6577 CFLAGS="$CFLAGS -belf"
6578 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6579 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6580 if test "${lt_cv_cc_needs_belf+set}" = set; then
6581 echo $ECHO_N "(cached) $ECHO_C" >&6
6584 ac_cpp='$CPP $CPPFLAGS'
6585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6589 cat >conftest.$ac_ext <<_ACEOF
6592 cat confdefs.h >>conftest.$ac_ext
6593 cat >>conftest.$ac_ext <<_ACEOF
6594 /* end confdefs.h. */
6604 rm -f conftest.$ac_objext conftest$ac_exeext
6605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6606 (eval $ac_link) 2>conftest.er1
6608 grep -v '^ *+' conftest.er1 >conftest.err
6610 cat conftest.err >&5
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); } &&
6613 { ac_try='test -z "$ac_c_werror_flag"
6614 || test ! -s conftest.err'
6615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); }; } &&
6620 { ac_try='test -s conftest$ac_exeext'
6621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); }; }; then
6626 lt_cv_cc_needs_belf=yes
6628 echo "$as_me: failed program was:" >&5
6629 sed 's/^/| /' conftest.$ac_ext >&5
6631 lt_cv_cc_needs_belf=no
6633 rm -f conftest.err conftest.$ac_objext \
6634 conftest$ac_exeext conftest.$ac_ext
6636 ac_cpp='$CPP $CPPFLAGS'
6637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6642 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6643 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6644 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6645 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6646 CFLAGS="$SAVE_CFLAGS"
6650 # Find out which ABI we are using.
6651 echo 'int i;' > conftest.$ac_ext
6652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6653 (eval $ac_compile) 2>&5
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); }; then
6657 case `/usr/bin/file conftest.o` in
6659 case $lt_cv_prog_gnu_ld in
6660 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6661 *) LD="${LD-ld} -64" ;;
6670 need_locks="$enable_libtool_lock"
6673 for ac_header in dlfcn.h
6675 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6676 echo "$as_me:$LINENO: checking for $ac_header" >&5
6677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6678 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6679 echo $ECHO_N "(cached) $ECHO_C" >&6
6681 cat >conftest.$ac_ext <<_ACEOF
6684 cat confdefs.h >>conftest.$ac_ext
6685 cat >>conftest.$ac_ext <<_ACEOF
6686 /* end confdefs.h. */
6687 $ac_includes_default
6689 #include <$ac_header>
6691 rm -f conftest.$ac_objext
6692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6693 (eval $ac_compile) 2>conftest.er1
6695 grep -v '^ *+' conftest.er1 >conftest.err
6697 cat conftest.err >&5
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); } &&
6700 { ac_try='test -z "$ac_c_werror_flag"
6701 || test ! -s conftest.err'
6702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); }; } &&
6707 { ac_try='test -s conftest.$ac_objext'
6708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); }; }; then
6713 eval "$as_ac_Header=yes"
6715 echo "$as_me: failed program was:" >&5
6716 sed 's/^/| /' conftest.$ac_ext >&5
6718 eval "$as_ac_Header=no"
6720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6723 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6725 cat >>confdefs.h <<_ACEOF
6726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6735 # This can be used to rebuild libtool when needed
6736 LIBTOOL_DEPS="$ltmain"
6738 # Always use our own libtool.
6739 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6765 test -z "$LN_S" && LN_S="ln -s"
6780 if test -n "${ZSH_VERSION+set}" ; then
6781 setopt NO_GLOB_SUBST
6784 echo "$as_me:$LINENO: checking for objdir" >&5
6785 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6786 if test "${lt_cv_objdir+set}" = set; then
6787 echo $ECHO_N "(cached) $ECHO_C" >&6
6789 rm -f .libs 2>/dev/null
6790 mkdir .libs 2>/dev/null
6791 if test -d .libs; then
6794 # MS-DOS does not allow filenames that begin with a dot.
6797 rmdir .libs 2>/dev/null
6799 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6800 echo "${ECHO_T}$lt_cv_objdir" >&6
6801 objdir=$lt_cv_objdir
6807 cat >>confdefs.h <<_ACEOF
6808 #define LT_OBJDIR "$lt_cv_objdir/"
6829 # AIX sometimes has problems with the GCC collect2 program. For some
6830 # reason, if we set the COLLECT_NAMES environment variable, the problems
6831 # vanish in a puff of smoke.
6832 if test "X${COLLECT_NAMES+set}" != Xset; then
6834 export COLLECT_NAMES
6839 # Sed substitution that helps us do robust quoting. It backslashifies
6840 # metacharacters that are still active within double-quoted strings.
6841 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6843 # Same as above, but do not quote variable references.
6844 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6846 # Sed substitution to delay expansion of an escaped shell variable in a
6847 # double_quote_subst'ed string.
6848 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6850 # Sed substitution to delay expansion of an escaped single quote.
6851 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6853 # Sed substitution to avoid accidental globbing in evaled expressions
6854 no_glob_subst='s/\*/\\\*/g'
6858 can_build_shared=yes
6860 # All known linkers require a `.a' archive for static linking (except MSVC,
6861 # which needs '.lib').
6864 with_gnu_ld="$lt_cv_prog_gnu_ld"
6867 old_CFLAGS="$CFLAGS"
6869 # Set sane defaults for various variables
6870 test -z "$CC" && CC=cc
6871 test -z "$LTCC" && LTCC=$CC
6872 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6873 test -z "$LD" && LD=ld
6874 test -z "$ac_objext" && ac_objext=o
6876 for cc_temp in $compiler""; do
6878 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6879 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6884 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6887 # Only perform the check for file, if the check method requires it
6888 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6889 case $deplibs_check_method in
6891 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6892 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6893 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6894 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6895 echo $ECHO_N "(cached) $ECHO_C" >&6
6899 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6902 lt_save_MAGIC_CMD="$MAGIC_CMD"
6903 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6904 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6905 for ac_dir in $ac_dummy; do
6907 test -z "$ac_dir" && ac_dir=.
6908 if test -f $ac_dir/${ac_tool_prefix}file; then
6909 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6910 if test -n "$file_magic_test_file"; then
6911 case $deplibs_check_method in
6913 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6914 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6915 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6916 $EGREP "$file_magic_regex" > /dev/null; then
6921 *** Warning: the command libtool uses to detect shared libraries,
6922 *** $file_magic_cmd, produces output that libtool cannot recognize.
6923 *** The result is that libtool may fail to recognize shared libraries
6924 *** as such. This will affect the creation of libtool libraries that
6925 *** depend on shared libraries, but programs linked with such libtool
6926 *** libraries will work regardless of this problem. Nevertheless, you
6927 *** may want to report the problem to your system manager and/or to
6928 *** bug-libtool@gnu.org
6938 MAGIC_CMD="$lt_save_MAGIC_CMD"
6943 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6944 if test -n "$MAGIC_CMD"; then
6945 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6946 echo "${ECHO_T}$MAGIC_CMD" >&6
6948 echo "$as_me:$LINENO: result: no" >&5
6949 echo "${ECHO_T}no" >&6
6956 if test -z "$lt_cv_path_MAGIC_CMD"; then
6957 if test -n "$ac_tool_prefix"; then
6958 echo "$as_me:$LINENO: checking for file" >&5
6959 echo $ECHO_N "checking for file... $ECHO_C" >&6
6960 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6961 echo $ECHO_N "(cached) $ECHO_C" >&6
6965 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6968 lt_save_MAGIC_CMD="$MAGIC_CMD"
6969 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6970 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6971 for ac_dir in $ac_dummy; do
6973 test -z "$ac_dir" && ac_dir=.
6974 if test -f $ac_dir/file; then
6975 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6976 if test -n "$file_magic_test_file"; then
6977 case $deplibs_check_method in
6979 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6980 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6981 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6982 $EGREP "$file_magic_regex" > /dev/null; then
6987 *** Warning: the command libtool uses to detect shared libraries,
6988 *** $file_magic_cmd, produces output that libtool cannot recognize.
6989 *** The result is that libtool may fail to recognize shared libraries
6990 *** as such. This will affect the creation of libtool libraries that
6991 *** depend on shared libraries, but programs linked with such libtool
6992 *** libraries will work regardless of this problem. Nevertheless, you
6993 *** may want to report the problem to your system manager and/or to
6994 *** bug-libtool@gnu.org
7004 MAGIC_CMD="$lt_save_MAGIC_CMD"
7009 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7010 if test -n "$MAGIC_CMD"; then
7011 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7012 echo "${ECHO_T}$MAGIC_CMD" >&6
7014 echo "$as_me:$LINENO: result: no" >&5
7015 echo "${ECHO_T}no" >&6
7028 # Use C for the default configuration in the libtool script
7032 ac_cpp='$CPP $CPPFLAGS'
7033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7038 # Source file extension for C test sources.
7041 # Object file extension for compiled C test sources.
7045 # Code to be used in simple compile tests
7046 lt_simple_compile_test_code="int some_variable = 0;"
7048 # Code to be used in simple link tests
7049 lt_simple_link_test_code='int main(){return(0);}'
7057 # If no C compiler was specified, use CC.
7060 # If no C compiler flags were specified, use CFLAGS.
7061 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7063 # Allow CC to be a program name with arguments.
7066 # Save the default compiler, since it gets overwritten when the other
7067 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7068 compiler_DEFAULT=$CC
7070 # save warnings/boilerplate of simple test code
7071 ac_outfile=conftest.$ac_objext
7072 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7073 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7074 _lt_compiler_boilerplate=`cat conftest.err`
7077 ac_outfile=conftest.$ac_objext
7078 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7079 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7080 _lt_linker_boilerplate=`cat conftest.err`
7085 ## There is no encapsulation within the following macros, do not change
7086 ## the running order or otherwise move them around unless you know exactly
7087 ## what you are doing...
7088 if test -n "$compiler"; then
7090 lt_prog_compiler_no_builtin_flag=
7092 if test "$GCC" = yes; then
7093 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7095 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7096 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7097 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
7100 lt_cv_prog_compiler_rtti_exceptions=no
7101 ac_outfile=conftest.$ac_objext
7102 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7103 lt_compiler_flag="-fno-rtti -fno-exceptions"
7104 # Insert the option either (1) after the last *FLAGS variable, or
7105 # (2) before a word containing "conftest.", or (3) at the end.
7106 # Note that $ac_compile itself does not contain backslashes and begins
7107 # with a dollar sign (not a hyphen), so the echo should work correctly.
7108 # The option is referenced via a variable to avoid confusing sed.
7109 lt_compile=`echo "$ac_compile" | $SED \
7110 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7111 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7112 -e 's:$: $lt_compiler_flag:'`
7113 (eval echo "\"\$as_me:7113: $lt_compile\"" >&5)
7114 (eval "$lt_compile" 2>conftest.err)
7116 cat conftest.err >&5
7117 echo "$as_me:7117: \$? = $ac_status" >&5
7118 if (exit $ac_status) && test -s "$ac_outfile"; then
7119 # The compiler can only warn and ignore the option if not recognized
7120 # So say no if there are warnings other than the usual output.
7121 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7122 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7123 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7124 lt_cv_prog_compiler_rtti_exceptions=yes
7130 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7131 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7133 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7134 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7146 lt_prog_compiler_wl=
7147 lt_prog_compiler_pic=
7148 lt_prog_compiler_static=
7150 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7151 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7153 if test "$GCC" = yes; then
7154 lt_prog_compiler_wl='-Wl,'
7155 lt_prog_compiler_static='-static'
7159 # All AIX code is PIC.
7160 if test "$host_cpu" = ia64; then
7161 # AIX 5 now supports IA64 processor
7162 lt_prog_compiler_static='-Bstatic'
7167 if test "$host_cpu" = m68k; then
7168 # FIXME: we need at least 68020 code to build shared libraries, but
7169 # adding the `-m68020' flag to GCC prevents building anything better,
7171 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7175 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7176 # PIC is the default for these OSes.
7179 mingw* | cygwin* | pw32* | os2*)
7180 # This hack is so that the source file can tell whether it is being
7181 # built for inclusion in a dll (and should export symbols for example).
7182 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7183 # (--disable-auto-import) libraries
7184 lt_prog_compiler_pic='-DDLL_EXPORT'
7187 darwin* | rhapsody*)
7188 # PIC is the default on this platform
7189 # Common symbols not allowed in MH_DYLIB files
7190 lt_prog_compiler_pic='-fno-common'
7194 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7201 lt_prog_compiler_pic='-fPIC'
7207 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7208 # Instead, we relocate shared libraries at runtime.
7212 # Just because we use GCC doesn't mean we suddenly get shared libraries
7213 # on systems that don't support them.
7214 lt_prog_compiler_can_build_shared=no
7219 # QNX uses GNU C++, but need to define -shared option too, otherwise
7221 lt_prog_compiler_pic='-fPIC -shared'
7225 if test -d /usr/nec; then
7226 lt_prog_compiler_pic=-Kconform_pic
7231 lt_prog_compiler_pic='-fPIC'
7235 # PORTME Check for flag to pass linker flags through the system compiler.
7238 lt_prog_compiler_wl='-Wl,'
7239 if test "$host_cpu" = ia64; then
7240 # AIX 5 now supports IA64 processor
7241 lt_prog_compiler_static='-Bstatic'
7243 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7247 # PIC is the default on this platform
7248 # Common symbols not allowed in MH_DYLIB files
7249 case $cc_basename in
7251 lt_prog_compiler_pic='-qnocommon'
7252 lt_prog_compiler_wl='-Wl,'
7257 mingw* | cygwin* | pw32* | os2*)
7258 # This hack is so that the source file can tell whether it is being
7259 # built for inclusion in a dll (and should export symbols for example).
7260 lt_prog_compiler_pic='-DDLL_EXPORT'
7263 hpux9* | hpux10* | hpux11*)
7264 lt_prog_compiler_wl='-Wl,'
7265 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7272 lt_prog_compiler_pic='+Z'
7275 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7276 lt_prog_compiler_static='${wl}-a ${wl}archive'
7279 irix5* | irix6* | nonstopux*)
7280 lt_prog_compiler_wl='-Wl,'
7281 # PIC (with -KPIC) is the default.
7282 lt_prog_compiler_static='-non_shared'
7285 linux* | k*bsd*-gnu)
7286 case $cc_basename in
7288 lt_prog_compiler_wl='-Wl,'
7289 lt_prog_compiler_pic='-KPIC'
7290 lt_prog_compiler_static='-static'
7292 pgcc* | pgf77* | pgf90* | pgf95*)
7293 # Portland Group compilers (*not* the Pentium gcc compiler,
7294 # which looks to be a dead project)
7295 lt_prog_compiler_wl='-Wl,'
7296 lt_prog_compiler_pic='-fpic'
7297 lt_prog_compiler_static='-Bstatic'
7300 lt_prog_compiler_wl='-Wl,'
7301 # All Alpha code is PIC.
7302 lt_prog_compiler_static='-non_shared'
7305 case `$CC -V 2>&1 | sed 5q` in
7308 lt_prog_compiler_pic='-KPIC'
7309 lt_prog_compiler_static='-Bstatic'
7310 lt_prog_compiler_wl='-Wl,'
7313 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7314 lt_prog_compiler_pic='-KPIC'
7315 lt_prog_compiler_static='-Bstatic'
7316 lt_prog_compiler_wl=''
7324 lt_prog_compiler_pic='-KPIC'
7325 lt_prog_compiler_static='-Bstatic'
7329 # QNX uses GNU C++, but need to define -shared option too, otherwise
7331 lt_prog_compiler_pic='-fPIC -shared'
7334 osf3* | osf4* | osf5*)
7335 lt_prog_compiler_wl='-Wl,'
7336 # All OSF/1 code is PIC.
7337 lt_prog_compiler_static='-non_shared'
7341 lt_prog_compiler_static='-non_shared'
7345 lt_prog_compiler_pic='-KPIC'
7346 lt_prog_compiler_static='-Bstatic'
7347 case $cc_basename in
7349 lt_prog_compiler_wl='-Qoption ld ';;
7351 lt_prog_compiler_wl='-Wl,';;
7356 lt_prog_compiler_wl='-Qoption ld '
7357 lt_prog_compiler_pic='-PIC'
7358 lt_prog_compiler_static='-Bstatic'
7361 sysv4 | sysv4.2uw2* | sysv4.3*)
7362 lt_prog_compiler_wl='-Wl,'
7363 lt_prog_compiler_pic='-KPIC'
7364 lt_prog_compiler_static='-Bstatic'
7368 if test -d /usr/nec ;then
7369 lt_prog_compiler_pic='-Kconform_pic'
7370 lt_prog_compiler_static='-Bstatic'
7374 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7375 lt_prog_compiler_wl='-Wl,'
7376 lt_prog_compiler_pic='-KPIC'
7377 lt_prog_compiler_static='-Bstatic'
7381 lt_prog_compiler_wl='-Wl,'
7382 lt_prog_compiler_can_build_shared=no
7386 lt_prog_compiler_pic='-pic'
7387 lt_prog_compiler_static='-Bstatic'
7391 lt_prog_compiler_can_build_shared=no
7397 # For platforms which do not support PIC, -DPIC is meaningless:
7399 lt_prog_compiler_pic=
7402 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7405 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7406 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7414 # Check to make sure the PIC flag actually works.
7416 if test -n "$lt_prog_compiler_pic"; then
7417 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7418 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7419 if test "${lt_prog_compiler_pic_works+set}" = set; then
7420 echo $ECHO_N "(cached) $ECHO_C" >&6
7422 lt_prog_compiler_pic_works=no
7423 ac_outfile=conftest.$ac_objext
7424 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7425 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7426 # Insert the option either (1) after the last *FLAGS variable, or
7427 # (2) before a word containing "conftest.", or (3) at the end.
7428 # Note that $ac_compile itself does not contain backslashes and begins
7429 # with a dollar sign (not a hyphen), so the echo should work correctly.
7430 # The option is referenced via a variable to avoid confusing sed.
7431 lt_compile=`echo "$ac_compile" | $SED \
7432 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7433 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7434 -e 's:$: $lt_compiler_flag:'`
7435 (eval echo "\"\$as_me:7435: $lt_compile\"" >&5)
7436 (eval "$lt_compile" 2>conftest.err)
7438 cat conftest.err >&5
7439 echo "$as_me:7439: \$? = $ac_status" >&5
7440 if (exit $ac_status) && test -s "$ac_outfile"; then
7441 # The compiler can only warn and ignore the option if not recognized
7442 # So say no if there are warnings other than the usual output.
7443 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7444 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7445 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7446 lt_prog_compiler_pic_works=yes
7452 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7453 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7455 if test x"$lt_prog_compiler_pic_works" = xyes; then
7456 case $lt_prog_compiler_pic in
7458 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7461 lt_prog_compiler_pic=
7462 lt_prog_compiler_can_build_shared=no
7473 # Check to make sure the static flag actually works.
7475 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7476 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7477 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7478 if test "${lt_prog_compiler_static_works+set}" = set; then
7479 echo $ECHO_N "(cached) $ECHO_C" >&6
7481 lt_prog_compiler_static_works=no
7482 save_LDFLAGS="$LDFLAGS"
7483 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7484 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7485 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7486 # The linker can only warn and ignore the option if not recognized
7487 # So say no if there are warnings
7488 if test -s conftest.err; then
7489 # Append any errors to the config.log.
7490 cat conftest.err 1>&5
7491 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7492 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7493 if diff conftest.exp conftest.er2 >/dev/null; then
7494 lt_prog_compiler_static_works=yes
7497 lt_prog_compiler_static_works=yes
7501 LDFLAGS="$save_LDFLAGS"
7504 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7505 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7507 if test x"$lt_prog_compiler_static_works" = xyes; then
7510 lt_prog_compiler_static=
7519 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7520 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7521 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7522 echo $ECHO_N "(cached) $ECHO_C" >&6
7524 lt_cv_prog_compiler_c_o=no
7525 $RM -r conftest 2>/dev/null
7529 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7531 lt_compiler_flag="-o out/conftest2.$ac_objext"
7532 # Insert the option either (1) after the last *FLAGS variable, or
7533 # (2) before a word containing "conftest.", or (3) at the end.
7534 # Note that $ac_compile itself does not contain backslashes and begins
7535 # with a dollar sign (not a hyphen), so the echo should work correctly.
7536 lt_compile=`echo "$ac_compile" | $SED \
7537 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7538 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7539 -e 's:$: $lt_compiler_flag:'`
7540 (eval echo "\"\$as_me:7540: $lt_compile\"" >&5)
7541 (eval "$lt_compile" 2>out/conftest.err)
7543 cat out/conftest.err >&5
7544 echo "$as_me:7544: \$? = $ac_status" >&5
7545 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7547 # The compiler can only warn and ignore the option if not recognized
7548 # So say no if there are warnings
7549 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7550 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7551 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7552 lt_cv_prog_compiler_c_o=yes
7557 # SGI C++ compiler will create directory out/ii_files/ for
7558 # template instantiation
7559 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7560 $RM out/* && rmdir out
7566 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7567 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7574 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7575 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7576 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7577 echo $ECHO_N "(cached) $ECHO_C" >&6
7579 lt_cv_prog_compiler_c_o=no
7580 $RM -r conftest 2>/dev/null
7584 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7586 lt_compiler_flag="-o out/conftest2.$ac_objext"
7587 # Insert the option either (1) after the last *FLAGS variable, or
7588 # (2) before a word containing "conftest.", or (3) at the end.
7589 # Note that $ac_compile itself does not contain backslashes and begins
7590 # with a dollar sign (not a hyphen), so the echo should work correctly.
7591 lt_compile=`echo "$ac_compile" | $SED \
7592 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7593 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7594 -e 's:$: $lt_compiler_flag:'`
7595 (eval echo "\"\$as_me:7595: $lt_compile\"" >&5)
7596 (eval "$lt_compile" 2>out/conftest.err)
7598 cat out/conftest.err >&5
7599 echo "$as_me:7599: \$? = $ac_status" >&5
7600 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7602 # The compiler can only warn and ignore the option if not recognized
7603 # So say no if there are warnings
7604 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7605 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7606 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7607 lt_cv_prog_compiler_c_o=yes
7612 # SGI C++ compiler will create directory out/ii_files/ for
7613 # template instantiation
7614 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7615 $RM out/* && rmdir out
7621 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7622 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7627 hard_links="nottested"
7628 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7629 # do not overwrite the value of need_locks provided by the user
7630 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7631 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7634 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7636 ln conftest.a conftest.b 2>&5 || hard_links=no
7637 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7638 echo "$as_me:$LINENO: result: $hard_links" >&5
7639 echo "${ECHO_T}$hard_links" >&6
7640 if test "$hard_links" = no; then
7641 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7642 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7654 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7655 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7658 allow_undefined_flag=
7659 always_export_symbols=no
7661 archive_expsym_cmds=
7662 compiler_needs_object=no
7663 enable_shared_with_static_runtimes=no
7664 export_dynamic_flag_spec=
7665 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7666 hardcode_automatic=no
7668 hardcode_direct_absolute=no
7669 hardcode_libdir_flag_spec=
7670 hardcode_libdir_flag_spec_ld=
7671 hardcode_libdir_separator=
7673 hardcode_shlibpath_var=unsupported
7675 link_all_deplibs=unknown
7678 old_archive_from_new_cmds=
7679 old_archive_from_expsyms_cmds=
7680 thread_safe_flag_spec=
7681 whole_archive_flag_spec=
7682 # include_expsyms should be a list of space-separated symbols to be *always*
7683 # included in the symbol list
7685 # exclude_expsyms can be an extended regexp of symbols to exclude
7686 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7687 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7688 # as well as any symbol that contains `d'.
7689 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7690 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7691 # platforms (ab)use it in PIC code, but their linkers get confused if
7692 # the symbol is explicitly referenced. Since portable code cannot
7693 # rely on this symbol name, it's probably fine to never include it in
7694 # preloaded symbol tables.
7695 extract_expsyms_cmds=
7698 cygwin* | mingw* | pw32*)
7699 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7700 # When not using gcc, we currently assume that we are using
7701 # Microsoft Visual C++.
7702 if test "$GCC" != yes; then
7707 # we just hope/assume this is gcc and not c89 (= MSVC++)
7716 if test "$with_gnu_ld" = yes; then
7717 # If archive_cmds runs LD, not CC, wlarc should be empty
7720 # Set some defaults for GNU ld with shared library support. These
7721 # are reset later if shared libraries are not supported. Putting them
7722 # here allows them to be overridden if necessary.
7723 runpath_var=LD_RUN_PATH
7724 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7725 export_dynamic_flag_spec='${wl}--export-dynamic'
7726 # ancient GNU ld didn't support --whole-archive et. al.
7727 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7728 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7730 whole_archive_flag_spec=
7732 supports_anon_versioning=no
7733 case `$LD -v 2>&1` in
7734 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7735 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7736 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7737 *\ 2.11.*) ;; # other 2.11 versions
7738 *) supports_anon_versioning=yes ;;
7741 # See if GNU ld supports shared libraries.
7744 # On AIX/PPC, the GNU linker is very broken
7745 if test "$host_cpu" != ia64; then
7749 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7750 *** to be unable to reliably create shared libraries on AIX.
7751 *** Therefore, libtool is disabling shared libraries support. If you
7752 *** really care for shared libraries, you may want to modify your PATH
7753 *** so that a non-GNU linker is found, and then restart.
7760 if test "$host_cpu" = m68k; then
7761 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)'
7762 hardcode_libdir_flag_spec='-L$libdir'
7763 hardcode_minus_L=yes
7766 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7767 # that the semantics of dynamic libraries on AmigaOS, at least up
7768 # to version 4, is to share data among multiple programs linked
7769 # with the same dynamic library. Since this doesn't match the
7770 # behavior of shared libraries on other platforms, we can't use
7776 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7777 allow_undefined_flag=unsupported
7778 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7779 # support --undefined. This deserves some investigation. FIXME
7780 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7786 cygwin* | mingw* | pw32*)
7787 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7788 # as there is no search path for DLLs.
7789 hardcode_libdir_flag_spec='-L$libdir'
7790 allow_undefined_flag=unsupported
7791 always_export_symbols=no
7792 enable_shared_with_static_runtimes=yes
7793 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7795 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7796 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7797 # If the export-symbols file already is a .def file (1st line
7798 # is EXPORTS), use it as is; otherwise, prepend...
7799 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7800 cp $export_symbols $output_objdir/$soname.def;
7802 echo EXPORTS > $output_objdir/$soname.def;
7803 cat $export_symbols >> $output_objdir/$soname.def;
7805 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7813 hardcode_shlibpath_var=no
7814 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7815 export_dynamic_flag_spec='${wl}-E'
7816 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7817 # Instead, shared libraries are loaded at an image base (0x10000000 by
7818 # default) and relocated if they conflict, which is a slow very memory
7819 # consuming and fragmenting process. To avoid this, we pick a random,
7820 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7821 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7822 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7823 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'
7826 gnu* | linux* | tpf* | k*bsd*-gnu)
7828 if test "$host_os" = linux-dietlibc; then
7829 case $cc_basename in
7830 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7833 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7834 && test "$tmp_diet" = no
7837 case $cc_basename,$host_cpu in
7838 pgcc*) # Portland Group C compiler
7839 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'
7840 tmp_addflag=' $pic_flag'
7842 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7843 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'
7844 tmp_addflag=' $pic_flag -Mnomain' ;;
7845 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7846 tmp_addflag=' -i_dynamic' ;;
7847 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7848 tmp_addflag=' -i_dynamic -nofor_main' ;;
7849 ifc* | ifort*) # Intel Fortran compiler
7850 tmp_addflag=' -nofor_main' ;;
7852 case `$CC -V 2>&1 | sed 5q` in
7853 *Sun\ C*) # Sun C 5.9
7854 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'
7855 compiler_needs_object=yes
7856 tmp_sharedflag='-G' ;;
7857 *Sun\ F*) # Sun Fortran 8.3
7858 tmp_sharedflag='-G' ;;
7860 tmp_sharedflag='-shared' ;;
7862 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7864 if test "x$supports_anon_versioning" = xyes; then
7865 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7866 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7867 echo "local: *; };" >> $output_objdir/$libname.ver~
7868 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7876 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7877 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7880 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7881 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7886 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7890 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7891 *** create shared libraries on Solaris systems. Therefore, libtool
7892 *** is disabling shared libraries support. We urge you to upgrade GNU
7893 *** binutils to release 2.9.1 or newer. Another option is to modify
7894 *** your PATH or compiler configuration so that the native linker is
7895 *** used, and then restart.
7898 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7899 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7900 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7906 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7907 case `$LD -v 2>&1` in
7908 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7912 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7913 *** reliably create shared libraries on SCO systems. Therefore, libtool
7914 *** is disabling shared libraries support. We urge you to upgrade GNU
7915 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7916 *** your PATH or compiler configuration so that the native linker is
7917 *** used, and then restart.
7922 # For security reasons, it is highly recommended that you always
7923 # use absolute paths for naming shared libraries, and exclude the
7924 # DT_RUNPATH tag from executables and libraries. But doing so
7925 # requires that you compile everything twice, which is a pain.
7926 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7927 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7928 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7929 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7938 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7941 hardcode_shlibpath_var=no
7945 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7946 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7947 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7954 if test "$ld_shlibs" = no; then
7956 hardcode_libdir_flag_spec=
7957 export_dynamic_flag_spec=
7958 whole_archive_flag_spec=
7961 # PORTME fill in a description of your system's linker (not GNU ld)
7964 allow_undefined_flag=unsupported
7965 always_export_symbols=yes
7966 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'
7967 # Note: this linker hardcodes the directories in LIBPATH if there
7968 # are no directories specified by -L.
7969 hardcode_minus_L=yes
7970 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7971 # Neither direct hardcoding nor static linking is supported with a
7973 hardcode_direct=unsupported
7978 if test "$host_cpu" = ia64; then
7979 # On IA64, the linker does run time linking by default, so we don't
7980 # have to do anything special.
7981 aix_use_runtimelinking=no
7982 exp_sym_flag='-Bexport'
7985 # If we're using GNU nm, then we don't want the "-C" option.
7986 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7987 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7988 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'
7990 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'
7992 aix_use_runtimelinking=no
7994 # Test if we are trying to use run time linking or normal
7995 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7996 # need to do runtime linking.
7997 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7998 for ld_flag in $LDFLAGS; do
7999 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8000 aix_use_runtimelinking=yes
8007 exp_sym_flag='-bexport'
8008 no_entry_flag='-bnoentry'
8011 # When large executables or shared objects are built, AIX ld can
8012 # have problems creating the table of contents. If linking a library
8013 # or program results in "error TOC overflow" add -mminimal-toc to
8014 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8015 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8019 hardcode_direct_absolute=yes
8020 hardcode_libdir_separator=':'
8021 link_all_deplibs=yes
8022 file_list_spec='${wl}-f,'
8024 if test "$GCC" = yes; then
8025 case $host_os in aix4.[012]|aix4.[012].*)
8026 # We only want to do this on AIX 4.2 and lower, the check
8027 # below for broken collect2 doesn't work under 4.3+
8028 collect2name=`${CC} -print-prog-name=collect2`
8029 if test -f "$collect2name" &&
8030 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8032 # We have reworked collect2
8035 # We have old collect2
8036 hardcode_direct=unsupported
8037 # It fails to find uninstalled libraries when the uninstalled
8038 # path is not listed in the libpath. Setting hardcode_minus_L
8039 # to unsupported forces relinking
8040 hardcode_minus_L=yes
8041 hardcode_libdir_flag_spec='-L$libdir'
8042 hardcode_libdir_separator=
8046 shared_flag='-shared'
8047 if test "$aix_use_runtimelinking" = yes; then
8048 shared_flag="$shared_flag "'${wl}-G'
8052 if test "$host_cpu" = ia64; then
8053 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8054 # chokes on -Wl,-G. The following line is correct:
8057 if test "$aix_use_runtimelinking" = yes; then
8058 shared_flag='${wl}-G'
8060 shared_flag='${wl}-bM:SRE'
8065 # It seems that -bexpall does not export symbols beginning with
8066 # underscore (_), so it is better to generate a list of symbols to export.
8067 always_export_symbols=yes
8068 if test "$aix_use_runtimelinking" = yes; then
8069 # Warning - without using the other runtime loading flags (-brtl),
8070 # -berok will link without error, but may produce a broken library.
8071 allow_undefined_flag='-berok'
8072 # Determine the default libpath from the value encoded in an
8074 cat >conftest.$ac_ext <<_ACEOF
8077 cat confdefs.h >>conftest.$ac_ext
8078 cat >>conftest.$ac_ext <<_ACEOF
8079 /* end confdefs.h. */
8089 rm -f conftest.$ac_objext conftest$ac_exeext
8090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8091 (eval $ac_link) 2>conftest.er1
8093 grep -v '^ *+' conftest.er1 >conftest.err
8095 cat conftest.err >&5
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); } &&
8098 { ac_try='test -z "$ac_c_werror_flag"
8099 || test ! -s conftest.err'
8100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); }; } &&
8105 { ac_try='test -s conftest$ac_exeext'
8106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); }; }; then
8112 lt_aix_libpath_sed='
8113 /Import File Strings/,/^$/ {
8119 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8120 # Check for a 64-bit object if we didn't find anything.
8121 if test -z "$aix_libpath"; then
8122 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8125 echo "$as_me: failed program was:" >&5
8126 sed 's/^/| /' conftest.$ac_ext >&5
8129 rm -f conftest.err conftest.$ac_objext \
8130 conftest$ac_exeext conftest.$ac_ext
8131 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8133 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8134 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"
8136 if test "$host_cpu" = ia64; then
8137 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8138 allow_undefined_flag="-z nodefs"
8139 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"
8141 # Determine the default libpath from the value encoded in an
8143 cat >conftest.$ac_ext <<_ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h. */
8158 rm -f conftest.$ac_objext conftest$ac_exeext
8159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8160 (eval $ac_link) 2>conftest.er1
8162 grep -v '^ *+' conftest.er1 >conftest.err
8164 cat conftest.err >&5
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); } &&
8167 { ac_try='test -z "$ac_c_werror_flag"
8168 || test ! -s conftest.err'
8169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); }; } &&
8174 { ac_try='test -s conftest$ac_exeext'
8175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); }; }; then
8181 lt_aix_libpath_sed='
8182 /Import File Strings/,/^$/ {
8188 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8189 # Check for a 64-bit object if we didn't find anything.
8190 if test -z "$aix_libpath"; then
8191 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8194 echo "$as_me: failed program was:" >&5
8195 sed 's/^/| /' conftest.$ac_ext >&5
8198 rm -f conftest.err conftest.$ac_objext \
8199 conftest$ac_exeext conftest.$ac_ext
8200 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8202 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8203 # Warning - without using the other run time loading flags,
8204 # -berok will link without error, but may produce a broken library.
8205 no_undefined_flag=' ${wl}-bernotok'
8206 allow_undefined_flag=' ${wl}-berok'
8207 # Exported symbols can be pulled into shared objects from archives
8208 whole_archive_flag_spec='$convenience'
8209 archive_cmds_need_lc=yes
8210 # This is similar to how AIX traditionally builds its shared libraries.
8211 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'
8217 if test "$host_cpu" = m68k; then
8218 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)'
8219 hardcode_libdir_flag_spec='-L$libdir'
8220 hardcode_minus_L=yes
8222 # see comment about different semantics on the GNU ld section
8227 export_dynamic_flag_spec=-rdynamic
8230 cygwin* | mingw* | pw32*)
8231 # When not using gcc, we currently assume that we are using
8232 # Microsoft Visual C++.
8233 # hardcode_libdir_flag_spec is actually meaningless, as there is
8234 # no search path for DLLs.
8235 hardcode_libdir_flag_spec=' '
8236 allow_undefined_flag=unsupported
8237 # Tell ltmain to make .lib files, not .a files.
8239 # Tell ltmain to make .dll files, not .so files.
8241 # FIXME: Setting linknames here is a bad hack.
8242 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8243 # The linker will automatically build a .lib file if we build a DLL.
8244 old_archive_from_new_cmds='true'
8245 # FIXME: Should let the user specify the lib program.
8246 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8247 fix_srcfile_path='`cygpath -w "$srcfile"`'
8248 enable_shared_with_static_runtimes=yes
8251 darwin* | rhapsody*)
8253 rhapsody* | darwin1.[012])
8254 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8257 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8259 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8262 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8267 archive_cmds_need_lc=no
8269 hardcode_automatic=yes
8270 hardcode_shlibpath_var=unsupported
8271 whole_archive_flag_spec=''
8272 link_all_deplibs=yes
8273 if test "$GCC" = yes ; then
8274 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8275 echo $ECHO_N "(cached) $ECHO_C" >&6
8277 lt_cv_apple_cc_single_mod=no
8278 if test -z "${LT_MULTI_MODULE}"; then
8279 # By default we will add the -single_module flag. You can override
8280 # by either setting the environment variable LT_MULTI_MODULE
8281 # non-empty at configure time, or by adding -multi-module to the
8283 echo "int foo(void){return 1;}" > conftest.c
8284 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8285 -dynamiclib ${wl}-single_module conftest.c
8286 if test -f libconftest.dylib; then
8287 lt_cv_apple_cc_single_mod=yes
8288 rm libconftest.dylib
8294 output_verbose_link_cmd=echo
8295 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8296 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8297 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}'
8299 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8300 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}'
8302 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8303 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}'
8305 case $cc_basename in
8307 output_verbose_link_cmd=echo
8308 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8309 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8310 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8311 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}'
8312 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}'
8322 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8323 hardcode_libdir_flag_spec='-L$libdir'
8324 hardcode_shlibpath_var=no
8331 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8332 # support. Future versions do this automatically, but an explicit c++rt0.o
8333 # does not break anything, and helps significantly (at the cost of a little
8336 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8337 hardcode_libdir_flag_spec='-R$libdir'
8339 hardcode_shlibpath_var=no
8342 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8344 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8346 hardcode_minus_L=yes
8347 hardcode_shlibpath_var=no
8350 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8351 freebsd* | dragonfly*)
8352 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8353 hardcode_libdir_flag_spec='-R$libdir'
8355 hardcode_shlibpath_var=no
8359 if test "$GCC" = yes; then
8360 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'
8362 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'
8364 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8365 hardcode_libdir_separator=:
8368 # hardcode_minus_L: Not really in the search PATH,
8369 # but as the default location of the library.
8370 hardcode_minus_L=yes
8371 export_dynamic_flag_spec='${wl}-E'
8375 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8376 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8378 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8380 if test "$with_gnu_ld" = no; then
8381 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8382 hardcode_libdir_flag_spec_ld='+b $libdir'
8383 hardcode_libdir_separator=:
8385 hardcode_direct_absolute=yes
8386 export_dynamic_flag_spec='${wl}-E'
8387 # hardcode_minus_L: Not really in the search PATH,
8388 # but as the default location of the library.
8389 hardcode_minus_L=yes
8394 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8397 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8400 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8403 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8409 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8412 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8415 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8419 if test "$with_gnu_ld" = no; then
8420 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8421 hardcode_libdir_separator=:
8426 hardcode_shlibpath_var=no
8430 hardcode_direct_absolute=yes
8431 export_dynamic_flag_spec='${wl}-E'
8433 # hardcode_minus_L: Not really in the search PATH,
8434 # but as the default location of the library.
8435 hardcode_minus_L=yes
8441 irix5* | irix6* | nonstopux*)
8442 if test "$GCC" = yes; then
8443 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'
8444 # Try to use the -exported_symbol ld option, if it does not
8445 # work, assume that -exports_file does not work either and
8446 # implicitly export all symbols.
8447 save_LDFLAGS="$LDFLAGS"
8448 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8449 cat >conftest.$ac_ext <<_ACEOF
8452 rm -f conftest.$ac_objext conftest$ac_exeext
8453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8454 (eval $ac_link) 2>conftest.er1
8456 grep -v '^ *+' conftest.er1 >conftest.err
8458 cat conftest.err >&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); } &&
8461 { ac_try='test -z "$ac_c_werror_flag"
8462 || test ! -s conftest.err'
8463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }; } &&
8468 { ac_try='test -s conftest$ac_exeext'
8469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); }; }; then
8474 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'
8477 echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.$ac_ext >&5
8481 rm -f conftest.err conftest.$ac_objext \
8482 conftest$ac_exeext conftest.$ac_ext
8483 LDFLAGS="$save_LDFLAGS"
8485 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'
8486 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'
8488 archive_cmds_need_lc='no'
8489 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8490 hardcode_libdir_separator=:
8492 link_all_deplibs=yes
8496 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8497 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8499 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8501 hardcode_libdir_flag_spec='-R$libdir'
8503 hardcode_shlibpath_var=no
8507 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8509 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8510 hardcode_libdir_separator=:
8511 hardcode_shlibpath_var=no
8519 hardcode_shlibpath_var=no
8520 hardcode_direct_absolute=yes
8521 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8522 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8523 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8524 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8525 export_dynamic_flag_spec='${wl}-E'
8528 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8529 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8530 hardcode_libdir_flag_spec='-R$libdir'
8533 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8534 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8541 hardcode_libdir_flag_spec='-L$libdir'
8542 hardcode_minus_L=yes
8543 allow_undefined_flag=unsupported
8544 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'
8545 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8549 if test "$GCC" = yes; then
8550 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8551 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'
8553 allow_undefined_flag=' -expect_unresolved \*'
8554 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'
8556 archive_cmds_need_lc='no'
8557 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8558 hardcode_libdir_separator=:
8561 osf4* | osf5*) # as osf3* with the addition of -msym flag
8562 if test "$GCC" = yes; then
8563 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8564 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'
8565 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8567 allow_undefined_flag=' -expect_unresolved \*'
8568 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'
8569 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~
8570 $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'
8572 # Both c and cxx compiler support -rpath directly
8573 hardcode_libdir_flag_spec='-rpath $libdir'
8575 archive_cmds_need_lc='no'
8576 hardcode_libdir_separator=:
8580 no_undefined_flag=' -z defs'
8581 if test "$GCC" = yes; then
8583 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8584 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8585 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8587 case `$CC -V 2>&1` in
8590 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8591 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8592 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8596 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8597 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8598 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8602 hardcode_libdir_flag_spec='-R$libdir'
8603 hardcode_shlibpath_var=no
8605 solaris2.[0-5] | solaris2.[0-5].*) ;;
8607 # The compiler driver will combine and reorder linker options,
8608 # but understands `-z linker_flag'. GCC discards it without `$wl',
8609 # but is careful enough not to reorder.
8610 # Supported since Solaris 2.6 (maybe 2.5.1?)
8611 if test "$GCC" = yes; then
8612 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8614 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8618 link_all_deplibs=yes
8622 if test "x$host_vendor" = xsequent; then
8623 # Use $CC to link under sequent, because it throws in some extra .o
8624 # files that make .init and .fini sections work.
8625 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8627 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8629 hardcode_libdir_flag_spec='-L$libdir'
8631 hardcode_minus_L=yes
8632 hardcode_shlibpath_var=no
8636 case $host_vendor in
8638 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8639 hardcode_direct=yes # is this really true???
8642 ## LD is ld it makes a PLAMLIB
8643 ## CC just makes a GrossModule.
8644 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8645 reload_cmds='$CC -r -o $output$reload_objs'
8649 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8650 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8653 runpath_var='LD_RUN_PATH'
8654 hardcode_shlibpath_var=no
8658 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8659 hardcode_shlibpath_var=no
8660 export_dynamic_flag_spec='-Bexport'
8664 if test -d /usr/nec; then
8665 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8666 hardcode_shlibpath_var=no
8667 runpath_var=LD_RUN_PATH
8668 hardcode_runpath_var=yes
8673 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8674 no_undefined_flag='${wl}-z,text'
8675 archive_cmds_need_lc=no
8676 hardcode_shlibpath_var=no
8677 runpath_var='LD_RUN_PATH'
8679 if test "$GCC" = yes; then
8680 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8681 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8683 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8684 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8688 sysv5* | sco3.2v5* | sco5v6*)
8689 # Note: We can NOT use -z defs as we might desire, because we do not
8690 # link with -lc, and that would cause any symbols used from libc to
8691 # always be unresolved, which means just about no library would
8692 # ever link correctly. If we're not using GNU ld we use -z text
8693 # though, which does catch some bad symbols but isn't as heavy-handed
8695 no_undefined_flag='${wl}-z,text'
8696 allow_undefined_flag='${wl}-z,nodefs'
8697 archive_cmds_need_lc=no
8698 hardcode_shlibpath_var=no
8699 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8700 hardcode_libdir_separator=':'
8701 link_all_deplibs=yes
8702 export_dynamic_flag_spec='${wl}-Bexport'
8703 runpath_var='LD_RUN_PATH'
8705 if test "$GCC" = yes; then
8706 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8707 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8709 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8710 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8715 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8716 hardcode_libdir_flag_spec='-L$libdir'
8717 hardcode_shlibpath_var=no
8725 if test x$host_vendor = xsni; then
8727 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8728 export_dynamic_flag_spec='${wl}-Blargedynsym'
8734 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8735 echo "${ECHO_T}$ld_shlibs" >&6
8736 test "$ld_shlibs" = no && can_build_shared=no
8738 with_gnu_ld=$with_gnu_ld
8755 # Do we need to explicitly link libc?
8757 case "x$archive_cmds_need_lc" in
8759 # Assume -lc should be added
8760 archive_cmds_need_lc=yes
8762 if test "$enable_shared" = yes && test "$GCC" = yes; then
8763 case $archive_cmds in
8765 # FIXME: we may have to deal with multi-command sequences.
8768 # Test whether the compiler implicitly links with -lc since on some
8769 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8770 # to ld, don't add -lc before -lgcc.
8771 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8772 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8774 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8777 (eval $ac_compile) 2>&5
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); } 2>conftest.err; then
8783 libobjs=conftest.$ac_objext
8785 wl=$lt_prog_compiler_wl
8786 pic_flag=$lt_prog_compiler_pic
8792 lt_save_allow_undefined_flag=$allow_undefined_flag
8793 allow_undefined_flag=
8794 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8795 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 (exit $ac_status); }
8800 archive_cmds_need_lc=no
8802 archive_cmds_need_lc=yes
8804 allow_undefined_flag=$lt_save_allow_undefined_flag
8806 cat conftest.err 1>&5
8809 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8810 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8973 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8974 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8976 if test "$withGCC" = yes; then
8978 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8979 *) lt_awk_arg="/^libraries:/" ;;
8981 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8982 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8983 # if the path contains ";" then we assume it to be the separator
8984 # otherwise default to the standard path separator (i.e. ":") - it is
8985 # assumed that no part of a normal pathname contains ";" but that should
8986 # okay in the real world where ";" in dirpaths is itself problematic.
8987 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8989 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8991 # Ok, now we have the path, separated by spaces, we can step through it
8992 # and add multilib dir if necessary.
8993 lt_tmp_lt_search_path_spec=
8994 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8995 for lt_sys_path in $lt_search_path_spec; do
8996 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8997 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8999 test -d "$lt_sys_path" && \
9000 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9003 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9004 BEGIN {RS=" "; FS="/|\n";} {
9007 for (lt_i = NF; lt_i > 0; lt_i--) {
9008 if ($lt_i != "" && $lt_i != ".") {
9009 if ($lt_i == "..") {
9012 if (lt_count == 0) {
9013 lt_foo="/" $lt_i lt_foo;
9020 if (lt_foo != "") { lt_freq[lt_foo]++; }
9021 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9023 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9025 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9028 libname_spec='lib$name'
9036 shlibpath_overrides_runpath=unknown
9038 dynamic_linker="$host_os ld.so"
9039 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9040 need_lib_prefix=unknown
9041 hardcode_into_libs=no
9043 # when you set need_version to no, make sure it does not cause -set_version
9044 # flags to be left without arguments
9045 need_version=unknown
9050 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9051 shlibpath_var=LIBPATH
9053 # AIX 3 has no versioning support, so we append a major version to the name.
9054 soname_spec='${libname}${release}${shared_ext}$major'
9061 hardcode_into_libs=yes
9062 if test "$host_cpu" = ia64; then
9063 # AIX 5 supports IA64
9064 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9065 shlibpath_var=LD_LIBRARY_PATH
9067 # With GCC up to 2.95.x, collect2 would create an import file
9068 # for dependence libraries. The import file would start with
9069 # the line `#! .'. This would cause the generated library to
9070 # depend on `.', always an invalid library. This was fixed in
9071 # development snapshots of GCC prior to 3.0.
9073 aix4 | aix4.[01] | aix4.[01].*)
9074 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9076 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9083 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9084 # soname into executable. Probably we can add versioning support to
9085 # collect2, so additional links can be useful in future.
9086 if test "$aix_use_runtimelinking" = yes; then
9087 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9088 # instead of lib<name>.a to let people know that these are not
9089 # typical AIX shared libraries.
9090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9092 # We preserve .a as extension for shared libraries through AIX4.2
9093 # and later when we are not doing run time linking.
9094 library_names_spec='${libname}${release}.a $libname.a'
9095 soname_spec='${libname}${release}${shared_ext}$major'
9097 shlibpath_var=LIBPATH
9102 if test "$host_cpu" = m68k; then
9103 library_names_spec='$libname.ixlibrary $libname.a'
9104 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9105 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'
9112 library_names_spec='${libname}${shared_ext}'
9113 dynamic_linker="$host_os ld.so"
9114 shlibpath_var=LIBRARY_PATH
9120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9121 soname_spec='${libname}${release}${shared_ext}$major'
9122 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9123 shlibpath_var=LD_LIBRARY_PATH
9124 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9125 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9126 # the default ld.so.conf also contains /usr/contrib/lib and
9127 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9128 # libtool to hard-code these into programs
9131 cygwin* | mingw* | pw32*)
9132 version_type=windows
9137 case $withGCC,$host_os in
9138 yes,cygwin* | yes,mingw* | yes,pw32*)
9139 library_names_spec='$libname.dll.a'
9140 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9141 postinstall_cmds='base_file=`basename \${file}`~
9142 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9143 dldir=$destdir/`dirname \$dlpath`~
9144 test -d \$dldir || mkdir -p \$dldir~
9145 $install_prog $dir/$dlname \$dldir/$dlname~
9146 chmod a+x \$dldir/$dlname~
9147 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9148 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9150 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9151 dlpath=$dir/\$dldll~
9153 shlibpath_overrides_runpath=yes
9157 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9158 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9159 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9162 # MinGW DLLs use traditional 'lib' prefix
9163 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9164 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9165 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9166 # It is most probably a Windows format PATH printed by
9167 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9168 # path with ; separators, and with drive letters. We can handle the
9169 # drive letters (cygwin fileutils understands them), so leave them,
9170 # especially as we might pass files found there to a mingw objdump,
9171 # which wouldn't understand a cygwinified path. Ahh.
9172 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9174 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9178 # pw32 DLLs use 'pw' prefix rather than 'lib'
9179 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9185 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9188 dynamic_linker='Win32 ld.exe'
9189 # FIXME: first we should search . and the directory the executable is in
9193 darwin* | rhapsody*)
9194 dynamic_linker="$host_os dyld"
9198 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9199 soname_spec='${libname}${release}${major}$shared_ext'
9200 shlibpath_overrides_runpath=yes
9201 shlibpath_var=DYLD_LIBRARY_PATH
9202 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9204 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9205 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9213 soname_spec='${libname}${release}${shared_ext}$major'
9214 shlibpath_var=LD_LIBRARY_PATH
9221 freebsd* | dragonfly*)
9222 # DragonFly does not have aout. When/if they implement a new
9223 # versioning mechanism, adjust this.
9224 if test -x /usr/bin/objformat; then
9225 objformat=`/usr/bin/objformat`
9228 freebsd[123]*) objformat=aout ;;
9232 version_type=freebsd-$objformat
9233 case $version_type in
9235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9240 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9244 shlibpath_var=LD_LIBRARY_PATH
9247 shlibpath_overrides_runpath=yes
9249 freebsd3.[01]* | freebsdelf3.[01]*)
9250 shlibpath_overrides_runpath=yes
9251 hardcode_into_libs=yes
9253 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9254 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9255 shlibpath_overrides_runpath=no
9256 hardcode_into_libs=yes
9258 *) # from 4.6 on, and DragonFly
9259 shlibpath_overrides_runpath=yes
9260 hardcode_into_libs=yes
9269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9270 soname_spec='${libname}${release}${shared_ext}$major'
9271 shlibpath_var=LD_LIBRARY_PATH
9272 hardcode_into_libs=yes
9275 hpux9* | hpux10* | hpux11*)
9276 # Give a soname corresponding to the major version so that dld.sl refuses to
9277 # link against other versions.
9284 hardcode_into_libs=yes
9285 dynamic_linker="$host_os dld.so"
9286 shlibpath_var=LD_LIBRARY_PATH
9287 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9289 soname_spec='${libname}${release}${shared_ext}$major'
9290 if test "X$HPUX_IA64_MODE" = X32; then
9291 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9293 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9295 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9299 hardcode_into_libs=yes
9300 dynamic_linker="$host_os dld.sl"
9301 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9302 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9304 soname_spec='${libname}${release}${shared_ext}$major'
9305 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9306 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9310 dynamic_linker="$host_os dld.sl"
9311 shlibpath_var=SHLIB_PATH
9312 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9314 soname_spec='${libname}${release}${shared_ext}$major'
9317 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9318 postinstall_cmds='chmod 555 $lib'
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='Interix 3.x ld.so.1 (PE, like ELF)'
9328 shlibpath_var=LD_LIBRARY_PATH
9329 shlibpath_overrides_runpath=no
9330 hardcode_into_libs=yes
9333 irix5* | irix6* | nonstopux*)
9335 nonstopux*) version_type=nonstopux ;;
9337 if test "$lt_cv_prog_gnu_ld" = yes; then
9345 soname_spec='${libname}${release}${shared_ext}$major'
9346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9348 irix5* | nonstopux*)
9352 case $LD in # libtool.m4 will add one of these switches to LD
9353 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9354 libsuff= shlibsuff= libmagic=32-bit;;
9355 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9356 libsuff=32 shlibsuff=N32 libmagic=N32;;
9357 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9358 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9359 *) libsuff= shlibsuff= libmagic=never-match;;
9363 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9364 shlibpath_overrides_runpath=no
9365 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9366 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9367 hardcode_into_libs=yes
9370 # No shared lib support for Linux oldld, aout, or coff.
9371 linux*oldld* | linux*aout* | linux*coff*)
9375 # This must be Linux ELF.
9376 linux* | k*bsd*-gnu)
9380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9381 soname_spec='${libname}${release}${shared_ext}$major'
9382 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9383 shlibpath_var=LD_LIBRARY_PATH
9384 shlibpath_overrides_runpath=no
9385 # Some binutils ld are patched to set DT_RUNPATH
9386 save_LDFLAGS=$LDFLAGS
9388 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9389 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9390 cat >conftest.$ac_ext <<_ACEOF
9393 cat confdefs.h >>conftest.$ac_ext
9394 cat >>conftest.$ac_ext <<_ACEOF
9395 /* end confdefs.h. */
9405 rm -f conftest.$ac_objext conftest$ac_exeext
9406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9407 (eval $ac_link) 2>conftest.er1
9409 grep -v '^ *+' conftest.er1 >conftest.err
9411 cat conftest.err >&5
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); } &&
9414 { ac_try='test -z "$ac_c_werror_flag"
9415 || test ! -s conftest.err'
9416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 (exit $ac_status); }; } &&
9421 { ac_try='test -s conftest$ac_exeext'
9422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); }; }; then
9427 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9428 shlibpath_overrides_runpath=yes
9432 echo "$as_me: failed program was:" >&5
9433 sed 's/^/| /' conftest.$ac_ext >&5
9436 rm -f conftest.err conftest.$ac_objext \
9437 conftest$ac_exeext conftest.$ac_ext
9438 LDFLAGS=$save_LDFLAGS
9441 # This implies no fast_install, which is unacceptable.
9442 # Some rework will be needed to allow for fast_install
9443 # before this can be enabled.
9444 hardcode_into_libs=yes
9446 # Append ld.so.conf contents to the search path
9447 if test -f /etc/ld.so.conf; then
9448 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' ' '`
9449 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9452 # We used to test for /lib/ld.so.1 and disable shared libraries on
9453 # powerpc, because MkLinux only supported shared libraries with the
9454 # GNU dynamic linker. Since this was broken with cross compilers,
9455 # most powerpc-linux boxes support dynamic linking these days and
9456 # people can always --disable-shared, the test was removed, and we
9457 # assume the GNU/Linux dynamic linker is in use.
9458 dynamic_linker='GNU/Linux ld.so'
9465 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9467 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9468 dynamic_linker='NetBSD (a.out) ld.so'
9470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9471 soname_spec='${libname}${release}${shared_ext}$major'
9472 dynamic_linker='NetBSD ld.elf_so'
9474 shlibpath_var=LD_LIBRARY_PATH
9475 shlibpath_overrides_runpath=yes
9476 hardcode_into_libs=yes
9481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9482 shlibpath_var=LD_LIBRARY_PATH
9483 shlibpath_overrides_runpath=yes
9490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9491 soname_spec='${libname}${release}${shared_ext}$major'
9492 shlibpath_var=LD_LIBRARY_PATH
9493 shlibpath_overrides_runpath=no
9494 hardcode_into_libs=yes
9495 dynamic_linker='ldqnx.so'
9500 sys_lib_dlsearch_path_spec="/usr/lib"
9502 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9504 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9505 *) need_version=no ;;
9507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9508 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9509 shlibpath_var=LD_LIBRARY_PATH
9510 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9512 openbsd2.[89] | openbsd2.[89].*)
9513 shlibpath_overrides_runpath=no
9516 shlibpath_overrides_runpath=yes
9520 shlibpath_overrides_runpath=yes
9525 libname_spec='$name'
9528 library_names_spec='$libname${shared_ext} $libname.a'
9529 dynamic_linker='OS/2 ld.exe'
9530 shlibpath_var=LIBPATH
9533 osf3* | osf4* | osf5*)
9537 soname_spec='${libname}${release}${shared_ext}$major'
9538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9539 shlibpath_var=LD_LIBRARY_PATH
9540 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9541 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9553 soname_spec='${libname}${release}${shared_ext}$major'
9554 shlibpath_var=LD_LIBRARY_PATH
9555 shlibpath_overrides_runpath=yes
9556 hardcode_into_libs=yes
9557 # ldd complains unless libraries are executable
9558 postinstall_cmds='chmod +x $lib'
9563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9564 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9565 shlibpath_var=LD_LIBRARY_PATH
9566 shlibpath_overrides_runpath=yes
9567 if test "$with_gnu_ld" = yes; then
9575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9576 soname_spec='${libname}${release}${shared_ext}$major'
9577 shlibpath_var=LD_LIBRARY_PATH
9578 case $host_vendor in
9580 shlibpath_overrides_runpath=no
9582 runpath_var=LD_RUN_PATH
9590 shlibpath_overrides_runpath=no
9591 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9597 if test -d /usr/nec ;then
9599 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9600 soname_spec='$libname${shared_ext}.$major'
9601 shlibpath_var=LD_LIBRARY_PATH
9605 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9606 version_type=freebsd-elf
9609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9610 soname_spec='${libname}${release}${shared_ext}$major'
9611 shlibpath_var=LD_LIBRARY_PATH
9612 shlibpath_overrides_runpath=yes
9613 hardcode_into_libs=yes
9614 if test "$with_gnu_ld" = yes; then
9615 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9617 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9620 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9624 sys_lib_dlsearch_path_spec='/usr/lib'
9628 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9632 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9633 shlibpath_var=LD_LIBRARY_PATH
9634 shlibpath_overrides_runpath=no
9635 hardcode_into_libs=yes
9640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9641 soname_spec='${libname}${release}${shared_ext}$major'
9642 shlibpath_var=LD_LIBRARY_PATH
9649 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9650 echo "${ECHO_T}$dynamic_linker" >&6
9651 test "$dynamic_linker" = no && can_build_shared=no
9653 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9654 if test "$GCC" = yes; then
9655 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9744 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9745 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9747 if test -n "$hardcode_libdir_flag_spec" ||
9748 test -n "$runpath_var" ||
9749 test "X$hardcode_automatic" = "Xyes" ; then
9751 # We can hardcode non-existent directories.
9752 if test "$hardcode_direct" != no &&
9753 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9754 # have to relink, otherwise we might link with an installed library
9755 # when we should be linking with a yet-to-be-installed one
9756 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9757 test "$hardcode_minus_L" != no; then
9758 # Linking always hardcodes the temporary library directory.
9759 hardcode_action=relink
9761 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9762 hardcode_action=immediate
9765 # We cannot hardcode anything, or else we can only hardcode existing
9767 hardcode_action=unsupported
9769 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9770 echo "${ECHO_T}$hardcode_action" >&6
9772 if test "$hardcode_action" = relink ||
9773 test "$inherit_rpath" = yes; then
9774 # Fast installation is not supported
9775 enable_fast_install=no
9776 elif test "$shlibpath_overrides_runpath" = yes ||
9777 test "$enable_shared" = no; then
9778 # Fast installation is not necessary
9779 enable_fast_install=needless
9787 if test "x$enable_dlopen" != xyes; then
9788 enable_dlopen=unknown
9789 enable_dlopen_self=unknown
9790 enable_dlopen_self_static=unknown
9797 lt_cv_dlopen="load_add_on"
9799 lt_cv_dlopen_self=yes
9803 lt_cv_dlopen="LoadLibrary"
9808 lt_cv_dlopen="dlopen"
9813 # if libdl is installed we need to link against it
9814 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9815 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9816 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9817 echo $ECHO_N "(cached) $ECHO_C" >&6
9819 ac_check_lib_save_LIBS=$LIBS
9821 cat >conftest.$ac_ext <<_ACEOF
9824 cat confdefs.h >>conftest.$ac_ext
9825 cat >>conftest.$ac_ext <<_ACEOF
9826 /* end confdefs.h. */
9828 /* Override any gcc2 internal prototype to avoid an error. */
9832 /* We use char because int might match the return type of a gcc2
9833 builtin and then its argument prototype would still apply. */
9843 rm -f conftest.$ac_objext conftest$ac_exeext
9844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9845 (eval $ac_link) 2>conftest.er1
9847 grep -v '^ *+' conftest.er1 >conftest.err
9849 cat conftest.err >&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); } &&
9852 { ac_try='test -z "$ac_c_werror_flag"
9853 || test ! -s conftest.err'
9854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); }; } &&
9859 { ac_try='test -s conftest$ac_exeext'
9860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); }; }; then
9865 ac_cv_lib_dl_dlopen=yes
9867 echo "$as_me: failed program was:" >&5
9868 sed 's/^/| /' conftest.$ac_ext >&5
9870 ac_cv_lib_dl_dlopen=no
9872 rm -f conftest.err conftest.$ac_objext \
9873 conftest$ac_exeext conftest.$ac_ext
9874 LIBS=$ac_check_lib_save_LIBS
9876 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9877 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9878 if test $ac_cv_lib_dl_dlopen = yes; then
9879 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9884 lt_cv_dlopen_self=yes
9891 echo "$as_me:$LINENO: checking for shl_load" >&5
9892 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9893 if test "${ac_cv_func_shl_load+set}" = set; then
9894 echo $ECHO_N "(cached) $ECHO_C" >&6
9896 cat >conftest.$ac_ext <<_ACEOF
9899 cat confdefs.h >>conftest.$ac_ext
9900 cat >>conftest.$ac_ext <<_ACEOF
9901 /* end confdefs.h. */
9902 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9904 #define shl_load innocuous_shl_load
9906 /* System header to define __stub macros and hopefully few prototypes,
9907 which can conflict with char shl_load (); below.
9908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9909 <limits.h> exists even on freestanding compilers. */
9912 # include <limits.h>
9914 # include <assert.h>
9919 /* Override any gcc2 internal prototype to avoid an error. */
9924 /* We use char because int might match the return type of a gcc2
9925 builtin and then its argument prototype would still apply. */
9927 /* The GNU C library defines this for functions which it implements
9928 to always fail with ENOSYS. Some functions are actually named
9929 something starting with __ and the normal name is an alias. */
9930 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9933 char (*f) () = shl_load;
9942 return f != shl_load;
9947 rm -f conftest.$ac_objext conftest$ac_exeext
9948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9949 (eval $ac_link) 2>conftest.er1
9951 grep -v '^ *+' conftest.er1 >conftest.err
9953 cat conftest.err >&5
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); } &&
9956 { ac_try='test -z "$ac_c_werror_flag"
9957 || test ! -s conftest.err'
9958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 (exit $ac_status); }; } &&
9963 { ac_try='test -s conftest$ac_exeext'
9964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); }; }; then
9969 ac_cv_func_shl_load=yes
9971 echo "$as_me: failed program was:" >&5
9972 sed 's/^/| /' conftest.$ac_ext >&5
9974 ac_cv_func_shl_load=no
9976 rm -f conftest.err conftest.$ac_objext \
9977 conftest$ac_exeext conftest.$ac_ext
9979 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9980 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9981 if test $ac_cv_func_shl_load = yes; then
9982 lt_cv_dlopen="shl_load"
9984 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9985 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9986 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9987 echo $ECHO_N "(cached) $ECHO_C" >&6
9989 ac_check_lib_save_LIBS=$LIBS
9991 cat >conftest.$ac_ext <<_ACEOF
9994 cat confdefs.h >>conftest.$ac_ext
9995 cat >>conftest.$ac_ext <<_ACEOF
9996 /* end confdefs.h. */
9998 /* Override any gcc2 internal prototype to avoid an error. */
10002 /* We use char because int might match the return type of a gcc2
10003 builtin and then its argument prototype would still apply. */
10013 rm -f conftest.$ac_objext conftest$ac_exeext
10014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10015 (eval $ac_link) 2>conftest.er1
10017 grep -v '^ *+' conftest.er1 >conftest.err
10019 cat conftest.err >&5
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); } &&
10022 { ac_try='test -z "$ac_c_werror_flag"
10023 || test ! -s conftest.err'
10024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10025 (eval $ac_try) 2>&5
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); }; } &&
10029 { ac_try='test -s conftest$ac_exeext'
10030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10031 (eval $ac_try) 2>&5
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); }; }; then
10035 ac_cv_lib_dld_shl_load=yes
10037 echo "$as_me: failed program was:" >&5
10038 sed 's/^/| /' conftest.$ac_ext >&5
10040 ac_cv_lib_dld_shl_load=no
10042 rm -f conftest.err conftest.$ac_objext \
10043 conftest$ac_exeext conftest.$ac_ext
10044 LIBS=$ac_check_lib_save_LIBS
10046 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10047 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10048 if test $ac_cv_lib_dld_shl_load = yes; then
10049 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10051 echo "$as_me:$LINENO: checking for dlopen" >&5
10052 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10053 if test "${ac_cv_func_dlopen+set}" = set; then
10054 echo $ECHO_N "(cached) $ECHO_C" >&6
10056 cat >conftest.$ac_ext <<_ACEOF
10059 cat confdefs.h >>conftest.$ac_ext
10060 cat >>conftest.$ac_ext <<_ACEOF
10061 /* end confdefs.h. */
10062 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10064 #define dlopen innocuous_dlopen
10066 /* System header to define __stub macros and hopefully few prototypes,
10067 which can conflict with char dlopen (); below.
10068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10069 <limits.h> exists even on freestanding compilers. */
10072 # include <limits.h>
10074 # include <assert.h>
10079 /* Override any gcc2 internal prototype to avoid an error. */
10084 /* We use char because int might match the return type of a gcc2
10085 builtin and then its argument prototype would still apply. */
10087 /* The GNU C library defines this for functions which it implements
10088 to always fail with ENOSYS. Some functions are actually named
10089 something starting with __ and the normal name is an alias. */
10090 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10093 char (*f) () = dlopen;
10102 return f != dlopen;
10107 rm -f conftest.$ac_objext conftest$ac_exeext
10108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10109 (eval $ac_link) 2>conftest.er1
10111 grep -v '^ *+' conftest.er1 >conftest.err
10113 cat conftest.err >&5
10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); } &&
10116 { ac_try='test -z "$ac_c_werror_flag"
10117 || test ! -s conftest.err'
10118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10119 (eval $ac_try) 2>&5
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); }; } &&
10123 { ac_try='test -s conftest$ac_exeext'
10124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10125 (eval $ac_try) 2>&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); }; }; then
10129 ac_cv_func_dlopen=yes
10131 echo "$as_me: failed program was:" >&5
10132 sed 's/^/| /' conftest.$ac_ext >&5
10134 ac_cv_func_dlopen=no
10136 rm -f conftest.err conftest.$ac_objext \
10137 conftest$ac_exeext conftest.$ac_ext
10139 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10140 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10141 if test $ac_cv_func_dlopen = yes; then
10142 lt_cv_dlopen="dlopen"
10144 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10145 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10146 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10147 echo $ECHO_N "(cached) $ECHO_C" >&6
10149 ac_check_lib_save_LIBS=$LIBS
10151 cat >conftest.$ac_ext <<_ACEOF
10154 cat confdefs.h >>conftest.$ac_ext
10155 cat >>conftest.$ac_ext <<_ACEOF
10156 /* end confdefs.h. */
10158 /* Override any gcc2 internal prototype to avoid an error. */
10162 /* We use char because int might match the return type of a gcc2
10163 builtin and then its argument prototype would still apply. */
10173 rm -f conftest.$ac_objext conftest$ac_exeext
10174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10175 (eval $ac_link) 2>conftest.er1
10177 grep -v '^ *+' conftest.er1 >conftest.err
10179 cat conftest.err >&5
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); } &&
10182 { ac_try='test -z "$ac_c_werror_flag"
10183 || test ! -s conftest.err'
10184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10185 (eval $ac_try) 2>&5
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); }; } &&
10189 { ac_try='test -s conftest$ac_exeext'
10190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10191 (eval $ac_try) 2>&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); }; }; then
10195 ac_cv_lib_dl_dlopen=yes
10197 echo "$as_me: failed program was:" >&5
10198 sed 's/^/| /' conftest.$ac_ext >&5
10200 ac_cv_lib_dl_dlopen=no
10202 rm -f conftest.err conftest.$ac_objext \
10203 conftest$ac_exeext conftest.$ac_ext
10204 LIBS=$ac_check_lib_save_LIBS
10206 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10207 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10208 if test $ac_cv_lib_dl_dlopen = yes; then
10209 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10211 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10212 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10213 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10214 echo $ECHO_N "(cached) $ECHO_C" >&6
10216 ac_check_lib_save_LIBS=$LIBS
10217 LIBS="-lsvld $LIBS"
10218 cat >conftest.$ac_ext <<_ACEOF
10221 cat confdefs.h >>conftest.$ac_ext
10222 cat >>conftest.$ac_ext <<_ACEOF
10223 /* end confdefs.h. */
10225 /* Override any gcc2 internal prototype to avoid an error. */
10229 /* We use char because int might match the return type of a gcc2
10230 builtin and then its argument prototype would still apply. */
10240 rm -f conftest.$ac_objext conftest$ac_exeext
10241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10242 (eval $ac_link) 2>conftest.er1
10244 grep -v '^ *+' conftest.er1 >conftest.err
10246 cat conftest.err >&5
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); } &&
10249 { ac_try='test -z "$ac_c_werror_flag"
10250 || test ! -s conftest.err'
10251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10252 (eval $ac_try) 2>&5
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); }; } &&
10256 { ac_try='test -s conftest$ac_exeext'
10257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258 (eval $ac_try) 2>&5
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); }; }; then
10262 ac_cv_lib_svld_dlopen=yes
10264 echo "$as_me: failed program was:" >&5
10265 sed 's/^/| /' conftest.$ac_ext >&5
10267 ac_cv_lib_svld_dlopen=no
10269 rm -f conftest.err conftest.$ac_objext \
10270 conftest$ac_exeext conftest.$ac_ext
10271 LIBS=$ac_check_lib_save_LIBS
10273 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10274 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10275 if test $ac_cv_lib_svld_dlopen = yes; then
10276 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10278 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10279 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10280 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10281 echo $ECHO_N "(cached) $ECHO_C" >&6
10283 ac_check_lib_save_LIBS=$LIBS
10285 cat >conftest.$ac_ext <<_ACEOF
10288 cat confdefs.h >>conftest.$ac_ext
10289 cat >>conftest.$ac_ext <<_ACEOF
10290 /* end confdefs.h. */
10292 /* Override any gcc2 internal prototype to avoid an error. */
10296 /* We use char because int might match the return type of a gcc2
10297 builtin and then its argument prototype would still apply. */
10307 rm -f conftest.$ac_objext conftest$ac_exeext
10308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10309 (eval $ac_link) 2>conftest.er1
10311 grep -v '^ *+' conftest.er1 >conftest.err
10313 cat conftest.err >&5
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); } &&
10316 { ac_try='test -z "$ac_c_werror_flag"
10317 || test ! -s conftest.err'
10318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319 (eval $ac_try) 2>&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); }; } &&
10323 { ac_try='test -s conftest$ac_exeext'
10324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325 (eval $ac_try) 2>&5
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); }; }; then
10329 ac_cv_lib_dld_dld_link=yes
10331 echo "$as_me: failed program was:" >&5
10332 sed 's/^/| /' conftest.$ac_ext >&5
10334 ac_cv_lib_dld_dld_link=no
10336 rm -f conftest.err conftest.$ac_objext \
10337 conftest$ac_exeext conftest.$ac_ext
10338 LIBS=$ac_check_lib_save_LIBS
10340 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10341 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10342 if test $ac_cv_lib_dld_dld_link = yes; then
10343 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10364 if test "x$lt_cv_dlopen" != xno; then
10370 case $lt_cv_dlopen in
10372 save_CPPFLAGS="$CPPFLAGS"
10373 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10375 save_LDFLAGS="$LDFLAGS"
10376 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10379 LIBS="$lt_cv_dlopen_libs $LIBS"
10381 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10382 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10383 if test "${lt_cv_dlopen_self+set}" = set; then
10384 echo $ECHO_N "(cached) $ECHO_C" >&6
10386 if test "$cross_compiling" = yes; then :
10387 lt_cv_dlopen_self=cross
10389 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10390 lt_status=$lt_dlunknown
10391 cat > conftest.$ac_ext <<_LT_EOF
10392 #line 10392 "configure"
10393 #include "confdefs.h"
10402 # define LT_DLGLOBAL RTLD_GLOBAL
10405 # define LT_DLGLOBAL DL_GLOBAL
10407 # define LT_DLGLOBAL 0
10411 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10412 find out it does not work in some platform. */
10413 #ifndef LT_DLLAZY_OR_NOW
10415 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10418 # define LT_DLLAZY_OR_NOW DL_LAZY
10421 # define LT_DLLAZY_OR_NOW RTLD_NOW
10424 # define LT_DLLAZY_OR_NOW DL_NOW
10426 # define LT_DLLAZY_OR_NOW 0
10434 extern "C" void exit (int);
10437 void fnord() { int i=42;}
10440 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10441 int status = $lt_dlunknown;
10445 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10446 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10447 /* dlclose (self); */
10455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10456 (eval $ac_link) 2>&5
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10460 (./conftest; exit; ) >&5 2>/dev/null
10462 case x$lt_status in
10463 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10464 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10465 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10468 # compilation failed
10469 lt_cv_dlopen_self=no
10476 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10477 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10479 if test "x$lt_cv_dlopen_self" = xyes; then
10480 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10481 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10482 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10483 if test "${lt_cv_dlopen_self_static+set}" = set; then
10484 echo $ECHO_N "(cached) $ECHO_C" >&6
10486 if test "$cross_compiling" = yes; then :
10487 lt_cv_dlopen_self_static=cross
10489 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10490 lt_status=$lt_dlunknown
10491 cat > conftest.$ac_ext <<_LT_EOF
10492 #line 10492 "configure"
10493 #include "confdefs.h"
10502 # define LT_DLGLOBAL RTLD_GLOBAL
10505 # define LT_DLGLOBAL DL_GLOBAL
10507 # define LT_DLGLOBAL 0
10511 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10512 find out it does not work in some platform. */
10513 #ifndef LT_DLLAZY_OR_NOW
10515 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10518 # define LT_DLLAZY_OR_NOW DL_LAZY
10521 # define LT_DLLAZY_OR_NOW RTLD_NOW
10524 # define LT_DLLAZY_OR_NOW DL_NOW
10526 # define LT_DLLAZY_OR_NOW 0
10534 extern "C" void exit (int);
10537 void fnord() { int i=42;}
10540 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10541 int status = $lt_dlunknown;
10545 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10546 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10547 /* dlclose (self); */
10555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10556 (eval $ac_link) 2>&5
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10560 (./conftest; exit; ) >&5 2>/dev/null
10562 case x$lt_status in
10563 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10564 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10565 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10568 # compilation failed
10569 lt_cv_dlopen_self_static=no
10576 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10577 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10580 CPPFLAGS="$save_CPPFLAGS"
10581 LDFLAGS="$save_LDFLAGS"
10586 case $lt_cv_dlopen_self in
10587 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10588 *) enable_dlopen_self=unknown ;;
10591 case $lt_cv_dlopen_self_static in
10592 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10593 *) enable_dlopen_self_static=unknown ;;
10615 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10616 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10617 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10618 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10619 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10620 echo "$as_me:$LINENO: result: yes" >&5
10621 echo "${ECHO_T}yes" >&6
10623 # FIXME - insert some real tests, host_os isn't really good enough
10626 if test -n "$STRIP" ; then
10627 striplib="$STRIP -x"
10628 old_striplib="$STRIP -S"
10629 echo "$as_me:$LINENO: result: yes" >&5
10630 echo "${ECHO_T}yes" >&6
10632 echo "$as_me:$LINENO: result: no" >&5
10633 echo "${ECHO_T}no" >&6
10637 echo "$as_me:$LINENO: result: no" >&5
10638 echo "${ECHO_T}no" >&6
10654 # Report which library types will actually be built
10655 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10656 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10657 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10658 echo "${ECHO_T}$can_build_shared" >&6
10660 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10661 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10662 test "$can_build_shared" = "no" && enable_shared=no
10664 # On AIX, shared libraries and static libraries use the same namespace, and
10665 # are all built from PIC.
10668 test "$enable_shared" = yes && enable_static=no
10669 if test -n "$RANLIB"; then
10670 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10671 postinstall_cmds='$RANLIB $lib'
10676 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10677 test "$enable_shared" = yes && enable_static=no
10681 echo "$as_me:$LINENO: result: $enable_shared" >&5
10682 echo "${ECHO_T}$enable_shared" >&6
10684 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10685 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10686 # Make sure either enable_shared or enable_static is yes.
10687 test "$enable_shared" = yes || enable_static=yes
10688 echo "$as_me:$LINENO: result: $enable_static" >&5
10689 echo "${ECHO_T}$enable_static" >&6
10696 ac_cpp='$CPP $CPPFLAGS'
10697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10715 ac_config_commands="$ac_config_commands libtool"
10720 # Only expand once:
10724 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
10725 if test "${enable_64_bit_bfd+set}" = set; then
10726 enableval="$enable_64_bit_bfd"
10727 case "${enableval}" in
10728 yes) want64=true ;;
10729 no) want64=false ;;
10730 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
10731 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
10732 { (exit 1); exit 1; }; } ;;
10737 # Check whether --enable-targets or --disable-targets was given.
10738 if test "${enable_targets+set}" = set; then
10739 enableval="$enable_targets"
10740 case "${enableval}" in
10741 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10742 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10743 { (exit 1); exit 1; }; }
10745 no) enable_targets= ;;
10746 *) enable_targets=$enableval ;;
10749 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10750 if test "${enable_commonbfdlib+set}" = set; then
10751 enableval="$enable_commonbfdlib"
10752 case "${enableval}" in
10753 yes) commonbfdlib=true ;;
10754 no) commonbfdlib=false ;;
10755 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
10756 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10757 { (exit 1); exit 1; }; } ;;
10761 # Check whether --with-mmap or --without-mmap was given.
10762 if test "${with_mmap+set}" = set; then
10763 withval="$with_mmap"
10764 case "${withval}" in
10765 yes) want_mmap=true ;;
10766 no) want_mmap=false ;;
10767 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
10768 echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
10769 { (exit 1); exit 1; }; } ;;
10774 # Check whether --enable-secureplt or --disable-secureplt was given.
10775 if test "${enable_secureplt+set}" = set; then
10776 enableval="$enable_secureplt"
10777 case "${enableval}" in
10778 yes) use_secureplt=true ;;
10779 no) use_secureplt=false ;;
10780 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
10781 echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
10782 { (exit 1); exit 1; }; } ;;
10785 use_secureplt=false
10786 fi; if test $use_secureplt = true; then
10788 cat >>confdefs.h <<\_ACEOF
10789 #define USE_SECUREPLT 1
10794 DEBUGDIR=${libdir}/debug
10796 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
10797 if test "${with_separate_debug_dir+set}" = set; then
10798 withval="$with_separate_debug_dir"
10799 DEBUGDIR="${withval}"
10803 # Check to see if we should allow the generation of
10804 # symbols with the ELF standard's STT_COMMON type.
10805 # Check whether --enable-elf-stt-common or --disable-elf-stt-common was given.
10806 if test "${enable_elf_stt_common+set}" = set; then
10807 enableval="$enable_elf_stt_common"
10808 case "${enableval}" in
10809 yes) want_elf_stt_common=true ;;
10810 no) want_elf_stt_common=false ;;
10811 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for ELF STT_COMMON option" >&5
10812 echo "$as_me: error: bad value ${enableval} for ELF STT_COMMON option" >&2;}
10813 { (exit 1); exit 1; }; } ;;
10816 # We have to choose a default behaviour. For native builds we could
10817 # test whether the loader supports the STT_COMMON type, but that would
10818 # mean that built binaries could not be exported to older systems where
10819 # the loader does not support it. So by default we always choose to
10820 # disable this feature.
10821 want_elf_stt_common=false
10822 fi; if test $want_elf_stt_common = true; then
10824 cat >>confdefs.h <<\_ACEOF
10825 #define USE_STT_COMMON 1
10832 # Check whether --with-pkgversion or --without-pkgversion was given.
10833 if test "${with_pkgversion+set}" = set; then
10834 withval="$with_pkgversion"
10836 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
10837 echo "$as_me: error: package version not specified" >&2;}
10838 { (exit 1); exit 1; }; } ;;
10840 *) PKGVERSION="($withval) " ;;
10843 PKGVERSION="(GNU Binutils) "
10850 # Check whether --with-bugurl or --without-bugurl was given.
10851 if test "${with_bugurl+set}" = set; then
10852 withval="$with_bugurl"
10854 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
10855 echo "$as_me: error: bug URL not specified" >&2;}
10856 { (exit 1); exit 1; }; } ;;
10859 *) BUGURL="$withval"
10863 BUGURL="http://www.sourceware.org/bugzilla/"
10872 REPORT_BUGS_TO="<$BUGURL>"
10873 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
10881 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10883 # Check whether --enable-werror or --disable-werror was given.
10884 if test "${enable_werror+set}" = set; then
10885 enableval="$enable_werror"
10886 case "${enableval}" in
10887 yes | y) ERROR_ON_WARNING="yes" ;;
10888 no | n) ERROR_ON_WARNING="no" ;;
10889 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10890 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10891 { (exit 1); exit 1; }; } ;;
10895 # Enable -Wno-format by default when using gcc on mingw
10898 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10899 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
10905 # Enable -Werror by default when using gcc
10906 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10907 ERROR_ON_WARNING=yes
10911 if test "${ERROR_ON_WARNING}" = yes ; then
10912 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10913 NO_WERROR="-Wno-error"
10916 if test "${GCC}" = yes ; then
10917 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10920 # Check whether --enable-build-warnings or --disable-build-warnings was given.
10921 if test "${enable_build_warnings+set}" = set; then
10922 enableval="$enable_build_warnings"
10923 case "${enableval}" in
10924 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10925 no) if test "${GCC}" = yes ; then
10928 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10929 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10930 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10931 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10932 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10936 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10937 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
10944 ac_config_headers="$ac_config_headers config.h:config.in"
10947 if test -z "$target" ; then
10948 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
10949 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
10950 { (exit 1); exit 1; }; }
10953 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10954 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10955 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10956 if test "${enable_maintainer_mode+set}" = set; then
10957 enableval="$enable_maintainer_mode"
10958 USE_MAINTAINER_MODE=$enableval
10960 USE_MAINTAINER_MODE=no
10962 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10963 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
10966 if test $USE_MAINTAINER_MODE = yes; then
10967 MAINTAINER_MODE_TRUE=
10968 MAINTAINER_MODE_FALSE='#'
10970 MAINTAINER_MODE_TRUE='#'
10971 MAINTAINER_MODE_FALSE=
10974 MAINT=$MAINTAINER_MODE_TRUE
10980 GENINSRC_NEVER_TRUE=
10981 GENINSRC_NEVER_FALSE='#'
10983 GENINSRC_NEVER_TRUE='#'
10984 GENINSRC_NEVER_FALSE=
10987 case ${build_alias} in
10988 "") build_noncanonical=${build} ;;
10989 *) build_noncanonical=${build_alias} ;;
10992 case ${host_alias} in
10993 "") host_noncanonical=${build_noncanonical} ;;
10994 *) host_noncanonical=${host_alias} ;;
10997 case ${target_alias} in
10998 "") target_noncanonical=${host_noncanonical} ;;
10999 *) target_noncanonical=${target_alias} ;;
11002 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
11003 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
11004 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
11005 if test "${enable_install_libbfd+set}" = set; then
11006 enableval="$enable_install_libbfd"
11007 install_libbfd_p=$enableval
11009 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
11010 install_libbfd_p=yes
11012 install_libbfd_p=no
11015 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
11016 echo "${ECHO_T}$install_libbfd_p" >&6
11019 if test $install_libbfd_p = yes; then
11020 INSTALL_LIBBFD_TRUE=
11021 INSTALL_LIBBFD_FALSE='#'
11023 INSTALL_LIBBFD_TRUE='#'
11024 INSTALL_LIBBFD_FALSE=
11027 # Need _noncanonical variables for this.
11032 # libbfd.a is a host library containing target dependent code
11033 bfdlibdir='$(libdir)'
11034 bfdincludedir='$(includedir)'
11035 if test "${host}" != "${target}"; then
11036 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
11037 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
11047 bfd_default_target_size=32
11051 ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi"
11052 # If we haven't got the data from the intl directory,
11053 # assume NLS is disabled.
11062 if test -f ../intl/config.intl; then
11063 . ../intl/config.intl
11065 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11066 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11067 if test x"$USE_NLS" != xyes; then
11068 echo "$as_me:$LINENO: result: no" >&5
11069 echo "${ECHO_T}no" >&6
11071 echo "$as_me:$LINENO: result: yes" >&5
11072 echo "${ECHO_T}yes" >&6
11074 cat >>confdefs.h <<\_ACEOF
11075 #define ENABLE_NLS 1
11079 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11080 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
11081 # Look for .po and .gmo files in the source directory.
11084 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11085 # If there aren't any .gmo files the shell will give us the
11086 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11088 case "$cat" in *\**)
11091 # The quadruple backslash is collapsed to a double backslash
11092 # by the backticks, then collapsed again by the double quotes,
11093 # leaving us with one backslash in the sed expression (right
11094 # before the dot that mustn't act as a wildcard).
11095 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11096 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11097 # The user is allowed to set LINGUAS to a list of languages to
11098 # install catalogs for. If it's empty that means "all of them."
11099 if test "x$LINGUAS" = x; then
11100 CATALOGS="$CATALOGS $cat"
11101 XLINGUAS="$XLINGUAS $lang"
11103 case "$LINGUAS" in *$lang*)
11104 CATALOGS="$CATALOGS $cat"
11105 XLINGUAS="$XLINGUAS $lang"
11110 LINGUAS="$XLINGUAS"
11111 echo "$as_me:$LINENO: result: $LINGUAS" >&5
11112 echo "${ECHO_T}$LINGUAS" >&6
11126 if test -n "$ac_aux_dir"; then
11127 case "$ac_aux_dir" in
11128 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11129 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11132 if test -z "$MKINSTALLDIRS"; then
11133 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11138 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11139 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11140 # Check whether --enable-nls or --disable-nls was given.
11141 if test "${enable_nls+set}" = set; then
11142 enableval="$enable_nls"
11147 echo "$as_me:$LINENO: result: $USE_NLS" >&5
11148 echo "${ECHO_T}$USE_NLS" >&6
11155 # Prepare PATH_SEPARATOR.
11156 # The user is always right.
11157 if test "${PATH_SEPARATOR+set}" != set; then
11158 echo "#! /bin/sh" >conf$$.sh
11159 echo "exit 0" >>conf$$.sh
11161 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11169 # Find out how to test for executable files. Don't use a zero-byte file,
11170 # as systems may use methods other than mode bits to determine executability.
11171 cat >conf$$.file <<_ASEOF
11175 chmod +x conf$$.file
11176 if test -x conf$$.file >/dev/null 2>&1; then
11177 ac_executable_p="test -x"
11179 ac_executable_p="test -f"
11183 # Extract the first word of "msgfmt", so it can be a program name with args.
11184 set dummy msgfmt; ac_word=$2
11185 echo "$as_me:$LINENO: checking for $ac_word" >&5
11186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11187 if test "${ac_cv_path_MSGFMT+set}" = set; then
11188 echo $ECHO_N "(cached) $ECHO_C" >&6
11192 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11195 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11196 for ac_dir in $PATH; do
11198 test -z "$ac_dir" && ac_dir=.
11199 for ac_exec_ext in '' $ac_executable_extensions; do
11200 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11201 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11202 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11203 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11210 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11214 MSGFMT="$ac_cv_path_MSGFMT"
11215 if test "$MSGFMT" != ":"; then
11216 echo "$as_me:$LINENO: result: $MSGFMT" >&5
11217 echo "${ECHO_T}$MSGFMT" >&6
11219 echo "$as_me:$LINENO: result: no" >&5
11220 echo "${ECHO_T}no" >&6
11223 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11224 set dummy gmsgfmt; ac_word=$2
11225 echo "$as_me:$LINENO: checking for $ac_word" >&5
11226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11227 if test "${ac_cv_path_GMSGFMT+set}" = set; then
11228 echo $ECHO_N "(cached) $ECHO_C" >&6
11232 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11236 for as_dir in $PATH
11239 test -z "$as_dir" && as_dir=.
11240 for ac_exec_ext in '' $ac_executable_extensions; do
11241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11242 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11249 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11253 GMSGFMT=$ac_cv_path_GMSGFMT
11255 if test -n "$GMSGFMT"; then
11256 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
11257 echo "${ECHO_T}$GMSGFMT" >&6
11259 echo "$as_me:$LINENO: result: no" >&5
11260 echo "${ECHO_T}no" >&6
11265 # Prepare PATH_SEPARATOR.
11266 # The user is always right.
11267 if test "${PATH_SEPARATOR+set}" != set; then
11268 echo "#! /bin/sh" >conf$$.sh
11269 echo "exit 0" >>conf$$.sh
11271 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11279 # Find out how to test for executable files. Don't use a zero-byte file,
11280 # as systems may use methods other than mode bits to determine executability.
11281 cat >conf$$.file <<_ASEOF
11285 chmod +x conf$$.file
11286 if test -x conf$$.file >/dev/null 2>&1; then
11287 ac_executable_p="test -x"
11289 ac_executable_p="test -f"
11293 # Extract the first word of "xgettext", so it can be a program name with args.
11294 set dummy xgettext; ac_word=$2
11295 echo "$as_me:$LINENO: checking for $ac_word" >&5
11296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11297 if test "${ac_cv_path_XGETTEXT+set}" = set; then
11298 echo $ECHO_N "(cached) $ECHO_C" >&6
11300 case "$XGETTEXT" in
11302 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11305 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11306 for ac_dir in $PATH; do
11308 test -z "$ac_dir" && ac_dir=.
11309 for ac_exec_ext in '' $ac_executable_extensions; do
11310 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11311 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11312 (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
11313 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11320 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11324 XGETTEXT="$ac_cv_path_XGETTEXT"
11325 if test "$XGETTEXT" != ":"; then
11326 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11327 echo "${ECHO_T}$XGETTEXT" >&6
11329 echo "$as_me:$LINENO: result: no" >&5
11330 echo "${ECHO_T}no" >&6
11336 # Prepare PATH_SEPARATOR.
11337 # The user is always right.
11338 if test "${PATH_SEPARATOR+set}" != set; then
11339 echo "#! /bin/sh" >conf$$.sh
11340 echo "exit 0" >>conf$$.sh
11342 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11350 # Find out how to test for executable files. Don't use a zero-byte file,
11351 # as systems may use methods other than mode bits to determine executability.
11352 cat >conf$$.file <<_ASEOF
11356 chmod +x conf$$.file
11357 if test -x conf$$.file >/dev/null 2>&1; then
11358 ac_executable_p="test -x"
11360 ac_executable_p="test -f"
11364 # Extract the first word of "msgmerge", so it can be a program name with args.
11365 set dummy msgmerge; ac_word=$2
11366 echo "$as_me:$LINENO: checking for $ac_word" >&5
11367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11368 if test "${ac_cv_path_MSGMERGE+set}" = set; then
11369 echo $ECHO_N "(cached) $ECHO_C" >&6
11371 case "$MSGMERGE" in
11373 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11376 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11377 for ac_dir in $PATH; do
11379 test -z "$ac_dir" && ac_dir=.
11380 for ac_exec_ext in '' $ac_executable_extensions; do
11381 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11382 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11383 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11390 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11394 MSGMERGE="$ac_cv_path_MSGMERGE"
11395 if test "$MSGMERGE" != ":"; then
11396 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11397 echo "${ECHO_T}$MSGMERGE" >&6
11399 echo "$as_me:$LINENO: result: no" >&5
11400 echo "${ECHO_T}no" >&6
11404 if test "$GMSGFMT" != ":"; then
11405 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11406 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11409 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11410 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11411 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11416 if test "$XGETTEXT" != ":"; then
11417 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11418 (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
11421 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11422 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11428 ac_config_commands="$ac_config_commands default-1"
11432 # Permit host specific settings.
11433 . ${srcdir}/configure.host
11436 # Find a good install program. We prefer a C program (faster),
11437 # so one script is as good as another. But avoid the broken or
11438 # incompatible versions:
11439 # SysV /etc/install, /usr/sbin/install
11440 # SunOS /usr/etc/install
11441 # IRIX /sbin/install
11443 # AmigaOS /C/install, which installs bootblocks on floppy discs
11444 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11445 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11446 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11447 # OS/2's system install, which has a completely different semantic
11448 # ./install, which can be erroneously created by make from ./install.sh.
11449 # Reject install programs that cannot install multiple files.
11450 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11451 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11452 if test -z "$INSTALL"; then
11453 if test "${ac_cv_path_install+set}" = set; then
11454 echo $ECHO_N "(cached) $ECHO_C" >&6
11456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11457 for as_dir in $PATH
11460 test -z "$as_dir" && as_dir=.
11461 # Account for people who put trailing slashes in PATH elements.
11463 ./ | .// | /cC/* | \
11464 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11465 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11468 # OSF1 and SCO ODT 3.0 have their own names for install.
11469 # Don't use installbsd from OSF since it installs stuff as root
11471 for ac_prog in ginstall scoinst install; do
11472 for ac_exec_ext in '' $ac_executable_extensions; do
11473 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11474 if test $ac_prog = install &&
11475 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11476 # AIX install. It has an incompatible calling convention.
11478 elif test $ac_prog = install &&
11479 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11480 # program-specific install script used by HP pwplus--don't use.
11483 rm -rf conftest.one conftest.two conftest.dir
11484 echo one > conftest.one
11485 echo two > conftest.two
11487 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11488 test -s conftest.one && test -s conftest.two &&
11489 test -s conftest.dir/conftest.one &&
11490 test -s conftest.dir/conftest.two
11492 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11503 rm -rf conftest.one conftest.two conftest.dir
11506 if test "${ac_cv_path_install+set}" = set; then
11507 INSTALL=$ac_cv_path_install
11509 # As a last resort, use the slow shell script. Don't cache a
11510 # value for INSTALL within a source directory, because that will
11511 # break other packages using the cache if that directory is
11512 # removed, or if the value is a relative name.
11513 INSTALL=$ac_install_sh
11516 echo "$as_me:$LINENO: result: $INSTALL" >&5
11517 echo "${ECHO_T}$INSTALL" >&6
11519 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11520 # It thinks the first close brace ends the variable substitution.
11521 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11523 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11525 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11528 BFD_HOST_64BIT_LONG=0
11529 BFD_HOST_64BIT_LONG_LONG=0
11530 BFD_HOST_64_BIT_DEFINED=0
11533 BFD_HOSTPTR_T="unsigned long"
11535 echo "$as_me:$LINENO: checking for long long" >&5
11536 echo $ECHO_N "checking for long long... $ECHO_C" >&6
11537 if test "${ac_cv_type_long_long+set}" = set; then
11538 echo $ECHO_N "(cached) $ECHO_C" >&6
11540 cat >conftest.$ac_ext <<_ACEOF
11543 cat confdefs.h >>conftest.$ac_ext
11544 cat >>conftest.$ac_ext <<_ACEOF
11545 /* end confdefs.h. */
11546 $ac_includes_default
11550 if ((long long *) 0)
11552 if (sizeof (long long))
11558 rm -f conftest.$ac_objext
11559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11560 (eval $ac_compile) 2>conftest.er1
11562 grep -v '^ *+' conftest.er1 >conftest.err
11564 cat conftest.err >&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); } &&
11567 { ac_try='test -z "$ac_c_werror_flag"
11568 || test ! -s conftest.err'
11569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11570 (eval $ac_try) 2>&5
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); }; } &&
11574 { ac_try='test -s conftest.$ac_objext'
11575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11576 (eval $ac_try) 2>&5
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); }; }; then
11580 ac_cv_type_long_long=yes
11582 echo "$as_me: failed program was:" >&5
11583 sed 's/^/| /' conftest.$ac_ext >&5
11585 ac_cv_type_long_long=no
11587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11589 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11590 echo "${ECHO_T}$ac_cv_type_long_long" >&6
11592 echo "$as_me:$LINENO: checking size of long long" >&5
11593 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
11594 if test "${ac_cv_sizeof_long_long+set}" = set; then
11595 echo $ECHO_N "(cached) $ECHO_C" >&6
11597 if test "$ac_cv_type_long_long" = yes; then
11598 # The cast to unsigned long works around a bug in the HP C Compiler
11599 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11600 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11601 # This bug is HP SR number 8606223364.
11602 if test "$cross_compiling" = yes; then
11603 # Depending upon the size, compute the lo and hi bounds.
11604 cat >conftest.$ac_ext <<_ACEOF
11607 cat confdefs.h >>conftest.$ac_ext
11608 cat >>conftest.$ac_ext <<_ACEOF
11609 /* end confdefs.h. */
11610 $ac_includes_default
11614 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
11621 rm -f conftest.$ac_objext
11622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11623 (eval $ac_compile) 2>conftest.er1
11625 grep -v '^ *+' conftest.er1 >conftest.err
11627 cat conftest.err >&5
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); } &&
11630 { ac_try='test -z "$ac_c_werror_flag"
11631 || test ! -s conftest.err'
11632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633 (eval $ac_try) 2>&5
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; } &&
11637 { ac_try='test -s conftest.$ac_objext'
11638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11639 (eval $ac_try) 2>&5
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); }; }; then
11645 cat >conftest.$ac_ext <<_ACEOF
11648 cat confdefs.h >>conftest.$ac_ext
11649 cat >>conftest.$ac_ext <<_ACEOF
11650 /* end confdefs.h. */
11651 $ac_includes_default
11655 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11662 rm -f conftest.$ac_objext
11663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11664 (eval $ac_compile) 2>conftest.er1
11666 grep -v '^ *+' conftest.er1 >conftest.err
11668 cat conftest.err >&5
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); } &&
11671 { ac_try='test -z "$ac_c_werror_flag"
11672 || test ! -s conftest.err'
11673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11674 (eval $ac_try) 2>&5
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); }; } &&
11678 { ac_try='test -s conftest.$ac_objext'
11679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11680 (eval $ac_try) 2>&5
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); }; }; then
11684 ac_hi=$ac_mid; break
11686 echo "$as_me: failed program was:" >&5
11687 sed 's/^/| /' conftest.$ac_ext >&5
11689 ac_lo=`expr $ac_mid + 1`
11690 if test $ac_lo -le $ac_mid; then
11694 ac_mid=`expr 2 '*' $ac_mid + 1`
11696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11699 echo "$as_me: failed program was:" >&5
11700 sed 's/^/| /' conftest.$ac_ext >&5
11702 cat >conftest.$ac_ext <<_ACEOF
11705 cat confdefs.h >>conftest.$ac_ext
11706 cat >>conftest.$ac_ext <<_ACEOF
11707 /* end confdefs.h. */
11708 $ac_includes_default
11712 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
11719 rm -f conftest.$ac_objext
11720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11721 (eval $ac_compile) 2>conftest.er1
11723 grep -v '^ *+' conftest.er1 >conftest.err
11725 cat conftest.err >&5
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); } &&
11728 { ac_try='test -z "$ac_c_werror_flag"
11729 || test ! -s conftest.err'
11730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11731 (eval $ac_try) 2>&5
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); }; } &&
11735 { ac_try='test -s conftest.$ac_objext'
11736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11737 (eval $ac_try) 2>&5
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); }; }; then
11743 cat >conftest.$ac_ext <<_ACEOF
11746 cat confdefs.h >>conftest.$ac_ext
11747 cat >>conftest.$ac_ext <<_ACEOF
11748 /* end confdefs.h. */
11749 $ac_includes_default
11753 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
11760 rm -f conftest.$ac_objext
11761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11762 (eval $ac_compile) 2>conftest.er1
11764 grep -v '^ *+' conftest.er1 >conftest.err
11766 cat conftest.err >&5
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); } &&
11769 { ac_try='test -z "$ac_c_werror_flag"
11770 || test ! -s conftest.err'
11771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11772 (eval $ac_try) 2>&5
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); }; } &&
11776 { ac_try='test -s conftest.$ac_objext'
11777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11778 (eval $ac_try) 2>&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); }; }; then
11782 ac_lo=$ac_mid; break
11784 echo "$as_me: failed program was:" >&5
11785 sed 's/^/| /' conftest.$ac_ext >&5
11787 ac_hi=`expr '(' $ac_mid ')' - 1`
11788 if test $ac_mid -le $ac_hi; then
11792 ac_mid=`expr 2 '*' $ac_mid`
11794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11797 echo "$as_me: failed program was:" >&5
11798 sed 's/^/| /' conftest.$ac_ext >&5
11802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11805 # Binary search between lo and hi bounds.
11806 while test "x$ac_lo" != "x$ac_hi"; do
11807 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11808 cat >conftest.$ac_ext <<_ACEOF
11811 cat confdefs.h >>conftest.$ac_ext
11812 cat >>conftest.$ac_ext <<_ACEOF
11813 /* end confdefs.h. */
11814 $ac_includes_default
11818 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11825 rm -f conftest.$ac_objext
11826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11827 (eval $ac_compile) 2>conftest.er1
11829 grep -v '^ *+' conftest.er1 >conftest.err
11831 cat conftest.err >&5
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); } &&
11834 { ac_try='test -z "$ac_c_werror_flag"
11835 || test ! -s conftest.err'
11836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11837 (eval $ac_try) 2>&5
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); }; } &&
11841 { ac_try='test -s conftest.$ac_objext'
11842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11843 (eval $ac_try) 2>&5
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); }; }; then
11849 echo "$as_me: failed program was:" >&5
11850 sed 's/^/| /' conftest.$ac_ext >&5
11852 ac_lo=`expr '(' $ac_mid ')' + 1`
11854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11857 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11858 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11859 echo "$as_me: error: in \`$ac_pwd':" >&2;}
11860 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
11861 See \`config.log' for more details." >&5
11862 echo "$as_me: error: cannot compute sizeof (long long), 77
11863 See \`config.log' for more details." >&2;}
11864 { (exit 1); exit 1; }; }; } ;;
11867 if test "$cross_compiling" = yes; then
11868 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11869 echo "$as_me: error: in \`$ac_pwd':" >&2;}
11870 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11871 See \`config.log' for more details." >&5
11872 echo "$as_me: error: cannot run test program while cross compiling
11873 See \`config.log' for more details." >&2;}
11874 { (exit 1); exit 1; }; }; }
11876 cat >conftest.$ac_ext <<_ACEOF
11879 cat confdefs.h >>conftest.$ac_ext
11880 cat >>conftest.$ac_ext <<_ACEOF
11881 /* end confdefs.h. */
11882 $ac_includes_default
11883 long longval () { return (long) (sizeof (long long)); }
11884 unsigned long ulongval () { return (long) (sizeof (long long)); }
11886 #include <stdlib.h>
11891 FILE *f = fopen ("conftest.val", "w");
11894 if (((long) (sizeof (long long))) < 0)
11896 long i = longval ();
11897 if (i != ((long) (sizeof (long long))))
11899 fprintf (f, "%ld\n", i);
11903 unsigned long i = ulongval ();
11904 if (i != ((long) (sizeof (long long))))
11906 fprintf (f, "%lu\n", i);
11908 exit (ferror (f) || fclose (f) != 0);
11914 rm -f conftest$ac_exeext
11915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11916 (eval $ac_link) 2>&5
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11921 (eval $ac_try) 2>&5
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); }; }; then
11925 ac_cv_sizeof_long_long=`cat conftest.val`
11927 echo "$as_me: program exited with status $ac_status" >&5
11928 echo "$as_me: failed program was:" >&5
11929 sed 's/^/| /' conftest.$ac_ext >&5
11931 ( exit $ac_status )
11932 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11933 echo "$as_me: error: in \`$ac_pwd':" >&2;}
11934 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
11935 See \`config.log' for more details." >&5
11936 echo "$as_me: error: cannot compute sizeof (long long), 77
11937 See \`config.log' for more details." >&2;}
11938 { (exit 1); exit 1; }; }; }
11940 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11945 ac_cv_sizeof_long_long=0
11948 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11949 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
11950 cat >>confdefs.h <<_ACEOF
11951 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11955 echo "$as_me:$LINENO: checking for void *" >&5
11956 echo $ECHO_N "checking for void *... $ECHO_C" >&6
11957 if test "${ac_cv_type_void_p+set}" = set; then
11958 echo $ECHO_N "(cached) $ECHO_C" >&6
11960 cat >conftest.$ac_ext <<_ACEOF
11963 cat confdefs.h >>conftest.$ac_ext
11964 cat >>conftest.$ac_ext <<_ACEOF
11965 /* end confdefs.h. */
11966 $ac_includes_default
11972 if (sizeof (void *))
11978 rm -f conftest.$ac_objext
11979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11980 (eval $ac_compile) 2>conftest.er1
11982 grep -v '^ *+' conftest.er1 >conftest.err
11984 cat conftest.err >&5
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); } &&
11987 { ac_try='test -z "$ac_c_werror_flag"
11988 || test ! -s conftest.err'
11989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11990 (eval $ac_try) 2>&5
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); }; } &&
11994 { ac_try='test -s conftest.$ac_objext'
11995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11996 (eval $ac_try) 2>&5
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); }; }; then
12000 ac_cv_type_void_p=yes
12002 echo "$as_me: failed program was:" >&5
12003 sed 's/^/| /' conftest.$ac_ext >&5
12005 ac_cv_type_void_p=no
12007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12009 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
12010 echo "${ECHO_T}$ac_cv_type_void_p" >&6
12012 echo "$as_me:$LINENO: checking size of void *" >&5
12013 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
12014 if test "${ac_cv_sizeof_void_p+set}" = set; then
12015 echo $ECHO_N "(cached) $ECHO_C" >&6
12017 if test "$ac_cv_type_void_p" = yes; then
12018 # The cast to unsigned long works around a bug in the HP C Compiler
12019 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12020 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12021 # This bug is HP SR number 8606223364.
12022 if test "$cross_compiling" = yes; then
12023 # Depending upon the size, compute the lo and hi bounds.
12024 cat >conftest.$ac_ext <<_ACEOF
12027 cat confdefs.h >>conftest.$ac_ext
12028 cat >>conftest.$ac_ext <<_ACEOF
12029 /* end confdefs.h. */
12030 $ac_includes_default
12034 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
12041 rm -f conftest.$ac_objext
12042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12043 (eval $ac_compile) 2>conftest.er1
12045 grep -v '^ *+' conftest.er1 >conftest.err
12047 cat conftest.err >&5
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); } &&
12050 { ac_try='test -z "$ac_c_werror_flag"
12051 || test ! -s conftest.err'
12052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12053 (eval $ac_try) 2>&5
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); }; } &&
12057 { ac_try='test -s conftest.$ac_objext'
12058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12059 (eval $ac_try) 2>&5
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); }; }; then
12065 cat >conftest.$ac_ext <<_ACEOF
12068 cat confdefs.h >>conftest.$ac_ext
12069 cat >>conftest.$ac_ext <<_ACEOF
12070 /* end confdefs.h. */
12071 $ac_includes_default
12075 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
12082 rm -f conftest.$ac_objext
12083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12084 (eval $ac_compile) 2>conftest.er1
12086 grep -v '^ *+' conftest.er1 >conftest.err
12088 cat conftest.err >&5
12089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090 (exit $ac_status); } &&
12091 { ac_try='test -z "$ac_c_werror_flag"
12092 || test ! -s conftest.err'
12093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12094 (eval $ac_try) 2>&5
12096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); }; } &&
12098 { ac_try='test -s conftest.$ac_objext'
12099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12100 (eval $ac_try) 2>&5
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); }; }; then
12104 ac_hi=$ac_mid; break
12106 echo "$as_me: failed program was:" >&5
12107 sed 's/^/| /' conftest.$ac_ext >&5
12109 ac_lo=`expr $ac_mid + 1`
12110 if test $ac_lo -le $ac_mid; then
12114 ac_mid=`expr 2 '*' $ac_mid + 1`
12116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12119 echo "$as_me: failed program was:" >&5
12120 sed 's/^/| /' conftest.$ac_ext >&5
12122 cat >conftest.$ac_ext <<_ACEOF
12125 cat confdefs.h >>conftest.$ac_ext
12126 cat >>conftest.$ac_ext <<_ACEOF
12127 /* end confdefs.h. */
12128 $ac_includes_default
12132 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
12139 rm -f conftest.$ac_objext
12140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12141 (eval $ac_compile) 2>conftest.er1
12143 grep -v '^ *+' conftest.er1 >conftest.err
12145 cat conftest.err >&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); } &&
12148 { ac_try='test -z "$ac_c_werror_flag"
12149 || test ! -s conftest.err'
12150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12151 (eval $ac_try) 2>&5
12153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); }; } &&
12155 { ac_try='test -s conftest.$ac_objext'
12156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12157 (eval $ac_try) 2>&5
12159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160 (exit $ac_status); }; }; then
12163 cat >conftest.$ac_ext <<_ACEOF
12166 cat confdefs.h >>conftest.$ac_ext
12167 cat >>conftest.$ac_ext <<_ACEOF
12168 /* end confdefs.h. */
12169 $ac_includes_default
12173 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
12180 rm -f conftest.$ac_objext
12181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12182 (eval $ac_compile) 2>conftest.er1
12184 grep -v '^ *+' conftest.er1 >conftest.err
12186 cat conftest.err >&5
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); } &&
12189 { ac_try='test -z "$ac_c_werror_flag"
12190 || test ! -s conftest.err'
12191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12192 (eval $ac_try) 2>&5
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); }; } &&
12196 { ac_try='test -s conftest.$ac_objext'
12197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12198 (eval $ac_try) 2>&5
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); }; }; then
12202 ac_lo=$ac_mid; break
12204 echo "$as_me: failed program was:" >&5
12205 sed 's/^/| /' conftest.$ac_ext >&5
12207 ac_hi=`expr '(' $ac_mid ')' - 1`
12208 if test $ac_mid -le $ac_hi; then
12212 ac_mid=`expr 2 '*' $ac_mid`
12214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12217 echo "$as_me: failed program was:" >&5
12218 sed 's/^/| /' conftest.$ac_ext >&5
12222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12225 # Binary search between lo and hi bounds.
12226 while test "x$ac_lo" != "x$ac_hi"; do
12227 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12228 cat >conftest.$ac_ext <<_ACEOF
12231 cat confdefs.h >>conftest.$ac_ext
12232 cat >>conftest.$ac_ext <<_ACEOF
12233 /* end confdefs.h. */
12234 $ac_includes_default
12238 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
12245 rm -f conftest.$ac_objext
12246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12247 (eval $ac_compile) 2>conftest.er1
12249 grep -v '^ *+' conftest.er1 >conftest.err
12251 cat conftest.err >&5
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); } &&
12254 { ac_try='test -z "$ac_c_werror_flag"
12255 || test ! -s conftest.err'
12256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12257 (eval $ac_try) 2>&5
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); }; } &&
12261 { ac_try='test -s conftest.$ac_objext'
12262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12263 (eval $ac_try) 2>&5
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); }; }; then
12269 echo "$as_me: failed program was:" >&5
12270 sed 's/^/| /' conftest.$ac_ext >&5
12272 ac_lo=`expr '(' $ac_mid ')' + 1`
12274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12277 ?*) ac_cv_sizeof_void_p=$ac_lo;;
12278 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12279 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12280 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
12281 See \`config.log' for more details." >&5
12282 echo "$as_me: error: cannot compute sizeof (void *), 77
12283 See \`config.log' for more details." >&2;}
12284 { (exit 1); exit 1; }; }; } ;;
12287 if test "$cross_compiling" = yes; then
12288 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12289 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12290 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12291 See \`config.log' for more details." >&5
12292 echo "$as_me: error: cannot run test program while cross compiling
12293 See \`config.log' for more details." >&2;}
12294 { (exit 1); exit 1; }; }; }
12296 cat >conftest.$ac_ext <<_ACEOF
12299 cat confdefs.h >>conftest.$ac_ext
12300 cat >>conftest.$ac_ext <<_ACEOF
12301 /* end confdefs.h. */
12302 $ac_includes_default
12303 long longval () { return (long) (sizeof (void *)); }
12304 unsigned long ulongval () { return (long) (sizeof (void *)); }
12306 #include <stdlib.h>
12311 FILE *f = fopen ("conftest.val", "w");
12314 if (((long) (sizeof (void *))) < 0)
12316 long i = longval ();
12317 if (i != ((long) (sizeof (void *))))
12319 fprintf (f, "%ld\n", i);
12323 unsigned long i = ulongval ();
12324 if (i != ((long) (sizeof (void *))))
12326 fprintf (f, "%lu\n", i);
12328 exit (ferror (f) || fclose (f) != 0);
12334 rm -f conftest$ac_exeext
12335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12336 (eval $ac_link) 2>&5
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12341 (eval $ac_try) 2>&5
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); }; }; then
12345 ac_cv_sizeof_void_p=`cat conftest.val`
12347 echo "$as_me: program exited with status $ac_status" >&5
12348 echo "$as_me: failed program was:" >&5
12349 sed 's/^/| /' conftest.$ac_ext >&5
12351 ( exit $ac_status )
12352 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12353 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12354 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
12355 See \`config.log' for more details." >&5
12356 echo "$as_me: error: cannot compute sizeof (void *), 77
12357 See \`config.log' for more details." >&2;}
12358 { (exit 1); exit 1; }; }; }
12360 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12365 ac_cv_sizeof_void_p=0
12368 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
12369 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
12370 cat >>confdefs.h <<_ACEOF
12371 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12375 echo "$as_me:$LINENO: checking for long" >&5
12376 echo $ECHO_N "checking for long... $ECHO_C" >&6
12377 if test "${ac_cv_type_long+set}" = set; then
12378 echo $ECHO_N "(cached) $ECHO_C" >&6
12380 cat >conftest.$ac_ext <<_ACEOF
12383 cat confdefs.h >>conftest.$ac_ext
12384 cat >>conftest.$ac_ext <<_ACEOF
12385 /* end confdefs.h. */
12386 $ac_includes_default
12398 rm -f conftest.$ac_objext
12399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12400 (eval $ac_compile) 2>conftest.er1
12402 grep -v '^ *+' conftest.er1 >conftest.err
12404 cat conftest.err >&5
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); } &&
12407 { ac_try='test -z "$ac_c_werror_flag"
12408 || test ! -s conftest.err'
12409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12410 (eval $ac_try) 2>&5
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); }; } &&
12414 { ac_try='test -s conftest.$ac_objext'
12415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12416 (eval $ac_try) 2>&5
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); }; }; then
12420 ac_cv_type_long=yes
12422 echo "$as_me: failed program was:" >&5
12423 sed 's/^/| /' conftest.$ac_ext >&5
12427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12429 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12430 echo "${ECHO_T}$ac_cv_type_long" >&6
12432 echo "$as_me:$LINENO: checking size of long" >&5
12433 echo $ECHO_N "checking size of long... $ECHO_C" >&6
12434 if test "${ac_cv_sizeof_long+set}" = set; then
12435 echo $ECHO_N "(cached) $ECHO_C" >&6
12437 if test "$ac_cv_type_long" = yes; then
12438 # The cast to unsigned long works around a bug in the HP C Compiler
12439 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12440 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12441 # This bug is HP SR number 8606223364.
12442 if test "$cross_compiling" = yes; then
12443 # Depending upon the size, compute the lo and hi bounds.
12444 cat >conftest.$ac_ext <<_ACEOF
12447 cat confdefs.h >>conftest.$ac_ext
12448 cat >>conftest.$ac_ext <<_ACEOF
12449 /* end confdefs.h. */
12450 $ac_includes_default
12454 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12461 rm -f conftest.$ac_objext
12462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12463 (eval $ac_compile) 2>conftest.er1
12465 grep -v '^ *+' conftest.er1 >conftest.err
12467 cat conftest.err >&5
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); } &&
12470 { ac_try='test -z "$ac_c_werror_flag"
12471 || test ! -s conftest.err'
12472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12473 (eval $ac_try) 2>&5
12475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); }; } &&
12477 { ac_try='test -s conftest.$ac_objext'
12478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12479 (eval $ac_try) 2>&5
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); }; }; then
12485 cat >conftest.$ac_ext <<_ACEOF
12488 cat confdefs.h >>conftest.$ac_ext
12489 cat >>conftest.$ac_ext <<_ACEOF
12490 /* end confdefs.h. */
12491 $ac_includes_default
12495 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12502 rm -f conftest.$ac_objext
12503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12504 (eval $ac_compile) 2>conftest.er1
12506 grep -v '^ *+' conftest.er1 >conftest.err
12508 cat conftest.err >&5
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); } &&
12511 { ac_try='test -z "$ac_c_werror_flag"
12512 || test ! -s conftest.err'
12513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514 (eval $ac_try) 2>&5
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); }; } &&
12518 { ac_try='test -s conftest.$ac_objext'
12519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12520 (eval $ac_try) 2>&5
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); }; }; then
12524 ac_hi=$ac_mid; break
12526 echo "$as_me: failed program was:" >&5
12527 sed 's/^/| /' conftest.$ac_ext >&5
12529 ac_lo=`expr $ac_mid + 1`
12530 if test $ac_lo -le $ac_mid; then
12534 ac_mid=`expr 2 '*' $ac_mid + 1`
12536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12539 echo "$as_me: failed program was:" >&5
12540 sed 's/^/| /' conftest.$ac_ext >&5
12542 cat >conftest.$ac_ext <<_ACEOF
12545 cat confdefs.h >>conftest.$ac_ext
12546 cat >>conftest.$ac_ext <<_ACEOF
12547 /* end confdefs.h. */
12548 $ac_includes_default
12552 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12559 rm -f conftest.$ac_objext
12560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12561 (eval $ac_compile) 2>conftest.er1
12563 grep -v '^ *+' conftest.er1 >conftest.err
12565 cat conftest.err >&5
12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); } &&
12568 { ac_try='test -z "$ac_c_werror_flag"
12569 || test ! -s conftest.err'
12570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12571 (eval $ac_try) 2>&5
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); }; } &&
12575 { ac_try='test -s conftest.$ac_objext'
12576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12577 (eval $ac_try) 2>&5
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); }; }; then
12583 cat >conftest.$ac_ext <<_ACEOF
12586 cat confdefs.h >>conftest.$ac_ext
12587 cat >>conftest.$ac_ext <<_ACEOF
12588 /* end confdefs.h. */
12589 $ac_includes_default
12593 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12600 rm -f conftest.$ac_objext
12601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12602 (eval $ac_compile) 2>conftest.er1
12604 grep -v '^ *+' conftest.er1 >conftest.err
12606 cat conftest.err >&5
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); } &&
12609 { ac_try='test -z "$ac_c_werror_flag"
12610 || test ! -s conftest.err'
12611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12612 (eval $ac_try) 2>&5
12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); }; } &&
12616 { ac_try='test -s conftest.$ac_objext'
12617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12618 (eval $ac_try) 2>&5
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); }; }; then
12622 ac_lo=$ac_mid; break
12624 echo "$as_me: failed program was:" >&5
12625 sed 's/^/| /' conftest.$ac_ext >&5
12627 ac_hi=`expr '(' $ac_mid ')' - 1`
12628 if test $ac_mid -le $ac_hi; then
12632 ac_mid=`expr 2 '*' $ac_mid`
12634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12637 echo "$as_me: failed program was:" >&5
12638 sed 's/^/| /' conftest.$ac_ext >&5
12642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12645 # Binary search between lo and hi bounds.
12646 while test "x$ac_lo" != "x$ac_hi"; do
12647 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12648 cat >conftest.$ac_ext <<_ACEOF
12651 cat confdefs.h >>conftest.$ac_ext
12652 cat >>conftest.$ac_ext <<_ACEOF
12653 /* end confdefs.h. */
12654 $ac_includes_default
12658 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12665 rm -f conftest.$ac_objext
12666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12667 (eval $ac_compile) 2>conftest.er1
12669 grep -v '^ *+' conftest.er1 >conftest.err
12671 cat conftest.err >&5
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); } &&
12674 { ac_try='test -z "$ac_c_werror_flag"
12675 || test ! -s conftest.err'
12676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12677 (eval $ac_try) 2>&5
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); }; } &&
12681 { ac_try='test -s conftest.$ac_objext'
12682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12683 (eval $ac_try) 2>&5
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); }; }; then
12689 echo "$as_me: failed program was:" >&5
12690 sed 's/^/| /' conftest.$ac_ext >&5
12692 ac_lo=`expr '(' $ac_mid ')' + 1`
12694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12697 ?*) ac_cv_sizeof_long=$ac_lo;;
12698 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12699 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12700 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12701 See \`config.log' for more details." >&5
12702 echo "$as_me: error: cannot compute sizeof (long), 77
12703 See \`config.log' for more details." >&2;}
12704 { (exit 1); exit 1; }; }; } ;;
12707 if test "$cross_compiling" = yes; then
12708 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12709 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12710 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12711 See \`config.log' for more details." >&5
12712 echo "$as_me: error: cannot run test program while cross compiling
12713 See \`config.log' for more details." >&2;}
12714 { (exit 1); exit 1; }; }; }
12716 cat >conftest.$ac_ext <<_ACEOF
12719 cat confdefs.h >>conftest.$ac_ext
12720 cat >>conftest.$ac_ext <<_ACEOF
12721 /* end confdefs.h. */
12722 $ac_includes_default
12723 long longval () { return (long) (sizeof (long)); }
12724 unsigned long ulongval () { return (long) (sizeof (long)); }
12726 #include <stdlib.h>
12731 FILE *f = fopen ("conftest.val", "w");
12734 if (((long) (sizeof (long))) < 0)
12736 long i = longval ();
12737 if (i != ((long) (sizeof (long))))
12739 fprintf (f, "%ld\n", i);
12743 unsigned long i = ulongval ();
12744 if (i != ((long) (sizeof (long))))
12746 fprintf (f, "%lu\n", i);
12748 exit (ferror (f) || fclose (f) != 0);
12754 rm -f conftest$ac_exeext
12755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12756 (eval $ac_link) 2>&5
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12761 (eval $ac_try) 2>&5
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); }; }; then
12765 ac_cv_sizeof_long=`cat conftest.val`
12767 echo "$as_me: program exited with status $ac_status" >&5
12768 echo "$as_me: failed program was:" >&5
12769 sed 's/^/| /' conftest.$ac_ext >&5
12771 ( exit $ac_status )
12772 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12773 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12774 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12775 See \`config.log' for more details." >&5
12776 echo "$as_me: error: cannot compute sizeof (long), 77
12777 See \`config.log' for more details." >&2;}
12778 { (exit 1); exit 1; }; }; }
12780 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12785 ac_cv_sizeof_long=0
12788 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12789 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12790 cat >>confdefs.h <<_ACEOF
12791 #define SIZEOF_LONG $ac_cv_sizeof_long
12796 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
12800 if test "x${ac_cv_sizeof_long}" = "x8"; then
12801 BFD_HOST_64BIT_LONG=1
12802 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
12803 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
12804 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
12805 BFD_HOST_64BIT_LONG_LONG=1
12806 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
12807 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
12808 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
12809 BFD_HOSTPTR_T="unsigned long long"
12813 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
12814 BFD_HOST_64_BIT_DEFINED=1
12815 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
12816 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
12826 # Put a plausible default for CC_FOR_BUILD in Makefile.
12827 if test -z "$CC_FOR_BUILD"; then
12828 if test "x$cross_compiling" = "xno"; then
12829 CC_FOR_BUILD='$(CC)'
12835 # Also set EXEEXT_FOR_BUILD.
12836 if test "x$cross_compiling" = "xno"; then
12837 EXEEXT_FOR_BUILD='$(EXEEXT)'
12839 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
12840 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
12841 if test "${bfd_cv_build_exeext+set}" = set; then
12842 echo $ECHO_N "(cached) $ECHO_C" >&6
12845 echo 'int main () { return 0; }' > conftest.c
12846 bfd_cv_build_exeext=
12847 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12848 for file in conftest.*; do
12850 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12851 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12855 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
12857 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
12858 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
12859 EXEEXT_FOR_BUILD=""
12860 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
12871 for ac_header in alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h
12873 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12875 echo "$as_me:$LINENO: checking for $ac_header" >&5
12876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12878 echo $ECHO_N "(cached) $ECHO_C" >&6
12880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12883 # Is the header compilable?
12884 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12885 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12886 cat >conftest.$ac_ext <<_ACEOF
12889 cat confdefs.h >>conftest.$ac_ext
12890 cat >>conftest.$ac_ext <<_ACEOF
12891 /* end confdefs.h. */
12892 $ac_includes_default
12893 #include <$ac_header>
12895 rm -f conftest.$ac_objext
12896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12897 (eval $ac_compile) 2>conftest.er1
12899 grep -v '^ *+' conftest.er1 >conftest.err
12901 cat conftest.err >&5
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); } &&
12904 { ac_try='test -z "$ac_c_werror_flag"
12905 || test ! -s conftest.err'
12906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12907 (eval $ac_try) 2>&5
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); }; } &&
12911 { ac_try='test -s conftest.$ac_objext'
12912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12913 (eval $ac_try) 2>&5
12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 (exit $ac_status); }; }; then
12917 ac_header_compiler=yes
12919 echo "$as_me: failed program was:" >&5
12920 sed 's/^/| /' conftest.$ac_ext >&5
12922 ac_header_compiler=no
12924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12925 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12926 echo "${ECHO_T}$ac_header_compiler" >&6
12928 # Is the header present?
12929 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12930 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12931 cat >conftest.$ac_ext <<_ACEOF
12934 cat confdefs.h >>conftest.$ac_ext
12935 cat >>conftest.$ac_ext <<_ACEOF
12936 /* end confdefs.h. */
12937 #include <$ac_header>
12939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12940 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12942 grep -v '^ *+' conftest.er1 >conftest.err
12944 cat conftest.err >&5
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); } >/dev/null; then
12947 if test -s conftest.err; then
12948 ac_cpp_err=$ac_c_preproc_warn_flag
12949 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12956 if test -z "$ac_cpp_err"; then
12957 ac_header_preproc=yes
12959 echo "$as_me: failed program was:" >&5
12960 sed 's/^/| /' conftest.$ac_ext >&5
12962 ac_header_preproc=no
12964 rm -f conftest.err conftest.$ac_ext
12965 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12966 echo "${ECHO_T}$ac_header_preproc" >&6
12968 # So? What about this header?
12969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12971 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12972 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12974 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12975 ac_header_preproc=yes
12978 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12979 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12980 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12981 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12982 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12983 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12984 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12985 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12988 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12989 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12992 ## ------------------------------------------ ##
12993 ## Report this to the AC_PACKAGE_NAME lists. ##
12994 ## ------------------------------------------ ##
12997 sed "s/^/$as_me: WARNING: /" >&2
13000 echo "$as_me:$LINENO: checking for $ac_header" >&5
13001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13003 echo $ECHO_N "(cached) $ECHO_C" >&6
13005 eval "$as_ac_Header=\$ac_header_preproc"
13007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13011 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13012 cat >>confdefs.h <<_ACEOF
13013 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13023 for ac_header in fcntl.h sys/file.h sys/time.h
13025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13027 echo "$as_me:$LINENO: checking for $ac_header" >&5
13028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13030 echo $ECHO_N "(cached) $ECHO_C" >&6
13032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13035 # Is the header compilable?
13036 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13038 cat >conftest.$ac_ext <<_ACEOF
13041 cat confdefs.h >>conftest.$ac_ext
13042 cat >>conftest.$ac_ext <<_ACEOF
13043 /* end confdefs.h. */
13044 $ac_includes_default
13045 #include <$ac_header>
13047 rm -f conftest.$ac_objext
13048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13049 (eval $ac_compile) 2>conftest.er1
13051 grep -v '^ *+' conftest.er1 >conftest.err
13053 cat conftest.err >&5
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); } &&
13056 { ac_try='test -z "$ac_c_werror_flag"
13057 || test ! -s conftest.err'
13058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13059 (eval $ac_try) 2>&5
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); }; } &&
13063 { ac_try='test -s conftest.$ac_objext'
13064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13065 (eval $ac_try) 2>&5
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); }; }; then
13069 ac_header_compiler=yes
13071 echo "$as_me: failed program was:" >&5
13072 sed 's/^/| /' conftest.$ac_ext >&5
13074 ac_header_compiler=no
13076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13077 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13078 echo "${ECHO_T}$ac_header_compiler" >&6
13080 # Is the header present?
13081 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13082 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13083 cat >conftest.$ac_ext <<_ACEOF
13086 cat confdefs.h >>conftest.$ac_ext
13087 cat >>conftest.$ac_ext <<_ACEOF
13088 /* end confdefs.h. */
13089 #include <$ac_header>
13091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13094 grep -v '^ *+' conftest.er1 >conftest.err
13096 cat conftest.err >&5
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); } >/dev/null; then
13099 if test -s conftest.err; then
13100 ac_cpp_err=$ac_c_preproc_warn_flag
13101 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13108 if test -z "$ac_cpp_err"; then
13109 ac_header_preproc=yes
13111 echo "$as_me: failed program was:" >&5
13112 sed 's/^/| /' conftest.$ac_ext >&5
13114 ac_header_preproc=no
13116 rm -f conftest.err conftest.$ac_ext
13117 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13118 echo "${ECHO_T}$ac_header_preproc" >&6
13120 # So? What about this header?
13121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13123 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13124 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13126 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13127 ac_header_preproc=yes
13130 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13131 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13132 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13133 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13134 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13135 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13136 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13137 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13140 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13141 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13144 ## ------------------------------------------ ##
13145 ## Report this to the AC_PACKAGE_NAME lists. ##
13146 ## ------------------------------------------ ##
13149 sed "s/^/$as_me: WARNING: /" >&2
13152 echo "$as_me:$LINENO: checking for $ac_header" >&5
13153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13155 echo $ECHO_N "(cached) $ECHO_C" >&6
13157 eval "$as_ac_Header=\$ac_header_preproc"
13159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13164 cat >>confdefs.h <<_ACEOF
13165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13174 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
13176 acx_cv_header_stdint=stddef.h
13177 acx_cv_header_stdint_kind="(already complete)"
13178 for i in stdint.h $inttype_headers; do
13179 unset ac_cv_type_uintptr_t
13180 unset ac_cv_type_uintmax_t
13181 unset ac_cv_type_int_least32_t
13182 unset ac_cv_type_int_fast32_t
13183 unset ac_cv_type_uint64_t
13184 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
13185 echo "$as_me:$LINENO: checking for uintmax_t" >&5
13186 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
13187 if test "${ac_cv_type_uintmax_t+set}" = set; then
13188 echo $ECHO_N "(cached) $ECHO_C" >&6
13190 cat >conftest.$ac_ext <<_ACEOF
13193 cat confdefs.h >>conftest.$ac_ext
13194 cat >>conftest.$ac_ext <<_ACEOF
13195 /* end confdefs.h. */
13196 #include <sys/types.h>
13202 if ((uintmax_t *) 0)
13204 if (sizeof (uintmax_t))
13210 rm -f conftest.$ac_objext
13211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13212 (eval $ac_compile) 2>conftest.er1
13214 grep -v '^ *+' conftest.er1 >conftest.err
13216 cat conftest.err >&5
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); } &&
13219 { ac_try='test -z "$ac_c_werror_flag"
13220 || test ! -s conftest.err'
13221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13222 (eval $ac_try) 2>&5
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); }; } &&
13226 { ac_try='test -s conftest.$ac_objext'
13227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13228 (eval $ac_try) 2>&5
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); }; }; then
13232 ac_cv_type_uintmax_t=yes
13234 echo "$as_me: failed program was:" >&5
13235 sed 's/^/| /' conftest.$ac_ext >&5
13237 ac_cv_type_uintmax_t=no
13239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13241 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
13242 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
13243 if test $ac_cv_type_uintmax_t = yes; then
13244 acx_cv_header_stdint=$i
13249 echo "$as_me:$LINENO: checking for uintptr_t" >&5
13250 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13251 if test "${ac_cv_type_uintptr_t+set}" = set; then
13252 echo $ECHO_N "(cached) $ECHO_C" >&6
13254 cat >conftest.$ac_ext <<_ACEOF
13257 cat confdefs.h >>conftest.$ac_ext
13258 cat >>conftest.$ac_ext <<_ACEOF
13259 /* end confdefs.h. */
13260 #include <sys/types.h>
13266 if ((uintptr_t *) 0)
13268 if (sizeof (uintptr_t))
13274 rm -f conftest.$ac_objext
13275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13276 (eval $ac_compile) 2>conftest.er1
13278 grep -v '^ *+' conftest.er1 >conftest.err
13280 cat conftest.err >&5
13281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282 (exit $ac_status); } &&
13283 { ac_try='test -z "$ac_c_werror_flag"
13284 || test ! -s conftest.err'
13285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13286 (eval $ac_try) 2>&5
13288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289 (exit $ac_status); }; } &&
13290 { ac_try='test -s conftest.$ac_objext'
13291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13292 (eval $ac_try) 2>&5
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); }; }; then
13296 ac_cv_type_uintptr_t=yes
13298 echo "$as_me: failed program was:" >&5
13299 sed 's/^/| /' conftest.$ac_ext >&5
13301 ac_cv_type_uintptr_t=no
13303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13305 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13306 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13307 if test $ac_cv_type_uintptr_t = yes; then
13310 acx_cv_header_stdint_kind="(mostly complete)"
13313 echo "$as_me:$LINENO: checking for int_least32_t" >&5
13314 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
13315 if test "${ac_cv_type_int_least32_t+set}" = set; then
13316 echo $ECHO_N "(cached) $ECHO_C" >&6
13318 cat >conftest.$ac_ext <<_ACEOF
13321 cat confdefs.h >>conftest.$ac_ext
13322 cat >>conftest.$ac_ext <<_ACEOF
13323 /* end confdefs.h. */
13324 #include <sys/types.h>
13330 if ((int_least32_t *) 0)
13332 if (sizeof (int_least32_t))
13338 rm -f conftest.$ac_objext
13339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13340 (eval $ac_compile) 2>conftest.er1
13342 grep -v '^ *+' conftest.er1 >conftest.err
13344 cat conftest.err >&5
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 (exit $ac_status); } &&
13347 { ac_try='test -z "$ac_c_werror_flag"
13348 || test ! -s conftest.err'
13349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13350 (eval $ac_try) 2>&5
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); }; } &&
13354 { ac_try='test -s conftest.$ac_objext'
13355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13356 (eval $ac_try) 2>&5
13358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359 (exit $ac_status); }; }; then
13360 ac_cv_type_int_least32_t=yes
13362 echo "$as_me: failed program was:" >&5
13363 sed 's/^/| /' conftest.$ac_ext >&5
13365 ac_cv_type_int_least32_t=no
13367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13369 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
13370 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
13371 if test $ac_cv_type_int_least32_t = yes; then
13374 acx_cv_header_stdint_kind="(mostly complete)"
13377 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
13378 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
13379 if test "${ac_cv_type_int_fast32_t+set}" = set; then
13380 echo $ECHO_N "(cached) $ECHO_C" >&6
13382 cat >conftest.$ac_ext <<_ACEOF
13385 cat confdefs.h >>conftest.$ac_ext
13386 cat >>conftest.$ac_ext <<_ACEOF
13387 /* end confdefs.h. */
13388 #include <sys/types.h>
13394 if ((int_fast32_t *) 0)
13396 if (sizeof (int_fast32_t))
13402 rm -f conftest.$ac_objext
13403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13404 (eval $ac_compile) 2>conftest.er1
13406 grep -v '^ *+' conftest.er1 >conftest.err
13408 cat conftest.err >&5
13409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410 (exit $ac_status); } &&
13411 { ac_try='test -z "$ac_c_werror_flag"
13412 || test ! -s conftest.err'
13413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13414 (eval $ac_try) 2>&5
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); }; } &&
13418 { ac_try='test -s conftest.$ac_objext'
13419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13420 (eval $ac_try) 2>&5
13422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); }; }; then
13424 ac_cv_type_int_fast32_t=yes
13426 echo "$as_me: failed program was:" >&5
13427 sed 's/^/| /' conftest.$ac_ext >&5
13429 ac_cv_type_int_fast32_t=no
13431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13433 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
13434 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
13435 if test $ac_cv_type_int_fast32_t = yes; then
13438 acx_cv_header_stdint_kind="(mostly complete)"
13441 echo "$as_me:$LINENO: checking for uint64_t" >&5
13442 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13443 if test "${ac_cv_type_uint64_t+set}" = set; then
13444 echo $ECHO_N "(cached) $ECHO_C" >&6
13446 cat >conftest.$ac_ext <<_ACEOF
13449 cat confdefs.h >>conftest.$ac_ext
13450 cat >>conftest.$ac_ext <<_ACEOF
13451 /* end confdefs.h. */
13452 #include <sys/types.h>
13458 if ((uint64_t *) 0)
13460 if (sizeof (uint64_t))
13466 rm -f conftest.$ac_objext
13467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13468 (eval $ac_compile) 2>conftest.er1
13470 grep -v '^ *+' conftest.er1 >conftest.err
13472 cat conftest.err >&5
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); } &&
13475 { ac_try='test -z "$ac_c_werror_flag"
13476 || test ! -s conftest.err'
13477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13478 (eval $ac_try) 2>&5
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); }; } &&
13482 { ac_try='test -s conftest.$ac_objext'
13483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13484 (eval $ac_try) 2>&5
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); }; }; then
13488 ac_cv_type_uint64_t=yes
13490 echo "$as_me: failed program was:" >&5
13491 sed 's/^/| /' conftest.$ac_ext >&5
13493 ac_cv_type_uint64_t=no
13495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13497 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13498 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
13499 if test $ac_cv_type_uint64_t = yes; then
13502 acx_cv_header_stdint_kind="(lacks uint64_t)"
13507 if test "$acx_cv_header_stdint" = stddef.h; then
13508 acx_cv_header_stdint_kind="(lacks uintmax_t)"
13509 for i in stdint.h $inttype_headers; do
13510 unset ac_cv_type_uintptr_t
13511 unset ac_cv_type_uint32_t
13512 unset ac_cv_type_uint64_t
13513 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
13514 echo "$as_me:$LINENO: checking for uint32_t" >&5
13515 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
13516 if test "${ac_cv_type_uint32_t+set}" = set; then
13517 echo $ECHO_N "(cached) $ECHO_C" >&6
13519 cat >conftest.$ac_ext <<_ACEOF
13522 cat confdefs.h >>conftest.$ac_ext
13523 cat >>conftest.$ac_ext <<_ACEOF
13524 /* end confdefs.h. */
13525 #include <sys/types.h>
13531 if ((uint32_t *) 0)
13533 if (sizeof (uint32_t))
13539 rm -f conftest.$ac_objext
13540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13541 (eval $ac_compile) 2>conftest.er1
13543 grep -v '^ *+' conftest.er1 >conftest.err
13545 cat conftest.err >&5
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); } &&
13548 { ac_try='test -z "$ac_c_werror_flag"
13549 || test ! -s conftest.err'
13550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13551 (eval $ac_try) 2>&5
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); }; } &&
13555 { ac_try='test -s conftest.$ac_objext'
13556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13557 (eval $ac_try) 2>&5
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); }; }; then
13561 ac_cv_type_uint32_t=yes
13563 echo "$as_me: failed program was:" >&5
13564 sed 's/^/| /' conftest.$ac_ext >&5
13566 ac_cv_type_uint32_t=no
13568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13570 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
13571 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
13572 if test $ac_cv_type_uint32_t = yes; then
13573 acx_cv_header_stdint=$i
13578 echo "$as_me:$LINENO: checking for uint64_t" >&5
13579 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13580 if test "${ac_cv_type_uint64_t+set}" = set; then
13581 echo $ECHO_N "(cached) $ECHO_C" >&6
13583 cat >conftest.$ac_ext <<_ACEOF
13586 cat confdefs.h >>conftest.$ac_ext
13587 cat >>conftest.$ac_ext <<_ACEOF
13588 /* end confdefs.h. */
13589 #include <sys/types.h>
13595 if ((uint64_t *) 0)
13597 if (sizeof (uint64_t))
13603 rm -f conftest.$ac_objext
13604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13605 (eval $ac_compile) 2>conftest.er1
13607 grep -v '^ *+' conftest.er1 >conftest.err
13609 cat conftest.err >&5
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); } &&
13612 { ac_try='test -z "$ac_c_werror_flag"
13613 || test ! -s conftest.err'
13614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13615 (eval $ac_try) 2>&5
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); }; } &&
13619 { ac_try='test -s conftest.$ac_objext'
13620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13621 (eval $ac_try) 2>&5
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); }; }; then
13625 ac_cv_type_uint64_t=yes
13627 echo "$as_me: failed program was:" >&5
13628 sed 's/^/| /' conftest.$ac_ext >&5
13630 ac_cv_type_uint64_t=no
13632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13634 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13635 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
13637 echo "$as_me:$LINENO: checking for uintptr_t" >&5
13638 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13639 if test "${ac_cv_type_uintptr_t+set}" = set; then
13640 echo $ECHO_N "(cached) $ECHO_C" >&6
13642 cat >conftest.$ac_ext <<_ACEOF
13645 cat confdefs.h >>conftest.$ac_ext
13646 cat >>conftest.$ac_ext <<_ACEOF
13647 /* end confdefs.h. */
13648 #include <sys/types.h>
13654 if ((uintptr_t *) 0)
13656 if (sizeof (uintptr_t))
13662 rm -f conftest.$ac_objext
13663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13664 (eval $ac_compile) 2>conftest.er1
13666 grep -v '^ *+' conftest.er1 >conftest.err
13668 cat conftest.err >&5
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); } &&
13671 { ac_try='test -z "$ac_c_werror_flag"
13672 || test ! -s conftest.err'
13673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13674 (eval $ac_try) 2>&5
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); }; } &&
13678 { ac_try='test -s conftest.$ac_objext'
13679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13680 (eval $ac_try) 2>&5
13682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683 (exit $ac_status); }; }; then
13684 ac_cv_type_uintptr_t=yes
13686 echo "$as_me: failed program was:" >&5
13687 sed 's/^/| /' conftest.$ac_ext >&5
13689 ac_cv_type_uintptr_t=no
13691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13693 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13694 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13699 if test "$acx_cv_header_stdint" = stddef.h; then
13700 acx_cv_header_stdint_kind="(u_intXX_t style)"
13701 for i in sys/types.h $inttype_headers; do
13702 unset ac_cv_type_u_int32_t
13703 unset ac_cv_type_u_int64_t
13704 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
13705 echo "$as_me:$LINENO: checking for u_int32_t" >&5
13706 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
13707 if test "${ac_cv_type_u_int32_t+set}" = set; then
13708 echo $ECHO_N "(cached) $ECHO_C" >&6
13710 cat >conftest.$ac_ext <<_ACEOF
13713 cat confdefs.h >>conftest.$ac_ext
13714 cat >>conftest.$ac_ext <<_ACEOF
13715 /* end confdefs.h. */
13716 #include <sys/types.h>
13722 if ((u_int32_t *) 0)
13724 if (sizeof (u_int32_t))
13730 rm -f conftest.$ac_objext
13731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13732 (eval $ac_compile) 2>conftest.er1
13734 grep -v '^ *+' conftest.er1 >conftest.err
13736 cat conftest.err >&5
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); } &&
13739 { ac_try='test -z "$ac_c_werror_flag"
13740 || test ! -s conftest.err'
13741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13742 (eval $ac_try) 2>&5
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); }; } &&
13746 { ac_try='test -s conftest.$ac_objext'
13747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13748 (eval $ac_try) 2>&5
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); }; }; then
13752 ac_cv_type_u_int32_t=yes
13754 echo "$as_me: failed program was:" >&5
13755 sed 's/^/| /' conftest.$ac_ext >&5
13757 ac_cv_type_u_int32_t=no
13759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13761 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
13762 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
13763 if test $ac_cv_type_u_int32_t = yes; then
13764 acx_cv_header_stdint=$i
13769 echo "$as_me:$LINENO: checking for u_int64_t" >&5
13770 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
13771 if test "${ac_cv_type_u_int64_t+set}" = set; then
13772 echo $ECHO_N "(cached) $ECHO_C" >&6
13774 cat >conftest.$ac_ext <<_ACEOF
13777 cat confdefs.h >>conftest.$ac_ext
13778 cat >>conftest.$ac_ext <<_ACEOF
13779 /* end confdefs.h. */
13780 #include <sys/types.h>
13786 if ((u_int64_t *) 0)
13788 if (sizeof (u_int64_t))
13794 rm -f conftest.$ac_objext
13795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13796 (eval $ac_compile) 2>conftest.er1
13798 grep -v '^ *+' conftest.er1 >conftest.err
13800 cat conftest.err >&5
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); } &&
13803 { ac_try='test -z "$ac_c_werror_flag"
13804 || test ! -s conftest.err'
13805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13806 (eval $ac_try) 2>&5
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 (exit $ac_status); }; } &&
13810 { ac_try='test -s conftest.$ac_objext'
13811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13812 (eval $ac_try) 2>&5
13814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815 (exit $ac_status); }; }; then
13816 ac_cv_type_u_int64_t=yes
13818 echo "$as_me: failed program was:" >&5
13819 sed 's/^/| /' conftest.$ac_ext >&5
13821 ac_cv_type_u_int64_t=no
13823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13825 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13826 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
13831 if test "$acx_cv_header_stdint" = stddef.h; then
13832 acx_cv_header_stdint_kind="(using manual detection)"
13835 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
13836 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
13837 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
13838 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
13839 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
13841 # ----------------- Summarize what we found so far
13843 echo "$as_me:$LINENO: checking what to include in bfd_stdint.h" >&5
13844 echo $ECHO_N "checking what to include in bfd_stdint.h... $ECHO_C" >&6
13846 case `$as_basename bfd_stdint.h ||
13847 $as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
13848 Xbfd_stdint.h : 'X\(//\)$' \| \
13849 Xbfd_stdint.h : 'X\(/\)$' \| \
13850 . : '\(.\)' 2>/dev/null ||
13851 echo X/bfd_stdint.h |
13852 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13853 /^X\/\(\/\/\)$/{ s//\1/; q; }
13854 /^X\/\(\/\).*/{ s//\1/; q; }
13856 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13857 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13858 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13859 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13863 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
13864 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
13866 # ----------------- done included file, check C basic types --------
13868 # Lacking an uintptr_t? Test size of void *
13869 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
13870 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
13871 echo $ECHO_N "checking for void *... $ECHO_C" >&6
13872 if test "${ac_cv_type_void_p+set}" = set; then
13873 echo $ECHO_N "(cached) $ECHO_C" >&6
13875 cat >conftest.$ac_ext <<_ACEOF
13878 cat confdefs.h >>conftest.$ac_ext
13879 cat >>conftest.$ac_ext <<_ACEOF
13880 /* end confdefs.h. */
13881 $ac_includes_default
13887 if (sizeof (void *))
13893 rm -f conftest.$ac_objext
13894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13895 (eval $ac_compile) 2>conftest.er1
13897 grep -v '^ *+' conftest.er1 >conftest.err
13899 cat conftest.err >&5
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); } &&
13902 { ac_try='test -z "$ac_c_werror_flag"
13903 || test ! -s conftest.err'
13904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13905 (eval $ac_try) 2>&5
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); }; } &&
13909 { ac_try='test -s conftest.$ac_objext'
13910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13911 (eval $ac_try) 2>&5
13913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); }; }; then
13915 ac_cv_type_void_p=yes
13917 echo "$as_me: failed program was:" >&5
13918 sed 's/^/| /' conftest.$ac_ext >&5
13920 ac_cv_type_void_p=no
13922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13924 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13925 echo "${ECHO_T}$ac_cv_type_void_p" >&6
13927 echo "$as_me:$LINENO: checking size of void *" >&5
13928 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13929 if test "${ac_cv_sizeof_void_p+set}" = set; then
13930 echo $ECHO_N "(cached) $ECHO_C" >&6
13932 if test "$ac_cv_type_void_p" = yes; then
13933 # The cast to unsigned long works around a bug in the HP C Compiler
13934 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13935 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13936 # This bug is HP SR number 8606223364.
13937 if test "$cross_compiling" = yes; then
13938 # Depending upon the size, compute the lo and hi bounds.
13939 cat >conftest.$ac_ext <<_ACEOF
13942 cat confdefs.h >>conftest.$ac_ext
13943 cat >>conftest.$ac_ext <<_ACEOF
13944 /* end confdefs.h. */
13945 $ac_includes_default
13949 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
13956 rm -f conftest.$ac_objext
13957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13958 (eval $ac_compile) 2>conftest.er1
13960 grep -v '^ *+' conftest.er1 >conftest.err
13962 cat conftest.err >&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); } &&
13965 { ac_try='test -z "$ac_c_werror_flag"
13966 || test ! -s conftest.err'
13967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13968 (eval $ac_try) 2>&5
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); }; } &&
13972 { ac_try='test -s conftest.$ac_objext'
13973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13974 (eval $ac_try) 2>&5
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); }; }; then
13980 cat >conftest.$ac_ext <<_ACEOF
13983 cat confdefs.h >>conftest.$ac_ext
13984 cat >>conftest.$ac_ext <<_ACEOF
13985 /* end confdefs.h. */
13986 $ac_includes_default
13990 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13997 rm -f conftest.$ac_objext
13998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13999 (eval $ac_compile) 2>conftest.er1
14001 grep -v '^ *+' conftest.er1 >conftest.err
14003 cat conftest.err >&5
14004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005 (exit $ac_status); } &&
14006 { ac_try='test -z "$ac_c_werror_flag"
14007 || test ! -s conftest.err'
14008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14009 (eval $ac_try) 2>&5
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); }; } &&
14013 { ac_try='test -s conftest.$ac_objext'
14014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14015 (eval $ac_try) 2>&5
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); }; }; then
14019 ac_hi=$ac_mid; break
14021 echo "$as_me: failed program was:" >&5
14022 sed 's/^/| /' conftest.$ac_ext >&5
14024 ac_lo=`expr $ac_mid + 1`
14025 if test $ac_lo -le $ac_mid; then
14029 ac_mid=`expr 2 '*' $ac_mid + 1`
14031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14034 echo "$as_me: failed program was:" >&5
14035 sed 's/^/| /' conftest.$ac_ext >&5
14037 cat >conftest.$ac_ext <<_ACEOF
14040 cat confdefs.h >>conftest.$ac_ext
14041 cat >>conftest.$ac_ext <<_ACEOF
14042 /* end confdefs.h. */
14043 $ac_includes_default
14047 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14054 rm -f conftest.$ac_objext
14055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14056 (eval $ac_compile) 2>conftest.er1
14058 grep -v '^ *+' conftest.er1 >conftest.err
14060 cat conftest.err >&5
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); } &&
14063 { ac_try='test -z "$ac_c_werror_flag"
14064 || test ! -s conftest.err'
14065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14066 (eval $ac_try) 2>&5
14068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069 (exit $ac_status); }; } &&
14070 { ac_try='test -s conftest.$ac_objext'
14071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14072 (eval $ac_try) 2>&5
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); }; }; then
14078 cat >conftest.$ac_ext <<_ACEOF
14081 cat confdefs.h >>conftest.$ac_ext
14082 cat >>conftest.$ac_ext <<_ACEOF
14083 /* end confdefs.h. */
14084 $ac_includes_default
14088 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14095 rm -f conftest.$ac_objext
14096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14097 (eval $ac_compile) 2>conftest.er1
14099 grep -v '^ *+' conftest.er1 >conftest.err
14101 cat conftest.err >&5
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); } &&
14104 { ac_try='test -z "$ac_c_werror_flag"
14105 || test ! -s conftest.err'
14106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14107 (eval $ac_try) 2>&5
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); }; } &&
14111 { ac_try='test -s conftest.$ac_objext'
14112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14113 (eval $ac_try) 2>&5
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); }; }; then
14117 ac_lo=$ac_mid; break
14119 echo "$as_me: failed program was:" >&5
14120 sed 's/^/| /' conftest.$ac_ext >&5
14122 ac_hi=`expr '(' $ac_mid ')' - 1`
14123 if test $ac_mid -le $ac_hi; then
14127 ac_mid=`expr 2 '*' $ac_mid`
14129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14132 echo "$as_me: failed program was:" >&5
14133 sed 's/^/| /' conftest.$ac_ext >&5
14137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14140 # Binary search between lo and hi bounds.
14141 while test "x$ac_lo" != "x$ac_hi"; do
14142 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14143 cat >conftest.$ac_ext <<_ACEOF
14146 cat confdefs.h >>conftest.$ac_ext
14147 cat >>conftest.$ac_ext <<_ACEOF
14148 /* end confdefs.h. */
14149 $ac_includes_default
14153 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14160 rm -f conftest.$ac_objext
14161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14162 (eval $ac_compile) 2>conftest.er1
14164 grep -v '^ *+' conftest.er1 >conftest.err
14166 cat conftest.err >&5
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); } &&
14169 { ac_try='test -z "$ac_c_werror_flag"
14170 || test ! -s conftest.err'
14171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14172 (eval $ac_try) 2>&5
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); }; } &&
14176 { ac_try='test -s conftest.$ac_objext'
14177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14178 (eval $ac_try) 2>&5
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); }; }; then
14184 echo "$as_me: failed program was:" >&5
14185 sed 's/^/| /' conftest.$ac_ext >&5
14187 ac_lo=`expr '(' $ac_mid ')' + 1`
14189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14192 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14193 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14194 echo "$as_me: error: in \`$ac_pwd':" >&2;}
14195 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14196 See \`config.log' for more details." >&5
14197 echo "$as_me: error: cannot compute sizeof (void *), 77
14198 See \`config.log' for more details." >&2;}
14199 { (exit 1); exit 1; }; }; } ;;
14202 if test "$cross_compiling" = yes; then
14203 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14204 echo "$as_me: error: in \`$ac_pwd':" >&2;}
14205 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14206 See \`config.log' for more details." >&5
14207 echo "$as_me: error: cannot run test program while cross compiling
14208 See \`config.log' for more details." >&2;}
14209 { (exit 1); exit 1; }; }; }
14211 cat >conftest.$ac_ext <<_ACEOF
14214 cat confdefs.h >>conftest.$ac_ext
14215 cat >>conftest.$ac_ext <<_ACEOF
14216 /* end confdefs.h. */
14217 $ac_includes_default
14218 long longval () { return (long) (sizeof (void *)); }
14219 unsigned long ulongval () { return (long) (sizeof (void *)); }
14221 #include <stdlib.h>
14226 FILE *f = fopen ("conftest.val", "w");
14229 if (((long) (sizeof (void *))) < 0)
14231 long i = longval ();
14232 if (i != ((long) (sizeof (void *))))
14234 fprintf (f, "%ld\n", i);
14238 unsigned long i = ulongval ();
14239 if (i != ((long) (sizeof (void *))))
14241 fprintf (f, "%lu\n", i);
14243 exit (ferror (f) || fclose (f) != 0);
14249 rm -f conftest$ac_exeext
14250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14251 (eval $ac_link) 2>&5
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14256 (eval $ac_try) 2>&5
14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); }; }; then
14260 ac_cv_sizeof_void_p=`cat conftest.val`
14262 echo "$as_me: program exited with status $ac_status" >&5
14263 echo "$as_me: failed program was:" >&5
14264 sed 's/^/| /' conftest.$ac_ext >&5
14266 ( exit $ac_status )
14267 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14268 echo "$as_me: error: in \`$ac_pwd':" >&2;}
14269 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14270 See \`config.log' for more details." >&5
14271 echo "$as_me: error: cannot compute sizeof (void *), 77
14272 See \`config.log' for more details." >&2;}
14273 { (exit 1); exit 1; }; }; }
14275 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14280 ac_cv_sizeof_void_p=0
14283 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14284 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14285 cat >>confdefs.h <<_ACEOF
14286 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14292 # Lacking an uint64_t? Test size of long
14293 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14294 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
14295 echo $ECHO_N "checking for long... $ECHO_C" >&6
14296 if test "${ac_cv_type_long+set}" = set; then
14297 echo $ECHO_N "(cached) $ECHO_C" >&6
14299 cat >conftest.$ac_ext <<_ACEOF
14302 cat confdefs.h >>conftest.$ac_ext
14303 cat >>conftest.$ac_ext <<_ACEOF
14304 /* end confdefs.h. */
14305 $ac_includes_default
14317 rm -f conftest.$ac_objext
14318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14319 (eval $ac_compile) 2>conftest.er1
14321 grep -v '^ *+' conftest.er1 >conftest.err
14323 cat conftest.err >&5
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); } &&
14326 { ac_try='test -z "$ac_c_werror_flag"
14327 || test ! -s conftest.err'
14328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329 (eval $ac_try) 2>&5
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); }; } &&
14333 { ac_try='test -s conftest.$ac_objext'
14334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14335 (eval $ac_try) 2>&5
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); }; }; then
14339 ac_cv_type_long=yes
14341 echo "$as_me: failed program was:" >&5
14342 sed 's/^/| /' conftest.$ac_ext >&5
14346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14348 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14349 echo "${ECHO_T}$ac_cv_type_long" >&6
14351 echo "$as_me:$LINENO: checking size of long" >&5
14352 echo $ECHO_N "checking size of long... $ECHO_C" >&6
14353 if test "${ac_cv_sizeof_long+set}" = set; then
14354 echo $ECHO_N "(cached) $ECHO_C" >&6
14356 if test "$ac_cv_type_long" = yes; then
14357 # The cast to unsigned long works around a bug in the HP C Compiler
14358 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14359 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14360 # This bug is HP SR number 8606223364.
14361 if test "$cross_compiling" = yes; then
14362 # Depending upon the size, compute the lo and hi bounds.
14363 cat >conftest.$ac_ext <<_ACEOF
14366 cat confdefs.h >>conftest.$ac_ext
14367 cat >>conftest.$ac_ext <<_ACEOF
14368 /* end confdefs.h. */
14369 $ac_includes_default
14373 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
14380 rm -f conftest.$ac_objext
14381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14382 (eval $ac_compile) 2>conftest.er1
14384 grep -v '^ *+' conftest.er1 >conftest.err
14386 cat conftest.err >&5
14387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 (exit $ac_status); } &&
14389 { ac_try='test -z "$ac_c_werror_flag"
14390 || test ! -s conftest.err'
14391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14392 (eval $ac_try) 2>&5
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); }; } &&
14396 { ac_try='test -s conftest.$ac_objext'
14397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14398 (eval $ac_try) 2>&5
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); }; }; then
14404 cat >conftest.$ac_ext <<_ACEOF
14407 cat confdefs.h >>conftest.$ac_ext
14408 cat >>conftest.$ac_ext <<_ACEOF
14409 /* end confdefs.h. */
14410 $ac_includes_default
14414 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14421 rm -f conftest.$ac_objext
14422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14423 (eval $ac_compile) 2>conftest.er1
14425 grep -v '^ *+' conftest.er1 >conftest.err
14427 cat conftest.err >&5
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); } &&
14430 { ac_try='test -z "$ac_c_werror_flag"
14431 || test ! -s conftest.err'
14432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14433 (eval $ac_try) 2>&5
14435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436 (exit $ac_status); }; } &&
14437 { ac_try='test -s conftest.$ac_objext'
14438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14439 (eval $ac_try) 2>&5
14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); }; }; then
14443 ac_hi=$ac_mid; break
14445 echo "$as_me: failed program was:" >&5
14446 sed 's/^/| /' conftest.$ac_ext >&5
14448 ac_lo=`expr $ac_mid + 1`
14449 if test $ac_lo -le $ac_mid; then
14453 ac_mid=`expr 2 '*' $ac_mid + 1`
14455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14458 echo "$as_me: failed program was:" >&5
14459 sed 's/^/| /' conftest.$ac_ext >&5
14461 cat >conftest.$ac_ext <<_ACEOF
14464 cat confdefs.h >>conftest.$ac_ext
14465 cat >>conftest.$ac_ext <<_ACEOF
14466 /* end confdefs.h. */
14467 $ac_includes_default
14471 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
14478 rm -f conftest.$ac_objext
14479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14480 (eval $ac_compile) 2>conftest.er1
14482 grep -v '^ *+' conftest.er1 >conftest.err
14484 cat conftest.err >&5
14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); } &&
14487 { ac_try='test -z "$ac_c_werror_flag"
14488 || test ! -s conftest.err'
14489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14490 (eval $ac_try) 2>&5
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); }; } &&
14494 { ac_try='test -s conftest.$ac_objext'
14495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14496 (eval $ac_try) 2>&5
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); }; }; then
14502 cat >conftest.$ac_ext <<_ACEOF
14505 cat confdefs.h >>conftest.$ac_ext
14506 cat >>conftest.$ac_ext <<_ACEOF
14507 /* end confdefs.h. */
14508 $ac_includes_default
14512 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
14519 rm -f conftest.$ac_objext
14520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14521 (eval $ac_compile) 2>conftest.er1
14523 grep -v '^ *+' conftest.er1 >conftest.err
14525 cat conftest.err >&5
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); } &&
14528 { ac_try='test -z "$ac_c_werror_flag"
14529 || test ! -s conftest.err'
14530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14531 (eval $ac_try) 2>&5
14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); }; } &&
14535 { ac_try='test -s conftest.$ac_objext'
14536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14537 (eval $ac_try) 2>&5
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); }; }; then
14541 ac_lo=$ac_mid; break
14543 echo "$as_me: failed program was:" >&5
14544 sed 's/^/| /' conftest.$ac_ext >&5
14546 ac_hi=`expr '(' $ac_mid ')' - 1`
14547 if test $ac_mid -le $ac_hi; then
14551 ac_mid=`expr 2 '*' $ac_mid`
14553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14556 echo "$as_me: failed program was:" >&5
14557 sed 's/^/| /' conftest.$ac_ext >&5
14561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14564 # Binary search between lo and hi bounds.
14565 while test "x$ac_lo" != "x$ac_hi"; do
14566 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14567 cat >conftest.$ac_ext <<_ACEOF
14570 cat confdefs.h >>conftest.$ac_ext
14571 cat >>conftest.$ac_ext <<_ACEOF
14572 /* end confdefs.h. */
14573 $ac_includes_default
14577 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14584 rm -f conftest.$ac_objext
14585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14586 (eval $ac_compile) 2>conftest.er1
14588 grep -v '^ *+' conftest.er1 >conftest.err
14590 cat conftest.err >&5
14591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592 (exit $ac_status); } &&
14593 { ac_try='test -z "$ac_c_werror_flag"
14594 || test ! -s conftest.err'
14595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14596 (eval $ac_try) 2>&5
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); }; } &&
14600 { ac_try='test -s conftest.$ac_objext'
14601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14602 (eval $ac_try) 2>&5
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); }; }; then
14608 echo "$as_me: failed program was:" >&5
14609 sed 's/^/| /' conftest.$ac_ext >&5
14611 ac_lo=`expr '(' $ac_mid ')' + 1`
14613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14616 ?*) ac_cv_sizeof_long=$ac_lo;;
14617 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14618 echo "$as_me: error: in \`$ac_pwd':" >&2;}
14619 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
14620 See \`config.log' for more details." >&5
14621 echo "$as_me: error: cannot compute sizeof (long), 77
14622 See \`config.log' for more details." >&2;}
14623 { (exit 1); exit 1; }; }; } ;;
14626 if test "$cross_compiling" = yes; then
14627 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14628 echo "$as_me: error: in \`$ac_pwd':" >&2;}
14629 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14630 See \`config.log' for more details." >&5
14631 echo "$as_me: error: cannot run test program while cross compiling
14632 See \`config.log' for more details." >&2;}
14633 { (exit 1); exit 1; }; }; }
14635 cat >conftest.$ac_ext <<_ACEOF
14638 cat confdefs.h >>conftest.$ac_ext
14639 cat >>conftest.$ac_ext <<_ACEOF
14640 /* end confdefs.h. */
14641 $ac_includes_default
14642 long longval () { return (long) (sizeof (long)); }
14643 unsigned long ulongval () { return (long) (sizeof (long)); }
14645 #include <stdlib.h>
14650 FILE *f = fopen ("conftest.val", "w");
14653 if (((long) (sizeof (long))) < 0)
14655 long i = longval ();
14656 if (i != ((long) (sizeof (long))))
14658 fprintf (f, "%ld\n", i);
14662 unsigned long i = ulongval ();
14663 if (i != ((long) (sizeof (long))))
14665 fprintf (f, "%lu\n", i);
14667 exit (ferror (f) || fclose (f) != 0);
14673 rm -f conftest$ac_exeext
14674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14675 (eval $ac_link) 2>&5
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14680 (eval $ac_try) 2>&5
14682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683 (exit $ac_status); }; }; then
14684 ac_cv_sizeof_long=`cat conftest.val`
14686 echo "$as_me: program exited with status $ac_status" >&5
14687 echo "$as_me: failed program was:" >&5
14688 sed 's/^/| /' conftest.$ac_ext >&5
14690 ( exit $ac_status )
14691 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14692 echo "$as_me: error: in \`$ac_pwd':" >&2;}
14693 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
14694 See \`config.log' for more details." >&5
14695 echo "$as_me: error: cannot compute sizeof (long), 77
14696 See \`config.log' for more details." >&2;}
14697 { (exit 1); exit 1; }; }; }
14699 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14704 ac_cv_sizeof_long=0
14707 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
14708 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
14709 cat >>confdefs.h <<_ACEOF
14710 #define SIZEOF_LONG $ac_cv_sizeof_long
14716 if test $acx_cv_header_stdint = stddef.h; then
14717 # Lacking a good header? Test size of everything and deduce all types.
14718 echo "$as_me:$LINENO: checking for int" >&5
14719 echo $ECHO_N "checking for int... $ECHO_C" >&6
14720 if test "${ac_cv_type_int+set}" = set; then
14721 echo $ECHO_N "(cached) $ECHO_C" >&6
14723 cat >conftest.$ac_ext <<_ACEOF
14726 cat confdefs.h >>conftest.$ac_ext
14727 cat >>conftest.$ac_ext <<_ACEOF
14728 /* end confdefs.h. */
14729 $ac_includes_default
14741 rm -f conftest.$ac_objext
14742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14743 (eval $ac_compile) 2>conftest.er1
14745 grep -v '^ *+' conftest.er1 >conftest.err
14747 cat conftest.err >&5
14748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749 (exit $ac_status); } &&
14750 { ac_try='test -z "$ac_c_werror_flag"
14751 || test ! -s conftest.err'
14752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14753 (eval $ac_try) 2>&5
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); }; } &&
14757 { ac_try='test -s conftest.$ac_objext'
14758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14759 (eval $ac_try) 2>&5
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); }; }; then
14765 echo "$as_me: failed program was:" >&5
14766 sed 's/^/| /' conftest.$ac_ext >&5
14770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14772 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14773 echo "${ECHO_T}$ac_cv_type_int" >&6
14775 echo "$as_me:$LINENO: checking size of int" >&5
14776 echo $ECHO_N "checking size of int... $ECHO_C" >&6
14777 if test "${ac_cv_sizeof_int+set}" = set; then
14778 echo $ECHO_N "(cached) $ECHO_C" >&6
14780 if test "$ac_cv_type_int" = yes; then
14781 # The cast to unsigned long works around a bug in the HP C Compiler
14782 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14783 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14784 # This bug is HP SR number 8606223364.
14785 if test "$cross_compiling" = yes; then
14786 # Depending upon the size, compute the lo and hi bounds.
14787 cat >conftest.$ac_ext <<_ACEOF
14790 cat confdefs.h >>conftest.$ac_ext
14791 cat >>conftest.$ac_ext <<_ACEOF
14792 /* end confdefs.h. */
14793 $ac_includes_default
14797 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14804 rm -f conftest.$ac_objext
14805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14806 (eval $ac_compile) 2>conftest.er1
14808 grep -v '^ *+' conftest.er1 >conftest.err
14810 cat conftest.err >&5
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); } &&
14813 { ac_try='test -z "$ac_c_werror_flag"
14814 || test ! -s conftest.err'
14815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14816 (eval $ac_try) 2>&5
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); }; } &&
14820 { ac_try='test -s conftest.$ac_objext'
14821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14822 (eval $ac_try) 2>&5
14824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); }; }; then
14828 cat >conftest.$ac_ext <<_ACEOF
14831 cat confdefs.h >>conftest.$ac_ext
14832 cat >>conftest.$ac_ext <<_ACEOF
14833 /* end confdefs.h. */
14834 $ac_includes_default
14838 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14845 rm -f conftest.$ac_objext
14846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14847 (eval $ac_compile) 2>conftest.er1
14849 grep -v '^ *+' conftest.er1 >conftest.err
14851 cat conftest.err >&5
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); } &&
14854 { ac_try='test -z "$ac_c_werror_flag"
14855 || test ! -s conftest.err'
14856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14857 (eval $ac_try) 2>&5
14859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); }; } &&
14861 { ac_try='test -s conftest.$ac_objext'
14862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14863 (eval $ac_try) 2>&5
14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866 (exit $ac_status); }; }; then
14867 ac_hi=$ac_mid; break
14869 echo "$as_me: failed program was:" >&5
14870 sed 's/^/| /' conftest.$ac_ext >&5
14872 ac_lo=`expr $ac_mid + 1`
14873 if test $ac_lo -le $ac_mid; then
14877 ac_mid=`expr 2 '*' $ac_mid + 1`
14879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14882 echo "$as_me: failed program was:" >&5
14883 sed 's/^/| /' conftest.$ac_ext >&5
14885 cat >conftest.$ac_ext <<_ACEOF
14888 cat confdefs.h >>conftest.$ac_ext
14889 cat >>conftest.$ac_ext <<_ACEOF
14890 /* end confdefs.h. */
14891 $ac_includes_default
14895 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14902 rm -f conftest.$ac_objext
14903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14904 (eval $ac_compile) 2>conftest.er1
14906 grep -v '^ *+' conftest.er1 >conftest.err
14908 cat conftest.err >&5
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); } &&
14911 { ac_try='test -z "$ac_c_werror_flag"
14912 || test ! -s conftest.err'
14913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14914 (eval $ac_try) 2>&5
14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917 (exit $ac_status); }; } &&
14918 { ac_try='test -s conftest.$ac_objext'
14919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14920 (eval $ac_try) 2>&5
14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); }; }; then
14926 cat >conftest.$ac_ext <<_ACEOF
14929 cat confdefs.h >>conftest.$ac_ext
14930 cat >>conftest.$ac_ext <<_ACEOF
14931 /* end confdefs.h. */
14932 $ac_includes_default
14936 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14943 rm -f conftest.$ac_objext
14944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14945 (eval $ac_compile) 2>conftest.er1
14947 grep -v '^ *+' conftest.er1 >conftest.err
14949 cat conftest.err >&5
14950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951 (exit $ac_status); } &&
14952 { ac_try='test -z "$ac_c_werror_flag"
14953 || test ! -s conftest.err'
14954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14955 (eval $ac_try) 2>&5
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); }; } &&
14959 { ac_try='test -s conftest.$ac_objext'
14960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14961 (eval $ac_try) 2>&5
14963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); }; }; then
14965 ac_lo=$ac_mid; break
14967 echo "$as_me: failed program was:" >&5
14968 sed 's/^/| /' conftest.$ac_ext >&5
14970 ac_hi=`expr '(' $ac_mid ')' - 1`
14971 if test $ac_mid -le $ac_hi; then
14975 ac_mid=`expr 2 '*' $ac_mid`
14977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14980 echo "$as_me: failed program was:" >&5
14981 sed 's/^/| /' conftest.$ac_ext >&5
14985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14988 # Binary search between lo and hi bounds.
14989 while test "x$ac_lo" != "x$ac_hi"; do
14990 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14991 cat >conftest.$ac_ext <<_ACEOF
14994 cat confdefs.h >>conftest.$ac_ext
14995 cat >>conftest.$ac_ext <<_ACEOF
14996 /* end confdefs.h. */
14997 $ac_includes_default
15001 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15008 rm -f conftest.$ac_objext
15009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15010 (eval $ac_compile) 2>conftest.er1
15012 grep -v '^ *+' conftest.er1 >conftest.err
15014 cat conftest.err >&5
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); } &&
15017 { ac_try='test -z "$ac_c_werror_flag"
15018 || test ! -s conftest.err'
15019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15020 (eval $ac_try) 2>&5
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); }; } &&
15024 { ac_try='test -s conftest.$ac_objext'
15025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15026 (eval $ac_try) 2>&5
15028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029 (exit $ac_status); }; }; then
15032 echo "$as_me: failed program was:" >&5
15033 sed 's/^/| /' conftest.$ac_ext >&5
15035 ac_lo=`expr '(' $ac_mid ')' + 1`
15037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15040 ?*) ac_cv_sizeof_int=$ac_lo;;
15041 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15042 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15043 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15044 See \`config.log' for more details." >&5
15045 echo "$as_me: error: cannot compute sizeof (int), 77
15046 See \`config.log' for more details." >&2;}
15047 { (exit 1); exit 1; }; }; } ;;
15050 if test "$cross_compiling" = yes; then
15051 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15052 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15053 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15054 See \`config.log' for more details." >&5
15055 echo "$as_me: error: cannot run test program while cross compiling
15056 See \`config.log' for more details." >&2;}
15057 { (exit 1); exit 1; }; }; }
15059 cat >conftest.$ac_ext <<_ACEOF
15062 cat confdefs.h >>conftest.$ac_ext
15063 cat >>conftest.$ac_ext <<_ACEOF
15064 /* end confdefs.h. */
15065 $ac_includes_default
15066 long longval () { return (long) (sizeof (int)); }
15067 unsigned long ulongval () { return (long) (sizeof (int)); }
15069 #include <stdlib.h>
15074 FILE *f = fopen ("conftest.val", "w");
15077 if (((long) (sizeof (int))) < 0)
15079 long i = longval ();
15080 if (i != ((long) (sizeof (int))))
15082 fprintf (f, "%ld\n", i);
15086 unsigned long i = ulongval ();
15087 if (i != ((long) (sizeof (int))))
15089 fprintf (f, "%lu\n", i);
15091 exit (ferror (f) || fclose (f) != 0);
15097 rm -f conftest$ac_exeext
15098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15099 (eval $ac_link) 2>&5
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15104 (eval $ac_try) 2>&5
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); }; }; then
15108 ac_cv_sizeof_int=`cat conftest.val`
15110 echo "$as_me: program exited with status $ac_status" >&5
15111 echo "$as_me: failed program was:" >&5
15112 sed 's/^/| /' conftest.$ac_ext >&5
15114 ( exit $ac_status )
15115 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15116 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15117 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15118 See \`config.log' for more details." >&5
15119 echo "$as_me: error: cannot compute sizeof (int), 77
15120 See \`config.log' for more details." >&2;}
15121 { (exit 1); exit 1; }; }; }
15123 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15131 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15132 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15133 cat >>confdefs.h <<_ACEOF
15134 #define SIZEOF_INT $ac_cv_sizeof_int
15138 echo "$as_me:$LINENO: checking for short" >&5
15139 echo $ECHO_N "checking for short... $ECHO_C" >&6
15140 if test "${ac_cv_type_short+set}" = set; then
15141 echo $ECHO_N "(cached) $ECHO_C" >&6
15143 cat >conftest.$ac_ext <<_ACEOF
15146 cat confdefs.h >>conftest.$ac_ext
15147 cat >>conftest.$ac_ext <<_ACEOF
15148 /* end confdefs.h. */
15149 $ac_includes_default
15155 if (sizeof (short))
15161 rm -f conftest.$ac_objext
15162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15163 (eval $ac_compile) 2>conftest.er1
15165 grep -v '^ *+' conftest.er1 >conftest.err
15167 cat conftest.err >&5
15168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169 (exit $ac_status); } &&
15170 { ac_try='test -z "$ac_c_werror_flag"
15171 || test ! -s conftest.err'
15172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15173 (eval $ac_try) 2>&5
15175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 (exit $ac_status); }; } &&
15177 { ac_try='test -s conftest.$ac_objext'
15178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15179 (eval $ac_try) 2>&5
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); }; }; then
15183 ac_cv_type_short=yes
15185 echo "$as_me: failed program was:" >&5
15186 sed 's/^/| /' conftest.$ac_ext >&5
15188 ac_cv_type_short=no
15190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15192 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15193 echo "${ECHO_T}$ac_cv_type_short" >&6
15195 echo "$as_me:$LINENO: checking size of short" >&5
15196 echo $ECHO_N "checking size of short... $ECHO_C" >&6
15197 if test "${ac_cv_sizeof_short+set}" = set; then
15198 echo $ECHO_N "(cached) $ECHO_C" >&6
15200 if test "$ac_cv_type_short" = yes; then
15201 # The cast to unsigned long works around a bug in the HP C Compiler
15202 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15203 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15204 # This bug is HP SR number 8606223364.
15205 if test "$cross_compiling" = yes; then
15206 # Depending upon the size, compute the lo and hi bounds.
15207 cat >conftest.$ac_ext <<_ACEOF
15210 cat confdefs.h >>conftest.$ac_ext
15211 cat >>conftest.$ac_ext <<_ACEOF
15212 /* end confdefs.h. */
15213 $ac_includes_default
15217 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15224 rm -f conftest.$ac_objext
15225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15226 (eval $ac_compile) 2>conftest.er1
15228 grep -v '^ *+' conftest.er1 >conftest.err
15230 cat conftest.err >&5
15231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232 (exit $ac_status); } &&
15233 { ac_try='test -z "$ac_c_werror_flag"
15234 || test ! -s conftest.err'
15235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15236 (eval $ac_try) 2>&5
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); }; } &&
15240 { ac_try='test -s conftest.$ac_objext'
15241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15242 (eval $ac_try) 2>&5
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); }; }; then
15248 cat >conftest.$ac_ext <<_ACEOF
15251 cat confdefs.h >>conftest.$ac_ext
15252 cat >>conftest.$ac_ext <<_ACEOF
15253 /* end confdefs.h. */
15254 $ac_includes_default
15258 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15265 rm -f conftest.$ac_objext
15266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15267 (eval $ac_compile) 2>conftest.er1
15269 grep -v '^ *+' conftest.er1 >conftest.err
15271 cat conftest.err >&5
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); } &&
15274 { ac_try='test -z "$ac_c_werror_flag"
15275 || test ! -s conftest.err'
15276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15277 (eval $ac_try) 2>&5
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); }; } &&
15281 { ac_try='test -s conftest.$ac_objext'
15282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15283 (eval $ac_try) 2>&5
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); }; }; then
15287 ac_hi=$ac_mid; break
15289 echo "$as_me: failed program was:" >&5
15290 sed 's/^/| /' conftest.$ac_ext >&5
15292 ac_lo=`expr $ac_mid + 1`
15293 if test $ac_lo -le $ac_mid; then
15297 ac_mid=`expr 2 '*' $ac_mid + 1`
15299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15302 echo "$as_me: failed program was:" >&5
15303 sed 's/^/| /' conftest.$ac_ext >&5
15305 cat >conftest.$ac_ext <<_ACEOF
15308 cat confdefs.h >>conftest.$ac_ext
15309 cat >>conftest.$ac_ext <<_ACEOF
15310 /* end confdefs.h. */
15311 $ac_includes_default
15315 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15322 rm -f conftest.$ac_objext
15323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15324 (eval $ac_compile) 2>conftest.er1
15326 grep -v '^ *+' conftest.er1 >conftest.err
15328 cat conftest.err >&5
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); } &&
15331 { ac_try='test -z "$ac_c_werror_flag"
15332 || test ! -s conftest.err'
15333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15334 (eval $ac_try) 2>&5
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); }; } &&
15338 { ac_try='test -s conftest.$ac_objext'
15339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15340 (eval $ac_try) 2>&5
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); }; }; then
15346 cat >conftest.$ac_ext <<_ACEOF
15349 cat confdefs.h >>conftest.$ac_ext
15350 cat >>conftest.$ac_ext <<_ACEOF
15351 /* end confdefs.h. */
15352 $ac_includes_default
15356 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15363 rm -f conftest.$ac_objext
15364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15365 (eval $ac_compile) 2>conftest.er1
15367 grep -v '^ *+' conftest.er1 >conftest.err
15369 cat conftest.err >&5
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); } &&
15372 { ac_try='test -z "$ac_c_werror_flag"
15373 || test ! -s conftest.err'
15374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15375 (eval $ac_try) 2>&5
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); }; } &&
15379 { ac_try='test -s conftest.$ac_objext'
15380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15381 (eval $ac_try) 2>&5
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); }; }; then
15385 ac_lo=$ac_mid; break
15387 echo "$as_me: failed program was:" >&5
15388 sed 's/^/| /' conftest.$ac_ext >&5
15390 ac_hi=`expr '(' $ac_mid ')' - 1`
15391 if test $ac_mid -le $ac_hi; then
15395 ac_mid=`expr 2 '*' $ac_mid`
15397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15400 echo "$as_me: failed program was:" >&5
15401 sed 's/^/| /' conftest.$ac_ext >&5
15405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15408 # Binary search between lo and hi bounds.
15409 while test "x$ac_lo" != "x$ac_hi"; do
15410 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15411 cat >conftest.$ac_ext <<_ACEOF
15414 cat confdefs.h >>conftest.$ac_ext
15415 cat >>conftest.$ac_ext <<_ACEOF
15416 /* end confdefs.h. */
15417 $ac_includes_default
15421 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15428 rm -f conftest.$ac_objext
15429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15430 (eval $ac_compile) 2>conftest.er1
15432 grep -v '^ *+' conftest.er1 >conftest.err
15434 cat conftest.err >&5
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); } &&
15437 { ac_try='test -z "$ac_c_werror_flag"
15438 || test ! -s conftest.err'
15439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15440 (eval $ac_try) 2>&5
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); }; } &&
15444 { ac_try='test -s conftest.$ac_objext'
15445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15446 (eval $ac_try) 2>&5
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; }; then
15452 echo "$as_me: failed program was:" >&5
15453 sed 's/^/| /' conftest.$ac_ext >&5
15455 ac_lo=`expr '(' $ac_mid ')' + 1`
15457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15460 ?*) ac_cv_sizeof_short=$ac_lo;;
15461 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15462 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15463 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15464 See \`config.log' for more details." >&5
15465 echo "$as_me: error: cannot compute sizeof (short), 77
15466 See \`config.log' for more details." >&2;}
15467 { (exit 1); exit 1; }; }; } ;;
15470 if test "$cross_compiling" = yes; then
15471 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15472 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15473 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15474 See \`config.log' for more details." >&5
15475 echo "$as_me: error: cannot run test program while cross compiling
15476 See \`config.log' for more details." >&2;}
15477 { (exit 1); exit 1; }; }; }
15479 cat >conftest.$ac_ext <<_ACEOF
15482 cat confdefs.h >>conftest.$ac_ext
15483 cat >>conftest.$ac_ext <<_ACEOF
15484 /* end confdefs.h. */
15485 $ac_includes_default
15486 long longval () { return (long) (sizeof (short)); }
15487 unsigned long ulongval () { return (long) (sizeof (short)); }
15489 #include <stdlib.h>
15494 FILE *f = fopen ("conftest.val", "w");
15497 if (((long) (sizeof (short))) < 0)
15499 long i = longval ();
15500 if (i != ((long) (sizeof (short))))
15502 fprintf (f, "%ld\n", i);
15506 unsigned long i = ulongval ();
15507 if (i != ((long) (sizeof (short))))
15509 fprintf (f, "%lu\n", i);
15511 exit (ferror (f) || fclose (f) != 0);
15517 rm -f conftest$ac_exeext
15518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15519 (eval $ac_link) 2>&5
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15524 (eval $ac_try) 2>&5
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); }; }; then
15528 ac_cv_sizeof_short=`cat conftest.val`
15530 echo "$as_me: program exited with status $ac_status" >&5
15531 echo "$as_me: failed program was:" >&5
15532 sed 's/^/| /' conftest.$ac_ext >&5
15534 ( exit $ac_status )
15535 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15536 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15537 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15538 See \`config.log' for more details." >&5
15539 echo "$as_me: error: cannot compute sizeof (short), 77
15540 See \`config.log' for more details." >&2;}
15541 { (exit 1); exit 1; }; }; }
15543 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15548 ac_cv_sizeof_short=0
15551 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15552 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15553 cat >>confdefs.h <<_ACEOF
15554 #define SIZEOF_SHORT $ac_cv_sizeof_short
15558 echo "$as_me:$LINENO: checking for char" >&5
15559 echo $ECHO_N "checking for char... $ECHO_C" >&6
15560 if test "${ac_cv_type_char+set}" = set; then
15561 echo $ECHO_N "(cached) $ECHO_C" >&6
15563 cat >conftest.$ac_ext <<_ACEOF
15566 cat confdefs.h >>conftest.$ac_ext
15567 cat >>conftest.$ac_ext <<_ACEOF
15568 /* end confdefs.h. */
15569 $ac_includes_default
15581 rm -f conftest.$ac_objext
15582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15583 (eval $ac_compile) 2>conftest.er1
15585 grep -v '^ *+' conftest.er1 >conftest.err
15587 cat conftest.err >&5
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); } &&
15590 { ac_try='test -z "$ac_c_werror_flag"
15591 || test ! -s conftest.err'
15592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15593 (eval $ac_try) 2>&5
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); }; } &&
15597 { ac_try='test -s conftest.$ac_objext'
15598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15599 (eval $ac_try) 2>&5
15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602 (exit $ac_status); }; }; then
15603 ac_cv_type_char=yes
15605 echo "$as_me: failed program was:" >&5
15606 sed 's/^/| /' conftest.$ac_ext >&5
15610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15612 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15613 echo "${ECHO_T}$ac_cv_type_char" >&6
15615 echo "$as_me:$LINENO: checking size of char" >&5
15616 echo $ECHO_N "checking size of char... $ECHO_C" >&6
15617 if test "${ac_cv_sizeof_char+set}" = set; then
15618 echo $ECHO_N "(cached) $ECHO_C" >&6
15620 if test "$ac_cv_type_char" = yes; then
15621 # The cast to unsigned long works around a bug in the HP C Compiler
15622 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15623 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15624 # This bug is HP SR number 8606223364.
15625 if test "$cross_compiling" = yes; then
15626 # Depending upon the size, compute the lo and hi bounds.
15627 cat >conftest.$ac_ext <<_ACEOF
15630 cat confdefs.h >>conftest.$ac_ext
15631 cat >>conftest.$ac_ext <<_ACEOF
15632 /* end confdefs.h. */
15633 $ac_includes_default
15637 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15644 rm -f conftest.$ac_objext
15645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15646 (eval $ac_compile) 2>conftest.er1
15648 grep -v '^ *+' conftest.er1 >conftest.err
15650 cat conftest.err >&5
15651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 (exit $ac_status); } &&
15653 { ac_try='test -z "$ac_c_werror_flag"
15654 || test ! -s conftest.err'
15655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15656 (eval $ac_try) 2>&5
15658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659 (exit $ac_status); }; } &&
15660 { ac_try='test -s conftest.$ac_objext'
15661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15662 (eval $ac_try) 2>&5
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); }; }; then
15668 cat >conftest.$ac_ext <<_ACEOF
15671 cat confdefs.h >>conftest.$ac_ext
15672 cat >>conftest.$ac_ext <<_ACEOF
15673 /* end confdefs.h. */
15674 $ac_includes_default
15678 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15685 rm -f conftest.$ac_objext
15686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15687 (eval $ac_compile) 2>conftest.er1
15689 grep -v '^ *+' conftest.er1 >conftest.err
15691 cat conftest.err >&5
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); } &&
15694 { ac_try='test -z "$ac_c_werror_flag"
15695 || test ! -s conftest.err'
15696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15697 (eval $ac_try) 2>&5
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); }; } &&
15701 { ac_try='test -s conftest.$ac_objext'
15702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15703 (eval $ac_try) 2>&5
15705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706 (exit $ac_status); }; }; then
15707 ac_hi=$ac_mid; break
15709 echo "$as_me: failed program was:" >&5
15710 sed 's/^/| /' conftest.$ac_ext >&5
15712 ac_lo=`expr $ac_mid + 1`
15713 if test $ac_lo -le $ac_mid; then
15717 ac_mid=`expr 2 '*' $ac_mid + 1`
15719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15722 echo "$as_me: failed program was:" >&5
15723 sed 's/^/| /' conftest.$ac_ext >&5
15725 cat >conftest.$ac_ext <<_ACEOF
15728 cat confdefs.h >>conftest.$ac_ext
15729 cat >>conftest.$ac_ext <<_ACEOF
15730 /* end confdefs.h. */
15731 $ac_includes_default
15735 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15742 rm -f conftest.$ac_objext
15743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15744 (eval $ac_compile) 2>conftest.er1
15746 grep -v '^ *+' conftest.er1 >conftest.err
15748 cat conftest.err >&5
15749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 (exit $ac_status); } &&
15751 { ac_try='test -z "$ac_c_werror_flag"
15752 || test ! -s conftest.err'
15753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15754 (eval $ac_try) 2>&5
15756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); }; } &&
15758 { ac_try='test -s conftest.$ac_objext'
15759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15760 (eval $ac_try) 2>&5
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); }; }; then
15766 cat >conftest.$ac_ext <<_ACEOF
15769 cat confdefs.h >>conftest.$ac_ext
15770 cat >>conftest.$ac_ext <<_ACEOF
15771 /* end confdefs.h. */
15772 $ac_includes_default
15776 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15783 rm -f conftest.$ac_objext
15784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15785 (eval $ac_compile) 2>conftest.er1
15787 grep -v '^ *+' conftest.er1 >conftest.err
15789 cat conftest.err >&5
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); } &&
15792 { ac_try='test -z "$ac_c_werror_flag"
15793 || test ! -s conftest.err'
15794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15795 (eval $ac_try) 2>&5
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); }; } &&
15799 { ac_try='test -s conftest.$ac_objext'
15800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15801 (eval $ac_try) 2>&5
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); }; }; then
15805 ac_lo=$ac_mid; break
15807 echo "$as_me: failed program was:" >&5
15808 sed 's/^/| /' conftest.$ac_ext >&5
15810 ac_hi=`expr '(' $ac_mid ')' - 1`
15811 if test $ac_mid -le $ac_hi; then
15815 ac_mid=`expr 2 '*' $ac_mid`
15817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15820 echo "$as_me: failed program was:" >&5
15821 sed 's/^/| /' conftest.$ac_ext >&5
15825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15828 # Binary search between lo and hi bounds.
15829 while test "x$ac_lo" != "x$ac_hi"; do
15830 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15831 cat >conftest.$ac_ext <<_ACEOF
15834 cat confdefs.h >>conftest.$ac_ext
15835 cat >>conftest.$ac_ext <<_ACEOF
15836 /* end confdefs.h. */
15837 $ac_includes_default
15841 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15848 rm -f conftest.$ac_objext
15849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15850 (eval $ac_compile) 2>conftest.er1
15852 grep -v '^ *+' conftest.er1 >conftest.err
15854 cat conftest.err >&5
15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); } &&
15857 { ac_try='test -z "$ac_c_werror_flag"
15858 || test ! -s conftest.err'
15859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15860 (eval $ac_try) 2>&5
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); }; } &&
15864 { ac_try='test -s conftest.$ac_objext'
15865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15866 (eval $ac_try) 2>&5
15868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 (exit $ac_status); }; }; then
15872 echo "$as_me: failed program was:" >&5
15873 sed 's/^/| /' conftest.$ac_ext >&5
15875 ac_lo=`expr '(' $ac_mid ')' + 1`
15877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15880 ?*) ac_cv_sizeof_char=$ac_lo;;
15881 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15882 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15883 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15884 See \`config.log' for more details." >&5
15885 echo "$as_me: error: cannot compute sizeof (char), 77
15886 See \`config.log' for more details." >&2;}
15887 { (exit 1); exit 1; }; }; } ;;
15890 if test "$cross_compiling" = yes; then
15891 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15892 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15893 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15894 See \`config.log' for more details." >&5
15895 echo "$as_me: error: cannot run test program while cross compiling
15896 See \`config.log' for more details." >&2;}
15897 { (exit 1); exit 1; }; }; }
15899 cat >conftest.$ac_ext <<_ACEOF
15902 cat confdefs.h >>conftest.$ac_ext
15903 cat >>conftest.$ac_ext <<_ACEOF
15904 /* end confdefs.h. */
15905 $ac_includes_default
15906 long longval () { return (long) (sizeof (char)); }
15907 unsigned long ulongval () { return (long) (sizeof (char)); }
15909 #include <stdlib.h>
15914 FILE *f = fopen ("conftest.val", "w");
15917 if (((long) (sizeof (char))) < 0)
15919 long i = longval ();
15920 if (i != ((long) (sizeof (char))))
15922 fprintf (f, "%ld\n", i);
15926 unsigned long i = ulongval ();
15927 if (i != ((long) (sizeof (char))))
15929 fprintf (f, "%lu\n", i);
15931 exit (ferror (f) || fclose (f) != 0);
15937 rm -f conftest$ac_exeext
15938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15939 (eval $ac_link) 2>&5
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15944 (eval $ac_try) 2>&5
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); }; }; then
15948 ac_cv_sizeof_char=`cat conftest.val`
15950 echo "$as_me: program exited with status $ac_status" >&5
15951 echo "$as_me: failed program was:" >&5
15952 sed 's/^/| /' conftest.$ac_ext >&5
15954 ( exit $ac_status )
15955 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15956 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15957 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15958 See \`config.log' for more details." >&5
15959 echo "$as_me: error: cannot compute sizeof (char), 77
15960 See \`config.log' for more details." >&2;}
15961 { (exit 1); exit 1; }; }; }
15963 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15968 ac_cv_sizeof_char=0
15971 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15972 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15973 cat >>confdefs.h <<_ACEOF
15974 #define SIZEOF_CHAR $ac_cv_sizeof_char
15979 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
15980 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
15981 case "$ac_cv_sizeof_char" in
15982 1) acx_cv_type_int8_t=char ;;
15983 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
15984 echo "$as_me: error: no 8-bit type" >&2;}
15985 { (exit please report a bug); exit please report a bug; }; }
15987 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
15988 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
15990 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
15991 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
15992 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15993 2:*) acx_cv_type_int16_t=int ;;
15994 *:2) acx_cv_type_int16_t=short ;;
15995 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
15996 echo "$as_me: error: no 16-bit type" >&2;}
15997 { (exit please report a bug); exit please report a bug; }; }
15999 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
16000 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
16002 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
16003 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
16004 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16005 4:*) acx_cv_type_int32_t=int ;;
16006 *:4) acx_cv_type_int32_t=long ;;
16007 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
16008 echo "$as_me: error: no 32-bit type" >&2;}
16009 { (exit please report a bug); exit please report a bug; }; }
16011 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
16012 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
16015 # These tests are here to make the output prettier
16017 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16018 case "$ac_cv_sizeof_long" in
16019 8) acx_cv_type_int64_t=long ;;
16021 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
16022 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
16023 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16024 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
16027 # Now we can use the above types
16029 if test "$ac_cv_type_uintptr_t" != yes; then
16030 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
16031 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
16032 case $ac_cv_sizeof_void_p in
16033 2) acx_cv_type_intptr_t=int16_t ;;
16034 4) acx_cv_type_intptr_t=int32_t ;;
16035 8) acx_cv_type_intptr_t=int64_t ;;
16036 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
16037 echo "$as_me: error: no equivalent for intptr_t" >&2;}
16038 { (exit please report a bug); exit please report a bug; }; }
16040 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
16041 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
16044 # ----------------- done all checks, emit header -------------
16045 ac_config_commands="$ac_config_commands bfd_stdint.h"
16049 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
16050 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
16051 if test "${ac_cv_header_time+set}" = set; then
16052 echo $ECHO_N "(cached) $ECHO_C" >&6
16054 cat >conftest.$ac_ext <<_ACEOF
16057 cat confdefs.h >>conftest.$ac_ext
16058 cat >>conftest.$ac_ext <<_ACEOF
16059 /* end confdefs.h. */
16060 #include <sys/types.h>
16061 #include <sys/time.h>
16067 if ((struct tm *) 0)
16073 rm -f conftest.$ac_objext
16074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16075 (eval $ac_compile) 2>conftest.er1
16077 grep -v '^ *+' conftest.er1 >conftest.err
16079 cat conftest.err >&5
16080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081 (exit $ac_status); } &&
16082 { ac_try='test -z "$ac_c_werror_flag"
16083 || test ! -s conftest.err'
16084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16085 (eval $ac_try) 2>&5
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); }; } &&
16089 { ac_try='test -s conftest.$ac_objext'
16090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16091 (eval $ac_try) 2>&5
16093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094 (exit $ac_status); }; }; then
16095 ac_cv_header_time=yes
16097 echo "$as_me: failed program was:" >&5
16098 sed 's/^/| /' conftest.$ac_ext >&5
16100 ac_cv_header_time=no
16102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16104 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
16105 echo "${ECHO_T}$ac_cv_header_time" >&6
16106 if test $ac_cv_header_time = yes; then
16108 cat >>confdefs.h <<\_ACEOF
16109 #define TIME_WITH_SYS_TIME 1
16119 ac_header_dirent=no
16120 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16121 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16122 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
16123 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
16124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16125 echo $ECHO_N "(cached) $ECHO_C" >&6
16127 cat >conftest.$ac_ext <<_ACEOF
16130 cat confdefs.h >>conftest.$ac_ext
16131 cat >>conftest.$ac_ext <<_ACEOF
16132 /* end confdefs.h. */
16133 #include <sys/types.h>
16145 rm -f conftest.$ac_objext
16146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16147 (eval $ac_compile) 2>conftest.er1
16149 grep -v '^ *+' conftest.er1 >conftest.err
16151 cat conftest.err >&5
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); } &&
16154 { ac_try='test -z "$ac_c_werror_flag"
16155 || test ! -s conftest.err'
16156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16157 (eval $ac_try) 2>&5
16159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); }; } &&
16161 { ac_try='test -s conftest.$ac_objext'
16162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16163 (eval $ac_try) 2>&5
16165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166 (exit $ac_status); }; }; then
16167 eval "$as_ac_Header=yes"
16169 echo "$as_me: failed program was:" >&5
16170 sed 's/^/| /' conftest.$ac_ext >&5
16172 eval "$as_ac_Header=no"
16174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16177 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16178 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16179 cat >>confdefs.h <<_ACEOF
16180 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16183 ac_header_dirent=$ac_hdr; break
16187 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16188 if test $ac_header_dirent = dirent.h; then
16189 echo "$as_me:$LINENO: checking for library containing opendir" >&5
16190 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
16191 if test "${ac_cv_search_opendir+set}" = set; then
16192 echo $ECHO_N "(cached) $ECHO_C" >&6
16194 ac_func_search_save_LIBS=$LIBS
16195 ac_cv_search_opendir=no
16196 cat >conftest.$ac_ext <<_ACEOF
16199 cat confdefs.h >>conftest.$ac_ext
16200 cat >>conftest.$ac_ext <<_ACEOF
16201 /* end confdefs.h. */
16203 /* Override any gcc2 internal prototype to avoid an error. */
16207 /* We use char because int might match the return type of a gcc2
16208 builtin and then its argument prototype would still apply. */
16218 rm -f conftest.$ac_objext conftest$ac_exeext
16219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16220 (eval $ac_link) 2>conftest.er1
16222 grep -v '^ *+' conftest.er1 >conftest.err
16224 cat conftest.err >&5
16225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226 (exit $ac_status); } &&
16227 { ac_try='test -z "$ac_c_werror_flag"
16228 || test ! -s conftest.err'
16229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16230 (eval $ac_try) 2>&5
16232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233 (exit $ac_status); }; } &&
16234 { ac_try='test -s conftest$ac_exeext'
16235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16236 (eval $ac_try) 2>&5
16238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239 (exit $ac_status); }; }; then
16240 ac_cv_search_opendir="none required"
16242 echo "$as_me: failed program was:" >&5
16243 sed 's/^/| /' conftest.$ac_ext >&5
16246 rm -f conftest.err conftest.$ac_objext \
16247 conftest$ac_exeext conftest.$ac_ext
16248 if test "$ac_cv_search_opendir" = no; then
16249 for ac_lib in dir; do
16250 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16251 cat >conftest.$ac_ext <<_ACEOF
16254 cat confdefs.h >>conftest.$ac_ext
16255 cat >>conftest.$ac_ext <<_ACEOF
16256 /* end confdefs.h. */
16258 /* Override any gcc2 internal prototype to avoid an error. */
16262 /* We use char because int might match the return type of a gcc2
16263 builtin and then its argument prototype would still apply. */
16273 rm -f conftest.$ac_objext conftest$ac_exeext
16274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16275 (eval $ac_link) 2>conftest.er1
16277 grep -v '^ *+' conftest.er1 >conftest.err
16279 cat conftest.err >&5
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); } &&
16282 { ac_try='test -z "$ac_c_werror_flag"
16283 || test ! -s conftest.err'
16284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16285 (eval $ac_try) 2>&5
16287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288 (exit $ac_status); }; } &&
16289 { ac_try='test -s conftest$ac_exeext'
16290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16291 (eval $ac_try) 2>&5
16293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16294 (exit $ac_status); }; }; then
16295 ac_cv_search_opendir="-l$ac_lib"
16298 echo "$as_me: failed program was:" >&5
16299 sed 's/^/| /' conftest.$ac_ext >&5
16302 rm -f conftest.err conftest.$ac_objext \
16303 conftest$ac_exeext conftest.$ac_ext
16306 LIBS=$ac_func_search_save_LIBS
16308 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16309 echo "${ECHO_T}$ac_cv_search_opendir" >&6
16310 if test "$ac_cv_search_opendir" != no; then
16311 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
16316 echo "$as_me:$LINENO: checking for library containing opendir" >&5
16317 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
16318 if test "${ac_cv_search_opendir+set}" = set; then
16319 echo $ECHO_N "(cached) $ECHO_C" >&6
16321 ac_func_search_save_LIBS=$LIBS
16322 ac_cv_search_opendir=no
16323 cat >conftest.$ac_ext <<_ACEOF
16326 cat confdefs.h >>conftest.$ac_ext
16327 cat >>conftest.$ac_ext <<_ACEOF
16328 /* end confdefs.h. */
16330 /* Override any gcc2 internal prototype to avoid an error. */
16334 /* We use char because int might match the return type of a gcc2
16335 builtin and then its argument prototype would still apply. */
16345 rm -f conftest.$ac_objext conftest$ac_exeext
16346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16347 (eval $ac_link) 2>conftest.er1
16349 grep -v '^ *+' conftest.er1 >conftest.err
16351 cat conftest.err >&5
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); } &&
16354 { ac_try='test -z "$ac_c_werror_flag"
16355 || test ! -s conftest.err'
16356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16357 (eval $ac_try) 2>&5
16359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360 (exit $ac_status); }; } &&
16361 { ac_try='test -s conftest$ac_exeext'
16362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16363 (eval $ac_try) 2>&5
16365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366 (exit $ac_status); }; }; then
16367 ac_cv_search_opendir="none required"
16369 echo "$as_me: failed program was:" >&5
16370 sed 's/^/| /' conftest.$ac_ext >&5
16373 rm -f conftest.err conftest.$ac_objext \
16374 conftest$ac_exeext conftest.$ac_ext
16375 if test "$ac_cv_search_opendir" = no; then
16376 for ac_lib in x; do
16377 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16378 cat >conftest.$ac_ext <<_ACEOF
16381 cat confdefs.h >>conftest.$ac_ext
16382 cat >>conftest.$ac_ext <<_ACEOF
16383 /* end confdefs.h. */
16385 /* Override any gcc2 internal prototype to avoid an error. */
16389 /* We use char because int might match the return type of a gcc2
16390 builtin and then its argument prototype would still apply. */
16400 rm -f conftest.$ac_objext conftest$ac_exeext
16401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16402 (eval $ac_link) 2>conftest.er1
16404 grep -v '^ *+' conftest.er1 >conftest.err
16406 cat conftest.err >&5
16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408 (exit $ac_status); } &&
16409 { ac_try='test -z "$ac_c_werror_flag"
16410 || test ! -s conftest.err'
16411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16412 (eval $ac_try) 2>&5
16414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415 (exit $ac_status); }; } &&
16416 { ac_try='test -s conftest$ac_exeext'
16417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16418 (eval $ac_try) 2>&5
16420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); }; }; then
16422 ac_cv_search_opendir="-l$ac_lib"
16425 echo "$as_me: failed program was:" >&5
16426 sed 's/^/| /' conftest.$ac_ext >&5
16429 rm -f conftest.err conftest.$ac_objext \
16430 conftest$ac_exeext conftest.$ac_ext
16433 LIBS=$ac_func_search_save_LIBS
16435 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16436 echo "${ECHO_T}$ac_cv_search_opendir" >&6
16437 if test "$ac_cv_search_opendir" != no; then
16438 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
16444 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
16445 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
16446 if test "${gcc_cv_header_string+set}" = set; then
16447 echo $ECHO_N "(cached) $ECHO_C" >&6
16449 cat >conftest.$ac_ext <<_ACEOF
16452 cat confdefs.h >>conftest.$ac_ext
16453 cat >>conftest.$ac_ext <<_ACEOF
16454 /* end confdefs.h. */
16455 #include <string.h>
16456 #include <strings.h>
16465 rm -f conftest.$ac_objext
16466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16467 (eval $ac_compile) 2>conftest.er1
16469 grep -v '^ *+' conftest.er1 >conftest.err
16471 cat conftest.err >&5
16472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473 (exit $ac_status); } &&
16474 { ac_try='test -z "$ac_c_werror_flag"
16475 || test ! -s conftest.err'
16476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16477 (eval $ac_try) 2>&5
16479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480 (exit $ac_status); }; } &&
16481 { ac_try='test -s conftest.$ac_objext'
16482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16483 (eval $ac_try) 2>&5
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); }; }; then
16487 gcc_cv_header_string=yes
16489 echo "$as_me: failed program was:" >&5
16490 sed 's/^/| /' conftest.$ac_ext >&5
16492 gcc_cv_header_string=no
16494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16496 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
16497 echo "${ECHO_T}$gcc_cv_header_string" >&6
16498 if test $gcc_cv_header_string = yes; then
16500 cat >>confdefs.h <<\_ACEOF
16501 #define STRING_WITH_STRINGS 1
16513 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
16515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16516 echo "$as_me:$LINENO: checking for $ac_func" >&5
16517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16518 if eval "test \"\${$as_ac_var+set}\" = set"; then
16519 echo $ECHO_N "(cached) $ECHO_C" >&6
16521 cat >conftest.$ac_ext <<_ACEOF
16524 cat confdefs.h >>conftest.$ac_ext
16525 cat >>conftest.$ac_ext <<_ACEOF
16526 /* end confdefs.h. */
16527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16529 #define $ac_func innocuous_$ac_func
16531 /* System header to define __stub macros and hopefully few prototypes,
16532 which can conflict with char $ac_func (); below.
16533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16534 <limits.h> exists even on freestanding compilers. */
16537 # include <limits.h>
16539 # include <assert.h>
16544 /* Override any gcc2 internal prototype to avoid an error. */
16549 /* We use char because int might match the return type of a gcc2
16550 builtin and then its argument prototype would still apply. */
16552 /* The GNU C library defines this for functions which it implements
16553 to always fail with ENOSYS. Some functions are actually named
16554 something starting with __ and the normal name is an alias. */
16555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16558 char (*f) () = $ac_func;
16567 return f != $ac_func;
16572 rm -f conftest.$ac_objext conftest$ac_exeext
16573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16574 (eval $ac_link) 2>conftest.er1
16576 grep -v '^ *+' conftest.er1 >conftest.err
16578 cat conftest.err >&5
16579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580 (exit $ac_status); } &&
16581 { ac_try='test -z "$ac_c_werror_flag"
16582 || test ! -s conftest.err'
16583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16584 (eval $ac_try) 2>&5
16586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587 (exit $ac_status); }; } &&
16588 { ac_try='test -s conftest$ac_exeext'
16589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16590 (eval $ac_try) 2>&5
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); }; }; then
16594 eval "$as_ac_var=yes"
16596 echo "$as_me: failed program was:" >&5
16597 sed 's/^/| /' conftest.$ac_ext >&5
16599 eval "$as_ac_var=no"
16601 rm -f conftest.err conftest.$ac_objext \
16602 conftest$ac_exeext conftest.$ac_ext
16604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16605 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16606 if test `eval echo '${'$as_ac_var'}'` = yes; then
16607 cat >>confdefs.h <<_ACEOF
16608 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16615 for ac_func in strtoull
16617 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16618 echo "$as_me:$LINENO: checking for $ac_func" >&5
16619 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16620 if eval "test \"\${$as_ac_var+set}\" = set"; then
16621 echo $ECHO_N "(cached) $ECHO_C" >&6
16623 cat >conftest.$ac_ext <<_ACEOF
16626 cat confdefs.h >>conftest.$ac_ext
16627 cat >>conftest.$ac_ext <<_ACEOF
16628 /* end confdefs.h. */
16629 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16631 #define $ac_func innocuous_$ac_func
16633 /* System header to define __stub macros and hopefully few prototypes,
16634 which can conflict with char $ac_func (); below.
16635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16636 <limits.h> exists even on freestanding compilers. */
16639 # include <limits.h>
16641 # include <assert.h>
16646 /* Override any gcc2 internal prototype to avoid an error. */
16651 /* We use char because int might match the return type of a gcc2
16652 builtin and then its argument prototype would still apply. */
16654 /* The GNU C library defines this for functions which it implements
16655 to always fail with ENOSYS. Some functions are actually named
16656 something starting with __ and the normal name is an alias. */
16657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16660 char (*f) () = $ac_func;
16669 return f != $ac_func;
16674 rm -f conftest.$ac_objext conftest$ac_exeext
16675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16676 (eval $ac_link) 2>conftest.er1
16678 grep -v '^ *+' conftest.er1 >conftest.err
16680 cat conftest.err >&5
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); } &&
16683 { ac_try='test -z "$ac_c_werror_flag"
16684 || test ! -s conftest.err'
16685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16686 (eval $ac_try) 2>&5
16688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 (exit $ac_status); }; } &&
16690 { ac_try='test -s conftest$ac_exeext'
16691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16692 (eval $ac_try) 2>&5
16694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695 (exit $ac_status); }; }; then
16696 eval "$as_ac_var=yes"
16698 echo "$as_me: failed program was:" >&5
16699 sed 's/^/| /' conftest.$ac_ext >&5
16701 eval "$as_ac_var=no"
16703 rm -f conftest.err conftest.$ac_objext \
16704 conftest$ac_exeext conftest.$ac_ext
16706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16707 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16708 if test `eval echo '${'$as_ac_var'}'` = yes; then
16709 cat >>confdefs.h <<_ACEOF
16710 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16717 echo "$as_me:$LINENO: checking whether basename is declared" >&5
16718 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
16719 if test "${ac_cv_have_decl_basename+set}" = set; then
16720 echo $ECHO_N "(cached) $ECHO_C" >&6
16722 cat >conftest.$ac_ext <<_ACEOF
16725 cat confdefs.h >>conftest.$ac_ext
16726 cat >>conftest.$ac_ext <<_ACEOF
16727 /* end confdefs.h. */
16728 $ac_includes_default
16733 char *p = (char *) basename;
16740 rm -f conftest.$ac_objext
16741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16742 (eval $ac_compile) 2>conftest.er1
16744 grep -v '^ *+' conftest.er1 >conftest.err
16746 cat conftest.err >&5
16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); } &&
16749 { ac_try='test -z "$ac_c_werror_flag"
16750 || test ! -s conftest.err'
16751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16752 (eval $ac_try) 2>&5
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); }; } &&
16756 { ac_try='test -s conftest.$ac_objext'
16757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16758 (eval $ac_try) 2>&5
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); }; }; then
16762 ac_cv_have_decl_basename=yes
16764 echo "$as_me: failed program was:" >&5
16765 sed 's/^/| /' conftest.$ac_ext >&5
16767 ac_cv_have_decl_basename=no
16769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16771 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
16772 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
16773 if test $ac_cv_have_decl_basename = yes; then
16775 cat >>confdefs.h <<_ACEOF
16776 #define HAVE_DECL_BASENAME 1
16781 cat >>confdefs.h <<_ACEOF
16782 #define HAVE_DECL_BASENAME 0
16789 echo "$as_me:$LINENO: checking whether ftello is declared" >&5
16790 echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
16791 if test "${ac_cv_have_decl_ftello+set}" = set; then
16792 echo $ECHO_N "(cached) $ECHO_C" >&6
16794 cat >conftest.$ac_ext <<_ACEOF
16797 cat confdefs.h >>conftest.$ac_ext
16798 cat >>conftest.$ac_ext <<_ACEOF
16799 /* end confdefs.h. */
16800 $ac_includes_default
16805 char *p = (char *) ftello;
16812 rm -f conftest.$ac_objext
16813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16814 (eval $ac_compile) 2>conftest.er1
16816 grep -v '^ *+' conftest.er1 >conftest.err
16818 cat conftest.err >&5
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); } &&
16821 { ac_try='test -z "$ac_c_werror_flag"
16822 || test ! -s conftest.err'
16823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16824 (eval $ac_try) 2>&5
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); }; } &&
16828 { ac_try='test -s conftest.$ac_objext'
16829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16830 (eval $ac_try) 2>&5
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); }; }; then
16834 ac_cv_have_decl_ftello=yes
16836 echo "$as_me: failed program was:" >&5
16837 sed 's/^/| /' conftest.$ac_ext >&5
16839 ac_cv_have_decl_ftello=no
16841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16843 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
16844 echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
16845 if test $ac_cv_have_decl_ftello = yes; then
16847 cat >>confdefs.h <<_ACEOF
16848 #define HAVE_DECL_FTELLO 1
16853 cat >>confdefs.h <<_ACEOF
16854 #define HAVE_DECL_FTELLO 0
16861 echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
16862 echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
16863 if test "${ac_cv_have_decl_ftello64+set}" = set; then
16864 echo $ECHO_N "(cached) $ECHO_C" >&6
16866 cat >conftest.$ac_ext <<_ACEOF
16869 cat confdefs.h >>conftest.$ac_ext
16870 cat >>conftest.$ac_ext <<_ACEOF
16871 /* end confdefs.h. */
16872 $ac_includes_default
16877 char *p = (char *) ftello64;
16884 rm -f conftest.$ac_objext
16885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16886 (eval $ac_compile) 2>conftest.er1
16888 grep -v '^ *+' conftest.er1 >conftest.err
16890 cat conftest.err >&5
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); } &&
16893 { ac_try='test -z "$ac_c_werror_flag"
16894 || test ! -s conftest.err'
16895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16896 (eval $ac_try) 2>&5
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); }; } &&
16900 { ac_try='test -s conftest.$ac_objext'
16901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16902 (eval $ac_try) 2>&5
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); }; }; then
16906 ac_cv_have_decl_ftello64=yes
16908 echo "$as_me: failed program was:" >&5
16909 sed 's/^/| /' conftest.$ac_ext >&5
16911 ac_cv_have_decl_ftello64=no
16913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16915 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
16916 echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
16917 if test $ac_cv_have_decl_ftello64 = yes; then
16919 cat >>confdefs.h <<_ACEOF
16920 #define HAVE_DECL_FTELLO64 1
16925 cat >>confdefs.h <<_ACEOF
16926 #define HAVE_DECL_FTELLO64 0
16933 echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
16934 echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
16935 if test "${ac_cv_have_decl_fseeko+set}" = set; then
16936 echo $ECHO_N "(cached) $ECHO_C" >&6
16938 cat >conftest.$ac_ext <<_ACEOF
16941 cat confdefs.h >>conftest.$ac_ext
16942 cat >>conftest.$ac_ext <<_ACEOF
16943 /* end confdefs.h. */
16944 $ac_includes_default
16949 char *p = (char *) fseeko;
16956 rm -f conftest.$ac_objext
16957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16958 (eval $ac_compile) 2>conftest.er1
16960 grep -v '^ *+' conftest.er1 >conftest.err
16962 cat conftest.err >&5
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); } &&
16965 { ac_try='test -z "$ac_c_werror_flag"
16966 || test ! -s conftest.err'
16967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16968 (eval $ac_try) 2>&5
16970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971 (exit $ac_status); }; } &&
16972 { ac_try='test -s conftest.$ac_objext'
16973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16974 (eval $ac_try) 2>&5
16976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977 (exit $ac_status); }; }; then
16978 ac_cv_have_decl_fseeko=yes
16980 echo "$as_me: failed program was:" >&5
16981 sed 's/^/| /' conftest.$ac_ext >&5
16983 ac_cv_have_decl_fseeko=no
16985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16987 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
16988 echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
16989 if test $ac_cv_have_decl_fseeko = yes; then
16991 cat >>confdefs.h <<_ACEOF
16992 #define HAVE_DECL_FSEEKO 1
16997 cat >>confdefs.h <<_ACEOF
16998 #define HAVE_DECL_FSEEKO 0
17005 echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
17006 echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
17007 if test "${ac_cv_have_decl_fseeko64+set}" = set; then
17008 echo $ECHO_N "(cached) $ECHO_C" >&6
17010 cat >conftest.$ac_ext <<_ACEOF
17013 cat confdefs.h >>conftest.$ac_ext
17014 cat >>conftest.$ac_ext <<_ACEOF
17015 /* end confdefs.h. */
17016 $ac_includes_default
17021 char *p = (char *) fseeko64;
17028 rm -f conftest.$ac_objext
17029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17030 (eval $ac_compile) 2>conftest.er1
17032 grep -v '^ *+' conftest.er1 >conftest.err
17034 cat conftest.err >&5
17035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); } &&
17037 { ac_try='test -z "$ac_c_werror_flag"
17038 || test ! -s conftest.err'
17039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17040 (eval $ac_try) 2>&5
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); }; } &&
17044 { ac_try='test -s conftest.$ac_objext'
17045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17046 (eval $ac_try) 2>&5
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); }; }; then
17050 ac_cv_have_decl_fseeko64=yes
17052 echo "$as_me: failed program was:" >&5
17053 sed 's/^/| /' conftest.$ac_ext >&5
17055 ac_cv_have_decl_fseeko64=no
17057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17059 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
17060 echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
17061 if test $ac_cv_have_decl_fseeko64 = yes; then
17063 cat >>confdefs.h <<_ACEOF
17064 #define HAVE_DECL_FSEEKO64 1
17069 cat >>confdefs.h <<_ACEOF
17070 #define HAVE_DECL_FSEEKO64 0
17080 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
17082 cat >>confdefs.h <<\_ACEOF
17083 #define USE_BINARY_FOPEN 1
17088 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
17089 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
17090 if test "${ac_cv_have_decl_ffs+set}" = set; then
17091 echo $ECHO_N "(cached) $ECHO_C" >&6
17093 cat >conftest.$ac_ext <<_ACEOF
17096 cat confdefs.h >>conftest.$ac_ext
17097 cat >>conftest.$ac_ext <<_ACEOF
17098 /* end confdefs.h. */
17099 $ac_includes_default
17104 char *p = (char *) ffs;
17111 rm -f conftest.$ac_objext
17112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17113 (eval $ac_compile) 2>conftest.er1
17115 grep -v '^ *+' conftest.er1 >conftest.err
17117 cat conftest.err >&5
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); } &&
17120 { ac_try='test -z "$ac_c_werror_flag"
17121 || test ! -s conftest.err'
17122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17123 (eval $ac_try) 2>&5
17125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); }; } &&
17127 { ac_try='test -s conftest.$ac_objext'
17128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17129 (eval $ac_try) 2>&5
17131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132 (exit $ac_status); }; }; then
17133 ac_cv_have_decl_ffs=yes
17135 echo "$as_me: failed program was:" >&5
17136 sed 's/^/| /' conftest.$ac_ext >&5
17138 ac_cv_have_decl_ffs=no
17140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17142 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
17143 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
17144 if test $ac_cv_have_decl_ffs = yes; then
17146 cat >>confdefs.h <<_ACEOF
17147 #define HAVE_DECL_FFS 1
17152 cat >>confdefs.h <<_ACEOF
17153 #define HAVE_DECL_FFS 0
17160 echo "$as_me:$LINENO: checking whether free is declared" >&5
17161 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
17162 if test "${ac_cv_have_decl_free+set}" = set; then
17163 echo $ECHO_N "(cached) $ECHO_C" >&6
17165 cat >conftest.$ac_ext <<_ACEOF
17168 cat confdefs.h >>conftest.$ac_ext
17169 cat >>conftest.$ac_ext <<_ACEOF
17170 /* end confdefs.h. */
17171 $ac_includes_default
17176 char *p = (char *) free;
17183 rm -f conftest.$ac_objext
17184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17185 (eval $ac_compile) 2>conftest.er1
17187 grep -v '^ *+' conftest.er1 >conftest.err
17189 cat conftest.err >&5
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); } &&
17192 { ac_try='test -z "$ac_c_werror_flag"
17193 || test ! -s conftest.err'
17194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17195 (eval $ac_try) 2>&5
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); }; } &&
17199 { ac_try='test -s conftest.$ac_objext'
17200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17201 (eval $ac_try) 2>&5
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); }; }; then
17205 ac_cv_have_decl_free=yes
17207 echo "$as_me: failed program was:" >&5
17208 sed 's/^/| /' conftest.$ac_ext >&5
17210 ac_cv_have_decl_free=no
17212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17214 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
17215 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
17216 if test $ac_cv_have_decl_free = yes; then
17218 cat >>confdefs.h <<_ACEOF
17219 #define HAVE_DECL_FREE 1
17224 cat >>confdefs.h <<_ACEOF
17225 #define HAVE_DECL_FREE 0
17232 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
17233 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
17234 if test "${ac_cv_have_decl_getenv+set}" = set; then
17235 echo $ECHO_N "(cached) $ECHO_C" >&6
17237 cat >conftest.$ac_ext <<_ACEOF
17240 cat confdefs.h >>conftest.$ac_ext
17241 cat >>conftest.$ac_ext <<_ACEOF
17242 /* end confdefs.h. */
17243 $ac_includes_default
17248 char *p = (char *) getenv;
17255 rm -f conftest.$ac_objext
17256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17257 (eval $ac_compile) 2>conftest.er1
17259 grep -v '^ *+' conftest.er1 >conftest.err
17261 cat conftest.err >&5
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); } &&
17264 { ac_try='test -z "$ac_c_werror_flag"
17265 || test ! -s conftest.err'
17266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17267 (eval $ac_try) 2>&5
17269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270 (exit $ac_status); }; } &&
17271 { ac_try='test -s conftest.$ac_objext'
17272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17273 (eval $ac_try) 2>&5
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); }; }; then
17277 ac_cv_have_decl_getenv=yes
17279 echo "$as_me: failed program was:" >&5
17280 sed 's/^/| /' conftest.$ac_ext >&5
17282 ac_cv_have_decl_getenv=no
17284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17286 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
17287 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
17288 if test $ac_cv_have_decl_getenv = yes; then
17290 cat >>confdefs.h <<_ACEOF
17291 #define HAVE_DECL_GETENV 1
17296 cat >>confdefs.h <<_ACEOF
17297 #define HAVE_DECL_GETENV 0
17304 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
17305 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
17306 if test "${ac_cv_have_decl_malloc+set}" = set; then
17307 echo $ECHO_N "(cached) $ECHO_C" >&6
17309 cat >conftest.$ac_ext <<_ACEOF
17312 cat confdefs.h >>conftest.$ac_ext
17313 cat >>conftest.$ac_ext <<_ACEOF
17314 /* end confdefs.h. */
17315 $ac_includes_default
17320 char *p = (char *) malloc;
17327 rm -f conftest.$ac_objext
17328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17329 (eval $ac_compile) 2>conftest.er1
17331 grep -v '^ *+' conftest.er1 >conftest.err
17333 cat conftest.err >&5
17334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); } &&
17336 { ac_try='test -z "$ac_c_werror_flag"
17337 || test ! -s conftest.err'
17338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17339 (eval $ac_try) 2>&5
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); }; } &&
17343 { ac_try='test -s conftest.$ac_objext'
17344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17345 (eval $ac_try) 2>&5
17347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348 (exit $ac_status); }; }; then
17349 ac_cv_have_decl_malloc=yes
17351 echo "$as_me: failed program was:" >&5
17352 sed 's/^/| /' conftest.$ac_ext >&5
17354 ac_cv_have_decl_malloc=no
17356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17358 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
17359 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
17360 if test $ac_cv_have_decl_malloc = yes; then
17362 cat >>confdefs.h <<_ACEOF
17363 #define HAVE_DECL_MALLOC 1
17368 cat >>confdefs.h <<_ACEOF
17369 #define HAVE_DECL_MALLOC 0
17376 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
17377 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
17378 if test "${ac_cv_have_decl_realloc+set}" = set; then
17379 echo $ECHO_N "(cached) $ECHO_C" >&6
17381 cat >conftest.$ac_ext <<_ACEOF
17384 cat confdefs.h >>conftest.$ac_ext
17385 cat >>conftest.$ac_ext <<_ACEOF
17386 /* end confdefs.h. */
17387 $ac_includes_default
17392 char *p = (char *) realloc;
17399 rm -f conftest.$ac_objext
17400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17401 (eval $ac_compile) 2>conftest.er1
17403 grep -v '^ *+' conftest.er1 >conftest.err
17405 cat conftest.err >&5
17406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407 (exit $ac_status); } &&
17408 { ac_try='test -z "$ac_c_werror_flag"
17409 || test ! -s conftest.err'
17410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17411 (eval $ac_try) 2>&5
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); }; } &&
17415 { ac_try='test -s conftest.$ac_objext'
17416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17417 (eval $ac_try) 2>&5
17419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420 (exit $ac_status); }; }; then
17421 ac_cv_have_decl_realloc=yes
17423 echo "$as_me: failed program was:" >&5
17424 sed 's/^/| /' conftest.$ac_ext >&5
17426 ac_cv_have_decl_realloc=no
17428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17430 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
17431 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
17432 if test $ac_cv_have_decl_realloc = yes; then
17434 cat >>confdefs.h <<_ACEOF
17435 #define HAVE_DECL_REALLOC 1
17440 cat >>confdefs.h <<_ACEOF
17441 #define HAVE_DECL_REALLOC 0
17448 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
17449 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
17450 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
17451 echo $ECHO_N "(cached) $ECHO_C" >&6
17453 cat >conftest.$ac_ext <<_ACEOF
17456 cat confdefs.h >>conftest.$ac_ext
17457 cat >>conftest.$ac_ext <<_ACEOF
17458 /* end confdefs.h. */
17459 $ac_includes_default
17464 char *p = (char *) stpcpy;
17471 rm -f conftest.$ac_objext
17472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17473 (eval $ac_compile) 2>conftest.er1
17475 grep -v '^ *+' conftest.er1 >conftest.err
17477 cat conftest.err >&5
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); } &&
17480 { ac_try='test -z "$ac_c_werror_flag"
17481 || test ! -s conftest.err'
17482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17483 (eval $ac_try) 2>&5
17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); }; } &&
17487 { ac_try='test -s conftest.$ac_objext'
17488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17489 (eval $ac_try) 2>&5
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); }; }; then
17493 ac_cv_have_decl_stpcpy=yes
17495 echo "$as_me: failed program was:" >&5
17496 sed 's/^/| /' conftest.$ac_ext >&5
17498 ac_cv_have_decl_stpcpy=no
17500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17502 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
17503 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
17504 if test $ac_cv_have_decl_stpcpy = yes; then
17506 cat >>confdefs.h <<_ACEOF
17507 #define HAVE_DECL_STPCPY 1
17512 cat >>confdefs.h <<_ACEOF
17513 #define HAVE_DECL_STPCPY 0
17520 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
17521 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
17522 if test "${ac_cv_have_decl_strstr+set}" = set; then
17523 echo $ECHO_N "(cached) $ECHO_C" >&6
17525 cat >conftest.$ac_ext <<_ACEOF
17528 cat confdefs.h >>conftest.$ac_ext
17529 cat >>conftest.$ac_ext <<_ACEOF
17530 /* end confdefs.h. */
17531 $ac_includes_default
17536 char *p = (char *) strstr;
17543 rm -f conftest.$ac_objext
17544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17545 (eval $ac_compile) 2>conftest.er1
17547 grep -v '^ *+' conftest.er1 >conftest.err
17549 cat conftest.err >&5
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); } &&
17552 { ac_try='test -z "$ac_c_werror_flag"
17553 || test ! -s conftest.err'
17554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17555 (eval $ac_try) 2>&5
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); }; } &&
17559 { ac_try='test -s conftest.$ac_objext'
17560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17561 (eval $ac_try) 2>&5
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); }; }; then
17565 ac_cv_have_decl_strstr=yes
17567 echo "$as_me: failed program was:" >&5
17568 sed 's/^/| /' conftest.$ac_ext >&5
17570 ac_cv_have_decl_strstr=no
17572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17574 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
17575 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
17576 if test $ac_cv_have_decl_strstr = yes; then
17578 cat >>confdefs.h <<_ACEOF
17579 #define HAVE_DECL_STRSTR 1
17584 cat >>confdefs.h <<_ACEOF
17585 #define HAVE_DECL_STRSTR 0
17592 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
17593 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
17594 if test "${ac_cv_have_decl_snprintf+set}" = set; then
17595 echo $ECHO_N "(cached) $ECHO_C" >&6
17597 cat >conftest.$ac_ext <<_ACEOF
17600 cat confdefs.h >>conftest.$ac_ext
17601 cat >>conftest.$ac_ext <<_ACEOF
17602 /* end confdefs.h. */
17603 $ac_includes_default
17608 char *p = (char *) snprintf;
17615 rm -f conftest.$ac_objext
17616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17617 (eval $ac_compile) 2>conftest.er1
17619 grep -v '^ *+' conftest.er1 >conftest.err
17621 cat conftest.err >&5
17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); } &&
17624 { ac_try='test -z "$ac_c_werror_flag"
17625 || test ! -s conftest.err'
17626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17627 (eval $ac_try) 2>&5
17629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630 (exit $ac_status); }; } &&
17631 { ac_try='test -s conftest.$ac_objext'
17632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17633 (eval $ac_try) 2>&5
17635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636 (exit $ac_status); }; }; then
17637 ac_cv_have_decl_snprintf=yes
17639 echo "$as_me: failed program was:" >&5
17640 sed 's/^/| /' conftest.$ac_ext >&5
17642 ac_cv_have_decl_snprintf=no
17644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17646 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
17647 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
17648 if test $ac_cv_have_decl_snprintf = yes; then
17650 cat >>confdefs.h <<_ACEOF
17651 #define HAVE_DECL_SNPRINTF 1
17656 cat >>confdefs.h <<_ACEOF
17657 #define HAVE_DECL_SNPRINTF 0
17664 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
17665 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
17666 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
17667 echo $ECHO_N "(cached) $ECHO_C" >&6
17669 cat >conftest.$ac_ext <<_ACEOF
17672 cat confdefs.h >>conftest.$ac_ext
17673 cat >>conftest.$ac_ext <<_ACEOF
17674 /* end confdefs.h. */
17675 $ac_includes_default
17680 char *p = (char *) vsnprintf;
17687 rm -f conftest.$ac_objext
17688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17689 (eval $ac_compile) 2>conftest.er1
17691 grep -v '^ *+' conftest.er1 >conftest.err
17693 cat conftest.err >&5
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); } &&
17696 { ac_try='test -z "$ac_c_werror_flag"
17697 || test ! -s conftest.err'
17698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17699 (eval $ac_try) 2>&5
17701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702 (exit $ac_status); }; } &&
17703 { ac_try='test -s conftest.$ac_objext'
17704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17705 (eval $ac_try) 2>&5
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); }; }; then
17709 ac_cv_have_decl_vsnprintf=yes
17711 echo "$as_me: failed program was:" >&5
17712 sed 's/^/| /' conftest.$ac_ext >&5
17714 ac_cv_have_decl_vsnprintf=no
17716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17718 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
17719 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
17720 if test $ac_cv_have_decl_vsnprintf = yes; then
17722 cat >>confdefs.h <<_ACEOF
17723 #define HAVE_DECL_VSNPRINTF 1
17728 cat >>confdefs.h <<_ACEOF
17729 #define HAVE_DECL_VSNPRINTF 0
17737 # Link in zlib if we can. This allows us to read compressed debug sections.
17738 # This is used only by compress.c.
17739 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
17740 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
17741 if test "${ac_cv_search_zlibVersion+set}" = set; then
17742 echo $ECHO_N "(cached) $ECHO_C" >&6
17744 ac_func_search_save_LIBS=$LIBS
17745 ac_cv_search_zlibVersion=no
17746 cat >conftest.$ac_ext <<_ACEOF
17749 cat confdefs.h >>conftest.$ac_ext
17750 cat >>conftest.$ac_ext <<_ACEOF
17751 /* end confdefs.h. */
17753 /* Override any gcc2 internal prototype to avoid an error. */
17757 /* We use char because int might match the return type of a gcc2
17758 builtin and then its argument prototype would still apply. */
17759 char zlibVersion ();
17768 rm -f conftest.$ac_objext conftest$ac_exeext
17769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17770 (eval $ac_link) 2>conftest.er1
17772 grep -v '^ *+' conftest.er1 >conftest.err
17774 cat conftest.err >&5
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); } &&
17777 { ac_try='test -z "$ac_c_werror_flag"
17778 || test ! -s conftest.err'
17779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17780 (eval $ac_try) 2>&5
17782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783 (exit $ac_status); }; } &&
17784 { ac_try='test -s conftest$ac_exeext'
17785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17786 (eval $ac_try) 2>&5
17788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789 (exit $ac_status); }; }; then
17790 ac_cv_search_zlibVersion="none required"
17792 echo "$as_me: failed program was:" >&5
17793 sed 's/^/| /' conftest.$ac_ext >&5
17796 rm -f conftest.err conftest.$ac_objext \
17797 conftest$ac_exeext conftest.$ac_ext
17798 if test "$ac_cv_search_zlibVersion" = no; then
17799 for ac_lib in z; do
17800 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17801 cat >conftest.$ac_ext <<_ACEOF
17804 cat confdefs.h >>conftest.$ac_ext
17805 cat >>conftest.$ac_ext <<_ACEOF
17806 /* end confdefs.h. */
17808 /* Override any gcc2 internal prototype to avoid an error. */
17812 /* We use char because int might match the return type of a gcc2
17813 builtin and then its argument prototype would still apply. */
17814 char zlibVersion ();
17823 rm -f conftest.$ac_objext conftest$ac_exeext
17824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17825 (eval $ac_link) 2>conftest.er1
17827 grep -v '^ *+' conftest.er1 >conftest.err
17829 cat conftest.err >&5
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); } &&
17832 { ac_try='test -z "$ac_c_werror_flag"
17833 || test ! -s conftest.err'
17834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17835 (eval $ac_try) 2>&5
17837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838 (exit $ac_status); }; } &&
17839 { ac_try='test -s conftest$ac_exeext'
17840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17841 (eval $ac_try) 2>&5
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); }; }; then
17845 ac_cv_search_zlibVersion="-l$ac_lib"
17848 echo "$as_me: failed program was:" >&5
17849 sed 's/^/| /' conftest.$ac_ext >&5
17852 rm -f conftest.err conftest.$ac_objext \
17853 conftest$ac_exeext conftest.$ac_ext
17856 LIBS=$ac_func_search_save_LIBS
17858 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
17859 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
17860 if test "$ac_cv_search_zlibVersion" != no; then
17861 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
17863 for ac_header in zlib.h
17865 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17866 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17867 echo "$as_me:$LINENO: checking for $ac_header" >&5
17868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17869 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17870 echo $ECHO_N "(cached) $ECHO_C" >&6
17872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17873 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17875 # Is the header compilable?
17876 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17877 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17878 cat >conftest.$ac_ext <<_ACEOF
17881 cat confdefs.h >>conftest.$ac_ext
17882 cat >>conftest.$ac_ext <<_ACEOF
17883 /* end confdefs.h. */
17884 $ac_includes_default
17885 #include <$ac_header>
17887 rm -f conftest.$ac_objext
17888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17889 (eval $ac_compile) 2>conftest.er1
17891 grep -v '^ *+' conftest.er1 >conftest.err
17893 cat conftest.err >&5
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); } &&
17896 { ac_try='test -z "$ac_c_werror_flag"
17897 || test ! -s conftest.err'
17898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17899 (eval $ac_try) 2>&5
17901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902 (exit $ac_status); }; } &&
17903 { ac_try='test -s conftest.$ac_objext'
17904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17905 (eval $ac_try) 2>&5
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); }; }; then
17909 ac_header_compiler=yes
17911 echo "$as_me: failed program was:" >&5
17912 sed 's/^/| /' conftest.$ac_ext >&5
17914 ac_header_compiler=no
17916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17917 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17918 echo "${ECHO_T}$ac_header_compiler" >&6
17920 # Is the header present?
17921 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17922 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17923 cat >conftest.$ac_ext <<_ACEOF
17926 cat confdefs.h >>conftest.$ac_ext
17927 cat >>conftest.$ac_ext <<_ACEOF
17928 /* end confdefs.h. */
17929 #include <$ac_header>
17931 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17932 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17934 grep -v '^ *+' conftest.er1 >conftest.err
17936 cat conftest.err >&5
17937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); } >/dev/null; then
17939 if test -s conftest.err; then
17940 ac_cpp_err=$ac_c_preproc_warn_flag
17941 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17948 if test -z "$ac_cpp_err"; then
17949 ac_header_preproc=yes
17951 echo "$as_me: failed program was:" >&5
17952 sed 's/^/| /' conftest.$ac_ext >&5
17954 ac_header_preproc=no
17956 rm -f conftest.err conftest.$ac_ext
17957 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17958 echo "${ECHO_T}$ac_header_preproc" >&6
17960 # So? What about this header?
17961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17963 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17964 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17966 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17967 ac_header_preproc=yes
17970 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17971 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17972 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17973 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17974 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17975 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17976 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17977 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17979 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17980 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17981 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17984 ## ------------------------------------------ ##
17985 ## Report this to the AC_PACKAGE_NAME lists. ##
17986 ## ------------------------------------------ ##
17989 sed "s/^/$as_me: WARNING: /" >&2
17992 echo "$as_me:$LINENO: checking for $ac_header" >&5
17993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17995 echo $ECHO_N "(cached) $ECHO_C" >&6
17997 eval "$as_ac_Header=\$ac_header_preproc"
17999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18000 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18003 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18004 cat >>confdefs.h <<_ACEOF
18005 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18015 # If we are configured native, pick a core file support file.
18019 if test "${target}" = "${host}"; then
18021 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
18025 COREFILE=trad-core.lo
18026 TRAD_HEADER='"hosts/alphalinux.h"'
18028 alpha*-*-netbsd* | alpha*-*-openbsd*)
18029 COREFILE=netbsd-core.lo
18031 alpha*-*-*) COREFILE=osf-core.lo ;;
18032 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
18034 arm-*-netbsd* | arm-*-openbsd*)
18035 COREFILE=netbsd-core.lo
18037 arm-*-riscix) COREFILE=trad-core.lo ;;
18038 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
18039 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
18040 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
18041 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
18042 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
18043 hppa*-*-netbsd* | hppa*-*-openbsd*)
18044 COREFILE=netbsd-core.lo
18048 COREFILE=trad-core.lo
18049 TRAD_HEADER='"hosts/i370linux.h"'
18052 i[3-7]86-sequent-bsd*)
18053 COREFILE=trad-core.lo
18054 TRAD_HEADER='"hosts/symmetry.h"'
18056 i[3-7]86-sequent-sysv4*) ;;
18057 i[3-7]86-sequent-sysv*)
18058 COREFILE=trad-core.lo
18059 TRAD_HEADER='"hosts/symmetry.h"'
18064 i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234] | i[3-7]86-*-freebsd4\.[01234]\.* | i[3-7]86-*-freebsd*aout*)
18065 COREFILE=trad-core.lo
18066 TRAD_HEADER='"hosts/i386bsd.h"'
18068 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
18070 TRAD_HEADER='"hosts/i386bsd.h"'
18072 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
18073 COREFILE=netbsd-core.lo
18075 i[3-7]86-esix-sysv3*)
18076 COREFILE=trad-core.lo
18077 TRAD_HEADER='"hosts/esix.h"'
18079 i[3-7]86-*-sco3.2v5*)
18080 COREFILE=sco5-core.lo
18082 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
18083 COREFILE=trad-core.lo
18084 TRAD_HEADER='"hosts/i386sco.h"'
18087 COREFILE=trad-core.lo
18088 TRAD_HEADER='"hosts/i386mach3.h"'
18090 i[3-7]86-*-linux-*)
18091 COREFILE=trad-core.lo
18092 TRAD_HEADER='"hosts/i386linux.h"'
18094 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
18095 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
18096 i860-*-mach3* | i860-*-osf1*)
18097 COREFILE=trad-core.lo
18098 TRAD_HEADER='"hosts/i860mach3.h"'
18100 mips-*-netbsd* | mips*-*-openbsd*)
18101 COREFILE=netbsd-core.lo
18104 COREFILE=trad-core.lo
18105 TRAD_HEADER='"hosts/decstation.h"'
18107 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
18108 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
18109 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
18111 mips-*-sysv* | mips-*-riscos*)
18112 COREFILE=trad-core.lo
18113 TRAD_HEADER='"hosts/riscos.h"'
18116 COREFILE=trad-core.lo
18117 TRAD_HEADER='"hosts/news-mips.h"'
18120 COREFILE=trad-core.lo
18121 TRAD_HEADER='"hosts/dpx2.h"'
18123 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
18125 COREFILE=trad-core.lo
18126 TRAD_HEADER='"hosts/hp300bsd.h"'
18129 COREFILE=trad-core.lo
18130 TRAD_HEADER='"hosts/m68klinux.h"'
18132 m68*-motorola-sysv*)
18133 COREFILE=trad-core.lo
18134 TRAD_HEADER='"hosts/delta68.h"'
18137 COREFILE=trad-core.lo
18138 TRAD_HEADER='"hosts/news.h"'
18140 m68*-*-netbsd* | m68*-*-openbsd*)
18141 COREFILE=netbsd-core.lo
18144 COREFILE=trad-core.lo
18145 TRAD_HEADER='"hosts/m68kaux.h"'
18149 m88*-motorola-sysv*)
18150 COREFILE=ptrace-core.lo
18153 COREFILE=trad-core.lo
18154 TRAD_HEADER='"hosts/m88kmach3.h"'
18157 COREFILE=netbsd-core.lo
18160 COREFILE=trad-core.lo
18161 TRAD_HEADER='"hosts/pc532mach.h"'
18163 ns32k-*-netbsd* | ns32k-*-openbsd*)
18164 COREFILE=netbsd-core.lo
18167 COREFILE=lynx-core.lo
18169 rs6000-*-aix5.* | powerpc-*-aix5.*)
18170 COREFILE=rs6000-core.lo
18171 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
18173 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
18174 COREFILE=rs6000-core.lo
18175 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
18176 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
18177 # have c_impl as a member of struct core_dumpx
18178 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
18179 echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
18180 cat >conftest.$ac_ext <<_ACEOF
18183 cat confdefs.h >>conftest.$ac_ext
18184 cat >>conftest.$ac_ext <<_ACEOF
18185 /* end confdefs.h. */
18190 struct core_dumpx c; c.c_impl = 0;
18195 rm -f conftest.$ac_objext
18196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18197 (eval $ac_compile) 2>conftest.er1
18199 grep -v '^ *+' conftest.er1 >conftest.err
18201 cat conftest.err >&5
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); } &&
18204 { ac_try='test -z "$ac_c_werror_flag"
18205 || test ! -s conftest.err'
18206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18207 (eval $ac_try) 2>&5
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); }; } &&
18211 { ac_try='test -s conftest.$ac_objext'
18212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18213 (eval $ac_try) 2>&5
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); }; }; then
18218 cat >>confdefs.h <<\_ACEOF
18219 #define HAVE_ST_C_IMPL 1
18222 echo "$as_me:$LINENO: result: yes" >&5
18223 echo "${ECHO_T}yes" >&6
18225 echo "$as_me: failed program was:" >&5
18226 sed 's/^/| /' conftest.$ac_ext >&5
18228 echo "$as_me:$LINENO: result: no" >&5
18229 echo "${ECHO_T}no" >&6
18231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18233 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
18234 rs6000-*-*) COREFILE=rs6000-core.lo ;;
18235 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
18236 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
18237 powerpc-*-beos*) ;;
18238 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
18240 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
18241 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
18242 s390*-*-*) COREFILE=trad-core.lo ;;
18243 sh*-*-netbsd* | sh*-*-openbsd*)
18244 COREFILE=netbsd-core.lo
18246 sparc-*-netbsd* | sparc*-*-openbsd*)
18247 COREFILE=netbsd-core.lo
18250 COREFILE=trad-core.lo
18251 TRAD_HEADER='"hosts/tahoe.h"'
18253 vax-*-netbsd* | vax-*-openbsd*)
18254 COREFILE=netbsd-core.lo
18257 COREFILE=trad-core.lo
18258 TRAD_HEADER='"hosts/vaxult2.h"'
18261 COREFILE=trad-core.lo
18262 TRAD_HEADER='"hosts/vaxult2.h"'
18265 COREFILE=trad-core.lo
18266 TRAD_HEADER='"hosts/vaxlinux.h"'
18269 COREFILE=trad-core.lo
18270 TRAD_HEADER='"hosts/vaxbsd.h"'
18272 x86_64-*-netbsd* | x86_64-*-openbsd*)
18273 COREFILE=netbsd-core.lo
18277 case "$COREFILE" in
18278 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
18279 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
18280 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
18281 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
18282 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
18283 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
18284 osf-core.lo) COREFLAG=-DOSF_CORE ;;
18285 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
18286 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
18287 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
18288 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
18291 # ELF corefile support has several flavors, but all of
18292 # them use something called <sys/procfs.h>
18294 for ac_header in sys/procfs.h
18296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18298 echo "$as_me:$LINENO: checking for $ac_header" >&5
18299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18301 echo $ECHO_N "(cached) $ECHO_C" >&6
18303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18306 # Is the header compilable?
18307 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18309 cat >conftest.$ac_ext <<_ACEOF
18312 cat confdefs.h >>conftest.$ac_ext
18313 cat >>conftest.$ac_ext <<_ACEOF
18314 /* end confdefs.h. */
18315 $ac_includes_default
18316 #include <$ac_header>
18318 rm -f conftest.$ac_objext
18319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18320 (eval $ac_compile) 2>conftest.er1
18322 grep -v '^ *+' conftest.er1 >conftest.err
18324 cat conftest.err >&5
18325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326 (exit $ac_status); } &&
18327 { ac_try='test -z "$ac_c_werror_flag"
18328 || test ! -s conftest.err'
18329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18330 (eval $ac_try) 2>&5
18332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333 (exit $ac_status); }; } &&
18334 { ac_try='test -s conftest.$ac_objext'
18335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18336 (eval $ac_try) 2>&5
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); }; }; then
18340 ac_header_compiler=yes
18342 echo "$as_me: failed program was:" >&5
18343 sed 's/^/| /' conftest.$ac_ext >&5
18345 ac_header_compiler=no
18347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18348 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18349 echo "${ECHO_T}$ac_header_compiler" >&6
18351 # Is the header present?
18352 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18353 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18354 cat >conftest.$ac_ext <<_ACEOF
18357 cat confdefs.h >>conftest.$ac_ext
18358 cat >>conftest.$ac_ext <<_ACEOF
18359 /* end confdefs.h. */
18360 #include <$ac_header>
18362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18365 grep -v '^ *+' conftest.er1 >conftest.err
18367 cat conftest.err >&5
18368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369 (exit $ac_status); } >/dev/null; then
18370 if test -s conftest.err; then
18371 ac_cpp_err=$ac_c_preproc_warn_flag
18372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18379 if test -z "$ac_cpp_err"; then
18380 ac_header_preproc=yes
18382 echo "$as_me: failed program was:" >&5
18383 sed 's/^/| /' conftest.$ac_ext >&5
18385 ac_header_preproc=no
18387 rm -f conftest.err conftest.$ac_ext
18388 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18389 echo "${ECHO_T}$ac_header_preproc" >&6
18391 # So? What about this header?
18392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18394 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18395 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18397 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18398 ac_header_preproc=yes
18401 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18402 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18403 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18404 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18405 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18406 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18407 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18408 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18410 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18411 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18412 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18415 ## ------------------------------------------ ##
18416 ## Report this to the AC_PACKAGE_NAME lists. ##
18417 ## ------------------------------------------ ##
18420 sed "s/^/$as_me: WARNING: /" >&2
18423 echo "$as_me:$LINENO: checking for $ac_header" >&5
18424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18426 echo $ECHO_N "(cached) $ECHO_C" >&6
18428 eval "$as_ac_Header=\$ac_header_preproc"
18430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18435 cat >>confdefs.h <<_ACEOF
18436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18443 if test "$ac_cv_header_sys_procfs_h" = yes; then
18444 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
18445 echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
18446 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
18447 echo $ECHO_N "(cached) $ECHO_C" >&6
18449 cat >conftest.$ac_ext <<_ACEOF
18452 cat confdefs.h >>conftest.$ac_ext
18453 cat >>conftest.$ac_ext <<_ACEOF
18454 /* end confdefs.h. */
18457 #include <sys/procfs.h>
18466 rm -f conftest.$ac_objext
18467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18468 (eval $ac_compile) 2>conftest.er1
18470 grep -v '^ *+' conftest.er1 >conftest.err
18472 cat conftest.err >&5
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); } &&
18475 { ac_try='test -z "$ac_c_werror_flag"
18476 || test ! -s conftest.err'
18477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18478 (eval $ac_try) 2>&5
18480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481 (exit $ac_status); }; } &&
18482 { ac_try='test -s conftest.$ac_objext'
18483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18484 (eval $ac_try) 2>&5
18486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487 (exit $ac_status); }; }; then
18488 bfd_cv_have_sys_procfs_type_prstatus_t=yes
18490 echo "$as_me: failed program was:" >&5
18491 sed 's/^/| /' conftest.$ac_ext >&5
18493 bfd_cv_have_sys_procfs_type_prstatus_t=no
18496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18499 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
18501 cat >>confdefs.h <<\_ACEOF
18502 #define HAVE_PRSTATUS_T 1
18506 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
18507 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
18509 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
18510 echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
18511 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
18512 echo $ECHO_N "(cached) $ECHO_C" >&6
18514 cat >conftest.$ac_ext <<_ACEOF
18517 cat confdefs.h >>conftest.$ac_ext
18518 cat >>conftest.$ac_ext <<_ACEOF
18519 /* end confdefs.h. */
18522 #include <sys/procfs.h>
18531 rm -f conftest.$ac_objext
18532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18533 (eval $ac_compile) 2>conftest.er1
18535 grep -v '^ *+' conftest.er1 >conftest.err
18537 cat conftest.err >&5
18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); } &&
18540 { ac_try='test -z "$ac_c_werror_flag"
18541 || test ! -s conftest.err'
18542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18543 (eval $ac_try) 2>&5
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); }; } &&
18547 { ac_try='test -s conftest.$ac_objext'
18548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18549 (eval $ac_try) 2>&5
18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); }; }; then
18553 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
18555 echo "$as_me: failed program was:" >&5
18556 sed 's/^/| /' conftest.$ac_ext >&5
18558 bfd_cv_have_sys_procfs_type_prstatus32_t=no
18561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18564 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
18566 cat >>confdefs.h <<\_ACEOF
18567 #define HAVE_PRSTATUS32_T 1
18571 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
18572 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
18574 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
18575 echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
18576 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
18577 echo $ECHO_N "(cached) $ECHO_C" >&6
18579 cat >conftest.$ac_ext <<_ACEOF
18582 cat confdefs.h >>conftest.$ac_ext
18583 cat >>conftest.$ac_ext <<_ACEOF
18584 /* end confdefs.h. */
18587 #include <sys/procfs.h>
18591 prstatus_t avar; void* aref = (void*) &avar.pr_who
18596 rm -f conftest.$ac_objext
18597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18598 (eval $ac_compile) 2>conftest.er1
18600 grep -v '^ *+' conftest.er1 >conftest.err
18602 cat conftest.err >&5
18603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604 (exit $ac_status); } &&
18605 { ac_try='test -z "$ac_c_werror_flag"
18606 || test ! -s conftest.err'
18607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18608 (eval $ac_try) 2>&5
18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); }; } &&
18612 { ac_try='test -s conftest.$ac_objext'
18613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18614 (eval $ac_try) 2>&5
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); }; }; then
18618 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
18620 echo "$as_me: failed program was:" >&5
18621 sed 's/^/| /' conftest.$ac_ext >&5
18623 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
18626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18629 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
18631 cat >>confdefs.h <<\_ACEOF
18632 #define HAVE_PRSTATUS_T_PR_WHO 1
18636 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
18637 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
18639 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
18640 echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
18641 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
18642 echo $ECHO_N "(cached) $ECHO_C" >&6
18644 cat >conftest.$ac_ext <<_ACEOF
18647 cat confdefs.h >>conftest.$ac_ext
18648 cat >>conftest.$ac_ext <<_ACEOF
18649 /* end confdefs.h. */
18652 #include <sys/procfs.h>
18656 prstatus32_t avar; void* aref = (void*) &avar.pr_who
18661 rm -f conftest.$ac_objext
18662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18663 (eval $ac_compile) 2>conftest.er1
18665 grep -v '^ *+' conftest.er1 >conftest.err
18667 cat conftest.err >&5
18668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669 (exit $ac_status); } &&
18670 { ac_try='test -z "$ac_c_werror_flag"
18671 || test ! -s conftest.err'
18672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18673 (eval $ac_try) 2>&5
18675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676 (exit $ac_status); }; } &&
18677 { ac_try='test -s conftest.$ac_objext'
18678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18679 (eval $ac_try) 2>&5
18681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682 (exit $ac_status); }; }; then
18683 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
18685 echo "$as_me: failed program was:" >&5
18686 sed 's/^/| /' conftest.$ac_ext >&5
18688 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
18691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18694 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
18696 cat >>confdefs.h <<\_ACEOF
18697 #define HAVE_PRSTATUS32_T_PR_WHO 1
18701 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
18702 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
18704 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
18705 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
18706 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
18707 echo $ECHO_N "(cached) $ECHO_C" >&6
18709 cat >conftest.$ac_ext <<_ACEOF
18712 cat confdefs.h >>conftest.$ac_ext
18713 cat >>conftest.$ac_ext <<_ACEOF
18714 /* end confdefs.h. */
18717 #include <sys/procfs.h>
18726 rm -f conftest.$ac_objext
18727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18728 (eval $ac_compile) 2>conftest.er1
18730 grep -v '^ *+' conftest.er1 >conftest.err
18732 cat conftest.err >&5
18733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734 (exit $ac_status); } &&
18735 { ac_try='test -z "$ac_c_werror_flag"
18736 || test ! -s conftest.err'
18737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18738 (eval $ac_try) 2>&5
18740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741 (exit $ac_status); }; } &&
18742 { ac_try='test -s conftest.$ac_objext'
18743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18744 (eval $ac_try) 2>&5
18746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747 (exit $ac_status); }; }; then
18748 bfd_cv_have_sys_procfs_type_pstatus_t=yes
18750 echo "$as_me: failed program was:" >&5
18751 sed 's/^/| /' conftest.$ac_ext >&5
18753 bfd_cv_have_sys_procfs_type_pstatus_t=no
18756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18759 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
18761 cat >>confdefs.h <<\_ACEOF
18762 #define HAVE_PSTATUS_T 1
18766 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
18767 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
18769 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
18770 echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
18771 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
18772 echo $ECHO_N "(cached) $ECHO_C" >&6
18774 cat >conftest.$ac_ext <<_ACEOF
18777 cat confdefs.h >>conftest.$ac_ext
18778 cat >>conftest.$ac_ext <<_ACEOF
18779 /* end confdefs.h. */
18782 #include <sys/procfs.h>
18791 rm -f conftest.$ac_objext
18792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18793 (eval $ac_compile) 2>conftest.er1
18795 grep -v '^ *+' conftest.er1 >conftest.err
18797 cat conftest.err >&5
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); } &&
18800 { ac_try='test -z "$ac_c_werror_flag"
18801 || test ! -s conftest.err'
18802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18803 (eval $ac_try) 2>&5
18805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806 (exit $ac_status); }; } &&
18807 { ac_try='test -s conftest.$ac_objext'
18808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18809 (eval $ac_try) 2>&5
18811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812 (exit $ac_status); }; }; then
18813 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
18815 echo "$as_me: failed program was:" >&5
18816 sed 's/^/| /' conftest.$ac_ext >&5
18818 bfd_cv_have_sys_procfs_type_pxstatus_t=no
18821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18824 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
18826 cat >>confdefs.h <<\_ACEOF
18827 #define HAVE_PXSTATUS_T 1
18831 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
18832 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
18834 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
18835 echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
18836 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
18837 echo $ECHO_N "(cached) $ECHO_C" >&6
18839 cat >conftest.$ac_ext <<_ACEOF
18842 cat confdefs.h >>conftest.$ac_ext
18843 cat >>conftest.$ac_ext <<_ACEOF
18844 /* end confdefs.h. */
18847 #include <sys/procfs.h>
18856 rm -f conftest.$ac_objext
18857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18858 (eval $ac_compile) 2>conftest.er1
18860 grep -v '^ *+' conftest.er1 >conftest.err
18862 cat conftest.err >&5
18863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864 (exit $ac_status); } &&
18865 { ac_try='test -z "$ac_c_werror_flag"
18866 || test ! -s conftest.err'
18867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18868 (eval $ac_try) 2>&5
18870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871 (exit $ac_status); }; } &&
18872 { ac_try='test -s conftest.$ac_objext'
18873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18874 (eval $ac_try) 2>&5
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); }; }; then
18878 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
18880 echo "$as_me: failed program was:" >&5
18881 sed 's/^/| /' conftest.$ac_ext >&5
18883 bfd_cv_have_sys_procfs_type_pstatus32_t=no
18886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18889 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
18891 cat >>confdefs.h <<\_ACEOF
18892 #define HAVE_PSTATUS32_T 1
18896 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
18897 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
18899 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
18900 echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
18901 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
18902 echo $ECHO_N "(cached) $ECHO_C" >&6
18904 cat >conftest.$ac_ext <<_ACEOF
18907 cat confdefs.h >>conftest.$ac_ext
18908 cat >>conftest.$ac_ext <<_ACEOF
18909 /* end confdefs.h. */
18912 #include <sys/procfs.h>
18921 rm -f conftest.$ac_objext
18922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18923 (eval $ac_compile) 2>conftest.er1
18925 grep -v '^ *+' conftest.er1 >conftest.err
18927 cat conftest.err >&5
18928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929 (exit $ac_status); } &&
18930 { ac_try='test -z "$ac_c_werror_flag"
18931 || test ! -s conftest.err'
18932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18933 (eval $ac_try) 2>&5
18935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); }; } &&
18937 { ac_try='test -s conftest.$ac_objext'
18938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18939 (eval $ac_try) 2>&5
18941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942 (exit $ac_status); }; }; then
18943 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
18945 echo "$as_me: failed program was:" >&5
18946 sed 's/^/| /' conftest.$ac_ext >&5
18948 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
18951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18954 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
18956 cat >>confdefs.h <<\_ACEOF
18957 #define HAVE_PRPSINFO_T 1
18961 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
18962 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
18964 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
18965 echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
18966 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
18967 echo $ECHO_N "(cached) $ECHO_C" >&6
18969 cat >conftest.$ac_ext <<_ACEOF
18972 cat confdefs.h >>conftest.$ac_ext
18973 cat >>conftest.$ac_ext <<_ACEOF
18974 /* end confdefs.h. */
18977 #include <sys/procfs.h>
18986 rm -f conftest.$ac_objext
18987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18988 (eval $ac_compile) 2>conftest.er1
18990 grep -v '^ *+' conftest.er1 >conftest.err
18992 cat conftest.err >&5
18993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994 (exit $ac_status); } &&
18995 { ac_try='test -z "$ac_c_werror_flag"
18996 || test ! -s conftest.err'
18997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18998 (eval $ac_try) 2>&5
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); }; } &&
19002 { ac_try='test -s conftest.$ac_objext'
19003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19004 (eval $ac_try) 2>&5
19006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007 (exit $ac_status); }; }; then
19008 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
19010 echo "$as_me: failed program was:" >&5
19011 sed 's/^/| /' conftest.$ac_ext >&5
19013 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
19016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19019 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
19021 cat >>confdefs.h <<\_ACEOF
19022 #define HAVE_PRPSINFO32_T 1
19026 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
19027 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
19029 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
19030 echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
19031 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
19032 echo $ECHO_N "(cached) $ECHO_C" >&6
19034 cat >conftest.$ac_ext <<_ACEOF
19037 cat confdefs.h >>conftest.$ac_ext
19038 cat >>conftest.$ac_ext <<_ACEOF
19039 /* end confdefs.h. */
19042 #include <sys/procfs.h>
19051 rm -f conftest.$ac_objext
19052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19053 (eval $ac_compile) 2>conftest.er1
19055 grep -v '^ *+' conftest.er1 >conftest.err
19057 cat conftest.err >&5
19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); } &&
19060 { ac_try='test -z "$ac_c_werror_flag"
19061 || test ! -s conftest.err'
19062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19063 (eval $ac_try) 2>&5
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); }; } &&
19067 { ac_try='test -s conftest.$ac_objext'
19068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19069 (eval $ac_try) 2>&5
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); }; }; then
19073 bfd_cv_have_sys_procfs_type_psinfo_t=yes
19075 echo "$as_me: failed program was:" >&5
19076 sed 's/^/| /' conftest.$ac_ext >&5
19078 bfd_cv_have_sys_procfs_type_psinfo_t=no
19081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19084 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
19086 cat >>confdefs.h <<\_ACEOF
19087 #define HAVE_PSINFO_T 1
19091 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
19092 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
19094 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
19095 echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
19096 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
19097 echo $ECHO_N "(cached) $ECHO_C" >&6
19099 cat >conftest.$ac_ext <<_ACEOF
19102 cat confdefs.h >>conftest.$ac_ext
19103 cat >>conftest.$ac_ext <<_ACEOF
19104 /* end confdefs.h. */
19107 #include <sys/procfs.h>
19116 rm -f conftest.$ac_objext
19117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19118 (eval $ac_compile) 2>conftest.er1
19120 grep -v '^ *+' conftest.er1 >conftest.err
19122 cat conftest.err >&5
19123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124 (exit $ac_status); } &&
19125 { ac_try='test -z "$ac_c_werror_flag"
19126 || test ! -s conftest.err'
19127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19128 (eval $ac_try) 2>&5
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); }; } &&
19132 { ac_try='test -s conftest.$ac_objext'
19133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19134 (eval $ac_try) 2>&5
19136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137 (exit $ac_status); }; }; then
19138 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
19140 echo "$as_me: failed program was:" >&5
19141 sed 's/^/| /' conftest.$ac_ext >&5
19143 bfd_cv_have_sys_procfs_type_psinfo32_t=no
19146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19149 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
19151 cat >>confdefs.h <<\_ACEOF
19152 #define HAVE_PSINFO32_T 1
19156 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
19157 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
19159 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
19160 echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
19161 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
19162 echo $ECHO_N "(cached) $ECHO_C" >&6
19164 cat >conftest.$ac_ext <<_ACEOF
19167 cat confdefs.h >>conftest.$ac_ext
19168 cat >>conftest.$ac_ext <<_ACEOF
19169 /* end confdefs.h. */
19172 #include <sys/procfs.h>
19181 rm -f conftest.$ac_objext
19182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19183 (eval $ac_compile) 2>conftest.er1
19185 grep -v '^ *+' conftest.er1 >conftest.err
19187 cat conftest.err >&5
19188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189 (exit $ac_status); } &&
19190 { ac_try='test -z "$ac_c_werror_flag"
19191 || test ! -s conftest.err'
19192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19193 (eval $ac_try) 2>&5
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); }; } &&
19197 { ac_try='test -s conftest.$ac_objext'
19198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19199 (eval $ac_try) 2>&5
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); }; }; then
19203 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
19205 echo "$as_me: failed program was:" >&5
19206 sed 's/^/| /' conftest.$ac_ext >&5
19208 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
19211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19214 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
19216 cat >>confdefs.h <<\_ACEOF
19217 #define HAVE_LWPSTATUS_T 1
19221 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
19222 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
19224 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
19225 echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
19226 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
19227 echo $ECHO_N "(cached) $ECHO_C" >&6
19229 cat >conftest.$ac_ext <<_ACEOF
19232 cat confdefs.h >>conftest.$ac_ext
19233 cat >>conftest.$ac_ext <<_ACEOF
19234 /* end confdefs.h. */
19237 #include <sys/procfs.h>
19246 rm -f conftest.$ac_objext
19247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19248 (eval $ac_compile) 2>conftest.er1
19250 grep -v '^ *+' conftest.er1 >conftest.err
19252 cat conftest.err >&5
19253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); } &&
19255 { ac_try='test -z "$ac_c_werror_flag"
19256 || test ! -s conftest.err'
19257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19258 (eval $ac_try) 2>&5
19260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261 (exit $ac_status); }; } &&
19262 { ac_try='test -s conftest.$ac_objext'
19263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19264 (eval $ac_try) 2>&5
19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); }; }; then
19268 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
19270 echo "$as_me: failed program was:" >&5
19271 sed 's/^/| /' conftest.$ac_ext >&5
19273 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
19276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19279 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
19281 cat >>confdefs.h <<\_ACEOF
19282 #define HAVE_LWPXSTATUS_T 1
19286 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
19287 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
19289 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
19290 echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
19291 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
19292 echo $ECHO_N "(cached) $ECHO_C" >&6
19294 cat >conftest.$ac_ext <<_ACEOF
19297 cat confdefs.h >>conftest.$ac_ext
19298 cat >>conftest.$ac_ext <<_ACEOF
19299 /* end confdefs.h. */
19302 #include <sys/procfs.h>
19306 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
19311 rm -f conftest.$ac_objext
19312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19313 (eval $ac_compile) 2>conftest.er1
19315 grep -v '^ *+' conftest.er1 >conftest.err
19317 cat conftest.err >&5
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); } &&
19320 { ac_try='test -z "$ac_c_werror_flag"
19321 || test ! -s conftest.err'
19322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19323 (eval $ac_try) 2>&5
19325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326 (exit $ac_status); }; } &&
19327 { ac_try='test -s conftest.$ac_objext'
19328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19329 (eval $ac_try) 2>&5
19331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332 (exit $ac_status); }; }; then
19333 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
19335 echo "$as_me: failed program was:" >&5
19336 sed 's/^/| /' conftest.$ac_ext >&5
19338 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
19341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19344 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
19346 cat >>confdefs.h <<\_ACEOF
19347 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
19351 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
19352 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
19354 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
19355 echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
19356 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
19357 echo $ECHO_N "(cached) $ECHO_C" >&6
19359 cat >conftest.$ac_ext <<_ACEOF
19362 cat confdefs.h >>conftest.$ac_ext
19363 cat >>conftest.$ac_ext <<_ACEOF
19364 /* end confdefs.h. */
19367 #include <sys/procfs.h>
19371 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
19376 rm -f conftest.$ac_objext
19377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19378 (eval $ac_compile) 2>conftest.er1
19380 grep -v '^ *+' conftest.er1 >conftest.err
19382 cat conftest.err >&5
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); } &&
19385 { ac_try='test -z "$ac_c_werror_flag"
19386 || test ! -s conftest.err'
19387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19388 (eval $ac_try) 2>&5
19390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391 (exit $ac_status); }; } &&
19392 { ac_try='test -s conftest.$ac_objext'
19393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19394 (eval $ac_try) 2>&5
19396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397 (exit $ac_status); }; }; then
19398 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
19400 echo "$as_me: failed program was:" >&5
19401 sed 's/^/| /' conftest.$ac_ext >&5
19403 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
19406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19409 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
19411 cat >>confdefs.h <<\_ACEOF
19412 #define HAVE_LWPSTATUS_T_PR_REG 1
19416 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
19417 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
19419 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
19420 echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
19421 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
19422 echo $ECHO_N "(cached) $ECHO_C" >&6
19424 cat >conftest.$ac_ext <<_ACEOF
19427 cat confdefs.h >>conftest.$ac_ext
19428 cat >>conftest.$ac_ext <<_ACEOF
19429 /* end confdefs.h. */
19432 #include <sys/procfs.h>
19436 win32_pstatus_t avar
19441 rm -f conftest.$ac_objext
19442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19443 (eval $ac_compile) 2>conftest.er1
19445 grep -v '^ *+' conftest.er1 >conftest.err
19447 cat conftest.err >&5
19448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449 (exit $ac_status); } &&
19450 { ac_try='test -z "$ac_c_werror_flag"
19451 || test ! -s conftest.err'
19452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19453 (eval $ac_try) 2>&5
19455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456 (exit $ac_status); }; } &&
19457 { ac_try='test -s conftest.$ac_objext'
19458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19459 (eval $ac_try) 2>&5
19461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462 (exit $ac_status); }; }; then
19463 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
19465 echo "$as_me: failed program was:" >&5
19466 sed 's/^/| /' conftest.$ac_ext >&5
19468 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
19471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19474 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
19476 cat >>confdefs.h <<\_ACEOF
19477 #define HAVE_WIN32_PSTATUS_T 1
19481 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
19482 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
19488 if test -n "$TRAD_HEADER"; then
19490 cat >>confdefs.h <<_ACEOF
19491 #define TRAD_HEADER $TRAD_HEADER
19496 # Horrible hacks to build DLLs on Windows.
19501 if test "$enable_shared" = "yes"; then
19502 WIN32LDFLAGS="-no-undefined"
19503 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
19507 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
19509 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
19510 if test -n "$x"; then
19511 WIN32LIBADD="-L../libiberty/pic -liberty"
19520 # Canonicalize the secondary target names.
19521 if test -n "$enable_targets" ; then
19522 for targ in `echo $enable_targets | sed 's/,/ /g'`
19524 result=`$ac_config_sub $targ 2>/dev/null`
19525 if test -n "$result" ; then
19526 canon_targets="$canon_targets $result"
19528 # Allow targets that config.sub doesn't recognize, like "all".
19529 canon_targets="$canon_targets $targ"
19540 for targ in $target $canon_targets
19542 if test "x$targ" = "xall"; then
19544 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
19546 . $srcdir/config.bfd
19547 if test "x$targ" = "x$target"; then
19548 defvec=$targ_defvec
19550 selvecs="$selvecs $targ_defvec $targ_selvecs"
19551 selarchs="$selarchs $targ_archs"
19552 TDEFINES="$TDEFINES $targ_cflags"
19557 # This processing still needs to be done if we're to decide properly whether
19558 # 64-bit support needs to be compiled in. Currently, it will be included if
19559 # the default or any other explicitly requested target requires it; it
19560 # will not be included on a 32-bit host if no 64-bit target is requested, and
19561 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
19564 # uniq the default and selected vectors in all the configured targets.
19566 for i in $selvecs ; do
19575 # uniq the associated vectors in all the configured targets.
19577 for i in $assocvecs ; do
19586 # uniq the architectures in all the configured targets.
19588 for i in $selarchs ; do
19596 # Target backend .o files.
19599 elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
19601 for vec in $selvecs
19605 # This list is alphabetized to make it easy to compare
19606 # with the two vector lists in targets.c. For the same reason,
19607 # use one entry per line, even though this leads to long lines.
19608 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
19609 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
19610 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
19611 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
19612 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
19613 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
19614 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
19615 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
19616 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
19617 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
19618 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
19619 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
19620 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
19621 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
19622 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
19623 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
19624 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
19625 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
19626 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
19627 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
19628 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
19629 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
19630 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
19631 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
19632 bfd_efi_bsdrv_ia32_vec) tb="$tb efi-bsdrv-ia32.lo peigen.lo cofflink.lo" ;;
19633 bfd_efi_rtdrv_ia32_vec) tb="$tb efi-rtdrv-ia32.lo peigen.lo cofflink.lo" ;;
19634 bfd_efi_app_x86_64_vec) tb="$tb efi-app-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
19635 bfd_efi_bsdrv_x86_64_vec) tb="$tb efi-bsdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
19636 bfd_efi_rtdrv_x86_64_vec) tb="$tb efi-rtdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
19637 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
19638 bfd_efi_bsdrv_ia64_vec) tb="$tb efi-bsdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
19639 bfd_efi_rtdrv_ia64_vec) tb="$tb efi-rtdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
19640 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
19641 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
19642 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
19643 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
19644 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
19645 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
19646 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19647 bfd_elf32_bigarm_symbian_vec)
19648 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19649 bfd_elf32_bigarm_vxworks_vec)
19650 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19651 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19652 bfd_elf32_bigmips_vxworks_vec)
19653 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19654 bfd_elf32_cr16_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
19655 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
19656 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
19657 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
19658 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
19659 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
19660 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
19661 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
19662 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
19663 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
19664 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
19665 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
19666 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
19667 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
19668 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
19669 bfd_elf32_i386_dragonfly_vec)
19670 tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
19671 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
19672 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
19673 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
19674 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
19675 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
19676 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
19677 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
19678 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
19679 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
19680 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
19681 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
19682 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
19683 bfd_elf32_littlearm_symbian_vec)
19684 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19685 bfd_elf32_littlearm_vxworks_vec)
19686 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19687 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19688 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19689 bfd_elf32_littlemips_vxworks_vec)
19690 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19691 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
19692 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
19693 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
19694 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
19695 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
19696 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
19697 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
19698 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
19699 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
19700 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
19701 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
19702 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
19703 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
19704 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
19705 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
19706 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
19707 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
19708 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19709 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19710 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19711 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19712 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
19713 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
19714 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
19715 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
19716 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
19717 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
19718 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
19719 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
19720 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
19721 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
19722 # FIXME: We include cofflink.lo not because it's needed for
19723 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
19724 # which needs it but does not list it. Should be fixed in right place.
19725 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19726 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19727 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19728 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19729 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
19730 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
19731 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19732 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19733 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19734 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19735 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19736 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19737 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19738 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19739 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19740 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
19741 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
19742 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
19743 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19744 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19745 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
19746 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
19747 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
19748 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
19749 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
19750 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
19751 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
19752 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
19753 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
19754 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
19755 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19756 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
19757 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
19758 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
19759 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
19760 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
19761 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
19762 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19763 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
19764 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
19765 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
19766 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
19767 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19768 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19769 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19770 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19771 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19772 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19773 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
19774 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
19775 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19776 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19777 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
19778 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
19779 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
19780 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
19781 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
19782 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
19783 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
19784 cris_aout_vec) tb="$tb aout-cris.lo" ;;
19785 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
19786 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
19787 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
19788 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
19789 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
19790 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
19791 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
19792 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
19793 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
19794 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
19795 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
19796 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
19797 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
19798 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
19799 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
19800 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
19801 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
19802 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
19803 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
19804 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
19805 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
19806 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
19807 i386msdos_vec) tb="$tb i386msdos.lo" ;;
19808 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
19809 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
19810 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
19811 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
19812 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
19813 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
19814 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
19815 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
19816 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
19817 ieee_vec) tb="$tb ieee.lo" ;;
19818 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
19819 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
19820 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
19821 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
19822 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
19823 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
19824 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
19825 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
19826 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
19827 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
19828 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
19829 mach_o_be_vec) tb="$tb mach-o.lo" ;;
19830 mach_o_le_vec) tb="$tb mach-o.lo" ;;
19831 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
19832 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
19833 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
19834 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
19835 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
19836 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
19837 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
19838 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
19839 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
19840 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
19841 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
19842 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
19843 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
19844 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
19845 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
19846 pef_vec) tb="$tb pef.lo" ;;
19847 pef_xlib_vec) tb="$tb pef.lo" ;;
19848 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
19849 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
19850 ppcboot_vec) tb="$tb ppcboot.lo" ;;
19851 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
19852 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
19853 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
19854 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
19855 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
19856 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
19857 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
19858 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
19859 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
19860 som_vec) tb="$tb som.lo" ;;
19861 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
19862 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
19863 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
19864 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
19865 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
19866 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
19867 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
19868 sym_vec) tb="$tb xsym.lo" ;;
19869 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
19870 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
19871 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
19872 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
19873 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
19874 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
19875 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
19876 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
19877 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
19878 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
19879 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
19880 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
19881 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
19882 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
19883 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
19884 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
19885 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
19886 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
19887 versados_vec) tb="$tb versados.lo" ;;
19888 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
19889 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
19890 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
19891 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
19892 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
19893 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
19895 # These appear out of order in targets.c
19896 srec_vec) tb="$tb srec.lo" ;;
19897 symbolsrec_vec) tb="$tb srec.lo" ;;
19898 tekhex_vec) tb="$tb tekhex.lo" ;;
19899 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
19900 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
19903 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
19904 echo "$as_me: error: *** unknown target vector $vec" >&2;}
19905 { (exit 1); exit 1; }; } ;;
19908 if test ${target_size} = 64; then
19911 if test x"${vec}" = x"${defvec}"; then
19912 bfd_default_target_size=${target_size}
19916 # Target architecture .o files.
19917 # A couple of CPUs use shorter file names to avoid problems on DOS
19919 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
19921 # Weed out duplicate .o files.
19943 if test x${all_targets} = xtrue ; then
19944 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
19945 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
19949 test -n "$assocvecs" &&
19950 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
19951 else # all_targets is true
19952 # Only set these if they will be nonempty, for the clever echo.
19955 test -n "$selvecs" &&
19956 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
19957 test -n "$selvecs" &&
19958 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
19959 test -n "$selarchs" &&
19960 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
19961 fi # all_targets is true
19963 case ${host64}-${target64}-${want64} in
19966 bfd64_libs='$(BFD64_LIBS)'
19967 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
19968 if test $BFD_HOST_64_BIT_DEFINED = 0; then
19969 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
19970 echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
19971 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
19972 echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
19974 if test -n "$GCC" ; then
19976 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
19977 echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
19978 # Add more tests for gcc versions with non-working 64-bit support here.
19979 cat >conftest.$ac_ext <<_ACEOF
19982 cat confdefs.h >>conftest.$ac_ext
19983 cat >>conftest.$ac_ext <<_ACEOF
19984 /* end confdefs.h. */
19985 :__GNUC__:__GNUC_MINOR__:__i386__:
19987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19988 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
19990 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
19991 echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
19993 echo "$as_me:$LINENO: result: no" >&5
19994 echo "${ECHO_T}no" >&6
19998 if test $bad_64bit_gcc = yes ; then
19999 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
20000 echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
20001 { (exit 1); exit 1; }; }
20007 all_backends='$(BFD32_BACKENDS)'
20018 # Determine the host dependant file_ptr a.k.a. off_t type. In order
20019 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
20020 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
20021 # Hopefully a reasonable assumption since fseeko et.al. should be
20022 # upward compatible.
20028 for ac_func in ftello ftello64 fseeko fseeko64 fopen64
20030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20031 echo "$as_me:$LINENO: checking for $ac_func" >&5
20032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20033 if eval "test \"\${$as_ac_var+set}\" = set"; then
20034 echo $ECHO_N "(cached) $ECHO_C" >&6
20036 cat >conftest.$ac_ext <<_ACEOF
20039 cat confdefs.h >>conftest.$ac_ext
20040 cat >>conftest.$ac_ext <<_ACEOF
20041 /* end confdefs.h. */
20042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20044 #define $ac_func innocuous_$ac_func
20046 /* System header to define __stub macros and hopefully few prototypes,
20047 which can conflict with char $ac_func (); below.
20048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20049 <limits.h> exists even on freestanding compilers. */
20052 # include <limits.h>
20054 # include <assert.h>
20059 /* Override any gcc2 internal prototype to avoid an error. */
20064 /* We use char because int might match the return type of a gcc2
20065 builtin and then its argument prototype would still apply. */
20067 /* The GNU C library defines this for functions which it implements
20068 to always fail with ENOSYS. Some functions are actually named
20069 something starting with __ and the normal name is an alias. */
20070 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20073 char (*f) () = $ac_func;
20082 return f != $ac_func;
20087 rm -f conftest.$ac_objext conftest$ac_exeext
20088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20089 (eval $ac_link) 2>conftest.er1
20091 grep -v '^ *+' conftest.er1 >conftest.err
20093 cat conftest.err >&5
20094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095 (exit $ac_status); } &&
20096 { ac_try='test -z "$ac_c_werror_flag"
20097 || test ! -s conftest.err'
20098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20099 (eval $ac_try) 2>&5
20101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102 (exit $ac_status); }; } &&
20103 { ac_try='test -s conftest$ac_exeext'
20104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20105 (eval $ac_try) 2>&5
20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 (exit $ac_status); }; }; then
20109 eval "$as_ac_var=yes"
20111 echo "$as_me: failed program was:" >&5
20112 sed 's/^/| /' conftest.$ac_ext >&5
20114 eval "$as_ac_var=no"
20116 rm -f conftest.err conftest.$ac_objext \
20117 conftest$ac_exeext conftest.$ac_ext
20119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20120 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20121 if test `eval echo '${'$as_ac_var'}'` = yes; then
20122 cat >>confdefs.h <<_ACEOF
20123 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20129 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
20130 echo "$as_me:$LINENO: checking for off_t" >&5
20131 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
20132 if test "${ac_cv_type_off_t+set}" = set; then
20133 echo $ECHO_N "(cached) $ECHO_C" >&6
20135 cat >conftest.$ac_ext <<_ACEOF
20138 cat confdefs.h >>conftest.$ac_ext
20139 cat >>conftest.$ac_ext <<_ACEOF
20140 /* end confdefs.h. */
20141 $ac_includes_default
20147 if (sizeof (off_t))
20153 rm -f conftest.$ac_objext
20154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20155 (eval $ac_compile) 2>conftest.er1
20157 grep -v '^ *+' conftest.er1 >conftest.err
20159 cat conftest.err >&5
20160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161 (exit $ac_status); } &&
20162 { ac_try='test -z "$ac_c_werror_flag"
20163 || test ! -s conftest.err'
20164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20165 (eval $ac_try) 2>&5
20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); }; } &&
20169 { ac_try='test -s conftest.$ac_objext'
20170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20171 (eval $ac_try) 2>&5
20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174 (exit $ac_status); }; }; then
20175 ac_cv_type_off_t=yes
20177 echo "$as_me: failed program was:" >&5
20178 sed 's/^/| /' conftest.$ac_ext >&5
20180 ac_cv_type_off_t=no
20182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20184 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20185 echo "${ECHO_T}$ac_cv_type_off_t" >&6
20187 echo "$as_me:$LINENO: checking size of off_t" >&5
20188 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
20189 if test "${ac_cv_sizeof_off_t+set}" = set; then
20190 echo $ECHO_N "(cached) $ECHO_C" >&6
20192 if test "$ac_cv_type_off_t" = yes; then
20193 # The cast to unsigned long works around a bug in the HP C Compiler
20194 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20195 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20196 # This bug is HP SR number 8606223364.
20197 if test "$cross_compiling" = yes; then
20198 # Depending upon the size, compute the lo and hi bounds.
20199 cat >conftest.$ac_ext <<_ACEOF
20202 cat confdefs.h >>conftest.$ac_ext
20203 cat >>conftest.$ac_ext <<_ACEOF
20204 /* end confdefs.h. */
20205 $ac_includes_default
20209 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
20216 rm -f conftest.$ac_objext
20217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20218 (eval $ac_compile) 2>conftest.er1
20220 grep -v '^ *+' conftest.er1 >conftest.err
20222 cat conftest.err >&5
20223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224 (exit $ac_status); } &&
20225 { ac_try='test -z "$ac_c_werror_flag"
20226 || test ! -s conftest.err'
20227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20228 (eval $ac_try) 2>&5
20230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231 (exit $ac_status); }; } &&
20232 { ac_try='test -s conftest.$ac_objext'
20233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20234 (eval $ac_try) 2>&5
20236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237 (exit $ac_status); }; }; then
20240 cat >conftest.$ac_ext <<_ACEOF
20243 cat confdefs.h >>conftest.$ac_ext
20244 cat >>conftest.$ac_ext <<_ACEOF
20245 /* end confdefs.h. */
20246 $ac_includes_default
20250 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
20257 rm -f conftest.$ac_objext
20258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20259 (eval $ac_compile) 2>conftest.er1
20261 grep -v '^ *+' conftest.er1 >conftest.err
20263 cat conftest.err >&5
20264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265 (exit $ac_status); } &&
20266 { ac_try='test -z "$ac_c_werror_flag"
20267 || test ! -s conftest.err'
20268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20269 (eval $ac_try) 2>&5
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); }; } &&
20273 { ac_try='test -s conftest.$ac_objext'
20274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20275 (eval $ac_try) 2>&5
20277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278 (exit $ac_status); }; }; then
20279 ac_hi=$ac_mid; break
20281 echo "$as_me: failed program was:" >&5
20282 sed 's/^/| /' conftest.$ac_ext >&5
20284 ac_lo=`expr $ac_mid + 1`
20285 if test $ac_lo -le $ac_mid; then
20289 ac_mid=`expr 2 '*' $ac_mid + 1`
20291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20294 echo "$as_me: failed program was:" >&5
20295 sed 's/^/| /' conftest.$ac_ext >&5
20297 cat >conftest.$ac_ext <<_ACEOF
20300 cat confdefs.h >>conftest.$ac_ext
20301 cat >>conftest.$ac_ext <<_ACEOF
20302 /* end confdefs.h. */
20303 $ac_includes_default
20307 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
20314 rm -f conftest.$ac_objext
20315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20316 (eval $ac_compile) 2>conftest.er1
20318 grep -v '^ *+' conftest.er1 >conftest.err
20320 cat conftest.err >&5
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); } &&
20323 { ac_try='test -z "$ac_c_werror_flag"
20324 || test ! -s conftest.err'
20325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20326 (eval $ac_try) 2>&5
20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329 (exit $ac_status); }; } &&
20330 { ac_try='test -s conftest.$ac_objext'
20331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20332 (eval $ac_try) 2>&5
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); }; }; then
20338 cat >conftest.$ac_ext <<_ACEOF
20341 cat confdefs.h >>conftest.$ac_ext
20342 cat >>conftest.$ac_ext <<_ACEOF
20343 /* end confdefs.h. */
20344 $ac_includes_default
20348 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
20355 rm -f conftest.$ac_objext
20356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20357 (eval $ac_compile) 2>conftest.er1
20359 grep -v '^ *+' conftest.er1 >conftest.err
20361 cat conftest.err >&5
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); } &&
20364 { ac_try='test -z "$ac_c_werror_flag"
20365 || test ! -s conftest.err'
20366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20367 (eval $ac_try) 2>&5
20369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370 (exit $ac_status); }; } &&
20371 { ac_try='test -s conftest.$ac_objext'
20372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20373 (eval $ac_try) 2>&5
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); }; }; then
20377 ac_lo=$ac_mid; break
20379 echo "$as_me: failed program was:" >&5
20380 sed 's/^/| /' conftest.$ac_ext >&5
20382 ac_hi=`expr '(' $ac_mid ')' - 1`
20383 if test $ac_mid -le $ac_hi; then
20387 ac_mid=`expr 2 '*' $ac_mid`
20389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20392 echo "$as_me: failed program was:" >&5
20393 sed 's/^/| /' conftest.$ac_ext >&5
20397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20400 # Binary search between lo and hi bounds.
20401 while test "x$ac_lo" != "x$ac_hi"; do
20402 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20403 cat >conftest.$ac_ext <<_ACEOF
20406 cat confdefs.h >>conftest.$ac_ext
20407 cat >>conftest.$ac_ext <<_ACEOF
20408 /* end confdefs.h. */
20409 $ac_includes_default
20413 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
20420 rm -f conftest.$ac_objext
20421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20422 (eval $ac_compile) 2>conftest.er1
20424 grep -v '^ *+' conftest.er1 >conftest.err
20426 cat conftest.err >&5
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); } &&
20429 { ac_try='test -z "$ac_c_werror_flag"
20430 || test ! -s conftest.err'
20431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20432 (eval $ac_try) 2>&5
20434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435 (exit $ac_status); }; } &&
20436 { ac_try='test -s conftest.$ac_objext'
20437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20438 (eval $ac_try) 2>&5
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); }; }; then
20444 echo "$as_me: failed program was:" >&5
20445 sed 's/^/| /' conftest.$ac_ext >&5
20447 ac_lo=`expr '(' $ac_mid ')' + 1`
20449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20452 ?*) ac_cv_sizeof_off_t=$ac_lo;;
20453 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20454 echo "$as_me: error: in \`$ac_pwd':" >&2;}
20455 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
20456 See \`config.log' for more details." >&5
20457 echo "$as_me: error: cannot compute sizeof (off_t), 77
20458 See \`config.log' for more details." >&2;}
20459 { (exit 1); exit 1; }; }; } ;;
20462 if test "$cross_compiling" = yes; then
20463 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20464 echo "$as_me: error: in \`$ac_pwd':" >&2;}
20465 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20466 See \`config.log' for more details." >&5
20467 echo "$as_me: error: cannot run test program while cross compiling
20468 See \`config.log' for more details." >&2;}
20469 { (exit 1); exit 1; }; }; }
20471 cat >conftest.$ac_ext <<_ACEOF
20474 cat confdefs.h >>conftest.$ac_ext
20475 cat >>conftest.$ac_ext <<_ACEOF
20476 /* end confdefs.h. */
20477 $ac_includes_default
20478 long longval () { return (long) (sizeof (off_t)); }
20479 unsigned long ulongval () { return (long) (sizeof (off_t)); }
20481 #include <stdlib.h>
20486 FILE *f = fopen ("conftest.val", "w");
20489 if (((long) (sizeof (off_t))) < 0)
20491 long i = longval ();
20492 if (i != ((long) (sizeof (off_t))))
20494 fprintf (f, "%ld\n", i);
20498 unsigned long i = ulongval ();
20499 if (i != ((long) (sizeof (off_t))))
20501 fprintf (f, "%lu\n", i);
20503 exit (ferror (f) || fclose (f) != 0);
20509 rm -f conftest$ac_exeext
20510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20511 (eval $ac_link) 2>&5
20513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20516 (eval $ac_try) 2>&5
20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519 (exit $ac_status); }; }; then
20520 ac_cv_sizeof_off_t=`cat conftest.val`
20522 echo "$as_me: program exited with status $ac_status" >&5
20523 echo "$as_me: failed program was:" >&5
20524 sed 's/^/| /' conftest.$ac_ext >&5
20526 ( exit $ac_status )
20527 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20528 echo "$as_me: error: in \`$ac_pwd':" >&2;}
20529 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
20530 See \`config.log' for more details." >&5
20531 echo "$as_me: error: cannot compute sizeof (off_t), 77
20532 See \`config.log' for more details." >&2;}
20533 { (exit 1); exit 1; }; }; }
20535 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20540 ac_cv_sizeof_off_t=0
20543 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
20544 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
20545 cat >>confdefs.h <<_ACEOF
20546 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
20551 echo "$as_me:$LINENO: checking file_ptr type" >&5
20552 echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
20553 bfd_file_ptr="long"
20554 bfd_ufile_ptr="unsigned long"
20555 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
20556 -o x"${ac_cv_sizeof_off_t}" = x8; then
20557 bfd_file_ptr=BFD_HOST_64_BIT
20558 bfd_ufile_ptr=BFD_HOST_U_64_BIT
20560 echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
20561 echo "${ECHO_T}$bfd_file_ptr" >&6
20567 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
20568 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
20569 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
20570 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
20571 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
20576 for ac_header in stdlib.h unistd.h
20578 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20580 echo "$as_me:$LINENO: checking for $ac_header" >&5
20581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20583 echo $ECHO_N "(cached) $ECHO_C" >&6
20585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20586 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20588 # Is the header compilable?
20589 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20590 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20591 cat >conftest.$ac_ext <<_ACEOF
20594 cat confdefs.h >>conftest.$ac_ext
20595 cat >>conftest.$ac_ext <<_ACEOF
20596 /* end confdefs.h. */
20597 $ac_includes_default
20598 #include <$ac_header>
20600 rm -f conftest.$ac_objext
20601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20602 (eval $ac_compile) 2>conftest.er1
20604 grep -v '^ *+' conftest.er1 >conftest.err
20606 cat conftest.err >&5
20607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608 (exit $ac_status); } &&
20609 { ac_try='test -z "$ac_c_werror_flag"
20610 || test ! -s conftest.err'
20611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20612 (eval $ac_try) 2>&5
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); }; } &&
20616 { ac_try='test -s conftest.$ac_objext'
20617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20618 (eval $ac_try) 2>&5
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); }; }; then
20622 ac_header_compiler=yes
20624 echo "$as_me: failed program was:" >&5
20625 sed 's/^/| /' conftest.$ac_ext >&5
20627 ac_header_compiler=no
20629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20630 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20631 echo "${ECHO_T}$ac_header_compiler" >&6
20633 # Is the header present?
20634 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20635 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20636 cat >conftest.$ac_ext <<_ACEOF
20639 cat confdefs.h >>conftest.$ac_ext
20640 cat >>conftest.$ac_ext <<_ACEOF
20641 /* end confdefs.h. */
20642 #include <$ac_header>
20644 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20645 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20647 grep -v '^ *+' conftest.er1 >conftest.err
20649 cat conftest.err >&5
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); } >/dev/null; then
20652 if test -s conftest.err; then
20653 ac_cpp_err=$ac_c_preproc_warn_flag
20654 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20661 if test -z "$ac_cpp_err"; then
20662 ac_header_preproc=yes
20664 echo "$as_me: failed program was:" >&5
20665 sed 's/^/| /' conftest.$ac_ext >&5
20667 ac_header_preproc=no
20669 rm -f conftest.err conftest.$ac_ext
20670 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20671 echo "${ECHO_T}$ac_header_preproc" >&6
20673 # So? What about this header?
20674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20676 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20677 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20679 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20680 ac_header_preproc=yes
20683 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20684 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20685 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20686 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20687 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20688 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20689 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20690 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20692 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20693 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20694 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20697 ## ------------------------------------------ ##
20698 ## Report this to the AC_PACKAGE_NAME lists. ##
20699 ## ------------------------------------------ ##
20702 sed "s/^/$as_me: WARNING: /" >&2
20705 echo "$as_me:$LINENO: checking for $ac_header" >&5
20706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20708 echo $ECHO_N "(cached) $ECHO_C" >&6
20710 eval "$as_ac_Header=\$ac_header_preproc"
20712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20713 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20716 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20717 cat >>confdefs.h <<_ACEOF
20718 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20726 for ac_func in getpagesize
20728 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20729 echo "$as_me:$LINENO: checking for $ac_func" >&5
20730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20731 if eval "test \"\${$as_ac_var+set}\" = set"; then
20732 echo $ECHO_N "(cached) $ECHO_C" >&6
20734 cat >conftest.$ac_ext <<_ACEOF
20737 cat confdefs.h >>conftest.$ac_ext
20738 cat >>conftest.$ac_ext <<_ACEOF
20739 /* end confdefs.h. */
20740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20742 #define $ac_func innocuous_$ac_func
20744 /* System header to define __stub macros and hopefully few prototypes,
20745 which can conflict with char $ac_func (); below.
20746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20747 <limits.h> exists even on freestanding compilers. */
20750 # include <limits.h>
20752 # include <assert.h>
20757 /* Override any gcc2 internal prototype to avoid an error. */
20762 /* We use char because int might match the return type of a gcc2
20763 builtin and then its argument prototype would still apply. */
20765 /* The GNU C library defines this for functions which it implements
20766 to always fail with ENOSYS. Some functions are actually named
20767 something starting with __ and the normal name is an alias. */
20768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20771 char (*f) () = $ac_func;
20780 return f != $ac_func;
20785 rm -f conftest.$ac_objext conftest$ac_exeext
20786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20787 (eval $ac_link) 2>conftest.er1
20789 grep -v '^ *+' conftest.er1 >conftest.err
20791 cat conftest.err >&5
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); } &&
20794 { ac_try='test -z "$ac_c_werror_flag"
20795 || test ! -s conftest.err'
20796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20797 (eval $ac_try) 2>&5
20799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800 (exit $ac_status); }; } &&
20801 { ac_try='test -s conftest$ac_exeext'
20802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20803 (eval $ac_try) 2>&5
20805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806 (exit $ac_status); }; }; then
20807 eval "$as_ac_var=yes"
20809 echo "$as_me: failed program was:" >&5
20810 sed 's/^/| /' conftest.$ac_ext >&5
20812 eval "$as_ac_var=no"
20814 rm -f conftest.err conftest.$ac_objext \
20815 conftest$ac_exeext conftest.$ac_ext
20817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20818 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20819 if test `eval echo '${'$as_ac_var'}'` = yes; then
20820 cat >>confdefs.h <<_ACEOF
20821 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20827 echo "$as_me:$LINENO: checking for working mmap" >&5
20828 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
20829 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20830 echo $ECHO_N "(cached) $ECHO_C" >&6
20832 if test "$cross_compiling" = yes; then
20833 ac_cv_func_mmap_fixed_mapped=no
20835 cat >conftest.$ac_ext <<_ACEOF
20838 cat confdefs.h >>conftest.$ac_ext
20839 cat >>conftest.$ac_ext <<_ACEOF
20840 /* end confdefs.h. */
20841 $ac_includes_default
20842 /* malloc might have been renamed as rpl_malloc. */
20845 /* Thanks to Mike Haertel and Jim Avera for this test.
20846 Here is a matrix of mmap possibilities:
20847 mmap private not fixed
20848 mmap private fixed at somewhere currently unmapped
20849 mmap private fixed at somewhere already mapped
20850 mmap shared not fixed
20851 mmap shared fixed at somewhere currently unmapped
20852 mmap shared fixed at somewhere already mapped
20853 For private mappings, we should verify that changes cannot be read()
20854 back from the file, nor mmap's back from the file at a different
20855 address. (There have been systems where private was not correctly
20856 implemented like the infamous i386 svr4.0, and systems where the
20857 VM page cache was not coherent with the file system buffer cache
20858 like early versions of FreeBSD and possibly contemporary NetBSD.)
20859 For shared mappings, we should conversely verify that changes get
20860 propagated back to all the places they're supposed to be.
20862 Grep wants private fixed already mapped.
20863 The main things grep needs to know about mmap are:
20864 * does it exist and is it safe to write into the mmap'd area
20865 * how to use it (BSD variants) */
20868 #include <sys/mman.h>
20870 #if !STDC_HEADERS && !HAVE_STDLIB_H
20874 /* This mess was copied from the GNU getpagesize.h. */
20875 #if !HAVE_GETPAGESIZE
20876 /* Assume that all systems that can run configure have sys/param.h. */
20877 # if !HAVE_SYS_PARAM_H
20878 # define HAVE_SYS_PARAM_H 1
20881 # ifdef _SC_PAGESIZE
20882 # define getpagesize() sysconf(_SC_PAGESIZE)
20883 # else /* no _SC_PAGESIZE */
20884 # if HAVE_SYS_PARAM_H
20885 # include <sys/param.h>
20886 # ifdef EXEC_PAGESIZE
20887 # define getpagesize() EXEC_PAGESIZE
20888 # else /* no EXEC_PAGESIZE */
20890 # define getpagesize() NBPG * CLSIZE
20893 # endif /* no CLSIZE */
20894 # else /* no NBPG */
20896 # define getpagesize() NBPC
20897 # else /* no NBPC */
20899 # define getpagesize() PAGESIZE
20900 # endif /* PAGESIZE */
20901 # endif /* no NBPC */
20902 # endif /* no NBPG */
20903 # endif /* no EXEC_PAGESIZE */
20904 # else /* no HAVE_SYS_PARAM_H */
20905 # define getpagesize() 8192 /* punt totally */
20906 # endif /* no HAVE_SYS_PARAM_H */
20907 # endif /* no _SC_PAGESIZE */
20909 #endif /* no HAVE_GETPAGESIZE */
20914 char *data, *data2, *data3;
20918 pagesize = getpagesize ();
20920 /* First, make a file with some known garbage in it. */
20921 data = (char *) malloc (pagesize);
20924 for (i = 0; i < pagesize; ++i)
20925 *(data + i) = rand ();
20927 fd = creat ("conftest.mmap", 0600);
20930 if (write (fd, data, pagesize) != pagesize)
20934 /* Next, try to mmap the file at a fixed address which already has
20935 something else allocated at it. If we can, also make sure that
20936 we see the same garbage. */
20937 fd = open ("conftest.mmap", O_RDWR);
20940 data2 = (char *) malloc (2 * pagesize);
20943 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
20944 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20945 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20947 for (i = 0; i < pagesize; ++i)
20948 if (*(data + i) != *(data2 + i))
20951 /* Finally, make sure that changes to the mapped area do not
20952 percolate back to the file as seen by read(). (This is a bug on
20953 some variants of i386 svr4.0.) */
20954 for (i = 0; i < pagesize; ++i)
20955 *(data2 + i) = *(data2 + i) + 1;
20956 data3 = (char *) malloc (pagesize);
20959 if (read (fd, data3, pagesize) != pagesize)
20961 for (i = 0; i < pagesize; ++i)
20962 if (*(data + i) != *(data3 + i))
20968 rm -f conftest$ac_exeext
20969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20970 (eval $ac_link) 2>&5
20972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20975 (eval $ac_try) 2>&5
20977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978 (exit $ac_status); }; }; then
20979 ac_cv_func_mmap_fixed_mapped=yes
20981 echo "$as_me: program exited with status $ac_status" >&5
20982 echo "$as_me: failed program was:" >&5
20983 sed 's/^/| /' conftest.$ac_ext >&5
20985 ( exit $ac_status )
20986 ac_cv_func_mmap_fixed_mapped=no
20988 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20991 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20992 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
20993 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20995 cat >>confdefs.h <<\_ACEOF
20996 #define HAVE_MMAP 1
21000 rm -f conftest.mmap
21004 for ac_func in madvise mprotect
21006 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21007 echo "$as_me:$LINENO: checking for $ac_func" >&5
21008 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21009 if eval "test \"\${$as_ac_var+set}\" = set"; then
21010 echo $ECHO_N "(cached) $ECHO_C" >&6
21012 cat >conftest.$ac_ext <<_ACEOF
21015 cat confdefs.h >>conftest.$ac_ext
21016 cat >>conftest.$ac_ext <<_ACEOF
21017 /* end confdefs.h. */
21018 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21020 #define $ac_func innocuous_$ac_func
21022 /* System header to define __stub macros and hopefully few prototypes,
21023 which can conflict with char $ac_func (); below.
21024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21025 <limits.h> exists even on freestanding compilers. */
21028 # include <limits.h>
21030 # include <assert.h>
21035 /* Override any gcc2 internal prototype to avoid an error. */
21040 /* We use char because int might match the return type of a gcc2
21041 builtin and then its argument prototype would still apply. */
21043 /* The GNU C library defines this for functions which it implements
21044 to always fail with ENOSYS. Some functions are actually named
21045 something starting with __ and the normal name is an alias. */
21046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21049 char (*f) () = $ac_func;
21058 return f != $ac_func;
21063 rm -f conftest.$ac_objext conftest$ac_exeext
21064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21065 (eval $ac_link) 2>conftest.er1
21067 grep -v '^ *+' conftest.er1 >conftest.err
21069 cat conftest.err >&5
21070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071 (exit $ac_status); } &&
21072 { ac_try='test -z "$ac_c_werror_flag"
21073 || test ! -s conftest.err'
21074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21075 (eval $ac_try) 2>&5
21077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078 (exit $ac_status); }; } &&
21079 { ac_try='test -s conftest$ac_exeext'
21080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21081 (eval $ac_try) 2>&5
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); }; }; then
21085 eval "$as_ac_var=yes"
21087 echo "$as_me: failed program was:" >&5
21088 sed 's/^/| /' conftest.$ac_ext >&5
21090 eval "$as_ac_var=no"
21092 rm -f conftest.err conftest.$ac_objext \
21093 conftest$ac_exeext conftest.$ac_ext
21095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21096 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21097 if test `eval echo '${'$as_ac_var'}'` = yes; then
21098 cat >>confdefs.h <<_ACEOF
21099 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21105 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
21107 cat >>confdefs.h <<\_ACEOF
21113 rm -f doc/config.status
21114 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
21117 ac_config_commands="$ac_config_commands default"
21124 cat >confcache <<\_ACEOF
21125 # This file is a shell script that caches the results of configure
21126 # tests run on this system so they can be shared between configure
21127 # scripts and configure runs, see configure's option --config-cache.
21128 # It is not useful on other systems. If it contains results you don't
21129 # want to keep, you may remove or edit it.
21131 # config.status only pays attention to the cache file if you give it
21132 # the --recheck option to rerun configure.
21134 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21135 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21136 # following values.
21140 # The following way of writing the cache mishandles newlines in values,
21141 # but we know of no workaround that is simple, portable, and efficient.
21142 # So, don't put newlines in cache variables' values.
21143 # Ultrix sh set writes to stderr and can't be redirected directly,
21144 # and sets the high bit in the cache file unless we assign to the vars.
21147 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21149 # `set' does not quote correctly, so add quotes (double-quote
21150 # substitution turns \\\\ into \\, and sed turns \\ into \).
21153 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21156 # `set' quotes correctly as required by POSIX, so do not add quotes.
21158 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21165 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21167 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21169 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21170 if test -w $cache_file; then
21171 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21172 cat confcache >$cache_file
21174 echo "not updating unwritable cache $cache_file"
21179 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21180 # Let make expand exec_prefix.
21181 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21183 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21184 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21185 # trailing colons and then remove the whole line if VPATH becomes empty
21186 # (actually we leave an empty line to preserve line numbers).
21187 if test "x$srcdir" = x.; then
21188 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21189 s/:*\$(srcdir):*/:/;
21190 s/:*\${srcdir}:*/:/;
21192 s/^\([^=]*=[ ]*\):*/\1/;
21198 DEFS=-DHAVE_CONFIG_H
21202 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21203 # 1. Remove the extension, and $U if already installed.
21204 ac_i=`echo "$ac_i" |
21205 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21207 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21208 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21210 LIBOBJS=$ac_libobjs
21212 LTLIBOBJS=$ac_ltlibobjs
21215 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21216 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21217 Usually this means the macro was only invoked conditionally." >&5
21218 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21219 Usually this means the macro was only invoked conditionally." >&2;}
21220 { (exit 1); exit 1; }; }
21222 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21223 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21224 Usually this means the macro was only invoked conditionally." >&5
21225 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21226 Usually this means the macro was only invoked conditionally." >&2;}
21227 { (exit 1); exit 1; }; }
21229 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21230 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21231 Usually this means the macro was only invoked conditionally." >&5
21232 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21233 Usually this means the macro was only invoked conditionally." >&2;}
21234 { (exit 1); exit 1; }; }
21236 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
21237 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
21238 Usually this means the macro was only invoked conditionally." >&5
21239 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
21240 Usually this means the macro was only invoked conditionally." >&2;}
21241 { (exit 1); exit 1; }; }
21243 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
21244 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
21245 Usually this means the macro was only invoked conditionally." >&5
21246 echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
21247 Usually this means the macro was only invoked conditionally." >&2;}
21248 { (exit 1); exit 1; }; }
21251 : ${CONFIG_STATUS=./config.status}
21252 ac_clean_files_save=$ac_clean_files
21253 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21254 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21255 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21256 cat >$CONFIG_STATUS <<_ACEOF
21258 # Generated by $as_me.
21259 # Run this file to recreate the current configuration.
21260 # Compiler output produced by configure, useful for debugging
21261 # configure, is in config.log if it exists.
21264 ac_cs_recheck=false
21266 SHELL=\${CONFIG_SHELL-$SHELL}
21269 cat >>$CONFIG_STATUS <<\_ACEOF
21270 ## --------------------- ##
21271 ## M4sh Initialization. ##
21272 ## --------------------- ##
21274 # Be Bourne compatible
21275 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21278 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21279 # is contrary to our usage. Disable this feature.
21280 alias -g '${1+"$@"}'='"$@"'
21281 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21284 DUALCASE=1; export DUALCASE # for MKS sh
21286 # Support unset when possible.
21287 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21294 # Work around bugs in pre-3.0 UWIN ksh.
21295 $as_unset ENV MAIL MAILPATH
21302 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21303 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21304 LC_TELEPHONE LC_TIME
21306 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21307 eval $as_var=C; export $as_var
21313 # Required to use basename.
21314 if expr a : '\(a\)' >/dev/null 2>&1; then
21320 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21321 as_basename=basename
21327 # Name of the executable.
21328 as_me=`$as_basename "$0" ||
21329 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21330 X"$0" : 'X\(//\)$' \| \
21331 X"$0" : 'X\(/\)$' \| \
21332 . : '\(.\)' 2>/dev/null ||
21334 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21335 /^X\/\(\/\/\)$/{ s//\1/; q; }
21336 /^X\/\(\/\).*/{ s//\1/; q; }
21340 # PATH needs CR, and LINENO needs CR and PATH.
21341 # Avoid depending upon Character Ranges.
21342 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21343 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21344 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21345 as_cr_digits='0123456789'
21346 as_cr_alnum=$as_cr_Letters$as_cr_digits
21348 # The user is always right.
21349 if test "${PATH_SEPARATOR+set}" != set; then
21350 echo "#! /bin/sh" >conf$$.sh
21351 echo "exit 0" >>conf$$.sh
21353 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21362 as_lineno_1=$LINENO
21363 as_lineno_2=$LINENO
21364 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21365 test "x$as_lineno_1" != "x$as_lineno_2" &&
21366 test "x$as_lineno_3" = "x$as_lineno_2" || {
21367 # Find who we are. Look in the path if we contain no path at all
21370 *[\\/]* ) as_myself=$0 ;;
21371 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21372 for as_dir in $PATH
21375 test -z "$as_dir" && as_dir=.
21376 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21381 # We did not find ourselves, most probably we were run as `sh COMMAND'
21382 # in which case we are not to be found in the path.
21383 if test "x$as_myself" = x; then
21386 if test ! -f "$as_myself"; then
21387 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21388 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21389 { (exit 1); exit 1; }; }
21391 case $CONFIG_SHELL in
21393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21394 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21397 test -z "$as_dir" && as_dir=.
21398 for as_base in sh bash ksh sh5; do
21401 if ("$as_dir/$as_base" -c '
21402 as_lineno_1=$LINENO
21403 as_lineno_2=$LINENO
21404 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21405 test "x$as_lineno_1" != "x$as_lineno_2" &&
21406 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21407 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21408 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21409 CONFIG_SHELL=$as_dir/$as_base
21410 export CONFIG_SHELL
21411 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21419 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21420 # uniformly replaced by the line number. The first 'sed' inserts a
21421 # line-number line before each line; the second 'sed' does the real
21422 # work. The second script uses 'N' to pair each line-number line
21423 # with the numbered line, and appends trailing '-' during
21424 # substitution so that $LINENO is not a special case at line end.
21425 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21426 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21427 sed '=' <$as_myself |
21432 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21435 s,^['$as_cr_digits']*\n,,
21436 ' >$as_me.lineno &&
21437 chmod +x $as_me.lineno ||
21438 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21439 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21440 { (exit 1); exit 1; }; }
21442 # Don't try to exec as it changes $[0], causing all sort of problems
21443 # (the dirname of $[0] is not the place where we might find the
21444 # original and so on. Autoconf is especially sensible to this).
21446 # Exit status is that of the last command.
21451 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21452 *c*,-n*) ECHO_N= ECHO_C='
21454 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21455 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21458 if expr a : '\(a\)' >/dev/null 2>&1; then
21464 rm -f conf$$ conf$$.exe conf$$.file
21466 if ln -s conf$$.file conf$$ 2>/dev/null; then
21467 # We could just check for DJGPP; but this test a) works b) is more generic
21468 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21469 if test -f conf$$.exe; then
21470 # Don't use ln at all; we don't have any links
21475 elif ln conf$$.file conf$$ 2>/dev/null; then
21480 rm -f conf$$ conf$$.exe conf$$.file
21482 if mkdir -p . 2>/dev/null; then
21485 test -d ./-p && rmdir ./-p
21489 as_executable_p="test -f"
21491 # Sed expression to map a string onto a valid CPP name.
21492 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21494 # Sed expression to map a string onto a valid variable name.
21495 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21499 # We need space, tab and new line, in precisely that order.
21509 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21510 # report actual input values of CONFIG_FILES etc. instead of their
21511 # values after options handling. Logging --version etc. is OK.
21515 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21516 ## Running $as_me. ##
21521 This file was extended by $as_me, which was
21522 generated by GNU Autoconf 2.59. Invocation command line was
21524 CONFIG_FILES = $CONFIG_FILES
21525 CONFIG_HEADERS = $CONFIG_HEADERS
21526 CONFIG_LINKS = $CONFIG_LINKS
21527 CONFIG_COMMANDS = $CONFIG_COMMANDS
21531 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21535 # Files that config.status was made for.
21536 if test -n "$ac_config_files"; then
21537 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21540 if test -n "$ac_config_headers"; then
21541 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21544 if test -n "$ac_config_links"; then
21545 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21548 if test -n "$ac_config_commands"; then
21549 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21552 cat >>$CONFIG_STATUS <<\_ACEOF
21555 \`$as_me' instantiates files from templates according to the
21556 current configuration.
21558 Usage: $0 [OPTIONS] [FILE]...
21560 -h, --help print this help, then exit
21561 -V, --version print version number, then exit
21562 -q, --quiet do not print progress messages
21563 -d, --debug don't remove temporary files
21564 --recheck update $as_me by reconfiguring in the same conditions
21565 --file=FILE[:TEMPLATE]
21566 instantiate the configuration file FILE
21567 --header=FILE[:TEMPLATE]
21568 instantiate the configuration header FILE
21570 Configuration files:
21573 Configuration headers:
21576 Configuration commands:
21579 Report bugs to <bug-autoconf@gnu.org>."
21582 cat >>$CONFIG_STATUS <<_ACEOF
21585 configured by $0, generated by GNU Autoconf 2.59,
21586 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21588 Copyright (C) 2003 Free Software Foundation, Inc.
21589 This config.status script is free software; the Free Software Foundation
21590 gives unlimited permission to copy, distribute and modify it."
21595 cat >>$CONFIG_STATUS <<\_ACEOF
21596 # If no file are specified by the user, then we need to provide default
21597 # value. By we need to know if files were specified by the user.
21603 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21604 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21612 *) # This is not an option, so the user has probably given explicit
21615 ac_need_defaults=false;;
21619 # Handling of the options.
21621 cat >>$CONFIG_STATUS <<\_ACEOF
21622 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21624 --version | --vers* | -V )
21625 echo "$ac_cs_version"; exit 0 ;;
21627 # Conflict between --help and --header
21628 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21629 Try \`$0 --help' for more information." >&5
21630 echo "$as_me: error: ambiguous option: $1
21631 Try \`$0 --help' for more information." >&2;}
21632 { (exit 1); exit 1; }; };;
21633 --help | --hel | -h )
21634 echo "$ac_cs_usage"; exit 0 ;;
21635 --debug | --d* | -d )
21637 --file | --fil | --fi | --f )
21639 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21640 ac_need_defaults=false;;
21641 --header | --heade | --head | --hea )
21643 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21644 ac_need_defaults=false;;
21645 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21646 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21649 # This is an error.
21650 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21651 Try \`$0 --help' for more information." >&5
21652 echo "$as_me: error: unrecognized option: $1
21653 Try \`$0 --help' for more information." >&2;}
21654 { (exit 1); exit 1; }; } ;;
21656 *) ac_config_targets="$ac_config_targets $1" ;;
21662 ac_configure_extra_args=
21664 if $ac_cs_silent; then
21666 ac_configure_extra_args="$ac_configure_extra_args --silent"
21670 cat >>$CONFIG_STATUS <<_ACEOF
21671 if \$ac_cs_recheck; then
21672 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21673 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21678 cat >>$CONFIG_STATUS <<_ACEOF
21680 # INIT-COMMANDS section.
21683 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21686 # The HP-UX ksh and POSIX shell print the target directory to stdout
21687 # if CDPATH is set.
21688 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21690 sed_quote_subst='$sed_quote_subst'
21691 double_quote_subst='$double_quote_subst'
21692 delay_variable_subst='$delay_variable_subst'
21693 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
21694 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
21695 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
21696 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
21697 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
21698 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
21699 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
21700 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
21701 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
21702 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
21703 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
21704 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
21705 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
21706 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
21707 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
21708 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
21709 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
21710 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
21711 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
21712 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
21713 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
21714 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
21715 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
21716 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
21717 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
21718 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
21719 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
21720 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21721 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
21722 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
21723 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
21724 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21725 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
21726 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
21727 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21728 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21729 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21730 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
21731 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21732 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
21733 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
21734 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
21735 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
21736 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"`'
21737 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
21738 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
21739 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
21740 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
21741 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
21742 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
21743 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
21744 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
21745 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
21746 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
21747 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
21748 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21749 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21750 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
21751 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
21752 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21753 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21754 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
21755 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21756 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21757 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21758 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21759 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21760 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21761 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
21762 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21763 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21764 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21765 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
21766 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
21767 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
21768 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
21769 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
21770 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21771 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
21772 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
21773 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
21774 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
21775 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
21776 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21777 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21778 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21779 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21780 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
21781 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
21782 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
21783 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
21784 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
21785 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21786 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21787 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
21788 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21789 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
21790 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21791 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21792 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21793 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21794 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
21795 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
21796 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21797 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21798 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
21799 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
21800 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
21801 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
21802 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
21803 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
21806 LTCFLAGS='$LTCFLAGS'
21807 compiler='$compiler_DEFAULT'
21809 # Quote evaled strings.
21820 deplibs_check_method \
21829 lt_cv_sys_global_symbol_pipe \
21830 lt_cv_sys_global_symbol_to_cdecl \
21831 lt_cv_sys_global_symbol_to_c_name_address \
21834 lt_prog_compiler_no_builtin_flag \
21835 lt_prog_compiler_wl \
21836 lt_prog_compiler_pic \
21837 lt_prog_compiler_static \
21838 lt_cv_prog_compiler_c_o \
21841 export_dynamic_flag_spec \
21842 whole_archive_flag_spec \
21843 compiler_needs_object \
21845 allow_undefined_flag \
21846 no_undefined_flag \
21847 hardcode_libdir_flag_spec \
21848 hardcode_libdir_flag_spec_ld \
21849 hardcode_libdir_separator \
21854 variables_saved_for_relink \
21856 library_names_spec \
21861 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21862 *[\\\\\\\`\\"\\\$]*)
21863 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21866 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21871 # Double-quote double-evaled strings.
21872 for var in reload_cmds \
21873 old_postinstall_cmds \
21874 old_postuninstall_cmds \
21876 extract_expsyms_cmds \
21877 old_archive_from_new_cmds \
21878 old_archive_from_expsyms_cmds \
21880 archive_expsym_cmds \
21882 module_expsym_cmds \
21883 export_symbols_cmds \
21886 postuninstall_cmds \
21888 sys_lib_search_path_spec \
21889 sys_lib_dlsearch_path_spec; do
21890 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21891 *[\\\\\\\`\\"\\\$]*)
21892 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21895 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21900 # Fix-up fallback echo if it was mangled by the above quoting rules.
21902 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
21906 ac_aux_dir='$ac_aux_dir'
21907 xsi_shell='$xsi_shell'
21908 lt_shell_append='$lt_shell_append'
21910 # See if we are running on zsh, and set the options which allow our
21911 # commands through without removal of \ escapes INIT.
21912 if test -n "\${ZSH_VERSION+set}" ; then
21913 setopt NO_GLOB_SUBST
21919 TIMESTAMP='$TIMESTAMP'
21925 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
21926 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
21928 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
21929 # Capture the value of LINGUAS because we need it to compute CATALOGS.
21930 LINGUAS="${LINGUAS-%UNSET%}"
21935 acx_cv_header_stdint="$acx_cv_header_stdint"
21936 acx_cv_type_int8_t="$acx_cv_type_int8_t"
21937 acx_cv_type_int16_t="$acx_cv_type_int16_t"
21938 acx_cv_type_int32_t="$acx_cv_type_int32_t"
21939 acx_cv_type_int64_t="$acx_cv_type_int64_t"
21940 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
21941 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
21942 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
21943 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
21944 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
21945 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
21946 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
21947 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
21948 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
21956 cat >>$CONFIG_STATUS <<\_ACEOF
21957 for ac_config_target in $ac_config_targets
21959 case "$ac_config_target" in
21960 # Handling of arguments.
21961 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21962 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21963 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
21964 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
21965 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21966 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21967 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
21968 "bfd_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
21969 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21970 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
21971 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21972 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21973 { (exit 1); exit 1; }; };;
21977 # If the user did not use the arguments to specify the items to instantiate,
21978 # then the envvar interface is used. Set only those that are not.
21979 # We use the long form for the default assignment because of an extremely
21980 # bizarre bug on SunOS 4.1.3.
21981 if $ac_need_defaults; then
21982 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21983 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21984 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21987 # Have a temporary directory for convenience. Make it in the build tree
21988 # simply because there is no reason to put it here, and in addition,
21989 # creating and moving files from /tmp can sometimes cause problems.
21990 # Create a temporary directory, and hook for its removal unless debugging.
21993 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21994 trap '{ (exit 1); exit 1; }' 1 2 13 15
21997 # Create a (secure) tmp directory for tmp files.
22000 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22001 test -n "$tmp" && test -d "$tmp"
22004 tmp=./confstat$$-$RANDOM
22005 (umask 077 && mkdir $tmp)
22008 echo "$me: cannot create a temporary directory in ." >&2
22009 { (exit 1); exit 1; }
22014 cat >>$CONFIG_STATUS <<_ACEOF
22017 # CONFIG_FILES section.
22020 # No need to generate the scripts if there are no CONFIG_FILES.
22021 # This happens for instance when ./config.status config.h
22022 if test -n "\$CONFIG_FILES"; then
22023 # Protect against being on the right side of a sed subst in config.status.
22024 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22025 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22026 s,@SHELL@,$SHELL,;t t
22027 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22028 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22029 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22030 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22031 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22032 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22033 s,@exec_prefix@,$exec_prefix,;t t
22034 s,@prefix@,$prefix,;t t
22035 s,@program_transform_name@,$program_transform_name,;t t
22036 s,@bindir@,$bindir,;t t
22037 s,@sbindir@,$sbindir,;t t
22038 s,@libexecdir@,$libexecdir,;t t
22039 s,@datadir@,$datadir,;t t
22040 s,@sysconfdir@,$sysconfdir,;t t
22041 s,@sharedstatedir@,$sharedstatedir,;t t
22042 s,@localstatedir@,$localstatedir,;t t
22043 s,@libdir@,$libdir,;t t
22044 s,@includedir@,$includedir,;t t
22045 s,@oldincludedir@,$oldincludedir,;t t
22046 s,@infodir@,$infodir,;t t
22047 s,@mandir@,$mandir,;t t
22048 s,@build_alias@,$build_alias,;t t
22049 s,@host_alias@,$host_alias,;t t
22050 s,@target_alias@,$target_alias,;t t
22051 s,@DEFS@,$DEFS,;t t
22052 s,@ECHO_C@,$ECHO_C,;t t
22053 s,@ECHO_N@,$ECHO_N,;t t
22054 s,@ECHO_T@,$ECHO_T,;t t
22055 s,@LIBS@,$LIBS,;t t
22056 s,@build@,$build,;t t
22057 s,@build_cpu@,$build_cpu,;t t
22058 s,@build_vendor@,$build_vendor,;t t
22059 s,@build_os@,$build_os,;t t
22060 s,@host@,$host,;t t
22061 s,@host_cpu@,$host_cpu,;t t
22062 s,@host_vendor@,$host_vendor,;t t
22063 s,@host_os@,$host_os,;t t
22064 s,@target@,$target,;t t
22065 s,@target_cpu@,$target_cpu,;t t
22066 s,@target_vendor@,$target_vendor,;t t
22067 s,@target_os@,$target_os,;t t
22069 s,@CFLAGS@,$CFLAGS,;t t
22070 s,@LDFLAGS@,$LDFLAGS,;t t
22071 s,@CPPFLAGS@,$CPPFLAGS,;t t
22072 s,@ac_ct_CC@,$ac_ct_CC,;t t
22073 s,@EXEEXT@,$EXEEXT,;t t
22074 s,@OBJEXT@,$OBJEXT,;t t
22075 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22076 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22077 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22078 s,@CYGPATH_W@,$CYGPATH_W,;t t
22079 s,@PACKAGE@,$PACKAGE,;t t
22080 s,@VERSION@,$VERSION,;t t
22081 s,@ACLOCAL@,$ACLOCAL,;t t
22082 s,@AUTOCONF@,$AUTOCONF,;t t
22083 s,@AUTOMAKE@,$AUTOMAKE,;t t
22084 s,@AUTOHEADER@,$AUTOHEADER,;t t
22085 s,@MAKEINFO@,$MAKEINFO,;t t
22086 s,@install_sh@,$install_sh,;t t
22087 s,@STRIP@,$STRIP,;t t
22088 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22089 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22090 s,@mkdir_p@,$mkdir_p,;t t
22092 s,@SET_MAKE@,$SET_MAKE,;t t
22093 s,@am__leading_dot@,$am__leading_dot,;t t
22094 s,@AMTAR@,$AMTAR,;t t
22095 s,@am__tar@,$am__tar,;t t
22096 s,@am__untar@,$am__untar,;t t
22097 s,@DEPDIR@,$DEPDIR,;t t
22098 s,@am__include@,$am__include,;t t
22099 s,@am__quote@,$am__quote,;t t
22100 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22101 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22102 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22103 s,@CCDEPMODE@,$CCDEPMODE,;t t
22104 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22105 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22107 s,@ac_ct_AR@,$ac_ct_AR,;t t
22108 s,@RANLIB@,$RANLIB,;t t
22109 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22111 s,@EGREP@,$EGREP,;t t
22112 s,@LIBTOOL@,$LIBTOOL,;t t
22114 s,@FGREP@,$FGREP,;t t
22115 s,@GREP@,$GREP,;t t
22117 s,@DUMPBIN@,$DUMPBIN,;t t
22118 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
22120 s,@LN_S@,$LN_S,;t t
22121 s,@lt_ECHO@,$lt_ECHO,;t t
22122 s,@DEBUGDIR@,$DEBUGDIR,;t t
22123 s,@PKGVERSION@,$PKGVERSION,;t t
22124 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
22125 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
22126 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
22127 s,@NO_WERROR@,$NO_WERROR,;t t
22128 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22129 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22130 s,@MAINT@,$MAINT,;t t
22131 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
22132 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
22133 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
22134 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
22135 s,@host_noncanonical@,$host_noncanonical,;t t
22136 s,@target_noncanonical@,$target_noncanonical,;t t
22137 s,@bfdlibdir@,$bfdlibdir,;t t
22138 s,@bfdincludedir@,$bfdincludedir,;t t
22139 s,@USE_NLS@,$USE_NLS,;t t
22140 s,@LIBINTL@,$LIBINTL,;t t
22141 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
22142 s,@INCINTL@,$INCINTL,;t t
22143 s,@XGETTEXT@,$XGETTEXT,;t t
22144 s,@GMSGFMT@,$GMSGFMT,;t t
22145 s,@POSUB@,$POSUB,;t t
22146 s,@CATALOGS@,$CATALOGS,;t t
22147 s,@DATADIRNAME@,$DATADIRNAME,;t t
22148 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
22149 s,@GENCAT@,$GENCAT,;t t
22150 s,@CATOBJEXT@,$CATOBJEXT,;t t
22151 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
22152 s,@MSGFMT@,$MSGFMT,;t t
22153 s,@MSGMERGE@,$MSGMERGE,;t t
22154 s,@HDEFINES@,$HDEFINES,;t t
22155 s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
22156 s,@BFD_HOST_64BIT_LONG_LONG@,$BFD_HOST_64BIT_LONG_LONG,;t t
22157 s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
22158 s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
22159 s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
22160 s,@BFD_HOSTPTR_T@,$BFD_HOSTPTR_T,;t t
22161 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
22162 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
22163 s,@COREFILE@,$COREFILE,;t t
22164 s,@COREFLAG@,$COREFLAG,;t t
22165 s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
22166 s,@WIN32LIBADD@,$WIN32LIBADD,;t t
22167 s,@TDEFINES@,$TDEFINES,;t t
22168 s,@wordsize@,$wordsize,;t t
22169 s,@bfd64_libs@,$bfd64_libs,;t t
22170 s,@all_backends@,$all_backends,;t t
22171 s,@bfd_backends@,$bfd_backends,;t t
22172 s,@bfd_machines@,$bfd_machines,;t t
22173 s,@bfd_default_target_size@,$bfd_default_target_size,;t t
22174 s,@bfd_file_ptr@,$bfd_file_ptr,;t t
22175 s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
22176 s,@tdefaults@,$tdefaults,;t t
22177 s,@datarootdir@,$datarootdir,;t t
22178 s,@docdir@,$docdir,;t t
22179 s,@htmldir@,$htmldir,;t t
22180 s,@LIBOBJS@,$LIBOBJS,;t t
22181 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22186 cat >>$CONFIG_STATUS <<\_ACEOF
22187 # Split the substitutions into bite-sized pieces for seds with
22188 # small command number limits, like on Digital OSF/1 and HP-UX.
22189 ac_max_sed_lines=48
22190 ac_sed_frag=1 # Number of current file.
22191 ac_beg=1 # First line for current file.
22192 ac_end=$ac_max_sed_lines # Line after last line for current file.
22195 while $ac_more_lines; do
22196 if test $ac_beg -gt 1; then
22197 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22199 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22201 if test ! -s $tmp/subs.frag; then
22202 ac_more_lines=false
22204 # The purpose of the label and of the branching condition is to
22205 # speed up the sed processing (if there are no `@' at all, there
22206 # is no need to browse any of the substitutions).
22207 # These are the two extra sed commands mentioned above.
22209 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22210 if test -z "$ac_sed_cmds"; then
22211 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22213 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22215 ac_sed_frag=`expr $ac_sed_frag + 1`
22217 ac_end=`expr $ac_end + $ac_max_sed_lines`
22220 if test -z "$ac_sed_cmds"; then
22223 fi # test -n "$CONFIG_FILES"
22226 cat >>$CONFIG_STATUS <<\_ACEOF
22227 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22228 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22230 - | *:- | *:-:* ) # input from stdin
22232 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22233 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22234 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22235 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22236 * ) ac_file_in=$ac_file.in ;;
22239 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22240 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22241 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22242 X"$ac_file" : 'X\(//\)[^/]' \| \
22243 X"$ac_file" : 'X\(//\)$' \| \
22244 X"$ac_file" : 'X\(/\)' \| \
22245 . : '\(.\)' 2>/dev/null ||
22247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22248 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22249 /^X\(\/\/\)$/{ s//\1/; q; }
22250 /^X\(\/\).*/{ s//\1/; q; }
22252 { if $as_mkdir_p; then
22257 while test ! -d "$as_dir"; do
22258 as_dirs="$as_dir $as_dirs"
22259 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22260 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22261 X"$as_dir" : 'X\(//\)[^/]' \| \
22262 X"$as_dir" : 'X\(//\)$' \| \
22263 X"$as_dir" : 'X\(/\)' \| \
22264 . : '\(.\)' 2>/dev/null ||
22266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22267 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22268 /^X\(\/\/\)$/{ s//\1/; q; }
22269 /^X\(\/\).*/{ s//\1/; q; }
22272 test ! -n "$as_dirs" || mkdir $as_dirs
22273 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22274 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22275 { (exit 1); exit 1; }; }; }
22279 if test "$ac_dir" != .; then
22280 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22281 # A "../" for each directory in $ac_dir_suffix.
22282 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22284 ac_dir_suffix= ac_top_builddir=
22288 .) # No --srcdir option. We are building in place.
22290 if test -z "$ac_top_builddir"; then
22293 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22295 [\\/]* | ?:[\\/]* ) # Absolute path.
22296 ac_srcdir=$srcdir$ac_dir_suffix;
22297 ac_top_srcdir=$srcdir ;;
22298 *) # Relative path.
22299 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22300 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22303 # Do not use `cd foo && pwd` to compute absolute paths, because
22304 # the directories may not exist.
22306 .) ac_abs_builddir="$ac_dir";;
22309 .) ac_abs_builddir=`pwd`;;
22310 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22311 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22314 case $ac_abs_builddir in
22315 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22317 case ${ac_top_builddir}. in
22318 .) ac_abs_top_builddir=$ac_abs_builddir;;
22319 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22320 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22323 case $ac_abs_builddir in
22324 .) ac_abs_srcdir=$ac_srcdir;;
22327 .) ac_abs_srcdir=$ac_abs_builddir;;
22328 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22329 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22332 case $ac_abs_builddir in
22333 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22335 case $ac_top_srcdir in
22336 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22337 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22338 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22344 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22345 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22348 if test x"$ac_file" != x-; then
22349 { echo "$as_me:$LINENO: creating $ac_file" >&5
22350 echo "$as_me: creating $ac_file" >&6;}
22353 # Let's still pretend it is `configure' which instantiates (i.e., don't
22354 # use $as_me), people would be surprised to read:
22355 # /* config.h. Generated by config.status. */
22356 if test x"$ac_file" = x-; then
22359 configure_input="$ac_file. "
22361 configure_input=$configure_input"Generated from `echo $ac_file_in |
22362 sed 's,.*/,,'` by configure."
22364 # First look for the input files in the build tree, otherwise in the
22366 ac_file_inputs=`IFS=:
22367 for f in $ac_file_in; do
22369 -) echo $tmp/stdin ;;
22371 # Absolute (can't be DOS-style, as IFS=:)
22372 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22373 echo "$as_me: error: cannot find input file: $f" >&2;}
22374 { (exit 1); exit 1; }; }
22377 if test -f "$f"; then
22380 elif test -f "$srcdir/$f"; then
22385 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22386 echo "$as_me: error: cannot find input file: $f" >&2;}
22387 { (exit 1); exit 1; }; }
22390 done` || { (exit 1); exit 1; }
22392 cat >>$CONFIG_STATUS <<_ACEOF
22396 cat >>$CONFIG_STATUS <<\_ACEOF
22398 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22399 s,@configure_input@,$configure_input,;t t
22400 s,@srcdir@,$ac_srcdir,;t t
22401 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22402 s,@top_srcdir@,$ac_top_srcdir,;t t
22403 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22404 s,@builddir@,$ac_builddir,;t t
22405 s,@abs_builddir@,$ac_abs_builddir,;t t
22406 s,@top_builddir@,$ac_top_builddir,;t t
22407 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22408 s,@INSTALL@,$ac_INSTALL,;t t
22409 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22411 if test x"$ac_file" != x-; then
22412 mv $tmp/out $ac_file
22420 cat >>$CONFIG_STATUS <<\_ACEOF
22423 # CONFIG_HEADER section.
22426 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22427 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22429 # ac_d sets the value in "#define NAME VALUE" lines.
22430 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22431 ac_dB='[ ].*$,\1#\2'
22434 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22435 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22436 ac_uB='$,\1#\2define\3'
22440 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22441 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22443 - | *:- | *:-:* ) # input from stdin
22445 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22446 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22447 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22448 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22449 * ) ac_file_in=$ac_file.in ;;
22452 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22453 echo "$as_me: creating $ac_file" >&6;}
22455 # First look for the input files in the build tree, otherwise in the
22457 ac_file_inputs=`IFS=:
22458 for f in $ac_file_in; do
22460 -) echo $tmp/stdin ;;
22462 # Absolute (can't be DOS-style, as IFS=:)
22463 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22464 echo "$as_me: error: cannot find input file: $f" >&2;}
22465 { (exit 1); exit 1; }; }
22466 # Do quote $f, to prevent DOS paths from being IFS'd.
22469 if test -f "$f"; then
22472 elif test -f "$srcdir/$f"; then
22477 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22478 echo "$as_me: error: cannot find input file: $f" >&2;}
22479 { (exit 1); exit 1; }; }
22482 done` || { (exit 1); exit 1; }
22483 # Remove the trailing spaces.
22484 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22488 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22489 # `conftest.undefs', that substitutes the proper values into
22490 # config.h.in to produce config.h. The first handles `#define'
22491 # templates, and the second `#undef' templates.
22492 # And first: Protect against being on the right side of a sed subst in
22493 # config.status. Protect against being in an unquoted here document
22494 # in config.status.
22495 rm -f conftest.defines conftest.undefs
22496 # Using a here document instead of a string reduces the quoting nightmare.
22497 # Putting comments in sed scripts is not portable.
22499 # `end' is used to avoid that the second main sed command (meant for
22500 # 0-ary CPP macros) applies to n-ary macro definitions.
22501 # See the Autoconf documentation for `clear'.
22502 cat >confdef2sed.sed <<\_ACEOF
22507 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22509 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22512 # If some macros were called several times there might be several times
22513 # the same #defines, which is useless. Nevertheless, we may not want to
22514 # sort them, since we want the *last* AC-DEFINE to be honored.
22515 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22516 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22517 rm -f confdef2sed.sed
22519 # This sed command replaces #undef with comments. This is necessary, for
22520 # example, in the case of _POSIX_SOURCE, which is predefined and required
22521 # on some systems where configure will not decide to define it.
22522 cat >>conftest.undefs <<\_ACEOF
22523 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22526 # Break up conftest.defines because some shells have a limit on the size
22527 # of here documents, and old seds have small limits too (100 cmds).
22528 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22529 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22530 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22531 echo ' :' >>$CONFIG_STATUS
22532 rm -f conftest.tail
22533 while grep . conftest.defines >/dev/null
22535 # Write a limited-size here document to $tmp/defines.sed.
22536 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22537 # Speed up: don't consider the non `#define' lines.
22538 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22539 # Work around the forget-to-reset-the-flag bug.
22540 echo 't clr' >>$CONFIG_STATUS
22541 echo ': clr' >>$CONFIG_STATUS
22542 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22544 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22546 mv $tmp/out $tmp/in
22548 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22549 rm -f conftest.defines
22550 mv conftest.tail conftest.defines
22552 rm -f conftest.defines
22553 echo ' fi # grep' >>$CONFIG_STATUS
22554 echo >>$CONFIG_STATUS
22556 # Break up conftest.undefs because some shells have a limit on the size
22557 # of here documents, and old seds have small limits too (100 cmds).
22558 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22559 rm -f conftest.tail
22560 while grep . conftest.undefs >/dev/null
22562 # Write a limited-size here document to $tmp/undefs.sed.
22563 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22564 # Speed up: don't consider the non `#undef'
22565 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22566 # Work around the forget-to-reset-the-flag bug.
22567 echo 't clr' >>$CONFIG_STATUS
22568 echo ': clr' >>$CONFIG_STATUS
22569 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22571 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22573 mv $tmp/out $tmp/in
22575 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22576 rm -f conftest.undefs
22577 mv conftest.tail conftest.undefs
22579 rm -f conftest.undefs
22581 cat >>$CONFIG_STATUS <<\_ACEOF
22582 # Let's still pretend it is `configure' which instantiates (i.e., don't
22583 # use $as_me), people would be surprised to read:
22584 # /* config.h. Generated by config.status. */
22585 if test x"$ac_file" = x-; then
22586 echo "/* Generated by configure. */" >$tmp/config.h
22588 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22590 cat $tmp/in >>$tmp/config.h
22592 if test x"$ac_file" != x-; then
22593 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22594 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22595 echo "$as_me: $ac_file is unchanged" >&6;}
22597 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22598 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22599 X"$ac_file" : 'X\(//\)[^/]' \| \
22600 X"$ac_file" : 'X\(//\)$' \| \
22601 X"$ac_file" : 'X\(/\)' \| \
22602 . : '\(.\)' 2>/dev/null ||
22604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22605 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22606 /^X\(\/\/\)$/{ s//\1/; q; }
22607 /^X\(\/\).*/{ s//\1/; q; }
22609 { if $as_mkdir_p; then
22614 while test ! -d "$as_dir"; do
22615 as_dirs="$as_dir $as_dirs"
22616 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22617 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22618 X"$as_dir" : 'X\(//\)[^/]' \| \
22619 X"$as_dir" : 'X\(//\)$' \| \
22620 X"$as_dir" : 'X\(/\)' \| \
22621 . : '\(.\)' 2>/dev/null ||
22623 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22624 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22625 /^X\(\/\/\)$/{ s//\1/; q; }
22626 /^X\(\/\).*/{ s//\1/; q; }
22629 test ! -n "$as_dirs" || mkdir $as_dirs
22630 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22631 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22632 { (exit 1); exit 1; }; }; }
22635 mv $tmp/config.h $ac_file
22639 rm -f $tmp/config.h
22641 # Compute $ac_file's index in $config_headers.
22643 for _am_header in $config_headers :; do
22644 case $_am_header in
22645 $ac_file | $ac_file:* )
22648 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22651 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22652 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22653 X$ac_file : 'X\(//\)[^/]' \| \
22654 X$ac_file : 'X\(//\)$' \| \
22655 X$ac_file : 'X\(/\)' \| \
22656 . : '\(.\)' 2>/dev/null ||
22658 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22659 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22660 /^X\(\/\/\)$/{ s//\1/; q; }
22661 /^X\(\/\).*/{ s//\1/; q; }
22662 s/.*/./; q'`/stamp-h$_am_stamp_count
22665 cat >>$CONFIG_STATUS <<\_ACEOF
22668 # CONFIG_COMMANDS section.
22670 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22671 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22672 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22673 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22674 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22675 X"$ac_dest" : 'X\(//\)[^/]' \| \
22676 X"$ac_dest" : 'X\(//\)$' \| \
22677 X"$ac_dest" : 'X\(/\)' \| \
22678 . : '\(.\)' 2>/dev/null ||
22680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22682 /^X\(\/\/\)$/{ s//\1/; q; }
22683 /^X\(\/\).*/{ s//\1/; q; }
22685 { if $as_mkdir_p; then
22690 while test ! -d "$as_dir"; do
22691 as_dirs="$as_dir $as_dirs"
22692 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22693 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22694 X"$as_dir" : 'X\(//\)[^/]' \| \
22695 X"$as_dir" : 'X\(//\)$' \| \
22696 X"$as_dir" : 'X\(/\)' \| \
22697 . : '\(.\)' 2>/dev/null ||
22699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22700 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22701 /^X\(\/\/\)$/{ s//\1/; q; }
22702 /^X\(\/\).*/{ s//\1/; q; }
22705 test ! -n "$as_dirs" || mkdir $as_dirs
22706 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22707 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22708 { (exit 1); exit 1; }; }; }
22712 if test "$ac_dir" != .; then
22713 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22714 # A "../" for each directory in $ac_dir_suffix.
22715 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22717 ac_dir_suffix= ac_top_builddir=
22721 .) # No --srcdir option. We are building in place.
22723 if test -z "$ac_top_builddir"; then
22726 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22728 [\\/]* | ?:[\\/]* ) # Absolute path.
22729 ac_srcdir=$srcdir$ac_dir_suffix;
22730 ac_top_srcdir=$srcdir ;;
22731 *) # Relative path.
22732 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22733 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22736 # Do not use `cd foo && pwd` to compute absolute paths, because
22737 # the directories may not exist.
22739 .) ac_abs_builddir="$ac_dir";;
22742 .) ac_abs_builddir=`pwd`;;
22743 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22744 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22747 case $ac_abs_builddir in
22748 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22750 case ${ac_top_builddir}. in
22751 .) ac_abs_top_builddir=$ac_abs_builddir;;
22752 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22753 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22756 case $ac_abs_builddir in
22757 .) ac_abs_srcdir=$ac_srcdir;;
22760 .) ac_abs_srcdir=$ac_abs_builddir;;
22761 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22762 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22765 case $ac_abs_builddir in
22766 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22768 case $ac_top_srcdir in
22769 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22770 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22771 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22776 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22777 echo "$as_me: executing $ac_dest commands" >&6;}
22779 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22780 # Strip MF so we end up with the name of the file.
22781 mf=`echo "$mf" | sed -e 's/:.*$//'`
22782 # Check whether this is an Automake generated Makefile or not.
22783 # We used to match only the files named `Makefile.in', but
22784 # some people rename them; so instead we look at the file content.
22785 # Grep'ing the first line is not enough: some people post-process
22786 # each Makefile.in and add a new line on top of each file to say so.
22787 # So let's grep whole file.
22788 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22789 dirpart=`(dirname "$mf") 2>/dev/null ||
22790 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22791 X"$mf" : 'X\(//\)[^/]' \| \
22792 X"$mf" : 'X\(//\)$' \| \
22793 X"$mf" : 'X\(/\)' \| \
22794 . : '\(.\)' 2>/dev/null ||
22796 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22797 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22798 /^X\(\/\/\)$/{ s//\1/; q; }
22799 /^X\(\/\).*/{ s//\1/; q; }
22804 # Extract the definition of DEPDIR, am__include, and am__quote
22805 # from the Makefile without running `make'.
22806 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22807 test -z "$DEPDIR" && continue
22808 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22809 test -z "am__include" && continue
22810 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22811 # When using ansi2knr, U may be empty or an underscore; expand it
22812 U=`sed -n 's/^U = //p' < "$mf"`
22813 # Find all dependency output files, they are included files with
22814 # $(DEPDIR) in their names. We invoke sed twice because it is the
22815 # simplest approach to changing $(DEPDIR) to its actual value in the
22817 for file in `sed -n "
22818 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22819 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22820 # Make sure the directory exists.
22821 test -f "$dirpart/$file" && continue
22822 fdir=`(dirname "$file") 2>/dev/null ||
22823 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22824 X"$file" : 'X\(//\)[^/]' \| \
22825 X"$file" : 'X\(//\)$' \| \
22826 X"$file" : 'X\(/\)' \| \
22827 . : '\(.\)' 2>/dev/null ||
22829 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22830 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22831 /^X\(\/\/\)$/{ s//\1/; q; }
22832 /^X\(\/\).*/{ s//\1/; q; }
22834 { if $as_mkdir_p; then
22835 mkdir -p $dirpart/$fdir
22837 as_dir=$dirpart/$fdir
22839 while test ! -d "$as_dir"; do
22840 as_dirs="$as_dir $as_dirs"
22841 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22842 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22843 X"$as_dir" : 'X\(//\)[^/]' \| \
22844 X"$as_dir" : 'X\(//\)$' \| \
22845 X"$as_dir" : 'X\(/\)' \| \
22846 . : '\(.\)' 2>/dev/null ||
22848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22849 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22850 /^X\(\/\/\)$/{ s//\1/; q; }
22851 /^X\(\/\).*/{ s//\1/; q; }
22854 test ! -n "$as_dirs" || mkdir $as_dirs
22855 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22856 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22857 { (exit 1); exit 1; }; }; }
22859 # echo "creating $dirpart/$file"
22860 echo '# dummy' > "$dirpart/$file"
22866 # See if we are running on zsh, and set the options which allow our
22867 # commands through without removal of \ escapes.
22868 if test -n "${ZSH_VERSION+set}" ; then
22869 setopt NO_GLOB_SUBST
22872 cfgfile="${ofile}T"
22873 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22876 cat <<_LT_EOF >> "$cfgfile"
22879 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22880 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
22881 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22882 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22884 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22885 # 2006, 2007 Free Software Foundation, Inc.
22887 # This file is part of GNU Libtool:
22888 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
22890 # This program is free software; you can redistribute it and/or modify
22891 # it under the terms of the GNU General Public License as published by
22892 # the Free Software Foundation; either version 2 of the License, or
22893 # (at your option) any later version.
22895 # This program is distributed in the hope that it will be useful, but
22896 # WITHOUT ANY WARRANTY; without even the implied warranty of
22897 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22898 # General Public License for more details.
22900 # You should have received a copy of the GNU General Public License
22901 # along with this program; if not, a copy can be downloaded from
22902 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
22903 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
22904 # MA 02110-1301, USA.
22906 # As a special exception to the GNU General Public License, if you
22907 # distribute this file as part of a program that contains a
22908 # configuration script generated by Autoconf, you may include it under
22909 # the same distribution terms that you use for the rest of that program.
22912 # The names of the tagged configurations supported by this script.
22915 # ### BEGIN LIBTOOL CONFIG
22917 # Whether or not to build shared libraries.
22918 build_libtool_libs=$enable_shared
22920 # Which release of libtool.m4 was used?
22921 macro_version=$macro_version
22922 macro_revision=$macro_revision
22924 # Whether or not to build static libraries.
22925 build_old_libs=$enable_static
22927 # What type of objects to build.
22930 # Whether or not to optimize for fast installation.
22931 fast_install=$enable_fast_install
22934 host_alias=$host_alias
22938 # The build system.
22939 build_alias=$build_alias
22943 # A sed program that does not truncate output.
22946 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22947 Xsed="\$SED -e 1s/^X//"
22949 # A grep program that handles long lines.
22955 # A literal string matcher.
22958 # A BSD- or MS-compatible name lister.
22961 # Whether we need soft or hard links.
22964 # What is the maximum length of a command?
22965 max_cmd_len=$max_cmd_len
22967 # Object file suffix (normally "o").
22970 # Executable file suffix (normally "").
22973 # whether the shell understands "unset".
22976 # turn spaces into newlines.
22979 # turn newlines into spaces.
22982 # How to create reloadable object files.
22983 reload_flag=$lt_reload_flag
22984 reload_cmds=$lt_reload_cmds
22986 # Method to check whether dependent libraries are shared objects.
22987 deplibs_check_method=$lt_deplibs_check_method
22989 # Command to use when deplibs_check_method == "file_magic".
22990 file_magic_cmd=$lt_file_magic_cmd
22994 AR_FLAGS=$lt_AR_FLAGS
22996 # A symbol stripping program.
22999 # Commands used to install an old-style archive.
23001 old_postinstall_cmds=$lt_old_postinstall_cmds
23002 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23007 # LTCC compiler flags.
23008 LTCFLAGS=$lt_CFLAGS
23010 # Take the output of nm and produce a listing of raw symbols and C names.
23011 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23013 # Transform the output of nm in a proper C declaration.
23014 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23016 # Transform the output of nm in a C name address pair.
23017 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23019 # The name of the directory that contains temporary libtool files.
23022 # Shell to use when invoking shell scripts.
23025 # An echo program that does not interpret backslashes.
23028 # Used to examine libraries when file_magic_cmd begins with "file".
23029 MAGIC_CMD=$MAGIC_CMD
23031 # Must we lock files when doing compilation?
23032 need_locks=$lt_need_locks
23034 # Old archive suffix (normally "a").
23037 # Shared library suffix (normally ".so").
23038 shrext_cmds=$lt_shrext_cmds
23040 # The commands to extract the exported symbol list from a shared archive.
23041 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23043 # Variables whose values should be saved in libtool wrapper scripts and
23044 # restored at link time.
23045 variables_saved_for_relink=$lt_variables_saved_for_relink
23047 # Do we need the "lib" prefix for modules?
23048 need_lib_prefix=$need_lib_prefix
23050 # Do we need a version for libraries?
23051 need_version=$need_version
23053 # Library versioning type.
23054 version_type=$version_type
23056 # Shared library runtime path variable.
23057 runpath_var=$runpath_var
23059 # Shared library path variable.
23060 shlibpath_var=$shlibpath_var
23062 # Is shlibpath searched before the hard-coded library search path?
23063 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23065 # Format of library name prefix.
23066 libname_spec=$lt_libname_spec
23068 # List of archive names. First name is the real one, the rest are links.
23069 # The last name is the one that the linker finds with -lNAME
23070 library_names_spec=$lt_library_names_spec
23072 # The coded name of the library, if different from the real name.
23073 soname_spec=$lt_soname_spec
23075 # Command to use after installation of a shared archive.
23076 postinstall_cmds=$lt_postinstall_cmds
23078 # Command to use after uninstallation of a shared archive.
23079 postuninstall_cmds=$lt_postuninstall_cmds
23081 # Commands used to finish a libtool library installation in a directory.
23082 finish_cmds=$lt_finish_cmds
23084 # As "finish_cmds", except a single script fragment to be evaled but
23086 finish_eval=$lt_finish_eval
23088 # Whether we should hardcode library paths into libraries.
23089 hardcode_into_libs=$hardcode_into_libs
23091 # Compile-time system search path for libraries.
23092 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23094 # Run-time system search path for libraries.
23095 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23097 # Whether dlopen is supported.
23098 dlopen_support=$enable_dlopen
23100 # Whether dlopen of programs is supported.
23101 dlopen_self=$enable_dlopen_self
23103 # Whether dlopen of statically linked programs is supported.
23104 dlopen_self_static=$enable_dlopen_self_static
23106 # Commands to strip libraries.
23107 old_striplib=$lt_old_striplib
23108 striplib=$lt_striplib
23111 # The linker used to build libraries.
23114 # Commands used to build an old-style archive.
23115 old_archive_cmds=$lt_old_archive_cmds
23117 # A language specific compiler.
23120 # Is the compiler the GNU compiler?
23123 # Compiler flag to turn off builtin functions.
23124 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23126 # How to pass a linker flag through the compiler.
23127 wl=$lt_lt_prog_compiler_wl
23129 # Additional compiler flags for building library objects.
23130 pic_flag=$lt_lt_prog_compiler_pic
23132 # Compiler flag to prevent dynamic linking.
23133 link_static_flag=$lt_lt_prog_compiler_static
23135 # Does compiler simultaneously support -c and -o options?
23136 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23138 # Whether or not to add -lc for building shared libraries.
23139 build_libtool_need_lc=$archive_cmds_need_lc
23141 # Whether or not to disallow shared libs when runtime libs are static.
23142 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23144 # Compiler flag to allow reflexive dlopens.
23145 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23147 # Compiler flag to generate shared objects directly from archives.
23148 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23150 # Whether the compiler copes with passing no objects directly.
23151 compiler_needs_object=$lt_compiler_needs_object
23153 # Create an old-style archive from a shared archive.
23154 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23156 # Create a temporary old-style archive to link instead of a shared archive.
23157 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23159 # Commands used to build a shared archive.
23160 archive_cmds=$lt_archive_cmds
23161 archive_expsym_cmds=$lt_archive_expsym_cmds
23163 # Commands used to build a loadable module if different from building
23164 # a shared archive.
23165 module_cmds=$lt_module_cmds
23166 module_expsym_cmds=$lt_module_expsym_cmds
23168 # Whether we are building with GNU ld or not.
23169 with_gnu_ld=$lt_with_gnu_ld
23171 # Flag that allows shared libraries with undefined symbols to be built.
23172 allow_undefined_flag=$lt_allow_undefined_flag
23174 # Flag that enforces no undefined symbols.
23175 no_undefined_flag=$lt_no_undefined_flag
23177 # Flag to hardcode \$libdir into a binary during linking.
23178 # This must work even if \$libdir does not exist
23179 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23181 # If ld is used when linking, flag to hardcode \$libdir into a binary
23182 # during linking. This must work even if \$libdir does not exist.
23183 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
23185 # Whether we need a single "-rpath" flag with a separated argument.
23186 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23188 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23189 # DIR into the resulting binary.
23190 hardcode_direct=$hardcode_direct
23192 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23193 # DIR into the resulting binary and the resulting library dependency is
23194 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23195 # library is relocated.
23196 hardcode_direct_absolute=$hardcode_direct_absolute
23198 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23199 # into the resulting binary.
23200 hardcode_minus_L=$hardcode_minus_L
23202 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23203 # into the resulting binary.
23204 hardcode_shlibpath_var=$hardcode_shlibpath_var
23206 # Set to "yes" if building a shared library automatically hardcodes DIR
23207 # into the library and all subsequent libraries and executables linked
23209 hardcode_automatic=$hardcode_automatic
23211 # Set to yes if linker adds runtime paths of dependent libraries
23212 # to runtime path list.
23213 inherit_rpath=$inherit_rpath
23215 # Whether libtool must link a program against all its dependency libraries.
23216 link_all_deplibs=$link_all_deplibs
23218 # Fix the shell variable \$srcfile for the compiler.
23219 fix_srcfile_path=$lt_fix_srcfile_path
23221 # Set to "yes" if exported symbols are required.
23222 always_export_symbols=$always_export_symbols
23224 # The commands to list exported symbols.
23225 export_symbols_cmds=$lt_export_symbols_cmds
23227 # Symbols that should not be listed in the preloaded symbols.
23228 exclude_expsyms=$lt_exclude_expsyms
23230 # Symbols that must always be exported.
23231 include_expsyms=$lt_include_expsyms
23233 # Commands necessary for linking programs (against libraries) with templates.
23234 prelink_cmds=$lt_prelink_cmds
23236 # Specify filename containing input files.
23237 file_list_spec=$lt_file_list_spec
23239 # How to hardcode a shared library path into an executable.
23240 hardcode_action=$hardcode_action
23242 # ### END LIBTOOL CONFIG
23248 cat <<\_LT_EOF >> "$cfgfile"
23249 # AIX sometimes has problems with the GCC collect2 program. For some
23250 # reason, if we set the COLLECT_NAMES environment variable, the problems
23251 # vanish in a puff of smoke.
23252 if test "X${COLLECT_NAMES+set}" != Xset; then
23254 export COLLECT_NAMES
23261 ltmain="$ac_aux_dir/ltmain.sh"
23264 # We use sed instead of cat because bash on DJGPP gets confused if
23265 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23266 # text mode, it properly converts lines to CR/LF. This bash problem
23267 # is reportedly fixed, but why not run on old versions too?
23268 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
23269 || (rm -f "$cfgfile"; exit 1)
23273 cat << \_LT_EOF >> "$cfgfile"
23274 # func_dirname file append nondir_replacement
23275 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
23276 # otherwise set result to NONDIR_REPLACEMENT.
23280 */*) func_dirname_result="${1%/*}${2}" ;;
23281 * ) func_dirname_result="${3}" ;;
23285 # func_basename file
23288 func_basename_result="${1##*/}"
23291 # func_stripname prefix suffix name
23292 # strip PREFIX and SUFFIX off of NAME.
23293 # PREFIX and SUFFIX must not contain globbing or regex special
23294 # characters, hashes, percent signs, but SUFFIX may contain a leading
23295 # dot (in which case that matches only a dot).
23298 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
23299 # positional parameters, so assign one to ordinary parameter first.
23300 func_stripname_result=${3}
23301 func_stripname_result=${func_stripname_result#"${1}"}
23302 func_stripname_result=${func_stripname_result%"${2}"}
23308 func_opt_split_opt=${1%%=*}
23309 func_opt_split_arg=${1#*=}
23316 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
23317 *) func_lo2o_result=${1} ;;
23322 *) # Bourne compatible functions.
23323 cat << \_LT_EOF >> "$cfgfile"
23324 # func_dirname file append nondir_replacement
23325 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
23326 # otherwise set result to NONDIR_REPLACEMENT.
23329 # Extract subdirectory from the argument.
23330 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
23331 if test "X$func_dirname_result" = "X${1}"; then
23332 func_dirname_result="${3}"
23334 func_dirname_result="$func_dirname_result${2}"
23338 # func_basename file
23341 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
23344 # func_stripname prefix suffix name
23345 # strip PREFIX and SUFFIX off of NAME.
23346 # PREFIX and SUFFIX must not contain globbing or regex special
23347 # characters, hashes, percent signs, but SUFFIX may contain a leading
23348 # dot (in which case that matches only a dot).
23349 # func_strip_suffix prefix name
23353 .*) func_stripname_result=`$ECHO "X${3}" \
23354 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
23355 *) func_stripname_result=`$ECHO "X${3}" \
23356 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
23361 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
23362 my_sed_long_arg='1s/^-[^=]*=//'
23367 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
23368 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
23374 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
23379 case $lt_shell_append in
23381 cat << \_LT_EOF >> "$cfgfile"
23383 # func_append var value
23384 # Append VALUE to the end of shell variable VAR.
23392 cat << \_LT_EOF >> "$cfgfile"
23394 # func_append var value
23395 # Append VALUE to the end of shell variable VAR.
23405 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
23406 || (rm -f "$cfgfile"; exit 1)
23408 mv -f "$cfgfile" "$ofile" ||
23409 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23414 for ac_file in $CONFIG_FILES; do
23415 # Support "outfile[:infile[:infile...]]"
23417 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23419 # PO directories have a Makefile.in generated from Makefile.in.in.
23420 case "$ac_file" in */Makefile.in)
23421 # Adjust a relative srcdir.
23422 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
23423 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
23424 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
23425 # In autoconf-2.13 it is called $ac_given_srcdir.
23426 # In autoconf-2.50 it is called $srcdir.
23427 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
23428 case "$ac_given_srcdir" in
23429 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
23430 /*) top_srcdir="$ac_given_srcdir" ;;
23431 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
23433 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
23434 rm -f "$ac_dir/POTFILES"
23435 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
23436 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
23437 POMAKEFILEDEPS="POTFILES.in"
23438 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
23439 # on $ac_dir but don't depend on user-specified configuration
23441 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
23442 # The LINGUAS file contains the set of available languages.
23443 if test -n "$OBSOLETE_ALL_LINGUAS"; then
23444 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
23446 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
23447 # Hide the ALL_LINGUAS assigment from automake.
23448 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
23449 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
23451 # The set of available languages was given in configure.in.
23452 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
23454 case "$ac_given_srcdir" in
23456 *) srcdirpre='$(srcdir)/' ;;
23462 for lang in $ALL_LINGUAS; do
23463 POFILES="$POFILES $srcdirpre$lang.po"
23464 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23465 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
23466 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
23468 # CATALOGS depends on both $ac_dir and the user's LINGUAS
23469 # environment variable.
23471 if test -n "$ALL_LINGUAS"; then
23472 for presentlang in $ALL_LINGUAS; do
23474 if test "%UNSET%" != "$LINGUAS"; then
23475 desiredlanguages="$LINGUAS"
23477 desiredlanguages="$ALL_LINGUAS"
23479 for desiredlang in $desiredlanguages; do
23480 # Use the presentlang catalog if desiredlang is
23481 # a. equal to presentlang, or
23482 # b. a variant of presentlang (because in this case,
23483 # presentlang can be used as a fallback for messages
23484 # which are not translated in the desiredlang catalog).
23485 case "$desiredlang" in
23486 "$presentlang"*) useit=yes;;
23489 if test $useit = yes; then
23490 INST_LINGUAS="$INST_LINGUAS $presentlang"
23495 if test -n "$INST_LINGUAS"; then
23496 for lang in $INST_LINGUAS; do
23497 CATALOGS="$CATALOGS $lang.gmo"
23500 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
23501 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"
23502 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
23503 if test -f "$f"; then
23505 *.orig | *.bak | *~) ;;
23506 *) cat "$f" >> "$ac_dir/Makefile" ;;
23515 if test "$GCC" = yes; then
23516 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
23518 echo "/* generated for $CC */" > tmp-stdint.h
23521 sed 's/^ *//' >> tmp-stdint.h <<EOF
23523 #ifndef GCC_GENERATED_STDINT_H
23524 #define GCC_GENERATED_STDINT_H 1
23526 #include <sys/types.h>
23529 if test "$acx_cv_header_stdint" != stdint.h; then
23530 echo "#include <stddef.h>" >> tmp-stdint.h
23532 if test "$acx_cv_header_stdint" != stddef.h; then
23533 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
23536 sed 's/^ *//' >> tmp-stdint.h <<EOF
23537 /* glibc uses these symbols as guards to prevent redefinitions. */
23538 #ifdef __int8_t_defined
23543 #ifdef __uint32_t_defined
23549 # ----------------- done header, emit basic int types -------------
23550 if test "$acx_cv_header_stdint" = stddef.h; then
23551 sed 's/^ *//' >> tmp-stdint.h <<EOF
23555 #ifndef __uint8_t_defined
23556 #define __uint8_t_defined
23557 typedef unsigned $acx_cv_type_int8_t uint8_t;
23563 #ifndef __uint16_t_defined
23564 #define __uint16_t_defined
23565 typedef unsigned $acx_cv_type_int16_t uint16_t;
23571 #ifndef __uint32_t_defined
23572 #define __uint32_t_defined
23573 typedef unsigned $acx_cv_type_int32_t uint32_t;
23579 #ifndef __int8_t_defined
23580 #define __int8_t_defined
23581 typedef $acx_cv_type_int8_t int8_t;
23587 #ifndef __int16_t_defined
23588 #define __int16_t_defined
23589 typedef $acx_cv_type_int16_t int16_t;
23595 #ifndef __int32_t_defined
23596 #define __int32_t_defined
23597 typedef $acx_cv_type_int32_t int32_t;
23601 elif test "$ac_cv_type_u_int32_t" = yes; then
23602 sed 's/^ *//' >> tmp-stdint.h <<EOF
23604 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
23617 #ifndef __uint8_t_defined
23618 #define __uint8_t_defined
23619 typedef u_int8_t uint8_t;
23625 #ifndef __uint16_t_defined
23626 #define __uint16_t_defined
23627 typedef u_int16_t uint16_t;
23633 #ifndef __uint32_t_defined
23634 #define __uint32_t_defined
23635 typedef u_int32_t uint32_t;
23640 sed 's/^ *//' >> tmp-stdint.h <<EOF
23642 /* Some systems have guard macros to prevent redefinitions, define them. */
23664 # ------------- done basic int types, emit int64_t types ------------
23665 if test "$ac_cv_type_uint64_t" = yes; then
23666 sed 's/^ *//' >> tmp-stdint.h <<EOF
23668 /* system headers have good uint64_t and int64_t */
23676 elif test "$ac_cv_type_u_int64_t" = yes; then
23677 sed 's/^ *//' >> tmp-stdint.h <<EOF
23679 /* system headers have an u_int64_t (and int64_t) */
23685 #ifndef __uint64_t_defined
23686 #define __uint64_t_defined
23687 typedef u_int64_t uint64_t;
23691 elif test -n "$acx_cv_type_int64_t"; then
23692 sed 's/^ *//' >> tmp-stdint.h <<EOF
23694 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
23697 typedef $acx_cv_type_int64_t int64_t;
23701 #ifndef __uint64_t_defined
23702 #define __uint64_t_defined
23703 typedef unsigned $acx_cv_type_int64_t uint64_t;
23708 sed 's/^ *//' >> tmp-stdint.h <<EOF
23710 /* some common heuristics for int64_t, using compiler-specific tests */
23711 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
23714 #ifndef __int64_t_defined
23715 typedef long long int64_t;
23720 typedef unsigned long long uint64_t;
23723 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
23724 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
23725 does not implement __extension__. But that compiler doesn't define
23727 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
23728 # define __extension__
23733 __extension__ typedef long long int64_t;
23737 __extension__ typedef unsigned long long uint64_t;
23740 #elif !defined __STRICT_ANSI__
23741 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
23745 typedef __int64 int64_t;
23749 typedef unsigned __int64 uint64_t;
23751 # endif /* compiler */
23753 #endif /* ANSI version */
23757 # ------------- done int64_t types, emit intptr types ------------
23758 if test "$ac_cv_type_uintptr_t" != yes; then
23759 sed 's/^ *//' >> tmp-stdint.h <<EOF
23761 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
23762 #ifndef __uintptr_t_defined
23763 typedef u$acx_cv_type_intptr_t uintptr_t;
23765 #ifndef __intptr_t_defined
23766 typedef $acx_cv_type_intptr_t intptr_t;
23771 # ------------- done intptr types, emit int_least types ------------
23772 if test "$ac_cv_type_int_least32_t" != yes; then
23773 sed 's/^ *//' >> tmp-stdint.h <<EOF
23775 /* Define int_least types */
23776 typedef int8_t int_least8_t;
23777 typedef int16_t int_least16_t;
23778 typedef int32_t int_least32_t;
23780 typedef int64_t int_least64_t;
23783 typedef uint8_t uint_least8_t;
23784 typedef uint16_t uint_least16_t;
23785 typedef uint32_t uint_least32_t;
23787 typedef uint64_t uint_least64_t;
23792 # ------------- done intptr types, emit int_fast types ------------
23793 if test "$ac_cv_type_int_fast32_t" != yes; then
23794 sed 's/^ *//' >> tmp-stdint.h <<EOF
23796 /* Define int_fast types. short is often slow */
23797 typedef int8_t int_fast8_t;
23798 typedef int int_fast16_t;
23799 typedef int32_t int_fast32_t;
23801 typedef int64_t int_fast64_t;
23804 typedef uint8_t uint_fast8_t;
23805 typedef unsigned int uint_fast16_t;
23806 typedef uint32_t uint_fast32_t;
23808 typedef uint64_t uint_fast64_t;
23813 if test "$ac_cv_type_uintmax_t" != yes; then
23814 sed 's/^ *//' >> tmp-stdint.h <<EOF
23816 /* Define intmax based on what we found */
23818 typedef int64_t intmax_t;
23820 typedef long intmax_t;
23823 typedef uint64_t uintmax_t;
23825 typedef unsigned long uintmax_t;
23830 sed 's/^ *//' >> tmp-stdint.h <<EOF
23832 #endif /* GCC_GENERATED_STDINT_H */
23835 if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
23838 mv -f tmp-stdint.h bfd_stdint.h
23845 *) srcdirpre='$(srcdir)/' ;;
23849 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
23850 if test $lang != dummy; then
23851 POFILES="$POFILES $srcdirpre$lang.po"
23852 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23855 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
23856 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
23857 -e "s,@POFILES@,$POFILES," \
23858 -e "s,@GMOFILES@,$GMOFILES," \
23859 po/Makefile.in > po/Makefile ;;
23864 cat >>$CONFIG_STATUS <<\_ACEOF
23866 { (exit 0); exit 0; }
23868 chmod +x $CONFIG_STATUS
23869 ac_clean_files=$ac_clean_files_save
23872 # configure is writing to config.log, and then calls config.status.
23873 # config.status does its own redirection, appending to config.log.
23874 # Unfortunately, on DOS this fails, as config.log is still kept open
23875 # by configure, so config.status won't be able to write to it; its
23876 # output is simply discarded. So we exec the FD to /dev/null,
23877 # effectively closing config.log, so it can be properly (re)opened and
23878 # appended to by config.status. When coming back to configure, we
23879 # need to make the FD available again.
23880 if test "$no_create" != yes; then
23882 ac_config_status_args=
23883 test "$silent" = yes &&
23884 ac_config_status_args="$ac_config_status_args --quiet"
23886 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23888 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23889 # would make configure fail if this is the last instruction.
23890 $ac_cs_success || { (exit 1); exit 1; }