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 DEBUGDIR PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_64BIT_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT BFD_HOSTPTR_T CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG WIN32LDFLAGS WIN32LIBADD TDEFINES wordsize bfd64_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
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-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type
1016 --enable-werror treat compile warnings as errors
1017 --enable-build-warnings enable build-time compiler warnings
1018 --enable-maintainer-mode enable make rules and dependencies not useful
1019 (and sometimes confusing) to the casual installer
1020 --enable-install-libbfd controls installation of libbfd and related headers
1021 --disable-nls do not use Native Language Support
1024 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1025 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1026 --with-pic try to use only PIC/non-PIC objects [default=use
1028 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1029 --with-mmap try using mmap for BFD input files if available
1030 --with-separate-debug-dir=DIR
1031 Look for global separate debug info in DIR
1032 [default=LIBDIR/debug]
1033 --with-pkgversion=PKG Use PKG in the version string in place of "GNU
1035 --with-bugurl=URL Direct users to URL to report a bug
1037 Some influential environment variables:
1038 CC C compiler command
1039 CFLAGS C compiler flags
1040 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1041 nonstandard directory <lib dir>
1042 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1043 headers in a nonstandard directory <include dir>
1046 Use these variables to override the choices made by `configure' or to help
1047 it to find libraries and programs with nonstandard names/locations.
1052 if test "$ac_init_help" = "recursive"; then
1053 # If there are subdirs, report their specific --help.
1055 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1056 test -d $ac_dir || continue
1059 if test "$ac_dir" != .; then
1060 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1061 # A "../" for each directory in $ac_dir_suffix.
1062 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1064 ac_dir_suffix= ac_top_builddir=
1068 .) # No --srcdir option. We are building in place.
1070 if test -z "$ac_top_builddir"; then
1073 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1075 [\\/]* | ?:[\\/]* ) # Absolute path.
1076 ac_srcdir=$srcdir$ac_dir_suffix;
1077 ac_top_srcdir=$srcdir ;;
1079 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1080 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1083 # Do not use `cd foo && pwd` to compute absolute paths, because
1084 # the directories may not exist.
1086 .) ac_abs_builddir="$ac_dir";;
1089 .) ac_abs_builddir=`pwd`;;
1090 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1091 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1094 case $ac_abs_builddir in
1095 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1097 case ${ac_top_builddir}. in
1098 .) ac_abs_top_builddir=$ac_abs_builddir;;
1099 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1100 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1103 case $ac_abs_builddir in
1104 .) ac_abs_srcdir=$ac_srcdir;;
1107 .) ac_abs_srcdir=$ac_abs_builddir;;
1108 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1109 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1112 case $ac_abs_builddir in
1113 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1115 case $ac_top_srcdir in
1116 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1117 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1118 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1123 # Check for guested configure; otherwise get Cygnus style configure.
1124 if test -f $ac_srcdir/configure.gnu; then
1126 $SHELL $ac_srcdir/configure.gnu --help=recursive
1127 elif test -f $ac_srcdir/configure; then
1129 $SHELL $ac_srcdir/configure --help=recursive
1130 elif test -f $ac_srcdir/configure.ac ||
1131 test -f $ac_srcdir/configure.in; then
1133 $ac_configure --help
1135 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1141 test -n "$ac_init_help" && exit 0
1142 if $ac_init_version; then
1145 Copyright (C) 2003 Free Software Foundation, Inc.
1146 This configure script is free software; the Free Software Foundation
1147 gives unlimited permission to copy, distribute and modify it.
1153 This file contains any messages produced by compilers while
1154 running configure, to aid debugging if configure makes a mistake.
1156 It was created by $as_me, which was
1157 generated by GNU Autoconf 2.59. Invocation command line was
1168 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1169 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1170 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1171 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1172 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1174 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1175 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1177 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1178 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1179 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1180 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1181 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1182 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1183 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1191 test -z "$as_dir" && as_dir=.
1192 echo "PATH: $as_dir"
1207 # Keep a trace of the command line.
1208 # Strip out --no-create and --no-recursion so they do not pile up.
1209 # Strip out --silent because we don't want to record it for future runs.
1210 # Also quote any args containing shell meta-characters.
1211 # Make two passes to allow for proper duplicate-argument suppression.
1216 ac_must_keep_next=false
1222 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1223 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1224 | -silent | --silent | --silen | --sile | --sil)
1226 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1227 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1230 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1232 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1233 if test $ac_must_keep_next = true; then
1234 ac_must_keep_next=false # Got value, back to normal.
1237 *=* | --config-cache | -C | -disable-* | --disable-* \
1238 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1239 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1240 | -with-* | --with-* | -without-* | --without-* | --x)
1241 case "$ac_configure_args0 " in
1242 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1245 -* ) ac_must_keep_next=true ;;
1248 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1249 # Get rid of the leading space.
1255 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1256 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1258 # When interrupted or exit'd, cleanup temporary files, and complete
1259 # config.log. We remove comments because anyway the quotes in there
1260 # would cause problems or look ugly.
1261 # WARNING: Be sure not to use single quotes in there, as some shells,
1262 # such as our DU 5.0 friend, will then `close' the trap.
1263 trap 'exit_status=$?
1264 # Save into config.log some information that might help in debugging.
1269 ## ---------------- ##
1270 ## Cache variables. ##
1271 ## ---------------- ##
1274 # The following way of writing the cache mishandles newlines in values,
1277 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1280 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1281 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1285 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1292 ## ----------------- ##
1293 ## Output variables. ##
1294 ## ----------------- ##
1297 for ac_var in $ac_subst_vars
1299 eval ac_val=$`echo $ac_var`
1300 echo "$ac_var='"'"'$ac_val'"'"'"
1304 if test -n "$ac_subst_files"; then
1311 for ac_var in $ac_subst_files
1313 eval ac_val=$`echo $ac_var`
1314 echo "$ac_var='"'"'$ac_val'"'"'"
1319 if test -s confdefs.h; then
1326 sed "/^$/d" confdefs.h | sort
1329 test "$ac_signal" != 0 &&
1330 echo "$as_me: caught signal $ac_signal"
1331 echo "$as_me: exit $exit_status"
1333 rm -f core *.core &&
1334 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1337 for ac_signal in 1 2 13 15; do
1338 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1342 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1343 rm -rf conftest* confdefs.h
1344 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1347 # Predefined preprocessor variables.
1349 cat >>confdefs.h <<_ACEOF
1350 #define PACKAGE_NAME "$PACKAGE_NAME"
1354 cat >>confdefs.h <<_ACEOF
1355 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1359 cat >>confdefs.h <<_ACEOF
1360 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1364 cat >>confdefs.h <<_ACEOF
1365 #define PACKAGE_STRING "$PACKAGE_STRING"
1369 cat >>confdefs.h <<_ACEOF
1370 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1374 # Let the site file select an alternate cache file if it wants to.
1375 # Prefer explicitly selected file to automatically selected ones.
1376 if test -z "$CONFIG_SITE"; then
1377 if test "x$prefix" != xNONE; then
1378 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1380 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1383 for ac_site_file in $CONFIG_SITE; do
1384 if test -r "$ac_site_file"; then
1385 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1386 echo "$as_me: loading site script $ac_site_file" >&6;}
1387 sed 's/^/| /' "$ac_site_file" >&5
1392 if test -r "$cache_file"; then
1393 # Some versions of bash will fail to source /dev/null (special
1394 # files actually), so we avoid doing that.
1395 if test -f "$cache_file"; then
1396 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1397 echo "$as_me: loading cache $cache_file" >&6;}
1399 [\\/]* | ?:[\\/]* ) . $cache_file;;
1400 *) . ./$cache_file;;
1404 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1405 echo "$as_me: creating cache $cache_file" >&6;}
1409 # Check that the precious variables saved in the cache have kept the same
1411 ac_cache_corrupted=false
1412 for ac_var in `(set) 2>&1 |
1413 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1414 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1415 eval ac_new_set=\$ac_env_${ac_var}_set
1416 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1417 eval ac_new_val="\$ac_env_${ac_var}_value"
1418 case $ac_old_set,$ac_new_set in
1420 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1421 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1422 ac_cache_corrupted=: ;;
1424 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1425 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1426 ac_cache_corrupted=: ;;
1429 if test "x$ac_old_val" != "x$ac_new_val"; then
1430 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1431 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1432 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1433 echo "$as_me: former value: $ac_old_val" >&2;}
1434 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1435 echo "$as_me: current value: $ac_new_val" >&2;}
1436 ac_cache_corrupted=:
1439 # Pass precious variables to config.status.
1440 if test "$ac_new_set" = set; then
1442 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1443 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1444 *) ac_arg=$ac_var=$ac_new_val ;;
1446 case " $ac_configure_args " in
1447 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1448 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1452 if $ac_cache_corrupted; then
1453 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1454 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1455 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1456 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1457 { (exit 1); exit 1; }; }
1461 ac_cpp='$CPP $CPPFLAGS'
1462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1487 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1488 if test -f $ac_dir/install-sh; then
1490 ac_install_sh="$ac_aux_dir/install-sh -c"
1492 elif test -f $ac_dir/install.sh; then
1494 ac_install_sh="$ac_aux_dir/install.sh -c"
1496 elif test -f $ac_dir/shtool; then
1498 ac_install_sh="$ac_aux_dir/shtool install -c"
1502 if test -z "$ac_aux_dir"; then
1503 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1504 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1505 { (exit 1); exit 1; }; }
1507 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1508 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1509 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1511 # Make sure we can run config.sub.
1512 $ac_config_sub sun4 >/dev/null 2>&1 ||
1513 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1514 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1515 { (exit 1); exit 1; }; }
1517 echo "$as_me:$LINENO: checking build system type" >&5
1518 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1519 if test "${ac_cv_build+set}" = set; then
1520 echo $ECHO_N "(cached) $ECHO_C" >&6
1522 ac_cv_build_alias=$build_alias
1523 test -z "$ac_cv_build_alias" &&
1524 ac_cv_build_alias=`$ac_config_guess`
1525 test -z "$ac_cv_build_alias" &&
1526 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1527 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1528 { (exit 1); exit 1; }; }
1529 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1530 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1531 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1532 { (exit 1); exit 1; }; }
1535 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1536 echo "${ECHO_T}$ac_cv_build" >&6
1538 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1539 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1540 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1543 echo "$as_me:$LINENO: checking host system type" >&5
1544 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1545 if test "${ac_cv_host+set}" = set; then
1546 echo $ECHO_N "(cached) $ECHO_C" >&6
1548 ac_cv_host_alias=$host_alias
1549 test -z "$ac_cv_host_alias" &&
1550 ac_cv_host_alias=$ac_cv_build_alias
1551 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1552 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1553 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1554 { (exit 1); exit 1; }; }
1557 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1558 echo "${ECHO_T}$ac_cv_host" >&6
1560 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1561 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1562 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1565 echo "$as_me:$LINENO: checking target system type" >&5
1566 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1567 if test "${ac_cv_target+set}" = set; then
1568 echo $ECHO_N "(cached) $ECHO_C" >&6
1570 ac_cv_target_alias=$target_alias
1571 test "x$ac_cv_target_alias" = "x" &&
1572 ac_cv_target_alias=$ac_cv_host_alias
1573 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1574 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1575 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1576 { (exit 1); exit 1; }; }
1579 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1580 echo "${ECHO_T}$ac_cv_target" >&6
1581 target=$ac_cv_target
1582 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1583 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1584 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1587 # The aliases save the names the user supplied, while $host etc.
1588 # will get canonicalized.
1589 test -n "$target_alias" &&
1590 test "$program_prefix$program_suffix$program_transform_name" = \
1592 program_prefix=${target_alias}-
1594 ac_cpp='$CPP $CPPFLAGS'
1595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1598 if test -n "$ac_tool_prefix"; then
1599 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1600 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1601 echo "$as_me:$LINENO: checking for $ac_word" >&5
1602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1603 if test "${ac_cv_prog_CC+set}" = set; then
1604 echo $ECHO_N "(cached) $ECHO_C" >&6
1606 if test -n "$CC"; then
1607 ac_cv_prog_CC="$CC" # Let the user override the test.
1609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1613 test -z "$as_dir" && as_dir=.
1614 for ac_exec_ext in '' $ac_executable_extensions; do
1615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1616 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1626 if test -n "$CC"; then
1627 echo "$as_me:$LINENO: result: $CC" >&5
1628 echo "${ECHO_T}$CC" >&6
1630 echo "$as_me:$LINENO: result: no" >&5
1631 echo "${ECHO_T}no" >&6
1635 if test -z "$ac_cv_prog_CC"; then
1637 # Extract the first word of "gcc", so it can be a program name with args.
1638 set dummy gcc; ac_word=$2
1639 echo "$as_me:$LINENO: checking for $ac_word" >&5
1640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1641 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1642 echo $ECHO_N "(cached) $ECHO_C" >&6
1644 if test -n "$ac_ct_CC"; then
1645 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1651 test -z "$as_dir" && as_dir=.
1652 for ac_exec_ext in '' $ac_executable_extensions; do
1653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1654 ac_cv_prog_ac_ct_CC="gcc"
1655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1663 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1664 if test -n "$ac_ct_CC"; then
1665 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1666 echo "${ECHO_T}$ac_ct_CC" >&6
1668 echo "$as_me:$LINENO: result: no" >&5
1669 echo "${ECHO_T}no" >&6
1677 if test -z "$CC"; then
1678 if test -n "$ac_tool_prefix"; then
1679 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1680 set dummy ${ac_tool_prefix}cc; ac_word=$2
1681 echo "$as_me:$LINENO: checking for $ac_word" >&5
1682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1683 if test "${ac_cv_prog_CC+set}" = set; then
1684 echo $ECHO_N "(cached) $ECHO_C" >&6
1686 if test -n "$CC"; then
1687 ac_cv_prog_CC="$CC" # Let the user override the test.
1689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1693 test -z "$as_dir" && as_dir=.
1694 for ac_exec_ext in '' $ac_executable_extensions; do
1695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1696 ac_cv_prog_CC="${ac_tool_prefix}cc"
1697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1706 if test -n "$CC"; then
1707 echo "$as_me:$LINENO: result: $CC" >&5
1708 echo "${ECHO_T}$CC" >&6
1710 echo "$as_me:$LINENO: result: no" >&5
1711 echo "${ECHO_T}no" >&6
1715 if test -z "$ac_cv_prog_CC"; then
1717 # Extract the first word of "cc", so it can be a program name with args.
1718 set dummy cc; ac_word=$2
1719 echo "$as_me:$LINENO: checking for $ac_word" >&5
1720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1721 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1722 echo $ECHO_N "(cached) $ECHO_C" >&6
1724 if test -n "$ac_ct_CC"; then
1725 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1731 test -z "$as_dir" && as_dir=.
1732 for ac_exec_ext in '' $ac_executable_extensions; do
1733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1734 ac_cv_prog_ac_ct_CC="cc"
1735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1743 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1744 if test -n "$ac_ct_CC"; then
1745 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1746 echo "${ECHO_T}$ac_ct_CC" >&6
1748 echo "$as_me:$LINENO: result: no" >&5
1749 echo "${ECHO_T}no" >&6
1758 if test -z "$CC"; then
1759 # Extract the first word of "cc", so it can be a program name with args.
1760 set dummy cc; ac_word=$2
1761 echo "$as_me:$LINENO: checking for $ac_word" >&5
1762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1763 if test "${ac_cv_prog_CC+set}" = set; then
1764 echo $ECHO_N "(cached) $ECHO_C" >&6
1766 if test -n "$CC"; then
1767 ac_cv_prog_CC="$CC" # Let the user override the test.
1770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1774 test -z "$as_dir" && as_dir=.
1775 for ac_exec_ext in '' $ac_executable_extensions; do
1776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1777 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1778 ac_prog_rejected=yes
1782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1788 if test $ac_prog_rejected = yes; then
1789 # We found a bogon in the path, so make sure we never use it.
1790 set dummy $ac_cv_prog_CC
1792 if test $# != 0; then
1793 # We chose a different compiler from the bogus one.
1794 # However, it has the same basename, so the bogon will be chosen
1795 # first if we set CC to just the basename; use the full file name.
1797 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1803 if test -n "$CC"; then
1804 echo "$as_me:$LINENO: result: $CC" >&5
1805 echo "${ECHO_T}$CC" >&6
1807 echo "$as_me:$LINENO: result: no" >&5
1808 echo "${ECHO_T}no" >&6
1812 if test -z "$CC"; then
1813 if test -n "$ac_tool_prefix"; then
1816 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1817 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1818 echo "$as_me:$LINENO: checking for $ac_word" >&5
1819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1820 if test "${ac_cv_prog_CC+set}" = set; then
1821 echo $ECHO_N "(cached) $ECHO_C" >&6
1823 if test -n "$CC"; then
1824 ac_cv_prog_CC="$CC" # Let the user override the test.
1826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1830 test -z "$as_dir" && as_dir=.
1831 for ac_exec_ext in '' $ac_executable_extensions; do
1832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1833 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1843 if test -n "$CC"; then
1844 echo "$as_me:$LINENO: result: $CC" >&5
1845 echo "${ECHO_T}$CC" >&6
1847 echo "$as_me:$LINENO: result: no" >&5
1848 echo "${ECHO_T}no" >&6
1851 test -n "$CC" && break
1854 if test -z "$CC"; then
1858 # Extract the first word of "$ac_prog", so it can be a program name with args.
1859 set dummy $ac_prog; ac_word=$2
1860 echo "$as_me:$LINENO: checking for $ac_word" >&5
1861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1862 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1863 echo $ECHO_N "(cached) $ECHO_C" >&6
1865 if test -n "$ac_ct_CC"; then
1866 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1872 test -z "$as_dir" && as_dir=.
1873 for ac_exec_ext in '' $ac_executable_extensions; do
1874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1875 ac_cv_prog_ac_ct_CC="$ac_prog"
1876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1884 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1885 if test -n "$ac_ct_CC"; then
1886 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1887 echo "${ECHO_T}$ac_ct_CC" >&6
1889 echo "$as_me:$LINENO: result: no" >&5
1890 echo "${ECHO_T}no" >&6
1893 test -n "$ac_ct_CC" && break
1902 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1903 See \`config.log' for more details." >&5
1904 echo "$as_me: error: no acceptable C compiler found in \$PATH
1905 See \`config.log' for more details." >&2;}
1906 { (exit 1); exit 1; }; }
1908 # Provide some information about the compiler.
1909 echo "$as_me:$LINENO:" \
1910 "checking for C compiler version" >&5
1911 ac_compiler=`set X $ac_compile; echo $2`
1912 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1913 (eval $ac_compiler --version </dev/null >&5) 2>&5
1915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1916 (exit $ac_status); }
1917 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1918 (eval $ac_compiler -v </dev/null >&5) 2>&5
1920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1921 (exit $ac_status); }
1922 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1923 (eval $ac_compiler -V </dev/null >&5) 2>&5
1925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926 (exit $ac_status); }
1928 cat >conftest.$ac_ext <<_ACEOF
1931 cat confdefs.h >>conftest.$ac_ext
1932 cat >>conftest.$ac_ext <<_ACEOF
1933 /* end confdefs.h. */
1943 ac_clean_files_save=$ac_clean_files
1944 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1945 # Try to create an executable without -o first, disregard a.out.
1946 # It will help us diagnose broken compilers, and finding out an intuition
1948 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1949 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1950 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1951 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1952 (eval $ac_link_default) 2>&5
1954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1955 (exit $ac_status); }; then
1956 # Find the output, starting from the most likely. This scheme is
1957 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1960 # Be careful to initialize this variable, since it used to be cached.
1961 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1963 # b.out is created by i960 compilers.
1964 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1966 test -f "$ac_file" || continue
1968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1971 # This is the source file.
1974 # We found the default executable, but exeext='' is most
1978 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1979 # FIXME: I believe we export ac_cv_exeext for Libtool,
1980 # but it would be cool to find out if it's true. Does anybody
1981 # maintain Libtool? --akim.
1989 echo "$as_me: failed program was:" >&5
1990 sed 's/^/| /' conftest.$ac_ext >&5
1992 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1993 See \`config.log' for more details." >&5
1994 echo "$as_me: error: C compiler cannot create executables
1995 See \`config.log' for more details." >&2;}
1996 { (exit 77); exit 77; }; }
1999 ac_exeext=$ac_cv_exeext
2000 echo "$as_me:$LINENO: result: $ac_file" >&5
2001 echo "${ECHO_T}$ac_file" >&6
2003 # Check the compiler produces executables we can run. If not, either
2004 # the compiler is broken, or we cross compile.
2005 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2006 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2007 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2008 # If not cross compiling, check that we can run a simple program.
2009 if test "$cross_compiling" != yes; then
2010 if { ac_try='./$ac_file'
2011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015 (exit $ac_status); }; }; then
2018 if test "$cross_compiling" = maybe; then
2021 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2022 If you meant to cross compile, use \`--host'.
2023 See \`config.log' for more details." >&5
2024 echo "$as_me: error: cannot run C compiled programs.
2025 If you meant to cross compile, use \`--host'.
2026 See \`config.log' for more details." >&2;}
2027 { (exit 1); exit 1; }; }
2031 echo "$as_me:$LINENO: result: yes" >&5
2032 echo "${ECHO_T}yes" >&6
2034 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2035 ac_clean_files=$ac_clean_files_save
2036 # Check the compiler produces executables we can run. If not, either
2037 # the compiler is broken, or we cross compile.
2038 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2039 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2040 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2041 echo "${ECHO_T}$cross_compiling" >&6
2043 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2044 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2046 (eval $ac_link) 2>&5
2048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049 (exit $ac_status); }; then
2050 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2051 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2052 # work properly (i.e., refer to `conftest.exe'), while it won't with
2054 for ac_file in conftest.exe conftest conftest.*; do
2055 test -f "$ac_file" || continue
2057 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2058 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2065 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2066 See \`config.log' for more details." >&5
2067 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2068 See \`config.log' for more details." >&2;}
2069 { (exit 1); exit 1; }; }
2072 rm -f conftest$ac_cv_exeext
2073 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2074 echo "${ECHO_T}$ac_cv_exeext" >&6
2076 rm -f conftest.$ac_ext
2077 EXEEXT=$ac_cv_exeext
2079 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2080 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2081 if test "${ac_cv_objext+set}" = set; then
2082 echo $ECHO_N "(cached) $ECHO_C" >&6
2084 cat >conftest.$ac_ext <<_ACEOF
2087 cat confdefs.h >>conftest.$ac_ext
2088 cat >>conftest.$ac_ext <<_ACEOF
2089 /* end confdefs.h. */
2099 rm -f conftest.o conftest.obj
2100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2101 (eval $ac_compile) 2>&5
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }; then
2105 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2107 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2108 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2113 echo "$as_me: failed program was:" >&5
2114 sed 's/^/| /' conftest.$ac_ext >&5
2116 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2117 See \`config.log' for more details." >&5
2118 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2119 See \`config.log' for more details." >&2;}
2120 { (exit 1); exit 1; }; }
2123 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2125 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2126 echo "${ECHO_T}$ac_cv_objext" >&6
2127 OBJEXT=$ac_cv_objext
2129 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2130 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2131 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
2134 cat >conftest.$ac_ext <<_ACEOF
2137 cat confdefs.h >>conftest.$ac_ext
2138 cat >>conftest.$ac_ext <<_ACEOF
2139 /* end confdefs.h. */
2152 rm -f conftest.$ac_objext
2153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2154 (eval $ac_compile) 2>conftest.er1
2156 grep -v '^ *+' conftest.er1 >conftest.err
2158 cat conftest.err >&5
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); } &&
2161 { ac_try='test -z "$ac_c_werror_flag"
2162 || test ! -s conftest.err'
2163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); }; } &&
2168 { ac_try='test -s conftest.$ac_objext'
2169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); }; }; then
2176 echo "$as_me: failed program was:" >&5
2177 sed 's/^/| /' conftest.$ac_ext >&5
2181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2182 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2185 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2186 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2187 GCC=`test $ac_compiler_gnu = yes && echo yes`
2188 ac_test_CFLAGS=${CFLAGS+set}
2189 ac_save_CFLAGS=$CFLAGS
2191 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2192 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2193 if test "${ac_cv_prog_cc_g+set}" = set; then
2194 echo $ECHO_N "(cached) $ECHO_C" >&6
2196 cat >conftest.$ac_ext <<_ACEOF
2199 cat confdefs.h >>conftest.$ac_ext
2200 cat >>conftest.$ac_ext <<_ACEOF
2201 /* end confdefs.h. */
2211 rm -f conftest.$ac_objext
2212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2213 (eval $ac_compile) 2>conftest.er1
2215 grep -v '^ *+' conftest.er1 >conftest.err
2217 cat conftest.err >&5
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); } &&
2220 { ac_try='test -z "$ac_c_werror_flag"
2221 || test ! -s conftest.err'
2222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); }; } &&
2227 { ac_try='test -s conftest.$ac_objext'
2228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); }; }; then
2235 echo "$as_me: failed program was:" >&5
2236 sed 's/^/| /' conftest.$ac_ext >&5
2240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2242 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2243 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2244 if test "$ac_test_CFLAGS" = set; then
2245 CFLAGS=$ac_save_CFLAGS
2246 elif test $ac_cv_prog_cc_g = yes; then
2247 if test "$GCC" = yes; then
2253 if test "$GCC" = yes; then
2259 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2260 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2261 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2262 echo $ECHO_N "(cached) $ECHO_C" >&6
2264 ac_cv_prog_cc_stdc=no
2266 cat >conftest.$ac_ext <<_ACEOF
2269 cat confdefs.h >>conftest.$ac_ext
2270 cat >>conftest.$ac_ext <<_ACEOF
2271 /* end confdefs.h. */
2274 #include <sys/types.h>
2275 #include <sys/stat.h>
2276 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2277 struct buf { int x; };
2278 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2279 static char *e (p, i)
2285 static char *f (char * (*g) (char **, int), char **p, ...)
2290 s = g (p, va_arg (v,int));
2295 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2296 function prototypes and stuff, but not '\xHH' hex character constants.
2297 These don't provoke an error unfortunately, instead are silently treated
2298 as 'x'. The following induces an error, until -std1 is added to get
2299 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2300 array size at least. It's necessary to write '\x00'==0 to get something
2301 that's true only with -std1. */
2302 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2304 int test (int i, double x);
2305 struct s1 {int (*f) (int a);};
2306 struct s2 {int (*f) (double a);};
2307 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2313 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2318 # Don't try gcc -ansi; that turns off useful extensions and
2319 # breaks some systems' header files.
2320 # AIX -qlanglvl=ansi
2321 # Ultrix and OSF/1 -std1
2322 # HP-UX 10.20 and later -Ae
2323 # HP-UX older versions -Aa -D_HPUX_SOURCE
2324 # SVR4 -Xc -D__EXTENSIONS__
2325 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2327 CC="$ac_save_CC $ac_arg"
2328 rm -f conftest.$ac_objext
2329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2330 (eval $ac_compile) 2>conftest.er1
2332 grep -v '^ *+' conftest.er1 >conftest.err
2334 cat conftest.err >&5
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); } &&
2337 { ac_try='test -z "$ac_c_werror_flag"
2338 || test ! -s conftest.err'
2339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }; } &&
2344 { ac_try='test -s conftest.$ac_objext'
2345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); }; }; then
2350 ac_cv_prog_cc_stdc=$ac_arg
2353 echo "$as_me: failed program was:" >&5
2354 sed 's/^/| /' conftest.$ac_ext >&5
2357 rm -f conftest.err conftest.$ac_objext
2359 rm -f conftest.$ac_ext conftest.$ac_objext
2364 case "x$ac_cv_prog_cc_stdc" in
2366 echo "$as_me:$LINENO: result: none needed" >&5
2367 echo "${ECHO_T}none needed" >&6 ;;
2369 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2370 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2371 CC="$CC $ac_cv_prog_cc_stdc" ;;
2374 # Some people use a C++ compiler to compile C. Since we use `exit',
2375 # in C++ we need to declare it. In case someone uses the same compiler
2376 # for both compiling C and C++ we need to have the C++ compiler decide
2377 # the declaration of exit, since it's the most demanding environment.
2378 cat >conftest.$ac_ext <<_ACEOF
2383 rm -f conftest.$ac_objext
2384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2385 (eval $ac_compile) 2>conftest.er1
2387 grep -v '^ *+' conftest.er1 >conftest.err
2389 cat conftest.err >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); } &&
2392 { ac_try='test -z "$ac_c_werror_flag"
2393 || test ! -s conftest.err'
2394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; } &&
2399 { ac_try='test -s conftest.$ac_objext'
2400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; }; then
2405 for ac_declaration in \
2407 'extern "C" void std::exit (int) throw (); using std::exit;' \
2408 'extern "C" void std::exit (int); using std::exit;' \
2409 'extern "C" void exit (int) throw ();' \
2410 'extern "C" void exit (int);' \
2413 cat >conftest.$ac_ext <<_ACEOF
2416 cat confdefs.h >>conftest.$ac_ext
2417 cat >>conftest.$ac_ext <<_ACEOF
2418 /* end confdefs.h. */
2429 rm -f conftest.$ac_objext
2430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2431 (eval $ac_compile) 2>conftest.er1
2433 grep -v '^ *+' conftest.er1 >conftest.err
2435 cat conftest.err >&5
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); } &&
2438 { ac_try='test -z "$ac_c_werror_flag"
2439 || test ! -s conftest.err'
2440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); }; } &&
2445 { ac_try='test -s conftest.$ac_objext'
2446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; }; then
2453 echo "$as_me: failed program was:" >&5
2454 sed 's/^/| /' conftest.$ac_ext >&5
2458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2459 cat >conftest.$ac_ext <<_ACEOF
2462 cat confdefs.h >>conftest.$ac_ext
2463 cat >>conftest.$ac_ext <<_ACEOF
2464 /* end confdefs.h. */
2474 rm -f conftest.$ac_objext
2475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2476 (eval $ac_compile) 2>conftest.er1
2478 grep -v '^ *+' conftest.er1 >conftest.err
2480 cat conftest.err >&5
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); } &&
2483 { ac_try='test -z "$ac_c_werror_flag"
2484 || test ! -s conftest.err'
2485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }; } &&
2490 { ac_try='test -s conftest.$ac_objext'
2491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); }; }; then
2498 echo "$as_me: failed program was:" >&5
2499 sed 's/^/| /' conftest.$ac_ext >&5
2502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2505 if test -n "$ac_declaration"; then
2506 echo '#ifdef __cplusplus' >>confdefs.h
2507 echo $ac_declaration >>confdefs.h
2508 echo '#endif' >>confdefs.h
2512 echo "$as_me: failed program was:" >&5
2513 sed 's/^/| /' conftest.$ac_ext >&5
2516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2518 ac_cpp='$CPP $CPPFLAGS'
2519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2524 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2525 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2526 if test "${ac_cv_search_strerror+set}" = set; then
2527 echo $ECHO_N "(cached) $ECHO_C" >&6
2529 ac_func_search_save_LIBS=$LIBS
2530 ac_cv_search_strerror=no
2531 cat >conftest.$ac_ext <<_ACEOF
2534 cat confdefs.h >>conftest.$ac_ext
2535 cat >>conftest.$ac_ext <<_ACEOF
2536 /* end confdefs.h. */
2538 /* Override any gcc2 internal prototype to avoid an error. */
2542 /* We use char because int might match the return type of a gcc2
2543 builtin and then its argument prototype would still apply. */
2553 rm -f conftest.$ac_objext conftest$ac_exeext
2554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2555 (eval $ac_link) 2>conftest.er1
2557 grep -v '^ *+' conftest.er1 >conftest.err
2559 cat conftest.err >&5
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); } &&
2562 { ac_try='test -z "$ac_c_werror_flag"
2563 || test ! -s conftest.err'
2564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; } &&
2569 { ac_try='test -s conftest$ac_exeext'
2570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); }; }; then
2575 ac_cv_search_strerror="none required"
2577 echo "$as_me: failed program was:" >&5
2578 sed 's/^/| /' conftest.$ac_ext >&5
2581 rm -f conftest.err conftest.$ac_objext \
2582 conftest$ac_exeext conftest.$ac_ext
2583 if test "$ac_cv_search_strerror" = no; then
2584 for ac_lib in cposix; do
2585 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2586 cat >conftest.$ac_ext <<_ACEOF
2589 cat confdefs.h >>conftest.$ac_ext
2590 cat >>conftest.$ac_ext <<_ACEOF
2591 /* end confdefs.h. */
2593 /* Override any gcc2 internal prototype to avoid an error. */
2597 /* We use char because int might match the return type of a gcc2
2598 builtin and then its argument prototype would still apply. */
2608 rm -f conftest.$ac_objext conftest$ac_exeext
2609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2610 (eval $ac_link) 2>conftest.er1
2612 grep -v '^ *+' conftest.er1 >conftest.err
2614 cat conftest.err >&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); } &&
2617 { ac_try='test -z "$ac_c_werror_flag"
2618 || test ! -s conftest.err'
2619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); }; } &&
2624 { ac_try='test -s conftest$ac_exeext'
2625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); }; }; then
2630 ac_cv_search_strerror="-l$ac_lib"
2633 echo "$as_me: failed program was:" >&5
2634 sed 's/^/| /' conftest.$ac_ext >&5
2637 rm -f conftest.err conftest.$ac_objext \
2638 conftest$ac_exeext conftest.$ac_ext
2641 LIBS=$ac_func_search_save_LIBS
2643 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2644 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2645 if test "$ac_cv_search_strerror" != no; then
2646 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2651 am__api_version="1.9"
2652 # Find a good install program. We prefer a C program (faster),
2653 # so one script is as good as another. But avoid the broken or
2654 # incompatible versions:
2655 # SysV /etc/install, /usr/sbin/install
2656 # SunOS /usr/etc/install
2657 # IRIX /sbin/install
2659 # AmigaOS /C/install, which installs bootblocks on floppy discs
2660 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2661 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2662 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2663 # OS/2's system install, which has a completely different semantic
2664 # ./install, which can be erroneously created by make from ./install.sh.
2665 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2666 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2667 if test -z "$INSTALL"; then
2668 if test "${ac_cv_path_install+set}" = set; then
2669 echo $ECHO_N "(cached) $ECHO_C" >&6
2671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2675 test -z "$as_dir" && as_dir=.
2676 # Account for people who put trailing slashes in PATH elements.
2678 ./ | .// | /cC/* | \
2679 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2680 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2683 # OSF1 and SCO ODT 3.0 have their own names for install.
2684 # Don't use installbsd from OSF since it installs stuff as root
2686 for ac_prog in ginstall scoinst install; do
2687 for ac_exec_ext in '' $ac_executable_extensions; do
2688 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2689 if test $ac_prog = install &&
2690 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2691 # AIX install. It has an incompatible calling convention.
2693 elif test $ac_prog = install &&
2694 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2695 # program-specific install script used by HP pwplus--don't use.
2698 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2710 if test "${ac_cv_path_install+set}" = set; then
2711 INSTALL=$ac_cv_path_install
2713 # As a last resort, use the slow shell script. We don't cache a
2714 # path for INSTALL within a source directory, because that will
2715 # break other packages using the cache if that directory is
2716 # removed, or if the path is relative.
2717 INSTALL=$ac_install_sh
2720 echo "$as_me:$LINENO: result: $INSTALL" >&5
2721 echo "${ECHO_T}$INSTALL" >&6
2723 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2724 # It thinks the first close brace ends the variable substitution.
2725 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2727 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2729 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2731 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2732 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2735 echo timestamp > conftest.file
2736 # Do `set' in a subshell so we don't clobber the current shell's
2737 # arguments. Must try -L first in case configure is actually a
2738 # symlink; some systems play weird games with the mod time of symlinks
2739 # (eg FreeBSD returns the mod time of the symlink's containing
2742 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2743 if test "$*" = "X"; then
2745 set X `ls -t $srcdir/configure conftest.file`
2748 if test "$*" != "X $srcdir/configure conftest.file" \
2749 && test "$*" != "X conftest.file $srcdir/configure"; then
2751 # If neither matched, then we have a broken ls. This can happen
2752 # if, for instance, CONFIG_SHELL is bash and it inherits a
2753 # broken ls alias from the environment. This has actually
2754 # happened. Such a system could not be considered "sane".
2755 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2756 alias in your environment" >&5
2757 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2758 alias in your environment" >&2;}
2759 { (exit 1); exit 1; }; }
2762 test "$2" = conftest.file
2768 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2769 Check your system clock" >&5
2770 echo "$as_me: error: newly created file is older than distributed files!
2771 Check your system clock" >&2;}
2772 { (exit 1); exit 1; }; }
2774 echo "$as_me:$LINENO: result: yes" >&5
2775 echo "${ECHO_T}yes" >&6
2776 test "$program_prefix" != NONE &&
2777 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2778 # Use a double $ so make ignores it.
2779 test "$program_suffix" != NONE &&
2780 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2781 # Double any \ or $. echo might interpret backslashes.
2782 # By default was `s,x,x', remove it if useless.
2783 cat <<\_ACEOF >conftest.sed
2784 s/[\\$]/&&/g;s/;s,x,x,$//
2786 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2789 # expand $ac_aux_dir to an absolute path
2790 am_aux_dir=`cd $ac_aux_dir && pwd`
2792 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2793 # Use eval to expand $SHELL
2794 if eval "$MISSING --run true"; then
2795 am_missing_run="$MISSING --run "
2798 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2799 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2802 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2803 # We used to keeping the `.' as first argument, in order to
2804 # allow $(mkdir_p) to be used without argument. As in
2805 # $(mkdir_p) $(somedir)
2806 # where $(somedir) is conditionally defined. However this is wrong
2808 # 1. if the package is installed by a user who cannot write `.'
2809 # make install will fail,
2810 # 2. the above comment should most certainly read
2811 # $(mkdir_p) $(DESTDIR)$(somedir)
2812 # so it does not work when $(somedir) is undefined and
2813 # $(DESTDIR) is not.
2814 # To support the latter case, we have to write
2815 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2816 # so the `.' trick is pointless.
2817 mkdir_p='mkdir -p --'
2819 # On NextStep and OpenStep, the `mkdir' command does not
2820 # recognize any option. It will interpret all options as
2821 # directories to create, and then abort because `.' already
2823 for d in ./-p ./--version;
2825 test -d $d && rmdir $d
2827 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2828 if test -f "$ac_aux_dir/mkinstalldirs"; then
2829 mkdir_p='$(mkinstalldirs)'
2831 mkdir_p='$(install_sh) -d'
2835 for ac_prog in gawk mawk nawk awk
2837 # Extract the first word of "$ac_prog", so it can be a program name with args.
2838 set dummy $ac_prog; ac_word=$2
2839 echo "$as_me:$LINENO: checking for $ac_word" >&5
2840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2841 if test "${ac_cv_prog_AWK+set}" = set; then
2842 echo $ECHO_N "(cached) $ECHO_C" >&6
2844 if test -n "$AWK"; then
2845 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851 test -z "$as_dir" && as_dir=.
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2854 ac_cv_prog_AWK="$ac_prog"
2855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2864 if test -n "$AWK"; then
2865 echo "$as_me:$LINENO: result: $AWK" >&5
2866 echo "${ECHO_T}$AWK" >&6
2868 echo "$as_me:$LINENO: result: no" >&5
2869 echo "${ECHO_T}no" >&6
2872 test -n "$AWK" && break
2875 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2876 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2877 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2878 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2881 cat >conftest.make <<\_ACEOF
2883 @echo 'ac_maketemp="$(MAKE)"'
2885 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2886 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2887 if test -n "$ac_maketemp"; then
2888 eval ac_cv_prog_make_${ac_make}_set=yes
2890 eval ac_cv_prog_make_${ac_make}_set=no
2894 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2895 echo "$as_me:$LINENO: result: yes" >&5
2896 echo "${ECHO_T}yes" >&6
2899 echo "$as_me:$LINENO: result: no" >&5
2900 echo "${ECHO_T}no" >&6
2901 SET_MAKE="MAKE=${MAKE-make}"
2904 rm -rf .tst 2>/dev/null
2905 mkdir .tst 2>/dev/null
2906 if test -d .tst; then
2911 rmdir .tst 2>/dev/null
2913 DEPDIR="${am__leading_dot}deps"
2915 ac_config_commands="$ac_config_commands depfiles"
2918 am_make=${MAKE-make}
2919 cat > confinc << 'END'
2924 # If we don't find an include directive, just comment out the code.
2925 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2926 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2930 # First try GNU make style include.
2931 echo "include confinc" > confmf
2932 # We grep out `Entering directory' and `Leaving directory'
2933 # messages which can occur if `w' ends up in MAKEFLAGS.
2934 # In particular we don't look at `^make:' because GNU make might
2935 # be invoked under some other name (usually "gmake"), in which
2936 # case it prints its new name instead of `make'.
2937 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2942 # Now try BSD make style include.
2943 if test "$am__include" = "#"; then
2944 echo '.include "confinc"' > confmf
2945 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2946 am__include=.include
2953 echo "$as_me:$LINENO: result: $_am_result" >&5
2954 echo "${ECHO_T}$_am_result" >&6
2955 rm -f confinc confmf
2957 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2958 if test "${enable_dependency_tracking+set}" = set; then
2959 enableval="$enable_dependency_tracking"
2962 if test "x$enable_dependency_tracking" != xno; then
2963 am_depcomp="$ac_aux_dir/depcomp"
2968 if test "x$enable_dependency_tracking" != xno; then
2978 # test to see if srcdir already configured
2979 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2980 test -f $srcdir/config.status; then
2981 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2982 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2983 { (exit 1); exit 1; }; }
2986 # test whether we have cygpath
2987 if test -z "$CYGPATH_W"; then
2988 if (cygpath --version) >/dev/null 2>/dev/null; then
2989 CYGPATH_W='cygpath -w'
2996 # Define the identity of the package.
3001 cat >>confdefs.h <<_ACEOF
3002 #define PACKAGE "$PACKAGE"
3006 cat >>confdefs.h <<_ACEOF
3007 #define VERSION "$VERSION"
3010 # Some tools Automake needs.
3012 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3015 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3018 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3021 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3024 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3026 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3028 # Installed binaries are usually stripped using `strip' when the user
3029 # run `make install-strip'. However `strip' might not be the right
3030 # tool to use in cross-compilation environments, therefore Automake
3031 # will honor the `STRIP' environment variable to overrule this program.
3032 if test "$cross_compiling" != no; then
3033 if test -n "$ac_tool_prefix"; then
3034 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3035 set dummy ${ac_tool_prefix}strip; ac_word=$2
3036 echo "$as_me:$LINENO: checking for $ac_word" >&5
3037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3038 if test "${ac_cv_prog_STRIP+set}" = set; then
3039 echo $ECHO_N "(cached) $ECHO_C" >&6
3041 if test -n "$STRIP"; then
3042 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 test -z "$as_dir" && as_dir=.
3049 for ac_exec_ext in '' $ac_executable_extensions; do
3050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3051 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3060 STRIP=$ac_cv_prog_STRIP
3061 if test -n "$STRIP"; then
3062 echo "$as_me:$LINENO: result: $STRIP" >&5
3063 echo "${ECHO_T}$STRIP" >&6
3065 echo "$as_me:$LINENO: result: no" >&5
3066 echo "${ECHO_T}no" >&6
3070 if test -z "$ac_cv_prog_STRIP"; then
3072 # Extract the first word of "strip", so it can be a program name with args.
3073 set dummy strip; ac_word=$2
3074 echo "$as_me:$LINENO: checking for $ac_word" >&5
3075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3076 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3077 echo $ECHO_N "(cached) $ECHO_C" >&6
3079 if test -n "$ac_ct_STRIP"; then
3080 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 test -z "$as_dir" && as_dir=.
3087 for ac_exec_ext in '' $ac_executable_extensions; do
3088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3089 ac_cv_prog_ac_ct_STRIP="strip"
3090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3096 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3099 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3100 if test -n "$ac_ct_STRIP"; then
3101 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3102 echo "${ECHO_T}$ac_ct_STRIP" >&6
3104 echo "$as_me:$LINENO: result: no" >&5
3105 echo "${ECHO_T}no" >&6
3110 STRIP="$ac_cv_prog_STRIP"
3114 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3116 # We need awk for the "check" target. The system "awk" is bad on
3118 # Always define AMTAR for backward compatibility.
3120 AMTAR=${AMTAR-"${am_missing_run}tar"}
3122 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3127 depcc="$CC" am_compiler_list=
3129 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3130 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3131 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3132 echo $ECHO_N "(cached) $ECHO_C" >&6
3134 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3135 # We make a subdir and do the tests there. Otherwise we can end up
3136 # making bogus files that we don't know about and never remove. For
3137 # instance it was reported that on HP-UX the gcc test will end up
3138 # making a dummy file named `D' -- because `-MD' means `put the output
3141 # Copy depcomp to subdir because otherwise we won't find it if we're
3142 # using a relative directory.
3143 cp "$am_depcomp" conftest.dir
3145 # We will build objects and dependencies in a subdirectory because
3146 # it helps to detect inapplicable dependency modes. For instance
3147 # both Tru64's cc and ICC support -MD to output dependencies as a
3148 # side effect of compilation, but ICC will put the dependencies in
3149 # the current directory while Tru64 will put them in the object
3153 am_cv_CC_dependencies_compiler_type=none
3154 if test "$am_compiler_list" = ""; then
3155 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3157 for depmode in $am_compiler_list; do
3158 # Setup a source with many dependencies, because some compilers
3159 # like to wrap large dependency lists on column 80 (with \), and
3160 # we should not choose a depcomp mode which is confused by this.
3162 # We need to recreate these files for each test, as the compiler may
3163 # overwrite some of them when testing with obscure command lines.
3164 # This happens at least with the AIX C compiler.
3166 for i in 1 2 3 4 5 6; do
3167 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3168 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3169 # Solaris 8's {/usr,}/bin/sh.
3170 touch sub/conftst$i.h
3172 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3176 # after this tag, mechanisms are not by side-effect, so they'll
3177 # only be used when explicitly requested
3178 if test "x$enable_dependency_tracking" = xyes; then
3186 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3187 # mode. It turns out that the SunPro C++ compiler does not properly
3188 # handle `-M -o', and we need to detect this.
3189 if depmode=$depmode \
3190 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3191 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3192 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3193 >/dev/null 2>conftest.err &&
3194 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3195 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3196 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3197 # icc doesn't choke on unknown options, it will just issue warnings
3198 # or remarks (even with -Werror). So we grep stderr for any message
3199 # that says an option was ignored or not supported.
3200 # When given -MP, icc 7.0 and 7.1 complain thusly:
3201 # icc: Command line warning: ignoring option '-M'; no argument required
3202 # The diagnosis changed in icc 8.0:
3203 # icc: Command line remark: option '-MP' not supported
3204 if (grep 'ignoring option' conftest.err ||
3205 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3206 am_cv_CC_dependencies_compiler_type=$depmode
3215 am_cv_CC_dependencies_compiler_type=none
3219 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3220 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3221 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3226 test "x$enable_dependency_tracking" != xno \
3227 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3229 am__fastdepCC_FALSE='#'
3231 am__fastdepCC_TRUE='#'
3232 am__fastdepCC_FALSE=
3238 if test -n "$ac_tool_prefix"; then
3239 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3240 set dummy ${ac_tool_prefix}ar; ac_word=$2
3241 echo "$as_me:$LINENO: checking for $ac_word" >&5
3242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3243 if test "${ac_cv_prog_AR+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
3246 if test -n "$AR"; then
3247 ac_cv_prog_AR="$AR" # Let the user override the test.
3249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253 test -z "$as_dir" && as_dir=.
3254 for ac_exec_ext in '' $ac_executable_extensions; do
3255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3256 ac_cv_prog_AR="${ac_tool_prefix}ar"
3257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3266 if test -n "$AR"; then
3267 echo "$as_me:$LINENO: result: $AR" >&5
3268 echo "${ECHO_T}$AR" >&6
3270 echo "$as_me:$LINENO: result: no" >&5
3271 echo "${ECHO_T}no" >&6
3275 if test -z "$ac_cv_prog_AR"; then
3277 # Extract the first word of "ar", so it can be a program name with args.
3278 set dummy ar; ac_word=$2
3279 echo "$as_me:$LINENO: checking for $ac_word" >&5
3280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3281 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
3284 if test -n "$ac_ct_AR"; then
3285 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291 test -z "$as_dir" && as_dir=.
3292 for ac_exec_ext in '' $ac_executable_extensions; do
3293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3294 ac_cv_prog_ac_ct_AR="ar"
3295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3303 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3304 if test -n "$ac_ct_AR"; then
3305 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3306 echo "${ECHO_T}$ac_ct_AR" >&6
3308 echo "$as_me:$LINENO: result: no" >&5
3309 echo "${ECHO_T}no" >&6
3317 if test -n "$ac_tool_prefix"; then
3318 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3319 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3320 echo "$as_me:$LINENO: checking for $ac_word" >&5
3321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3322 if test "${ac_cv_prog_RANLIB+set}" = set; then
3323 echo $ECHO_N "(cached) $ECHO_C" >&6
3325 if test -n "$RANLIB"; then
3326 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332 test -z "$as_dir" && as_dir=.
3333 for ac_exec_ext in '' $ac_executable_extensions; do
3334 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3335 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3344 RANLIB=$ac_cv_prog_RANLIB
3345 if test -n "$RANLIB"; then
3346 echo "$as_me:$LINENO: result: $RANLIB" >&5
3347 echo "${ECHO_T}$RANLIB" >&6
3349 echo "$as_me:$LINENO: result: no" >&5
3350 echo "${ECHO_T}no" >&6
3354 if test -z "$ac_cv_prog_RANLIB"; then
3355 ac_ct_RANLIB=$RANLIB
3356 # Extract the first word of "ranlib", so it can be a program name with args.
3357 set dummy ranlib; ac_word=$2
3358 echo "$as_me:$LINENO: checking for $ac_word" >&5
3359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3360 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3363 if test -n "$ac_ct_RANLIB"; then
3364 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370 test -z "$as_dir" && as_dir=.
3371 for ac_exec_ext in '' $ac_executable_extensions; do
3372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3373 ac_cv_prog_ac_ct_RANLIB="ranlib"
3374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3380 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3383 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3384 if test -n "$ac_ct_RANLIB"; then
3385 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3386 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3388 echo "$as_me:$LINENO: result: no" >&5
3389 echo "${ECHO_T}no" >&6
3392 RANLIB=$ac_ct_RANLIB
3394 RANLIB="$ac_cv_prog_RANLIB"
3398 # Check whether --enable-shared or --disable-shared was given.
3399 if test "${enable_shared+set}" = set; then
3400 enableval="$enable_shared"
3401 p=${PACKAGE-default}
3403 yes) enable_shared=yes ;;
3404 no) enable_shared=no ;;
3407 # Look at the argument we got. We use all the common list separators.
3408 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3409 for pkg in $enableval; do
3411 if test "X$pkg" = "X$p"; then
3431 ac_cpp='$CPP $CPPFLAGS'
3432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3435 if test -n "$ac_tool_prefix"; then
3436 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3437 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3438 echo "$as_me:$LINENO: checking for $ac_word" >&5
3439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3440 if test "${ac_cv_prog_CC+set}" = set; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
3443 if test -n "$CC"; then
3444 ac_cv_prog_CC="$CC" # Let the user override the test.
3446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3450 test -z "$as_dir" && as_dir=.
3451 for ac_exec_ext in '' $ac_executable_extensions; do
3452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3453 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3463 if test -n "$CC"; then
3464 echo "$as_me:$LINENO: result: $CC" >&5
3465 echo "${ECHO_T}$CC" >&6
3467 echo "$as_me:$LINENO: result: no" >&5
3468 echo "${ECHO_T}no" >&6
3472 if test -z "$ac_cv_prog_CC"; then
3474 # Extract the first word of "gcc", so it can be a program name with args.
3475 set dummy gcc; ac_word=$2
3476 echo "$as_me:$LINENO: checking for $ac_word" >&5
3477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3478 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3479 echo $ECHO_N "(cached) $ECHO_C" >&6
3481 if test -n "$ac_ct_CC"; then
3482 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3488 test -z "$as_dir" && as_dir=.
3489 for ac_exec_ext in '' $ac_executable_extensions; do
3490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3491 ac_cv_prog_ac_ct_CC="gcc"
3492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3500 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3501 if test -n "$ac_ct_CC"; then
3502 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3503 echo "${ECHO_T}$ac_ct_CC" >&6
3505 echo "$as_me:$LINENO: result: no" >&5
3506 echo "${ECHO_T}no" >&6
3514 if test -z "$CC"; then
3515 if test -n "$ac_tool_prefix"; then
3516 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3517 set dummy ${ac_tool_prefix}cc; ac_word=$2
3518 echo "$as_me:$LINENO: checking for $ac_word" >&5
3519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3520 if test "${ac_cv_prog_CC+set}" = set; then
3521 echo $ECHO_N "(cached) $ECHO_C" >&6
3523 if test -n "$CC"; then
3524 ac_cv_prog_CC="$CC" # Let the user override the test.
3526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530 test -z "$as_dir" && as_dir=.
3531 for ac_exec_ext in '' $ac_executable_extensions; do
3532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3533 ac_cv_prog_CC="${ac_tool_prefix}cc"
3534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3543 if test -n "$CC"; then
3544 echo "$as_me:$LINENO: result: $CC" >&5
3545 echo "${ECHO_T}$CC" >&6
3547 echo "$as_me:$LINENO: result: no" >&5
3548 echo "${ECHO_T}no" >&6
3552 if test -z "$ac_cv_prog_CC"; then
3554 # Extract the first word of "cc", so it can be a program name with args.
3555 set dummy cc; ac_word=$2
3556 echo "$as_me:$LINENO: checking for $ac_word" >&5
3557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3558 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3559 echo $ECHO_N "(cached) $ECHO_C" >&6
3561 if test -n "$ac_ct_CC"; then
3562 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3568 test -z "$as_dir" && as_dir=.
3569 for ac_exec_ext in '' $ac_executable_extensions; do
3570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3571 ac_cv_prog_ac_ct_CC="cc"
3572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3580 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3581 if test -n "$ac_ct_CC"; then
3582 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3583 echo "${ECHO_T}$ac_ct_CC" >&6
3585 echo "$as_me:$LINENO: result: no" >&5
3586 echo "${ECHO_T}no" >&6
3595 if test -z "$CC"; then
3596 # Extract the first word of "cc", so it can be a program name with args.
3597 set dummy cc; ac_word=$2
3598 echo "$as_me:$LINENO: checking for $ac_word" >&5
3599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3600 if test "${ac_cv_prog_CC+set}" = set; then
3601 echo $ECHO_N "(cached) $ECHO_C" >&6
3603 if test -n "$CC"; then
3604 ac_cv_prog_CC="$CC" # Let the user override the test.
3607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3611 test -z "$as_dir" && as_dir=.
3612 for ac_exec_ext in '' $ac_executable_extensions; do
3613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3614 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3615 ac_prog_rejected=yes
3619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3625 if test $ac_prog_rejected = yes; then
3626 # We found a bogon in the path, so make sure we never use it.
3627 set dummy $ac_cv_prog_CC
3629 if test $# != 0; then
3630 # We chose a different compiler from the bogus one.
3631 # However, it has the same basename, so the bogon will be chosen
3632 # first if we set CC to just the basename; use the full file name.
3634 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3640 if test -n "$CC"; then
3641 echo "$as_me:$LINENO: result: $CC" >&5
3642 echo "${ECHO_T}$CC" >&6
3644 echo "$as_me:$LINENO: result: no" >&5
3645 echo "${ECHO_T}no" >&6
3649 if test -z "$CC"; then
3650 if test -n "$ac_tool_prefix"; then
3653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3654 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3655 echo "$as_me:$LINENO: checking for $ac_word" >&5
3656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3657 if test "${ac_cv_prog_CC+set}" = set; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
3660 if test -n "$CC"; then
3661 ac_cv_prog_CC="$CC" # Let the user override the test.
3663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 test -z "$as_dir" && as_dir=.
3668 for ac_exec_ext in '' $ac_executable_extensions; do
3669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3670 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3680 if test -n "$CC"; then
3681 echo "$as_me:$LINENO: result: $CC" >&5
3682 echo "${ECHO_T}$CC" >&6
3684 echo "$as_me:$LINENO: result: no" >&5
3685 echo "${ECHO_T}no" >&6
3688 test -n "$CC" && break
3691 if test -z "$CC"; then
3695 # Extract the first word of "$ac_prog", so it can be a program name with args.
3696 set dummy $ac_prog; ac_word=$2
3697 echo "$as_me:$LINENO: checking for $ac_word" >&5
3698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3699 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3700 echo $ECHO_N "(cached) $ECHO_C" >&6
3702 if test -n "$ac_ct_CC"; then
3703 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709 test -z "$as_dir" && as_dir=.
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3712 ac_cv_prog_ac_ct_CC="$ac_prog"
3713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3721 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3722 if test -n "$ac_ct_CC"; then
3723 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3724 echo "${ECHO_T}$ac_ct_CC" >&6
3726 echo "$as_me:$LINENO: result: no" >&5
3727 echo "${ECHO_T}no" >&6
3730 test -n "$ac_ct_CC" && break
3739 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3740 See \`config.log' for more details." >&5
3741 echo "$as_me: error: no acceptable C compiler found in \$PATH
3742 See \`config.log' for more details." >&2;}
3743 { (exit 1); exit 1; }; }
3745 # Provide some information about the compiler.
3746 echo "$as_me:$LINENO:" \
3747 "checking for C compiler version" >&5
3748 ac_compiler=`set X $ac_compile; echo $2`
3749 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3750 (eval $ac_compiler --version </dev/null >&5) 2>&5
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); }
3754 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3755 (eval $ac_compiler -v </dev/null >&5) 2>&5
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); }
3759 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3760 (eval $ac_compiler -V </dev/null >&5) 2>&5
3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763 (exit $ac_status); }
3765 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3766 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3767 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3768 echo $ECHO_N "(cached) $ECHO_C" >&6
3770 cat >conftest.$ac_ext <<_ACEOF
3773 cat confdefs.h >>conftest.$ac_ext
3774 cat >>conftest.$ac_ext <<_ACEOF
3775 /* end confdefs.h. */
3788 rm -f conftest.$ac_objext
3789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3790 (eval $ac_compile) 2>conftest.er1
3792 grep -v '^ *+' conftest.er1 >conftest.err
3794 cat conftest.err >&5
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); } &&
3797 { ac_try='test -z "$ac_c_werror_flag"
3798 || test ! -s conftest.err'
3799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); }; } &&
3804 { ac_try='test -s conftest.$ac_objext'
3805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); }; }; then
3812 echo "$as_me: failed program was:" >&5
3813 sed 's/^/| /' conftest.$ac_ext >&5
3817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3818 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3821 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3822 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3823 GCC=`test $ac_compiler_gnu = yes && echo yes`
3824 ac_test_CFLAGS=${CFLAGS+set}
3825 ac_save_CFLAGS=$CFLAGS
3827 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3828 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3829 if test "${ac_cv_prog_cc_g+set}" = set; then
3830 echo $ECHO_N "(cached) $ECHO_C" >&6
3832 cat >conftest.$ac_ext <<_ACEOF
3835 cat confdefs.h >>conftest.$ac_ext
3836 cat >>conftest.$ac_ext <<_ACEOF
3837 /* end confdefs.h. */
3847 rm -f conftest.$ac_objext
3848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3849 (eval $ac_compile) 2>conftest.er1
3851 grep -v '^ *+' conftest.er1 >conftest.err
3853 cat conftest.err >&5
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); } &&
3856 { ac_try='test -z "$ac_c_werror_flag"
3857 || test ! -s conftest.err'
3858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); }; } &&
3863 { ac_try='test -s conftest.$ac_objext'
3864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); }; }; then
3871 echo "$as_me: failed program was:" >&5
3872 sed 's/^/| /' conftest.$ac_ext >&5
3876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3878 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3879 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3880 if test "$ac_test_CFLAGS" = set; then
3881 CFLAGS=$ac_save_CFLAGS
3882 elif test $ac_cv_prog_cc_g = yes; then
3883 if test "$GCC" = yes; then
3889 if test "$GCC" = yes; then
3895 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3896 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3897 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3898 echo $ECHO_N "(cached) $ECHO_C" >&6
3900 ac_cv_prog_cc_stdc=no
3902 cat >conftest.$ac_ext <<_ACEOF
3905 cat confdefs.h >>conftest.$ac_ext
3906 cat >>conftest.$ac_ext <<_ACEOF
3907 /* end confdefs.h. */
3910 #include <sys/types.h>
3911 #include <sys/stat.h>
3912 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3913 struct buf { int x; };
3914 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3915 static char *e (p, i)
3921 static char *f (char * (*g) (char **, int), char **p, ...)
3926 s = g (p, va_arg (v,int));
3931 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3932 function prototypes and stuff, but not '\xHH' hex character constants.
3933 These don't provoke an error unfortunately, instead are silently treated
3934 as 'x'. The following induces an error, until -std1 is added to get
3935 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3936 array size at least. It's necessary to write '\x00'==0 to get something
3937 that's true only with -std1. */
3938 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3940 int test (int i, double x);
3941 struct s1 {int (*f) (int a);};
3942 struct s2 {int (*f) (double a);};
3943 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3949 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3954 # Don't try gcc -ansi; that turns off useful extensions and
3955 # breaks some systems' header files.
3956 # AIX -qlanglvl=ansi
3957 # Ultrix and OSF/1 -std1
3958 # HP-UX 10.20 and later -Ae
3959 # HP-UX older versions -Aa -D_HPUX_SOURCE
3960 # SVR4 -Xc -D__EXTENSIONS__
3961 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3963 CC="$ac_save_CC $ac_arg"
3964 rm -f conftest.$ac_objext
3965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3966 (eval $ac_compile) 2>conftest.er1
3968 grep -v '^ *+' conftest.er1 >conftest.err
3970 cat conftest.err >&5
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); } &&
3973 { ac_try='test -z "$ac_c_werror_flag"
3974 || test ! -s conftest.err'
3975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); }; } &&
3980 { ac_try='test -s conftest.$ac_objext'
3981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); }; }; then
3986 ac_cv_prog_cc_stdc=$ac_arg
3989 echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3993 rm -f conftest.err conftest.$ac_objext
3995 rm -f conftest.$ac_ext conftest.$ac_objext
4000 case "x$ac_cv_prog_cc_stdc" in
4002 echo "$as_me:$LINENO: result: none needed" >&5
4003 echo "${ECHO_T}none needed" >&6 ;;
4005 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4006 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4007 CC="$CC $ac_cv_prog_cc_stdc" ;;
4010 # Some people use a C++ compiler to compile C. Since we use `exit',
4011 # in C++ we need to declare it. In case someone uses the same compiler
4012 # for both compiling C and C++ we need to have the C++ compiler decide
4013 # the declaration of exit, since it's the most demanding environment.
4014 cat >conftest.$ac_ext <<_ACEOF
4019 rm -f conftest.$ac_objext
4020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4021 (eval $ac_compile) 2>conftest.er1
4023 grep -v '^ *+' conftest.er1 >conftest.err
4025 cat conftest.err >&5
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); } &&
4028 { ac_try='test -z "$ac_c_werror_flag"
4029 || test ! -s conftest.err'
4030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); }; } &&
4035 { ac_try='test -s conftest.$ac_objext'
4036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); }; }; then
4041 for ac_declaration in \
4043 'extern "C" void std::exit (int) throw (); using std::exit;' \
4044 'extern "C" void std::exit (int); using std::exit;' \
4045 'extern "C" void exit (int) throw ();' \
4046 'extern "C" void exit (int);' \
4049 cat >conftest.$ac_ext <<_ACEOF
4052 cat confdefs.h >>conftest.$ac_ext
4053 cat >>conftest.$ac_ext <<_ACEOF
4054 /* end confdefs.h. */
4065 rm -f conftest.$ac_objext
4066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4067 (eval $ac_compile) 2>conftest.er1
4069 grep -v '^ *+' conftest.er1 >conftest.err
4071 cat conftest.err >&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); } &&
4074 { ac_try='test -z "$ac_c_werror_flag"
4075 || test ! -s conftest.err'
4076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); }; } &&
4081 { ac_try='test -s conftest.$ac_objext'
4082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }; }; then
4089 echo "$as_me: failed program was:" >&5
4090 sed 's/^/| /' conftest.$ac_ext >&5
4094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4095 cat >conftest.$ac_ext <<_ACEOF
4098 cat confdefs.h >>conftest.$ac_ext
4099 cat >>conftest.$ac_ext <<_ACEOF
4100 /* end confdefs.h. */
4110 rm -f conftest.$ac_objext
4111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4112 (eval $ac_compile) 2>conftest.er1
4114 grep -v '^ *+' conftest.er1 >conftest.err
4116 cat conftest.err >&5
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); } &&
4119 { ac_try='test -z "$ac_c_werror_flag"
4120 || test ! -s conftest.err'
4121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); }; } &&
4126 { ac_try='test -s conftest.$ac_objext'
4127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); }; }; then
4134 echo "$as_me: failed program was:" >&5
4135 sed 's/^/| /' conftest.$ac_ext >&5
4138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4141 if test -n "$ac_declaration"; then
4142 echo '#ifdef __cplusplus' >>confdefs.h
4143 echo $ac_declaration >>confdefs.h
4144 echo '#endif' >>confdefs.h
4148 echo "$as_me: failed program was:" >&5
4149 sed 's/^/| /' conftest.$ac_ext >&5
4152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4154 ac_cpp='$CPP $CPPFLAGS'
4155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4160 cat >>confdefs.h <<\_ACEOF
4161 #define _GNU_SOURCE 1
4168 macro_version='2.1a'
4169 macro_revision='1.2435'
4182 ltmain="$ac_aux_dir/ltmain.sh"
4193 # Check whether --enable-static or --disable-static was given.
4194 if test "${enable_static+set}" = set; then
4195 enableval="$enable_static"
4196 p=${PACKAGE-default}
4198 yes) enable_static=yes ;;
4199 no) enable_static=no ;;
4202 # Look at the argument we got. We use all the common list separators.
4203 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4204 for pkg in $enableval; do
4206 if test "X$pkg" = "X$p"; then
4225 # Check whether --with-pic or --without-pic was given.
4226 if test "${with_pic+set}" = set; then
4233 test -z "$pic_mode" && pic_mode=default
4241 # Check whether --enable-fast-install or --disable-fast-install was given.
4242 if test "${enable_fast_install+set}" = set; then
4243 enableval="$enable_fast_install"
4244 p=${PACKAGE-default}
4246 yes) enable_fast_install=yes ;;
4247 no) enable_fast_install=no ;;
4249 enable_fast_install=no
4250 # Look at the argument we got. We use all the common list separators.
4251 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4252 for pkg in $enableval; do
4254 if test "X$pkg" = "X$p"; then
4255 enable_fast_install=yes
4262 enable_fast_install=yes
4272 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4273 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4274 if test "${lt_cv_path_SED+set}" = set; then
4275 echo $ECHO_N "(cached) $ECHO_C" >&6
4277 # Loop through the user's path and test for sed and gsed.
4278 # Then use that list of sed's as ones to test for truncation.
4279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 test -z "$as_dir" && as_dir=.
4284 for lt_ac_prog in sed gsed; do
4285 for ac_exec_ext in '' $ac_executable_extensions; do
4286 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4287 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4295 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4296 # along with /bin/sed that truncates output.
4297 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4298 test ! -f $lt_ac_sed && continue
4299 cat /dev/null > conftest.in
4301 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4302 # Check for GNU sed and select it if it is found.
4303 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4304 lt_cv_path_SED=$lt_ac_sed
4308 cat conftest.in conftest.in >conftest.tmp
4309 mv conftest.tmp conftest.in
4310 cp conftest.in conftest.nl
4312 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4313 cmp -s conftest.out conftest.nl || break
4314 # 10000 chars as input seems more than enough
4315 test $lt_ac_count -gt 10 && break
4316 lt_ac_count=`expr $lt_ac_count + 1`
4317 if test $lt_ac_count -gt $lt_ac_max; then
4318 lt_ac_max=$lt_ac_count
4319 lt_cv_path_SED=$lt_ac_sed
4328 echo "$as_me:$LINENO: result: $SED" >&5
4329 echo "${ECHO_T}$SED" >&6
4331 test -z "$SED" && SED=sed
4332 Xsed="$SED -e 1s/^X//"
4344 echo "$as_me:$LINENO: checking for egrep" >&5
4345 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4346 if test "${ac_cv_prog_egrep+set}" = set; then
4347 echo $ECHO_N "(cached) $ECHO_C" >&6
4349 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4350 then ac_cv_prog_egrep='grep -E'
4351 else ac_cv_prog_egrep='egrep'
4354 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4355 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4356 EGREP=$ac_cv_prog_egrep
4359 echo "$as_me:$LINENO: checking for fgrep" >&5
4360 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4361 if test "${ac_cv_prog_fgrep+set}" = set; then
4362 echo $ECHO_N "(cached) $ECHO_C" >&6
4364 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4365 then ac_cv_prog_fgrep='grep -F'
4366 else ac_cv_prog_fgrep='fgrep'
4369 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4370 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4371 FGREP=$ac_cv_prog_fgrep
4374 test -z "$GREP" && GREP=grep
4394 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4395 if test "${with_gnu_ld+set}" = set; then
4396 withval="$with_gnu_ld"
4397 test "$withval" = no || with_gnu_ld=yes
4402 if test "$GCC" = yes; then
4403 # Check if gcc -print-prog-name=ld gives a path.
4404 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4405 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4408 # gcc leaves a trailing carriage return which upsets mingw
4409 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4411 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4414 # Accept absolute paths.
4416 re_direlt='/[^/][^/]*/\.\./'
4417 # Canonicalize the pathname of ld
4418 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4419 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4420 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4422 test -z "$LD" && LD="$ac_prog"
4425 # If it fails, then pretend we aren't using GCC.
4429 # If it is relative, then search for the first ld in PATH.
4433 elif test "$with_gnu_ld" = yes; then
4434 echo "$as_me:$LINENO: checking for GNU ld" >&5
4435 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4437 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4438 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4440 if test "${lt_cv_path_LD+set}" = set; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4443 if test -z "$LD"; then
4444 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4445 for ac_dir in $PATH; do
4447 test -z "$ac_dir" && ac_dir=.
4448 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4449 lt_cv_path_LD="$ac_dir/$ac_prog"
4450 # Check to see if the program is GNU ld. I'd rather use --version,
4451 # but apparently some variants of GNU ld only accept -v.
4452 # Break only if it was the GNU/non-GNU ld that we prefer.
4453 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4454 *GNU* | *'with BFD'*)
4455 test "$with_gnu_ld" != no && break
4458 test "$with_gnu_ld" != yes && break
4465 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4470 if test -n "$LD"; then
4471 echo "$as_me:$LINENO: result: $LD" >&5
4472 echo "${ECHO_T}$LD" >&6
4474 echo "$as_me:$LINENO: result: no" >&5
4475 echo "${ECHO_T}no" >&6
4477 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4478 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4479 { (exit 1); exit 1; }; }
4480 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4481 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4482 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4483 echo $ECHO_N "(cached) $ECHO_C" >&6
4485 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4486 case `$LD -v 2>&1 </dev/null` in
4487 *GNU* | *'with BFD'*)
4488 lt_cv_prog_gnu_ld=yes
4491 lt_cv_prog_gnu_ld=no
4495 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4496 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4497 with_gnu_ld=$lt_cv_prog_gnu_ld
4508 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4509 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4510 if test "${lt_cv_path_NM+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4513 if test -n "$NM"; then
4514 # Let the user override the test.
4517 lt_nm_to_check="${ac_tool_prefix}nm"
4518 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4519 lt_nm_to_check="$lt_nm_to_check nm"
4521 for lt_tmp_nm in $lt_nm_to_check; do
4522 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4523 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4525 test -z "$ac_dir" && ac_dir=.
4526 tmp_nm="$ac_dir/$lt_tmp_nm"
4527 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4528 # Check to see if the nm accepts a BSD-compat flag.
4529 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4530 # nm: unknown option "B" ignored
4531 # Tru64's nm complains that /dev/null is an invalid object file
4532 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4533 */dev/null* | *'Invalid file or object type'*)
4534 lt_cv_path_NM="$tmp_nm -B"
4538 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4540 lt_cv_path_NM="$tmp_nm -p"
4544 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4545 continue # so that we can try to find one that supports BSD flags
4554 : ${lt_cv_path_NM=no}
4557 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4558 echo "${ECHO_T}$lt_cv_path_NM" >&6
4559 if test "$lt_cv_path_NM" != "no"; then
4562 # Didn't find any BSD compatible name lister, look for dumpbin.
4563 if test -n "$ac_tool_prefix"; then
4564 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4566 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4567 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4568 echo "$as_me:$LINENO: checking for $ac_word" >&5
4569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4570 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4571 echo $ECHO_N "(cached) $ECHO_C" >&6
4573 if test -n "$DUMPBIN"; then
4574 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580 test -z "$as_dir" && as_dir=.
4581 for ac_exec_ext in '' $ac_executable_extensions; do
4582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4583 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4592 DUMPBIN=$ac_cv_prog_DUMPBIN
4593 if test -n "$DUMPBIN"; then
4594 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4595 echo "${ECHO_T}$DUMPBIN" >&6
4597 echo "$as_me:$LINENO: result: no" >&5
4598 echo "${ECHO_T}no" >&6
4601 test -n "$DUMPBIN" && break
4604 if test -z "$DUMPBIN"; then
4605 ac_ct_DUMPBIN=$DUMPBIN
4606 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4608 # Extract the first word of "$ac_prog", so it can be a program name with args.
4609 set dummy $ac_prog; ac_word=$2
4610 echo "$as_me:$LINENO: checking for $ac_word" >&5
4611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4612 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4613 echo $ECHO_N "(cached) $ECHO_C" >&6
4615 if test -n "$ac_ct_DUMPBIN"; then
4616 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622 test -z "$as_dir" && as_dir=.
4623 for ac_exec_ext in '' $ac_executable_extensions; do
4624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4625 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4634 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4635 if test -n "$ac_ct_DUMPBIN"; then
4636 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4637 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4639 echo "$as_me:$LINENO: result: no" >&5
4640 echo "${ECHO_T}no" >&6
4643 test -n "$ac_ct_DUMPBIN" && break
4645 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4647 DUMPBIN=$ac_ct_DUMPBIN
4651 if test "$DUMPBIN" != ":"; then
4655 test -z "$NM" && NM=nm
4662 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4663 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4664 if test "${lt_cv_nm_interface+set}" = set; then
4665 echo $ECHO_N "(cached) $ECHO_C" >&6
4667 lt_cv_nm_interface="BSD nm"
4668 echo "int some_variable = 0;" > conftest.$ac_ext
4669 (eval echo "\"\$as_me:4669: $ac_compile\"" >&5)
4670 (eval "$ac_compile" 2>conftest.err)
4671 cat conftest.err >&5
4672 (eval echo "\"\$as_me:4672: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4673 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4674 cat conftest.err >&5
4675 (eval echo "\"\$as_me:4675: output\"" >&5)
4676 cat conftest.out >&5
4677 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4678 lt_cv_nm_interface="MS dumpbin"
4682 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4683 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4685 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4686 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4688 if test "$LN_S" = "ln -s"; then
4689 echo "$as_me:$LINENO: result: yes" >&5
4690 echo "${ECHO_T}yes" >&6
4692 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4693 echo "${ECHO_T}no, using $LN_S" >&6
4696 # find the maximum length of command line arguments
4697 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4698 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4699 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4707 # On DJGPP, this test can blow up pretty badly due to problems in libc
4708 # (any single argument exceeding 2000 bytes causes a buffer overrun
4709 # during glob expansion). Even if it were fixed, the result of this
4710 # check would be larger than it should be.
4711 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4715 # Under GNU Hurd, this test is not required because there is
4716 # no limit to the length of command line arguments.
4717 # Libtool will interpret -1 as no limit whatsoever
4718 lt_cv_sys_max_cmd_len=-1;
4722 # On Win9x/ME, this test blows up -- it succeeds, but takes
4723 # about 5 minutes as the teststring grows exponentially.
4724 # Worse, since 9x/ME are not pre-emptively multitasking,
4725 # you end up with a "frozen" computer, even though with patience
4726 # the test eventually succeeds (with a max line length of 256k).
4727 # Instead, let's just punt: use the minimum linelength reported by
4728 # all of the supported platforms: 8192 (on NT/2K/XP).
4729 lt_cv_sys_max_cmd_len=8192;
4733 # On AmigaOS with pdksh, this test takes hours, literally.
4734 # So we just punt and use a minimum line length of 8192.
4735 lt_cv_sys_max_cmd_len=8192;
4738 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4739 # This has been around since 386BSD, at least. Likely further.
4740 if test -x /sbin/sysctl; then
4741 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4742 elif test -x /usr/sbin/sysctl; then
4743 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4745 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4747 # And add a safety zone
4748 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4749 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4753 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4754 lt_cv_sys_max_cmd_len=196608
4758 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4759 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4760 # nice to cause kernel panics so lets avoid the loop below.
4761 # First set a reasonable default.
4762 lt_cv_sys_max_cmd_len=16384
4764 if test -x /sbin/sysconfig; then
4765 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4766 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4771 lt_cv_sys_max_cmd_len=102400
4773 sysv5* | sco5v6* | sysv4.2uw2*)
4774 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4775 if test -n "$kargmax"; then
4776 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4778 lt_cv_sys_max_cmd_len=32768
4782 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4783 if test -n $lt_cv_sys_max_cmd_len; then
4784 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4785 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4787 # Make teststring a little bigger before we do anything with it.
4788 # a 1K string should be a reasonable start.
4789 for i in 1 2 3 4 5 6 7 8 ; do
4790 teststring=$teststring$teststring
4792 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4793 # If test is not a shell built-in, we'll probably end up computing a
4794 # maximum length that is only half of the actual maximum length, but
4796 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4797 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4798 test $i != 17 # 1/2 MB should be enough
4801 teststring=$teststring$teststring
4803 # Only check the string length outside the loop.
4804 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4806 # Add a significant safety factor because C++ compilers can tack on
4807 # massive amounts of additional arguments before passing them to the
4808 # linker. It appears as though 1/2 is a usable value.
4809 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4816 if test -n $lt_cv_sys_max_cmd_len ; then
4817 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4818 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4820 echo "$as_me:$LINENO: result: none" >&5
4821 echo "${ECHO_T}none" >&6
4823 max_cmd_len=$lt_cv_sys_max_cmd_len
4835 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4836 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4837 # Try some XSI features
4840 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4841 = c,a/b,, ) >/dev/null 2>&1 \
4843 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4844 echo "${ECHO_T}$xsi_shell" >&6
4847 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4848 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4850 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4852 && lt_shell_append=yes
4853 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4854 echo "${ECHO_T}$lt_shell_append" >&6
4857 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4867 # test EBCDIC or ASCII
4868 case `echo X|tr X '\101'` in
4869 A) # ASCII based system
4870 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4871 lt_SP2NL='tr \040 \012'
4872 lt_NL2SP='tr \015\012 \040\040'
4874 *) # EBCDIC based system
4875 lt_SP2NL='tr \100 \n'
4876 lt_NL2SP='tr \r\n \100\100'
4888 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4889 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4890 if test "${lt_cv_ld_reload_flag+set}" = set; then
4891 echo $ECHO_N "(cached) $ECHO_C" >&6
4893 lt_cv_ld_reload_flag='-r'
4895 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4896 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4897 reload_flag=$lt_cv_ld_reload_flag
4898 case $reload_flag in
4900 *) reload_flag=" $reload_flag" ;;
4902 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4905 if test "$GCC" = yes; then
4906 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4908 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4922 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4923 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4924 if test "${lt_cv_deplibs_check_method+set}" = set; then
4925 echo $ECHO_N "(cached) $ECHO_C" >&6
4927 lt_cv_file_magic_cmd='$MAGIC_CMD'
4928 lt_cv_file_magic_test_file=
4929 lt_cv_deplibs_check_method='unknown'
4930 # Need to set the preceding variable on all platforms that support
4931 # interlibrary dependencies.
4932 # 'none' -- dependencies not supported.
4933 # `unknown' -- same as none, but documents that we really don't know.
4934 # 'pass_all' -- all dependencies passed with no checks.
4935 # 'test_compile' -- check by making test program.
4936 # 'file_magic [[regex]]' -- check by looking for files in library path
4937 # which responds to the $file_magic_cmd with a given extended regex.
4938 # If you have `file' or equivalent on your system and you're not sure
4939 # whether `pass_all' will *always* work, you probably want this one.
4943 lt_cv_deplibs_check_method=pass_all
4947 lt_cv_deplibs_check_method=pass_all
4951 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4952 lt_cv_file_magic_cmd='/usr/bin/file -L'
4953 lt_cv_file_magic_test_file=/shlib/libc.so
4957 # func_win32_libid is a shell function defined in ltmain.sh
4958 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4959 lt_cv_file_magic_cmd='func_win32_libid'
4963 # Base MSYS/MinGW do not provide the 'file' command needed by
4964 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4965 # unless we find 'file', for example because we are cross-compiling.
4966 if ( file / ) >/dev/null 2>&1; then
4967 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4968 lt_cv_file_magic_cmd='func_win32_libid'
4970 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4971 lt_cv_file_magic_cmd='$OBJDUMP -f'
4975 darwin* | rhapsody*)
4976 lt_cv_deplibs_check_method=pass_all
4979 freebsd* | dragonfly*)
4980 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4983 # Not sure whether the presence of OpenBSD here was a mistake.
4984 # Let's accept both of them until this is cleared up.
4985 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4986 lt_cv_file_magic_cmd=/usr/bin/file
4987 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4991 lt_cv_deplibs_check_method=pass_all
4996 lt_cv_deplibs_check_method=pass_all
4999 hpux10.20* | hpux11*)
5000 lt_cv_file_magic_cmd=/usr/bin/file
5003 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5004 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5007 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]'
5008 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5011 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5012 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5018 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5019 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5022 irix5* | irix6* | nonstopux*)
5024 *-32|*"-32 ") libmagic=32-bit;;
5025 *-n32|*"-n32 ") libmagic=N32;;
5026 *-64|*"-64 ") libmagic=64-bit;;
5027 *) libmagic=never-match;;
5029 lt_cv_deplibs_check_method=pass_all
5032 # This must be Linux ELF.
5033 linux* | k*bsd*-gnu)
5034 lt_cv_deplibs_check_method=pass_all
5038 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5039 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5041 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5046 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5047 lt_cv_file_magic_cmd=/usr/bin/file
5048 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5052 lt_cv_deplibs_check_method=pass_all
5056 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5057 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5059 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5063 osf3* | osf4* | osf5*)
5064 lt_cv_deplibs_check_method=pass_all
5068 lt_cv_deplibs_check_method=pass_all
5072 lt_cv_deplibs_check_method=pass_all
5075 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5076 lt_cv_deplibs_check_method=pass_all
5080 case $host_vendor in
5082 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]'
5083 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5086 lt_cv_deplibs_check_method=pass_all
5089 lt_cv_file_magic_cmd='/bin/file'
5090 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5093 lt_cv_file_magic_cmd='/bin/file'
5094 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5095 lt_cv_file_magic_test_file=/lib/libc.so
5098 lt_cv_deplibs_check_method=pass_all
5101 lt_cv_deplibs_check_method=pass_all
5107 lt_cv_deplibs_check_method=pass_all
5112 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5113 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5114 file_magic_cmd=$lt_cv_file_magic_cmd
5115 deplibs_check_method=$lt_cv_deplibs_check_method
5116 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5129 if test -n "$ac_tool_prefix"; then
5130 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5131 set dummy ${ac_tool_prefix}ar; ac_word=$2
5132 echo "$as_me:$LINENO: checking for $ac_word" >&5
5133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5134 if test "${ac_cv_prog_AR+set}" = set; then
5135 echo $ECHO_N "(cached) $ECHO_C" >&6
5137 if test -n "$AR"; then
5138 ac_cv_prog_AR="$AR" # Let the user override the test.
5140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144 test -z "$as_dir" && as_dir=.
5145 for ac_exec_ext in '' $ac_executable_extensions; do
5146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5147 ac_cv_prog_AR="${ac_tool_prefix}ar"
5148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 if test -n "$AR"; then
5158 echo "$as_me:$LINENO: result: $AR" >&5
5159 echo "${ECHO_T}$AR" >&6
5161 echo "$as_me:$LINENO: result: no" >&5
5162 echo "${ECHO_T}no" >&6
5166 if test -z "$ac_cv_prog_AR"; then
5168 # Extract the first word of "ar", so it can be a program name with args.
5169 set dummy ar; ac_word=$2
5170 echo "$as_me:$LINENO: checking for $ac_word" >&5
5171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5172 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5173 echo $ECHO_N "(cached) $ECHO_C" >&6
5175 if test -n "$ac_ct_AR"; then
5176 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 test -z "$as_dir" && as_dir=.
5183 for ac_exec_ext in '' $ac_executable_extensions; do
5184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5185 ac_cv_prog_ac_ct_AR="ar"
5186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5192 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5195 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5196 if test -n "$ac_ct_AR"; then
5197 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5198 echo "${ECHO_T}$ac_ct_AR" >&6
5200 echo "$as_me:$LINENO: result: no" >&5
5201 echo "${ECHO_T}no" >&6
5209 test -z "$AR" && AR=ar
5210 test -z "$AR_FLAGS" && AR_FLAGS=cru
5222 if test -n "$ac_tool_prefix"; then
5223 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5224 set dummy ${ac_tool_prefix}strip; ac_word=$2
5225 echo "$as_me:$LINENO: checking for $ac_word" >&5
5226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5227 if test "${ac_cv_prog_STRIP+set}" = set; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5230 if test -n "$STRIP"; then
5231 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237 test -z "$as_dir" && as_dir=.
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5240 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5249 STRIP=$ac_cv_prog_STRIP
5250 if test -n "$STRIP"; then
5251 echo "$as_me:$LINENO: result: $STRIP" >&5
5252 echo "${ECHO_T}$STRIP" >&6
5254 echo "$as_me:$LINENO: result: no" >&5
5255 echo "${ECHO_T}no" >&6
5259 if test -z "$ac_cv_prog_STRIP"; then
5261 # Extract the first word of "strip", so it can be a program name with args.
5262 set dummy strip; ac_word=$2
5263 echo "$as_me:$LINENO: checking for $ac_word" >&5
5264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5265 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5266 echo $ECHO_N "(cached) $ECHO_C" >&6
5268 if test -n "$ac_ct_STRIP"; then
5269 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275 test -z "$as_dir" && as_dir=.
5276 for ac_exec_ext in '' $ac_executable_extensions; do
5277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5278 ac_cv_prog_ac_ct_STRIP="strip"
5279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5285 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5288 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5289 if test -n "$ac_ct_STRIP"; then
5290 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5291 echo "${ECHO_T}$ac_ct_STRIP" >&6
5293 echo "$as_me:$LINENO: result: no" >&5
5294 echo "${ECHO_T}no" >&6
5299 STRIP="$ac_cv_prog_STRIP"
5302 test -z "$STRIP" && STRIP=:
5309 if test -n "$ac_tool_prefix"; then
5310 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5311 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5312 echo "$as_me:$LINENO: checking for $ac_word" >&5
5313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5314 if test "${ac_cv_prog_RANLIB+set}" = set; then
5315 echo $ECHO_N "(cached) $ECHO_C" >&6
5317 if test -n "$RANLIB"; then
5318 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324 test -z "$as_dir" && as_dir=.
5325 for ac_exec_ext in '' $ac_executable_extensions; do
5326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5327 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5336 RANLIB=$ac_cv_prog_RANLIB
5337 if test -n "$RANLIB"; then
5338 echo "$as_me:$LINENO: result: $RANLIB" >&5
5339 echo "${ECHO_T}$RANLIB" >&6
5341 echo "$as_me:$LINENO: result: no" >&5
5342 echo "${ECHO_T}no" >&6
5346 if test -z "$ac_cv_prog_RANLIB"; then
5347 ac_ct_RANLIB=$RANLIB
5348 # Extract the first word of "ranlib", so it can be a program name with args.
5349 set dummy ranlib; ac_word=$2
5350 echo "$as_me:$LINENO: checking for $ac_word" >&5
5351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5352 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5353 echo $ECHO_N "(cached) $ECHO_C" >&6
5355 if test -n "$ac_ct_RANLIB"; then
5356 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362 test -z "$as_dir" && as_dir=.
5363 for ac_exec_ext in '' $ac_executable_extensions; do
5364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5365 ac_cv_prog_ac_ct_RANLIB="ranlib"
5366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5372 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5375 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5376 if test -n "$ac_ct_RANLIB"; then
5377 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5378 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5380 echo "$as_me:$LINENO: result: no" >&5
5381 echo "${ECHO_T}no" >&6
5384 RANLIB=$ac_ct_RANLIB
5386 RANLIB="$ac_cv_prog_RANLIB"
5389 test -z "$RANLIB" && RANLIB=:
5396 # Determine commands to create old-style static archives.
5397 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5398 old_postinstall_cmds='chmod 644 $oldlib'
5399 old_postuninstall_cmds=
5401 if test -n "$RANLIB"; then
5404 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5407 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5410 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5446 # If no C compiler was specified, use CC.
5449 # If no C compiler flags were specified, use CFLAGS.
5450 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5452 # Allow CC to be a program name with arguments.
5456 # Check for command to grab the raw symbol name followed by C symbol from nm.
5457 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5458 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5459 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5460 echo $ECHO_N "(cached) $ECHO_C" >&6
5463 # These are sane defaults that work on at least a few old systems.
5464 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5466 # Character class describing NM global symbol codes.
5467 symcode='[BCDEGRST]'
5469 # Regexp to match symbols that can be accessed directly from C.
5470 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5472 # Define system-specific variables.
5477 cygwin* | mingw* | pw32*)
5478 symcode='[ABCDGISTW]'
5481 if test "$host_cpu" = ia64; then
5482 symcode='[ABCDEGRST]'
5486 symcode='[BCDEGRST]'
5489 symcode='[BCDEGQRST]'
5500 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5508 # If we're using GNU nm, then use its standard symbol codes.
5509 case `$NM -V 2>&1` in
5510 *GNU* | *'with BFD'*)
5511 symcode='[ABCDGIRSTW]' ;;
5514 # Transform an extracted symbol line into a proper C declaration.
5515 # Some systems (esp. on ia64) link data and code symbols differently,
5516 # so use this general approach.
5517 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5519 # Transform an extracted symbol line into symbol name and symbol address
5520 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5522 # Handle CRLF in mingw tool chain
5526 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5530 # Try without a prefix underscore, then with it.
5531 for ac_symprfx in "" "_"; do
5533 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5534 symxfrm="\\1 $ac_symprfx\\2 \\2"
5536 # Write the raw and C identifiers.
5537 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5538 # Fake it for dumpbin and say T for any non-static function
5539 # and D for any global variable.
5540 # Also find C++ and __fastcall symbols from MSVC++,
5541 # which start with @ or ?.
5542 lt_cv_sys_global_symbol_pipe="$AWK '"\
5543 " {last_section=section; section=\$ 3};"\
5544 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5545 " \$ 0!~/External *\|/{next};"\
5546 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5547 " {if(hide[section]) next};"\
5548 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5549 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5550 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5551 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5552 " ' prfx=^$ac_symprfx"
5554 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5557 # Check to see that the pipe works correctly.
5561 cat > conftest.$ac_ext <<_LT_EOF
5566 void nm_test_func(void);
5567 void nm_test_func(void){}
5571 int main(){nm_test_var='a';nm_test_func();return(0);}
5574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5575 (eval $ac_compile) 2>&5
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); }; then
5579 # Now try to grab the symbols.
5581 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5582 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); } && test -s "$nlist"; then
5586 # Try sorting and uniquifying the output.
5587 if sort "$nlist" | uniq > "$nlist"T; then
5588 mv -f "$nlist"T "$nlist"
5593 # Make sure that we snagged all the symbols we need.
5594 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5595 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5596 cat <<_LT_EOF > conftest.$ac_ext
5602 # Now generate the symbol file.
5603 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5605 cat <<_LT_EOF >> conftest.$ac_ext
5607 /* The mapping between symbol names and symbols. */
5612 lt__PROGRAM__LTX_preloaded_symbols[] =
5614 { "@PROGRAM@", (void *) 0 },
5616 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5617 cat <<\_LT_EOF >> conftest.$ac_ext
5621 /* This works around a problem in FreeBSD linker */
5622 #ifdef FREEBSD_WORKAROUND
5623 static const void *lt_preloaded_setup() {
5624 return lt__PROGRAM__LTX_preloaded_symbols;
5632 # Now try linking the two files.
5633 mv conftest.$ac_objext conftstm.$ac_objext
5634 lt_save_LIBS="$LIBS"
5635 lt_save_CFLAGS="$CFLAGS"
5636 LIBS="conftstm.$ac_objext"
5637 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5639 (eval $ac_link) 2>&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5645 LIBS="$lt_save_LIBS"
5646 CFLAGS="$lt_save_CFLAGS"
5648 echo "cannot find nm_test_func in $nlist" >&5
5651 echo "cannot find nm_test_var in $nlist" >&5
5654 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5657 echo "$progname: failed program was:" >&5
5658 cat conftest.$ac_ext >&5
5660 rm -f conftest* conftst*
5662 # Do not use the global_symbol_pipe unless it works.
5663 if test "$pipe_works" = yes; then
5666 lt_cv_sys_global_symbol_pipe=
5672 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5673 lt_cv_sys_global_symbol_to_cdecl=
5675 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5676 echo "$as_me:$LINENO: result: failed" >&5
5677 echo "${ECHO_T}failed" >&6
5679 echo "$as_me:$LINENO: result: ok" >&5
5680 echo "${ECHO_T}ok" >&6
5699 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5700 if test "${enable_libtool_lock+set}" = set; then
5701 enableval="$enable_libtool_lock"
5704 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5706 # Some flags need to be propagated to the compiler or linker for good
5710 # Find out which ABI we are using.
5711 echo 'int i;' > conftest.$ac_ext
5712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5713 (eval $ac_compile) 2>&5
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; then
5717 case `/usr/bin/file conftest.$ac_objext` in
5729 # Find out which ABI we are using.
5730 echo '#line 5730 "configure"' > conftest.$ac_ext
5731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5732 (eval $ac_compile) 2>&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); }; then
5736 if test "$lt_cv_prog_gnu_ld" = yes; then
5737 case `/usr/bin/file conftest.$ac_objext` in
5739 LD="${LD-ld} -melf32bsmip"
5742 LD="${LD-ld} -melf32bmipn32"
5745 LD="${LD-ld} -melf64bmip"
5749 case `/usr/bin/file conftest.$ac_objext` in
5765 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5766 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5767 # Find out which ABI we are using.
5768 echo 'int i;' > conftest.$ac_ext
5769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5770 (eval $ac_compile) 2>&5
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); }; then
5774 case `/usr/bin/file conftest.o` in
5777 x86_64-*kfreebsd*-gnu)
5778 LD="${LD-ld} -m elf_i386_fbsd"
5781 LD="${LD-ld} -m elf_i386"
5783 ppc64-*linux*|powerpc64-*linux*)
5784 LD="${LD-ld} -m elf32ppclinux"
5787 LD="${LD-ld} -m elf_s390"
5790 LD="${LD-ld} -m elf32_sparc"
5796 x86_64-*kfreebsd*-gnu)
5797 LD="${LD-ld} -m elf_x86_64_fbsd"
5800 LD="${LD-ld} -m elf_x86_64"
5802 ppc*-*linux*|powerpc*-*linux*)
5803 LD="${LD-ld} -m elf64ppc"
5805 s390*-*linux*|s390*-*tpf*)
5806 LD="${LD-ld} -m elf64_s390"
5809 LD="${LD-ld} -m elf64_sparc"
5819 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5820 SAVE_CFLAGS="$CFLAGS"
5821 CFLAGS="$CFLAGS -belf"
5822 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5823 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5824 if test "${lt_cv_cc_needs_belf+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5828 ac_cpp='$CPP $CPPFLAGS'
5829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5833 cat >conftest.$ac_ext <<_ACEOF
5836 cat confdefs.h >>conftest.$ac_ext
5837 cat >>conftest.$ac_ext <<_ACEOF
5838 /* end confdefs.h. */
5848 rm -f conftest.$ac_objext conftest$ac_exeext
5849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5850 (eval $ac_link) 2>conftest.er1
5852 grep -v '^ *+' conftest.er1 >conftest.err
5854 cat conftest.err >&5
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); } &&
5857 { ac_try='test -z "$ac_c_werror_flag"
5858 || test ! -s conftest.err'
5859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); }; } &&
5864 { ac_try='test -s conftest$ac_exeext'
5865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); }; }; then
5870 lt_cv_cc_needs_belf=yes
5872 echo "$as_me: failed program was:" >&5
5873 sed 's/^/| /' conftest.$ac_ext >&5
5875 lt_cv_cc_needs_belf=no
5877 rm -f conftest.err conftest.$ac_objext \
5878 conftest$ac_exeext conftest.$ac_ext
5880 ac_cpp='$CPP $CPPFLAGS'
5881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5886 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5887 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5888 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5889 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5890 CFLAGS="$SAVE_CFLAGS"
5894 # Find out which ABI we are using.
5895 echo 'int i;' > conftest.$ac_ext
5896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5897 (eval $ac_compile) 2>&5
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); }; then
5901 case `/usr/bin/file conftest.o` in
5903 case $lt_cv_prog_gnu_ld in
5904 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5905 *) LD="${LD-ld} -64" ;;
5914 need_locks="$enable_libtool_lock"
5917 ac_cpp='$CPP $CPPFLAGS'
5918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5921 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5922 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5923 # On Suns, sometimes $CPP names a directory.
5924 if test -n "$CPP" && test -d "$CPP"; then
5927 if test -z "$CPP"; then
5928 if test "${ac_cv_prog_CPP+set}" = set; then
5929 echo $ECHO_N "(cached) $ECHO_C" >&6
5931 # Double quotes because CPP needs to be expanded
5932 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5935 for ac_c_preproc_warn_flag in '' yes
5937 # Use a header file that comes with gcc, so configuring glibc
5938 # with a fresh cross-compiler works.
5939 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5940 # <limits.h> exists even on freestanding compilers.
5941 # On the NeXT, cc -E runs the code through the compiler's parser,
5942 # not just through cpp. "Syntax error" is here to catch this case.
5943 cat >conftest.$ac_ext <<_ACEOF
5946 cat confdefs.h >>conftest.$ac_ext
5947 cat >>conftest.$ac_ext <<_ACEOF
5948 /* end confdefs.h. */
5950 # include <limits.h>
5952 # include <assert.h>
5956 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5959 grep -v '^ *+' conftest.er1 >conftest.err
5961 cat conftest.err >&5
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); } >/dev/null; then
5964 if test -s conftest.err; then
5965 ac_cpp_err=$ac_c_preproc_warn_flag
5966 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5973 if test -z "$ac_cpp_err"; then
5976 echo "$as_me: failed program was:" >&5
5977 sed 's/^/| /' conftest.$ac_ext >&5
5979 # Broken: fails on valid input.
5982 rm -f conftest.err conftest.$ac_ext
5984 # OK, works on sane cases. Now check whether non-existent headers
5985 # can be detected and how.
5986 cat >conftest.$ac_ext <<_ACEOF
5989 cat confdefs.h >>conftest.$ac_ext
5990 cat >>conftest.$ac_ext <<_ACEOF
5991 /* end confdefs.h. */
5992 #include <ac_nonexistent.h>
5994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5997 grep -v '^ *+' conftest.er1 >conftest.err
5999 cat conftest.err >&5
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); } >/dev/null; then
6002 if test -s conftest.err; then
6003 ac_cpp_err=$ac_c_preproc_warn_flag
6004 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6011 if test -z "$ac_cpp_err"; then
6012 # Broken: success on invalid input.
6015 echo "$as_me: failed program was:" >&5
6016 sed 's/^/| /' conftest.$ac_ext >&5
6018 # Passes both tests.
6022 rm -f conftest.err conftest.$ac_ext
6025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6026 rm -f conftest.err conftest.$ac_ext
6027 if $ac_preproc_ok; then
6039 echo "$as_me:$LINENO: result: $CPP" >&5
6040 echo "${ECHO_T}$CPP" >&6
6042 for ac_c_preproc_warn_flag in '' yes
6044 # Use a header file that comes with gcc, so configuring glibc
6045 # with a fresh cross-compiler works.
6046 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6047 # <limits.h> exists even on freestanding compilers.
6048 # On the NeXT, cc -E runs the code through the compiler's parser,
6049 # not just through cpp. "Syntax error" is here to catch this case.
6050 cat >conftest.$ac_ext <<_ACEOF
6053 cat confdefs.h >>conftest.$ac_ext
6054 cat >>conftest.$ac_ext <<_ACEOF
6055 /* end confdefs.h. */
6057 # include <limits.h>
6059 # include <assert.h>
6063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6066 grep -v '^ *+' conftest.er1 >conftest.err
6068 cat conftest.err >&5
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); } >/dev/null; then
6071 if test -s conftest.err; then
6072 ac_cpp_err=$ac_c_preproc_warn_flag
6073 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6080 if test -z "$ac_cpp_err"; then
6083 echo "$as_me: failed program was:" >&5
6084 sed 's/^/| /' conftest.$ac_ext >&5
6086 # Broken: fails on valid input.
6089 rm -f conftest.err conftest.$ac_ext
6091 # OK, works on sane cases. Now check whether non-existent headers
6092 # can be detected and how.
6093 cat >conftest.$ac_ext <<_ACEOF
6096 cat confdefs.h >>conftest.$ac_ext
6097 cat >>conftest.$ac_ext <<_ACEOF
6098 /* end confdefs.h. */
6099 #include <ac_nonexistent.h>
6101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6104 grep -v '^ *+' conftest.er1 >conftest.err
6106 cat conftest.err >&5
6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108 (exit $ac_status); } >/dev/null; then
6109 if test -s conftest.err; then
6110 ac_cpp_err=$ac_c_preproc_warn_flag
6111 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6118 if test -z "$ac_cpp_err"; then
6119 # Broken: success on invalid input.
6122 echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.$ac_ext >&5
6125 # Passes both tests.
6129 rm -f conftest.err conftest.$ac_ext
6132 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6133 rm -f conftest.err conftest.$ac_ext
6134 if $ac_preproc_ok; then
6137 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6138 See \`config.log' for more details." >&5
6139 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6140 See \`config.log' for more details." >&2;}
6141 { (exit 1); exit 1; }; }
6145 ac_cpp='$CPP $CPPFLAGS'
6146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6151 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6152 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6153 if test "${ac_cv_header_stdc+set}" = set; then
6154 echo $ECHO_N "(cached) $ECHO_C" >&6
6156 cat >conftest.$ac_ext <<_ACEOF
6159 cat confdefs.h >>conftest.$ac_ext
6160 cat >>conftest.$ac_ext <<_ACEOF
6161 /* end confdefs.h. */
6175 rm -f conftest.$ac_objext
6176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6177 (eval $ac_compile) 2>conftest.er1
6179 grep -v '^ *+' conftest.er1 >conftest.err
6181 cat conftest.err >&5
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); } &&
6184 { ac_try='test -z "$ac_c_werror_flag"
6185 || test ! -s conftest.err'
6186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); }; } &&
6191 { ac_try='test -s conftest.$ac_objext'
6192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); }; }; then
6197 ac_cv_header_stdc=yes
6199 echo "$as_me: failed program was:" >&5
6200 sed 's/^/| /' conftest.$ac_ext >&5
6202 ac_cv_header_stdc=no
6204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6206 if test $ac_cv_header_stdc = yes; then
6207 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6208 cat >conftest.$ac_ext <<_ACEOF
6211 cat confdefs.h >>conftest.$ac_ext
6212 cat >>conftest.$ac_ext <<_ACEOF
6213 /* end confdefs.h. */
6217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6218 $EGREP "memchr" >/dev/null 2>&1; then
6221 ac_cv_header_stdc=no
6227 if test $ac_cv_header_stdc = yes; then
6228 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6229 cat >conftest.$ac_ext <<_ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h. */
6238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6239 $EGREP "free" >/dev/null 2>&1; then
6242 ac_cv_header_stdc=no
6248 if test $ac_cv_header_stdc = yes; then
6249 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6250 if test "$cross_compiling" = yes; then
6253 cat >conftest.$ac_ext <<_ACEOF
6256 cat confdefs.h >>conftest.$ac_ext
6257 cat >>conftest.$ac_ext <<_ACEOF
6258 /* end confdefs.h. */
6260 #if ((' ' & 0x0FF) == 0x020)
6261 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6262 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6264 # define ISLOWER(c) \
6265 (('a' <= (c) && (c) <= 'i') \
6266 || ('j' <= (c) && (c) <= 'r') \
6267 || ('s' <= (c) && (c) <= 'z'))
6268 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6271 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6276 for (i = 0; i < 256; i++)
6277 if (XOR (islower (i), ISLOWER (i))
6278 || toupper (i) != TOUPPER (i))
6283 rm -f conftest$ac_exeext
6284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6285 (eval $ac_link) 2>&5
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); }; }; then
6296 echo "$as_me: program exited with status $ac_status" >&5
6297 echo "$as_me: failed program was:" >&5
6298 sed 's/^/| /' conftest.$ac_ext >&5
6301 ac_cv_header_stdc=no
6303 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6307 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6308 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6309 if test $ac_cv_header_stdc = yes; then
6311 cat >>confdefs.h <<\_ACEOF
6312 #define STDC_HEADERS 1
6317 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6327 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6328 inttypes.h stdint.h unistd.h
6330 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6331 echo "$as_me:$LINENO: checking for $ac_header" >&5
6332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6334 echo $ECHO_N "(cached) $ECHO_C" >&6
6336 cat >conftest.$ac_ext <<_ACEOF
6339 cat confdefs.h >>conftest.$ac_ext
6340 cat >>conftest.$ac_ext <<_ACEOF
6341 /* end confdefs.h. */
6342 $ac_includes_default
6344 #include <$ac_header>
6346 rm -f conftest.$ac_objext
6347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6348 (eval $ac_compile) 2>conftest.er1
6350 grep -v '^ *+' conftest.er1 >conftest.err
6352 cat conftest.err >&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); } &&
6355 { ac_try='test -z "$ac_c_werror_flag"
6356 || test ! -s conftest.err'
6357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); }; } &&
6362 { ac_try='test -s conftest.$ac_objext'
6363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); }; }; then
6368 eval "$as_ac_Header=yes"
6370 echo "$as_me: failed program was:" >&5
6371 sed 's/^/| /' conftest.$ac_ext >&5
6373 eval "$as_ac_Header=no"
6375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6378 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6380 cat >>confdefs.h <<_ACEOF
6381 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6390 for ac_header in dlfcn.h
6392 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6393 echo "$as_me:$LINENO: checking for $ac_header" >&5
6394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6398 cat >conftest.$ac_ext <<_ACEOF
6401 cat confdefs.h >>conftest.$ac_ext
6402 cat >>conftest.$ac_ext <<_ACEOF
6403 /* end confdefs.h. */
6404 $ac_includes_default
6406 #include <$ac_header>
6408 rm -f conftest.$ac_objext
6409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6410 (eval $ac_compile) 2>conftest.er1
6412 grep -v '^ *+' conftest.er1 >conftest.err
6414 cat conftest.err >&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); } &&
6417 { ac_try='test -z "$ac_c_werror_flag"
6418 || test ! -s conftest.err'
6419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); }; } &&
6424 { ac_try='test -s conftest.$ac_objext'
6425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); }; }; then
6430 eval "$as_ac_Header=yes"
6432 echo "$as_me: failed program was:" >&5
6433 sed 's/^/| /' conftest.$ac_ext >&5
6435 eval "$as_ac_Header=no"
6437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6442 cat >>confdefs.h <<_ACEOF
6443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6452 # This can be used to rebuild libtool when needed
6453 LIBTOOL_DEPS="$ltmain"
6455 # Always use our own libtool.
6456 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6482 test -z "$LN_S" && LN_S="ln -s"
6497 if test -n "${ZSH_VERSION+set}" ; then
6498 setopt NO_GLOB_SUBST
6501 echo "$as_me:$LINENO: checking for objdir" >&5
6502 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6503 if test "${lt_cv_objdir+set}" = set; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
6506 rm -f .libs 2>/dev/null
6507 mkdir .libs 2>/dev/null
6508 if test -d .libs; then
6511 # MS-DOS does not allow filenames that begin with a dot.
6514 rmdir .libs 2>/dev/null
6516 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6517 echo "${ECHO_T}$lt_cv_objdir" >&6
6518 objdir=$lt_cv_objdir
6524 cat >>confdefs.h <<_ACEOF
6525 #define LT_OBJDIR "$lt_cv_objdir/"
6546 # AIX sometimes has problems with the GCC collect2 program. For some
6547 # reason, if we set the COLLECT_NAMES environment variable, the problems
6548 # vanish in a puff of smoke.
6549 if test "X${COLLECT_NAMES+set}" != Xset; then
6551 export COLLECT_NAMES
6556 # Sed substitution that helps us do robust quoting. It backslashifies
6557 # metacharacters that are still active within double-quoted strings.
6558 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6560 # Same as above, but do not quote variable references.
6561 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6563 # Sed substitution to delay expansion of an escaped shell variable in a
6564 # double_quote_subst'ed string.
6565 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6567 # Sed substitution to delay expansion of an escaped single quote.
6568 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6570 # Sed substitution to avoid accidental globbing in evaled expressions
6571 no_glob_subst='s/\*/\\\*/g'
6575 can_build_shared=yes
6577 # All known linkers require a `.a' archive for static linking (except MSVC,
6578 # which needs '.lib').
6581 with_gnu_ld="$lt_cv_prog_gnu_ld"
6584 old_CFLAGS="$CFLAGS"
6586 # Set sane defaults for various variables
6587 test -z "$CC" && CC=cc
6588 test -z "$LTCC" && LTCC=$CC
6589 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6590 test -z "$LD" && LD=ld
6591 test -z "$ac_objext" && ac_objext=o
6593 for cc_temp in $compiler""; do
6595 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6596 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6601 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6604 # Only perform the check for file, if the check method requires it
6605 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6606 case $deplibs_check_method in
6608 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6609 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6610 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6611 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6612 echo $ECHO_N "(cached) $ECHO_C" >&6
6616 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6619 lt_save_MAGIC_CMD="$MAGIC_CMD"
6620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6621 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6622 for ac_dir in $ac_dummy; do
6624 test -z "$ac_dir" && ac_dir=.
6625 if test -f $ac_dir/${ac_tool_prefix}file; then
6626 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6627 if test -n "$file_magic_test_file"; then
6628 case $deplibs_check_method in
6630 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6631 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6632 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6633 $EGREP "$file_magic_regex" > /dev/null; then
6638 *** Warning: the command libtool uses to detect shared libraries,
6639 *** $file_magic_cmd, produces output that libtool cannot recognize.
6640 *** The result is that libtool may fail to recognize shared libraries
6641 *** as such. This will affect the creation of libtool libraries that
6642 *** depend on shared libraries, but programs linked with such libtool
6643 *** libraries will work regardless of this problem. Nevertheless, you
6644 *** may want to report the problem to your system manager and/or to
6645 *** bug-libtool@gnu.org
6655 MAGIC_CMD="$lt_save_MAGIC_CMD"
6660 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6661 if test -n "$MAGIC_CMD"; then
6662 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6663 echo "${ECHO_T}$MAGIC_CMD" >&6
6665 echo "$as_me:$LINENO: result: no" >&5
6666 echo "${ECHO_T}no" >&6
6673 if test -z "$lt_cv_path_MAGIC_CMD"; then
6674 if test -n "$ac_tool_prefix"; then
6675 echo "$as_me:$LINENO: checking for file" >&5
6676 echo $ECHO_N "checking for file... $ECHO_C" >&6
6677 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6678 echo $ECHO_N "(cached) $ECHO_C" >&6
6682 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6685 lt_save_MAGIC_CMD="$MAGIC_CMD"
6686 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6687 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6688 for ac_dir in $ac_dummy; do
6690 test -z "$ac_dir" && ac_dir=.
6691 if test -f $ac_dir/file; then
6692 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6693 if test -n "$file_magic_test_file"; then
6694 case $deplibs_check_method in
6696 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6697 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6698 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6699 $EGREP "$file_magic_regex" > /dev/null; then
6704 *** Warning: the command libtool uses to detect shared libraries,
6705 *** $file_magic_cmd, produces output that libtool cannot recognize.
6706 *** The result is that libtool may fail to recognize shared libraries
6707 *** as such. This will affect the creation of libtool libraries that
6708 *** depend on shared libraries, but programs linked with such libtool
6709 *** libraries will work regardless of this problem. Nevertheless, you
6710 *** may want to report the problem to your system manager and/or to
6711 *** bug-libtool@gnu.org
6721 MAGIC_CMD="$lt_save_MAGIC_CMD"
6726 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6727 if test -n "$MAGIC_CMD"; then
6728 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6729 echo "${ECHO_T}$MAGIC_CMD" >&6
6731 echo "$as_me:$LINENO: result: no" >&5
6732 echo "${ECHO_T}no" >&6
6745 # Use C for the default configuration in the libtool script
6749 ac_cpp='$CPP $CPPFLAGS'
6750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6755 # Source file extension for C test sources.
6758 # Object file extension for compiled C test sources.
6762 # Code to be used in simple compile tests
6763 lt_simple_compile_test_code="int some_variable = 0;"
6765 # Code to be used in simple link tests
6766 lt_simple_link_test_code='int main(){return(0);}'
6774 # If no C compiler was specified, use CC.
6777 # If no C compiler flags were specified, use CFLAGS.
6778 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6780 # Allow CC to be a program name with arguments.
6783 # Save the default compiler, since it gets overwritten when the other
6784 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6785 compiler_DEFAULT=$CC
6787 # save warnings/boilerplate of simple test code
6788 ac_outfile=conftest.$ac_objext
6789 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6790 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6791 _lt_compiler_boilerplate=`cat conftest.err`
6794 ac_outfile=conftest.$ac_objext
6795 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6796 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6797 _lt_linker_boilerplate=`cat conftest.err`
6802 ## There is no encapsulation within the following macros, do not change
6803 ## the running order or otherwise move them around unless you know exactly
6804 ## what you are doing...
6805 if test -n "$compiler"; then
6807 lt_prog_compiler_no_builtin_flag=
6809 if test "$GCC" = yes; then
6810 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6812 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6813 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6814 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6815 echo $ECHO_N "(cached) $ECHO_C" >&6
6817 lt_cv_prog_compiler_rtti_exceptions=no
6818 ac_outfile=conftest.$ac_objext
6819 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6820 lt_compiler_flag="-fno-rtti -fno-exceptions"
6821 # Insert the option either (1) after the last *FLAGS variable, or
6822 # (2) before a word containing "conftest.", or (3) at the end.
6823 # Note that $ac_compile itself does not contain backslashes and begins
6824 # with a dollar sign (not a hyphen), so the echo should work correctly.
6825 # The option is referenced via a variable to avoid confusing sed.
6826 lt_compile=`echo "$ac_compile" | $SED \
6827 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6828 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6829 -e 's:$: $lt_compiler_flag:'`
6830 (eval echo "\"\$as_me:6830: $lt_compile\"" >&5)
6831 (eval "$lt_compile" 2>conftest.err)
6833 cat conftest.err >&5
6834 echo "$as_me:6834: \$? = $ac_status" >&5
6835 if (exit $ac_status) && test -s "$ac_outfile"; then
6836 # The compiler can only warn and ignore the option if not recognized
6837 # So say no if there are warnings other than the usual output.
6838 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6839 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6840 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6841 lt_cv_prog_compiler_rtti_exceptions=yes
6847 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6848 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6850 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6851 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6863 lt_prog_compiler_wl=
6864 lt_prog_compiler_pic=
6865 lt_prog_compiler_static=
6867 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6868 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6870 if test "$GCC" = yes; then
6871 lt_prog_compiler_wl='-Wl,'
6872 lt_prog_compiler_static='-static'
6876 # All AIX code is PIC.
6877 if test "$host_cpu" = ia64; then
6878 # AIX 5 now supports IA64 processor
6879 lt_prog_compiler_static='-Bstatic'
6884 if test "$host_cpu" = m68k; then
6885 # FIXME: we need at least 68020 code to build shared libraries, but
6886 # adding the `-m68020' flag to GCC prevents building anything better,
6888 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6892 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6893 # PIC is the default for these OSes.
6896 mingw* | cygwin* | pw32* | os2*)
6897 # This hack is so that the source file can tell whether it is being
6898 # built for inclusion in a dll (and should export symbols for example).
6899 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6900 # (--disable-auto-import) libraries
6901 lt_prog_compiler_pic='-DDLL_EXPORT'
6904 darwin* | rhapsody*)
6905 # PIC is the default on this platform
6906 # Common symbols not allowed in MH_DYLIB files
6907 lt_prog_compiler_pic='-fno-common'
6911 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6918 lt_prog_compiler_pic='-fPIC'
6924 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6925 # Instead, we relocate shared libraries at runtime.
6929 # Just because we use GCC doesn't mean we suddenly get shared libraries
6930 # on systems that don't support them.
6931 lt_prog_compiler_can_build_shared=no
6936 # QNX uses GNU C++, but need to define -shared option too, otherwise
6938 lt_prog_compiler_pic='-fPIC -shared'
6942 if test -d /usr/nec; then
6943 lt_prog_compiler_pic=-Kconform_pic
6948 lt_prog_compiler_pic='-fPIC'
6952 # PORTME Check for flag to pass linker flags through the system compiler.
6955 lt_prog_compiler_wl='-Wl,'
6956 if test "$host_cpu" = ia64; then
6957 # AIX 5 now supports IA64 processor
6958 lt_prog_compiler_static='-Bstatic'
6960 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6964 # PIC is the default on this platform
6965 # Common symbols not allowed in MH_DYLIB files
6966 case $cc_basename in
6968 lt_prog_compiler_pic='-qnocommon'
6969 lt_prog_compiler_wl='-Wl,'
6974 mingw* | cygwin* | pw32* | os2*)
6975 # This hack is so that the source file can tell whether it is being
6976 # built for inclusion in a dll (and should export symbols for example).
6977 lt_prog_compiler_pic='-DDLL_EXPORT'
6980 hpux9* | hpux10* | hpux11*)
6981 lt_prog_compiler_wl='-Wl,'
6982 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6989 lt_prog_compiler_pic='+Z'
6992 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6993 lt_prog_compiler_static='${wl}-a ${wl}archive'
6996 irix5* | irix6* | nonstopux*)
6997 lt_prog_compiler_wl='-Wl,'
6998 # PIC (with -KPIC) is the default.
6999 lt_prog_compiler_static='-non_shared'
7002 linux* | k*bsd*-gnu)
7003 case $cc_basename in
7005 lt_prog_compiler_wl='-Wl,'
7006 lt_prog_compiler_pic='-KPIC'
7007 lt_prog_compiler_static='-static'
7009 pgcc* | pgf77* | pgf90* | pgf95*)
7010 # Portland Group compilers (*not* the Pentium gcc compiler,
7011 # which looks to be a dead project)
7012 lt_prog_compiler_wl='-Wl,'
7013 lt_prog_compiler_pic='-fpic'
7014 lt_prog_compiler_static='-Bstatic'
7017 lt_prog_compiler_wl='-Wl,'
7018 # All Alpha code is PIC.
7019 lt_prog_compiler_static='-non_shared'
7022 case `$CC -V 2>&1 | sed 5q` in
7025 lt_prog_compiler_pic='-KPIC'
7026 lt_prog_compiler_static='-Bstatic'
7027 lt_prog_compiler_wl='-Wl,'
7030 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7031 lt_prog_compiler_pic='-KPIC'
7032 lt_prog_compiler_static='-Bstatic'
7033 lt_prog_compiler_wl=''
7041 lt_prog_compiler_pic='-KPIC'
7042 lt_prog_compiler_static='-Bstatic'
7046 # QNX uses GNU C++, but need to define -shared option too, otherwise
7048 lt_prog_compiler_pic='-fPIC -shared'
7051 osf3* | osf4* | osf5*)
7052 lt_prog_compiler_wl='-Wl,'
7053 # All OSF/1 code is PIC.
7054 lt_prog_compiler_static='-non_shared'
7058 lt_prog_compiler_static='-non_shared'
7062 lt_prog_compiler_pic='-KPIC'
7063 lt_prog_compiler_static='-Bstatic'
7064 case $cc_basename in
7066 lt_prog_compiler_wl='-Qoption ld ';;
7068 lt_prog_compiler_wl='-Wl,';;
7073 lt_prog_compiler_wl='-Qoption ld '
7074 lt_prog_compiler_pic='-PIC'
7075 lt_prog_compiler_static='-Bstatic'
7078 sysv4 | sysv4.2uw2* | sysv4.3*)
7079 lt_prog_compiler_wl='-Wl,'
7080 lt_prog_compiler_pic='-KPIC'
7081 lt_prog_compiler_static='-Bstatic'
7085 if test -d /usr/nec ;then
7086 lt_prog_compiler_pic='-Kconform_pic'
7087 lt_prog_compiler_static='-Bstatic'
7091 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7092 lt_prog_compiler_wl='-Wl,'
7093 lt_prog_compiler_pic='-KPIC'
7094 lt_prog_compiler_static='-Bstatic'
7098 lt_prog_compiler_wl='-Wl,'
7099 lt_prog_compiler_can_build_shared=no
7103 lt_prog_compiler_pic='-pic'
7104 lt_prog_compiler_static='-Bstatic'
7108 lt_prog_compiler_can_build_shared=no
7114 # For platforms which do not support PIC, -DPIC is meaningless:
7116 lt_prog_compiler_pic=
7119 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7122 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7123 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7131 # Check to make sure the PIC flag actually works.
7133 if test -n "$lt_prog_compiler_pic"; then
7134 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7135 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7136 if test "${lt_prog_compiler_pic_works+set}" = set; then
7137 echo $ECHO_N "(cached) $ECHO_C" >&6
7139 lt_prog_compiler_pic_works=no
7140 ac_outfile=conftest.$ac_objext
7141 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7142 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7143 # Insert the option either (1) after the last *FLAGS variable, or
7144 # (2) before a word containing "conftest.", or (3) at the end.
7145 # Note that $ac_compile itself does not contain backslashes and begins
7146 # with a dollar sign (not a hyphen), so the echo should work correctly.
7147 # The option is referenced via a variable to avoid confusing sed.
7148 lt_compile=`echo "$ac_compile" | $SED \
7149 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7150 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7151 -e 's:$: $lt_compiler_flag:'`
7152 (eval echo "\"\$as_me:7152: $lt_compile\"" >&5)
7153 (eval "$lt_compile" 2>conftest.err)
7155 cat conftest.err >&5
7156 echo "$as_me:7156: \$? = $ac_status" >&5
7157 if (exit $ac_status) && test -s "$ac_outfile"; then
7158 # The compiler can only warn and ignore the option if not recognized
7159 # So say no if there are warnings other than the usual output.
7160 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7161 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7162 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7163 lt_prog_compiler_pic_works=yes
7169 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7170 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7172 if test x"$lt_prog_compiler_pic_works" = xyes; then
7173 case $lt_prog_compiler_pic in
7175 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7178 lt_prog_compiler_pic=
7179 lt_prog_compiler_can_build_shared=no
7190 # Check to make sure the static flag actually works.
7192 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7193 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7194 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7195 if test "${lt_prog_compiler_static_works+set}" = set; then
7196 echo $ECHO_N "(cached) $ECHO_C" >&6
7198 lt_prog_compiler_static_works=no
7199 save_LDFLAGS="$LDFLAGS"
7200 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7201 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7202 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7203 # The linker can only warn and ignore the option if not recognized
7204 # So say no if there are warnings
7205 if test -s conftest.err; then
7206 # Append any errors to the config.log.
7207 cat conftest.err 1>&5
7208 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7209 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7210 if diff conftest.exp conftest.er2 >/dev/null; then
7211 lt_prog_compiler_static_works=yes
7214 lt_prog_compiler_static_works=yes
7218 LDFLAGS="$save_LDFLAGS"
7221 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7222 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7224 if test x"$lt_prog_compiler_static_works" = xyes; then
7227 lt_prog_compiler_static=
7236 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7237 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7238 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7239 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 lt_cv_prog_compiler_c_o=no
7242 $RM -r conftest 2>/dev/null
7246 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7248 lt_compiler_flag="-o out/conftest2.$ac_objext"
7249 # Insert the option either (1) after the last *FLAGS variable, or
7250 # (2) before a word containing "conftest.", or (3) at the end.
7251 # Note that $ac_compile itself does not contain backslashes and begins
7252 # with a dollar sign (not a hyphen), so the echo should work correctly.
7253 lt_compile=`echo "$ac_compile" | $SED \
7254 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7255 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7256 -e 's:$: $lt_compiler_flag:'`
7257 (eval echo "\"\$as_me:7257: $lt_compile\"" >&5)
7258 (eval "$lt_compile" 2>out/conftest.err)
7260 cat out/conftest.err >&5
7261 echo "$as_me:7261: \$? = $ac_status" >&5
7262 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7264 # The compiler can only warn and ignore the option if not recognized
7265 # So say no if there are warnings
7266 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7267 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7268 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7269 lt_cv_prog_compiler_c_o=yes
7274 # SGI C++ compiler will create directory out/ii_files/ for
7275 # template instantiation
7276 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7277 $RM out/* && rmdir out
7283 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7284 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7291 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7292 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7293 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7294 echo $ECHO_N "(cached) $ECHO_C" >&6
7296 lt_cv_prog_compiler_c_o=no
7297 $RM -r conftest 2>/dev/null
7301 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7303 lt_compiler_flag="-o out/conftest2.$ac_objext"
7304 # Insert the option either (1) after the last *FLAGS variable, or
7305 # (2) before a word containing "conftest.", or (3) at the end.
7306 # Note that $ac_compile itself does not contain backslashes and begins
7307 # with a dollar sign (not a hyphen), so the echo should work correctly.
7308 lt_compile=`echo "$ac_compile" | $SED \
7309 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7310 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7311 -e 's:$: $lt_compiler_flag:'`
7312 (eval echo "\"\$as_me:7312: $lt_compile\"" >&5)
7313 (eval "$lt_compile" 2>out/conftest.err)
7315 cat out/conftest.err >&5
7316 echo "$as_me:7316: \$? = $ac_status" >&5
7317 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7319 # The compiler can only warn and ignore the option if not recognized
7320 # So say no if there are warnings
7321 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7322 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7323 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7324 lt_cv_prog_compiler_c_o=yes
7329 # SGI C++ compiler will create directory out/ii_files/ for
7330 # template instantiation
7331 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7332 $RM out/* && rmdir out
7338 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7339 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7344 hard_links="nottested"
7345 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7346 # do not overwrite the value of need_locks provided by the user
7347 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7348 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7351 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7353 ln conftest.a conftest.b 2>&5 || hard_links=no
7354 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7355 echo "$as_me:$LINENO: result: $hard_links" >&5
7356 echo "${ECHO_T}$hard_links" >&6
7357 if test "$hard_links" = no; then
7358 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7359 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7371 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7372 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7375 allow_undefined_flag=
7376 always_export_symbols=no
7378 archive_expsym_cmds=
7379 compiler_needs_object=no
7380 enable_shared_with_static_runtimes=no
7381 export_dynamic_flag_spec=
7382 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7383 hardcode_automatic=no
7385 hardcode_direct_absolute=no
7386 hardcode_libdir_flag_spec=
7387 hardcode_libdir_flag_spec_ld=
7388 hardcode_libdir_separator=
7390 hardcode_shlibpath_var=unsupported
7392 link_all_deplibs=unknown
7395 old_archive_from_new_cmds=
7396 old_archive_from_expsyms_cmds=
7397 thread_safe_flag_spec=
7398 whole_archive_flag_spec=
7399 # include_expsyms should be a list of space-separated symbols to be *always*
7400 # included in the symbol list
7402 # exclude_expsyms can be an extended regexp of symbols to exclude
7403 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7404 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7405 # as well as any symbol that contains `d'.
7406 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7407 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7408 # platforms (ab)use it in PIC code, but their linkers get confused if
7409 # the symbol is explicitly referenced. Since portable code cannot
7410 # rely on this symbol name, it's probably fine to never include it in
7411 # preloaded symbol tables.
7412 extract_expsyms_cmds=
7415 cygwin* | mingw* | pw32*)
7416 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7417 # When not using gcc, we currently assume that we are using
7418 # Microsoft Visual C++.
7419 if test "$GCC" != yes; then
7424 # we just hope/assume this is gcc and not c89 (= MSVC++)
7433 if test "$with_gnu_ld" = yes; then
7434 # If archive_cmds runs LD, not CC, wlarc should be empty
7437 # Set some defaults for GNU ld with shared library support. These
7438 # are reset later if shared libraries are not supported. Putting them
7439 # here allows them to be overridden if necessary.
7440 runpath_var=LD_RUN_PATH
7441 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7442 export_dynamic_flag_spec='${wl}--export-dynamic'
7443 # ancient GNU ld didn't support --whole-archive et. al.
7444 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7445 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7447 whole_archive_flag_spec=
7449 supports_anon_versioning=no
7450 case `$LD -v 2>&1` in
7451 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7452 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7453 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7454 *\ 2.11.*) ;; # other 2.11 versions
7455 *) supports_anon_versioning=yes ;;
7458 # See if GNU ld supports shared libraries.
7460 aix3* | aix4* | aix5*)
7461 # On AIX/PPC, the GNU linker is very broken
7462 if test "$host_cpu" != ia64; then
7466 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7467 *** to be unable to reliably create shared libraries on AIX.
7468 *** Therefore, libtool is disabling shared libraries support. If you
7469 *** really care for shared libraries, you may want to modify your PATH
7470 *** so that a non-GNU linker is found, and then restart.
7477 if test "$host_cpu" = m68k; then
7478 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)'
7479 hardcode_libdir_flag_spec='-L$libdir'
7480 hardcode_minus_L=yes
7483 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7484 # that the semantics of dynamic libraries on AmigaOS, at least up
7485 # to version 4, is to share data among multiple programs linked
7486 # with the same dynamic library. Since this doesn't match the
7487 # behavior of shared libraries on other platforms, we can't use
7493 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7494 allow_undefined_flag=unsupported
7495 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7496 # support --undefined. This deserves some investigation. FIXME
7497 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7503 cygwin* | mingw* | pw32*)
7504 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7505 # as there is no search path for DLLs.
7506 hardcode_libdir_flag_spec='-L$libdir'
7507 allow_undefined_flag=unsupported
7508 always_export_symbols=no
7509 enable_shared_with_static_runtimes=yes
7510 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7512 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7513 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7514 # If the export-symbols file already is a .def file (1st line
7515 # is EXPORTS), use it as is; otherwise, prepend...
7516 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7517 cp $export_symbols $output_objdir/$soname.def;
7519 echo EXPORTS > $output_objdir/$soname.def;
7520 cat $export_symbols >> $output_objdir/$soname.def;
7522 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7530 hardcode_shlibpath_var=no
7531 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7532 export_dynamic_flag_spec='${wl}-E'
7533 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7534 # Instead, shared libraries are loaded at an image base (0x10000000 by
7535 # default) and relocated if they conflict, which is a slow very memory
7536 # consuming and fragmenting process. To avoid this, we pick a random,
7537 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7538 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7539 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7540 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'
7543 gnu* | linux* | tpf* | k*bsd*-gnu)
7545 if test "$host_os" = linux-dietlibc; then
7546 case $cc_basename in
7547 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7550 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7551 && test "$tmp_diet" = no
7554 case $cc_basename,$host_cpu in
7555 pgcc*) # Portland Group C compiler
7556 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'
7557 tmp_addflag=' $pic_flag'
7559 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7560 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'
7561 tmp_addflag=' $pic_flag -Mnomain' ;;
7562 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7563 tmp_addflag=' -i_dynamic' ;;
7564 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7565 tmp_addflag=' -i_dynamic -nofor_main' ;;
7566 ifc* | ifort*) # Intel Fortran compiler
7567 tmp_addflag=' -nofor_main' ;;
7569 case `$CC -V 2>&1 | sed 5q` in
7570 *Sun\ C*) # Sun C 5.9
7571 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'
7572 compiler_needs_object=yes
7573 tmp_sharedflag='-G' ;;
7574 *Sun\ F*) # Sun Fortran 8.3
7575 tmp_sharedflag='-G' ;;
7577 tmp_sharedflag='-shared' ;;
7579 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7581 if test "x$supports_anon_versioning" = xyes; then
7582 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7583 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7584 echo "local: *; };" >> $output_objdir/$libname.ver~
7585 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7593 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7594 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7597 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7598 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7603 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7607 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7608 *** create shared libraries on Solaris systems. Therefore, libtool
7609 *** is disabling shared libraries support. We urge you to upgrade GNU
7610 *** binutils to release 2.9.1 or newer. Another option is to modify
7611 *** your PATH or compiler configuration so that the native linker is
7612 *** used, and then restart.
7615 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7616 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7617 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7623 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7624 case `$LD -v 2>&1` in
7625 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7629 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7630 *** reliably create shared libraries on SCO systems. Therefore, libtool
7631 *** is disabling shared libraries support. We urge you to upgrade GNU
7632 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7633 *** your PATH or compiler configuration so that the native linker is
7634 *** used, and then restart.
7639 # For security reasons, it is highly recommended that you always
7640 # use absolute paths for naming shared libraries, and exclude the
7641 # DT_RUNPATH tag from executables and libraries. But doing so
7642 # requires that you compile everything twice, which is a pain.
7643 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7644 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7645 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7646 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7655 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7658 hardcode_shlibpath_var=no
7662 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7663 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7664 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7671 if test "$ld_shlibs" = no; then
7673 hardcode_libdir_flag_spec=
7674 export_dynamic_flag_spec=
7675 whole_archive_flag_spec=
7678 # PORTME fill in a description of your system's linker (not GNU ld)
7681 allow_undefined_flag=unsupported
7682 always_export_symbols=yes
7683 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'
7684 # Note: this linker hardcodes the directories in LIBPATH if there
7685 # are no directories specified by -L.
7686 hardcode_minus_L=yes
7687 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7688 # Neither direct hardcoding nor static linking is supported with a
7690 hardcode_direct=unsupported
7695 if test "$host_cpu" = ia64; then
7696 # On IA64, the linker does run time linking by default, so we don't
7697 # have to do anything special.
7698 aix_use_runtimelinking=no
7699 exp_sym_flag='-Bexport'
7702 # If we're using GNU nm, then we don't want the "-C" option.
7703 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7704 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7705 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'
7707 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'
7709 aix_use_runtimelinking=no
7711 # Test if we are trying to use run time linking or normal
7712 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7713 # need to do runtime linking.
7714 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7715 for ld_flag in $LDFLAGS; do
7716 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7717 aix_use_runtimelinking=yes
7724 exp_sym_flag='-bexport'
7725 no_entry_flag='-bnoentry'
7728 # When large executables or shared objects are built, AIX ld can
7729 # have problems creating the table of contents. If linking a library
7730 # or program results in "error TOC overflow" add -mminimal-toc to
7731 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7732 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7736 hardcode_direct_absolute=yes
7737 hardcode_libdir_separator=':'
7738 link_all_deplibs=yes
7739 file_list_spec='${wl}-f,'
7741 if test "$GCC" = yes; then
7742 case $host_os in aix4.[012]|aix4.[012].*)
7743 # We only want to do this on AIX 4.2 and lower, the check
7744 # below for broken collect2 doesn't work under 4.3+
7745 collect2name=`${CC} -print-prog-name=collect2`
7746 if test -f "$collect2name" &&
7747 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7749 # We have reworked collect2
7752 # We have old collect2
7753 hardcode_direct=unsupported
7754 # It fails to find uninstalled libraries when the uninstalled
7755 # path is not listed in the libpath. Setting hardcode_minus_L
7756 # to unsupported forces relinking
7757 hardcode_minus_L=yes
7758 hardcode_libdir_flag_spec='-L$libdir'
7759 hardcode_libdir_separator=
7763 shared_flag='-shared'
7764 if test "$aix_use_runtimelinking" = yes; then
7765 shared_flag="$shared_flag "'${wl}-G'
7769 if test "$host_cpu" = ia64; then
7770 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7771 # chokes on -Wl,-G. The following line is correct:
7774 if test "$aix_use_runtimelinking" = yes; then
7775 shared_flag='${wl}-G'
7777 shared_flag='${wl}-bM:SRE'
7782 # It seems that -bexpall does not export symbols beginning with
7783 # underscore (_), so it is better to generate a list of symbols to export.
7784 always_export_symbols=yes
7785 if test "$aix_use_runtimelinking" = yes; then
7786 # Warning - without using the other runtime loading flags (-brtl),
7787 # -berok will link without error, but may produce a broken library.
7788 allow_undefined_flag='-berok'
7789 # Determine the default libpath from the value encoded in an
7791 cat >conftest.$ac_ext <<_ACEOF
7794 cat confdefs.h >>conftest.$ac_ext
7795 cat >>conftest.$ac_ext <<_ACEOF
7796 /* end confdefs.h. */
7806 rm -f conftest.$ac_objext conftest$ac_exeext
7807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7808 (eval $ac_link) 2>conftest.er1
7810 grep -v '^ *+' conftest.er1 >conftest.err
7812 cat conftest.err >&5
7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); } &&
7815 { ac_try='test -z "$ac_c_werror_flag"
7816 || test ! -s conftest.err'
7817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821 (exit $ac_status); }; } &&
7822 { ac_try='test -s conftest$ac_exeext'
7823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); }; }; then
7829 lt_aix_libpath_sed='
7830 /Import File Strings/,/^$/ {
7836 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7837 # Check for a 64-bit object if we didn't find anything.
7838 if test -z "$aix_libpath"; then
7839 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7842 echo "$as_me: failed program was:" >&5
7843 sed 's/^/| /' conftest.$ac_ext >&5
7846 rm -f conftest.err conftest.$ac_objext \
7847 conftest$ac_exeext conftest.$ac_ext
7848 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7850 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7851 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"
7853 if test "$host_cpu" = ia64; then
7854 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7855 allow_undefined_flag="-z nodefs"
7856 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"
7858 # Determine the default libpath from the value encoded in an
7860 cat >conftest.$ac_ext <<_ACEOF
7863 cat confdefs.h >>conftest.$ac_ext
7864 cat >>conftest.$ac_ext <<_ACEOF
7865 /* end confdefs.h. */
7875 rm -f conftest.$ac_objext conftest$ac_exeext
7876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7877 (eval $ac_link) 2>conftest.er1
7879 grep -v '^ *+' conftest.er1 >conftest.err
7881 cat conftest.err >&5
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); } &&
7884 { ac_try='test -z "$ac_c_werror_flag"
7885 || test ! -s conftest.err'
7886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); }; } &&
7891 { ac_try='test -s conftest$ac_exeext'
7892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); }; }; then
7898 lt_aix_libpath_sed='
7899 /Import File Strings/,/^$/ {
7905 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7906 # Check for a 64-bit object if we didn't find anything.
7907 if test -z "$aix_libpath"; then
7908 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7911 echo "$as_me: failed program was:" >&5
7912 sed 's/^/| /' conftest.$ac_ext >&5
7915 rm -f conftest.err conftest.$ac_objext \
7916 conftest$ac_exeext conftest.$ac_ext
7917 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7919 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7920 # Warning - without using the other run time loading flags,
7921 # -berok will link without error, but may produce a broken library.
7922 no_undefined_flag=' ${wl}-bernotok'
7923 allow_undefined_flag=' ${wl}-berok'
7924 # Exported symbols can be pulled into shared objects from archives
7925 whole_archive_flag_spec='$convenience'
7926 archive_cmds_need_lc=yes
7927 # This is similar to how AIX traditionally builds its shared libraries.
7928 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'
7934 if test "$host_cpu" = m68k; then
7935 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)'
7936 hardcode_libdir_flag_spec='-L$libdir'
7937 hardcode_minus_L=yes
7939 # see comment about different semantics on the GNU ld section
7944 export_dynamic_flag_spec=-rdynamic
7947 cygwin* | mingw* | pw32*)
7948 # When not using gcc, we currently assume that we are using
7949 # Microsoft Visual C++.
7950 # hardcode_libdir_flag_spec is actually meaningless, as there is
7951 # no search path for DLLs.
7952 hardcode_libdir_flag_spec=' '
7953 allow_undefined_flag=unsupported
7954 # Tell ltmain to make .lib files, not .a files.
7956 # Tell ltmain to make .dll files, not .so files.
7958 # FIXME: Setting linknames here is a bad hack.
7959 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7960 # The linker will automatically build a .lib file if we build a DLL.
7961 old_archive_from_new_cmds='true'
7962 # FIXME: Should let the user specify the lib program.
7963 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7964 fix_srcfile_path='`cygpath -w "$srcfile"`'
7965 enable_shared_with_static_runtimes=yes
7968 darwin* | rhapsody*)
7970 rhapsody* | darwin1.[012])
7971 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7974 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7976 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7979 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7984 archive_cmds_need_lc=no
7986 hardcode_automatic=yes
7987 hardcode_shlibpath_var=unsupported
7988 whole_archive_flag_spec=''
7989 link_all_deplibs=yes
7990 if test "$GCC" = yes ; then
7991 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7992 echo $ECHO_N "(cached) $ECHO_C" >&6
7994 lt_cv_apple_cc_single_mod=no
7995 if test -z "${LT_MULTI_MODULE}"; then
7996 # By default we will add the -single_module flag. You can override
7997 # by either setting the environment variable LT_MULTI_MODULE
7998 # non-empty at configure time, or by adding -multi-module to the
8000 echo "int foo(void){return 1;}" > conftest.c
8001 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8002 -dynamiclib ${wl}-single_module conftest.c
8003 if test -f libconftest.dylib; then
8004 lt_cv_apple_cc_single_mod=yes
8005 rm libconftest.dylib
8011 output_verbose_link_cmd=echo
8012 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8013 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8014 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}'
8016 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8017 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}'
8019 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8020 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}'
8022 case $cc_basename in
8024 output_verbose_link_cmd=echo
8025 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8026 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8027 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8028 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}'
8029 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}'
8039 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8040 hardcode_libdir_flag_spec='-L$libdir'
8041 hardcode_shlibpath_var=no
8048 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8049 # support. Future versions do this automatically, but an explicit c++rt0.o
8050 # does not break anything, and helps significantly (at the cost of a little
8053 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8054 hardcode_libdir_flag_spec='-R$libdir'
8056 hardcode_shlibpath_var=no
8059 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8061 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8063 hardcode_minus_L=yes
8064 hardcode_shlibpath_var=no
8067 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8068 freebsd* | dragonfly*)
8069 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8070 hardcode_libdir_flag_spec='-R$libdir'
8072 hardcode_shlibpath_var=no
8076 if test "$GCC" = yes; then
8077 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'
8079 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'
8081 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8082 hardcode_libdir_separator=:
8085 # hardcode_minus_L: Not really in the search PATH,
8086 # but as the default location of the library.
8087 hardcode_minus_L=yes
8088 export_dynamic_flag_spec='${wl}-E'
8092 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8093 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8095 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8097 if test "$with_gnu_ld" = no; then
8098 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8099 hardcode_libdir_flag_spec_ld='+b $libdir'
8100 hardcode_libdir_separator=:
8102 hardcode_direct_absolute=yes
8103 export_dynamic_flag_spec='${wl}-E'
8104 # hardcode_minus_L: Not really in the search PATH,
8105 # but as the default location of the library.
8106 hardcode_minus_L=yes
8111 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8114 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8117 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8120 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8126 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8129 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8132 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8136 if test "$with_gnu_ld" = no; then
8137 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8138 hardcode_libdir_separator=:
8143 hardcode_shlibpath_var=no
8147 hardcode_direct_absolute=yes
8148 export_dynamic_flag_spec='${wl}-E'
8150 # hardcode_minus_L: Not really in the search PATH,
8151 # but as the default location of the library.
8152 hardcode_minus_L=yes
8158 irix5* | irix6* | nonstopux*)
8159 if test "$GCC" = yes; then
8160 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'
8161 # Try to use the -exported_symbol ld option, if it does not
8162 # work, assume that -exports_file does not work either and
8163 # implicitly export all symbols.
8164 save_LDFLAGS="$LDFLAGS"
8165 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8166 cat >conftest.$ac_ext <<_ACEOF
8169 rm -f conftest.$ac_objext conftest$ac_exeext
8170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8171 (eval $ac_link) 2>conftest.er1
8173 grep -v '^ *+' conftest.er1 >conftest.err
8175 cat conftest.err >&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); } &&
8178 { ac_try='test -z "$ac_c_werror_flag"
8179 || test ! -s conftest.err'
8180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); }; } &&
8185 { ac_try='test -s conftest$ac_exeext'
8186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); }; }; then
8191 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'
8194 echo "$as_me: failed program was:" >&5
8195 sed 's/^/| /' conftest.$ac_ext >&5
8198 rm -f conftest.err conftest.$ac_objext \
8199 conftest$ac_exeext conftest.$ac_ext
8200 LDFLAGS="$save_LDFLAGS"
8202 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'
8203 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'
8205 archive_cmds_need_lc='no'
8206 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8207 hardcode_libdir_separator=:
8209 link_all_deplibs=yes
8213 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8214 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8216 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8218 hardcode_libdir_flag_spec='-R$libdir'
8220 hardcode_shlibpath_var=no
8224 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8226 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8227 hardcode_libdir_separator=:
8228 hardcode_shlibpath_var=no
8236 hardcode_shlibpath_var=no
8237 hardcode_direct_absolute=yes
8238 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8239 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8240 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8241 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8242 export_dynamic_flag_spec='${wl}-E'
8245 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8246 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8247 hardcode_libdir_flag_spec='-R$libdir'
8250 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8251 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8258 hardcode_libdir_flag_spec='-L$libdir'
8259 hardcode_minus_L=yes
8260 allow_undefined_flag=unsupported
8261 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'
8262 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8266 if test "$GCC" = yes; then
8267 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8268 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'
8270 allow_undefined_flag=' -expect_unresolved \*'
8271 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'
8273 archive_cmds_need_lc='no'
8274 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8275 hardcode_libdir_separator=:
8278 osf4* | osf5*) # as osf3* with the addition of -msym flag
8279 if test "$GCC" = yes; then
8280 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8281 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'
8282 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8284 allow_undefined_flag=' -expect_unresolved \*'
8285 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'
8286 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~
8287 $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'
8289 # Both c and cxx compiler support -rpath directly
8290 hardcode_libdir_flag_spec='-rpath $libdir'
8292 archive_cmds_need_lc='no'
8293 hardcode_libdir_separator=:
8297 no_undefined_flag=' -z defs'
8298 if test "$GCC" = yes; then
8300 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8301 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8302 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8304 case `$CC -V 2>&1` in
8307 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8308 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8309 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8313 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8314 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8315 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8319 hardcode_libdir_flag_spec='-R$libdir'
8320 hardcode_shlibpath_var=no
8322 solaris2.[0-5] | solaris2.[0-5].*) ;;
8324 # The compiler driver will combine and reorder linker options,
8325 # but understands `-z linker_flag'. GCC discards it without `$wl',
8326 # but is careful enough not to reorder.
8327 # Supported since Solaris 2.6 (maybe 2.5.1?)
8328 if test "$GCC" = yes; then
8329 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8331 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8335 link_all_deplibs=yes
8339 if test "x$host_vendor" = xsequent; then
8340 # Use $CC to link under sequent, because it throws in some extra .o
8341 # files that make .init and .fini sections work.
8342 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8344 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8346 hardcode_libdir_flag_spec='-L$libdir'
8348 hardcode_minus_L=yes
8349 hardcode_shlibpath_var=no
8353 case $host_vendor in
8355 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8356 hardcode_direct=yes # is this really true???
8359 ## LD is ld it makes a PLAMLIB
8360 ## CC just makes a GrossModule.
8361 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8362 reload_cmds='$CC -r -o $output$reload_objs'
8366 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8367 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8370 runpath_var='LD_RUN_PATH'
8371 hardcode_shlibpath_var=no
8375 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8376 hardcode_shlibpath_var=no
8377 export_dynamic_flag_spec='-Bexport'
8381 if test -d /usr/nec; then
8382 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8383 hardcode_shlibpath_var=no
8384 runpath_var=LD_RUN_PATH
8385 hardcode_runpath_var=yes
8390 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8391 no_undefined_flag='${wl}-z,text'
8392 archive_cmds_need_lc=no
8393 hardcode_shlibpath_var=no
8394 runpath_var='LD_RUN_PATH'
8396 if test "$GCC" = yes; then
8397 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8398 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8400 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8401 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8405 sysv5* | sco3.2v5* | sco5v6*)
8406 # Note: We can NOT use -z defs as we might desire, because we do not
8407 # link with -lc, and that would cause any symbols used from libc to
8408 # always be unresolved, which means just about no library would
8409 # ever link correctly. If we're not using GNU ld we use -z text
8410 # though, which does catch some bad symbols but isn't as heavy-handed
8412 no_undefined_flag='${wl}-z,text'
8413 allow_undefined_flag='${wl}-z,nodefs'
8414 archive_cmds_need_lc=no
8415 hardcode_shlibpath_var=no
8416 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8417 hardcode_libdir_separator=':'
8418 link_all_deplibs=yes
8419 export_dynamic_flag_spec='${wl}-Bexport'
8420 runpath_var='LD_RUN_PATH'
8422 if test "$GCC" = yes; then
8423 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8424 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8426 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8427 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8432 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8433 hardcode_libdir_flag_spec='-L$libdir'
8434 hardcode_shlibpath_var=no
8442 if test x$host_vendor = xsni; then
8444 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8445 export_dynamic_flag_spec='${wl}-Blargedynsym'
8451 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8452 echo "${ECHO_T}$ld_shlibs" >&6
8453 test "$ld_shlibs" = no && can_build_shared=no
8455 with_gnu_ld=$with_gnu_ld
8472 # Do we need to explicitly link libc?
8474 case "x$archive_cmds_need_lc" in
8476 # Assume -lc should be added
8477 archive_cmds_need_lc=yes
8479 if test "$enable_shared" = yes && test "$GCC" = yes; then
8480 case $archive_cmds in
8482 # FIXME: we may have to deal with multi-command sequences.
8485 # Test whether the compiler implicitly links with -lc since on some
8486 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8487 # to ld, don't add -lc before -lgcc.
8488 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8489 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8491 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8494 (eval $ac_compile) 2>&5
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); } 2>conftest.err; then
8500 libobjs=conftest.$ac_objext
8502 wl=$lt_prog_compiler_wl
8503 pic_flag=$lt_prog_compiler_pic
8509 lt_save_allow_undefined_flag=$allow_undefined_flag
8510 allow_undefined_flag=
8511 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8512 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); }
8517 archive_cmds_need_lc=no
8519 archive_cmds_need_lc=yes
8521 allow_undefined_flag=$lt_save_allow_undefined_flag
8523 cat conftest.err 1>&5
8526 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8527 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8690 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8691 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8693 if test "$withGCC" = yes; then
8695 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8696 *) lt_awk_arg="/^libraries:/" ;;
8698 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8699 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8700 # if the path contains ";" then we assume it to be the separator
8701 # otherwise default to the standard path separator (i.e. ":") - it is
8702 # assumed that no part of a normal pathname contains ";" but that should
8703 # okay in the real world where ";" in dirpaths is itself problematic.
8704 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8706 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8708 # Ok, now we have the path, separated by spaces, we can step through it
8709 # and add multilib dir if necessary.
8710 lt_tmp_lt_search_path_spec=
8711 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8712 for lt_sys_path in $lt_search_path_spec; do
8713 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8714 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8716 test -d "$lt_sys_path" && \
8717 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8720 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8721 BEGIN {RS=" "; FS="/|\n";} {
8724 for (lt_i = NF; lt_i > 0; lt_i--) {
8725 if ($lt_i != "" && $lt_i != ".") {
8726 if ($lt_i == "..") {
8729 if (lt_count == 0) {
8730 lt_foo="/" $lt_i lt_foo;
8737 if (lt_foo != "") { lt_freq[lt_foo]++; }
8738 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8740 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8742 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8745 libname_spec='lib$name'
8753 shlibpath_overrides_runpath=unknown
8755 dynamic_linker="$host_os ld.so"
8756 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8757 need_lib_prefix=unknown
8758 hardcode_into_libs=no
8760 # when you set need_version to no, make sure it does not cause -set_version
8761 # flags to be left without arguments
8762 need_version=unknown
8767 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8768 shlibpath_var=LIBPATH
8770 # AIX 3 has no versioning support, so we append a major version to the name.
8771 soname_spec='${libname}${release}${shared_ext}$major'
8778 hardcode_into_libs=yes
8779 if test "$host_cpu" = ia64; then
8780 # AIX 5 supports IA64
8781 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8782 shlibpath_var=LD_LIBRARY_PATH
8784 # With GCC up to 2.95.x, collect2 would create an import file
8785 # for dependence libraries. The import file would start with
8786 # the line `#! .'. This would cause the generated library to
8787 # depend on `.', always an invalid library. This was fixed in
8788 # development snapshots of GCC prior to 3.0.
8790 aix4 | aix4.[01] | aix4.[01].*)
8791 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8793 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8800 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8801 # soname into executable. Probably we can add versioning support to
8802 # collect2, so additional links can be useful in future.
8803 if test "$aix_use_runtimelinking" = yes; then
8804 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8805 # instead of lib<name>.a to let people know that these are not
8806 # typical AIX shared libraries.
8807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8809 # We preserve .a as extension for shared libraries through AIX4.2
8810 # and later when we are not doing run time linking.
8811 library_names_spec='${libname}${release}.a $libname.a'
8812 soname_spec='${libname}${release}${shared_ext}$major'
8814 shlibpath_var=LIBPATH
8819 if test "$host_cpu" = m68k; then
8820 library_names_spec='$libname.ixlibrary $libname.a'
8821 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8822 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'
8829 library_names_spec='${libname}${shared_ext}'
8830 dynamic_linker="$host_os ld.so"
8831 shlibpath_var=LIBRARY_PATH
8837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8838 soname_spec='${libname}${release}${shared_ext}$major'
8839 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8840 shlibpath_var=LD_LIBRARY_PATH
8841 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8842 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8843 # the default ld.so.conf also contains /usr/contrib/lib and
8844 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8845 # libtool to hard-code these into programs
8848 cygwin* | mingw* | pw32*)
8849 version_type=windows
8854 case $withGCC,$host_os in
8855 yes,cygwin* | yes,mingw* | yes,pw32*)
8856 library_names_spec='$libname.dll.a'
8857 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8858 postinstall_cmds='base_file=`basename \${file}`~
8859 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8860 dldir=$destdir/`dirname \$dlpath`~
8861 test -d \$dldir || mkdir -p \$dldir~
8862 $install_prog $dir/$dlname \$dldir/$dlname~
8863 chmod a+x \$dldir/$dlname~
8864 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8865 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8867 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8868 dlpath=$dir/\$dldll~
8870 shlibpath_overrides_runpath=yes
8874 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8875 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8876 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8879 # MinGW DLLs use traditional 'lib' prefix
8880 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8881 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8882 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8883 # It is most probably a Windows format PATH printed by
8884 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8885 # path with ; separators, and with drive letters. We can handle the
8886 # drive letters (cygwin fileutils understands them), so leave them,
8887 # especially as we might pass files found there to a mingw objdump,
8888 # which wouldn't understand a cygwinified path. Ahh.
8889 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8891 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8895 # pw32 DLLs use 'pw' prefix rather than 'lib'
8896 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8902 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8905 dynamic_linker='Win32 ld.exe'
8906 # FIXME: first we should search . and the directory the executable is in
8910 darwin* | rhapsody*)
8911 dynamic_linker="$host_os dyld"
8915 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8916 soname_spec='${libname}${release}${major}$shared_ext'
8917 shlibpath_overrides_runpath=yes
8918 shlibpath_var=DYLD_LIBRARY_PATH
8919 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8921 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8922 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8930 soname_spec='${libname}${release}${shared_ext}$major'
8931 shlibpath_var=LD_LIBRARY_PATH
8938 freebsd* | dragonfly*)
8939 # DragonFly does not have aout. When/if they implement a new
8940 # versioning mechanism, adjust this.
8941 if test -x /usr/bin/objformat; then
8942 objformat=`/usr/bin/objformat`
8945 freebsd[123]*) objformat=aout ;;
8949 version_type=freebsd-$objformat
8950 case $version_type in
8952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8957 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8961 shlibpath_var=LD_LIBRARY_PATH
8964 shlibpath_overrides_runpath=yes
8966 freebsd3.[01]* | freebsdelf3.[01]*)
8967 shlibpath_overrides_runpath=yes
8968 hardcode_into_libs=yes
8970 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8971 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8972 shlibpath_overrides_runpath=no
8973 hardcode_into_libs=yes
8975 *) # from 4.6 on, and DragonFly
8976 shlibpath_overrides_runpath=yes
8977 hardcode_into_libs=yes
8986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8987 soname_spec='${libname}${release}${shared_ext}$major'
8988 shlibpath_var=LD_LIBRARY_PATH
8989 hardcode_into_libs=yes
8992 hpux9* | hpux10* | hpux11*)
8993 # Give a soname corresponding to the major version so that dld.sl refuses to
8994 # link against other versions.
9001 hardcode_into_libs=yes
9002 dynamic_linker="$host_os dld.so"
9003 shlibpath_var=LD_LIBRARY_PATH
9004 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9006 soname_spec='${libname}${release}${shared_ext}$major'
9007 if test "X$HPUX_IA64_MODE" = X32; then
9008 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9010 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9012 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9016 hardcode_into_libs=yes
9017 dynamic_linker="$host_os dld.sl"
9018 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9019 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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'
9022 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9023 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9027 dynamic_linker="$host_os dld.sl"
9028 shlibpath_var=SHLIB_PATH
9029 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9031 soname_spec='${libname}${release}${shared_ext}$major'
9034 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9035 postinstall_cmds='chmod 555 $lib'
9042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9043 soname_spec='${libname}${release}${shared_ext}$major'
9044 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9045 shlibpath_var=LD_LIBRARY_PATH
9046 shlibpath_overrides_runpath=no
9047 hardcode_into_libs=yes
9050 irix5* | irix6* | nonstopux*)
9052 nonstopux*) version_type=nonstopux ;;
9054 if test "$lt_cv_prog_gnu_ld" = yes; then
9062 soname_spec='${libname}${release}${shared_ext}$major'
9063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9065 irix5* | nonstopux*)
9069 case $LD in # libtool.m4 will add one of these switches to LD
9070 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9071 libsuff= shlibsuff= libmagic=32-bit;;
9072 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9073 libsuff=32 shlibsuff=N32 libmagic=N32;;
9074 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9075 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9076 *) libsuff= shlibsuff= libmagic=never-match;;
9080 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9081 shlibpath_overrides_runpath=no
9082 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9083 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9084 hardcode_into_libs=yes
9087 # No shared lib support for Linux oldld, aout, or coff.
9088 linux*oldld* | linux*aout* | linux*coff*)
9092 # This must be Linux ELF.
9093 linux* | k*bsd*-gnu)
9097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9098 soname_spec='${libname}${release}${shared_ext}$major'
9099 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9100 shlibpath_var=LD_LIBRARY_PATH
9101 shlibpath_overrides_runpath=no
9102 # Some binutils ld are patched to set DT_RUNPATH
9103 save_LDFLAGS=$LDFLAGS
9105 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9106 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9107 cat >conftest.$ac_ext <<_ACEOF
9110 cat confdefs.h >>conftest.$ac_ext
9111 cat >>conftest.$ac_ext <<_ACEOF
9112 /* end confdefs.h. */
9122 rm -f conftest.$ac_objext conftest$ac_exeext
9123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9124 (eval $ac_link) 2>conftest.er1
9126 grep -v '^ *+' conftest.er1 >conftest.err
9128 cat conftest.err >&5
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); } &&
9131 { ac_try='test -z "$ac_c_werror_flag"
9132 || test ! -s conftest.err'
9133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); }; } &&
9138 { ac_try='test -s conftest$ac_exeext'
9139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); }; }; then
9144 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9145 shlibpath_overrides_runpath=yes
9149 echo "$as_me: failed program was:" >&5
9150 sed 's/^/| /' conftest.$ac_ext >&5
9153 rm -f conftest.err conftest.$ac_objext \
9154 conftest$ac_exeext conftest.$ac_ext
9155 LDFLAGS=$save_LDFLAGS
9158 # This implies no fast_install, which is unacceptable.
9159 # Some rework will be needed to allow for fast_install
9160 # before this can be enabled.
9161 hardcode_into_libs=yes
9163 # Append ld.so.conf contents to the search path
9164 if test -f /etc/ld.so.conf; then
9165 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' ' '`
9166 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9169 # We used to test for /lib/ld.so.1 and disable shared libraries on
9170 # powerpc, because MkLinux only supported shared libraries with the
9171 # GNU dynamic linker. Since this was broken with cross compilers,
9172 # most powerpc-linux boxes support dynamic linking these days and
9173 # people can always --disable-shared, the test was removed, and we
9174 # assume the GNU/Linux dynamic linker is in use.
9175 dynamic_linker='GNU/Linux ld.so'
9182 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9184 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9185 dynamic_linker='NetBSD (a.out) ld.so'
9187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9188 soname_spec='${libname}${release}${shared_ext}$major'
9189 dynamic_linker='NetBSD ld.elf_so'
9191 shlibpath_var=LD_LIBRARY_PATH
9192 shlibpath_overrides_runpath=yes
9193 hardcode_into_libs=yes
9198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9199 shlibpath_var=LD_LIBRARY_PATH
9200 shlibpath_overrides_runpath=yes
9207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9208 soname_spec='${libname}${release}${shared_ext}$major'
9209 shlibpath_var=LD_LIBRARY_PATH
9210 shlibpath_overrides_runpath=no
9211 hardcode_into_libs=yes
9212 dynamic_linker='ldqnx.so'
9217 sys_lib_dlsearch_path_spec="/usr/lib"
9219 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9221 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9222 *) need_version=no ;;
9224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9225 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9226 shlibpath_var=LD_LIBRARY_PATH
9227 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9229 openbsd2.[89] | openbsd2.[89].*)
9230 shlibpath_overrides_runpath=no
9233 shlibpath_overrides_runpath=yes
9237 shlibpath_overrides_runpath=yes
9242 libname_spec='$name'
9245 library_names_spec='$libname${shared_ext} $libname.a'
9246 dynamic_linker='OS/2 ld.exe'
9247 shlibpath_var=LIBPATH
9250 osf3* | osf4* | osf5*)
9254 soname_spec='${libname}${release}${shared_ext}$major'
9255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9256 shlibpath_var=LD_LIBRARY_PATH
9257 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9258 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9270 soname_spec='${libname}${release}${shared_ext}$major'
9271 shlibpath_var=LD_LIBRARY_PATH
9272 shlibpath_overrides_runpath=yes
9273 hardcode_into_libs=yes
9274 # ldd complains unless libraries are executable
9275 postinstall_cmds='chmod +x $lib'
9280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9281 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9282 shlibpath_var=LD_LIBRARY_PATH
9283 shlibpath_overrides_runpath=yes
9284 if test "$with_gnu_ld" = yes; then
9292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9293 soname_spec='${libname}${release}${shared_ext}$major'
9294 shlibpath_var=LD_LIBRARY_PATH
9295 case $host_vendor in
9297 shlibpath_overrides_runpath=no
9299 runpath_var=LD_RUN_PATH
9307 shlibpath_overrides_runpath=no
9308 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9314 if test -d /usr/nec ;then
9316 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9317 soname_spec='$libname${shared_ext}.$major'
9318 shlibpath_var=LD_LIBRARY_PATH
9322 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9323 version_type=freebsd-elf
9326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9327 soname_spec='${libname}${release}${shared_ext}$major'
9328 shlibpath_var=LD_LIBRARY_PATH
9329 shlibpath_overrides_runpath=yes
9330 hardcode_into_libs=yes
9331 if test "$with_gnu_ld" = yes; then
9332 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9334 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9337 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9341 sys_lib_dlsearch_path_spec='/usr/lib'
9345 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9349 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9350 shlibpath_var=LD_LIBRARY_PATH
9351 shlibpath_overrides_runpath=no
9352 hardcode_into_libs=yes
9357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9358 soname_spec='${libname}${release}${shared_ext}$major'
9359 shlibpath_var=LD_LIBRARY_PATH
9366 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9367 echo "${ECHO_T}$dynamic_linker" >&6
9368 test "$dynamic_linker" = no && can_build_shared=no
9370 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9371 if test "$GCC" = yes; then
9372 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9461 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9462 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9464 if test -n "$hardcode_libdir_flag_spec" ||
9465 test -n "$runpath_var" ||
9466 test "X$hardcode_automatic" = "Xyes" ; then
9468 # We can hardcode non-existent directories.
9469 if test "$hardcode_direct" != no &&
9470 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9471 # have to relink, otherwise we might link with an installed library
9472 # when we should be linking with a yet-to-be-installed one
9473 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9474 test "$hardcode_minus_L" != no; then
9475 # Linking always hardcodes the temporary library directory.
9476 hardcode_action=relink
9478 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9479 hardcode_action=immediate
9482 # We cannot hardcode anything, or else we can only hardcode existing
9484 hardcode_action=unsupported
9486 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9487 echo "${ECHO_T}$hardcode_action" >&6
9489 if test "$hardcode_action" = relink ||
9490 test "$inherit_rpath" = yes; then
9491 # Fast installation is not supported
9492 enable_fast_install=no
9493 elif test "$shlibpath_overrides_runpath" = yes ||
9494 test "$enable_shared" = no; then
9495 # Fast installation is not necessary
9496 enable_fast_install=needless
9504 if test "x$enable_dlopen" != xyes; then
9505 enable_dlopen=unknown
9506 enable_dlopen_self=unknown
9507 enable_dlopen_self_static=unknown
9514 lt_cv_dlopen="load_add_on"
9516 lt_cv_dlopen_self=yes
9520 lt_cv_dlopen="LoadLibrary"
9525 lt_cv_dlopen="dlopen"
9530 # if libdl is installed we need to link against it
9531 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9532 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9533 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9534 echo $ECHO_N "(cached) $ECHO_C" >&6
9536 ac_check_lib_save_LIBS=$LIBS
9538 cat >conftest.$ac_ext <<_ACEOF
9541 cat confdefs.h >>conftest.$ac_ext
9542 cat >>conftest.$ac_ext <<_ACEOF
9543 /* end confdefs.h. */
9545 /* Override any gcc2 internal prototype to avoid an error. */
9549 /* We use char because int might match the return type of a gcc2
9550 builtin and then its argument prototype would still apply. */
9560 rm -f conftest.$ac_objext conftest$ac_exeext
9561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9562 (eval $ac_link) 2>conftest.er1
9564 grep -v '^ *+' conftest.er1 >conftest.err
9566 cat conftest.err >&5
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); } &&
9569 { ac_try='test -z "$ac_c_werror_flag"
9570 || test ! -s conftest.err'
9571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); }; } &&
9576 { ac_try='test -s conftest$ac_exeext'
9577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); }; }; then
9582 ac_cv_lib_dl_dlopen=yes
9584 echo "$as_me: failed program was:" >&5
9585 sed 's/^/| /' conftest.$ac_ext >&5
9587 ac_cv_lib_dl_dlopen=no
9589 rm -f conftest.err conftest.$ac_objext \
9590 conftest$ac_exeext conftest.$ac_ext
9591 LIBS=$ac_check_lib_save_LIBS
9593 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9594 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9595 if test $ac_cv_lib_dl_dlopen = yes; then
9596 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9601 lt_cv_dlopen_self=yes
9608 echo "$as_me:$LINENO: checking for shl_load" >&5
9609 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9610 if test "${ac_cv_func_shl_load+set}" = set; then
9611 echo $ECHO_N "(cached) $ECHO_C" >&6
9613 cat >conftest.$ac_ext <<_ACEOF
9616 cat confdefs.h >>conftest.$ac_ext
9617 cat >>conftest.$ac_ext <<_ACEOF
9618 /* end confdefs.h. */
9619 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9621 #define shl_load innocuous_shl_load
9623 /* System header to define __stub macros and hopefully few prototypes,
9624 which can conflict with char shl_load (); below.
9625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9626 <limits.h> exists even on freestanding compilers. */
9629 # include <limits.h>
9631 # include <assert.h>
9636 /* Override any gcc2 internal prototype to avoid an error. */
9641 /* We use char because int might match the return type of a gcc2
9642 builtin and then its argument prototype would still apply. */
9644 /* The GNU C library defines this for functions which it implements
9645 to always fail with ENOSYS. Some functions are actually named
9646 something starting with __ and the normal name is an alias. */
9647 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9650 char (*f) () = shl_load;
9659 return f != shl_load;
9664 rm -f conftest.$ac_objext conftest$ac_exeext
9665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9666 (eval $ac_link) 2>conftest.er1
9668 grep -v '^ *+' conftest.er1 >conftest.err
9670 cat conftest.err >&5
9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672 (exit $ac_status); } &&
9673 { ac_try='test -z "$ac_c_werror_flag"
9674 || test ! -s conftest.err'
9675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); }; } &&
9680 { ac_try='test -s conftest$ac_exeext'
9681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); }; }; then
9686 ac_cv_func_shl_load=yes
9688 echo "$as_me: failed program was:" >&5
9689 sed 's/^/| /' conftest.$ac_ext >&5
9691 ac_cv_func_shl_load=no
9693 rm -f conftest.err conftest.$ac_objext \
9694 conftest$ac_exeext conftest.$ac_ext
9696 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9697 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9698 if test $ac_cv_func_shl_load = yes; then
9699 lt_cv_dlopen="shl_load"
9701 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9702 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9703 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9704 echo $ECHO_N "(cached) $ECHO_C" >&6
9706 ac_check_lib_save_LIBS=$LIBS
9708 cat >conftest.$ac_ext <<_ACEOF
9711 cat confdefs.h >>conftest.$ac_ext
9712 cat >>conftest.$ac_ext <<_ACEOF
9713 /* end confdefs.h. */
9715 /* Override any gcc2 internal prototype to avoid an error. */
9719 /* We use char because int might match the return type of a gcc2
9720 builtin and then its argument prototype would still apply. */
9730 rm -f conftest.$ac_objext conftest$ac_exeext
9731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9732 (eval $ac_link) 2>conftest.er1
9734 grep -v '^ *+' conftest.er1 >conftest.err
9736 cat conftest.err >&5
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); } &&
9739 { ac_try='test -z "$ac_c_werror_flag"
9740 || test ! -s conftest.err'
9741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); }; } &&
9746 { ac_try='test -s conftest$ac_exeext'
9747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); }; }; then
9752 ac_cv_lib_dld_shl_load=yes
9754 echo "$as_me: failed program was:" >&5
9755 sed 's/^/| /' conftest.$ac_ext >&5
9757 ac_cv_lib_dld_shl_load=no
9759 rm -f conftest.err conftest.$ac_objext \
9760 conftest$ac_exeext conftest.$ac_ext
9761 LIBS=$ac_check_lib_save_LIBS
9763 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9764 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9765 if test $ac_cv_lib_dld_shl_load = yes; then
9766 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9768 echo "$as_me:$LINENO: checking for dlopen" >&5
9769 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9770 if test "${ac_cv_func_dlopen+set}" = set; then
9771 echo $ECHO_N "(cached) $ECHO_C" >&6
9773 cat >conftest.$ac_ext <<_ACEOF
9776 cat confdefs.h >>conftest.$ac_ext
9777 cat >>conftest.$ac_ext <<_ACEOF
9778 /* end confdefs.h. */
9779 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9781 #define dlopen innocuous_dlopen
9783 /* System header to define __stub macros and hopefully few prototypes,
9784 which can conflict with char dlopen (); below.
9785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9786 <limits.h> exists even on freestanding compilers. */
9789 # include <limits.h>
9791 # include <assert.h>
9796 /* Override any gcc2 internal prototype to avoid an error. */
9801 /* We use char because int might match the return type of a gcc2
9802 builtin and then its argument prototype would still apply. */
9804 /* The GNU C library defines this for functions which it implements
9805 to always fail with ENOSYS. Some functions are actually named
9806 something starting with __ and the normal name is an alias. */
9807 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9810 char (*f) () = dlopen;
9824 rm -f conftest.$ac_objext conftest$ac_exeext
9825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9826 (eval $ac_link) 2>conftest.er1
9828 grep -v '^ *+' conftest.er1 >conftest.err
9830 cat conftest.err >&5
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); } &&
9833 { ac_try='test -z "$ac_c_werror_flag"
9834 || test ! -s conftest.err'
9835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); }; } &&
9840 { ac_try='test -s conftest$ac_exeext'
9841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); }; }; then
9846 ac_cv_func_dlopen=yes
9848 echo "$as_me: failed program was:" >&5
9849 sed 's/^/| /' conftest.$ac_ext >&5
9851 ac_cv_func_dlopen=no
9853 rm -f conftest.err conftest.$ac_objext \
9854 conftest$ac_exeext conftest.$ac_ext
9856 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9857 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9858 if test $ac_cv_func_dlopen = yes; then
9859 lt_cv_dlopen="dlopen"
9861 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9862 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9863 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9864 echo $ECHO_N "(cached) $ECHO_C" >&6
9866 ac_check_lib_save_LIBS=$LIBS
9868 cat >conftest.$ac_ext <<_ACEOF
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h. */
9875 /* Override any gcc2 internal prototype to avoid an error. */
9879 /* We use char because int might match the return type of a gcc2
9880 builtin and then its argument prototype would still apply. */
9890 rm -f conftest.$ac_objext conftest$ac_exeext
9891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9892 (eval $ac_link) 2>conftest.er1
9894 grep -v '^ *+' conftest.er1 >conftest.err
9896 cat conftest.err >&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); } &&
9899 { ac_try='test -z "$ac_c_werror_flag"
9900 || test ! -s conftest.err'
9901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); }; } &&
9906 { ac_try='test -s conftest$ac_exeext'
9907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); }; }; then
9912 ac_cv_lib_dl_dlopen=yes
9914 echo "$as_me: failed program was:" >&5
9915 sed 's/^/| /' conftest.$ac_ext >&5
9917 ac_cv_lib_dl_dlopen=no
9919 rm -f conftest.err conftest.$ac_objext \
9920 conftest$ac_exeext conftest.$ac_ext
9921 LIBS=$ac_check_lib_save_LIBS
9923 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9924 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9925 if test $ac_cv_lib_dl_dlopen = yes; then
9926 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9928 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9929 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9930 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9931 echo $ECHO_N "(cached) $ECHO_C" >&6
9933 ac_check_lib_save_LIBS=$LIBS
9935 cat >conftest.$ac_ext <<_ACEOF
9938 cat confdefs.h >>conftest.$ac_ext
9939 cat >>conftest.$ac_ext <<_ACEOF
9940 /* end confdefs.h. */
9942 /* Override any gcc2 internal prototype to avoid an error. */
9946 /* We use char because int might match the return type of a gcc2
9947 builtin and then its argument prototype would still apply. */
9957 rm -f conftest.$ac_objext conftest$ac_exeext
9958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9959 (eval $ac_link) 2>conftest.er1
9961 grep -v '^ *+' conftest.er1 >conftest.err
9963 cat conftest.err >&5
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); } &&
9966 { ac_try='test -z "$ac_c_werror_flag"
9967 || test ! -s conftest.err'
9968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); }; } &&
9973 { ac_try='test -s conftest$ac_exeext'
9974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); }; }; then
9979 ac_cv_lib_svld_dlopen=yes
9981 echo "$as_me: failed program was:" >&5
9982 sed 's/^/| /' conftest.$ac_ext >&5
9984 ac_cv_lib_svld_dlopen=no
9986 rm -f conftest.err conftest.$ac_objext \
9987 conftest$ac_exeext conftest.$ac_ext
9988 LIBS=$ac_check_lib_save_LIBS
9990 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9991 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9992 if test $ac_cv_lib_svld_dlopen = yes; then
9993 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9995 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9996 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9997 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9998 echo $ECHO_N "(cached) $ECHO_C" >&6
10000 ac_check_lib_save_LIBS=$LIBS
10002 cat >conftest.$ac_ext <<_ACEOF
10005 cat confdefs.h >>conftest.$ac_ext
10006 cat >>conftest.$ac_ext <<_ACEOF
10007 /* end confdefs.h. */
10009 /* Override any gcc2 internal prototype to avoid an error. */
10013 /* We use char because int might match the return type of a gcc2
10014 builtin and then its argument prototype would still apply. */
10024 rm -f conftest.$ac_objext conftest$ac_exeext
10025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10026 (eval $ac_link) 2>conftest.er1
10028 grep -v '^ *+' conftest.er1 >conftest.err
10030 cat conftest.err >&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); } &&
10033 { ac_try='test -z "$ac_c_werror_flag"
10034 || test ! -s conftest.err'
10035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10036 (eval $ac_try) 2>&5
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); }; } &&
10040 { ac_try='test -s conftest$ac_exeext'
10041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10042 (eval $ac_try) 2>&5
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); }; }; then
10046 ac_cv_lib_dld_dld_link=yes
10048 echo "$as_me: failed program was:" >&5
10049 sed 's/^/| /' conftest.$ac_ext >&5
10051 ac_cv_lib_dld_dld_link=no
10053 rm -f conftest.err conftest.$ac_objext \
10054 conftest$ac_exeext conftest.$ac_ext
10055 LIBS=$ac_check_lib_save_LIBS
10057 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10058 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10059 if test $ac_cv_lib_dld_dld_link = yes; then
10060 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10081 if test "x$lt_cv_dlopen" != xno; then
10087 case $lt_cv_dlopen in
10089 save_CPPFLAGS="$CPPFLAGS"
10090 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10092 save_LDFLAGS="$LDFLAGS"
10093 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10096 LIBS="$lt_cv_dlopen_libs $LIBS"
10098 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10099 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10100 if test "${lt_cv_dlopen_self+set}" = set; then
10101 echo $ECHO_N "(cached) $ECHO_C" >&6
10103 if test "$cross_compiling" = yes; then :
10104 lt_cv_dlopen_self=cross
10106 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10107 lt_status=$lt_dlunknown
10108 cat > conftest.$ac_ext <<_LT_EOF
10109 #line 10109 "configure"
10110 #include "confdefs.h"
10119 # define LT_DLGLOBAL RTLD_GLOBAL
10122 # define LT_DLGLOBAL DL_GLOBAL
10124 # define LT_DLGLOBAL 0
10128 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10129 find out it does not work in some platform. */
10130 #ifndef LT_DLLAZY_OR_NOW
10132 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10135 # define LT_DLLAZY_OR_NOW DL_LAZY
10138 # define LT_DLLAZY_OR_NOW RTLD_NOW
10141 # define LT_DLLAZY_OR_NOW DL_NOW
10143 # define LT_DLLAZY_OR_NOW 0
10151 extern "C" void exit (int);
10154 void fnord() { int i=42;}
10157 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10158 int status = $lt_dlunknown;
10162 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10163 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10164 /* dlclose (self); */
10172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10173 (eval $ac_link) 2>&5
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10177 (./conftest; exit; ) >&5 2>/dev/null
10179 case x$lt_status in
10180 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10181 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10182 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10185 # compilation failed
10186 lt_cv_dlopen_self=no
10193 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10194 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10196 if test "x$lt_cv_dlopen_self" = xyes; then
10197 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10198 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10199 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10200 if test "${lt_cv_dlopen_self_static+set}" = set; then
10201 echo $ECHO_N "(cached) $ECHO_C" >&6
10203 if test "$cross_compiling" = yes; then :
10204 lt_cv_dlopen_self_static=cross
10206 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10207 lt_status=$lt_dlunknown
10208 cat > conftest.$ac_ext <<_LT_EOF
10209 #line 10209 "configure"
10210 #include "confdefs.h"
10219 # define LT_DLGLOBAL RTLD_GLOBAL
10222 # define LT_DLGLOBAL DL_GLOBAL
10224 # define LT_DLGLOBAL 0
10228 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10229 find out it does not work in some platform. */
10230 #ifndef LT_DLLAZY_OR_NOW
10232 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10235 # define LT_DLLAZY_OR_NOW DL_LAZY
10238 # define LT_DLLAZY_OR_NOW RTLD_NOW
10241 # define LT_DLLAZY_OR_NOW DL_NOW
10243 # define LT_DLLAZY_OR_NOW 0
10251 extern "C" void exit (int);
10254 void fnord() { int i=42;}
10257 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10258 int status = $lt_dlunknown;
10262 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10263 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10264 /* dlclose (self); */
10272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10273 (eval $ac_link) 2>&5
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10277 (./conftest; exit; ) >&5 2>/dev/null
10279 case x$lt_status in
10280 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10281 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10282 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10285 # compilation failed
10286 lt_cv_dlopen_self_static=no
10293 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10294 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10297 CPPFLAGS="$save_CPPFLAGS"
10298 LDFLAGS="$save_LDFLAGS"
10303 case $lt_cv_dlopen_self in
10304 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10305 *) enable_dlopen_self=unknown ;;
10308 case $lt_cv_dlopen_self_static in
10309 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10310 *) enable_dlopen_self_static=unknown ;;
10332 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10333 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10334 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10335 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10336 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10337 echo "$as_me:$LINENO: result: yes" >&5
10338 echo "${ECHO_T}yes" >&6
10340 # FIXME - insert some real tests, host_os isn't really good enough
10343 if test -n "$STRIP" ; then
10344 striplib="$STRIP -x"
10345 old_striplib="$STRIP -S"
10346 echo "$as_me:$LINENO: result: yes" >&5
10347 echo "${ECHO_T}yes" >&6
10349 echo "$as_me:$LINENO: result: no" >&5
10350 echo "${ECHO_T}no" >&6
10354 echo "$as_me:$LINENO: result: no" >&5
10355 echo "${ECHO_T}no" >&6
10371 # Report which library types will actually be built
10372 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10373 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10374 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10375 echo "${ECHO_T}$can_build_shared" >&6
10377 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10378 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10379 test "$can_build_shared" = "no" && enable_shared=no
10381 # On AIX, shared libraries and static libraries use the same namespace, and
10382 # are all built from PIC.
10385 test "$enable_shared" = yes && enable_static=no
10386 if test -n "$RANLIB"; then
10387 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10388 postinstall_cmds='$RANLIB $lib'
10393 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10394 test "$enable_shared" = yes && enable_static=no
10398 echo "$as_me:$LINENO: result: $enable_shared" >&5
10399 echo "${ECHO_T}$enable_shared" >&6
10401 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10402 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10403 # Make sure either enable_shared or enable_static is yes.
10404 test "$enable_shared" = yes || enable_static=yes
10405 echo "$as_me:$LINENO: result: $enable_static" >&5
10406 echo "${ECHO_T}$enable_static" >&6
10413 ac_cpp='$CPP $CPPFLAGS'
10414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10432 ac_config_commands="$ac_config_commands libtool"
10437 # Only expand once:
10441 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
10442 if test "${enable_64_bit_bfd+set}" = set; then
10443 enableval="$enable_64_bit_bfd"
10444 case "${enableval}" in
10445 yes) want64=true ;;
10446 no) want64=false ;;
10447 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
10448 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
10449 { (exit 1); exit 1; }; } ;;
10454 # Check whether --enable-targets or --disable-targets was given.
10455 if test "${enable_targets+set}" = set; then
10456 enableval="$enable_targets"
10457 case "${enableval}" in
10458 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10459 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10460 { (exit 1); exit 1; }; }
10462 no) enable_targets= ;;
10463 *) enable_targets=$enableval ;;
10466 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10467 if test "${enable_commonbfdlib+set}" = set; then
10468 enableval="$enable_commonbfdlib"
10469 case "${enableval}" in
10470 yes) commonbfdlib=true ;;
10471 no) commonbfdlib=false ;;
10472 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
10473 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10474 { (exit 1); exit 1; }; } ;;
10478 # Check whether --with-mmap or --without-mmap was given.
10479 if test "${with_mmap+set}" = set; then
10480 withval="$with_mmap"
10481 case "${withval}" in
10482 yes) want_mmap=true ;;
10483 no) want_mmap=false ;;
10484 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
10485 echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
10486 { (exit 1); exit 1; }; } ;;
10491 # Check whether --enable-secureplt or --disable-secureplt was given.
10492 if test "${enable_secureplt+set}" = set; then
10493 enableval="$enable_secureplt"
10494 case "${enableval}" in
10495 yes) use_secureplt=true ;;
10496 no) use_secureplt=false ;;
10497 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
10498 echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
10499 { (exit 1); exit 1; }; } ;;
10502 use_secureplt=false
10503 fi; if test $use_secureplt = true; then
10505 cat >>confdefs.h <<\_ACEOF
10506 #define USE_SECUREPLT 1
10511 DEBUGDIR=${libdir}/debug
10513 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
10514 if test "${with_separate_debug_dir+set}" = set; then
10515 withval="$with_separate_debug_dir"
10516 DEBUGDIR="${withval}"
10520 # Check to see if we should allow the generation of
10521 # symbols with the ELF standard's STT_COMMON type.
10522 # Check whether --enable-elf-stt-common or --disable-elf-stt-common was given.
10523 if test "${enable_elf_stt_common+set}" = set; then
10524 enableval="$enable_elf_stt_common"
10525 case "${enableval}" in
10526 yes) want_elf_stt_common=true ;;
10527 no) want_elf_stt_common=false ;;
10528 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for ELF STT_COMMON option" >&5
10529 echo "$as_me: error: bad value ${enableval} for ELF STT_COMMON option" >&2;}
10530 { (exit 1); exit 1; }; } ;;
10533 # We have to choose a default behaviour. For native builds we could
10534 # test whether the loader supports the STT_COMMON type. For cross
10535 # toolchains we default to assuming that they are not supported.
10536 if test "$cross_compiling" != yes; then
10537 want_elf_stt_common=false
10539 # XXX FIXME: Add code to test the loader here.
10540 want_elf_stt_common=false
10542 fi; if test $want_elf_stt_common = true; then
10544 cat >>confdefs.h <<\_ACEOF
10545 #define USE_STT_COMMON 1
10553 # Check whether --with-pkgversion or --without-pkgversion was given.
10554 if test "${with_pkgversion+set}" = set; then
10555 withval="$with_pkgversion"
10557 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
10558 echo "$as_me: error: package version not specified" >&2;}
10559 { (exit 1); exit 1; }; } ;;
10561 *) PKGVERSION="($withval) " ;;
10564 PKGVERSION="(GNU Binutils) "
10571 # Check whether --with-bugurl or --without-bugurl was given.
10572 if test "${with_bugurl+set}" = set; then
10573 withval="$with_bugurl"
10575 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
10576 echo "$as_me: error: bug URL not specified" >&2;}
10577 { (exit 1); exit 1; }; } ;;
10580 *) BUGURL="$withval"
10584 BUGURL="http://www.sourceware.org/bugzilla/"
10593 REPORT_BUGS_TO="<$BUGURL>"
10594 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
10602 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10604 # Check whether --enable-werror or --disable-werror was given.
10605 if test "${enable_werror+set}" = set; then
10606 enableval="$enable_werror"
10607 case "${enableval}" in
10608 yes | y) ERROR_ON_WARNING="yes" ;;
10609 no | n) ERROR_ON_WARNING="no" ;;
10610 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10611 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10612 { (exit 1); exit 1; }; } ;;
10616 # Enable -Werror by default when using gcc
10617 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10618 ERROR_ON_WARNING=yes
10622 if test "${ERROR_ON_WARNING}" = yes ; then
10623 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10624 NO_WERROR="-Wno-error"
10627 if test "${GCC}" = yes ; then
10628 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10631 # Check whether --enable-build-warnings or --disable-build-warnings was given.
10632 if test "${enable_build_warnings+set}" = set; then
10633 enableval="$enable_build_warnings"
10634 case "${enableval}" in
10635 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10636 no) if test "${GCC}" = yes ; then
10639 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10640 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10641 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10642 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10643 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10647 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10648 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
10655 ac_config_headers="$ac_config_headers config.h:config.in"
10658 if test -z "$target" ; then
10659 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
10660 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
10661 { (exit 1); exit 1; }; }
10664 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10665 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10666 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10667 if test "${enable_maintainer_mode+set}" = set; then
10668 enableval="$enable_maintainer_mode"
10669 USE_MAINTAINER_MODE=$enableval
10671 USE_MAINTAINER_MODE=no
10673 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10674 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
10677 if test $USE_MAINTAINER_MODE = yes; then
10678 MAINTAINER_MODE_TRUE=
10679 MAINTAINER_MODE_FALSE='#'
10681 MAINTAINER_MODE_TRUE='#'
10682 MAINTAINER_MODE_FALSE=
10685 MAINT=$MAINTAINER_MODE_TRUE
10691 GENINSRC_NEVER_TRUE=
10692 GENINSRC_NEVER_FALSE='#'
10694 GENINSRC_NEVER_TRUE='#'
10695 GENINSRC_NEVER_FALSE=
10698 case ${build_alias} in
10699 "") build_noncanonical=${build} ;;
10700 *) build_noncanonical=${build_alias} ;;
10703 case ${host_alias} in
10704 "") host_noncanonical=${build_noncanonical} ;;
10705 *) host_noncanonical=${host_alias} ;;
10708 case ${target_alias} in
10709 "") target_noncanonical=${host_noncanonical} ;;
10710 *) target_noncanonical=${target_alias} ;;
10713 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
10714 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
10715 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
10716 if test "${enable_install_libbfd+set}" = set; then
10717 enableval="$enable_install_libbfd"
10718 install_libbfd_p=$enableval
10720 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
10721 install_libbfd_p=yes
10723 install_libbfd_p=no
10726 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
10727 echo "${ECHO_T}$install_libbfd_p" >&6
10730 if test $install_libbfd_p = yes; then
10731 INSTALL_LIBBFD_TRUE=
10732 INSTALL_LIBBFD_FALSE='#'
10734 INSTALL_LIBBFD_TRUE='#'
10735 INSTALL_LIBBFD_FALSE=
10738 # Need _noncanonical variables for this.
10743 # libbfd.a is a host library containing target dependent code
10744 bfdlibdir='$(libdir)'
10745 bfdincludedir='$(includedir)'
10746 if test "${host}" != "${target}"; then
10747 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
10748 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
10758 bfd_default_target_size=32
10762 ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi"
10763 # If we haven't got the data from the intl directory,
10764 # assume NLS is disabled.
10773 if test -f ../intl/config.intl; then
10774 . ../intl/config.intl
10776 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10777 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10778 if test x"$USE_NLS" != xyes; then
10779 echo "$as_me:$LINENO: result: no" >&5
10780 echo "${ECHO_T}no" >&6
10782 echo "$as_me:$LINENO: result: yes" >&5
10783 echo "${ECHO_T}yes" >&6
10785 cat >>confdefs.h <<\_ACEOF
10786 #define ENABLE_NLS 1
10790 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10791 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10792 # Look for .po and .gmo files in the source directory.
10795 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10796 # If there aren't any .gmo files the shell will give us the
10797 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10799 case "$cat" in *\**)
10802 # The quadruple backslash is collapsed to a double backslash
10803 # by the backticks, then collapsed again by the double quotes,
10804 # leaving us with one backslash in the sed expression (right
10805 # before the dot that mustn't act as a wildcard).
10806 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10807 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10808 # The user is allowed to set LINGUAS to a list of languages to
10809 # install catalogs for. If it's empty that means "all of them."
10810 if test "x$LINGUAS" = x; then
10811 CATALOGS="$CATALOGS $cat"
10812 XLINGUAS="$XLINGUAS $lang"
10814 case "$LINGUAS" in *$lang*)
10815 CATALOGS="$CATALOGS $cat"
10816 XLINGUAS="$XLINGUAS $lang"
10821 LINGUAS="$XLINGUAS"
10822 echo "$as_me:$LINENO: result: $LINGUAS" >&5
10823 echo "${ECHO_T}$LINGUAS" >&6
10837 if test -n "$ac_aux_dir"; then
10838 case "$ac_aux_dir" in
10839 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10840 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10843 if test -z "$MKINSTALLDIRS"; then
10844 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10849 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10850 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10851 # Check whether --enable-nls or --disable-nls was given.
10852 if test "${enable_nls+set}" = set; then
10853 enableval="$enable_nls"
10858 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10859 echo "${ECHO_T}$USE_NLS" >&6
10866 # Prepare PATH_SEPARATOR.
10867 # The user is always right.
10868 if test "${PATH_SEPARATOR+set}" != set; then
10869 echo "#! /bin/sh" >conf$$.sh
10870 echo "exit 0" >>conf$$.sh
10872 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10880 # Find out how to test for executable files. Don't use a zero-byte file,
10881 # as systems may use methods other than mode bits to determine executability.
10882 cat >conf$$.file <<_ASEOF
10886 chmod +x conf$$.file
10887 if test -x conf$$.file >/dev/null 2>&1; then
10888 ac_executable_p="test -x"
10890 ac_executable_p="test -f"
10894 # Extract the first word of "msgfmt", so it can be a program name with args.
10895 set dummy msgfmt; ac_word=$2
10896 echo "$as_me:$LINENO: checking for $ac_word" >&5
10897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10898 if test "${ac_cv_path_MSGFMT+set}" = set; then
10899 echo $ECHO_N "(cached) $ECHO_C" >&6
10903 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10906 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10907 for ac_dir in $PATH; do
10909 test -z "$ac_dir" && ac_dir=.
10910 for ac_exec_ext in '' $ac_executable_extensions; do
10911 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10912 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10913 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10914 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10921 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10925 MSGFMT="$ac_cv_path_MSGFMT"
10926 if test "$MSGFMT" != ":"; then
10927 echo "$as_me:$LINENO: result: $MSGFMT" >&5
10928 echo "${ECHO_T}$MSGFMT" >&6
10930 echo "$as_me:$LINENO: result: no" >&5
10931 echo "${ECHO_T}no" >&6
10934 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10935 set dummy gmsgfmt; ac_word=$2
10936 echo "$as_me:$LINENO: checking for $ac_word" >&5
10937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10938 if test "${ac_cv_path_GMSGFMT+set}" = set; then
10939 echo $ECHO_N "(cached) $ECHO_C" >&6
10943 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10947 for as_dir in $PATH
10950 test -z "$as_dir" && as_dir=.
10951 for ac_exec_ext in '' $ac_executable_extensions; do
10952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10953 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10960 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10964 GMSGFMT=$ac_cv_path_GMSGFMT
10966 if test -n "$GMSGFMT"; then
10967 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10968 echo "${ECHO_T}$GMSGFMT" >&6
10970 echo "$as_me:$LINENO: result: no" >&5
10971 echo "${ECHO_T}no" >&6
10976 # Prepare PATH_SEPARATOR.
10977 # The user is always right.
10978 if test "${PATH_SEPARATOR+set}" != set; then
10979 echo "#! /bin/sh" >conf$$.sh
10980 echo "exit 0" >>conf$$.sh
10982 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10990 # Find out how to test for executable files. Don't use a zero-byte file,
10991 # as systems may use methods other than mode bits to determine executability.
10992 cat >conf$$.file <<_ASEOF
10996 chmod +x conf$$.file
10997 if test -x conf$$.file >/dev/null 2>&1; then
10998 ac_executable_p="test -x"
11000 ac_executable_p="test -f"
11004 # Extract the first word of "xgettext", so it can be a program name with args.
11005 set dummy xgettext; ac_word=$2
11006 echo "$as_me:$LINENO: checking for $ac_word" >&5
11007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11008 if test "${ac_cv_path_XGETTEXT+set}" = set; then
11009 echo $ECHO_N "(cached) $ECHO_C" >&6
11011 case "$XGETTEXT" in
11013 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11016 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11017 for ac_dir in $PATH; do
11019 test -z "$ac_dir" && ac_dir=.
11020 for ac_exec_ext in '' $ac_executable_extensions; do
11021 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11022 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11023 (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
11024 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11031 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11035 XGETTEXT="$ac_cv_path_XGETTEXT"
11036 if test "$XGETTEXT" != ":"; then
11037 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11038 echo "${ECHO_T}$XGETTEXT" >&6
11040 echo "$as_me:$LINENO: result: no" >&5
11041 echo "${ECHO_T}no" >&6
11047 # Prepare PATH_SEPARATOR.
11048 # The user is always right.
11049 if test "${PATH_SEPARATOR+set}" != set; then
11050 echo "#! /bin/sh" >conf$$.sh
11051 echo "exit 0" >>conf$$.sh
11053 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11061 # Find out how to test for executable files. Don't use a zero-byte file,
11062 # as systems may use methods other than mode bits to determine executability.
11063 cat >conf$$.file <<_ASEOF
11067 chmod +x conf$$.file
11068 if test -x conf$$.file >/dev/null 2>&1; then
11069 ac_executable_p="test -x"
11071 ac_executable_p="test -f"
11075 # Extract the first word of "msgmerge", so it can be a program name with args.
11076 set dummy msgmerge; ac_word=$2
11077 echo "$as_me:$LINENO: checking for $ac_word" >&5
11078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11079 if test "${ac_cv_path_MSGMERGE+set}" = set; then
11080 echo $ECHO_N "(cached) $ECHO_C" >&6
11082 case "$MSGMERGE" in
11084 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11087 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11088 for ac_dir in $PATH; do
11090 test -z "$ac_dir" && ac_dir=.
11091 for ac_exec_ext in '' $ac_executable_extensions; do
11092 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11093 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11094 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11101 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11105 MSGMERGE="$ac_cv_path_MSGMERGE"
11106 if test "$MSGMERGE" != ":"; then
11107 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11108 echo "${ECHO_T}$MSGMERGE" >&6
11110 echo "$as_me:$LINENO: result: no" >&5
11111 echo "${ECHO_T}no" >&6
11115 if test "$GMSGFMT" != ":"; then
11116 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11117 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11120 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11121 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11122 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11127 if test "$XGETTEXT" != ":"; then
11128 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11129 (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
11132 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11133 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11139 ac_config_commands="$ac_config_commands default-1"
11143 # Permit host specific settings.
11144 . ${srcdir}/configure.host
11147 # Find a good install program. We prefer a C program (faster),
11148 # so one script is as good as another. But avoid the broken or
11149 # incompatible versions:
11150 # SysV /etc/install, /usr/sbin/install
11151 # SunOS /usr/etc/install
11152 # IRIX /sbin/install
11154 # AmigaOS /C/install, which installs bootblocks on floppy discs
11155 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11156 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11157 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11158 # OS/2's system install, which has a completely different semantic
11159 # ./install, which can be erroneously created by make from ./install.sh.
11160 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11161 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11162 if test -z "$INSTALL"; then
11163 if test "${ac_cv_path_install+set}" = set; then
11164 echo $ECHO_N "(cached) $ECHO_C" >&6
11166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11167 for as_dir in $PATH
11170 test -z "$as_dir" && as_dir=.
11171 # Account for people who put trailing slashes in PATH elements.
11173 ./ | .// | /cC/* | \
11174 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11175 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11178 # OSF1 and SCO ODT 3.0 have their own names for install.
11179 # Don't use installbsd from OSF since it installs stuff as root
11181 for ac_prog in ginstall scoinst install; do
11182 for ac_exec_ext in '' $ac_executable_extensions; do
11183 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11184 if test $ac_prog = install &&
11185 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11186 # AIX install. It has an incompatible calling convention.
11188 elif test $ac_prog = install &&
11189 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11190 # program-specific install script used by HP pwplus--don't use.
11193 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11205 if test "${ac_cv_path_install+set}" = set; then
11206 INSTALL=$ac_cv_path_install
11208 # As a last resort, use the slow shell script. We don't cache a
11209 # path for INSTALL within a source directory, because that will
11210 # break other packages using the cache if that directory is
11211 # removed, or if the path is relative.
11212 INSTALL=$ac_install_sh
11215 echo "$as_me:$LINENO: result: $INSTALL" >&5
11216 echo "${ECHO_T}$INSTALL" >&6
11218 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11219 # It thinks the first close brace ends the variable substitution.
11220 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11222 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11224 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11227 BFD_HOST_64BIT_LONG=0
11228 BFD_HOST_64BIT_LONG_LONG=0
11229 BFD_HOST_64_BIT_DEFINED=0
11232 BFD_HOSTPTR_T="unsigned long"
11234 echo "$as_me:$LINENO: checking for long long" >&5
11235 echo $ECHO_N "checking for long long... $ECHO_C" >&6
11236 if test "${ac_cv_type_long_long+set}" = set; then
11237 echo $ECHO_N "(cached) $ECHO_C" >&6
11239 cat >conftest.$ac_ext <<_ACEOF
11242 cat confdefs.h >>conftest.$ac_ext
11243 cat >>conftest.$ac_ext <<_ACEOF
11244 /* end confdefs.h. */
11245 $ac_includes_default
11249 if ((long long *) 0)
11251 if (sizeof (long long))
11257 rm -f conftest.$ac_objext
11258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11259 (eval $ac_compile) 2>conftest.er1
11261 grep -v '^ *+' conftest.er1 >conftest.err
11263 cat conftest.err >&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } &&
11266 { ac_try='test -z "$ac_c_werror_flag"
11267 || test ! -s conftest.err'
11268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11269 (eval $ac_try) 2>&5
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); }; } &&
11273 { ac_try='test -s conftest.$ac_objext'
11274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11275 (eval $ac_try) 2>&5
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); }; }; then
11279 ac_cv_type_long_long=yes
11281 echo "$as_me: failed program was:" >&5
11282 sed 's/^/| /' conftest.$ac_ext >&5
11284 ac_cv_type_long_long=no
11286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11288 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11289 echo "${ECHO_T}$ac_cv_type_long_long" >&6
11291 echo "$as_me:$LINENO: checking size of long long" >&5
11292 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
11293 if test "${ac_cv_sizeof_long_long+set}" = set; then
11294 echo $ECHO_N "(cached) $ECHO_C" >&6
11296 if test "$ac_cv_type_long_long" = yes; then
11297 # The cast to unsigned long works around a bug in the HP C Compiler
11298 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11299 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11300 # This bug is HP SR number 8606223364.
11301 if test "$cross_compiling" = yes; then
11302 # Depending upon the size, compute the lo and hi bounds.
11303 cat >conftest.$ac_ext <<_ACEOF
11306 cat confdefs.h >>conftest.$ac_ext
11307 cat >>conftest.$ac_ext <<_ACEOF
11308 /* end confdefs.h. */
11309 $ac_includes_default
11313 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
11320 rm -f conftest.$ac_objext
11321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11322 (eval $ac_compile) 2>conftest.er1
11324 grep -v '^ *+' conftest.er1 >conftest.err
11326 cat conftest.err >&5
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); } &&
11329 { ac_try='test -z "$ac_c_werror_flag"
11330 || test ! -s conftest.err'
11331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11332 (eval $ac_try) 2>&5
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); }; } &&
11336 { ac_try='test -s conftest.$ac_objext'
11337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11338 (eval $ac_try) 2>&5
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); }; }; then
11344 cat >conftest.$ac_ext <<_ACEOF
11347 cat confdefs.h >>conftest.$ac_ext
11348 cat >>conftest.$ac_ext <<_ACEOF
11349 /* end confdefs.h. */
11350 $ac_includes_default
11354 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11361 rm -f conftest.$ac_objext
11362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11363 (eval $ac_compile) 2>conftest.er1
11365 grep -v '^ *+' conftest.er1 >conftest.err
11367 cat conftest.err >&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); } &&
11370 { ac_try='test -z "$ac_c_werror_flag"
11371 || test ! -s conftest.err'
11372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11373 (eval $ac_try) 2>&5
11375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376 (exit $ac_status); }; } &&
11377 { ac_try='test -s conftest.$ac_objext'
11378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11379 (eval $ac_try) 2>&5
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); }; }; then
11383 ac_hi=$ac_mid; break
11385 echo "$as_me: failed program was:" >&5
11386 sed 's/^/| /' conftest.$ac_ext >&5
11388 ac_lo=`expr $ac_mid + 1`
11389 if test $ac_lo -le $ac_mid; then
11393 ac_mid=`expr 2 '*' $ac_mid + 1`
11395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11398 echo "$as_me: failed program was:" >&5
11399 sed 's/^/| /' conftest.$ac_ext >&5
11401 cat >conftest.$ac_ext <<_ACEOF
11404 cat confdefs.h >>conftest.$ac_ext
11405 cat >>conftest.$ac_ext <<_ACEOF
11406 /* end confdefs.h. */
11407 $ac_includes_default
11411 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
11418 rm -f conftest.$ac_objext
11419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11420 (eval $ac_compile) 2>conftest.er1
11422 grep -v '^ *+' conftest.er1 >conftest.err
11424 cat conftest.err >&5
11425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426 (exit $ac_status); } &&
11427 { ac_try='test -z "$ac_c_werror_flag"
11428 || test ! -s conftest.err'
11429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11430 (eval $ac_try) 2>&5
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); }; } &&
11434 { ac_try='test -s conftest.$ac_objext'
11435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11436 (eval $ac_try) 2>&5
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); }; }; then
11442 cat >conftest.$ac_ext <<_ACEOF
11445 cat confdefs.h >>conftest.$ac_ext
11446 cat >>conftest.$ac_ext <<_ACEOF
11447 /* end confdefs.h. */
11448 $ac_includes_default
11452 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
11459 rm -f conftest.$ac_objext
11460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11461 (eval $ac_compile) 2>conftest.er1
11463 grep -v '^ *+' conftest.er1 >conftest.err
11465 cat conftest.err >&5
11466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467 (exit $ac_status); } &&
11468 { ac_try='test -z "$ac_c_werror_flag"
11469 || test ! -s conftest.err'
11470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11471 (eval $ac_try) 2>&5
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); }; } &&
11475 { ac_try='test -s conftest.$ac_objext'
11476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11477 (eval $ac_try) 2>&5
11479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); }; }; then
11481 ac_lo=$ac_mid; break
11483 echo "$as_me: failed program was:" >&5
11484 sed 's/^/| /' conftest.$ac_ext >&5
11486 ac_hi=`expr '(' $ac_mid ')' - 1`
11487 if test $ac_mid -le $ac_hi; then
11491 ac_mid=`expr 2 '*' $ac_mid`
11493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11496 echo "$as_me: failed program was:" >&5
11497 sed 's/^/| /' conftest.$ac_ext >&5
11501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11504 # Binary search between lo and hi bounds.
11505 while test "x$ac_lo" != "x$ac_hi"; do
11506 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11507 cat >conftest.$ac_ext <<_ACEOF
11510 cat confdefs.h >>conftest.$ac_ext
11511 cat >>conftest.$ac_ext <<_ACEOF
11512 /* end confdefs.h. */
11513 $ac_includes_default
11517 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11524 rm -f conftest.$ac_objext
11525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11526 (eval $ac_compile) 2>conftest.er1
11528 grep -v '^ *+' conftest.er1 >conftest.err
11530 cat conftest.err >&5
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); } &&
11533 { ac_try='test -z "$ac_c_werror_flag"
11534 || test ! -s conftest.err'
11535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11536 (eval $ac_try) 2>&5
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); }; } &&
11540 { ac_try='test -s conftest.$ac_objext'
11541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11542 (eval $ac_try) 2>&5
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); }; }; then
11548 echo "$as_me: failed program was:" >&5
11549 sed 's/^/| /' conftest.$ac_ext >&5
11551 ac_lo=`expr '(' $ac_mid ')' + 1`
11553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11556 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11557 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
11558 See \`config.log' for more details." >&5
11559 echo "$as_me: error: cannot compute sizeof (long long), 77
11560 See \`config.log' for more details." >&2;}
11561 { (exit 1); exit 1; }; } ;;
11564 if test "$cross_compiling" = yes; then
11565 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11566 See \`config.log' for more details." >&5
11567 echo "$as_me: error: cannot run test program while cross compiling
11568 See \`config.log' for more details." >&2;}
11569 { (exit 1); exit 1; }; }
11571 cat >conftest.$ac_ext <<_ACEOF
11574 cat confdefs.h >>conftest.$ac_ext
11575 cat >>conftest.$ac_ext <<_ACEOF
11576 /* end confdefs.h. */
11577 $ac_includes_default
11578 long longval () { return (long) (sizeof (long long)); }
11579 unsigned long ulongval () { return (long) (sizeof (long long)); }
11581 #include <stdlib.h>
11586 FILE *f = fopen ("conftest.val", "w");
11589 if (((long) (sizeof (long long))) < 0)
11591 long i = longval ();
11592 if (i != ((long) (sizeof (long long))))
11594 fprintf (f, "%ld\n", i);
11598 unsigned long i = ulongval ();
11599 if (i != ((long) (sizeof (long long))))
11601 fprintf (f, "%lu\n", i);
11603 exit (ferror (f) || fclose (f) != 0);
11609 rm -f conftest$ac_exeext
11610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11611 (eval $ac_link) 2>&5
11613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11616 (eval $ac_try) 2>&5
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); }; }; then
11620 ac_cv_sizeof_long_long=`cat conftest.val`
11622 echo "$as_me: program exited with status $ac_status" >&5
11623 echo "$as_me: failed program was:" >&5
11624 sed 's/^/| /' conftest.$ac_ext >&5
11626 ( exit $ac_status )
11627 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
11628 See \`config.log' for more details." >&5
11629 echo "$as_me: error: cannot compute sizeof (long long), 77
11630 See \`config.log' for more details." >&2;}
11631 { (exit 1); exit 1; }; }
11633 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11638 ac_cv_sizeof_long_long=0
11641 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11642 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
11643 cat >>confdefs.h <<_ACEOF
11644 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11648 echo "$as_me:$LINENO: checking for void *" >&5
11649 echo $ECHO_N "checking for void *... $ECHO_C" >&6
11650 if test "${ac_cv_type_void_p+set}" = set; then
11651 echo $ECHO_N "(cached) $ECHO_C" >&6
11653 cat >conftest.$ac_ext <<_ACEOF
11656 cat confdefs.h >>conftest.$ac_ext
11657 cat >>conftest.$ac_ext <<_ACEOF
11658 /* end confdefs.h. */
11659 $ac_includes_default
11665 if (sizeof (void *))
11671 rm -f conftest.$ac_objext
11672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11673 (eval $ac_compile) 2>conftest.er1
11675 grep -v '^ *+' conftest.er1 >conftest.err
11677 cat conftest.err >&5
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); } &&
11680 { ac_try='test -z "$ac_c_werror_flag"
11681 || test ! -s conftest.err'
11682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11683 (eval $ac_try) 2>&5
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); }; } &&
11687 { ac_try='test -s conftest.$ac_objext'
11688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11689 (eval $ac_try) 2>&5
11691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692 (exit $ac_status); }; }; then
11693 ac_cv_type_void_p=yes
11695 echo "$as_me: failed program was:" >&5
11696 sed 's/^/| /' conftest.$ac_ext >&5
11698 ac_cv_type_void_p=no
11700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11702 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
11703 echo "${ECHO_T}$ac_cv_type_void_p" >&6
11705 echo "$as_me:$LINENO: checking size of void *" >&5
11706 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
11707 if test "${ac_cv_sizeof_void_p+set}" = set; then
11708 echo $ECHO_N "(cached) $ECHO_C" >&6
11710 if test "$ac_cv_type_void_p" = yes; then
11711 # The cast to unsigned long works around a bug in the HP C Compiler
11712 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11713 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11714 # This bug is HP SR number 8606223364.
11715 if test "$cross_compiling" = yes; then
11716 # Depending upon the size, compute the lo and hi bounds.
11717 cat >conftest.$ac_ext <<_ACEOF
11720 cat confdefs.h >>conftest.$ac_ext
11721 cat >>conftest.$ac_ext <<_ACEOF
11722 /* end confdefs.h. */
11723 $ac_includes_default
11727 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
11734 rm -f conftest.$ac_objext
11735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11736 (eval $ac_compile) 2>conftest.er1
11738 grep -v '^ *+' conftest.er1 >conftest.err
11740 cat conftest.err >&5
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); } &&
11743 { ac_try='test -z "$ac_c_werror_flag"
11744 || test ! -s conftest.err'
11745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11746 (eval $ac_try) 2>&5
11748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 (exit $ac_status); }; } &&
11750 { ac_try='test -s conftest.$ac_objext'
11751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11752 (eval $ac_try) 2>&5
11754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); }; }; then
11758 cat >conftest.$ac_ext <<_ACEOF
11761 cat confdefs.h >>conftest.$ac_ext
11762 cat >>conftest.$ac_ext <<_ACEOF
11763 /* end confdefs.h. */
11764 $ac_includes_default
11768 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
11775 rm -f conftest.$ac_objext
11776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11777 (eval $ac_compile) 2>conftest.er1
11779 grep -v '^ *+' conftest.er1 >conftest.err
11781 cat conftest.err >&5
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); } &&
11784 { ac_try='test -z "$ac_c_werror_flag"
11785 || test ! -s conftest.err'
11786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11787 (eval $ac_try) 2>&5
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); }; } &&
11791 { ac_try='test -s conftest.$ac_objext'
11792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11793 (eval $ac_try) 2>&5
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); }; }; then
11797 ac_hi=$ac_mid; break
11799 echo "$as_me: failed program was:" >&5
11800 sed 's/^/| /' conftest.$ac_ext >&5
11802 ac_lo=`expr $ac_mid + 1`
11803 if test $ac_lo -le $ac_mid; then
11807 ac_mid=`expr 2 '*' $ac_mid + 1`
11809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11812 echo "$as_me: failed program was:" >&5
11813 sed 's/^/| /' conftest.$ac_ext >&5
11815 cat >conftest.$ac_ext <<_ACEOF
11818 cat confdefs.h >>conftest.$ac_ext
11819 cat >>conftest.$ac_ext <<_ACEOF
11820 /* end confdefs.h. */
11821 $ac_includes_default
11825 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
11832 rm -f conftest.$ac_objext
11833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11834 (eval $ac_compile) 2>conftest.er1
11836 grep -v '^ *+' conftest.er1 >conftest.err
11838 cat conftest.err >&5
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); } &&
11841 { ac_try='test -z "$ac_c_werror_flag"
11842 || test ! -s conftest.err'
11843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11844 (eval $ac_try) 2>&5
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }; } &&
11848 { ac_try='test -s conftest.$ac_objext'
11849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11850 (eval $ac_try) 2>&5
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); }; }; then
11856 cat >conftest.$ac_ext <<_ACEOF
11859 cat confdefs.h >>conftest.$ac_ext
11860 cat >>conftest.$ac_ext <<_ACEOF
11861 /* end confdefs.h. */
11862 $ac_includes_default
11866 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
11873 rm -f conftest.$ac_objext
11874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11875 (eval $ac_compile) 2>conftest.er1
11877 grep -v '^ *+' conftest.er1 >conftest.err
11879 cat conftest.err >&5
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); } &&
11882 { ac_try='test -z "$ac_c_werror_flag"
11883 || test ! -s conftest.err'
11884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11885 (eval $ac_try) 2>&5
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); }; } &&
11889 { ac_try='test -s conftest.$ac_objext'
11890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11891 (eval $ac_try) 2>&5
11893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894 (exit $ac_status); }; }; then
11895 ac_lo=$ac_mid; break
11897 echo "$as_me: failed program was:" >&5
11898 sed 's/^/| /' conftest.$ac_ext >&5
11900 ac_hi=`expr '(' $ac_mid ')' - 1`
11901 if test $ac_mid -le $ac_hi; then
11905 ac_mid=`expr 2 '*' $ac_mid`
11907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11910 echo "$as_me: failed program was:" >&5
11911 sed 's/^/| /' conftest.$ac_ext >&5
11915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11918 # Binary search between lo and hi bounds.
11919 while test "x$ac_lo" != "x$ac_hi"; do
11920 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11921 cat >conftest.$ac_ext <<_ACEOF
11924 cat confdefs.h >>conftest.$ac_ext
11925 cat >>conftest.$ac_ext <<_ACEOF
11926 /* end confdefs.h. */
11927 $ac_includes_default
11931 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
11938 rm -f conftest.$ac_objext
11939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11940 (eval $ac_compile) 2>conftest.er1
11942 grep -v '^ *+' conftest.er1 >conftest.err
11944 cat conftest.err >&5
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); } &&
11947 { ac_try='test -z "$ac_c_werror_flag"
11948 || test ! -s conftest.err'
11949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11950 (eval $ac_try) 2>&5
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); }; } &&
11954 { ac_try='test -s conftest.$ac_objext'
11955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11956 (eval $ac_try) 2>&5
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); }; }; then
11962 echo "$as_me: failed program was:" >&5
11963 sed 's/^/| /' conftest.$ac_ext >&5
11965 ac_lo=`expr '(' $ac_mid ')' + 1`
11967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11970 ?*) ac_cv_sizeof_void_p=$ac_lo;;
11971 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
11972 See \`config.log' for more details." >&5
11973 echo "$as_me: error: cannot compute sizeof (void *), 77
11974 See \`config.log' for more details." >&2;}
11975 { (exit 1); exit 1; }; } ;;
11978 if test "$cross_compiling" = yes; then
11979 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11980 See \`config.log' for more details." >&5
11981 echo "$as_me: error: cannot run test program while cross compiling
11982 See \`config.log' for more details." >&2;}
11983 { (exit 1); exit 1; }; }
11985 cat >conftest.$ac_ext <<_ACEOF
11988 cat confdefs.h >>conftest.$ac_ext
11989 cat >>conftest.$ac_ext <<_ACEOF
11990 /* end confdefs.h. */
11991 $ac_includes_default
11992 long longval () { return (long) (sizeof (void *)); }
11993 unsigned long ulongval () { return (long) (sizeof (void *)); }
11995 #include <stdlib.h>
12000 FILE *f = fopen ("conftest.val", "w");
12003 if (((long) (sizeof (void *))) < 0)
12005 long i = longval ();
12006 if (i != ((long) (sizeof (void *))))
12008 fprintf (f, "%ld\n", i);
12012 unsigned long i = ulongval ();
12013 if (i != ((long) (sizeof (void *))))
12015 fprintf (f, "%lu\n", i);
12017 exit (ferror (f) || fclose (f) != 0);
12023 rm -f conftest$ac_exeext
12024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12025 (eval $ac_link) 2>&5
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12030 (eval $ac_try) 2>&5
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); }; }; then
12034 ac_cv_sizeof_void_p=`cat conftest.val`
12036 echo "$as_me: program exited with status $ac_status" >&5
12037 echo "$as_me: failed program was:" >&5
12038 sed 's/^/| /' conftest.$ac_ext >&5
12040 ( exit $ac_status )
12041 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
12042 See \`config.log' for more details." >&5
12043 echo "$as_me: error: cannot compute sizeof (void *), 77
12044 See \`config.log' for more details." >&2;}
12045 { (exit 1); exit 1; }; }
12047 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12052 ac_cv_sizeof_void_p=0
12055 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
12056 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
12057 cat >>confdefs.h <<_ACEOF
12058 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12062 echo "$as_me:$LINENO: checking for long" >&5
12063 echo $ECHO_N "checking for long... $ECHO_C" >&6
12064 if test "${ac_cv_type_long+set}" = set; then
12065 echo $ECHO_N "(cached) $ECHO_C" >&6
12067 cat >conftest.$ac_ext <<_ACEOF
12070 cat confdefs.h >>conftest.$ac_ext
12071 cat >>conftest.$ac_ext <<_ACEOF
12072 /* end confdefs.h. */
12073 $ac_includes_default
12085 rm -f conftest.$ac_objext
12086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12087 (eval $ac_compile) 2>conftest.er1
12089 grep -v '^ *+' conftest.er1 >conftest.err
12091 cat conftest.err >&5
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); } &&
12094 { ac_try='test -z "$ac_c_werror_flag"
12095 || test ! -s conftest.err'
12096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12097 (eval $ac_try) 2>&5
12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); }; } &&
12101 { ac_try='test -s conftest.$ac_objext'
12102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12103 (eval $ac_try) 2>&5
12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); }; }; then
12107 ac_cv_type_long=yes
12109 echo "$as_me: failed program was:" >&5
12110 sed 's/^/| /' conftest.$ac_ext >&5
12114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12116 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12117 echo "${ECHO_T}$ac_cv_type_long" >&6
12119 echo "$as_me:$LINENO: checking size of long" >&5
12120 echo $ECHO_N "checking size of long... $ECHO_C" >&6
12121 if test "${ac_cv_sizeof_long+set}" = set; then
12122 echo $ECHO_N "(cached) $ECHO_C" >&6
12124 if test "$ac_cv_type_long" = yes; then
12125 # The cast to unsigned long works around a bug in the HP C Compiler
12126 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12127 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12128 # This bug is HP SR number 8606223364.
12129 if test "$cross_compiling" = yes; then
12130 # Depending upon the size, compute the lo and hi bounds.
12131 cat >conftest.$ac_ext <<_ACEOF
12134 cat confdefs.h >>conftest.$ac_ext
12135 cat >>conftest.$ac_ext <<_ACEOF
12136 /* end confdefs.h. */
12137 $ac_includes_default
12141 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12148 rm -f conftest.$ac_objext
12149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12150 (eval $ac_compile) 2>conftest.er1
12152 grep -v '^ *+' conftest.er1 >conftest.err
12154 cat conftest.err >&5
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); } &&
12157 { ac_try='test -z "$ac_c_werror_flag"
12158 || test ! -s conftest.err'
12159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12160 (eval $ac_try) 2>&5
12162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163 (exit $ac_status); }; } &&
12164 { ac_try='test -s conftest.$ac_objext'
12165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12166 (eval $ac_try) 2>&5
12168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169 (exit $ac_status); }; }; then
12172 cat >conftest.$ac_ext <<_ACEOF
12175 cat confdefs.h >>conftest.$ac_ext
12176 cat >>conftest.$ac_ext <<_ACEOF
12177 /* end confdefs.h. */
12178 $ac_includes_default
12182 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12189 rm -f conftest.$ac_objext
12190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12191 (eval $ac_compile) 2>conftest.er1
12193 grep -v '^ *+' conftest.er1 >conftest.err
12195 cat conftest.err >&5
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); } &&
12198 { ac_try='test -z "$ac_c_werror_flag"
12199 || test ! -s conftest.err'
12200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12201 (eval $ac_try) 2>&5
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); }; } &&
12205 { ac_try='test -s conftest.$ac_objext'
12206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12207 (eval $ac_try) 2>&5
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); }; }; then
12211 ac_hi=$ac_mid; break
12213 echo "$as_me: failed program was:" >&5
12214 sed 's/^/| /' conftest.$ac_ext >&5
12216 ac_lo=`expr $ac_mid + 1`
12217 if test $ac_lo -le $ac_mid; then
12221 ac_mid=`expr 2 '*' $ac_mid + 1`
12223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12226 echo "$as_me: failed program was:" >&5
12227 sed 's/^/| /' conftest.$ac_ext >&5
12229 cat >conftest.$ac_ext <<_ACEOF
12232 cat confdefs.h >>conftest.$ac_ext
12233 cat >>conftest.$ac_ext <<_ACEOF
12234 /* end confdefs.h. */
12235 $ac_includes_default
12239 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12246 rm -f conftest.$ac_objext
12247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12248 (eval $ac_compile) 2>conftest.er1
12250 grep -v '^ *+' conftest.er1 >conftest.err
12252 cat conftest.err >&5
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); } &&
12255 { ac_try='test -z "$ac_c_werror_flag"
12256 || test ! -s conftest.err'
12257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12258 (eval $ac_try) 2>&5
12260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261 (exit $ac_status); }; } &&
12262 { ac_try='test -s conftest.$ac_objext'
12263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12264 (eval $ac_try) 2>&5
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); }; }; then
12270 cat >conftest.$ac_ext <<_ACEOF
12273 cat confdefs.h >>conftest.$ac_ext
12274 cat >>conftest.$ac_ext <<_ACEOF
12275 /* end confdefs.h. */
12276 $ac_includes_default
12280 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12287 rm -f conftest.$ac_objext
12288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12289 (eval $ac_compile) 2>conftest.er1
12291 grep -v '^ *+' conftest.er1 >conftest.err
12293 cat conftest.err >&5
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); } &&
12296 { ac_try='test -z "$ac_c_werror_flag"
12297 || test ! -s conftest.err'
12298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12299 (eval $ac_try) 2>&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); }; } &&
12303 { ac_try='test -s conftest.$ac_objext'
12304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12305 (eval $ac_try) 2>&5
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); }; }; then
12309 ac_lo=$ac_mid; break
12311 echo "$as_me: failed program was:" >&5
12312 sed 's/^/| /' conftest.$ac_ext >&5
12314 ac_hi=`expr '(' $ac_mid ')' - 1`
12315 if test $ac_mid -le $ac_hi; then
12319 ac_mid=`expr 2 '*' $ac_mid`
12321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12324 echo "$as_me: failed program was:" >&5
12325 sed 's/^/| /' conftest.$ac_ext >&5
12329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12332 # Binary search between lo and hi bounds.
12333 while test "x$ac_lo" != "x$ac_hi"; do
12334 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12335 cat >conftest.$ac_ext <<_ACEOF
12338 cat confdefs.h >>conftest.$ac_ext
12339 cat >>conftest.$ac_ext <<_ACEOF
12340 /* end confdefs.h. */
12341 $ac_includes_default
12345 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12352 rm -f conftest.$ac_objext
12353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12354 (eval $ac_compile) 2>conftest.er1
12356 grep -v '^ *+' conftest.er1 >conftest.err
12358 cat conftest.err >&5
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } &&
12361 { ac_try='test -z "$ac_c_werror_flag"
12362 || test ! -s conftest.err'
12363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12364 (eval $ac_try) 2>&5
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); }; } &&
12368 { ac_try='test -s conftest.$ac_objext'
12369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370 (eval $ac_try) 2>&5
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }; }; then
12376 echo "$as_me: failed program was:" >&5
12377 sed 's/^/| /' conftest.$ac_ext >&5
12379 ac_lo=`expr '(' $ac_mid ')' + 1`
12381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12384 ?*) ac_cv_sizeof_long=$ac_lo;;
12385 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12386 See \`config.log' for more details." >&5
12387 echo "$as_me: error: cannot compute sizeof (long), 77
12388 See \`config.log' for more details." >&2;}
12389 { (exit 1); exit 1; }; } ;;
12392 if test "$cross_compiling" = yes; then
12393 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12394 See \`config.log' for more details." >&5
12395 echo "$as_me: error: cannot run test program while cross compiling
12396 See \`config.log' for more details." >&2;}
12397 { (exit 1); exit 1; }; }
12399 cat >conftest.$ac_ext <<_ACEOF
12402 cat confdefs.h >>conftest.$ac_ext
12403 cat >>conftest.$ac_ext <<_ACEOF
12404 /* end confdefs.h. */
12405 $ac_includes_default
12406 long longval () { return (long) (sizeof (long)); }
12407 unsigned long ulongval () { return (long) (sizeof (long)); }
12409 #include <stdlib.h>
12414 FILE *f = fopen ("conftest.val", "w");
12417 if (((long) (sizeof (long))) < 0)
12419 long i = longval ();
12420 if (i != ((long) (sizeof (long))))
12422 fprintf (f, "%ld\n", i);
12426 unsigned long i = ulongval ();
12427 if (i != ((long) (sizeof (long))))
12429 fprintf (f, "%lu\n", i);
12431 exit (ferror (f) || fclose (f) != 0);
12437 rm -f conftest$ac_exeext
12438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12439 (eval $ac_link) 2>&5
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12444 (eval $ac_try) 2>&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); }; }; then
12448 ac_cv_sizeof_long=`cat conftest.val`
12450 echo "$as_me: program exited with status $ac_status" >&5
12451 echo "$as_me: failed program was:" >&5
12452 sed 's/^/| /' conftest.$ac_ext >&5
12454 ( exit $ac_status )
12455 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12456 See \`config.log' for more details." >&5
12457 echo "$as_me: error: cannot compute sizeof (long), 77
12458 See \`config.log' for more details." >&2;}
12459 { (exit 1); exit 1; }; }
12461 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12466 ac_cv_sizeof_long=0
12469 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12470 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12471 cat >>confdefs.h <<_ACEOF
12472 #define SIZEOF_LONG $ac_cv_sizeof_long
12477 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
12481 if test "x${ac_cv_sizeof_long}" = "x8"; then
12482 BFD_HOST_64BIT_LONG=1
12483 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
12484 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
12485 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
12486 BFD_HOST_64BIT_LONG_LONG=1
12487 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
12488 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
12489 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
12490 BFD_HOSTPTR_T="unsigned long long"
12494 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
12495 BFD_HOST_64_BIT_DEFINED=1
12496 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
12497 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
12507 # Put a plausible default for CC_FOR_BUILD in Makefile.
12508 if test -z "$CC_FOR_BUILD"; then
12509 if test "x$cross_compiling" = "xno"; then
12510 CC_FOR_BUILD='$(CC)'
12516 # Also set EXEEXT_FOR_BUILD.
12517 if test "x$cross_compiling" = "xno"; then
12518 EXEEXT_FOR_BUILD='$(EXEEXT)'
12520 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
12521 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
12522 if test "${bfd_cv_build_exeext+set}" = set; then
12523 echo $ECHO_N "(cached) $ECHO_C" >&6
12526 echo 'int main () { return 0; }' > conftest.c
12527 bfd_cv_build_exeext=
12528 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12529 for file in conftest.*; do
12531 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12532 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12536 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
12538 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
12539 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
12540 EXEEXT_FOR_BUILD=""
12541 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
12551 for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
12553 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12555 echo "$as_me:$LINENO: checking for $ac_header" >&5
12556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12558 echo $ECHO_N "(cached) $ECHO_C" >&6
12560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12561 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12563 # Is the header compilable?
12564 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12565 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12566 cat >conftest.$ac_ext <<_ACEOF
12569 cat confdefs.h >>conftest.$ac_ext
12570 cat >>conftest.$ac_ext <<_ACEOF
12571 /* end confdefs.h. */
12572 $ac_includes_default
12573 #include <$ac_header>
12575 rm -f conftest.$ac_objext
12576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12577 (eval $ac_compile) 2>conftest.er1
12579 grep -v '^ *+' conftest.er1 >conftest.err
12581 cat conftest.err >&5
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); } &&
12584 { ac_try='test -z "$ac_c_werror_flag"
12585 || test ! -s conftest.err'
12586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12587 (eval $ac_try) 2>&5
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); }; } &&
12591 { ac_try='test -s conftest.$ac_objext'
12592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12593 (eval $ac_try) 2>&5
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); }; }; then
12597 ac_header_compiler=yes
12599 echo "$as_me: failed program was:" >&5
12600 sed 's/^/| /' conftest.$ac_ext >&5
12602 ac_header_compiler=no
12604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12605 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12606 echo "${ECHO_T}$ac_header_compiler" >&6
12608 # Is the header present?
12609 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12610 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12611 cat >conftest.$ac_ext <<_ACEOF
12614 cat confdefs.h >>conftest.$ac_ext
12615 cat >>conftest.$ac_ext <<_ACEOF
12616 /* end confdefs.h. */
12617 #include <$ac_header>
12619 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12620 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12622 grep -v '^ *+' conftest.er1 >conftest.err
12624 cat conftest.err >&5
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); } >/dev/null; then
12627 if test -s conftest.err; then
12628 ac_cpp_err=$ac_c_preproc_warn_flag
12629 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12636 if test -z "$ac_cpp_err"; then
12637 ac_header_preproc=yes
12639 echo "$as_me: failed program was:" >&5
12640 sed 's/^/| /' conftest.$ac_ext >&5
12642 ac_header_preproc=no
12644 rm -f conftest.err conftest.$ac_ext
12645 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12646 echo "${ECHO_T}$ac_header_preproc" >&6
12648 # So? What about this header?
12649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12651 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12652 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12654 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12655 ac_header_preproc=yes
12658 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12659 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12660 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12661 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12662 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12663 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12664 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12665 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12667 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12668 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12669 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12672 ## ------------------------------------------ ##
12673 ## Report this to the AC_PACKAGE_NAME lists. ##
12674 ## ------------------------------------------ ##
12677 sed "s/^/$as_me: WARNING: /" >&2
12680 echo "$as_me:$LINENO: checking for $ac_header" >&5
12681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12682 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12683 echo $ECHO_N "(cached) $ECHO_C" >&6
12685 eval "$as_ac_Header=\$ac_header_preproc"
12687 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12688 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12691 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12692 cat >>confdefs.h <<_ACEOF
12693 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12703 for ac_header in fcntl.h sys/file.h sys/time.h
12705 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12707 echo "$as_me:$LINENO: checking for $ac_header" >&5
12708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12710 echo $ECHO_N "(cached) $ECHO_C" >&6
12712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12713 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12715 # Is the header compilable?
12716 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12717 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12718 cat >conftest.$ac_ext <<_ACEOF
12721 cat confdefs.h >>conftest.$ac_ext
12722 cat >>conftest.$ac_ext <<_ACEOF
12723 /* end confdefs.h. */
12724 $ac_includes_default
12725 #include <$ac_header>
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_header_compiler=yes
12751 echo "$as_me: failed program was:" >&5
12752 sed 's/^/| /' conftest.$ac_ext >&5
12754 ac_header_compiler=no
12756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12757 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12758 echo "${ECHO_T}$ac_header_compiler" >&6
12760 # Is the header present?
12761 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12763 cat >conftest.$ac_ext <<_ACEOF
12766 cat confdefs.h >>conftest.$ac_ext
12767 cat >>conftest.$ac_ext <<_ACEOF
12768 /* end confdefs.h. */
12769 #include <$ac_header>
12771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12772 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12774 grep -v '^ *+' conftest.er1 >conftest.err
12776 cat conftest.err >&5
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); } >/dev/null; then
12779 if test -s conftest.err; then
12780 ac_cpp_err=$ac_c_preproc_warn_flag
12781 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12788 if test -z "$ac_cpp_err"; then
12789 ac_header_preproc=yes
12791 echo "$as_me: failed program was:" >&5
12792 sed 's/^/| /' conftest.$ac_ext >&5
12794 ac_header_preproc=no
12796 rm -f conftest.err conftest.$ac_ext
12797 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12798 echo "${ECHO_T}$ac_header_preproc" >&6
12800 # So? What about this header?
12801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12803 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12804 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12806 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12807 ac_header_preproc=yes
12810 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12811 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12812 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12813 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12814 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12815 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12816 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12817 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12820 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12821 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12824 ## ------------------------------------------ ##
12825 ## Report this to the AC_PACKAGE_NAME lists. ##
12826 ## ------------------------------------------ ##
12829 sed "s/^/$as_me: WARNING: /" >&2
12832 echo "$as_me:$LINENO: checking for $ac_header" >&5
12833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12835 echo $ECHO_N "(cached) $ECHO_C" >&6
12837 eval "$as_ac_Header=\$ac_header_preproc"
12839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12844 cat >>confdefs.h <<_ACEOF
12845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12854 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
12856 acx_cv_header_stdint=stddef.h
12857 acx_cv_header_stdint_kind="(already complete)"
12858 for i in stdint.h $inttype_headers; do
12859 unset ac_cv_type_uintptr_t
12860 unset ac_cv_type_uintmax_t
12861 unset ac_cv_type_int_least32_t
12862 unset ac_cv_type_int_fast32_t
12863 unset ac_cv_type_uint64_t
12864 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
12865 echo "$as_me:$LINENO: checking for uintmax_t" >&5
12866 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
12867 if test "${ac_cv_type_uintmax_t+set}" = set; then
12868 echo $ECHO_N "(cached) $ECHO_C" >&6
12870 cat >conftest.$ac_ext <<_ACEOF
12873 cat confdefs.h >>conftest.$ac_ext
12874 cat >>conftest.$ac_ext <<_ACEOF
12875 /* end confdefs.h. */
12876 #include <sys/types.h>
12882 if ((uintmax_t *) 0)
12884 if (sizeof (uintmax_t))
12890 rm -f conftest.$ac_objext
12891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12892 (eval $ac_compile) 2>conftest.er1
12894 grep -v '^ *+' conftest.er1 >conftest.err
12896 cat conftest.err >&5
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); } &&
12899 { ac_try='test -z "$ac_c_werror_flag"
12900 || test ! -s conftest.err'
12901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12902 (eval $ac_try) 2>&5
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); }; } &&
12906 { ac_try='test -s conftest.$ac_objext'
12907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12908 (eval $ac_try) 2>&5
12910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); }; }; then
12912 ac_cv_type_uintmax_t=yes
12914 echo "$as_me: failed program was:" >&5
12915 sed 's/^/| /' conftest.$ac_ext >&5
12917 ac_cv_type_uintmax_t=no
12919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12921 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
12922 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
12923 if test $ac_cv_type_uintmax_t = yes; then
12924 acx_cv_header_stdint=$i
12929 echo "$as_me:$LINENO: checking for uintptr_t" >&5
12930 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
12931 if test "${ac_cv_type_uintptr_t+set}" = set; then
12932 echo $ECHO_N "(cached) $ECHO_C" >&6
12934 cat >conftest.$ac_ext <<_ACEOF
12937 cat confdefs.h >>conftest.$ac_ext
12938 cat >>conftest.$ac_ext <<_ACEOF
12939 /* end confdefs.h. */
12940 #include <sys/types.h>
12946 if ((uintptr_t *) 0)
12948 if (sizeof (uintptr_t))
12954 rm -f conftest.$ac_objext
12955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12956 (eval $ac_compile) 2>conftest.er1
12958 grep -v '^ *+' conftest.er1 >conftest.err
12960 cat conftest.err >&5
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); } &&
12963 { ac_try='test -z "$ac_c_werror_flag"
12964 || test ! -s conftest.err'
12965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12966 (eval $ac_try) 2>&5
12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969 (exit $ac_status); }; } &&
12970 { ac_try='test -s conftest.$ac_objext'
12971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12972 (eval $ac_try) 2>&5
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); }; }; then
12976 ac_cv_type_uintptr_t=yes
12978 echo "$as_me: failed program was:" >&5
12979 sed 's/^/| /' conftest.$ac_ext >&5
12981 ac_cv_type_uintptr_t=no
12983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12985 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12986 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
12987 if test $ac_cv_type_uintptr_t = yes; then
12990 acx_cv_header_stdint_kind="(mostly complete)"
12993 echo "$as_me:$LINENO: checking for int_least32_t" >&5
12994 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
12995 if test "${ac_cv_type_int_least32_t+set}" = set; then
12996 echo $ECHO_N "(cached) $ECHO_C" >&6
12998 cat >conftest.$ac_ext <<_ACEOF
13001 cat confdefs.h >>conftest.$ac_ext
13002 cat >>conftest.$ac_ext <<_ACEOF
13003 /* end confdefs.h. */
13004 #include <sys/types.h>
13010 if ((int_least32_t *) 0)
13012 if (sizeof (int_least32_t))
13018 rm -f conftest.$ac_objext
13019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13020 (eval $ac_compile) 2>conftest.er1
13022 grep -v '^ *+' conftest.er1 >conftest.err
13024 cat conftest.err >&5
13025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026 (exit $ac_status); } &&
13027 { ac_try='test -z "$ac_c_werror_flag"
13028 || test ! -s conftest.err'
13029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13030 (eval $ac_try) 2>&5
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 (exit $ac_status); }; } &&
13034 { ac_try='test -s conftest.$ac_objext'
13035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13036 (eval $ac_try) 2>&5
13038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039 (exit $ac_status); }; }; then
13040 ac_cv_type_int_least32_t=yes
13042 echo "$as_me: failed program was:" >&5
13043 sed 's/^/| /' conftest.$ac_ext >&5
13045 ac_cv_type_int_least32_t=no
13047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13049 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
13050 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
13051 if test $ac_cv_type_int_least32_t = yes; then
13054 acx_cv_header_stdint_kind="(mostly complete)"
13057 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
13058 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
13059 if test "${ac_cv_type_int_fast32_t+set}" = set; then
13060 echo $ECHO_N "(cached) $ECHO_C" >&6
13062 cat >conftest.$ac_ext <<_ACEOF
13065 cat confdefs.h >>conftest.$ac_ext
13066 cat >>conftest.$ac_ext <<_ACEOF
13067 /* end confdefs.h. */
13068 #include <sys/types.h>
13074 if ((int_fast32_t *) 0)
13076 if (sizeof (int_fast32_t))
13082 rm -f conftest.$ac_objext
13083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13084 (eval $ac_compile) 2>conftest.er1
13086 grep -v '^ *+' conftest.er1 >conftest.err
13088 cat conftest.err >&5
13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090 (exit $ac_status); } &&
13091 { ac_try='test -z "$ac_c_werror_flag"
13092 || test ! -s conftest.err'
13093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13094 (eval $ac_try) 2>&5
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); }; } &&
13098 { ac_try='test -s conftest.$ac_objext'
13099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13100 (eval $ac_try) 2>&5
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); }; }; then
13104 ac_cv_type_int_fast32_t=yes
13106 echo "$as_me: failed program was:" >&5
13107 sed 's/^/| /' conftest.$ac_ext >&5
13109 ac_cv_type_int_fast32_t=no
13111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13113 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
13114 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
13115 if test $ac_cv_type_int_fast32_t = yes; then
13118 acx_cv_header_stdint_kind="(mostly complete)"
13121 echo "$as_me:$LINENO: checking for uint64_t" >&5
13122 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13123 if test "${ac_cv_type_uint64_t+set}" = set; then
13124 echo $ECHO_N "(cached) $ECHO_C" >&6
13126 cat >conftest.$ac_ext <<_ACEOF
13129 cat confdefs.h >>conftest.$ac_ext
13130 cat >>conftest.$ac_ext <<_ACEOF
13131 /* end confdefs.h. */
13132 #include <sys/types.h>
13138 if ((uint64_t *) 0)
13140 if (sizeof (uint64_t))
13146 rm -f conftest.$ac_objext
13147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13148 (eval $ac_compile) 2>conftest.er1
13150 grep -v '^ *+' conftest.er1 >conftest.err
13152 cat conftest.err >&5
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); } &&
13155 { ac_try='test -z "$ac_c_werror_flag"
13156 || test ! -s conftest.err'
13157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158 (eval $ac_try) 2>&5
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; } &&
13162 { ac_try='test -s conftest.$ac_objext'
13163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13164 (eval $ac_try) 2>&5
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); }; }; then
13168 ac_cv_type_uint64_t=yes
13170 echo "$as_me: failed program was:" >&5
13171 sed 's/^/| /' conftest.$ac_ext >&5
13173 ac_cv_type_uint64_t=no
13175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13177 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13178 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
13179 if test $ac_cv_type_uint64_t = yes; then
13182 acx_cv_header_stdint_kind="(lacks uint64_t)"
13187 if test "$acx_cv_header_stdint" = stddef.h; then
13188 acx_cv_header_stdint_kind="(lacks uintmax_t)"
13189 for i in stdint.h $inttype_headers; do
13190 unset ac_cv_type_uintptr_t
13191 unset ac_cv_type_uint32_t
13192 unset ac_cv_type_uint64_t
13193 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
13194 echo "$as_me:$LINENO: checking for uint32_t" >&5
13195 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
13196 if test "${ac_cv_type_uint32_t+set}" = set; then
13197 echo $ECHO_N "(cached) $ECHO_C" >&6
13199 cat >conftest.$ac_ext <<_ACEOF
13202 cat confdefs.h >>conftest.$ac_ext
13203 cat >>conftest.$ac_ext <<_ACEOF
13204 /* end confdefs.h. */
13205 #include <sys/types.h>
13211 if ((uint32_t *) 0)
13213 if (sizeof (uint32_t))
13219 rm -f conftest.$ac_objext
13220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13221 (eval $ac_compile) 2>conftest.er1
13223 grep -v '^ *+' conftest.er1 >conftest.err
13225 cat conftest.err >&5
13226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227 (exit $ac_status); } &&
13228 { ac_try='test -z "$ac_c_werror_flag"
13229 || test ! -s conftest.err'
13230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13231 (eval $ac_try) 2>&5
13233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234 (exit $ac_status); }; } &&
13235 { ac_try='test -s conftest.$ac_objext'
13236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13237 (eval $ac_try) 2>&5
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); }; }; then
13241 ac_cv_type_uint32_t=yes
13243 echo "$as_me: failed program was:" >&5
13244 sed 's/^/| /' conftest.$ac_ext >&5
13246 ac_cv_type_uint32_t=no
13248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13250 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
13251 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
13252 if test $ac_cv_type_uint32_t = yes; then
13253 acx_cv_header_stdint=$i
13258 echo "$as_me:$LINENO: checking for uint64_t" >&5
13259 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13260 if test "${ac_cv_type_uint64_t+set}" = set; then
13261 echo $ECHO_N "(cached) $ECHO_C" >&6
13263 cat >conftest.$ac_ext <<_ACEOF
13266 cat confdefs.h >>conftest.$ac_ext
13267 cat >>conftest.$ac_ext <<_ACEOF
13268 /* end confdefs.h. */
13269 #include <sys/types.h>
13275 if ((uint64_t *) 0)
13277 if (sizeof (uint64_t))
13283 rm -f conftest.$ac_objext
13284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13285 (eval $ac_compile) 2>conftest.er1
13287 grep -v '^ *+' conftest.er1 >conftest.err
13289 cat conftest.err >&5
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); } &&
13292 { ac_try='test -z "$ac_c_werror_flag"
13293 || test ! -s conftest.err'
13294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13295 (eval $ac_try) 2>&5
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); }; } &&
13299 { ac_try='test -s conftest.$ac_objext'
13300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13301 (eval $ac_try) 2>&5
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); }; }; then
13305 ac_cv_type_uint64_t=yes
13307 echo "$as_me: failed program was:" >&5
13308 sed 's/^/| /' conftest.$ac_ext >&5
13310 ac_cv_type_uint64_t=no
13312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13314 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13315 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
13317 echo "$as_me:$LINENO: checking for uintptr_t" >&5
13318 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13319 if test "${ac_cv_type_uintptr_t+set}" = set; then
13320 echo $ECHO_N "(cached) $ECHO_C" >&6
13322 cat >conftest.$ac_ext <<_ACEOF
13325 cat confdefs.h >>conftest.$ac_ext
13326 cat >>conftest.$ac_ext <<_ACEOF
13327 /* end confdefs.h. */
13328 #include <sys/types.h>
13334 if ((uintptr_t *) 0)
13336 if (sizeof (uintptr_t))
13342 rm -f conftest.$ac_objext
13343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13344 (eval $ac_compile) 2>conftest.er1
13346 grep -v '^ *+' conftest.er1 >conftest.err
13348 cat conftest.err >&5
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); } &&
13351 { ac_try='test -z "$ac_c_werror_flag"
13352 || test ! -s conftest.err'
13353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13354 (eval $ac_try) 2>&5
13356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357 (exit $ac_status); }; } &&
13358 { ac_try='test -s conftest.$ac_objext'
13359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13360 (eval $ac_try) 2>&5
13362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 (exit $ac_status); }; }; then
13364 ac_cv_type_uintptr_t=yes
13366 echo "$as_me: failed program was:" >&5
13367 sed 's/^/| /' conftest.$ac_ext >&5
13369 ac_cv_type_uintptr_t=no
13371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13373 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13374 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13379 if test "$acx_cv_header_stdint" = stddef.h; then
13380 acx_cv_header_stdint_kind="(u_intXX_t style)"
13381 for i in sys/types.h $inttype_headers; do
13382 unset ac_cv_type_u_int32_t
13383 unset ac_cv_type_u_int64_t
13384 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
13385 echo "$as_me:$LINENO: checking for u_int32_t" >&5
13386 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
13387 if test "${ac_cv_type_u_int32_t+set}" = set; then
13388 echo $ECHO_N "(cached) $ECHO_C" >&6
13390 cat >conftest.$ac_ext <<_ACEOF
13393 cat confdefs.h >>conftest.$ac_ext
13394 cat >>conftest.$ac_ext <<_ACEOF
13395 /* end confdefs.h. */
13396 #include <sys/types.h>
13402 if ((u_int32_t *) 0)
13404 if (sizeof (u_int32_t))
13410 rm -f conftest.$ac_objext
13411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13412 (eval $ac_compile) 2>conftest.er1
13414 grep -v '^ *+' conftest.er1 >conftest.err
13416 cat conftest.err >&5
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); } &&
13419 { ac_try='test -z "$ac_c_werror_flag"
13420 || test ! -s conftest.err'
13421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13422 (eval $ac_try) 2>&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); }; } &&
13426 { ac_try='test -s conftest.$ac_objext'
13427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13428 (eval $ac_try) 2>&5
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); }; }; then
13432 ac_cv_type_u_int32_t=yes
13434 echo "$as_me: failed program was:" >&5
13435 sed 's/^/| /' conftest.$ac_ext >&5
13437 ac_cv_type_u_int32_t=no
13439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13441 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
13442 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
13443 if test $ac_cv_type_u_int32_t = yes; then
13444 acx_cv_header_stdint=$i
13449 echo "$as_me:$LINENO: checking for u_int64_t" >&5
13450 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
13451 if test "${ac_cv_type_u_int64_t+set}" = set; then
13452 echo $ECHO_N "(cached) $ECHO_C" >&6
13454 cat >conftest.$ac_ext <<_ACEOF
13457 cat confdefs.h >>conftest.$ac_ext
13458 cat >>conftest.$ac_ext <<_ACEOF
13459 /* end confdefs.h. */
13460 #include <sys/types.h>
13466 if ((u_int64_t *) 0)
13468 if (sizeof (u_int64_t))
13474 rm -f conftest.$ac_objext
13475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13476 (eval $ac_compile) 2>conftest.er1
13478 grep -v '^ *+' conftest.er1 >conftest.err
13480 cat conftest.err >&5
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); } &&
13483 { ac_try='test -z "$ac_c_werror_flag"
13484 || test ! -s conftest.err'
13485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13486 (eval $ac_try) 2>&5
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); }; } &&
13490 { ac_try='test -s conftest.$ac_objext'
13491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13492 (eval $ac_try) 2>&5
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); }; }; then
13496 ac_cv_type_u_int64_t=yes
13498 echo "$as_me: failed program was:" >&5
13499 sed 's/^/| /' conftest.$ac_ext >&5
13501 ac_cv_type_u_int64_t=no
13503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13505 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13506 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
13511 if test "$acx_cv_header_stdint" = stddef.h; then
13512 acx_cv_header_stdint_kind="(using manual detection)"
13515 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
13516 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
13517 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
13518 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
13519 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
13521 # ----------------- Summarize what we found so far
13523 echo "$as_me:$LINENO: checking what to include in bfd_stdint.h" >&5
13524 echo $ECHO_N "checking what to include in bfd_stdint.h... $ECHO_C" >&6
13526 case `$as_basename bfd_stdint.h ||
13527 $as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
13528 Xbfd_stdint.h : 'X\(//\)$' \| \
13529 Xbfd_stdint.h : 'X\(/\)$' \| \
13530 . : '\(.\)' 2>/dev/null ||
13531 echo X/bfd_stdint.h |
13532 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13533 /^X\/\(\/\/\)$/{ s//\1/; q; }
13534 /^X\/\(\/\).*/{ s//\1/; q; }
13536 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13537 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13538 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13539 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13543 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
13544 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
13546 # ----------------- done included file, check C basic types --------
13548 # Lacking an uintptr_t? Test size of void *
13549 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
13550 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
13551 echo $ECHO_N "checking for void *... $ECHO_C" >&6
13552 if test "${ac_cv_type_void_p+set}" = set; then
13553 echo $ECHO_N "(cached) $ECHO_C" >&6
13555 cat >conftest.$ac_ext <<_ACEOF
13558 cat confdefs.h >>conftest.$ac_ext
13559 cat >>conftest.$ac_ext <<_ACEOF
13560 /* end confdefs.h. */
13561 $ac_includes_default
13567 if (sizeof (void *))
13573 rm -f conftest.$ac_objext
13574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13575 (eval $ac_compile) 2>conftest.er1
13577 grep -v '^ *+' conftest.er1 >conftest.err
13579 cat conftest.err >&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); } &&
13582 { ac_try='test -z "$ac_c_werror_flag"
13583 || test ! -s conftest.err'
13584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13585 (eval $ac_try) 2>&5
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); }; } &&
13589 { ac_try='test -s conftest.$ac_objext'
13590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13591 (eval $ac_try) 2>&5
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); }; }; then
13595 ac_cv_type_void_p=yes
13597 echo "$as_me: failed program was:" >&5
13598 sed 's/^/| /' conftest.$ac_ext >&5
13600 ac_cv_type_void_p=no
13602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13604 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13605 echo "${ECHO_T}$ac_cv_type_void_p" >&6
13607 echo "$as_me:$LINENO: checking size of void *" >&5
13608 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13609 if test "${ac_cv_sizeof_void_p+set}" = set; then
13610 echo $ECHO_N "(cached) $ECHO_C" >&6
13612 if test "$ac_cv_type_void_p" = yes; then
13613 # The cast to unsigned long works around a bug in the HP C Compiler
13614 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13615 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13616 # This bug is HP SR number 8606223364.
13617 if test "$cross_compiling" = yes; then
13618 # Depending upon the size, compute the lo and hi bounds.
13619 cat >conftest.$ac_ext <<_ACEOF
13622 cat confdefs.h >>conftest.$ac_ext
13623 cat >>conftest.$ac_ext <<_ACEOF
13624 /* end confdefs.h. */
13625 $ac_includes_default
13629 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
13636 rm -f conftest.$ac_objext
13637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13638 (eval $ac_compile) 2>conftest.er1
13640 grep -v '^ *+' conftest.er1 >conftest.err
13642 cat conftest.err >&5
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); } &&
13645 { ac_try='test -z "$ac_c_werror_flag"
13646 || test ! -s conftest.err'
13647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13648 (eval $ac_try) 2>&5
13650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651 (exit $ac_status); }; } &&
13652 { ac_try='test -s conftest.$ac_objext'
13653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13654 (eval $ac_try) 2>&5
13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657 (exit $ac_status); }; }; then
13660 cat >conftest.$ac_ext <<_ACEOF
13663 cat confdefs.h >>conftest.$ac_ext
13664 cat >>conftest.$ac_ext <<_ACEOF
13665 /* end confdefs.h. */
13666 $ac_includes_default
13670 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13677 rm -f conftest.$ac_objext
13678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13679 (eval $ac_compile) 2>conftest.er1
13681 grep -v '^ *+' conftest.er1 >conftest.err
13683 cat conftest.err >&5
13684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685 (exit $ac_status); } &&
13686 { ac_try='test -z "$ac_c_werror_flag"
13687 || test ! -s conftest.err'
13688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13689 (eval $ac_try) 2>&5
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); }; } &&
13693 { ac_try='test -s conftest.$ac_objext'
13694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13695 (eval $ac_try) 2>&5
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); }; }; then
13699 ac_hi=$ac_mid; break
13701 echo "$as_me: failed program was:" >&5
13702 sed 's/^/| /' conftest.$ac_ext >&5
13704 ac_lo=`expr $ac_mid + 1`
13705 if test $ac_lo -le $ac_mid; then
13709 ac_mid=`expr 2 '*' $ac_mid + 1`
13711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13714 echo "$as_me: failed program was:" >&5
13715 sed 's/^/| /' conftest.$ac_ext >&5
13717 cat >conftest.$ac_ext <<_ACEOF
13720 cat confdefs.h >>conftest.$ac_ext
13721 cat >>conftest.$ac_ext <<_ACEOF
13722 /* end confdefs.h. */
13723 $ac_includes_default
13727 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
13734 rm -f conftest.$ac_objext
13735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13736 (eval $ac_compile) 2>conftest.er1
13738 grep -v '^ *+' conftest.er1 >conftest.err
13740 cat conftest.err >&5
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); } &&
13743 { ac_try='test -z "$ac_c_werror_flag"
13744 || test ! -s conftest.err'
13745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13746 (eval $ac_try) 2>&5
13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); }; } &&
13750 { ac_try='test -s conftest.$ac_objext'
13751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13752 (eval $ac_try) 2>&5
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); }; }; then
13758 cat >conftest.$ac_ext <<_ACEOF
13761 cat confdefs.h >>conftest.$ac_ext
13762 cat >>conftest.$ac_ext <<_ACEOF
13763 /* end confdefs.h. */
13764 $ac_includes_default
13768 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
13775 rm -f conftest.$ac_objext
13776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13777 (eval $ac_compile) 2>conftest.er1
13779 grep -v '^ *+' conftest.er1 >conftest.err
13781 cat conftest.err >&5
13782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); } &&
13784 { ac_try='test -z "$ac_c_werror_flag"
13785 || test ! -s conftest.err'
13786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13787 (eval $ac_try) 2>&5
13789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); }; } &&
13791 { ac_try='test -s conftest.$ac_objext'
13792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13793 (eval $ac_try) 2>&5
13795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); }; }; then
13797 ac_lo=$ac_mid; break
13799 echo "$as_me: failed program was:" >&5
13800 sed 's/^/| /' conftest.$ac_ext >&5
13802 ac_hi=`expr '(' $ac_mid ')' - 1`
13803 if test $ac_mid -le $ac_hi; then
13807 ac_mid=`expr 2 '*' $ac_mid`
13809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13812 echo "$as_me: failed program was:" >&5
13813 sed 's/^/| /' conftest.$ac_ext >&5
13817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13820 # Binary search between lo and hi bounds.
13821 while test "x$ac_lo" != "x$ac_hi"; do
13822 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13823 cat >conftest.$ac_ext <<_ACEOF
13826 cat confdefs.h >>conftest.$ac_ext
13827 cat >>conftest.$ac_ext <<_ACEOF
13828 /* end confdefs.h. */
13829 $ac_includes_default
13833 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13840 rm -f conftest.$ac_objext
13841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13842 (eval $ac_compile) 2>conftest.er1
13844 grep -v '^ *+' conftest.er1 >conftest.err
13846 cat conftest.err >&5
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); } &&
13849 { ac_try='test -z "$ac_c_werror_flag"
13850 || test ! -s conftest.err'
13851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13852 (eval $ac_try) 2>&5
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); }; } &&
13856 { ac_try='test -s conftest.$ac_objext'
13857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13858 (eval $ac_try) 2>&5
13860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); }; }; then
13864 echo "$as_me: failed program was:" >&5
13865 sed 's/^/| /' conftest.$ac_ext >&5
13867 ac_lo=`expr '(' $ac_mid ')' + 1`
13869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13872 ?*) ac_cv_sizeof_void_p=$ac_lo;;
13873 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13874 See \`config.log' for more details." >&5
13875 echo "$as_me: error: cannot compute sizeof (void *), 77
13876 See \`config.log' for more details." >&2;}
13877 { (exit 1); exit 1; }; } ;;
13880 if test "$cross_compiling" = yes; then
13881 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13882 See \`config.log' for more details." >&5
13883 echo "$as_me: error: cannot run test program while cross compiling
13884 See \`config.log' for more details." >&2;}
13885 { (exit 1); exit 1; }; }
13887 cat >conftest.$ac_ext <<_ACEOF
13890 cat confdefs.h >>conftest.$ac_ext
13891 cat >>conftest.$ac_ext <<_ACEOF
13892 /* end confdefs.h. */
13893 $ac_includes_default
13894 long longval () { return (long) (sizeof (void *)); }
13895 unsigned long ulongval () { return (long) (sizeof (void *)); }
13897 #include <stdlib.h>
13902 FILE *f = fopen ("conftest.val", "w");
13905 if (((long) (sizeof (void *))) < 0)
13907 long i = longval ();
13908 if (i != ((long) (sizeof (void *))))
13910 fprintf (f, "%ld\n", i);
13914 unsigned long i = ulongval ();
13915 if (i != ((long) (sizeof (void *))))
13917 fprintf (f, "%lu\n", i);
13919 exit (ferror (f) || fclose (f) != 0);
13925 rm -f conftest$ac_exeext
13926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13927 (eval $ac_link) 2>&5
13929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13932 (eval $ac_try) 2>&5
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); }; }; then
13936 ac_cv_sizeof_void_p=`cat conftest.val`
13938 echo "$as_me: program exited with status $ac_status" >&5
13939 echo "$as_me: failed program was:" >&5
13940 sed 's/^/| /' conftest.$ac_ext >&5
13942 ( exit $ac_status )
13943 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13944 See \`config.log' for more details." >&5
13945 echo "$as_me: error: cannot compute sizeof (void *), 77
13946 See \`config.log' for more details." >&2;}
13947 { (exit 1); exit 1; }; }
13949 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13954 ac_cv_sizeof_void_p=0
13957 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13958 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13959 cat >>confdefs.h <<_ACEOF
13960 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13966 # Lacking an uint64_t? Test size of long
13967 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
13968 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
13969 echo $ECHO_N "checking for long... $ECHO_C" >&6
13970 if test "${ac_cv_type_long+set}" = set; then
13971 echo $ECHO_N "(cached) $ECHO_C" >&6
13973 cat >conftest.$ac_ext <<_ACEOF
13976 cat confdefs.h >>conftest.$ac_ext
13977 cat >>conftest.$ac_ext <<_ACEOF
13978 /* end confdefs.h. */
13979 $ac_includes_default
13991 rm -f conftest.$ac_objext
13992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13993 (eval $ac_compile) 2>conftest.er1
13995 grep -v '^ *+' conftest.er1 >conftest.err
13997 cat conftest.err >&5
13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); } &&
14000 { ac_try='test -z "$ac_c_werror_flag"
14001 || test ! -s conftest.err'
14002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14003 (eval $ac_try) 2>&5
14005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006 (exit $ac_status); }; } &&
14007 { ac_try='test -s conftest.$ac_objext'
14008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14009 (eval $ac_try) 2>&5
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); }; }; then
14013 ac_cv_type_long=yes
14015 echo "$as_me: failed program was:" >&5
14016 sed 's/^/| /' conftest.$ac_ext >&5
14020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14022 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14023 echo "${ECHO_T}$ac_cv_type_long" >&6
14025 echo "$as_me:$LINENO: checking size of long" >&5
14026 echo $ECHO_N "checking size of long... $ECHO_C" >&6
14027 if test "${ac_cv_sizeof_long+set}" = set; then
14028 echo $ECHO_N "(cached) $ECHO_C" >&6
14030 if test "$ac_cv_type_long" = yes; then
14031 # The cast to unsigned long works around a bug in the HP C Compiler
14032 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14033 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14034 # This bug is HP SR number 8606223364.
14035 if test "$cross_compiling" = yes; then
14036 # Depending upon the size, compute the lo and hi bounds.
14037 cat >conftest.$ac_ext <<_ACEOF
14040 cat confdefs.h >>conftest.$ac_ext
14041 cat >>conftest.$ac_ext <<_ACEOF
14042 /* end confdefs.h. */
14043 $ac_includes_default
14047 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
14054 rm -f conftest.$ac_objext
14055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14056 (eval $ac_compile) 2>conftest.er1
14058 grep -v '^ *+' conftest.er1 >conftest.err
14060 cat conftest.err >&5
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); } &&
14063 { ac_try='test -z "$ac_c_werror_flag"
14064 || test ! -s conftest.err'
14065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14066 (eval $ac_try) 2>&5
14068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069 (exit $ac_status); }; } &&
14070 { ac_try='test -s conftest.$ac_objext'
14071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14072 (eval $ac_try) 2>&5
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); }; }; then
14078 cat >conftest.$ac_ext <<_ACEOF
14081 cat confdefs.h >>conftest.$ac_ext
14082 cat >>conftest.$ac_ext <<_ACEOF
14083 /* end confdefs.h. */
14084 $ac_includes_default
14088 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14095 rm -f conftest.$ac_objext
14096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14097 (eval $ac_compile) 2>conftest.er1
14099 grep -v '^ *+' conftest.er1 >conftest.err
14101 cat conftest.err >&5
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); } &&
14104 { ac_try='test -z "$ac_c_werror_flag"
14105 || test ! -s conftest.err'
14106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14107 (eval $ac_try) 2>&5
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); }; } &&
14111 { ac_try='test -s conftest.$ac_objext'
14112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14113 (eval $ac_try) 2>&5
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); }; }; then
14117 ac_hi=$ac_mid; break
14119 echo "$as_me: failed program was:" >&5
14120 sed 's/^/| /' conftest.$ac_ext >&5
14122 ac_lo=`expr $ac_mid + 1`
14123 if test $ac_lo -le $ac_mid; then
14127 ac_mid=`expr 2 '*' $ac_mid + 1`
14129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14132 echo "$as_me: failed program was:" >&5
14133 sed 's/^/| /' conftest.$ac_ext >&5
14135 cat >conftest.$ac_ext <<_ACEOF
14138 cat confdefs.h >>conftest.$ac_ext
14139 cat >>conftest.$ac_ext <<_ACEOF
14140 /* end confdefs.h. */
14141 $ac_includes_default
14145 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
14152 rm -f conftest.$ac_objext
14153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14154 (eval $ac_compile) 2>conftest.er1
14156 grep -v '^ *+' conftest.er1 >conftest.err
14158 cat conftest.err >&5
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); } &&
14161 { ac_try='test -z "$ac_c_werror_flag"
14162 || test ! -s conftest.err'
14163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14164 (eval $ac_try) 2>&5
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); }; } &&
14168 { ac_try='test -s conftest.$ac_objext'
14169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14170 (eval $ac_try) 2>&5
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); }; }; then
14176 cat >conftest.$ac_ext <<_ACEOF
14179 cat confdefs.h >>conftest.$ac_ext
14180 cat >>conftest.$ac_ext <<_ACEOF
14181 /* end confdefs.h. */
14182 $ac_includes_default
14186 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
14193 rm -f conftest.$ac_objext
14194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14195 (eval $ac_compile) 2>conftest.er1
14197 grep -v '^ *+' conftest.er1 >conftest.err
14199 cat conftest.err >&5
14200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201 (exit $ac_status); } &&
14202 { ac_try='test -z "$ac_c_werror_flag"
14203 || test ! -s conftest.err'
14204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14205 (eval $ac_try) 2>&5
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); }; } &&
14209 { ac_try='test -s conftest.$ac_objext'
14210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14211 (eval $ac_try) 2>&5
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); }; }; then
14215 ac_lo=$ac_mid; break
14217 echo "$as_me: failed program was:" >&5
14218 sed 's/^/| /' conftest.$ac_ext >&5
14220 ac_hi=`expr '(' $ac_mid ')' - 1`
14221 if test $ac_mid -le $ac_hi; then
14225 ac_mid=`expr 2 '*' $ac_mid`
14227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14230 echo "$as_me: failed program was:" >&5
14231 sed 's/^/| /' conftest.$ac_ext >&5
14235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14238 # Binary search between lo and hi bounds.
14239 while test "x$ac_lo" != "x$ac_hi"; do
14240 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14241 cat >conftest.$ac_ext <<_ACEOF
14244 cat confdefs.h >>conftest.$ac_ext
14245 cat >>conftest.$ac_ext <<_ACEOF
14246 /* end confdefs.h. */
14247 $ac_includes_default
14251 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14258 rm -f conftest.$ac_objext
14259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14260 (eval $ac_compile) 2>conftest.er1
14262 grep -v '^ *+' conftest.er1 >conftest.err
14264 cat conftest.err >&5
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); } &&
14267 { ac_try='test -z "$ac_c_werror_flag"
14268 || test ! -s conftest.err'
14269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14270 (eval $ac_try) 2>&5
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); }; } &&
14274 { ac_try='test -s conftest.$ac_objext'
14275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14276 (eval $ac_try) 2>&5
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); }; }; then
14282 echo "$as_me: failed program was:" >&5
14283 sed 's/^/| /' conftest.$ac_ext >&5
14285 ac_lo=`expr '(' $ac_mid ')' + 1`
14287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14290 ?*) ac_cv_sizeof_long=$ac_lo;;
14291 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
14292 See \`config.log' for more details." >&5
14293 echo "$as_me: error: cannot compute sizeof (long), 77
14294 See \`config.log' for more details." >&2;}
14295 { (exit 1); exit 1; }; } ;;
14298 if test "$cross_compiling" = yes; then
14299 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14300 See \`config.log' for more details." >&5
14301 echo "$as_me: error: cannot run test program while cross compiling
14302 See \`config.log' for more details." >&2;}
14303 { (exit 1); exit 1; }; }
14305 cat >conftest.$ac_ext <<_ACEOF
14308 cat confdefs.h >>conftest.$ac_ext
14309 cat >>conftest.$ac_ext <<_ACEOF
14310 /* end confdefs.h. */
14311 $ac_includes_default
14312 long longval () { return (long) (sizeof (long)); }
14313 unsigned long ulongval () { return (long) (sizeof (long)); }
14315 #include <stdlib.h>
14320 FILE *f = fopen ("conftest.val", "w");
14323 if (((long) (sizeof (long))) < 0)
14325 long i = longval ();
14326 if (i != ((long) (sizeof (long))))
14328 fprintf (f, "%ld\n", i);
14332 unsigned long i = ulongval ();
14333 if (i != ((long) (sizeof (long))))
14335 fprintf (f, "%lu\n", i);
14337 exit (ferror (f) || fclose (f) != 0);
14343 rm -f conftest$ac_exeext
14344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14345 (eval $ac_link) 2>&5
14347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14350 (eval $ac_try) 2>&5
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); }; }; then
14354 ac_cv_sizeof_long=`cat conftest.val`
14356 echo "$as_me: program exited with status $ac_status" >&5
14357 echo "$as_me: failed program was:" >&5
14358 sed 's/^/| /' conftest.$ac_ext >&5
14360 ( exit $ac_status )
14361 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
14362 See \`config.log' for more details." >&5
14363 echo "$as_me: error: cannot compute sizeof (long), 77
14364 See \`config.log' for more details." >&2;}
14365 { (exit 1); exit 1; }; }
14367 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14372 ac_cv_sizeof_long=0
14375 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
14376 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
14377 cat >>confdefs.h <<_ACEOF
14378 #define SIZEOF_LONG $ac_cv_sizeof_long
14384 if test $acx_cv_header_stdint = stddef.h; then
14385 # Lacking a good header? Test size of everything and deduce all types.
14386 echo "$as_me:$LINENO: checking for int" >&5
14387 echo $ECHO_N "checking for int... $ECHO_C" >&6
14388 if test "${ac_cv_type_int+set}" = set; then
14389 echo $ECHO_N "(cached) $ECHO_C" >&6
14391 cat >conftest.$ac_ext <<_ACEOF
14394 cat confdefs.h >>conftest.$ac_ext
14395 cat >>conftest.$ac_ext <<_ACEOF
14396 /* end confdefs.h. */
14397 $ac_includes_default
14409 rm -f conftest.$ac_objext
14410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14411 (eval $ac_compile) 2>conftest.er1
14413 grep -v '^ *+' conftest.er1 >conftest.err
14415 cat conftest.err >&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); } &&
14418 { ac_try='test -z "$ac_c_werror_flag"
14419 || test ! -s conftest.err'
14420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14421 (eval $ac_try) 2>&5
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); }; } &&
14425 { ac_try='test -s conftest.$ac_objext'
14426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14427 (eval $ac_try) 2>&5
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); }; }; then
14433 echo "$as_me: failed program was:" >&5
14434 sed 's/^/| /' conftest.$ac_ext >&5
14438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14440 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14441 echo "${ECHO_T}$ac_cv_type_int" >&6
14443 echo "$as_me:$LINENO: checking size of int" >&5
14444 echo $ECHO_N "checking size of int... $ECHO_C" >&6
14445 if test "${ac_cv_sizeof_int+set}" = set; then
14446 echo $ECHO_N "(cached) $ECHO_C" >&6
14448 if test "$ac_cv_type_int" = yes; then
14449 # The cast to unsigned long works around a bug in the HP C Compiler
14450 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14451 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14452 # This bug is HP SR number 8606223364.
14453 if test "$cross_compiling" = yes; then
14454 # Depending upon the size, compute the lo and hi bounds.
14455 cat >conftest.$ac_ext <<_ACEOF
14458 cat confdefs.h >>conftest.$ac_ext
14459 cat >>conftest.$ac_ext <<_ACEOF
14460 /* end confdefs.h. */
14461 $ac_includes_default
14465 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14472 rm -f conftest.$ac_objext
14473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14474 (eval $ac_compile) 2>conftest.er1
14476 grep -v '^ *+' conftest.er1 >conftest.err
14478 cat conftest.err >&5
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); } &&
14481 { ac_try='test -z "$ac_c_werror_flag"
14482 || test ! -s conftest.err'
14483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14484 (eval $ac_try) 2>&5
14486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 (exit $ac_status); }; } &&
14488 { ac_try='test -s conftest.$ac_objext'
14489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14490 (eval $ac_try) 2>&5
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); }; }; then
14496 cat >conftest.$ac_ext <<_ACEOF
14499 cat confdefs.h >>conftest.$ac_ext
14500 cat >>conftest.$ac_ext <<_ACEOF
14501 /* end confdefs.h. */
14502 $ac_includes_default
14506 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14513 rm -f conftest.$ac_objext
14514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14515 (eval $ac_compile) 2>conftest.er1
14517 grep -v '^ *+' conftest.er1 >conftest.err
14519 cat conftest.err >&5
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); } &&
14522 { ac_try='test -z "$ac_c_werror_flag"
14523 || test ! -s conftest.err'
14524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14525 (eval $ac_try) 2>&5
14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 (exit $ac_status); }; } &&
14529 { ac_try='test -s conftest.$ac_objext'
14530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14531 (eval $ac_try) 2>&5
14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); }; }; then
14535 ac_hi=$ac_mid; break
14537 echo "$as_me: failed program was:" >&5
14538 sed 's/^/| /' conftest.$ac_ext >&5
14540 ac_lo=`expr $ac_mid + 1`
14541 if test $ac_lo -le $ac_mid; then
14545 ac_mid=`expr 2 '*' $ac_mid + 1`
14547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14550 echo "$as_me: failed program was:" >&5
14551 sed 's/^/| /' conftest.$ac_ext >&5
14553 cat >conftest.$ac_ext <<_ACEOF
14556 cat confdefs.h >>conftest.$ac_ext
14557 cat >>conftest.$ac_ext <<_ACEOF
14558 /* end confdefs.h. */
14559 $ac_includes_default
14563 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14570 rm -f conftest.$ac_objext
14571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14572 (eval $ac_compile) 2>conftest.er1
14574 grep -v '^ *+' conftest.er1 >conftest.err
14576 cat conftest.err >&5
14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); } &&
14579 { ac_try='test -z "$ac_c_werror_flag"
14580 || test ! -s conftest.err'
14581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14582 (eval $ac_try) 2>&5
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); }; } &&
14586 { ac_try='test -s conftest.$ac_objext'
14587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14588 (eval $ac_try) 2>&5
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); }; }; then
14594 cat >conftest.$ac_ext <<_ACEOF
14597 cat confdefs.h >>conftest.$ac_ext
14598 cat >>conftest.$ac_ext <<_ACEOF
14599 /* end confdefs.h. */
14600 $ac_includes_default
14604 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14611 rm -f conftest.$ac_objext
14612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14613 (eval $ac_compile) 2>conftest.er1
14615 grep -v '^ *+' conftest.er1 >conftest.err
14617 cat conftest.err >&5
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 (exit $ac_status); } &&
14620 { ac_try='test -z "$ac_c_werror_flag"
14621 || test ! -s conftest.err'
14622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14623 (eval $ac_try) 2>&5
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); }; } &&
14627 { ac_try='test -s conftest.$ac_objext'
14628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14629 (eval $ac_try) 2>&5
14631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); }; }; then
14633 ac_lo=$ac_mid; break
14635 echo "$as_me: failed program was:" >&5
14636 sed 's/^/| /' conftest.$ac_ext >&5
14638 ac_hi=`expr '(' $ac_mid ')' - 1`
14639 if test $ac_mid -le $ac_hi; then
14643 ac_mid=`expr 2 '*' $ac_mid`
14645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14648 echo "$as_me: failed program was:" >&5
14649 sed 's/^/| /' conftest.$ac_ext >&5
14653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14656 # Binary search between lo and hi bounds.
14657 while test "x$ac_lo" != "x$ac_hi"; do
14658 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14659 cat >conftest.$ac_ext <<_ACEOF
14662 cat confdefs.h >>conftest.$ac_ext
14663 cat >>conftest.$ac_ext <<_ACEOF
14664 /* end confdefs.h. */
14665 $ac_includes_default
14669 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14676 rm -f conftest.$ac_objext
14677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14678 (eval $ac_compile) 2>conftest.er1
14680 grep -v '^ *+' conftest.er1 >conftest.err
14682 cat conftest.err >&5
14683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); } &&
14685 { ac_try='test -z "$ac_c_werror_flag"
14686 || test ! -s conftest.err'
14687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14688 (eval $ac_try) 2>&5
14690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691 (exit $ac_status); }; } &&
14692 { ac_try='test -s conftest.$ac_objext'
14693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14694 (eval $ac_try) 2>&5
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); }; }; then
14700 echo "$as_me: failed program was:" >&5
14701 sed 's/^/| /' conftest.$ac_ext >&5
14703 ac_lo=`expr '(' $ac_mid ')' + 1`
14705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14708 ?*) ac_cv_sizeof_int=$ac_lo;;
14709 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14710 See \`config.log' for more details." >&5
14711 echo "$as_me: error: cannot compute sizeof (int), 77
14712 See \`config.log' for more details." >&2;}
14713 { (exit 1); exit 1; }; } ;;
14716 if test "$cross_compiling" = yes; then
14717 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14718 See \`config.log' for more details." >&5
14719 echo "$as_me: error: cannot run test program while cross compiling
14720 See \`config.log' for more details." >&2;}
14721 { (exit 1); exit 1; }; }
14723 cat >conftest.$ac_ext <<_ACEOF
14726 cat confdefs.h >>conftest.$ac_ext
14727 cat >>conftest.$ac_ext <<_ACEOF
14728 /* end confdefs.h. */
14729 $ac_includes_default
14730 long longval () { return (long) (sizeof (int)); }
14731 unsigned long ulongval () { return (long) (sizeof (int)); }
14733 #include <stdlib.h>
14738 FILE *f = fopen ("conftest.val", "w");
14741 if (((long) (sizeof (int))) < 0)
14743 long i = longval ();
14744 if (i != ((long) (sizeof (int))))
14746 fprintf (f, "%ld\n", i);
14750 unsigned long i = ulongval ();
14751 if (i != ((long) (sizeof (int))))
14753 fprintf (f, "%lu\n", i);
14755 exit (ferror (f) || fclose (f) != 0);
14761 rm -f conftest$ac_exeext
14762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14763 (eval $ac_link) 2>&5
14765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14768 (eval $ac_try) 2>&5
14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); }; }; then
14772 ac_cv_sizeof_int=`cat conftest.val`
14774 echo "$as_me: program exited with status $ac_status" >&5
14775 echo "$as_me: failed program was:" >&5
14776 sed 's/^/| /' conftest.$ac_ext >&5
14778 ( exit $ac_status )
14779 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14780 See \`config.log' for more details." >&5
14781 echo "$as_me: error: cannot compute sizeof (int), 77
14782 See \`config.log' for more details." >&2;}
14783 { (exit 1); exit 1; }; }
14785 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14793 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14794 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
14795 cat >>confdefs.h <<_ACEOF
14796 #define SIZEOF_INT $ac_cv_sizeof_int
14800 echo "$as_me:$LINENO: checking for short" >&5
14801 echo $ECHO_N "checking for short... $ECHO_C" >&6
14802 if test "${ac_cv_type_short+set}" = set; then
14803 echo $ECHO_N "(cached) $ECHO_C" >&6
14805 cat >conftest.$ac_ext <<_ACEOF
14808 cat confdefs.h >>conftest.$ac_ext
14809 cat >>conftest.$ac_ext <<_ACEOF
14810 /* end confdefs.h. */
14811 $ac_includes_default
14817 if (sizeof (short))
14823 rm -f conftest.$ac_objext
14824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14825 (eval $ac_compile) 2>conftest.er1
14827 grep -v '^ *+' conftest.er1 >conftest.err
14829 cat conftest.err >&5
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); } &&
14832 { ac_try='test -z "$ac_c_werror_flag"
14833 || test ! -s conftest.err'
14834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14835 (eval $ac_try) 2>&5
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 (exit $ac_status); }; } &&
14839 { ac_try='test -s conftest.$ac_objext'
14840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14841 (eval $ac_try) 2>&5
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); }; }; then
14845 ac_cv_type_short=yes
14847 echo "$as_me: failed program was:" >&5
14848 sed 's/^/| /' conftest.$ac_ext >&5
14850 ac_cv_type_short=no
14852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14854 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14855 echo "${ECHO_T}$ac_cv_type_short" >&6
14857 echo "$as_me:$LINENO: checking size of short" >&5
14858 echo $ECHO_N "checking size of short... $ECHO_C" >&6
14859 if test "${ac_cv_sizeof_short+set}" = set; then
14860 echo $ECHO_N "(cached) $ECHO_C" >&6
14862 if test "$ac_cv_type_short" = yes; then
14863 # The cast to unsigned long works around a bug in the HP C Compiler
14864 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14865 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14866 # This bug is HP SR number 8606223364.
14867 if test "$cross_compiling" = yes; then
14868 # Depending upon the size, compute the lo and hi bounds.
14869 cat >conftest.$ac_ext <<_ACEOF
14872 cat confdefs.h >>conftest.$ac_ext
14873 cat >>conftest.$ac_ext <<_ACEOF
14874 /* end confdefs.h. */
14875 $ac_includes_default
14879 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14886 rm -f conftest.$ac_objext
14887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14888 (eval $ac_compile) 2>conftest.er1
14890 grep -v '^ *+' conftest.er1 >conftest.err
14892 cat conftest.err >&5
14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); } &&
14895 { ac_try='test -z "$ac_c_werror_flag"
14896 || test ! -s conftest.err'
14897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14898 (eval $ac_try) 2>&5
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); }; } &&
14902 { ac_try='test -s conftest.$ac_objext'
14903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14904 (eval $ac_try) 2>&5
14906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907 (exit $ac_status); }; }; then
14910 cat >conftest.$ac_ext <<_ACEOF
14913 cat confdefs.h >>conftest.$ac_ext
14914 cat >>conftest.$ac_ext <<_ACEOF
14915 /* end confdefs.h. */
14916 $ac_includes_default
14920 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14927 rm -f conftest.$ac_objext
14928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14929 (eval $ac_compile) 2>conftest.er1
14931 grep -v '^ *+' conftest.er1 >conftest.err
14933 cat conftest.err >&5
14934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14935 (exit $ac_status); } &&
14936 { ac_try='test -z "$ac_c_werror_flag"
14937 || test ! -s conftest.err'
14938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14939 (eval $ac_try) 2>&5
14941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942 (exit $ac_status); }; } &&
14943 { ac_try='test -s conftest.$ac_objext'
14944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14945 (eval $ac_try) 2>&5
14947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948 (exit $ac_status); }; }; then
14949 ac_hi=$ac_mid; break
14951 echo "$as_me: failed program was:" >&5
14952 sed 's/^/| /' conftest.$ac_ext >&5
14954 ac_lo=`expr $ac_mid + 1`
14955 if test $ac_lo -le $ac_mid; then
14959 ac_mid=`expr 2 '*' $ac_mid + 1`
14961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14964 echo "$as_me: failed program was:" >&5
14965 sed 's/^/| /' conftest.$ac_ext >&5
14967 cat >conftest.$ac_ext <<_ACEOF
14970 cat confdefs.h >>conftest.$ac_ext
14971 cat >>conftest.$ac_ext <<_ACEOF
14972 /* end confdefs.h. */
14973 $ac_includes_default
14977 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14984 rm -f conftest.$ac_objext
14985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14986 (eval $ac_compile) 2>conftest.er1
14988 grep -v '^ *+' conftest.er1 >conftest.err
14990 cat conftest.err >&5
14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 (exit $ac_status); } &&
14993 { ac_try='test -z "$ac_c_werror_flag"
14994 || test ! -s conftest.err'
14995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14996 (eval $ac_try) 2>&5
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); }; } &&
15000 { ac_try='test -s conftest.$ac_objext'
15001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15002 (eval $ac_try) 2>&5
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); }; }; then
15008 cat >conftest.$ac_ext <<_ACEOF
15011 cat confdefs.h >>conftest.$ac_ext
15012 cat >>conftest.$ac_ext <<_ACEOF
15013 /* end confdefs.h. */
15014 $ac_includes_default
15018 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15025 rm -f conftest.$ac_objext
15026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15027 (eval $ac_compile) 2>conftest.er1
15029 grep -v '^ *+' conftest.er1 >conftest.err
15031 cat conftest.err >&5
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); } &&
15034 { ac_try='test -z "$ac_c_werror_flag"
15035 || test ! -s conftest.err'
15036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15037 (eval $ac_try) 2>&5
15039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040 (exit $ac_status); }; } &&
15041 { ac_try='test -s conftest.$ac_objext'
15042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15043 (eval $ac_try) 2>&5
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); }; }; then
15047 ac_lo=$ac_mid; break
15049 echo "$as_me: failed program was:" >&5
15050 sed 's/^/| /' conftest.$ac_ext >&5
15052 ac_hi=`expr '(' $ac_mid ')' - 1`
15053 if test $ac_mid -le $ac_hi; then
15057 ac_mid=`expr 2 '*' $ac_mid`
15059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15062 echo "$as_me: failed program was:" >&5
15063 sed 's/^/| /' conftest.$ac_ext >&5
15067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15070 # Binary search between lo and hi bounds.
15071 while test "x$ac_lo" != "x$ac_hi"; do
15072 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15073 cat >conftest.$ac_ext <<_ACEOF
15076 cat confdefs.h >>conftest.$ac_ext
15077 cat >>conftest.$ac_ext <<_ACEOF
15078 /* end confdefs.h. */
15079 $ac_includes_default
15083 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15090 rm -f conftest.$ac_objext
15091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15092 (eval $ac_compile) 2>conftest.er1
15094 grep -v '^ *+' conftest.er1 >conftest.err
15096 cat conftest.err >&5
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); } &&
15099 { ac_try='test -z "$ac_c_werror_flag"
15100 || test ! -s conftest.err'
15101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15102 (eval $ac_try) 2>&5
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); }; } &&
15106 { ac_try='test -s conftest.$ac_objext'
15107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15108 (eval $ac_try) 2>&5
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); }; }; then
15114 echo "$as_me: failed program was:" >&5
15115 sed 's/^/| /' conftest.$ac_ext >&5
15117 ac_lo=`expr '(' $ac_mid ')' + 1`
15119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15122 ?*) ac_cv_sizeof_short=$ac_lo;;
15123 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15124 See \`config.log' for more details." >&5
15125 echo "$as_me: error: cannot compute sizeof (short), 77
15126 See \`config.log' for more details." >&2;}
15127 { (exit 1); exit 1; }; } ;;
15130 if test "$cross_compiling" = yes; then
15131 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15132 See \`config.log' for more details." >&5
15133 echo "$as_me: error: cannot run test program while cross compiling
15134 See \`config.log' for more details." >&2;}
15135 { (exit 1); exit 1; }; }
15137 cat >conftest.$ac_ext <<_ACEOF
15140 cat confdefs.h >>conftest.$ac_ext
15141 cat >>conftest.$ac_ext <<_ACEOF
15142 /* end confdefs.h. */
15143 $ac_includes_default
15144 long longval () { return (long) (sizeof (short)); }
15145 unsigned long ulongval () { return (long) (sizeof (short)); }
15147 #include <stdlib.h>
15152 FILE *f = fopen ("conftest.val", "w");
15155 if (((long) (sizeof (short))) < 0)
15157 long i = longval ();
15158 if (i != ((long) (sizeof (short))))
15160 fprintf (f, "%ld\n", i);
15164 unsigned long i = ulongval ();
15165 if (i != ((long) (sizeof (short))))
15167 fprintf (f, "%lu\n", i);
15169 exit (ferror (f) || fclose (f) != 0);
15175 rm -f conftest$ac_exeext
15176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15177 (eval $ac_link) 2>&5
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15182 (eval $ac_try) 2>&5
15184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185 (exit $ac_status); }; }; then
15186 ac_cv_sizeof_short=`cat conftest.val`
15188 echo "$as_me: program exited with status $ac_status" >&5
15189 echo "$as_me: failed program was:" >&5
15190 sed 's/^/| /' conftest.$ac_ext >&5
15192 ( exit $ac_status )
15193 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15194 See \`config.log' for more details." >&5
15195 echo "$as_me: error: cannot compute sizeof (short), 77
15196 See \`config.log' for more details." >&2;}
15197 { (exit 1); exit 1; }; }
15199 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15204 ac_cv_sizeof_short=0
15207 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15208 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15209 cat >>confdefs.h <<_ACEOF
15210 #define SIZEOF_SHORT $ac_cv_sizeof_short
15214 echo "$as_me:$LINENO: checking for char" >&5
15215 echo $ECHO_N "checking for char... $ECHO_C" >&6
15216 if test "${ac_cv_type_char+set}" = set; then
15217 echo $ECHO_N "(cached) $ECHO_C" >&6
15219 cat >conftest.$ac_ext <<_ACEOF
15222 cat confdefs.h >>conftest.$ac_ext
15223 cat >>conftest.$ac_ext <<_ACEOF
15224 /* end confdefs.h. */
15225 $ac_includes_default
15237 rm -f conftest.$ac_objext
15238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15239 (eval $ac_compile) 2>conftest.er1
15241 grep -v '^ *+' conftest.er1 >conftest.err
15243 cat conftest.err >&5
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); } &&
15246 { ac_try='test -z "$ac_c_werror_flag"
15247 || test ! -s conftest.err'
15248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15249 (eval $ac_try) 2>&5
15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 (exit $ac_status); }; } &&
15253 { ac_try='test -s conftest.$ac_objext'
15254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15255 (eval $ac_try) 2>&5
15257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); }; }; then
15259 ac_cv_type_char=yes
15261 echo "$as_me: failed program was:" >&5
15262 sed 's/^/| /' conftest.$ac_ext >&5
15266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15268 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15269 echo "${ECHO_T}$ac_cv_type_char" >&6
15271 echo "$as_me:$LINENO: checking size of char" >&5
15272 echo $ECHO_N "checking size of char... $ECHO_C" >&6
15273 if test "${ac_cv_sizeof_char+set}" = set; then
15274 echo $ECHO_N "(cached) $ECHO_C" >&6
15276 if test "$ac_cv_type_char" = yes; then
15277 # The cast to unsigned long works around a bug in the HP C Compiler
15278 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15279 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15280 # This bug is HP SR number 8606223364.
15281 if test "$cross_compiling" = yes; then
15282 # Depending upon the size, compute the lo and hi bounds.
15283 cat >conftest.$ac_ext <<_ACEOF
15286 cat confdefs.h >>conftest.$ac_ext
15287 cat >>conftest.$ac_ext <<_ACEOF
15288 /* end confdefs.h. */
15289 $ac_includes_default
15293 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15300 rm -f conftest.$ac_objext
15301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15302 (eval $ac_compile) 2>conftest.er1
15304 grep -v '^ *+' conftest.er1 >conftest.err
15306 cat conftest.err >&5
15307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308 (exit $ac_status); } &&
15309 { ac_try='test -z "$ac_c_werror_flag"
15310 || test ! -s conftest.err'
15311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15312 (eval $ac_try) 2>&5
15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); }; } &&
15316 { ac_try='test -s conftest.$ac_objext'
15317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15318 (eval $ac_try) 2>&5
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); }; }; then
15324 cat >conftest.$ac_ext <<_ACEOF
15327 cat confdefs.h >>conftest.$ac_ext
15328 cat >>conftest.$ac_ext <<_ACEOF
15329 /* end confdefs.h. */
15330 $ac_includes_default
15334 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15341 rm -f conftest.$ac_objext
15342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15343 (eval $ac_compile) 2>conftest.er1
15345 grep -v '^ *+' conftest.er1 >conftest.err
15347 cat conftest.err >&5
15348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349 (exit $ac_status); } &&
15350 { ac_try='test -z "$ac_c_werror_flag"
15351 || test ! -s conftest.err'
15352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15353 (eval $ac_try) 2>&5
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); }; } &&
15357 { ac_try='test -s conftest.$ac_objext'
15358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15359 (eval $ac_try) 2>&5
15361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); }; }; then
15363 ac_hi=$ac_mid; break
15365 echo "$as_me: failed program was:" >&5
15366 sed 's/^/| /' conftest.$ac_ext >&5
15368 ac_lo=`expr $ac_mid + 1`
15369 if test $ac_lo -le $ac_mid; then
15373 ac_mid=`expr 2 '*' $ac_mid + 1`
15375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15378 echo "$as_me: failed program was:" >&5
15379 sed 's/^/| /' conftest.$ac_ext >&5
15381 cat >conftest.$ac_ext <<_ACEOF
15384 cat confdefs.h >>conftest.$ac_ext
15385 cat >>conftest.$ac_ext <<_ACEOF
15386 /* end confdefs.h. */
15387 $ac_includes_default
15391 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15398 rm -f conftest.$ac_objext
15399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15400 (eval $ac_compile) 2>conftest.er1
15402 grep -v '^ *+' conftest.er1 >conftest.err
15404 cat conftest.err >&5
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); } &&
15407 { ac_try='test -z "$ac_c_werror_flag"
15408 || test ! -s conftest.err'
15409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15410 (eval $ac_try) 2>&5
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); }; } &&
15414 { ac_try='test -s conftest.$ac_objext'
15415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15416 (eval $ac_try) 2>&5
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); }; }; then
15422 cat >conftest.$ac_ext <<_ACEOF
15425 cat confdefs.h >>conftest.$ac_ext
15426 cat >>conftest.$ac_ext <<_ACEOF
15427 /* end confdefs.h. */
15428 $ac_includes_default
15432 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15439 rm -f conftest.$ac_objext
15440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15441 (eval $ac_compile) 2>conftest.er1
15443 grep -v '^ *+' conftest.er1 >conftest.err
15445 cat conftest.err >&5
15446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447 (exit $ac_status); } &&
15448 { ac_try='test -z "$ac_c_werror_flag"
15449 || test ! -s conftest.err'
15450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15451 (eval $ac_try) 2>&5
15453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454 (exit $ac_status); }; } &&
15455 { ac_try='test -s conftest.$ac_objext'
15456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15457 (eval $ac_try) 2>&5
15459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460 (exit $ac_status); }; }; then
15461 ac_lo=$ac_mid; break
15463 echo "$as_me: failed program was:" >&5
15464 sed 's/^/| /' conftest.$ac_ext >&5
15466 ac_hi=`expr '(' $ac_mid ')' - 1`
15467 if test $ac_mid -le $ac_hi; then
15471 ac_mid=`expr 2 '*' $ac_mid`
15473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15476 echo "$as_me: failed program was:" >&5
15477 sed 's/^/| /' conftest.$ac_ext >&5
15481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15484 # Binary search between lo and hi bounds.
15485 while test "x$ac_lo" != "x$ac_hi"; do
15486 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15487 cat >conftest.$ac_ext <<_ACEOF
15490 cat confdefs.h >>conftest.$ac_ext
15491 cat >>conftest.$ac_ext <<_ACEOF
15492 /* end confdefs.h. */
15493 $ac_includes_default
15497 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15504 rm -f conftest.$ac_objext
15505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15506 (eval $ac_compile) 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_objext'
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
15528 echo "$as_me: failed program was:" >&5
15529 sed 's/^/| /' conftest.$ac_ext >&5
15531 ac_lo=`expr '(' $ac_mid ')' + 1`
15533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15536 ?*) ac_cv_sizeof_char=$ac_lo;;
15537 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15538 See \`config.log' for more details." >&5
15539 echo "$as_me: error: cannot compute sizeof (char), 77
15540 See \`config.log' for more details." >&2;}
15541 { (exit 1); exit 1; }; } ;;
15544 if test "$cross_compiling" = yes; then
15545 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15546 See \`config.log' for more details." >&5
15547 echo "$as_me: error: cannot run test program while cross compiling
15548 See \`config.log' for more details." >&2;}
15549 { (exit 1); exit 1; }; }
15551 cat >conftest.$ac_ext <<_ACEOF
15554 cat confdefs.h >>conftest.$ac_ext
15555 cat >>conftest.$ac_ext <<_ACEOF
15556 /* end confdefs.h. */
15557 $ac_includes_default
15558 long longval () { return (long) (sizeof (char)); }
15559 unsigned long ulongval () { return (long) (sizeof (char)); }
15561 #include <stdlib.h>
15566 FILE *f = fopen ("conftest.val", "w");
15569 if (((long) (sizeof (char))) < 0)
15571 long i = longval ();
15572 if (i != ((long) (sizeof (char))))
15574 fprintf (f, "%ld\n", i);
15578 unsigned long i = ulongval ();
15579 if (i != ((long) (sizeof (char))))
15581 fprintf (f, "%lu\n", i);
15583 exit (ferror (f) || fclose (f) != 0);
15589 rm -f conftest$ac_exeext
15590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15591 (eval $ac_link) 2>&5
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15596 (eval $ac_try) 2>&5
15598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599 (exit $ac_status); }; }; then
15600 ac_cv_sizeof_char=`cat conftest.val`
15602 echo "$as_me: program exited with status $ac_status" >&5
15603 echo "$as_me: failed program was:" >&5
15604 sed 's/^/| /' conftest.$ac_ext >&5
15606 ( exit $ac_status )
15607 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15608 See \`config.log' for more details." >&5
15609 echo "$as_me: error: cannot compute sizeof (char), 77
15610 See \`config.log' for more details." >&2;}
15611 { (exit 1); exit 1; }; }
15613 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15618 ac_cv_sizeof_char=0
15621 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15622 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15623 cat >>confdefs.h <<_ACEOF
15624 #define SIZEOF_CHAR $ac_cv_sizeof_char
15629 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
15630 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
15631 case "$ac_cv_sizeof_char" in
15632 1) acx_cv_type_int8_t=char ;;
15633 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
15634 echo "$as_me: error: no 8-bit type" >&2;}
15635 { (exit please report a bug); exit please report a bug; }; }
15637 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
15638 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
15640 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
15641 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
15642 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15643 2:*) acx_cv_type_int16_t=int ;;
15644 *:2) acx_cv_type_int16_t=short ;;
15645 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
15646 echo "$as_me: error: no 16-bit type" >&2;}
15647 { (exit please report a bug); exit please report a bug; }; }
15649 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
15650 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
15652 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
15653 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
15654 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15655 4:*) acx_cv_type_int32_t=int ;;
15656 *:4) acx_cv_type_int32_t=long ;;
15657 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
15658 echo "$as_me: error: no 32-bit type" >&2;}
15659 { (exit please report a bug); exit please report a bug; }; }
15661 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
15662 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
15665 # These tests are here to make the output prettier
15667 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15668 case "$ac_cv_sizeof_long" in
15669 8) acx_cv_type_int64_t=long ;;
15671 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
15672 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
15673 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15674 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
15677 # Now we can use the above types
15679 if test "$ac_cv_type_uintptr_t" != yes; then
15680 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
15681 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
15682 case $ac_cv_sizeof_void_p in
15683 2) acx_cv_type_intptr_t=int16_t ;;
15684 4) acx_cv_type_intptr_t=int32_t ;;
15685 8) acx_cv_type_intptr_t=int64_t ;;
15686 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
15687 echo "$as_me: error: no equivalent for intptr_t" >&2;}
15688 { (exit please report a bug); exit please report a bug; }; }
15690 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
15691 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
15694 # ----------------- done all checks, emit header -------------
15695 ac_config_commands="$ac_config_commands bfd_stdint.h"
15699 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15700 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
15701 if test "${ac_cv_header_time+set}" = set; then
15702 echo $ECHO_N "(cached) $ECHO_C" >&6
15704 cat >conftest.$ac_ext <<_ACEOF
15707 cat confdefs.h >>conftest.$ac_ext
15708 cat >>conftest.$ac_ext <<_ACEOF
15709 /* end confdefs.h. */
15710 #include <sys/types.h>
15711 #include <sys/time.h>
15717 if ((struct tm *) 0)
15723 rm -f conftest.$ac_objext
15724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15725 (eval $ac_compile) 2>conftest.er1
15727 grep -v '^ *+' conftest.er1 >conftest.err
15729 cat conftest.err >&5
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); } &&
15732 { ac_try='test -z "$ac_c_werror_flag"
15733 || test ! -s conftest.err'
15734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15735 (eval $ac_try) 2>&5
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); }; } &&
15739 { ac_try='test -s conftest.$ac_objext'
15740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15741 (eval $ac_try) 2>&5
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); }; }; then
15745 ac_cv_header_time=yes
15747 echo "$as_me: failed program was:" >&5
15748 sed 's/^/| /' conftest.$ac_ext >&5
15750 ac_cv_header_time=no
15752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15754 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15755 echo "${ECHO_T}$ac_cv_header_time" >&6
15756 if test $ac_cv_header_time = yes; then
15758 cat >>confdefs.h <<\_ACEOF
15759 #define TIME_WITH_SYS_TIME 1
15769 ac_header_dirent=no
15770 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15771 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15772 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15773 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
15774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15775 echo $ECHO_N "(cached) $ECHO_C" >&6
15777 cat >conftest.$ac_ext <<_ACEOF
15780 cat confdefs.h >>conftest.$ac_ext
15781 cat >>conftest.$ac_ext <<_ACEOF
15782 /* end confdefs.h. */
15783 #include <sys/types.h>
15795 rm -f conftest.$ac_objext
15796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15797 (eval $ac_compile) 2>conftest.er1
15799 grep -v '^ *+' conftest.er1 >conftest.err
15801 cat conftest.err >&5
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); } &&
15804 { ac_try='test -z "$ac_c_werror_flag"
15805 || test ! -s conftest.err'
15806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15807 (eval $ac_try) 2>&5
15809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810 (exit $ac_status); }; } &&
15811 { ac_try='test -s conftest.$ac_objext'
15812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15813 (eval $ac_try) 2>&5
15815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816 (exit $ac_status); }; }; then
15817 eval "$as_ac_Header=yes"
15819 echo "$as_me: failed program was:" >&5
15820 sed 's/^/| /' conftest.$ac_ext >&5
15822 eval "$as_ac_Header=no"
15824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15829 cat >>confdefs.h <<_ACEOF
15830 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15833 ac_header_dirent=$ac_hdr; break
15837 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15838 if test $ac_header_dirent = dirent.h; then
15839 echo "$as_me:$LINENO: checking for library containing opendir" >&5
15840 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
15841 if test "${ac_cv_search_opendir+set}" = set; then
15842 echo $ECHO_N "(cached) $ECHO_C" >&6
15844 ac_func_search_save_LIBS=$LIBS
15845 ac_cv_search_opendir=no
15846 cat >conftest.$ac_ext <<_ACEOF
15849 cat confdefs.h >>conftest.$ac_ext
15850 cat >>conftest.$ac_ext <<_ACEOF
15851 /* end confdefs.h. */
15853 /* Override any gcc2 internal prototype to avoid an error. */
15857 /* We use char because int might match the return type of a gcc2
15858 builtin and then its argument prototype would still apply. */
15868 rm -f conftest.$ac_objext conftest$ac_exeext
15869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15870 (eval $ac_link) 2>conftest.er1
15872 grep -v '^ *+' conftest.er1 >conftest.err
15874 cat conftest.err >&5
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); } &&
15877 { ac_try='test -z "$ac_c_werror_flag"
15878 || test ! -s conftest.err'
15879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15880 (eval $ac_try) 2>&5
15882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883 (exit $ac_status); }; } &&
15884 { ac_try='test -s conftest$ac_exeext'
15885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15886 (eval $ac_try) 2>&5
15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); }; }; then
15890 ac_cv_search_opendir="none required"
15892 echo "$as_me: failed program was:" >&5
15893 sed 's/^/| /' conftest.$ac_ext >&5
15896 rm -f conftest.err conftest.$ac_objext \
15897 conftest$ac_exeext conftest.$ac_ext
15898 if test "$ac_cv_search_opendir" = no; then
15899 for ac_lib in dir; do
15900 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15901 cat >conftest.$ac_ext <<_ACEOF
15904 cat confdefs.h >>conftest.$ac_ext
15905 cat >>conftest.$ac_ext <<_ACEOF
15906 /* end confdefs.h. */
15908 /* Override any gcc2 internal prototype to avoid an error. */
15912 /* We use char because int might match the return type of a gcc2
15913 builtin and then its argument prototype would still apply. */
15923 rm -f conftest.$ac_objext conftest$ac_exeext
15924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15925 (eval $ac_link) 2>conftest.er1
15927 grep -v '^ *+' conftest.er1 >conftest.err
15929 cat conftest.err >&5
15930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931 (exit $ac_status); } &&
15932 { ac_try='test -z "$ac_c_werror_flag"
15933 || test ! -s conftest.err'
15934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15935 (eval $ac_try) 2>&5
15937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938 (exit $ac_status); }; } &&
15939 { ac_try='test -s conftest$ac_exeext'
15940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15941 (eval $ac_try) 2>&5
15943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944 (exit $ac_status); }; }; then
15945 ac_cv_search_opendir="-l$ac_lib"
15948 echo "$as_me: failed program was:" >&5
15949 sed 's/^/| /' conftest.$ac_ext >&5
15952 rm -f conftest.err conftest.$ac_objext \
15953 conftest$ac_exeext conftest.$ac_ext
15956 LIBS=$ac_func_search_save_LIBS
15958 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15959 echo "${ECHO_T}$ac_cv_search_opendir" >&6
15960 if test "$ac_cv_search_opendir" != no; then
15961 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
15966 echo "$as_me:$LINENO: checking for library containing opendir" >&5
15967 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
15968 if test "${ac_cv_search_opendir+set}" = set; then
15969 echo $ECHO_N "(cached) $ECHO_C" >&6
15971 ac_func_search_save_LIBS=$LIBS
15972 ac_cv_search_opendir=no
15973 cat >conftest.$ac_ext <<_ACEOF
15976 cat confdefs.h >>conftest.$ac_ext
15977 cat >>conftest.$ac_ext <<_ACEOF
15978 /* end confdefs.h. */
15980 /* Override any gcc2 internal prototype to avoid an error. */
15984 /* We use char because int might match the return type of a gcc2
15985 builtin and then its argument prototype would still apply. */
15995 rm -f conftest.$ac_objext conftest$ac_exeext
15996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15997 (eval $ac_link) 2>conftest.er1
15999 grep -v '^ *+' conftest.er1 >conftest.err
16001 cat conftest.err >&5
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); } &&
16004 { ac_try='test -z "$ac_c_werror_flag"
16005 || test ! -s conftest.err'
16006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16007 (eval $ac_try) 2>&5
16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); }; } &&
16011 { ac_try='test -s conftest$ac_exeext'
16012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16013 (eval $ac_try) 2>&5
16015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016 (exit $ac_status); }; }; then
16017 ac_cv_search_opendir="none required"
16019 echo "$as_me: failed program was:" >&5
16020 sed 's/^/| /' conftest.$ac_ext >&5
16023 rm -f conftest.err conftest.$ac_objext \
16024 conftest$ac_exeext conftest.$ac_ext
16025 if test "$ac_cv_search_opendir" = no; then
16026 for ac_lib in x; do
16027 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16028 cat >conftest.$ac_ext <<_ACEOF
16031 cat confdefs.h >>conftest.$ac_ext
16032 cat >>conftest.$ac_ext <<_ACEOF
16033 /* end confdefs.h. */
16035 /* Override any gcc2 internal prototype to avoid an error. */
16039 /* We use char because int might match the return type of a gcc2
16040 builtin and then its argument prototype would still apply. */
16050 rm -f conftest.$ac_objext conftest$ac_exeext
16051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16052 (eval $ac_link) 2>conftest.er1
16054 grep -v '^ *+' conftest.er1 >conftest.err
16056 cat conftest.err >&5
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); } &&
16059 { ac_try='test -z "$ac_c_werror_flag"
16060 || test ! -s conftest.err'
16061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16062 (eval $ac_try) 2>&5
16064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065 (exit $ac_status); }; } &&
16066 { ac_try='test -s conftest$ac_exeext'
16067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16068 (eval $ac_try) 2>&5
16070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071 (exit $ac_status); }; }; then
16072 ac_cv_search_opendir="-l$ac_lib"
16075 echo "$as_me: failed program was:" >&5
16076 sed 's/^/| /' conftest.$ac_ext >&5
16079 rm -f conftest.err conftest.$ac_objext \
16080 conftest$ac_exeext conftest.$ac_ext
16083 LIBS=$ac_func_search_save_LIBS
16085 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16086 echo "${ECHO_T}$ac_cv_search_opendir" >&6
16087 if test "$ac_cv_search_opendir" != no; then
16088 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
16094 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
16095 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
16096 if test "${gcc_cv_header_string+set}" = set; then
16097 echo $ECHO_N "(cached) $ECHO_C" >&6
16099 cat >conftest.$ac_ext <<_ACEOF
16102 cat confdefs.h >>conftest.$ac_ext
16103 cat >>conftest.$ac_ext <<_ACEOF
16104 /* end confdefs.h. */
16105 #include <string.h>
16106 #include <strings.h>
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 gcc_cv_header_string=yes
16139 echo "$as_me: failed program was:" >&5
16140 sed 's/^/| /' conftest.$ac_ext >&5
16142 gcc_cv_header_string=no
16144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16146 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
16147 echo "${ECHO_T}$gcc_cv_header_string" >&6
16148 if test $gcc_cv_header_string = yes; then
16150 cat >>confdefs.h <<\_ACEOF
16151 #define STRING_WITH_STRINGS 1
16163 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
16165 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16166 echo "$as_me:$LINENO: checking for $ac_func" >&5
16167 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16168 if eval "test \"\${$as_ac_var+set}\" = set"; then
16169 echo $ECHO_N "(cached) $ECHO_C" >&6
16171 cat >conftest.$ac_ext <<_ACEOF
16174 cat confdefs.h >>conftest.$ac_ext
16175 cat >>conftest.$ac_ext <<_ACEOF
16176 /* end confdefs.h. */
16177 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16179 #define $ac_func innocuous_$ac_func
16181 /* System header to define __stub macros and hopefully few prototypes,
16182 which can conflict with char $ac_func (); below.
16183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16184 <limits.h> exists even on freestanding compilers. */
16187 # include <limits.h>
16189 # include <assert.h>
16194 /* Override any gcc2 internal prototype to avoid an error. */
16199 /* We use char because int might match the return type of a gcc2
16200 builtin and then its argument prototype would still apply. */
16202 /* The GNU C library defines this for functions which it implements
16203 to always fail with ENOSYS. Some functions are actually named
16204 something starting with __ and the normal name is an alias. */
16205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16208 char (*f) () = $ac_func;
16217 return f != $ac_func;
16222 rm -f conftest.$ac_objext conftest$ac_exeext
16223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16224 (eval $ac_link) 2>conftest.er1
16226 grep -v '^ *+' conftest.er1 >conftest.err
16228 cat conftest.err >&5
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); } &&
16231 { ac_try='test -z "$ac_c_werror_flag"
16232 || test ! -s conftest.err'
16233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16234 (eval $ac_try) 2>&5
16236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237 (exit $ac_status); }; } &&
16238 { ac_try='test -s conftest$ac_exeext'
16239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16240 (eval $ac_try) 2>&5
16242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243 (exit $ac_status); }; }; then
16244 eval "$as_ac_var=yes"
16246 echo "$as_me: failed program was:" >&5
16247 sed 's/^/| /' conftest.$ac_ext >&5
16249 eval "$as_ac_var=no"
16251 rm -f conftest.err conftest.$ac_objext \
16252 conftest$ac_exeext conftest.$ac_ext
16254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16255 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16256 if test `eval echo '${'$as_ac_var'}'` = yes; then
16257 cat >>confdefs.h <<_ACEOF
16258 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16265 for ac_func in strtoull
16267 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16268 echo "$as_me:$LINENO: checking for $ac_func" >&5
16269 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16270 if eval "test \"\${$as_ac_var+set}\" = set"; then
16271 echo $ECHO_N "(cached) $ECHO_C" >&6
16273 cat >conftest.$ac_ext <<_ACEOF
16276 cat confdefs.h >>conftest.$ac_ext
16277 cat >>conftest.$ac_ext <<_ACEOF
16278 /* end confdefs.h. */
16279 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16281 #define $ac_func innocuous_$ac_func
16283 /* System header to define __stub macros and hopefully few prototypes,
16284 which can conflict with char $ac_func (); below.
16285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16286 <limits.h> exists even on freestanding compilers. */
16289 # include <limits.h>
16291 # include <assert.h>
16296 /* Override any gcc2 internal prototype to avoid an error. */
16301 /* We use char because int might match the return type of a gcc2
16302 builtin and then its argument prototype would still apply. */
16304 /* The GNU C library defines this for functions which it implements
16305 to always fail with ENOSYS. Some functions are actually named
16306 something starting with __ and the normal name is an alias. */
16307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16310 char (*f) () = $ac_func;
16319 return f != $ac_func;
16324 rm -f conftest.$ac_objext conftest$ac_exeext
16325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16326 (eval $ac_link) 2>conftest.er1
16328 grep -v '^ *+' conftest.er1 >conftest.err
16330 cat conftest.err >&5
16331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332 (exit $ac_status); } &&
16333 { ac_try='test -z "$ac_c_werror_flag"
16334 || test ! -s conftest.err'
16335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16336 (eval $ac_try) 2>&5
16338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); }; } &&
16340 { ac_try='test -s conftest$ac_exeext'
16341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16342 (eval $ac_try) 2>&5
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); }; }; then
16346 eval "$as_ac_var=yes"
16348 echo "$as_me: failed program was:" >&5
16349 sed 's/^/| /' conftest.$ac_ext >&5
16351 eval "$as_ac_var=no"
16353 rm -f conftest.err conftest.$ac_objext \
16354 conftest$ac_exeext conftest.$ac_ext
16356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16357 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16358 if test `eval echo '${'$as_ac_var'}'` = yes; then
16359 cat >>confdefs.h <<_ACEOF
16360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16367 echo "$as_me:$LINENO: checking whether basename is declared" >&5
16368 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
16369 if test "${ac_cv_have_decl_basename+set}" = set; then
16370 echo $ECHO_N "(cached) $ECHO_C" >&6
16372 cat >conftest.$ac_ext <<_ACEOF
16375 cat confdefs.h >>conftest.$ac_ext
16376 cat >>conftest.$ac_ext <<_ACEOF
16377 /* end confdefs.h. */
16378 $ac_includes_default
16383 char *p = (char *) basename;
16390 rm -f conftest.$ac_objext
16391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16392 (eval $ac_compile) 2>conftest.er1
16394 grep -v '^ *+' conftest.er1 >conftest.err
16396 cat conftest.err >&5
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); } &&
16399 { ac_try='test -z "$ac_c_werror_flag"
16400 || test ! -s conftest.err'
16401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16402 (eval $ac_try) 2>&5
16404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405 (exit $ac_status); }; } &&
16406 { ac_try='test -s conftest.$ac_objext'
16407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16408 (eval $ac_try) 2>&5
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); }; }; then
16412 ac_cv_have_decl_basename=yes
16414 echo "$as_me: failed program was:" >&5
16415 sed 's/^/| /' conftest.$ac_ext >&5
16417 ac_cv_have_decl_basename=no
16419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16421 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
16422 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
16423 if test $ac_cv_have_decl_basename = yes; then
16425 cat >>confdefs.h <<_ACEOF
16426 #define HAVE_DECL_BASENAME 1
16431 cat >>confdefs.h <<_ACEOF
16432 #define HAVE_DECL_BASENAME 0
16439 echo "$as_me:$LINENO: checking whether ftello is declared" >&5
16440 echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
16441 if test "${ac_cv_have_decl_ftello+set}" = set; then
16442 echo $ECHO_N "(cached) $ECHO_C" >&6
16444 cat >conftest.$ac_ext <<_ACEOF
16447 cat confdefs.h >>conftest.$ac_ext
16448 cat >>conftest.$ac_ext <<_ACEOF
16449 /* end confdefs.h. */
16450 $ac_includes_default
16455 char *p = (char *) ftello;
16462 rm -f conftest.$ac_objext
16463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16464 (eval $ac_compile) 2>conftest.er1
16466 grep -v '^ *+' conftest.er1 >conftest.err
16468 cat conftest.err >&5
16469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470 (exit $ac_status); } &&
16471 { ac_try='test -z "$ac_c_werror_flag"
16472 || test ! -s conftest.err'
16473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16474 (eval $ac_try) 2>&5
16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); }; } &&
16478 { ac_try='test -s conftest.$ac_objext'
16479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16480 (eval $ac_try) 2>&5
16482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483 (exit $ac_status); }; }; then
16484 ac_cv_have_decl_ftello=yes
16486 echo "$as_me: failed program was:" >&5
16487 sed 's/^/| /' conftest.$ac_ext >&5
16489 ac_cv_have_decl_ftello=no
16491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16493 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
16494 echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
16495 if test $ac_cv_have_decl_ftello = yes; then
16497 cat >>confdefs.h <<_ACEOF
16498 #define HAVE_DECL_FTELLO 1
16503 cat >>confdefs.h <<_ACEOF
16504 #define HAVE_DECL_FTELLO 0
16511 echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
16512 echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
16513 if test "${ac_cv_have_decl_ftello64+set}" = set; then
16514 echo $ECHO_N "(cached) $ECHO_C" >&6
16516 cat >conftest.$ac_ext <<_ACEOF
16519 cat confdefs.h >>conftest.$ac_ext
16520 cat >>conftest.$ac_ext <<_ACEOF
16521 /* end confdefs.h. */
16522 $ac_includes_default
16527 char *p = (char *) ftello64;
16534 rm -f conftest.$ac_objext
16535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16536 (eval $ac_compile) 2>conftest.er1
16538 grep -v '^ *+' conftest.er1 >conftest.err
16540 cat conftest.err >&5
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); } &&
16543 { ac_try='test -z "$ac_c_werror_flag"
16544 || test ! -s conftest.err'
16545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16546 (eval $ac_try) 2>&5
16548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549 (exit $ac_status); }; } &&
16550 { ac_try='test -s conftest.$ac_objext'
16551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16552 (eval $ac_try) 2>&5
16554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555 (exit $ac_status); }; }; then
16556 ac_cv_have_decl_ftello64=yes
16558 echo "$as_me: failed program was:" >&5
16559 sed 's/^/| /' conftest.$ac_ext >&5
16561 ac_cv_have_decl_ftello64=no
16563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16565 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
16566 echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
16567 if test $ac_cv_have_decl_ftello64 = yes; then
16569 cat >>confdefs.h <<_ACEOF
16570 #define HAVE_DECL_FTELLO64 1
16575 cat >>confdefs.h <<_ACEOF
16576 #define HAVE_DECL_FTELLO64 0
16583 echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
16584 echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
16585 if test "${ac_cv_have_decl_fseeko+set}" = set; then
16586 echo $ECHO_N "(cached) $ECHO_C" >&6
16588 cat >conftest.$ac_ext <<_ACEOF
16591 cat confdefs.h >>conftest.$ac_ext
16592 cat >>conftest.$ac_ext <<_ACEOF
16593 /* end confdefs.h. */
16594 $ac_includes_default
16599 char *p = (char *) fseeko;
16606 rm -f conftest.$ac_objext
16607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16608 (eval $ac_compile) 2>conftest.er1
16610 grep -v '^ *+' conftest.er1 >conftest.err
16612 cat conftest.err >&5
16613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614 (exit $ac_status); } &&
16615 { ac_try='test -z "$ac_c_werror_flag"
16616 || test ! -s conftest.err'
16617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16618 (eval $ac_try) 2>&5
16620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621 (exit $ac_status); }; } &&
16622 { ac_try='test -s conftest.$ac_objext'
16623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16624 (eval $ac_try) 2>&5
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); }; }; then
16628 ac_cv_have_decl_fseeko=yes
16630 echo "$as_me: failed program was:" >&5
16631 sed 's/^/| /' conftest.$ac_ext >&5
16633 ac_cv_have_decl_fseeko=no
16635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16637 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
16638 echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
16639 if test $ac_cv_have_decl_fseeko = yes; then
16641 cat >>confdefs.h <<_ACEOF
16642 #define HAVE_DECL_FSEEKO 1
16647 cat >>confdefs.h <<_ACEOF
16648 #define HAVE_DECL_FSEEKO 0
16655 echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
16656 echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
16657 if test "${ac_cv_have_decl_fseeko64+set}" = set; then
16658 echo $ECHO_N "(cached) $ECHO_C" >&6
16660 cat >conftest.$ac_ext <<_ACEOF
16663 cat confdefs.h >>conftest.$ac_ext
16664 cat >>conftest.$ac_ext <<_ACEOF
16665 /* end confdefs.h. */
16666 $ac_includes_default
16671 char *p = (char *) fseeko64;
16678 rm -f conftest.$ac_objext
16679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16680 (eval $ac_compile) 2>conftest.er1
16682 grep -v '^ *+' conftest.er1 >conftest.err
16684 cat conftest.err >&5
16685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686 (exit $ac_status); } &&
16687 { ac_try='test -z "$ac_c_werror_flag"
16688 || test ! -s conftest.err'
16689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16690 (eval $ac_try) 2>&5
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); }; } &&
16694 { ac_try='test -s conftest.$ac_objext'
16695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16696 (eval $ac_try) 2>&5
16698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699 (exit $ac_status); }; }; then
16700 ac_cv_have_decl_fseeko64=yes
16702 echo "$as_me: failed program was:" >&5
16703 sed 's/^/| /' conftest.$ac_ext >&5
16705 ac_cv_have_decl_fseeko64=no
16707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16709 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
16710 echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
16711 if test $ac_cv_have_decl_fseeko64 = yes; then
16713 cat >>confdefs.h <<_ACEOF
16714 #define HAVE_DECL_FSEEKO64 1
16719 cat >>confdefs.h <<_ACEOF
16720 #define HAVE_DECL_FSEEKO64 0
16730 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
16732 cat >>confdefs.h <<\_ACEOF
16733 #define USE_BINARY_FOPEN 1
16738 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
16739 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
16740 if test "${ac_cv_have_decl_ffs+set}" = set; then
16741 echo $ECHO_N "(cached) $ECHO_C" >&6
16743 cat >conftest.$ac_ext <<_ACEOF
16746 cat confdefs.h >>conftest.$ac_ext
16747 cat >>conftest.$ac_ext <<_ACEOF
16748 /* end confdefs.h. */
16749 $ac_includes_default
16754 char *p = (char *) ffs;
16761 rm -f conftest.$ac_objext
16762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16763 (eval $ac_compile) 2>conftest.er1
16765 grep -v '^ *+' conftest.er1 >conftest.err
16767 cat conftest.err >&5
16768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); } &&
16770 { ac_try='test -z "$ac_c_werror_flag"
16771 || test ! -s conftest.err'
16772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16773 (eval $ac_try) 2>&5
16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); }; } &&
16777 { ac_try='test -s conftest.$ac_objext'
16778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16779 (eval $ac_try) 2>&5
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); }; }; then
16783 ac_cv_have_decl_ffs=yes
16785 echo "$as_me: failed program was:" >&5
16786 sed 's/^/| /' conftest.$ac_ext >&5
16788 ac_cv_have_decl_ffs=no
16790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16792 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
16793 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
16794 if test $ac_cv_have_decl_ffs = yes; then
16796 cat >>confdefs.h <<_ACEOF
16797 #define HAVE_DECL_FFS 1
16802 cat >>confdefs.h <<_ACEOF
16803 #define HAVE_DECL_FFS 0
16810 echo "$as_me:$LINENO: checking whether free is declared" >&5
16811 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
16812 if test "${ac_cv_have_decl_free+set}" = set; then
16813 echo $ECHO_N "(cached) $ECHO_C" >&6
16815 cat >conftest.$ac_ext <<_ACEOF
16818 cat confdefs.h >>conftest.$ac_ext
16819 cat >>conftest.$ac_ext <<_ACEOF
16820 /* end confdefs.h. */
16821 $ac_includes_default
16826 char *p = (char *) free;
16833 rm -f conftest.$ac_objext
16834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16835 (eval $ac_compile) 2>conftest.er1
16837 grep -v '^ *+' conftest.er1 >conftest.err
16839 cat conftest.err >&5
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); } &&
16842 { ac_try='test -z "$ac_c_werror_flag"
16843 || test ! -s conftest.err'
16844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16845 (eval $ac_try) 2>&5
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); }; } &&
16849 { ac_try='test -s conftest.$ac_objext'
16850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16851 (eval $ac_try) 2>&5
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); }; }; then
16855 ac_cv_have_decl_free=yes
16857 echo "$as_me: failed program was:" >&5
16858 sed 's/^/| /' conftest.$ac_ext >&5
16860 ac_cv_have_decl_free=no
16862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16864 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
16865 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
16866 if test $ac_cv_have_decl_free = yes; then
16868 cat >>confdefs.h <<_ACEOF
16869 #define HAVE_DECL_FREE 1
16874 cat >>confdefs.h <<_ACEOF
16875 #define HAVE_DECL_FREE 0
16882 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
16883 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
16884 if test "${ac_cv_have_decl_getenv+set}" = set; then
16885 echo $ECHO_N "(cached) $ECHO_C" >&6
16887 cat >conftest.$ac_ext <<_ACEOF
16890 cat confdefs.h >>conftest.$ac_ext
16891 cat >>conftest.$ac_ext <<_ACEOF
16892 /* end confdefs.h. */
16893 $ac_includes_default
16898 char *p = (char *) getenv;
16905 rm -f conftest.$ac_objext
16906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16907 (eval $ac_compile) 2>conftest.er1
16909 grep -v '^ *+' conftest.er1 >conftest.err
16911 cat conftest.err >&5
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); } &&
16914 { ac_try='test -z "$ac_c_werror_flag"
16915 || test ! -s conftest.err'
16916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16917 (eval $ac_try) 2>&5
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); }; } &&
16921 { ac_try='test -s conftest.$ac_objext'
16922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16923 (eval $ac_try) 2>&5
16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926 (exit $ac_status); }; }; then
16927 ac_cv_have_decl_getenv=yes
16929 echo "$as_me: failed program was:" >&5
16930 sed 's/^/| /' conftest.$ac_ext >&5
16932 ac_cv_have_decl_getenv=no
16934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16936 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
16937 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
16938 if test $ac_cv_have_decl_getenv = yes; then
16940 cat >>confdefs.h <<_ACEOF
16941 #define HAVE_DECL_GETENV 1
16946 cat >>confdefs.h <<_ACEOF
16947 #define HAVE_DECL_GETENV 0
16954 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
16955 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
16956 if test "${ac_cv_have_decl_malloc+set}" = set; then
16957 echo $ECHO_N "(cached) $ECHO_C" >&6
16959 cat >conftest.$ac_ext <<_ACEOF
16962 cat confdefs.h >>conftest.$ac_ext
16963 cat >>conftest.$ac_ext <<_ACEOF
16964 /* end confdefs.h. */
16965 $ac_includes_default
16970 char *p = (char *) malloc;
16977 rm -f conftest.$ac_objext
16978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16979 (eval $ac_compile) 2>conftest.er1
16981 grep -v '^ *+' conftest.er1 >conftest.err
16983 cat conftest.err >&5
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); } &&
16986 { ac_try='test -z "$ac_c_werror_flag"
16987 || test ! -s conftest.err'
16988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16989 (eval $ac_try) 2>&5
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); }; } &&
16993 { ac_try='test -s conftest.$ac_objext'
16994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16995 (eval $ac_try) 2>&5
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); }; }; then
16999 ac_cv_have_decl_malloc=yes
17001 echo "$as_me: failed program was:" >&5
17002 sed 's/^/| /' conftest.$ac_ext >&5
17004 ac_cv_have_decl_malloc=no
17006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17008 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
17009 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
17010 if test $ac_cv_have_decl_malloc = yes; then
17012 cat >>confdefs.h <<_ACEOF
17013 #define HAVE_DECL_MALLOC 1
17018 cat >>confdefs.h <<_ACEOF
17019 #define HAVE_DECL_MALLOC 0
17026 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
17027 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
17028 if test "${ac_cv_have_decl_realloc+set}" = set; then
17029 echo $ECHO_N "(cached) $ECHO_C" >&6
17031 cat >conftest.$ac_ext <<_ACEOF
17034 cat confdefs.h >>conftest.$ac_ext
17035 cat >>conftest.$ac_ext <<_ACEOF
17036 /* end confdefs.h. */
17037 $ac_includes_default
17042 char *p = (char *) realloc;
17049 rm -f conftest.$ac_objext
17050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17051 (eval $ac_compile) 2>conftest.er1
17053 grep -v '^ *+' conftest.er1 >conftest.err
17055 cat conftest.err >&5
17056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057 (exit $ac_status); } &&
17058 { ac_try='test -z "$ac_c_werror_flag"
17059 || test ! -s conftest.err'
17060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17061 (eval $ac_try) 2>&5
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); }; } &&
17065 { ac_try='test -s conftest.$ac_objext'
17066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17067 (eval $ac_try) 2>&5
17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); }; }; then
17071 ac_cv_have_decl_realloc=yes
17073 echo "$as_me: failed program was:" >&5
17074 sed 's/^/| /' conftest.$ac_ext >&5
17076 ac_cv_have_decl_realloc=no
17078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17080 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
17081 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
17082 if test $ac_cv_have_decl_realloc = yes; then
17084 cat >>confdefs.h <<_ACEOF
17085 #define HAVE_DECL_REALLOC 1
17090 cat >>confdefs.h <<_ACEOF
17091 #define HAVE_DECL_REALLOC 0
17098 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
17099 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
17100 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
17101 echo $ECHO_N "(cached) $ECHO_C" >&6
17103 cat >conftest.$ac_ext <<_ACEOF
17106 cat confdefs.h >>conftest.$ac_ext
17107 cat >>conftest.$ac_ext <<_ACEOF
17108 /* end confdefs.h. */
17109 $ac_includes_default
17114 char *p = (char *) stpcpy;
17121 rm -f conftest.$ac_objext
17122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17123 (eval $ac_compile) 2>conftest.er1
17125 grep -v '^ *+' conftest.er1 >conftest.err
17127 cat conftest.err >&5
17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); } &&
17130 { ac_try='test -z "$ac_c_werror_flag"
17131 || test ! -s conftest.err'
17132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17133 (eval $ac_try) 2>&5
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); }; } &&
17137 { ac_try='test -s conftest.$ac_objext'
17138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17139 (eval $ac_try) 2>&5
17141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142 (exit $ac_status); }; }; then
17143 ac_cv_have_decl_stpcpy=yes
17145 echo "$as_me: failed program was:" >&5
17146 sed 's/^/| /' conftest.$ac_ext >&5
17148 ac_cv_have_decl_stpcpy=no
17150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17152 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
17153 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
17154 if test $ac_cv_have_decl_stpcpy = yes; then
17156 cat >>confdefs.h <<_ACEOF
17157 #define HAVE_DECL_STPCPY 1
17162 cat >>confdefs.h <<_ACEOF
17163 #define HAVE_DECL_STPCPY 0
17170 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
17171 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
17172 if test "${ac_cv_have_decl_strstr+set}" = set; then
17173 echo $ECHO_N "(cached) $ECHO_C" >&6
17175 cat >conftest.$ac_ext <<_ACEOF
17178 cat confdefs.h >>conftest.$ac_ext
17179 cat >>conftest.$ac_ext <<_ACEOF
17180 /* end confdefs.h. */
17181 $ac_includes_default
17186 char *p = (char *) strstr;
17193 rm -f conftest.$ac_objext
17194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17195 (eval $ac_compile) 2>conftest.er1
17197 grep -v '^ *+' conftest.er1 >conftest.err
17199 cat conftest.err >&5
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); } &&
17202 { ac_try='test -z "$ac_c_werror_flag"
17203 || test ! -s conftest.err'
17204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17205 (eval $ac_try) 2>&5
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); }; } &&
17209 { ac_try='test -s conftest.$ac_objext'
17210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17211 (eval $ac_try) 2>&5
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); }; }; then
17215 ac_cv_have_decl_strstr=yes
17217 echo "$as_me: failed program was:" >&5
17218 sed 's/^/| /' conftest.$ac_ext >&5
17220 ac_cv_have_decl_strstr=no
17222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17224 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
17225 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
17226 if test $ac_cv_have_decl_strstr = yes; then
17228 cat >>confdefs.h <<_ACEOF
17229 #define HAVE_DECL_STRSTR 1
17234 cat >>confdefs.h <<_ACEOF
17235 #define HAVE_DECL_STRSTR 0
17242 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
17243 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
17244 if test "${ac_cv_have_decl_snprintf+set}" = set; then
17245 echo $ECHO_N "(cached) $ECHO_C" >&6
17247 cat >conftest.$ac_ext <<_ACEOF
17250 cat confdefs.h >>conftest.$ac_ext
17251 cat >>conftest.$ac_ext <<_ACEOF
17252 /* end confdefs.h. */
17253 $ac_includes_default
17258 char *p = (char *) snprintf;
17265 rm -f conftest.$ac_objext
17266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17267 (eval $ac_compile) 2>conftest.er1
17269 grep -v '^ *+' conftest.er1 >conftest.err
17271 cat conftest.err >&5
17272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273 (exit $ac_status); } &&
17274 { ac_try='test -z "$ac_c_werror_flag"
17275 || test ! -s conftest.err'
17276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17277 (eval $ac_try) 2>&5
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); }; } &&
17281 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17287 ac_cv_have_decl_snprintf=yes
17289 echo "$as_me: failed program was:" >&5
17290 sed 's/^/| /' conftest.$ac_ext >&5
17292 ac_cv_have_decl_snprintf=no
17294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17296 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
17297 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
17298 if test $ac_cv_have_decl_snprintf = yes; then
17300 cat >>confdefs.h <<_ACEOF
17301 #define HAVE_DECL_SNPRINTF 1
17306 cat >>confdefs.h <<_ACEOF
17307 #define HAVE_DECL_SNPRINTF 0
17314 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
17315 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
17316 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
17317 echo $ECHO_N "(cached) $ECHO_C" >&6
17319 cat >conftest.$ac_ext <<_ACEOF
17322 cat confdefs.h >>conftest.$ac_ext
17323 cat >>conftest.$ac_ext <<_ACEOF
17324 /* end confdefs.h. */
17325 $ac_includes_default
17330 char *p = (char *) vsnprintf;
17337 rm -f conftest.$ac_objext
17338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17339 (eval $ac_compile) 2>conftest.er1
17341 grep -v '^ *+' conftest.er1 >conftest.err
17343 cat conftest.err >&5
17344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17345 (exit $ac_status); } &&
17346 { ac_try='test -z "$ac_c_werror_flag"
17347 || test ! -s conftest.err'
17348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17349 (eval $ac_try) 2>&5
17351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352 (exit $ac_status); }; } &&
17353 { ac_try='test -s conftest.$ac_objext'
17354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17355 (eval $ac_try) 2>&5
17357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358 (exit $ac_status); }; }; then
17359 ac_cv_have_decl_vsnprintf=yes
17361 echo "$as_me: failed program was:" >&5
17362 sed 's/^/| /' conftest.$ac_ext >&5
17364 ac_cv_have_decl_vsnprintf=no
17366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17368 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
17369 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
17370 if test $ac_cv_have_decl_vsnprintf = yes; then
17372 cat >>confdefs.h <<_ACEOF
17373 #define HAVE_DECL_VSNPRINTF 1
17378 cat >>confdefs.h <<_ACEOF
17379 #define HAVE_DECL_VSNPRINTF 0
17387 # If we are configured native, pick a core file support file.
17391 if test "${target}" = "${host}"; then
17393 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
17397 COREFILE=trad-core.lo
17398 TRAD_HEADER='"hosts/alphalinux.h"'
17400 alpha*-*-netbsd* | alpha*-*-openbsd*)
17401 COREFILE=netbsd-core.lo
17403 alpha*-*-*) COREFILE=osf-core.lo ;;
17404 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
17406 arm-*-netbsd* | arm-*-openbsd*)
17407 COREFILE=netbsd-core.lo
17409 arm-*-riscix) COREFILE=trad-core.lo ;;
17410 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
17411 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
17412 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
17413 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
17414 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
17415 hppa*-*-netbsd* | hppa*-*-openbsd*)
17416 COREFILE=netbsd-core.lo
17420 COREFILE=trad-core.lo
17421 TRAD_HEADER='"hosts/i370linux.h"'
17424 i[3-7]86-sequent-bsd*)
17425 COREFILE=trad-core.lo
17426 TRAD_HEADER='"hosts/symmetry.h"'
17428 i[3-7]86-sequent-sysv4*) ;;
17429 i[3-7]86-sequent-sysv*)
17430 COREFILE=trad-core.lo
17431 TRAD_HEADER='"hosts/symmetry.h"'
17436 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*)
17437 COREFILE=trad-core.lo
17438 TRAD_HEADER='"hosts/i386bsd.h"'
17440 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
17442 TRAD_HEADER='"hosts/i386bsd.h"'
17444 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
17445 COREFILE=netbsd-core.lo
17447 i[3-7]86-esix-sysv3*)
17448 COREFILE=trad-core.lo
17449 TRAD_HEADER='"hosts/esix.h"'
17451 i[3-7]86-*-sco3.2v5*)
17452 COREFILE=sco5-core.lo
17454 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
17455 COREFILE=trad-core.lo
17456 TRAD_HEADER='"hosts/i386sco.h"'
17459 COREFILE=trad-core.lo
17460 TRAD_HEADER='"hosts/i386mach3.h"'
17462 i[3-7]86-*-linux-*)
17463 COREFILE=trad-core.lo
17464 TRAD_HEADER='"hosts/i386linux.h"'
17466 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
17467 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
17468 i860-*-mach3* | i860-*-osf1*)
17469 COREFILE=trad-core.lo
17470 TRAD_HEADER='"hosts/i860mach3.h"'
17472 mips-*-netbsd* | mips*-*-openbsd*)
17473 COREFILE=netbsd-core.lo
17476 COREFILE=trad-core.lo
17477 TRAD_HEADER='"hosts/decstation.h"'
17479 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
17480 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
17481 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
17483 mips-*-sysv* | mips-*-riscos*)
17484 COREFILE=trad-core.lo
17485 TRAD_HEADER='"hosts/riscos.h"'
17488 COREFILE=trad-core.lo
17489 TRAD_HEADER='"hosts/news-mips.h"'
17492 COREFILE=trad-core.lo
17493 TRAD_HEADER='"hosts/dpx2.h"'
17495 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
17497 COREFILE=trad-core.lo
17498 TRAD_HEADER='"hosts/hp300bsd.h"'
17501 COREFILE=trad-core.lo
17502 TRAD_HEADER='"hosts/m68klinux.h"'
17504 m68*-motorola-sysv*)
17505 COREFILE=trad-core.lo
17506 TRAD_HEADER='"hosts/delta68.h"'
17509 COREFILE=trad-core.lo
17510 TRAD_HEADER='"hosts/news.h"'
17512 m68*-*-netbsd* | m68*-*-openbsd*)
17513 COREFILE=netbsd-core.lo
17516 COREFILE=trad-core.lo
17517 TRAD_HEADER='"hosts/m68kaux.h"'
17521 m88*-motorola-sysv*)
17522 COREFILE=ptrace-core.lo
17525 COREFILE=trad-core.lo
17526 TRAD_HEADER='"hosts/m88kmach3.h"'
17529 COREFILE=netbsd-core.lo
17532 COREFILE=trad-core.lo
17533 TRAD_HEADER='"hosts/pc532mach.h"'
17535 ns32k-*-netbsd* | ns32k-*-openbsd*)
17536 COREFILE=netbsd-core.lo
17539 COREFILE=lynx-core.lo
17541 rs6000-*-aix5.* | powerpc-*-aix5.*)
17542 COREFILE=rs6000-core.lo
17543 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
17545 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
17546 COREFILE=rs6000-core.lo
17547 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
17548 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
17549 # have c_impl as a member of struct core_dumpx
17550 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
17551 echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
17552 cat >conftest.$ac_ext <<_ACEOF
17555 cat confdefs.h >>conftest.$ac_ext
17556 cat >>conftest.$ac_ext <<_ACEOF
17557 /* end confdefs.h. */
17562 struct core_dumpx c; c.c_impl = 0;
17567 rm -f conftest.$ac_objext
17568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17569 (eval $ac_compile) 2>conftest.er1
17571 grep -v '^ *+' conftest.er1 >conftest.err
17573 cat conftest.err >&5
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); } &&
17576 { ac_try='test -z "$ac_c_werror_flag"
17577 || test ! -s conftest.err'
17578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17579 (eval $ac_try) 2>&5
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); }; } &&
17583 { ac_try='test -s conftest.$ac_objext'
17584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17585 (eval $ac_try) 2>&5
17587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); }; }; then
17590 cat >>confdefs.h <<\_ACEOF
17591 #define HAVE_ST_C_IMPL 1
17594 echo "$as_me:$LINENO: result: yes" >&5
17595 echo "${ECHO_T}yes" >&6
17597 echo "$as_me: failed program was:" >&5
17598 sed 's/^/| /' conftest.$ac_ext >&5
17600 echo "$as_me:$LINENO: result: no" >&5
17601 echo "${ECHO_T}no" >&6
17603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17605 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
17606 rs6000-*-*) COREFILE=rs6000-core.lo ;;
17607 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
17608 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
17609 powerpc-*-beos*) ;;
17610 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
17612 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
17613 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
17614 s390*-*-*) COREFILE=trad-core.lo ;;
17615 sh*-*-netbsd* | sh*-*-openbsd*)
17616 COREFILE=netbsd-core.lo
17618 sparc-*-netbsd* | sparc*-*-openbsd*)
17619 COREFILE=netbsd-core.lo
17622 COREFILE=trad-core.lo
17623 TRAD_HEADER='"hosts/tahoe.h"'
17625 vax-*-netbsd* | vax-*-openbsd*)
17626 COREFILE=netbsd-core.lo
17629 COREFILE=trad-core.lo
17630 TRAD_HEADER='"hosts/vaxult2.h"'
17633 COREFILE=trad-core.lo
17634 TRAD_HEADER='"hosts/vaxult2.h"'
17637 COREFILE=trad-core.lo
17638 TRAD_HEADER='"hosts/vaxlinux.h"'
17641 COREFILE=trad-core.lo
17642 TRAD_HEADER='"hosts/vaxbsd.h"'
17644 x86_64-*-netbsd* | x86_64-*-openbsd*)
17645 COREFILE=netbsd-core.lo
17649 case "$COREFILE" in
17650 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
17651 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
17652 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
17653 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
17654 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
17655 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
17656 osf-core.lo) COREFLAG=-DOSF_CORE ;;
17657 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
17658 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
17659 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
17660 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
17663 # ELF corefile support has several flavors, but all of
17664 # them use something called <sys/procfs.h>
17666 for ac_header in sys/procfs.h
17668 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17669 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17670 echo "$as_me:$LINENO: checking for $ac_header" >&5
17671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17673 echo $ECHO_N "(cached) $ECHO_C" >&6
17675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17676 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17678 # Is the header compilable?
17679 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17680 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17681 cat >conftest.$ac_ext <<_ACEOF
17684 cat confdefs.h >>conftest.$ac_ext
17685 cat >>conftest.$ac_ext <<_ACEOF
17686 /* end confdefs.h. */
17687 $ac_includes_default
17688 #include <$ac_header>
17690 rm -f conftest.$ac_objext
17691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17692 (eval $ac_compile) 2>conftest.er1
17694 grep -v '^ *+' conftest.er1 >conftest.err
17696 cat conftest.err >&5
17697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698 (exit $ac_status); } &&
17699 { ac_try='test -z "$ac_c_werror_flag"
17700 || test ! -s conftest.err'
17701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17702 (eval $ac_try) 2>&5
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); }; } &&
17706 { ac_try='test -s conftest.$ac_objext'
17707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17708 (eval $ac_try) 2>&5
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); }; }; then
17712 ac_header_compiler=yes
17714 echo "$as_me: failed program was:" >&5
17715 sed 's/^/| /' conftest.$ac_ext >&5
17717 ac_header_compiler=no
17719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17720 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17721 echo "${ECHO_T}$ac_header_compiler" >&6
17723 # Is the header present?
17724 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17725 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17726 cat >conftest.$ac_ext <<_ACEOF
17729 cat confdefs.h >>conftest.$ac_ext
17730 cat >>conftest.$ac_ext <<_ACEOF
17731 /* end confdefs.h. */
17732 #include <$ac_header>
17734 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17735 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17737 grep -v '^ *+' conftest.er1 >conftest.err
17739 cat conftest.err >&5
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); } >/dev/null; then
17742 if test -s conftest.err; then
17743 ac_cpp_err=$ac_c_preproc_warn_flag
17744 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17751 if test -z "$ac_cpp_err"; then
17752 ac_header_preproc=yes
17754 echo "$as_me: failed program was:" >&5
17755 sed 's/^/| /' conftest.$ac_ext >&5
17757 ac_header_preproc=no
17759 rm -f conftest.err conftest.$ac_ext
17760 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17761 echo "${ECHO_T}$ac_header_preproc" >&6
17763 # So? What about this header?
17764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17766 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17767 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17769 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17770 ac_header_preproc=yes
17773 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17774 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17775 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17776 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17777 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17778 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17779 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17780 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17782 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17783 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17784 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17787 ## ------------------------------------------ ##
17788 ## Report this to the AC_PACKAGE_NAME lists. ##
17789 ## ------------------------------------------ ##
17792 sed "s/^/$as_me: WARNING: /" >&2
17795 echo "$as_me:$LINENO: checking for $ac_header" >&5
17796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17798 echo $ECHO_N "(cached) $ECHO_C" >&6
17800 eval "$as_ac_Header=\$ac_header_preproc"
17802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17803 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17806 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17807 cat >>confdefs.h <<_ACEOF
17808 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17815 if test "$ac_cv_header_sys_procfs_h" = yes; then
17816 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
17817 echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
17818 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
17819 echo $ECHO_N "(cached) $ECHO_C" >&6
17821 cat >conftest.$ac_ext <<_ACEOF
17824 cat confdefs.h >>conftest.$ac_ext
17825 cat >>conftest.$ac_ext <<_ACEOF
17826 /* end confdefs.h. */
17829 #include <sys/procfs.h>
17838 rm -f conftest.$ac_objext
17839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17840 (eval $ac_compile) 2>conftest.er1
17842 grep -v '^ *+' conftest.er1 >conftest.err
17844 cat conftest.err >&5
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); } &&
17847 { ac_try='test -z "$ac_c_werror_flag"
17848 || test ! -s conftest.err'
17849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17850 (eval $ac_try) 2>&5
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); }; } &&
17854 { ac_try='test -s conftest.$ac_objext'
17855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17856 (eval $ac_try) 2>&5
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); }; }; then
17860 bfd_cv_have_sys_procfs_type_prstatus_t=yes
17862 echo "$as_me: failed program was:" >&5
17863 sed 's/^/| /' conftest.$ac_ext >&5
17865 bfd_cv_have_sys_procfs_type_prstatus_t=no
17868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17871 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
17873 cat >>confdefs.h <<\_ACEOF
17874 #define HAVE_PRSTATUS_T 1
17878 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
17879 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
17881 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
17882 echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
17883 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
17884 echo $ECHO_N "(cached) $ECHO_C" >&6
17886 cat >conftest.$ac_ext <<_ACEOF
17889 cat confdefs.h >>conftest.$ac_ext
17890 cat >>conftest.$ac_ext <<_ACEOF
17891 /* end confdefs.h. */
17894 #include <sys/procfs.h>
17903 rm -f conftest.$ac_objext
17904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17905 (eval $ac_compile) 2>conftest.er1
17907 grep -v '^ *+' conftest.er1 >conftest.err
17909 cat conftest.err >&5
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); } &&
17912 { ac_try='test -z "$ac_c_werror_flag"
17913 || test ! -s conftest.err'
17914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17915 (eval $ac_try) 2>&5
17917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918 (exit $ac_status); }; } &&
17919 { ac_try='test -s conftest.$ac_objext'
17920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17921 (eval $ac_try) 2>&5
17923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924 (exit $ac_status); }; }; then
17925 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
17927 echo "$as_me: failed program was:" >&5
17928 sed 's/^/| /' conftest.$ac_ext >&5
17930 bfd_cv_have_sys_procfs_type_prstatus32_t=no
17933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17936 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
17938 cat >>confdefs.h <<\_ACEOF
17939 #define HAVE_PRSTATUS32_T 1
17943 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
17944 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
17946 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
17947 echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
17948 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
17949 echo $ECHO_N "(cached) $ECHO_C" >&6
17951 cat >conftest.$ac_ext <<_ACEOF
17954 cat confdefs.h >>conftest.$ac_ext
17955 cat >>conftest.$ac_ext <<_ACEOF
17956 /* end confdefs.h. */
17959 #include <sys/procfs.h>
17963 prstatus_t avar; void* aref = (void*) &avar.pr_who
17968 rm -f conftest.$ac_objext
17969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17970 (eval $ac_compile) 2>conftest.er1
17972 grep -v '^ *+' conftest.er1 >conftest.err
17974 cat conftest.err >&5
17975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976 (exit $ac_status); } &&
17977 { ac_try='test -z "$ac_c_werror_flag"
17978 || test ! -s conftest.err'
17979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17980 (eval $ac_try) 2>&5
17982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983 (exit $ac_status); }; } &&
17984 { ac_try='test -s conftest.$ac_objext'
17985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17986 (eval $ac_try) 2>&5
17988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989 (exit $ac_status); }; }; then
17990 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
17992 echo "$as_me: failed program was:" >&5
17993 sed 's/^/| /' conftest.$ac_ext >&5
17995 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
17998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18001 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
18003 cat >>confdefs.h <<\_ACEOF
18004 #define HAVE_PRSTATUS_T_PR_WHO 1
18008 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
18009 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
18011 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
18012 echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
18013 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
18014 echo $ECHO_N "(cached) $ECHO_C" >&6
18016 cat >conftest.$ac_ext <<_ACEOF
18019 cat confdefs.h >>conftest.$ac_ext
18020 cat >>conftest.$ac_ext <<_ACEOF
18021 /* end confdefs.h. */
18024 #include <sys/procfs.h>
18028 prstatus32_t avar; void* aref = (void*) &avar.pr_who
18033 rm -f conftest.$ac_objext
18034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18035 (eval $ac_compile) 2>conftest.er1
18037 grep -v '^ *+' conftest.er1 >conftest.err
18039 cat conftest.err >&5
18040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18041 (exit $ac_status); } &&
18042 { ac_try='test -z "$ac_c_werror_flag"
18043 || test ! -s conftest.err'
18044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18045 (eval $ac_try) 2>&5
18047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048 (exit $ac_status); }; } &&
18049 { ac_try='test -s conftest.$ac_objext'
18050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18051 (eval $ac_try) 2>&5
18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); }; }; then
18055 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
18057 echo "$as_me: failed program was:" >&5
18058 sed 's/^/| /' conftest.$ac_ext >&5
18060 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
18063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18066 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
18068 cat >>confdefs.h <<\_ACEOF
18069 #define HAVE_PRSTATUS32_T_PR_WHO 1
18073 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
18074 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
18076 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
18077 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
18078 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
18079 echo $ECHO_N "(cached) $ECHO_C" >&6
18081 cat >conftest.$ac_ext <<_ACEOF
18084 cat confdefs.h >>conftest.$ac_ext
18085 cat >>conftest.$ac_ext <<_ACEOF
18086 /* end confdefs.h. */
18089 #include <sys/procfs.h>
18098 rm -f conftest.$ac_objext
18099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18100 (eval $ac_compile) 2>conftest.er1
18102 grep -v '^ *+' conftest.er1 >conftest.err
18104 cat conftest.err >&5
18105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106 (exit $ac_status); } &&
18107 { ac_try='test -z "$ac_c_werror_flag"
18108 || test ! -s conftest.err'
18109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18110 (eval $ac_try) 2>&5
18112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113 (exit $ac_status); }; } &&
18114 { ac_try='test -s conftest.$ac_objext'
18115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18116 (eval $ac_try) 2>&5
18118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119 (exit $ac_status); }; }; then
18120 bfd_cv_have_sys_procfs_type_pstatus_t=yes
18122 echo "$as_me: failed program was:" >&5
18123 sed 's/^/| /' conftest.$ac_ext >&5
18125 bfd_cv_have_sys_procfs_type_pstatus_t=no
18128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18131 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
18133 cat >>confdefs.h <<\_ACEOF
18134 #define HAVE_PSTATUS_T 1
18138 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
18139 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
18141 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
18142 echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
18143 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
18144 echo $ECHO_N "(cached) $ECHO_C" >&6
18146 cat >conftest.$ac_ext <<_ACEOF
18149 cat confdefs.h >>conftest.$ac_ext
18150 cat >>conftest.$ac_ext <<_ACEOF
18151 /* end confdefs.h. */
18154 #include <sys/procfs.h>
18163 rm -f conftest.$ac_objext
18164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18165 (eval $ac_compile) 2>conftest.er1
18167 grep -v '^ *+' conftest.er1 >conftest.err
18169 cat conftest.err >&5
18170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171 (exit $ac_status); } &&
18172 { ac_try='test -z "$ac_c_werror_flag"
18173 || test ! -s conftest.err'
18174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18175 (eval $ac_try) 2>&5
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); }; } &&
18179 { ac_try='test -s conftest.$ac_objext'
18180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18181 (eval $ac_try) 2>&5
18183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184 (exit $ac_status); }; }; then
18185 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
18187 echo "$as_me: failed program was:" >&5
18188 sed 's/^/| /' conftest.$ac_ext >&5
18190 bfd_cv_have_sys_procfs_type_pxstatus_t=no
18193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18196 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
18198 cat >>confdefs.h <<\_ACEOF
18199 #define HAVE_PXSTATUS_T 1
18203 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
18204 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
18206 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
18207 echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
18208 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
18209 echo $ECHO_N "(cached) $ECHO_C" >&6
18211 cat >conftest.$ac_ext <<_ACEOF
18214 cat confdefs.h >>conftest.$ac_ext
18215 cat >>conftest.$ac_ext <<_ACEOF
18216 /* end confdefs.h. */
18219 #include <sys/procfs.h>
18228 rm -f conftest.$ac_objext
18229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18230 (eval $ac_compile) 2>conftest.er1
18232 grep -v '^ *+' conftest.er1 >conftest.err
18234 cat conftest.err >&5
18235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236 (exit $ac_status); } &&
18237 { ac_try='test -z "$ac_c_werror_flag"
18238 || test ! -s conftest.err'
18239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18240 (eval $ac_try) 2>&5
18242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243 (exit $ac_status); }; } &&
18244 { ac_try='test -s conftest.$ac_objext'
18245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18246 (eval $ac_try) 2>&5
18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249 (exit $ac_status); }; }; then
18250 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
18252 echo "$as_me: failed program was:" >&5
18253 sed 's/^/| /' conftest.$ac_ext >&5
18255 bfd_cv_have_sys_procfs_type_pstatus32_t=no
18258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18261 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
18263 cat >>confdefs.h <<\_ACEOF
18264 #define HAVE_PSTATUS32_T 1
18268 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
18269 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
18271 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
18272 echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
18273 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
18274 echo $ECHO_N "(cached) $ECHO_C" >&6
18276 cat >conftest.$ac_ext <<_ACEOF
18279 cat confdefs.h >>conftest.$ac_ext
18280 cat >>conftest.$ac_ext <<_ACEOF
18281 /* end confdefs.h. */
18284 #include <sys/procfs.h>
18293 rm -f conftest.$ac_objext
18294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18295 (eval $ac_compile) 2>conftest.er1
18297 grep -v '^ *+' conftest.er1 >conftest.err
18299 cat conftest.err >&5
18300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301 (exit $ac_status); } &&
18302 { ac_try='test -z "$ac_c_werror_flag"
18303 || test ! -s conftest.err'
18304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18305 (eval $ac_try) 2>&5
18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); }; } &&
18309 { ac_try='test -s conftest.$ac_objext'
18310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18311 (eval $ac_try) 2>&5
18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314 (exit $ac_status); }; }; then
18315 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
18317 echo "$as_me: failed program was:" >&5
18318 sed 's/^/| /' conftest.$ac_ext >&5
18320 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
18323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18326 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
18328 cat >>confdefs.h <<\_ACEOF
18329 #define HAVE_PRPSINFO_T 1
18333 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
18334 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
18336 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
18337 echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
18338 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
18339 echo $ECHO_N "(cached) $ECHO_C" >&6
18341 cat >conftest.$ac_ext <<_ACEOF
18344 cat confdefs.h >>conftest.$ac_ext
18345 cat >>conftest.$ac_ext <<_ACEOF
18346 /* end confdefs.h. */
18349 #include <sys/procfs.h>
18358 rm -f conftest.$ac_objext
18359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18360 (eval $ac_compile) 2>conftest.er1
18362 grep -v '^ *+' conftest.er1 >conftest.err
18364 cat conftest.err >&5
18365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); } &&
18367 { ac_try='test -z "$ac_c_werror_flag"
18368 || test ! -s conftest.err'
18369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18370 (eval $ac_try) 2>&5
18372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373 (exit $ac_status); }; } &&
18374 { ac_try='test -s conftest.$ac_objext'
18375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18376 (eval $ac_try) 2>&5
18378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379 (exit $ac_status); }; }; then
18380 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
18382 echo "$as_me: failed program was:" >&5
18383 sed 's/^/| /' conftest.$ac_ext >&5
18385 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
18388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18391 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
18393 cat >>confdefs.h <<\_ACEOF
18394 #define HAVE_PRPSINFO32_T 1
18398 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
18399 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
18401 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
18402 echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
18403 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
18404 echo $ECHO_N "(cached) $ECHO_C" >&6
18406 cat >conftest.$ac_ext <<_ACEOF
18409 cat confdefs.h >>conftest.$ac_ext
18410 cat >>conftest.$ac_ext <<_ACEOF
18411 /* end confdefs.h. */
18414 #include <sys/procfs.h>
18423 rm -f conftest.$ac_objext
18424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18425 (eval $ac_compile) 2>conftest.er1
18427 grep -v '^ *+' conftest.er1 >conftest.err
18429 cat conftest.err >&5
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); } &&
18432 { ac_try='test -z "$ac_c_werror_flag"
18433 || test ! -s conftest.err'
18434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18435 (eval $ac_try) 2>&5
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); }; } &&
18439 { ac_try='test -s conftest.$ac_objext'
18440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18441 (eval $ac_try) 2>&5
18443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444 (exit $ac_status); }; }; then
18445 bfd_cv_have_sys_procfs_type_psinfo_t=yes
18447 echo "$as_me: failed program was:" >&5
18448 sed 's/^/| /' conftest.$ac_ext >&5
18450 bfd_cv_have_sys_procfs_type_psinfo_t=no
18453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18456 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
18458 cat >>confdefs.h <<\_ACEOF
18459 #define HAVE_PSINFO_T 1
18463 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
18464 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
18466 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
18467 echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
18468 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
18469 echo $ECHO_N "(cached) $ECHO_C" >&6
18471 cat >conftest.$ac_ext <<_ACEOF
18474 cat confdefs.h >>conftest.$ac_ext
18475 cat >>conftest.$ac_ext <<_ACEOF
18476 /* end confdefs.h. */
18479 #include <sys/procfs.h>
18488 rm -f conftest.$ac_objext
18489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18490 (eval $ac_compile) 2>conftest.er1
18492 grep -v '^ *+' conftest.er1 >conftest.err
18494 cat conftest.err >&5
18495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496 (exit $ac_status); } &&
18497 { ac_try='test -z "$ac_c_werror_flag"
18498 || test ! -s conftest.err'
18499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18500 (eval $ac_try) 2>&5
18502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503 (exit $ac_status); }; } &&
18504 { ac_try='test -s conftest.$ac_objext'
18505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18506 (eval $ac_try) 2>&5
18508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18509 (exit $ac_status); }; }; then
18510 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
18512 echo "$as_me: failed program was:" >&5
18513 sed 's/^/| /' conftest.$ac_ext >&5
18515 bfd_cv_have_sys_procfs_type_psinfo32_t=no
18518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18521 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
18523 cat >>confdefs.h <<\_ACEOF
18524 #define HAVE_PSINFO32_T 1
18528 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
18529 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
18531 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
18532 echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
18533 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
18534 echo $ECHO_N "(cached) $ECHO_C" >&6
18536 cat >conftest.$ac_ext <<_ACEOF
18539 cat confdefs.h >>conftest.$ac_ext
18540 cat >>conftest.$ac_ext <<_ACEOF
18541 /* end confdefs.h. */
18544 #include <sys/procfs.h>
18553 rm -f conftest.$ac_objext
18554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18555 (eval $ac_compile) 2>conftest.er1
18557 grep -v '^ *+' conftest.er1 >conftest.err
18559 cat conftest.err >&5
18560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561 (exit $ac_status); } &&
18562 { ac_try='test -z "$ac_c_werror_flag"
18563 || test ! -s conftest.err'
18564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18565 (eval $ac_try) 2>&5
18567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568 (exit $ac_status); }; } &&
18569 { ac_try='test -s conftest.$ac_objext'
18570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18571 (eval $ac_try) 2>&5
18573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574 (exit $ac_status); }; }; then
18575 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
18577 echo "$as_me: failed program was:" >&5
18578 sed 's/^/| /' conftest.$ac_ext >&5
18580 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
18583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18586 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
18588 cat >>confdefs.h <<\_ACEOF
18589 #define HAVE_LWPSTATUS_T 1
18593 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
18594 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
18596 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
18597 echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
18598 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
18599 echo $ECHO_N "(cached) $ECHO_C" >&6
18601 cat >conftest.$ac_ext <<_ACEOF
18604 cat confdefs.h >>conftest.$ac_ext
18605 cat >>conftest.$ac_ext <<_ACEOF
18606 /* end confdefs.h. */
18609 #include <sys/procfs.h>
18618 rm -f conftest.$ac_objext
18619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18620 (eval $ac_compile) 2>conftest.er1
18622 grep -v '^ *+' conftest.er1 >conftest.err
18624 cat conftest.err >&5
18625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); } &&
18627 { ac_try='test -z "$ac_c_werror_flag"
18628 || test ! -s conftest.err'
18629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18630 (eval $ac_try) 2>&5
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); }; } &&
18634 { ac_try='test -s conftest.$ac_objext'
18635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18636 (eval $ac_try) 2>&5
18638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18639 (exit $ac_status); }; }; then
18640 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
18642 echo "$as_me: failed program was:" >&5
18643 sed 's/^/| /' conftest.$ac_ext >&5
18645 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
18648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18651 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
18653 cat >>confdefs.h <<\_ACEOF
18654 #define HAVE_LWPXSTATUS_T 1
18658 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
18659 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
18661 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
18662 echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
18663 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
18664 echo $ECHO_N "(cached) $ECHO_C" >&6
18666 cat >conftest.$ac_ext <<_ACEOF
18669 cat confdefs.h >>conftest.$ac_ext
18670 cat >>conftest.$ac_ext <<_ACEOF
18671 /* end confdefs.h. */
18674 #include <sys/procfs.h>
18678 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
18683 rm -f conftest.$ac_objext
18684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18685 (eval $ac_compile) 2>conftest.er1
18687 grep -v '^ *+' conftest.er1 >conftest.err
18689 cat conftest.err >&5
18690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691 (exit $ac_status); } &&
18692 { ac_try='test -z "$ac_c_werror_flag"
18693 || test ! -s conftest.err'
18694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18695 (eval $ac_try) 2>&5
18697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698 (exit $ac_status); }; } &&
18699 { ac_try='test -s conftest.$ac_objext'
18700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18701 (eval $ac_try) 2>&5
18703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704 (exit $ac_status); }; }; then
18705 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
18707 echo "$as_me: failed program was:" >&5
18708 sed 's/^/| /' conftest.$ac_ext >&5
18710 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
18713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18716 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
18718 cat >>confdefs.h <<\_ACEOF
18719 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
18723 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
18724 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
18726 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
18727 echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
18728 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
18729 echo $ECHO_N "(cached) $ECHO_C" >&6
18731 cat >conftest.$ac_ext <<_ACEOF
18734 cat confdefs.h >>conftest.$ac_ext
18735 cat >>conftest.$ac_ext <<_ACEOF
18736 /* end confdefs.h. */
18739 #include <sys/procfs.h>
18743 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
18748 rm -f conftest.$ac_objext
18749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18750 (eval $ac_compile) 2>conftest.er1
18752 grep -v '^ *+' conftest.er1 >conftest.err
18754 cat conftest.err >&5
18755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18756 (exit $ac_status); } &&
18757 { ac_try='test -z "$ac_c_werror_flag"
18758 || test ! -s conftest.err'
18759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18760 (eval $ac_try) 2>&5
18762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763 (exit $ac_status); }; } &&
18764 { ac_try='test -s conftest.$ac_objext'
18765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18766 (eval $ac_try) 2>&5
18768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); }; }; then
18770 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
18772 echo "$as_me: failed program was:" >&5
18773 sed 's/^/| /' conftest.$ac_ext >&5
18775 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
18778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18781 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
18783 cat >>confdefs.h <<\_ACEOF
18784 #define HAVE_LWPSTATUS_T_PR_REG 1
18788 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
18789 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
18791 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
18792 echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
18793 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
18794 echo $ECHO_N "(cached) $ECHO_C" >&6
18796 cat >conftest.$ac_ext <<_ACEOF
18799 cat confdefs.h >>conftest.$ac_ext
18800 cat >>conftest.$ac_ext <<_ACEOF
18801 /* end confdefs.h. */
18804 #include <sys/procfs.h>
18808 win32_pstatus_t avar
18813 rm -f conftest.$ac_objext
18814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18815 (eval $ac_compile) 2>conftest.er1
18817 grep -v '^ *+' conftest.er1 >conftest.err
18819 cat conftest.err >&5
18820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18821 (exit $ac_status); } &&
18822 { ac_try='test -z "$ac_c_werror_flag"
18823 || test ! -s conftest.err'
18824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18825 (eval $ac_try) 2>&5
18827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18828 (exit $ac_status); }; } &&
18829 { ac_try='test -s conftest.$ac_objext'
18830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18831 (eval $ac_try) 2>&5
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); }; }; then
18835 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
18837 echo "$as_me: failed program was:" >&5
18838 sed 's/^/| /' conftest.$ac_ext >&5
18840 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
18843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18846 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
18848 cat >>confdefs.h <<\_ACEOF
18849 #define HAVE_WIN32_PSTATUS_T 1
18853 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
18854 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
18860 if test -n "$TRAD_HEADER"; then
18862 cat >>confdefs.h <<_ACEOF
18863 #define TRAD_HEADER $TRAD_HEADER
18868 # Horrible hacks to build DLLs on Windows.
18873 if test "$enable_shared" = "yes"; then
18874 WIN32LDFLAGS="-no-undefined"
18875 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
18879 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
18883 # Linux/MIPS uses PIC by default.
18884 if test "$enable_shared" = "yes"; then
18885 WIN32LIBADD="-L../libiberty -liberty"
18889 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
18890 if test -n "$x"; then
18891 WIN32LIBADD="-L../libiberty/pic -liberty"
18902 # Canonicalize the secondary target names.
18903 if test -n "$enable_targets" ; then
18904 for targ in `echo $enable_targets | sed 's/,/ /g'`
18906 result=`$ac_config_sub $targ 2>/dev/null`
18907 if test -n "$result" ; then
18908 canon_targets="$canon_targets $result"
18910 # Allow targets that config.sub doesn't recognize, like "all".
18911 canon_targets="$canon_targets $targ"
18922 for targ in $target $canon_targets
18924 if test "x$targ" = "xall"; then
18926 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
18928 . $srcdir/config.bfd
18929 if test "x$targ" = "x$target"; then
18930 defvec=$targ_defvec
18932 selvecs="$selvecs $targ_defvec $targ_selvecs"
18933 selarchs="$selarchs $targ_archs"
18934 TDEFINES="$TDEFINES $targ_cflags"
18939 # This processing still needs to be done if we're to decide properly whether
18940 # 64-bit support needs to be compiled in. Currently, it will be included if
18941 # the default or any other explicitly requested target requires it; it
18942 # will not be included on a 32-bit host if no 64-bit target is requested, and
18943 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
18946 # uniq the default and selected vectors in all the configured targets.
18948 for i in $selvecs ; do
18957 # uniq the associated vectors in all the configured targets.
18959 for i in $assocvecs ; do
18968 # uniq the architectures in all the configured targets.
18970 for i in $selarchs ; do
18978 # Target backend .o files.
18981 elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
18983 for vec in $selvecs
18987 # This list is alphabetized to make it easy to compare
18988 # with the two vector lists in targets.c. For the same reason,
18989 # use one entry per line, even though this leads to long lines.
18990 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
18991 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
18992 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
18993 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
18994 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
18995 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
18996 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
18997 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
18998 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
18999 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
19000 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
19001 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
19002 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
19003 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
19004 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
19005 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
19006 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
19007 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
19008 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
19009 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
19010 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
19011 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
19012 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
19013 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
19014 bfd_efi_app_x86_64_vec) tb="$tb efi-app-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
19015 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
19016 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
19017 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
19018 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
19019 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
19020 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
19021 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
19022 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19023 bfd_elf32_bigarm_symbian_vec)
19024 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19025 bfd_elf32_bigarm_vxworks_vec)
19026 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19027 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19028 bfd_elf32_bigmips_vxworks_vec)
19029 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19030 bfd_elf32_cr16_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
19031 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
19032 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
19033 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
19034 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
19035 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
19036 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
19037 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
19038 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
19039 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
19040 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
19041 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
19042 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
19043 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
19044 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
19045 bfd_elf32_i386_dragonfly_vec)
19046 tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
19047 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
19048 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
19049 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
19050 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
19051 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
19052 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
19053 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
19054 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
19055 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
19056 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
19057 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
19058 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
19059 bfd_elf32_littlearm_symbian_vec)
19060 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19061 bfd_elf32_littlearm_vxworks_vec)
19062 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19063 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19064 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19065 bfd_elf32_littlemips_vxworks_vec)
19066 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19067 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
19068 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
19069 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
19070 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
19071 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
19072 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
19073 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
19074 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
19075 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
19076 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
19077 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
19078 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
19079 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
19080 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
19081 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
19082 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
19083 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
19084 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19085 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19086 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19087 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19088 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
19089 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
19090 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
19091 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
19092 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
19093 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
19094 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
19095 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
19096 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
19097 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
19098 # FIXME: We include cofflink.lo not because it's needed for
19099 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
19100 # which needs it but does not list it. Should be fixed in right place.
19101 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19102 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19103 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19104 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19105 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
19106 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
19107 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19108 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19109 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19110 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19111 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19112 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19113 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19114 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19115 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19116 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
19117 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
19118 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
19119 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19120 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19121 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
19122 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
19123 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
19124 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
19125 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
19126 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
19127 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
19128 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
19129 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
19130 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
19131 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 ;;
19132 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
19133 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
19134 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
19135 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
19136 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
19137 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
19138 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 ;;
19139 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
19140 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
19141 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
19142 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
19143 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19144 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19145 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19146 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19147 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19148 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19149 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
19150 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
19151 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 ;;
19152 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 ;;
19153 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
19154 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
19155 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
19156 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
19157 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
19158 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
19159 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
19160 cris_aout_vec) tb="$tb aout-cris.lo" ;;
19161 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
19162 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
19163 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
19164 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
19165 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
19166 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
19167 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
19168 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
19169 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
19170 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
19171 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
19172 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
19173 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
19174 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
19175 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
19176 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
19177 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
19178 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
19179 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
19180 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
19181 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
19182 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
19183 i386msdos_vec) tb="$tb i386msdos.lo" ;;
19184 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
19185 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
19186 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
19187 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
19188 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
19189 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
19190 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
19191 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
19192 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
19193 ieee_vec) tb="$tb ieee.lo" ;;
19194 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
19195 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
19196 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
19197 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
19198 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
19199 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
19200 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
19201 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
19202 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
19203 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
19204 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
19205 mach_o_be_vec) tb="$tb mach-o.lo" ;;
19206 mach_o_le_vec) tb="$tb mach-o.lo" ;;
19207 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
19208 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
19209 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
19210 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
19211 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
19212 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
19213 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
19214 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
19215 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
19216 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
19217 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
19218 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
19219 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
19220 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
19221 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
19222 pef_vec) tb="$tb pef.lo" ;;
19223 pef_xlib_vec) tb="$tb pef.lo" ;;
19224 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
19225 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
19226 ppcboot_vec) tb="$tb ppcboot.lo" ;;
19227 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
19228 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
19229 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
19230 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
19231 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
19232 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
19233 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
19234 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
19235 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
19236 som_vec) tb="$tb som.lo" ;;
19237 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
19238 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
19239 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
19240 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
19241 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
19242 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
19243 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
19244 sym_vec) tb="$tb xsym.lo" ;;
19245 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
19246 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
19247 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
19248 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
19249 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
19250 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
19251 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
19252 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
19253 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
19254 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
19255 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
19256 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
19257 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
19258 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
19259 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
19260 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
19261 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
19262 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
19263 versados_vec) tb="$tb versados.lo" ;;
19264 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
19265 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
19266 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
19267 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
19268 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
19269 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
19271 # These appear out of order in targets.c
19272 srec_vec) tb="$tb srec.lo" ;;
19273 symbolsrec_vec) tb="$tb srec.lo" ;;
19274 tekhex_vec) tb="$tb tekhex.lo" ;;
19275 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
19276 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
19279 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
19280 echo "$as_me: error: *** unknown target vector $vec" >&2;}
19281 { (exit 1); exit 1; }; } ;;
19284 if test ${target_size} = 64; then
19287 if test x"${vec}" = x"${defvec}"; then
19288 bfd_default_target_size=${target_size}
19292 # Target architecture .o files.
19293 # A couple of CPUs use shorter file names to avoid problems on DOS
19295 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
19297 # Weed out duplicate .o files.
19319 if test x${all_targets} = xtrue ; then
19320 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
19321 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
19325 test -n "$assocvecs" &&
19326 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
19327 else # all_targets is true
19328 # Only set these if they will be nonempty, for the clever echo.
19331 test -n "$selvecs" &&
19332 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
19333 test -n "$selvecs" &&
19334 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
19335 test -n "$selarchs" &&
19336 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
19337 fi # all_targets is true
19339 case ${host64}-${target64}-${want64} in
19342 bfd64_libs='$(BFD64_LIBS)'
19343 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
19344 if test $BFD_HOST_64_BIT_DEFINED = 0; then
19345 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
19346 echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
19347 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
19348 echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
19350 if test -n "$GCC" ; then
19352 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
19353 echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
19354 # Add more tests for gcc versions with non-working 64-bit support here.
19355 cat >conftest.$ac_ext <<_ACEOF
19358 cat confdefs.h >>conftest.$ac_ext
19359 cat >>conftest.$ac_ext <<_ACEOF
19360 /* end confdefs.h. */
19361 :__GNUC__:__GNUC_MINOR__:__i386__:
19363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19364 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
19366 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
19367 echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
19369 echo "$as_me:$LINENO: result: no" >&5
19370 echo "${ECHO_T}no" >&6
19374 if test $bad_64bit_gcc = yes ; then
19375 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
19376 echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
19377 { (exit 1); exit 1; }; }
19383 all_backends='$(BFD32_BACKENDS)'
19394 # Determine the host dependant file_ptr a.k.a. off_t type. In order
19395 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
19396 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
19397 # Hopefully a reasonable assumption since fseeko et.al. should be
19398 # upward compatible.
19404 for ac_func in ftello ftello64 fseeko fseeko64 fopen64
19406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19407 echo "$as_me:$LINENO: checking for $ac_func" >&5
19408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19409 if eval "test \"\${$as_ac_var+set}\" = set"; then
19410 echo $ECHO_N "(cached) $ECHO_C" >&6
19412 cat >conftest.$ac_ext <<_ACEOF
19415 cat confdefs.h >>conftest.$ac_ext
19416 cat >>conftest.$ac_ext <<_ACEOF
19417 /* end confdefs.h. */
19418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19420 #define $ac_func innocuous_$ac_func
19422 /* System header to define __stub macros and hopefully few prototypes,
19423 which can conflict with char $ac_func (); below.
19424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19425 <limits.h> exists even on freestanding compilers. */
19428 # include <limits.h>
19430 # include <assert.h>
19435 /* Override any gcc2 internal prototype to avoid an error. */
19440 /* We use char because int might match the return type of a gcc2
19441 builtin and then its argument prototype would still apply. */
19443 /* The GNU C library defines this for functions which it implements
19444 to always fail with ENOSYS. Some functions are actually named
19445 something starting with __ and the normal name is an alias. */
19446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19449 char (*f) () = $ac_func;
19458 return f != $ac_func;
19463 rm -f conftest.$ac_objext conftest$ac_exeext
19464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19465 (eval $ac_link) 2>conftest.er1
19467 grep -v '^ *+' conftest.er1 >conftest.err
19469 cat conftest.err >&5
19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); } &&
19472 { ac_try='test -z "$ac_c_werror_flag"
19473 || test ! -s conftest.err'
19474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19475 (eval $ac_try) 2>&5
19477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 (exit $ac_status); }; } &&
19479 { ac_try='test -s conftest$ac_exeext'
19480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19481 (eval $ac_try) 2>&5
19483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484 (exit $ac_status); }; }; then
19485 eval "$as_ac_var=yes"
19487 echo "$as_me: failed program was:" >&5
19488 sed 's/^/| /' conftest.$ac_ext >&5
19490 eval "$as_ac_var=no"
19492 rm -f conftest.err conftest.$ac_objext \
19493 conftest$ac_exeext conftest.$ac_ext
19495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19496 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19497 if test `eval echo '${'$as_ac_var'}'` = yes; then
19498 cat >>confdefs.h <<_ACEOF
19499 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19505 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
19506 echo "$as_me:$LINENO: checking for off_t" >&5
19507 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
19508 if test "${ac_cv_type_off_t+set}" = set; then
19509 echo $ECHO_N "(cached) $ECHO_C" >&6
19511 cat >conftest.$ac_ext <<_ACEOF
19514 cat confdefs.h >>conftest.$ac_ext
19515 cat >>conftest.$ac_ext <<_ACEOF
19516 /* end confdefs.h. */
19517 $ac_includes_default
19523 if (sizeof (off_t))
19529 rm -f conftest.$ac_objext
19530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19531 (eval $ac_compile) 2>conftest.er1
19533 grep -v '^ *+' conftest.er1 >conftest.err
19535 cat conftest.err >&5
19536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 (exit $ac_status); } &&
19538 { ac_try='test -z "$ac_c_werror_flag"
19539 || test ! -s conftest.err'
19540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19541 (eval $ac_try) 2>&5
19543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); }; } &&
19545 { ac_try='test -s conftest.$ac_objext'
19546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19547 (eval $ac_try) 2>&5
19549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550 (exit $ac_status); }; }; then
19551 ac_cv_type_off_t=yes
19553 echo "$as_me: failed program was:" >&5
19554 sed 's/^/| /' conftest.$ac_ext >&5
19556 ac_cv_type_off_t=no
19558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19560 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19561 echo "${ECHO_T}$ac_cv_type_off_t" >&6
19563 echo "$as_me:$LINENO: checking size of off_t" >&5
19564 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
19565 if test "${ac_cv_sizeof_off_t+set}" = set; then
19566 echo $ECHO_N "(cached) $ECHO_C" >&6
19568 if test "$ac_cv_type_off_t" = yes; then
19569 # The cast to unsigned long works around a bug in the HP C Compiler
19570 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19571 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19572 # This bug is HP SR number 8606223364.
19573 if test "$cross_compiling" = yes; then
19574 # Depending upon the size, compute the lo and hi bounds.
19575 cat >conftest.$ac_ext <<_ACEOF
19578 cat confdefs.h >>conftest.$ac_ext
19579 cat >>conftest.$ac_ext <<_ACEOF
19580 /* end confdefs.h. */
19581 $ac_includes_default
19585 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
19592 rm -f conftest.$ac_objext
19593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19594 (eval $ac_compile) 2>conftest.er1
19596 grep -v '^ *+' conftest.er1 >conftest.err
19598 cat conftest.err >&5
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); } &&
19601 { ac_try='test -z "$ac_c_werror_flag"
19602 || test ! -s conftest.err'
19603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19604 (eval $ac_try) 2>&5
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); }; } &&
19608 { ac_try='test -s conftest.$ac_objext'
19609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19610 (eval $ac_try) 2>&5
19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613 (exit $ac_status); }; }; then
19616 cat >conftest.$ac_ext <<_ACEOF
19619 cat confdefs.h >>conftest.$ac_ext
19620 cat >>conftest.$ac_ext <<_ACEOF
19621 /* end confdefs.h. */
19622 $ac_includes_default
19626 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
19633 rm -f conftest.$ac_objext
19634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19635 (eval $ac_compile) 2>conftest.er1
19637 grep -v '^ *+' conftest.er1 >conftest.err
19639 cat conftest.err >&5
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); } &&
19642 { ac_try='test -z "$ac_c_werror_flag"
19643 || test ! -s conftest.err'
19644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19645 (eval $ac_try) 2>&5
19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); }; } &&
19649 { ac_try='test -s conftest.$ac_objext'
19650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19651 (eval $ac_try) 2>&5
19653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654 (exit $ac_status); }; }; then
19655 ac_hi=$ac_mid; break
19657 echo "$as_me: failed program was:" >&5
19658 sed 's/^/| /' conftest.$ac_ext >&5
19660 ac_lo=`expr $ac_mid + 1`
19661 if test $ac_lo -le $ac_mid; then
19665 ac_mid=`expr 2 '*' $ac_mid + 1`
19667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19670 echo "$as_me: failed program was:" >&5
19671 sed 's/^/| /' conftest.$ac_ext >&5
19673 cat >conftest.$ac_ext <<_ACEOF
19676 cat confdefs.h >>conftest.$ac_ext
19677 cat >>conftest.$ac_ext <<_ACEOF
19678 /* end confdefs.h. */
19679 $ac_includes_default
19683 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
19690 rm -f conftest.$ac_objext
19691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19692 (eval $ac_compile) 2>conftest.er1
19694 grep -v '^ *+' conftest.er1 >conftest.err
19696 cat conftest.err >&5
19697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 (exit $ac_status); } &&
19699 { ac_try='test -z "$ac_c_werror_flag"
19700 || test ! -s conftest.err'
19701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19702 (eval $ac_try) 2>&5
19704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705 (exit $ac_status); }; } &&
19706 { ac_try='test -s conftest.$ac_objext'
19707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19708 (eval $ac_try) 2>&5
19710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); }; }; then
19714 cat >conftest.$ac_ext <<_ACEOF
19717 cat confdefs.h >>conftest.$ac_ext
19718 cat >>conftest.$ac_ext <<_ACEOF
19719 /* end confdefs.h. */
19720 $ac_includes_default
19724 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
19731 rm -f conftest.$ac_objext
19732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19733 (eval $ac_compile) 2>conftest.er1
19735 grep -v '^ *+' conftest.er1 >conftest.err
19737 cat conftest.err >&5
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); } &&
19740 { ac_try='test -z "$ac_c_werror_flag"
19741 || test ! -s conftest.err'
19742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19743 (eval $ac_try) 2>&5
19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); }; } &&
19747 { ac_try='test -s conftest.$ac_objext'
19748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19749 (eval $ac_try) 2>&5
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); }; }; then
19753 ac_lo=$ac_mid; break
19755 echo "$as_me: failed program was:" >&5
19756 sed 's/^/| /' conftest.$ac_ext >&5
19758 ac_hi=`expr '(' $ac_mid ')' - 1`
19759 if test $ac_mid -le $ac_hi; then
19763 ac_mid=`expr 2 '*' $ac_mid`
19765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19768 echo "$as_me: failed program was:" >&5
19769 sed 's/^/| /' conftest.$ac_ext >&5
19773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19776 # Binary search between lo and hi bounds.
19777 while test "x$ac_lo" != "x$ac_hi"; do
19778 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19779 cat >conftest.$ac_ext <<_ACEOF
19782 cat confdefs.h >>conftest.$ac_ext
19783 cat >>conftest.$ac_ext <<_ACEOF
19784 /* end confdefs.h. */
19785 $ac_includes_default
19789 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
19796 rm -f conftest.$ac_objext
19797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19798 (eval $ac_compile) 2>conftest.er1
19800 grep -v '^ *+' conftest.er1 >conftest.err
19802 cat conftest.err >&5
19803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804 (exit $ac_status); } &&
19805 { ac_try='test -z "$ac_c_werror_flag"
19806 || test ! -s conftest.err'
19807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19808 (eval $ac_try) 2>&5
19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); }; } &&
19812 { ac_try='test -s conftest.$ac_objext'
19813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19814 (eval $ac_try) 2>&5
19816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817 (exit $ac_status); }; }; then
19820 echo "$as_me: failed program was:" >&5
19821 sed 's/^/| /' conftest.$ac_ext >&5
19823 ac_lo=`expr '(' $ac_mid ')' + 1`
19825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19828 ?*) ac_cv_sizeof_off_t=$ac_lo;;
19829 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
19830 See \`config.log' for more details." >&5
19831 echo "$as_me: error: cannot compute sizeof (off_t), 77
19832 See \`config.log' for more details." >&2;}
19833 { (exit 1); exit 1; }; } ;;
19836 if test "$cross_compiling" = yes; then
19837 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19838 See \`config.log' for more details." >&5
19839 echo "$as_me: error: cannot run test program while cross compiling
19840 See \`config.log' for more details." >&2;}
19841 { (exit 1); exit 1; }; }
19843 cat >conftest.$ac_ext <<_ACEOF
19846 cat confdefs.h >>conftest.$ac_ext
19847 cat >>conftest.$ac_ext <<_ACEOF
19848 /* end confdefs.h. */
19849 $ac_includes_default
19850 long longval () { return (long) (sizeof (off_t)); }
19851 unsigned long ulongval () { return (long) (sizeof (off_t)); }
19853 #include <stdlib.h>
19858 FILE *f = fopen ("conftest.val", "w");
19861 if (((long) (sizeof (off_t))) < 0)
19863 long i = longval ();
19864 if (i != ((long) (sizeof (off_t))))
19866 fprintf (f, "%ld\n", i);
19870 unsigned long i = ulongval ();
19871 if (i != ((long) (sizeof (off_t))))
19873 fprintf (f, "%lu\n", i);
19875 exit (ferror (f) || fclose (f) != 0);
19881 rm -f conftest$ac_exeext
19882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19883 (eval $ac_link) 2>&5
19885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19888 (eval $ac_try) 2>&5
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); }; }; then
19892 ac_cv_sizeof_off_t=`cat conftest.val`
19894 echo "$as_me: program exited with status $ac_status" >&5
19895 echo "$as_me: failed program was:" >&5
19896 sed 's/^/| /' conftest.$ac_ext >&5
19898 ( exit $ac_status )
19899 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
19900 See \`config.log' for more details." >&5
19901 echo "$as_me: error: cannot compute sizeof (off_t), 77
19902 See \`config.log' for more details." >&2;}
19903 { (exit 1); exit 1; }; }
19905 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19910 ac_cv_sizeof_off_t=0
19913 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
19914 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
19915 cat >>confdefs.h <<_ACEOF
19916 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
19921 echo "$as_me:$LINENO: checking file_ptr type" >&5
19922 echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
19923 bfd_file_ptr="long"
19924 bfd_ufile_ptr="unsigned long"
19925 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
19926 -o x"${ac_cv_sizeof_off_t}" = x8; then
19927 bfd_file_ptr=BFD_HOST_64_BIT
19928 bfd_ufile_ptr=BFD_HOST_U_64_BIT
19930 echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
19931 echo "${ECHO_T}$bfd_file_ptr" >&6
19937 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
19938 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
19939 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
19940 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
19941 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
19946 for ac_header in stdlib.h unistd.h
19948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19950 echo "$as_me:$LINENO: checking for $ac_header" >&5
19951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19953 echo $ECHO_N "(cached) $ECHO_C" >&6
19955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19958 # Is the header compilable?
19959 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19960 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19961 cat >conftest.$ac_ext <<_ACEOF
19964 cat confdefs.h >>conftest.$ac_ext
19965 cat >>conftest.$ac_ext <<_ACEOF
19966 /* end confdefs.h. */
19967 $ac_includes_default
19968 #include <$ac_header>
19970 rm -f conftest.$ac_objext
19971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19972 (eval $ac_compile) 2>conftest.er1
19974 grep -v '^ *+' conftest.er1 >conftest.err
19976 cat conftest.err >&5
19977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978 (exit $ac_status); } &&
19979 { ac_try='test -z "$ac_c_werror_flag"
19980 || test ! -s conftest.err'
19981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19982 (eval $ac_try) 2>&5
19984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19985 (exit $ac_status); }; } &&
19986 { ac_try='test -s conftest.$ac_objext'
19987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19988 (eval $ac_try) 2>&5
19990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991 (exit $ac_status); }; }; then
19992 ac_header_compiler=yes
19994 echo "$as_me: failed program was:" >&5
19995 sed 's/^/| /' conftest.$ac_ext >&5
19997 ac_header_compiler=no
19999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20000 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20001 echo "${ECHO_T}$ac_header_compiler" >&6
20003 # Is the header present?
20004 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20005 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20006 cat >conftest.$ac_ext <<_ACEOF
20009 cat confdefs.h >>conftest.$ac_ext
20010 cat >>conftest.$ac_ext <<_ACEOF
20011 /* end confdefs.h. */
20012 #include <$ac_header>
20014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20017 grep -v '^ *+' conftest.er1 >conftest.err
20019 cat conftest.err >&5
20020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021 (exit $ac_status); } >/dev/null; then
20022 if test -s conftest.err; then
20023 ac_cpp_err=$ac_c_preproc_warn_flag
20024 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20031 if test -z "$ac_cpp_err"; then
20032 ac_header_preproc=yes
20034 echo "$as_me: failed program was:" >&5
20035 sed 's/^/| /' conftest.$ac_ext >&5
20037 ac_header_preproc=no
20039 rm -f conftest.err conftest.$ac_ext
20040 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20041 echo "${ECHO_T}$ac_header_preproc" >&6
20043 # So? What about this header?
20044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20046 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20049 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20050 ac_header_preproc=yes
20053 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20054 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20055 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20056 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20057 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20058 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20059 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20060 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20063 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20064 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20067 ## ------------------------------------------ ##
20068 ## Report this to the AC_PACKAGE_NAME lists. ##
20069 ## ------------------------------------------ ##
20072 sed "s/^/$as_me: WARNING: /" >&2
20075 echo "$as_me:$LINENO: checking for $ac_header" >&5
20076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20078 echo $ECHO_N "(cached) $ECHO_C" >&6
20080 eval "$as_ac_Header=\$ac_header_preproc"
20082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20087 cat >>confdefs.h <<_ACEOF
20088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20096 for ac_func in getpagesize
20098 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20099 echo "$as_me:$LINENO: checking for $ac_func" >&5
20100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20101 if eval "test \"\${$as_ac_var+set}\" = set"; then
20102 echo $ECHO_N "(cached) $ECHO_C" >&6
20104 cat >conftest.$ac_ext <<_ACEOF
20107 cat confdefs.h >>conftest.$ac_ext
20108 cat >>conftest.$ac_ext <<_ACEOF
20109 /* end confdefs.h. */
20110 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20112 #define $ac_func innocuous_$ac_func
20114 /* System header to define __stub macros and hopefully few prototypes,
20115 which can conflict with char $ac_func (); below.
20116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20117 <limits.h> exists even on freestanding compilers. */
20120 # include <limits.h>
20122 # include <assert.h>
20127 /* Override any gcc2 internal prototype to avoid an error. */
20132 /* We use char because int might match the return type of a gcc2
20133 builtin and then its argument prototype would still apply. */
20135 /* The GNU C library defines this for functions which it implements
20136 to always fail with ENOSYS. Some functions are actually named
20137 something starting with __ and the normal name is an alias. */
20138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20141 char (*f) () = $ac_func;
20150 return f != $ac_func;
20155 rm -f conftest.$ac_objext conftest$ac_exeext
20156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20157 (eval $ac_link) 2>conftest.er1
20159 grep -v '^ *+' conftest.er1 >conftest.err
20161 cat conftest.err >&5
20162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163 (exit $ac_status); } &&
20164 { ac_try='test -z "$ac_c_werror_flag"
20165 || test ! -s conftest.err'
20166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20167 (eval $ac_try) 2>&5
20169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20170 (exit $ac_status); }; } &&
20171 { ac_try='test -s conftest$ac_exeext'
20172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20173 (eval $ac_try) 2>&5
20175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176 (exit $ac_status); }; }; then
20177 eval "$as_ac_var=yes"
20179 echo "$as_me: failed program was:" >&5
20180 sed 's/^/| /' conftest.$ac_ext >&5
20182 eval "$as_ac_var=no"
20184 rm -f conftest.err conftest.$ac_objext \
20185 conftest$ac_exeext conftest.$ac_ext
20187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20188 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20189 if test `eval echo '${'$as_ac_var'}'` = yes; then
20190 cat >>confdefs.h <<_ACEOF
20191 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20197 echo "$as_me:$LINENO: checking for working mmap" >&5
20198 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
20199 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20200 echo $ECHO_N "(cached) $ECHO_C" >&6
20202 if test "$cross_compiling" = yes; then
20203 ac_cv_func_mmap_fixed_mapped=no
20205 cat >conftest.$ac_ext <<_ACEOF
20208 cat confdefs.h >>conftest.$ac_ext
20209 cat >>conftest.$ac_ext <<_ACEOF
20210 /* end confdefs.h. */
20211 $ac_includes_default
20212 /* malloc might have been renamed as rpl_malloc. */
20215 /* Thanks to Mike Haertel and Jim Avera for this test.
20216 Here is a matrix of mmap possibilities:
20217 mmap private not fixed
20218 mmap private fixed at somewhere currently unmapped
20219 mmap private fixed at somewhere already mapped
20220 mmap shared not fixed
20221 mmap shared fixed at somewhere currently unmapped
20222 mmap shared fixed at somewhere already mapped
20223 For private mappings, we should verify that changes cannot be read()
20224 back from the file, nor mmap's back from the file at a different
20225 address. (There have been systems where private was not correctly
20226 implemented like the infamous i386 svr4.0, and systems where the
20227 VM page cache was not coherent with the file system buffer cache
20228 like early versions of FreeBSD and possibly contemporary NetBSD.)
20229 For shared mappings, we should conversely verify that changes get
20230 propagated back to all the places they're supposed to be.
20232 Grep wants private fixed already mapped.
20233 The main things grep needs to know about mmap are:
20234 * does it exist and is it safe to write into the mmap'd area
20235 * how to use it (BSD variants) */
20238 #include <sys/mman.h>
20240 #if !STDC_HEADERS && !HAVE_STDLIB_H
20244 /* This mess was copied from the GNU getpagesize.h. */
20245 #if !HAVE_GETPAGESIZE
20246 /* Assume that all systems that can run configure have sys/param.h. */
20247 # if !HAVE_SYS_PARAM_H
20248 # define HAVE_SYS_PARAM_H 1
20251 # ifdef _SC_PAGESIZE
20252 # define getpagesize() sysconf(_SC_PAGESIZE)
20253 # else /* no _SC_PAGESIZE */
20254 # if HAVE_SYS_PARAM_H
20255 # include <sys/param.h>
20256 # ifdef EXEC_PAGESIZE
20257 # define getpagesize() EXEC_PAGESIZE
20258 # else /* no EXEC_PAGESIZE */
20260 # define getpagesize() NBPG * CLSIZE
20263 # endif /* no CLSIZE */
20264 # else /* no NBPG */
20266 # define getpagesize() NBPC
20267 # else /* no NBPC */
20269 # define getpagesize() PAGESIZE
20270 # endif /* PAGESIZE */
20271 # endif /* no NBPC */
20272 # endif /* no NBPG */
20273 # endif /* no EXEC_PAGESIZE */
20274 # else /* no HAVE_SYS_PARAM_H */
20275 # define getpagesize() 8192 /* punt totally */
20276 # endif /* no HAVE_SYS_PARAM_H */
20277 # endif /* no _SC_PAGESIZE */
20279 #endif /* no HAVE_GETPAGESIZE */
20284 char *data, *data2, *data3;
20288 pagesize = getpagesize ();
20290 /* First, make a file with some known garbage in it. */
20291 data = (char *) malloc (pagesize);
20294 for (i = 0; i < pagesize; ++i)
20295 *(data + i) = rand ();
20297 fd = creat ("conftest.mmap", 0600);
20300 if (write (fd, data, pagesize) != pagesize)
20304 /* Next, try to mmap the file at a fixed address which already has
20305 something else allocated at it. If we can, also make sure that
20306 we see the same garbage. */
20307 fd = open ("conftest.mmap", O_RDWR);
20310 data2 = (char *) malloc (2 * pagesize);
20313 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
20314 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20315 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20317 for (i = 0; i < pagesize; ++i)
20318 if (*(data + i) != *(data2 + i))
20321 /* Finally, make sure that changes to the mapped area do not
20322 percolate back to the file as seen by read(). (This is a bug on
20323 some variants of i386 svr4.0.) */
20324 for (i = 0; i < pagesize; ++i)
20325 *(data2 + i) = *(data2 + i) + 1;
20326 data3 = (char *) malloc (pagesize);
20329 if (read (fd, data3, pagesize) != pagesize)
20331 for (i = 0; i < pagesize; ++i)
20332 if (*(data + i) != *(data3 + i))
20338 rm -f conftest$ac_exeext
20339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20340 (eval $ac_link) 2>&5
20342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20345 (eval $ac_try) 2>&5
20347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348 (exit $ac_status); }; }; then
20349 ac_cv_func_mmap_fixed_mapped=yes
20351 echo "$as_me: program exited with status $ac_status" >&5
20352 echo "$as_me: failed program was:" >&5
20353 sed 's/^/| /' conftest.$ac_ext >&5
20355 ( exit $ac_status )
20356 ac_cv_func_mmap_fixed_mapped=no
20358 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20361 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20362 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
20363 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20365 cat >>confdefs.h <<\_ACEOF
20366 #define HAVE_MMAP 1
20370 rm -f conftest.mmap
20374 for ac_func in madvise mprotect
20376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20377 echo "$as_me:$LINENO: checking for $ac_func" >&5
20378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20379 if eval "test \"\${$as_ac_var+set}\" = set"; then
20380 echo $ECHO_N "(cached) $ECHO_C" >&6
20382 cat >conftest.$ac_ext <<_ACEOF
20385 cat confdefs.h >>conftest.$ac_ext
20386 cat >>conftest.$ac_ext <<_ACEOF
20387 /* end confdefs.h. */
20388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20390 #define $ac_func innocuous_$ac_func
20392 /* System header to define __stub macros and hopefully few prototypes,
20393 which can conflict with char $ac_func (); below.
20394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20395 <limits.h> exists even on freestanding compilers. */
20398 # include <limits.h>
20400 # include <assert.h>
20405 /* Override any gcc2 internal prototype to avoid an error. */
20410 /* We use char because int might match the return type of a gcc2
20411 builtin and then its argument prototype would still apply. */
20413 /* The GNU C library defines this for functions which it implements
20414 to always fail with ENOSYS. Some functions are actually named
20415 something starting with __ and the normal name is an alias. */
20416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20419 char (*f) () = $ac_func;
20428 return f != $ac_func;
20433 rm -f conftest.$ac_objext conftest$ac_exeext
20434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20435 (eval $ac_link) 2>conftest.er1
20437 grep -v '^ *+' conftest.er1 >conftest.err
20439 cat conftest.err >&5
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); } &&
20442 { ac_try='test -z "$ac_c_werror_flag"
20443 || test ! -s conftest.err'
20444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20445 (eval $ac_try) 2>&5
20447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448 (exit $ac_status); }; } &&
20449 { ac_try='test -s conftest$ac_exeext'
20450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20451 (eval $ac_try) 2>&5
20453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454 (exit $ac_status); }; }; then
20455 eval "$as_ac_var=yes"
20457 echo "$as_me: failed program was:" >&5
20458 sed 's/^/| /' conftest.$ac_ext >&5
20460 eval "$as_ac_var=no"
20462 rm -f conftest.err conftest.$ac_objext \
20463 conftest$ac_exeext conftest.$ac_ext
20465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20466 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20467 if test `eval echo '${'$as_ac_var'}'` = yes; then
20468 cat >>confdefs.h <<_ACEOF
20469 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20475 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
20477 cat >>confdefs.h <<\_ACEOF
20483 rm -f doc/config.status
20484 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
20487 ac_config_commands="$ac_config_commands default"
20494 cat >confcache <<\_ACEOF
20495 # This file is a shell script that caches the results of configure
20496 # tests run on this system so they can be shared between configure
20497 # scripts and configure runs, see configure's option --config-cache.
20498 # It is not useful on other systems. If it contains results you don't
20499 # want to keep, you may remove or edit it.
20501 # config.status only pays attention to the cache file if you give it
20502 # the --recheck option to rerun configure.
20504 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20505 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20506 # following values.
20510 # The following way of writing the cache mishandles newlines in values,
20511 # but we know of no workaround that is simple, portable, and efficient.
20512 # So, don't put newlines in cache variables' values.
20513 # Ultrix sh set writes to stderr and can't be redirected directly,
20514 # and sets the high bit in the cache file unless we assign to the vars.
20517 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20519 # `set' does not quote correctly, so add quotes (double-quote
20520 # substitution turns \\\\ into \\, and sed turns \\ into \).
20523 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20526 # `set' quotes correctly as required by POSIX, so do not add quotes.
20528 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20535 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20537 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20539 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20540 if test -w $cache_file; then
20541 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20542 cat confcache >$cache_file
20544 echo "not updating unwritable cache $cache_file"
20549 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20550 # Let make expand exec_prefix.
20551 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20553 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20554 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20555 # trailing colons and then remove the whole line if VPATH becomes empty
20556 # (actually we leave an empty line to preserve line numbers).
20557 if test "x$srcdir" = x.; then
20558 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20559 s/:*\$(srcdir):*/:/;
20560 s/:*\${srcdir}:*/:/;
20562 s/^\([^=]*=[ ]*\):*/\1/;
20568 DEFS=-DHAVE_CONFIG_H
20572 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20573 # 1. Remove the extension, and $U if already installed.
20574 ac_i=`echo "$ac_i" |
20575 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20577 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20578 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20580 LIBOBJS=$ac_libobjs
20582 LTLIBOBJS=$ac_ltlibobjs
20585 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20586 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20587 Usually this means the macro was only invoked conditionally." >&5
20588 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20589 Usually this means the macro was only invoked conditionally." >&2;}
20590 { (exit 1); exit 1; }; }
20592 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20593 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20594 Usually this means the macro was only invoked conditionally." >&5
20595 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20596 Usually this means the macro was only invoked conditionally." >&2;}
20597 { (exit 1); exit 1; }; }
20599 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20600 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20601 Usually this means the macro was only invoked conditionally." >&5
20602 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20603 Usually this means the macro was only invoked conditionally." >&2;}
20604 { (exit 1); exit 1; }; }
20606 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
20607 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
20608 Usually this means the macro was only invoked conditionally." >&5
20609 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
20610 Usually this means the macro was only invoked conditionally." >&2;}
20611 { (exit 1); exit 1; }; }
20613 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
20614 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
20615 Usually this means the macro was only invoked conditionally." >&5
20616 echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
20617 Usually this means the macro was only invoked conditionally." >&2;}
20618 { (exit 1); exit 1; }; }
20621 : ${CONFIG_STATUS=./config.status}
20622 ac_clean_files_save=$ac_clean_files
20623 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20624 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20625 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20626 cat >$CONFIG_STATUS <<_ACEOF
20628 # Generated by $as_me.
20629 # Run this file to recreate the current configuration.
20630 # Compiler output produced by configure, useful for debugging
20631 # configure, is in config.log if it exists.
20634 ac_cs_recheck=false
20636 SHELL=\${CONFIG_SHELL-$SHELL}
20639 cat >>$CONFIG_STATUS <<\_ACEOF
20640 ## --------------------- ##
20641 ## M4sh Initialization. ##
20642 ## --------------------- ##
20644 # Be Bourne compatible
20645 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20648 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20649 # is contrary to our usage. Disable this feature.
20650 alias -g '${1+"$@"}'='"$@"'
20651 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20654 DUALCASE=1; export DUALCASE # for MKS sh
20656 # Support unset when possible.
20657 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20664 # Work around bugs in pre-3.0 UWIN ksh.
20665 $as_unset ENV MAIL MAILPATH
20672 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20673 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20674 LC_TELEPHONE LC_TIME
20676 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20677 eval $as_var=C; export $as_var
20683 # Required to use basename.
20684 if expr a : '\(a\)' >/dev/null 2>&1; then
20690 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20691 as_basename=basename
20697 # Name of the executable.
20698 as_me=`$as_basename "$0" ||
20699 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20700 X"$0" : 'X\(//\)$' \| \
20701 X"$0" : 'X\(/\)$' \| \
20702 . : '\(.\)' 2>/dev/null ||
20704 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20705 /^X\/\(\/\/\)$/{ s//\1/; q; }
20706 /^X\/\(\/\).*/{ s//\1/; q; }
20710 # PATH needs CR, and LINENO needs CR and PATH.
20711 # Avoid depending upon Character Ranges.
20712 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20713 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20714 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20715 as_cr_digits='0123456789'
20716 as_cr_alnum=$as_cr_Letters$as_cr_digits
20718 # The user is always right.
20719 if test "${PATH_SEPARATOR+set}" != set; then
20720 echo "#! /bin/sh" >conf$$.sh
20721 echo "exit 0" >>conf$$.sh
20723 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20732 as_lineno_1=$LINENO
20733 as_lineno_2=$LINENO
20734 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20735 test "x$as_lineno_1" != "x$as_lineno_2" &&
20736 test "x$as_lineno_3" = "x$as_lineno_2" || {
20737 # Find who we are. Look in the path if we contain no path at all
20740 *[\\/]* ) as_myself=$0 ;;
20741 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20742 for as_dir in $PATH
20745 test -z "$as_dir" && as_dir=.
20746 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20751 # We did not find ourselves, most probably we were run as `sh COMMAND'
20752 # in which case we are not to be found in the path.
20753 if test "x$as_myself" = x; then
20756 if test ! -f "$as_myself"; then
20757 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20758 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20759 { (exit 1); exit 1; }; }
20761 case $CONFIG_SHELL in
20763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20764 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20767 test -z "$as_dir" && as_dir=.
20768 for as_base in sh bash ksh sh5; do
20771 if ("$as_dir/$as_base" -c '
20772 as_lineno_1=$LINENO
20773 as_lineno_2=$LINENO
20774 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20775 test "x$as_lineno_1" != "x$as_lineno_2" &&
20776 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20777 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20778 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20779 CONFIG_SHELL=$as_dir/$as_base
20780 export CONFIG_SHELL
20781 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20789 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20790 # uniformly replaced by the line number. The first 'sed' inserts a
20791 # line-number line before each line; the second 'sed' does the real
20792 # work. The second script uses 'N' to pair each line-number line
20793 # with the numbered line, and appends trailing '-' during
20794 # substitution so that $LINENO is not a special case at line end.
20795 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20796 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20797 sed '=' <$as_myself |
20802 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20805 s,^['$as_cr_digits']*\n,,
20806 ' >$as_me.lineno &&
20807 chmod +x $as_me.lineno ||
20808 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20809 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20810 { (exit 1); exit 1; }; }
20812 # Don't try to exec as it changes $[0], causing all sort of problems
20813 # (the dirname of $[0] is not the place where we might find the
20814 # original and so on. Autoconf is especially sensible to this).
20816 # Exit status is that of the last command.
20821 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20822 *c*,-n*) ECHO_N= ECHO_C='
20824 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20825 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20828 if expr a : '\(a\)' >/dev/null 2>&1; then
20834 rm -f conf$$ conf$$.exe conf$$.file
20836 if ln -s conf$$.file conf$$ 2>/dev/null; then
20837 # We could just check for DJGPP; but this test a) works b) is more generic
20838 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20839 if test -f conf$$.exe; then
20840 # Don't use ln at all; we don't have any links
20845 elif ln conf$$.file conf$$ 2>/dev/null; then
20850 rm -f conf$$ conf$$.exe conf$$.file
20852 if mkdir -p . 2>/dev/null; then
20855 test -d ./-p && rmdir ./-p
20859 as_executable_p="test -f"
20861 # Sed expression to map a string onto a valid CPP name.
20862 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20864 # Sed expression to map a string onto a valid variable name.
20865 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20869 # We need space, tab and new line, in precisely that order.
20879 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20880 # report actual input values of CONFIG_FILES etc. instead of their
20881 # values after options handling. Logging --version etc. is OK.
20885 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20886 ## Running $as_me. ##
20891 This file was extended by $as_me, which was
20892 generated by GNU Autoconf 2.59. Invocation command line was
20894 CONFIG_FILES = $CONFIG_FILES
20895 CONFIG_HEADERS = $CONFIG_HEADERS
20896 CONFIG_LINKS = $CONFIG_LINKS
20897 CONFIG_COMMANDS = $CONFIG_COMMANDS
20901 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20905 # Files that config.status was made for.
20906 if test -n "$ac_config_files"; then
20907 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20910 if test -n "$ac_config_headers"; then
20911 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20914 if test -n "$ac_config_links"; then
20915 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20918 if test -n "$ac_config_commands"; then
20919 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20922 cat >>$CONFIG_STATUS <<\_ACEOF
20925 \`$as_me' instantiates files from templates according to the
20926 current configuration.
20928 Usage: $0 [OPTIONS] [FILE]...
20930 -h, --help print this help, then exit
20931 -V, --version print version number, then exit
20932 -q, --quiet do not print progress messages
20933 -d, --debug don't remove temporary files
20934 --recheck update $as_me by reconfiguring in the same conditions
20935 --file=FILE[:TEMPLATE]
20936 instantiate the configuration file FILE
20937 --header=FILE[:TEMPLATE]
20938 instantiate the configuration header FILE
20940 Configuration files:
20943 Configuration headers:
20946 Configuration commands:
20949 Report bugs to <bug-autoconf@gnu.org>."
20952 cat >>$CONFIG_STATUS <<_ACEOF
20955 configured by $0, generated by GNU Autoconf 2.59,
20956 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20958 Copyright (C) 2003 Free Software Foundation, Inc.
20959 This config.status script is free software; the Free Software Foundation
20960 gives unlimited permission to copy, distribute and modify it."
20965 cat >>$CONFIG_STATUS <<\_ACEOF
20966 # If no file are specified by the user, then we need to provide default
20967 # value. By we need to know if files were specified by the user.
20973 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20974 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20982 *) # This is not an option, so the user has probably given explicit
20985 ac_need_defaults=false;;
20989 # Handling of the options.
20991 cat >>$CONFIG_STATUS <<\_ACEOF
20992 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20994 --version | --vers* | -V )
20995 echo "$ac_cs_version"; exit 0 ;;
20997 # Conflict between --help and --header
20998 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20999 Try \`$0 --help' for more information." >&5
21000 echo "$as_me: error: ambiguous option: $1
21001 Try \`$0 --help' for more information." >&2;}
21002 { (exit 1); exit 1; }; };;
21003 --help | --hel | -h )
21004 echo "$ac_cs_usage"; exit 0 ;;
21005 --debug | --d* | -d )
21007 --file | --fil | --fi | --f )
21009 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21010 ac_need_defaults=false;;
21011 --header | --heade | --head | --hea )
21013 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21014 ac_need_defaults=false;;
21015 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21016 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21019 # This is an error.
21020 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21021 Try \`$0 --help' for more information." >&5
21022 echo "$as_me: error: unrecognized option: $1
21023 Try \`$0 --help' for more information." >&2;}
21024 { (exit 1); exit 1; }; } ;;
21026 *) ac_config_targets="$ac_config_targets $1" ;;
21032 ac_configure_extra_args=
21034 if $ac_cs_silent; then
21036 ac_configure_extra_args="$ac_configure_extra_args --silent"
21040 cat >>$CONFIG_STATUS <<_ACEOF
21041 if \$ac_cs_recheck; then
21042 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21043 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21048 cat >>$CONFIG_STATUS <<_ACEOF
21050 # INIT-COMMANDS section.
21053 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21056 # The HP-UX ksh and POSIX shell print the target directory to stdout
21057 # if CDPATH is set.
21058 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21060 sed_quote_subst='$sed_quote_subst'
21061 double_quote_subst='$double_quote_subst'
21062 delay_variable_subst='$delay_variable_subst'
21063 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
21064 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
21065 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
21066 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
21067 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
21068 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
21069 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
21070 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
21071 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
21072 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
21073 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
21074 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
21075 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
21076 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
21077 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
21078 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
21079 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
21080 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
21081 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
21082 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
21083 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
21084 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
21085 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
21086 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
21087 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
21088 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
21089 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
21090 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21091 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
21092 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
21093 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
21094 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21095 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
21096 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
21097 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21098 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21099 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21100 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
21101 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21102 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
21103 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
21104 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
21105 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
21106 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"`'
21107 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
21108 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
21109 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
21110 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
21111 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
21112 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
21113 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
21114 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
21115 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
21116 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
21117 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
21118 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21119 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21120 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
21121 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
21122 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21123 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21124 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
21125 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21126 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21127 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21128 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21129 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21130 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21131 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
21132 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21133 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21134 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21135 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
21136 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
21137 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
21138 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
21139 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
21140 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21141 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
21142 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
21143 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
21144 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
21145 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
21146 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21147 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21148 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21149 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21150 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
21151 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
21152 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
21153 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
21154 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
21155 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21156 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21157 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
21158 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21159 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
21160 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21161 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21162 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21163 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21164 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
21165 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
21166 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21167 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21168 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
21169 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
21170 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
21171 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
21172 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
21173 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
21176 LTCFLAGS='$LTCFLAGS'
21177 compiler='$compiler_DEFAULT'
21179 # Quote evaled strings.
21190 deplibs_check_method \
21199 lt_cv_sys_global_symbol_pipe \
21200 lt_cv_sys_global_symbol_to_cdecl \
21201 lt_cv_sys_global_symbol_to_c_name_address \
21204 lt_prog_compiler_no_builtin_flag \
21205 lt_prog_compiler_wl \
21206 lt_prog_compiler_pic \
21207 lt_prog_compiler_static \
21208 lt_cv_prog_compiler_c_o \
21211 export_dynamic_flag_spec \
21212 whole_archive_flag_spec \
21213 compiler_needs_object \
21215 allow_undefined_flag \
21216 no_undefined_flag \
21217 hardcode_libdir_flag_spec \
21218 hardcode_libdir_flag_spec_ld \
21219 hardcode_libdir_separator \
21224 variables_saved_for_relink \
21226 library_names_spec \
21231 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21232 *[\\\\\\\`\\"\\\$]*)
21233 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21236 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21241 # Double-quote double-evaled strings.
21242 for var in reload_cmds \
21243 old_postinstall_cmds \
21244 old_postuninstall_cmds \
21246 extract_expsyms_cmds \
21247 old_archive_from_new_cmds \
21248 old_archive_from_expsyms_cmds \
21250 archive_expsym_cmds \
21252 module_expsym_cmds \
21253 export_symbols_cmds \
21256 postuninstall_cmds \
21258 sys_lib_search_path_spec \
21259 sys_lib_dlsearch_path_spec; do
21260 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21261 *[\\\\\\\`\\"\\\$]*)
21262 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21265 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21270 # Fix-up fallback echo if it was mangled by the above quoting rules.
21272 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
21276 ac_aux_dir='$ac_aux_dir'
21277 xsi_shell='$xsi_shell'
21278 lt_shell_append='$lt_shell_append'
21280 # See if we are running on zsh, and set the options which allow our
21281 # commands through without removal of \ escapes INIT.
21282 if test -n "\${ZSH_VERSION+set}" ; then
21283 setopt NO_GLOB_SUBST
21289 TIMESTAMP='$TIMESTAMP'
21295 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
21296 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
21298 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
21299 # Capture the value of LINGUAS because we need it to compute CATALOGS.
21300 LINGUAS="${LINGUAS-%UNSET%}"
21305 acx_cv_header_stdint="$acx_cv_header_stdint"
21306 acx_cv_type_int8_t="$acx_cv_type_int8_t"
21307 acx_cv_type_int16_t="$acx_cv_type_int16_t"
21308 acx_cv_type_int32_t="$acx_cv_type_int32_t"
21309 acx_cv_type_int64_t="$acx_cv_type_int64_t"
21310 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
21311 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
21312 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
21313 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
21314 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
21315 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
21316 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
21317 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
21318 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
21326 cat >>$CONFIG_STATUS <<\_ACEOF
21327 for ac_config_target in $ac_config_targets
21329 case "$ac_config_target" in
21330 # Handling of arguments.
21331 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21332 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21333 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
21334 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
21335 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21336 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21337 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
21338 "bfd_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
21339 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21340 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
21341 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21342 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21343 { (exit 1); exit 1; }; };;
21347 # If the user did not use the arguments to specify the items to instantiate,
21348 # then the envvar interface is used. Set only those that are not.
21349 # We use the long form for the default assignment because of an extremely
21350 # bizarre bug on SunOS 4.1.3.
21351 if $ac_need_defaults; then
21352 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21353 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21354 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21357 # Have a temporary directory for convenience. Make it in the build tree
21358 # simply because there is no reason to put it here, and in addition,
21359 # creating and moving files from /tmp can sometimes cause problems.
21360 # Create a temporary directory, and hook for its removal unless debugging.
21363 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21364 trap '{ (exit 1); exit 1; }' 1 2 13 15
21367 # Create a (secure) tmp directory for tmp files.
21370 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21371 test -n "$tmp" && test -d "$tmp"
21374 tmp=./confstat$$-$RANDOM
21375 (umask 077 && mkdir $tmp)
21378 echo "$me: cannot create a temporary directory in ." >&2
21379 { (exit 1); exit 1; }
21384 cat >>$CONFIG_STATUS <<_ACEOF
21387 # CONFIG_FILES section.
21390 # No need to generate the scripts if there are no CONFIG_FILES.
21391 # This happens for instance when ./config.status config.h
21392 if test -n "\$CONFIG_FILES"; then
21393 # Protect against being on the right side of a sed subst in config.status.
21394 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21395 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21396 s,@SHELL@,$SHELL,;t t
21397 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21398 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21399 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21400 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21401 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21402 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21403 s,@exec_prefix@,$exec_prefix,;t t
21404 s,@prefix@,$prefix,;t t
21405 s,@program_transform_name@,$program_transform_name,;t t
21406 s,@bindir@,$bindir,;t t
21407 s,@sbindir@,$sbindir,;t t
21408 s,@libexecdir@,$libexecdir,;t t
21409 s,@datadir@,$datadir,;t t
21410 s,@sysconfdir@,$sysconfdir,;t t
21411 s,@sharedstatedir@,$sharedstatedir,;t t
21412 s,@localstatedir@,$localstatedir,;t t
21413 s,@libdir@,$libdir,;t t
21414 s,@includedir@,$includedir,;t t
21415 s,@oldincludedir@,$oldincludedir,;t t
21416 s,@infodir@,$infodir,;t t
21417 s,@mandir@,$mandir,;t t
21418 s,@build_alias@,$build_alias,;t t
21419 s,@host_alias@,$host_alias,;t t
21420 s,@target_alias@,$target_alias,;t t
21421 s,@DEFS@,$DEFS,;t t
21422 s,@ECHO_C@,$ECHO_C,;t t
21423 s,@ECHO_N@,$ECHO_N,;t t
21424 s,@ECHO_T@,$ECHO_T,;t t
21425 s,@LIBS@,$LIBS,;t t
21426 s,@build@,$build,;t t
21427 s,@build_cpu@,$build_cpu,;t t
21428 s,@build_vendor@,$build_vendor,;t t
21429 s,@build_os@,$build_os,;t t
21430 s,@host@,$host,;t t
21431 s,@host_cpu@,$host_cpu,;t t
21432 s,@host_vendor@,$host_vendor,;t t
21433 s,@host_os@,$host_os,;t t
21434 s,@target@,$target,;t t
21435 s,@target_cpu@,$target_cpu,;t t
21436 s,@target_vendor@,$target_vendor,;t t
21437 s,@target_os@,$target_os,;t t
21439 s,@CFLAGS@,$CFLAGS,;t t
21440 s,@LDFLAGS@,$LDFLAGS,;t t
21441 s,@CPPFLAGS@,$CPPFLAGS,;t t
21442 s,@ac_ct_CC@,$ac_ct_CC,;t t
21443 s,@EXEEXT@,$EXEEXT,;t t
21444 s,@OBJEXT@,$OBJEXT,;t t
21445 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21446 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21447 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21448 s,@CYGPATH_W@,$CYGPATH_W,;t t
21449 s,@PACKAGE@,$PACKAGE,;t t
21450 s,@VERSION@,$VERSION,;t t
21451 s,@ACLOCAL@,$ACLOCAL,;t t
21452 s,@AUTOCONF@,$AUTOCONF,;t t
21453 s,@AUTOMAKE@,$AUTOMAKE,;t t
21454 s,@AUTOHEADER@,$AUTOHEADER,;t t
21455 s,@MAKEINFO@,$MAKEINFO,;t t
21456 s,@install_sh@,$install_sh,;t t
21457 s,@STRIP@,$STRIP,;t t
21458 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21459 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21460 s,@mkdir_p@,$mkdir_p,;t t
21462 s,@SET_MAKE@,$SET_MAKE,;t t
21463 s,@am__leading_dot@,$am__leading_dot,;t t
21464 s,@AMTAR@,$AMTAR,;t t
21465 s,@am__tar@,$am__tar,;t t
21466 s,@am__untar@,$am__untar,;t t
21467 s,@DEPDIR@,$DEPDIR,;t t
21468 s,@am__include@,$am__include,;t t
21469 s,@am__quote@,$am__quote,;t t
21470 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21471 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21472 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21473 s,@CCDEPMODE@,$CCDEPMODE,;t t
21474 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21475 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21477 s,@ac_ct_AR@,$ac_ct_AR,;t t
21478 s,@RANLIB@,$RANLIB,;t t
21479 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21480 s,@LIBTOOL@,$LIBTOOL,;t t
21482 s,@EGREP@,$EGREP,;t t
21483 s,@FGREP@,$FGREP,;t t
21484 s,@GREP@,$GREP,;t t
21486 s,@DUMPBIN@,$DUMPBIN,;t t
21487 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
21489 s,@LN_S@,$LN_S,;t t
21490 s,@lt_ECHO@,$lt_ECHO,;t t
21492 s,@DEBUGDIR@,$DEBUGDIR,;t t
21493 s,@PKGVERSION@,$PKGVERSION,;t t
21494 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
21495 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
21496 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
21497 s,@NO_WERROR@,$NO_WERROR,;t t
21498 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21499 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21500 s,@MAINT@,$MAINT,;t t
21501 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
21502 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
21503 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
21504 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
21505 s,@host_noncanonical@,$host_noncanonical,;t t
21506 s,@target_noncanonical@,$target_noncanonical,;t t
21507 s,@bfdlibdir@,$bfdlibdir,;t t
21508 s,@bfdincludedir@,$bfdincludedir,;t t
21509 s,@USE_NLS@,$USE_NLS,;t t
21510 s,@LIBINTL@,$LIBINTL,;t t
21511 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
21512 s,@INCINTL@,$INCINTL,;t t
21513 s,@XGETTEXT@,$XGETTEXT,;t t
21514 s,@GMSGFMT@,$GMSGFMT,;t t
21515 s,@POSUB@,$POSUB,;t t
21516 s,@CATALOGS@,$CATALOGS,;t t
21517 s,@DATADIRNAME@,$DATADIRNAME,;t t
21518 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
21519 s,@GENCAT@,$GENCAT,;t t
21520 s,@CATOBJEXT@,$CATOBJEXT,;t t
21521 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
21522 s,@MSGFMT@,$MSGFMT,;t t
21523 s,@MSGMERGE@,$MSGMERGE,;t t
21524 s,@HDEFINES@,$HDEFINES,;t t
21525 s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
21526 s,@BFD_HOST_64BIT_LONG_LONG@,$BFD_HOST_64BIT_LONG_LONG,;t t
21527 s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
21528 s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
21529 s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
21530 s,@BFD_HOSTPTR_T@,$BFD_HOSTPTR_T,;t t
21531 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
21532 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
21533 s,@COREFILE@,$COREFILE,;t t
21534 s,@COREFLAG@,$COREFLAG,;t t
21535 s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
21536 s,@WIN32LIBADD@,$WIN32LIBADD,;t t
21537 s,@TDEFINES@,$TDEFINES,;t t
21538 s,@wordsize@,$wordsize,;t t
21539 s,@bfd64_libs@,$bfd64_libs,;t t
21540 s,@all_backends@,$all_backends,;t t
21541 s,@bfd_backends@,$bfd_backends,;t t
21542 s,@bfd_machines@,$bfd_machines,;t t
21543 s,@bfd_default_target_size@,$bfd_default_target_size,;t t
21544 s,@bfd_file_ptr@,$bfd_file_ptr,;t t
21545 s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
21546 s,@tdefaults@,$tdefaults,;t t
21547 s,@datarootdir@,$datarootdir,;t t
21548 s,@docdir@,$docdir,;t t
21549 s,@htmldir@,$htmldir,;t t
21550 s,@LIBOBJS@,$LIBOBJS,;t t
21551 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21556 cat >>$CONFIG_STATUS <<\_ACEOF
21557 # Split the substitutions into bite-sized pieces for seds with
21558 # small command number limits, like on Digital OSF/1 and HP-UX.
21559 ac_max_sed_lines=48
21560 ac_sed_frag=1 # Number of current file.
21561 ac_beg=1 # First line for current file.
21562 ac_end=$ac_max_sed_lines # Line after last line for current file.
21565 while $ac_more_lines; do
21566 if test $ac_beg -gt 1; then
21567 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21569 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21571 if test ! -s $tmp/subs.frag; then
21572 ac_more_lines=false
21574 # The purpose of the label and of the branching condition is to
21575 # speed up the sed processing (if there are no `@' at all, there
21576 # is no need to browse any of the substitutions).
21577 # These are the two extra sed commands mentioned above.
21579 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21580 if test -z "$ac_sed_cmds"; then
21581 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21583 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21585 ac_sed_frag=`expr $ac_sed_frag + 1`
21587 ac_end=`expr $ac_end + $ac_max_sed_lines`
21590 if test -z "$ac_sed_cmds"; then
21593 fi # test -n "$CONFIG_FILES"
21596 cat >>$CONFIG_STATUS <<\_ACEOF
21597 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21598 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21600 - | *:- | *:-:* ) # input from stdin
21602 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21603 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21604 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21605 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21606 * ) ac_file_in=$ac_file.in ;;
21609 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21610 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21611 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21612 X"$ac_file" : 'X\(//\)[^/]' \| \
21613 X"$ac_file" : 'X\(//\)$' \| \
21614 X"$ac_file" : 'X\(/\)' \| \
21615 . : '\(.\)' 2>/dev/null ||
21617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21618 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21619 /^X\(\/\/\)$/{ s//\1/; q; }
21620 /^X\(\/\).*/{ s//\1/; q; }
21622 { if $as_mkdir_p; then
21627 while test ! -d "$as_dir"; do
21628 as_dirs="$as_dir $as_dirs"
21629 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21630 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21631 X"$as_dir" : 'X\(//\)[^/]' \| \
21632 X"$as_dir" : 'X\(//\)$' \| \
21633 X"$as_dir" : 'X\(/\)' \| \
21634 . : '\(.\)' 2>/dev/null ||
21636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21637 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21638 /^X\(\/\/\)$/{ s//\1/; q; }
21639 /^X\(\/\).*/{ s//\1/; q; }
21642 test ! -n "$as_dirs" || mkdir $as_dirs
21643 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21644 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21645 { (exit 1); exit 1; }; }; }
21649 if test "$ac_dir" != .; then
21650 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21651 # A "../" for each directory in $ac_dir_suffix.
21652 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21654 ac_dir_suffix= ac_top_builddir=
21658 .) # No --srcdir option. We are building in place.
21660 if test -z "$ac_top_builddir"; then
21663 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21665 [\\/]* | ?:[\\/]* ) # Absolute path.
21666 ac_srcdir=$srcdir$ac_dir_suffix;
21667 ac_top_srcdir=$srcdir ;;
21668 *) # Relative path.
21669 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21670 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21673 # Do not use `cd foo && pwd` to compute absolute paths, because
21674 # the directories may not exist.
21676 .) ac_abs_builddir="$ac_dir";;
21679 .) ac_abs_builddir=`pwd`;;
21680 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21681 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21684 case $ac_abs_builddir in
21685 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21687 case ${ac_top_builddir}. in
21688 .) ac_abs_top_builddir=$ac_abs_builddir;;
21689 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21690 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21693 case $ac_abs_builddir in
21694 .) ac_abs_srcdir=$ac_srcdir;;
21697 .) ac_abs_srcdir=$ac_abs_builddir;;
21698 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21699 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21702 case $ac_abs_builddir in
21703 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21705 case $ac_top_srcdir in
21706 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21707 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21708 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21714 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21715 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21718 if test x"$ac_file" != x-; then
21719 { echo "$as_me:$LINENO: creating $ac_file" >&5
21720 echo "$as_me: creating $ac_file" >&6;}
21723 # Let's still pretend it is `configure' which instantiates (i.e., don't
21724 # use $as_me), people would be surprised to read:
21725 # /* config.h. Generated by config.status. */
21726 if test x"$ac_file" = x-; then
21729 configure_input="$ac_file. "
21731 configure_input=$configure_input"Generated from `echo $ac_file_in |
21732 sed 's,.*/,,'` by configure."
21734 # First look for the input files in the build tree, otherwise in the
21736 ac_file_inputs=`IFS=:
21737 for f in $ac_file_in; do
21739 -) echo $tmp/stdin ;;
21741 # Absolute (can't be DOS-style, as IFS=:)
21742 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21743 echo "$as_me: error: cannot find input file: $f" >&2;}
21744 { (exit 1); exit 1; }; }
21747 if test -f "$f"; then
21750 elif test -f "$srcdir/$f"; then
21755 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21756 echo "$as_me: error: cannot find input file: $f" >&2;}
21757 { (exit 1); exit 1; }; }
21760 done` || { (exit 1); exit 1; }
21762 cat >>$CONFIG_STATUS <<_ACEOF
21766 cat >>$CONFIG_STATUS <<\_ACEOF
21768 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21769 s,@configure_input@,$configure_input,;t t
21770 s,@srcdir@,$ac_srcdir,;t t
21771 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21772 s,@top_srcdir@,$ac_top_srcdir,;t t
21773 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21774 s,@builddir@,$ac_builddir,;t t
21775 s,@abs_builddir@,$ac_abs_builddir,;t t
21776 s,@top_builddir@,$ac_top_builddir,;t t
21777 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21778 s,@INSTALL@,$ac_INSTALL,;t t
21779 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21781 if test x"$ac_file" != x-; then
21782 mv $tmp/out $ac_file
21790 cat >>$CONFIG_STATUS <<\_ACEOF
21793 # CONFIG_HEADER section.
21796 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21797 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21799 # ac_d sets the value in "#define NAME VALUE" lines.
21800 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21801 ac_dB='[ ].*$,\1#\2'
21804 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21805 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21806 ac_uB='$,\1#\2define\3'
21810 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21811 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21813 - | *:- | *:-:* ) # input from stdin
21815 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21816 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21817 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21818 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21819 * ) ac_file_in=$ac_file.in ;;
21822 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21823 echo "$as_me: creating $ac_file" >&6;}
21825 # First look for the input files in the build tree, otherwise in the
21827 ac_file_inputs=`IFS=:
21828 for f in $ac_file_in; do
21830 -) echo $tmp/stdin ;;
21832 # Absolute (can't be DOS-style, as IFS=:)
21833 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21834 echo "$as_me: error: cannot find input file: $f" >&2;}
21835 { (exit 1); exit 1; }; }
21836 # Do quote $f, to prevent DOS paths from being IFS'd.
21839 if test -f "$f"; then
21842 elif test -f "$srcdir/$f"; then
21847 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21848 echo "$as_me: error: cannot find input file: $f" >&2;}
21849 { (exit 1); exit 1; }; }
21852 done` || { (exit 1); exit 1; }
21853 # Remove the trailing spaces.
21854 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21858 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21859 # `conftest.undefs', that substitutes the proper values into
21860 # config.h.in to produce config.h. The first handles `#define'
21861 # templates, and the second `#undef' templates.
21862 # And first: Protect against being on the right side of a sed subst in
21863 # config.status. Protect against being in an unquoted here document
21864 # in config.status.
21865 rm -f conftest.defines conftest.undefs
21866 # Using a here document instead of a string reduces the quoting nightmare.
21867 # Putting comments in sed scripts is not portable.
21869 # `end' is used to avoid that the second main sed command (meant for
21870 # 0-ary CPP macros) applies to n-ary macro definitions.
21871 # See the Autoconf documentation for `clear'.
21872 cat >confdef2sed.sed <<\_ACEOF
21877 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21879 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21882 # If some macros were called several times there might be several times
21883 # the same #defines, which is useless. Nevertheless, we may not want to
21884 # sort them, since we want the *last* AC-DEFINE to be honored.
21885 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21886 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21887 rm -f confdef2sed.sed
21889 # This sed command replaces #undef with comments. This is necessary, for
21890 # example, in the case of _POSIX_SOURCE, which is predefined and required
21891 # on some systems where configure will not decide to define it.
21892 cat >>conftest.undefs <<\_ACEOF
21893 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21896 # Break up conftest.defines because some shells have a limit on the size
21897 # of here documents, and old seds have small limits too (100 cmds).
21898 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21899 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21900 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21901 echo ' :' >>$CONFIG_STATUS
21902 rm -f conftest.tail
21903 while grep . conftest.defines >/dev/null
21905 # Write a limited-size here document to $tmp/defines.sed.
21906 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21907 # Speed up: don't consider the non `#define' lines.
21908 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21909 # Work around the forget-to-reset-the-flag bug.
21910 echo 't clr' >>$CONFIG_STATUS
21911 echo ': clr' >>$CONFIG_STATUS
21912 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21914 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21916 mv $tmp/out $tmp/in
21918 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21919 rm -f conftest.defines
21920 mv conftest.tail conftest.defines
21922 rm -f conftest.defines
21923 echo ' fi # grep' >>$CONFIG_STATUS
21924 echo >>$CONFIG_STATUS
21926 # Break up conftest.undefs because some shells have a limit on the size
21927 # of here documents, and old seds have small limits too (100 cmds).
21928 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21929 rm -f conftest.tail
21930 while grep . conftest.undefs >/dev/null
21932 # Write a limited-size here document to $tmp/undefs.sed.
21933 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21934 # Speed up: don't consider the non `#undef'
21935 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21936 # Work around the forget-to-reset-the-flag bug.
21937 echo 't clr' >>$CONFIG_STATUS
21938 echo ': clr' >>$CONFIG_STATUS
21939 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21941 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21943 mv $tmp/out $tmp/in
21945 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21946 rm -f conftest.undefs
21947 mv conftest.tail conftest.undefs
21949 rm -f conftest.undefs
21951 cat >>$CONFIG_STATUS <<\_ACEOF
21952 # Let's still pretend it is `configure' which instantiates (i.e., don't
21953 # use $as_me), people would be surprised to read:
21954 # /* config.h. Generated by config.status. */
21955 if test x"$ac_file" = x-; then
21956 echo "/* Generated by configure. */" >$tmp/config.h
21958 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21960 cat $tmp/in >>$tmp/config.h
21962 if test x"$ac_file" != x-; then
21963 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21964 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21965 echo "$as_me: $ac_file is unchanged" >&6;}
21967 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21968 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21969 X"$ac_file" : 'X\(//\)[^/]' \| \
21970 X"$ac_file" : 'X\(//\)$' \| \
21971 X"$ac_file" : 'X\(/\)' \| \
21972 . : '\(.\)' 2>/dev/null ||
21974 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21975 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21976 /^X\(\/\/\)$/{ s//\1/; q; }
21977 /^X\(\/\).*/{ s//\1/; q; }
21979 { if $as_mkdir_p; then
21984 while test ! -d "$as_dir"; do
21985 as_dirs="$as_dir $as_dirs"
21986 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21987 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21988 X"$as_dir" : 'X\(//\)[^/]' \| \
21989 X"$as_dir" : 'X\(//\)$' \| \
21990 X"$as_dir" : 'X\(/\)' \| \
21991 . : '\(.\)' 2>/dev/null ||
21993 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21994 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21995 /^X\(\/\/\)$/{ s//\1/; q; }
21996 /^X\(\/\).*/{ s//\1/; q; }
21999 test ! -n "$as_dirs" || mkdir $as_dirs
22000 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22001 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22002 { (exit 1); exit 1; }; }; }
22005 mv $tmp/config.h $ac_file
22009 rm -f $tmp/config.h
22011 # Compute $ac_file's index in $config_headers.
22013 for _am_header in $config_headers :; do
22014 case $_am_header in
22015 $ac_file | $ac_file:* )
22018 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22021 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22022 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22023 X$ac_file : 'X\(//\)[^/]' \| \
22024 X$ac_file : 'X\(//\)$' \| \
22025 X$ac_file : 'X\(/\)' \| \
22026 . : '\(.\)' 2>/dev/null ||
22028 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22029 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22030 /^X\(\/\/\)$/{ s//\1/; q; }
22031 /^X\(\/\).*/{ s//\1/; q; }
22032 s/.*/./; q'`/stamp-h$_am_stamp_count
22035 cat >>$CONFIG_STATUS <<\_ACEOF
22038 # CONFIG_COMMANDS section.
22040 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22041 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22042 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22043 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22044 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22045 X"$ac_dest" : 'X\(//\)[^/]' \| \
22046 X"$ac_dest" : 'X\(//\)$' \| \
22047 X"$ac_dest" : 'X\(/\)' \| \
22048 . : '\(.\)' 2>/dev/null ||
22050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22051 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22052 /^X\(\/\/\)$/{ s//\1/; q; }
22053 /^X\(\/\).*/{ s//\1/; q; }
22055 { if $as_mkdir_p; then
22060 while test ! -d "$as_dir"; do
22061 as_dirs="$as_dir $as_dirs"
22062 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22063 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22064 X"$as_dir" : 'X\(//\)[^/]' \| \
22065 X"$as_dir" : 'X\(//\)$' \| \
22066 X"$as_dir" : 'X\(/\)' \| \
22067 . : '\(.\)' 2>/dev/null ||
22069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22070 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22071 /^X\(\/\/\)$/{ s//\1/; q; }
22072 /^X\(\/\).*/{ s//\1/; q; }
22075 test ! -n "$as_dirs" || mkdir $as_dirs
22076 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22077 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22078 { (exit 1); exit 1; }; }; }
22082 if test "$ac_dir" != .; then
22083 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22084 # A "../" for each directory in $ac_dir_suffix.
22085 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22087 ac_dir_suffix= ac_top_builddir=
22091 .) # No --srcdir option. We are building in place.
22093 if test -z "$ac_top_builddir"; then
22096 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22098 [\\/]* | ?:[\\/]* ) # Absolute path.
22099 ac_srcdir=$srcdir$ac_dir_suffix;
22100 ac_top_srcdir=$srcdir ;;
22101 *) # Relative path.
22102 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22103 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22106 # Do not use `cd foo && pwd` to compute absolute paths, because
22107 # the directories may not exist.
22109 .) ac_abs_builddir="$ac_dir";;
22112 .) ac_abs_builddir=`pwd`;;
22113 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22114 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22117 case $ac_abs_builddir in
22118 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22120 case ${ac_top_builddir}. in
22121 .) ac_abs_top_builddir=$ac_abs_builddir;;
22122 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22123 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22126 case $ac_abs_builddir in
22127 .) ac_abs_srcdir=$ac_srcdir;;
22130 .) ac_abs_srcdir=$ac_abs_builddir;;
22131 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22132 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22135 case $ac_abs_builddir in
22136 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22138 case $ac_top_srcdir in
22139 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22140 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22141 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22146 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22147 echo "$as_me: executing $ac_dest commands" >&6;}
22149 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22150 # Strip MF so we end up with the name of the file.
22151 mf=`echo "$mf" | sed -e 's/:.*$//'`
22152 # Check whether this is an Automake generated Makefile or not.
22153 # We used to match only the files named `Makefile.in', but
22154 # some people rename them; so instead we look at the file content.
22155 # Grep'ing the first line is not enough: some people post-process
22156 # each Makefile.in and add a new line on top of each file to say so.
22157 # So let's grep whole file.
22158 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22159 dirpart=`(dirname "$mf") 2>/dev/null ||
22160 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22161 X"$mf" : 'X\(//\)[^/]' \| \
22162 X"$mf" : 'X\(//\)$' \| \
22163 X"$mf" : 'X\(/\)' \| \
22164 . : '\(.\)' 2>/dev/null ||
22166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22167 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22168 /^X\(\/\/\)$/{ s//\1/; q; }
22169 /^X\(\/\).*/{ s//\1/; q; }
22174 # Extract the definition of DEPDIR, am__include, and am__quote
22175 # from the Makefile without running `make'.
22176 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22177 test -z "$DEPDIR" && continue
22178 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22179 test -z "am__include" && continue
22180 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22181 # When using ansi2knr, U may be empty or an underscore; expand it
22182 U=`sed -n 's/^U = //p' < "$mf"`
22183 # Find all dependency output files, they are included files with
22184 # $(DEPDIR) in their names. We invoke sed twice because it is the
22185 # simplest approach to changing $(DEPDIR) to its actual value in the
22187 for file in `sed -n "
22188 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22189 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22190 # Make sure the directory exists.
22191 test -f "$dirpart/$file" && continue
22192 fdir=`(dirname "$file") 2>/dev/null ||
22193 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22194 X"$file" : 'X\(//\)[^/]' \| \
22195 X"$file" : 'X\(//\)$' \| \
22196 X"$file" : 'X\(/\)' \| \
22197 . : '\(.\)' 2>/dev/null ||
22199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22200 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22201 /^X\(\/\/\)$/{ s//\1/; q; }
22202 /^X\(\/\).*/{ s//\1/; q; }
22204 { if $as_mkdir_p; then
22205 mkdir -p $dirpart/$fdir
22207 as_dir=$dirpart/$fdir
22209 while test ! -d "$as_dir"; do
22210 as_dirs="$as_dir $as_dirs"
22211 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22212 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22213 X"$as_dir" : 'X\(//\)[^/]' \| \
22214 X"$as_dir" : 'X\(//\)$' \| \
22215 X"$as_dir" : 'X\(/\)' \| \
22216 . : '\(.\)' 2>/dev/null ||
22218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22219 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22220 /^X\(\/\/\)$/{ s//\1/; q; }
22221 /^X\(\/\).*/{ s//\1/; q; }
22224 test ! -n "$as_dirs" || mkdir $as_dirs
22225 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22226 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22227 { (exit 1); exit 1; }; }; }
22229 # echo "creating $dirpart/$file"
22230 echo '# dummy' > "$dirpart/$file"
22236 # See if we are running on zsh, and set the options which allow our
22237 # commands through without removal of \ escapes.
22238 if test -n "${ZSH_VERSION+set}" ; then
22239 setopt NO_GLOB_SUBST
22242 cfgfile="${ofile}T"
22243 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22246 cat <<_LT_EOF >> "$cfgfile"
22249 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22250 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
22251 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22252 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22254 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22255 # 2006, 2007 Free Software Foundation, Inc.
22257 # This file is part of GNU Libtool:
22258 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
22260 # This program is free software; you can redistribute it and/or modify
22261 # it under the terms of the GNU General Public License as published by
22262 # the Free Software Foundation; either version 2 of the License, or
22263 # (at your option) any later version.
22265 # This program is distributed in the hope that it will be useful, but
22266 # WITHOUT ANY WARRANTY; without even the implied warranty of
22267 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22268 # General Public License for more details.
22270 # You should have received a copy of the GNU General Public License
22271 # along with this program; if not, a copy can be downloaded from
22272 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
22273 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
22274 # MA 02110-1301, USA.
22276 # As a special exception to the GNU General Public License, if you
22277 # distribute this file as part of a program that contains a
22278 # configuration script generated by Autoconf, you may include it under
22279 # the same distribution terms that you use for the rest of that program.
22282 # The names of the tagged configurations supported by this script.
22285 # ### BEGIN LIBTOOL CONFIG
22287 # Whether or not to build shared libraries.
22288 build_libtool_libs=$enable_shared
22290 # Which release of libtool.m4 was used?
22291 macro_version=$macro_version
22292 macro_revision=$macro_revision
22294 # Whether or not to build static libraries.
22295 build_old_libs=$enable_static
22297 # What type of objects to build.
22300 # Whether or not to optimize for fast installation.
22301 fast_install=$enable_fast_install
22304 host_alias=$host_alias
22308 # The build system.
22309 build_alias=$build_alias
22313 # A sed program that does not truncate output.
22316 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22317 Xsed="\$SED -e 1s/^X//"
22319 # A grep program that handles long lines.
22325 # A literal string matcher.
22328 # A BSD- or MS-compatible name lister.
22331 # Whether we need soft or hard links.
22334 # What is the maximum length of a command?
22335 max_cmd_len=$max_cmd_len
22337 # Object file suffix (normally "o").
22340 # Executable file suffix (normally "").
22343 # whether the shell understands "unset".
22346 # turn spaces into newlines.
22349 # turn newlines into spaces.
22352 # How to create reloadable object files.
22353 reload_flag=$lt_reload_flag
22354 reload_cmds=$lt_reload_cmds
22356 # Method to check whether dependent libraries are shared objects.
22357 deplibs_check_method=$lt_deplibs_check_method
22359 # Command to use when deplibs_check_method == "file_magic".
22360 file_magic_cmd=$lt_file_magic_cmd
22364 AR_FLAGS=$lt_AR_FLAGS
22366 # A symbol stripping program.
22369 # Commands used to install an old-style archive.
22371 old_postinstall_cmds=$lt_old_postinstall_cmds
22372 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22377 # LTCC compiler flags.
22378 LTCFLAGS=$lt_CFLAGS
22380 # Take the output of nm and produce a listing of raw symbols and C names.
22381 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22383 # Transform the output of nm in a proper C declaration.
22384 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22386 # Transform the output of nm in a C name address pair.
22387 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22389 # The name of the directory that contains temporary libtool files.
22392 # Shell to use when invoking shell scripts.
22395 # An echo program that does not interpret backslashes.
22398 # Used to examine libraries when file_magic_cmd begins with "file".
22399 MAGIC_CMD=$MAGIC_CMD
22401 # Must we lock files when doing compilation?
22402 need_locks=$lt_need_locks
22404 # Old archive suffix (normally "a").
22407 # Shared library suffix (normally ".so").
22408 shrext_cmds=$lt_shrext_cmds
22410 # The commands to extract the exported symbol list from a shared archive.
22411 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22413 # Variables whose values should be saved in libtool wrapper scripts and
22414 # restored at link time.
22415 variables_saved_for_relink=$lt_variables_saved_for_relink
22417 # Do we need the "lib" prefix for modules?
22418 need_lib_prefix=$need_lib_prefix
22420 # Do we need a version for libraries?
22421 need_version=$need_version
22423 # Library versioning type.
22424 version_type=$version_type
22426 # Shared library runtime path variable.
22427 runpath_var=$runpath_var
22429 # Shared library path variable.
22430 shlibpath_var=$shlibpath_var
22432 # Is shlibpath searched before the hard-coded library search path?
22433 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22435 # Format of library name prefix.
22436 libname_spec=$lt_libname_spec
22438 # List of archive names. First name is the real one, the rest are links.
22439 # The last name is the one that the linker finds with -lNAME
22440 library_names_spec=$lt_library_names_spec
22442 # The coded name of the library, if different from the real name.
22443 soname_spec=$lt_soname_spec
22445 # Command to use after installation of a shared archive.
22446 postinstall_cmds=$lt_postinstall_cmds
22448 # Command to use after uninstallation of a shared archive.
22449 postuninstall_cmds=$lt_postuninstall_cmds
22451 # Commands used to finish a libtool library installation in a directory.
22452 finish_cmds=$lt_finish_cmds
22454 # As "finish_cmds", except a single script fragment to be evaled but
22456 finish_eval=$lt_finish_eval
22458 # Whether we should hardcode library paths into libraries.
22459 hardcode_into_libs=$hardcode_into_libs
22461 # Compile-time system search path for libraries.
22462 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22464 # Run-time system search path for libraries.
22465 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22467 # Whether dlopen is supported.
22468 dlopen_support=$enable_dlopen
22470 # Whether dlopen of programs is supported.
22471 dlopen_self=$enable_dlopen_self
22473 # Whether dlopen of statically linked programs is supported.
22474 dlopen_self_static=$enable_dlopen_self_static
22476 # Commands to strip libraries.
22477 old_striplib=$lt_old_striplib
22478 striplib=$lt_striplib
22481 # The linker used to build libraries.
22484 # Commands used to build an old-style archive.
22485 old_archive_cmds=$lt_old_archive_cmds
22487 # A language specific compiler.
22490 # Is the compiler the GNU compiler?
22493 # Compiler flag to turn off builtin functions.
22494 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22496 # How to pass a linker flag through the compiler.
22497 wl=$lt_lt_prog_compiler_wl
22499 # Additional compiler flags for building library objects.
22500 pic_flag=$lt_lt_prog_compiler_pic
22502 # Compiler flag to prevent dynamic linking.
22503 link_static_flag=$lt_lt_prog_compiler_static
22505 # Does compiler simultaneously support -c and -o options?
22506 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22508 # Whether or not to add -lc for building shared libraries.
22509 build_libtool_need_lc=$archive_cmds_need_lc
22511 # Whether or not to disallow shared libs when runtime libs are static.
22512 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22514 # Compiler flag to allow reflexive dlopens.
22515 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22517 # Compiler flag to generate shared objects directly from archives.
22518 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22520 # Whether the compiler copes with passing no objects directly.
22521 compiler_needs_object=$lt_compiler_needs_object
22523 # Create an old-style archive from a shared archive.
22524 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22526 # Create a temporary old-style archive to link instead of a shared archive.
22527 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22529 # Commands used to build a shared archive.
22530 archive_cmds=$lt_archive_cmds
22531 archive_expsym_cmds=$lt_archive_expsym_cmds
22533 # Commands used to build a loadable module if different from building
22534 # a shared archive.
22535 module_cmds=$lt_module_cmds
22536 module_expsym_cmds=$lt_module_expsym_cmds
22538 # Whether we are building with GNU ld or not.
22539 with_gnu_ld=$lt_with_gnu_ld
22541 # Flag that allows shared libraries with undefined symbols to be built.
22542 allow_undefined_flag=$lt_allow_undefined_flag
22544 # Flag that enforces no undefined symbols.
22545 no_undefined_flag=$lt_no_undefined_flag
22547 # Flag to hardcode \$libdir into a binary during linking.
22548 # This must work even if \$libdir does not exist
22549 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22551 # If ld is used when linking, flag to hardcode \$libdir into a binary
22552 # during linking. This must work even if \$libdir does not exist.
22553 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22555 # Whether we need a single "-rpath" flag with a separated argument.
22556 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22558 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22559 # DIR into the resulting binary.
22560 hardcode_direct=$hardcode_direct
22562 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22563 # DIR into the resulting binary and the resulting library dependency is
22564 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22565 # library is relocated.
22566 hardcode_direct_absolute=$hardcode_direct_absolute
22568 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22569 # into the resulting binary.
22570 hardcode_minus_L=$hardcode_minus_L
22572 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22573 # into the resulting binary.
22574 hardcode_shlibpath_var=$hardcode_shlibpath_var
22576 # Set to "yes" if building a shared library automatically hardcodes DIR
22577 # into the library and all subsequent libraries and executables linked
22579 hardcode_automatic=$hardcode_automatic
22581 # Set to yes if linker adds runtime paths of dependent libraries
22582 # to runtime path list.
22583 inherit_rpath=$inherit_rpath
22585 # Whether libtool must link a program against all its dependency libraries.
22586 link_all_deplibs=$link_all_deplibs
22588 # Fix the shell variable \$srcfile for the compiler.
22589 fix_srcfile_path=$lt_fix_srcfile_path
22591 # Set to "yes" if exported symbols are required.
22592 always_export_symbols=$always_export_symbols
22594 # The commands to list exported symbols.
22595 export_symbols_cmds=$lt_export_symbols_cmds
22597 # Symbols that should not be listed in the preloaded symbols.
22598 exclude_expsyms=$lt_exclude_expsyms
22600 # Symbols that must always be exported.
22601 include_expsyms=$lt_include_expsyms
22603 # Commands necessary for linking programs (against libraries) with templates.
22604 prelink_cmds=$lt_prelink_cmds
22606 # Specify filename containing input files.
22607 file_list_spec=$lt_file_list_spec
22609 # How to hardcode a shared library path into an executable.
22610 hardcode_action=$hardcode_action
22612 # ### END LIBTOOL CONFIG
22618 cat <<\_LT_EOF >> "$cfgfile"
22619 # AIX sometimes has problems with the GCC collect2 program. For some
22620 # reason, if we set the COLLECT_NAMES environment variable, the problems
22621 # vanish in a puff of smoke.
22622 if test "X${COLLECT_NAMES+set}" != Xset; then
22624 export COLLECT_NAMES
22631 ltmain="$ac_aux_dir/ltmain.sh"
22634 # We use sed instead of cat because bash on DJGPP gets confused if
22635 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22636 # text mode, it properly converts lines to CR/LF. This bash problem
22637 # is reportedly fixed, but why not run on old versions too?
22638 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
22639 || (rm -f "$cfgfile"; exit 1)
22643 cat << \_LT_EOF >> "$cfgfile"
22644 # func_dirname file append nondir_replacement
22645 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22646 # otherwise set result to NONDIR_REPLACEMENT.
22650 */*) func_dirname_result="${1%/*}${2}" ;;
22651 * ) func_dirname_result="${3}" ;;
22655 # func_basename file
22658 func_basename_result="${1##*/}"
22661 # func_stripname prefix suffix name
22662 # strip PREFIX and SUFFIX off of NAME.
22663 # PREFIX and SUFFIX must not contain globbing or regex special
22664 # characters, hashes, percent signs, but SUFFIX may contain a leading
22665 # dot (in which case that matches only a dot).
22668 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22669 # positional parameters, so assign one to ordinary parameter first.
22670 func_stripname_result=${3}
22671 func_stripname_result=${func_stripname_result#"${1}"}
22672 func_stripname_result=${func_stripname_result%"${2}"}
22678 func_opt_split_opt=${1%%=*}
22679 func_opt_split_arg=${1#*=}
22686 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22687 *) func_lo2o_result=${1} ;;
22692 *) # Bourne compatible functions.
22693 cat << \_LT_EOF >> "$cfgfile"
22694 # func_dirname file append nondir_replacement
22695 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22696 # otherwise set result to NONDIR_REPLACEMENT.
22699 # Extract subdirectory from the argument.
22700 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22701 if test "X$func_dirname_result" = "X${1}"; then
22702 func_dirname_result="${3}"
22704 func_dirname_result="$func_dirname_result${2}"
22708 # func_basename file
22711 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
22714 # func_stripname prefix suffix name
22715 # strip PREFIX and SUFFIX off of NAME.
22716 # PREFIX and SUFFIX must not contain globbing or regex special
22717 # characters, hashes, percent signs, but SUFFIX may contain a leading
22718 # dot (in which case that matches only a dot).
22719 # func_strip_suffix prefix name
22723 .*) func_stripname_result=`$ECHO "X${3}" \
22724 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
22725 *) func_stripname_result=`$ECHO "X${3}" \
22726 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
22731 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22732 my_sed_long_arg='1s/^-[^=]*=//'
22737 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
22738 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
22744 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22749 case $lt_shell_append in
22751 cat << \_LT_EOF >> "$cfgfile"
22753 # func_append var value
22754 # Append VALUE to the end of shell variable VAR.
22762 cat << \_LT_EOF >> "$cfgfile"
22764 # func_append var value
22765 # Append VALUE to the end of shell variable VAR.
22775 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22776 || (rm -f "$cfgfile"; exit 1)
22778 mv -f "$cfgfile" "$ofile" ||
22779 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22784 for ac_file in $CONFIG_FILES; do
22785 # Support "outfile[:infile[:infile...]]"
22787 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22789 # PO directories have a Makefile.in generated from Makefile.in.in.
22790 case "$ac_file" in */Makefile.in)
22791 # Adjust a relative srcdir.
22792 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22793 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
22794 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22795 # In autoconf-2.13 it is called $ac_given_srcdir.
22796 # In autoconf-2.50 it is called $srcdir.
22797 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22798 case "$ac_given_srcdir" in
22799 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22800 /*) top_srcdir="$ac_given_srcdir" ;;
22801 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
22803 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22804 rm -f "$ac_dir/POTFILES"
22805 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22806 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22807 POMAKEFILEDEPS="POTFILES.in"
22808 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
22809 # on $ac_dir but don't depend on user-specified configuration
22811 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22812 # The LINGUAS file contains the set of available languages.
22813 if test -n "$OBSOLETE_ALL_LINGUAS"; then
22814 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
22816 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22817 # Hide the ALL_LINGUAS assigment from automake.
22818 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22819 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22821 # The set of available languages was given in configure.in.
22822 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22824 case "$ac_given_srcdir" in
22826 *) srcdirpre='$(srcdir)/' ;;
22832 for lang in $ALL_LINGUAS; do
22833 POFILES="$POFILES $srcdirpre$lang.po"
22834 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22835 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22836 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22838 # CATALOGS depends on both $ac_dir and the user's LINGUAS
22839 # environment variable.
22841 if test -n "$ALL_LINGUAS"; then
22842 for presentlang in $ALL_LINGUAS; do
22844 if test "%UNSET%" != "$LINGUAS"; then
22845 desiredlanguages="$LINGUAS"
22847 desiredlanguages="$ALL_LINGUAS"
22849 for desiredlang in $desiredlanguages; do
22850 # Use the presentlang catalog if desiredlang is
22851 # a. equal to presentlang, or
22852 # b. a variant of presentlang (because in this case,
22853 # presentlang can be used as a fallback for messages
22854 # which are not translated in the desiredlang catalog).
22855 case "$desiredlang" in
22856 "$presentlang"*) useit=yes;;
22859 if test $useit = yes; then
22860 INST_LINGUAS="$INST_LINGUAS $presentlang"
22865 if test -n "$INST_LINGUAS"; then
22866 for lang in $INST_LINGUAS; do
22867 CATALOGS="$CATALOGS $lang.gmo"
22870 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22871 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"
22872 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22873 if test -f "$f"; then
22875 *.orig | *.bak | *~) ;;
22876 *) cat "$f" >> "$ac_dir/Makefile" ;;
22885 if test "$GCC" = yes; then
22886 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
22888 echo "/* generated for $CC */" > tmp-stdint.h
22891 sed 's/^ *//' >> tmp-stdint.h <<EOF
22893 #ifndef GCC_GENERATED_STDINT_H
22894 #define GCC_GENERATED_STDINT_H 1
22896 #include <sys/types.h>
22899 if test "$acx_cv_header_stdint" != stdint.h; then
22900 echo "#include <stddef.h>" >> tmp-stdint.h
22902 if test "$acx_cv_header_stdint" != stddef.h; then
22903 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
22906 sed 's/^ *//' >> tmp-stdint.h <<EOF
22907 /* glibc uses these symbols as guards to prevent redefinitions. */
22908 #ifdef __int8_t_defined
22913 #ifdef __uint32_t_defined
22919 # ----------------- done header, emit basic int types -------------
22920 if test "$acx_cv_header_stdint" = stddef.h; then
22921 sed 's/^ *//' >> tmp-stdint.h <<EOF
22925 #ifndef __uint8_t_defined
22926 #define __uint8_t_defined
22927 typedef unsigned $acx_cv_type_int8_t uint8_t;
22933 #ifndef __uint16_t_defined
22934 #define __uint16_t_defined
22935 typedef unsigned $acx_cv_type_int16_t uint16_t;
22941 #ifndef __uint32_t_defined
22942 #define __uint32_t_defined
22943 typedef unsigned $acx_cv_type_int32_t uint32_t;
22949 #ifndef __int8_t_defined
22950 #define __int8_t_defined
22951 typedef $acx_cv_type_int8_t int8_t;
22957 #ifndef __int16_t_defined
22958 #define __int16_t_defined
22959 typedef $acx_cv_type_int16_t int16_t;
22965 #ifndef __int32_t_defined
22966 #define __int32_t_defined
22967 typedef $acx_cv_type_int32_t int32_t;
22971 elif test "$ac_cv_type_u_int32_t" = yes; then
22972 sed 's/^ *//' >> tmp-stdint.h <<EOF
22974 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
22987 #ifndef __uint8_t_defined
22988 #define __uint8_t_defined
22989 typedef u_int8_t uint8_t;
22995 #ifndef __uint16_t_defined
22996 #define __uint16_t_defined
22997 typedef u_int16_t uint16_t;
23003 #ifndef __uint32_t_defined
23004 #define __uint32_t_defined
23005 typedef u_int32_t uint32_t;
23010 sed 's/^ *//' >> tmp-stdint.h <<EOF
23012 /* Some systems have guard macros to prevent redefinitions, define them. */
23034 # ------------- done basic int types, emit int64_t types ------------
23035 if test "$ac_cv_type_uint64_t" = yes; then
23036 sed 's/^ *//' >> tmp-stdint.h <<EOF
23038 /* system headers have good uint64_t and int64_t */
23046 elif test "$ac_cv_type_u_int64_t" = yes; then
23047 sed 's/^ *//' >> tmp-stdint.h <<EOF
23049 /* system headers have an u_int64_t (and int64_t) */
23055 #ifndef __uint64_t_defined
23056 #define __uint64_t_defined
23057 typedef u_int64_t uint64_t;
23061 elif test -n "$acx_cv_type_int64_t"; then
23062 sed 's/^ *//' >> tmp-stdint.h <<EOF
23064 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
23067 typedef $acx_cv_type_int64_t int64_t;
23071 #ifndef __uint64_t_defined
23072 #define __uint64_t_defined
23073 typedef unsigned $acx_cv_type_int64_t uint64_t;
23078 sed 's/^ *//' >> tmp-stdint.h <<EOF
23080 /* some common heuristics for int64_t, using compiler-specific tests */
23081 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
23084 #ifndef __int64_t_defined
23085 typedef long long int64_t;
23090 typedef unsigned long long uint64_t;
23093 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
23094 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
23095 does not implement __extension__. But that compiler doesn't define
23097 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
23098 # define __extension__
23103 __extension__ typedef long long int64_t;
23107 __extension__ typedef unsigned long long uint64_t;
23110 #elif !defined __STRICT_ANSI__
23111 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
23115 typedef __int64 int64_t;
23119 typedef unsigned __int64 uint64_t;
23121 # endif /* compiler */
23123 #endif /* ANSI version */
23127 # ------------- done int64_t types, emit intptr types ------------
23128 if test "$ac_cv_type_uintptr_t" != yes; then
23129 sed 's/^ *//' >> tmp-stdint.h <<EOF
23131 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
23132 #ifndef __uintptr_t_defined
23133 typedef u$acx_cv_type_intptr_t uintptr_t;
23135 #ifndef __intptr_t_defined
23136 typedef $acx_cv_type_intptr_t intptr_t;
23141 # ------------- done intptr types, emit int_least types ------------
23142 if test "$ac_cv_type_int_least32_t" != yes; then
23143 sed 's/^ *//' >> tmp-stdint.h <<EOF
23145 /* Define int_least types */
23146 typedef int8_t int_least8_t;
23147 typedef int16_t int_least16_t;
23148 typedef int32_t int_least32_t;
23150 typedef int64_t int_least64_t;
23153 typedef uint8_t uint_least8_t;
23154 typedef uint16_t uint_least16_t;
23155 typedef uint32_t uint_least32_t;
23157 typedef uint64_t uint_least64_t;
23162 # ------------- done intptr types, emit int_fast types ------------
23163 if test "$ac_cv_type_int_fast32_t" != yes; then
23164 sed 's/^ *//' >> tmp-stdint.h <<EOF
23166 /* Define int_fast types. short is often slow */
23167 typedef int8_t int_fast8_t;
23168 typedef int int_fast16_t;
23169 typedef int32_t int_fast32_t;
23171 typedef int64_t int_fast64_t;
23174 typedef uint8_t uint_fast8_t;
23175 typedef unsigned int uint_fast16_t;
23176 typedef uint32_t uint_fast32_t;
23178 typedef uint64_t uint_fast64_t;
23183 if test "$ac_cv_type_uintmax_t" != yes; then
23184 sed 's/^ *//' >> tmp-stdint.h <<EOF
23186 /* Define intmax based on what we found */
23188 typedef int64_t intmax_t;
23190 typedef long intmax_t;
23193 typedef uint64_t uintmax_t;
23195 typedef unsigned long uintmax_t;
23200 sed 's/^ *//' >> tmp-stdint.h <<EOF
23202 #endif /* GCC_GENERATED_STDINT_H */
23205 if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
23208 mv -f tmp-stdint.h bfd_stdint.h
23215 *) srcdirpre='$(srcdir)/' ;;
23219 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
23220 if test $lang != dummy; then
23221 POFILES="$POFILES $srcdirpre$lang.po"
23222 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23225 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
23226 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
23227 -e "s,@POFILES@,$POFILES," \
23228 -e "s,@GMOFILES@,$GMOFILES," \
23229 po/Makefile.in > po/Makefile ;;
23234 cat >>$CONFIG_STATUS <<\_ACEOF
23236 { (exit 0); exit 0; }
23238 chmod +x $CONFIG_STATUS
23239 ac_clean_files=$ac_clean_files_save
23242 # configure is writing to config.log, and then calls config.status.
23243 # config.status does its own redirection, appending to config.log.
23244 # Unfortunately, on DOS this fails, as config.log is still kept open
23245 # by configure, so config.status won't be able to write to it; its
23246 # output is simply discarded. So we exec the FD to /dev/null,
23247 # effectively closing config.log, so it can be properly (re)opened and
23248 # appended to by config.status. When coming back to configure, we
23249 # need to make the FD available again.
23250 if test "$no_create" != yes; then
23252 ac_config_status_args=
23253 test "$silent" = yes &&
23254 ac_config_status_args="$ac_config_status_args --quiet"
23256 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23258 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23259 # would make configure fail if this is the last instruction.
23260 $ac_cs_success || { (exit 1); exit 1; }