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 LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO CPP 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_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT 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'
464 # Initialize some variables set by options.
466 ac_init_version=false
467 # The variables have the same names as the options, with
468 # dashes changed to underlines.
476 program_transform_name=s,x,x,
484 # Installation directory options.
485 # These are left unexpanded so users can "make install exec_prefix=/foo"
486 # and all the variables that are supposed to be based on exec_prefix
487 # by default will actually change.
488 # Use braces instead of parens because sh, perl, etc. also accept them.
489 bindir='${exec_prefix}/bin'
490 sbindir='${exec_prefix}/sbin'
491 libexecdir='${exec_prefix}/libexec'
492 datadir='${prefix}/share'
493 sysconfdir='${prefix}/etc'
494 sharedstatedir='${prefix}/com'
495 localstatedir='${prefix}/var'
496 libdir='${exec_prefix}/lib'
497 includedir='${prefix}/include'
498 oldincludedir='/usr/include'
499 infodir='${prefix}/info'
500 mandir='${prefix}/man'
505 # If the previous option needs an argument, assign it.
506 if test -n "$ac_prev"; then
507 eval "$ac_prev=\$ac_option"
512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514 # Accept the important Cygnus configure options, so we can diagnose typos.
518 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
523 -build | --build | --buil | --bui | --bu)
524 ac_prev=build_alias ;;
525 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526 build_alias=$ac_optarg ;;
528 -cache-file | --cache-file | --cache-fil | --cache-fi \
529 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530 ac_prev=cache_file ;;
531 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
533 cache_file=$ac_optarg ;;
536 cache_file=config.cache ;;
538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 datadir=$ac_optarg ;;
544 -disable-* | --disable-*)
545 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546 # Reject names that are not valid shell variable names.
547 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549 { (exit 1); exit 1; }; }
550 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551 eval "enable_$ac_feature=no" ;;
553 -enable-* | --enable-*)
554 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555 # Reject names that are not valid shell variable names.
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
564 eval "enable_$ac_feature='$ac_optarg'" ;;
566 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568 | --exec | --exe | --ex)
569 ac_prev=exec_prefix ;;
570 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572 | --exec=* | --exe=* | --ex=*)
573 exec_prefix=$ac_optarg ;;
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
579 -help | --help | --hel | --he | -h)
581 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582 ac_init_help=recursive ;;
583 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584 ac_init_help=short ;;
586 -host | --host | --hos | --ho)
587 ac_prev=host_alias ;;
588 -host=* | --host=* | --hos=* | --ho=*)
589 host_alias=$ac_optarg ;;
591 -includedir | --includedir | --includedi | --included | --include \
592 | --includ | --inclu | --incl | --inc)
593 ac_prev=includedir ;;
594 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595 | --includ=* | --inclu=* | --incl=* | --inc=*)
596 includedir=$ac_optarg ;;
598 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601 infodir=$ac_optarg ;;
603 -libdir | --libdir | --libdi | --libd)
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
608 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609 | --libexe | --libex | --libe)
610 ac_prev=libexecdir ;;
611 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612 | --libexe=* | --libex=* | --libe=*)
613 libexecdir=$ac_optarg ;;
615 -localstatedir | --localstatedir | --localstatedi | --localstated \
616 | --localstate | --localstat | --localsta | --localst \
617 | --locals | --local | --loca | --loc | --lo)
618 ac_prev=localstatedir ;;
619 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
622 localstatedir=$ac_optarg ;;
624 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
630 # Obsolete; use --without-fp.
633 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634 | --no-cr | --no-c | -n)
637 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
641 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643 | --oldin | --oldi | --old | --ol | --o)
644 ac_prev=oldincludedir ;;
645 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
648 oldincludedir=$ac_optarg ;;
650 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
655 -program-prefix | --program-prefix | --program-prefi | --program-pref \
656 | --program-pre | --program-pr | --program-p)
657 ac_prev=program_prefix ;;
658 -program-prefix=* | --program-prefix=* | --program-prefi=* \
659 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
660 program_prefix=$ac_optarg ;;
662 -program-suffix | --program-suffix | --program-suffi | --program-suff \
663 | --program-suf | --program-su | --program-s)
664 ac_prev=program_suffix ;;
665 -program-suffix=* | --program-suffix=* | --program-suffi=* \
666 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
667 program_suffix=$ac_optarg ;;
669 -program-transform-name | --program-transform-name \
670 | --program-transform-nam | --program-transform-na \
671 | --program-transform-n | --program-transform- \
672 | --program-transform | --program-transfor \
673 | --program-transfo | --program-transf \
674 | --program-trans | --program-tran \
675 | --progr-tra | --program-tr | --program-t)
676 ac_prev=program_transform_name ;;
677 -program-transform-name=* | --program-transform-name=* \
678 | --program-transform-nam=* | --program-transform-na=* \
679 | --program-transform-n=* | --program-transform-=* \
680 | --program-transform=* | --program-transfor=* \
681 | --program-transfo=* | --program-transf=* \
682 | --program-trans=* | --program-tran=* \
683 | --progr-tra=* | --program-tr=* | --program-t=*)
684 program_transform_name=$ac_optarg ;;
686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687 | -silent | --silent | --silen | --sile | --sil)
690 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 sbindir=$ac_optarg ;;
696 -sharedstatedir | --sharedstatedir | --sharedstatedi \
697 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698 | --sharedst | --shareds | --shared | --share | --shar \
700 ac_prev=sharedstatedir ;;
701 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 sharedstatedir=$ac_optarg ;;
707 -site | --site | --sit)
709 -site=* | --site=* | --sit=*)
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
717 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718 | --syscon | --sysco | --sysc | --sys | --sy)
719 ac_prev=sysconfdir ;;
720 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
722 sysconfdir=$ac_optarg ;;
724 -target | --target | --targe | --targ | --tar | --ta | --t)
725 ac_prev=target_alias ;;
726 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727 target_alias=$ac_optarg ;;
729 -v | -verbose | --verbose | --verbos | --verbo | --verb)
732 -version | --version | --versio | --versi | --vers | -V)
736 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737 # Reject names that are not valid shell variable names.
738 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739 { echo "$as_me: error: invalid package name: $ac_package" >&2
740 { (exit 1); exit 1; }; }
741 ac_package=`echo $ac_package| sed 's/-/_/g'`
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
746 eval "with_$ac_package='$ac_optarg'" ;;
748 -without-* | --without-*)
749 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750 # Reject names that are not valid shell variable names.
751 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752 { echo "$as_me: error: invalid package name: $ac_package" >&2
753 { (exit 1); exit 1; }; }
754 ac_package=`echo $ac_package | sed 's/-/_/g'`
755 eval "with_$ac_package=no" ;;
758 # Obsolete; use --with-x.
761 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762 | --x-incl | --x-inc | --x-in | --x-i)
763 ac_prev=x_includes ;;
764 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
766 x_includes=$ac_optarg ;;
768 -x-libraries | --x-libraries | --x-librarie | --x-librari \
769 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770 ac_prev=x_libraries ;;
771 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
773 x_libraries=$ac_optarg ;;
775 -*) { echo "$as_me: error: unrecognized option: $ac_option
776 Try \`$0 --help' for more information." >&2
777 { (exit 1); exit 1; }; }
781 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785 { (exit 1); exit 1; }; }
786 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787 eval "$ac_envvar='$ac_optarg'"
791 # FIXME: should be removed in autoconf 3.0.
792 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801 if test -n "$ac_prev"; then
802 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803 { echo "$as_me: error: missing argument to $ac_option" >&2
804 { (exit 1); exit 1; }; }
807 # Be sure to have absolute paths.
808 for ac_var in exec_prefix prefix
810 eval ac_val=$`echo $ac_var`
812 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814 { (exit 1); exit 1; }; };;
818 # Be sure to have absolute paths.
819 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820 localstatedir libdir includedir oldincludedir infodir mandir
822 eval ac_val=$`echo $ac_var`
824 [\\/$]* | ?:[\\/]* ) ;;
825 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826 { (exit 1); exit 1; }; };;
830 # There might be people who depend on the old broken behavior: `$host'
831 # used to hold the argument of --host etc.
832 # FIXME: To remove some day.
837 # FIXME: To remove some day.
838 if test "x$host_alias" != x; then
839 if test "x$build_alias" = x; then
840 cross_compiling=maybe
841 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842 If a cross compiler is detected then cross compile mode will be used." >&2
843 elif test "x$build_alias" != "x$host_alias"; then
849 test -n "$host_alias" && ac_tool_prefix=$host_alias-
851 test "$silent" = yes && exec 6>/dev/null
854 # Find the source files, if location was not specified.
855 if test -z "$srcdir"; then
856 ac_srcdir_defaulted=yes
857 # Try the directory containing this script, then its parent.
858 ac_confdir=`(dirname "$0") 2>/dev/null ||
859 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860 X"$0" : 'X\(//\)[^/]' \| \
861 X"$0" : 'X\(//\)$' \| \
862 X"$0" : 'X\(/\)' \| \
863 . : '\(.\)' 2>/dev/null ||
865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867 /^X\(\/\/\)$/{ s//\1/; q; }
868 /^X\(\/\).*/{ s//\1/; q; }
871 if test ! -r $srcdir/$ac_unique_file; then
875 ac_srcdir_defaulted=no
877 if test ! -r $srcdir/$ac_unique_file; then
878 if test "$ac_srcdir_defaulted" = yes; then
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880 { (exit 1); exit 1; }; }
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883 { (exit 1); exit 1; }; }
886 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888 { (exit 1); exit 1; }; }
889 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890 ac_env_build_alias_set=${build_alias+set}
891 ac_env_build_alias_value=$build_alias
892 ac_cv_env_build_alias_set=${build_alias+set}
893 ac_cv_env_build_alias_value=$build_alias
894 ac_env_host_alias_set=${host_alias+set}
895 ac_env_host_alias_value=$host_alias
896 ac_cv_env_host_alias_set=${host_alias+set}
897 ac_cv_env_host_alias_value=$host_alias
898 ac_env_target_alias_set=${target_alias+set}
899 ac_env_target_alias_value=$target_alias
900 ac_cv_env_target_alias_set=${target_alias+set}
901 ac_cv_env_target_alias_value=$target_alias
902 ac_env_CC_set=${CC+set}
904 ac_cv_env_CC_set=${CC+set}
905 ac_cv_env_CC_value=$CC
906 ac_env_CFLAGS_set=${CFLAGS+set}
907 ac_env_CFLAGS_value=$CFLAGS
908 ac_cv_env_CFLAGS_set=${CFLAGS+set}
909 ac_cv_env_CFLAGS_value=$CFLAGS
910 ac_env_LDFLAGS_set=${LDFLAGS+set}
911 ac_env_LDFLAGS_value=$LDFLAGS
912 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
913 ac_cv_env_LDFLAGS_value=$LDFLAGS
914 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
915 ac_env_CPPFLAGS_value=$CPPFLAGS
916 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
917 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
918 ac_env_CPP_set=${CPP+set}
919 ac_env_CPP_value=$CPP
920 ac_cv_env_CPP_set=${CPP+set}
921 ac_cv_env_CPP_value=$CPP
924 # Report the --help message.
926 if test "$ac_init_help" = "long"; then
927 # Omit some internal or obsolete options to make the list less imposing.
928 # This message is too long to be a string in the A/UX 3.1 sh.
930 \`configure' configures this package to adapt to many kinds of systems.
932 Usage: $0 [OPTION]... [VAR=VALUE]...
934 To assign environment variables (e.g., CC, CFLAGS...), specify them as
935 VAR=VALUE. See below for descriptions of some of the useful variables.
937 Defaults for the options are specified in brackets.
940 -h, --help display this help and exit
941 --help=short display options specific to this package
942 --help=recursive display the short help of all the included packages
943 -V, --version display version information and exit
944 -q, --quiet, --silent do not print \`checking...' messages
945 --cache-file=FILE cache test results in FILE [disabled]
946 -C, --config-cache alias for \`--cache-file=config.cache'
947 -n, --no-create do not create output files
948 --srcdir=DIR find the sources in DIR [configure dir or \`..']
953 Installation directories:
954 --prefix=PREFIX install architecture-independent files in PREFIX
956 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
959 By default, \`make install' will install all the files in
960 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
961 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
962 for instance \`--prefix=\$HOME'.
964 For better control, use the options below.
966 Fine tuning of the installation directories:
967 --bindir=DIR user executables [EPREFIX/bin]
968 --sbindir=DIR system admin executables [EPREFIX/sbin]
969 --libexecdir=DIR program executables [EPREFIX/libexec]
970 --datadir=DIR read-only architecture-independent data [PREFIX/share]
971 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
972 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
973 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
974 --libdir=DIR object code libraries [EPREFIX/lib]
975 --includedir=DIR C header files [PREFIX/include]
976 --oldincludedir=DIR C header files for non-gcc [/usr/include]
977 --infodir=DIR info documentation [PREFIX/info]
978 --mandir=DIR man documentation [PREFIX/man]
984 --program-prefix=PREFIX prepend PREFIX to installed program names
985 --program-suffix=SUFFIX append SUFFIX to installed program names
986 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
989 --build=BUILD configure for building on BUILD [guessed]
990 --host=HOST cross-compile to build programs to run on HOST [BUILD]
991 --target=TARGET configure for building compilers for TARGET [HOST]
995 if test -n "$ac_init_help"; then
1000 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1001 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1002 --disable-dependency-tracking speeds up one-time build
1003 --enable-dependency-tracking do not reject slow dependency extractors
1004 --enable-shared[=PKGS]
1005 build shared libraries [default=no]
1006 --enable-static[=PKGS]
1007 build static libraries [default=yes]
1008 --enable-fast-install[=PKGS]
1009 optimize for fast installation [default=yes]
1010 --disable-libtool-lock avoid locking (might break parallel builds)
1011 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1012 --enable-targets alternative target configurations
1013 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
1014 --enable-secureplt Default to creating read-only plt entries
1015 --enable-werror treat compile warnings as errors
1016 --enable-build-warnings enable build-time compiler warnings
1017 --enable-maintainer-mode enable make rules and dependencies not useful
1018 (and sometimes confusing) to the casual installer
1019 --enable-install-libbfd controls installation of libbfd and related headers
1020 --disable-nls do not use Native Language Support
1023 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1024 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1025 --with-pic try to use only PIC/non-PIC objects [default=use
1027 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1028 --with-mmap try using mmap for BFD input files if available
1029 --with-pkgversion=PKG Use PKG in the version string in place of "GNU
1031 --with-bugurl=URL Direct users to URL to report a bug
1033 Some influential environment variables:
1034 CC C compiler command
1035 CFLAGS C compiler flags
1036 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1037 nonstandard directory <lib dir>
1038 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1039 headers in a nonstandard directory <include dir>
1042 Use these variables to override the choices made by `configure' or to help
1043 it to find libraries and programs with nonstandard names/locations.
1048 if test "$ac_init_help" = "recursive"; then
1049 # If there are subdirs, report their specific --help.
1051 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1052 test -d $ac_dir || continue
1055 if test "$ac_dir" != .; then
1056 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1057 # A "../" for each directory in $ac_dir_suffix.
1058 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1060 ac_dir_suffix= ac_top_builddir=
1064 .) # No --srcdir option. We are building in place.
1066 if test -z "$ac_top_builddir"; then
1069 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1071 [\\/]* | ?:[\\/]* ) # Absolute path.
1072 ac_srcdir=$srcdir$ac_dir_suffix;
1073 ac_top_srcdir=$srcdir ;;
1075 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1076 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1079 # Do not use `cd foo && pwd` to compute absolute paths, because
1080 # the directories may not exist.
1082 .) ac_abs_builddir="$ac_dir";;
1085 .) ac_abs_builddir=`pwd`;;
1086 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1087 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1090 case $ac_abs_builddir in
1091 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1093 case ${ac_top_builddir}. in
1094 .) ac_abs_top_builddir=$ac_abs_builddir;;
1095 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1096 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1099 case $ac_abs_builddir in
1100 .) ac_abs_srcdir=$ac_srcdir;;
1103 .) ac_abs_srcdir=$ac_abs_builddir;;
1104 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1105 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1108 case $ac_abs_builddir in
1109 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1111 case $ac_top_srcdir in
1112 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1113 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1114 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1119 # Check for guested configure; otherwise get Cygnus style configure.
1120 if test -f $ac_srcdir/configure.gnu; then
1122 $SHELL $ac_srcdir/configure.gnu --help=recursive
1123 elif test -f $ac_srcdir/configure; then
1125 $SHELL $ac_srcdir/configure --help=recursive
1126 elif test -f $ac_srcdir/configure.ac ||
1127 test -f $ac_srcdir/configure.in; then
1129 $ac_configure --help
1131 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1137 test -n "$ac_init_help" && exit 0
1138 if $ac_init_version; then
1141 Copyright (C) 2003 Free Software Foundation, Inc.
1142 This configure script is free software; the Free Software Foundation
1143 gives unlimited permission to copy, distribute and modify it.
1149 This file contains any messages produced by compilers while
1150 running configure, to aid debugging if configure makes a mistake.
1152 It was created by $as_me, which was
1153 generated by GNU Autoconf 2.59. Invocation command line was
1164 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1165 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1166 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1167 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1168 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1170 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1171 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1173 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1174 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1175 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1176 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1177 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1178 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1179 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1187 test -z "$as_dir" && as_dir=.
1188 echo "PATH: $as_dir"
1203 # Keep a trace of the command line.
1204 # Strip out --no-create and --no-recursion so they do not pile up.
1205 # Strip out --silent because we don't want to record it for future runs.
1206 # Also quote any args containing shell meta-characters.
1207 # Make two passes to allow for proper duplicate-argument suppression.
1212 ac_must_keep_next=false
1218 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1219 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1220 | -silent | --silent | --silen | --sile | --sil)
1222 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1223 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1226 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1228 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1229 if test $ac_must_keep_next = true; then
1230 ac_must_keep_next=false # Got value, back to normal.
1233 *=* | --config-cache | -C | -disable-* | --disable-* \
1234 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1235 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1236 | -with-* | --with-* | -without-* | --without-* | --x)
1237 case "$ac_configure_args0 " in
1238 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1241 -* ) ac_must_keep_next=true ;;
1244 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1245 # Get rid of the leading space.
1251 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1252 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1254 # When interrupted or exit'd, cleanup temporary files, and complete
1255 # config.log. We remove comments because anyway the quotes in there
1256 # would cause problems or look ugly.
1257 # WARNING: Be sure not to use single quotes in there, as some shells,
1258 # such as our DU 5.0 friend, will then `close' the trap.
1259 trap 'exit_status=$?
1260 # Save into config.log some information that might help in debugging.
1265 ## ---------------- ##
1266 ## Cache variables. ##
1267 ## ---------------- ##
1270 # The following way of writing the cache mishandles newlines in values,
1273 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1276 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1277 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1281 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1288 ## ----------------- ##
1289 ## Output variables. ##
1290 ## ----------------- ##
1293 for ac_var in $ac_subst_vars
1295 eval ac_val=$`echo $ac_var`
1296 echo "$ac_var='"'"'$ac_val'"'"'"
1300 if test -n "$ac_subst_files"; then
1307 for ac_var in $ac_subst_files
1309 eval ac_val=$`echo $ac_var`
1310 echo "$ac_var='"'"'$ac_val'"'"'"
1315 if test -s confdefs.h; then
1322 sed "/^$/d" confdefs.h | sort
1325 test "$ac_signal" != 0 &&
1326 echo "$as_me: caught signal $ac_signal"
1327 echo "$as_me: exit $exit_status"
1329 rm -f core *.core &&
1330 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1333 for ac_signal in 1 2 13 15; do
1334 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1338 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1339 rm -rf conftest* confdefs.h
1340 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1343 # Predefined preprocessor variables.
1345 cat >>confdefs.h <<_ACEOF
1346 #define PACKAGE_NAME "$PACKAGE_NAME"
1350 cat >>confdefs.h <<_ACEOF
1351 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1355 cat >>confdefs.h <<_ACEOF
1356 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1360 cat >>confdefs.h <<_ACEOF
1361 #define PACKAGE_STRING "$PACKAGE_STRING"
1365 cat >>confdefs.h <<_ACEOF
1366 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1370 # Let the site file select an alternate cache file if it wants to.
1371 # Prefer explicitly selected file to automatically selected ones.
1372 if test -z "$CONFIG_SITE"; then
1373 if test "x$prefix" != xNONE; then
1374 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1376 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1379 for ac_site_file in $CONFIG_SITE; do
1380 if test -r "$ac_site_file"; then
1381 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1382 echo "$as_me: loading site script $ac_site_file" >&6;}
1383 sed 's/^/| /' "$ac_site_file" >&5
1388 if test -r "$cache_file"; then
1389 # Some versions of bash will fail to source /dev/null (special
1390 # files actually), so we avoid doing that.
1391 if test -f "$cache_file"; then
1392 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1393 echo "$as_me: loading cache $cache_file" >&6;}
1395 [\\/]* | ?:[\\/]* ) . $cache_file;;
1396 *) . ./$cache_file;;
1400 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1401 echo "$as_me: creating cache $cache_file" >&6;}
1405 # Check that the precious variables saved in the cache have kept the same
1407 ac_cache_corrupted=false
1408 for ac_var in `(set) 2>&1 |
1409 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1410 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1411 eval ac_new_set=\$ac_env_${ac_var}_set
1412 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1413 eval ac_new_val="\$ac_env_${ac_var}_value"
1414 case $ac_old_set,$ac_new_set in
1416 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1417 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1418 ac_cache_corrupted=: ;;
1420 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1421 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1422 ac_cache_corrupted=: ;;
1425 if test "x$ac_old_val" != "x$ac_new_val"; then
1426 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1427 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1428 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1429 echo "$as_me: former value: $ac_old_val" >&2;}
1430 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1431 echo "$as_me: current value: $ac_new_val" >&2;}
1432 ac_cache_corrupted=:
1435 # Pass precious variables to config.status.
1436 if test "$ac_new_set" = set; then
1438 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1439 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1440 *) ac_arg=$ac_var=$ac_new_val ;;
1442 case " $ac_configure_args " in
1443 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1444 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1448 if $ac_cache_corrupted; then
1449 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1450 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1451 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1452 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1453 { (exit 1); exit 1; }; }
1457 ac_cpp='$CPP $CPPFLAGS'
1458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1483 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1484 if test -f $ac_dir/install-sh; then
1486 ac_install_sh="$ac_aux_dir/install-sh -c"
1488 elif test -f $ac_dir/install.sh; then
1490 ac_install_sh="$ac_aux_dir/install.sh -c"
1492 elif test -f $ac_dir/shtool; then
1494 ac_install_sh="$ac_aux_dir/shtool install -c"
1498 if test -z "$ac_aux_dir"; then
1499 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1500 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1501 { (exit 1); exit 1; }; }
1503 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1504 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1505 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1507 # Make sure we can run config.sub.
1508 $ac_config_sub sun4 >/dev/null 2>&1 ||
1509 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1510 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1511 { (exit 1); exit 1; }; }
1513 echo "$as_me:$LINENO: checking build system type" >&5
1514 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1515 if test "${ac_cv_build+set}" = set; then
1516 echo $ECHO_N "(cached) $ECHO_C" >&6
1518 ac_cv_build_alias=$build_alias
1519 test -z "$ac_cv_build_alias" &&
1520 ac_cv_build_alias=`$ac_config_guess`
1521 test -z "$ac_cv_build_alias" &&
1522 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1523 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1524 { (exit 1); exit 1; }; }
1525 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1526 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1527 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1528 { (exit 1); exit 1; }; }
1531 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1532 echo "${ECHO_T}$ac_cv_build" >&6
1534 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1535 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1536 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1539 echo "$as_me:$LINENO: checking host system type" >&5
1540 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1541 if test "${ac_cv_host+set}" = set; then
1542 echo $ECHO_N "(cached) $ECHO_C" >&6
1544 ac_cv_host_alias=$host_alias
1545 test -z "$ac_cv_host_alias" &&
1546 ac_cv_host_alias=$ac_cv_build_alias
1547 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1548 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1549 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1550 { (exit 1); exit 1; }; }
1553 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1554 echo "${ECHO_T}$ac_cv_host" >&6
1556 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1557 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1558 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1561 echo "$as_me:$LINENO: checking target system type" >&5
1562 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1563 if test "${ac_cv_target+set}" = set; then
1564 echo $ECHO_N "(cached) $ECHO_C" >&6
1566 ac_cv_target_alias=$target_alias
1567 test "x$ac_cv_target_alias" = "x" &&
1568 ac_cv_target_alias=$ac_cv_host_alias
1569 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1570 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1571 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1572 { (exit 1); exit 1; }; }
1575 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1576 echo "${ECHO_T}$ac_cv_target" >&6
1577 target=$ac_cv_target
1578 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1579 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1580 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1583 # The aliases save the names the user supplied, while $host etc.
1584 # will get canonicalized.
1585 test -n "$target_alias" &&
1586 test "$program_prefix$program_suffix$program_transform_name" = \
1588 program_prefix=${target_alias}-
1590 ac_cpp='$CPP $CPPFLAGS'
1591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1594 if test -n "$ac_tool_prefix"; then
1595 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1596 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1597 echo "$as_me:$LINENO: checking for $ac_word" >&5
1598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1599 if test "${ac_cv_prog_CC+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1602 if test -n "$CC"; then
1603 ac_cv_prog_CC="$CC" # Let the user override the test.
1605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1609 test -z "$as_dir" && as_dir=.
1610 for ac_exec_ext in '' $ac_executable_extensions; do
1611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1612 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1622 if test -n "$CC"; then
1623 echo "$as_me:$LINENO: result: $CC" >&5
1624 echo "${ECHO_T}$CC" >&6
1626 echo "$as_me:$LINENO: result: no" >&5
1627 echo "${ECHO_T}no" >&6
1631 if test -z "$ac_cv_prog_CC"; then
1633 # Extract the first word of "gcc", so it can be a program name with args.
1634 set dummy gcc; ac_word=$2
1635 echo "$as_me:$LINENO: checking for $ac_word" >&5
1636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1637 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1638 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 if test -n "$ac_ct_CC"; then
1641 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647 test -z "$as_dir" && as_dir=.
1648 for ac_exec_ext in '' $ac_executable_extensions; do
1649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1650 ac_cv_prog_ac_ct_CC="gcc"
1651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1659 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1660 if test -n "$ac_ct_CC"; then
1661 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1662 echo "${ECHO_T}$ac_ct_CC" >&6
1664 echo "$as_me:$LINENO: result: no" >&5
1665 echo "${ECHO_T}no" >&6
1673 if test -z "$CC"; then
1674 if test -n "$ac_tool_prefix"; then
1675 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1676 set dummy ${ac_tool_prefix}cc; ac_word=$2
1677 echo "$as_me:$LINENO: checking for $ac_word" >&5
1678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1679 if test "${ac_cv_prog_CC+set}" = set; then
1680 echo $ECHO_N "(cached) $ECHO_C" >&6
1682 if test -n "$CC"; then
1683 ac_cv_prog_CC="$CC" # Let the user override the test.
1685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689 test -z "$as_dir" && as_dir=.
1690 for ac_exec_ext in '' $ac_executable_extensions; do
1691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1692 ac_cv_prog_CC="${ac_tool_prefix}cc"
1693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1702 if test -n "$CC"; then
1703 echo "$as_me:$LINENO: result: $CC" >&5
1704 echo "${ECHO_T}$CC" >&6
1706 echo "$as_me:$LINENO: result: no" >&5
1707 echo "${ECHO_T}no" >&6
1711 if test -z "$ac_cv_prog_CC"; then
1713 # Extract the first word of "cc", so it can be a program name with args.
1714 set dummy cc; ac_word=$2
1715 echo "$as_me:$LINENO: checking for $ac_word" >&5
1716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1717 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1718 echo $ECHO_N "(cached) $ECHO_C" >&6
1720 if test -n "$ac_ct_CC"; then
1721 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1727 test -z "$as_dir" && as_dir=.
1728 for ac_exec_ext in '' $ac_executable_extensions; do
1729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1730 ac_cv_prog_ac_ct_CC="cc"
1731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1739 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1740 if test -n "$ac_ct_CC"; then
1741 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1742 echo "${ECHO_T}$ac_ct_CC" >&6
1744 echo "$as_me:$LINENO: result: no" >&5
1745 echo "${ECHO_T}no" >&6
1754 if test -z "$CC"; then
1755 # Extract the first word of "cc", so it can be a program name with args.
1756 set dummy cc; ac_word=$2
1757 echo "$as_me:$LINENO: checking for $ac_word" >&5
1758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1759 if test "${ac_cv_prog_CC+set}" = set; then
1760 echo $ECHO_N "(cached) $ECHO_C" >&6
1762 if test -n "$CC"; then
1763 ac_cv_prog_CC="$CC" # Let the user override the test.
1766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1770 test -z "$as_dir" && as_dir=.
1771 for ac_exec_ext in '' $ac_executable_extensions; do
1772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1773 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1774 ac_prog_rejected=yes
1778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1784 if test $ac_prog_rejected = yes; then
1785 # We found a bogon in the path, so make sure we never use it.
1786 set dummy $ac_cv_prog_CC
1788 if test $# != 0; then
1789 # We chose a different compiler from the bogus one.
1790 # However, it has the same basename, so the bogon will be chosen
1791 # first if we set CC to just the basename; use the full file name.
1793 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1799 if test -n "$CC"; then
1800 echo "$as_me:$LINENO: result: $CC" >&5
1801 echo "${ECHO_T}$CC" >&6
1803 echo "$as_me:$LINENO: result: no" >&5
1804 echo "${ECHO_T}no" >&6
1808 if test -z "$CC"; then
1809 if test -n "$ac_tool_prefix"; then
1812 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1813 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1814 echo "$as_me:$LINENO: checking for $ac_word" >&5
1815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1816 if test "${ac_cv_prog_CC+set}" = set; then
1817 echo $ECHO_N "(cached) $ECHO_C" >&6
1819 if test -n "$CC"; then
1820 ac_cv_prog_CC="$CC" # Let the user override the test.
1822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1826 test -z "$as_dir" && as_dir=.
1827 for ac_exec_ext in '' $ac_executable_extensions; do
1828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1829 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1839 if test -n "$CC"; then
1840 echo "$as_me:$LINENO: result: $CC" >&5
1841 echo "${ECHO_T}$CC" >&6
1843 echo "$as_me:$LINENO: result: no" >&5
1844 echo "${ECHO_T}no" >&6
1847 test -n "$CC" && break
1850 if test -z "$CC"; then
1854 # Extract the first word of "$ac_prog", so it can be a program name with args.
1855 set dummy $ac_prog; ac_word=$2
1856 echo "$as_me:$LINENO: checking for $ac_word" >&5
1857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1858 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1859 echo $ECHO_N "(cached) $ECHO_C" >&6
1861 if test -n "$ac_ct_CC"; then
1862 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868 test -z "$as_dir" && as_dir=.
1869 for ac_exec_ext in '' $ac_executable_extensions; do
1870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1871 ac_cv_prog_ac_ct_CC="$ac_prog"
1872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1880 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1881 if test -n "$ac_ct_CC"; then
1882 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1883 echo "${ECHO_T}$ac_ct_CC" >&6
1885 echo "$as_me:$LINENO: result: no" >&5
1886 echo "${ECHO_T}no" >&6
1889 test -n "$ac_ct_CC" && break
1898 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1899 See \`config.log' for more details." >&5
1900 echo "$as_me: error: no acceptable C compiler found in \$PATH
1901 See \`config.log' for more details." >&2;}
1902 { (exit 1); exit 1; }; }
1904 # Provide some information about the compiler.
1905 echo "$as_me:$LINENO:" \
1906 "checking for C compiler version" >&5
1907 ac_compiler=`set X $ac_compile; echo $2`
1908 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1909 (eval $ac_compiler --version </dev/null >&5) 2>&5
1911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1912 (exit $ac_status); }
1913 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1914 (eval $ac_compiler -v </dev/null >&5) 2>&5
1916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1917 (exit $ac_status); }
1918 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1919 (eval $ac_compiler -V </dev/null >&5) 2>&5
1921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1922 (exit $ac_status); }
1924 cat >conftest.$ac_ext <<_ACEOF
1927 cat confdefs.h >>conftest.$ac_ext
1928 cat >>conftest.$ac_ext <<_ACEOF
1929 /* end confdefs.h. */
1939 ac_clean_files_save=$ac_clean_files
1940 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1941 # Try to create an executable without -o first, disregard a.out.
1942 # It will help us diagnose broken compilers, and finding out an intuition
1944 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1945 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1946 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1947 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1948 (eval $ac_link_default) 2>&5
1950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1951 (exit $ac_status); }; then
1952 # Find the output, starting from the most likely. This scheme is
1953 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1956 # Be careful to initialize this variable, since it used to be cached.
1957 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1959 # b.out is created by i960 compilers.
1960 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1962 test -f "$ac_file" || continue
1964 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1967 # This is the source file.
1970 # We found the default executable, but exeext='' is most
1974 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1975 # FIXME: I believe we export ac_cv_exeext for Libtool,
1976 # but it would be cool to find out if it's true. Does anybody
1977 # maintain Libtool? --akim.
1985 echo "$as_me: failed program was:" >&5
1986 sed 's/^/| /' conftest.$ac_ext >&5
1988 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1989 See \`config.log' for more details." >&5
1990 echo "$as_me: error: C compiler cannot create executables
1991 See \`config.log' for more details." >&2;}
1992 { (exit 77); exit 77; }; }
1995 ac_exeext=$ac_cv_exeext
1996 echo "$as_me:$LINENO: result: $ac_file" >&5
1997 echo "${ECHO_T}$ac_file" >&6
1999 # Check the compiler produces executables we can run. If not, either
2000 # the compiler is broken, or we cross compile.
2001 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2002 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2003 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2004 # If not cross compiling, check that we can run a simple program.
2005 if test "$cross_compiling" != yes; then
2006 if { ac_try='./$ac_file'
2007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011 (exit $ac_status); }; }; then
2014 if test "$cross_compiling" = maybe; then
2017 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2018 If you meant to cross compile, use \`--host'.
2019 See \`config.log' for more details." >&5
2020 echo "$as_me: error: cannot run C compiled programs.
2021 If you meant to cross compile, use \`--host'.
2022 See \`config.log' for more details." >&2;}
2023 { (exit 1); exit 1; }; }
2027 echo "$as_me:$LINENO: result: yes" >&5
2028 echo "${ECHO_T}yes" >&6
2030 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2031 ac_clean_files=$ac_clean_files_save
2032 # Check the compiler produces executables we can run. If not, either
2033 # the compiler is broken, or we cross compile.
2034 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2035 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2036 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2037 echo "${ECHO_T}$cross_compiling" >&6
2039 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2040 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2042 (eval $ac_link) 2>&5
2044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045 (exit $ac_status); }; then
2046 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2047 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2048 # work properly (i.e., refer to `conftest.exe'), while it won't with
2050 for ac_file in conftest.exe conftest conftest.*; do
2051 test -f "$ac_file" || continue
2053 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2054 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2061 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2062 See \`config.log' for more details." >&5
2063 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2064 See \`config.log' for more details." >&2;}
2065 { (exit 1); exit 1; }; }
2068 rm -f conftest$ac_cv_exeext
2069 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2070 echo "${ECHO_T}$ac_cv_exeext" >&6
2072 rm -f conftest.$ac_ext
2073 EXEEXT=$ac_cv_exeext
2075 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2076 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2077 if test "${ac_cv_objext+set}" = set; then
2078 echo $ECHO_N "(cached) $ECHO_C" >&6
2080 cat >conftest.$ac_ext <<_ACEOF
2083 cat confdefs.h >>conftest.$ac_ext
2084 cat >>conftest.$ac_ext <<_ACEOF
2085 /* end confdefs.h. */
2095 rm -f conftest.o conftest.obj
2096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2097 (eval $ac_compile) 2>&5
2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100 (exit $ac_status); }; then
2101 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2103 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2104 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2109 echo "$as_me: failed program was:" >&5
2110 sed 's/^/| /' conftest.$ac_ext >&5
2112 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2113 See \`config.log' for more details." >&5
2114 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2115 See \`config.log' for more details." >&2;}
2116 { (exit 1); exit 1; }; }
2119 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2121 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2122 echo "${ECHO_T}$ac_cv_objext" >&6
2123 OBJEXT=$ac_cv_objext
2125 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2126 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2127 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2128 echo $ECHO_N "(cached) $ECHO_C" >&6
2130 cat >conftest.$ac_ext <<_ACEOF
2133 cat confdefs.h >>conftest.$ac_ext
2134 cat >>conftest.$ac_ext <<_ACEOF
2135 /* end confdefs.h. */
2148 rm -f conftest.$ac_objext
2149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2150 (eval $ac_compile) 2>conftest.er1
2152 grep -v '^ *+' conftest.er1 >conftest.err
2154 cat conftest.err >&5
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); } &&
2157 { ac_try='test -z "$ac_c_werror_flag"
2158 || test ! -s conftest.err'
2159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }; } &&
2164 { ac_try='test -s conftest.$ac_objext'
2165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }; }; then
2172 echo "$as_me: failed program was:" >&5
2173 sed 's/^/| /' conftest.$ac_ext >&5
2177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2178 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2181 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2182 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2183 GCC=`test $ac_compiler_gnu = yes && echo yes`
2184 ac_test_CFLAGS=${CFLAGS+set}
2185 ac_save_CFLAGS=$CFLAGS
2187 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2188 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2189 if test "${ac_cv_prog_cc_g+set}" = set; then
2190 echo $ECHO_N "(cached) $ECHO_C" >&6
2192 cat >conftest.$ac_ext <<_ACEOF
2195 cat confdefs.h >>conftest.$ac_ext
2196 cat >>conftest.$ac_ext <<_ACEOF
2197 /* end confdefs.h. */
2207 rm -f conftest.$ac_objext
2208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2209 (eval $ac_compile) 2>conftest.er1
2211 grep -v '^ *+' conftest.er1 >conftest.err
2213 cat conftest.err >&5
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); } &&
2216 { ac_try='test -z "$ac_c_werror_flag"
2217 || test ! -s conftest.err'
2218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); }; } &&
2223 { ac_try='test -s conftest.$ac_objext'
2224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); }; }; then
2231 echo "$as_me: failed program was:" >&5
2232 sed 's/^/| /' conftest.$ac_ext >&5
2236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2238 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2239 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2240 if test "$ac_test_CFLAGS" = set; then
2241 CFLAGS=$ac_save_CFLAGS
2242 elif test $ac_cv_prog_cc_g = yes; then
2243 if test "$GCC" = yes; then
2249 if test "$GCC" = yes; then
2255 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2256 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2257 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2258 echo $ECHO_N "(cached) $ECHO_C" >&6
2260 ac_cv_prog_cc_stdc=no
2262 cat >conftest.$ac_ext <<_ACEOF
2265 cat confdefs.h >>conftest.$ac_ext
2266 cat >>conftest.$ac_ext <<_ACEOF
2267 /* end confdefs.h. */
2270 #include <sys/types.h>
2271 #include <sys/stat.h>
2272 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2273 struct buf { int x; };
2274 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2275 static char *e (p, i)
2281 static char *f (char * (*g) (char **, int), char **p, ...)
2286 s = g (p, va_arg (v,int));
2291 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2292 function prototypes and stuff, but not '\xHH' hex character constants.
2293 These don't provoke an error unfortunately, instead are silently treated
2294 as 'x'. The following induces an error, until -std1 is added to get
2295 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2296 array size at least. It's necessary to write '\x00'==0 to get something
2297 that's true only with -std1. */
2298 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2300 int test (int i, double x);
2301 struct s1 {int (*f) (int a);};
2302 struct s2 {int (*f) (double a);};
2303 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2309 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2314 # Don't try gcc -ansi; that turns off useful extensions and
2315 # breaks some systems' header files.
2316 # AIX -qlanglvl=ansi
2317 # Ultrix and OSF/1 -std1
2318 # HP-UX 10.20 and later -Ae
2319 # HP-UX older versions -Aa -D_HPUX_SOURCE
2320 # SVR4 -Xc -D__EXTENSIONS__
2321 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2323 CC="$ac_save_CC $ac_arg"
2324 rm -f conftest.$ac_objext
2325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2326 (eval $ac_compile) 2>conftest.er1
2328 grep -v '^ *+' conftest.er1 >conftest.err
2330 cat conftest.err >&5
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); } &&
2333 { ac_try='test -z "$ac_c_werror_flag"
2334 || test ! -s conftest.err'
2335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); }; } &&
2340 { ac_try='test -s conftest.$ac_objext'
2341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }; }; then
2346 ac_cv_prog_cc_stdc=$ac_arg
2349 echo "$as_me: failed program was:" >&5
2350 sed 's/^/| /' conftest.$ac_ext >&5
2353 rm -f conftest.err conftest.$ac_objext
2355 rm -f conftest.$ac_ext conftest.$ac_objext
2360 case "x$ac_cv_prog_cc_stdc" in
2362 echo "$as_me:$LINENO: result: none needed" >&5
2363 echo "${ECHO_T}none needed" >&6 ;;
2365 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2366 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2367 CC="$CC $ac_cv_prog_cc_stdc" ;;
2370 # Some people use a C++ compiler to compile C. Since we use `exit',
2371 # in C++ we need to declare it. In case someone uses the same compiler
2372 # for both compiling C and C++ we need to have the C++ compiler decide
2373 # the declaration of exit, since it's the most demanding environment.
2374 cat >conftest.$ac_ext <<_ACEOF
2379 rm -f conftest.$ac_objext
2380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2381 (eval $ac_compile) 2>conftest.er1
2383 grep -v '^ *+' conftest.er1 >conftest.err
2385 cat conftest.err >&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); } &&
2388 { ac_try='test -z "$ac_c_werror_flag"
2389 || test ! -s conftest.err'
2390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }; } &&
2395 { ac_try='test -s conftest.$ac_objext'
2396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; }; then
2401 for ac_declaration in \
2403 'extern "C" void std::exit (int) throw (); using std::exit;' \
2404 'extern "C" void std::exit (int); using std::exit;' \
2405 'extern "C" void exit (int) throw ();' \
2406 'extern "C" void exit (int);' \
2409 cat >conftest.$ac_ext <<_ACEOF
2412 cat confdefs.h >>conftest.$ac_ext
2413 cat >>conftest.$ac_ext <<_ACEOF
2414 /* end confdefs.h. */
2425 rm -f conftest.$ac_objext
2426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2427 (eval $ac_compile) 2>conftest.er1
2429 grep -v '^ *+' conftest.er1 >conftest.err
2431 cat conftest.err >&5
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); } &&
2434 { ac_try='test -z "$ac_c_werror_flag"
2435 || test ! -s conftest.err'
2436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; } &&
2441 { ac_try='test -s conftest.$ac_objext'
2442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); }; }; then
2449 echo "$as_me: failed program was:" >&5
2450 sed 's/^/| /' conftest.$ac_ext >&5
2454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2455 cat >conftest.$ac_ext <<_ACEOF
2458 cat confdefs.h >>conftest.$ac_ext
2459 cat >>conftest.$ac_ext <<_ACEOF
2460 /* end confdefs.h. */
2470 rm -f conftest.$ac_objext
2471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2472 (eval $ac_compile) 2>conftest.er1
2474 grep -v '^ *+' conftest.er1 >conftest.err
2476 cat conftest.err >&5
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); } &&
2479 { ac_try='test -z "$ac_c_werror_flag"
2480 || test ! -s conftest.err'
2481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); }; } &&
2486 { ac_try='test -s conftest.$ac_objext'
2487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }; }; then
2494 echo "$as_me: failed program was:" >&5
2495 sed 's/^/| /' conftest.$ac_ext >&5
2498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2501 if test -n "$ac_declaration"; then
2502 echo '#ifdef __cplusplus' >>confdefs.h
2503 echo $ac_declaration >>confdefs.h
2504 echo '#endif' >>confdefs.h
2508 echo "$as_me: failed program was:" >&5
2509 sed 's/^/| /' conftest.$ac_ext >&5
2512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2514 ac_cpp='$CPP $CPPFLAGS'
2515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2520 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2521 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2522 if test "${ac_cv_search_strerror+set}" = set; then
2523 echo $ECHO_N "(cached) $ECHO_C" >&6
2525 ac_func_search_save_LIBS=$LIBS
2526 ac_cv_search_strerror=no
2527 cat >conftest.$ac_ext <<_ACEOF
2530 cat confdefs.h >>conftest.$ac_ext
2531 cat >>conftest.$ac_ext <<_ACEOF
2532 /* end confdefs.h. */
2534 /* Override any gcc2 internal prototype to avoid an error. */
2538 /* We use char because int might match the return type of a gcc2
2539 builtin and then its argument prototype would still apply. */
2549 rm -f conftest.$ac_objext conftest$ac_exeext
2550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2551 (eval $ac_link) 2>conftest.er1
2553 grep -v '^ *+' conftest.er1 >conftest.err
2555 cat conftest.err >&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); } &&
2558 { ac_try='test -z "$ac_c_werror_flag"
2559 || test ! -s conftest.err'
2560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }; } &&
2565 { ac_try='test -s conftest$ac_exeext'
2566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; }; then
2571 ac_cv_search_strerror="none required"
2573 echo "$as_me: failed program was:" >&5
2574 sed 's/^/| /' conftest.$ac_ext >&5
2577 rm -f conftest.err conftest.$ac_objext \
2578 conftest$ac_exeext conftest.$ac_ext
2579 if test "$ac_cv_search_strerror" = no; then
2580 for ac_lib in cposix; do
2581 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2582 cat >conftest.$ac_ext <<_ACEOF
2585 cat confdefs.h >>conftest.$ac_ext
2586 cat >>conftest.$ac_ext <<_ACEOF
2587 /* end confdefs.h. */
2589 /* Override any gcc2 internal prototype to avoid an error. */
2593 /* We use char because int might match the return type of a gcc2
2594 builtin and then its argument prototype would still apply. */
2604 rm -f conftest.$ac_objext conftest$ac_exeext
2605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2606 (eval $ac_link) 2>conftest.er1
2608 grep -v '^ *+' conftest.er1 >conftest.err
2610 cat conftest.err >&5
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); } &&
2613 { ac_try='test -z "$ac_c_werror_flag"
2614 || test ! -s conftest.err'
2615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; } &&
2620 { ac_try='test -s conftest$ac_exeext'
2621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; }; then
2626 ac_cv_search_strerror="-l$ac_lib"
2629 echo "$as_me: failed program was:" >&5
2630 sed 's/^/| /' conftest.$ac_ext >&5
2633 rm -f conftest.err conftest.$ac_objext \
2634 conftest$ac_exeext conftest.$ac_ext
2637 LIBS=$ac_func_search_save_LIBS
2639 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2640 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2641 if test "$ac_cv_search_strerror" != no; then
2642 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2647 am__api_version="1.9"
2648 # Find a good install program. We prefer a C program (faster),
2649 # so one script is as good as another. But avoid the broken or
2650 # incompatible versions:
2651 # SysV /etc/install, /usr/sbin/install
2652 # SunOS /usr/etc/install
2653 # IRIX /sbin/install
2655 # AmigaOS /C/install, which installs bootblocks on floppy discs
2656 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2657 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2658 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2659 # OS/2's system install, which has a completely different semantic
2660 # ./install, which can be erroneously created by make from ./install.sh.
2661 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2662 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2663 if test -z "$INSTALL"; then
2664 if test "${ac_cv_path_install+set}" = set; then
2665 echo $ECHO_N "(cached) $ECHO_C" >&6
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671 test -z "$as_dir" && as_dir=.
2672 # Account for people who put trailing slashes in PATH elements.
2674 ./ | .// | /cC/* | \
2675 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2676 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2679 # OSF1 and SCO ODT 3.0 have their own names for install.
2680 # Don't use installbsd from OSF since it installs stuff as root
2682 for ac_prog in ginstall scoinst install; do
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2685 if test $ac_prog = install &&
2686 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2687 # AIX install. It has an incompatible calling convention.
2689 elif test $ac_prog = install &&
2690 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2691 # program-specific install script used by HP pwplus--don't use.
2694 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2706 if test "${ac_cv_path_install+set}" = set; then
2707 INSTALL=$ac_cv_path_install
2709 # As a last resort, use the slow shell script. We don't cache a
2710 # path for INSTALL within a source directory, because that will
2711 # break other packages using the cache if that directory is
2712 # removed, or if the path is relative.
2713 INSTALL=$ac_install_sh
2716 echo "$as_me:$LINENO: result: $INSTALL" >&5
2717 echo "${ECHO_T}$INSTALL" >&6
2719 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2720 # It thinks the first close brace ends the variable substitution.
2721 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2723 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2725 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2727 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2728 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2731 echo timestamp > conftest.file
2732 # Do `set' in a subshell so we don't clobber the current shell's
2733 # arguments. Must try -L first in case configure is actually a
2734 # symlink; some systems play weird games with the mod time of symlinks
2735 # (eg FreeBSD returns the mod time of the symlink's containing
2738 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2739 if test "$*" = "X"; then
2741 set X `ls -t $srcdir/configure conftest.file`
2744 if test "$*" != "X $srcdir/configure conftest.file" \
2745 && test "$*" != "X conftest.file $srcdir/configure"; then
2747 # If neither matched, then we have a broken ls. This can happen
2748 # if, for instance, CONFIG_SHELL is bash and it inherits a
2749 # broken ls alias from the environment. This has actually
2750 # happened. Such a system could not be considered "sane".
2751 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2752 alias in your environment" >&5
2753 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2754 alias in your environment" >&2;}
2755 { (exit 1); exit 1; }; }
2758 test "$2" = conftest.file
2764 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2765 Check your system clock" >&5
2766 echo "$as_me: error: newly created file is older than distributed files!
2767 Check your system clock" >&2;}
2768 { (exit 1); exit 1; }; }
2770 echo "$as_me:$LINENO: result: yes" >&5
2771 echo "${ECHO_T}yes" >&6
2772 test "$program_prefix" != NONE &&
2773 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2774 # Use a double $ so make ignores it.
2775 test "$program_suffix" != NONE &&
2776 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2777 # Double any \ or $. echo might interpret backslashes.
2778 # By default was `s,x,x', remove it if useless.
2779 cat <<\_ACEOF >conftest.sed
2780 s/[\\$]/&&/g;s/;s,x,x,$//
2782 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2785 # expand $ac_aux_dir to an absolute path
2786 am_aux_dir=`cd $ac_aux_dir && pwd`
2788 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2789 # Use eval to expand $SHELL
2790 if eval "$MISSING --run true"; then
2791 am_missing_run="$MISSING --run "
2794 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2795 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2798 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2799 # We used to keeping the `.' as first argument, in order to
2800 # allow $(mkdir_p) to be used without argument. As in
2801 # $(mkdir_p) $(somedir)
2802 # where $(somedir) is conditionally defined. However this is wrong
2804 # 1. if the package is installed by a user who cannot write `.'
2805 # make install will fail,
2806 # 2. the above comment should most certainly read
2807 # $(mkdir_p) $(DESTDIR)$(somedir)
2808 # so it does not work when $(somedir) is undefined and
2809 # $(DESTDIR) is not.
2810 # To support the latter case, we have to write
2811 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2812 # so the `.' trick is pointless.
2813 mkdir_p='mkdir -p --'
2815 # On NextStep and OpenStep, the `mkdir' command does not
2816 # recognize any option. It will interpret all options as
2817 # directories to create, and then abort because `.' already
2819 for d in ./-p ./--version;
2821 test -d $d && rmdir $d
2823 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2824 if test -f "$ac_aux_dir/mkinstalldirs"; then
2825 mkdir_p='$(mkinstalldirs)'
2827 mkdir_p='$(install_sh) -d'
2831 for ac_prog in gawk mawk nawk awk
2833 # Extract the first word of "$ac_prog", so it can be a program name with args.
2834 set dummy $ac_prog; ac_word=$2
2835 echo "$as_me:$LINENO: checking for $ac_word" >&5
2836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2837 if test "${ac_cv_prog_AWK+set}" = set; then
2838 echo $ECHO_N "(cached) $ECHO_C" >&6
2840 if test -n "$AWK"; then
2841 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 test -z "$as_dir" && as_dir=.
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2850 ac_cv_prog_AWK="$ac_prog"
2851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2860 if test -n "$AWK"; then
2861 echo "$as_me:$LINENO: result: $AWK" >&5
2862 echo "${ECHO_T}$AWK" >&6
2864 echo "$as_me:$LINENO: result: no" >&5
2865 echo "${ECHO_T}no" >&6
2868 test -n "$AWK" && break
2871 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2872 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2873 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2874 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2875 echo $ECHO_N "(cached) $ECHO_C" >&6
2877 cat >conftest.make <<\_ACEOF
2879 @echo 'ac_maketemp="$(MAKE)"'
2881 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2882 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2883 if test -n "$ac_maketemp"; then
2884 eval ac_cv_prog_make_${ac_make}_set=yes
2886 eval ac_cv_prog_make_${ac_make}_set=no
2890 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2891 echo "$as_me:$LINENO: result: yes" >&5
2892 echo "${ECHO_T}yes" >&6
2895 echo "$as_me:$LINENO: result: no" >&5
2896 echo "${ECHO_T}no" >&6
2897 SET_MAKE="MAKE=${MAKE-make}"
2900 rm -rf .tst 2>/dev/null
2901 mkdir .tst 2>/dev/null
2902 if test -d .tst; then
2907 rmdir .tst 2>/dev/null
2909 DEPDIR="${am__leading_dot}deps"
2911 ac_config_commands="$ac_config_commands depfiles"
2914 am_make=${MAKE-make}
2915 cat > confinc << 'END'
2920 # If we don't find an include directive, just comment out the code.
2921 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2922 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2926 # First try GNU make style include.
2927 echo "include confinc" > confmf
2928 # We grep out `Entering directory' and `Leaving directory'
2929 # messages which can occur if `w' ends up in MAKEFLAGS.
2930 # In particular we don't look at `^make:' because GNU make might
2931 # be invoked under some other name (usually "gmake"), in which
2932 # case it prints its new name instead of `make'.
2933 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2938 # Now try BSD make style include.
2939 if test "$am__include" = "#"; then
2940 echo '.include "confinc"' > confmf
2941 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2942 am__include=.include
2949 echo "$as_me:$LINENO: result: $_am_result" >&5
2950 echo "${ECHO_T}$_am_result" >&6
2951 rm -f confinc confmf
2953 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2954 if test "${enable_dependency_tracking+set}" = set; then
2955 enableval="$enable_dependency_tracking"
2958 if test "x$enable_dependency_tracking" != xno; then
2959 am_depcomp="$ac_aux_dir/depcomp"
2964 if test "x$enable_dependency_tracking" != xno; then
2974 # test to see if srcdir already configured
2975 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2976 test -f $srcdir/config.status; then
2977 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2978 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2979 { (exit 1); exit 1; }; }
2982 # test whether we have cygpath
2983 if test -z "$CYGPATH_W"; then
2984 if (cygpath --version) >/dev/null 2>/dev/null; then
2985 CYGPATH_W='cygpath -w'
2992 # Define the identity of the package.
2997 cat >>confdefs.h <<_ACEOF
2998 #define PACKAGE "$PACKAGE"
3002 cat >>confdefs.h <<_ACEOF
3003 #define VERSION "$VERSION"
3006 # Some tools Automake needs.
3008 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3011 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3014 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3017 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3020 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3022 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3024 # Installed binaries are usually stripped using `strip' when the user
3025 # run `make install-strip'. However `strip' might not be the right
3026 # tool to use in cross-compilation environments, therefore Automake
3027 # will honor the `STRIP' environment variable to overrule this program.
3028 if test "$cross_compiling" != no; then
3029 if test -n "$ac_tool_prefix"; then
3030 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3031 set dummy ${ac_tool_prefix}strip; ac_word=$2
3032 echo "$as_me:$LINENO: checking for $ac_word" >&5
3033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3034 if test "${ac_cv_prog_STRIP+set}" = set; then
3035 echo $ECHO_N "(cached) $ECHO_C" >&6
3037 if test -n "$STRIP"; then
3038 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 test -z "$as_dir" && as_dir=.
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3047 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3056 STRIP=$ac_cv_prog_STRIP
3057 if test -n "$STRIP"; then
3058 echo "$as_me:$LINENO: result: $STRIP" >&5
3059 echo "${ECHO_T}$STRIP" >&6
3061 echo "$as_me:$LINENO: result: no" >&5
3062 echo "${ECHO_T}no" >&6
3066 if test -z "$ac_cv_prog_STRIP"; then
3068 # Extract the first word of "strip", so it can be a program name with args.
3069 set dummy strip; ac_word=$2
3070 echo "$as_me:$LINENO: checking for $ac_word" >&5
3071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3072 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3073 echo $ECHO_N "(cached) $ECHO_C" >&6
3075 if test -n "$ac_ct_STRIP"; then
3076 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082 test -z "$as_dir" && as_dir=.
3083 for ac_exec_ext in '' $ac_executable_extensions; do
3084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3085 ac_cv_prog_ac_ct_STRIP="strip"
3086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3092 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3095 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3096 if test -n "$ac_ct_STRIP"; then
3097 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3098 echo "${ECHO_T}$ac_ct_STRIP" >&6
3100 echo "$as_me:$LINENO: result: no" >&5
3101 echo "${ECHO_T}no" >&6
3106 STRIP="$ac_cv_prog_STRIP"
3110 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3112 # We need awk for the "check" target. The system "awk" is bad on
3114 # Always define AMTAR for backward compatibility.
3116 AMTAR=${AMTAR-"${am_missing_run}tar"}
3118 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3123 depcc="$CC" am_compiler_list=
3125 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3126 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3127 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
3130 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3131 # We make a subdir and do the tests there. Otherwise we can end up
3132 # making bogus files that we don't know about and never remove. For
3133 # instance it was reported that on HP-UX the gcc test will end up
3134 # making a dummy file named `D' -- because `-MD' means `put the output
3137 # Copy depcomp to subdir because otherwise we won't find it if we're
3138 # using a relative directory.
3139 cp "$am_depcomp" conftest.dir
3141 # We will build objects and dependencies in a subdirectory because
3142 # it helps to detect inapplicable dependency modes. For instance
3143 # both Tru64's cc and ICC support -MD to output dependencies as a
3144 # side effect of compilation, but ICC will put the dependencies in
3145 # the current directory while Tru64 will put them in the object
3149 am_cv_CC_dependencies_compiler_type=none
3150 if test "$am_compiler_list" = ""; then
3151 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3153 for depmode in $am_compiler_list; do
3154 # Setup a source with many dependencies, because some compilers
3155 # like to wrap large dependency lists on column 80 (with \), and
3156 # we should not choose a depcomp mode which is confused by this.
3158 # We need to recreate these files for each test, as the compiler may
3159 # overwrite some of them when testing with obscure command lines.
3160 # This happens at least with the AIX C compiler.
3162 for i in 1 2 3 4 5 6; do
3163 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3164 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3165 # Solaris 8's {/usr,}/bin/sh.
3166 touch sub/conftst$i.h
3168 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3172 # after this tag, mechanisms are not by side-effect, so they'll
3173 # only be used when explicitly requested
3174 if test "x$enable_dependency_tracking" = xyes; then
3182 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3183 # mode. It turns out that the SunPro C++ compiler does not properly
3184 # handle `-M -o', and we need to detect this.
3185 if depmode=$depmode \
3186 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3187 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3188 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3189 >/dev/null 2>conftest.err &&
3190 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3191 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3192 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3193 # icc doesn't choke on unknown options, it will just issue warnings
3194 # or remarks (even with -Werror). So we grep stderr for any message
3195 # that says an option was ignored or not supported.
3196 # When given -MP, icc 7.0 and 7.1 complain thusly:
3197 # icc: Command line warning: ignoring option '-M'; no argument required
3198 # The diagnosis changed in icc 8.0:
3199 # icc: Command line remark: option '-MP' not supported
3200 if (grep 'ignoring option' conftest.err ||
3201 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3202 am_cv_CC_dependencies_compiler_type=$depmode
3211 am_cv_CC_dependencies_compiler_type=none
3215 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3216 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3217 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3222 test "x$enable_dependency_tracking" != xno \
3223 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3225 am__fastdepCC_FALSE='#'
3227 am__fastdepCC_TRUE='#'
3228 am__fastdepCC_FALSE=
3234 if test -n "$ac_tool_prefix"; then
3235 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3236 set dummy ${ac_tool_prefix}ar; ac_word=$2
3237 echo "$as_me:$LINENO: checking for $ac_word" >&5
3238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3239 if test "${ac_cv_prog_AR+set}" = set; then
3240 echo $ECHO_N "(cached) $ECHO_C" >&6
3242 if test -n "$AR"; then
3243 ac_cv_prog_AR="$AR" # Let the user override the test.
3245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3249 test -z "$as_dir" && as_dir=.
3250 for ac_exec_ext in '' $ac_executable_extensions; do
3251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3252 ac_cv_prog_AR="${ac_tool_prefix}ar"
3253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3262 if test -n "$AR"; then
3263 echo "$as_me:$LINENO: result: $AR" >&5
3264 echo "${ECHO_T}$AR" >&6
3266 echo "$as_me:$LINENO: result: no" >&5
3267 echo "${ECHO_T}no" >&6
3271 if test -z "$ac_cv_prog_AR"; then
3273 # Extract the first word of "ar", so it can be a program name with args.
3274 set dummy ar; ac_word=$2
3275 echo "$as_me:$LINENO: checking for $ac_word" >&5
3276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3277 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3280 if test -n "$ac_ct_AR"; then
3281 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287 test -z "$as_dir" && as_dir=.
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3290 ac_cv_prog_ac_ct_AR="ar"
3291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3299 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3300 if test -n "$ac_ct_AR"; then
3301 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3302 echo "${ECHO_T}$ac_ct_AR" >&6
3304 echo "$as_me:$LINENO: result: no" >&5
3305 echo "${ECHO_T}no" >&6
3313 if test -n "$ac_tool_prefix"; then
3314 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3315 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3316 echo "$as_me:$LINENO: checking for $ac_word" >&5
3317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3318 if test "${ac_cv_prog_RANLIB+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 if test -n "$RANLIB"; then
3322 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328 test -z "$as_dir" && as_dir=.
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3331 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3340 RANLIB=$ac_cv_prog_RANLIB
3341 if test -n "$RANLIB"; then
3342 echo "$as_me:$LINENO: result: $RANLIB" >&5
3343 echo "${ECHO_T}$RANLIB" >&6
3345 echo "$as_me:$LINENO: result: no" >&5
3346 echo "${ECHO_T}no" >&6
3350 if test -z "$ac_cv_prog_RANLIB"; then
3351 ac_ct_RANLIB=$RANLIB
3352 # Extract the first word of "ranlib", so it can be a program name with args.
3353 set dummy ranlib; ac_word=$2
3354 echo "$as_me:$LINENO: checking for $ac_word" >&5
3355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3356 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3359 if test -n "$ac_ct_RANLIB"; then
3360 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366 test -z "$as_dir" && as_dir=.
3367 for ac_exec_ext in '' $ac_executable_extensions; do
3368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3369 ac_cv_prog_ac_ct_RANLIB="ranlib"
3370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3376 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3379 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3380 if test -n "$ac_ct_RANLIB"; then
3381 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3382 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3384 echo "$as_me:$LINENO: result: no" >&5
3385 echo "${ECHO_T}no" >&6
3388 RANLIB=$ac_ct_RANLIB
3390 RANLIB="$ac_cv_prog_RANLIB"
3394 # Check whether --enable-shared or --disable-shared was given.
3395 if test "${enable_shared+set}" = set; then
3396 enableval="$enable_shared"
3397 p=${PACKAGE-default}
3399 yes) enable_shared=yes ;;
3400 no) enable_shared=no ;;
3403 # Look at the argument we got. We use all the common list separators.
3404 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3405 for pkg in $enableval; do
3407 if test "X$pkg" = "X$p"; then
3427 ac_cpp='$CPP $CPPFLAGS'
3428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3431 if test -n "$ac_tool_prefix"; then
3432 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3433 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3434 echo "$as_me:$LINENO: checking for $ac_word" >&5
3435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3436 if test "${ac_cv_prog_CC+set}" = set; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3439 if test -n "$CC"; then
3440 ac_cv_prog_CC="$CC" # Let the user override the test.
3442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446 test -z "$as_dir" && as_dir=.
3447 for ac_exec_ext in '' $ac_executable_extensions; do
3448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3449 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3459 if test -n "$CC"; then
3460 echo "$as_me:$LINENO: result: $CC" >&5
3461 echo "${ECHO_T}$CC" >&6
3463 echo "$as_me:$LINENO: result: no" >&5
3464 echo "${ECHO_T}no" >&6
3468 if test -z "$ac_cv_prog_CC"; then
3470 # Extract the first word of "gcc", so it can be a program name with args.
3471 set dummy gcc; ac_word=$2
3472 echo "$as_me:$LINENO: checking for $ac_word" >&5
3473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3474 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3477 if test -n "$ac_ct_CC"; then
3478 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484 test -z "$as_dir" && as_dir=.
3485 for ac_exec_ext in '' $ac_executable_extensions; do
3486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3487 ac_cv_prog_ac_ct_CC="gcc"
3488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3496 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3497 if test -n "$ac_ct_CC"; then
3498 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3499 echo "${ECHO_T}$ac_ct_CC" >&6
3501 echo "$as_me:$LINENO: result: no" >&5
3502 echo "${ECHO_T}no" >&6
3510 if test -z "$CC"; then
3511 if test -n "$ac_tool_prefix"; then
3512 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3513 set dummy ${ac_tool_prefix}cc; ac_word=$2
3514 echo "$as_me:$LINENO: checking for $ac_word" >&5
3515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3516 if test "${ac_cv_prog_CC+set}" = set; then
3517 echo $ECHO_N "(cached) $ECHO_C" >&6
3519 if test -n "$CC"; then
3520 ac_cv_prog_CC="$CC" # Let the user override the test.
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 test -z "$as_dir" && as_dir=.
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3529 ac_cv_prog_CC="${ac_tool_prefix}cc"
3530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3539 if test -n "$CC"; then
3540 echo "$as_me:$LINENO: result: $CC" >&5
3541 echo "${ECHO_T}$CC" >&6
3543 echo "$as_me:$LINENO: result: no" >&5
3544 echo "${ECHO_T}no" >&6
3548 if test -z "$ac_cv_prog_CC"; then
3550 # Extract the first word of "cc", so it can be a program name with args.
3551 set dummy cc; ac_word=$2
3552 echo "$as_me:$LINENO: checking for $ac_word" >&5
3553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3554 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3557 if test -n "$ac_ct_CC"; then
3558 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564 test -z "$as_dir" && as_dir=.
3565 for ac_exec_ext in '' $ac_executable_extensions; do
3566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3567 ac_cv_prog_ac_ct_CC="cc"
3568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3576 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3577 if test -n "$ac_ct_CC"; then
3578 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3579 echo "${ECHO_T}$ac_ct_CC" >&6
3581 echo "$as_me:$LINENO: result: no" >&5
3582 echo "${ECHO_T}no" >&6
3591 if test -z "$CC"; then
3592 # Extract the first word of "cc", so it can be a program name with args.
3593 set dummy cc; ac_word=$2
3594 echo "$as_me:$LINENO: checking for $ac_word" >&5
3595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3596 if test "${ac_cv_prog_CC+set}" = set; then
3597 echo $ECHO_N "(cached) $ECHO_C" >&6
3599 if test -n "$CC"; then
3600 ac_cv_prog_CC="$CC" # Let the user override the test.
3603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3607 test -z "$as_dir" && as_dir=.
3608 for ac_exec_ext in '' $ac_executable_extensions; do
3609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3610 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3611 ac_prog_rejected=yes
3615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3621 if test $ac_prog_rejected = yes; then
3622 # We found a bogon in the path, so make sure we never use it.
3623 set dummy $ac_cv_prog_CC
3625 if test $# != 0; then
3626 # We chose a different compiler from the bogus one.
3627 # However, it has the same basename, so the bogon will be chosen
3628 # first if we set CC to just the basename; use the full file name.
3630 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3636 if test -n "$CC"; then
3637 echo "$as_me:$LINENO: result: $CC" >&5
3638 echo "${ECHO_T}$CC" >&6
3640 echo "$as_me:$LINENO: result: no" >&5
3641 echo "${ECHO_T}no" >&6
3645 if test -z "$CC"; then
3646 if test -n "$ac_tool_prefix"; then
3649 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3650 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3651 echo "$as_me:$LINENO: checking for $ac_word" >&5
3652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3653 if test "${ac_cv_prog_CC+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3656 if test -n "$CC"; then
3657 ac_cv_prog_CC="$CC" # Let the user override the test.
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663 test -z "$as_dir" && as_dir=.
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3666 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3676 if test -n "$CC"; then
3677 echo "$as_me:$LINENO: result: $CC" >&5
3678 echo "${ECHO_T}$CC" >&6
3680 echo "$as_me:$LINENO: result: no" >&5
3681 echo "${ECHO_T}no" >&6
3684 test -n "$CC" && break
3687 if test -z "$CC"; then
3691 # Extract the first word of "$ac_prog", so it can be a program name with args.
3692 set dummy $ac_prog; ac_word=$2
3693 echo "$as_me:$LINENO: checking for $ac_word" >&5
3694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3695 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3696 echo $ECHO_N "(cached) $ECHO_C" >&6
3698 if test -n "$ac_ct_CC"; then
3699 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705 test -z "$as_dir" && as_dir=.
3706 for ac_exec_ext in '' $ac_executable_extensions; do
3707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3708 ac_cv_prog_ac_ct_CC="$ac_prog"
3709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3717 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3718 if test -n "$ac_ct_CC"; then
3719 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3720 echo "${ECHO_T}$ac_ct_CC" >&6
3722 echo "$as_me:$LINENO: result: no" >&5
3723 echo "${ECHO_T}no" >&6
3726 test -n "$ac_ct_CC" && break
3735 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3736 See \`config.log' for more details." >&5
3737 echo "$as_me: error: no acceptable C compiler found in \$PATH
3738 See \`config.log' for more details." >&2;}
3739 { (exit 1); exit 1; }; }
3741 # Provide some information about the compiler.
3742 echo "$as_me:$LINENO:" \
3743 "checking for C compiler version" >&5
3744 ac_compiler=`set X $ac_compile; echo $2`
3745 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3746 (eval $ac_compiler --version </dev/null >&5) 2>&5
3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); }
3750 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3751 (eval $ac_compiler -v </dev/null >&5) 2>&5
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); }
3755 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3756 (eval $ac_compiler -V </dev/null >&5) 2>&5
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); }
3761 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3762 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3763 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3766 cat >conftest.$ac_ext <<_ACEOF
3769 cat confdefs.h >>conftest.$ac_ext
3770 cat >>conftest.$ac_ext <<_ACEOF
3771 /* end confdefs.h. */
3784 rm -f conftest.$ac_objext
3785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3786 (eval $ac_compile) 2>conftest.er1
3788 grep -v '^ *+' conftest.er1 >conftest.err
3790 cat conftest.err >&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } &&
3793 { ac_try='test -z "$ac_c_werror_flag"
3794 || test ! -s conftest.err'
3795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }; } &&
3800 { ac_try='test -s conftest.$ac_objext'
3801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); }; }; then
3808 echo "$as_me: failed program was:" >&5
3809 sed 's/^/| /' conftest.$ac_ext >&5
3813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3814 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3817 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3818 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3819 GCC=`test $ac_compiler_gnu = yes && echo yes`
3820 ac_test_CFLAGS=${CFLAGS+set}
3821 ac_save_CFLAGS=$CFLAGS
3823 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3824 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3825 if test "${ac_cv_prog_cc_g+set}" = set; then
3826 echo $ECHO_N "(cached) $ECHO_C" >&6
3828 cat >conftest.$ac_ext <<_ACEOF
3831 cat confdefs.h >>conftest.$ac_ext
3832 cat >>conftest.$ac_ext <<_ACEOF
3833 /* end confdefs.h. */
3843 rm -f conftest.$ac_objext
3844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3845 (eval $ac_compile) 2>conftest.er1
3847 grep -v '^ *+' conftest.er1 >conftest.err
3849 cat conftest.err >&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); } &&
3852 { ac_try='test -z "$ac_c_werror_flag"
3853 || test ! -s conftest.err'
3854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); }; } &&
3859 { ac_try='test -s conftest.$ac_objext'
3860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); }; }; then
3867 echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3874 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3875 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3876 if test "$ac_test_CFLAGS" = set; then
3877 CFLAGS=$ac_save_CFLAGS
3878 elif test $ac_cv_prog_cc_g = yes; then
3879 if test "$GCC" = yes; then
3885 if test "$GCC" = yes; then
3891 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3892 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3893 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3894 echo $ECHO_N "(cached) $ECHO_C" >&6
3896 ac_cv_prog_cc_stdc=no
3898 cat >conftest.$ac_ext <<_ACEOF
3901 cat confdefs.h >>conftest.$ac_ext
3902 cat >>conftest.$ac_ext <<_ACEOF
3903 /* end confdefs.h. */
3906 #include <sys/types.h>
3907 #include <sys/stat.h>
3908 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3909 struct buf { int x; };
3910 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3911 static char *e (p, i)
3917 static char *f (char * (*g) (char **, int), char **p, ...)
3922 s = g (p, va_arg (v,int));
3927 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3928 function prototypes and stuff, but not '\xHH' hex character constants.
3929 These don't provoke an error unfortunately, instead are silently treated
3930 as 'x'. The following induces an error, until -std1 is added to get
3931 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3932 array size at least. It's necessary to write '\x00'==0 to get something
3933 that's true only with -std1. */
3934 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3936 int test (int i, double x);
3937 struct s1 {int (*f) (int a);};
3938 struct s2 {int (*f) (double a);};
3939 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3945 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3950 # Don't try gcc -ansi; that turns off useful extensions and
3951 # breaks some systems' header files.
3952 # AIX -qlanglvl=ansi
3953 # Ultrix and OSF/1 -std1
3954 # HP-UX 10.20 and later -Ae
3955 # HP-UX older versions -Aa -D_HPUX_SOURCE
3956 # SVR4 -Xc -D__EXTENSIONS__
3957 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3959 CC="$ac_save_CC $ac_arg"
3960 rm -f conftest.$ac_objext
3961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3962 (eval $ac_compile) 2>conftest.er1
3964 grep -v '^ *+' conftest.er1 >conftest.err
3966 cat conftest.err >&5
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); } &&
3969 { ac_try='test -z "$ac_c_werror_flag"
3970 || test ! -s conftest.err'
3971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); }; } &&
3976 { ac_try='test -s conftest.$ac_objext'
3977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); }; }; then
3982 ac_cv_prog_cc_stdc=$ac_arg
3985 echo "$as_me: failed program was:" >&5
3986 sed 's/^/| /' conftest.$ac_ext >&5
3989 rm -f conftest.err conftest.$ac_objext
3991 rm -f conftest.$ac_ext conftest.$ac_objext
3996 case "x$ac_cv_prog_cc_stdc" in
3998 echo "$as_me:$LINENO: result: none needed" >&5
3999 echo "${ECHO_T}none needed" >&6 ;;
4001 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4002 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4003 CC="$CC $ac_cv_prog_cc_stdc" ;;
4006 # Some people use a C++ compiler to compile C. Since we use `exit',
4007 # in C++ we need to declare it. In case someone uses the same compiler
4008 # for both compiling C and C++ we need to have the C++ compiler decide
4009 # the declaration of exit, since it's the most demanding environment.
4010 cat >conftest.$ac_ext <<_ACEOF
4015 rm -f conftest.$ac_objext
4016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4017 (eval $ac_compile) 2>conftest.er1
4019 grep -v '^ *+' conftest.er1 >conftest.err
4021 cat conftest.err >&5
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); } &&
4024 { ac_try='test -z "$ac_c_werror_flag"
4025 || test ! -s conftest.err'
4026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); }; } &&
4031 { ac_try='test -s conftest.$ac_objext'
4032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); }; }; then
4037 for ac_declaration in \
4039 'extern "C" void std::exit (int) throw (); using std::exit;' \
4040 'extern "C" void std::exit (int); using std::exit;' \
4041 'extern "C" void exit (int) throw ();' \
4042 'extern "C" void exit (int);' \
4045 cat >conftest.$ac_ext <<_ACEOF
4048 cat confdefs.h >>conftest.$ac_ext
4049 cat >>conftest.$ac_ext <<_ACEOF
4050 /* end confdefs.h. */
4061 rm -f conftest.$ac_objext
4062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4063 (eval $ac_compile) 2>conftest.er1
4065 grep -v '^ *+' conftest.er1 >conftest.err
4067 cat conftest.err >&5
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); } &&
4070 { ac_try='test -z "$ac_c_werror_flag"
4071 || test ! -s conftest.err'
4072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; } &&
4077 { ac_try='test -s conftest.$ac_objext'
4078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; }; then
4085 echo "$as_me: failed program was:" >&5
4086 sed 's/^/| /' conftest.$ac_ext >&5
4090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4091 cat >conftest.$ac_ext <<_ACEOF
4094 cat confdefs.h >>conftest.$ac_ext
4095 cat >>conftest.$ac_ext <<_ACEOF
4096 /* end confdefs.h. */
4106 rm -f conftest.$ac_objext
4107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4108 (eval $ac_compile) 2>conftest.er1
4110 grep -v '^ *+' conftest.er1 >conftest.err
4112 cat conftest.err >&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); } &&
4115 { ac_try='test -z "$ac_c_werror_flag"
4116 || test ! -s conftest.err'
4117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); }; } &&
4122 { ac_try='test -s conftest.$ac_objext'
4123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; }; then
4130 echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4137 if test -n "$ac_declaration"; then
4138 echo '#ifdef __cplusplus' >>confdefs.h
4139 echo $ac_declaration >>confdefs.h
4140 echo '#endif' >>confdefs.h
4144 echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.$ac_ext >&5
4148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4150 ac_cpp='$CPP $CPPFLAGS'
4151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4156 cat >>confdefs.h <<\_ACEOF
4157 #define _GNU_SOURCE 1
4164 macro_version='2.1a'
4165 macro_revision='1.2435'
4178 ltmain="$ac_aux_dir/ltmain.sh"
4189 # Check whether --enable-static or --disable-static was given.
4190 if test "${enable_static+set}" = set; then
4191 enableval="$enable_static"
4192 p=${PACKAGE-default}
4194 yes) enable_static=yes ;;
4195 no) enable_static=no ;;
4198 # Look at the argument we got. We use all the common list separators.
4199 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4200 for pkg in $enableval; do
4202 if test "X$pkg" = "X$p"; then
4221 # Check whether --with-pic or --without-pic was given.
4222 if test "${with_pic+set}" = set; then
4229 test -z "$pic_mode" && pic_mode=default
4237 # Check whether --enable-fast-install or --disable-fast-install was given.
4238 if test "${enable_fast_install+set}" = set; then
4239 enableval="$enable_fast_install"
4240 p=${PACKAGE-default}
4242 yes) enable_fast_install=yes ;;
4243 no) enable_fast_install=no ;;
4245 enable_fast_install=no
4246 # Look at the argument we got. We use all the common list separators.
4247 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4248 for pkg in $enableval; do
4250 if test "X$pkg" = "X$p"; then
4251 enable_fast_install=yes
4258 enable_fast_install=yes
4268 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4269 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4270 if test "${lt_cv_path_SED+set}" = set; then
4271 echo $ECHO_N "(cached) $ECHO_C" >&6
4273 # Loop through the user's path and test for sed and gsed.
4274 # Then use that list of sed's as ones to test for truncation.
4275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 test -z "$as_dir" && as_dir=.
4280 for lt_ac_prog in sed gsed; do
4281 for ac_exec_ext in '' $ac_executable_extensions; do
4282 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4283 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4291 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4292 # along with /bin/sed that truncates output.
4293 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4294 test ! -f $lt_ac_sed && continue
4295 cat /dev/null > conftest.in
4297 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4298 # Check for GNU sed and select it if it is found.
4299 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4300 lt_cv_path_SED=$lt_ac_sed
4304 cat conftest.in conftest.in >conftest.tmp
4305 mv conftest.tmp conftest.in
4306 cp conftest.in conftest.nl
4308 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4309 cmp -s conftest.out conftest.nl || break
4310 # 10000 chars as input seems more than enough
4311 test $lt_ac_count -gt 10 && break
4312 lt_ac_count=`expr $lt_ac_count + 1`
4313 if test $lt_ac_count -gt $lt_ac_max; then
4314 lt_ac_max=$lt_ac_count
4315 lt_cv_path_SED=$lt_ac_sed
4324 echo "$as_me:$LINENO: result: $SED" >&5
4325 echo "${ECHO_T}$SED" >&6
4327 test -z "$SED" && SED=sed
4328 Xsed="$SED -e 1s/^X//"
4340 echo "$as_me:$LINENO: checking for egrep" >&5
4341 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4342 if test "${ac_cv_prog_egrep+set}" = set; then
4343 echo $ECHO_N "(cached) $ECHO_C" >&6
4345 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4346 then ac_cv_prog_egrep='grep -E'
4347 else ac_cv_prog_egrep='egrep'
4350 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4351 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4352 EGREP=$ac_cv_prog_egrep
4355 echo "$as_me:$LINENO: checking for fgrep" >&5
4356 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4357 if test "${ac_cv_prog_fgrep+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4360 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4361 then ac_cv_prog_fgrep='grep -F'
4362 else ac_cv_prog_fgrep='fgrep'
4365 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4366 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4367 FGREP=$ac_cv_prog_fgrep
4370 test -z "$GREP" && GREP=grep
4390 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4391 if test "${with_gnu_ld+set}" = set; then
4392 withval="$with_gnu_ld"
4393 test "$withval" = no || with_gnu_ld=yes
4398 if test "$GCC" = yes; then
4399 # Check if gcc -print-prog-name=ld gives a path.
4400 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4401 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4404 # gcc leaves a trailing carriage return which upsets mingw
4405 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4407 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4410 # Accept absolute paths.
4412 re_direlt='/[^/][^/]*/\.\./'
4413 # Canonicalize the pathname of ld
4414 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4415 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4416 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4418 test -z "$LD" && LD="$ac_prog"
4421 # If it fails, then pretend we aren't using GCC.
4425 # If it is relative, then search for the first ld in PATH.
4429 elif test "$with_gnu_ld" = yes; then
4430 echo "$as_me:$LINENO: checking for GNU ld" >&5
4431 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4433 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4434 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4436 if test "${lt_cv_path_LD+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4439 if test -z "$LD"; then
4440 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4441 for ac_dir in $PATH; do
4443 test -z "$ac_dir" && ac_dir=.
4444 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4445 lt_cv_path_LD="$ac_dir/$ac_prog"
4446 # Check to see if the program is GNU ld. I'd rather use --version,
4447 # but apparently some variants of GNU ld only accept -v.
4448 # Break only if it was the GNU/non-GNU ld that we prefer.
4449 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4450 *GNU* | *'with BFD'*)
4451 test "$with_gnu_ld" != no && break
4454 test "$with_gnu_ld" != yes && break
4461 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4466 if test -n "$LD"; then
4467 echo "$as_me:$LINENO: result: $LD" >&5
4468 echo "${ECHO_T}$LD" >&6
4470 echo "$as_me:$LINENO: result: no" >&5
4471 echo "${ECHO_T}no" >&6
4473 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4474 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4475 { (exit 1); exit 1; }; }
4476 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4477 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4478 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4481 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4482 case `$LD -v 2>&1 </dev/null` in
4483 *GNU* | *'with BFD'*)
4484 lt_cv_prog_gnu_ld=yes
4487 lt_cv_prog_gnu_ld=no
4491 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4492 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4493 with_gnu_ld=$lt_cv_prog_gnu_ld
4504 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4505 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4506 if test "${lt_cv_path_NM+set}" = set; then
4507 echo $ECHO_N "(cached) $ECHO_C" >&6
4509 if test -n "$NM"; then
4510 # Let the user override the test.
4513 lt_nm_to_check="${ac_tool_prefix}nm"
4514 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4515 lt_nm_to_check="$lt_nm_to_check nm"
4517 for lt_tmp_nm in $lt_nm_to_check; do
4518 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4519 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4521 test -z "$ac_dir" && ac_dir=.
4522 tmp_nm="$ac_dir/$lt_tmp_nm"
4523 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4524 # Check to see if the nm accepts a BSD-compat flag.
4525 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4526 # nm: unknown option "B" ignored
4527 # Tru64's nm complains that /dev/null is an invalid object file
4528 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4529 */dev/null* | *'Invalid file or object type'*)
4530 lt_cv_path_NM="$tmp_nm -B"
4534 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4536 lt_cv_path_NM="$tmp_nm -p"
4540 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4541 continue # so that we can try to find one that supports BSD flags
4550 : ${lt_cv_path_NM=no}
4553 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4554 echo "${ECHO_T}$lt_cv_path_NM" >&6
4555 if test "$lt_cv_path_NM" != "no"; then
4558 # Didn't find any BSD compatible name lister, look for dumpbin.
4559 if test -n "$ac_tool_prefix"; then
4560 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4562 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4563 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4564 echo "$as_me:$LINENO: checking for $ac_word" >&5
4565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4566 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4569 if test -n "$DUMPBIN"; then
4570 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 test -z "$as_dir" && as_dir=.
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4579 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4588 DUMPBIN=$ac_cv_prog_DUMPBIN
4589 if test -n "$DUMPBIN"; then
4590 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4591 echo "${ECHO_T}$DUMPBIN" >&6
4593 echo "$as_me:$LINENO: result: no" >&5
4594 echo "${ECHO_T}no" >&6
4597 test -n "$DUMPBIN" && break
4600 if test -z "$DUMPBIN"; then
4601 ac_ct_DUMPBIN=$DUMPBIN
4602 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4604 # Extract the first word of "$ac_prog", so it can be a program name with args.
4605 set dummy $ac_prog; ac_word=$2
4606 echo "$as_me:$LINENO: checking for $ac_word" >&5
4607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4608 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
4611 if test -n "$ac_ct_DUMPBIN"; then
4612 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 test -z "$as_dir" && as_dir=.
4619 for ac_exec_ext in '' $ac_executable_extensions; do
4620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4621 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4630 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4631 if test -n "$ac_ct_DUMPBIN"; then
4632 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4633 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4635 echo "$as_me:$LINENO: result: no" >&5
4636 echo "${ECHO_T}no" >&6
4639 test -n "$ac_ct_DUMPBIN" && break
4641 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4643 DUMPBIN=$ac_ct_DUMPBIN
4647 if test "$DUMPBIN" != ":"; then
4651 test -z "$NM" && NM=nm
4658 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4659 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4660 if test "${lt_cv_nm_interface+set}" = set; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
4663 lt_cv_nm_interface="BSD nm"
4664 echo "int some_variable = 0;" > conftest.$ac_ext
4665 (eval echo "\"\$as_me:4665: $ac_compile\"" >&5)
4666 (eval "$ac_compile" 2>conftest.err)
4667 cat conftest.err >&5
4668 (eval echo "\"\$as_me:4668: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4669 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4670 cat conftest.err >&5
4671 (eval echo "\"\$as_me:4671: output\"" >&5)
4672 cat conftest.out >&5
4673 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4674 lt_cv_nm_interface="MS dumpbin"
4678 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4679 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4681 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4682 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4684 if test "$LN_S" = "ln -s"; then
4685 echo "$as_me:$LINENO: result: yes" >&5
4686 echo "${ECHO_T}yes" >&6
4688 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4689 echo "${ECHO_T}no, using $LN_S" >&6
4692 # find the maximum length of command line arguments
4693 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4694 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4695 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4696 echo $ECHO_N "(cached) $ECHO_C" >&6
4703 # On DJGPP, this test can blow up pretty badly due to problems in libc
4704 # (any single argument exceeding 2000 bytes causes a buffer overrun
4705 # during glob expansion). Even if it were fixed, the result of this
4706 # check would be larger than it should be.
4707 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4711 # Under GNU Hurd, this test is not required because there is
4712 # no limit to the length of command line arguments.
4713 # Libtool will interpret -1 as no limit whatsoever
4714 lt_cv_sys_max_cmd_len=-1;
4718 # On Win9x/ME, this test blows up -- it succeeds, but takes
4719 # about 5 minutes as the teststring grows exponentially.
4720 # Worse, since 9x/ME are not pre-emptively multitasking,
4721 # you end up with a "frozen" computer, even though with patience
4722 # the test eventually succeeds (with a max line length of 256k).
4723 # Instead, let's just punt: use the minimum linelength reported by
4724 # all of the supported platforms: 8192 (on NT/2K/XP).
4725 lt_cv_sys_max_cmd_len=8192;
4729 # On AmigaOS with pdksh, this test takes hours, literally.
4730 # So we just punt and use a minimum line length of 8192.
4731 lt_cv_sys_max_cmd_len=8192;
4734 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4735 # This has been around since 386BSD, at least. Likely further.
4736 if test -x /sbin/sysctl; then
4737 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4738 elif test -x /usr/sbin/sysctl; then
4739 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4741 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4743 # And add a safety zone
4744 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4745 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4749 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4750 lt_cv_sys_max_cmd_len=196608
4754 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4755 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4756 # nice to cause kernel panics so lets avoid the loop below.
4757 # First set a reasonable default.
4758 lt_cv_sys_max_cmd_len=16384
4760 if test -x /sbin/sysconfig; then
4761 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4762 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4767 lt_cv_sys_max_cmd_len=102400
4769 sysv5* | sco5v6* | sysv4.2uw2*)
4770 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4771 if test -n "$kargmax"; then
4772 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4774 lt_cv_sys_max_cmd_len=32768
4778 # Make teststring a little bigger before we do anything with it.
4779 # a 1K string should be a reasonable start.
4780 for i in 1 2 3 4 5 6 7 8 ; do
4781 teststring=$teststring$teststring
4783 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4784 # If test is not a shell built-in, we'll probably end up computing a
4785 # maximum length that is only half of the actual maximum length, but
4787 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4788 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4789 test $i != 17 # 1/2 MB should be enough
4792 teststring=$teststring$teststring
4794 # Only check the string length outside the loop.
4795 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4797 # Add a significant safety factor because C++ compilers can tack on massive
4798 # amounts of additional arguments before passing them to the linker.
4799 # It appears as though 1/2 is a usable value.
4800 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4806 if test -n $lt_cv_sys_max_cmd_len ; then
4807 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4808 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4810 echo "$as_me:$LINENO: result: none" >&5
4811 echo "${ECHO_T}none" >&6
4813 max_cmd_len=$lt_cv_sys_max_cmd_len
4825 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4826 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4827 # Try some XSI features
4830 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4831 = c,a/b,, ) >/dev/null 2>&1 \
4833 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4834 echo "${ECHO_T}$xsi_shell" >&6
4837 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4838 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4840 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4842 && lt_shell_append=yes
4843 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4844 echo "${ECHO_T}$lt_shell_append" >&6
4847 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4857 # test EBCDIC or ASCII
4858 case `echo X|tr X '\101'` in
4859 A) # ASCII based system
4860 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4861 lt_SP2NL='tr \040 \012'
4862 lt_NL2SP='tr \015\012 \040\040'
4864 *) # EBCDIC based system
4865 lt_SP2NL='tr \100 \n'
4866 lt_NL2SP='tr \r\n \100\100'
4878 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4879 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4880 if test "${lt_cv_ld_reload_flag+set}" = set; then
4881 echo $ECHO_N "(cached) $ECHO_C" >&6
4883 lt_cv_ld_reload_flag='-r'
4885 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4886 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4887 reload_flag=$lt_cv_ld_reload_flag
4888 case $reload_flag in
4890 *) reload_flag=" $reload_flag" ;;
4892 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4895 if test "$GCC" = yes; then
4896 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4898 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4912 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4913 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4914 if test "${lt_cv_deplibs_check_method+set}" = set; then
4915 echo $ECHO_N "(cached) $ECHO_C" >&6
4917 lt_cv_file_magic_cmd='$MAGIC_CMD'
4918 lt_cv_file_magic_test_file=
4919 lt_cv_deplibs_check_method='unknown'
4920 # Need to set the preceding variable on all platforms that support
4921 # interlibrary dependencies.
4922 # 'none' -- dependencies not supported.
4923 # `unknown' -- same as none, but documents that we really don't know.
4924 # 'pass_all' -- all dependencies passed with no checks.
4925 # 'test_compile' -- check by making test program.
4926 # 'file_magic [[regex]]' -- check by looking for files in library path
4927 # which responds to the $file_magic_cmd with a given extended regex.
4928 # If you have `file' or equivalent on your system and you're not sure
4929 # whether `pass_all' will *always* work, you probably want this one.
4933 lt_cv_deplibs_check_method=pass_all
4937 lt_cv_deplibs_check_method=pass_all
4941 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4942 lt_cv_file_magic_cmd='/usr/bin/file -L'
4943 lt_cv_file_magic_test_file=/shlib/libc.so
4947 # func_win32_libid is a shell function defined in ltmain.sh
4948 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4949 lt_cv_file_magic_cmd='func_win32_libid'
4953 # Base MSYS/MinGW do not provide the 'file' command needed by
4954 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4955 # unless we find 'file', for example because we are cross-compiling.
4956 if ( file / ) >/dev/null 2>&1; then
4957 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4958 lt_cv_file_magic_cmd='func_win32_libid'
4960 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4961 lt_cv_file_magic_cmd='$OBJDUMP -f'
4965 darwin* | rhapsody*)
4966 lt_cv_deplibs_check_method=pass_all
4969 freebsd* | dragonfly*)
4970 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4973 # Not sure whether the presence of OpenBSD here was a mistake.
4974 # Let's accept both of them until this is cleared up.
4975 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4976 lt_cv_file_magic_cmd=/usr/bin/file
4977 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4981 lt_cv_deplibs_check_method=pass_all
4986 lt_cv_deplibs_check_method=pass_all
4989 hpux10.20* | hpux11*)
4990 lt_cv_file_magic_cmd=/usr/bin/file
4993 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4994 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4997 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]'
4998 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5001 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5002 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5008 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5009 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5012 irix5* | irix6* | nonstopux*)
5014 *-32|*"-32 ") libmagic=32-bit;;
5015 *-n32|*"-n32 ") libmagic=N32;;
5016 *-64|*"-64 ") libmagic=64-bit;;
5017 *) libmagic=never-match;;
5019 lt_cv_deplibs_check_method=pass_all
5022 # This must be Linux ELF.
5023 linux* | k*bsd*-gnu)
5024 lt_cv_deplibs_check_method=pass_all
5028 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5029 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5031 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5036 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5037 lt_cv_file_magic_cmd=/usr/bin/file
5038 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5042 lt_cv_deplibs_check_method=pass_all
5046 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5047 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5049 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5053 osf3* | osf4* | osf5*)
5054 lt_cv_deplibs_check_method=pass_all
5058 lt_cv_deplibs_check_method=pass_all
5062 lt_cv_deplibs_check_method=pass_all
5065 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5066 lt_cv_deplibs_check_method=pass_all
5070 case $host_vendor in
5072 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]'
5073 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5076 lt_cv_deplibs_check_method=pass_all
5079 lt_cv_file_magic_cmd='/bin/file'
5080 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5083 lt_cv_file_magic_cmd='/bin/file'
5084 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5085 lt_cv_file_magic_test_file=/lib/libc.so
5088 lt_cv_deplibs_check_method=pass_all
5091 lt_cv_deplibs_check_method=pass_all
5097 lt_cv_deplibs_check_method=pass_all
5102 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5103 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5104 file_magic_cmd=$lt_cv_file_magic_cmd
5105 deplibs_check_method=$lt_cv_deplibs_check_method
5106 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5119 if test -n "$ac_tool_prefix"; then
5120 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5121 set dummy ${ac_tool_prefix}ar; ac_word=$2
5122 echo "$as_me:$LINENO: checking for $ac_word" >&5
5123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5124 if test "${ac_cv_prog_AR+set}" = set; then
5125 echo $ECHO_N "(cached) $ECHO_C" >&6
5127 if test -n "$AR"; then
5128 ac_cv_prog_AR="$AR" # Let the user override the test.
5130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134 test -z "$as_dir" && as_dir=.
5135 for ac_exec_ext in '' $ac_executable_extensions; do
5136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5137 ac_cv_prog_AR="${ac_tool_prefix}ar"
5138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5147 if test -n "$AR"; then
5148 echo "$as_me:$LINENO: result: $AR" >&5
5149 echo "${ECHO_T}$AR" >&6
5151 echo "$as_me:$LINENO: result: no" >&5
5152 echo "${ECHO_T}no" >&6
5156 if test -z "$ac_cv_prog_AR"; then
5158 # Extract the first word of "ar", so it can be a program name with args.
5159 set dummy ar; ac_word=$2
5160 echo "$as_me:$LINENO: checking for $ac_word" >&5
5161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5162 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 if test -n "$ac_ct_AR"; then
5166 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 test -z "$as_dir" && as_dir=.
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5175 ac_cv_prog_ac_ct_AR="ar"
5176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5182 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5185 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5186 if test -n "$ac_ct_AR"; then
5187 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5188 echo "${ECHO_T}$ac_ct_AR" >&6
5190 echo "$as_me:$LINENO: result: no" >&5
5191 echo "${ECHO_T}no" >&6
5199 test -z "$AR" && AR=ar
5200 test -z "$AR_FLAGS" && AR_FLAGS=cru
5212 if test -n "$ac_tool_prefix"; then
5213 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5214 set dummy ${ac_tool_prefix}strip; ac_word=$2
5215 echo "$as_me:$LINENO: checking for $ac_word" >&5
5216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5217 if test "${ac_cv_prog_STRIP+set}" = set; then
5218 echo $ECHO_N "(cached) $ECHO_C" >&6
5220 if test -n "$STRIP"; then
5221 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227 test -z "$as_dir" && as_dir=.
5228 for ac_exec_ext in '' $ac_executable_extensions; do
5229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5230 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5239 STRIP=$ac_cv_prog_STRIP
5240 if test -n "$STRIP"; then
5241 echo "$as_me:$LINENO: result: $STRIP" >&5
5242 echo "${ECHO_T}$STRIP" >&6
5244 echo "$as_me:$LINENO: result: no" >&5
5245 echo "${ECHO_T}no" >&6
5249 if test -z "$ac_cv_prog_STRIP"; then
5251 # Extract the first word of "strip", so it can be a program name with args.
5252 set dummy strip; ac_word=$2
5253 echo "$as_me:$LINENO: checking for $ac_word" >&5
5254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5255 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5258 if test -n "$ac_ct_STRIP"; then
5259 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5265 test -z "$as_dir" && as_dir=.
5266 for ac_exec_ext in '' $ac_executable_extensions; do
5267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5268 ac_cv_prog_ac_ct_STRIP="strip"
5269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5275 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5278 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5279 if test -n "$ac_ct_STRIP"; then
5280 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5281 echo "${ECHO_T}$ac_ct_STRIP" >&6
5283 echo "$as_me:$LINENO: result: no" >&5
5284 echo "${ECHO_T}no" >&6
5289 STRIP="$ac_cv_prog_STRIP"
5292 test -z "$STRIP" && STRIP=:
5299 if test -n "$ac_tool_prefix"; then
5300 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5301 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5302 echo "$as_me:$LINENO: checking for $ac_word" >&5
5303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5304 if test "${ac_cv_prog_RANLIB+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5307 if test -n "$RANLIB"; then
5308 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314 test -z "$as_dir" && as_dir=.
5315 for ac_exec_ext in '' $ac_executable_extensions; do
5316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5317 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5326 RANLIB=$ac_cv_prog_RANLIB
5327 if test -n "$RANLIB"; then
5328 echo "$as_me:$LINENO: result: $RANLIB" >&5
5329 echo "${ECHO_T}$RANLIB" >&6
5331 echo "$as_me:$LINENO: result: no" >&5
5332 echo "${ECHO_T}no" >&6
5336 if test -z "$ac_cv_prog_RANLIB"; then
5337 ac_ct_RANLIB=$RANLIB
5338 # Extract the first word of "ranlib", so it can be a program name with args.
5339 set dummy ranlib; ac_word=$2
5340 echo "$as_me:$LINENO: checking for $ac_word" >&5
5341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5342 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5345 if test -n "$ac_ct_RANLIB"; then
5346 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352 test -z "$as_dir" && as_dir=.
5353 for ac_exec_ext in '' $ac_executable_extensions; do
5354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5355 ac_cv_prog_ac_ct_RANLIB="ranlib"
5356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5362 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5365 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5366 if test -n "$ac_ct_RANLIB"; then
5367 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5368 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5370 echo "$as_me:$LINENO: result: no" >&5
5371 echo "${ECHO_T}no" >&6
5374 RANLIB=$ac_ct_RANLIB
5376 RANLIB="$ac_cv_prog_RANLIB"
5379 test -z "$RANLIB" && RANLIB=:
5386 # Determine commands to create old-style static archives.
5387 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5388 old_postinstall_cmds='chmod 644 $oldlib'
5389 old_postuninstall_cmds=
5391 if test -n "$RANLIB"; then
5394 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5397 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5400 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5436 # If no C compiler was specified, use CC.
5439 # If no C compiler flags were specified, use CFLAGS.
5440 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5442 # Allow CC to be a program name with arguments.
5446 # Check for command to grab the raw symbol name followed by C symbol from nm.
5447 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5448 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5449 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5450 echo $ECHO_N "(cached) $ECHO_C" >&6
5453 # These are sane defaults that work on at least a few old systems.
5454 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5456 # Character class describing NM global symbol codes.
5457 symcode='[BCDEGRST]'
5459 # Regexp to match symbols that can be accessed directly from C.
5460 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5462 # Define system-specific variables.
5467 cygwin* | mingw* | pw32*)
5468 symcode='[ABCDGISTW]'
5471 if test "$host_cpu" = ia64; then
5472 symcode='[ABCDEGRST]'
5476 symcode='[BCDEGRST]'
5479 symcode='[BCDEGQRST]'
5490 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5498 # If we're using GNU nm, then use its standard symbol codes.
5499 case `$NM -V 2>&1` in
5500 *GNU* | *'with BFD'*)
5501 symcode='[ABCDGIRSTW]' ;;
5504 # Transform an extracted symbol line into a proper C declaration.
5505 # Some systems (esp. on ia64) link data and code symbols differently,
5506 # so use this general approach.
5507 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5509 # Transform an extracted symbol line into symbol name and symbol address
5510 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5512 # Handle CRLF in mingw tool chain
5516 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5520 # Try without a prefix underscore, then with it.
5521 for ac_symprfx in "" "_"; do
5523 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5524 symxfrm="\\1 $ac_symprfx\\2 \\2"
5526 # Write the raw and C identifiers.
5527 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5528 # Fake it for dumpbin and say T for any non-static function
5529 # and D for any global variable.
5530 # Also find C++ and __fastcall symbols from MSVC++,
5531 # which start with @ or ?.
5532 lt_cv_sys_global_symbol_pipe="$AWK '"\
5533 " {last_section=section; section=\$ 3};"\
5534 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5535 " \$ 0!~/External *\|/{next};"\
5536 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5537 " {if(hide[section]) next};"\
5538 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5539 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5540 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5541 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5542 " ' prfx=^$ac_symprfx"
5544 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5547 # Check to see that the pipe works correctly.
5551 cat > conftest.$ac_ext <<_LT_EOF
5556 void nm_test_func(void);
5557 void nm_test_func(void){}
5561 int main(){nm_test_var='a';nm_test_func();return(0);}
5564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5565 (eval $ac_compile) 2>&5
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); }; then
5569 # Now try to grab the symbols.
5571 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5572 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); } && test -s "$nlist"; then
5576 # Try sorting and uniquifying the output.
5577 if sort "$nlist" | uniq > "$nlist"T; then
5578 mv -f "$nlist"T "$nlist"
5583 # Make sure that we snagged all the symbols we need.
5584 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5585 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5586 cat <<_LT_EOF > conftest.$ac_ext
5592 # Now generate the symbol file.
5593 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5595 cat <<_LT_EOF >> conftest.$ac_ext
5597 /* The mapping between symbol names and symbols. */
5602 lt__PROGRAM__LTX_preloaded_symbols[] =
5604 { "@PROGRAM@", (void *) 0 },
5606 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5607 cat <<\_LT_EOF >> conftest.$ac_ext
5611 /* This works around a problem in FreeBSD linker */
5612 #ifdef FREEBSD_WORKAROUND
5613 static const void *lt_preloaded_setup() {
5614 return lt__PROGRAM__LTX_preloaded_symbols;
5622 # Now try linking the two files.
5623 mv conftest.$ac_objext conftstm.$ac_objext
5624 lt_save_LIBS="$LIBS"
5625 lt_save_CFLAGS="$CFLAGS"
5626 LIBS="conftstm.$ac_objext"
5627 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5629 (eval $ac_link) 2>&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5635 LIBS="$lt_save_LIBS"
5636 CFLAGS="$lt_save_CFLAGS"
5638 echo "cannot find nm_test_func in $nlist" >&5
5641 echo "cannot find nm_test_var in $nlist" >&5
5644 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5647 echo "$progname: failed program was:" >&5
5648 cat conftest.$ac_ext >&5
5650 rm -f conftest* conftst*
5652 # Do not use the global_symbol_pipe unless it works.
5653 if test "$pipe_works" = yes; then
5656 lt_cv_sys_global_symbol_pipe=
5662 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5663 lt_cv_sys_global_symbol_to_cdecl=
5665 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5666 echo "$as_me:$LINENO: result: failed" >&5
5667 echo "${ECHO_T}failed" >&6
5669 echo "$as_me:$LINENO: result: ok" >&5
5670 echo "${ECHO_T}ok" >&6
5689 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5690 if test "${enable_libtool_lock+set}" = set; then
5691 enableval="$enable_libtool_lock"
5694 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5696 # Some flags need to be propagated to the compiler or linker for good
5700 # Find out which ABI we are using.
5701 echo 'int i;' > conftest.$ac_ext
5702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5703 (eval $ac_compile) 2>&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); }; then
5707 case `/usr/bin/file conftest.$ac_objext` in
5719 # Find out which ABI we are using.
5720 echo '#line 5720 "configure"' > conftest.$ac_ext
5721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5722 (eval $ac_compile) 2>&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; then
5726 if test "$lt_cv_prog_gnu_ld" = yes; then
5727 case `/usr/bin/file conftest.$ac_objext` in
5729 LD="${LD-ld} -melf32bsmip"
5732 LD="${LD-ld} -melf32bmipn32"
5735 LD="${LD-ld} -melf64bmip"
5739 case `/usr/bin/file conftest.$ac_objext` in
5755 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5756 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5757 # Find out which ABI we are using.
5758 echo 'int i;' > conftest.$ac_ext
5759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5760 (eval $ac_compile) 2>&5
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); }; then
5764 case `/usr/bin/file conftest.o` in
5767 x86_64-*kfreebsd*-gnu)
5768 LD="${LD-ld} -m elf_i386_fbsd"
5771 LD="${LD-ld} -m elf_i386"
5773 ppc64-*linux*|powerpc64-*linux*)
5774 LD="${LD-ld} -m elf32ppclinux"
5777 LD="${LD-ld} -m elf_s390"
5780 LD="${LD-ld} -m elf32_sparc"
5786 x86_64-*kfreebsd*-gnu)
5787 LD="${LD-ld} -m elf_x86_64_fbsd"
5790 LD="${LD-ld} -m elf_x86_64"
5792 ppc*-*linux*|powerpc*-*linux*)
5793 LD="${LD-ld} -m elf64ppc"
5795 s390*-*linux*|s390*-*tpf*)
5796 LD="${LD-ld} -m elf64_s390"
5799 LD="${LD-ld} -m elf64_sparc"
5809 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5810 SAVE_CFLAGS="$CFLAGS"
5811 CFLAGS="$CFLAGS -belf"
5812 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5813 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5814 if test "${lt_cv_cc_needs_belf+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5818 ac_cpp='$CPP $CPPFLAGS'
5819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5823 cat >conftest.$ac_ext <<_ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h. */
5838 rm -f conftest.$ac_objext conftest$ac_exeext
5839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5840 (eval $ac_link) 2>conftest.er1
5842 grep -v '^ *+' conftest.er1 >conftest.err
5844 cat conftest.err >&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); } &&
5847 { ac_try='test -z "$ac_c_werror_flag"
5848 || test ! -s conftest.err'
5849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); }; } &&
5854 { ac_try='test -s conftest$ac_exeext'
5855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); }; }; then
5860 lt_cv_cc_needs_belf=yes
5862 echo "$as_me: failed program was:" >&5
5863 sed 's/^/| /' conftest.$ac_ext >&5
5865 lt_cv_cc_needs_belf=no
5867 rm -f conftest.err conftest.$ac_objext \
5868 conftest$ac_exeext conftest.$ac_ext
5870 ac_cpp='$CPP $CPPFLAGS'
5871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5876 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5877 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5878 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5879 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5880 CFLAGS="$SAVE_CFLAGS"
5884 # Find out which ABI we are using.
5885 echo 'int i;' > conftest.$ac_ext
5886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5887 (eval $ac_compile) 2>&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); }; then
5891 case `/usr/bin/file conftest.o` in
5893 case $lt_cv_prog_gnu_ld in
5894 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5895 *) LD="${LD-ld} -64" ;;
5904 need_locks="$enable_libtool_lock"
5907 ac_cpp='$CPP $CPPFLAGS'
5908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5911 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5912 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5913 # On Suns, sometimes $CPP names a directory.
5914 if test -n "$CPP" && test -d "$CPP"; then
5917 if test -z "$CPP"; then
5918 if test "${ac_cv_prog_CPP+set}" = set; then
5919 echo $ECHO_N "(cached) $ECHO_C" >&6
5921 # Double quotes because CPP needs to be expanded
5922 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5925 for ac_c_preproc_warn_flag in '' yes
5927 # Use a header file that comes with gcc, so configuring glibc
5928 # with a fresh cross-compiler works.
5929 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5930 # <limits.h> exists even on freestanding compilers.
5931 # On the NeXT, cc -E runs the code through the compiler's parser,
5932 # not just through cpp. "Syntax error" is here to catch this case.
5933 cat >conftest.$ac_ext <<_ACEOF
5936 cat confdefs.h >>conftest.$ac_ext
5937 cat >>conftest.$ac_ext <<_ACEOF
5938 /* end confdefs.h. */
5940 # include <limits.h>
5942 # include <assert.h>
5946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5949 grep -v '^ *+' conftest.er1 >conftest.err
5951 cat conftest.err >&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); } >/dev/null; then
5954 if test -s conftest.err; then
5955 ac_cpp_err=$ac_c_preproc_warn_flag
5956 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5963 if test -z "$ac_cpp_err"; then
5966 echo "$as_me: failed program was:" >&5
5967 sed 's/^/| /' conftest.$ac_ext >&5
5969 # Broken: fails on valid input.
5972 rm -f conftest.err conftest.$ac_ext
5974 # OK, works on sane cases. Now check whether non-existent headers
5975 # can be detected and how.
5976 cat >conftest.$ac_ext <<_ACEOF
5979 cat confdefs.h >>conftest.$ac_ext
5980 cat >>conftest.$ac_ext <<_ACEOF
5981 /* end confdefs.h. */
5982 #include <ac_nonexistent.h>
5984 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5985 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5987 grep -v '^ *+' conftest.er1 >conftest.err
5989 cat conftest.err >&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } >/dev/null; then
5992 if test -s conftest.err; then
5993 ac_cpp_err=$ac_c_preproc_warn_flag
5994 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6001 if test -z "$ac_cpp_err"; then
6002 # Broken: success on invalid input.
6005 echo "$as_me: failed program was:" >&5
6006 sed 's/^/| /' conftest.$ac_ext >&5
6008 # Passes both tests.
6012 rm -f conftest.err conftest.$ac_ext
6015 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6016 rm -f conftest.err conftest.$ac_ext
6017 if $ac_preproc_ok; then
6029 echo "$as_me:$LINENO: result: $CPP" >&5
6030 echo "${ECHO_T}$CPP" >&6
6032 for ac_c_preproc_warn_flag in '' yes
6034 # Use a header file that comes with gcc, so configuring glibc
6035 # with a fresh cross-compiler works.
6036 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6037 # <limits.h> exists even on freestanding compilers.
6038 # On the NeXT, cc -E runs the code through the compiler's parser,
6039 # not just through cpp. "Syntax error" is here to catch this case.
6040 cat >conftest.$ac_ext <<_ACEOF
6043 cat confdefs.h >>conftest.$ac_ext
6044 cat >>conftest.$ac_ext <<_ACEOF
6045 /* end confdefs.h. */
6047 # include <limits.h>
6049 # include <assert.h>
6053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6056 grep -v '^ *+' conftest.er1 >conftest.err
6058 cat conftest.err >&5
6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 (exit $ac_status); } >/dev/null; then
6061 if test -s conftest.err; then
6062 ac_cpp_err=$ac_c_preproc_warn_flag
6063 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6070 if test -z "$ac_cpp_err"; then
6073 echo "$as_me: failed program was:" >&5
6074 sed 's/^/| /' conftest.$ac_ext >&5
6076 # Broken: fails on valid input.
6079 rm -f conftest.err conftest.$ac_ext
6081 # OK, works on sane cases. Now check whether non-existent headers
6082 # can be detected and how.
6083 cat >conftest.$ac_ext <<_ACEOF
6086 cat confdefs.h >>conftest.$ac_ext
6087 cat >>conftest.$ac_ext <<_ACEOF
6088 /* end confdefs.h. */
6089 #include <ac_nonexistent.h>
6091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6094 grep -v '^ *+' conftest.er1 >conftest.err
6096 cat conftest.err >&5
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); } >/dev/null; then
6099 if test -s conftest.err; then
6100 ac_cpp_err=$ac_c_preproc_warn_flag
6101 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6108 if test -z "$ac_cpp_err"; then
6109 # Broken: success on invalid input.
6112 echo "$as_me: failed program was:" >&5
6113 sed 's/^/| /' conftest.$ac_ext >&5
6115 # Passes both tests.
6119 rm -f conftest.err conftest.$ac_ext
6122 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6123 rm -f conftest.err conftest.$ac_ext
6124 if $ac_preproc_ok; then
6127 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6128 See \`config.log' for more details." >&5
6129 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6130 See \`config.log' for more details." >&2;}
6131 { (exit 1); exit 1; }; }
6135 ac_cpp='$CPP $CPPFLAGS'
6136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6141 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6142 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6143 if test "${ac_cv_header_stdc+set}" = set; then
6144 echo $ECHO_N "(cached) $ECHO_C" >&6
6146 cat >conftest.$ac_ext <<_ACEOF
6149 cat confdefs.h >>conftest.$ac_ext
6150 cat >>conftest.$ac_ext <<_ACEOF
6151 /* end confdefs.h. */
6165 rm -f conftest.$ac_objext
6166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6167 (eval $ac_compile) 2>conftest.er1
6169 grep -v '^ *+' conftest.er1 >conftest.err
6171 cat conftest.err >&5
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); } &&
6174 { ac_try='test -z "$ac_c_werror_flag"
6175 || test ! -s conftest.err'
6176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); }; } &&
6181 { ac_try='test -s conftest.$ac_objext'
6182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); }; }; then
6187 ac_cv_header_stdc=yes
6189 echo "$as_me: failed program was:" >&5
6190 sed 's/^/| /' conftest.$ac_ext >&5
6192 ac_cv_header_stdc=no
6194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6196 if test $ac_cv_header_stdc = yes; then
6197 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6198 cat >conftest.$ac_ext <<_ACEOF
6201 cat confdefs.h >>conftest.$ac_ext
6202 cat >>conftest.$ac_ext <<_ACEOF
6203 /* end confdefs.h. */
6207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6208 $EGREP "memchr" >/dev/null 2>&1; then
6211 ac_cv_header_stdc=no
6217 if test $ac_cv_header_stdc = yes; then
6218 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6219 cat >conftest.$ac_ext <<_ACEOF
6222 cat confdefs.h >>conftest.$ac_ext
6223 cat >>conftest.$ac_ext <<_ACEOF
6224 /* end confdefs.h. */
6228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6229 $EGREP "free" >/dev/null 2>&1; then
6232 ac_cv_header_stdc=no
6238 if test $ac_cv_header_stdc = yes; then
6239 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6240 if test "$cross_compiling" = yes; then
6243 cat >conftest.$ac_ext <<_ACEOF
6246 cat confdefs.h >>conftest.$ac_ext
6247 cat >>conftest.$ac_ext <<_ACEOF
6248 /* end confdefs.h. */
6250 #if ((' ' & 0x0FF) == 0x020)
6251 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6252 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6254 # define ISLOWER(c) \
6255 (('a' <= (c) && (c) <= 'i') \
6256 || ('j' <= (c) && (c) <= 'r') \
6257 || ('s' <= (c) && (c) <= 'z'))
6258 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6261 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6266 for (i = 0; i < 256; i++)
6267 if (XOR (islower (i), ISLOWER (i))
6268 || toupper (i) != TOUPPER (i))
6273 rm -f conftest$ac_exeext
6274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6275 (eval $ac_link) 2>&5
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); }; }; then
6286 echo "$as_me: program exited with status $ac_status" >&5
6287 echo "$as_me: failed program was:" >&5
6288 sed 's/^/| /' conftest.$ac_ext >&5
6291 ac_cv_header_stdc=no
6293 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6297 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6298 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6299 if test $ac_cv_header_stdc = yes; then
6301 cat >>confdefs.h <<\_ACEOF
6302 #define STDC_HEADERS 1
6307 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6317 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6318 inttypes.h stdint.h unistd.h
6320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6321 echo "$as_me:$LINENO: checking for $ac_header" >&5
6322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6324 echo $ECHO_N "(cached) $ECHO_C" >&6
6326 cat >conftest.$ac_ext <<_ACEOF
6329 cat confdefs.h >>conftest.$ac_ext
6330 cat >>conftest.$ac_ext <<_ACEOF
6331 /* end confdefs.h. */
6332 $ac_includes_default
6334 #include <$ac_header>
6336 rm -f conftest.$ac_objext
6337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6338 (eval $ac_compile) 2>conftest.er1
6340 grep -v '^ *+' conftest.er1 >conftest.err
6342 cat conftest.err >&5
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); } &&
6345 { ac_try='test -z "$ac_c_werror_flag"
6346 || test ! -s conftest.err'
6347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); }; } &&
6352 { ac_try='test -s conftest.$ac_objext'
6353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }; }; then
6358 eval "$as_ac_Header=yes"
6360 echo "$as_me: failed program was:" >&5
6361 sed 's/^/| /' conftest.$ac_ext >&5
6363 eval "$as_ac_Header=no"
6365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6370 cat >>confdefs.h <<_ACEOF
6371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6380 for ac_header in dlfcn.h
6382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6383 echo "$as_me:$LINENO: checking for $ac_header" >&5
6384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6386 echo $ECHO_N "(cached) $ECHO_C" >&6
6388 cat >conftest.$ac_ext <<_ACEOF
6391 cat confdefs.h >>conftest.$ac_ext
6392 cat >>conftest.$ac_ext <<_ACEOF
6393 /* end confdefs.h. */
6394 $ac_includes_default
6396 #include <$ac_header>
6398 rm -f conftest.$ac_objext
6399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6400 (eval $ac_compile) 2>conftest.er1
6402 grep -v '^ *+' conftest.er1 >conftest.err
6404 cat conftest.err >&5
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); } &&
6407 { ac_try='test -z "$ac_c_werror_flag"
6408 || test ! -s conftest.err'
6409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; } &&
6414 { ac_try='test -s conftest.$ac_objext'
6415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); }; }; then
6420 eval "$as_ac_Header=yes"
6422 echo "$as_me: failed program was:" >&5
6423 sed 's/^/| /' conftest.$ac_ext >&5
6425 eval "$as_ac_Header=no"
6427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6432 cat >>confdefs.h <<_ACEOF
6433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6442 # This can be used to rebuild libtool when needed
6443 LIBTOOL_DEPS="$ltmain"
6445 # Always use our own libtool.
6446 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6472 test -z "$LN_S" && LN_S="ln -s"
6487 if test -n "${ZSH_VERSION+set}" ; then
6488 setopt NO_GLOB_SUBST
6491 echo "$as_me:$LINENO: checking for objdir" >&5
6492 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6493 if test "${lt_cv_objdir+set}" = set; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
6496 rm -f .libs 2>/dev/null
6497 mkdir .libs 2>/dev/null
6498 if test -d .libs; then
6501 # MS-DOS does not allow filenames that begin with a dot.
6504 rmdir .libs 2>/dev/null
6506 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6507 echo "${ECHO_T}$lt_cv_objdir" >&6
6508 objdir=$lt_cv_objdir
6514 cat >>confdefs.h <<_ACEOF
6515 #define LT_OBJDIR "$lt_cv_objdir/"
6536 # AIX sometimes has problems with the GCC collect2 program. For some
6537 # reason, if we set the COLLECT_NAMES environment variable, the problems
6538 # vanish in a puff of smoke.
6539 if test "X${COLLECT_NAMES+set}" != Xset; then
6541 export COLLECT_NAMES
6546 # Sed substitution that helps us do robust quoting. It backslashifies
6547 # metacharacters that are still active within double-quoted strings.
6548 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6550 # Same as above, but do not quote variable references.
6551 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6553 # Sed substitution to delay expansion of an escaped shell variable in a
6554 # double_quote_subst'ed string.
6555 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6557 # Sed substitution to delay expansion of an escaped single quote.
6558 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6560 # Sed substitution to avoid accidental globbing in evaled expressions
6561 no_glob_subst='s/\*/\\\*/g'
6565 can_build_shared=yes
6567 # All known linkers require a `.a' archive for static linking (except MSVC,
6568 # which needs '.lib').
6571 with_gnu_ld="$lt_cv_prog_gnu_ld"
6574 old_CFLAGS="$CFLAGS"
6576 # Set sane defaults for various variables
6577 test -z "$CC" && CC=cc
6578 test -z "$LTCC" && LTCC=$CC
6579 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6580 test -z "$LD" && LD=ld
6581 test -z "$ac_objext" && ac_objext=o
6583 for cc_temp in $compiler""; do
6585 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6586 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6591 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6594 # Only perform the check for file, if the check method requires it
6595 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6596 case $deplibs_check_method in
6598 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6599 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6600 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6601 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6602 echo $ECHO_N "(cached) $ECHO_C" >&6
6606 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6609 lt_save_MAGIC_CMD="$MAGIC_CMD"
6610 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6611 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6612 for ac_dir in $ac_dummy; do
6614 test -z "$ac_dir" && ac_dir=.
6615 if test -f $ac_dir/${ac_tool_prefix}file; then
6616 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6617 if test -n "$file_magic_test_file"; then
6618 case $deplibs_check_method in
6620 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6621 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6622 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6623 $EGREP "$file_magic_regex" > /dev/null; then
6628 *** Warning: the command libtool uses to detect shared libraries,
6629 *** $file_magic_cmd, produces output that libtool cannot recognize.
6630 *** The result is that libtool may fail to recognize shared libraries
6631 *** as such. This will affect the creation of libtool libraries that
6632 *** depend on shared libraries, but programs linked with such libtool
6633 *** libraries will work regardless of this problem. Nevertheless, you
6634 *** may want to report the problem to your system manager and/or to
6645 MAGIC_CMD="$lt_save_MAGIC_CMD"
6650 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6651 if test -n "$MAGIC_CMD"; then
6652 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6653 echo "${ECHO_T}$MAGIC_CMD" >&6
6655 echo "$as_me:$LINENO: result: no" >&5
6656 echo "${ECHO_T}no" >&6
6663 if test -z "$lt_cv_path_MAGIC_CMD"; then
6664 if test -n "$ac_tool_prefix"; then
6665 echo "$as_me:$LINENO: checking for file" >&5
6666 echo $ECHO_N "checking for file... $ECHO_C" >&6
6667 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6668 echo $ECHO_N "(cached) $ECHO_C" >&6
6672 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6675 lt_save_MAGIC_CMD="$MAGIC_CMD"
6676 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6677 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6678 for ac_dir in $ac_dummy; do
6680 test -z "$ac_dir" && ac_dir=.
6681 if test -f $ac_dir/file; then
6682 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6683 if test -n "$file_magic_test_file"; then
6684 case $deplibs_check_method in
6686 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6687 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6688 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6689 $EGREP "$file_magic_regex" > /dev/null; then
6694 *** Warning: the command libtool uses to detect shared libraries,
6695 *** $file_magic_cmd, produces output that libtool cannot recognize.
6696 *** The result is that libtool may fail to recognize shared libraries
6697 *** as such. This will affect the creation of libtool libraries that
6698 *** depend on shared libraries, but programs linked with such libtool
6699 *** libraries will work regardless of this problem. Nevertheless, you
6700 *** may want to report the problem to your system manager and/or to
6711 MAGIC_CMD="$lt_save_MAGIC_CMD"
6716 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6717 if test -n "$MAGIC_CMD"; then
6718 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6719 echo "${ECHO_T}$MAGIC_CMD" >&6
6721 echo "$as_me:$LINENO: result: no" >&5
6722 echo "${ECHO_T}no" >&6
6735 # Use C for the default configuration in the libtool script
6739 ac_cpp='$CPP $CPPFLAGS'
6740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6745 # Source file extension for C test sources.
6748 # Object file extension for compiled C test sources.
6752 # Code to be used in simple compile tests
6753 lt_simple_compile_test_code="int some_variable = 0;"
6755 # Code to be used in simple link tests
6756 lt_simple_link_test_code='int main(){return(0);}'
6764 # If no C compiler was specified, use CC.
6767 # If no C compiler flags were specified, use CFLAGS.
6768 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6770 # Allow CC to be a program name with arguments.
6773 # Save the default compiler, since it gets overwritten when the other
6774 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6775 compiler_DEFAULT=$CC
6777 # save warnings/boilerplate of simple test code
6778 ac_outfile=conftest.$ac_objext
6779 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6780 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6781 _lt_compiler_boilerplate=`cat conftest.err`
6784 ac_outfile=conftest.$ac_objext
6785 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6786 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6787 _lt_linker_boilerplate=`cat conftest.err`
6792 ## There is no encapsulation within the following macros, do not change
6793 ## the running order or otherwise move them around unless you know exactly
6794 ## what you are doing...
6795 if test -n "$compiler"; then
6797 lt_prog_compiler_no_builtin_flag=
6799 if test "$GCC" = yes; then
6800 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6802 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6803 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6804 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6805 echo $ECHO_N "(cached) $ECHO_C" >&6
6807 lt_cv_prog_compiler_rtti_exceptions=no
6808 ac_outfile=conftest.$ac_objext
6809 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6810 lt_compiler_flag="-fno-rtti -fno-exceptions"
6811 # Insert the option either (1) after the last *FLAGS variable, or
6812 # (2) before a word containing "conftest.", or (3) at the end.
6813 # Note that $ac_compile itself does not contain backslashes and begins
6814 # with a dollar sign (not a hyphen), so the echo should work correctly.
6815 # The option is referenced via a variable to avoid confusing sed.
6816 lt_compile=`echo "$ac_compile" | $SED \
6817 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6818 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6819 -e 's:$: $lt_compiler_flag:'`
6820 (eval echo "\"\$as_me:6820: $lt_compile\"" >&5)
6821 (eval "$lt_compile" 2>conftest.err)
6823 cat conftest.err >&5
6824 echo "$as_me:6824: \$? = $ac_status" >&5
6825 if (exit $ac_status) && test -s "$ac_outfile"; then
6826 # The compiler can only warn and ignore the option if not recognized
6827 # So say no if there are warnings other than the usual output.
6828 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6829 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6830 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6831 lt_cv_prog_compiler_rtti_exceptions=yes
6837 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6838 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6840 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6841 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6853 lt_prog_compiler_wl=
6854 lt_prog_compiler_pic=
6855 lt_prog_compiler_static=
6857 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6858 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6860 if test "$GCC" = yes; then
6861 lt_prog_compiler_wl='-Wl,'
6862 lt_prog_compiler_static='-static'
6866 # All AIX code is PIC.
6867 if test "$host_cpu" = ia64; then
6868 # AIX 5 now supports IA64 processor
6869 lt_prog_compiler_static='-Bstatic'
6874 if test "$host_cpu" = m68k; then
6875 # FIXME: we need at least 68020 code to build shared libraries, but
6876 # adding the `-m68020' flag to GCC prevents building anything better,
6878 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6882 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6883 # PIC is the default for these OSes.
6886 mingw* | cygwin* | pw32* | os2*)
6887 # This hack is so that the source file can tell whether it is being
6888 # built for inclusion in a dll (and should export symbols for example).
6889 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6890 # (--disable-auto-import) libraries
6891 lt_prog_compiler_pic='-DDLL_EXPORT'
6894 darwin* | rhapsody*)
6895 # PIC is the default on this platform
6896 # Common symbols not allowed in MH_DYLIB files
6897 lt_prog_compiler_pic='-fno-common'
6901 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6908 lt_prog_compiler_pic='-fPIC'
6914 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6915 # Instead, we relocate shared libraries at runtime.
6919 # Just because we use GCC doesn't mean we suddenly get shared libraries
6920 # on systems that don't support them.
6921 lt_prog_compiler_can_build_shared=no
6926 # QNX uses GNU C++, but need to define -shared option too, otherwise
6928 lt_prog_compiler_pic='-fPIC -shared'
6932 if test -d /usr/nec; then
6933 lt_prog_compiler_pic=-Kconform_pic
6938 lt_prog_compiler_pic='-fPIC'
6942 # PORTME Check for flag to pass linker flags through the system compiler.
6945 lt_prog_compiler_wl='-Wl,'
6946 if test "$host_cpu" = ia64; then
6947 # AIX 5 now supports IA64 processor
6948 lt_prog_compiler_static='-Bstatic'
6950 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6954 # PIC is the default on this platform
6955 # Common symbols not allowed in MH_DYLIB files
6956 case $cc_basename in
6958 lt_prog_compiler_pic='-qnocommon'
6959 lt_prog_compiler_wl='-Wl,'
6964 mingw* | cygwin* | pw32* | os2*)
6965 # This hack is so that the source file can tell whether it is being
6966 # built for inclusion in a dll (and should export symbols for example).
6967 lt_prog_compiler_pic='-DDLL_EXPORT'
6970 hpux9* | hpux10* | hpux11*)
6971 lt_prog_compiler_wl='-Wl,'
6972 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6979 lt_prog_compiler_pic='+Z'
6982 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6983 lt_prog_compiler_static='${wl}-a ${wl}archive'
6986 irix5* | irix6* | nonstopux*)
6987 lt_prog_compiler_wl='-Wl,'
6988 # PIC (with -KPIC) is the default.
6989 lt_prog_compiler_static='-non_shared'
6992 linux* | k*bsd*-gnu)
6993 case $cc_basename in
6995 lt_prog_compiler_wl='-Wl,'
6996 lt_prog_compiler_pic='-KPIC'
6997 lt_prog_compiler_static='-static'
6999 pgcc* | pgf77* | pgf90* | pgf95*)
7000 # Portland Group compilers (*not* the Pentium gcc compiler,
7001 # which looks to be a dead project)
7002 lt_prog_compiler_wl='-Wl,'
7003 lt_prog_compiler_pic='-fpic'
7004 lt_prog_compiler_static='-Bstatic'
7007 lt_prog_compiler_wl='-Wl,'
7008 # All Alpha code is PIC.
7009 lt_prog_compiler_static='-non_shared'
7012 case `$CC -V 2>&1 | sed 5q` in
7015 lt_prog_compiler_pic='-KPIC'
7016 lt_prog_compiler_static='-Bstatic'
7017 lt_prog_compiler_wl='-Wl,'
7020 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7021 lt_prog_compiler_pic='-KPIC'
7022 lt_prog_compiler_static='-Bstatic'
7023 lt_prog_compiler_wl=''
7031 lt_prog_compiler_pic='-KPIC'
7032 lt_prog_compiler_static='-Bstatic'
7036 # QNX uses GNU C++, but need to define -shared option too, otherwise
7038 lt_prog_compiler_pic='-fPIC -shared'
7041 osf3* | osf4* | osf5*)
7042 lt_prog_compiler_wl='-Wl,'
7043 # All OSF/1 code is PIC.
7044 lt_prog_compiler_static='-non_shared'
7048 lt_prog_compiler_static='-non_shared'
7052 lt_prog_compiler_pic='-KPIC'
7053 lt_prog_compiler_static='-Bstatic'
7054 case $cc_basename in
7056 lt_prog_compiler_wl='-Qoption ld ';;
7058 lt_prog_compiler_wl='-Wl,';;
7063 lt_prog_compiler_wl='-Qoption ld '
7064 lt_prog_compiler_pic='-PIC'
7065 lt_prog_compiler_static='-Bstatic'
7068 sysv4 | sysv4.2uw2* | sysv4.3*)
7069 lt_prog_compiler_wl='-Wl,'
7070 lt_prog_compiler_pic='-KPIC'
7071 lt_prog_compiler_static='-Bstatic'
7075 if test -d /usr/nec ;then
7076 lt_prog_compiler_pic='-Kconform_pic'
7077 lt_prog_compiler_static='-Bstatic'
7081 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7082 lt_prog_compiler_wl='-Wl,'
7083 lt_prog_compiler_pic='-KPIC'
7084 lt_prog_compiler_static='-Bstatic'
7088 lt_prog_compiler_wl='-Wl,'
7089 lt_prog_compiler_can_build_shared=no
7093 lt_prog_compiler_pic='-pic'
7094 lt_prog_compiler_static='-Bstatic'
7098 lt_prog_compiler_can_build_shared=no
7104 # For platforms which do not support PIC, -DPIC is meaningless:
7106 lt_prog_compiler_pic=
7109 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7112 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7113 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7121 # Check to make sure the PIC flag actually works.
7123 if test -n "$lt_prog_compiler_pic"; then
7124 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7125 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7126 if test "${lt_prog_compiler_pic_works+set}" = set; then
7127 echo $ECHO_N "(cached) $ECHO_C" >&6
7129 lt_prog_compiler_pic_works=no
7130 ac_outfile=conftest.$ac_objext
7131 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7132 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7133 # Insert the option either (1) after the last *FLAGS variable, or
7134 # (2) before a word containing "conftest.", or (3) at the end.
7135 # Note that $ac_compile itself does not contain backslashes and begins
7136 # with a dollar sign (not a hyphen), so the echo should work correctly.
7137 # The option is referenced via a variable to avoid confusing sed.
7138 lt_compile=`echo "$ac_compile" | $SED \
7139 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7140 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7141 -e 's:$: $lt_compiler_flag:'`
7142 (eval echo "\"\$as_me:7142: $lt_compile\"" >&5)
7143 (eval "$lt_compile" 2>conftest.err)
7145 cat conftest.err >&5
7146 echo "$as_me:7146: \$? = $ac_status" >&5
7147 if (exit $ac_status) && test -s "$ac_outfile"; then
7148 # The compiler can only warn and ignore the option if not recognized
7149 # So say no if there are warnings other than the usual output.
7150 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7151 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7152 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7153 lt_prog_compiler_pic_works=yes
7159 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7160 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7162 if test x"$lt_prog_compiler_pic_works" = xyes; then
7163 case $lt_prog_compiler_pic in
7165 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7168 lt_prog_compiler_pic=
7169 lt_prog_compiler_can_build_shared=no
7180 # Check to make sure the static flag actually works.
7182 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7183 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7184 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7185 if test "${lt_prog_compiler_static_works+set}" = set; then
7186 echo $ECHO_N "(cached) $ECHO_C" >&6
7188 lt_prog_compiler_static_works=no
7189 save_LDFLAGS="$LDFLAGS"
7190 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7191 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7192 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7193 # The linker can only warn and ignore the option if not recognized
7194 # So say no if there are warnings
7195 if test -s conftest.err; then
7196 # Append any errors to the config.log.
7197 cat conftest.err 1>&5
7198 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7199 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7200 if diff conftest.exp conftest.er2 >/dev/null; then
7201 lt_prog_compiler_static_works=yes
7204 lt_prog_compiler_static_works=yes
7208 LDFLAGS="$save_LDFLAGS"
7211 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7212 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7214 if test x"$lt_prog_compiler_static_works" = xyes; then
7217 lt_prog_compiler_static=
7226 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7227 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7228 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7229 echo $ECHO_N "(cached) $ECHO_C" >&6
7231 lt_cv_prog_compiler_c_o=no
7232 $RM -r conftest 2>/dev/null
7236 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7238 lt_compiler_flag="-o out/conftest2.$ac_objext"
7239 # Insert the option either (1) after the last *FLAGS variable, or
7240 # (2) before a word containing "conftest.", or (3) at the end.
7241 # Note that $ac_compile itself does not contain backslashes and begins
7242 # with a dollar sign (not a hyphen), so the echo should work correctly.
7243 lt_compile=`echo "$ac_compile" | $SED \
7244 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7245 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7246 -e 's:$: $lt_compiler_flag:'`
7247 (eval echo "\"\$as_me:7247: $lt_compile\"" >&5)
7248 (eval "$lt_compile" 2>out/conftest.err)
7250 cat out/conftest.err >&5
7251 echo "$as_me:7251: \$? = $ac_status" >&5
7252 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7254 # The compiler can only warn and ignore the option if not recognized
7255 # So say no if there are warnings
7256 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7257 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7258 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7259 lt_cv_prog_compiler_c_o=yes
7264 # SGI C++ compiler will create directory out/ii_files/ for
7265 # template instantiation
7266 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7267 $RM out/* && rmdir out
7273 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7274 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7281 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7282 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7283 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7284 echo $ECHO_N "(cached) $ECHO_C" >&6
7286 lt_cv_prog_compiler_c_o=no
7287 $RM -r conftest 2>/dev/null
7291 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7293 lt_compiler_flag="-o out/conftest2.$ac_objext"
7294 # Insert the option either (1) after the last *FLAGS variable, or
7295 # (2) before a word containing "conftest.", or (3) at the end.
7296 # Note that $ac_compile itself does not contain backslashes and begins
7297 # with a dollar sign (not a hyphen), so the echo should work correctly.
7298 lt_compile=`echo "$ac_compile" | $SED \
7299 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7300 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7301 -e 's:$: $lt_compiler_flag:'`
7302 (eval echo "\"\$as_me:7302: $lt_compile\"" >&5)
7303 (eval "$lt_compile" 2>out/conftest.err)
7305 cat out/conftest.err >&5
7306 echo "$as_me:7306: \$? = $ac_status" >&5
7307 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7309 # The compiler can only warn and ignore the option if not recognized
7310 # So say no if there are warnings
7311 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7312 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7313 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7314 lt_cv_prog_compiler_c_o=yes
7319 # SGI C++ compiler will create directory out/ii_files/ for
7320 # template instantiation
7321 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7322 $RM out/* && rmdir out
7328 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7329 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7334 hard_links="nottested"
7335 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7336 # do not overwrite the value of need_locks provided by the user
7337 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7338 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7341 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7343 ln conftest.a conftest.b 2>&5 || hard_links=no
7344 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7345 echo "$as_me:$LINENO: result: $hard_links" >&5
7346 echo "${ECHO_T}$hard_links" >&6
7347 if test "$hard_links" = no; then
7348 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7349 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7361 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7362 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7365 allow_undefined_flag=
7366 always_export_symbols=no
7368 archive_expsym_cmds=
7369 compiler_needs_object=no
7370 enable_shared_with_static_runtimes=no
7371 export_dynamic_flag_spec=
7372 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7373 hardcode_automatic=no
7375 hardcode_direct_absolute=no
7376 hardcode_libdir_flag_spec=
7377 hardcode_libdir_flag_spec_ld=
7378 hardcode_libdir_separator=
7380 hardcode_shlibpath_var=unsupported
7382 link_all_deplibs=unknown
7385 old_archive_from_new_cmds=
7386 old_archive_from_expsyms_cmds=
7387 thread_safe_flag_spec=
7388 whole_archive_flag_spec=
7389 # include_expsyms should be a list of space-separated symbols to be *always*
7390 # included in the symbol list
7392 # exclude_expsyms can be an extended regexp of symbols to exclude
7393 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7394 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7395 # as well as any symbol that contains `d'.
7396 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7397 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7398 # platforms (ab)use it in PIC code, but their linkers get confused if
7399 # the symbol is explicitly referenced. Since portable code cannot
7400 # rely on this symbol name, it's probably fine to never include it in
7401 # preloaded symbol tables.
7402 extract_expsyms_cmds=
7405 cygwin* | mingw* | pw32*)
7406 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7407 # When not using gcc, we currently assume that we are using
7408 # Microsoft Visual C++.
7409 if test "$GCC" != yes; then
7414 # we just hope/assume this is gcc and not c89 (= MSVC++)
7423 if test "$with_gnu_ld" = yes; then
7424 # If archive_cmds runs LD, not CC, wlarc should be empty
7427 # Set some defaults for GNU ld with shared library support. These
7428 # are reset later if shared libraries are not supported. Putting them
7429 # here allows them to be overridden if necessary.
7430 runpath_var=LD_RUN_PATH
7431 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7432 export_dynamic_flag_spec='${wl}--export-dynamic'
7433 # ancient GNU ld didn't support --whole-archive et. al.
7434 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7435 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7437 whole_archive_flag_spec=
7439 supports_anon_versioning=no
7440 case `$LD -v 2>&1` in
7441 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7442 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7443 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7444 *\ 2.11.*) ;; # other 2.11 versions
7445 *) supports_anon_versioning=yes ;;
7448 # See if GNU ld supports shared libraries.
7450 aix3* | aix4* | aix5*)
7451 # On AIX/PPC, the GNU linker is very broken
7452 if test "$host_cpu" != ia64; then
7456 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7457 *** to be unable to reliably create shared libraries on AIX.
7458 *** Therefore, libtool is disabling shared libraries support. If you
7459 *** really care for shared libraries, you may want to modify your PATH
7460 *** so that a non-GNU linker is found, and then restart.
7467 if test "$host_cpu" = m68k; then
7468 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)'
7469 hardcode_libdir_flag_spec='-L$libdir'
7470 hardcode_minus_L=yes
7474 # that the semantics of dynamic libraries on AmigaOS, at least up
7475 # to version 4, is to share data among multiple programs linked
7476 # with the same dynamic library. Since this doesn't match the
7477 # behavior of shared libraries on other platforms, we can't use
7483 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7484 allow_undefined_flag=unsupported
7486 # support --undefined. This deserves some investigation. FIXME
7487 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7493 cygwin* | mingw* | pw32*)
7494 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7495 # as there is no search path for DLLs.
7496 hardcode_libdir_flag_spec='-L$libdir'
7497 allow_undefined_flag=unsupported
7498 always_export_symbols=no
7499 enable_shared_with_static_runtimes=yes
7500 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7502 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7503 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7504 # If the export-symbols file already is a .def file (1st line
7505 # is EXPORTS), use it as is; otherwise, prepend...
7506 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7507 cp $export_symbols $output_objdir/$soname.def;
7509 echo EXPORTS > $output_objdir/$soname.def;
7510 cat $export_symbols >> $output_objdir/$soname.def;
7512 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7520 hardcode_shlibpath_var=no
7521 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7522 export_dynamic_flag_spec='${wl}-E'
7523 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7524 # Instead, shared libraries are loaded at an image base (0x10000000 by
7525 # default) and relocated if they conflict, which is a slow very memory
7526 # consuming and fragmenting process. To avoid this, we pick a random,
7527 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7528 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7529 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7530 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'
7533 gnu* | linux* | tpf* | k*bsd*-gnu)
7535 if test "$host_os" = linux-dietlibc; then
7536 case $cc_basename in
7537 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7540 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7541 && test "$tmp_diet" = no
7544 case $cc_basename,$host_cpu in
7545 pgcc*) # Portland Group C compiler
7546 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'
7547 tmp_addflag=' $pic_flag'
7549 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7550 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'
7551 tmp_addflag=' $pic_flag -Mnomain' ;;
7552 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7553 tmp_addflag=' -i_dynamic' ;;
7554 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7555 tmp_addflag=' -i_dynamic -nofor_main' ;;
7556 ifc* | ifort*) # Intel Fortran compiler
7557 tmp_addflag=' -nofor_main' ;;
7559 case `$CC -V 2>&1 | sed 5q` in
7560 *Sun\ C*) # Sun C 5.9
7561 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'
7562 compiler_needs_object=yes
7563 tmp_sharedflag='-G' ;;
7564 *Sun\ F*) # Sun Fortran 8.3
7565 tmp_sharedflag='-G' ;;
7567 tmp_sharedflag='-shared' ;;
7569 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7571 if test "x$supports_anon_versioning" = xyes; then
7572 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7573 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7574 echo "local: *; };" >> $output_objdir/$libname.ver~
7575 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7583 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7584 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7587 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7588 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7593 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7597 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7598 *** create shared libraries on Solaris systems. Therefore, libtool
7599 *** is disabling shared libraries support. We urge you to upgrade GNU
7600 *** binutils to release 2.9.1 or newer. Another option is to modify
7601 *** your PATH or compiler configuration so that the native linker is
7602 *** used, and then restart.
7605 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7606 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7607 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7613 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7614 case `$LD -v 2>&1` in
7615 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7619 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7620 *** reliably create shared libraries on SCO systems. Therefore, libtool
7621 *** is disabling shared libraries support. We urge you to upgrade GNU
7622 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7623 *** your PATH or compiler configuration so that the native linker is
7624 *** used, and then restart.
7629 # For security reasons, it is highly recommended that you always
7630 # use absolute paths for naming shared libraries, and exclude the
7631 # DT_RUNPATH tag from executables and libraries. But doing so
7632 # requires that you compile everything twice, which is a pain.
7633 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7634 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7635 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7636 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7645 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7648 hardcode_shlibpath_var=no
7652 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7653 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7654 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7661 if test "$ld_shlibs" = no; then
7663 hardcode_libdir_flag_spec=
7664 export_dynamic_flag_spec=
7665 whole_archive_flag_spec=
7668 # PORTME fill in a description of your system's linker (not GNU ld)
7671 allow_undefined_flag=unsupported
7672 always_export_symbols=yes
7673 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'
7674 # Note: this linker hardcodes the directories in LIBPATH if there
7675 # are no directories specified by -L.
7676 hardcode_minus_L=yes
7677 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7678 # Neither direct hardcoding nor static linking is supported with a
7680 hardcode_direct=unsupported
7685 if test "$host_cpu" = ia64; then
7686 # On IA64, the linker does run time linking by default, so we don't
7687 # have to do anything special.
7688 aix_use_runtimelinking=no
7689 exp_sym_flag='-Bexport'
7692 # If we're using GNU nm, then we don't want the "-C" option.
7693 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7694 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7695 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'
7697 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'
7699 aix_use_runtimelinking=no
7701 # Test if we are trying to use run time linking or normal
7702 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7703 # need to do runtime linking.
7704 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7705 for ld_flag in $LDFLAGS; do
7706 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7707 aix_use_runtimelinking=yes
7714 exp_sym_flag='-bexport'
7715 no_entry_flag='-bnoentry'
7718 # When large executables or shared objects are built, AIX ld can
7719 # have problems creating the table of contents. If linking a library
7720 # or program results in "error TOC overflow" add -mminimal-toc to
7721 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7722 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7726 hardcode_direct_absolute=yes
7727 hardcode_libdir_separator=':'
7728 link_all_deplibs=yes
7729 file_list_spec='${wl}-f,'
7731 if test "$GCC" = yes; then
7732 case $host_os in aix4.[012]|aix4.[012].*)
7733 # We only want to do this on AIX 4.2 and lower, the check
7734 # below for broken collect2 doesn't work under 4.3+
7735 collect2name=`${CC} -print-prog-name=collect2`
7736 if test -f "$collect2name" &&
7737 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7739 # We have reworked collect2
7742 # We have old collect2
7743 hardcode_direct=unsupported
7744 # It fails to find uninstalled libraries when the uninstalled
7745 # path is not listed in the libpath. Setting hardcode_minus_L
7746 # to unsupported forces relinking
7747 hardcode_minus_L=yes
7748 hardcode_libdir_flag_spec='-L$libdir'
7749 hardcode_libdir_separator=
7753 shared_flag='-shared'
7754 if test "$aix_use_runtimelinking" = yes; then
7755 shared_flag="$shared_flag "'${wl}-G'
7759 if test "$host_cpu" = ia64; then
7760 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7761 # chokes on -Wl,-G. The following line is correct:
7764 if test "$aix_use_runtimelinking" = yes; then
7765 shared_flag='${wl}-G'
7767 shared_flag='${wl}-bM:SRE'
7772 # It seems that -bexpall does not export symbols beginning with
7773 # underscore (_), so it is better to generate a list of symbols to export.
7774 always_export_symbols=yes
7775 if test "$aix_use_runtimelinking" = yes; then
7776 # Warning - without using the other runtime loading flags (-brtl),
7777 # -berok will link without error, but may produce a broken library.
7778 allow_undefined_flag='-berok'
7779 # Determine the default libpath from the value encoded in an
7781 cat >conftest.$ac_ext <<_ACEOF
7784 cat confdefs.h >>conftest.$ac_ext
7785 cat >>conftest.$ac_ext <<_ACEOF
7786 /* end confdefs.h. */
7796 rm -f conftest.$ac_objext conftest$ac_exeext
7797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7798 (eval $ac_link) 2>conftest.er1
7800 grep -v '^ *+' conftest.er1 >conftest.err
7802 cat conftest.err >&5
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); } &&
7805 { ac_try='test -z "$ac_c_werror_flag"
7806 || test ! -s conftest.err'
7807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); }; } &&
7812 { ac_try='test -s conftest$ac_exeext'
7813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817 (exit $ac_status); }; }; then
7819 lt_aix_libpath_sed='
7820 /Import File Strings/,/^$/ {
7826 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7827 # Check for a 64-bit object if we didn't find anything.
7828 if test -z "$aix_libpath"; then
7829 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7832 echo "$as_me: failed program was:" >&5
7833 sed 's/^/| /' conftest.$ac_ext >&5
7836 rm -f conftest.err conftest.$ac_objext \
7837 conftest$ac_exeext conftest.$ac_ext
7838 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7840 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7841 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"
7843 if test "$host_cpu" = ia64; then
7844 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7845 allow_undefined_flag="-z nodefs"
7846 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"
7848 # Determine the default libpath from the value encoded in an
7850 cat >conftest.$ac_ext <<_ACEOF
7853 cat confdefs.h >>conftest.$ac_ext
7854 cat >>conftest.$ac_ext <<_ACEOF
7855 /* end confdefs.h. */
7865 rm -f conftest.$ac_objext conftest$ac_exeext
7866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7867 (eval $ac_link) 2>conftest.er1
7869 grep -v '^ *+' conftest.er1 >conftest.err
7871 cat conftest.err >&5
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); } &&
7874 { ac_try='test -z "$ac_c_werror_flag"
7875 || test ! -s conftest.err'
7876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); }; } &&
7881 { ac_try='test -s conftest$ac_exeext'
7882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); }; }; then
7888 lt_aix_libpath_sed='
7889 /Import File Strings/,/^$/ {
7895 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7896 # Check for a 64-bit object if we didn't find anything.
7897 if test -z "$aix_libpath"; then
7898 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7901 echo "$as_me: failed program was:" >&5
7902 sed 's/^/| /' conftest.$ac_ext >&5
7905 rm -f conftest.err conftest.$ac_objext \
7906 conftest$ac_exeext conftest.$ac_ext
7907 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7909 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7910 # Warning - without using the other run time loading flags,
7911 # -berok will link without error, but may produce a broken library.
7912 no_undefined_flag=' ${wl}-bernotok'
7913 allow_undefined_flag=' ${wl}-berok'
7914 # Exported symbols can be pulled into shared objects from archives
7915 whole_archive_flag_spec='$convenience'
7916 archive_cmds_need_lc=yes
7917 # This is similar to how AIX traditionally builds its shared libraries.
7918 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'
7924 if test "$host_cpu" = m68k; then
7925 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)'
7926 hardcode_libdir_flag_spec='-L$libdir'
7927 hardcode_minus_L=yes
7929 # see comment about different semantics on the GNU ld section
7934 export_dynamic_flag_spec=-rdynamic
7937 cygwin* | mingw* | pw32*)
7938 # When not using gcc, we currently assume that we are using
7939 # Microsoft Visual C++.
7940 # hardcode_libdir_flag_spec is actually meaningless, as there is
7941 # no search path for DLLs.
7942 hardcode_libdir_flag_spec=' '
7943 allow_undefined_flag=unsupported
7944 # Tell ltmain to make .lib files, not .a files.
7946 # Tell ltmain to make .dll files, not .so files.
7948 # FIXME: Setting linknames here is a bad hack.
7949 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7950 # The linker will automatically build a .lib file if we build a DLL.
7951 old_archive_from_new_cmds='true'
7952 # FIXME: Should let the user specify the lib program.
7953 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7954 fix_srcfile_path='`cygpath -w "$srcfile"`'
7955 enable_shared_with_static_runtimes=yes
7958 darwin* | rhapsody*)
7960 rhapsody* | darwin1.[012])
7961 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7964 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7966 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7969 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7974 archive_cmds_need_lc=no
7976 hardcode_automatic=yes
7977 hardcode_shlibpath_var=unsupported
7978 whole_archive_flag_spec=''
7979 link_all_deplibs=yes
7980 if test "$GCC" = yes ; then
7981 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7982 echo $ECHO_N "(cached) $ECHO_C" >&6
7984 lt_cv_apple_cc_single_mod=no
7985 if test -z "${LT_MULTI_MODULE}"; then
7986 # By default we will add the -single_module flag. You can override
7987 # by either setting the environment variable LT_MULTI_MODULE
7988 # non-empty at configure time, or by adding -multi-module to the
7990 echo "int foo(void){return 1;}" > conftest.c
7991 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7992 -dynamiclib ${wl}-single_module conftest.c
7993 if test -f libconftest.dylib; then
7994 lt_cv_apple_cc_single_mod=yes
7995 rm libconftest.dylib
8001 output_verbose_link_cmd=echo
8002 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8003 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8004 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}'
8006 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8007 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}'
8009 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8010 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}'
8012 case $cc_basename in
8014 output_verbose_link_cmd=echo
8015 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8016 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8017 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8018 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}'
8019 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}'
8029 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8030 hardcode_libdir_flag_spec='-L$libdir'
8031 hardcode_shlibpath_var=no
8038 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8039 # support. Future versions do this automatically, but an explicit c++rt0.o
8040 # does not break anything, and helps significantly (at the cost of a little
8043 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8044 hardcode_libdir_flag_spec='-R$libdir'
8046 hardcode_shlibpath_var=no
8049 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8051 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8053 hardcode_minus_L=yes
8054 hardcode_shlibpath_var=no
8057 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8058 freebsd* | dragonfly*)
8059 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8060 hardcode_libdir_flag_spec='-R$libdir'
8062 hardcode_shlibpath_var=no
8066 if test "$GCC" = yes; then
8067 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'
8069 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'
8071 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8072 hardcode_libdir_separator=:
8075 # hardcode_minus_L: Not really in the search PATH,
8076 # but as the default location of the library.
8077 hardcode_minus_L=yes
8078 export_dynamic_flag_spec='${wl}-E'
8082 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8083 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8085 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8087 if test "$with_gnu_ld" = no; then
8088 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8089 hardcode_libdir_flag_spec_ld='+b $libdir'
8090 hardcode_libdir_separator=:
8092 hardcode_direct_absolute=yes
8093 export_dynamic_flag_spec='${wl}-E'
8094 # hardcode_minus_L: Not really in the search PATH,
8095 # but as the default location of the library.
8096 hardcode_minus_L=yes
8101 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8104 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8107 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8110 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8116 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8119 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8122 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8126 if test "$with_gnu_ld" = no; then
8127 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8128 hardcode_libdir_separator=:
8133 hardcode_shlibpath_var=no
8137 hardcode_direct_absolute=yes
8138 export_dynamic_flag_spec='${wl}-E'
8140 # hardcode_minus_L: Not really in the search PATH,
8141 # but as the default location of the library.
8142 hardcode_minus_L=yes
8148 irix5* | irix6* | nonstopux*)
8149 if test "$GCC" = yes; then
8150 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'
8151 # Try to use the -exported_symbol ld option, if it does not
8152 # work, assume that -exports_file does not work either and
8153 # implicitly export all symbols.
8154 save_LDFLAGS="$LDFLAGS"
8155 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8156 cat >conftest.$ac_ext <<_ACEOF
8159 rm -f conftest.$ac_objext conftest$ac_exeext
8160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8161 (eval $ac_link) 2>conftest.er1
8163 grep -v '^ *+' conftest.er1 >conftest.err
8165 cat conftest.err >&5
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); } &&
8168 { ac_try='test -z "$ac_c_werror_flag"
8169 || test ! -s conftest.err'
8170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); }; } &&
8175 { ac_try='test -s conftest$ac_exeext'
8176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); }; }; then
8181 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'
8184 echo "$as_me: failed program was:" >&5
8185 sed 's/^/| /' conftest.$ac_ext >&5
8188 rm -f conftest.err conftest.$ac_objext \
8189 conftest$ac_exeext conftest.$ac_ext
8190 LDFLAGS="$save_LDFLAGS"
8192 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'
8193 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'
8195 archive_cmds_need_lc='no'
8196 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8197 hardcode_libdir_separator=:
8199 link_all_deplibs=yes
8203 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8204 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8206 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8208 hardcode_libdir_flag_spec='-R$libdir'
8210 hardcode_shlibpath_var=no
8214 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8216 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8217 hardcode_libdir_separator=:
8218 hardcode_shlibpath_var=no
8226 hardcode_shlibpath_var=no
8227 hardcode_direct_absolute=yes
8228 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8229 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8230 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8231 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8232 export_dynamic_flag_spec='${wl}-E'
8235 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8236 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8237 hardcode_libdir_flag_spec='-R$libdir'
8240 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8241 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8248 hardcode_libdir_flag_spec='-L$libdir'
8249 hardcode_minus_L=yes
8250 allow_undefined_flag=unsupported
8251 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'
8252 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8256 if test "$GCC" = yes; then
8257 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8258 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'
8260 allow_undefined_flag=' -expect_unresolved \*'
8261 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'
8263 archive_cmds_need_lc='no'
8264 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8265 hardcode_libdir_separator=:
8268 osf4* | osf5*) # as osf3* with the addition of -msym flag
8269 if test "$GCC" = yes; then
8270 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8271 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'
8272 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8274 allow_undefined_flag=' -expect_unresolved \*'
8275 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'
8276 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~
8277 $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'
8279 # Both c and cxx compiler support -rpath directly
8280 hardcode_libdir_flag_spec='-rpath $libdir'
8282 archive_cmds_need_lc='no'
8283 hardcode_libdir_separator=:
8287 no_undefined_flag=' -z defs'
8288 if test "$GCC" = yes; then
8290 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8291 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8292 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8294 case `$CC -V 2>&1` in
8297 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8298 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8299 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8303 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8304 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8305 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8309 hardcode_libdir_flag_spec='-R$libdir'
8310 hardcode_shlibpath_var=no
8312 solaris2.[0-5] | solaris2.[0-5].*) ;;
8314 # The compiler driver will combine and reorder linker options,
8315 # but understands `-z linker_flag'. GCC discards it without `$wl',
8316 # but is careful enough not to reorder.
8317 # Supported since Solaris 2.6 (maybe 2.5.1?)
8318 if test "$GCC" = yes; then
8319 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8321 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8325 link_all_deplibs=yes
8329 if test "x$host_vendor" = xsequent; then
8330 # Use $CC to link under sequent, because it throws in some extra .o
8331 # files that make .init and .fini sections work.
8332 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8334 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8336 hardcode_libdir_flag_spec='-L$libdir'
8338 hardcode_minus_L=yes
8339 hardcode_shlibpath_var=no
8343 case $host_vendor in
8345 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8346 hardcode_direct=yes # is this really true???
8349 ## LD is ld it makes a PLAMLIB
8350 ## CC just makes a GrossModule.
8351 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8352 reload_cmds='$CC -r -o $output$reload_objs'
8356 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8357 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8360 runpath_var='LD_RUN_PATH'
8361 hardcode_shlibpath_var=no
8365 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8366 hardcode_shlibpath_var=no
8367 export_dynamic_flag_spec='-Bexport'
8371 if test -d /usr/nec; then
8372 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8373 hardcode_shlibpath_var=no
8374 runpath_var=LD_RUN_PATH
8375 hardcode_runpath_var=yes
8380 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8381 no_undefined_flag='${wl}-z,text'
8382 archive_cmds_need_lc=no
8383 hardcode_shlibpath_var=no
8384 runpath_var='LD_RUN_PATH'
8386 if test "$GCC" = yes; then
8387 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8388 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8390 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8391 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8395 sysv5* | sco3.2v5* | sco5v6*)
8396 # Note: We can NOT use -z defs as we might desire, because we do not
8397 # link with -lc, and that would cause any symbols used from libc to
8398 # always be unresolved, which means just about no library would
8399 # ever link correctly. If we're not using GNU ld we use -z text
8400 # though, which does catch some bad symbols but isn't as heavy-handed
8402 no_undefined_flag='${wl}-z,text'
8403 allow_undefined_flag='${wl}-z,nodefs'
8404 archive_cmds_need_lc=no
8405 hardcode_shlibpath_var=no
8406 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8407 hardcode_libdir_separator=':'
8408 link_all_deplibs=yes
8409 export_dynamic_flag_spec='${wl}-Bexport'
8410 runpath_var='LD_RUN_PATH'
8412 if test "$GCC" = yes; then
8413 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8414 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8416 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8417 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8422 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8423 hardcode_libdir_flag_spec='-L$libdir'
8424 hardcode_shlibpath_var=no
8432 if test x$host_vendor = xsni; then
8434 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8435 export_dynamic_flag_spec='${wl}-Blargedynsym'
8441 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8442 echo "${ECHO_T}$ld_shlibs" >&6
8443 test "$ld_shlibs" = no && can_build_shared=no
8445 with_gnu_ld=$with_gnu_ld
8462 # Do we need to explicitly link libc?
8464 case "x$archive_cmds_need_lc" in
8466 # Assume -lc should be added
8467 archive_cmds_need_lc=yes
8469 if test "$enable_shared" = yes && test "$GCC" = yes; then
8470 case $archive_cmds in
8472 # FIXME: we may have to deal with multi-command sequences.
8475 # Test whether the compiler implicitly links with -lc since on some
8476 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8477 # to ld, don't add -lc before -lgcc.
8478 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8479 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8481 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8484 (eval $ac_compile) 2>&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); } 2>conftest.err; then
8490 libobjs=conftest.$ac_objext
8492 wl=$lt_prog_compiler_wl
8493 pic_flag=$lt_prog_compiler_pic
8499 lt_save_allow_undefined_flag=$allow_undefined_flag
8500 allow_undefined_flag=
8501 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8502 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); }
8507 archive_cmds_need_lc=no
8509 archive_cmds_need_lc=yes
8511 allow_undefined_flag=$lt_save_allow_undefined_flag
8513 cat conftest.err 1>&5
8516 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8517 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8680 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8681 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8683 if test "$withGCC" = yes; then
8685 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8686 *) lt_awk_arg="/^libraries:/" ;;
8688 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8689 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8690 # if the path contains ";" then we assume it to be the separator
8691 # otherwise default to the standard path separator (i.e. ":") - it is
8692 # assumed that no part of a normal pathname contains ";" but that should
8693 # okay in the real world where ";" in dirpaths is itself problematic.
8694 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8696 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8698 # Ok, now we have the path, separated by spaces, we can step through it
8699 # and add multilib dir if necessary.
8700 lt_tmp_lt_search_path_spec=
8701 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8702 for lt_sys_path in $lt_search_path_spec; do
8703 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8704 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8706 test -d "$lt_sys_path" && \
8707 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8710 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8711 BEGIN {RS=" "; FS="/|\n";} {
8714 for (lt_i = NF; lt_i > 0; lt_i--) {
8715 if ($lt_i != "" && $lt_i != ".") {
8716 if ($lt_i == "..") {
8719 if (lt_count == 0) {
8720 lt_foo="/" $lt_i lt_foo;
8727 if (lt_foo != "") { lt_freq[lt_foo]++; }
8728 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8730 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8732 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8735 libname_spec='lib$name'
8743 shlibpath_overrides_runpath=unknown
8745 dynamic_linker="$host_os ld.so"
8746 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8747 need_lib_prefix=unknown
8748 hardcode_into_libs=no
8750 # when you set need_version to no, make sure it does not cause -set_version
8751 # flags to be left without arguments
8752 need_version=unknown
8757 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8758 shlibpath_var=LIBPATH
8760 # AIX 3 has no versioning support, so we append a major version to the name.
8761 soname_spec='${libname}${release}${shared_ext}$major'
8768 hardcode_into_libs=yes
8769 if test "$host_cpu" = ia64; then
8770 # AIX 5 supports IA64
8771 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8772 shlibpath_var=LD_LIBRARY_PATH
8774 # With GCC up to 2.95.x, collect2 would create an import file
8775 # for dependence libraries. The import file would start with
8776 # the line `#! .'. This would cause the generated library to
8777 # depend on `.', always an invalid library. This was fixed in
8778 # development snapshots of GCC prior to 3.0.
8780 aix4 | aix4.[01] | aix4.[01].*)
8781 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8783 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8790 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8791 # soname into executable. Probably we can add versioning support to
8792 # collect2, so additional links can be useful in future.
8793 if test "$aix_use_runtimelinking" = yes; then
8794 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8795 # instead of lib<name>.a to let people know that these are not
8796 # typical AIX shared libraries.
8797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8799 # We preserve .a as extension for shared libraries through AIX4.2
8800 # and later when we are not doing run time linking.
8801 library_names_spec='${libname}${release}.a $libname.a'
8802 soname_spec='${libname}${release}${shared_ext}$major'
8804 shlibpath_var=LIBPATH
8809 if test "$host_cpu" = m68k; then
8810 library_names_spec='$libname.ixlibrary $libname.a'
8811 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8812 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'
8819 library_names_spec='${libname}${shared_ext}'
8820 dynamic_linker="$host_os ld.so"
8821 shlibpath_var=LIBRARY_PATH
8827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8828 soname_spec='${libname}${release}${shared_ext}$major'
8829 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8830 shlibpath_var=LD_LIBRARY_PATH
8831 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8832 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8833 # the default ld.so.conf also contains /usr/contrib/lib and
8834 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8835 # libtool to hard-code these into programs
8838 cygwin* | mingw* | pw32*)
8839 version_type=windows
8844 case $withGCC,$host_os in
8845 yes,cygwin* | yes,mingw* | yes,pw32*)
8846 library_names_spec='$libname.dll.a'
8847 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8848 postinstall_cmds='base_file=`basename \${file}`~
8849 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8850 dldir=$destdir/`dirname \$dlpath`~
8851 test -d \$dldir || mkdir -p \$dldir~
8852 $install_prog $dir/$dlname \$dldir/$dlname~
8853 chmod a+x \$dldir/$dlname~
8854 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8855 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8857 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8858 dlpath=$dir/\$dldll~
8860 shlibpath_overrides_runpath=yes
8864 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8865 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8866 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8869 # MinGW DLLs use traditional 'lib' prefix
8870 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8871 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8872 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8873 # It is most probably a Windows format PATH printed by
8874 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8875 # path with ; separators, and with drive letters. We can handle the
8876 # drive letters (cygwin fileutils understands them), so leave them,
8877 # especially as we might pass files found there to a mingw objdump,
8878 # which wouldn't understand a cygwinified path. Ahh.
8879 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8881 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8885 # pw32 DLLs use 'pw' prefix rather than 'lib'
8886 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8892 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8895 dynamic_linker='Win32 ld.exe'
8896 # FIXME: first we should search . and the directory the executable is in
8900 darwin* | rhapsody*)
8901 dynamic_linker="$host_os dyld"
8905 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8906 soname_spec='${libname}${release}${major}$shared_ext'
8907 shlibpath_overrides_runpath=yes
8908 shlibpath_var=DYLD_LIBRARY_PATH
8909 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8911 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8912 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8920 soname_spec='${libname}${release}${shared_ext}$major'
8921 shlibpath_var=LD_LIBRARY_PATH
8928 freebsd* | dragonfly*)
8929 # DragonFly does not have aout. When/if they implement a new
8930 # versioning mechanism, adjust this.
8931 if test -x /usr/bin/objformat; then
8932 objformat=`/usr/bin/objformat`
8935 freebsd[123]*) objformat=aout ;;
8939 version_type=freebsd-$objformat
8940 case $version_type in
8942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8947 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8951 shlibpath_var=LD_LIBRARY_PATH
8954 shlibpath_overrides_runpath=yes
8956 freebsd3.[01]* | freebsdelf3.[01]*)
8957 shlibpath_overrides_runpath=yes
8958 hardcode_into_libs=yes
8960 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8961 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8962 shlibpath_overrides_runpath=no
8963 hardcode_into_libs=yes
8965 *) # from 4.6 on, and DragonFly
8966 shlibpath_overrides_runpath=yes
8967 hardcode_into_libs=yes
8976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8977 soname_spec='${libname}${release}${shared_ext}$major'
8978 shlibpath_var=LD_LIBRARY_PATH
8979 hardcode_into_libs=yes
8982 hpux9* | hpux10* | hpux11*)
8983 # Give a soname corresponding to the major version so that dld.sl refuses to
8984 # link against other versions.
8991 hardcode_into_libs=yes
8992 dynamic_linker="$host_os dld.so"
8993 shlibpath_var=LD_LIBRARY_PATH
8994 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8996 soname_spec='${libname}${release}${shared_ext}$major'
8997 if test "X$HPUX_IA64_MODE" = X32; then
8998 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9000 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9002 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9006 hardcode_into_libs=yes
9007 dynamic_linker="$host_os dld.sl"
9008 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9009 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9011 soname_spec='${libname}${release}${shared_ext}$major'
9012 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9013 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9017 dynamic_linker="$host_os dld.sl"
9018 shlibpath_var=SHLIB_PATH
9019 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9021 soname_spec='${libname}${release}${shared_ext}$major'
9024 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9025 postinstall_cmds='chmod 555 $lib'
9032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9033 soname_spec='${libname}${release}${shared_ext}$major'
9034 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9035 shlibpath_var=LD_LIBRARY_PATH
9036 shlibpath_overrides_runpath=no
9037 hardcode_into_libs=yes
9040 irix5* | irix6* | nonstopux*)
9042 nonstopux*) version_type=nonstopux ;;
9044 if test "$lt_cv_prog_gnu_ld" = yes; then
9052 soname_spec='${libname}${release}${shared_ext}$major'
9053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9055 irix5* | nonstopux*)
9059 case $LD in # libtool.m4 will add one of these switches to LD
9060 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9061 libsuff= shlibsuff= libmagic=32-bit;;
9062 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9063 libsuff=32 shlibsuff=N32 libmagic=N32;;
9064 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9065 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9066 *) libsuff= shlibsuff= libmagic=never-match;;
9070 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9071 shlibpath_overrides_runpath=no
9072 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9073 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9074 hardcode_into_libs=yes
9077 # No shared lib support for Linux oldld, aout, or coff.
9078 linux*oldld* | linux*aout* | linux*coff*)
9082 # This must be Linux ELF.
9083 linux* | k*bsd*-gnu)
9087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9088 soname_spec='${libname}${release}${shared_ext}$major'
9089 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9090 shlibpath_var=LD_LIBRARY_PATH
9091 shlibpath_overrides_runpath=no
9092 # Some binutils ld are patched to set DT_RUNPATH
9093 save_LDFLAGS=$LDFLAGS
9095 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9096 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9097 cat >conftest.$ac_ext <<_ACEOF
9100 cat confdefs.h >>conftest.$ac_ext
9101 cat >>conftest.$ac_ext <<_ACEOF
9102 /* end confdefs.h. */
9112 rm -f conftest.$ac_objext conftest$ac_exeext
9113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9114 (eval $ac_link) 2>conftest.er1
9116 grep -v '^ *+' conftest.er1 >conftest.err
9118 cat conftest.err >&5
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); } &&
9121 { ac_try='test -z "$ac_c_werror_flag"
9122 || test ! -s conftest.err'
9123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); }; } &&
9128 { ac_try='test -s conftest$ac_exeext'
9129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); }; }; then
9134 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9135 shlibpath_overrides_runpath=yes
9139 echo "$as_me: failed program was:" >&5
9140 sed 's/^/| /' conftest.$ac_ext >&5
9143 rm -f conftest.err conftest.$ac_objext \
9144 conftest$ac_exeext conftest.$ac_ext
9145 LDFLAGS=$save_LDFLAGS
9148 # This implies no fast_install, which is unacceptable.
9149 # Some rework will be needed to allow for fast_install
9150 # before this can be enabled.
9151 hardcode_into_libs=yes
9153 # Append ld.so.conf contents to the search path
9154 if test -f /etc/ld.so.conf; then
9155 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' ' '`
9156 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9159 # We used to test for /lib/ld.so.1 and disable shared libraries on
9160 # powerpc, because MkLinux only supported shared libraries with the
9161 # GNU dynamic linker. Since this was broken with cross compilers,
9162 # most powerpc-linux boxes support dynamic linking these days and
9163 # people can always --disable-shared, the test was removed, and we
9164 # assume the GNU/Linux dynamic linker is in use.
9165 dynamic_linker='GNU/Linux ld.so'
9172 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9174 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9175 dynamic_linker='NetBSD (a.out) ld.so'
9177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9178 soname_spec='${libname}${release}${shared_ext}$major'
9179 dynamic_linker='NetBSD ld.elf_so'
9181 shlibpath_var=LD_LIBRARY_PATH
9182 shlibpath_overrides_runpath=yes
9183 hardcode_into_libs=yes
9188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9189 shlibpath_var=LD_LIBRARY_PATH
9190 shlibpath_overrides_runpath=yes
9197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9198 soname_spec='${libname}${release}${shared_ext}$major'
9199 shlibpath_var=LD_LIBRARY_PATH
9200 shlibpath_overrides_runpath=no
9201 hardcode_into_libs=yes
9202 dynamic_linker='ldqnx.so'
9207 sys_lib_dlsearch_path_spec="/usr/lib"
9209 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9211 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9212 *) need_version=no ;;
9214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9215 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9216 shlibpath_var=LD_LIBRARY_PATH
9217 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9219 openbsd2.[89] | openbsd2.[89].*)
9220 shlibpath_overrides_runpath=no
9223 shlibpath_overrides_runpath=yes
9227 shlibpath_overrides_runpath=yes
9232 libname_spec='$name'
9235 library_names_spec='$libname${shared_ext} $libname.a'
9236 dynamic_linker='OS/2 ld.exe'
9237 shlibpath_var=LIBPATH
9240 osf3* | osf4* | osf5*)
9244 soname_spec='${libname}${release}${shared_ext}$major'
9245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9246 shlibpath_var=LD_LIBRARY_PATH
9247 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9248 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9260 soname_spec='${libname}${release}${shared_ext}$major'
9261 shlibpath_var=LD_LIBRARY_PATH
9262 shlibpath_overrides_runpath=yes
9263 hardcode_into_libs=yes
9264 # ldd complains unless libraries are executable
9265 postinstall_cmds='chmod +x $lib'
9270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9271 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9272 shlibpath_var=LD_LIBRARY_PATH
9273 shlibpath_overrides_runpath=yes
9274 if test "$with_gnu_ld" = yes; then
9282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9283 soname_spec='${libname}${release}${shared_ext}$major'
9284 shlibpath_var=LD_LIBRARY_PATH
9285 case $host_vendor in
9287 shlibpath_overrides_runpath=no
9289 runpath_var=LD_RUN_PATH
9297 shlibpath_overrides_runpath=no
9298 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9304 if test -d /usr/nec ;then
9306 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9307 soname_spec='$libname${shared_ext}.$major'
9308 shlibpath_var=LD_LIBRARY_PATH
9312 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9313 version_type=freebsd-elf
9316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9317 soname_spec='${libname}${release}${shared_ext}$major'
9318 shlibpath_var=LD_LIBRARY_PATH
9319 shlibpath_overrides_runpath=yes
9320 hardcode_into_libs=yes
9321 if test "$with_gnu_ld" = yes; then
9322 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9324 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9327 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9331 sys_lib_dlsearch_path_spec='/usr/lib'
9335 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9339 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9340 shlibpath_var=LD_LIBRARY_PATH
9341 shlibpath_overrides_runpath=no
9342 hardcode_into_libs=yes
9347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9348 soname_spec='${libname}${release}${shared_ext}$major'
9349 shlibpath_var=LD_LIBRARY_PATH
9356 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9357 echo "${ECHO_T}$dynamic_linker" >&6
9358 test "$dynamic_linker" = no && can_build_shared=no
9360 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9361 if test "$GCC" = yes; then
9362 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9451 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9452 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9454 if test -n "$hardcode_libdir_flag_spec" ||
9455 test -n "$runpath_var" ||
9456 test "X$hardcode_automatic" = "Xyes" ; then
9458 # We can hardcode non-existent directories.
9459 if test "$hardcode_direct" != no &&
9460 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9461 # have to relink, otherwise we might link with an installed library
9462 # when we should be linking with a yet-to-be-installed one
9463 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9464 test "$hardcode_minus_L" != no; then
9465 # Linking always hardcodes the temporary library directory.
9466 hardcode_action=relink
9468 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9469 hardcode_action=immediate
9472 # We cannot hardcode anything, or else we can only hardcode existing
9474 hardcode_action=unsupported
9476 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9477 echo "${ECHO_T}$hardcode_action" >&6
9479 if test "$hardcode_action" = relink ||
9480 test "$inherit_rpath" = yes; then
9481 # Fast installation is not supported
9482 enable_fast_install=no
9483 elif test "$shlibpath_overrides_runpath" = yes ||
9484 test "$enable_shared" = no; then
9485 # Fast installation is not necessary
9486 enable_fast_install=needless
9494 if test "x$enable_dlopen" != xyes; then
9495 enable_dlopen=unknown
9496 enable_dlopen_self=unknown
9497 enable_dlopen_self_static=unknown
9504 lt_cv_dlopen="load_add_on"
9506 lt_cv_dlopen_self=yes
9510 lt_cv_dlopen="LoadLibrary"
9515 lt_cv_dlopen="dlopen"
9520 # if libdl is installed we need to link against it
9521 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9522 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9523 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9524 echo $ECHO_N "(cached) $ECHO_C" >&6
9526 ac_check_lib_save_LIBS=$LIBS
9528 cat >conftest.$ac_ext <<_ACEOF
9531 cat confdefs.h >>conftest.$ac_ext
9532 cat >>conftest.$ac_ext <<_ACEOF
9533 /* end confdefs.h. */
9535 /* Override any gcc2 internal prototype to avoid an error. */
9539 /* We use char because int might match the return type of a gcc2
9540 builtin and then its argument prototype would still apply. */
9550 rm -f conftest.$ac_objext conftest$ac_exeext
9551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9552 (eval $ac_link) 2>conftest.er1
9554 grep -v '^ *+' conftest.er1 >conftest.err
9556 cat conftest.err >&5
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); } &&
9559 { ac_try='test -z "$ac_c_werror_flag"
9560 || test ! -s conftest.err'
9561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); }; } &&
9566 { ac_try='test -s conftest$ac_exeext'
9567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); }; }; then
9572 ac_cv_lib_dl_dlopen=yes
9574 echo "$as_me: failed program was:" >&5
9575 sed 's/^/| /' conftest.$ac_ext >&5
9577 ac_cv_lib_dl_dlopen=no
9579 rm -f conftest.err conftest.$ac_objext \
9580 conftest$ac_exeext conftest.$ac_ext
9581 LIBS=$ac_check_lib_save_LIBS
9583 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9584 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9585 if test $ac_cv_lib_dl_dlopen = yes; then
9586 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9591 lt_cv_dlopen_self=yes
9598 echo "$as_me:$LINENO: checking for shl_load" >&5
9599 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9600 if test "${ac_cv_func_shl_load+set}" = set; then
9601 echo $ECHO_N "(cached) $ECHO_C" >&6
9603 cat >conftest.$ac_ext <<_ACEOF
9606 cat confdefs.h >>conftest.$ac_ext
9607 cat >>conftest.$ac_ext <<_ACEOF
9608 /* end confdefs.h. */
9609 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9611 #define shl_load innocuous_shl_load
9613 /* System header to define __stub macros and hopefully few prototypes,
9614 which can conflict with char shl_load (); below.
9615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9616 <limits.h> exists even on freestanding compilers. */
9619 # include <limits.h>
9621 # include <assert.h>
9626 /* Override any gcc2 internal prototype to avoid an error. */
9631 /* We use char because int might match the return type of a gcc2
9632 builtin and then its argument prototype would still apply. */
9634 /* The GNU C library defines this for functions which it implements
9635 to always fail with ENOSYS. Some functions are actually named
9636 something starting with __ and the normal name is an alias. */
9637 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9640 char (*f) () = shl_load;
9649 return f != shl_load;
9654 rm -f conftest.$ac_objext conftest$ac_exeext
9655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9656 (eval $ac_link) 2>conftest.er1
9658 grep -v '^ *+' conftest.er1 >conftest.err
9660 cat conftest.err >&5
9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662 (exit $ac_status); } &&
9663 { ac_try='test -z "$ac_c_werror_flag"
9664 || test ! -s conftest.err'
9665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); }; } &&
9670 { ac_try='test -s conftest$ac_exeext'
9671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); }; }; then
9676 ac_cv_func_shl_load=yes
9678 echo "$as_me: failed program was:" >&5
9679 sed 's/^/| /' conftest.$ac_ext >&5
9681 ac_cv_func_shl_load=no
9683 rm -f conftest.err conftest.$ac_objext \
9684 conftest$ac_exeext conftest.$ac_ext
9686 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9687 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9688 if test $ac_cv_func_shl_load = yes; then
9689 lt_cv_dlopen="shl_load"
9691 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9692 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9693 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9694 echo $ECHO_N "(cached) $ECHO_C" >&6
9696 ac_check_lib_save_LIBS=$LIBS
9698 cat >conftest.$ac_ext <<_ACEOF
9701 cat confdefs.h >>conftest.$ac_ext
9702 cat >>conftest.$ac_ext <<_ACEOF
9703 /* end confdefs.h. */
9705 /* Override any gcc2 internal prototype to avoid an error. */
9709 /* We use char because int might match the return type of a gcc2
9710 builtin and then its argument prototype would still apply. */
9720 rm -f conftest.$ac_objext conftest$ac_exeext
9721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9722 (eval $ac_link) 2>conftest.er1
9724 grep -v '^ *+' conftest.er1 >conftest.err
9726 cat conftest.err >&5
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); } &&
9729 { ac_try='test -z "$ac_c_werror_flag"
9730 || test ! -s conftest.err'
9731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); }; } &&
9736 { ac_try='test -s conftest$ac_exeext'
9737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); }; }; then
9742 ac_cv_lib_dld_shl_load=yes
9744 echo "$as_me: failed program was:" >&5
9745 sed 's/^/| /' conftest.$ac_ext >&5
9747 ac_cv_lib_dld_shl_load=no
9749 rm -f conftest.err conftest.$ac_objext \
9750 conftest$ac_exeext conftest.$ac_ext
9751 LIBS=$ac_check_lib_save_LIBS
9753 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9754 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9755 if test $ac_cv_lib_dld_shl_load = yes; then
9756 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9758 echo "$as_me:$LINENO: checking for dlopen" >&5
9759 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9760 if test "${ac_cv_func_dlopen+set}" = set; then
9761 echo $ECHO_N "(cached) $ECHO_C" >&6
9763 cat >conftest.$ac_ext <<_ACEOF
9766 cat confdefs.h >>conftest.$ac_ext
9767 cat >>conftest.$ac_ext <<_ACEOF
9768 /* end confdefs.h. */
9769 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9771 #define dlopen innocuous_dlopen
9773 /* System header to define __stub macros and hopefully few prototypes,
9774 which can conflict with char dlopen (); below.
9775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9776 <limits.h> exists even on freestanding compilers. */
9779 # include <limits.h>
9781 # include <assert.h>
9786 /* Override any gcc2 internal prototype to avoid an error. */
9791 /* We use char because int might match the return type of a gcc2
9792 builtin and then its argument prototype would still apply. */
9794 /* The GNU C library defines this for functions which it implements
9795 to always fail with ENOSYS. Some functions are actually named
9796 something starting with __ and the normal name is an alias. */
9797 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9800 char (*f) () = dlopen;
9814 rm -f conftest.$ac_objext conftest$ac_exeext
9815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9816 (eval $ac_link) 2>conftest.er1
9818 grep -v '^ *+' conftest.er1 >conftest.err
9820 cat conftest.err >&5
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); } &&
9823 { ac_try='test -z "$ac_c_werror_flag"
9824 || test ! -s conftest.err'
9825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); }; } &&
9830 { ac_try='test -s conftest$ac_exeext'
9831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); }; }; then
9836 ac_cv_func_dlopen=yes
9838 echo "$as_me: failed program was:" >&5
9839 sed 's/^/| /' conftest.$ac_ext >&5
9841 ac_cv_func_dlopen=no
9843 rm -f conftest.err conftest.$ac_objext \
9844 conftest$ac_exeext conftest.$ac_ext
9846 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9847 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9848 if test $ac_cv_func_dlopen = yes; then
9849 lt_cv_dlopen="dlopen"
9851 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9852 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9853 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9854 echo $ECHO_N "(cached) $ECHO_C" >&6
9856 ac_check_lib_save_LIBS=$LIBS
9858 cat >conftest.$ac_ext <<_ACEOF
9861 cat confdefs.h >>conftest.$ac_ext
9862 cat >>conftest.$ac_ext <<_ACEOF
9863 /* end confdefs.h. */
9865 /* Override any gcc2 internal prototype to avoid an error. */
9869 /* We use char because int might match the return type of a gcc2
9870 builtin and then its argument prototype would still apply. */
9880 rm -f conftest.$ac_objext conftest$ac_exeext
9881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9882 (eval $ac_link) 2>conftest.er1
9884 grep -v '^ *+' conftest.er1 >conftest.err
9886 cat conftest.err >&5
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); } &&
9889 { ac_try='test -z "$ac_c_werror_flag"
9890 || test ! -s conftest.err'
9891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); }; } &&
9896 { ac_try='test -s conftest$ac_exeext'
9897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); }; }; then
9902 ac_cv_lib_dl_dlopen=yes
9904 echo "$as_me: failed program was:" >&5
9905 sed 's/^/| /' conftest.$ac_ext >&5
9907 ac_cv_lib_dl_dlopen=no
9909 rm -f conftest.err conftest.$ac_objext \
9910 conftest$ac_exeext conftest.$ac_ext
9911 LIBS=$ac_check_lib_save_LIBS
9913 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9914 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9915 if test $ac_cv_lib_dl_dlopen = yes; then
9916 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9918 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9919 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9920 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9921 echo $ECHO_N "(cached) $ECHO_C" >&6
9923 ac_check_lib_save_LIBS=$LIBS
9925 cat >conftest.$ac_ext <<_ACEOF
9928 cat confdefs.h >>conftest.$ac_ext
9929 cat >>conftest.$ac_ext <<_ACEOF
9930 /* end confdefs.h. */
9932 /* Override any gcc2 internal prototype to avoid an error. */
9936 /* We use char because int might match the return type of a gcc2
9937 builtin and then its argument prototype would still apply. */
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_lib_svld_dlopen=yes
9971 echo "$as_me: failed program was:" >&5
9972 sed 's/^/| /' conftest.$ac_ext >&5
9974 ac_cv_lib_svld_dlopen=no
9976 rm -f conftest.err conftest.$ac_objext \
9977 conftest$ac_exeext conftest.$ac_ext
9978 LIBS=$ac_check_lib_save_LIBS
9980 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9981 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9982 if test $ac_cv_lib_svld_dlopen = yes; then
9983 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9985 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9986 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9987 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9988 echo $ECHO_N "(cached) $ECHO_C" >&6
9990 ac_check_lib_save_LIBS=$LIBS
9992 cat >conftest.$ac_ext <<_ACEOF
9995 cat confdefs.h >>conftest.$ac_ext
9996 cat >>conftest.$ac_ext <<_ACEOF
9997 /* end confdefs.h. */
9999 /* Override any gcc2 internal prototype to avoid an error. */
10003 /* We use char because int might match the return type of a gcc2
10004 builtin and then its argument prototype would still apply. */
10014 rm -f conftest.$ac_objext conftest$ac_exeext
10015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10016 (eval $ac_link) 2>conftest.er1
10018 grep -v '^ *+' conftest.er1 >conftest.err
10020 cat conftest.err >&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); } &&
10023 { ac_try='test -z "$ac_c_werror_flag"
10024 || test ! -s conftest.err'
10025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10026 (eval $ac_try) 2>&5
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); }; } &&
10030 { ac_try='test -s conftest$ac_exeext'
10031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032 (eval $ac_try) 2>&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; }; then
10036 ac_cv_lib_dld_dld_link=yes
10038 echo "$as_me: failed program was:" >&5
10039 sed 's/^/| /' conftest.$ac_ext >&5
10041 ac_cv_lib_dld_dld_link=no
10043 rm -f conftest.err conftest.$ac_objext \
10044 conftest$ac_exeext conftest.$ac_ext
10045 LIBS=$ac_check_lib_save_LIBS
10047 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10048 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10049 if test $ac_cv_lib_dld_dld_link = yes; then
10050 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10071 if test "x$lt_cv_dlopen" != xno; then
10077 case $lt_cv_dlopen in
10079 save_CPPFLAGS="$CPPFLAGS"
10080 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10082 save_LDFLAGS="$LDFLAGS"
10083 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10086 LIBS="$lt_cv_dlopen_libs $LIBS"
10088 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10089 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10090 if test "${lt_cv_dlopen_self+set}" = set; then
10091 echo $ECHO_N "(cached) $ECHO_C" >&6
10093 if test "$cross_compiling" = yes; then :
10094 lt_cv_dlopen_self=cross
10096 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10097 lt_status=$lt_dlunknown
10098 cat > conftest.$ac_ext <<_LT_EOF
10099 #line 10099 "configure"
10100 #include "confdefs.h"
10109 # define LT_DLGLOBAL RTLD_GLOBAL
10112 # define LT_DLGLOBAL DL_GLOBAL
10114 # define LT_DLGLOBAL 0
10118 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10119 find out it does not work in some platform. */
10120 #ifndef LT_DLLAZY_OR_NOW
10122 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10125 # define LT_DLLAZY_OR_NOW DL_LAZY
10128 # define LT_DLLAZY_OR_NOW RTLD_NOW
10131 # define LT_DLLAZY_OR_NOW DL_NOW
10133 # define LT_DLLAZY_OR_NOW 0
10141 extern "C" void exit (int);
10144 void fnord() { int i=42;}
10147 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10148 int status = $lt_dlunknown;
10152 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10153 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10154 /* dlclose (self); */
10162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10163 (eval $ac_link) 2>&5
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10167 (./conftest; exit; ) >&5 2>/dev/null
10169 case x$lt_status in
10170 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10171 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10172 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10175 # compilation failed
10176 lt_cv_dlopen_self=no
10183 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10184 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10186 if test "x$lt_cv_dlopen_self" = xyes; then
10187 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10188 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10189 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10190 if test "${lt_cv_dlopen_self_static+set}" = set; then
10191 echo $ECHO_N "(cached) $ECHO_C" >&6
10193 if test "$cross_compiling" = yes; then :
10194 lt_cv_dlopen_self_static=cross
10196 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10197 lt_status=$lt_dlunknown
10198 cat > conftest.$ac_ext <<_LT_EOF
10199 #line 10199 "configure"
10200 #include "confdefs.h"
10209 # define LT_DLGLOBAL RTLD_GLOBAL
10212 # define LT_DLGLOBAL DL_GLOBAL
10214 # define LT_DLGLOBAL 0
10218 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10219 find out it does not work in some platform. */
10220 #ifndef LT_DLLAZY_OR_NOW
10222 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10225 # define LT_DLLAZY_OR_NOW DL_LAZY
10228 # define LT_DLLAZY_OR_NOW RTLD_NOW
10231 # define LT_DLLAZY_OR_NOW DL_NOW
10233 # define LT_DLLAZY_OR_NOW 0
10241 extern "C" void exit (int);
10244 void fnord() { int i=42;}
10247 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10248 int status = $lt_dlunknown;
10252 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10253 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10254 /* dlclose (self); */
10262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10263 (eval $ac_link) 2>&5
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10267 (./conftest; exit; ) >&5 2>/dev/null
10269 case x$lt_status in
10270 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10271 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10272 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10275 # compilation failed
10276 lt_cv_dlopen_self_static=no
10283 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10284 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10287 CPPFLAGS="$save_CPPFLAGS"
10288 LDFLAGS="$save_LDFLAGS"
10293 case $lt_cv_dlopen_self in
10294 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10295 *) enable_dlopen_self=unknown ;;
10298 case $lt_cv_dlopen_self_static in
10299 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10300 *) enable_dlopen_self_static=unknown ;;
10322 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10323 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10324 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10325 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10326 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10327 echo "$as_me:$LINENO: result: yes" >&5
10328 echo "${ECHO_T}yes" >&6
10330 # FIXME - insert some real tests, host_os isn't really good enough
10333 if test -n "$STRIP" ; then
10334 striplib="$STRIP -x"
10335 old_striplib="$STRIP -S"
10336 echo "$as_me:$LINENO: result: yes" >&5
10337 echo "${ECHO_T}yes" >&6
10339 echo "$as_me:$LINENO: result: no" >&5
10340 echo "${ECHO_T}no" >&6
10344 echo "$as_me:$LINENO: result: no" >&5
10345 echo "${ECHO_T}no" >&6
10361 # Report which library types will actually be built
10362 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10363 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10364 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10365 echo "${ECHO_T}$can_build_shared" >&6
10367 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10368 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10369 test "$can_build_shared" = "no" && enable_shared=no
10371 # On AIX, shared libraries and static libraries use the same namespace, and
10372 # are all built from PIC.
10375 test "$enable_shared" = yes && enable_static=no
10376 if test -n "$RANLIB"; then
10377 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10378 postinstall_cmds='$RANLIB $lib'
10383 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10384 test "$enable_shared" = yes && enable_static=no
10388 echo "$as_me:$LINENO: result: $enable_shared" >&5
10389 echo "${ECHO_T}$enable_shared" >&6
10391 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10392 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10393 # Make sure either enable_shared or enable_static is yes.
10394 test "$enable_shared" = yes || enable_static=yes
10395 echo "$as_me:$LINENO: result: $enable_static" >&5
10396 echo "${ECHO_T}$enable_static" >&6
10403 ac_cpp='$CPP $CPPFLAGS'
10404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10422 ac_config_commands="$ac_config_commands libtool"
10427 # Only expand once:
10431 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
10432 if test "${enable_64_bit_bfd+set}" = set; then
10433 enableval="$enable_64_bit_bfd"
10434 case "${enableval}" in
10435 yes) want64=true ;;
10436 no) want64=false ;;
10437 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
10438 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
10439 { (exit 1); exit 1; }; } ;;
10443 fi; # Check whether --enable-targets or --disable-targets was given.
10444 if test "${enable_targets+set}" = set; then
10445 enableval="$enable_targets"
10446 case "${enableval}" in
10447 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10448 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10449 { (exit 1); exit 1; }; }
10451 no) enable_targets= ;;
10452 *) enable_targets=$enableval ;;
10454 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10455 if test "${enable_commonbfdlib+set}" = set; then
10456 enableval="$enable_commonbfdlib"
10457 case "${enableval}" in
10458 yes) commonbfdlib=true ;;
10459 no) commonbfdlib=false ;;
10460 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
10461 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10462 { (exit 1); exit 1; }; } ;;
10465 # Check whether --with-mmap or --without-mmap was given.
10466 if test "${with_mmap+set}" = set; then
10467 withval="$with_mmap"
10468 case "${withval}" in
10469 yes) want_mmap=true ;;
10470 no) want_mmap=false ;;
10471 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
10472 echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
10473 { (exit 1); exit 1; }; } ;;
10478 # Check whether --enable-secureplt or --disable-secureplt was given.
10479 if test "${enable_secureplt+set}" = set; then
10480 enableval="$enable_secureplt"
10481 case "${enableval}" in
10482 yes) use_secureplt=true ;;
10483 no) use_secureplt=false ;;
10484 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
10485 echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
10486 { (exit 1); exit 1; }; } ;;
10489 use_secureplt=false
10490 fi; if test $use_secureplt = true; then
10492 cat >>confdefs.h <<\_ACEOF
10493 #define USE_SECUREPLT 1
10500 # Check whether --with-pkgversion or --without-pkgversion was given.
10501 if test "${with_pkgversion+set}" = set; then
10502 withval="$with_pkgversion"
10504 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
10505 echo "$as_me: error: package version not specified" >&2;}
10506 { (exit 1); exit 1; }; } ;;
10508 *) PKGVERSION="($withval) " ;;
10511 PKGVERSION="(GNU Binutils) "
10518 # Check whether --with-bugurl or --without-bugurl was given.
10519 if test "${with_bugurl+set}" = set; then
10520 withval="$with_bugurl"
10522 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
10523 echo "$as_me: error: bug URL not specified" >&2;}
10524 { (exit 1); exit 1; }; } ;;
10527 *) BUGURL="$withval"
10531 BUGURL="http://www.sourceware.org/bugzilla/"
10540 REPORT_BUGS_TO="<$BUGURL>"
10541 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
10549 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10551 # Check whether --enable-werror or --disable-werror was given.
10552 if test "${enable_werror+set}" = set; then
10553 enableval="$enable_werror"
10554 case "${enableval}" in
10555 yes | y) ERROR_ON_WARNING="yes" ;;
10556 no | n) ERROR_ON_WARNING="no" ;;
10557 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10558 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10559 { (exit 1); exit 1; }; } ;;
10563 # Enable -Werror by default when using gcc
10564 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10565 ERROR_ON_WARNING=yes
10569 if test "${ERROR_ON_WARNING}" = yes ; then
10570 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10571 NO_WERROR="-Wno-error"
10574 if test "${GCC}" = yes ; then
10575 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10578 # Check whether --enable-build-warnings or --disable-build-warnings was given.
10579 if test "${enable_build_warnings+set}" = set; then
10580 enableval="$enable_build_warnings"
10581 case "${enableval}" in
10582 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10583 no) if test "${GCC}" = yes ; then
10586 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10587 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10588 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10589 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10590 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10594 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10595 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
10602 ac_config_headers="$ac_config_headers config.h:config.in"
10605 if test -z "$target" ; then
10606 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
10607 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
10608 { (exit 1); exit 1; }; }
10611 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10612 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10613 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10614 if test "${enable_maintainer_mode+set}" = set; then
10615 enableval="$enable_maintainer_mode"
10616 USE_MAINTAINER_MODE=$enableval
10618 USE_MAINTAINER_MODE=no
10620 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10621 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
10624 if test $USE_MAINTAINER_MODE = yes; then
10625 MAINTAINER_MODE_TRUE=
10626 MAINTAINER_MODE_FALSE='#'
10628 MAINTAINER_MODE_TRUE='#'
10629 MAINTAINER_MODE_FALSE=
10632 MAINT=$MAINTAINER_MODE_TRUE
10638 GENINSRC_NEVER_TRUE=
10639 GENINSRC_NEVER_FALSE='#'
10641 GENINSRC_NEVER_TRUE='#'
10642 GENINSRC_NEVER_FALSE=
10645 case ${build_alias} in
10646 "") build_noncanonical=${build} ;;
10647 *) build_noncanonical=${build_alias} ;;
10650 case ${host_alias} in
10651 "") host_noncanonical=${build_noncanonical} ;;
10652 *) host_noncanonical=${host_alias} ;;
10655 case ${target_alias} in
10656 "") target_noncanonical=${host_noncanonical} ;;
10657 *) target_noncanonical=${target_alias} ;;
10660 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
10661 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
10662 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
10663 if test "${enable_install_libbfd+set}" = set; then
10664 enableval="$enable_install_libbfd"
10665 install_libbfd_p=$enableval
10667 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
10668 install_libbfd_p=yes
10670 install_libbfd_p=no
10673 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
10674 echo "${ECHO_T}$install_libbfd_p" >&6
10677 if test $install_libbfd_p = yes; then
10678 INSTALL_LIBBFD_TRUE=
10679 INSTALL_LIBBFD_FALSE='#'
10681 INSTALL_LIBBFD_TRUE='#'
10682 INSTALL_LIBBFD_FALSE=
10685 # Need _noncanonical variables for this.
10690 # libbfd.a is a host library containing target dependent code
10691 bfdlibdir='$(libdir)'
10692 bfdincludedir='$(includedir)'
10693 if test "${host}" != "${target}"; then
10694 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
10695 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
10705 bfd_default_target_size=32
10709 ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi"
10710 # If we haven't got the data from the intl directory,
10711 # assume NLS is disabled.
10720 if test -f ../intl/config.intl; then
10721 . ../intl/config.intl
10723 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10724 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10725 if test x"$USE_NLS" != xyes; then
10726 echo "$as_me:$LINENO: result: no" >&5
10727 echo "${ECHO_T}no" >&6
10729 echo "$as_me:$LINENO: result: yes" >&5
10730 echo "${ECHO_T}yes" >&6
10732 cat >>confdefs.h <<\_ACEOF
10733 #define ENABLE_NLS 1
10737 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10738 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10739 # Look for .po and .gmo files in the source directory.
10742 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10743 # If there aren't any .gmo files the shell will give us the
10744 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10746 case "$cat" in *\**)
10749 # The quadruple backslash is collapsed to a double backslash
10750 # by the backticks, then collapsed again by the double quotes,
10751 # leaving us with one backslash in the sed expression (right
10752 # before the dot that mustn't act as a wildcard).
10753 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10754 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10755 # The user is allowed to set LINGUAS to a list of languages to
10756 # install catalogs for. If it's empty that means "all of them."
10757 if test "x$LINGUAS" = x; then
10758 CATALOGS="$CATALOGS $cat"
10759 XLINGUAS="$XLINGUAS $lang"
10761 case "$LINGUAS" in *$lang*)
10762 CATALOGS="$CATALOGS $cat"
10763 XLINGUAS="$XLINGUAS $lang"
10768 LINGUAS="$XLINGUAS"
10769 echo "$as_me:$LINENO: result: $LINGUAS" >&5
10770 echo "${ECHO_T}$LINGUAS" >&6
10784 if test -n "$ac_aux_dir"; then
10785 case "$ac_aux_dir" in
10786 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10787 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10790 if test -z "$MKINSTALLDIRS"; then
10791 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10796 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10797 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10798 # Check whether --enable-nls or --disable-nls was given.
10799 if test "${enable_nls+set}" = set; then
10800 enableval="$enable_nls"
10805 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10806 echo "${ECHO_T}$USE_NLS" >&6
10813 # Prepare PATH_SEPARATOR.
10814 # The user is always right.
10815 if test "${PATH_SEPARATOR+set}" != set; then
10816 echo "#! /bin/sh" >conf$$.sh
10817 echo "exit 0" >>conf$$.sh
10819 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10827 # Find out how to test for executable files. Don't use a zero-byte file,
10828 # as systems may use methods other than mode bits to determine executability.
10829 cat >conf$$.file <<_ASEOF
10833 chmod +x conf$$.file
10834 if test -x conf$$.file >/dev/null 2>&1; then
10835 ac_executable_p="test -x"
10837 ac_executable_p="test -f"
10841 # Extract the first word of "msgfmt", so it can be a program name with args.
10842 set dummy msgfmt; ac_word=$2
10843 echo "$as_me:$LINENO: checking for $ac_word" >&5
10844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10845 if test "${ac_cv_path_MSGFMT+set}" = set; then
10846 echo $ECHO_N "(cached) $ECHO_C" >&6
10850 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10853 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10854 for ac_dir in $PATH; do
10856 test -z "$ac_dir" && ac_dir=.
10857 for ac_exec_ext in '' $ac_executable_extensions; do
10858 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10859 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10860 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10861 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10868 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10872 MSGFMT="$ac_cv_path_MSGFMT"
10873 if test "$MSGFMT" != ":"; then
10874 echo "$as_me:$LINENO: result: $MSGFMT" >&5
10875 echo "${ECHO_T}$MSGFMT" >&6
10877 echo "$as_me:$LINENO: result: no" >&5
10878 echo "${ECHO_T}no" >&6
10881 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10882 set dummy gmsgfmt; ac_word=$2
10883 echo "$as_me:$LINENO: checking for $ac_word" >&5
10884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10885 if test "${ac_cv_path_GMSGFMT+set}" = set; then
10886 echo $ECHO_N "(cached) $ECHO_C" >&6
10890 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10894 for as_dir in $PATH
10897 test -z "$as_dir" && as_dir=.
10898 for ac_exec_ext in '' $ac_executable_extensions; do
10899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10900 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10907 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10911 GMSGFMT=$ac_cv_path_GMSGFMT
10913 if test -n "$GMSGFMT"; then
10914 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10915 echo "${ECHO_T}$GMSGFMT" >&6
10917 echo "$as_me:$LINENO: result: no" >&5
10918 echo "${ECHO_T}no" >&6
10923 # Prepare PATH_SEPARATOR.
10924 # The user is always right.
10925 if test "${PATH_SEPARATOR+set}" != set; then
10926 echo "#! /bin/sh" >conf$$.sh
10927 echo "exit 0" >>conf$$.sh
10929 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10937 # Find out how to test for executable files. Don't use a zero-byte file,
10938 # as systems may use methods other than mode bits to determine executability.
10939 cat >conf$$.file <<_ASEOF
10943 chmod +x conf$$.file
10944 if test -x conf$$.file >/dev/null 2>&1; then
10945 ac_executable_p="test -x"
10947 ac_executable_p="test -f"
10951 # Extract the first word of "xgettext", so it can be a program name with args.
10952 set dummy xgettext; ac_word=$2
10953 echo "$as_me:$LINENO: checking for $ac_word" >&5
10954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10955 if test "${ac_cv_path_XGETTEXT+set}" = set; then
10956 echo $ECHO_N "(cached) $ECHO_C" >&6
10958 case "$XGETTEXT" in
10960 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10963 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10964 for ac_dir in $PATH; do
10966 test -z "$ac_dir" && ac_dir=.
10967 for ac_exec_ext in '' $ac_executable_extensions; do
10968 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10969 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10970 (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
10971 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10978 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10982 XGETTEXT="$ac_cv_path_XGETTEXT"
10983 if test "$XGETTEXT" != ":"; then
10984 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10985 echo "${ECHO_T}$XGETTEXT" >&6
10987 echo "$as_me:$LINENO: result: no" >&5
10988 echo "${ECHO_T}no" >&6
10994 # Prepare PATH_SEPARATOR.
10995 # The user is always right.
10996 if test "${PATH_SEPARATOR+set}" != set; then
10997 echo "#! /bin/sh" >conf$$.sh
10998 echo "exit 0" >>conf$$.sh
11000 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11008 # Find out how to test for executable files. Don't use a zero-byte file,
11009 # as systems may use methods other than mode bits to determine executability.
11010 cat >conf$$.file <<_ASEOF
11014 chmod +x conf$$.file
11015 if test -x conf$$.file >/dev/null 2>&1; then
11016 ac_executable_p="test -x"
11018 ac_executable_p="test -f"
11022 # Extract the first word of "msgmerge", so it can be a program name with args.
11023 set dummy msgmerge; ac_word=$2
11024 echo "$as_me:$LINENO: checking for $ac_word" >&5
11025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11026 if test "${ac_cv_path_MSGMERGE+set}" = set; then
11027 echo $ECHO_N "(cached) $ECHO_C" >&6
11029 case "$MSGMERGE" in
11031 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11034 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11035 for ac_dir in $PATH; do
11037 test -z "$ac_dir" && ac_dir=.
11038 for ac_exec_ext in '' $ac_executable_extensions; do
11039 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11040 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11041 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11048 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11052 MSGMERGE="$ac_cv_path_MSGMERGE"
11053 if test "$MSGMERGE" != ":"; then
11054 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11055 echo "${ECHO_T}$MSGMERGE" >&6
11057 echo "$as_me:$LINENO: result: no" >&5
11058 echo "${ECHO_T}no" >&6
11062 if test "$GMSGFMT" != ":"; then
11063 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11064 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11067 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11068 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11069 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11074 if test "$XGETTEXT" != ":"; then
11075 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11076 (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
11079 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11080 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11086 ac_config_commands="$ac_config_commands default-1"
11090 # Permit host specific settings.
11091 . ${srcdir}/configure.host
11094 # Find a good install program. We prefer a C program (faster),
11095 # so one script is as good as another. But avoid the broken or
11096 # incompatible versions:
11097 # SysV /etc/install, /usr/sbin/install
11098 # SunOS /usr/etc/install
11099 # IRIX /sbin/install
11101 # AmigaOS /C/install, which installs bootblocks on floppy discs
11102 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11103 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11104 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11105 # OS/2's system install, which has a completely different semantic
11106 # ./install, which can be erroneously created by make from ./install.sh.
11107 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11108 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11109 if test -z "$INSTALL"; then
11110 if test "${ac_cv_path_install+set}" = set; then
11111 echo $ECHO_N "(cached) $ECHO_C" >&6
11113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11114 for as_dir in $PATH
11117 test -z "$as_dir" && as_dir=.
11118 # Account for people who put trailing slashes in PATH elements.
11120 ./ | .// | /cC/* | \
11121 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11122 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11125 # OSF1 and SCO ODT 3.0 have their own names for install.
11126 # Don't use installbsd from OSF since it installs stuff as root
11128 for ac_prog in ginstall scoinst install; do
11129 for ac_exec_ext in '' $ac_executable_extensions; do
11130 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11131 if test $ac_prog = install &&
11132 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11133 # AIX install. It has an incompatible calling convention.
11135 elif test $ac_prog = install &&
11136 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11137 # program-specific install script used by HP pwplus--don't use.
11140 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11152 if test "${ac_cv_path_install+set}" = set; then
11153 INSTALL=$ac_cv_path_install
11155 # As a last resort, use the slow shell script. We don't cache a
11156 # path for INSTALL within a source directory, because that will
11157 # break other packages using the cache if that directory is
11158 # removed, or if the path is relative.
11159 INSTALL=$ac_install_sh
11162 echo "$as_me:$LINENO: result: $INSTALL" >&5
11163 echo "${ECHO_T}$INSTALL" >&6
11165 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11166 # It thinks the first close brace ends the variable substitution.
11167 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11169 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11171 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11174 BFD_HOST_64BIT_LONG=0
11175 BFD_HOST_LONG_LONG=0
11176 BFD_HOST_64_BIT_DEFINED=0
11180 echo "$as_me:$LINENO: checking for long long" >&5
11181 echo $ECHO_N "checking for long long... $ECHO_C" >&6
11182 if test "${bfd_cv_has_long_long+set}" = set; then
11183 echo $ECHO_N "(cached) $ECHO_C" >&6
11185 cat >conftest.$ac_ext <<_ACEOF
11188 cat confdefs.h >>conftest.$ac_ext
11189 cat >>conftest.$ac_ext <<_ACEOF
11190 /* end confdefs.h. */
11195 unsigned long long ll = 18446744073709551615ULL;
11200 rm -f conftest.$ac_objext
11201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11202 (eval $ac_compile) 2>conftest.er1
11204 grep -v '^ *+' conftest.er1 >conftest.err
11206 cat conftest.err >&5
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); } &&
11209 { ac_try='test -z "$ac_c_werror_flag"
11210 || test ! -s conftest.err'
11211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11212 (eval $ac_try) 2>&5
11214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); }; } &&
11216 { ac_try='test -s conftest.$ac_objext'
11217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11218 (eval $ac_try) 2>&5
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); }; }; then
11222 bfd_cv_has_long_long=yes
11224 echo "$as_me: failed program was:" >&5
11225 sed 's/^/| /' conftest.$ac_ext >&5
11227 bfd_cv_has_long_long=no
11229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11232 echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
11233 echo "${ECHO_T}$bfd_cv_has_long_long" >&6
11234 if test $bfd_cv_has_long_long = yes; then
11235 BFD_HOST_LONG_LONG=1
11236 echo "$as_me:$LINENO: checking for long long" >&5
11237 echo $ECHO_N "checking for long long... $ECHO_C" >&6
11238 if test "${ac_cv_type_long_long+set}" = set; then
11239 echo $ECHO_N "(cached) $ECHO_C" >&6
11241 cat >conftest.$ac_ext <<_ACEOF
11244 cat confdefs.h >>conftest.$ac_ext
11245 cat >>conftest.$ac_ext <<_ACEOF
11246 /* end confdefs.h. */
11247 $ac_includes_default
11251 if ((long long *) 0)
11253 if (sizeof (long long))
11259 rm -f conftest.$ac_objext
11260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11261 (eval $ac_compile) 2>conftest.er1
11263 grep -v '^ *+' conftest.er1 >conftest.err
11265 cat conftest.err >&5
11266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); } &&
11268 { ac_try='test -z "$ac_c_werror_flag"
11269 || test ! -s conftest.err'
11270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11271 (eval $ac_try) 2>&5
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); }; } &&
11275 { ac_try='test -s conftest.$ac_objext'
11276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11277 (eval $ac_try) 2>&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); }; }; then
11281 ac_cv_type_long_long=yes
11283 echo "$as_me: failed program was:" >&5
11284 sed 's/^/| /' conftest.$ac_ext >&5
11286 ac_cv_type_long_long=no
11288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11290 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11291 echo "${ECHO_T}$ac_cv_type_long_long" >&6
11293 echo "$as_me:$LINENO: checking size of long long" >&5
11294 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
11295 if test "${ac_cv_sizeof_long_long+set}" = set; then
11296 echo $ECHO_N "(cached) $ECHO_C" >&6
11298 if test "$ac_cv_type_long_long" = yes; then
11299 # The cast to unsigned long works around a bug in the HP C Compiler
11300 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11301 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11302 # This bug is HP SR number 8606223364.
11303 if test "$cross_compiling" = yes; then
11304 # Depending upon the size, compute the lo and hi bounds.
11305 cat >conftest.$ac_ext <<_ACEOF
11308 cat confdefs.h >>conftest.$ac_ext
11309 cat >>conftest.$ac_ext <<_ACEOF
11310 /* end confdefs.h. */
11311 $ac_includes_default
11315 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
11322 rm -f conftest.$ac_objext
11323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11324 (eval $ac_compile) 2>conftest.er1
11326 grep -v '^ *+' conftest.er1 >conftest.err
11328 cat conftest.err >&5
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); } &&
11331 { ac_try='test -z "$ac_c_werror_flag"
11332 || test ! -s conftest.err'
11333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11334 (eval $ac_try) 2>&5
11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); }; } &&
11338 { ac_try='test -s conftest.$ac_objext'
11339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11340 (eval $ac_try) 2>&5
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); }; }; then
11346 cat >conftest.$ac_ext <<_ACEOF
11349 cat confdefs.h >>conftest.$ac_ext
11350 cat >>conftest.$ac_ext <<_ACEOF
11351 /* end confdefs.h. */
11352 $ac_includes_default
11356 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11363 rm -f conftest.$ac_objext
11364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11365 (eval $ac_compile) 2>conftest.er1
11367 grep -v '^ *+' conftest.er1 >conftest.err
11369 cat conftest.err >&5
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); } &&
11372 { ac_try='test -z "$ac_c_werror_flag"
11373 || test ! -s conftest.err'
11374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11375 (eval $ac_try) 2>&5
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); }; } &&
11379 { ac_try='test -s conftest.$ac_objext'
11380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11381 (eval $ac_try) 2>&5
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); }; }; then
11385 ac_hi=$ac_mid; break
11387 echo "$as_me: failed program was:" >&5
11388 sed 's/^/| /' conftest.$ac_ext >&5
11390 ac_lo=`expr $ac_mid + 1`
11391 if test $ac_lo -le $ac_mid; then
11395 ac_mid=`expr 2 '*' $ac_mid + 1`
11397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11400 echo "$as_me: failed program was:" >&5
11401 sed 's/^/| /' conftest.$ac_ext >&5
11403 cat >conftest.$ac_ext <<_ACEOF
11406 cat confdefs.h >>conftest.$ac_ext
11407 cat >>conftest.$ac_ext <<_ACEOF
11408 /* end confdefs.h. */
11409 $ac_includes_default
11413 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
11420 rm -f conftest.$ac_objext
11421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11422 (eval $ac_compile) 2>conftest.er1
11424 grep -v '^ *+' conftest.er1 >conftest.err
11426 cat conftest.err >&5
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); } &&
11429 { ac_try='test -z "$ac_c_werror_flag"
11430 || test ! -s conftest.err'
11431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11432 (eval $ac_try) 2>&5
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); }; } &&
11436 { ac_try='test -s conftest.$ac_objext'
11437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11438 (eval $ac_try) 2>&5
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); }; }; then
11444 cat >conftest.$ac_ext <<_ACEOF
11447 cat confdefs.h >>conftest.$ac_ext
11448 cat >>conftest.$ac_ext <<_ACEOF
11449 /* end confdefs.h. */
11450 $ac_includes_default
11454 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
11461 rm -f conftest.$ac_objext
11462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11463 (eval $ac_compile) 2>conftest.er1
11465 grep -v '^ *+' conftest.er1 >conftest.err
11467 cat conftest.err >&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); } &&
11470 { ac_try='test -z "$ac_c_werror_flag"
11471 || test ! -s conftest.err'
11472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11473 (eval $ac_try) 2>&5
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); }; } &&
11477 { ac_try='test -s conftest.$ac_objext'
11478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11479 (eval $ac_try) 2>&5
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); }; }; then
11483 ac_lo=$ac_mid; break
11485 echo "$as_me: failed program was:" >&5
11486 sed 's/^/| /' conftest.$ac_ext >&5
11488 ac_hi=`expr '(' $ac_mid ')' - 1`
11489 if test $ac_mid -le $ac_hi; then
11493 ac_mid=`expr 2 '*' $ac_mid`
11495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11498 echo "$as_me: failed program was:" >&5
11499 sed 's/^/| /' conftest.$ac_ext >&5
11503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11506 # Binary search between lo and hi bounds.
11507 while test "x$ac_lo" != "x$ac_hi"; do
11508 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11509 cat >conftest.$ac_ext <<_ACEOF
11512 cat confdefs.h >>conftest.$ac_ext
11513 cat >>conftest.$ac_ext <<_ACEOF
11514 /* end confdefs.h. */
11515 $ac_includes_default
11519 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11526 rm -f conftest.$ac_objext
11527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11528 (eval $ac_compile) 2>conftest.er1
11530 grep -v '^ *+' conftest.er1 >conftest.err
11532 cat conftest.err >&5
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); } &&
11535 { ac_try='test -z "$ac_c_werror_flag"
11536 || test ! -s conftest.err'
11537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11538 (eval $ac_try) 2>&5
11540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); }; } &&
11542 { ac_try='test -s conftest.$ac_objext'
11543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11544 (eval $ac_try) 2>&5
11546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 (exit $ac_status); }; }; then
11550 echo "$as_me: failed program was:" >&5
11551 sed 's/^/| /' conftest.$ac_ext >&5
11553 ac_lo=`expr '(' $ac_mid ')' + 1`
11555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11558 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11559 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
11560 See \`config.log' for more details." >&5
11561 echo "$as_me: error: cannot compute sizeof (long long), 77
11562 See \`config.log' for more details." >&2;}
11563 { (exit 1); exit 1; }; } ;;
11566 if test "$cross_compiling" = yes; then
11567 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11568 See \`config.log' for more details." >&5
11569 echo "$as_me: error: cannot run test program while cross compiling
11570 See \`config.log' for more details." >&2;}
11571 { (exit 1); exit 1; }; }
11573 cat >conftest.$ac_ext <<_ACEOF
11576 cat confdefs.h >>conftest.$ac_ext
11577 cat >>conftest.$ac_ext <<_ACEOF
11578 /* end confdefs.h. */
11579 $ac_includes_default
11580 long longval () { return (long) (sizeof (long long)); }
11581 unsigned long ulongval () { return (long) (sizeof (long long)); }
11583 #include <stdlib.h>
11588 FILE *f = fopen ("conftest.val", "w");
11591 if (((long) (sizeof (long long))) < 0)
11593 long i = longval ();
11594 if (i != ((long) (sizeof (long long))))
11596 fprintf (f, "%ld\n", i);
11600 unsigned long i = ulongval ();
11601 if (i != ((long) (sizeof (long long))))
11603 fprintf (f, "%lu\n", i);
11605 exit (ferror (f) || fclose (f) != 0);
11611 rm -f conftest$ac_exeext
11612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11613 (eval $ac_link) 2>&5
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11618 (eval $ac_try) 2>&5
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); }; }; then
11622 ac_cv_sizeof_long_long=`cat conftest.val`
11624 echo "$as_me: program exited with status $ac_status" >&5
11625 echo "$as_me: failed program was:" >&5
11626 sed 's/^/| /' conftest.$ac_ext >&5
11628 ( exit $ac_status )
11629 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
11630 See \`config.log' for more details." >&5
11631 echo "$as_me: error: cannot compute sizeof (long long), 77
11632 See \`config.log' for more details." >&2;}
11633 { (exit 1); exit 1; }; }
11635 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11640 ac_cv_sizeof_long_long=0
11643 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11644 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
11645 cat >>confdefs.h <<_ACEOF
11646 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11652 echo "$as_me:$LINENO: checking for long" >&5
11653 echo $ECHO_N "checking for long... $ECHO_C" >&6
11654 if test "${ac_cv_type_long+set}" = set; then
11655 echo $ECHO_N "(cached) $ECHO_C" >&6
11657 cat >conftest.$ac_ext <<_ACEOF
11660 cat confdefs.h >>conftest.$ac_ext
11661 cat >>conftest.$ac_ext <<_ACEOF
11662 /* end confdefs.h. */
11663 $ac_includes_default
11675 rm -f conftest.$ac_objext
11676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11677 (eval $ac_compile) 2>conftest.er1
11679 grep -v '^ *+' conftest.er1 >conftest.err
11681 cat conftest.err >&5
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); } &&
11684 { ac_try='test -z "$ac_c_werror_flag"
11685 || test ! -s conftest.err'
11686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11687 (eval $ac_try) 2>&5
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); }; } &&
11691 { ac_try='test -s conftest.$ac_objext'
11692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11693 (eval $ac_try) 2>&5
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); }; }; then
11697 ac_cv_type_long=yes
11699 echo "$as_me: failed program was:" >&5
11700 sed 's/^/| /' conftest.$ac_ext >&5
11704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11706 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
11707 echo "${ECHO_T}$ac_cv_type_long" >&6
11709 echo "$as_me:$LINENO: checking size of long" >&5
11710 echo $ECHO_N "checking size of long... $ECHO_C" >&6
11711 if test "${ac_cv_sizeof_long+set}" = set; then
11712 echo $ECHO_N "(cached) $ECHO_C" >&6
11714 if test "$ac_cv_type_long" = yes; then
11715 # The cast to unsigned long works around a bug in the HP C Compiler
11716 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11717 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11718 # This bug is HP SR number 8606223364.
11719 if test "$cross_compiling" = yes; then
11720 # Depending upon the size, compute the lo and hi bounds.
11721 cat >conftest.$ac_ext <<_ACEOF
11724 cat confdefs.h >>conftest.$ac_ext
11725 cat >>conftest.$ac_ext <<_ACEOF
11726 /* end confdefs.h. */
11727 $ac_includes_default
11731 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
11738 rm -f conftest.$ac_objext
11739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11740 (eval $ac_compile) 2>conftest.er1
11742 grep -v '^ *+' conftest.er1 >conftest.err
11744 cat conftest.err >&5
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); } &&
11747 { ac_try='test -z "$ac_c_werror_flag"
11748 || test ! -s conftest.err'
11749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11750 (eval $ac_try) 2>&5
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); }; } &&
11754 { ac_try='test -s conftest.$ac_objext'
11755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11756 (eval $ac_try) 2>&5
11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); }; }; then
11762 cat >conftest.$ac_ext <<_ACEOF
11765 cat confdefs.h >>conftest.$ac_ext
11766 cat >>conftest.$ac_ext <<_ACEOF
11767 /* end confdefs.h. */
11768 $ac_includes_default
11772 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
11779 rm -f conftest.$ac_objext
11780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11781 (eval $ac_compile) 2>conftest.er1
11783 grep -v '^ *+' conftest.er1 >conftest.err
11785 cat conftest.err >&5
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); } &&
11788 { ac_try='test -z "$ac_c_werror_flag"
11789 || test ! -s conftest.err'
11790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11791 (eval $ac_try) 2>&5
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); }; } &&
11795 { ac_try='test -s conftest.$ac_objext'
11796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11797 (eval $ac_try) 2>&5
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); }; }; then
11801 ac_hi=$ac_mid; break
11803 echo "$as_me: failed program was:" >&5
11804 sed 's/^/| /' conftest.$ac_ext >&5
11806 ac_lo=`expr $ac_mid + 1`
11807 if test $ac_lo -le $ac_mid; then
11811 ac_mid=`expr 2 '*' $ac_mid + 1`
11813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11816 echo "$as_me: failed program was:" >&5
11817 sed 's/^/| /' conftest.$ac_ext >&5
11819 cat >conftest.$ac_ext <<_ACEOF
11822 cat confdefs.h >>conftest.$ac_ext
11823 cat >>conftest.$ac_ext <<_ACEOF
11824 /* end confdefs.h. */
11825 $ac_includes_default
11829 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
11836 rm -f conftest.$ac_objext
11837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11838 (eval $ac_compile) 2>conftest.er1
11840 grep -v '^ *+' conftest.er1 >conftest.err
11842 cat conftest.err >&5
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); } &&
11845 { ac_try='test -z "$ac_c_werror_flag"
11846 || test ! -s conftest.err'
11847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11848 (eval $ac_try) 2>&5
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); }; } &&
11852 { ac_try='test -s conftest.$ac_objext'
11853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11854 (eval $ac_try) 2>&5
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); }; }; then
11860 cat >conftest.$ac_ext <<_ACEOF
11863 cat confdefs.h >>conftest.$ac_ext
11864 cat >>conftest.$ac_ext <<_ACEOF
11865 /* end confdefs.h. */
11866 $ac_includes_default
11870 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
11877 rm -f conftest.$ac_objext
11878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11879 (eval $ac_compile) 2>conftest.er1
11881 grep -v '^ *+' conftest.er1 >conftest.err
11883 cat conftest.err >&5
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); } &&
11886 { ac_try='test -z "$ac_c_werror_flag"
11887 || test ! -s conftest.err'
11888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11889 (eval $ac_try) 2>&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); }; } &&
11893 { ac_try='test -s conftest.$ac_objext'
11894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895 (eval $ac_try) 2>&5
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; }; then
11899 ac_lo=$ac_mid; break
11901 echo "$as_me: failed program was:" >&5
11902 sed 's/^/| /' conftest.$ac_ext >&5
11904 ac_hi=`expr '(' $ac_mid ')' - 1`
11905 if test $ac_mid -le $ac_hi; then
11909 ac_mid=`expr 2 '*' $ac_mid`
11911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11914 echo "$as_me: failed program was:" >&5
11915 sed 's/^/| /' conftest.$ac_ext >&5
11919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11922 # Binary search between lo and hi bounds.
11923 while test "x$ac_lo" != "x$ac_hi"; do
11924 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11925 cat >conftest.$ac_ext <<_ACEOF
11928 cat confdefs.h >>conftest.$ac_ext
11929 cat >>conftest.$ac_ext <<_ACEOF
11930 /* end confdefs.h. */
11931 $ac_includes_default
11935 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
11942 rm -f conftest.$ac_objext
11943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11944 (eval $ac_compile) 2>conftest.er1
11946 grep -v '^ *+' conftest.er1 >conftest.err
11948 cat conftest.err >&5
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); } &&
11951 { ac_try='test -z "$ac_c_werror_flag"
11952 || test ! -s conftest.err'
11953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11954 (eval $ac_try) 2>&5
11956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957 (exit $ac_status); }; } &&
11958 { ac_try='test -s conftest.$ac_objext'
11959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11960 (eval $ac_try) 2>&5
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); }; }; then
11966 echo "$as_me: failed program was:" >&5
11967 sed 's/^/| /' conftest.$ac_ext >&5
11969 ac_lo=`expr '(' $ac_mid ')' + 1`
11971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11974 ?*) ac_cv_sizeof_long=$ac_lo;;
11975 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
11976 See \`config.log' for more details." >&5
11977 echo "$as_me: error: cannot compute sizeof (long), 77
11978 See \`config.log' for more details." >&2;}
11979 { (exit 1); exit 1; }; } ;;
11982 if test "$cross_compiling" = yes; then
11983 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11984 See \`config.log' for more details." >&5
11985 echo "$as_me: error: cannot run test program while cross compiling
11986 See \`config.log' for more details." >&2;}
11987 { (exit 1); exit 1; }; }
11989 cat >conftest.$ac_ext <<_ACEOF
11992 cat confdefs.h >>conftest.$ac_ext
11993 cat >>conftest.$ac_ext <<_ACEOF
11994 /* end confdefs.h. */
11995 $ac_includes_default
11996 long longval () { return (long) (sizeof (long)); }
11997 unsigned long ulongval () { return (long) (sizeof (long)); }
11999 #include <stdlib.h>
12004 FILE *f = fopen ("conftest.val", "w");
12007 if (((long) (sizeof (long))) < 0)
12009 long i = longval ();
12010 if (i != ((long) (sizeof (long))))
12012 fprintf (f, "%ld\n", i);
12016 unsigned long i = ulongval ();
12017 if (i != ((long) (sizeof (long))))
12019 fprintf (f, "%lu\n", i);
12021 exit (ferror (f) || fclose (f) != 0);
12027 rm -f conftest$ac_exeext
12028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12029 (eval $ac_link) 2>&5
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12034 (eval $ac_try) 2>&5
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); }; }; then
12038 ac_cv_sizeof_long=`cat conftest.val`
12040 echo "$as_me: program exited with status $ac_status" >&5
12041 echo "$as_me: failed program was:" >&5
12042 sed 's/^/| /' conftest.$ac_ext >&5
12044 ( exit $ac_status )
12045 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12046 See \`config.log' for more details." >&5
12047 echo "$as_me: error: cannot compute sizeof (long), 77
12048 See \`config.log' for more details." >&2;}
12049 { (exit 1); exit 1; }; }
12051 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12056 ac_cv_sizeof_long=0
12059 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12060 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12061 cat >>confdefs.h <<_ACEOF
12062 #define SIZEOF_LONG $ac_cv_sizeof_long
12066 if test "x${ac_cv_sizeof_long}" = "x8"; then
12068 BFD_HOST_64BIT_LONG=1
12069 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
12070 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
12071 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
12072 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
12073 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
12076 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
12077 BFD_HOST_64_BIT_DEFINED=1
12078 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
12079 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
12088 # Put a plausible default for CC_FOR_BUILD in Makefile.
12089 if test -z "$CC_FOR_BUILD"; then
12090 if test "x$cross_compiling" = "xno"; then
12091 CC_FOR_BUILD='$(CC)'
12097 # Also set EXEEXT_FOR_BUILD.
12098 if test "x$cross_compiling" = "xno"; then
12099 EXEEXT_FOR_BUILD='$(EXEEXT)'
12101 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
12102 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
12103 if test "${bfd_cv_build_exeext+set}" = set; then
12104 echo $ECHO_N "(cached) $ECHO_C" >&6
12107 echo 'int main () { return 0; }' > conftest.c
12108 bfd_cv_build_exeext=
12109 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12110 for file in conftest.*; do
12112 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12113 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12117 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
12119 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
12120 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
12121 EXEEXT_FOR_BUILD=""
12122 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
12132 for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
12134 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12136 echo "$as_me:$LINENO: checking for $ac_header" >&5
12137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12139 echo $ECHO_N "(cached) $ECHO_C" >&6
12141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12142 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12144 # Is the header compilable?
12145 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12146 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12147 cat >conftest.$ac_ext <<_ACEOF
12150 cat confdefs.h >>conftest.$ac_ext
12151 cat >>conftest.$ac_ext <<_ACEOF
12152 /* end confdefs.h. */
12153 $ac_includes_default
12154 #include <$ac_header>
12156 rm -f conftest.$ac_objext
12157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12158 (eval $ac_compile) 2>conftest.er1
12160 grep -v '^ *+' conftest.er1 >conftest.err
12162 cat conftest.err >&5
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); } &&
12165 { ac_try='test -z "$ac_c_werror_flag"
12166 || test ! -s conftest.err'
12167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12168 (eval $ac_try) 2>&5
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); }; } &&
12172 { ac_try='test -s conftest.$ac_objext'
12173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12174 (eval $ac_try) 2>&5
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); }; }; then
12178 ac_header_compiler=yes
12180 echo "$as_me: failed program was:" >&5
12181 sed 's/^/| /' conftest.$ac_ext >&5
12183 ac_header_compiler=no
12185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12186 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12187 echo "${ECHO_T}$ac_header_compiler" >&6
12189 # Is the header present?
12190 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12191 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12192 cat >conftest.$ac_ext <<_ACEOF
12195 cat confdefs.h >>conftest.$ac_ext
12196 cat >>conftest.$ac_ext <<_ACEOF
12197 /* end confdefs.h. */
12198 #include <$ac_header>
12200 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12201 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12203 grep -v '^ *+' conftest.er1 >conftest.err
12205 cat conftest.err >&5
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); } >/dev/null; then
12208 if test -s conftest.err; then
12209 ac_cpp_err=$ac_c_preproc_warn_flag
12210 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12217 if test -z "$ac_cpp_err"; then
12218 ac_header_preproc=yes
12220 echo "$as_me: failed program was:" >&5
12221 sed 's/^/| /' conftest.$ac_ext >&5
12223 ac_header_preproc=no
12225 rm -f conftest.err conftest.$ac_ext
12226 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12227 echo "${ECHO_T}$ac_header_preproc" >&6
12229 # So? What about this header?
12230 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12232 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12233 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12235 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12236 ac_header_preproc=yes
12239 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12240 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12241 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12242 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12243 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12244 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12245 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12246 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12248 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12249 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12250 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12253 ## ------------------------------------------ ##
12254 ## Report this to the AC_PACKAGE_NAME lists. ##
12255 ## ------------------------------------------ ##
12258 sed "s/^/$as_me: WARNING: /" >&2
12261 echo "$as_me:$LINENO: checking for $ac_header" >&5
12262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12264 echo $ECHO_N "(cached) $ECHO_C" >&6
12266 eval "$as_ac_Header=\$ac_header_preproc"
12268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12269 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12273 cat >>confdefs.h <<_ACEOF
12274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12284 for ac_header in fcntl.h sys/file.h sys/time.h
12286 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12288 echo "$as_me:$LINENO: checking for $ac_header" >&5
12289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12291 echo $ECHO_N "(cached) $ECHO_C" >&6
12293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12294 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12296 # Is the header compilable?
12297 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12298 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12299 cat >conftest.$ac_ext <<_ACEOF
12302 cat confdefs.h >>conftest.$ac_ext
12303 cat >>conftest.$ac_ext <<_ACEOF
12304 /* end confdefs.h. */
12305 $ac_includes_default
12306 #include <$ac_header>
12308 rm -f conftest.$ac_objext
12309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12310 (eval $ac_compile) 2>conftest.er1
12312 grep -v '^ *+' conftest.er1 >conftest.err
12314 cat conftest.err >&5
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); } &&
12317 { ac_try='test -z "$ac_c_werror_flag"
12318 || test ! -s conftest.err'
12319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12320 (eval $ac_try) 2>&5
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); }; } &&
12324 { ac_try='test -s conftest.$ac_objext'
12325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12326 (eval $ac_try) 2>&5
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); }; }; then
12330 ac_header_compiler=yes
12332 echo "$as_me: failed program was:" >&5
12333 sed 's/^/| /' conftest.$ac_ext >&5
12335 ac_header_compiler=no
12337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12338 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12339 echo "${ECHO_T}$ac_header_compiler" >&6
12341 # Is the header present?
12342 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12343 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12344 cat >conftest.$ac_ext <<_ACEOF
12347 cat confdefs.h >>conftest.$ac_ext
12348 cat >>conftest.$ac_ext <<_ACEOF
12349 /* end confdefs.h. */
12350 #include <$ac_header>
12352 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12353 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12355 grep -v '^ *+' conftest.er1 >conftest.err
12357 cat conftest.err >&5
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); } >/dev/null; then
12360 if test -s conftest.err; then
12361 ac_cpp_err=$ac_c_preproc_warn_flag
12362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12369 if test -z "$ac_cpp_err"; then
12370 ac_header_preproc=yes
12372 echo "$as_me: failed program was:" >&5
12373 sed 's/^/| /' conftest.$ac_ext >&5
12375 ac_header_preproc=no
12377 rm -f conftest.err conftest.$ac_ext
12378 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12379 echo "${ECHO_T}$ac_header_preproc" >&6
12381 # So? What about this header?
12382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12384 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12385 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12387 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12388 ac_header_preproc=yes
12391 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12392 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12393 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12394 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12395 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12396 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12397 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12398 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12400 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12401 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12402 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12405 ## ------------------------------------------ ##
12406 ## Report this to the AC_PACKAGE_NAME lists. ##
12407 ## ------------------------------------------ ##
12410 sed "s/^/$as_me: WARNING: /" >&2
12413 echo "$as_me:$LINENO: checking for $ac_header" >&5
12414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12416 echo $ECHO_N "(cached) $ECHO_C" >&6
12418 eval "$as_ac_Header=\$ac_header_preproc"
12420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12425 cat >>confdefs.h <<_ACEOF
12426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12435 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
12437 acx_cv_header_stdint=stddef.h
12438 acx_cv_header_stdint_kind="(already complete)"
12439 for i in stdint.h $inttype_headers; do
12440 unset ac_cv_type_uintptr_t
12441 unset ac_cv_type_uintmax_t
12442 unset ac_cv_type_int_least32_t
12443 unset ac_cv_type_int_fast32_t
12444 unset ac_cv_type_uint64_t
12445 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
12446 echo "$as_me:$LINENO: checking for uintmax_t" >&5
12447 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
12448 if test "${ac_cv_type_uintmax_t+set}" = set; then
12449 echo $ECHO_N "(cached) $ECHO_C" >&6
12451 cat >conftest.$ac_ext <<_ACEOF
12454 cat confdefs.h >>conftest.$ac_ext
12455 cat >>conftest.$ac_ext <<_ACEOF
12456 /* end confdefs.h. */
12457 #include <sys/types.h>
12463 if ((uintmax_t *) 0)
12465 if (sizeof (uintmax_t))
12471 rm -f conftest.$ac_objext
12472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12473 (eval $ac_compile) 2>conftest.er1
12475 grep -v '^ *+' conftest.er1 >conftest.err
12477 cat conftest.err >&5
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); } &&
12480 { ac_try='test -z "$ac_c_werror_flag"
12481 || test ! -s conftest.err'
12482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12483 (eval $ac_try) 2>&5
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); }; } &&
12487 { ac_try='test -s conftest.$ac_objext'
12488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12489 (eval $ac_try) 2>&5
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); }; }; then
12493 ac_cv_type_uintmax_t=yes
12495 echo "$as_me: failed program was:" >&5
12496 sed 's/^/| /' conftest.$ac_ext >&5
12498 ac_cv_type_uintmax_t=no
12500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12502 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
12503 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
12504 if test $ac_cv_type_uintmax_t = yes; then
12505 acx_cv_header_stdint=$i
12510 echo "$as_me:$LINENO: checking for uintptr_t" >&5
12511 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
12512 if test "${ac_cv_type_uintptr_t+set}" = set; then
12513 echo $ECHO_N "(cached) $ECHO_C" >&6
12515 cat >conftest.$ac_ext <<_ACEOF
12518 cat confdefs.h >>conftest.$ac_ext
12519 cat >>conftest.$ac_ext <<_ACEOF
12520 /* end confdefs.h. */
12521 #include <sys/types.h>
12527 if ((uintptr_t *) 0)
12529 if (sizeof (uintptr_t))
12535 rm -f conftest.$ac_objext
12536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12537 (eval $ac_compile) 2>conftest.er1
12539 grep -v '^ *+' conftest.er1 >conftest.err
12541 cat conftest.err >&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } &&
12544 { ac_try='test -z "$ac_c_werror_flag"
12545 || test ! -s conftest.err'
12546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12547 (eval $ac_try) 2>&5
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); }; } &&
12551 { ac_try='test -s conftest.$ac_objext'
12552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553 (eval $ac_try) 2>&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; }; then
12557 ac_cv_type_uintptr_t=yes
12559 echo "$as_me: failed program was:" >&5
12560 sed 's/^/| /' conftest.$ac_ext >&5
12562 ac_cv_type_uintptr_t=no
12564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12566 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12567 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
12568 if test $ac_cv_type_uintptr_t = yes; then
12571 acx_cv_header_stdint_kind="(mostly complete)"
12574 echo "$as_me:$LINENO: checking for int_least32_t" >&5
12575 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
12576 if test "${ac_cv_type_int_least32_t+set}" = set; then
12577 echo $ECHO_N "(cached) $ECHO_C" >&6
12579 cat >conftest.$ac_ext <<_ACEOF
12582 cat confdefs.h >>conftest.$ac_ext
12583 cat >>conftest.$ac_ext <<_ACEOF
12584 /* end confdefs.h. */
12585 #include <sys/types.h>
12591 if ((int_least32_t *) 0)
12593 if (sizeof (int_least32_t))
12599 rm -f conftest.$ac_objext
12600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12601 (eval $ac_compile) 2>conftest.er1
12603 grep -v '^ *+' conftest.er1 >conftest.err
12605 cat conftest.err >&5
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); } &&
12608 { ac_try='test -z "$ac_c_werror_flag"
12609 || test ! -s conftest.err'
12610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12611 (eval $ac_try) 2>&5
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); }; } &&
12615 { ac_try='test -s conftest.$ac_objext'
12616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12617 (eval $ac_try) 2>&5
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); }; }; then
12621 ac_cv_type_int_least32_t=yes
12623 echo "$as_me: failed program was:" >&5
12624 sed 's/^/| /' conftest.$ac_ext >&5
12626 ac_cv_type_int_least32_t=no
12628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12630 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
12631 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
12632 if test $ac_cv_type_int_least32_t = yes; then
12635 acx_cv_header_stdint_kind="(mostly complete)"
12638 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
12639 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
12640 if test "${ac_cv_type_int_fast32_t+set}" = set; then
12641 echo $ECHO_N "(cached) $ECHO_C" >&6
12643 cat >conftest.$ac_ext <<_ACEOF
12646 cat confdefs.h >>conftest.$ac_ext
12647 cat >>conftest.$ac_ext <<_ACEOF
12648 /* end confdefs.h. */
12649 #include <sys/types.h>
12655 if ((int_fast32_t *) 0)
12657 if (sizeof (int_fast32_t))
12663 rm -f conftest.$ac_objext
12664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12665 (eval $ac_compile) 2>conftest.er1
12667 grep -v '^ *+' conftest.er1 >conftest.err
12669 cat conftest.err >&5
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); } &&
12672 { ac_try='test -z "$ac_c_werror_flag"
12673 || test ! -s conftest.err'
12674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12675 (eval $ac_try) 2>&5
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); }; } &&
12679 { ac_try='test -s conftest.$ac_objext'
12680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12681 (eval $ac_try) 2>&5
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); }; }; then
12685 ac_cv_type_int_fast32_t=yes
12687 echo "$as_me: failed program was:" >&5
12688 sed 's/^/| /' conftest.$ac_ext >&5
12690 ac_cv_type_int_fast32_t=no
12692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12694 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
12695 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
12696 if test $ac_cv_type_int_fast32_t = yes; then
12699 acx_cv_header_stdint_kind="(mostly complete)"
12702 echo "$as_me:$LINENO: checking for uint64_t" >&5
12703 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
12704 if test "${ac_cv_type_uint64_t+set}" = set; then
12705 echo $ECHO_N "(cached) $ECHO_C" >&6
12707 cat >conftest.$ac_ext <<_ACEOF
12710 cat confdefs.h >>conftest.$ac_ext
12711 cat >>conftest.$ac_ext <<_ACEOF
12712 /* end confdefs.h. */
12713 #include <sys/types.h>
12719 if ((uint64_t *) 0)
12721 if (sizeof (uint64_t))
12727 rm -f conftest.$ac_objext
12728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12729 (eval $ac_compile) 2>conftest.er1
12731 grep -v '^ *+' conftest.er1 >conftest.err
12733 cat conftest.err >&5
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); } &&
12736 { ac_try='test -z "$ac_c_werror_flag"
12737 || test ! -s conftest.err'
12738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12739 (eval $ac_try) 2>&5
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); }; } &&
12743 { ac_try='test -s conftest.$ac_objext'
12744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12745 (eval $ac_try) 2>&5
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); }; }; then
12749 ac_cv_type_uint64_t=yes
12751 echo "$as_me: failed program was:" >&5
12752 sed 's/^/| /' conftest.$ac_ext >&5
12754 ac_cv_type_uint64_t=no
12756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12758 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
12759 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
12760 if test $ac_cv_type_uint64_t = yes; then
12763 acx_cv_header_stdint_kind="(lacks uint64_t)"
12768 if test "$acx_cv_header_stdint" = stddef.h; then
12769 acx_cv_header_stdint_kind="(lacks uintmax_t)"
12770 for i in stdint.h $inttype_headers; do
12771 unset ac_cv_type_uintptr_t
12772 unset ac_cv_type_uint32_t
12773 unset ac_cv_type_uint64_t
12774 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
12775 echo "$as_me:$LINENO: checking for uint32_t" >&5
12776 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
12777 if test "${ac_cv_type_uint32_t+set}" = set; then
12778 echo $ECHO_N "(cached) $ECHO_C" >&6
12780 cat >conftest.$ac_ext <<_ACEOF
12783 cat confdefs.h >>conftest.$ac_ext
12784 cat >>conftest.$ac_ext <<_ACEOF
12785 /* end confdefs.h. */
12786 #include <sys/types.h>
12792 if ((uint32_t *) 0)
12794 if (sizeof (uint32_t))
12800 rm -f conftest.$ac_objext
12801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12802 (eval $ac_compile) 2>conftest.er1
12804 grep -v '^ *+' conftest.er1 >conftest.err
12806 cat conftest.err >&5
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); } &&
12809 { ac_try='test -z "$ac_c_werror_flag"
12810 || test ! -s conftest.err'
12811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12812 (eval $ac_try) 2>&5
12814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815 (exit $ac_status); }; } &&
12816 { ac_try='test -s conftest.$ac_objext'
12817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12818 (eval $ac_try) 2>&5
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); }; }; then
12822 ac_cv_type_uint32_t=yes
12824 echo "$as_me: failed program was:" >&5
12825 sed 's/^/| /' conftest.$ac_ext >&5
12827 ac_cv_type_uint32_t=no
12829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12831 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
12832 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
12833 if test $ac_cv_type_uint32_t = yes; then
12834 acx_cv_header_stdint=$i
12839 echo "$as_me:$LINENO: checking for uint64_t" >&5
12840 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
12841 if test "${ac_cv_type_uint64_t+set}" = set; then
12842 echo $ECHO_N "(cached) $ECHO_C" >&6
12844 cat >conftest.$ac_ext <<_ACEOF
12847 cat confdefs.h >>conftest.$ac_ext
12848 cat >>conftest.$ac_ext <<_ACEOF
12849 /* end confdefs.h. */
12850 #include <sys/types.h>
12856 if ((uint64_t *) 0)
12858 if (sizeof (uint64_t))
12864 rm -f conftest.$ac_objext
12865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12866 (eval $ac_compile) 2>conftest.er1
12868 grep -v '^ *+' conftest.er1 >conftest.err
12870 cat conftest.err >&5
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); } &&
12873 { ac_try='test -z "$ac_c_werror_flag"
12874 || test ! -s conftest.err'
12875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12876 (eval $ac_try) 2>&5
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); }; } &&
12880 { ac_try='test -s conftest.$ac_objext'
12881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12882 (eval $ac_try) 2>&5
12884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); }; }; then
12886 ac_cv_type_uint64_t=yes
12888 echo "$as_me: failed program was:" >&5
12889 sed 's/^/| /' conftest.$ac_ext >&5
12891 ac_cv_type_uint64_t=no
12893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12895 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
12896 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
12898 echo "$as_me:$LINENO: checking for uintptr_t" >&5
12899 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
12900 if test "${ac_cv_type_uintptr_t+set}" = set; then
12901 echo $ECHO_N "(cached) $ECHO_C" >&6
12903 cat >conftest.$ac_ext <<_ACEOF
12906 cat confdefs.h >>conftest.$ac_ext
12907 cat >>conftest.$ac_ext <<_ACEOF
12908 /* end confdefs.h. */
12909 #include <sys/types.h>
12915 if ((uintptr_t *) 0)
12917 if (sizeof (uintptr_t))
12923 rm -f conftest.$ac_objext
12924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12925 (eval $ac_compile) 2>conftest.er1
12927 grep -v '^ *+' conftest.er1 >conftest.err
12929 cat conftest.err >&5
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); } &&
12932 { ac_try='test -z "$ac_c_werror_flag"
12933 || test ! -s conftest.err'
12934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12935 (eval $ac_try) 2>&5
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); }; } &&
12939 { ac_try='test -s conftest.$ac_objext'
12940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12941 (eval $ac_try) 2>&5
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); }; }; then
12945 ac_cv_type_uintptr_t=yes
12947 echo "$as_me: failed program was:" >&5
12948 sed 's/^/| /' conftest.$ac_ext >&5
12950 ac_cv_type_uintptr_t=no
12952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12954 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12955 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
12960 if test "$acx_cv_header_stdint" = stddef.h; then
12961 acx_cv_header_stdint_kind="(u_intXX_t style)"
12962 for i in sys/types.h $inttype_headers; do
12963 unset ac_cv_type_u_int32_t
12964 unset ac_cv_type_u_int64_t
12965 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
12966 echo "$as_me:$LINENO: checking for u_int32_t" >&5
12967 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
12968 if test "${ac_cv_type_u_int32_t+set}" = set; then
12969 echo $ECHO_N "(cached) $ECHO_C" >&6
12971 cat >conftest.$ac_ext <<_ACEOF
12974 cat confdefs.h >>conftest.$ac_ext
12975 cat >>conftest.$ac_ext <<_ACEOF
12976 /* end confdefs.h. */
12977 #include <sys/types.h>
12983 if ((u_int32_t *) 0)
12985 if (sizeof (u_int32_t))
12991 rm -f conftest.$ac_objext
12992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12993 (eval $ac_compile) 2>conftest.er1
12995 grep -v '^ *+' conftest.er1 >conftest.err
12997 cat conftest.err >&5
12998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999 (exit $ac_status); } &&
13000 { ac_try='test -z "$ac_c_werror_flag"
13001 || test ! -s conftest.err'
13002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13003 (eval $ac_try) 2>&5
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); }; } &&
13007 { ac_try='test -s conftest.$ac_objext'
13008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13009 (eval $ac_try) 2>&5
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); }; }; then
13013 ac_cv_type_u_int32_t=yes
13015 echo "$as_me: failed program was:" >&5
13016 sed 's/^/| /' conftest.$ac_ext >&5
13018 ac_cv_type_u_int32_t=no
13020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13022 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
13023 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
13024 if test $ac_cv_type_u_int32_t = yes; then
13025 acx_cv_header_stdint=$i
13030 echo "$as_me:$LINENO: checking for u_int64_t" >&5
13031 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
13032 if test "${ac_cv_type_u_int64_t+set}" = set; then
13033 echo $ECHO_N "(cached) $ECHO_C" >&6
13035 cat >conftest.$ac_ext <<_ACEOF
13038 cat confdefs.h >>conftest.$ac_ext
13039 cat >>conftest.$ac_ext <<_ACEOF
13040 /* end confdefs.h. */
13041 #include <sys/types.h>
13047 if ((u_int64_t *) 0)
13049 if (sizeof (u_int64_t))
13055 rm -f conftest.$ac_objext
13056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13057 (eval $ac_compile) 2>conftest.er1
13059 grep -v '^ *+' conftest.er1 >conftest.err
13061 cat conftest.err >&5
13062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); } &&
13064 { ac_try='test -z "$ac_c_werror_flag"
13065 || test ! -s conftest.err'
13066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13067 (eval $ac_try) 2>&5
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); }; } &&
13071 { ac_try='test -s conftest.$ac_objext'
13072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13073 (eval $ac_try) 2>&5
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); }; }; then
13077 ac_cv_type_u_int64_t=yes
13079 echo "$as_me: failed program was:" >&5
13080 sed 's/^/| /' conftest.$ac_ext >&5
13082 ac_cv_type_u_int64_t=no
13084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13086 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13087 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
13092 if test "$acx_cv_header_stdint" = stddef.h; then
13093 acx_cv_header_stdint_kind="(using manual detection)"
13096 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
13097 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
13098 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
13099 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
13100 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
13102 # ----------------- Summarize what we found so far
13104 echo "$as_me:$LINENO: checking what to include in bfd_stdint.h" >&5
13105 echo $ECHO_N "checking what to include in bfd_stdint.h... $ECHO_C" >&6
13107 case `$as_basename bfd_stdint.h ||
13108 $as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
13109 Xbfd_stdint.h : 'X\(//\)$' \| \
13110 Xbfd_stdint.h : 'X\(/\)$' \| \
13111 . : '\(.\)' 2>/dev/null ||
13112 echo X/bfd_stdint.h |
13113 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13114 /^X\/\(\/\/\)$/{ s//\1/; q; }
13115 /^X\/\(\/\).*/{ s//\1/; q; }
13117 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13118 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13119 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13120 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13124 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
13125 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
13127 # ----------------- done included file, check C basic types --------
13129 # Lacking an uintptr_t? Test size of void *
13130 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
13131 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
13132 echo $ECHO_N "checking for void *... $ECHO_C" >&6
13133 if test "${ac_cv_type_void_p+set}" = set; then
13134 echo $ECHO_N "(cached) $ECHO_C" >&6
13136 cat >conftest.$ac_ext <<_ACEOF
13139 cat confdefs.h >>conftest.$ac_ext
13140 cat >>conftest.$ac_ext <<_ACEOF
13141 /* end confdefs.h. */
13142 $ac_includes_default
13148 if (sizeof (void *))
13154 rm -f conftest.$ac_objext
13155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13156 (eval $ac_compile) 2>conftest.er1
13158 grep -v '^ *+' conftest.er1 >conftest.err
13160 cat conftest.err >&5
13161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162 (exit $ac_status); } &&
13163 { ac_try='test -z "$ac_c_werror_flag"
13164 || test ! -s conftest.err'
13165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13166 (eval $ac_try) 2>&5
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); }; } &&
13170 { ac_try='test -s conftest.$ac_objext'
13171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13172 (eval $ac_try) 2>&5
13174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); }; }; then
13176 ac_cv_type_void_p=yes
13178 echo "$as_me: failed program was:" >&5
13179 sed 's/^/| /' conftest.$ac_ext >&5
13181 ac_cv_type_void_p=no
13183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13185 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13186 echo "${ECHO_T}$ac_cv_type_void_p" >&6
13188 echo "$as_me:$LINENO: checking size of void *" >&5
13189 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13190 if test "${ac_cv_sizeof_void_p+set}" = set; then
13191 echo $ECHO_N "(cached) $ECHO_C" >&6
13193 if test "$ac_cv_type_void_p" = yes; then
13194 # The cast to unsigned long works around a bug in the HP C Compiler
13195 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13196 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13197 # This bug is HP SR number 8606223364.
13198 if test "$cross_compiling" = yes; then
13199 # Depending upon the size, compute the lo and hi bounds.
13200 cat >conftest.$ac_ext <<_ACEOF
13203 cat confdefs.h >>conftest.$ac_ext
13204 cat >>conftest.$ac_ext <<_ACEOF
13205 /* end confdefs.h. */
13206 $ac_includes_default
13210 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
13217 rm -f conftest.$ac_objext
13218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13219 (eval $ac_compile) 2>conftest.er1
13221 grep -v '^ *+' conftest.er1 >conftest.err
13223 cat conftest.err >&5
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); } &&
13226 { ac_try='test -z "$ac_c_werror_flag"
13227 || test ! -s conftest.err'
13228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13229 (eval $ac_try) 2>&5
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); }; } &&
13233 { ac_try='test -s conftest.$ac_objext'
13234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13235 (eval $ac_try) 2>&5
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); }; }; then
13241 cat >conftest.$ac_ext <<_ACEOF
13244 cat confdefs.h >>conftest.$ac_ext
13245 cat >>conftest.$ac_ext <<_ACEOF
13246 /* end confdefs.h. */
13247 $ac_includes_default
13251 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13258 rm -f conftest.$ac_objext
13259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13260 (eval $ac_compile) 2>conftest.er1
13262 grep -v '^ *+' conftest.er1 >conftest.err
13264 cat conftest.err >&5
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); } &&
13267 { ac_try='test -z "$ac_c_werror_flag"
13268 || test ! -s conftest.err'
13269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13270 (eval $ac_try) 2>&5
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); }; } &&
13274 { ac_try='test -s conftest.$ac_objext'
13275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13276 (eval $ac_try) 2>&5
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); }; }; then
13280 ac_hi=$ac_mid; break
13282 echo "$as_me: failed program was:" >&5
13283 sed 's/^/| /' conftest.$ac_ext >&5
13285 ac_lo=`expr $ac_mid + 1`
13286 if test $ac_lo -le $ac_mid; then
13290 ac_mid=`expr 2 '*' $ac_mid + 1`
13292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13295 echo "$as_me: failed program was:" >&5
13296 sed 's/^/| /' conftest.$ac_ext >&5
13298 cat >conftest.$ac_ext <<_ACEOF
13301 cat confdefs.h >>conftest.$ac_ext
13302 cat >>conftest.$ac_ext <<_ACEOF
13303 /* end confdefs.h. */
13304 $ac_includes_default
13308 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
13315 rm -f conftest.$ac_objext
13316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13317 (eval $ac_compile) 2>conftest.er1
13319 grep -v '^ *+' conftest.er1 >conftest.err
13321 cat conftest.err >&5
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); } &&
13324 { ac_try='test -z "$ac_c_werror_flag"
13325 || test ! -s conftest.err'
13326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13327 (eval $ac_try) 2>&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); }; } &&
13331 { ac_try='test -s conftest.$ac_objext'
13332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13333 (eval $ac_try) 2>&5
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); }; }; then
13339 cat >conftest.$ac_ext <<_ACEOF
13342 cat confdefs.h >>conftest.$ac_ext
13343 cat >>conftest.$ac_ext <<_ACEOF
13344 /* end confdefs.h. */
13345 $ac_includes_default
13349 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
13356 rm -f conftest.$ac_objext
13357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13358 (eval $ac_compile) 2>conftest.er1
13360 grep -v '^ *+' conftest.er1 >conftest.err
13362 cat conftest.err >&5
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); } &&
13365 { ac_try='test -z "$ac_c_werror_flag"
13366 || test ! -s conftest.err'
13367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13368 (eval $ac_try) 2>&5
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); }; } &&
13372 { ac_try='test -s conftest.$ac_objext'
13373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13374 (eval $ac_try) 2>&5
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); }; }; then
13378 ac_lo=$ac_mid; break
13380 echo "$as_me: failed program was:" >&5
13381 sed 's/^/| /' conftest.$ac_ext >&5
13383 ac_hi=`expr '(' $ac_mid ')' - 1`
13384 if test $ac_mid -le $ac_hi; then
13388 ac_mid=`expr 2 '*' $ac_mid`
13390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13393 echo "$as_me: failed program was:" >&5
13394 sed 's/^/| /' conftest.$ac_ext >&5
13398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13401 # Binary search between lo and hi bounds.
13402 while test "x$ac_lo" != "x$ac_hi"; do
13403 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13404 cat >conftest.$ac_ext <<_ACEOF
13407 cat confdefs.h >>conftest.$ac_ext
13408 cat >>conftest.$ac_ext <<_ACEOF
13409 /* end confdefs.h. */
13410 $ac_includes_default
13414 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13421 rm -f conftest.$ac_objext
13422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13423 (eval $ac_compile) 2>conftest.er1
13425 grep -v '^ *+' conftest.er1 >conftest.err
13427 cat conftest.err >&5
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); } &&
13430 { ac_try='test -z "$ac_c_werror_flag"
13431 || test ! -s conftest.err'
13432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13433 (eval $ac_try) 2>&5
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); }; } &&
13437 { ac_try='test -s conftest.$ac_objext'
13438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13439 (eval $ac_try) 2>&5
13441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442 (exit $ac_status); }; }; then
13445 echo "$as_me: failed program was:" >&5
13446 sed 's/^/| /' conftest.$ac_ext >&5
13448 ac_lo=`expr '(' $ac_mid ')' + 1`
13450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13453 ?*) ac_cv_sizeof_void_p=$ac_lo;;
13454 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13455 See \`config.log' for more details." >&5
13456 echo "$as_me: error: cannot compute sizeof (void *), 77
13457 See \`config.log' for more details." >&2;}
13458 { (exit 1); exit 1; }; } ;;
13461 if test "$cross_compiling" = yes; then
13462 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13463 See \`config.log' for more details." >&5
13464 echo "$as_me: error: cannot run test program while cross compiling
13465 See \`config.log' for more details." >&2;}
13466 { (exit 1); exit 1; }; }
13468 cat >conftest.$ac_ext <<_ACEOF
13471 cat confdefs.h >>conftest.$ac_ext
13472 cat >>conftest.$ac_ext <<_ACEOF
13473 /* end confdefs.h. */
13474 $ac_includes_default
13475 long longval () { return (long) (sizeof (void *)); }
13476 unsigned long ulongval () { return (long) (sizeof (void *)); }
13478 #include <stdlib.h>
13483 FILE *f = fopen ("conftest.val", "w");
13486 if (((long) (sizeof (void *))) < 0)
13488 long i = longval ();
13489 if (i != ((long) (sizeof (void *))))
13491 fprintf (f, "%ld\n", i);
13495 unsigned long i = ulongval ();
13496 if (i != ((long) (sizeof (void *))))
13498 fprintf (f, "%lu\n", i);
13500 exit (ferror (f) || fclose (f) != 0);
13506 rm -f conftest$ac_exeext
13507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13508 (eval $ac_link) 2>&5
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13513 (eval $ac_try) 2>&5
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); }; }; then
13517 ac_cv_sizeof_void_p=`cat conftest.val`
13519 echo "$as_me: program exited with status $ac_status" >&5
13520 echo "$as_me: failed program was:" >&5
13521 sed 's/^/| /' conftest.$ac_ext >&5
13523 ( exit $ac_status )
13524 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13525 See \`config.log' for more details." >&5
13526 echo "$as_me: error: cannot compute sizeof (void *), 77
13527 See \`config.log' for more details." >&2;}
13528 { (exit 1); exit 1; }; }
13530 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13535 ac_cv_sizeof_void_p=0
13538 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13539 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13540 cat >>confdefs.h <<_ACEOF
13541 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13547 # Lacking an uint64_t? Test size of long
13548 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
13549 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
13550 echo $ECHO_N "checking for long... $ECHO_C" >&6
13551 if test "${ac_cv_type_long+set}" = set; then
13552 echo $ECHO_N "(cached) $ECHO_C" >&6
13554 cat >conftest.$ac_ext <<_ACEOF
13557 cat confdefs.h >>conftest.$ac_ext
13558 cat >>conftest.$ac_ext <<_ACEOF
13559 /* end confdefs.h. */
13560 $ac_includes_default
13572 rm -f conftest.$ac_objext
13573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13574 (eval $ac_compile) 2>conftest.er1
13576 grep -v '^ *+' conftest.er1 >conftest.err
13578 cat conftest.err >&5
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); } &&
13581 { ac_try='test -z "$ac_c_werror_flag"
13582 || test ! -s conftest.err'
13583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13584 (eval $ac_try) 2>&5
13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); }; } &&
13588 { ac_try='test -s conftest.$ac_objext'
13589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13590 (eval $ac_try) 2>&5
13592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593 (exit $ac_status); }; }; then
13594 ac_cv_type_long=yes
13596 echo "$as_me: failed program was:" >&5
13597 sed 's/^/| /' conftest.$ac_ext >&5
13601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13603 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13604 echo "${ECHO_T}$ac_cv_type_long" >&6
13606 echo "$as_me:$LINENO: checking size of long" >&5
13607 echo $ECHO_N "checking size of long... $ECHO_C" >&6
13608 if test "${ac_cv_sizeof_long+set}" = set; then
13609 echo $ECHO_N "(cached) $ECHO_C" >&6
13611 if test "$ac_cv_type_long" = yes; then
13612 # The cast to unsigned long works around a bug in the HP C Compiler
13613 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13614 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13615 # This bug is HP SR number 8606223364.
13616 if test "$cross_compiling" = yes; then
13617 # Depending upon the size, compute the lo and hi bounds.
13618 cat >conftest.$ac_ext <<_ACEOF
13621 cat confdefs.h >>conftest.$ac_ext
13622 cat >>conftest.$ac_ext <<_ACEOF
13623 /* end confdefs.h. */
13624 $ac_includes_default
13628 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
13635 rm -f conftest.$ac_objext
13636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13637 (eval $ac_compile) 2>conftest.er1
13639 grep -v '^ *+' conftest.er1 >conftest.err
13641 cat conftest.err >&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); } &&
13644 { ac_try='test -z "$ac_c_werror_flag"
13645 || test ! -s conftest.err'
13646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13647 (eval $ac_try) 2>&5
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); }; } &&
13651 { ac_try='test -s conftest.$ac_objext'
13652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13653 (eval $ac_try) 2>&5
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); }; }; then
13659 cat >conftest.$ac_ext <<_ACEOF
13662 cat confdefs.h >>conftest.$ac_ext
13663 cat >>conftest.$ac_ext <<_ACEOF
13664 /* end confdefs.h. */
13665 $ac_includes_default
13669 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13676 rm -f conftest.$ac_objext
13677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13678 (eval $ac_compile) 2>conftest.er1
13680 grep -v '^ *+' conftest.er1 >conftest.err
13682 cat conftest.err >&5
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); } &&
13685 { ac_try='test -z "$ac_c_werror_flag"
13686 || test ! -s conftest.err'
13687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13688 (eval $ac_try) 2>&5
13690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691 (exit $ac_status); }; } &&
13692 { ac_try='test -s conftest.$ac_objext'
13693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13694 (eval $ac_try) 2>&5
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); }; }; then
13698 ac_hi=$ac_mid; break
13700 echo "$as_me: failed program was:" >&5
13701 sed 's/^/| /' conftest.$ac_ext >&5
13703 ac_lo=`expr $ac_mid + 1`
13704 if test $ac_lo -le $ac_mid; then
13708 ac_mid=`expr 2 '*' $ac_mid + 1`
13710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13713 echo "$as_me: failed program was:" >&5
13714 sed 's/^/| /' conftest.$ac_ext >&5
13716 cat >conftest.$ac_ext <<_ACEOF
13719 cat confdefs.h >>conftest.$ac_ext
13720 cat >>conftest.$ac_ext <<_ACEOF
13721 /* end confdefs.h. */
13722 $ac_includes_default
13726 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
13733 rm -f conftest.$ac_objext
13734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13735 (eval $ac_compile) 2>conftest.er1
13737 grep -v '^ *+' conftest.er1 >conftest.err
13739 cat conftest.err >&5
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); } &&
13742 { ac_try='test -z "$ac_c_werror_flag"
13743 || test ! -s conftest.err'
13744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13745 (eval $ac_try) 2>&5
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); }; } &&
13749 { ac_try='test -s conftest.$ac_objext'
13750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13751 (eval $ac_try) 2>&5
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); }; }; then
13757 cat >conftest.$ac_ext <<_ACEOF
13760 cat confdefs.h >>conftest.$ac_ext
13761 cat >>conftest.$ac_ext <<_ACEOF
13762 /* end confdefs.h. */
13763 $ac_includes_default
13767 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
13774 rm -f conftest.$ac_objext
13775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13776 (eval $ac_compile) 2>conftest.er1
13778 grep -v '^ *+' conftest.er1 >conftest.err
13780 cat conftest.err >&5
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); } &&
13783 { ac_try='test -z "$ac_c_werror_flag"
13784 || test ! -s conftest.err'
13785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13786 (eval $ac_try) 2>&5
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); }; } &&
13790 { ac_try='test -s conftest.$ac_objext'
13791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13792 (eval $ac_try) 2>&5
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); }; }; then
13796 ac_lo=$ac_mid; break
13798 echo "$as_me: failed program was:" >&5
13799 sed 's/^/| /' conftest.$ac_ext >&5
13801 ac_hi=`expr '(' $ac_mid ')' - 1`
13802 if test $ac_mid -le $ac_hi; then
13806 ac_mid=`expr 2 '*' $ac_mid`
13808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13811 echo "$as_me: failed program was:" >&5
13812 sed 's/^/| /' conftest.$ac_ext >&5
13816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13819 # Binary search between lo and hi bounds.
13820 while test "x$ac_lo" != "x$ac_hi"; do
13821 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13822 cat >conftest.$ac_ext <<_ACEOF
13825 cat confdefs.h >>conftest.$ac_ext
13826 cat >>conftest.$ac_ext <<_ACEOF
13827 /* end confdefs.h. */
13828 $ac_includes_default
13832 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13839 rm -f conftest.$ac_objext
13840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13841 (eval $ac_compile) 2>conftest.er1
13843 grep -v '^ *+' conftest.er1 >conftest.err
13845 cat conftest.err >&5
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); } &&
13848 { ac_try='test -z "$ac_c_werror_flag"
13849 || test ! -s conftest.err'
13850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851 (eval $ac_try) 2>&5
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); }; } &&
13855 { ac_try='test -s conftest.$ac_objext'
13856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13857 (eval $ac_try) 2>&5
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); }; }; then
13863 echo "$as_me: failed program was:" >&5
13864 sed 's/^/| /' conftest.$ac_ext >&5
13866 ac_lo=`expr '(' $ac_mid ')' + 1`
13868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13871 ?*) ac_cv_sizeof_long=$ac_lo;;
13872 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13873 See \`config.log' for more details." >&5
13874 echo "$as_me: error: cannot compute sizeof (long), 77
13875 See \`config.log' for more details." >&2;}
13876 { (exit 1); exit 1; }; } ;;
13879 if test "$cross_compiling" = yes; then
13880 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13881 See \`config.log' for more details." >&5
13882 echo "$as_me: error: cannot run test program while cross compiling
13883 See \`config.log' for more details." >&2;}
13884 { (exit 1); exit 1; }; }
13886 cat >conftest.$ac_ext <<_ACEOF
13889 cat confdefs.h >>conftest.$ac_ext
13890 cat >>conftest.$ac_ext <<_ACEOF
13891 /* end confdefs.h. */
13892 $ac_includes_default
13893 long longval () { return (long) (sizeof (long)); }
13894 unsigned long ulongval () { return (long) (sizeof (long)); }
13896 #include <stdlib.h>
13901 FILE *f = fopen ("conftest.val", "w");
13904 if (((long) (sizeof (long))) < 0)
13906 long i = longval ();
13907 if (i != ((long) (sizeof (long))))
13909 fprintf (f, "%ld\n", i);
13913 unsigned long i = ulongval ();
13914 if (i != ((long) (sizeof (long))))
13916 fprintf (f, "%lu\n", i);
13918 exit (ferror (f) || fclose (f) != 0);
13924 rm -f conftest$ac_exeext
13925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13926 (eval $ac_link) 2>&5
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13931 (eval $ac_try) 2>&5
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); }; }; then
13935 ac_cv_sizeof_long=`cat conftest.val`
13937 echo "$as_me: program exited with status $ac_status" >&5
13938 echo "$as_me: failed program was:" >&5
13939 sed 's/^/| /' conftest.$ac_ext >&5
13941 ( exit $ac_status )
13942 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13943 See \`config.log' for more details." >&5
13944 echo "$as_me: error: cannot compute sizeof (long), 77
13945 See \`config.log' for more details." >&2;}
13946 { (exit 1); exit 1; }; }
13948 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13953 ac_cv_sizeof_long=0
13956 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13957 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13958 cat >>confdefs.h <<_ACEOF
13959 #define SIZEOF_LONG $ac_cv_sizeof_long
13965 if test $acx_cv_header_stdint = stddef.h; then
13966 # Lacking a good header? Test size of everything and deduce all types.
13967 echo "$as_me:$LINENO: checking for int" >&5
13968 echo $ECHO_N "checking for int... $ECHO_C" >&6
13969 if test "${ac_cv_type_int+set}" = set; then
13970 echo $ECHO_N "(cached) $ECHO_C" >&6
13972 cat >conftest.$ac_ext <<_ACEOF
13975 cat confdefs.h >>conftest.$ac_ext
13976 cat >>conftest.$ac_ext <<_ACEOF
13977 /* end confdefs.h. */
13978 $ac_includes_default
13990 rm -f conftest.$ac_objext
13991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13992 (eval $ac_compile) 2>conftest.er1
13994 grep -v '^ *+' conftest.er1 >conftest.err
13996 cat conftest.err >&5
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); } &&
13999 { ac_try='test -z "$ac_c_werror_flag"
14000 || test ! -s conftest.err'
14001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14002 (eval $ac_try) 2>&5
14004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005 (exit $ac_status); }; } &&
14006 { ac_try='test -s conftest.$ac_objext'
14007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14008 (eval $ac_try) 2>&5
14010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); }; }; then
14014 echo "$as_me: failed program was:" >&5
14015 sed 's/^/| /' conftest.$ac_ext >&5
14019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14021 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14022 echo "${ECHO_T}$ac_cv_type_int" >&6
14024 echo "$as_me:$LINENO: checking size of int" >&5
14025 echo $ECHO_N "checking size of int... $ECHO_C" >&6
14026 if test "${ac_cv_sizeof_int+set}" = set; then
14027 echo $ECHO_N "(cached) $ECHO_C" >&6
14029 if test "$ac_cv_type_int" = yes; then
14030 # The cast to unsigned long works around a bug in the HP C Compiler
14031 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14032 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14033 # This bug is HP SR number 8606223364.
14034 if test "$cross_compiling" = yes; then
14035 # Depending upon the size, compute the lo and hi bounds.
14036 cat >conftest.$ac_ext <<_ACEOF
14039 cat confdefs.h >>conftest.$ac_ext
14040 cat >>conftest.$ac_ext <<_ACEOF
14041 /* end confdefs.h. */
14042 $ac_includes_default
14046 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14053 rm -f conftest.$ac_objext
14054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14055 (eval $ac_compile) 2>conftest.er1
14057 grep -v '^ *+' conftest.er1 >conftest.err
14059 cat conftest.err >&5
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); } &&
14062 { ac_try='test -z "$ac_c_werror_flag"
14063 || test ! -s conftest.err'
14064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14065 (eval $ac_try) 2>&5
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); }; } &&
14069 { ac_try='test -s conftest.$ac_objext'
14070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14071 (eval $ac_try) 2>&5
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); }; }; then
14077 cat >conftest.$ac_ext <<_ACEOF
14080 cat confdefs.h >>conftest.$ac_ext
14081 cat >>conftest.$ac_ext <<_ACEOF
14082 /* end confdefs.h. */
14083 $ac_includes_default
14087 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14094 rm -f conftest.$ac_objext
14095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14096 (eval $ac_compile) 2>conftest.er1
14098 grep -v '^ *+' conftest.er1 >conftest.err
14100 cat conftest.err >&5
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); } &&
14103 { ac_try='test -z "$ac_c_werror_flag"
14104 || test ! -s conftest.err'
14105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14106 (eval $ac_try) 2>&5
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); }; } &&
14110 { ac_try='test -s conftest.$ac_objext'
14111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14112 (eval $ac_try) 2>&5
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); }; }; then
14116 ac_hi=$ac_mid; break
14118 echo "$as_me: failed program was:" >&5
14119 sed 's/^/| /' conftest.$ac_ext >&5
14121 ac_lo=`expr $ac_mid + 1`
14122 if test $ac_lo -le $ac_mid; then
14126 ac_mid=`expr 2 '*' $ac_mid + 1`
14128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14131 echo "$as_me: failed program was:" >&5
14132 sed 's/^/| /' conftest.$ac_ext >&5
14134 cat >conftest.$ac_ext <<_ACEOF
14137 cat confdefs.h >>conftest.$ac_ext
14138 cat >>conftest.$ac_ext <<_ACEOF
14139 /* end confdefs.h. */
14140 $ac_includes_default
14144 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14151 rm -f conftest.$ac_objext
14152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14153 (eval $ac_compile) 2>conftest.er1
14155 grep -v '^ *+' conftest.er1 >conftest.err
14157 cat conftest.err >&5
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); } &&
14160 { ac_try='test -z "$ac_c_werror_flag"
14161 || test ! -s conftest.err'
14162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14163 (eval $ac_try) 2>&5
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); }; } &&
14167 { ac_try='test -s conftest.$ac_objext'
14168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14169 (eval $ac_try) 2>&5
14171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); }; }; then
14175 cat >conftest.$ac_ext <<_ACEOF
14178 cat confdefs.h >>conftest.$ac_ext
14179 cat >>conftest.$ac_ext <<_ACEOF
14180 /* end confdefs.h. */
14181 $ac_includes_default
14185 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14192 rm -f conftest.$ac_objext
14193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14194 (eval $ac_compile) 2>conftest.er1
14196 grep -v '^ *+' conftest.er1 >conftest.err
14198 cat conftest.err >&5
14199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200 (exit $ac_status); } &&
14201 { ac_try='test -z "$ac_c_werror_flag"
14202 || test ! -s conftest.err'
14203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14204 (eval $ac_try) 2>&5
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); }; } &&
14208 { ac_try='test -s conftest.$ac_objext'
14209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14210 (eval $ac_try) 2>&5
14212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); }; }; then
14214 ac_lo=$ac_mid; break
14216 echo "$as_me: failed program was:" >&5
14217 sed 's/^/| /' conftest.$ac_ext >&5
14219 ac_hi=`expr '(' $ac_mid ')' - 1`
14220 if test $ac_mid -le $ac_hi; then
14224 ac_mid=`expr 2 '*' $ac_mid`
14226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14229 echo "$as_me: failed program was:" >&5
14230 sed 's/^/| /' conftest.$ac_ext >&5
14234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14237 # Binary search between lo and hi bounds.
14238 while test "x$ac_lo" != "x$ac_hi"; do
14239 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14240 cat >conftest.$ac_ext <<_ACEOF
14243 cat confdefs.h >>conftest.$ac_ext
14244 cat >>conftest.$ac_ext <<_ACEOF
14245 /* end confdefs.h. */
14246 $ac_includes_default
14250 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14257 rm -f conftest.$ac_objext
14258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14259 (eval $ac_compile) 2>conftest.er1
14261 grep -v '^ *+' conftest.er1 >conftest.err
14263 cat conftest.err >&5
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); } &&
14266 { ac_try='test -z "$ac_c_werror_flag"
14267 || test ! -s conftest.err'
14268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14269 (eval $ac_try) 2>&5
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); }; } &&
14273 { ac_try='test -s conftest.$ac_objext'
14274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14275 (eval $ac_try) 2>&5
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); }; }; then
14281 echo "$as_me: failed program was:" >&5
14282 sed 's/^/| /' conftest.$ac_ext >&5
14284 ac_lo=`expr '(' $ac_mid ')' + 1`
14286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14289 ?*) ac_cv_sizeof_int=$ac_lo;;
14290 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14291 See \`config.log' for more details." >&5
14292 echo "$as_me: error: cannot compute sizeof (int), 77
14293 See \`config.log' for more details." >&2;}
14294 { (exit 1); exit 1; }; } ;;
14297 if test "$cross_compiling" = yes; then
14298 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14299 See \`config.log' for more details." >&5
14300 echo "$as_me: error: cannot run test program while cross compiling
14301 See \`config.log' for more details." >&2;}
14302 { (exit 1); exit 1; }; }
14304 cat >conftest.$ac_ext <<_ACEOF
14307 cat confdefs.h >>conftest.$ac_ext
14308 cat >>conftest.$ac_ext <<_ACEOF
14309 /* end confdefs.h. */
14310 $ac_includes_default
14311 long longval () { return (long) (sizeof (int)); }
14312 unsigned long ulongval () { return (long) (sizeof (int)); }
14314 #include <stdlib.h>
14319 FILE *f = fopen ("conftest.val", "w");
14322 if (((long) (sizeof (int))) < 0)
14324 long i = longval ();
14325 if (i != ((long) (sizeof (int))))
14327 fprintf (f, "%ld\n", i);
14331 unsigned long i = ulongval ();
14332 if (i != ((long) (sizeof (int))))
14334 fprintf (f, "%lu\n", i);
14336 exit (ferror (f) || fclose (f) != 0);
14342 rm -f conftest$ac_exeext
14343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14344 (eval $ac_link) 2>&5
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14349 (eval $ac_try) 2>&5
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); }; }; then
14353 ac_cv_sizeof_int=`cat conftest.val`
14355 echo "$as_me: program exited with status $ac_status" >&5
14356 echo "$as_me: failed program was:" >&5
14357 sed 's/^/| /' conftest.$ac_ext >&5
14359 ( exit $ac_status )
14360 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14361 See \`config.log' for more details." >&5
14362 echo "$as_me: error: cannot compute sizeof (int), 77
14363 See \`config.log' for more details." >&2;}
14364 { (exit 1); exit 1; }; }
14366 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14374 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14375 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
14376 cat >>confdefs.h <<_ACEOF
14377 #define SIZEOF_INT $ac_cv_sizeof_int
14381 echo "$as_me:$LINENO: checking for short" >&5
14382 echo $ECHO_N "checking for short... $ECHO_C" >&6
14383 if test "${ac_cv_type_short+set}" = set; then
14384 echo $ECHO_N "(cached) $ECHO_C" >&6
14386 cat >conftest.$ac_ext <<_ACEOF
14389 cat confdefs.h >>conftest.$ac_ext
14390 cat >>conftest.$ac_ext <<_ACEOF
14391 /* end confdefs.h. */
14392 $ac_includes_default
14398 if (sizeof (short))
14404 rm -f conftest.$ac_objext
14405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14406 (eval $ac_compile) 2>conftest.er1
14408 grep -v '^ *+' conftest.er1 >conftest.err
14410 cat conftest.err >&5
14411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 (exit $ac_status); } &&
14413 { ac_try='test -z "$ac_c_werror_flag"
14414 || test ! -s conftest.err'
14415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14416 (eval $ac_try) 2>&5
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); }; } &&
14420 { ac_try='test -s conftest.$ac_objext'
14421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14422 (eval $ac_try) 2>&5
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); }; }; then
14426 ac_cv_type_short=yes
14428 echo "$as_me: failed program was:" >&5
14429 sed 's/^/| /' conftest.$ac_ext >&5
14431 ac_cv_type_short=no
14433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14435 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14436 echo "${ECHO_T}$ac_cv_type_short" >&6
14438 echo "$as_me:$LINENO: checking size of short" >&5
14439 echo $ECHO_N "checking size of short... $ECHO_C" >&6
14440 if test "${ac_cv_sizeof_short+set}" = set; then
14441 echo $ECHO_N "(cached) $ECHO_C" >&6
14443 if test "$ac_cv_type_short" = yes; then
14444 # The cast to unsigned long works around a bug in the HP C Compiler
14445 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14446 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14447 # This bug is HP SR number 8606223364.
14448 if test "$cross_compiling" = yes; then
14449 # Depending upon the size, compute the lo and hi bounds.
14450 cat >conftest.$ac_ext <<_ACEOF
14453 cat confdefs.h >>conftest.$ac_ext
14454 cat >>conftest.$ac_ext <<_ACEOF
14455 /* end confdefs.h. */
14456 $ac_includes_default
14460 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14467 rm -f conftest.$ac_objext
14468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14469 (eval $ac_compile) 2>conftest.er1
14471 grep -v '^ *+' conftest.er1 >conftest.err
14473 cat conftest.err >&5
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); } &&
14476 { ac_try='test -z "$ac_c_werror_flag"
14477 || test ! -s conftest.err'
14478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14479 (eval $ac_try) 2>&5
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); }; } &&
14483 { ac_try='test -s conftest.$ac_objext'
14484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14485 (eval $ac_try) 2>&5
14487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 (exit $ac_status); }; }; then
14491 cat >conftest.$ac_ext <<_ACEOF
14494 cat confdefs.h >>conftest.$ac_ext
14495 cat >>conftest.$ac_ext <<_ACEOF
14496 /* end confdefs.h. */
14497 $ac_includes_default
14501 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14508 rm -f conftest.$ac_objext
14509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14510 (eval $ac_compile) 2>conftest.er1
14512 grep -v '^ *+' conftest.er1 >conftest.err
14514 cat conftest.err >&5
14515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516 (exit $ac_status); } &&
14517 { ac_try='test -z "$ac_c_werror_flag"
14518 || test ! -s conftest.err'
14519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14520 (eval $ac_try) 2>&5
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); }; } &&
14524 { ac_try='test -s conftest.$ac_objext'
14525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14526 (eval $ac_try) 2>&5
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); }; }; then
14530 ac_hi=$ac_mid; break
14532 echo "$as_me: failed program was:" >&5
14533 sed 's/^/| /' conftest.$ac_ext >&5
14535 ac_lo=`expr $ac_mid + 1`
14536 if test $ac_lo -le $ac_mid; then
14540 ac_mid=`expr 2 '*' $ac_mid + 1`
14542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14545 echo "$as_me: failed program was:" >&5
14546 sed 's/^/| /' conftest.$ac_ext >&5
14548 cat >conftest.$ac_ext <<_ACEOF
14551 cat confdefs.h >>conftest.$ac_ext
14552 cat >>conftest.$ac_ext <<_ACEOF
14553 /* end confdefs.h. */
14554 $ac_includes_default
14558 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14565 rm -f conftest.$ac_objext
14566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14567 (eval $ac_compile) 2>conftest.er1
14569 grep -v '^ *+' conftest.er1 >conftest.err
14571 cat conftest.err >&5
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); } &&
14574 { ac_try='test -z "$ac_c_werror_flag"
14575 || test ! -s conftest.err'
14576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14577 (eval $ac_try) 2>&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); }; } &&
14581 { ac_try='test -s conftest.$ac_objext'
14582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14583 (eval $ac_try) 2>&5
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); }; }; then
14589 cat >conftest.$ac_ext <<_ACEOF
14592 cat confdefs.h >>conftest.$ac_ext
14593 cat >>conftest.$ac_ext <<_ACEOF
14594 /* end confdefs.h. */
14595 $ac_includes_default
14599 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14606 rm -f conftest.$ac_objext
14607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14608 (eval $ac_compile) 2>conftest.er1
14610 grep -v '^ *+' conftest.er1 >conftest.err
14612 cat conftest.err >&5
14613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614 (exit $ac_status); } &&
14615 { ac_try='test -z "$ac_c_werror_flag"
14616 || test ! -s conftest.err'
14617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14618 (eval $ac_try) 2>&5
14620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621 (exit $ac_status); }; } &&
14622 { ac_try='test -s conftest.$ac_objext'
14623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14624 (eval $ac_try) 2>&5
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); }; }; then
14628 ac_lo=$ac_mid; break
14630 echo "$as_me: failed program was:" >&5
14631 sed 's/^/| /' conftest.$ac_ext >&5
14633 ac_hi=`expr '(' $ac_mid ')' - 1`
14634 if test $ac_mid -le $ac_hi; then
14638 ac_mid=`expr 2 '*' $ac_mid`
14640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14643 echo "$as_me: failed program was:" >&5
14644 sed 's/^/| /' conftest.$ac_ext >&5
14648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14651 # Binary search between lo and hi bounds.
14652 while test "x$ac_lo" != "x$ac_hi"; do
14653 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14654 cat >conftest.$ac_ext <<_ACEOF
14657 cat confdefs.h >>conftest.$ac_ext
14658 cat >>conftest.$ac_ext <<_ACEOF
14659 /* end confdefs.h. */
14660 $ac_includes_default
14664 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14671 rm -f conftest.$ac_objext
14672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14673 (eval $ac_compile) 2>conftest.er1
14675 grep -v '^ *+' conftest.er1 >conftest.err
14677 cat conftest.err >&5
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); } &&
14680 { ac_try='test -z "$ac_c_werror_flag"
14681 || test ! -s conftest.err'
14682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14683 (eval $ac_try) 2>&5
14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); }; } &&
14687 { ac_try='test -s conftest.$ac_objext'
14688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14689 (eval $ac_try) 2>&5
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); }; }; then
14695 echo "$as_me: failed program was:" >&5
14696 sed 's/^/| /' conftest.$ac_ext >&5
14698 ac_lo=`expr '(' $ac_mid ')' + 1`
14700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14703 ?*) ac_cv_sizeof_short=$ac_lo;;
14704 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14705 See \`config.log' for more details." >&5
14706 echo "$as_me: error: cannot compute sizeof (short), 77
14707 See \`config.log' for more details." >&2;}
14708 { (exit 1); exit 1; }; } ;;
14711 if test "$cross_compiling" = yes; then
14712 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14713 See \`config.log' for more details." >&5
14714 echo "$as_me: error: cannot run test program while cross compiling
14715 See \`config.log' for more details." >&2;}
14716 { (exit 1); exit 1; }; }
14718 cat >conftest.$ac_ext <<_ACEOF
14721 cat confdefs.h >>conftest.$ac_ext
14722 cat >>conftest.$ac_ext <<_ACEOF
14723 /* end confdefs.h. */
14724 $ac_includes_default
14725 long longval () { return (long) (sizeof (short)); }
14726 unsigned long ulongval () { return (long) (sizeof (short)); }
14728 #include <stdlib.h>
14733 FILE *f = fopen ("conftest.val", "w");
14736 if (((long) (sizeof (short))) < 0)
14738 long i = longval ();
14739 if (i != ((long) (sizeof (short))))
14741 fprintf (f, "%ld\n", i);
14745 unsigned long i = ulongval ();
14746 if (i != ((long) (sizeof (short))))
14748 fprintf (f, "%lu\n", i);
14750 exit (ferror (f) || fclose (f) != 0);
14756 rm -f conftest$ac_exeext
14757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14758 (eval $ac_link) 2>&5
14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14763 (eval $ac_try) 2>&5
14765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766 (exit $ac_status); }; }; then
14767 ac_cv_sizeof_short=`cat conftest.val`
14769 echo "$as_me: program exited with status $ac_status" >&5
14770 echo "$as_me: failed program was:" >&5
14771 sed 's/^/| /' conftest.$ac_ext >&5
14773 ( exit $ac_status )
14774 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14775 See \`config.log' for more details." >&5
14776 echo "$as_me: error: cannot compute sizeof (short), 77
14777 See \`config.log' for more details." >&2;}
14778 { (exit 1); exit 1; }; }
14780 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14785 ac_cv_sizeof_short=0
14788 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14789 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14790 cat >>confdefs.h <<_ACEOF
14791 #define SIZEOF_SHORT $ac_cv_sizeof_short
14795 echo "$as_me:$LINENO: checking for char" >&5
14796 echo $ECHO_N "checking for char... $ECHO_C" >&6
14797 if test "${ac_cv_type_char+set}" = set; then
14798 echo $ECHO_N "(cached) $ECHO_C" >&6
14800 cat >conftest.$ac_ext <<_ACEOF
14803 cat confdefs.h >>conftest.$ac_ext
14804 cat >>conftest.$ac_ext <<_ACEOF
14805 /* end confdefs.h. */
14806 $ac_includes_default
14818 rm -f conftest.$ac_objext
14819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14820 (eval $ac_compile) 2>conftest.er1
14822 grep -v '^ *+' conftest.er1 >conftest.err
14824 cat conftest.err >&5
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); } &&
14827 { ac_try='test -z "$ac_c_werror_flag"
14828 || test ! -s conftest.err'
14829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14830 (eval $ac_try) 2>&5
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); }; } &&
14834 { ac_try='test -s conftest.$ac_objext'
14835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14836 (eval $ac_try) 2>&5
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); }; }; then
14840 ac_cv_type_char=yes
14842 echo "$as_me: failed program was:" >&5
14843 sed 's/^/| /' conftest.$ac_ext >&5
14847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14849 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14850 echo "${ECHO_T}$ac_cv_type_char" >&6
14852 echo "$as_me:$LINENO: checking size of char" >&5
14853 echo $ECHO_N "checking size of char... $ECHO_C" >&6
14854 if test "${ac_cv_sizeof_char+set}" = set; then
14855 echo $ECHO_N "(cached) $ECHO_C" >&6
14857 if test "$ac_cv_type_char" = yes; then
14858 # The cast to unsigned long works around a bug in the HP C Compiler
14859 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14860 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14861 # This bug is HP SR number 8606223364.
14862 if test "$cross_compiling" = yes; then
14863 # Depending upon the size, compute the lo and hi bounds.
14864 cat >conftest.$ac_ext <<_ACEOF
14867 cat confdefs.h >>conftest.$ac_ext
14868 cat >>conftest.$ac_ext <<_ACEOF
14869 /* end confdefs.h. */
14870 $ac_includes_default
14874 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14881 rm -f conftest.$ac_objext
14882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14883 (eval $ac_compile) 2>conftest.er1
14885 grep -v '^ *+' conftest.er1 >conftest.err
14887 cat conftest.err >&5
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); } &&
14890 { ac_try='test -z "$ac_c_werror_flag"
14891 || test ! -s conftest.err'
14892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14893 (eval $ac_try) 2>&5
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); }; } &&
14897 { ac_try='test -s conftest.$ac_objext'
14898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14899 (eval $ac_try) 2>&5
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); }; }; then
14905 cat >conftest.$ac_ext <<_ACEOF
14908 cat confdefs.h >>conftest.$ac_ext
14909 cat >>conftest.$ac_ext <<_ACEOF
14910 /* end confdefs.h. */
14911 $ac_includes_default
14915 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14922 rm -f conftest.$ac_objext
14923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14924 (eval $ac_compile) 2>conftest.er1
14926 grep -v '^ *+' conftest.er1 >conftest.err
14928 cat conftest.err >&5
14929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930 (exit $ac_status); } &&
14931 { ac_try='test -z "$ac_c_werror_flag"
14932 || test ! -s conftest.err'
14933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14934 (eval $ac_try) 2>&5
14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937 (exit $ac_status); }; } &&
14938 { ac_try='test -s conftest.$ac_objext'
14939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14940 (eval $ac_try) 2>&5
14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943 (exit $ac_status); }; }; then
14944 ac_hi=$ac_mid; break
14946 echo "$as_me: failed program was:" >&5
14947 sed 's/^/| /' conftest.$ac_ext >&5
14949 ac_lo=`expr $ac_mid + 1`
14950 if test $ac_lo -le $ac_mid; then
14954 ac_mid=`expr 2 '*' $ac_mid + 1`
14956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14959 echo "$as_me: failed program was:" >&5
14960 sed 's/^/| /' conftest.$ac_ext >&5
14962 cat >conftest.$ac_ext <<_ACEOF
14965 cat confdefs.h >>conftest.$ac_ext
14966 cat >>conftest.$ac_ext <<_ACEOF
14967 /* end confdefs.h. */
14968 $ac_includes_default
14972 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14979 rm -f conftest.$ac_objext
14980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14981 (eval $ac_compile) 2>conftest.er1
14983 grep -v '^ *+' conftest.er1 >conftest.err
14985 cat conftest.err >&5
14986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987 (exit $ac_status); } &&
14988 { ac_try='test -z "$ac_c_werror_flag"
14989 || test ! -s conftest.err'
14990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14991 (eval $ac_try) 2>&5
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); }; } &&
14995 { ac_try='test -s conftest.$ac_objext'
14996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14997 (eval $ac_try) 2>&5
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); }; }; then
15003 cat >conftest.$ac_ext <<_ACEOF
15006 cat confdefs.h >>conftest.$ac_ext
15007 cat >>conftest.$ac_ext <<_ACEOF
15008 /* end confdefs.h. */
15009 $ac_includes_default
15013 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15020 rm -f conftest.$ac_objext
15021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15022 (eval $ac_compile) 2>conftest.er1
15024 grep -v '^ *+' conftest.er1 >conftest.err
15026 cat conftest.err >&5
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); } &&
15029 { ac_try='test -z "$ac_c_werror_flag"
15030 || test ! -s conftest.err'
15031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15032 (eval $ac_try) 2>&5
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); }; } &&
15036 { ac_try='test -s conftest.$ac_objext'
15037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15038 (eval $ac_try) 2>&5
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); }; }; then
15042 ac_lo=$ac_mid; break
15044 echo "$as_me: failed program was:" >&5
15045 sed 's/^/| /' conftest.$ac_ext >&5
15047 ac_hi=`expr '(' $ac_mid ')' - 1`
15048 if test $ac_mid -le $ac_hi; then
15052 ac_mid=`expr 2 '*' $ac_mid`
15054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15057 echo "$as_me: failed program was:" >&5
15058 sed 's/^/| /' conftest.$ac_ext >&5
15062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15065 # Binary search between lo and hi bounds.
15066 while test "x$ac_lo" != "x$ac_hi"; do
15067 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15068 cat >conftest.$ac_ext <<_ACEOF
15071 cat confdefs.h >>conftest.$ac_ext
15072 cat >>conftest.$ac_ext <<_ACEOF
15073 /* end confdefs.h. */
15074 $ac_includes_default
15078 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15085 rm -f conftest.$ac_objext
15086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15087 (eval $ac_compile) 2>conftest.er1
15089 grep -v '^ *+' conftest.er1 >conftest.err
15091 cat conftest.err >&5
15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093 (exit $ac_status); } &&
15094 { ac_try='test -z "$ac_c_werror_flag"
15095 || test ! -s conftest.err'
15096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15097 (eval $ac_try) 2>&5
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); }; } &&
15101 { ac_try='test -s conftest.$ac_objext'
15102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15103 (eval $ac_try) 2>&5
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); }; }; then
15109 echo "$as_me: failed program was:" >&5
15110 sed 's/^/| /' conftest.$ac_ext >&5
15112 ac_lo=`expr '(' $ac_mid ')' + 1`
15114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15117 ?*) ac_cv_sizeof_char=$ac_lo;;
15118 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15119 See \`config.log' for more details." >&5
15120 echo "$as_me: error: cannot compute sizeof (char), 77
15121 See \`config.log' for more details." >&2;}
15122 { (exit 1); exit 1; }; } ;;
15125 if test "$cross_compiling" = yes; then
15126 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15127 See \`config.log' for more details." >&5
15128 echo "$as_me: error: cannot run test program while cross compiling
15129 See \`config.log' for more details." >&2;}
15130 { (exit 1); exit 1; }; }
15132 cat >conftest.$ac_ext <<_ACEOF
15135 cat confdefs.h >>conftest.$ac_ext
15136 cat >>conftest.$ac_ext <<_ACEOF
15137 /* end confdefs.h. */
15138 $ac_includes_default
15139 long longval () { return (long) (sizeof (char)); }
15140 unsigned long ulongval () { return (long) (sizeof (char)); }
15142 #include <stdlib.h>
15147 FILE *f = fopen ("conftest.val", "w");
15150 if (((long) (sizeof (char))) < 0)
15152 long i = longval ();
15153 if (i != ((long) (sizeof (char))))
15155 fprintf (f, "%ld\n", i);
15159 unsigned long i = ulongval ();
15160 if (i != ((long) (sizeof (char))))
15162 fprintf (f, "%lu\n", i);
15164 exit (ferror (f) || fclose (f) != 0);
15170 rm -f conftest$ac_exeext
15171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15172 (eval $ac_link) 2>&5
15174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15177 (eval $ac_try) 2>&5
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); }; }; then
15181 ac_cv_sizeof_char=`cat conftest.val`
15183 echo "$as_me: program exited with status $ac_status" >&5
15184 echo "$as_me: failed program was:" >&5
15185 sed 's/^/| /' conftest.$ac_ext >&5
15187 ( exit $ac_status )
15188 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15189 See \`config.log' for more details." >&5
15190 echo "$as_me: error: cannot compute sizeof (char), 77
15191 See \`config.log' for more details." >&2;}
15192 { (exit 1); exit 1; }; }
15194 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15199 ac_cv_sizeof_char=0
15202 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15203 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15204 cat >>confdefs.h <<_ACEOF
15205 #define SIZEOF_CHAR $ac_cv_sizeof_char
15210 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
15211 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
15212 case "$ac_cv_sizeof_char" in
15213 1) acx_cv_type_int8_t=char ;;
15214 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
15215 echo "$as_me: error: no 8-bit type" >&2;}
15216 { (exit please report a bug); exit please report a bug; }; }
15218 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
15219 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
15221 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
15222 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
15223 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15224 2:*) acx_cv_type_int16_t=int ;;
15225 *:2) acx_cv_type_int16_t=short ;;
15226 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
15227 echo "$as_me: error: no 16-bit type" >&2;}
15228 { (exit please report a bug); exit please report a bug; }; }
15230 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
15231 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
15233 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
15234 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
15235 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15236 4:*) acx_cv_type_int32_t=int ;;
15237 *:4) acx_cv_type_int32_t=long ;;
15238 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
15239 echo "$as_me: error: no 32-bit type" >&2;}
15240 { (exit please report a bug); exit please report a bug; }; }
15242 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
15243 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
15246 # These tests are here to make the output prettier
15248 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15249 case "$ac_cv_sizeof_long" in
15250 8) acx_cv_type_int64_t=long ;;
15252 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
15253 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
15254 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15255 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
15258 # Now we can use the above types
15260 if test "$ac_cv_type_uintptr_t" != yes; then
15261 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
15262 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
15263 case $ac_cv_sizeof_void_p in
15264 2) acx_cv_type_intptr_t=int16_t ;;
15265 4) acx_cv_type_intptr_t=int32_t ;;
15266 8) acx_cv_type_intptr_t=int64_t ;;
15267 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
15268 echo "$as_me: error: no equivalent for intptr_t" >&2;}
15269 { (exit please report a bug); exit please report a bug; }; }
15271 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
15272 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
15275 # ----------------- done all checks, emit header -------------
15276 ac_config_commands="$ac_config_commands bfd_stdint.h"
15280 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15281 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
15282 if test "${ac_cv_header_time+set}" = set; then
15283 echo $ECHO_N "(cached) $ECHO_C" >&6
15285 cat >conftest.$ac_ext <<_ACEOF
15288 cat confdefs.h >>conftest.$ac_ext
15289 cat >>conftest.$ac_ext <<_ACEOF
15290 /* end confdefs.h. */
15291 #include <sys/types.h>
15292 #include <sys/time.h>
15298 if ((struct tm *) 0)
15304 rm -f conftest.$ac_objext
15305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15306 (eval $ac_compile) 2>conftest.er1
15308 grep -v '^ *+' conftest.er1 >conftest.err
15310 cat conftest.err >&5
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); } &&
15313 { ac_try='test -z "$ac_c_werror_flag"
15314 || test ! -s conftest.err'
15315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15316 (eval $ac_try) 2>&5
15318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319 (exit $ac_status); }; } &&
15320 { ac_try='test -s conftest.$ac_objext'
15321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15322 (eval $ac_try) 2>&5
15324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325 (exit $ac_status); }; }; then
15326 ac_cv_header_time=yes
15328 echo "$as_me: failed program was:" >&5
15329 sed 's/^/| /' conftest.$ac_ext >&5
15331 ac_cv_header_time=no
15333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15335 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15336 echo "${ECHO_T}$ac_cv_header_time" >&6
15337 if test $ac_cv_header_time = yes; then
15339 cat >>confdefs.h <<\_ACEOF
15340 #define TIME_WITH_SYS_TIME 1
15350 ac_header_dirent=no
15351 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15352 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15353 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15354 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
15355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15356 echo $ECHO_N "(cached) $ECHO_C" >&6
15358 cat >conftest.$ac_ext <<_ACEOF
15361 cat confdefs.h >>conftest.$ac_ext
15362 cat >>conftest.$ac_ext <<_ACEOF
15363 /* end confdefs.h. */
15364 #include <sys/types.h>
15376 rm -f conftest.$ac_objext
15377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15378 (eval $ac_compile) 2>conftest.er1
15380 grep -v '^ *+' conftest.er1 >conftest.err
15382 cat conftest.err >&5
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); } &&
15385 { ac_try='test -z "$ac_c_werror_flag"
15386 || test ! -s conftest.err'
15387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15388 (eval $ac_try) 2>&5
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); }; } &&
15392 { ac_try='test -s conftest.$ac_objext'
15393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15394 (eval $ac_try) 2>&5
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); }; }; then
15398 eval "$as_ac_Header=yes"
15400 echo "$as_me: failed program was:" >&5
15401 sed 's/^/| /' conftest.$ac_ext >&5
15403 eval "$as_ac_Header=no"
15405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15408 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15410 cat >>confdefs.h <<_ACEOF
15411 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15414 ac_header_dirent=$ac_hdr; break
15418 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15419 if test $ac_header_dirent = dirent.h; then
15420 echo "$as_me:$LINENO: checking for library containing opendir" >&5
15421 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
15422 if test "${ac_cv_search_opendir+set}" = set; then
15423 echo $ECHO_N "(cached) $ECHO_C" >&6
15425 ac_func_search_save_LIBS=$LIBS
15426 ac_cv_search_opendir=no
15427 cat >conftest.$ac_ext <<_ACEOF
15430 cat confdefs.h >>conftest.$ac_ext
15431 cat >>conftest.$ac_ext <<_ACEOF
15432 /* end confdefs.h. */
15434 /* Override any gcc2 internal prototype to avoid an error. */
15438 /* We use char because int might match the return type of a gcc2
15439 builtin and then its argument prototype would still apply. */
15449 rm -f conftest.$ac_objext conftest$ac_exeext
15450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15451 (eval $ac_link) 2>conftest.er1
15453 grep -v '^ *+' conftest.er1 >conftest.err
15455 cat conftest.err >&5
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); } &&
15458 { ac_try='test -z "$ac_c_werror_flag"
15459 || test ! -s conftest.err'
15460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15461 (eval $ac_try) 2>&5
15463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15464 (exit $ac_status); }; } &&
15465 { ac_try='test -s conftest$ac_exeext'
15466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15467 (eval $ac_try) 2>&5
15469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470 (exit $ac_status); }; }; then
15471 ac_cv_search_opendir="none required"
15473 echo "$as_me: failed program was:" >&5
15474 sed 's/^/| /' conftest.$ac_ext >&5
15477 rm -f conftest.err conftest.$ac_objext \
15478 conftest$ac_exeext conftest.$ac_ext
15479 if test "$ac_cv_search_opendir" = no; then
15480 for ac_lib in dir; do
15481 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15482 cat >conftest.$ac_ext <<_ACEOF
15485 cat confdefs.h >>conftest.$ac_ext
15486 cat >>conftest.$ac_ext <<_ACEOF
15487 /* end confdefs.h. */
15489 /* Override any gcc2 internal prototype to avoid an error. */
15493 /* We use char because int might match the return type of a gcc2
15494 builtin and then its argument prototype would still apply. */
15504 rm -f conftest.$ac_objext conftest$ac_exeext
15505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15506 (eval $ac_link) 2>conftest.er1
15508 grep -v '^ *+' conftest.er1 >conftest.err
15510 cat conftest.err >&5
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); } &&
15513 { ac_try='test -z "$ac_c_werror_flag"
15514 || test ! -s conftest.err'
15515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15516 (eval $ac_try) 2>&5
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); }; } &&
15520 { ac_try='test -s conftest$ac_exeext'
15521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15522 (eval $ac_try) 2>&5
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); }; }; then
15526 ac_cv_search_opendir="-l$ac_lib"
15529 echo "$as_me: failed program was:" >&5
15530 sed 's/^/| /' conftest.$ac_ext >&5
15533 rm -f conftest.err conftest.$ac_objext \
15534 conftest$ac_exeext conftest.$ac_ext
15537 LIBS=$ac_func_search_save_LIBS
15539 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15540 echo "${ECHO_T}$ac_cv_search_opendir" >&6
15541 if test "$ac_cv_search_opendir" != no; then
15542 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
15547 echo "$as_me:$LINENO: checking for library containing opendir" >&5
15548 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
15549 if test "${ac_cv_search_opendir+set}" = set; then
15550 echo $ECHO_N "(cached) $ECHO_C" >&6
15552 ac_func_search_save_LIBS=$LIBS
15553 ac_cv_search_opendir=no
15554 cat >conftest.$ac_ext <<_ACEOF
15557 cat confdefs.h >>conftest.$ac_ext
15558 cat >>conftest.$ac_ext <<_ACEOF
15559 /* end confdefs.h. */
15561 /* Override any gcc2 internal prototype to avoid an error. */
15565 /* We use char because int might match the return type of a gcc2
15566 builtin and then its argument prototype would still apply. */
15576 rm -f conftest.$ac_objext conftest$ac_exeext
15577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15578 (eval $ac_link) 2>conftest.er1
15580 grep -v '^ *+' conftest.er1 >conftest.err
15582 cat conftest.err >&5
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); } &&
15585 { ac_try='test -z "$ac_c_werror_flag"
15586 || test ! -s conftest.err'
15587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15588 (eval $ac_try) 2>&5
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); }; } &&
15592 { ac_try='test -s conftest$ac_exeext'
15593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15594 (eval $ac_try) 2>&5
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); }; }; then
15598 ac_cv_search_opendir="none required"
15600 echo "$as_me: failed program was:" >&5
15601 sed 's/^/| /' conftest.$ac_ext >&5
15604 rm -f conftest.err conftest.$ac_objext \
15605 conftest$ac_exeext conftest.$ac_ext
15606 if test "$ac_cv_search_opendir" = no; then
15607 for ac_lib in x; do
15608 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15609 cat >conftest.$ac_ext <<_ACEOF
15612 cat confdefs.h >>conftest.$ac_ext
15613 cat >>conftest.$ac_ext <<_ACEOF
15614 /* end confdefs.h. */
15616 /* Override any gcc2 internal prototype to avoid an error. */
15620 /* We use char because int might match the return type of a gcc2
15621 builtin and then its argument prototype would still apply. */
15631 rm -f conftest.$ac_objext conftest$ac_exeext
15632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15633 (eval $ac_link) 2>conftest.er1
15635 grep -v '^ *+' conftest.er1 >conftest.err
15637 cat conftest.err >&5
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); } &&
15640 { ac_try='test -z "$ac_c_werror_flag"
15641 || test ! -s conftest.err'
15642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15643 (eval $ac_try) 2>&5
15645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); }; } &&
15647 { ac_try='test -s conftest$ac_exeext'
15648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15649 (eval $ac_try) 2>&5
15651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 (exit $ac_status); }; }; then
15653 ac_cv_search_opendir="-l$ac_lib"
15656 echo "$as_me: failed program was:" >&5
15657 sed 's/^/| /' conftest.$ac_ext >&5
15660 rm -f conftest.err conftest.$ac_objext \
15661 conftest$ac_exeext conftest.$ac_ext
15664 LIBS=$ac_func_search_save_LIBS
15666 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15667 echo "${ECHO_T}$ac_cv_search_opendir" >&6
15668 if test "$ac_cv_search_opendir" != no; then
15669 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
15675 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
15676 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
15677 if test "${gcc_cv_header_string+set}" = set; then
15678 echo $ECHO_N "(cached) $ECHO_C" >&6
15680 cat >conftest.$ac_ext <<_ACEOF
15683 cat confdefs.h >>conftest.$ac_ext
15684 cat >>conftest.$ac_ext <<_ACEOF
15685 /* end confdefs.h. */
15686 #include <string.h>
15687 #include <strings.h>
15696 rm -f conftest.$ac_objext
15697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15698 (eval $ac_compile) 2>conftest.er1
15700 grep -v '^ *+' conftest.er1 >conftest.err
15702 cat conftest.err >&5
15703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704 (exit $ac_status); } &&
15705 { ac_try='test -z "$ac_c_werror_flag"
15706 || test ! -s conftest.err'
15707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15708 (eval $ac_try) 2>&5
15710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711 (exit $ac_status); }; } &&
15712 { ac_try='test -s conftest.$ac_objext'
15713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15714 (eval $ac_try) 2>&5
15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); }; }; then
15718 gcc_cv_header_string=yes
15720 echo "$as_me: failed program was:" >&5
15721 sed 's/^/| /' conftest.$ac_ext >&5
15723 gcc_cv_header_string=no
15725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15727 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
15728 echo "${ECHO_T}$gcc_cv_header_string" >&6
15729 if test $gcc_cv_header_string = yes; then
15731 cat >>confdefs.h <<\_ACEOF
15732 #define STRING_WITH_STRINGS 1
15744 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
15746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15747 echo "$as_me:$LINENO: checking for $ac_func" >&5
15748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15749 if eval "test \"\${$as_ac_var+set}\" = set"; then
15750 echo $ECHO_N "(cached) $ECHO_C" >&6
15752 cat >conftest.$ac_ext <<_ACEOF
15755 cat confdefs.h >>conftest.$ac_ext
15756 cat >>conftest.$ac_ext <<_ACEOF
15757 /* end confdefs.h. */
15758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15760 #define $ac_func innocuous_$ac_func
15762 /* System header to define __stub macros and hopefully few prototypes,
15763 which can conflict with char $ac_func (); below.
15764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15765 <limits.h> exists even on freestanding compilers. */
15768 # include <limits.h>
15770 # include <assert.h>
15775 /* Override any gcc2 internal prototype to avoid an error. */
15780 /* We use char because int might match the return type of a gcc2
15781 builtin and then its argument prototype would still apply. */
15783 /* The GNU C library defines this for functions which it implements
15784 to always fail with ENOSYS. Some functions are actually named
15785 something starting with __ and the normal name is an alias. */
15786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15789 char (*f) () = $ac_func;
15798 return f != $ac_func;
15803 rm -f conftest.$ac_objext conftest$ac_exeext
15804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15805 (eval $ac_link) 2>conftest.er1
15807 grep -v '^ *+' conftest.er1 >conftest.err
15809 cat conftest.err >&5
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); } &&
15812 { ac_try='test -z "$ac_c_werror_flag"
15813 || test ! -s conftest.err'
15814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15815 (eval $ac_try) 2>&5
15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818 (exit $ac_status); }; } &&
15819 { ac_try='test -s conftest$ac_exeext'
15820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15821 (eval $ac_try) 2>&5
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); }; }; then
15825 eval "$as_ac_var=yes"
15827 echo "$as_me: failed program was:" >&5
15828 sed 's/^/| /' conftest.$ac_ext >&5
15830 eval "$as_ac_var=no"
15832 rm -f conftest.err conftest.$ac_objext \
15833 conftest$ac_exeext conftest.$ac_ext
15835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15836 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15837 if test `eval echo '${'$as_ac_var'}'` = yes; then
15838 cat >>confdefs.h <<_ACEOF
15839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15846 for ac_func in strtoull
15848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15849 echo "$as_me:$LINENO: checking for $ac_func" >&5
15850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15851 if eval "test \"\${$as_ac_var+set}\" = set"; then
15852 echo $ECHO_N "(cached) $ECHO_C" >&6
15854 cat >conftest.$ac_ext <<_ACEOF
15857 cat confdefs.h >>conftest.$ac_ext
15858 cat >>conftest.$ac_ext <<_ACEOF
15859 /* end confdefs.h. */
15860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15862 #define $ac_func innocuous_$ac_func
15864 /* System header to define __stub macros and hopefully few prototypes,
15865 which can conflict with char $ac_func (); below.
15866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15867 <limits.h> exists even on freestanding compilers. */
15870 # include <limits.h>
15872 # include <assert.h>
15877 /* Override any gcc2 internal prototype to avoid an error. */
15882 /* We use char because int might match the return type of a gcc2
15883 builtin and then its argument prototype would still apply. */
15885 /* The GNU C library defines this for functions which it implements
15886 to always fail with ENOSYS. Some functions are actually named
15887 something starting with __ and the normal name is an alias. */
15888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15891 char (*f) () = $ac_func;
15900 return f != $ac_func;
15905 rm -f conftest.$ac_objext conftest$ac_exeext
15906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15907 (eval $ac_link) 2>conftest.er1
15909 grep -v '^ *+' conftest.er1 >conftest.err
15911 cat conftest.err >&5
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); } &&
15914 { ac_try='test -z "$ac_c_werror_flag"
15915 || test ! -s conftest.err'
15916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15917 (eval $ac_try) 2>&5
15919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920 (exit $ac_status); }; } &&
15921 { ac_try='test -s conftest$ac_exeext'
15922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15923 (eval $ac_try) 2>&5
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); }; }; then
15927 eval "$as_ac_var=yes"
15929 echo "$as_me: failed program was:" >&5
15930 sed 's/^/| /' conftest.$ac_ext >&5
15932 eval "$as_ac_var=no"
15934 rm -f conftest.err conftest.$ac_objext \
15935 conftest$ac_exeext conftest.$ac_ext
15937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15938 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15939 if test `eval echo '${'$as_ac_var'}'` = yes; then
15940 cat >>confdefs.h <<_ACEOF
15941 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15948 echo "$as_me:$LINENO: checking whether basename is declared" >&5
15949 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
15950 if test "${ac_cv_have_decl_basename+set}" = set; then
15951 echo $ECHO_N "(cached) $ECHO_C" >&6
15953 cat >conftest.$ac_ext <<_ACEOF
15956 cat confdefs.h >>conftest.$ac_ext
15957 cat >>conftest.$ac_ext <<_ACEOF
15958 /* end confdefs.h. */
15959 $ac_includes_default
15964 char *p = (char *) basename;
15971 rm -f conftest.$ac_objext
15972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15973 (eval $ac_compile) 2>conftest.er1
15975 grep -v '^ *+' conftest.er1 >conftest.err
15977 cat conftest.err >&5
15978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979 (exit $ac_status); } &&
15980 { ac_try='test -z "$ac_c_werror_flag"
15981 || test ! -s conftest.err'
15982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15983 (eval $ac_try) 2>&5
15985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986 (exit $ac_status); }; } &&
15987 { ac_try='test -s conftest.$ac_objext'
15988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15989 (eval $ac_try) 2>&5
15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); }; }; then
15993 ac_cv_have_decl_basename=yes
15995 echo "$as_me: failed program was:" >&5
15996 sed 's/^/| /' conftest.$ac_ext >&5
15998 ac_cv_have_decl_basename=no
16000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16002 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
16003 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
16004 if test $ac_cv_have_decl_basename = yes; then
16006 cat >>confdefs.h <<_ACEOF
16007 #define HAVE_DECL_BASENAME 1
16012 cat >>confdefs.h <<_ACEOF
16013 #define HAVE_DECL_BASENAME 0
16020 echo "$as_me:$LINENO: checking whether ftello is declared" >&5
16021 echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
16022 if test "${ac_cv_have_decl_ftello+set}" = set; then
16023 echo $ECHO_N "(cached) $ECHO_C" >&6
16025 cat >conftest.$ac_ext <<_ACEOF
16028 cat confdefs.h >>conftest.$ac_ext
16029 cat >>conftest.$ac_ext <<_ACEOF
16030 /* end confdefs.h. */
16031 $ac_includes_default
16036 char *p = (char *) ftello;
16043 rm -f conftest.$ac_objext
16044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16045 (eval $ac_compile) 2>conftest.er1
16047 grep -v '^ *+' conftest.er1 >conftest.err
16049 cat conftest.err >&5
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); } &&
16052 { ac_try='test -z "$ac_c_werror_flag"
16053 || test ! -s conftest.err'
16054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16055 (eval $ac_try) 2>&5
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); }; } &&
16059 { ac_try='test -s conftest.$ac_objext'
16060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16061 (eval $ac_try) 2>&5
16063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064 (exit $ac_status); }; }; then
16065 ac_cv_have_decl_ftello=yes
16067 echo "$as_me: failed program was:" >&5
16068 sed 's/^/| /' conftest.$ac_ext >&5
16070 ac_cv_have_decl_ftello=no
16072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16074 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
16075 echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
16076 if test $ac_cv_have_decl_ftello = yes; then
16078 cat >>confdefs.h <<_ACEOF
16079 #define HAVE_DECL_FTELLO 1
16084 cat >>confdefs.h <<_ACEOF
16085 #define HAVE_DECL_FTELLO 0
16092 echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
16093 echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
16094 if test "${ac_cv_have_decl_ftello64+set}" = set; then
16095 echo $ECHO_N "(cached) $ECHO_C" >&6
16097 cat >conftest.$ac_ext <<_ACEOF
16100 cat confdefs.h >>conftest.$ac_ext
16101 cat >>conftest.$ac_ext <<_ACEOF
16102 /* end confdefs.h. */
16103 $ac_includes_default
16108 char *p = (char *) ftello64;
16115 rm -f conftest.$ac_objext
16116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16117 (eval $ac_compile) 2>conftest.er1
16119 grep -v '^ *+' conftest.er1 >conftest.err
16121 cat conftest.err >&5
16122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123 (exit $ac_status); } &&
16124 { ac_try='test -z "$ac_c_werror_flag"
16125 || test ! -s conftest.err'
16126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16127 (eval $ac_try) 2>&5
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); }; } &&
16131 { ac_try='test -s conftest.$ac_objext'
16132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16133 (eval $ac_try) 2>&5
16135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 (exit $ac_status); }; }; then
16137 ac_cv_have_decl_ftello64=yes
16139 echo "$as_me: failed program was:" >&5
16140 sed 's/^/| /' conftest.$ac_ext >&5
16142 ac_cv_have_decl_ftello64=no
16144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16146 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
16147 echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
16148 if test $ac_cv_have_decl_ftello64 = yes; then
16150 cat >>confdefs.h <<_ACEOF
16151 #define HAVE_DECL_FTELLO64 1
16156 cat >>confdefs.h <<_ACEOF
16157 #define HAVE_DECL_FTELLO64 0
16164 echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
16165 echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
16166 if test "${ac_cv_have_decl_fseeko+set}" = set; then
16167 echo $ECHO_N "(cached) $ECHO_C" >&6
16169 cat >conftest.$ac_ext <<_ACEOF
16172 cat confdefs.h >>conftest.$ac_ext
16173 cat >>conftest.$ac_ext <<_ACEOF
16174 /* end confdefs.h. */
16175 $ac_includes_default
16180 char *p = (char *) fseeko;
16187 rm -f conftest.$ac_objext
16188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16189 (eval $ac_compile) 2>conftest.er1
16191 grep -v '^ *+' conftest.er1 >conftest.err
16193 cat conftest.err >&5
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); } &&
16196 { ac_try='test -z "$ac_c_werror_flag"
16197 || test ! -s conftest.err'
16198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16199 (eval $ac_try) 2>&5
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); }; } &&
16203 { ac_try='test -s conftest.$ac_objext'
16204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16205 (eval $ac_try) 2>&5
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); }; }; then
16209 ac_cv_have_decl_fseeko=yes
16211 echo "$as_me: failed program was:" >&5
16212 sed 's/^/| /' conftest.$ac_ext >&5
16214 ac_cv_have_decl_fseeko=no
16216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16218 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
16219 echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
16220 if test $ac_cv_have_decl_fseeko = yes; then
16222 cat >>confdefs.h <<_ACEOF
16223 #define HAVE_DECL_FSEEKO 1
16228 cat >>confdefs.h <<_ACEOF
16229 #define HAVE_DECL_FSEEKO 0
16236 echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
16237 echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
16238 if test "${ac_cv_have_decl_fseeko64+set}" = set; then
16239 echo $ECHO_N "(cached) $ECHO_C" >&6
16241 cat >conftest.$ac_ext <<_ACEOF
16244 cat confdefs.h >>conftest.$ac_ext
16245 cat >>conftest.$ac_ext <<_ACEOF
16246 /* end confdefs.h. */
16247 $ac_includes_default
16252 char *p = (char *) fseeko64;
16259 rm -f conftest.$ac_objext
16260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16261 (eval $ac_compile) 2>conftest.er1
16263 grep -v '^ *+' conftest.er1 >conftest.err
16265 cat conftest.err >&5
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); } &&
16268 { ac_try='test -z "$ac_c_werror_flag"
16269 || test ! -s conftest.err'
16270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16271 (eval $ac_try) 2>&5
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); }; } &&
16275 { ac_try='test -s conftest.$ac_objext'
16276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16277 (eval $ac_try) 2>&5
16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); }; }; then
16281 ac_cv_have_decl_fseeko64=yes
16283 echo "$as_me: failed program was:" >&5
16284 sed 's/^/| /' conftest.$ac_ext >&5
16286 ac_cv_have_decl_fseeko64=no
16288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16290 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
16291 echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
16292 if test $ac_cv_have_decl_fseeko64 = yes; then
16294 cat >>confdefs.h <<_ACEOF
16295 #define HAVE_DECL_FSEEKO64 1
16300 cat >>confdefs.h <<_ACEOF
16301 #define HAVE_DECL_FSEEKO64 0
16311 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
16313 cat >>confdefs.h <<\_ACEOF
16314 #define USE_BINARY_FOPEN 1
16319 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
16320 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
16321 if test "${ac_cv_have_decl_ffs+set}" = set; then
16322 echo $ECHO_N "(cached) $ECHO_C" >&6
16324 cat >conftest.$ac_ext <<_ACEOF
16327 cat confdefs.h >>conftest.$ac_ext
16328 cat >>conftest.$ac_ext <<_ACEOF
16329 /* end confdefs.h. */
16330 $ac_includes_default
16335 char *p = (char *) ffs;
16342 rm -f conftest.$ac_objext
16343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16344 (eval $ac_compile) 2>conftest.er1
16346 grep -v '^ *+' conftest.er1 >conftest.err
16348 cat conftest.err >&5
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); } &&
16351 { ac_try='test -z "$ac_c_werror_flag"
16352 || test ! -s conftest.err'
16353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16354 (eval $ac_try) 2>&5
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); }; } &&
16358 { ac_try='test -s conftest.$ac_objext'
16359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16360 (eval $ac_try) 2>&5
16362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363 (exit $ac_status); }; }; then
16364 ac_cv_have_decl_ffs=yes
16366 echo "$as_me: failed program was:" >&5
16367 sed 's/^/| /' conftest.$ac_ext >&5
16369 ac_cv_have_decl_ffs=no
16371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16373 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
16374 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
16375 if test $ac_cv_have_decl_ffs = yes; then
16377 cat >>confdefs.h <<_ACEOF
16378 #define HAVE_DECL_FFS 1
16383 cat >>confdefs.h <<_ACEOF
16384 #define HAVE_DECL_FFS 0
16391 echo "$as_me:$LINENO: checking whether free is declared" >&5
16392 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
16393 if test "${ac_cv_have_decl_free+set}" = set; then
16394 echo $ECHO_N "(cached) $ECHO_C" >&6
16396 cat >conftest.$ac_ext <<_ACEOF
16399 cat confdefs.h >>conftest.$ac_ext
16400 cat >>conftest.$ac_ext <<_ACEOF
16401 /* end confdefs.h. */
16402 $ac_includes_default
16407 char *p = (char *) free;
16414 rm -f conftest.$ac_objext
16415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16416 (eval $ac_compile) 2>conftest.er1
16418 grep -v '^ *+' conftest.er1 >conftest.err
16420 cat conftest.err >&5
16421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422 (exit $ac_status); } &&
16423 { ac_try='test -z "$ac_c_werror_flag"
16424 || test ! -s conftest.err'
16425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16426 (eval $ac_try) 2>&5
16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); }; } &&
16430 { ac_try='test -s conftest.$ac_objext'
16431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16432 (eval $ac_try) 2>&5
16434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435 (exit $ac_status); }; }; then
16436 ac_cv_have_decl_free=yes
16438 echo "$as_me: failed program was:" >&5
16439 sed 's/^/| /' conftest.$ac_ext >&5
16441 ac_cv_have_decl_free=no
16443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16445 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
16446 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
16447 if test $ac_cv_have_decl_free = yes; then
16449 cat >>confdefs.h <<_ACEOF
16450 #define HAVE_DECL_FREE 1
16455 cat >>confdefs.h <<_ACEOF
16456 #define HAVE_DECL_FREE 0
16463 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
16464 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
16465 if test "${ac_cv_have_decl_getenv+set}" = set; then
16466 echo $ECHO_N "(cached) $ECHO_C" >&6
16468 cat >conftest.$ac_ext <<_ACEOF
16471 cat confdefs.h >>conftest.$ac_ext
16472 cat >>conftest.$ac_ext <<_ACEOF
16473 /* end confdefs.h. */
16474 $ac_includes_default
16479 char *p = (char *) getenv;
16486 rm -f conftest.$ac_objext
16487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16488 (eval $ac_compile) 2>conftest.er1
16490 grep -v '^ *+' conftest.er1 >conftest.err
16492 cat conftest.err >&5
16493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); } &&
16495 { ac_try='test -z "$ac_c_werror_flag"
16496 || test ! -s conftest.err'
16497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16498 (eval $ac_try) 2>&5
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); }; } &&
16502 { ac_try='test -s conftest.$ac_objext'
16503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16504 (eval $ac_try) 2>&5
16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507 (exit $ac_status); }; }; then
16508 ac_cv_have_decl_getenv=yes
16510 echo "$as_me: failed program was:" >&5
16511 sed 's/^/| /' conftest.$ac_ext >&5
16513 ac_cv_have_decl_getenv=no
16515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16517 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
16518 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
16519 if test $ac_cv_have_decl_getenv = yes; then
16521 cat >>confdefs.h <<_ACEOF
16522 #define HAVE_DECL_GETENV 1
16527 cat >>confdefs.h <<_ACEOF
16528 #define HAVE_DECL_GETENV 0
16535 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
16536 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
16537 if test "${ac_cv_have_decl_malloc+set}" = set; then
16538 echo $ECHO_N "(cached) $ECHO_C" >&6
16540 cat >conftest.$ac_ext <<_ACEOF
16543 cat confdefs.h >>conftest.$ac_ext
16544 cat >>conftest.$ac_ext <<_ACEOF
16545 /* end confdefs.h. */
16546 $ac_includes_default
16551 char *p = (char *) malloc;
16558 rm -f conftest.$ac_objext
16559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16560 (eval $ac_compile) 2>conftest.er1
16562 grep -v '^ *+' conftest.er1 >conftest.err
16564 cat conftest.err >&5
16565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); } &&
16567 { ac_try='test -z "$ac_c_werror_flag"
16568 || test ! -s conftest.err'
16569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16570 (eval $ac_try) 2>&5
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); }; } &&
16574 { ac_try='test -s conftest.$ac_objext'
16575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16576 (eval $ac_try) 2>&5
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); }; }; then
16580 ac_cv_have_decl_malloc=yes
16582 echo "$as_me: failed program was:" >&5
16583 sed 's/^/| /' conftest.$ac_ext >&5
16585 ac_cv_have_decl_malloc=no
16587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16589 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
16590 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
16591 if test $ac_cv_have_decl_malloc = yes; then
16593 cat >>confdefs.h <<_ACEOF
16594 #define HAVE_DECL_MALLOC 1
16599 cat >>confdefs.h <<_ACEOF
16600 #define HAVE_DECL_MALLOC 0
16607 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
16608 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
16609 if test "${ac_cv_have_decl_realloc+set}" = set; then
16610 echo $ECHO_N "(cached) $ECHO_C" >&6
16612 cat >conftest.$ac_ext <<_ACEOF
16615 cat confdefs.h >>conftest.$ac_ext
16616 cat >>conftest.$ac_ext <<_ACEOF
16617 /* end confdefs.h. */
16618 $ac_includes_default
16623 char *p = (char *) realloc;
16630 rm -f conftest.$ac_objext
16631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16632 (eval $ac_compile) 2>conftest.er1
16634 grep -v '^ *+' conftest.er1 >conftest.err
16636 cat conftest.err >&5
16637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638 (exit $ac_status); } &&
16639 { ac_try='test -z "$ac_c_werror_flag"
16640 || test ! -s conftest.err'
16641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16642 (eval $ac_try) 2>&5
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); }; } &&
16646 { ac_try='test -s conftest.$ac_objext'
16647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16648 (eval $ac_try) 2>&5
16650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651 (exit $ac_status); }; }; then
16652 ac_cv_have_decl_realloc=yes
16654 echo "$as_me: failed program was:" >&5
16655 sed 's/^/| /' conftest.$ac_ext >&5
16657 ac_cv_have_decl_realloc=no
16659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16661 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
16662 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
16663 if test $ac_cv_have_decl_realloc = yes; then
16665 cat >>confdefs.h <<_ACEOF
16666 #define HAVE_DECL_REALLOC 1
16671 cat >>confdefs.h <<_ACEOF
16672 #define HAVE_DECL_REALLOC 0
16679 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
16680 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
16681 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
16682 echo $ECHO_N "(cached) $ECHO_C" >&6
16684 cat >conftest.$ac_ext <<_ACEOF
16687 cat confdefs.h >>conftest.$ac_ext
16688 cat >>conftest.$ac_ext <<_ACEOF
16689 /* end confdefs.h. */
16690 $ac_includes_default
16695 char *p = (char *) stpcpy;
16702 rm -f conftest.$ac_objext
16703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16704 (eval $ac_compile) 2>conftest.er1
16706 grep -v '^ *+' conftest.er1 >conftest.err
16708 cat conftest.err >&5
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); } &&
16711 { ac_try='test -z "$ac_c_werror_flag"
16712 || test ! -s conftest.err'
16713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16714 (eval $ac_try) 2>&5
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); }; } &&
16718 { ac_try='test -s conftest.$ac_objext'
16719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16720 (eval $ac_try) 2>&5
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; }; then
16724 ac_cv_have_decl_stpcpy=yes
16726 echo "$as_me: failed program was:" >&5
16727 sed 's/^/| /' conftest.$ac_ext >&5
16729 ac_cv_have_decl_stpcpy=no
16731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16733 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
16734 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
16735 if test $ac_cv_have_decl_stpcpy = yes; then
16737 cat >>confdefs.h <<_ACEOF
16738 #define HAVE_DECL_STPCPY 1
16743 cat >>confdefs.h <<_ACEOF
16744 #define HAVE_DECL_STPCPY 0
16751 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
16752 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
16753 if test "${ac_cv_have_decl_strstr+set}" = set; then
16754 echo $ECHO_N "(cached) $ECHO_C" >&6
16756 cat >conftest.$ac_ext <<_ACEOF
16759 cat confdefs.h >>conftest.$ac_ext
16760 cat >>conftest.$ac_ext <<_ACEOF
16761 /* end confdefs.h. */
16762 $ac_includes_default
16767 char *p = (char *) strstr;
16774 rm -f conftest.$ac_objext
16775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16776 (eval $ac_compile) 2>conftest.er1
16778 grep -v '^ *+' conftest.er1 >conftest.err
16780 cat conftest.err >&5
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); } &&
16783 { ac_try='test -z "$ac_c_werror_flag"
16784 || test ! -s conftest.err'
16785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16786 (eval $ac_try) 2>&5
16788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789 (exit $ac_status); }; } &&
16790 { ac_try='test -s conftest.$ac_objext'
16791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16792 (eval $ac_try) 2>&5
16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795 (exit $ac_status); }; }; then
16796 ac_cv_have_decl_strstr=yes
16798 echo "$as_me: failed program was:" >&5
16799 sed 's/^/| /' conftest.$ac_ext >&5
16801 ac_cv_have_decl_strstr=no
16803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16805 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
16806 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
16807 if test $ac_cv_have_decl_strstr = yes; then
16809 cat >>confdefs.h <<_ACEOF
16810 #define HAVE_DECL_STRSTR 1
16815 cat >>confdefs.h <<_ACEOF
16816 #define HAVE_DECL_STRSTR 0
16823 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
16824 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
16825 if test "${ac_cv_have_decl_snprintf+set}" = set; then
16826 echo $ECHO_N "(cached) $ECHO_C" >&6
16828 cat >conftest.$ac_ext <<_ACEOF
16831 cat confdefs.h >>conftest.$ac_ext
16832 cat >>conftest.$ac_ext <<_ACEOF
16833 /* end confdefs.h. */
16834 $ac_includes_default
16839 char *p = (char *) snprintf;
16846 rm -f conftest.$ac_objext
16847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16848 (eval $ac_compile) 2>conftest.er1
16850 grep -v '^ *+' conftest.er1 >conftest.err
16852 cat conftest.err >&5
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); } &&
16855 { ac_try='test -z "$ac_c_werror_flag"
16856 || test ! -s conftest.err'
16857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16858 (eval $ac_try) 2>&5
16860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861 (exit $ac_status); }; } &&
16862 { ac_try='test -s conftest.$ac_objext'
16863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16864 (eval $ac_try) 2>&5
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); }; }; then
16868 ac_cv_have_decl_snprintf=yes
16870 echo "$as_me: failed program was:" >&5
16871 sed 's/^/| /' conftest.$ac_ext >&5
16873 ac_cv_have_decl_snprintf=no
16875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16877 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
16878 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
16879 if test $ac_cv_have_decl_snprintf = yes; then
16881 cat >>confdefs.h <<_ACEOF
16882 #define HAVE_DECL_SNPRINTF 1
16887 cat >>confdefs.h <<_ACEOF
16888 #define HAVE_DECL_SNPRINTF 0
16895 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
16896 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
16897 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
16898 echo $ECHO_N "(cached) $ECHO_C" >&6
16900 cat >conftest.$ac_ext <<_ACEOF
16903 cat confdefs.h >>conftest.$ac_ext
16904 cat >>conftest.$ac_ext <<_ACEOF
16905 /* end confdefs.h. */
16906 $ac_includes_default
16911 char *p = (char *) vsnprintf;
16918 rm -f conftest.$ac_objext
16919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16920 (eval $ac_compile) 2>conftest.er1
16922 grep -v '^ *+' conftest.er1 >conftest.err
16924 cat conftest.err >&5
16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926 (exit $ac_status); } &&
16927 { ac_try='test -z "$ac_c_werror_flag"
16928 || test ! -s conftest.err'
16929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16930 (eval $ac_try) 2>&5
16932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933 (exit $ac_status); }; } &&
16934 { ac_try='test -s conftest.$ac_objext'
16935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16936 (eval $ac_try) 2>&5
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); }; }; then
16940 ac_cv_have_decl_vsnprintf=yes
16942 echo "$as_me: failed program was:" >&5
16943 sed 's/^/| /' conftest.$ac_ext >&5
16945 ac_cv_have_decl_vsnprintf=no
16947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16949 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
16950 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
16951 if test $ac_cv_have_decl_vsnprintf = yes; then
16953 cat >>confdefs.h <<_ACEOF
16954 #define HAVE_DECL_VSNPRINTF 1
16959 cat >>confdefs.h <<_ACEOF
16960 #define HAVE_DECL_VSNPRINTF 0
16968 # If we are configured native, pick a core file support file.
16972 if test "${target}" = "${host}"; then
16974 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
16978 COREFILE=trad-core.lo
16979 TRAD_HEADER='"hosts/alphalinux.h"'
16981 alpha*-*-netbsd* | alpha*-*-openbsd*)
16982 COREFILE=netbsd-core.lo
16984 alpha*-*-*) COREFILE=osf-core.lo ;;
16985 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
16987 arm-*-netbsd* | arm-*-openbsd*)
16988 COREFILE=netbsd-core.lo
16990 arm-*-riscix) COREFILE=trad-core.lo ;;
16991 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
16992 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
16993 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
16994 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
16995 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
16996 hppa*-*-netbsd* | hppa*-*-openbsd*)
16997 COREFILE=netbsd-core.lo
17001 COREFILE=trad-core.lo
17002 TRAD_HEADER='"hosts/i370linux.h"'
17005 i[3-7]86-sequent-bsd*)
17006 COREFILE=trad-core.lo
17007 TRAD_HEADER='"hosts/symmetry.h"'
17009 i[3-7]86-sequent-sysv4*) ;;
17010 i[3-7]86-sequent-sysv*)
17011 COREFILE=trad-core.lo
17012 TRAD_HEADER='"hosts/symmetry.h"'
17017 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*)
17018 COREFILE=trad-core.lo
17019 TRAD_HEADER='"hosts/i386bsd.h"'
17021 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
17023 TRAD_HEADER='"hosts/i386bsd.h"'
17025 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
17026 COREFILE=netbsd-core.lo
17028 i[3-7]86-esix-sysv3*)
17029 COREFILE=trad-core.lo
17030 TRAD_HEADER='"hosts/esix.h"'
17032 i[3-7]86-*-sco3.2v5*)
17033 COREFILE=sco5-core.lo
17035 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
17036 COREFILE=trad-core.lo
17037 TRAD_HEADER='"hosts/i386sco.h"'
17040 COREFILE=trad-core.lo
17041 TRAD_HEADER='"hosts/i386mach3.h"'
17043 i[3-7]86-*-linux-*)
17044 COREFILE=trad-core.lo
17045 TRAD_HEADER='"hosts/i386linux.h"'
17047 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
17048 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
17049 i860-*-mach3* | i860-*-osf1*)
17050 COREFILE=trad-core.lo
17051 TRAD_HEADER='"hosts/i860mach3.h"'
17053 mips-*-netbsd* | mips*-*-openbsd*)
17054 COREFILE=netbsd-core.lo
17057 COREFILE=trad-core.lo
17058 TRAD_HEADER='"hosts/decstation.h"'
17060 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
17061 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
17062 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
17064 mips-*-sysv* | mips-*-riscos*)
17065 COREFILE=trad-core.lo
17066 TRAD_HEADER='"hosts/riscos.h"'
17069 COREFILE=trad-core.lo
17070 TRAD_HEADER='"hosts/news-mips.h"'
17073 COREFILE=trad-core.lo
17074 TRAD_HEADER='"hosts/dpx2.h"'
17076 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
17078 COREFILE=trad-core.lo
17079 TRAD_HEADER='"hosts/hp300bsd.h"'
17082 COREFILE=trad-core.lo
17083 TRAD_HEADER='"hosts/m68klinux.h"'
17085 m68*-motorola-sysv*)
17086 COREFILE=trad-core.lo
17087 TRAD_HEADER='"hosts/delta68.h"'
17090 COREFILE=trad-core.lo
17091 TRAD_HEADER='"hosts/news.h"'
17093 m68*-*-netbsd* | m68*-*-openbsd*)
17094 COREFILE=netbsd-core.lo
17097 COREFILE=trad-core.lo
17098 TRAD_HEADER='"hosts/m68kaux.h"'
17102 m88*-motorola-sysv*)
17103 COREFILE=ptrace-core.lo
17106 COREFILE=trad-core.lo
17107 TRAD_HEADER='"hosts/m88kmach3.h"'
17110 COREFILE=netbsd-core.lo
17113 COREFILE=trad-core.lo
17114 TRAD_HEADER='"hosts/pc532mach.h"'
17116 ns32k-*-netbsd* | ns32k-*-openbsd*)
17117 COREFILE=netbsd-core.lo
17120 COREFILE=lynx-core.lo
17122 rs6000-*-aix5.* | powerpc-*-aix5.*)
17123 COREFILE=rs6000-core.lo
17124 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
17126 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
17127 COREFILE=rs6000-core.lo
17128 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
17129 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
17130 # have c_impl as a member of struct core_dumpx
17131 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
17132 echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
17133 cat >conftest.$ac_ext <<_ACEOF
17136 cat confdefs.h >>conftest.$ac_ext
17137 cat >>conftest.$ac_ext <<_ACEOF
17138 /* end confdefs.h. */
17143 struct core_dumpx c; c.c_impl = 0;
17148 rm -f conftest.$ac_objext
17149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17150 (eval $ac_compile) 2>conftest.er1
17152 grep -v '^ *+' conftest.er1 >conftest.err
17154 cat conftest.err >&5
17155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156 (exit $ac_status); } &&
17157 { ac_try='test -z "$ac_c_werror_flag"
17158 || test ! -s conftest.err'
17159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17160 (eval $ac_try) 2>&5
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); }; } &&
17164 { ac_try='test -s conftest.$ac_objext'
17165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17166 (eval $ac_try) 2>&5
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); }; }; then
17171 cat >>confdefs.h <<\_ACEOF
17172 #define HAVE_ST_C_IMPL 1
17175 echo "$as_me:$LINENO: result: yes" >&5
17176 echo "${ECHO_T}yes" >&6
17178 echo "$as_me: failed program was:" >&5
17179 sed 's/^/| /' conftest.$ac_ext >&5
17181 echo "$as_me:$LINENO: result: no" >&5
17182 echo "${ECHO_T}no" >&6
17184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17186 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
17187 rs6000-*-*) COREFILE=rs6000-core.lo ;;
17188 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
17189 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
17190 powerpc-*-beos*) ;;
17191 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
17193 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
17194 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
17195 s390*-*-*) COREFILE=trad-core.lo ;;
17196 sh*-*-netbsd* | sh*-*-openbsd*)
17197 COREFILE=netbsd-core.lo
17199 sparc-*-netbsd* | sparc*-*-openbsd*)
17200 COREFILE=netbsd-core.lo
17203 COREFILE=trad-core.lo
17204 TRAD_HEADER='"hosts/tahoe.h"'
17206 vax-*-netbsd* | vax-*-openbsd*)
17207 COREFILE=netbsd-core.lo
17210 COREFILE=trad-core.lo
17211 TRAD_HEADER='"hosts/vaxult2.h"'
17214 COREFILE=trad-core.lo
17215 TRAD_HEADER='"hosts/vaxult2.h"'
17218 COREFILE=trad-core.lo
17219 TRAD_HEADER='"hosts/vaxlinux.h"'
17222 COREFILE=trad-core.lo
17223 TRAD_HEADER='"hosts/vaxbsd.h"'
17225 x86_64-*-netbsd* | x86_64-*-openbsd*)
17226 COREFILE=netbsd-core.lo
17230 case "$COREFILE" in
17231 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
17232 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
17233 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
17234 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
17235 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
17236 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
17237 osf-core.lo) COREFLAG=-DOSF_CORE ;;
17238 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
17239 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
17240 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
17241 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
17244 # ELF corefile support has several flavors, but all of
17245 # them use something called <sys/procfs.h>
17247 for ac_header in sys/procfs.h
17249 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17251 echo "$as_me:$LINENO: checking for $ac_header" >&5
17252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17254 echo $ECHO_N "(cached) $ECHO_C" >&6
17256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17259 # Is the header compilable?
17260 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17261 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17262 cat >conftest.$ac_ext <<_ACEOF
17265 cat confdefs.h >>conftest.$ac_ext
17266 cat >>conftest.$ac_ext <<_ACEOF
17267 /* end confdefs.h. */
17268 $ac_includes_default
17269 #include <$ac_header>
17271 rm -f conftest.$ac_objext
17272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17273 (eval $ac_compile) 2>conftest.er1
17275 grep -v '^ *+' conftest.er1 >conftest.err
17277 cat conftest.err >&5
17278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279 (exit $ac_status); } &&
17280 { ac_try='test -z "$ac_c_werror_flag"
17281 || test ! -s conftest.err'
17282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17283 (eval $ac_try) 2>&5
17285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286 (exit $ac_status); }; } &&
17287 { ac_try='test -s conftest.$ac_objext'
17288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17289 (eval $ac_try) 2>&5
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); }; }; then
17293 ac_header_compiler=yes
17295 echo "$as_me: failed program was:" >&5
17296 sed 's/^/| /' conftest.$ac_ext >&5
17298 ac_header_compiler=no
17300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17301 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17302 echo "${ECHO_T}$ac_header_compiler" >&6
17304 # Is the header present?
17305 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17306 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17307 cat >conftest.$ac_ext <<_ACEOF
17310 cat confdefs.h >>conftest.$ac_ext
17311 cat >>conftest.$ac_ext <<_ACEOF
17312 /* end confdefs.h. */
17313 #include <$ac_header>
17315 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17316 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17318 grep -v '^ *+' conftest.er1 >conftest.err
17320 cat conftest.err >&5
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); } >/dev/null; then
17323 if test -s conftest.err; then
17324 ac_cpp_err=$ac_c_preproc_warn_flag
17325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17332 if test -z "$ac_cpp_err"; then
17333 ac_header_preproc=yes
17335 echo "$as_me: failed program was:" >&5
17336 sed 's/^/| /' conftest.$ac_ext >&5
17338 ac_header_preproc=no
17340 rm -f conftest.err conftest.$ac_ext
17341 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17342 echo "${ECHO_T}$ac_header_preproc" >&6
17344 # So? What about this header?
17345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17348 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17350 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17351 ac_header_preproc=yes
17354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17355 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17357 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17358 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17359 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17360 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17361 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17363 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17364 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17365 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17368 ## ------------------------------------------ ##
17369 ## Report this to the AC_PACKAGE_NAME lists. ##
17370 ## ------------------------------------------ ##
17373 sed "s/^/$as_me: WARNING: /" >&2
17376 echo "$as_me:$LINENO: checking for $ac_header" >&5
17377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17379 echo $ECHO_N "(cached) $ECHO_C" >&6
17381 eval "$as_ac_Header=\$ac_header_preproc"
17383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17384 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17388 cat >>confdefs.h <<_ACEOF
17389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17396 if test "$ac_cv_header_sys_procfs_h" = yes; then
17397 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
17398 echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
17399 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
17400 echo $ECHO_N "(cached) $ECHO_C" >&6
17402 cat >conftest.$ac_ext <<_ACEOF
17405 cat confdefs.h >>conftest.$ac_ext
17406 cat >>conftest.$ac_ext <<_ACEOF
17407 /* end confdefs.h. */
17410 #include <sys/procfs.h>
17419 rm -f conftest.$ac_objext
17420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17421 (eval $ac_compile) 2>conftest.er1
17423 grep -v '^ *+' conftest.er1 >conftest.err
17425 cat conftest.err >&5
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); } &&
17428 { ac_try='test -z "$ac_c_werror_flag"
17429 || test ! -s conftest.err'
17430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17431 (eval $ac_try) 2>&5
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); }; } &&
17435 { ac_try='test -s conftest.$ac_objext'
17436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17437 (eval $ac_try) 2>&5
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); }; }; then
17441 bfd_cv_have_sys_procfs_type_prstatus_t=yes
17443 echo "$as_me: failed program was:" >&5
17444 sed 's/^/| /' conftest.$ac_ext >&5
17446 bfd_cv_have_sys_procfs_type_prstatus_t=no
17449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17452 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
17454 cat >>confdefs.h <<\_ACEOF
17455 #define HAVE_PRSTATUS_T 1
17459 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
17460 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
17462 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
17463 echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
17464 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
17465 echo $ECHO_N "(cached) $ECHO_C" >&6
17467 cat >conftest.$ac_ext <<_ACEOF
17470 cat confdefs.h >>conftest.$ac_ext
17471 cat >>conftest.$ac_ext <<_ACEOF
17472 /* end confdefs.h. */
17475 #include <sys/procfs.h>
17484 rm -f conftest.$ac_objext
17485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17486 (eval $ac_compile) 2>conftest.er1
17488 grep -v '^ *+' conftest.er1 >conftest.err
17490 cat conftest.err >&5
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); } &&
17493 { ac_try='test -z "$ac_c_werror_flag"
17494 || test ! -s conftest.err'
17495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17496 (eval $ac_try) 2>&5
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); }; } &&
17500 { ac_try='test -s conftest.$ac_objext'
17501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17502 (eval $ac_try) 2>&5
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); }; }; then
17506 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
17508 echo "$as_me: failed program was:" >&5
17509 sed 's/^/| /' conftest.$ac_ext >&5
17511 bfd_cv_have_sys_procfs_type_prstatus32_t=no
17514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17517 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
17519 cat >>confdefs.h <<\_ACEOF
17520 #define HAVE_PRSTATUS32_T 1
17524 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
17525 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
17527 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
17528 echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
17529 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
17530 echo $ECHO_N "(cached) $ECHO_C" >&6
17532 cat >conftest.$ac_ext <<_ACEOF
17535 cat confdefs.h >>conftest.$ac_ext
17536 cat >>conftest.$ac_ext <<_ACEOF
17537 /* end confdefs.h. */
17540 #include <sys/procfs.h>
17544 prstatus_t avar; void* aref = (void*) &avar.pr_who
17549 rm -f conftest.$ac_objext
17550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17551 (eval $ac_compile) 2>conftest.er1
17553 grep -v '^ *+' conftest.er1 >conftest.err
17555 cat conftest.err >&5
17556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557 (exit $ac_status); } &&
17558 { ac_try='test -z "$ac_c_werror_flag"
17559 || test ! -s conftest.err'
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); }; } &&
17565 { ac_try='test -s conftest.$ac_objext'
17566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17567 (eval $ac_try) 2>&5
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); }; }; then
17571 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
17573 echo "$as_me: failed program was:" >&5
17574 sed 's/^/| /' conftest.$ac_ext >&5
17576 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
17579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17582 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
17584 cat >>confdefs.h <<\_ACEOF
17585 #define HAVE_PRSTATUS_T_PR_WHO 1
17589 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
17590 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
17592 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
17593 echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
17594 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+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. */
17605 #include <sys/procfs.h>
17609 prstatus32_t avar; void* aref = (void*) &avar.pr_who
17614 rm -f conftest.$ac_objext
17615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17616 (eval $ac_compile) 2>conftest.er1
17618 grep -v '^ *+' conftest.er1 >conftest.err
17620 cat conftest.err >&5
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); } &&
17623 { ac_try='test -z "$ac_c_werror_flag"
17624 || test ! -s conftest.err'
17625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17626 (eval $ac_try) 2>&5
17628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629 (exit $ac_status); }; } &&
17630 { ac_try='test -s conftest.$ac_objext'
17631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17632 (eval $ac_try) 2>&5
17634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635 (exit $ac_status); }; }; then
17636 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
17638 echo "$as_me: failed program was:" >&5
17639 sed 's/^/| /' conftest.$ac_ext >&5
17641 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
17644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17647 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
17649 cat >>confdefs.h <<\_ACEOF
17650 #define HAVE_PRSTATUS32_T_PR_WHO 1
17654 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
17655 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
17657 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
17658 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
17659 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
17660 echo $ECHO_N "(cached) $ECHO_C" >&6
17662 cat >conftest.$ac_ext <<_ACEOF
17665 cat confdefs.h >>conftest.$ac_ext
17666 cat >>conftest.$ac_ext <<_ACEOF
17667 /* end confdefs.h. */
17670 #include <sys/procfs.h>
17679 rm -f conftest.$ac_objext
17680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17681 (eval $ac_compile) 2>conftest.er1
17683 grep -v '^ *+' conftest.er1 >conftest.err
17685 cat conftest.err >&5
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687 (exit $ac_status); } &&
17688 { ac_try='test -z "$ac_c_werror_flag"
17689 || test ! -s conftest.err'
17690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17691 (eval $ac_try) 2>&5
17693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); }; } &&
17695 { ac_try='test -s conftest.$ac_objext'
17696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17697 (eval $ac_try) 2>&5
17699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17700 (exit $ac_status); }; }; then
17701 bfd_cv_have_sys_procfs_type_pstatus_t=yes
17703 echo "$as_me: failed program was:" >&5
17704 sed 's/^/| /' conftest.$ac_ext >&5
17706 bfd_cv_have_sys_procfs_type_pstatus_t=no
17709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17712 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
17714 cat >>confdefs.h <<\_ACEOF
17715 #define HAVE_PSTATUS_T 1
17719 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
17720 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
17722 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
17723 echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
17724 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
17725 echo $ECHO_N "(cached) $ECHO_C" >&6
17727 cat >conftest.$ac_ext <<_ACEOF
17730 cat confdefs.h >>conftest.$ac_ext
17731 cat >>conftest.$ac_ext <<_ACEOF
17732 /* end confdefs.h. */
17735 #include <sys/procfs.h>
17744 rm -f conftest.$ac_objext
17745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17746 (eval $ac_compile) 2>conftest.er1
17748 grep -v '^ *+' conftest.er1 >conftest.err
17750 cat conftest.err >&5
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); } &&
17753 { ac_try='test -z "$ac_c_werror_flag"
17754 || test ! -s conftest.err'
17755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17756 (eval $ac_try) 2>&5
17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); }; } &&
17760 { ac_try='test -s conftest.$ac_objext'
17761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17762 (eval $ac_try) 2>&5
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); }; }; then
17766 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
17768 echo "$as_me: failed program was:" >&5
17769 sed 's/^/| /' conftest.$ac_ext >&5
17771 bfd_cv_have_sys_procfs_type_pxstatus_t=no
17774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17777 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
17779 cat >>confdefs.h <<\_ACEOF
17780 #define HAVE_PXSTATUS_T 1
17784 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
17785 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
17787 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
17788 echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
17789 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
17790 echo $ECHO_N "(cached) $ECHO_C" >&6
17792 cat >conftest.$ac_ext <<_ACEOF
17795 cat confdefs.h >>conftest.$ac_ext
17796 cat >>conftest.$ac_ext <<_ACEOF
17797 /* end confdefs.h. */
17800 #include <sys/procfs.h>
17809 rm -f conftest.$ac_objext
17810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17811 (eval $ac_compile) 2>conftest.er1
17813 grep -v '^ *+' conftest.er1 >conftest.err
17815 cat conftest.err >&5
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); } &&
17818 { ac_try='test -z "$ac_c_werror_flag"
17819 || test ! -s conftest.err'
17820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17821 (eval $ac_try) 2>&5
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); }; } &&
17825 { ac_try='test -s conftest.$ac_objext'
17826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17827 (eval $ac_try) 2>&5
17829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830 (exit $ac_status); }; }; then
17831 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
17833 echo "$as_me: failed program was:" >&5
17834 sed 's/^/| /' conftest.$ac_ext >&5
17836 bfd_cv_have_sys_procfs_type_pstatus32_t=no
17839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17842 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
17844 cat >>confdefs.h <<\_ACEOF
17845 #define HAVE_PSTATUS32_T 1
17849 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
17850 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
17852 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
17853 echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
17854 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
17855 echo $ECHO_N "(cached) $ECHO_C" >&6
17857 cat >conftest.$ac_ext <<_ACEOF
17860 cat confdefs.h >>conftest.$ac_ext
17861 cat >>conftest.$ac_ext <<_ACEOF
17862 /* end confdefs.h. */
17865 #include <sys/procfs.h>
17874 rm -f conftest.$ac_objext
17875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17876 (eval $ac_compile) 2>conftest.er1
17878 grep -v '^ *+' conftest.er1 >conftest.err
17880 cat conftest.err >&5
17881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882 (exit $ac_status); } &&
17883 { ac_try='test -z "$ac_c_werror_flag"
17884 || test ! -s conftest.err'
17885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17886 (eval $ac_try) 2>&5
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); }; } &&
17890 { ac_try='test -s conftest.$ac_objext'
17891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17892 (eval $ac_try) 2>&5
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); }; }; then
17896 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
17898 echo "$as_me: failed program was:" >&5
17899 sed 's/^/| /' conftest.$ac_ext >&5
17901 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
17904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17907 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
17909 cat >>confdefs.h <<\_ACEOF
17910 #define HAVE_PRPSINFO_T 1
17914 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
17915 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
17917 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
17918 echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
17919 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
17920 echo $ECHO_N "(cached) $ECHO_C" >&6
17922 cat >conftest.$ac_ext <<_ACEOF
17925 cat confdefs.h >>conftest.$ac_ext
17926 cat >>conftest.$ac_ext <<_ACEOF
17927 /* end confdefs.h. */
17930 #include <sys/procfs.h>
17939 rm -f conftest.$ac_objext
17940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17941 (eval $ac_compile) 2>conftest.er1
17943 grep -v '^ *+' conftest.er1 >conftest.err
17945 cat conftest.err >&5
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); } &&
17948 { ac_try='test -z "$ac_c_werror_flag"
17949 || test ! -s conftest.err'
17950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17951 (eval $ac_try) 2>&5
17953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954 (exit $ac_status); }; } &&
17955 { ac_try='test -s conftest.$ac_objext'
17956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17957 (eval $ac_try) 2>&5
17959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960 (exit $ac_status); }; }; then
17961 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
17963 echo "$as_me: failed program was:" >&5
17964 sed 's/^/| /' conftest.$ac_ext >&5
17966 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
17969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17972 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
17974 cat >>confdefs.h <<\_ACEOF
17975 #define HAVE_PRPSINFO32_T 1
17979 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
17980 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
17982 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
17983 echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
17984 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
17985 echo $ECHO_N "(cached) $ECHO_C" >&6
17987 cat >conftest.$ac_ext <<_ACEOF
17990 cat confdefs.h >>conftest.$ac_ext
17991 cat >>conftest.$ac_ext <<_ACEOF
17992 /* end confdefs.h. */
17995 #include <sys/procfs.h>
18004 rm -f conftest.$ac_objext
18005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18006 (eval $ac_compile) 2>conftest.er1
18008 grep -v '^ *+' conftest.er1 >conftest.err
18010 cat conftest.err >&5
18011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012 (exit $ac_status); } &&
18013 { ac_try='test -z "$ac_c_werror_flag"
18014 || test ! -s conftest.err'
18015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18016 (eval $ac_try) 2>&5
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); }; } &&
18020 { ac_try='test -s conftest.$ac_objext'
18021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18022 (eval $ac_try) 2>&5
18024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025 (exit $ac_status); }; }; then
18026 bfd_cv_have_sys_procfs_type_psinfo_t=yes
18028 echo "$as_me: failed program was:" >&5
18029 sed 's/^/| /' conftest.$ac_ext >&5
18031 bfd_cv_have_sys_procfs_type_psinfo_t=no
18034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18037 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
18039 cat >>confdefs.h <<\_ACEOF
18040 #define HAVE_PSINFO_T 1
18044 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
18045 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
18047 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
18048 echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
18049 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
18050 echo $ECHO_N "(cached) $ECHO_C" >&6
18052 cat >conftest.$ac_ext <<_ACEOF
18055 cat confdefs.h >>conftest.$ac_ext
18056 cat >>conftest.$ac_ext <<_ACEOF
18057 /* end confdefs.h. */
18060 #include <sys/procfs.h>
18069 rm -f conftest.$ac_objext
18070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18071 (eval $ac_compile) 2>conftest.er1
18073 grep -v '^ *+' conftest.er1 >conftest.err
18075 cat conftest.err >&5
18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077 (exit $ac_status); } &&
18078 { ac_try='test -z "$ac_c_werror_flag"
18079 || test ! -s conftest.err'
18080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18081 (eval $ac_try) 2>&5
18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); }; } &&
18085 { ac_try='test -s conftest.$ac_objext'
18086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18087 (eval $ac_try) 2>&5
18089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); }; }; then
18091 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
18093 echo "$as_me: failed program was:" >&5
18094 sed 's/^/| /' conftest.$ac_ext >&5
18096 bfd_cv_have_sys_procfs_type_psinfo32_t=no
18099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18102 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
18104 cat >>confdefs.h <<\_ACEOF
18105 #define HAVE_PSINFO32_T 1
18109 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
18110 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
18112 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
18113 echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
18114 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
18115 echo $ECHO_N "(cached) $ECHO_C" >&6
18117 cat >conftest.$ac_ext <<_ACEOF
18120 cat confdefs.h >>conftest.$ac_ext
18121 cat >>conftest.$ac_ext <<_ACEOF
18122 /* end confdefs.h. */
18125 #include <sys/procfs.h>
18134 rm -f conftest.$ac_objext
18135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18136 (eval $ac_compile) 2>conftest.er1
18138 grep -v '^ *+' conftest.er1 >conftest.err
18140 cat conftest.err >&5
18141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142 (exit $ac_status); } &&
18143 { ac_try='test -z "$ac_c_werror_flag"
18144 || test ! -s conftest.err'
18145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18146 (eval $ac_try) 2>&5
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); }; } &&
18150 { ac_try='test -s conftest.$ac_objext'
18151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18152 (eval $ac_try) 2>&5
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); }; }; then
18156 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
18158 echo "$as_me: failed program was:" >&5
18159 sed 's/^/| /' conftest.$ac_ext >&5
18161 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
18164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18167 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
18169 cat >>confdefs.h <<\_ACEOF
18170 #define HAVE_LWPSTATUS_T 1
18174 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
18175 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
18177 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
18178 echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
18179 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
18180 echo $ECHO_N "(cached) $ECHO_C" >&6
18182 cat >conftest.$ac_ext <<_ACEOF
18185 cat confdefs.h >>conftest.$ac_ext
18186 cat >>conftest.$ac_ext <<_ACEOF
18187 /* end confdefs.h. */
18190 #include <sys/procfs.h>
18199 rm -f conftest.$ac_objext
18200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18201 (eval $ac_compile) 2>conftest.er1
18203 grep -v '^ *+' conftest.er1 >conftest.err
18205 cat conftest.err >&5
18206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207 (exit $ac_status); } &&
18208 { ac_try='test -z "$ac_c_werror_flag"
18209 || test ! -s conftest.err'
18210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18211 (eval $ac_try) 2>&5
18213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214 (exit $ac_status); }; } &&
18215 { ac_try='test -s conftest.$ac_objext'
18216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18217 (eval $ac_try) 2>&5
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); }; }; then
18221 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
18223 echo "$as_me: failed program was:" >&5
18224 sed 's/^/| /' conftest.$ac_ext >&5
18226 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
18229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18232 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
18234 cat >>confdefs.h <<\_ACEOF
18235 #define HAVE_LWPXSTATUS_T 1
18239 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
18240 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
18242 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
18243 echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
18244 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
18245 echo $ECHO_N "(cached) $ECHO_C" >&6
18247 cat >conftest.$ac_ext <<_ACEOF
18250 cat confdefs.h >>conftest.$ac_ext
18251 cat >>conftest.$ac_ext <<_ACEOF
18252 /* end confdefs.h. */
18255 #include <sys/procfs.h>
18259 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
18264 rm -f conftest.$ac_objext
18265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18266 (eval $ac_compile) 2>conftest.er1
18268 grep -v '^ *+' conftest.er1 >conftest.err
18270 cat conftest.err >&5
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); } &&
18273 { ac_try='test -z "$ac_c_werror_flag"
18274 || test ! -s conftest.err'
18275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18276 (eval $ac_try) 2>&5
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); }; } &&
18280 { ac_try='test -s conftest.$ac_objext'
18281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18282 (eval $ac_try) 2>&5
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); }; }; then
18286 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
18288 echo "$as_me: failed program was:" >&5
18289 sed 's/^/| /' conftest.$ac_ext >&5
18291 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
18294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18297 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
18299 cat >>confdefs.h <<\_ACEOF
18300 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
18304 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
18305 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
18307 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
18308 echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
18309 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
18310 echo $ECHO_N "(cached) $ECHO_C" >&6
18312 cat >conftest.$ac_ext <<_ACEOF
18315 cat confdefs.h >>conftest.$ac_ext
18316 cat >>conftest.$ac_ext <<_ACEOF
18317 /* end confdefs.h. */
18320 #include <sys/procfs.h>
18324 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
18329 rm -f conftest.$ac_objext
18330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18331 (eval $ac_compile) 2>conftest.er1
18333 grep -v '^ *+' conftest.er1 >conftest.err
18335 cat conftest.err >&5
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); } &&
18338 { ac_try='test -z "$ac_c_werror_flag"
18339 || test ! -s conftest.err'
18340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18341 (eval $ac_try) 2>&5
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); }; } &&
18345 { ac_try='test -s conftest.$ac_objext'
18346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18347 (eval $ac_try) 2>&5
18349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350 (exit $ac_status); }; }; then
18351 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
18353 echo "$as_me: failed program was:" >&5
18354 sed 's/^/| /' conftest.$ac_ext >&5
18356 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
18359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18362 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
18364 cat >>confdefs.h <<\_ACEOF
18365 #define HAVE_LWPSTATUS_T_PR_REG 1
18369 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
18370 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
18372 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
18373 echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
18374 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
18375 echo $ECHO_N "(cached) $ECHO_C" >&6
18377 cat >conftest.$ac_ext <<_ACEOF
18380 cat confdefs.h >>conftest.$ac_ext
18381 cat >>conftest.$ac_ext <<_ACEOF
18382 /* end confdefs.h. */
18385 #include <sys/procfs.h>
18389 win32_pstatus_t avar
18394 rm -f conftest.$ac_objext
18395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18396 (eval $ac_compile) 2>conftest.er1
18398 grep -v '^ *+' conftest.er1 >conftest.err
18400 cat conftest.err >&5
18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402 (exit $ac_status); } &&
18403 { ac_try='test -z "$ac_c_werror_flag"
18404 || test ! -s conftest.err'
18405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18406 (eval $ac_try) 2>&5
18408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409 (exit $ac_status); }; } &&
18410 { ac_try='test -s conftest.$ac_objext'
18411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18412 (eval $ac_try) 2>&5
18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); }; }; then
18416 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
18418 echo "$as_me: failed program was:" >&5
18419 sed 's/^/| /' conftest.$ac_ext >&5
18421 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
18424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18427 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
18429 cat >>confdefs.h <<\_ACEOF
18430 #define HAVE_WIN32_PSTATUS_T 1
18434 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
18435 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
18441 if test -n "$TRAD_HEADER"; then
18443 cat >>confdefs.h <<_ACEOF
18444 #define TRAD_HEADER $TRAD_HEADER
18449 # Horrible hacks to build DLLs on Windows.
18454 if test "$enable_shared" = "yes"; then
18455 WIN32LDFLAGS="-no-undefined"
18456 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
18460 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
18464 # Linux/MIPS uses PIC by default.
18465 if test "$enable_shared" = "yes"; then
18466 WIN32LIBADD="-L../libiberty -liberty"
18470 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
18471 if test -n "$x"; then
18472 WIN32LIBADD="-L../libiberty/pic -liberty"
18483 # Canonicalize the secondary target names.
18484 if test -n "$enable_targets" ; then
18485 for targ in `echo $enable_targets | sed 's/,/ /g'`
18487 result=`$ac_config_sub $targ 2>/dev/null`
18488 if test -n "$result" ; then
18489 canon_targets="$canon_targets $result"
18491 # Allow targets that config.sub doesn't recognize, like "all".
18492 canon_targets="$canon_targets $targ"
18503 for targ in $target $canon_targets
18505 if test "x$targ" = "xall"; then
18507 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
18509 . $srcdir/config.bfd
18510 if test "x$targ" = "x$target"; then
18511 defvec=$targ_defvec
18513 selvecs="$selvecs $targ_defvec $targ_selvecs"
18514 selarchs="$selarchs $targ_archs"
18515 TDEFINES="$TDEFINES $targ_cflags"
18520 # This processing still needs to be done if we're to decide properly whether
18521 # 64-bit support needs to be compiled in. Currently, it will be included if
18522 # the default or any other explicitly requested target requires it; it
18523 # will not be included on a 32-bit host if no 64-bit target is requested, and
18524 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
18527 # uniq the default and selected vectors in all the configured targets.
18529 for i in $selvecs ; do
18538 # uniq the associated vectors in all the configured targets.
18540 for i in $assocvecs ; do
18549 # uniq the architectures in all the configured targets.
18551 for i in $selarchs ; do
18559 # Target backend .o files.
18562 elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
18564 for vec in $selvecs
18568 # This list is alphabetized to make it easy to compare
18569 # with the two vector lists in targets.c. For the same reason,
18570 # use one entry per line, even though this leads to long lines.
18571 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
18572 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
18573 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
18574 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
18575 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
18576 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
18577 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
18578 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
18579 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
18580 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
18581 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
18582 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
18583 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
18584 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
18585 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
18586 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
18587 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
18588 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
18589 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
18590 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
18591 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
18592 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
18593 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
18594 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
18595 bfd_efi_app_x86_64_vec) tb="$tb efi-app-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
18596 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
18597 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
18598 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
18599 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
18600 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
18601 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
18602 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
18603 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
18604 bfd_elf32_bigarm_symbian_vec)
18605 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
18606 bfd_elf32_bigarm_vxworks_vec)
18607 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
18608 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
18609 bfd_elf32_bigmips_vxworks_vec)
18610 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
18611 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
18612 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
18613 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
18614 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
18615 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
18616 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
18617 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
18618 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
18619 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
18620 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
18621 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
18622 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
18623 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
18624 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
18625 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
18626 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
18627 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
18628 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
18629 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
18630 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
18631 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
18632 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
18633 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
18634 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
18635 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
18636 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
18637 bfd_elf32_littlearm_symbian_vec)
18638 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
18639 bfd_elf32_littlearm_vxworks_vec)
18640 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
18641 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
18642 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
18643 bfd_elf32_littlemips_vxworks_vec)
18644 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
18645 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
18646 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
18647 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
18648 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
18649 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
18650 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
18651 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
18652 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
18653 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
18654 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
18655 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
18656 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
18657 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
18658 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
18659 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
18660 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
18661 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
18662 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
18663 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
18664 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
18665 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
18666 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
18667 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
18668 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
18669 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
18670 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
18671 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
18672 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
18673 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
18674 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
18675 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
18676 # FIXME: We include cofflink.lo not because it's needed for
18677 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
18678 # which needs it but does not list it. Should be fixed in right place.
18679 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
18680 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
18681 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
18682 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
18683 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
18684 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
18685 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
18686 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
18687 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
18688 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
18689 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
18690 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
18691 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
18692 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
18693 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
18694 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
18695 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
18696 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
18697 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
18698 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
18699 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
18700 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
18701 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
18702 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
18703 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
18704 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
18705 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
18706 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
18707 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
18708 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
18709 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 ;;
18710 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
18711 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
18712 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
18713 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
18714 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
18715 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
18716 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 ;;
18717 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
18718 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
18719 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
18720 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
18721 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
18722 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
18723 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
18724 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
18725 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
18726 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
18727 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
18728 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
18729 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 ;;
18730 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 ;;
18731 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
18732 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
18733 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
18734 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
18735 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
18736 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
18737 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
18738 cris_aout_vec) tb="$tb aout-cris.lo" ;;
18739 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
18740 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
18741 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
18742 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
18743 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
18744 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
18745 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
18746 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
18747 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
18748 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
18749 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
18750 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
18751 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
18752 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
18753 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
18754 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
18755 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
18756 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
18757 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
18758 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
18759 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
18760 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
18761 i386msdos_vec) tb="$tb i386msdos.lo" ;;
18762 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
18763 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
18764 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
18765 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
18766 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
18767 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
18768 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
18769 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
18770 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
18771 ieee_vec) tb="$tb ieee.lo" ;;
18772 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
18773 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
18774 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
18775 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
18776 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
18777 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
18778 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
18779 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
18780 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
18781 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
18782 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
18783 mach_o_be_vec) tb="$tb mach-o.lo" ;;
18784 mach_o_le_vec) tb="$tb mach-o.lo" ;;
18785 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
18786 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
18787 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
18788 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
18789 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
18790 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
18791 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
18792 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
18793 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
18794 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
18795 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
18796 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
18797 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
18798 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
18799 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
18800 pef_vec) tb="$tb pef.lo" ;;
18801 pef_xlib_vec) tb="$tb pef.lo" ;;
18802 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
18803 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
18804 ppcboot_vec) tb="$tb ppcboot.lo" ;;
18805 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
18806 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
18807 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
18808 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
18809 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
18810 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
18811 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
18812 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
18813 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
18814 som_vec) tb="$tb som.lo" ;;
18815 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
18816 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
18817 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
18818 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
18819 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
18820 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
18821 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
18822 sym_vec) tb="$tb xsym.lo" ;;
18823 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
18824 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
18825 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
18826 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
18827 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
18828 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
18829 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
18830 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
18831 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
18832 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
18833 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
18834 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
18835 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
18836 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
18837 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
18838 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
18839 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
18840 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
18841 versados_vec) tb="$tb versados.lo" ;;
18842 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
18843 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
18844 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
18845 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
18846 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
18847 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
18849 # These appear out of order in targets.c
18850 srec_vec) tb="$tb srec.lo" ;;
18851 symbolsrec_vec) tb="$tb srec.lo" ;;
18852 tekhex_vec) tb="$tb tekhex.lo" ;;
18853 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
18854 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
18857 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
18858 echo "$as_me: error: *** unknown target vector $vec" >&2;}
18859 { (exit 1); exit 1; }; } ;;
18862 if test ${target_size} = 64; then
18865 if test x"${vec}" = x"${defvec}"; then
18866 bfd_default_target_size=${target_size}
18870 # Target architecture .o files.
18871 # A couple of CPUs use shorter file names to avoid problems on DOS
18873 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
18875 # Weed out duplicate .o files.
18897 if test x${all_targets} = xtrue ; then
18898 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
18899 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
18903 test -n "$assocvecs" &&
18904 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
18905 else # all_targets is true
18906 # Only set these if they will be nonempty, for the clever echo.
18909 test -n "$selvecs" &&
18910 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
18911 test -n "$selvecs" &&
18912 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
18913 test -n "$selarchs" &&
18914 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
18915 fi # all_targets is true
18917 case ${host64}-${target64}-${want64} in
18920 bfd64_libs='$(BFD64_LIBS)'
18921 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
18922 if test $BFD_HOST_64_BIT_DEFINED = 0; then
18923 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
18924 echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
18925 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
18926 echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
18928 if test -n "$GCC" ; then
18930 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
18931 echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
18932 # Add more tests for gcc versions with non-working 64-bit support here.
18933 cat >conftest.$ac_ext <<_ACEOF
18936 cat confdefs.h >>conftest.$ac_ext
18937 cat >>conftest.$ac_ext <<_ACEOF
18938 /* end confdefs.h. */
18939 :__GNUC__:__GNUC_MINOR__:__i386__:
18941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18942 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
18944 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
18945 echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
18947 echo "$as_me:$LINENO: result: no" >&5
18948 echo "${ECHO_T}no" >&6
18952 if test $bad_64bit_gcc = yes ; then
18953 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
18954 echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
18955 { (exit 1); exit 1; }; }
18961 all_backends='$(BFD32_BACKENDS)'
18972 # Determine the host dependant file_ptr a.k.a. off_t type. In order
18973 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
18974 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
18975 # Hopefully a reasonable assumption since fseeko et.al. should be
18976 # upward compatible.
18982 for ac_func in ftello ftello64 fseeko fseeko64 fopen64
18984 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18985 echo "$as_me:$LINENO: checking for $ac_func" >&5
18986 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18987 if eval "test \"\${$as_ac_var+set}\" = set"; then
18988 echo $ECHO_N "(cached) $ECHO_C" >&6
18990 cat >conftest.$ac_ext <<_ACEOF
18993 cat confdefs.h >>conftest.$ac_ext
18994 cat >>conftest.$ac_ext <<_ACEOF
18995 /* end confdefs.h. */
18996 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18998 #define $ac_func innocuous_$ac_func
19000 /* System header to define __stub macros and hopefully few prototypes,
19001 which can conflict with char $ac_func (); below.
19002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19003 <limits.h> exists even on freestanding compilers. */
19006 # include <limits.h>
19008 # include <assert.h>
19013 /* Override any gcc2 internal prototype to avoid an error. */
19018 /* We use char because int might match the return type of a gcc2
19019 builtin and then its argument prototype would still apply. */
19021 /* The GNU C library defines this for functions which it implements
19022 to always fail with ENOSYS. Some functions are actually named
19023 something starting with __ and the normal name is an alias. */
19024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19027 char (*f) () = $ac_func;
19036 return f != $ac_func;
19041 rm -f conftest.$ac_objext conftest$ac_exeext
19042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19043 (eval $ac_link) 2>conftest.er1
19045 grep -v '^ *+' conftest.er1 >conftest.err
19047 cat conftest.err >&5
19048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049 (exit $ac_status); } &&
19050 { ac_try='test -z "$ac_c_werror_flag"
19051 || test ! -s conftest.err'
19052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19053 (eval $ac_try) 2>&5
19055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056 (exit $ac_status); }; } &&
19057 { ac_try='test -s conftest$ac_exeext'
19058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19059 (eval $ac_try) 2>&5
19061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062 (exit $ac_status); }; }; then
19063 eval "$as_ac_var=yes"
19065 echo "$as_me: failed program was:" >&5
19066 sed 's/^/| /' conftest.$ac_ext >&5
19068 eval "$as_ac_var=no"
19070 rm -f conftest.err conftest.$ac_objext \
19071 conftest$ac_exeext conftest.$ac_ext
19073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19074 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19075 if test `eval echo '${'$as_ac_var'}'` = yes; then
19076 cat >>confdefs.h <<_ACEOF
19077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19083 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
19084 echo "$as_me:$LINENO: checking for off_t" >&5
19085 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
19086 if test "${ac_cv_type_off_t+set}" = set; then
19087 echo $ECHO_N "(cached) $ECHO_C" >&6
19089 cat >conftest.$ac_ext <<_ACEOF
19092 cat confdefs.h >>conftest.$ac_ext
19093 cat >>conftest.$ac_ext <<_ACEOF
19094 /* end confdefs.h. */
19095 $ac_includes_default
19101 if (sizeof (off_t))
19107 rm -f conftest.$ac_objext
19108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19109 (eval $ac_compile) 2>conftest.er1
19111 grep -v '^ *+' conftest.er1 >conftest.err
19113 cat conftest.err >&5
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); } &&
19116 { ac_try='test -z "$ac_c_werror_flag"
19117 || test ! -s conftest.err'
19118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19119 (eval $ac_try) 2>&5
19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); }; } &&
19123 { ac_try='test -s conftest.$ac_objext'
19124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19125 (eval $ac_try) 2>&5
19127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128 (exit $ac_status); }; }; then
19129 ac_cv_type_off_t=yes
19131 echo "$as_me: failed program was:" >&5
19132 sed 's/^/| /' conftest.$ac_ext >&5
19134 ac_cv_type_off_t=no
19136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19138 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19139 echo "${ECHO_T}$ac_cv_type_off_t" >&6
19141 echo "$as_me:$LINENO: checking size of off_t" >&5
19142 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
19143 if test "${ac_cv_sizeof_off_t+set}" = set; then
19144 echo $ECHO_N "(cached) $ECHO_C" >&6
19146 if test "$ac_cv_type_off_t" = yes; then
19147 # The cast to unsigned long works around a bug in the HP C Compiler
19148 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19149 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19150 # This bug is HP SR number 8606223364.
19151 if test "$cross_compiling" = yes; then
19152 # Depending upon the size, compute the lo and hi bounds.
19153 cat >conftest.$ac_ext <<_ACEOF
19156 cat confdefs.h >>conftest.$ac_ext
19157 cat >>conftest.$ac_ext <<_ACEOF
19158 /* end confdefs.h. */
19159 $ac_includes_default
19163 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
19170 rm -f conftest.$ac_objext
19171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19172 (eval $ac_compile) 2>conftest.er1
19174 grep -v '^ *+' conftest.er1 >conftest.err
19176 cat conftest.err >&5
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); } &&
19179 { ac_try='test -z "$ac_c_werror_flag"
19180 || test ! -s conftest.err'
19181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19182 (eval $ac_try) 2>&5
19184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185 (exit $ac_status); }; } &&
19186 { ac_try='test -s conftest.$ac_objext'
19187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19188 (eval $ac_try) 2>&5
19190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191 (exit $ac_status); }; }; then
19194 cat >conftest.$ac_ext <<_ACEOF
19197 cat confdefs.h >>conftest.$ac_ext
19198 cat >>conftest.$ac_ext <<_ACEOF
19199 /* end confdefs.h. */
19200 $ac_includes_default
19204 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
19211 rm -f conftest.$ac_objext
19212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19213 (eval $ac_compile) 2>conftest.er1
19215 grep -v '^ *+' conftest.er1 >conftest.err
19217 cat conftest.err >&5
19218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 (exit $ac_status); } &&
19220 { ac_try='test -z "$ac_c_werror_flag"
19221 || test ! -s conftest.err'
19222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19223 (eval $ac_try) 2>&5
19225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226 (exit $ac_status); }; } &&
19227 { ac_try='test -s conftest.$ac_objext'
19228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19229 (eval $ac_try) 2>&5
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); }; }; then
19233 ac_hi=$ac_mid; break
19235 echo "$as_me: failed program was:" >&5
19236 sed 's/^/| /' conftest.$ac_ext >&5
19238 ac_lo=`expr $ac_mid + 1`
19239 if test $ac_lo -le $ac_mid; then
19243 ac_mid=`expr 2 '*' $ac_mid + 1`
19245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19248 echo "$as_me: failed program was:" >&5
19249 sed 's/^/| /' conftest.$ac_ext >&5
19251 cat >conftest.$ac_ext <<_ACEOF
19254 cat confdefs.h >>conftest.$ac_ext
19255 cat >>conftest.$ac_ext <<_ACEOF
19256 /* end confdefs.h. */
19257 $ac_includes_default
19261 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
19268 rm -f conftest.$ac_objext
19269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19270 (eval $ac_compile) 2>conftest.er1
19272 grep -v '^ *+' conftest.er1 >conftest.err
19274 cat conftest.err >&5
19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); } &&
19277 { ac_try='test -z "$ac_c_werror_flag"
19278 || test ! -s conftest.err'
19279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19280 (eval $ac_try) 2>&5
19282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); }; } &&
19284 { ac_try='test -s conftest.$ac_objext'
19285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19286 (eval $ac_try) 2>&5
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); }; }; then
19292 cat >conftest.$ac_ext <<_ACEOF
19295 cat confdefs.h >>conftest.$ac_ext
19296 cat >>conftest.$ac_ext <<_ACEOF
19297 /* end confdefs.h. */
19298 $ac_includes_default
19302 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
19309 rm -f conftest.$ac_objext
19310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19311 (eval $ac_compile) 2>conftest.er1
19313 grep -v '^ *+' conftest.er1 >conftest.err
19315 cat conftest.err >&5
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); } &&
19318 { ac_try='test -z "$ac_c_werror_flag"
19319 || test ! -s conftest.err'
19320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19321 (eval $ac_try) 2>&5
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); }; } &&
19325 { ac_try='test -s conftest.$ac_objext'
19326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19327 (eval $ac_try) 2>&5
19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); }; }; then
19331 ac_lo=$ac_mid; break
19333 echo "$as_me: failed program was:" >&5
19334 sed 's/^/| /' conftest.$ac_ext >&5
19336 ac_hi=`expr '(' $ac_mid ')' - 1`
19337 if test $ac_mid -le $ac_hi; then
19341 ac_mid=`expr 2 '*' $ac_mid`
19343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19346 echo "$as_me: failed program was:" >&5
19347 sed 's/^/| /' conftest.$ac_ext >&5
19351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19354 # Binary search between lo and hi bounds.
19355 while test "x$ac_lo" != "x$ac_hi"; do
19356 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19357 cat >conftest.$ac_ext <<_ACEOF
19360 cat confdefs.h >>conftest.$ac_ext
19361 cat >>conftest.$ac_ext <<_ACEOF
19362 /* end confdefs.h. */
19363 $ac_includes_default
19367 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
19374 rm -f conftest.$ac_objext
19375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19376 (eval $ac_compile) 2>conftest.er1
19378 grep -v '^ *+' conftest.er1 >conftest.err
19380 cat conftest.err >&5
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); } &&
19383 { ac_try='test -z "$ac_c_werror_flag"
19384 || test ! -s conftest.err'
19385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19386 (eval $ac_try) 2>&5
19388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); }; } &&
19390 { ac_try='test -s conftest.$ac_objext'
19391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392 (eval $ac_try) 2>&5
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); }; }; then
19398 echo "$as_me: failed program was:" >&5
19399 sed 's/^/| /' conftest.$ac_ext >&5
19401 ac_lo=`expr '(' $ac_mid ')' + 1`
19403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19406 ?*) ac_cv_sizeof_off_t=$ac_lo;;
19407 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
19408 See \`config.log' for more details." >&5
19409 echo "$as_me: error: cannot compute sizeof (off_t), 77
19410 See \`config.log' for more details." >&2;}
19411 { (exit 1); exit 1; }; } ;;
19414 if test "$cross_compiling" = yes; then
19415 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19416 See \`config.log' for more details." >&5
19417 echo "$as_me: error: cannot run test program while cross compiling
19418 See \`config.log' for more details." >&2;}
19419 { (exit 1); exit 1; }; }
19421 cat >conftest.$ac_ext <<_ACEOF
19424 cat confdefs.h >>conftest.$ac_ext
19425 cat >>conftest.$ac_ext <<_ACEOF
19426 /* end confdefs.h. */
19427 $ac_includes_default
19428 long longval () { return (long) (sizeof (off_t)); }
19429 unsigned long ulongval () { return (long) (sizeof (off_t)); }
19431 #include <stdlib.h>
19436 FILE *f = fopen ("conftest.val", "w");
19439 if (((long) (sizeof (off_t))) < 0)
19441 long i = longval ();
19442 if (i != ((long) (sizeof (off_t))))
19444 fprintf (f, "%ld\n", i);
19448 unsigned long i = ulongval ();
19449 if (i != ((long) (sizeof (off_t))))
19451 fprintf (f, "%lu\n", i);
19453 exit (ferror (f) || fclose (f) != 0);
19459 rm -f conftest$ac_exeext
19460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19461 (eval $ac_link) 2>&5
19463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19466 (eval $ac_try) 2>&5
19468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); }; }; then
19470 ac_cv_sizeof_off_t=`cat conftest.val`
19472 echo "$as_me: program exited with status $ac_status" >&5
19473 echo "$as_me: failed program was:" >&5
19474 sed 's/^/| /' conftest.$ac_ext >&5
19476 ( exit $ac_status )
19477 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
19478 See \`config.log' for more details." >&5
19479 echo "$as_me: error: cannot compute sizeof (off_t), 77
19480 See \`config.log' for more details." >&2;}
19481 { (exit 1); exit 1; }; }
19483 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19488 ac_cv_sizeof_off_t=0
19491 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
19492 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
19493 cat >>confdefs.h <<_ACEOF
19494 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
19499 echo "$as_me:$LINENO: checking file_ptr type" >&5
19500 echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
19501 bfd_file_ptr="long"
19502 bfd_ufile_ptr="unsigned long"
19503 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
19504 -o x"${ac_cv_sizeof_off_t}" = x8; then
19505 bfd_file_ptr=BFD_HOST_64_BIT
19506 bfd_ufile_ptr=BFD_HOST_U_64_BIT
19508 echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
19509 echo "${ECHO_T}$bfd_file_ptr" >&6
19515 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
19516 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
19517 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
19518 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
19519 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
19524 for ac_header in stdlib.h unistd.h
19526 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19527 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19528 echo "$as_me:$LINENO: checking for $ac_header" >&5
19529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19531 echo $ECHO_N "(cached) $ECHO_C" >&6
19533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19534 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19536 # Is the header compilable?
19537 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19538 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19539 cat >conftest.$ac_ext <<_ACEOF
19542 cat confdefs.h >>conftest.$ac_ext
19543 cat >>conftest.$ac_ext <<_ACEOF
19544 /* end confdefs.h. */
19545 $ac_includes_default
19546 #include <$ac_header>
19548 rm -f conftest.$ac_objext
19549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19550 (eval $ac_compile) 2>conftest.er1
19552 grep -v '^ *+' conftest.er1 >conftest.err
19554 cat conftest.err >&5
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); } &&
19557 { ac_try='test -z "$ac_c_werror_flag"
19558 || test ! -s conftest.err'
19559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19560 (eval $ac_try) 2>&5
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); }; } &&
19564 { ac_try='test -s conftest.$ac_objext'
19565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19566 (eval $ac_try) 2>&5
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); }; }; then
19570 ac_header_compiler=yes
19572 echo "$as_me: failed program was:" >&5
19573 sed 's/^/| /' conftest.$ac_ext >&5
19575 ac_header_compiler=no
19577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19578 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19579 echo "${ECHO_T}$ac_header_compiler" >&6
19581 # Is the header present?
19582 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19583 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19584 cat >conftest.$ac_ext <<_ACEOF
19587 cat confdefs.h >>conftest.$ac_ext
19588 cat >>conftest.$ac_ext <<_ACEOF
19589 /* end confdefs.h. */
19590 #include <$ac_header>
19592 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19593 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19595 grep -v '^ *+' conftest.er1 >conftest.err
19597 cat conftest.err >&5
19598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599 (exit $ac_status); } >/dev/null; then
19600 if test -s conftest.err; then
19601 ac_cpp_err=$ac_c_preproc_warn_flag
19602 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19609 if test -z "$ac_cpp_err"; then
19610 ac_header_preproc=yes
19612 echo "$as_me: failed program was:" >&5
19613 sed 's/^/| /' conftest.$ac_ext >&5
19615 ac_header_preproc=no
19617 rm -f conftest.err conftest.$ac_ext
19618 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19619 echo "${ECHO_T}$ac_header_preproc" >&6
19621 # So? What about this header?
19622 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19624 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19625 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19627 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19628 ac_header_preproc=yes
19631 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19632 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19633 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19634 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19635 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19636 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19637 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19638 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19640 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19641 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19642 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19645 ## ------------------------------------------ ##
19646 ## Report this to the AC_PACKAGE_NAME lists. ##
19647 ## ------------------------------------------ ##
19650 sed "s/^/$as_me: WARNING: /" >&2
19653 echo "$as_me:$LINENO: checking for $ac_header" >&5
19654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19656 echo $ECHO_N "(cached) $ECHO_C" >&6
19658 eval "$as_ac_Header=\$ac_header_preproc"
19660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19665 cat >>confdefs.h <<_ACEOF
19666 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19674 for ac_func in getpagesize
19676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19677 echo "$as_me:$LINENO: checking for $ac_func" >&5
19678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19679 if eval "test \"\${$as_ac_var+set}\" = set"; then
19680 echo $ECHO_N "(cached) $ECHO_C" >&6
19682 cat >conftest.$ac_ext <<_ACEOF
19685 cat confdefs.h >>conftest.$ac_ext
19686 cat >>conftest.$ac_ext <<_ACEOF
19687 /* end confdefs.h. */
19688 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19690 #define $ac_func innocuous_$ac_func
19692 /* System header to define __stub macros and hopefully few prototypes,
19693 which can conflict with char $ac_func (); below.
19694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19695 <limits.h> exists even on freestanding compilers. */
19698 # include <limits.h>
19700 # include <assert.h>
19705 /* Override any gcc2 internal prototype to avoid an error. */
19710 /* We use char because int might match the return type of a gcc2
19711 builtin and then its argument prototype would still apply. */
19713 /* The GNU C library defines this for functions which it implements
19714 to always fail with ENOSYS. Some functions are actually named
19715 something starting with __ and the normal name is an alias. */
19716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19719 char (*f) () = $ac_func;
19728 return f != $ac_func;
19733 rm -f conftest.$ac_objext conftest$ac_exeext
19734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19735 (eval $ac_link) 2>conftest.er1
19737 grep -v '^ *+' conftest.er1 >conftest.err
19739 cat conftest.err >&5
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); } &&
19742 { ac_try='test -z "$ac_c_werror_flag"
19743 || test ! -s conftest.err'
19744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19745 (eval $ac_try) 2>&5
19747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 (exit $ac_status); }; } &&
19749 { ac_try='test -s conftest$ac_exeext'
19750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19751 (eval $ac_try) 2>&5
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); }; }; then
19755 eval "$as_ac_var=yes"
19757 echo "$as_me: failed program was:" >&5
19758 sed 's/^/| /' conftest.$ac_ext >&5
19760 eval "$as_ac_var=no"
19762 rm -f conftest.err conftest.$ac_objext \
19763 conftest$ac_exeext conftest.$ac_ext
19765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19766 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19767 if test `eval echo '${'$as_ac_var'}'` = yes; then
19768 cat >>confdefs.h <<_ACEOF
19769 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19775 echo "$as_me:$LINENO: checking for working mmap" >&5
19776 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
19777 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19778 echo $ECHO_N "(cached) $ECHO_C" >&6
19780 if test "$cross_compiling" = yes; then
19781 ac_cv_func_mmap_fixed_mapped=no
19783 cat >conftest.$ac_ext <<_ACEOF
19786 cat confdefs.h >>conftest.$ac_ext
19787 cat >>conftest.$ac_ext <<_ACEOF
19788 /* end confdefs.h. */
19789 $ac_includes_default
19790 /* malloc might have been renamed as rpl_malloc. */
19793 /* Thanks to Mike Haertel and Jim Avera for this test.
19794 Here is a matrix of mmap possibilities:
19795 mmap private not fixed
19796 mmap private fixed at somewhere currently unmapped
19797 mmap private fixed at somewhere already mapped
19798 mmap shared not fixed
19799 mmap shared fixed at somewhere currently unmapped
19800 mmap shared fixed at somewhere already mapped
19801 For private mappings, we should verify that changes cannot be read()
19802 back from the file, nor mmap's back from the file at a different
19803 address. (There have been systems where private was not correctly
19804 implemented like the infamous i386 svr4.0, and systems where the
19805 VM page cache was not coherent with the file system buffer cache
19806 like early versions of FreeBSD and possibly contemporary NetBSD.)
19807 For shared mappings, we should conversely verify that changes get
19808 propagated back to all the places they're supposed to be.
19810 Grep wants private fixed already mapped.
19811 The main things grep needs to know about mmap are:
19812 * does it exist and is it safe to write into the mmap'd area
19813 * how to use it (BSD variants) */
19816 #include <sys/mman.h>
19818 #if !STDC_HEADERS && !HAVE_STDLIB_H
19822 /* This mess was copied from the GNU getpagesize.h. */
19823 #if !HAVE_GETPAGESIZE
19824 /* Assume that all systems that can run configure have sys/param.h. */
19825 # if !HAVE_SYS_PARAM_H
19826 # define HAVE_SYS_PARAM_H 1
19829 # ifdef _SC_PAGESIZE
19830 # define getpagesize() sysconf(_SC_PAGESIZE)
19831 # else /* no _SC_PAGESIZE */
19832 # if HAVE_SYS_PARAM_H
19833 # include <sys/param.h>
19834 # ifdef EXEC_PAGESIZE
19835 # define getpagesize() EXEC_PAGESIZE
19836 # else /* no EXEC_PAGESIZE */
19838 # define getpagesize() NBPG * CLSIZE
19841 # endif /* no CLSIZE */
19842 # else /* no NBPG */
19844 # define getpagesize() NBPC
19845 # else /* no NBPC */
19847 # define getpagesize() PAGESIZE
19848 # endif /* PAGESIZE */
19849 # endif /* no NBPC */
19850 # endif /* no NBPG */
19851 # endif /* no EXEC_PAGESIZE */
19852 # else /* no HAVE_SYS_PARAM_H */
19853 # define getpagesize() 8192 /* punt totally */
19854 # endif /* no HAVE_SYS_PARAM_H */
19855 # endif /* no _SC_PAGESIZE */
19857 #endif /* no HAVE_GETPAGESIZE */
19862 char *data, *data2, *data3;
19866 pagesize = getpagesize ();
19868 /* First, make a file with some known garbage in it. */
19869 data = (char *) malloc (pagesize);
19872 for (i = 0; i < pagesize; ++i)
19873 *(data + i) = rand ();
19875 fd = creat ("conftest.mmap", 0600);
19878 if (write (fd, data, pagesize) != pagesize)
19882 /* Next, try to mmap the file at a fixed address which already has
19883 something else allocated at it. If we can, also make sure that
19884 we see the same garbage. */
19885 fd = open ("conftest.mmap", O_RDWR);
19888 data2 = (char *) malloc (2 * pagesize);
19891 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
19892 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19893 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19895 for (i = 0; i < pagesize; ++i)
19896 if (*(data + i) != *(data2 + i))
19899 /* Finally, make sure that changes to the mapped area do not
19900 percolate back to the file as seen by read(). (This is a bug on
19901 some variants of i386 svr4.0.) */
19902 for (i = 0; i < pagesize; ++i)
19903 *(data2 + i) = *(data2 + i) + 1;
19904 data3 = (char *) malloc (pagesize);
19907 if (read (fd, data3, pagesize) != pagesize)
19909 for (i = 0; i < pagesize; ++i)
19910 if (*(data + i) != *(data3 + i))
19916 rm -f conftest$ac_exeext
19917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19918 (eval $ac_link) 2>&5
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19923 (eval $ac_try) 2>&5
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); }; }; then
19927 ac_cv_func_mmap_fixed_mapped=yes
19929 echo "$as_me: program exited with status $ac_status" >&5
19930 echo "$as_me: failed program was:" >&5
19931 sed 's/^/| /' conftest.$ac_ext >&5
19933 ( exit $ac_status )
19934 ac_cv_func_mmap_fixed_mapped=no
19936 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19939 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19940 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
19941 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19943 cat >>confdefs.h <<\_ACEOF
19944 #define HAVE_MMAP 1
19948 rm -f conftest.mmap
19952 for ac_func in madvise mprotect
19954 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19955 echo "$as_me:$LINENO: checking for $ac_func" >&5
19956 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19957 if eval "test \"\${$as_ac_var+set}\" = set"; then
19958 echo $ECHO_N "(cached) $ECHO_C" >&6
19960 cat >conftest.$ac_ext <<_ACEOF
19963 cat confdefs.h >>conftest.$ac_ext
19964 cat >>conftest.$ac_ext <<_ACEOF
19965 /* end confdefs.h. */
19966 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19968 #define $ac_func innocuous_$ac_func
19970 /* System header to define __stub macros and hopefully few prototypes,
19971 which can conflict with char $ac_func (); below.
19972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19973 <limits.h> exists even on freestanding compilers. */
19976 # include <limits.h>
19978 # include <assert.h>
19983 /* Override any gcc2 internal prototype to avoid an error. */
19988 /* We use char because int might match the return type of a gcc2
19989 builtin and then its argument prototype would still apply. */
19991 /* The GNU C library defines this for functions which it implements
19992 to always fail with ENOSYS. Some functions are actually named
19993 something starting with __ and the normal name is an alias. */
19994 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19997 char (*f) () = $ac_func;
20006 return f != $ac_func;
20011 rm -f conftest.$ac_objext conftest$ac_exeext
20012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20013 (eval $ac_link) 2>conftest.er1
20015 grep -v '^ *+' conftest.er1 >conftest.err
20017 cat conftest.err >&5
20018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019 (exit $ac_status); } &&
20020 { ac_try='test -z "$ac_c_werror_flag"
20021 || test ! -s conftest.err'
20022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20023 (eval $ac_try) 2>&5
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); }; } &&
20027 { ac_try='test -s conftest$ac_exeext'
20028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20029 (eval $ac_try) 2>&5
20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032 (exit $ac_status); }; }; then
20033 eval "$as_ac_var=yes"
20035 echo "$as_me: failed program was:" >&5
20036 sed 's/^/| /' conftest.$ac_ext >&5
20038 eval "$as_ac_var=no"
20040 rm -f conftest.err conftest.$ac_objext \
20041 conftest$ac_exeext conftest.$ac_ext
20043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20044 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20045 if test `eval echo '${'$as_ac_var'}'` = yes; then
20046 cat >>confdefs.h <<_ACEOF
20047 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20053 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
20055 cat >>confdefs.h <<\_ACEOF
20061 rm -f doc/config.status
20062 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
20065 ac_config_commands="$ac_config_commands default"
20072 cat >confcache <<\_ACEOF
20073 # This file is a shell script that caches the results of configure
20074 # tests run on this system so they can be shared between configure
20075 # scripts and configure runs, see configure's option --config-cache.
20076 # It is not useful on other systems. If it contains results you don't
20077 # want to keep, you may remove or edit it.
20079 # config.status only pays attention to the cache file if you give it
20080 # the --recheck option to rerun configure.
20082 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20083 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20084 # following values.
20088 # The following way of writing the cache mishandles newlines in values,
20089 # but we know of no workaround that is simple, portable, and efficient.
20090 # So, don't put newlines in cache variables' values.
20091 # Ultrix sh set writes to stderr and can't be redirected directly,
20092 # and sets the high bit in the cache file unless we assign to the vars.
20095 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20097 # `set' does not quote correctly, so add quotes (double-quote
20098 # substitution turns \\\\ into \\, and sed turns \\ into \).
20101 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20104 # `set' quotes correctly as required by POSIX, so do not add quotes.
20106 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20113 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20115 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20117 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20118 if test -w $cache_file; then
20119 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20120 cat confcache >$cache_file
20122 echo "not updating unwritable cache $cache_file"
20127 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20128 # Let make expand exec_prefix.
20129 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20131 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20132 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20133 # trailing colons and then remove the whole line if VPATH becomes empty
20134 # (actually we leave an empty line to preserve line numbers).
20135 if test "x$srcdir" = x.; then
20136 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20137 s/:*\$(srcdir):*/:/;
20138 s/:*\${srcdir}:*/:/;
20140 s/^\([^=]*=[ ]*\):*/\1/;
20146 DEFS=-DHAVE_CONFIG_H
20150 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20151 # 1. Remove the extension, and $U if already installed.
20152 ac_i=`echo "$ac_i" |
20153 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20155 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20156 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20158 LIBOBJS=$ac_libobjs
20160 LTLIBOBJS=$ac_ltlibobjs
20163 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20164 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20165 Usually this means the macro was only invoked conditionally." >&5
20166 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20167 Usually this means the macro was only invoked conditionally." >&2;}
20168 { (exit 1); exit 1; }; }
20170 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20171 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20172 Usually this means the macro was only invoked conditionally." >&5
20173 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20174 Usually this means the macro was only invoked conditionally." >&2;}
20175 { (exit 1); exit 1; }; }
20177 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20178 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20179 Usually this means the macro was only invoked conditionally." >&5
20180 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20181 Usually this means the macro was only invoked conditionally." >&2;}
20182 { (exit 1); exit 1; }; }
20184 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
20185 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
20186 Usually this means the macro was only invoked conditionally." >&5
20187 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
20188 Usually this means the macro was only invoked conditionally." >&2;}
20189 { (exit 1); exit 1; }; }
20191 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
20192 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
20193 Usually this means the macro was only invoked conditionally." >&5
20194 echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
20195 Usually this means the macro was only invoked conditionally." >&2;}
20196 { (exit 1); exit 1; }; }
20199 : ${CONFIG_STATUS=./config.status}
20200 ac_clean_files_save=$ac_clean_files
20201 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20202 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20203 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20204 cat >$CONFIG_STATUS <<_ACEOF
20206 # Generated by $as_me.
20207 # Run this file to recreate the current configuration.
20208 # Compiler output produced by configure, useful for debugging
20209 # configure, is in config.log if it exists.
20212 ac_cs_recheck=false
20214 SHELL=\${CONFIG_SHELL-$SHELL}
20217 cat >>$CONFIG_STATUS <<\_ACEOF
20218 ## --------------------- ##
20219 ## M4sh Initialization. ##
20220 ## --------------------- ##
20222 # Be Bourne compatible
20223 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20226 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20227 # is contrary to our usage. Disable this feature.
20228 alias -g '${1+"$@"}'='"$@"'
20229 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20232 DUALCASE=1; export DUALCASE # for MKS sh
20234 # Support unset when possible.
20235 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20242 # Work around bugs in pre-3.0 UWIN ksh.
20243 $as_unset ENV MAIL MAILPATH
20250 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20251 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20252 LC_TELEPHONE LC_TIME
20254 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20255 eval $as_var=C; export $as_var
20261 # Required to use basename.
20262 if expr a : '\(a\)' >/dev/null 2>&1; then
20268 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20269 as_basename=basename
20275 # Name of the executable.
20276 as_me=`$as_basename "$0" ||
20277 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20278 X"$0" : 'X\(//\)$' \| \
20279 X"$0" : 'X\(/\)$' \| \
20280 . : '\(.\)' 2>/dev/null ||
20282 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20283 /^X\/\(\/\/\)$/{ s//\1/; q; }
20284 /^X\/\(\/\).*/{ s//\1/; q; }
20288 # PATH needs CR, and LINENO needs CR and PATH.
20289 # Avoid depending upon Character Ranges.
20290 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20291 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20292 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20293 as_cr_digits='0123456789'
20294 as_cr_alnum=$as_cr_Letters$as_cr_digits
20296 # The user is always right.
20297 if test "${PATH_SEPARATOR+set}" != set; then
20298 echo "#! /bin/sh" >conf$$.sh
20299 echo "exit 0" >>conf$$.sh
20301 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20310 as_lineno_1=$LINENO
20311 as_lineno_2=$LINENO
20312 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20313 test "x$as_lineno_1" != "x$as_lineno_2" &&
20314 test "x$as_lineno_3" = "x$as_lineno_2" || {
20315 # Find who we are. Look in the path if we contain no path at all
20318 *[\\/]* ) as_myself=$0 ;;
20319 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20320 for as_dir in $PATH
20323 test -z "$as_dir" && as_dir=.
20324 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20329 # We did not find ourselves, most probably we were run as `sh COMMAND'
20330 # in which case we are not to be found in the path.
20331 if test "x$as_myself" = x; then
20334 if test ! -f "$as_myself"; then
20335 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20336 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20337 { (exit 1); exit 1; }; }
20339 case $CONFIG_SHELL in
20341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20342 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20345 test -z "$as_dir" && as_dir=.
20346 for as_base in sh bash ksh sh5; do
20349 if ("$as_dir/$as_base" -c '
20350 as_lineno_1=$LINENO
20351 as_lineno_2=$LINENO
20352 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20353 test "x$as_lineno_1" != "x$as_lineno_2" &&
20354 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20355 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20356 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20357 CONFIG_SHELL=$as_dir/$as_base
20358 export CONFIG_SHELL
20359 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20367 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20368 # uniformly replaced by the line number. The first 'sed' inserts a
20369 # line-number line before each line; the second 'sed' does the real
20370 # work. The second script uses 'N' to pair each line-number line
20371 # with the numbered line, and appends trailing '-' during
20372 # substitution so that $LINENO is not a special case at line end.
20373 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20374 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20375 sed '=' <$as_myself |
20380 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20383 s,^['$as_cr_digits']*\n,,
20384 ' >$as_me.lineno &&
20385 chmod +x $as_me.lineno ||
20386 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20387 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20388 { (exit 1); exit 1; }; }
20390 # Don't try to exec as it changes $[0], causing all sort of problems
20391 # (the dirname of $[0] is not the place where we might find the
20392 # original and so on. Autoconf is especially sensible to this).
20394 # Exit status is that of the last command.
20399 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20400 *c*,-n*) ECHO_N= ECHO_C='
20402 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20403 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20406 if expr a : '\(a\)' >/dev/null 2>&1; then
20412 rm -f conf$$ conf$$.exe conf$$.file
20414 if ln -s conf$$.file conf$$ 2>/dev/null; then
20415 # We could just check for DJGPP; but this test a) works b) is more generic
20416 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20417 if test -f conf$$.exe; then
20418 # Don't use ln at all; we don't have any links
20423 elif ln conf$$.file conf$$ 2>/dev/null; then
20428 rm -f conf$$ conf$$.exe conf$$.file
20430 if mkdir -p . 2>/dev/null; then
20433 test -d ./-p && rmdir ./-p
20437 as_executable_p="test -f"
20439 # Sed expression to map a string onto a valid CPP name.
20440 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20442 # Sed expression to map a string onto a valid variable name.
20443 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20447 # We need space, tab and new line, in precisely that order.
20457 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20458 # report actual input values of CONFIG_FILES etc. instead of their
20459 # values after options handling. Logging --version etc. is OK.
20463 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20464 ## Running $as_me. ##
20469 This file was extended by $as_me, which was
20470 generated by GNU Autoconf 2.59. Invocation command line was
20472 CONFIG_FILES = $CONFIG_FILES
20473 CONFIG_HEADERS = $CONFIG_HEADERS
20474 CONFIG_LINKS = $CONFIG_LINKS
20475 CONFIG_COMMANDS = $CONFIG_COMMANDS
20479 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20483 # Files that config.status was made for.
20484 if test -n "$ac_config_files"; then
20485 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20488 if test -n "$ac_config_headers"; then
20489 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20492 if test -n "$ac_config_links"; then
20493 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20496 if test -n "$ac_config_commands"; then
20497 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20500 cat >>$CONFIG_STATUS <<\_ACEOF
20503 \`$as_me' instantiates files from templates according to the
20504 current configuration.
20506 Usage: $0 [OPTIONS] [FILE]...
20508 -h, --help print this help, then exit
20509 -V, --version print version number, then exit
20510 -q, --quiet do not print progress messages
20511 -d, --debug don't remove temporary files
20512 --recheck update $as_me by reconfiguring in the same conditions
20513 --file=FILE[:TEMPLATE]
20514 instantiate the configuration file FILE
20515 --header=FILE[:TEMPLATE]
20516 instantiate the configuration header FILE
20518 Configuration files:
20521 Configuration headers:
20524 Configuration commands:
20530 cat >>$CONFIG_STATUS <<_ACEOF
20533 configured by $0, generated by GNU Autoconf 2.59,
20534 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20536 Copyright (C) 2003 Free Software Foundation, Inc.
20537 This config.status script is free software; the Free Software Foundation
20538 gives unlimited permission to copy, distribute and modify it."
20543 cat >>$CONFIG_STATUS <<\_ACEOF
20544 # If no file are specified by the user, then we need to provide default
20545 # value. By we need to know if files were specified by the user.
20551 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20552 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20560 *) # This is not an option, so the user has probably given explicit
20563 ac_need_defaults=false;;
20567 # Handling of the options.
20569 cat >>$CONFIG_STATUS <<\_ACEOF
20570 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20572 --version | --vers* | -V )
20573 echo "$ac_cs_version"; exit 0 ;;
20575 # Conflict between --help and --header
20576 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20577 Try \`$0 --help' for more information." >&5
20578 echo "$as_me: error: ambiguous option: $1
20579 Try \`$0 --help' for more information." >&2;}
20580 { (exit 1); exit 1; }; };;
20581 --help | --hel | -h )
20582 echo "$ac_cs_usage"; exit 0 ;;
20583 --debug | --d* | -d )
20585 --file | --fil | --fi | --f )
20587 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20588 ac_need_defaults=false;;
20589 --header | --heade | --head | --hea )
20591 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20592 ac_need_defaults=false;;
20593 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20594 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20597 # This is an error.
20598 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20599 Try \`$0 --help' for more information." >&5
20600 echo "$as_me: error: unrecognized option: $1
20601 Try \`$0 --help' for more information." >&2;}
20602 { (exit 1); exit 1; }; } ;;
20604 *) ac_config_targets="$ac_config_targets $1" ;;
20610 ac_configure_extra_args=
20612 if $ac_cs_silent; then
20614 ac_configure_extra_args="$ac_configure_extra_args --silent"
20618 cat >>$CONFIG_STATUS <<_ACEOF
20619 if \$ac_cs_recheck; then
20620 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20621 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20626 cat >>$CONFIG_STATUS <<_ACEOF
20628 # INIT-COMMANDS section.
20631 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20634 # The HP-UX ksh and POSIX shell print the target directory to stdout
20635 # if CDPATH is set.
20636 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20638 sed_quote_subst='$sed_quote_subst'
20639 double_quote_subst='$double_quote_subst'
20640 delay_variable_subst='$delay_variable_subst'
20641 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
20642 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
20643 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
20644 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
20645 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
20646 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
20647 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
20648 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
20649 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
20650 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
20651 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
20652 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
20653 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
20654 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
20655 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
20656 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
20657 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
20658 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
20659 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
20660 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
20661 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
20662 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
20663 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
20664 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
20665 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
20666 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
20667 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20668 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20669 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20670 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20671 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20672 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20673 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20674 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20675 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20676 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20677 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20678 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20679 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20680 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20681 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20682 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20683 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20684 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"`'
20685 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20686 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20687 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20688 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20689 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20690 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20691 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20692 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20693 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20694 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20695 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20696 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20697 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20698 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20699 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20700 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20701 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20702 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
20703 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20704 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20705 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20706 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20707 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20708 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20709 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20710 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20711 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20712 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20713 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20714 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20715 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20716 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
20717 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20718 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20719 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20720 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20721 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20722 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20723 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20724 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20725 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20726 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20727 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20728 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
20729 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
20730 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20731 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
20732 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
20733 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20734 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20735 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20736 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20737 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20738 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20739 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20740 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20741 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20742 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20743 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20744 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20745 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20746 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20747 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20748 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20749 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20750 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20751 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20754 LTCFLAGS='$LTCFLAGS'
20755 compiler='$compiler_DEFAULT'
20757 # Quote evaled strings.
20768 deplibs_check_method \
20777 lt_cv_sys_global_symbol_pipe \
20778 lt_cv_sys_global_symbol_to_cdecl \
20779 lt_cv_sys_global_symbol_to_c_name_address \
20782 lt_prog_compiler_no_builtin_flag \
20783 lt_prog_compiler_wl \
20784 lt_prog_compiler_pic \
20785 lt_prog_compiler_static \
20786 lt_cv_prog_compiler_c_o \
20789 export_dynamic_flag_spec \
20790 whole_archive_flag_spec \
20791 compiler_needs_object \
20793 allow_undefined_flag \
20794 no_undefined_flag \
20795 hardcode_libdir_flag_spec \
20796 hardcode_libdir_flag_spec_ld \
20797 hardcode_libdir_separator \
20802 variables_saved_for_relink \
20804 library_names_spec \
20809 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20810 *[\\\\\\\`\\"\\\$]*)
20811 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20814 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20819 # Double-quote double-evaled strings.
20820 for var in reload_cmds \
20821 old_postinstall_cmds \
20822 old_postuninstall_cmds \
20824 extract_expsyms_cmds \
20825 old_archive_from_new_cmds \
20826 old_archive_from_expsyms_cmds \
20828 archive_expsym_cmds \
20830 module_expsym_cmds \
20831 export_symbols_cmds \
20834 postuninstall_cmds \
20836 sys_lib_search_path_spec \
20837 sys_lib_dlsearch_path_spec; do
20838 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20839 *[\\\\\\\`\\"\\\$]*)
20840 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20843 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20848 # Fix-up fallback echo if it was mangled by the above quoting rules.
20850 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
20854 ac_aux_dir='$ac_aux_dir'
20855 xsi_shell='$xsi_shell'
20856 lt_shell_append='$lt_shell_append'
20858 # See if we are running on zsh, and set the options which allow our
20859 # commands through without removal of \ escapes INIT.
20860 if test -n "\${ZSH_VERSION+set}" ; then
20861 setopt NO_GLOB_SUBST
20867 TIMESTAMP='$TIMESTAMP'
20873 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
20874 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
20876 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
20877 # Capture the value of LINGUAS because we need it to compute CATALOGS.
20878 LINGUAS="${LINGUAS-%UNSET%}"
20883 acx_cv_header_stdint="$acx_cv_header_stdint"
20884 acx_cv_type_int8_t="$acx_cv_type_int8_t"
20885 acx_cv_type_int16_t="$acx_cv_type_int16_t"
20886 acx_cv_type_int32_t="$acx_cv_type_int32_t"
20887 acx_cv_type_int64_t="$acx_cv_type_int64_t"
20888 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
20889 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
20890 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
20891 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
20892 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
20893 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
20894 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
20895 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
20896 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
20904 cat >>$CONFIG_STATUS <<\_ACEOF
20905 for ac_config_target in $ac_config_targets
20907 case "$ac_config_target" in
20908 # Handling of arguments.
20909 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20910 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20911 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
20912 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
20913 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20914 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20915 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20916 "bfd_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
20917 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
20918 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
20919 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20920 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20921 { (exit 1); exit 1; }; };;
20925 # If the user did not use the arguments to specify the items to instantiate,
20926 # then the envvar interface is used. Set only those that are not.
20927 # We use the long form for the default assignment because of an extremely
20928 # bizarre bug on SunOS 4.1.3.
20929 if $ac_need_defaults; then
20930 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20931 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20932 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20935 # Have a temporary directory for convenience. Make it in the build tree
20936 # simply because there is no reason to put it here, and in addition,
20937 # creating and moving files from /tmp can sometimes cause problems.
20938 # Create a temporary directory, and hook for its removal unless debugging.
20941 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20942 trap '{ (exit 1); exit 1; }' 1 2 13 15
20945 # Create a (secure) tmp directory for tmp files.
20948 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20949 test -n "$tmp" && test -d "$tmp"
20952 tmp=./confstat$$-$RANDOM
20953 (umask 077 && mkdir $tmp)
20956 echo "$me: cannot create a temporary directory in ." >&2
20957 { (exit 1); exit 1; }
20962 cat >>$CONFIG_STATUS <<_ACEOF
20965 # CONFIG_FILES section.
20968 # No need to generate the scripts if there are no CONFIG_FILES.
20969 # This happens for instance when ./config.status config.h
20970 if test -n "\$CONFIG_FILES"; then
20971 # Protect against being on the right side of a sed subst in config.status.
20972 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20973 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20974 s,@SHELL@,$SHELL,;t t
20975 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20976 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20977 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20978 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20979 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20980 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20981 s,@exec_prefix@,$exec_prefix,;t t
20982 s,@prefix@,$prefix,;t t
20983 s,@program_transform_name@,$program_transform_name,;t t
20984 s,@bindir@,$bindir,;t t
20985 s,@sbindir@,$sbindir,;t t
20986 s,@libexecdir@,$libexecdir,;t t
20987 s,@datadir@,$datadir,;t t
20988 s,@sysconfdir@,$sysconfdir,;t t
20989 s,@sharedstatedir@,$sharedstatedir,;t t
20990 s,@localstatedir@,$localstatedir,;t t
20991 s,@libdir@,$libdir,;t t
20992 s,@includedir@,$includedir,;t t
20993 s,@oldincludedir@,$oldincludedir,;t t
20994 s,@infodir@,$infodir,;t t
20995 s,@mandir@,$mandir,;t t
20996 s,@build_alias@,$build_alias,;t t
20997 s,@host_alias@,$host_alias,;t t
20998 s,@target_alias@,$target_alias,;t t
20999 s,@DEFS@,$DEFS,;t t
21000 s,@ECHO_C@,$ECHO_C,;t t
21001 s,@ECHO_N@,$ECHO_N,;t t
21002 s,@ECHO_T@,$ECHO_T,;t t
21003 s,@LIBS@,$LIBS,;t t
21004 s,@build@,$build,;t t
21005 s,@build_cpu@,$build_cpu,;t t
21006 s,@build_vendor@,$build_vendor,;t t
21007 s,@build_os@,$build_os,;t t
21008 s,@host@,$host,;t t
21009 s,@host_cpu@,$host_cpu,;t t
21010 s,@host_vendor@,$host_vendor,;t t
21011 s,@host_os@,$host_os,;t t
21012 s,@target@,$target,;t t
21013 s,@target_cpu@,$target_cpu,;t t
21014 s,@target_vendor@,$target_vendor,;t t
21015 s,@target_os@,$target_os,;t t
21017 s,@CFLAGS@,$CFLAGS,;t t
21018 s,@LDFLAGS@,$LDFLAGS,;t t
21019 s,@CPPFLAGS@,$CPPFLAGS,;t t
21020 s,@ac_ct_CC@,$ac_ct_CC,;t t
21021 s,@EXEEXT@,$EXEEXT,;t t
21022 s,@OBJEXT@,$OBJEXT,;t t
21023 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21024 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21025 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21026 s,@CYGPATH_W@,$CYGPATH_W,;t t
21027 s,@PACKAGE@,$PACKAGE,;t t
21028 s,@VERSION@,$VERSION,;t t
21029 s,@ACLOCAL@,$ACLOCAL,;t t
21030 s,@AUTOCONF@,$AUTOCONF,;t t
21031 s,@AUTOMAKE@,$AUTOMAKE,;t t
21032 s,@AUTOHEADER@,$AUTOHEADER,;t t
21033 s,@MAKEINFO@,$MAKEINFO,;t t
21034 s,@install_sh@,$install_sh,;t t
21035 s,@STRIP@,$STRIP,;t t
21036 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21037 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21038 s,@mkdir_p@,$mkdir_p,;t t
21040 s,@SET_MAKE@,$SET_MAKE,;t t
21041 s,@am__leading_dot@,$am__leading_dot,;t t
21042 s,@AMTAR@,$AMTAR,;t t
21043 s,@am__tar@,$am__tar,;t t
21044 s,@am__untar@,$am__untar,;t t
21045 s,@DEPDIR@,$DEPDIR,;t t
21046 s,@am__include@,$am__include,;t t
21047 s,@am__quote@,$am__quote,;t t
21048 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21049 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21050 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21051 s,@CCDEPMODE@,$CCDEPMODE,;t t
21052 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21053 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21055 s,@ac_ct_AR@,$ac_ct_AR,;t t
21056 s,@RANLIB@,$RANLIB,;t t
21057 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21058 s,@LIBTOOL@,$LIBTOOL,;t t
21060 s,@EGREP@,$EGREP,;t t
21061 s,@FGREP@,$FGREP,;t t
21062 s,@GREP@,$GREP,;t t
21064 s,@DUMPBIN@,$DUMPBIN,;t t
21065 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
21067 s,@LN_S@,$LN_S,;t t
21068 s,@lt_ECHO@,$lt_ECHO,;t t
21070 s,@PKGVERSION@,$PKGVERSION,;t t
21071 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
21072 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
21073 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
21074 s,@NO_WERROR@,$NO_WERROR,;t t
21075 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21076 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21077 s,@MAINT@,$MAINT,;t t
21078 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
21079 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
21080 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
21081 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
21082 s,@host_noncanonical@,$host_noncanonical,;t t
21083 s,@target_noncanonical@,$target_noncanonical,;t t
21084 s,@bfdlibdir@,$bfdlibdir,;t t
21085 s,@bfdincludedir@,$bfdincludedir,;t t
21086 s,@USE_NLS@,$USE_NLS,;t t
21087 s,@LIBINTL@,$LIBINTL,;t t
21088 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
21089 s,@INCINTL@,$INCINTL,;t t
21090 s,@XGETTEXT@,$XGETTEXT,;t t
21091 s,@GMSGFMT@,$GMSGFMT,;t t
21092 s,@POSUB@,$POSUB,;t t
21093 s,@CATALOGS@,$CATALOGS,;t t
21094 s,@DATADIRNAME@,$DATADIRNAME,;t t
21095 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
21096 s,@GENCAT@,$GENCAT,;t t
21097 s,@CATOBJEXT@,$CATOBJEXT,;t t
21098 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
21099 s,@MSGFMT@,$MSGFMT,;t t
21100 s,@MSGMERGE@,$MSGMERGE,;t t
21101 s,@HDEFINES@,$HDEFINES,;t t
21102 s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
21103 s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
21104 s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
21105 s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
21106 s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
21107 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
21108 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
21109 s,@COREFILE@,$COREFILE,;t t
21110 s,@COREFLAG@,$COREFLAG,;t t
21111 s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
21112 s,@WIN32LIBADD@,$WIN32LIBADD,;t t
21113 s,@TDEFINES@,$TDEFINES,;t t
21114 s,@wordsize@,$wordsize,;t t
21115 s,@bfd64_libs@,$bfd64_libs,;t t
21116 s,@all_backends@,$all_backends,;t t
21117 s,@bfd_backends@,$bfd_backends,;t t
21118 s,@bfd_machines@,$bfd_machines,;t t
21119 s,@bfd_default_target_size@,$bfd_default_target_size,;t t
21120 s,@bfd_file_ptr@,$bfd_file_ptr,;t t
21121 s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
21122 s,@tdefaults@,$tdefaults,;t t
21123 s,@datarootdir@,$datarootdir,;t t
21124 s,@docdir@,$docdir,;t t
21125 s,@htmldir@,$htmldir,;t t
21126 s,@LIBOBJS@,$LIBOBJS,;t t
21127 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21132 cat >>$CONFIG_STATUS <<\_ACEOF
21133 # Split the substitutions into bite-sized pieces for seds with
21134 # small command number limits, like on Digital OSF/1 and HP-UX.
21135 ac_max_sed_lines=48
21136 ac_sed_frag=1 # Number of current file.
21137 ac_beg=1 # First line for current file.
21138 ac_end=$ac_max_sed_lines # Line after last line for current file.
21141 while $ac_more_lines; do
21142 if test $ac_beg -gt 1; then
21143 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21145 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21147 if test ! -s $tmp/subs.frag; then
21148 ac_more_lines=false
21150 # The purpose of the label and of the branching condition is to
21151 # speed up the sed processing (if there are no `@' at all, there
21152 # is no need to browse any of the substitutions).
21153 # These are the two extra sed commands mentioned above.
21155 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21156 if test -z "$ac_sed_cmds"; then
21157 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21159 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21161 ac_sed_frag=`expr $ac_sed_frag + 1`
21163 ac_end=`expr $ac_end + $ac_max_sed_lines`
21166 if test -z "$ac_sed_cmds"; then
21169 fi # test -n "$CONFIG_FILES"
21172 cat >>$CONFIG_STATUS <<\_ACEOF
21173 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21174 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21176 - | *:- | *:-:* ) # input from stdin
21178 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21179 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21180 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21181 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21182 * ) ac_file_in=$ac_file.in ;;
21185 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21186 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21187 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21188 X"$ac_file" : 'X\(//\)[^/]' \| \
21189 X"$ac_file" : 'X\(//\)$' \| \
21190 X"$ac_file" : 'X\(/\)' \| \
21191 . : '\(.\)' 2>/dev/null ||
21193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21194 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21195 /^X\(\/\/\)$/{ s//\1/; q; }
21196 /^X\(\/\).*/{ s//\1/; q; }
21198 { if $as_mkdir_p; then
21203 while test ! -d "$as_dir"; do
21204 as_dirs="$as_dir $as_dirs"
21205 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21206 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21207 X"$as_dir" : 'X\(//\)[^/]' \| \
21208 X"$as_dir" : 'X\(//\)$' \| \
21209 X"$as_dir" : 'X\(/\)' \| \
21210 . : '\(.\)' 2>/dev/null ||
21212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21213 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21214 /^X\(\/\/\)$/{ s//\1/; q; }
21215 /^X\(\/\).*/{ s//\1/; q; }
21218 test ! -n "$as_dirs" || mkdir $as_dirs
21219 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21220 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21221 { (exit 1); exit 1; }; }; }
21225 if test "$ac_dir" != .; then
21226 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21227 # A "../" for each directory in $ac_dir_suffix.
21228 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21230 ac_dir_suffix= ac_top_builddir=
21234 .) # No --srcdir option. We are building in place.
21236 if test -z "$ac_top_builddir"; then
21239 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21241 [\\/]* | ?:[\\/]* ) # Absolute path.
21242 ac_srcdir=$srcdir$ac_dir_suffix;
21243 ac_top_srcdir=$srcdir ;;
21244 *) # Relative path.
21245 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21246 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21249 # Do not use `cd foo && pwd` to compute absolute paths, because
21250 # the directories may not exist.
21252 .) ac_abs_builddir="$ac_dir";;
21255 .) ac_abs_builddir=`pwd`;;
21256 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21257 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21260 case $ac_abs_builddir in
21261 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21263 case ${ac_top_builddir}. in
21264 .) ac_abs_top_builddir=$ac_abs_builddir;;
21265 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21266 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21269 case $ac_abs_builddir in
21270 .) ac_abs_srcdir=$ac_srcdir;;
21273 .) ac_abs_srcdir=$ac_abs_builddir;;
21274 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21275 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21278 case $ac_abs_builddir in
21279 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21281 case $ac_top_srcdir in
21282 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21283 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21284 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21290 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21291 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21294 if test x"$ac_file" != x-; then
21295 { echo "$as_me:$LINENO: creating $ac_file" >&5
21296 echo "$as_me: creating $ac_file" >&6;}
21299 # Let's still pretend it is `configure' which instantiates (i.e., don't
21300 # use $as_me), people would be surprised to read:
21301 # /* config.h. Generated by config.status. */
21302 if test x"$ac_file" = x-; then
21305 configure_input="$ac_file. "
21307 configure_input=$configure_input"Generated from `echo $ac_file_in |
21308 sed 's,.*/,,'` by configure."
21310 # First look for the input files in the build tree, otherwise in the
21312 ac_file_inputs=`IFS=:
21313 for f in $ac_file_in; do
21315 -) echo $tmp/stdin ;;
21317 # Absolute (can't be DOS-style, as IFS=:)
21318 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21319 echo "$as_me: error: cannot find input file: $f" >&2;}
21320 { (exit 1); exit 1; }; }
21323 if test -f "$f"; then
21326 elif test -f "$srcdir/$f"; then
21331 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21332 echo "$as_me: error: cannot find input file: $f" >&2;}
21333 { (exit 1); exit 1; }; }
21336 done` || { (exit 1); exit 1; }
21338 cat >>$CONFIG_STATUS <<_ACEOF
21342 cat >>$CONFIG_STATUS <<\_ACEOF
21344 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21345 s,@configure_input@,$configure_input,;t t
21346 s,@srcdir@,$ac_srcdir,;t t
21347 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21348 s,@top_srcdir@,$ac_top_srcdir,;t t
21349 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21350 s,@builddir@,$ac_builddir,;t t
21351 s,@abs_builddir@,$ac_abs_builddir,;t t
21352 s,@top_builddir@,$ac_top_builddir,;t t
21353 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21354 s,@INSTALL@,$ac_INSTALL,;t t
21355 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21357 if test x"$ac_file" != x-; then
21358 mv $tmp/out $ac_file
21366 cat >>$CONFIG_STATUS <<\_ACEOF
21369 # CONFIG_HEADER section.
21372 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21373 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21375 # ac_d sets the value in "#define NAME VALUE" lines.
21376 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21377 ac_dB='[ ].*$,\1#\2'
21380 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21381 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21382 ac_uB='$,\1#\2define\3'
21386 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21387 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21389 - | *:- | *:-:* ) # input from stdin
21391 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21392 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21393 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21394 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21395 * ) ac_file_in=$ac_file.in ;;
21398 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21399 echo "$as_me: creating $ac_file" >&6;}
21401 # First look for the input files in the build tree, otherwise in the
21403 ac_file_inputs=`IFS=:
21404 for f in $ac_file_in; do
21406 -) echo $tmp/stdin ;;
21408 # Absolute (can't be DOS-style, as IFS=:)
21409 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21410 echo "$as_me: error: cannot find input file: $f" >&2;}
21411 { (exit 1); exit 1; }; }
21412 # Do quote $f, to prevent DOS paths from being IFS'd.
21415 if test -f "$f"; then
21418 elif test -f "$srcdir/$f"; then
21423 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21424 echo "$as_me: error: cannot find input file: $f" >&2;}
21425 { (exit 1); exit 1; }; }
21428 done` || { (exit 1); exit 1; }
21429 # Remove the trailing spaces.
21430 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21434 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21435 # `conftest.undefs', that substitutes the proper values into
21436 # config.h.in to produce config.h. The first handles `#define'
21437 # templates, and the second `#undef' templates.
21438 # And first: Protect against being on the right side of a sed subst in
21439 # config.status. Protect against being in an unquoted here document
21440 # in config.status.
21441 rm -f conftest.defines conftest.undefs
21442 # Using a here document instead of a string reduces the quoting nightmare.
21443 # Putting comments in sed scripts is not portable.
21445 # `end' is used to avoid that the second main sed command (meant for
21446 # 0-ary CPP macros) applies to n-ary macro definitions.
21447 # See the Autoconf documentation for `clear'.
21448 cat >confdef2sed.sed <<\_ACEOF
21453 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21455 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21458 # If some macros were called several times there might be several times
21459 # the same #defines, which is useless. Nevertheless, we may not want to
21460 # sort them, since we want the *last* AC-DEFINE to be honored.
21461 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21462 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21463 rm -f confdef2sed.sed
21465 # This sed command replaces #undef with comments. This is necessary, for
21466 # example, in the case of _POSIX_SOURCE, which is predefined and required
21467 # on some systems where configure will not decide to define it.
21468 cat >>conftest.undefs <<\_ACEOF
21469 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21472 # Break up conftest.defines because some shells have a limit on the size
21473 # of here documents, and old seds have small limits too (100 cmds).
21474 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21475 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21476 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21477 echo ' :' >>$CONFIG_STATUS
21478 rm -f conftest.tail
21479 while grep . conftest.defines >/dev/null
21481 # Write a limited-size here document to $tmp/defines.sed.
21482 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21483 # Speed up: don't consider the non `#define' lines.
21484 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21485 # Work around the forget-to-reset-the-flag bug.
21486 echo 't clr' >>$CONFIG_STATUS
21487 echo ': clr' >>$CONFIG_STATUS
21488 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21490 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21492 mv $tmp/out $tmp/in
21494 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21495 rm -f conftest.defines
21496 mv conftest.tail conftest.defines
21498 rm -f conftest.defines
21499 echo ' fi # grep' >>$CONFIG_STATUS
21500 echo >>$CONFIG_STATUS
21502 # Break up conftest.undefs because some shells have a limit on the size
21503 # of here documents, and old seds have small limits too (100 cmds).
21504 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21505 rm -f conftest.tail
21506 while grep . conftest.undefs >/dev/null
21508 # Write a limited-size here document to $tmp/undefs.sed.
21509 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21510 # Speed up: don't consider the non `#undef'
21511 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21512 # Work around the forget-to-reset-the-flag bug.
21513 echo 't clr' >>$CONFIG_STATUS
21514 echo ': clr' >>$CONFIG_STATUS
21515 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21517 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21519 mv $tmp/out $tmp/in
21521 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21522 rm -f conftest.undefs
21523 mv conftest.tail conftest.undefs
21525 rm -f conftest.undefs
21527 cat >>$CONFIG_STATUS <<\_ACEOF
21528 # Let's still pretend it is `configure' which instantiates (i.e., don't
21529 # use $as_me), people would be surprised to read:
21530 # /* config.h. Generated by config.status. */
21531 if test x"$ac_file" = x-; then
21532 echo "/* Generated by configure. */" >$tmp/config.h
21534 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21536 cat $tmp/in >>$tmp/config.h
21538 if test x"$ac_file" != x-; then
21539 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21540 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21541 echo "$as_me: $ac_file is unchanged" >&6;}
21543 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21544 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21545 X"$ac_file" : 'X\(//\)[^/]' \| \
21546 X"$ac_file" : 'X\(//\)$' \| \
21547 X"$ac_file" : 'X\(/\)' \| \
21548 . : '\(.\)' 2>/dev/null ||
21550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21551 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21552 /^X\(\/\/\)$/{ s//\1/; q; }
21553 /^X\(\/\).*/{ s//\1/; q; }
21555 { if $as_mkdir_p; then
21560 while test ! -d "$as_dir"; do
21561 as_dirs="$as_dir $as_dirs"
21562 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21563 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21564 X"$as_dir" : 'X\(//\)[^/]' \| \
21565 X"$as_dir" : 'X\(//\)$' \| \
21566 X"$as_dir" : 'X\(/\)' \| \
21567 . : '\(.\)' 2>/dev/null ||
21569 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21570 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21571 /^X\(\/\/\)$/{ s//\1/; q; }
21572 /^X\(\/\).*/{ s//\1/; q; }
21575 test ! -n "$as_dirs" || mkdir $as_dirs
21576 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21577 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21578 { (exit 1); exit 1; }; }; }
21581 mv $tmp/config.h $ac_file
21585 rm -f $tmp/config.h
21587 # Compute $ac_file's index in $config_headers.
21589 for _am_header in $config_headers :; do
21590 case $_am_header in
21591 $ac_file | $ac_file:* )
21594 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21597 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21598 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21599 X$ac_file : 'X\(//\)[^/]' \| \
21600 X$ac_file : 'X\(//\)$' \| \
21601 X$ac_file : 'X\(/\)' \| \
21602 . : '\(.\)' 2>/dev/null ||
21604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21605 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21606 /^X\(\/\/\)$/{ s//\1/; q; }
21607 /^X\(\/\).*/{ s//\1/; q; }
21608 s/.*/./; q'`/stamp-h$_am_stamp_count
21611 cat >>$CONFIG_STATUS <<\_ACEOF
21614 # CONFIG_COMMANDS section.
21616 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21617 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21618 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21619 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21620 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21621 X"$ac_dest" : 'X\(//\)[^/]' \| \
21622 X"$ac_dest" : 'X\(//\)$' \| \
21623 X"$ac_dest" : 'X\(/\)' \| \
21624 . : '\(.\)' 2>/dev/null ||
21626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21627 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21628 /^X\(\/\/\)$/{ s//\1/; q; }
21629 /^X\(\/\).*/{ s//\1/; q; }
21631 { if $as_mkdir_p; then
21636 while test ! -d "$as_dir"; do
21637 as_dirs="$as_dir $as_dirs"
21638 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21639 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21640 X"$as_dir" : 'X\(//\)[^/]' \| \
21641 X"$as_dir" : 'X\(//\)$' \| \
21642 X"$as_dir" : 'X\(/\)' \| \
21643 . : '\(.\)' 2>/dev/null ||
21645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21646 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21647 /^X\(\/\/\)$/{ s//\1/; q; }
21648 /^X\(\/\).*/{ s//\1/; q; }
21651 test ! -n "$as_dirs" || mkdir $as_dirs
21652 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21653 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21654 { (exit 1); exit 1; }; }; }
21658 if test "$ac_dir" != .; then
21659 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21660 # A "../" for each directory in $ac_dir_suffix.
21661 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21663 ac_dir_suffix= ac_top_builddir=
21667 .) # No --srcdir option. We are building in place.
21669 if test -z "$ac_top_builddir"; then
21672 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21674 [\\/]* | ?:[\\/]* ) # Absolute path.
21675 ac_srcdir=$srcdir$ac_dir_suffix;
21676 ac_top_srcdir=$srcdir ;;
21677 *) # Relative path.
21678 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21679 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21682 # Do not use `cd foo && pwd` to compute absolute paths, because
21683 # the directories may not exist.
21685 .) ac_abs_builddir="$ac_dir";;
21688 .) ac_abs_builddir=`pwd`;;
21689 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21690 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21693 case $ac_abs_builddir in
21694 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21696 case ${ac_top_builddir}. in
21697 .) ac_abs_top_builddir=$ac_abs_builddir;;
21698 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21699 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21702 case $ac_abs_builddir in
21703 .) ac_abs_srcdir=$ac_srcdir;;
21706 .) ac_abs_srcdir=$ac_abs_builddir;;
21707 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21708 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21711 case $ac_abs_builddir in
21712 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21714 case $ac_top_srcdir in
21715 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21716 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21717 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21722 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21723 echo "$as_me: executing $ac_dest commands" >&6;}
21725 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21726 # Strip MF so we end up with the name of the file.
21727 mf=`echo "$mf" | sed -e 's/:.*$//'`
21728 # Check whether this is an Automake generated Makefile or not.
21729 # We used to match only the files named `Makefile.in', but
21730 # some people rename them; so instead we look at the file content.
21731 # Grep'ing the first line is not enough: some people post-process
21732 # each Makefile.in and add a new line on top of each file to say so.
21733 # So let's grep whole file.
21734 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21735 dirpart=`(dirname "$mf") 2>/dev/null ||
21736 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21737 X"$mf" : 'X\(//\)[^/]' \| \
21738 X"$mf" : 'X\(//\)$' \| \
21739 X"$mf" : 'X\(/\)' \| \
21740 . : '\(.\)' 2>/dev/null ||
21742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21743 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21744 /^X\(\/\/\)$/{ s//\1/; q; }
21745 /^X\(\/\).*/{ s//\1/; q; }
21750 # Extract the definition of DEPDIR, am__include, and am__quote
21751 # from the Makefile without running `make'.
21752 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21753 test -z "$DEPDIR" && continue
21754 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21755 test -z "am__include" && continue
21756 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21757 # When using ansi2knr, U may be empty or an underscore; expand it
21758 U=`sed -n 's/^U = //p' < "$mf"`
21759 # Find all dependency output files, they are included files with
21760 # $(DEPDIR) in their names. We invoke sed twice because it is the
21761 # simplest approach to changing $(DEPDIR) to its actual value in the
21763 for file in `sed -n "
21764 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21765 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21766 # Make sure the directory exists.
21767 test -f "$dirpart/$file" && continue
21768 fdir=`(dirname "$file") 2>/dev/null ||
21769 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21770 X"$file" : 'X\(//\)[^/]' \| \
21771 X"$file" : 'X\(//\)$' \| \
21772 X"$file" : 'X\(/\)' \| \
21773 . : '\(.\)' 2>/dev/null ||
21775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21776 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21777 /^X\(\/\/\)$/{ s//\1/; q; }
21778 /^X\(\/\).*/{ s//\1/; q; }
21780 { if $as_mkdir_p; then
21781 mkdir -p $dirpart/$fdir
21783 as_dir=$dirpart/$fdir
21785 while test ! -d "$as_dir"; do
21786 as_dirs="$as_dir $as_dirs"
21787 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21788 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21789 X"$as_dir" : 'X\(//\)[^/]' \| \
21790 X"$as_dir" : 'X\(//\)$' \| \
21791 X"$as_dir" : 'X\(/\)' \| \
21792 . : '\(.\)' 2>/dev/null ||
21794 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21795 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21796 /^X\(\/\/\)$/{ s//\1/; q; }
21797 /^X\(\/\).*/{ s//\1/; q; }
21800 test ! -n "$as_dirs" || mkdir $as_dirs
21801 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21802 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21803 { (exit 1); exit 1; }; }; }
21805 # echo "creating $dirpart/$file"
21806 echo '# dummy' > "$dirpart/$file"
21812 # See if we are running on zsh, and set the options which allow our
21813 # commands through without removal of \ escapes.
21814 if test -n "${ZSH_VERSION+set}" ; then
21815 setopt NO_GLOB_SUBST
21818 cfgfile="${ofile}T"
21819 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21822 cat <<_LT_EOF >> "$cfgfile"
21825 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21826 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
21827 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21828 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21830 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21831 # 2006, 2007 Free Software Foundation, Inc.
21833 # This file is part of GNU Libtool:
21836 # This program is free software; you can redistribute it and/or modify
21837 # it under the terms of the GNU General Public License as published by
21838 # the Free Software Foundation; either version 2 of the License, or
21839 # (at your option) any later version.
21841 # This program is distributed in the hope that it will be useful, but
21842 # WITHOUT ANY WARRANTY; without even the implied warranty of
21843 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21844 # General Public License for more details.
21846 # You should have received a copy of the GNU General Public License
21847 # along with this program; if not, a copy can be downloaded from
21848 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
21849 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
21850 # MA 02110-1301, USA.
21852 # As a special exception to the GNU General Public License, if you
21853 # distribute this file as part of a program that contains a
21854 # configuration script generated by Autoconf, you may include it under
21855 # the same distribution terms that you use for the rest of that program.
21858 # The names of the tagged configurations supported by this script.
21861 # ### BEGIN LIBTOOL CONFIG
21863 # Whether or not to build shared libraries.
21864 build_libtool_libs=$enable_shared
21866 # Which release of libtool.m4 was used?
21867 macro_version=$macro_version
21868 macro_revision=$macro_revision
21870 # Whether or not to build static libraries.
21871 build_old_libs=$enable_static
21873 # What type of objects to build.
21876 # Whether or not to optimize for fast installation.
21877 fast_install=$enable_fast_install
21880 host_alias=$host_alias
21884 # The build system.
21885 build_alias=$build_alias
21889 # A sed program that does not truncate output.
21892 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21893 Xsed="\$SED -e 1s/^X//"
21895 # A grep program that handles long lines.
21901 # A literal string matcher.
21904 # A BSD- or MS-compatible name lister.
21907 # Whether we need soft or hard links.
21910 # What is the maximum length of a command?
21911 max_cmd_len=$max_cmd_len
21913 # Object file suffix (normally "o").
21916 # Executable file suffix (normally "").
21919 # whether the shell understands "unset".
21922 # turn spaces into newlines.
21925 # turn newlines into spaces.
21928 # How to create reloadable object files.
21929 reload_flag=$lt_reload_flag
21930 reload_cmds=$lt_reload_cmds
21932 # Method to check whether dependent libraries are shared objects.
21933 deplibs_check_method=$lt_deplibs_check_method
21935 # Command to use when deplibs_check_method == "file_magic".
21936 file_magic_cmd=$lt_file_magic_cmd
21940 AR_FLAGS=$lt_AR_FLAGS
21942 # A symbol stripping program.
21945 # Commands used to install an old-style archive.
21947 old_postinstall_cmds=$lt_old_postinstall_cmds
21948 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21953 # LTCC compiler flags.
21954 LTCFLAGS=$lt_CFLAGS
21956 # Take the output of nm and produce a listing of raw symbols and C names.
21957 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21959 # Transform the output of nm in a proper C declaration.
21960 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21962 # Transform the output of nm in a C name address pair.
21963 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21965 # The name of the directory that contains temporary libtool files.
21968 # Shell to use when invoking shell scripts.
21971 # An echo program that does not interpret backslashes.
21974 # Used to examine libraries when file_magic_cmd begins with "file".
21975 MAGIC_CMD=$MAGIC_CMD
21977 # Must we lock files when doing compilation?
21978 need_locks=$lt_need_locks
21980 # Old archive suffix (normally "a").
21983 # Shared library suffix (normally ".so").
21984 shrext_cmds=$lt_shrext_cmds
21986 # The commands to extract the exported symbol list from a shared archive.
21987 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21989 # Variables whose values should be saved in libtool wrapper scripts and
21990 # restored at link time.
21991 variables_saved_for_relink=$lt_variables_saved_for_relink
21993 # Do we need the "lib" prefix for modules?
21994 need_lib_prefix=$need_lib_prefix
21996 # Do we need a version for libraries?
21997 need_version=$need_version
21999 # Library versioning type.
22000 version_type=$version_type
22002 # Shared library runtime path variable.
22003 runpath_var=$runpath_var
22005 # Shared library path variable.
22006 shlibpath_var=$shlibpath_var
22008 # Is shlibpath searched before the hard-coded library search path?
22009 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22011 # Format of library name prefix.
22012 libname_spec=$lt_libname_spec
22014 # List of archive names. First name is the real one, the rest are links.
22015 # The last name is the one that the linker finds with -lNAME
22016 library_names_spec=$lt_library_names_spec
22018 # The coded name of the library, if different from the real name.
22019 soname_spec=$lt_soname_spec
22021 # Command to use after installation of a shared archive.
22022 postinstall_cmds=$lt_postinstall_cmds
22024 # Command to use after uninstallation of a shared archive.
22025 postuninstall_cmds=$lt_postuninstall_cmds
22027 # Commands used to finish a libtool library installation in a directory.
22028 finish_cmds=$lt_finish_cmds
22030 # As "finish_cmds", except a single script fragment to be evaled but
22032 finish_eval=$lt_finish_eval
22034 # Whether we should hardcode library paths into libraries.
22035 hardcode_into_libs=$hardcode_into_libs
22037 # Compile-time system search path for libraries.
22038 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22040 # Run-time system search path for libraries.
22041 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22043 # Whether dlopen is supported.
22044 dlopen_support=$enable_dlopen
22046 # Whether dlopen of programs is supported.
22047 dlopen_self=$enable_dlopen_self
22049 # Whether dlopen of statically linked programs is supported.
22050 dlopen_self_static=$enable_dlopen_self_static
22052 # Commands to strip libraries.
22053 old_striplib=$lt_old_striplib
22054 striplib=$lt_striplib
22057 # The linker used to build libraries.
22060 # Commands used to build an old-style archive.
22061 old_archive_cmds=$lt_old_archive_cmds
22063 # A language specific compiler.
22066 # Is the compiler the GNU compiler?
22069 # Compiler flag to turn off builtin functions.
22070 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22072 # How to pass a linker flag through the compiler.
22073 wl=$lt_lt_prog_compiler_wl
22075 # Additional compiler flags for building library objects.
22076 pic_flag=$lt_lt_prog_compiler_pic
22078 # Compiler flag to prevent dynamic linking.
22079 link_static_flag=$lt_lt_prog_compiler_static
22081 # Does compiler simultaneously support -c and -o options?
22082 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22084 # Whether or not to add -lc for building shared libraries.
22085 build_libtool_need_lc=$archive_cmds_need_lc
22087 # Whether or not to disallow shared libs when runtime libs are static.
22088 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22090 # Compiler flag to allow reflexive dlopens.
22091 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22093 # Compiler flag to generate shared objects directly from archives.
22094 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22096 # Whether the compiler copes with passing no objects directly.
22097 compiler_needs_object=$lt_compiler_needs_object
22099 # Create an old-style archive from a shared archive.
22100 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22102 # Create a temporary old-style archive to link instead of a shared archive.
22103 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22105 # Commands used to build a shared archive.
22106 archive_cmds=$lt_archive_cmds
22107 archive_expsym_cmds=$lt_archive_expsym_cmds
22109 # Commands used to build a loadable module if different from building
22110 # a shared archive.
22111 module_cmds=$lt_module_cmds
22112 module_expsym_cmds=$lt_module_expsym_cmds
22114 # Whether we are building with GNU ld or not.
22115 with_gnu_ld=$lt_with_gnu_ld
22117 # Flag that allows shared libraries with undefined symbols to be built.
22118 allow_undefined_flag=$lt_allow_undefined_flag
22120 # Flag that enforces no undefined symbols.
22121 no_undefined_flag=$lt_no_undefined_flag
22123 # Flag to hardcode \$libdir into a binary during linking.
22124 # This must work even if \$libdir does not exist
22125 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22127 # If ld is used when linking, flag to hardcode \$libdir into a binary
22128 # during linking. This must work even if \$libdir does not exist.
22129 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22131 # Whether we need a single "-rpath" flag with a separated argument.
22132 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22134 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22135 # DIR into the resulting binary.
22136 hardcode_direct=$hardcode_direct
22138 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22139 # DIR into the resulting binary and the resulting library dependency is
22140 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22141 # library is relocated.
22142 hardcode_direct_absolute=$hardcode_direct_absolute
22144 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22145 # into the resulting binary.
22146 hardcode_minus_L=$hardcode_minus_L
22148 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22149 # into the resulting binary.
22150 hardcode_shlibpath_var=$hardcode_shlibpath_var
22152 # Set to "yes" if building a shared library automatically hardcodes DIR
22153 # into the library and all subsequent libraries and executables linked
22155 hardcode_automatic=$hardcode_automatic
22157 # Set to yes if linker adds runtime paths of dependent libraries
22158 # to runtime path list.
22159 inherit_rpath=$inherit_rpath
22161 # Whether libtool must link a program against all its dependency libraries.
22162 link_all_deplibs=$link_all_deplibs
22164 # Fix the shell variable \$srcfile for the compiler.
22165 fix_srcfile_path=$lt_fix_srcfile_path
22167 # Set to "yes" if exported symbols are required.
22168 always_export_symbols=$always_export_symbols
22170 # The commands to list exported symbols.
22171 export_symbols_cmds=$lt_export_symbols_cmds
22173 # Symbols that should not be listed in the preloaded symbols.
22174 exclude_expsyms=$lt_exclude_expsyms
22176 # Symbols that must always be exported.
22177 include_expsyms=$lt_include_expsyms
22179 # Commands necessary for linking programs (against libraries) with templates.
22180 prelink_cmds=$lt_prelink_cmds
22182 # Specify filename containing input files.
22183 file_list_spec=$lt_file_list_spec
22185 # How to hardcode a shared library path into an executable.
22186 hardcode_action=$hardcode_action
22188 # ### END LIBTOOL CONFIG
22194 cat <<\_LT_EOF >> "$cfgfile"
22195 # AIX sometimes has problems with the GCC collect2 program. For some
22196 # reason, if we set the COLLECT_NAMES environment variable, the problems
22197 # vanish in a puff of smoke.
22198 if test "X${COLLECT_NAMES+set}" != Xset; then
22200 export COLLECT_NAMES
22207 ltmain="$ac_aux_dir/ltmain.sh"
22210 # We use sed instead of cat because bash on DJGPP gets confused if
22211 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22212 # text mode, it properly converts lines to CR/LF. This bash problem
22213 # is reportedly fixed, but why not run on old versions too?
22214 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
22215 || (rm -f "$cfgfile"; exit 1)
22219 cat << \_LT_EOF >> "$cfgfile"
22220 # func_dirname file append nondir_replacement
22221 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22222 # otherwise set result to NONDIR_REPLACEMENT.
22226 */*) func_dirname_result="${1%/*}${2}" ;;
22227 * ) func_dirname_result="${3}" ;;
22231 # func_basename file
22234 func_basename_result="${1##*/}"
22237 # func_stripname prefix suffix name
22238 # strip PREFIX and SUFFIX off of NAME.
22239 # PREFIX and SUFFIX must not contain globbing or regex special
22240 # characters, hashes, percent signs, but SUFFIX may contain a leading
22241 # dot (in which case that matches only a dot).
22244 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22245 # positional parameters, so assign one to ordinary parameter first.
22246 func_stripname_result=${3}
22247 func_stripname_result=${func_stripname_result#"${1}"}
22248 func_stripname_result=${func_stripname_result%"${2}"}
22254 func_opt_split_opt=${1%%=*}
22255 func_opt_split_arg=${1#*=}
22262 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22263 *) func_lo2o_result=${1} ;;
22268 *) # Bourne compatible functions.
22269 cat << \_LT_EOF >> "$cfgfile"
22270 # func_dirname file append nondir_replacement
22271 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22272 # otherwise set result to NONDIR_REPLACEMENT.
22275 # Extract subdirectory from the argument.
22276 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22277 if test "X$func_dirname_result" = "X${1}"; then
22278 func_dirname_result="${3}"
22280 func_dirname_result="$func_dirname_result${2}"
22284 # func_basename file
22287 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
22290 # func_stripname prefix suffix name
22291 # strip PREFIX and SUFFIX off of NAME.
22292 # PREFIX and SUFFIX must not contain globbing or regex special
22293 # characters, hashes, percent signs, but SUFFIX may contain a leading
22294 # dot (in which case that matches only a dot).
22295 # func_strip_suffix prefix name
22299 .*) func_stripname_result=`$ECHO "X${3}" \
22300 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
22301 *) func_stripname_result=`$ECHO "X${3}" \
22302 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
22307 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22308 my_sed_long_arg='1s/^-[^=]*=//'
22313 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
22314 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
22320 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22325 case $lt_shell_append in
22327 cat << \_LT_EOF >> "$cfgfile"
22329 # func_append var value
22330 # Append VALUE to the end of shell variable VAR.
22338 cat << \_LT_EOF >> "$cfgfile"
22340 # func_append var value
22341 # Append VALUE to the end of shell variable VAR.
22351 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22352 || (rm -f "$cfgfile"; exit 1)
22354 mv -f "$cfgfile" "$ofile" ||
22355 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22360 for ac_file in $CONFIG_FILES; do
22361 # Support "outfile[:infile[:infile...]]"
22363 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22365 # PO directories have a Makefile.in generated from Makefile.in.in.
22366 case "$ac_file" in */Makefile.in)
22367 # Adjust a relative srcdir.
22368 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22369 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
22370 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22371 # In autoconf-2.13 it is called $ac_given_srcdir.
22372 # In autoconf-2.50 it is called $srcdir.
22373 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22374 case "$ac_given_srcdir" in
22375 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22376 /*) top_srcdir="$ac_given_srcdir" ;;
22377 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
22379 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22380 rm -f "$ac_dir/POTFILES"
22381 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22382 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22383 POMAKEFILEDEPS="POTFILES.in"
22384 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
22385 # on $ac_dir but don't depend on user-specified configuration
22387 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22388 # The LINGUAS file contains the set of available languages.
22389 if test -n "$OBSOLETE_ALL_LINGUAS"; then
22390 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
22392 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22393 # Hide the ALL_LINGUAS assigment from automake.
22394 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22395 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22397 # The set of available languages was given in configure.in.
22398 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22400 case "$ac_given_srcdir" in
22402 *) srcdirpre='$(srcdir)/' ;;
22408 for lang in $ALL_LINGUAS; do
22409 POFILES="$POFILES $srcdirpre$lang.po"
22410 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22411 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22412 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22414 # CATALOGS depends on both $ac_dir and the user's LINGUAS
22415 # environment variable.
22417 if test -n "$ALL_LINGUAS"; then
22418 for presentlang in $ALL_LINGUAS; do
22420 if test "%UNSET%" != "$LINGUAS"; then
22421 desiredlanguages="$LINGUAS"
22423 desiredlanguages="$ALL_LINGUAS"
22425 for desiredlang in $desiredlanguages; do
22426 # Use the presentlang catalog if desiredlang is
22427 # a. equal to presentlang, or
22428 # b. a variant of presentlang (because in this case,
22429 # presentlang can be used as a fallback for messages
22430 # which are not translated in the desiredlang catalog).
22431 case "$desiredlang" in
22432 "$presentlang"*) useit=yes;;
22435 if test $useit = yes; then
22436 INST_LINGUAS="$INST_LINGUAS $presentlang"
22441 if test -n "$INST_LINGUAS"; then
22442 for lang in $INST_LINGUAS; do
22443 CATALOGS="$CATALOGS $lang.gmo"
22446 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22447 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"
22448 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22449 if test -f "$f"; then
22451 *.orig | *.bak | *~) ;;
22452 *) cat "$f" >> "$ac_dir/Makefile" ;;
22461 if test "$GCC" = yes; then
22462 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
22464 echo "/* generated for $CC */" > tmp-stdint.h
22467 sed 's/^ *//' >> tmp-stdint.h <<EOF
22469 #ifndef GCC_GENERATED_STDINT_H
22470 #define GCC_GENERATED_STDINT_H 1
22472 #include <sys/types.h>
22475 if test "$acx_cv_header_stdint" != stdint.h; then
22476 echo "#include <stddef.h>" >> tmp-stdint.h
22478 if test "$acx_cv_header_stdint" != stddef.h; then
22479 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
22482 sed 's/^ *//' >> tmp-stdint.h <<EOF
22483 /* glibc uses these symbols as guards to prevent redefinitions. */
22484 #ifdef __int8_t_defined
22489 #ifdef __uint32_t_defined
22495 # ----------------- done header, emit basic int types -------------
22496 if test "$acx_cv_header_stdint" = stddef.h; then
22497 sed 's/^ *//' >> tmp-stdint.h <<EOF
22501 #ifndef __uint8_t_defined
22502 #define __uint8_t_defined
22503 typedef unsigned $acx_cv_type_int8_t uint8_t;
22509 #ifndef __uint16_t_defined
22510 #define __uint16_t_defined
22511 typedef unsigned $acx_cv_type_int16_t uint16_t;
22517 #ifndef __uint32_t_defined
22518 #define __uint32_t_defined
22519 typedef unsigned $acx_cv_type_int32_t uint32_t;
22525 #ifndef __int8_t_defined
22526 #define __int8_t_defined
22527 typedef $acx_cv_type_int8_t int8_t;
22533 #ifndef __int16_t_defined
22534 #define __int16_t_defined
22535 typedef $acx_cv_type_int16_t int16_t;
22541 #ifndef __int32_t_defined
22542 #define __int32_t_defined
22543 typedef $acx_cv_type_int32_t int32_t;
22547 elif test "$ac_cv_type_u_int32_t" = yes; then
22548 sed 's/^ *//' >> tmp-stdint.h <<EOF
22550 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
22563 #ifndef __uint8_t_defined
22564 #define __uint8_t_defined
22565 typedef u_int8_t uint8_t;
22571 #ifndef __uint16_t_defined
22572 #define __uint16_t_defined
22573 typedef u_int16_t uint16_t;
22579 #ifndef __uint32_t_defined
22580 #define __uint32_t_defined
22581 typedef u_int32_t uint32_t;
22586 sed 's/^ *//' >> tmp-stdint.h <<EOF
22588 /* Some systems have guard macros to prevent redefinitions, define them. */
22610 # ------------- done basic int types, emit int64_t types ------------
22611 if test "$ac_cv_type_uint64_t" = yes; then
22612 sed 's/^ *//' >> tmp-stdint.h <<EOF
22614 /* system headers have good uint64_t and int64_t */
22622 elif test "$ac_cv_type_u_int64_t" = yes; then
22623 sed 's/^ *//' >> tmp-stdint.h <<EOF
22625 /* system headers have an u_int64_t (and int64_t) */
22631 #ifndef __uint64_t_defined
22632 #define __uint64_t_defined
22633 typedef u_int64_t uint64_t;
22637 elif test -n "$acx_cv_type_int64_t"; then
22638 sed 's/^ *//' >> tmp-stdint.h <<EOF
22640 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
22643 typedef $acx_cv_type_int64_t int64_t;
22647 #ifndef __uint64_t_defined
22648 #define __uint64_t_defined
22649 typedef unsigned $acx_cv_type_int64_t uint64_t;
22654 sed 's/^ *//' >> tmp-stdint.h <<EOF
22656 /* some common heuristics for int64_t, using compiler-specific tests */
22657 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
22660 #ifndef __int64_t_defined
22661 typedef long long int64_t;
22666 typedef unsigned long long uint64_t;
22669 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
22670 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
22671 does not implement __extension__. But that compiler doesn't define
22673 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
22674 # define __extension__
22679 __extension__ typedef long long int64_t;
22683 __extension__ typedef unsigned long long uint64_t;
22686 #elif !defined __STRICT_ANSI__
22687 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
22691 typedef __int64 int64_t;
22695 typedef unsigned __int64 uint64_t;
22697 # endif /* compiler */
22699 #endif /* ANSI version */
22703 # ------------- done int64_t types, emit intptr types ------------
22704 if test "$ac_cv_type_uintptr_t" != yes; then
22705 sed 's/^ *//' >> tmp-stdint.h <<EOF
22707 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
22708 #ifndef __uintptr_t_defined
22709 typedef u$acx_cv_type_intptr_t uintptr_t;
22711 #ifndef __intptr_t_defined
22712 typedef $acx_cv_type_intptr_t intptr_t;
22717 # ------------- done intptr types, emit int_least types ------------
22718 if test "$ac_cv_type_int_least32_t" != yes; then
22719 sed 's/^ *//' >> tmp-stdint.h <<EOF
22721 /* Define int_least types */
22722 typedef int8_t int_least8_t;
22723 typedef int16_t int_least16_t;
22724 typedef int32_t int_least32_t;
22726 typedef int64_t int_least64_t;
22729 typedef uint8_t uint_least8_t;
22730 typedef uint16_t uint_least16_t;
22731 typedef uint32_t uint_least32_t;
22733 typedef uint64_t uint_least64_t;
22738 # ------------- done intptr types, emit int_fast types ------------
22739 if test "$ac_cv_type_int_fast32_t" != yes; then
22740 sed 's/^ *//' >> tmp-stdint.h <<EOF
22742 /* Define int_fast types. short is often slow */
22743 typedef int8_t int_fast8_t;
22744 typedef int int_fast16_t;
22745 typedef int32_t int_fast32_t;
22747 typedef int64_t int_fast64_t;
22750 typedef uint8_t uint_fast8_t;
22751 typedef unsigned int uint_fast16_t;
22752 typedef uint32_t uint_fast32_t;
22754 typedef uint64_t uint_fast64_t;
22759 if test "$ac_cv_type_uintmax_t" != yes; then
22760 sed 's/^ *//' >> tmp-stdint.h <<EOF
22762 /* Define intmax based on what we found */
22764 typedef int64_t intmax_t;
22766 typedef long intmax_t;
22769 typedef uint64_t uintmax_t;
22771 typedef unsigned long uintmax_t;
22776 sed 's/^ *//' >> tmp-stdint.h <<EOF
22778 #endif /* GCC_GENERATED_STDINT_H */
22781 if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
22784 mv -f tmp-stdint.h bfd_stdint.h
22791 *) srcdirpre='$(srcdir)/' ;;
22795 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
22796 if test $lang != dummy; then
22797 POFILES="$POFILES $srcdirpre$lang.po"
22798 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22801 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
22802 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
22803 -e "s,@POFILES@,$POFILES," \
22804 -e "s,@GMOFILES@,$GMOFILES," \
22805 po/Makefile.in > po/Makefile ;;
22810 cat >>$CONFIG_STATUS <<\_ACEOF
22812 { (exit 0); exit 0; }
22814 chmod +x $CONFIG_STATUS
22815 ac_clean_files=$ac_clean_files_save
22818 # configure is writing to config.log, and then calls config.status.
22819 # config.status does its own redirection, appending to config.log.
22820 # Unfortunately, on DOS this fails, as config.log is still kept open
22821 # by configure, so config.status won't be able to write to it; its
22822 # output is simply discarded. So we exec the FD to /dev/null,
22823 # effectively closing config.log, so it can be properly (re)opened and
22824 # appended to by config.status. When coming back to configure, we
22825 # need to make the FD available again.
22826 if test "$no_create" != yes; then
22828 ac_config_status_args=
22829 test "$silent" = yes &&
22830 ac_config_status_args="$ac_config_status_args --quiet"
22832 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22834 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22835 # would make configure fail if this is the last instruction.
22836 $ac_cs_success || { (exit 1); exit 1; }