* configure.in (ALL_LINGUAS): Add "id".
[binutils.git] / bfd / configure
blob84ba0f6a33893bf75da2997702faac32c573756b
1 #! /bin/sh
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
14 emulate sh
15 NULLCMD=:
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
20 set -o posix
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
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
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 \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
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 ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; 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
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
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
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
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
122 as_myself=$0
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
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
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
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
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 |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
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).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >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
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
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'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 case X$lt_ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 esac
255 ECHO=${lt_ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
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!
265 else
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
272 shift
273 cat <<_LT_EOF
275 _LT_EOF
276 exit 0
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
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
290 then
291 break
293 done
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
300 else
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
309 IFS="$lt_save_ifs"
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
314 ECHO="$dir/echo"
315 break
317 done
318 IFS="$lt_save_ifs"
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.
326 ECHO='print -r'
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
333 export CONFIG_SHELL
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335 else
336 # Try using printf.
337 ECHO='printf %s\n'
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
341 # Cool, printf works
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
348 export CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
350 export 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"
357 else
358 # maybe with a smaller string...
359 prev=:
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
363 then
364 break
366 prev="$cmd"
367 done
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+"$@"}
373 else
374 # Oops. We lost completely, so just stick with echo.
375 ECHO=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.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 # Name of the host.
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`
398 exec 6>&1
401 # Initializations.
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
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.
417 PACKAGE_NAME=
418 PACKAGE_TARNAME=
419 PACKAGE_VERSION=
420 PACKAGE_STRING=
421 PACKAGE_BUGREPORT=
423 ac_unique_file="libbfd.c"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
426 #include <stdio.h>
427 #if HAVE_SYS_TYPES_H
428 # include <sys/types.h>
429 #endif
430 #if HAVE_SYS_STAT_H
431 # include <sys/stat.h>
432 #endif
433 #if STDC_HEADERS
434 # include <stdlib.h>
435 # include <stddef.h>
436 #else
437 # if HAVE_STDLIB_H
438 # include <stdlib.h>
439 # endif
440 #endif
441 #if HAVE_STRING_H
442 # if !STDC_HEADERS && HAVE_MEMORY_H
443 # include <memory.h>
444 # endif
445 # include <string.h>
446 #endif
447 #if HAVE_STRINGS_H
448 # include <strings.h>
449 #endif
450 #if HAVE_INTTYPES_H
451 # include <inttypes.h>
452 #else
453 # if HAVE_STDINT_H
454 # include <stdint.h>
455 # endif
456 #endif
457 #if HAVE_UNISTD_H
458 # include <unistd.h>
459 #endif"
461 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S OBJDUMP ac_ct_OBJDUMP lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 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'
462 ac_subst_files=''
463 ac_pwd=`pwd`
465 # Initialize some variables set by options.
466 ac_init_help=
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
470 cache_file=/dev/null
471 exec_prefix=NONE
472 no_create=
473 no_recursion=
474 prefix=NONE
475 program_prefix=NONE
476 program_suffix=NONE
477 program_transform_name=s,x,x,
478 silent=
479 site=
480 srcdir=
481 verbose=
482 x_includes=NONE
483 x_libraries=NONE
485 # Installation directory options.
486 # These are left unexpanded so users can "make install exec_prefix=/foo"
487 # and all the variables that are supposed to be based on exec_prefix
488 # by default will actually change.
489 # Use braces instead of parens because sh, perl, etc. also accept them.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
503 ac_prev=
504 for ac_option
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
509 ac_prev=
510 continue
513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
515 # Accept the important Cygnus configure options, so we can diagnose typos.
517 case $ac_option in
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522 bindir=$ac_optarg ;;
524 -build | --build | --buil | --bui | --bu)
525 ac_prev=build_alias ;;
526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527 build_alias=$ac_optarg ;;
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534 cache_file=$ac_optarg ;;
536 --config-cache | -C)
537 cache_file=config.cache ;;
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
543 datadir=$ac_optarg ;;
545 -disable-* | --disable-*)
546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547 # Reject names that are not valid shell variable names.
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
554 -enable-* | --enable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 case $ac_option in
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563 *) ac_optarg=yes ;;
564 esac
565 eval "enable_$ac_feature='$ac_optarg'" ;;
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
574 exec_prefix=$ac_optarg ;;
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
580 -help | --help | --hel | --he | -h)
581 ac_init_help=long ;;
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
587 -host | --host | --hos | --ho)
588 ac_prev=host_alias ;;
589 -host=* | --host=* | --hos=* | --ho=*)
590 host_alias=$ac_optarg ;;
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
597 includedir=$ac_optarg ;;
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602 infodir=$ac_optarg ;;
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
607 libdir=$ac_optarg ;;
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
614 libexecdir=$ac_optarg ;;
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623 localstatedir=$ac_optarg ;;
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628 mandir=$ac_optarg ;;
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635 | --no-cr | --no-c | -n)
636 no_create=yes ;;
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640 no_recursion=yes ;;
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649 oldincludedir=$ac_optarg ;;
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654 prefix=$ac_optarg ;;
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661 program_prefix=$ac_optarg ;;
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668 program_suffix=$ac_optarg ;;
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
685 program_transform_name=$ac_optarg ;;
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
689 silent=yes ;;
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 ac_prev=sbindir ;;
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 | --sbi=* | --sb=*)
695 sbindir=$ac_optarg ;;
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
700 | --sha | --sh)
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 | --sha=* | --sh=*)
706 sharedstatedir=$ac_optarg ;;
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
711 site=$ac_optarg ;;
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716 srcdir=$ac_optarg ;;
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723 sysconfdir=$ac_optarg ;;
725 -target | --target | --targe | --targ | --tar | --ta | --t)
726 ac_prev=target_alias ;;
727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728 target_alias=$ac_optarg ;;
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
736 -with-* | --with-*)
737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738 # Reject names that are not valid shell variable names.
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
742 ac_package=`echo $ac_package| sed 's/-/_/g'`
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745 *) ac_optarg=yes ;;
746 esac
747 eval "with_$ac_package='$ac_optarg'" ;;
749 -without-* | --without-*)
750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751 # Reject names that are not valid shell variable names.
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767 x_includes=$ac_optarg ;;
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774 x_libraries=$ac_optarg ;;
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
781 *=*)
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
789 export $ac_envvar ;;
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
799 esac
800 done
802 if test -n "$ac_prev"; then
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
811 eval ac_val=$`echo $ac_var`
812 case $ac_val in
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
816 esac
817 done
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
823 eval ac_val=$`echo $ac_var`
824 case $ac_val in
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
828 esac
829 done
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
834 build=$build_alias
835 host=$host_alias
836 target=$target_alias
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
845 cross_compiling=yes
849 ac_tool_prefix=
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
852 test "$silent" = yes && exec 6>/dev/null
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
865 echo X"$0" |
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
870 s/.*/./; q'`
871 srcdir=$ac_confdir
872 if test ! -r $srcdir/$ac_unique_file; then
873 srcdir=..
875 else
876 ac_srcdir_defaulted=no
878 if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
882 else
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
887 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CC_set=${CC+set}
904 ac_env_CC_value=$CC
905 ac_cv_env_CC_set=${CC+set}
906 ac_cv_env_CC_value=$CC
907 ac_env_CFLAGS_set=${CFLAGS+set}
908 ac_env_CFLAGS_value=$CFLAGS
909 ac_cv_env_CFLAGS_set=${CFLAGS+set}
910 ac_cv_env_CFLAGS_value=$CFLAGS
911 ac_env_LDFLAGS_set=${LDFLAGS+set}
912 ac_env_LDFLAGS_value=$LDFLAGS
913 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914 ac_cv_env_LDFLAGS_value=$LDFLAGS
915 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916 ac_env_CPPFLAGS_value=$CPPFLAGS
917 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919 ac_env_CPP_set=${CPP+set}
920 ac_env_CPP_value=$CPP
921 ac_cv_env_CPP_set=${CPP+set}
922 ac_cv_env_CPP_value=$CPP
925 # Report the --help message.
927 if test "$ac_init_help" = "long"; then
928 # Omit some internal or obsolete options to make the list less imposing.
929 # This message is too long to be a string in the A/UX 3.1 sh.
930 cat <<_ACEOF
931 \`configure' configures this package to adapt to many kinds of systems.
933 Usage: $0 [OPTION]... [VAR=VALUE]...
935 To assign environment variables (e.g., CC, CFLAGS...), specify them as
936 VAR=VALUE. See below for descriptions of some of the useful variables.
938 Defaults for the options are specified in brackets.
940 Configuration:
941 -h, --help display this help and exit
942 --help=short display options specific to this package
943 --help=recursive display the short help of all the included packages
944 -V, --version display version information and exit
945 -q, --quiet, --silent do not print \`checking...' messages
946 --cache-file=FILE cache test results in FILE [disabled]
947 -C, --config-cache alias for \`--cache-file=config.cache'
948 -n, --no-create do not create output files
949 --srcdir=DIR find the sources in DIR [configure dir or \`..']
951 _ACEOF
953 cat <<_ACEOF
954 Installation directories:
955 --prefix=PREFIX install architecture-independent files in PREFIX
956 [$ac_default_prefix]
957 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
958 [PREFIX]
960 By default, \`make install' will install all the files in
961 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
962 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
963 for instance \`--prefix=\$HOME'.
965 For better control, use the options below.
967 Fine tuning of the installation directories:
968 --bindir=DIR user executables [EPREFIX/bin]
969 --sbindir=DIR system admin executables [EPREFIX/sbin]
970 --libexecdir=DIR program executables [EPREFIX/libexec]
971 --datadir=DIR read-only architecture-independent data [PREFIX/share]
972 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
973 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
974 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
975 --libdir=DIR object code libraries [EPREFIX/lib]
976 --includedir=DIR C header files [PREFIX/include]
977 --oldincludedir=DIR C header files for non-gcc [/usr/include]
978 --infodir=DIR info documentation [PREFIX/info]
979 --mandir=DIR man documentation [PREFIX/man]
980 _ACEOF
982 cat <<\_ACEOF
984 Program names:
985 --program-prefix=PREFIX prepend PREFIX to installed program names
986 --program-suffix=SUFFIX append SUFFIX to installed program names
987 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
989 System types:
990 --build=BUILD configure for building on BUILD [guessed]
991 --host=HOST cross-compile to build programs to run on HOST [BUILD]
992 --target=TARGET configure for building compilers for TARGET [HOST]
993 _ACEOF
996 if test -n "$ac_init_help"; then
998 cat <<\_ACEOF
1000 Optional Features:
1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1003 --disable-dependency-tracking speeds up one-time build
1004 --enable-dependency-tracking do not reject slow dependency extractors
1005 --enable-shared[=PKGS]
1006 build shared libraries [default=no]
1007 --disable-largefile omit support for large files
1008 --enable-static[=PKGS]
1009 build static libraries [default=yes]
1010 --enable-fast-install[=PKGS]
1011 optimize for fast installation [default=yes]
1012 --disable-libtool-lock avoid locking (might break parallel builds)
1013 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1014 --enable-targets alternative target configurations
1015 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
1016 --enable-secureplt Default to creating read-only plt entries
1017 --enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type
1018 --enable-werror treat compile warnings as errors
1019 --enable-build-warnings enable build-time compiler warnings
1020 --enable-maintainer-mode enable make rules and dependencies not useful
1021 (and sometimes confusing) to the casual installer
1022 --enable-install-libbfd controls installation of libbfd and related headers
1023 --disable-nls do not use Native Language Support
1025 Optional Packages:
1026 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1027 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1028 --with-pic try to use only PIC/non-PIC objects [default=use
1029 both]
1030 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1031 --with-mmap try using mmap for BFD input files if available
1032 --with-separate-debug-dir=DIR
1033 Look for global separate debug info in DIR
1034 [default=LIBDIR/debug]
1035 --with-pkgversion=PKG Use PKG in the version string in place of "GNU
1036 Binutils"
1037 --with-bugurl=URL Direct users to URL to report a bug
1039 Some influential environment variables:
1040 CC C compiler command
1041 CFLAGS C compiler flags
1042 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1043 nonstandard directory <lib dir>
1044 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1045 headers in a nonstandard directory <include dir>
1046 CPP C preprocessor
1048 Use these variables to override the choices made by `configure' or to help
1049 it to find libraries and programs with nonstandard names/locations.
1051 _ACEOF
1054 if test "$ac_init_help" = "recursive"; then
1055 # If there are subdirs, report their specific --help.
1056 ac_popdir=`pwd`
1057 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1058 test -d $ac_dir || continue
1059 ac_builddir=.
1061 if test "$ac_dir" != .; then
1062 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1063 # A "../" for each directory in $ac_dir_suffix.
1064 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1065 else
1066 ac_dir_suffix= ac_top_builddir=
1069 case $srcdir in
1070 .) # No --srcdir option. We are building in place.
1071 ac_srcdir=.
1072 if test -z "$ac_top_builddir"; then
1073 ac_top_srcdir=.
1074 else
1075 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1076 fi ;;
1077 [\\/]* | ?:[\\/]* ) # Absolute path.
1078 ac_srcdir=$srcdir$ac_dir_suffix;
1079 ac_top_srcdir=$srcdir ;;
1080 *) # Relative path.
1081 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1082 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1083 esac
1085 # Do not use `cd foo && pwd` to compute absolute paths, because
1086 # the directories may not exist.
1087 case `pwd` in
1088 .) ac_abs_builddir="$ac_dir";;
1090 case "$ac_dir" in
1091 .) ac_abs_builddir=`pwd`;;
1092 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1093 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1094 esac;;
1095 esac
1096 case $ac_abs_builddir in
1097 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1099 case ${ac_top_builddir}. in
1100 .) ac_abs_top_builddir=$ac_abs_builddir;;
1101 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1102 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1103 esac;;
1104 esac
1105 case $ac_abs_builddir in
1106 .) ac_abs_srcdir=$ac_srcdir;;
1108 case $ac_srcdir in
1109 .) ac_abs_srcdir=$ac_abs_builddir;;
1110 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1111 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1112 esac;;
1113 esac
1114 case $ac_abs_builddir in
1115 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1117 case $ac_top_srcdir in
1118 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1119 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1120 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1121 esac;;
1122 esac
1124 cd $ac_dir
1125 # Check for guested configure; otherwise get Cygnus style configure.
1126 if test -f $ac_srcdir/configure.gnu; then
1127 echo
1128 $SHELL $ac_srcdir/configure.gnu --help=recursive
1129 elif test -f $ac_srcdir/configure; then
1130 echo
1131 $SHELL $ac_srcdir/configure --help=recursive
1132 elif test -f $ac_srcdir/configure.ac ||
1133 test -f $ac_srcdir/configure.in; then
1134 echo
1135 $ac_configure --help
1136 else
1137 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1139 cd $ac_popdir
1140 done
1143 test -n "$ac_init_help" && exit 0
1144 if $ac_init_version; then
1145 cat <<\_ACEOF
1147 Copyright (C) 2003 Free Software Foundation, Inc.
1148 This configure script is free software; the Free Software Foundation
1149 gives unlimited permission to copy, distribute and modify it.
1150 _ACEOF
1151 exit 0
1153 exec 5>config.log
1154 cat >&5 <<_ACEOF
1155 This file contains any messages produced by compilers while
1156 running configure, to aid debugging if configure makes a mistake.
1158 It was created by $as_me, which was
1159 generated by GNU Autoconf 2.59. Invocation command line was
1161 $ $0 $@
1163 _ACEOF
1165 cat <<_ASUNAME
1166 ## --------- ##
1167 ## Platform. ##
1168 ## --------- ##
1170 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1171 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1172 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1173 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1174 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1176 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1177 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1179 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1180 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1181 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1182 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1183 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1184 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1185 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1187 _ASUNAME
1189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1190 for as_dir in $PATH
1192 IFS=$as_save_IFS
1193 test -z "$as_dir" && as_dir=.
1194 echo "PATH: $as_dir"
1195 done
1197 } >&5
1199 cat >&5 <<_ACEOF
1202 ## ----------- ##
1203 ## Core tests. ##
1204 ## ----------- ##
1206 _ACEOF
1209 # Keep a trace of the command line.
1210 # Strip out --no-create and --no-recursion so they do not pile up.
1211 # Strip out --silent because we don't want to record it for future runs.
1212 # Also quote any args containing shell meta-characters.
1213 # Make two passes to allow for proper duplicate-argument suppression.
1214 ac_configure_args=
1215 ac_configure_args0=
1216 ac_configure_args1=
1217 ac_sep=
1218 ac_must_keep_next=false
1219 for ac_pass in 1 2
1221 for ac_arg
1223 case $ac_arg in
1224 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226 | -silent | --silent | --silen | --sile | --sil)
1227 continue ;;
1228 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1229 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1230 esac
1231 case $ac_pass in
1232 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1234 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1235 if test $ac_must_keep_next = true; then
1236 ac_must_keep_next=false # Got value, back to normal.
1237 else
1238 case $ac_arg in
1239 *=* | --config-cache | -C | -disable-* | --disable-* \
1240 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1241 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1242 | -with-* | --with-* | -without-* | --without-* | --x)
1243 case "$ac_configure_args0 " in
1244 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1245 esac
1247 -* ) ac_must_keep_next=true ;;
1248 esac
1250 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1251 # Get rid of the leading space.
1252 ac_sep=" "
1254 esac
1255 done
1256 done
1257 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1258 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1260 # When interrupted or exit'd, cleanup temporary files, and complete
1261 # config.log. We remove comments because anyway the quotes in there
1262 # would cause problems or look ugly.
1263 # WARNING: Be sure not to use single quotes in there, as some shells,
1264 # such as our DU 5.0 friend, will then `close' the trap.
1265 trap 'exit_status=$?
1266 # Save into config.log some information that might help in debugging.
1268 echo
1270 cat <<\_ASBOX
1271 ## ---------------- ##
1272 ## Cache variables. ##
1273 ## ---------------- ##
1274 _ASBOX
1275 echo
1276 # The following way of writing the cache mishandles newlines in values,
1278 (set) 2>&1 |
1279 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1280 *ac_space=\ *)
1281 sed -n \
1282 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1283 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1286 sed -n \
1287 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1289 esac;
1291 echo
1293 cat <<\_ASBOX
1294 ## ----------------- ##
1295 ## Output variables. ##
1296 ## ----------------- ##
1297 _ASBOX
1298 echo
1299 for ac_var in $ac_subst_vars
1301 eval ac_val=$`echo $ac_var`
1302 echo "$ac_var='"'"'$ac_val'"'"'"
1303 done | sort
1304 echo
1306 if test -n "$ac_subst_files"; then
1307 cat <<\_ASBOX
1308 ## ------------- ##
1309 ## Output files. ##
1310 ## ------------- ##
1311 _ASBOX
1312 echo
1313 for ac_var in $ac_subst_files
1315 eval ac_val=$`echo $ac_var`
1316 echo "$ac_var='"'"'$ac_val'"'"'"
1317 done | sort
1318 echo
1321 if test -s confdefs.h; then
1322 cat <<\_ASBOX
1323 ## ----------- ##
1324 ## confdefs.h. ##
1325 ## ----------- ##
1326 _ASBOX
1327 echo
1328 sed "/^$/d" confdefs.h | sort
1329 echo
1331 test "$ac_signal" != 0 &&
1332 echo "$as_me: caught signal $ac_signal"
1333 echo "$as_me: exit $exit_status"
1334 } >&5
1335 rm -f core *.core &&
1336 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1337 exit $exit_status
1339 for ac_signal in 1 2 13 15; do
1340 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1341 done
1342 ac_signal=0
1344 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1345 rm -rf conftest* confdefs.h
1346 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1347 echo >confdefs.h
1349 # Predefined preprocessor variables.
1351 cat >>confdefs.h <<_ACEOF
1352 #define PACKAGE_NAME "$PACKAGE_NAME"
1353 _ACEOF
1356 cat >>confdefs.h <<_ACEOF
1357 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1358 _ACEOF
1361 cat >>confdefs.h <<_ACEOF
1362 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1363 _ACEOF
1366 cat >>confdefs.h <<_ACEOF
1367 #define PACKAGE_STRING "$PACKAGE_STRING"
1368 _ACEOF
1371 cat >>confdefs.h <<_ACEOF
1372 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1373 _ACEOF
1376 # Let the site file select an alternate cache file if it wants to.
1377 # Prefer explicitly selected file to automatically selected ones.
1378 if test -z "$CONFIG_SITE"; then
1379 if test "x$prefix" != xNONE; then
1380 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1381 else
1382 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1385 for ac_site_file in $CONFIG_SITE; do
1386 if test -r "$ac_site_file"; then
1387 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1388 echo "$as_me: loading site script $ac_site_file" >&6;}
1389 sed 's/^/| /' "$ac_site_file" >&5
1390 . "$ac_site_file"
1392 done
1394 if test -r "$cache_file"; then
1395 # Some versions of bash will fail to source /dev/null (special
1396 # files actually), so we avoid doing that.
1397 if test -f "$cache_file"; then
1398 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1399 echo "$as_me: loading cache $cache_file" >&6;}
1400 case $cache_file in
1401 [\\/]* | ?:[\\/]* ) . $cache_file;;
1402 *) . ./$cache_file;;
1403 esac
1405 else
1406 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1407 echo "$as_me: creating cache $cache_file" >&6;}
1408 >$cache_file
1411 # Check that the precious variables saved in the cache have kept the same
1412 # value.
1413 ac_cache_corrupted=false
1414 for ac_var in `(set) 2>&1 |
1415 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1416 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1417 eval ac_new_set=\$ac_env_${ac_var}_set
1418 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1419 eval ac_new_val="\$ac_env_${ac_var}_value"
1420 case $ac_old_set,$ac_new_set in
1421 set,)
1422 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1423 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1424 ac_cache_corrupted=: ;;
1425 ,set)
1426 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1427 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1428 ac_cache_corrupted=: ;;
1429 ,);;
1431 if test "x$ac_old_val" != "x$ac_new_val"; then
1432 # differences in whitespace do not lead to failure.
1433 ac_old_val_w=`echo x $ac_old_val`
1434 ac_new_val_w=`echo x $ac_new_val`
1435 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1436 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1437 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1438 ac_cache_corrupted=:
1439 else
1440 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1441 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1442 eval $ac_var=\$ac_old_val
1444 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1445 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1446 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1447 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1448 fi;;
1449 esac
1450 # Pass precious variables to config.status.
1451 if test "$ac_new_set" = set; then
1452 case $ac_new_val in
1453 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1454 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1455 *) ac_arg=$ac_var=$ac_new_val ;;
1456 esac
1457 case " $ac_configure_args " in
1458 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1459 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1460 esac
1462 done
1463 if $ac_cache_corrupted; then
1464 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1465 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1466 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1467 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1468 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1469 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1470 { (exit 1); exit 1; }; }
1473 ac_ext=c
1474 ac_cpp='$CPP $CPPFLAGS'
1475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1502 ac_aux_dir=
1503 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1504 if test -f $ac_dir/install-sh; then
1505 ac_aux_dir=$ac_dir
1506 ac_install_sh="$ac_aux_dir/install-sh -c"
1507 break
1508 elif test -f $ac_dir/install.sh; then
1509 ac_aux_dir=$ac_dir
1510 ac_install_sh="$ac_aux_dir/install.sh -c"
1511 break
1512 elif test -f $ac_dir/shtool; then
1513 ac_aux_dir=$ac_dir
1514 ac_install_sh="$ac_aux_dir/shtool install -c"
1515 break
1517 done
1518 if test -z "$ac_aux_dir"; then
1519 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1520 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1521 { (exit 1); exit 1; }; }
1523 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1524 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1525 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1527 # Make sure we can run config.sub.
1528 $ac_config_sub sun4 >/dev/null 2>&1 ||
1529 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1530 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1531 { (exit 1); exit 1; }; }
1533 echo "$as_me:$LINENO: checking build system type" >&5
1534 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1535 if test "${ac_cv_build+set}" = set; then
1536 echo $ECHO_N "(cached) $ECHO_C" >&6
1537 else
1538 ac_cv_build_alias=$build_alias
1539 test -z "$ac_cv_build_alias" &&
1540 ac_cv_build_alias=`$ac_config_guess`
1541 test -z "$ac_cv_build_alias" &&
1542 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1543 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1544 { (exit 1); exit 1; }; }
1545 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1546 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1547 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1548 { (exit 1); exit 1; }; }
1551 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1552 echo "${ECHO_T}$ac_cv_build" >&6
1553 build=$ac_cv_build
1554 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1555 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1556 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1559 echo "$as_me:$LINENO: checking host system type" >&5
1560 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1561 if test "${ac_cv_host+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1563 else
1564 ac_cv_host_alias=$host_alias
1565 test -z "$ac_cv_host_alias" &&
1566 ac_cv_host_alias=$ac_cv_build_alias
1567 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1568 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1569 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1570 { (exit 1); exit 1; }; }
1573 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1574 echo "${ECHO_T}$ac_cv_host" >&6
1575 host=$ac_cv_host
1576 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1577 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1578 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1581 echo "$as_me:$LINENO: checking target system type" >&5
1582 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1583 if test "${ac_cv_target+set}" = set; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1585 else
1586 ac_cv_target_alias=$target_alias
1587 test "x$ac_cv_target_alias" = "x" &&
1588 ac_cv_target_alias=$ac_cv_host_alias
1589 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1590 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1591 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1592 { (exit 1); exit 1; }; }
1595 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1596 echo "${ECHO_T}$ac_cv_target" >&6
1597 target=$ac_cv_target
1598 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1599 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1600 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1603 # The aliases save the names the user supplied, while $host etc.
1604 # will get canonicalized.
1605 test -n "$target_alias" &&
1606 test "$program_prefix$program_suffix$program_transform_name" = \
1607 NONENONEs,x,x, &&
1608 program_prefix=${target_alias}-
1609 ac_ext=c
1610 ac_cpp='$CPP $CPPFLAGS'
1611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1614 if test -n "$ac_tool_prefix"; then
1615 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1616 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1617 echo "$as_me:$LINENO: checking for $ac_word" >&5
1618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1619 if test "${ac_cv_prog_CC+set}" = set; then
1620 echo $ECHO_N "(cached) $ECHO_C" >&6
1621 else
1622 if test -n "$CC"; then
1623 ac_cv_prog_CC="$CC" # Let the user override the test.
1624 else
1625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1626 for as_dir in $PATH
1628 IFS=$as_save_IFS
1629 test -z "$as_dir" && as_dir=.
1630 for ac_exec_ext in '' $ac_executable_extensions; do
1631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1632 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1634 break 2
1636 done
1637 done
1641 CC=$ac_cv_prog_CC
1642 if test -n "$CC"; then
1643 echo "$as_me:$LINENO: result: $CC" >&5
1644 echo "${ECHO_T}$CC" >&6
1645 else
1646 echo "$as_me:$LINENO: result: no" >&5
1647 echo "${ECHO_T}no" >&6
1651 if test -z "$ac_cv_prog_CC"; then
1652 ac_ct_CC=$CC
1653 # Extract the first word of "gcc", so it can be a program name with args.
1654 set dummy gcc; ac_word=$2
1655 echo "$as_me:$LINENO: checking for $ac_word" >&5
1656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1657 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1658 echo $ECHO_N "(cached) $ECHO_C" >&6
1659 else
1660 if test -n "$ac_ct_CC"; then
1661 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1662 else
1663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664 for as_dir in $PATH
1666 IFS=$as_save_IFS
1667 test -z "$as_dir" && as_dir=.
1668 for ac_exec_ext in '' $ac_executable_extensions; do
1669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1670 ac_cv_prog_ac_ct_CC="gcc"
1671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1672 break 2
1674 done
1675 done
1679 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1680 if test -n "$ac_ct_CC"; then
1681 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1682 echo "${ECHO_T}$ac_ct_CC" >&6
1683 else
1684 echo "$as_me:$LINENO: result: no" >&5
1685 echo "${ECHO_T}no" >&6
1688 CC=$ac_ct_CC
1689 else
1690 CC="$ac_cv_prog_CC"
1693 if test -z "$CC"; then
1694 if test -n "$ac_tool_prefix"; then
1695 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1696 set dummy ${ac_tool_prefix}cc; ac_word=$2
1697 echo "$as_me:$LINENO: checking for $ac_word" >&5
1698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699 if test "${ac_cv_prog_CC+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1701 else
1702 if test -n "$CC"; then
1703 ac_cv_prog_CC="$CC" # Let the user override the test.
1704 else
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706 for as_dir in $PATH
1708 IFS=$as_save_IFS
1709 test -z "$as_dir" && as_dir=.
1710 for ac_exec_ext in '' $ac_executable_extensions; do
1711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712 ac_cv_prog_CC="${ac_tool_prefix}cc"
1713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714 break 2
1716 done
1717 done
1721 CC=$ac_cv_prog_CC
1722 if test -n "$CC"; then
1723 echo "$as_me:$LINENO: result: $CC" >&5
1724 echo "${ECHO_T}$CC" >&6
1725 else
1726 echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1731 if test -z "$ac_cv_prog_CC"; then
1732 ac_ct_CC=$CC
1733 # Extract the first word of "cc", so it can be a program name with args.
1734 set dummy cc; ac_word=$2
1735 echo "$as_me:$LINENO: checking for $ac_word" >&5
1736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1738 echo $ECHO_N "(cached) $ECHO_C" >&6
1739 else
1740 if test -n "$ac_ct_CC"; then
1741 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1742 else
1743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 for as_dir in $PATH
1746 IFS=$as_save_IFS
1747 test -z "$as_dir" && as_dir=.
1748 for ac_exec_ext in '' $ac_executable_extensions; do
1749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750 ac_cv_prog_ac_ct_CC="cc"
1751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1752 break 2
1754 done
1755 done
1759 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1760 if test -n "$ac_ct_CC"; then
1761 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1762 echo "${ECHO_T}$ac_ct_CC" >&6
1763 else
1764 echo "$as_me:$LINENO: result: no" >&5
1765 echo "${ECHO_T}no" >&6
1768 CC=$ac_ct_CC
1769 else
1770 CC="$ac_cv_prog_CC"
1774 if test -z "$CC"; then
1775 # Extract the first word of "cc", so it can be a program name with args.
1776 set dummy cc; ac_word=$2
1777 echo "$as_me:$LINENO: checking for $ac_word" >&5
1778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1779 if test "${ac_cv_prog_CC+set}" = set; then
1780 echo $ECHO_N "(cached) $ECHO_C" >&6
1781 else
1782 if test -n "$CC"; then
1783 ac_cv_prog_CC="$CC" # Let the user override the test.
1784 else
1785 ac_prog_rejected=no
1786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1787 for as_dir in $PATH
1789 IFS=$as_save_IFS
1790 test -z "$as_dir" && as_dir=.
1791 for ac_exec_ext in '' $ac_executable_extensions; do
1792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1793 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1794 ac_prog_rejected=yes
1795 continue
1797 ac_cv_prog_CC="cc"
1798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1799 break 2
1801 done
1802 done
1804 if test $ac_prog_rejected = yes; then
1805 # We found a bogon in the path, so make sure we never use it.
1806 set dummy $ac_cv_prog_CC
1807 shift
1808 if test $# != 0; then
1809 # We chose a different compiler from the bogus one.
1810 # However, it has the same basename, so the bogon will be chosen
1811 # first if we set CC to just the basename; use the full file name.
1812 shift
1813 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1818 CC=$ac_cv_prog_CC
1819 if test -n "$CC"; then
1820 echo "$as_me:$LINENO: result: $CC" >&5
1821 echo "${ECHO_T}$CC" >&6
1822 else
1823 echo "$as_me:$LINENO: result: no" >&5
1824 echo "${ECHO_T}no" >&6
1828 if test -z "$CC"; then
1829 if test -n "$ac_tool_prefix"; then
1830 for ac_prog in cl
1832 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1833 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1834 echo "$as_me:$LINENO: checking for $ac_word" >&5
1835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1836 if test "${ac_cv_prog_CC+set}" = set; then
1837 echo $ECHO_N "(cached) $ECHO_C" >&6
1838 else
1839 if test -n "$CC"; then
1840 ac_cv_prog_CC="$CC" # Let the user override the test.
1841 else
1842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1843 for as_dir in $PATH
1845 IFS=$as_save_IFS
1846 test -z "$as_dir" && as_dir=.
1847 for ac_exec_ext in '' $ac_executable_extensions; do
1848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1849 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1851 break 2
1853 done
1854 done
1858 CC=$ac_cv_prog_CC
1859 if test -n "$CC"; then
1860 echo "$as_me:$LINENO: result: $CC" >&5
1861 echo "${ECHO_T}$CC" >&6
1862 else
1863 echo "$as_me:$LINENO: result: no" >&5
1864 echo "${ECHO_T}no" >&6
1867 test -n "$CC" && break
1868 done
1870 if test -z "$CC"; then
1871 ac_ct_CC=$CC
1872 for ac_prog in cl
1874 # Extract the first word of "$ac_prog", so it can be a program name with args.
1875 set dummy $ac_prog; ac_word=$2
1876 echo "$as_me:$LINENO: checking for $ac_word" >&5
1877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1878 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1879 echo $ECHO_N "(cached) $ECHO_C" >&6
1880 else
1881 if test -n "$ac_ct_CC"; then
1882 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1883 else
1884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885 for as_dir in $PATH
1887 IFS=$as_save_IFS
1888 test -z "$as_dir" && as_dir=.
1889 for ac_exec_ext in '' $ac_executable_extensions; do
1890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1891 ac_cv_prog_ac_ct_CC="$ac_prog"
1892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1893 break 2
1895 done
1896 done
1900 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1901 if test -n "$ac_ct_CC"; then
1902 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1903 echo "${ECHO_T}$ac_ct_CC" >&6
1904 else
1905 echo "$as_me:$LINENO: result: no" >&5
1906 echo "${ECHO_T}no" >&6
1909 test -n "$ac_ct_CC" && break
1910 done
1912 CC=$ac_ct_CC
1918 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1919 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1920 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1921 See \`config.log' for more details." >&5
1922 echo "$as_me: error: no acceptable C compiler found in \$PATH
1923 See \`config.log' for more details." >&2;}
1924 { (exit 1); exit 1; }; }; }
1926 # Provide some information about the compiler.
1927 echo "$as_me:$LINENO:" \
1928 "checking for C compiler version" >&5
1929 ac_compiler=`set X $ac_compile; echo $2`
1930 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1931 (eval $ac_compiler --version </dev/null >&5) 2>&5
1932 ac_status=$?
1933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1934 (exit $ac_status); }
1935 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1936 (eval $ac_compiler -v </dev/null >&5) 2>&5
1937 ac_status=$?
1938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939 (exit $ac_status); }
1940 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1941 (eval $ac_compiler -V </dev/null >&5) 2>&5
1942 ac_status=$?
1943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944 (exit $ac_status); }
1946 cat >conftest.$ac_ext <<_ACEOF
1947 /* confdefs.h. */
1948 _ACEOF
1949 cat confdefs.h >>conftest.$ac_ext
1950 cat >>conftest.$ac_ext <<_ACEOF
1951 /* end confdefs.h. */
1954 main ()
1958 return 0;
1960 _ACEOF
1961 ac_clean_files_save=$ac_clean_files
1962 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1963 # Try to create an executable without -o first, disregard a.out.
1964 # It will help us diagnose broken compilers, and finding out an intuition
1965 # of exeext.
1966 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1967 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1968 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1969 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1970 (eval $ac_link_default) 2>&5
1971 ac_status=$?
1972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1973 (exit $ac_status); }; then
1974 # Find the output, starting from the most likely. This scheme is
1975 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1976 # resort.
1978 # Be careful to initialize this variable, since it used to be cached.
1979 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1980 ac_cv_exeext=
1981 # b.out is created by i960 compilers.
1982 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1984 test -f "$ac_file" || continue
1985 case $ac_file in
1986 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1988 conftest.$ac_ext )
1989 # This is the source file.
1991 [ab].out )
1992 # We found the default executable, but exeext='' is most
1993 # certainly right.
1994 break;;
1995 *.* )
1996 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1997 # FIXME: I believe we export ac_cv_exeext for Libtool,
1998 # but it would be cool to find out if it's true. Does anybody
1999 # maintain Libtool? --akim.
2000 export ac_cv_exeext
2001 break;;
2003 break;;
2004 esac
2005 done
2006 else
2007 echo "$as_me: failed program was:" >&5
2008 sed 's/^/| /' conftest.$ac_ext >&5
2010 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2011 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2012 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2013 See \`config.log' for more details." >&5
2014 echo "$as_me: error: C compiler cannot create executables
2015 See \`config.log' for more details." >&2;}
2016 { (exit 77); exit 77; }; }; }
2019 ac_exeext=$ac_cv_exeext
2020 echo "$as_me:$LINENO: result: $ac_file" >&5
2021 echo "${ECHO_T}$ac_file" >&6
2023 # Check the compiler produces executables we can run. If not, either
2024 # the compiler is broken, or we cross compile.
2025 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2026 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2027 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2028 # If not cross compiling, check that we can run a simple program.
2029 if test "$cross_compiling" != yes; then
2030 if { ac_try='./$ac_file'
2031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2032 (eval $ac_try) 2>&5
2033 ac_status=$?
2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035 (exit $ac_status); }; }; then
2036 cross_compiling=no
2037 else
2038 if test "$cross_compiling" = maybe; then
2039 cross_compiling=yes
2040 else
2041 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2042 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2043 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2044 If you meant to cross compile, use \`--host'.
2045 See \`config.log' for more details." >&5
2046 echo "$as_me: error: cannot run C compiled programs.
2047 If you meant to cross compile, use \`--host'.
2048 See \`config.log' for more details." >&2;}
2049 { (exit 1); exit 1; }; }; }
2053 echo "$as_me:$LINENO: result: yes" >&5
2054 echo "${ECHO_T}yes" >&6
2056 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2057 ac_clean_files=$ac_clean_files_save
2058 # Check the compiler produces executables we can run. If not, either
2059 # the compiler is broken, or we cross compile.
2060 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2061 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2062 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2063 echo "${ECHO_T}$cross_compiling" >&6
2065 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2066 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2068 (eval $ac_link) 2>&5
2069 ac_status=$?
2070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071 (exit $ac_status); }; then
2072 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2073 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2074 # work properly (i.e., refer to `conftest.exe'), while it won't with
2075 # `rm'.
2076 for ac_file in conftest.exe conftest conftest.*; do
2077 test -f "$ac_file" || continue
2078 case $ac_file in
2079 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2080 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2081 export ac_cv_exeext
2082 break;;
2083 * ) break;;
2084 esac
2085 done
2086 else
2087 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2088 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2089 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2090 See \`config.log' for more details." >&5
2091 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2092 See \`config.log' for more details." >&2;}
2093 { (exit 1); exit 1; }; }; }
2096 rm -f conftest$ac_cv_exeext
2097 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2098 echo "${ECHO_T}$ac_cv_exeext" >&6
2100 rm -f conftest.$ac_ext
2101 EXEEXT=$ac_cv_exeext
2102 ac_exeext=$EXEEXT
2103 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2104 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2105 if test "${ac_cv_objext+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
2107 else
2108 cat >conftest.$ac_ext <<_ACEOF
2109 /* confdefs.h. */
2110 _ACEOF
2111 cat confdefs.h >>conftest.$ac_ext
2112 cat >>conftest.$ac_ext <<_ACEOF
2113 /* end confdefs.h. */
2116 main ()
2120 return 0;
2122 _ACEOF
2123 rm -f conftest.o conftest.obj
2124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2125 (eval $ac_compile) 2>&5
2126 ac_status=$?
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }; then
2129 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2130 case $ac_file in
2131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2132 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2133 break;;
2134 esac
2135 done
2136 else
2137 echo "$as_me: failed program was:" >&5
2138 sed 's/^/| /' conftest.$ac_ext >&5
2140 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2141 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2142 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2143 See \`config.log' for more details." >&5
2144 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2145 See \`config.log' for more details." >&2;}
2146 { (exit 1); exit 1; }; }; }
2149 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2151 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2152 echo "${ECHO_T}$ac_cv_objext" >&6
2153 OBJEXT=$ac_cv_objext
2154 ac_objext=$OBJEXT
2155 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2156 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2157 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2158 echo $ECHO_N "(cached) $ECHO_C" >&6
2159 else
2160 cat >conftest.$ac_ext <<_ACEOF
2161 /* confdefs.h. */
2162 _ACEOF
2163 cat confdefs.h >>conftest.$ac_ext
2164 cat >>conftest.$ac_ext <<_ACEOF
2165 /* end confdefs.h. */
2168 main ()
2170 #ifndef __GNUC__
2171 choke me
2172 #endif
2175 return 0;
2177 _ACEOF
2178 rm -f conftest.$ac_objext
2179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2180 (eval $ac_compile) 2>conftest.er1
2181 ac_status=$?
2182 grep -v '^ *+' conftest.er1 >conftest.err
2183 rm -f conftest.er1
2184 cat conftest.err >&5
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); } &&
2187 { ac_try='test -z "$ac_c_werror_flag"
2188 || test ! -s conftest.err'
2189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2190 (eval $ac_try) 2>&5
2191 ac_status=$?
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); }; } &&
2194 { ac_try='test -s conftest.$ac_objext'
2195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2196 (eval $ac_try) 2>&5
2197 ac_status=$?
2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); }; }; then
2200 ac_compiler_gnu=yes
2201 else
2202 echo "$as_me: failed program was:" >&5
2203 sed 's/^/| /' conftest.$ac_ext >&5
2205 ac_compiler_gnu=no
2207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2208 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2211 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2212 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2213 GCC=`test $ac_compiler_gnu = yes && echo yes`
2214 ac_test_CFLAGS=${CFLAGS+set}
2215 ac_save_CFLAGS=$CFLAGS
2216 CFLAGS="-g"
2217 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2218 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2219 if test "${ac_cv_prog_cc_g+set}" = set; then
2220 echo $ECHO_N "(cached) $ECHO_C" >&6
2221 else
2222 cat >conftest.$ac_ext <<_ACEOF
2223 /* confdefs.h. */
2224 _ACEOF
2225 cat confdefs.h >>conftest.$ac_ext
2226 cat >>conftest.$ac_ext <<_ACEOF
2227 /* end confdefs.h. */
2230 main ()
2234 return 0;
2236 _ACEOF
2237 rm -f conftest.$ac_objext
2238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2239 (eval $ac_compile) 2>conftest.er1
2240 ac_status=$?
2241 grep -v '^ *+' conftest.er1 >conftest.err
2242 rm -f conftest.er1
2243 cat conftest.err >&5
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); } &&
2246 { ac_try='test -z "$ac_c_werror_flag"
2247 || test ! -s conftest.err'
2248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249 (eval $ac_try) 2>&5
2250 ac_status=$?
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; } &&
2253 { ac_try='test -s conftest.$ac_objext'
2254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255 (eval $ac_try) 2>&5
2256 ac_status=$?
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; }; then
2259 ac_cv_prog_cc_g=yes
2260 else
2261 echo "$as_me: failed program was:" >&5
2262 sed 's/^/| /' conftest.$ac_ext >&5
2264 ac_cv_prog_cc_g=no
2266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2268 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2269 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2270 if test "$ac_test_CFLAGS" = set; then
2271 CFLAGS=$ac_save_CFLAGS
2272 elif test $ac_cv_prog_cc_g = yes; then
2273 if test "$GCC" = yes; then
2274 CFLAGS="-g -O2"
2275 else
2276 CFLAGS="-g"
2278 else
2279 if test "$GCC" = yes; then
2280 CFLAGS="-O2"
2281 else
2282 CFLAGS=
2285 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2286 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2287 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2289 else
2290 ac_cv_prog_cc_stdc=no
2291 ac_save_CC=$CC
2292 cat >conftest.$ac_ext <<_ACEOF
2293 /* confdefs.h. */
2294 _ACEOF
2295 cat confdefs.h >>conftest.$ac_ext
2296 cat >>conftest.$ac_ext <<_ACEOF
2297 /* end confdefs.h. */
2298 #include <stdarg.h>
2299 #include <stdio.h>
2300 #include <sys/types.h>
2301 #include <sys/stat.h>
2302 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2303 struct buf { int x; };
2304 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2305 static char *e (p, i)
2306 char **p;
2307 int i;
2309 return p[i];
2311 static char *f (char * (*g) (char **, int), char **p, ...)
2313 char *s;
2314 va_list v;
2315 va_start (v,p);
2316 s = g (p, va_arg (v,int));
2317 va_end (v);
2318 return s;
2321 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2322 function prototypes and stuff, but not '\xHH' hex character constants.
2323 These don't provoke an error unfortunately, instead are silently treated
2324 as 'x'. The following induces an error, until -std1 is added to get
2325 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2326 array size at least. It's necessary to write '\x00'==0 to get something
2327 that's true only with -std1. */
2328 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2330 int test (int i, double x);
2331 struct s1 {int (*f) (int a);};
2332 struct s2 {int (*f) (double a);};
2333 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2334 int argc;
2335 char **argv;
2337 main ()
2339 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2341 return 0;
2343 _ACEOF
2344 # Don't try gcc -ansi; that turns off useful extensions and
2345 # breaks some systems' header files.
2346 # AIX -qlanglvl=ansi
2347 # Ultrix and OSF/1 -std1
2348 # HP-UX 10.20 and later -Ae
2349 # HP-UX older versions -Aa -D_HPUX_SOURCE
2350 # SVR4 -Xc -D__EXTENSIONS__
2351 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2353 CC="$ac_save_CC $ac_arg"
2354 rm -f conftest.$ac_objext
2355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2356 (eval $ac_compile) 2>conftest.er1
2357 ac_status=$?
2358 grep -v '^ *+' conftest.er1 >conftest.err
2359 rm -f conftest.er1
2360 cat conftest.err >&5
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); } &&
2363 { ac_try='test -z "$ac_c_werror_flag"
2364 || test ! -s conftest.err'
2365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366 (eval $ac_try) 2>&5
2367 ac_status=$?
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; } &&
2370 { ac_try='test -s conftest.$ac_objext'
2371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2372 (eval $ac_try) 2>&5
2373 ac_status=$?
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }; }; then
2376 ac_cv_prog_cc_stdc=$ac_arg
2377 break
2378 else
2379 echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2383 rm -f conftest.err conftest.$ac_objext
2384 done
2385 rm -f conftest.$ac_ext conftest.$ac_objext
2386 CC=$ac_save_CC
2390 case "x$ac_cv_prog_cc_stdc" in
2391 x|xno)
2392 echo "$as_me:$LINENO: result: none needed" >&5
2393 echo "${ECHO_T}none needed" >&6 ;;
2395 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2396 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2397 CC="$CC $ac_cv_prog_cc_stdc" ;;
2398 esac
2400 # Some people use a C++ compiler to compile C. Since we use `exit',
2401 # in C++ we need to declare it. In case someone uses the same compiler
2402 # for both compiling C and C++ we need to have the C++ compiler decide
2403 # the declaration of exit, since it's the most demanding environment.
2404 cat >conftest.$ac_ext <<_ACEOF
2405 #ifndef __cplusplus
2406 choke me
2407 #endif
2408 _ACEOF
2409 rm -f conftest.$ac_objext
2410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2411 (eval $ac_compile) 2>conftest.er1
2412 ac_status=$?
2413 grep -v '^ *+' conftest.er1 >conftest.err
2414 rm -f conftest.er1
2415 cat conftest.err >&5
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); } &&
2418 { ac_try='test -z "$ac_c_werror_flag"
2419 || test ! -s conftest.err'
2420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2421 (eval $ac_try) 2>&5
2422 ac_status=$?
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; } &&
2425 { ac_try='test -s conftest.$ac_objext'
2426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427 (eval $ac_try) 2>&5
2428 ac_status=$?
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }; }; then
2431 for ac_declaration in \
2432 '' \
2433 'extern "C" void std::exit (int) throw (); using std::exit;' \
2434 'extern "C" void std::exit (int); using std::exit;' \
2435 'extern "C" void exit (int) throw ();' \
2436 'extern "C" void exit (int);' \
2437 'void exit (int);'
2439 cat >conftest.$ac_ext <<_ACEOF
2440 /* confdefs.h. */
2441 _ACEOF
2442 cat confdefs.h >>conftest.$ac_ext
2443 cat >>conftest.$ac_ext <<_ACEOF
2444 /* end confdefs.h. */
2445 $ac_declaration
2446 #include <stdlib.h>
2448 main ()
2450 exit (42);
2452 return 0;
2454 _ACEOF
2455 rm -f conftest.$ac_objext
2456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2457 (eval $ac_compile) 2>conftest.er1
2458 ac_status=$?
2459 grep -v '^ *+' conftest.er1 >conftest.err
2460 rm -f conftest.er1
2461 cat conftest.err >&5
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); } &&
2464 { ac_try='test -z "$ac_c_werror_flag"
2465 || test ! -s conftest.err'
2466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467 (eval $ac_try) 2>&5
2468 ac_status=$?
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; } &&
2471 { ac_try='test -s conftest.$ac_objext'
2472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473 (eval $ac_try) 2>&5
2474 ac_status=$?
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }; }; then
2478 else
2479 echo "$as_me: failed program was:" >&5
2480 sed 's/^/| /' conftest.$ac_ext >&5
2482 continue
2484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2485 cat >conftest.$ac_ext <<_ACEOF
2486 /* confdefs.h. */
2487 _ACEOF
2488 cat confdefs.h >>conftest.$ac_ext
2489 cat >>conftest.$ac_ext <<_ACEOF
2490 /* end confdefs.h. */
2491 $ac_declaration
2493 main ()
2495 exit (42);
2497 return 0;
2499 _ACEOF
2500 rm -f conftest.$ac_objext
2501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2502 (eval $ac_compile) 2>conftest.er1
2503 ac_status=$?
2504 grep -v '^ *+' conftest.er1 >conftest.err
2505 rm -f conftest.er1
2506 cat conftest.err >&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); } &&
2509 { ac_try='test -z "$ac_c_werror_flag"
2510 || test ! -s conftest.err'
2511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512 (eval $ac_try) 2>&5
2513 ac_status=$?
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; } &&
2516 { ac_try='test -s conftest.$ac_objext'
2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518 (eval $ac_try) 2>&5
2519 ac_status=$?
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; }; then
2522 break
2523 else
2524 echo "$as_me: failed program was:" >&5
2525 sed 's/^/| /' conftest.$ac_ext >&5
2528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2529 done
2530 rm -f conftest*
2531 if test -n "$ac_declaration"; then
2532 echo '#ifdef __cplusplus' >>confdefs.h
2533 echo $ac_declaration >>confdefs.h
2534 echo '#endif' >>confdefs.h
2537 else
2538 echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2543 ac_ext=c
2544 ac_cpp='$CPP $CPPFLAGS'
2545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2550 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2551 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2552 if test "${ac_cv_search_strerror+set}" = set; then
2553 echo $ECHO_N "(cached) $ECHO_C" >&6
2554 else
2555 ac_func_search_save_LIBS=$LIBS
2556 ac_cv_search_strerror=no
2557 cat >conftest.$ac_ext <<_ACEOF
2558 /* confdefs.h. */
2559 _ACEOF
2560 cat confdefs.h >>conftest.$ac_ext
2561 cat >>conftest.$ac_ext <<_ACEOF
2562 /* end confdefs.h. */
2564 /* Override any gcc2 internal prototype to avoid an error. */
2565 #ifdef __cplusplus
2566 extern "C"
2567 #endif
2568 /* We use char because int might match the return type of a gcc2
2569 builtin and then its argument prototype would still apply. */
2570 char strerror ();
2572 main ()
2574 strerror ();
2576 return 0;
2578 _ACEOF
2579 rm -f conftest.$ac_objext conftest$ac_exeext
2580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2581 (eval $ac_link) 2>conftest.er1
2582 ac_status=$?
2583 grep -v '^ *+' conftest.er1 >conftest.err
2584 rm -f conftest.er1
2585 cat conftest.err >&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); } &&
2588 { ac_try='test -z "$ac_c_werror_flag"
2589 || test ! -s conftest.err'
2590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591 (eval $ac_try) 2>&5
2592 ac_status=$?
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; } &&
2595 { ac_try='test -s conftest$ac_exeext'
2596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597 (eval $ac_try) 2>&5
2598 ac_status=$?
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }; }; then
2601 ac_cv_search_strerror="none required"
2602 else
2603 echo "$as_me: failed program was:" >&5
2604 sed 's/^/| /' conftest.$ac_ext >&5
2607 rm -f conftest.err conftest.$ac_objext \
2608 conftest$ac_exeext conftest.$ac_ext
2609 if test "$ac_cv_search_strerror" = no; then
2610 for ac_lib in cposix; do
2611 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2612 cat >conftest.$ac_ext <<_ACEOF
2613 /* confdefs.h. */
2614 _ACEOF
2615 cat confdefs.h >>conftest.$ac_ext
2616 cat >>conftest.$ac_ext <<_ACEOF
2617 /* end confdefs.h. */
2619 /* Override any gcc2 internal prototype to avoid an error. */
2620 #ifdef __cplusplus
2621 extern "C"
2622 #endif
2623 /* We use char because int might match the return type of a gcc2
2624 builtin and then its argument prototype would still apply. */
2625 char strerror ();
2627 main ()
2629 strerror ();
2631 return 0;
2633 _ACEOF
2634 rm -f conftest.$ac_objext conftest$ac_exeext
2635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2636 (eval $ac_link) 2>conftest.er1
2637 ac_status=$?
2638 grep -v '^ *+' conftest.er1 >conftest.err
2639 rm -f conftest.er1
2640 cat conftest.err >&5
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); } &&
2643 { ac_try='test -z "$ac_c_werror_flag"
2644 || test ! -s conftest.err'
2645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646 (eval $ac_try) 2>&5
2647 ac_status=$?
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); }; } &&
2650 { ac_try='test -s conftest$ac_exeext'
2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652 (eval $ac_try) 2>&5
2653 ac_status=$?
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; }; then
2656 ac_cv_search_strerror="-l$ac_lib"
2657 break
2658 else
2659 echo "$as_me: failed program was:" >&5
2660 sed 's/^/| /' conftest.$ac_ext >&5
2663 rm -f conftest.err conftest.$ac_objext \
2664 conftest$ac_exeext conftest.$ac_ext
2665 done
2667 LIBS=$ac_func_search_save_LIBS
2669 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2670 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2671 if test "$ac_cv_search_strerror" != no; then
2672 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2677 am__api_version="1.9"
2678 # Find a good install program. We prefer a C program (faster),
2679 # so one script is as good as another. But avoid the broken or
2680 # incompatible versions:
2681 # SysV /etc/install, /usr/sbin/install
2682 # SunOS /usr/etc/install
2683 # IRIX /sbin/install
2684 # AIX /bin/install
2685 # AmigaOS /C/install, which installs bootblocks on floppy discs
2686 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2687 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2688 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2689 # OS/2's system install, which has a completely different semantic
2690 # ./install, which can be erroneously created by make from ./install.sh.
2691 # Reject install programs that cannot install multiple files.
2692 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2693 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2694 if test -z "$INSTALL"; then
2695 if test "${ac_cv_path_install+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2697 else
2698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699 for as_dir in $PATH
2701 IFS=$as_save_IFS
2702 test -z "$as_dir" && as_dir=.
2703 # Account for people who put trailing slashes in PATH elements.
2704 case $as_dir/ in
2705 ./ | .// | /cC/* | \
2706 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2707 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2708 /usr/ucb/* ) ;;
2710 # OSF1 and SCO ODT 3.0 have their own names for install.
2711 # Don't use installbsd from OSF since it installs stuff as root
2712 # by default.
2713 for ac_prog in ginstall scoinst install; do
2714 for ac_exec_ext in '' $ac_executable_extensions; do
2715 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2716 if test $ac_prog = install &&
2717 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2718 # AIX install. It has an incompatible calling convention.
2720 elif test $ac_prog = install &&
2721 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2722 # program-specific install script used by HP pwplus--don't use.
2724 else
2725 rm -rf conftest.one conftest.two conftest.dir
2726 echo one > conftest.one
2727 echo two > conftest.two
2728 mkdir conftest.dir
2729 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2730 test -s conftest.one && test -s conftest.two &&
2731 test -s conftest.dir/conftest.one &&
2732 test -s conftest.dir/conftest.two
2733 then
2734 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2735 break 3
2739 done
2740 done
2742 esac
2743 done
2745 rm -rf conftest.one conftest.two conftest.dir
2748 if test "${ac_cv_path_install+set}" = set; then
2749 INSTALL=$ac_cv_path_install
2750 else
2751 # As a last resort, use the slow shell script. Don't cache a
2752 # value for INSTALL within a source directory, because that will
2753 # break other packages using the cache if that directory is
2754 # removed, or if the value is a relative name.
2755 INSTALL=$ac_install_sh
2758 echo "$as_me:$LINENO: result: $INSTALL" >&5
2759 echo "${ECHO_T}$INSTALL" >&6
2761 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2762 # It thinks the first close brace ends the variable substitution.
2763 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2765 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2767 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2769 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2770 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2771 # Just in case
2772 sleep 1
2773 echo timestamp > conftest.file
2774 # Do `set' in a subshell so we don't clobber the current shell's
2775 # arguments. Must try -L first in case configure is actually a
2776 # symlink; some systems play weird games with the mod time of symlinks
2777 # (eg FreeBSD returns the mod time of the symlink's containing
2778 # directory).
2779 if (
2780 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2781 if test "$*" = "X"; then
2782 # -L didn't work.
2783 set X `ls -t $srcdir/configure conftest.file`
2785 rm -f conftest.file
2786 if test "$*" != "X $srcdir/configure conftest.file" \
2787 && test "$*" != "X conftest.file $srcdir/configure"; then
2789 # If neither matched, then we have a broken ls. This can happen
2790 # if, for instance, CONFIG_SHELL is bash and it inherits a
2791 # broken ls alias from the environment. This has actually
2792 # happened. Such a system could not be considered "sane".
2793 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2794 alias in your environment" >&5
2795 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2796 alias in your environment" >&2;}
2797 { (exit 1); exit 1; }; }
2800 test "$2" = conftest.file
2802 then
2803 # Ok.
2805 else
2806 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2807 Check your system clock" >&5
2808 echo "$as_me: error: newly created file is older than distributed files!
2809 Check your system clock" >&2;}
2810 { (exit 1); exit 1; }; }
2812 echo "$as_me:$LINENO: result: yes" >&5
2813 echo "${ECHO_T}yes" >&6
2814 test "$program_prefix" != NONE &&
2815 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2816 # Use a double $ so make ignores it.
2817 test "$program_suffix" != NONE &&
2818 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2819 # Double any \ or $. echo might interpret backslashes.
2820 # By default was `s,x,x', remove it if useless.
2821 cat <<\_ACEOF >conftest.sed
2822 s/[\\$]/&&/g;s/;s,x,x,$//
2823 _ACEOF
2824 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2825 rm conftest.sed
2827 # expand $ac_aux_dir to an absolute path
2828 am_aux_dir=`cd $ac_aux_dir && pwd`
2830 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2831 # Use eval to expand $SHELL
2832 if eval "$MISSING --run true"; then
2833 am_missing_run="$MISSING --run "
2834 else
2835 am_missing_run=
2836 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2837 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2840 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2841 # We used to keeping the `.' as first argument, in order to
2842 # allow $(mkdir_p) to be used without argument. As in
2843 # $(mkdir_p) $(somedir)
2844 # where $(somedir) is conditionally defined. However this is wrong
2845 # for two reasons:
2846 # 1. if the package is installed by a user who cannot write `.'
2847 # make install will fail,
2848 # 2. the above comment should most certainly read
2849 # $(mkdir_p) $(DESTDIR)$(somedir)
2850 # so it does not work when $(somedir) is undefined and
2851 # $(DESTDIR) is not.
2852 # To support the latter case, we have to write
2853 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2854 # so the `.' trick is pointless.
2855 mkdir_p='mkdir -p --'
2856 else
2857 # On NextStep and OpenStep, the `mkdir' command does not
2858 # recognize any option. It will interpret all options as
2859 # directories to create, and then abort because `.' already
2860 # exists.
2861 for d in ./-p ./--version;
2863 test -d $d && rmdir $d
2864 done
2865 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2866 if test -f "$ac_aux_dir/mkinstalldirs"; then
2867 mkdir_p='$(mkinstalldirs)'
2868 else
2869 mkdir_p='$(install_sh) -d'
2873 for ac_prog in gawk mawk nawk awk
2875 # Extract the first word of "$ac_prog", so it can be a program name with args.
2876 set dummy $ac_prog; ac_word=$2
2877 echo "$as_me:$LINENO: checking for $ac_word" >&5
2878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2879 if test "${ac_cv_prog_AWK+set}" = set; then
2880 echo $ECHO_N "(cached) $ECHO_C" >&6
2881 else
2882 if test -n "$AWK"; then
2883 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2884 else
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH
2888 IFS=$as_save_IFS
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2892 ac_cv_prog_AWK="$ac_prog"
2893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 break 2
2896 done
2897 done
2901 AWK=$ac_cv_prog_AWK
2902 if test -n "$AWK"; then
2903 echo "$as_me:$LINENO: result: $AWK" >&5
2904 echo "${ECHO_T}$AWK" >&6
2905 else
2906 echo "$as_me:$LINENO: result: no" >&5
2907 echo "${ECHO_T}no" >&6
2910 test -n "$AWK" && break
2911 done
2913 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2914 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2915 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2916 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2918 else
2919 cat >conftest.make <<\_ACEOF
2920 all:
2921 @echo 'ac_maketemp="$(MAKE)"'
2922 _ACEOF
2923 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2924 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2925 if test -n "$ac_maketemp"; then
2926 eval ac_cv_prog_make_${ac_make}_set=yes
2927 else
2928 eval ac_cv_prog_make_${ac_make}_set=no
2930 rm -f conftest.make
2932 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2933 echo "$as_me:$LINENO: result: yes" >&5
2934 echo "${ECHO_T}yes" >&6
2935 SET_MAKE=
2936 else
2937 echo "$as_me:$LINENO: result: no" >&5
2938 echo "${ECHO_T}no" >&6
2939 SET_MAKE="MAKE=${MAKE-make}"
2942 rm -rf .tst 2>/dev/null
2943 mkdir .tst 2>/dev/null
2944 if test -d .tst; then
2945 am__leading_dot=.
2946 else
2947 am__leading_dot=_
2949 rmdir .tst 2>/dev/null
2951 DEPDIR="${am__leading_dot}deps"
2953 ac_config_commands="$ac_config_commands depfiles"
2956 am_make=${MAKE-make}
2957 cat > confinc << 'END'
2958 am__doit:
2959 @echo done
2960 .PHONY: am__doit
2962 # If we don't find an include directive, just comment out the code.
2963 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2964 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2965 am__include="#"
2966 am__quote=
2967 _am_result=none
2968 # First try GNU make style include.
2969 echo "include confinc" > confmf
2970 # We grep out `Entering directory' and `Leaving directory'
2971 # messages which can occur if `w' ends up in MAKEFLAGS.
2972 # In particular we don't look at `^make:' because GNU make might
2973 # be invoked under some other name (usually "gmake"), in which
2974 # case it prints its new name instead of `make'.
2975 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2976 am__include=include
2977 am__quote=
2978 _am_result=GNU
2980 # Now try BSD make style include.
2981 if test "$am__include" = "#"; then
2982 echo '.include "confinc"' > confmf
2983 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2984 am__include=.include
2985 am__quote="\""
2986 _am_result=BSD
2991 echo "$as_me:$LINENO: result: $_am_result" >&5
2992 echo "${ECHO_T}$_am_result" >&6
2993 rm -f confinc confmf
2995 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2996 if test "${enable_dependency_tracking+set}" = set; then
2997 enableval="$enable_dependency_tracking"
3000 if test "x$enable_dependency_tracking" != xno; then
3001 am_depcomp="$ac_aux_dir/depcomp"
3002 AMDEPBACKSLASH='\'
3006 if test "x$enable_dependency_tracking" != xno; then
3007 AMDEP_TRUE=
3008 AMDEP_FALSE='#'
3009 else
3010 AMDEP_TRUE='#'
3011 AMDEP_FALSE=
3016 # test to see if srcdir already configured
3017 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3018 test -f $srcdir/config.status; then
3019 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3020 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3021 { (exit 1); exit 1; }; }
3024 # test whether we have cygpath
3025 if test -z "$CYGPATH_W"; then
3026 if (cygpath --version) >/dev/null 2>/dev/null; then
3027 CYGPATH_W='cygpath -w'
3028 else
3029 CYGPATH_W=echo
3034 # Define the identity of the package.
3035 PACKAGE=bfd
3036 VERSION=2.19.50
3039 cat >>confdefs.h <<_ACEOF
3040 #define PACKAGE "$PACKAGE"
3041 _ACEOF
3044 cat >>confdefs.h <<_ACEOF
3045 #define VERSION "$VERSION"
3046 _ACEOF
3048 # Some tools Automake needs.
3050 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3053 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3056 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3059 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3062 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3064 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3066 # Installed binaries are usually stripped using `strip' when the user
3067 # run `make install-strip'. However `strip' might not be the right
3068 # tool to use in cross-compilation environments, therefore Automake
3069 # will honor the `STRIP' environment variable to overrule this program.
3070 if test "$cross_compiling" != no; then
3071 if test -n "$ac_tool_prefix"; then
3072 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3073 set dummy ${ac_tool_prefix}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_STRIP+set}" = set; then
3077 echo $ECHO_N "(cached) $ECHO_C" >&6
3078 else
3079 if test -n "$STRIP"; then
3080 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3081 else
3082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083 for as_dir in $PATH
3085 IFS=$as_save_IFS
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_STRIP="${ac_tool_prefix}strip"
3090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3091 break 2
3093 done
3094 done
3098 STRIP=$ac_cv_prog_STRIP
3099 if test -n "$STRIP"; then
3100 echo "$as_me:$LINENO: result: $STRIP" >&5
3101 echo "${ECHO_T}$STRIP" >&6
3102 else
3103 echo "$as_me:$LINENO: result: no" >&5
3104 echo "${ECHO_T}no" >&6
3108 if test -z "$ac_cv_prog_STRIP"; then
3109 ac_ct_STRIP=$STRIP
3110 # Extract the first word of "strip", so it can be a program name with args.
3111 set dummy strip; ac_word=$2
3112 echo "$as_me:$LINENO: checking for $ac_word" >&5
3113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3114 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3115 echo $ECHO_N "(cached) $ECHO_C" >&6
3116 else
3117 if test -n "$ac_ct_STRIP"; then
3118 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3119 else
3120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121 for as_dir in $PATH
3123 IFS=$as_save_IFS
3124 test -z "$as_dir" && as_dir=.
3125 for ac_exec_ext in '' $ac_executable_extensions; do
3126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3127 ac_cv_prog_ac_ct_STRIP="strip"
3128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3129 break 2
3131 done
3132 done
3134 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3137 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3138 if test -n "$ac_ct_STRIP"; then
3139 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3140 echo "${ECHO_T}$ac_ct_STRIP" >&6
3141 else
3142 echo "$as_me:$LINENO: result: no" >&5
3143 echo "${ECHO_T}no" >&6
3146 STRIP=$ac_ct_STRIP
3147 else
3148 STRIP="$ac_cv_prog_STRIP"
3152 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3154 # We need awk for the "check" target. The system "awk" is bad on
3155 # some platforms.
3156 # Always define AMTAR for backward compatibility.
3158 AMTAR=${AMTAR-"${am_missing_run}tar"}
3160 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3165 depcc="$CC" am_compiler_list=
3167 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3168 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3169 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3170 echo $ECHO_N "(cached) $ECHO_C" >&6
3171 else
3172 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3173 # We make a subdir and do the tests there. Otherwise we can end up
3174 # making bogus files that we don't know about and never remove. For
3175 # instance it was reported that on HP-UX the gcc test will end up
3176 # making a dummy file named `D' -- because `-MD' means `put the output
3177 # in D'.
3178 mkdir conftest.dir
3179 # Copy depcomp to subdir because otherwise we won't find it if we're
3180 # using a relative directory.
3181 cp "$am_depcomp" conftest.dir
3182 cd conftest.dir
3183 # We will build objects and dependencies in a subdirectory because
3184 # it helps to detect inapplicable dependency modes. For instance
3185 # both Tru64's cc and ICC support -MD to output dependencies as a
3186 # side effect of compilation, but ICC will put the dependencies in
3187 # the current directory while Tru64 will put them in the object
3188 # directory.
3189 mkdir sub
3191 am_cv_CC_dependencies_compiler_type=none
3192 if test "$am_compiler_list" = ""; then
3193 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3195 for depmode in $am_compiler_list; do
3196 # Setup a source with many dependencies, because some compilers
3197 # like to wrap large dependency lists on column 80 (with \), and
3198 # we should not choose a depcomp mode which is confused by this.
3200 # We need to recreate these files for each test, as the compiler may
3201 # overwrite some of them when testing with obscure command lines.
3202 # This happens at least with the AIX C compiler.
3203 : > sub/conftest.c
3204 for i in 1 2 3 4 5 6; do
3205 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3206 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3207 # Solaris 8's {/usr,}/bin/sh.
3208 touch sub/conftst$i.h
3209 done
3210 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3212 case $depmode in
3213 nosideeffect)
3214 # after this tag, mechanisms are not by side-effect, so they'll
3215 # only be used when explicitly requested
3216 if test "x$enable_dependency_tracking" = xyes; then
3217 continue
3218 else
3219 break
3222 none) break ;;
3223 esac
3224 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3225 # mode. It turns out that the SunPro C++ compiler does not properly
3226 # handle `-M -o', and we need to detect this.
3227 if depmode=$depmode \
3228 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3229 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3230 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3231 >/dev/null 2>conftest.err &&
3232 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3233 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3234 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3235 # icc doesn't choke on unknown options, it will just issue warnings
3236 # or remarks (even with -Werror). So we grep stderr for any message
3237 # that says an option was ignored or not supported.
3238 # When given -MP, icc 7.0 and 7.1 complain thusly:
3239 # icc: Command line warning: ignoring option '-M'; no argument required
3240 # The diagnosis changed in icc 8.0:
3241 # icc: Command line remark: option '-MP' not supported
3242 if (grep 'ignoring option' conftest.err ||
3243 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3244 am_cv_CC_dependencies_compiler_type=$depmode
3245 break
3248 done
3250 cd ..
3251 rm -rf conftest.dir
3252 else
3253 am_cv_CC_dependencies_compiler_type=none
3257 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3258 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3259 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3264 test "x$enable_dependency_tracking" != xno \
3265 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3266 am__fastdepCC_TRUE=
3267 am__fastdepCC_FALSE='#'
3268 else
3269 am__fastdepCC_TRUE='#'
3270 am__fastdepCC_FALSE=
3276 if test -n "$ac_tool_prefix"; then
3277 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3278 set dummy ${ac_tool_prefix}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_AR+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
3283 else
3284 if test -n "$AR"; then
3285 ac_cv_prog_AR="$AR" # Let the user override the test.
3286 else
3287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288 for as_dir in $PATH
3290 IFS=$as_save_IFS
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_AR="${ac_tool_prefix}ar"
3295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3296 break 2
3298 done
3299 done
3303 AR=$ac_cv_prog_AR
3304 if test -n "$AR"; then
3305 echo "$as_me:$LINENO: result: $AR" >&5
3306 echo "${ECHO_T}$AR" >&6
3307 else
3308 echo "$as_me:$LINENO: result: no" >&5
3309 echo "${ECHO_T}no" >&6
3313 if test -z "$ac_cv_prog_AR"; then
3314 ac_ct_AR=$AR
3315 # Extract the first word of "ar", so it can be a program name with args.
3316 set dummy ar; ac_word=$2
3317 echo "$as_me:$LINENO: checking for $ac_word" >&5
3318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3319 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3320 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 else
3322 if test -n "$ac_ct_AR"; then
3323 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3324 else
3325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326 for as_dir in $PATH
3328 IFS=$as_save_IFS
3329 test -z "$as_dir" && as_dir=.
3330 for ac_exec_ext in '' $ac_executable_extensions; do
3331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3332 ac_cv_prog_ac_ct_AR="ar"
3333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 break 2
3336 done
3337 done
3341 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3342 if test -n "$ac_ct_AR"; then
3343 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3344 echo "${ECHO_T}$ac_ct_AR" >&6
3345 else
3346 echo "$as_me:$LINENO: result: no" >&5
3347 echo "${ECHO_T}no" >&6
3350 AR=$ac_ct_AR
3351 else
3352 AR="$ac_cv_prog_AR"
3355 if test -n "$ac_tool_prefix"; then
3356 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3357 set dummy ${ac_tool_prefix}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_RANLIB+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3362 else
3363 if test -n "$RANLIB"; then
3364 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3365 else
3366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367 for as_dir in $PATH
3369 IFS=$as_save_IFS
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_RANLIB="${ac_tool_prefix}ranlib"
3374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3375 break 2
3377 done
3378 done
3382 RANLIB=$ac_cv_prog_RANLIB
3383 if test -n "$RANLIB"; then
3384 echo "$as_me:$LINENO: result: $RANLIB" >&5
3385 echo "${ECHO_T}$RANLIB" >&6
3386 else
3387 echo "$as_me:$LINENO: result: no" >&5
3388 echo "${ECHO_T}no" >&6
3392 if test -z "$ac_cv_prog_RANLIB"; then
3393 ac_ct_RANLIB=$RANLIB
3394 # Extract the first word of "ranlib", so it can be a program name with args.
3395 set dummy ranlib; ac_word=$2
3396 echo "$as_me:$LINENO: checking for $ac_word" >&5
3397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3398 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
3400 else
3401 if test -n "$ac_ct_RANLIB"; then
3402 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3403 else
3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405 for as_dir in $PATH
3407 IFS=$as_save_IFS
3408 test -z "$as_dir" && as_dir=.
3409 for ac_exec_ext in '' $ac_executable_extensions; do
3410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3411 ac_cv_prog_ac_ct_RANLIB="ranlib"
3412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3413 break 2
3415 done
3416 done
3418 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3421 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3422 if test -n "$ac_ct_RANLIB"; then
3423 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3424 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3425 else
3426 echo "$as_me:$LINENO: result: no" >&5
3427 echo "${ECHO_T}no" >&6
3430 RANLIB=$ac_ct_RANLIB
3431 else
3432 RANLIB="$ac_cv_prog_RANLIB"
3436 # Check whether --enable-shared or --disable-shared was given.
3437 if test "${enable_shared+set}" = set; then
3438 enableval="$enable_shared"
3439 p=${PACKAGE-default}
3440 case $enableval in
3441 yes) enable_shared=yes ;;
3442 no) enable_shared=no ;;
3444 enable_shared=no
3445 # Look at the argument we got. We use all the common list separators.
3446 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3447 for pkg in $enableval; do
3448 IFS="$lt_save_ifs"
3449 if test "X$pkg" = "X$p"; then
3450 enable_shared=yes
3452 done
3453 IFS="$lt_save_ifs"
3455 esac
3456 else
3457 enable_shared=no
3468 ac_ext=c
3469 ac_cpp='$CPP $CPPFLAGS'
3470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3473 if test -n "$ac_tool_prefix"; then
3474 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3475 set dummy ${ac_tool_prefix}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_CC+set}" = set; then
3479 echo $ECHO_N "(cached) $ECHO_C" >&6
3480 else
3481 if test -n "$CC"; then
3482 ac_cv_prog_CC="$CC" # Let the user override the test.
3483 else
3484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3485 for as_dir in $PATH
3487 IFS=$as_save_IFS
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_CC="${ac_tool_prefix}gcc"
3492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3493 break 2
3495 done
3496 done
3500 CC=$ac_cv_prog_CC
3501 if test -n "$CC"; then
3502 echo "$as_me:$LINENO: result: $CC" >&5
3503 echo "${ECHO_T}$CC" >&6
3504 else
3505 echo "$as_me:$LINENO: result: no" >&5
3506 echo "${ECHO_T}no" >&6
3510 if test -z "$ac_cv_prog_CC"; then
3511 ac_ct_CC=$CC
3512 # Extract the first word of "gcc", so it can be a program name with args.
3513 set dummy gcc; ac_word=$2
3514 echo "$as_me:$LINENO: checking for $ac_word" >&5
3515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3516 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3517 echo $ECHO_N "(cached) $ECHO_C" >&6
3518 else
3519 if test -n "$ac_ct_CC"; then
3520 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3521 else
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523 for as_dir in $PATH
3525 IFS=$as_save_IFS
3526 test -z "$as_dir" && as_dir=.
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3529 ac_cv_prog_ac_ct_CC="gcc"
3530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3531 break 2
3533 done
3534 done
3538 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3539 if test -n "$ac_ct_CC"; then
3540 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3541 echo "${ECHO_T}$ac_ct_CC" >&6
3542 else
3543 echo "$as_me:$LINENO: result: no" >&5
3544 echo "${ECHO_T}no" >&6
3547 CC=$ac_ct_CC
3548 else
3549 CC="$ac_cv_prog_CC"
3552 if test -z "$CC"; then
3553 if test -n "$ac_tool_prefix"; then
3554 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3555 set dummy ${ac_tool_prefix}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_CC+set}" = set; then
3559 echo $ECHO_N "(cached) $ECHO_C" >&6
3560 else
3561 if test -n "$CC"; then
3562 ac_cv_prog_CC="$CC" # Let the user override the test.
3563 else
3564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565 for as_dir in $PATH
3567 IFS=$as_save_IFS
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_CC="${ac_tool_prefix}cc"
3572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3573 break 2
3575 done
3576 done
3580 CC=$ac_cv_prog_CC
3581 if test -n "$CC"; then
3582 echo "$as_me:$LINENO: result: $CC" >&5
3583 echo "${ECHO_T}$CC" >&6
3584 else
3585 echo "$as_me:$LINENO: result: no" >&5
3586 echo "${ECHO_T}no" >&6
3590 if test -z "$ac_cv_prog_CC"; then
3591 ac_ct_CC=$CC
3592 # Extract the first word of "cc", so it can be a program name with args.
3593 set dummy cc; ac_word=$2
3594 echo "$as_me:$LINENO: checking for $ac_word" >&5
3595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3596 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3597 echo $ECHO_N "(cached) $ECHO_C" >&6
3598 else
3599 if test -n "$ac_ct_CC"; then
3600 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3601 else
3602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603 for as_dir in $PATH
3605 IFS=$as_save_IFS
3606 test -z "$as_dir" && as_dir=.
3607 for ac_exec_ext in '' $ac_executable_extensions; do
3608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3609 ac_cv_prog_ac_ct_CC="cc"
3610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3611 break 2
3613 done
3614 done
3618 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3619 if test -n "$ac_ct_CC"; then
3620 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3621 echo "${ECHO_T}$ac_ct_CC" >&6
3622 else
3623 echo "$as_me:$LINENO: result: no" >&5
3624 echo "${ECHO_T}no" >&6
3627 CC=$ac_ct_CC
3628 else
3629 CC="$ac_cv_prog_CC"
3633 if test -z "$CC"; then
3634 # Extract the first word of "cc", so it can be a program name with args.
3635 set dummy cc; ac_word=$2
3636 echo "$as_me:$LINENO: checking for $ac_word" >&5
3637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3638 if test "${ac_cv_prog_CC+set}" = set; then
3639 echo $ECHO_N "(cached) $ECHO_C" >&6
3640 else
3641 if test -n "$CC"; then
3642 ac_cv_prog_CC="$CC" # Let the user override the test.
3643 else
3644 ac_prog_rejected=no
3645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646 for as_dir in $PATH
3648 IFS=$as_save_IFS
3649 test -z "$as_dir" && as_dir=.
3650 for ac_exec_ext in '' $ac_executable_extensions; do
3651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3652 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3653 ac_prog_rejected=yes
3654 continue
3656 ac_cv_prog_CC="cc"
3657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3658 break 2
3660 done
3661 done
3663 if test $ac_prog_rejected = yes; then
3664 # We found a bogon in the path, so make sure we never use it.
3665 set dummy $ac_cv_prog_CC
3666 shift
3667 if test $# != 0; then
3668 # We chose a different compiler from the bogus one.
3669 # However, it has the same basename, so the bogon will be chosen
3670 # first if we set CC to just the basename; use the full file name.
3671 shift
3672 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3677 CC=$ac_cv_prog_CC
3678 if test -n "$CC"; then
3679 echo "$as_me:$LINENO: result: $CC" >&5
3680 echo "${ECHO_T}$CC" >&6
3681 else
3682 echo "$as_me:$LINENO: result: no" >&5
3683 echo "${ECHO_T}no" >&6
3687 if test -z "$CC"; then
3688 if test -n "$ac_tool_prefix"; then
3689 for ac_prog in cl
3691 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3692 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3693 echo "$as_me:$LINENO: checking for $ac_word" >&5
3694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3695 if test "${ac_cv_prog_CC+set}" = set; then
3696 echo $ECHO_N "(cached) $ECHO_C" >&6
3697 else
3698 if test -n "$CC"; then
3699 ac_cv_prog_CC="$CC" # Let the user override the test.
3700 else
3701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702 for as_dir in $PATH
3704 IFS=$as_save_IFS
3705 test -z "$as_dir" && as_dir=.
3706 for ac_exec_ext in '' $ac_executable_extensions; do
3707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3708 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3710 break 2
3712 done
3713 done
3717 CC=$ac_cv_prog_CC
3718 if test -n "$CC"; then
3719 echo "$as_me:$LINENO: result: $CC" >&5
3720 echo "${ECHO_T}$CC" >&6
3721 else
3722 echo "$as_me:$LINENO: result: no" >&5
3723 echo "${ECHO_T}no" >&6
3726 test -n "$CC" && break
3727 done
3729 if test -z "$CC"; then
3730 ac_ct_CC=$CC
3731 for ac_prog in cl
3733 # Extract the first word of "$ac_prog", so it can be a program name with args.
3734 set dummy $ac_prog; ac_word=$2
3735 echo "$as_me:$LINENO: checking for $ac_word" >&5
3736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3737 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3739 else
3740 if test -n "$ac_ct_CC"; then
3741 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3742 else
3743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744 for as_dir in $PATH
3746 IFS=$as_save_IFS
3747 test -z "$as_dir" && as_dir=.
3748 for ac_exec_ext in '' $ac_executable_extensions; do
3749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3750 ac_cv_prog_ac_ct_CC="$ac_prog"
3751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3752 break 2
3754 done
3755 done
3759 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3760 if test -n "$ac_ct_CC"; then
3761 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3762 echo "${ECHO_T}$ac_ct_CC" >&6
3763 else
3764 echo "$as_me:$LINENO: result: no" >&5
3765 echo "${ECHO_T}no" >&6
3768 test -n "$ac_ct_CC" && break
3769 done
3771 CC=$ac_ct_CC
3777 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3778 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3779 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3780 See \`config.log' for more details." >&5
3781 echo "$as_me: error: no acceptable C compiler found in \$PATH
3782 See \`config.log' for more details." >&2;}
3783 { (exit 1); exit 1; }; }; }
3785 # Provide some information about the compiler.
3786 echo "$as_me:$LINENO:" \
3787 "checking for C compiler version" >&5
3788 ac_compiler=`set X $ac_compile; echo $2`
3789 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3790 (eval $ac_compiler --version </dev/null >&5) 2>&5
3791 ac_status=$?
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); }
3794 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3795 (eval $ac_compiler -v </dev/null >&5) 2>&5
3796 ac_status=$?
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); }
3799 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3800 (eval $ac_compiler -V </dev/null >&5) 2>&5
3801 ac_status=$?
3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); }
3805 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3806 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3807 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3808 echo $ECHO_N "(cached) $ECHO_C" >&6
3809 else
3810 cat >conftest.$ac_ext <<_ACEOF
3811 /* confdefs.h. */
3812 _ACEOF
3813 cat confdefs.h >>conftest.$ac_ext
3814 cat >>conftest.$ac_ext <<_ACEOF
3815 /* end confdefs.h. */
3818 main ()
3820 #ifndef __GNUC__
3821 choke me
3822 #endif
3825 return 0;
3827 _ACEOF
3828 rm -f conftest.$ac_objext
3829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3830 (eval $ac_compile) 2>conftest.er1
3831 ac_status=$?
3832 grep -v '^ *+' conftest.er1 >conftest.err
3833 rm -f conftest.er1
3834 cat conftest.err >&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); } &&
3837 { ac_try='test -z "$ac_c_werror_flag"
3838 || test ! -s conftest.err'
3839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3840 (eval $ac_try) 2>&5
3841 ac_status=$?
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); }; } &&
3844 { ac_try='test -s conftest.$ac_objext'
3845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3846 (eval $ac_try) 2>&5
3847 ac_status=$?
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; }; then
3850 ac_compiler_gnu=yes
3851 else
3852 echo "$as_me: failed program was:" >&5
3853 sed 's/^/| /' conftest.$ac_ext >&5
3855 ac_compiler_gnu=no
3857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3858 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3861 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3862 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3863 GCC=`test $ac_compiler_gnu = yes && echo yes`
3864 ac_test_CFLAGS=${CFLAGS+set}
3865 ac_save_CFLAGS=$CFLAGS
3866 CFLAGS="-g"
3867 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3868 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3869 if test "${ac_cv_prog_cc_g+set}" = set; then
3870 echo $ECHO_N "(cached) $ECHO_C" >&6
3871 else
3872 cat >conftest.$ac_ext <<_ACEOF
3873 /* confdefs.h. */
3874 _ACEOF
3875 cat confdefs.h >>conftest.$ac_ext
3876 cat >>conftest.$ac_ext <<_ACEOF
3877 /* end confdefs.h. */
3880 main ()
3884 return 0;
3886 _ACEOF
3887 rm -f conftest.$ac_objext
3888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3889 (eval $ac_compile) 2>conftest.er1
3890 ac_status=$?
3891 grep -v '^ *+' conftest.er1 >conftest.err
3892 rm -f conftest.er1
3893 cat conftest.err >&5
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); } &&
3896 { ac_try='test -z "$ac_c_werror_flag"
3897 || test ! -s conftest.err'
3898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3899 (eval $ac_try) 2>&5
3900 ac_status=$?
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); }; } &&
3903 { ac_try='test -s conftest.$ac_objext'
3904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3905 (eval $ac_try) 2>&5
3906 ac_status=$?
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); }; }; then
3909 ac_cv_prog_cc_g=yes
3910 else
3911 echo "$as_me: failed program was:" >&5
3912 sed 's/^/| /' conftest.$ac_ext >&5
3914 ac_cv_prog_cc_g=no
3916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3918 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3919 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3920 if test "$ac_test_CFLAGS" = set; then
3921 CFLAGS=$ac_save_CFLAGS
3922 elif test $ac_cv_prog_cc_g = yes; then
3923 if test "$GCC" = yes; then
3924 CFLAGS="-g -O2"
3925 else
3926 CFLAGS="-g"
3928 else
3929 if test "$GCC" = yes; then
3930 CFLAGS="-O2"
3931 else
3932 CFLAGS=
3935 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3936 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3937 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3938 echo $ECHO_N "(cached) $ECHO_C" >&6
3939 else
3940 ac_cv_prog_cc_stdc=no
3941 ac_save_CC=$CC
3942 cat >conftest.$ac_ext <<_ACEOF
3943 /* confdefs.h. */
3944 _ACEOF
3945 cat confdefs.h >>conftest.$ac_ext
3946 cat >>conftest.$ac_ext <<_ACEOF
3947 /* end confdefs.h. */
3948 #include <stdarg.h>
3949 #include <stdio.h>
3950 #include <sys/types.h>
3951 #include <sys/stat.h>
3952 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3953 struct buf { int x; };
3954 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3955 static char *e (p, i)
3956 char **p;
3957 int i;
3959 return p[i];
3961 static char *f (char * (*g) (char **, int), char **p, ...)
3963 char *s;
3964 va_list v;
3965 va_start (v,p);
3966 s = g (p, va_arg (v,int));
3967 va_end (v);
3968 return s;
3971 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3972 function prototypes and stuff, but not '\xHH' hex character constants.
3973 These don't provoke an error unfortunately, instead are silently treated
3974 as 'x'. The following induces an error, until -std1 is added to get
3975 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3976 array size at least. It's necessary to write '\x00'==0 to get something
3977 that's true only with -std1. */
3978 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3980 int test (int i, double x);
3981 struct s1 {int (*f) (int a);};
3982 struct s2 {int (*f) (double a);};
3983 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3984 int argc;
3985 char **argv;
3987 main ()
3989 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3991 return 0;
3993 _ACEOF
3994 # Don't try gcc -ansi; that turns off useful extensions and
3995 # breaks some systems' header files.
3996 # AIX -qlanglvl=ansi
3997 # Ultrix and OSF/1 -std1
3998 # HP-UX 10.20 and later -Ae
3999 # HP-UX older versions -Aa -D_HPUX_SOURCE
4000 # SVR4 -Xc -D__EXTENSIONS__
4001 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4003 CC="$ac_save_CC $ac_arg"
4004 rm -f conftest.$ac_objext
4005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4006 (eval $ac_compile) 2>conftest.er1
4007 ac_status=$?
4008 grep -v '^ *+' conftest.er1 >conftest.err
4009 rm -f conftest.er1
4010 cat conftest.err >&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } &&
4013 { ac_try='test -z "$ac_c_werror_flag"
4014 || test ! -s conftest.err'
4015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4016 (eval $ac_try) 2>&5
4017 ac_status=$?
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); }; } &&
4020 { ac_try='test -s conftest.$ac_objext'
4021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4022 (eval $ac_try) 2>&5
4023 ac_status=$?
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); }; }; then
4026 ac_cv_prog_cc_stdc=$ac_arg
4027 break
4028 else
4029 echo "$as_me: failed program was:" >&5
4030 sed 's/^/| /' conftest.$ac_ext >&5
4033 rm -f conftest.err conftest.$ac_objext
4034 done
4035 rm -f conftest.$ac_ext conftest.$ac_objext
4036 CC=$ac_save_CC
4040 case "x$ac_cv_prog_cc_stdc" in
4041 x|xno)
4042 echo "$as_me:$LINENO: result: none needed" >&5
4043 echo "${ECHO_T}none needed" >&6 ;;
4045 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4046 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4047 CC="$CC $ac_cv_prog_cc_stdc" ;;
4048 esac
4050 # Some people use a C++ compiler to compile C. Since we use `exit',
4051 # in C++ we need to declare it. In case someone uses the same compiler
4052 # for both compiling C and C++ we need to have the C++ compiler decide
4053 # the declaration of exit, since it's the most demanding environment.
4054 cat >conftest.$ac_ext <<_ACEOF
4055 #ifndef __cplusplus
4056 choke me
4057 #endif
4058 _ACEOF
4059 rm -f conftest.$ac_objext
4060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4061 (eval $ac_compile) 2>conftest.er1
4062 ac_status=$?
4063 grep -v '^ *+' conftest.er1 >conftest.err
4064 rm -f conftest.er1
4065 cat conftest.err >&5
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); } &&
4068 { ac_try='test -z "$ac_c_werror_flag"
4069 || test ! -s conftest.err'
4070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071 (eval $ac_try) 2>&5
4072 ac_status=$?
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); }; } &&
4075 { ac_try='test -s conftest.$ac_objext'
4076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077 (eval $ac_try) 2>&5
4078 ac_status=$?
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); }; }; then
4081 for ac_declaration in \
4082 '' \
4083 'extern "C" void std::exit (int) throw (); using std::exit;' \
4084 'extern "C" void std::exit (int); using std::exit;' \
4085 'extern "C" void exit (int) throw ();' \
4086 'extern "C" void exit (int);' \
4087 'void exit (int);'
4089 cat >conftest.$ac_ext <<_ACEOF
4090 /* confdefs.h. */
4091 _ACEOF
4092 cat confdefs.h >>conftest.$ac_ext
4093 cat >>conftest.$ac_ext <<_ACEOF
4094 /* end confdefs.h. */
4095 $ac_declaration
4096 #include <stdlib.h>
4098 main ()
4100 exit (42);
4102 return 0;
4104 _ACEOF
4105 rm -f conftest.$ac_objext
4106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4107 (eval $ac_compile) 2>conftest.er1
4108 ac_status=$?
4109 grep -v '^ *+' conftest.er1 >conftest.err
4110 rm -f conftest.er1
4111 cat conftest.err >&5
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); } &&
4114 { ac_try='test -z "$ac_c_werror_flag"
4115 || test ! -s conftest.err'
4116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4117 (eval $ac_try) 2>&5
4118 ac_status=$?
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); }; } &&
4121 { ac_try='test -s conftest.$ac_objext'
4122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4123 (eval $ac_try) 2>&5
4124 ac_status=$?
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); }; }; then
4128 else
4129 echo "$as_me: failed program was:" >&5
4130 sed 's/^/| /' conftest.$ac_ext >&5
4132 continue
4134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4135 cat >conftest.$ac_ext <<_ACEOF
4136 /* confdefs.h. */
4137 _ACEOF
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h. */
4141 $ac_declaration
4143 main ()
4145 exit (42);
4147 return 0;
4149 _ACEOF
4150 rm -f conftest.$ac_objext
4151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4152 (eval $ac_compile) 2>conftest.er1
4153 ac_status=$?
4154 grep -v '^ *+' conftest.er1 >conftest.err
4155 rm -f conftest.er1
4156 cat conftest.err >&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } &&
4159 { ac_try='test -z "$ac_c_werror_flag"
4160 || test ! -s conftest.err'
4161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4162 (eval $ac_try) 2>&5
4163 ac_status=$?
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); }; } &&
4166 { ac_try='test -s conftest.$ac_objext'
4167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4168 (eval $ac_try) 2>&5
4169 ac_status=$?
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; }; then
4172 break
4173 else
4174 echo "$as_me: failed program was:" >&5
4175 sed 's/^/| /' conftest.$ac_ext >&5
4178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4179 done
4180 rm -f conftest*
4181 if test -n "$ac_declaration"; then
4182 echo '#ifdef __cplusplus' >>confdefs.h
4183 echo $ac_declaration >>confdefs.h
4184 echo '#endif' >>confdefs.h
4187 else
4188 echo "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.$ac_ext >&5
4192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4193 ac_ext=c
4194 ac_cpp='$CPP $CPPFLAGS'
4195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4200 cat >>confdefs.h <<\_ACEOF
4201 #define _GNU_SOURCE 1
4202 _ACEOF
4205 ac_ext=c
4206 ac_cpp='$CPP $CPPFLAGS'
4207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4210 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4211 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4212 # On Suns, sometimes $CPP names a directory.
4213 if test -n "$CPP" && test -d "$CPP"; then
4214 CPP=
4216 if test -z "$CPP"; then
4217 if test "${ac_cv_prog_CPP+set}" = set; then
4218 echo $ECHO_N "(cached) $ECHO_C" >&6
4219 else
4220 # Double quotes because CPP needs to be expanded
4221 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4223 ac_preproc_ok=false
4224 for ac_c_preproc_warn_flag in '' yes
4226 # Use a header file that comes with gcc, so configuring glibc
4227 # with a fresh cross-compiler works.
4228 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4229 # <limits.h> exists even on freestanding compilers.
4230 # On the NeXT, cc -E runs the code through the compiler's parser,
4231 # not just through cpp. "Syntax error" is here to catch this case.
4232 cat >conftest.$ac_ext <<_ACEOF
4233 /* confdefs.h. */
4234 _ACEOF
4235 cat confdefs.h >>conftest.$ac_ext
4236 cat >>conftest.$ac_ext <<_ACEOF
4237 /* end confdefs.h. */
4238 #ifdef __STDC__
4239 # include <limits.h>
4240 #else
4241 # include <assert.h>
4242 #endif
4243 Syntax error
4244 _ACEOF
4245 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4246 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4247 ac_status=$?
4248 grep -v '^ *+' conftest.er1 >conftest.err
4249 rm -f conftest.er1
4250 cat conftest.err >&5
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); } >/dev/null; then
4253 if test -s conftest.err; then
4254 ac_cpp_err=$ac_c_preproc_warn_flag
4255 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4256 else
4257 ac_cpp_err=
4259 else
4260 ac_cpp_err=yes
4262 if test -z "$ac_cpp_err"; then
4264 else
4265 echo "$as_me: failed program was:" >&5
4266 sed 's/^/| /' conftest.$ac_ext >&5
4268 # Broken: fails on valid input.
4269 continue
4271 rm -f conftest.err conftest.$ac_ext
4273 # OK, works on sane cases. Now check whether non-existent headers
4274 # can be detected and how.
4275 cat >conftest.$ac_ext <<_ACEOF
4276 /* confdefs.h. */
4277 _ACEOF
4278 cat confdefs.h >>conftest.$ac_ext
4279 cat >>conftest.$ac_ext <<_ACEOF
4280 /* end confdefs.h. */
4281 #include <ac_nonexistent.h>
4282 _ACEOF
4283 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4284 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4285 ac_status=$?
4286 grep -v '^ *+' conftest.er1 >conftest.err
4287 rm -f conftest.er1
4288 cat conftest.err >&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); } >/dev/null; then
4291 if test -s conftest.err; then
4292 ac_cpp_err=$ac_c_preproc_warn_flag
4293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4294 else
4295 ac_cpp_err=
4297 else
4298 ac_cpp_err=yes
4300 if test -z "$ac_cpp_err"; then
4301 # Broken: success on invalid input.
4302 continue
4303 else
4304 echo "$as_me: failed program was:" >&5
4305 sed 's/^/| /' conftest.$ac_ext >&5
4307 # Passes both tests.
4308 ac_preproc_ok=:
4309 break
4311 rm -f conftest.err conftest.$ac_ext
4313 done
4314 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4315 rm -f conftest.err conftest.$ac_ext
4316 if $ac_preproc_ok; then
4317 break
4320 done
4321 ac_cv_prog_CPP=$CPP
4324 CPP=$ac_cv_prog_CPP
4325 else
4326 ac_cv_prog_CPP=$CPP
4328 echo "$as_me:$LINENO: result: $CPP" >&5
4329 echo "${ECHO_T}$CPP" >&6
4330 ac_preproc_ok=false
4331 for ac_c_preproc_warn_flag in '' yes
4333 # Use a header file that comes with gcc, so configuring glibc
4334 # with a fresh cross-compiler works.
4335 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4336 # <limits.h> exists even on freestanding compilers.
4337 # On the NeXT, cc -E runs the code through the compiler's parser,
4338 # not just through cpp. "Syntax error" is here to catch this case.
4339 cat >conftest.$ac_ext <<_ACEOF
4340 /* confdefs.h. */
4341 _ACEOF
4342 cat confdefs.h >>conftest.$ac_ext
4343 cat >>conftest.$ac_ext <<_ACEOF
4344 /* end confdefs.h. */
4345 #ifdef __STDC__
4346 # include <limits.h>
4347 #else
4348 # include <assert.h>
4349 #endif
4350 Syntax error
4351 _ACEOF
4352 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4353 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4354 ac_status=$?
4355 grep -v '^ *+' conftest.er1 >conftest.err
4356 rm -f conftest.er1
4357 cat conftest.err >&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); } >/dev/null; then
4360 if test -s conftest.err; then
4361 ac_cpp_err=$ac_c_preproc_warn_flag
4362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4363 else
4364 ac_cpp_err=
4366 else
4367 ac_cpp_err=yes
4369 if test -z "$ac_cpp_err"; then
4371 else
4372 echo "$as_me: failed program was:" >&5
4373 sed 's/^/| /' conftest.$ac_ext >&5
4375 # Broken: fails on valid input.
4376 continue
4378 rm -f conftest.err conftest.$ac_ext
4380 # OK, works on sane cases. Now check whether non-existent headers
4381 # can be detected and how.
4382 cat >conftest.$ac_ext <<_ACEOF
4383 /* confdefs.h. */
4384 _ACEOF
4385 cat confdefs.h >>conftest.$ac_ext
4386 cat >>conftest.$ac_ext <<_ACEOF
4387 /* end confdefs.h. */
4388 #include <ac_nonexistent.h>
4389 _ACEOF
4390 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4391 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4392 ac_status=$?
4393 grep -v '^ *+' conftest.er1 >conftest.err
4394 rm -f conftest.er1
4395 cat conftest.err >&5
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); } >/dev/null; then
4398 if test -s conftest.err; then
4399 ac_cpp_err=$ac_c_preproc_warn_flag
4400 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4401 else
4402 ac_cpp_err=
4404 else
4405 ac_cpp_err=yes
4407 if test -z "$ac_cpp_err"; then
4408 # Broken: success on invalid input.
4409 continue
4410 else
4411 echo "$as_me: failed program was:" >&5
4412 sed 's/^/| /' conftest.$ac_ext >&5
4414 # Passes both tests.
4415 ac_preproc_ok=:
4416 break
4418 rm -f conftest.err conftest.$ac_ext
4420 done
4421 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4422 rm -f conftest.err conftest.$ac_ext
4423 if $ac_preproc_ok; then
4425 else
4426 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4427 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4428 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4429 See \`config.log' for more details." >&5
4430 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4431 See \`config.log' for more details." >&2;}
4432 { (exit 1); exit 1; }; }; }
4435 ac_ext=c
4436 ac_cpp='$CPP $CPPFLAGS'
4437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4442 echo "$as_me:$LINENO: checking for egrep" >&5
4443 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4444 if test "${ac_cv_prog_egrep+set}" = set; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4446 else
4447 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4448 then ac_cv_prog_egrep='grep -E'
4449 else ac_cv_prog_egrep='egrep'
4452 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4453 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4454 EGREP=$ac_cv_prog_egrep
4457 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4458 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4459 if test "${ac_cv_header_stdc+set}" = set; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4461 else
4462 cat >conftest.$ac_ext <<_ACEOF
4463 /* confdefs.h. */
4464 _ACEOF
4465 cat confdefs.h >>conftest.$ac_ext
4466 cat >>conftest.$ac_ext <<_ACEOF
4467 /* end confdefs.h. */
4468 #include <stdlib.h>
4469 #include <stdarg.h>
4470 #include <string.h>
4471 #include <float.h>
4474 main ()
4478 return 0;
4480 _ACEOF
4481 rm -f conftest.$ac_objext
4482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4483 (eval $ac_compile) 2>conftest.er1
4484 ac_status=$?
4485 grep -v '^ *+' conftest.er1 >conftest.err
4486 rm -f conftest.er1
4487 cat conftest.err >&5
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); } &&
4490 { ac_try='test -z "$ac_c_werror_flag"
4491 || test ! -s conftest.err'
4492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4493 (eval $ac_try) 2>&5
4494 ac_status=$?
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); }; } &&
4497 { ac_try='test -s conftest.$ac_objext'
4498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4499 (eval $ac_try) 2>&5
4500 ac_status=$?
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; }; then
4503 ac_cv_header_stdc=yes
4504 else
4505 echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4508 ac_cv_header_stdc=no
4510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4512 if test $ac_cv_header_stdc = yes; then
4513 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4514 cat >conftest.$ac_ext <<_ACEOF
4515 /* confdefs.h. */
4516 _ACEOF
4517 cat confdefs.h >>conftest.$ac_ext
4518 cat >>conftest.$ac_ext <<_ACEOF
4519 /* end confdefs.h. */
4520 #include <string.h>
4522 _ACEOF
4523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4524 $EGREP "memchr" >/dev/null 2>&1; then
4526 else
4527 ac_cv_header_stdc=no
4529 rm -f conftest*
4533 if test $ac_cv_header_stdc = yes; then
4534 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4535 cat >conftest.$ac_ext <<_ACEOF
4536 /* confdefs.h. */
4537 _ACEOF
4538 cat confdefs.h >>conftest.$ac_ext
4539 cat >>conftest.$ac_ext <<_ACEOF
4540 /* end confdefs.h. */
4541 #include <stdlib.h>
4543 _ACEOF
4544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4545 $EGREP "free" >/dev/null 2>&1; then
4547 else
4548 ac_cv_header_stdc=no
4550 rm -f conftest*
4554 if test $ac_cv_header_stdc = yes; then
4555 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4556 if test "$cross_compiling" = yes; then
4558 else
4559 cat >conftest.$ac_ext <<_ACEOF
4560 /* confdefs.h. */
4561 _ACEOF
4562 cat confdefs.h >>conftest.$ac_ext
4563 cat >>conftest.$ac_ext <<_ACEOF
4564 /* end confdefs.h. */
4565 #include <ctype.h>
4566 #if ((' ' & 0x0FF) == 0x020)
4567 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4568 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4569 #else
4570 # define ISLOWER(c) \
4571 (('a' <= (c) && (c) <= 'i') \
4572 || ('j' <= (c) && (c) <= 'r') \
4573 || ('s' <= (c) && (c) <= 'z'))
4574 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4575 #endif
4577 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4579 main ()
4581 int i;
4582 for (i = 0; i < 256; i++)
4583 if (XOR (islower (i), ISLOWER (i))
4584 || toupper (i) != TOUPPER (i))
4585 exit(2);
4586 exit (0);
4588 _ACEOF
4589 rm -f conftest$ac_exeext
4590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4591 (eval $ac_link) 2>&5
4592 ac_status=$?
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4596 (eval $ac_try) 2>&5
4597 ac_status=$?
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); }; }; then
4601 else
4602 echo "$as_me: program exited with status $ac_status" >&5
4603 echo "$as_me: failed program was:" >&5
4604 sed 's/^/| /' conftest.$ac_ext >&5
4606 ( exit $ac_status )
4607 ac_cv_header_stdc=no
4609 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4613 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4614 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4615 if test $ac_cv_header_stdc = yes; then
4617 cat >>confdefs.h <<\_ACEOF
4618 #define STDC_HEADERS 1
4619 _ACEOF
4623 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4633 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4634 inttypes.h stdint.h unistd.h
4636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4637 echo "$as_me:$LINENO: checking for $ac_header" >&5
4638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4640 echo $ECHO_N "(cached) $ECHO_C" >&6
4641 else
4642 cat >conftest.$ac_ext <<_ACEOF
4643 /* confdefs.h. */
4644 _ACEOF
4645 cat confdefs.h >>conftest.$ac_ext
4646 cat >>conftest.$ac_ext <<_ACEOF
4647 /* end confdefs.h. */
4648 $ac_includes_default
4650 #include <$ac_header>
4651 _ACEOF
4652 rm -f conftest.$ac_objext
4653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4654 (eval $ac_compile) 2>conftest.er1
4655 ac_status=$?
4656 grep -v '^ *+' conftest.er1 >conftest.err
4657 rm -f conftest.er1
4658 cat conftest.err >&5
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); } &&
4661 { ac_try='test -z "$ac_c_werror_flag"
4662 || test ! -s conftest.err'
4663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4664 (eval $ac_try) 2>&5
4665 ac_status=$?
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); }; } &&
4668 { ac_try='test -s conftest.$ac_objext'
4669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4670 (eval $ac_try) 2>&5
4671 ac_status=$?
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); }; }; then
4674 eval "$as_ac_Header=yes"
4675 else
4676 echo "$as_me: failed program was:" >&5
4677 sed 's/^/| /' conftest.$ac_ext >&5
4679 eval "$as_ac_Header=no"
4681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4686 cat >>confdefs.h <<_ACEOF
4687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4688 _ACEOF
4692 done
4696 if test "${ac_cv_header_minix_config_h+set}" = set; then
4697 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4698 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4699 if test "${ac_cv_header_minix_config_h+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4702 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4703 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4704 else
4705 # Is the header compilable?
4706 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4707 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4708 cat >conftest.$ac_ext <<_ACEOF
4709 /* confdefs.h. */
4710 _ACEOF
4711 cat confdefs.h >>conftest.$ac_ext
4712 cat >>conftest.$ac_ext <<_ACEOF
4713 /* end confdefs.h. */
4714 $ac_includes_default
4715 #include <minix/config.h>
4716 _ACEOF
4717 rm -f conftest.$ac_objext
4718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4719 (eval $ac_compile) 2>conftest.er1
4720 ac_status=$?
4721 grep -v '^ *+' conftest.er1 >conftest.err
4722 rm -f conftest.er1
4723 cat conftest.err >&5
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); } &&
4726 { ac_try='test -z "$ac_c_werror_flag"
4727 || test ! -s conftest.err'
4728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729 (eval $ac_try) 2>&5
4730 ac_status=$?
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); }; } &&
4733 { ac_try='test -s conftest.$ac_objext'
4734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735 (eval $ac_try) 2>&5
4736 ac_status=$?
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); }; }; then
4739 ac_header_compiler=yes
4740 else
4741 echo "$as_me: failed program was:" >&5
4742 sed 's/^/| /' conftest.$ac_ext >&5
4744 ac_header_compiler=no
4746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4747 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4748 echo "${ECHO_T}$ac_header_compiler" >&6
4750 # Is the header present?
4751 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4752 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4753 cat >conftest.$ac_ext <<_ACEOF
4754 /* confdefs.h. */
4755 _ACEOF
4756 cat confdefs.h >>conftest.$ac_ext
4757 cat >>conftest.$ac_ext <<_ACEOF
4758 /* end confdefs.h. */
4759 #include <minix/config.h>
4760 _ACEOF
4761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4763 ac_status=$?
4764 grep -v '^ *+' conftest.er1 >conftest.err
4765 rm -f conftest.er1
4766 cat conftest.err >&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); } >/dev/null; then
4769 if test -s conftest.err; then
4770 ac_cpp_err=$ac_c_preproc_warn_flag
4771 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4772 else
4773 ac_cpp_err=
4775 else
4776 ac_cpp_err=yes
4778 if test -z "$ac_cpp_err"; then
4779 ac_header_preproc=yes
4780 else
4781 echo "$as_me: failed program was:" >&5
4782 sed 's/^/| /' conftest.$ac_ext >&5
4784 ac_header_preproc=no
4786 rm -f conftest.err conftest.$ac_ext
4787 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4788 echo "${ECHO_T}$ac_header_preproc" >&6
4790 # So? What about this header?
4791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4792 yes:no: )
4793 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4794 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4795 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4796 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4797 ac_header_preproc=yes
4799 no:yes:* )
4800 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4801 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4802 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4803 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4804 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4805 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4806 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4807 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4808 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4809 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4810 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4811 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4813 cat <<\_ASBOX
4814 ## ------------------------------------------ ##
4815 ## Report this to the AC_PACKAGE_NAME lists. ##
4816 ## ------------------------------------------ ##
4817 _ASBOX
4819 sed "s/^/$as_me: WARNING: /" >&2
4821 esac
4822 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4823 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4824 if test "${ac_cv_header_minix_config_h+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4826 else
4827 ac_cv_header_minix_config_h=$ac_header_preproc
4829 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4830 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4833 if test $ac_cv_header_minix_config_h = yes; then
4834 MINIX=yes
4835 else
4836 MINIX=
4840 if test "$MINIX" = yes; then
4842 cat >>confdefs.h <<\_ACEOF
4843 #define _POSIX_SOURCE 1
4844 _ACEOF
4847 cat >>confdefs.h <<\_ACEOF
4848 #define _POSIX_1_SOURCE 2
4849 _ACEOF
4852 cat >>confdefs.h <<\_ACEOF
4853 #define _MINIX 1
4854 _ACEOF
4860 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4861 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4862 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4864 else
4865 cat >conftest.$ac_ext <<_ACEOF
4866 /* confdefs.h. */
4867 _ACEOF
4868 cat confdefs.h >>conftest.$ac_ext
4869 cat >>conftest.$ac_ext <<_ACEOF
4870 /* end confdefs.h. */
4872 # define __EXTENSIONS__ 1
4873 $ac_includes_default
4875 main ()
4879 return 0;
4881 _ACEOF
4882 rm -f conftest.$ac_objext
4883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4884 (eval $ac_compile) 2>conftest.er1
4885 ac_status=$?
4886 grep -v '^ *+' conftest.er1 >conftest.err
4887 rm -f conftest.er1
4888 cat conftest.err >&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); } &&
4891 { ac_try='test -z "$ac_c_werror_flag"
4892 || test ! -s conftest.err'
4893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894 (eval $ac_try) 2>&5
4895 ac_status=$?
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); }; } &&
4898 { ac_try='test -s conftest.$ac_objext'
4899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900 (eval $ac_try) 2>&5
4901 ac_status=$?
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; }; then
4904 ac_cv_safe_to_define___extensions__=yes
4905 else
4906 echo "$as_me: failed program was:" >&5
4907 sed 's/^/| /' conftest.$ac_ext >&5
4909 ac_cv_safe_to_define___extensions__=no
4911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4913 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4914 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4915 test $ac_cv_safe_to_define___extensions__ = yes &&
4916 cat >>confdefs.h <<\_ACEOF
4917 #define __EXTENSIONS__ 1
4918 _ACEOF
4920 cat >>confdefs.h <<\_ACEOF
4921 #define _ALL_SOURCE 1
4922 _ACEOF
4924 cat >>confdefs.h <<\_ACEOF
4925 #define _GNU_SOURCE 1
4926 _ACEOF
4928 cat >>confdefs.h <<\_ACEOF
4929 #define _POSIX_PTHREAD_SEMANTICS 1
4930 _ACEOF
4932 cat >>confdefs.h <<\_ACEOF
4933 #define _TANDEM_SOURCE 1
4934 _ACEOF
4937 # Check whether --enable-largefile or --disable-largefile was given.
4938 if test "${enable_largefile+set}" = set; then
4939 enableval="$enable_largefile"
4942 if test "$enable_largefile" != no; then
4944 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4945 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4946 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4947 echo $ECHO_N "(cached) $ECHO_C" >&6
4948 else
4949 ac_cv_sys_largefile_CC=no
4950 if test "$GCC" != yes; then
4951 ac_save_CC=$CC
4952 while :; do
4953 # IRIX 6.2 and later do not support large files by default,
4954 # so use the C compiler's -n32 option if that helps.
4955 cat >conftest.$ac_ext <<_ACEOF
4956 /* confdefs.h. */
4957 _ACEOF
4958 cat confdefs.h >>conftest.$ac_ext
4959 cat >>conftest.$ac_ext <<_ACEOF
4960 /* end confdefs.h. */
4961 #include <sys/types.h>
4962 /* Check that off_t can represent 2**63 - 1 correctly.
4963 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4964 since some C++ compilers masquerading as C compilers
4965 incorrectly reject 9223372036854775807. */
4966 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4967 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4968 && LARGE_OFF_T % 2147483647 == 1)
4969 ? 1 : -1];
4971 main ()
4975 return 0;
4977 _ACEOF
4978 rm -f conftest.$ac_objext
4979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4980 (eval $ac_compile) 2>conftest.er1
4981 ac_status=$?
4982 grep -v '^ *+' conftest.er1 >conftest.err
4983 rm -f conftest.er1
4984 cat conftest.err >&5
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); } &&
4987 { ac_try='test -z "$ac_c_werror_flag"
4988 || test ! -s conftest.err'
4989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4990 (eval $ac_try) 2>&5
4991 ac_status=$?
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); }; } &&
4994 { ac_try='test -s conftest.$ac_objext'
4995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4996 (eval $ac_try) 2>&5
4997 ac_status=$?
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); }; }; then
5000 break
5001 else
5002 echo "$as_me: failed program was:" >&5
5003 sed 's/^/| /' conftest.$ac_ext >&5
5006 rm -f conftest.err conftest.$ac_objext
5007 CC="$CC -n32"
5008 rm -f conftest.$ac_objext
5009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5010 (eval $ac_compile) 2>conftest.er1
5011 ac_status=$?
5012 grep -v '^ *+' conftest.er1 >conftest.err
5013 rm -f conftest.er1
5014 cat conftest.err >&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); } &&
5017 { ac_try='test -z "$ac_c_werror_flag"
5018 || test ! -s conftest.err'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020 (eval $ac_try) 2>&5
5021 ac_status=$?
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; } &&
5024 { ac_try='test -s conftest.$ac_objext'
5025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026 (eval $ac_try) 2>&5
5027 ac_status=$?
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); }; }; then
5030 ac_cv_sys_largefile_CC=' -n32'; break
5031 else
5032 echo "$as_me: failed program was:" >&5
5033 sed 's/^/| /' conftest.$ac_ext >&5
5036 rm -f conftest.err conftest.$ac_objext
5037 break
5038 done
5039 CC=$ac_save_CC
5040 rm -f conftest.$ac_ext
5043 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5044 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
5045 if test "$ac_cv_sys_largefile_CC" != no; then
5046 CC=$CC$ac_cv_sys_largefile_CC
5049 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5050 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
5051 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5052 echo $ECHO_N "(cached) $ECHO_C" >&6
5053 else
5054 while :; do
5055 ac_cv_sys_file_offset_bits=no
5056 cat >conftest.$ac_ext <<_ACEOF
5057 /* confdefs.h. */
5058 _ACEOF
5059 cat confdefs.h >>conftest.$ac_ext
5060 cat >>conftest.$ac_ext <<_ACEOF
5061 /* end confdefs.h. */
5062 #include <sys/types.h>
5063 /* Check that off_t can represent 2**63 - 1 correctly.
5064 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5065 since some C++ compilers masquerading as C compilers
5066 incorrectly reject 9223372036854775807. */
5067 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5068 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5069 && LARGE_OFF_T % 2147483647 == 1)
5070 ? 1 : -1];
5072 main ()
5076 return 0;
5078 _ACEOF
5079 rm -f conftest.$ac_objext
5080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5081 (eval $ac_compile) 2>conftest.er1
5082 ac_status=$?
5083 grep -v '^ *+' conftest.er1 >conftest.err
5084 rm -f conftest.er1
5085 cat conftest.err >&5
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); } &&
5088 { ac_try='test -z "$ac_c_werror_flag"
5089 || test ! -s conftest.err'
5090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5091 (eval $ac_try) 2>&5
5092 ac_status=$?
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); }; } &&
5095 { ac_try='test -s conftest.$ac_objext'
5096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5097 (eval $ac_try) 2>&5
5098 ac_status=$?
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); }; }; then
5101 break
5102 else
5103 echo "$as_me: failed program was:" >&5
5104 sed 's/^/| /' conftest.$ac_ext >&5
5107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5108 cat >conftest.$ac_ext <<_ACEOF
5109 /* confdefs.h. */
5110 _ACEOF
5111 cat confdefs.h >>conftest.$ac_ext
5112 cat >>conftest.$ac_ext <<_ACEOF
5113 /* end confdefs.h. */
5114 #define _FILE_OFFSET_BITS 64
5115 #include <sys/types.h>
5116 /* Check that off_t can represent 2**63 - 1 correctly.
5117 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5118 since some C++ compilers masquerading as C compilers
5119 incorrectly reject 9223372036854775807. */
5120 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5121 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5122 && LARGE_OFF_T % 2147483647 == 1)
5123 ? 1 : -1];
5125 main ()
5129 return 0;
5131 _ACEOF
5132 rm -f conftest.$ac_objext
5133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5134 (eval $ac_compile) 2>conftest.er1
5135 ac_status=$?
5136 grep -v '^ *+' conftest.er1 >conftest.err
5137 rm -f conftest.er1
5138 cat conftest.err >&5
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); } &&
5141 { ac_try='test -z "$ac_c_werror_flag"
5142 || test ! -s conftest.err'
5143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5144 (eval $ac_try) 2>&5
5145 ac_status=$?
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); }; } &&
5148 { ac_try='test -s conftest.$ac_objext'
5149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5150 (eval $ac_try) 2>&5
5151 ac_status=$?
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); }; }; then
5154 ac_cv_sys_file_offset_bits=64; break
5155 else
5156 echo "$as_me: failed program was:" >&5
5157 sed 's/^/| /' conftest.$ac_ext >&5
5160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5161 break
5162 done
5164 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5165 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5166 if test "$ac_cv_sys_file_offset_bits" != no; then
5168 cat >>confdefs.h <<_ACEOF
5169 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5170 _ACEOF
5173 rm -f conftest*
5174 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5175 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5176 if test "${ac_cv_sys_large_files+set}" = set; then
5177 echo $ECHO_N "(cached) $ECHO_C" >&6
5178 else
5179 while :; do
5180 ac_cv_sys_large_files=no
5181 cat >conftest.$ac_ext <<_ACEOF
5182 /* confdefs.h. */
5183 _ACEOF
5184 cat confdefs.h >>conftest.$ac_ext
5185 cat >>conftest.$ac_ext <<_ACEOF
5186 /* end confdefs.h. */
5187 #include <sys/types.h>
5188 /* Check that off_t can represent 2**63 - 1 correctly.
5189 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5190 since some C++ compilers masquerading as C compilers
5191 incorrectly reject 9223372036854775807. */
5192 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5193 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5194 && LARGE_OFF_T % 2147483647 == 1)
5195 ? 1 : -1];
5197 main ()
5201 return 0;
5203 _ACEOF
5204 rm -f conftest.$ac_objext
5205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5206 (eval $ac_compile) 2>conftest.er1
5207 ac_status=$?
5208 grep -v '^ *+' conftest.er1 >conftest.err
5209 rm -f conftest.er1
5210 cat conftest.err >&5
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); } &&
5213 { ac_try='test -z "$ac_c_werror_flag"
5214 || test ! -s conftest.err'
5215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216 (eval $ac_try) 2>&5
5217 ac_status=$?
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); }; } &&
5220 { ac_try='test -s conftest.$ac_objext'
5221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222 (eval $ac_try) 2>&5
5223 ac_status=$?
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); }; }; then
5226 break
5227 else
5228 echo "$as_me: failed program was:" >&5
5229 sed 's/^/| /' conftest.$ac_ext >&5
5232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5233 cat >conftest.$ac_ext <<_ACEOF
5234 /* confdefs.h. */
5235 _ACEOF
5236 cat confdefs.h >>conftest.$ac_ext
5237 cat >>conftest.$ac_ext <<_ACEOF
5238 /* end confdefs.h. */
5239 #define _LARGE_FILES 1
5240 #include <sys/types.h>
5241 /* Check that off_t can represent 2**63 - 1 correctly.
5242 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5243 since some C++ compilers masquerading as C compilers
5244 incorrectly reject 9223372036854775807. */
5245 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5246 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5247 && LARGE_OFF_T % 2147483647 == 1)
5248 ? 1 : -1];
5250 main ()
5254 return 0;
5256 _ACEOF
5257 rm -f conftest.$ac_objext
5258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5259 (eval $ac_compile) 2>conftest.er1
5260 ac_status=$?
5261 grep -v '^ *+' conftest.er1 >conftest.err
5262 rm -f conftest.er1
5263 cat conftest.err >&5
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); } &&
5266 { ac_try='test -z "$ac_c_werror_flag"
5267 || test ! -s conftest.err'
5268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5269 (eval $ac_try) 2>&5
5270 ac_status=$?
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); }; } &&
5273 { ac_try='test -s conftest.$ac_objext'
5274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5275 (eval $ac_try) 2>&5
5276 ac_status=$?
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); }; }; then
5279 ac_cv_sys_large_files=1; break
5280 else
5281 echo "$as_me: failed program was:" >&5
5282 sed 's/^/| /' conftest.$ac_ext >&5
5285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5286 break
5287 done
5289 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5290 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5291 if test "$ac_cv_sys_large_files" != no; then
5293 cat >>confdefs.h <<_ACEOF
5294 #define _LARGE_FILES $ac_cv_sys_large_files
5295 _ACEOF
5298 rm -f conftest*
5302 case `pwd` in
5303 *\ * | *\ *)
5304 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5305 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5306 esac
5310 macro_version='2.2.6'
5311 macro_revision='1.3012'
5325 ltmain="$ac_aux_dir/ltmain.sh"
5327 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5328 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5329 if test "${lt_cv_path_SED+set}" = set; then
5330 echo $ECHO_N "(cached) $ECHO_C" >&6
5331 else
5332 # Loop through the user's path and test for sed and gsed.
5333 # Then use that list of sed's as ones to test for truncation.
5334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335 for as_dir in $PATH
5337 IFS=$as_save_IFS
5338 test -z "$as_dir" && as_dir=.
5339 for lt_ac_prog in sed gsed; do
5340 for ac_exec_ext in '' $ac_executable_extensions; do
5341 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5342 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5344 done
5345 done
5346 done
5347 IFS=$as_save_IFS
5348 lt_ac_max=0
5349 lt_ac_count=0
5350 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5351 # along with /bin/sed that truncates output.
5352 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5353 test ! -f $lt_ac_sed && continue
5354 cat /dev/null > conftest.in
5355 lt_ac_count=0
5356 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5357 # Check for GNU sed and select it if it is found.
5358 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5359 lt_cv_path_SED=$lt_ac_sed
5360 break
5362 while true; do
5363 cat conftest.in conftest.in >conftest.tmp
5364 mv conftest.tmp conftest.in
5365 cp conftest.in conftest.nl
5366 echo >>conftest.nl
5367 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5368 cmp -s conftest.out conftest.nl || break
5369 # 10000 chars as input seems more than enough
5370 test $lt_ac_count -gt 10 && break
5371 lt_ac_count=`expr $lt_ac_count + 1`
5372 if test $lt_ac_count -gt $lt_ac_max; then
5373 lt_ac_max=$lt_ac_count
5374 lt_cv_path_SED=$lt_ac_sed
5376 done
5377 done
5381 SED=$lt_cv_path_SED
5383 echo "$as_me:$LINENO: result: $SED" >&5
5384 echo "${ECHO_T}$SED" >&6
5386 test -z "$SED" && SED=sed
5387 Xsed="$SED -e 1s/^X//"
5399 echo "$as_me:$LINENO: checking for fgrep" >&5
5400 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5401 if test "${ac_cv_prog_fgrep+set}" = set; then
5402 echo $ECHO_N "(cached) $ECHO_C" >&6
5403 else
5404 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5405 then ac_cv_prog_fgrep='grep -F'
5406 else ac_cv_prog_fgrep='fgrep'
5409 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5410 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5411 FGREP=$ac_cv_prog_fgrep
5414 test -z "$GREP" && GREP=grep
5434 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5435 if test "${with_gnu_ld+set}" = set; then
5436 withval="$with_gnu_ld"
5437 test "$withval" = no || with_gnu_ld=yes
5438 else
5439 with_gnu_ld=no
5441 ac_prog=ld
5442 if test "$GCC" = yes; then
5443 # Check if gcc -print-prog-name=ld gives a path.
5444 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5445 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5446 case $host in
5447 *-*-mingw*)
5448 # gcc leaves a trailing carriage return which upsets mingw
5449 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5451 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5452 esac
5453 case $ac_prog in
5454 # Accept absolute paths.
5455 [\\/]* | ?:[\\/]*)
5456 re_direlt='/[^/][^/]*/\.\./'
5457 # Canonicalize the pathname of ld
5458 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5459 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5460 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5461 done
5462 test -z "$LD" && LD="$ac_prog"
5465 # If it fails, then pretend we aren't using GCC.
5466 ac_prog=ld
5469 # If it is relative, then search for the first ld in PATH.
5470 with_gnu_ld=unknown
5472 esac
5473 elif test "$with_gnu_ld" = yes; then
5474 echo "$as_me:$LINENO: checking for GNU ld" >&5
5475 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5476 else
5477 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5478 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5480 if test "${lt_cv_path_LD+set}" = set; then
5481 echo $ECHO_N "(cached) $ECHO_C" >&6
5482 else
5483 if test -z "$LD"; then
5484 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5485 for ac_dir in $PATH; do
5486 IFS="$lt_save_ifs"
5487 test -z "$ac_dir" && ac_dir=.
5488 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5489 lt_cv_path_LD="$ac_dir/$ac_prog"
5490 # Check to see if the program is GNU ld. I'd rather use --version,
5491 # but apparently some variants of GNU ld only accept -v.
5492 # Break only if it was the GNU/non-GNU ld that we prefer.
5493 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5494 *GNU* | *'with BFD'*)
5495 test "$with_gnu_ld" != no && break
5498 test "$with_gnu_ld" != yes && break
5500 esac
5502 done
5503 IFS="$lt_save_ifs"
5504 else
5505 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5509 LD="$lt_cv_path_LD"
5510 if test -n "$LD"; then
5511 echo "$as_me:$LINENO: result: $LD" >&5
5512 echo "${ECHO_T}$LD" >&6
5513 else
5514 echo "$as_me:$LINENO: result: no" >&5
5515 echo "${ECHO_T}no" >&6
5517 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5518 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5519 { (exit 1); exit 1; }; }
5520 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5521 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5522 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5523 echo $ECHO_N "(cached) $ECHO_C" >&6
5524 else
5525 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5526 case `$LD -v 2>&1 </dev/null` in
5527 *GNU* | *'with BFD'*)
5528 lt_cv_prog_gnu_ld=yes
5531 lt_cv_prog_gnu_ld=no
5533 esac
5535 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5536 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5537 with_gnu_ld=$lt_cv_prog_gnu_ld
5547 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5548 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5549 if test "${lt_cv_path_NM+set}" = set; then
5550 echo $ECHO_N "(cached) $ECHO_C" >&6
5551 else
5552 if test -n "$NM"; then
5553 # Let the user override the test.
5554 lt_cv_path_NM="$NM"
5555 else
5556 lt_nm_to_check="${ac_tool_prefix}nm"
5557 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5558 lt_nm_to_check="$lt_nm_to_check nm"
5560 for lt_tmp_nm in $lt_nm_to_check; do
5561 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5562 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5563 IFS="$lt_save_ifs"
5564 test -z "$ac_dir" && ac_dir=.
5565 tmp_nm="$ac_dir/$lt_tmp_nm"
5566 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5567 # Check to see if the nm accepts a BSD-compat flag.
5568 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5569 # nm: unknown option "B" ignored
5570 # Tru64's nm complains that /dev/null is an invalid object file
5571 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5572 */dev/null* | *'Invalid file or object type'*)
5573 lt_cv_path_NM="$tmp_nm -B"
5574 break
5577 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5578 */dev/null*)
5579 lt_cv_path_NM="$tmp_nm -p"
5580 break
5583 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5584 continue # so that we can try to find one that supports BSD flags
5586 esac
5588 esac
5590 done
5591 IFS="$lt_save_ifs"
5592 done
5593 : ${lt_cv_path_NM=no}
5596 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5597 echo "${ECHO_T}$lt_cv_path_NM" >&6
5598 if test "$lt_cv_path_NM" != "no"; then
5599 NM="$lt_cv_path_NM"
5600 else
5601 # Didn't find any BSD compatible name lister, look for dumpbin.
5602 if test -n "$ac_tool_prefix"; then
5603 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5606 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5607 echo "$as_me:$LINENO: checking for $ac_word" >&5
5608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5609 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
5611 else
5612 if test -n "$DUMPBIN"; then
5613 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5614 else
5615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616 for as_dir in $PATH
5618 IFS=$as_save_IFS
5619 test -z "$as_dir" && as_dir=.
5620 for ac_exec_ext in '' $ac_executable_extensions; do
5621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5622 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5624 break 2
5626 done
5627 done
5631 DUMPBIN=$ac_cv_prog_DUMPBIN
5632 if test -n "$DUMPBIN"; then
5633 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5634 echo "${ECHO_T}$DUMPBIN" >&6
5635 else
5636 echo "$as_me:$LINENO: result: no" >&5
5637 echo "${ECHO_T}no" >&6
5640 test -n "$DUMPBIN" && break
5641 done
5643 if test -z "$DUMPBIN"; then
5644 ac_ct_DUMPBIN=$DUMPBIN
5645 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5647 # Extract the first word of "$ac_prog", so it can be a program name with args.
5648 set dummy $ac_prog; ac_word=$2
5649 echo "$as_me:$LINENO: checking for $ac_word" >&5
5650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5651 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
5653 else
5654 if test -n "$ac_ct_DUMPBIN"; then
5655 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5656 else
5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658 for as_dir in $PATH
5660 IFS=$as_save_IFS
5661 test -z "$as_dir" && as_dir=.
5662 for ac_exec_ext in '' $ac_executable_extensions; do
5663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5664 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5666 break 2
5668 done
5669 done
5673 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5674 if test -n "$ac_ct_DUMPBIN"; then
5675 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5676 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5677 else
5678 echo "$as_me:$LINENO: result: no" >&5
5679 echo "${ECHO_T}no" >&6
5682 test -n "$ac_ct_DUMPBIN" && break
5683 done
5684 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5686 DUMPBIN=$ac_ct_DUMPBIN
5690 if test "$DUMPBIN" != ":"; then
5691 NM="$DUMPBIN"
5694 test -z "$NM" && NM=nm
5701 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5702 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5703 if test "${lt_cv_nm_interface+set}" = set; then
5704 echo $ECHO_N "(cached) $ECHO_C" >&6
5705 else
5706 lt_cv_nm_interface="BSD nm"
5707 echo "int some_variable = 0;" > conftest.$ac_ext
5708 (eval echo "\"\$as_me:5708: $ac_compile\"" >&5)
5709 (eval "$ac_compile" 2>conftest.err)
5710 cat conftest.err >&5
5711 (eval echo "\"\$as_me:5711: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5712 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5713 cat conftest.err >&5
5714 (eval echo "\"\$as_me:5714: output\"" >&5)
5715 cat conftest.out >&5
5716 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5717 lt_cv_nm_interface="MS dumpbin"
5719 rm -f conftest*
5721 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5722 echo "${ECHO_T}$lt_cv_nm_interface" >&6
5724 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5725 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5726 LN_S=$as_ln_s
5727 if test "$LN_S" = "ln -s"; then
5728 echo "$as_me:$LINENO: result: yes" >&5
5729 echo "${ECHO_T}yes" >&6
5730 else
5731 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5732 echo "${ECHO_T}no, using $LN_S" >&6
5735 # find the maximum length of command line arguments
5736 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5737 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5738 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5739 echo $ECHO_N "(cached) $ECHO_C" >&6
5740 else
5742 teststring="ABCD"
5744 case $build_os in
5745 msdosdjgpp*)
5746 # On DJGPP, this test can blow up pretty badly due to problems in libc
5747 # (any single argument exceeding 2000 bytes causes a buffer overrun
5748 # during glob expansion). Even if it were fixed, the result of this
5749 # check would be larger than it should be.
5750 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5753 gnu*)
5754 # Under GNU Hurd, this test is not required because there is
5755 # no limit to the length of command line arguments.
5756 # Libtool will interpret -1 as no limit whatsoever
5757 lt_cv_sys_max_cmd_len=-1;
5760 cygwin* | mingw* | cegcc*)
5761 # On Win9x/ME, this test blows up -- it succeeds, but takes
5762 # about 5 minutes as the teststring grows exponentially.
5763 # Worse, since 9x/ME are not pre-emptively multitasking,
5764 # you end up with a "frozen" computer, even though with patience
5765 # the test eventually succeeds (with a max line length of 256k).
5766 # Instead, let's just punt: use the minimum linelength reported by
5767 # all of the supported platforms: 8192 (on NT/2K/XP).
5768 lt_cv_sys_max_cmd_len=8192;
5771 amigaos*)
5772 # On AmigaOS with pdksh, this test takes hours, literally.
5773 # So we just punt and use a minimum line length of 8192.
5774 lt_cv_sys_max_cmd_len=8192;
5777 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5778 # This has been around since 386BSD, at least. Likely further.
5779 if test -x /sbin/sysctl; then
5780 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5781 elif test -x /usr/sbin/sysctl; then
5782 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5783 else
5784 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5786 # And add a safety zone
5787 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5788 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5791 interix*)
5792 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5793 lt_cv_sys_max_cmd_len=196608
5796 osf*)
5797 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5798 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5799 # nice to cause kernel panics so lets avoid the loop below.
5800 # First set a reasonable default.
5801 lt_cv_sys_max_cmd_len=16384
5803 if test -x /sbin/sysconfig; then
5804 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5805 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5806 esac
5809 sco3.2v5*)
5810 lt_cv_sys_max_cmd_len=102400
5812 sysv5* | sco5v6* | sysv4.2uw2*)
5813 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5814 if test -n "$kargmax"; then
5815 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5816 else
5817 lt_cv_sys_max_cmd_len=32768
5821 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5822 if test -n "$lt_cv_sys_max_cmd_len"; then
5823 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5824 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5825 else
5826 # Make teststring a little bigger before we do anything with it.
5827 # a 1K string should be a reasonable start.
5828 for i in 1 2 3 4 5 6 7 8 ; do
5829 teststring=$teststring$teststring
5830 done
5831 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5832 # If test is not a shell built-in, we'll probably end up computing a
5833 # maximum length that is only half of the actual maximum length, but
5834 # we can't tell.
5835 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5836 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5837 test $i != 17 # 1/2 MB should be enough
5839 i=`expr $i + 1`
5840 teststring=$teststring$teststring
5841 done
5842 # Only check the string length outside the loop.
5843 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5844 teststring=
5845 # Add a significant safety factor because C++ compilers can tack on
5846 # massive amounts of additional arguments before passing them to the
5847 # linker. It appears as though 1/2 is a usable value.
5848 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5851 esac
5855 if test -n $lt_cv_sys_max_cmd_len ; then
5856 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5857 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5858 else
5859 echo "$as_me:$LINENO: result: none" >&5
5860 echo "${ECHO_T}none" >&6
5862 max_cmd_len=$lt_cv_sys_max_cmd_len
5869 : ${CP="cp -f"}
5870 : ${MV="mv -f"}
5871 : ${RM="rm -f"}
5873 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5874 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5875 # Try some XSI features
5876 xsi_shell=no
5877 ( _lt_dummy="a/b/c"
5878 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5879 = c,a/b,, \
5880 && eval 'test $(( 1 + 1 )) -eq 2 \
5881 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5882 && xsi_shell=yes
5883 echo "$as_me:$LINENO: result: $xsi_shell" >&5
5884 echo "${ECHO_T}$xsi_shell" >&6
5887 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5888 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5889 lt_shell_append=no
5890 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5891 >/dev/null 2>&1 \
5892 && lt_shell_append=yes
5893 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5894 echo "${ECHO_T}$lt_shell_append" >&6
5897 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5898 lt_unset=unset
5899 else
5900 lt_unset=false
5907 # test EBCDIC or ASCII
5908 case `echo X|tr X '\101'` in
5909 A) # ASCII based system
5910 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5911 lt_SP2NL='tr \040 \012'
5912 lt_NL2SP='tr \015\012 \040\040'
5914 *) # EBCDIC based system
5915 lt_SP2NL='tr \100 \n'
5916 lt_NL2SP='tr \r\n \100\100'
5918 esac
5928 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5929 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5930 if test "${lt_cv_ld_reload_flag+set}" = set; then
5931 echo $ECHO_N "(cached) $ECHO_C" >&6
5932 else
5933 lt_cv_ld_reload_flag='-r'
5935 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5936 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5937 reload_flag=$lt_cv_ld_reload_flag
5938 case $reload_flag in
5939 "" | " "*) ;;
5940 *) reload_flag=" $reload_flag" ;;
5941 esac
5942 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5943 case $host_os in
5944 darwin*)
5945 if test "$GCC" = yes; then
5946 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5947 else
5948 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5951 esac
5961 if test -n "$ac_tool_prefix"; then
5962 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5963 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5964 echo "$as_me:$LINENO: checking for $ac_word" >&5
5965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5966 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5968 else
5969 if test -n "$OBJDUMP"; then
5970 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5971 else
5972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5973 for as_dir in $PATH
5975 IFS=$as_save_IFS
5976 test -z "$as_dir" && as_dir=.
5977 for ac_exec_ext in '' $ac_executable_extensions; do
5978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5979 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5981 break 2
5983 done
5984 done
5988 OBJDUMP=$ac_cv_prog_OBJDUMP
5989 if test -n "$OBJDUMP"; then
5990 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5991 echo "${ECHO_T}$OBJDUMP" >&6
5992 else
5993 echo "$as_me:$LINENO: result: no" >&5
5994 echo "${ECHO_T}no" >&6
5998 if test -z "$ac_cv_prog_OBJDUMP"; then
5999 ac_ct_OBJDUMP=$OBJDUMP
6000 # Extract the first word of "objdump", so it can be a program name with args.
6001 set dummy objdump; ac_word=$2
6002 echo "$as_me:$LINENO: checking for $ac_word" >&5
6003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6004 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6005 echo $ECHO_N "(cached) $ECHO_C" >&6
6006 else
6007 if test -n "$ac_ct_OBJDUMP"; then
6008 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6009 else
6010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011 for as_dir in $PATH
6013 IFS=$as_save_IFS
6014 test -z "$as_dir" && as_dir=.
6015 for ac_exec_ext in '' $ac_executable_extensions; do
6016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6017 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6019 break 2
6021 done
6022 done
6024 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6027 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6028 if test -n "$ac_ct_OBJDUMP"; then
6029 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6030 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6031 else
6032 echo "$as_me:$LINENO: result: no" >&5
6033 echo "${ECHO_T}no" >&6
6036 OBJDUMP=$ac_ct_OBJDUMP
6037 else
6038 OBJDUMP="$ac_cv_prog_OBJDUMP"
6041 test -z "$OBJDUMP" && OBJDUMP=objdump
6051 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6052 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
6053 if test "${lt_cv_deplibs_check_method+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 else
6056 lt_cv_file_magic_cmd='$MAGIC_CMD'
6057 lt_cv_file_magic_test_file=
6058 lt_cv_deplibs_check_method='unknown'
6059 # Need to set the preceding variable on all platforms that support
6060 # interlibrary dependencies.
6061 # 'none' -- dependencies not supported.
6062 # `unknown' -- same as none, but documents that we really don't know.
6063 # 'pass_all' -- all dependencies passed with no checks.
6064 # 'test_compile' -- check by making test program.
6065 # 'file_magic [[regex]]' -- check by looking for files in library path
6066 # which responds to the $file_magic_cmd with a given extended regex.
6067 # If you have `file' or equivalent on your system and you're not sure
6068 # whether `pass_all' will *always* work, you probably want this one.
6070 case $host_os in
6071 aix[4-9]*)
6072 lt_cv_deplibs_check_method=pass_all
6075 beos*)
6076 lt_cv_deplibs_check_method=pass_all
6079 bsdi[45]*)
6080 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6081 lt_cv_file_magic_cmd='/usr/bin/file -L'
6082 lt_cv_file_magic_test_file=/shlib/libc.so
6085 cygwin*)
6086 # func_win32_libid is a shell function defined in ltmain.sh
6087 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6088 lt_cv_file_magic_cmd='func_win32_libid'
6091 mingw* | pw32*)
6092 # Base MSYS/MinGW do not provide the 'file' command needed by
6093 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6094 # unless we find 'file', for example because we are cross-compiling.
6095 if ( file / ) >/dev/null 2>&1; then
6096 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6097 lt_cv_file_magic_cmd='func_win32_libid'
6098 else
6099 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6100 lt_cv_file_magic_cmd='$OBJDUMP -f'
6104 cegcc)
6105 # use the weaker test based on 'objdump'. See mingw*.
6106 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6107 lt_cv_file_magic_cmd='$OBJDUMP -f'
6110 darwin* | rhapsody*)
6111 lt_cv_deplibs_check_method=pass_all
6114 freebsd* | dragonfly*)
6115 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6116 case $host_cpu in
6117 i*86 )
6118 # Not sure whether the presence of OpenBSD here was a mistake.
6119 # Let's accept both of them until this is cleared up.
6120 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6121 lt_cv_file_magic_cmd=/usr/bin/file
6122 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6124 esac
6125 else
6126 lt_cv_deplibs_check_method=pass_all
6130 gnu*)
6131 lt_cv_deplibs_check_method=pass_all
6134 hpux10.20* | hpux11*)
6135 lt_cv_file_magic_cmd=/usr/bin/file
6136 case $host_cpu in
6137 ia64*)
6138 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6139 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6141 hppa*64*)
6142 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]'
6143 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6146 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6147 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6149 esac
6152 interix[3-9]*)
6153 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6154 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6157 irix5* | irix6* | nonstopux*)
6158 case $LD in
6159 *-32|*"-32 ") libmagic=32-bit;;
6160 *-n32|*"-n32 ") libmagic=N32;;
6161 *-64|*"-64 ") libmagic=64-bit;;
6162 *) libmagic=never-match;;
6163 esac
6164 lt_cv_deplibs_check_method=pass_all
6167 # This must be Linux ELF.
6168 linux* | k*bsd*-gnu)
6169 lt_cv_deplibs_check_method=pass_all
6172 netbsd*)
6173 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6174 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6175 else
6176 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6180 newos6*)
6181 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6182 lt_cv_file_magic_cmd=/usr/bin/file
6183 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6186 *nto* | *qnx*)
6187 lt_cv_deplibs_check_method=pass_all
6190 openbsd*)
6191 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6192 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6193 else
6194 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6198 osf3* | osf4* | osf5*)
6199 lt_cv_deplibs_check_method=pass_all
6202 rdos*)
6203 lt_cv_deplibs_check_method=pass_all
6206 solaris*)
6207 lt_cv_deplibs_check_method=pass_all
6210 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6211 lt_cv_deplibs_check_method=pass_all
6214 sysv4 | sysv4.3*)
6215 case $host_vendor in
6216 motorola)
6217 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]'
6218 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6220 ncr)
6221 lt_cv_deplibs_check_method=pass_all
6223 sequent)
6224 lt_cv_file_magic_cmd='/bin/file'
6225 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6227 sni)
6228 lt_cv_file_magic_cmd='/bin/file'
6229 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6230 lt_cv_file_magic_test_file=/lib/libc.so
6232 siemens)
6233 lt_cv_deplibs_check_method=pass_all
6236 lt_cv_deplibs_check_method=pass_all
6238 esac
6241 tpf*)
6242 lt_cv_deplibs_check_method=pass_all
6244 esac
6247 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6248 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6249 file_magic_cmd=$lt_cv_file_magic_cmd
6250 deplibs_check_method=$lt_cv_deplibs_check_method
6251 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6264 if test -n "$ac_tool_prefix"; then
6265 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6266 set dummy ${ac_tool_prefix}ar; ac_word=$2
6267 echo "$as_me:$LINENO: checking for $ac_word" >&5
6268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6269 if test "${ac_cv_prog_AR+set}" = set; then
6270 echo $ECHO_N "(cached) $ECHO_C" >&6
6271 else
6272 if test -n "$AR"; then
6273 ac_cv_prog_AR="$AR" # Let the user override the test.
6274 else
6275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6276 for as_dir in $PATH
6278 IFS=$as_save_IFS
6279 test -z "$as_dir" && as_dir=.
6280 for ac_exec_ext in '' $ac_executable_extensions; do
6281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6282 ac_cv_prog_AR="${ac_tool_prefix}ar"
6283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6284 break 2
6286 done
6287 done
6291 AR=$ac_cv_prog_AR
6292 if test -n "$AR"; then
6293 echo "$as_me:$LINENO: result: $AR" >&5
6294 echo "${ECHO_T}$AR" >&6
6295 else
6296 echo "$as_me:$LINENO: result: no" >&5
6297 echo "${ECHO_T}no" >&6
6301 if test -z "$ac_cv_prog_AR"; then
6302 ac_ct_AR=$AR
6303 # Extract the first word of "ar", so it can be a program name with args.
6304 set dummy ar; ac_word=$2
6305 echo "$as_me:$LINENO: checking for $ac_word" >&5
6306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6307 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6308 echo $ECHO_N "(cached) $ECHO_C" >&6
6309 else
6310 if test -n "$ac_ct_AR"; then
6311 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6312 else
6313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314 for as_dir in $PATH
6316 IFS=$as_save_IFS
6317 test -z "$as_dir" && as_dir=.
6318 for ac_exec_ext in '' $ac_executable_extensions; do
6319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6320 ac_cv_prog_ac_ct_AR="ar"
6321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6322 break 2
6324 done
6325 done
6327 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6330 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6331 if test -n "$ac_ct_AR"; then
6332 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6333 echo "${ECHO_T}$ac_ct_AR" >&6
6334 else
6335 echo "$as_me:$LINENO: result: no" >&5
6336 echo "${ECHO_T}no" >&6
6339 AR=$ac_ct_AR
6340 else
6341 AR="$ac_cv_prog_AR"
6344 test -z "$AR" && AR=ar
6345 test -z "$AR_FLAGS" && AR_FLAGS=cru
6357 if test -n "$ac_tool_prefix"; then
6358 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6359 set dummy ${ac_tool_prefix}strip; ac_word=$2
6360 echo "$as_me:$LINENO: checking for $ac_word" >&5
6361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6362 if test "${ac_cv_prog_STRIP+set}" = set; then
6363 echo $ECHO_N "(cached) $ECHO_C" >&6
6364 else
6365 if test -n "$STRIP"; then
6366 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6367 else
6368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369 for as_dir in $PATH
6371 IFS=$as_save_IFS
6372 test -z "$as_dir" && as_dir=.
6373 for ac_exec_ext in '' $ac_executable_extensions; do
6374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6375 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6377 break 2
6379 done
6380 done
6384 STRIP=$ac_cv_prog_STRIP
6385 if test -n "$STRIP"; then
6386 echo "$as_me:$LINENO: result: $STRIP" >&5
6387 echo "${ECHO_T}$STRIP" >&6
6388 else
6389 echo "$as_me:$LINENO: result: no" >&5
6390 echo "${ECHO_T}no" >&6
6394 if test -z "$ac_cv_prog_STRIP"; then
6395 ac_ct_STRIP=$STRIP
6396 # Extract the first word of "strip", so it can be a program name with args.
6397 set dummy strip; ac_word=$2
6398 echo "$as_me:$LINENO: checking for $ac_word" >&5
6399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6400 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6401 echo $ECHO_N "(cached) $ECHO_C" >&6
6402 else
6403 if test -n "$ac_ct_STRIP"; then
6404 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6405 else
6406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407 for as_dir in $PATH
6409 IFS=$as_save_IFS
6410 test -z "$as_dir" && as_dir=.
6411 for ac_exec_ext in '' $ac_executable_extensions; do
6412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6413 ac_cv_prog_ac_ct_STRIP="strip"
6414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6415 break 2
6417 done
6418 done
6420 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6423 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6424 if test -n "$ac_ct_STRIP"; then
6425 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6426 echo "${ECHO_T}$ac_ct_STRIP" >&6
6427 else
6428 echo "$as_me:$LINENO: result: no" >&5
6429 echo "${ECHO_T}no" >&6
6432 STRIP=$ac_ct_STRIP
6433 else
6434 STRIP="$ac_cv_prog_STRIP"
6437 test -z "$STRIP" && STRIP=:
6444 if test -n "$ac_tool_prefix"; then
6445 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6446 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6447 echo "$as_me:$LINENO: checking for $ac_word" >&5
6448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6449 if test "${ac_cv_prog_RANLIB+set}" = set; then
6450 echo $ECHO_N "(cached) $ECHO_C" >&6
6451 else
6452 if test -n "$RANLIB"; then
6453 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6454 else
6455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456 for as_dir in $PATH
6458 IFS=$as_save_IFS
6459 test -z "$as_dir" && as_dir=.
6460 for ac_exec_ext in '' $ac_executable_extensions; do
6461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6462 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6464 break 2
6466 done
6467 done
6471 RANLIB=$ac_cv_prog_RANLIB
6472 if test -n "$RANLIB"; then
6473 echo "$as_me:$LINENO: result: $RANLIB" >&5
6474 echo "${ECHO_T}$RANLIB" >&6
6475 else
6476 echo "$as_me:$LINENO: result: no" >&5
6477 echo "${ECHO_T}no" >&6
6481 if test -z "$ac_cv_prog_RANLIB"; then
6482 ac_ct_RANLIB=$RANLIB
6483 # Extract the first word of "ranlib", so it can be a program name with args.
6484 set dummy ranlib; ac_word=$2
6485 echo "$as_me:$LINENO: checking for $ac_word" >&5
6486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6487 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6488 echo $ECHO_N "(cached) $ECHO_C" >&6
6489 else
6490 if test -n "$ac_ct_RANLIB"; then
6491 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6492 else
6493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494 for as_dir in $PATH
6496 IFS=$as_save_IFS
6497 test -z "$as_dir" && as_dir=.
6498 for ac_exec_ext in '' $ac_executable_extensions; do
6499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6500 ac_cv_prog_ac_ct_RANLIB="ranlib"
6501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6502 break 2
6504 done
6505 done
6507 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6510 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6511 if test -n "$ac_ct_RANLIB"; then
6512 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6513 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6514 else
6515 echo "$as_me:$LINENO: result: no" >&5
6516 echo "${ECHO_T}no" >&6
6519 RANLIB=$ac_ct_RANLIB
6520 else
6521 RANLIB="$ac_cv_prog_RANLIB"
6524 test -z "$RANLIB" && RANLIB=:
6531 # Determine commands to create old-style static archives.
6532 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6533 old_postinstall_cmds='chmod 644 $oldlib'
6534 old_postuninstall_cmds=
6536 if test -n "$RANLIB"; then
6537 case $host_os in
6538 openbsd*)
6539 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6542 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6544 esac
6545 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6581 # If no C compiler was specified, use CC.
6582 LTCC=${LTCC-"$CC"}
6584 # If no C compiler flags were specified, use CFLAGS.
6585 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6587 # Allow CC to be a program name with arguments.
6588 compiler=$CC
6591 # Check for command to grab the raw symbol name followed by C symbol from nm.
6592 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6593 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6594 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6595 echo $ECHO_N "(cached) $ECHO_C" >&6
6596 else
6598 # These are sane defaults that work on at least a few old systems.
6599 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6601 # Character class describing NM global symbol codes.
6602 symcode='[BCDEGRST]'
6604 # Regexp to match symbols that can be accessed directly from C.
6605 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6607 # Define system-specific variables.
6608 case $host_os in
6609 aix*)
6610 symcode='[BCDT]'
6612 cygwin* | mingw* | pw32* | cegcc*)
6613 symcode='[ABCDGISTW]'
6615 hpux*)
6616 if test "$host_cpu" = ia64; then
6617 symcode='[ABCDEGRST]'
6620 irix* | nonstopux*)
6621 symcode='[BCDEGRST]'
6623 osf*)
6624 symcode='[BCDEGQRST]'
6626 solaris*)
6627 symcode='[BDRT]'
6629 sco3.2v5*)
6630 symcode='[DT]'
6632 sysv4.2uw2*)
6633 symcode='[DT]'
6635 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6636 symcode='[ABDT]'
6638 sysv4)
6639 symcode='[DFNSTU]'
6641 esac
6643 # If we're using GNU nm, then use its standard symbol codes.
6644 case `$NM -V 2>&1` in
6645 *GNU* | *'with BFD'*)
6646 symcode='[ABCDGIRSTW]' ;;
6647 esac
6649 # Transform an extracted symbol line into a proper C declaration.
6650 # Some systems (esp. on ia64) link data and code symbols differently,
6651 # so use this general approach.
6652 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6654 # Transform an extracted symbol line into symbol name and symbol address
6655 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6656 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6658 # Handle CRLF in mingw tool chain
6659 opt_cr=
6660 case $build_os in
6661 mingw*)
6662 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6664 esac
6666 # Try without a prefix underscore, then with it.
6667 for ac_symprfx in "" "_"; do
6669 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6670 symxfrm="\\1 $ac_symprfx\\2 \\2"
6672 # Write the raw and C identifiers.
6673 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6674 # Fake it for dumpbin and say T for any non-static function
6675 # and D for any global variable.
6676 # Also find C++ and __fastcall symbols from MSVC++,
6677 # which start with @ or ?.
6678 lt_cv_sys_global_symbol_pipe="$AWK '"\
6679 " {last_section=section; section=\$ 3};"\
6680 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6681 " \$ 0!~/External *\|/{next};"\
6682 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6683 " {if(hide[section]) next};"\
6684 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6685 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6686 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6687 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6688 " ' prfx=^$ac_symprfx"
6689 else
6690 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6693 # Check to see that the pipe works correctly.
6694 pipe_works=no
6696 rm -f conftest*
6697 cat > conftest.$ac_ext <<_LT_EOF
6698 #ifdef __cplusplus
6699 extern "C" {
6700 #endif
6701 char nm_test_var;
6702 void nm_test_func(void);
6703 void nm_test_func(void){}
6704 #ifdef __cplusplus
6706 #endif
6707 int main(){nm_test_var='a';nm_test_func();return(0);}
6708 _LT_EOF
6710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6711 (eval $ac_compile) 2>&5
6712 ac_status=$?
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); }; then
6715 # Now try to grab the symbols.
6716 nlist=conftest.nm
6717 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6718 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6719 ac_status=$?
6720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); } && test -s "$nlist"; then
6722 # Try sorting and uniquifying the output.
6723 if sort "$nlist" | uniq > "$nlist"T; then
6724 mv -f "$nlist"T "$nlist"
6725 else
6726 rm -f "$nlist"T
6729 # Make sure that we snagged all the symbols we need.
6730 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6731 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6732 cat <<_LT_EOF > conftest.$ac_ext
6733 #ifdef __cplusplus
6734 extern "C" {
6735 #endif
6737 _LT_EOF
6738 # Now generate the symbol file.
6739 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6741 cat <<_LT_EOF >> conftest.$ac_ext
6743 /* The mapping between symbol names and symbols. */
6744 const struct {
6745 const char *name;
6746 void *address;
6748 lt__PROGRAM__LTX_preloaded_symbols[] =
6750 { "@PROGRAM@", (void *) 0 },
6751 _LT_EOF
6752 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6753 cat <<\_LT_EOF >> conftest.$ac_ext
6754 {0, (void *) 0}
6757 /* This works around a problem in FreeBSD linker */
6758 #ifdef FREEBSD_WORKAROUND
6759 static const void *lt_preloaded_setup() {
6760 return lt__PROGRAM__LTX_preloaded_symbols;
6762 #endif
6764 #ifdef __cplusplus
6766 #endif
6767 _LT_EOF
6768 # Now try linking the two files.
6769 mv conftest.$ac_objext conftstm.$ac_objext
6770 lt_save_LIBS="$LIBS"
6771 lt_save_CFLAGS="$CFLAGS"
6772 LIBS="conftstm.$ac_objext"
6773 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6775 (eval $ac_link) 2>&5
6776 ac_status=$?
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6779 pipe_works=yes
6781 LIBS="$lt_save_LIBS"
6782 CFLAGS="$lt_save_CFLAGS"
6783 else
6784 echo "cannot find nm_test_func in $nlist" >&5
6786 else
6787 echo "cannot find nm_test_var in $nlist" >&5
6789 else
6790 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6792 else
6793 echo "$progname: failed program was:" >&5
6794 cat conftest.$ac_ext >&5
6796 rm -rf conftest* conftst*
6798 # Do not use the global_symbol_pipe unless it works.
6799 if test "$pipe_works" = yes; then
6800 break
6801 else
6802 lt_cv_sys_global_symbol_pipe=
6804 done
6808 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6809 lt_cv_sys_global_symbol_to_cdecl=
6811 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6812 echo "$as_me:$LINENO: result: failed" >&5
6813 echo "${ECHO_T}failed" >&6
6814 else
6815 echo "$as_me:$LINENO: result: ok" >&5
6816 echo "${ECHO_T}ok" >&6
6840 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6841 if test "${enable_libtool_lock+set}" = set; then
6842 enableval="$enable_libtool_lock"
6845 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6847 # Some flags need to be propagated to the compiler or linker for good
6848 # libtool support.
6849 case $host in
6850 ia64-*-hpux*)
6851 # Find out which ABI we are using.
6852 echo 'int i;' > conftest.$ac_ext
6853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6854 (eval $ac_compile) 2>&5
6855 ac_status=$?
6856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857 (exit $ac_status); }; then
6858 case `/usr/bin/file conftest.$ac_objext` in
6859 *ELF-32*)
6860 HPUX_IA64_MODE="32"
6862 *ELF-64*)
6863 HPUX_IA64_MODE="64"
6865 esac
6867 rm -rf conftest*
6869 *-*-irix6*)
6870 # Find out which ABI we are using.
6871 echo '#line 6871 "configure"' > conftest.$ac_ext
6872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6873 (eval $ac_compile) 2>&5
6874 ac_status=$?
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); }; then
6877 if test "$lt_cv_prog_gnu_ld" = yes; then
6878 case `/usr/bin/file conftest.$ac_objext` in
6879 *32-bit*)
6880 LD="${LD-ld} -melf32bsmip"
6882 *N32*)
6883 LD="${LD-ld} -melf32bmipn32"
6885 *64-bit*)
6886 LD="${LD-ld} -melf64bmip"
6888 esac
6889 else
6890 case `/usr/bin/file conftest.$ac_objext` in
6891 *32-bit*)
6892 LD="${LD-ld} -32"
6894 *N32*)
6895 LD="${LD-ld} -n32"
6897 *64-bit*)
6898 LD="${LD-ld} -64"
6900 esac
6903 rm -rf conftest*
6906 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6907 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6908 # Find out which ABI we are using.
6909 echo 'int i;' > conftest.$ac_ext
6910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6911 (eval $ac_compile) 2>&5
6912 ac_status=$?
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); }; then
6915 case `/usr/bin/file conftest.o` in
6916 *32-bit*)
6917 case $host in
6918 x86_64-*kfreebsd*-gnu)
6919 LD="${LD-ld} -m elf_i386_fbsd"
6921 x86_64-*linux*)
6922 LD="${LD-ld} -m elf_i386"
6924 ppc64-*linux*|powerpc64-*linux*)
6925 LD="${LD-ld} -m elf32ppclinux"
6927 s390x-*linux*)
6928 LD="${LD-ld} -m elf_s390"
6930 sparc64-*linux*)
6931 LD="${LD-ld} -m elf32_sparc"
6933 esac
6935 *64-bit*)
6936 case $host in
6937 x86_64-*kfreebsd*-gnu)
6938 LD="${LD-ld} -m elf_x86_64_fbsd"
6940 x86_64-*linux*)
6941 LD="${LD-ld} -m elf_x86_64"
6943 ppc*-*linux*|powerpc*-*linux*)
6944 LD="${LD-ld} -m elf64ppc"
6946 s390*-*linux*|s390*-*tpf*)
6947 LD="${LD-ld} -m elf64_s390"
6949 sparc*-*linux*)
6950 LD="${LD-ld} -m elf64_sparc"
6952 esac
6954 esac
6956 rm -rf conftest*
6959 *-*-sco3.2v5*)
6960 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6961 SAVE_CFLAGS="$CFLAGS"
6962 CFLAGS="$CFLAGS -belf"
6963 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6964 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6965 if test "${lt_cv_cc_needs_belf+set}" = set; then
6966 echo $ECHO_N "(cached) $ECHO_C" >&6
6967 else
6968 ac_ext=c
6969 ac_cpp='$CPP $CPPFLAGS'
6970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6974 cat >conftest.$ac_ext <<_ACEOF
6975 /* confdefs.h. */
6976 _ACEOF
6977 cat confdefs.h >>conftest.$ac_ext
6978 cat >>conftest.$ac_ext <<_ACEOF
6979 /* end confdefs.h. */
6982 main ()
6986 return 0;
6988 _ACEOF
6989 rm -f conftest.$ac_objext conftest$ac_exeext
6990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6991 (eval $ac_link) 2>conftest.er1
6992 ac_status=$?
6993 grep -v '^ *+' conftest.er1 >conftest.err
6994 rm -f conftest.er1
6995 cat conftest.err >&5
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); } &&
6998 { ac_try='test -z "$ac_c_werror_flag"
6999 || test ! -s conftest.err'
7000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7001 (eval $ac_try) 2>&5
7002 ac_status=$?
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); }; } &&
7005 { ac_try='test -s conftest$ac_exeext'
7006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7007 (eval $ac_try) 2>&5
7008 ac_status=$?
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); }; }; then
7011 lt_cv_cc_needs_belf=yes
7012 else
7013 echo "$as_me: failed program was:" >&5
7014 sed 's/^/| /' conftest.$ac_ext >&5
7016 lt_cv_cc_needs_belf=no
7018 rm -f conftest.err conftest.$ac_objext \
7019 conftest$ac_exeext conftest.$ac_ext
7020 ac_ext=c
7021 ac_cpp='$CPP $CPPFLAGS'
7022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7027 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7028 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7029 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7030 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7031 CFLAGS="$SAVE_CFLAGS"
7034 sparc*-*solaris*)
7035 # Find out which ABI we are using.
7036 echo 'int i;' > conftest.$ac_ext
7037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7038 (eval $ac_compile) 2>&5
7039 ac_status=$?
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); }; then
7042 case `/usr/bin/file conftest.o` in
7043 *64-bit*)
7044 case $lt_cv_prog_gnu_ld in
7045 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7047 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7048 LD="${LD-ld} -64"
7051 esac
7053 esac
7055 rm -rf conftest*
7057 esac
7059 need_locks="$enable_libtool_lock"
7062 case $host_os in
7063 rhapsody* | darwin*)
7064 if test -n "$ac_tool_prefix"; then
7065 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7066 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7067 echo "$as_me:$LINENO: checking for $ac_word" >&5
7068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7069 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7070 echo $ECHO_N "(cached) $ECHO_C" >&6
7071 else
7072 if test -n "$DSYMUTIL"; then
7073 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7074 else
7075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7076 for as_dir in $PATH
7078 IFS=$as_save_IFS
7079 test -z "$as_dir" && as_dir=.
7080 for ac_exec_ext in '' $ac_executable_extensions; do
7081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7082 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7084 break 2
7086 done
7087 done
7091 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7092 if test -n "$DSYMUTIL"; then
7093 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7094 echo "${ECHO_T}$DSYMUTIL" >&6
7095 else
7096 echo "$as_me:$LINENO: result: no" >&5
7097 echo "${ECHO_T}no" >&6
7101 if test -z "$ac_cv_prog_DSYMUTIL"; then
7102 ac_ct_DSYMUTIL=$DSYMUTIL
7103 # Extract the first word of "dsymutil", so it can be a program name with args.
7104 set dummy dsymutil; ac_word=$2
7105 echo "$as_me:$LINENO: checking for $ac_word" >&5
7106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7107 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7109 else
7110 if test -n "$ac_ct_DSYMUTIL"; then
7111 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7112 else
7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114 for as_dir in $PATH
7116 IFS=$as_save_IFS
7117 test -z "$as_dir" && as_dir=.
7118 for ac_exec_ext in '' $ac_executable_extensions; do
7119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7120 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7122 break 2
7124 done
7125 done
7127 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
7130 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7131 if test -n "$ac_ct_DSYMUTIL"; then
7132 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7133 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
7134 else
7135 echo "$as_me:$LINENO: result: no" >&5
7136 echo "${ECHO_T}no" >&6
7139 DSYMUTIL=$ac_ct_DSYMUTIL
7140 else
7141 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7144 if test -n "$ac_tool_prefix"; then
7145 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7146 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7147 echo "$as_me:$LINENO: checking for $ac_word" >&5
7148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7149 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7151 else
7152 if test -n "$NMEDIT"; then
7153 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7154 else
7155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156 for as_dir in $PATH
7158 IFS=$as_save_IFS
7159 test -z "$as_dir" && as_dir=.
7160 for ac_exec_ext in '' $ac_executable_extensions; do
7161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7162 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7164 break 2
7166 done
7167 done
7171 NMEDIT=$ac_cv_prog_NMEDIT
7172 if test -n "$NMEDIT"; then
7173 echo "$as_me:$LINENO: result: $NMEDIT" >&5
7174 echo "${ECHO_T}$NMEDIT" >&6
7175 else
7176 echo "$as_me:$LINENO: result: no" >&5
7177 echo "${ECHO_T}no" >&6
7181 if test -z "$ac_cv_prog_NMEDIT"; then
7182 ac_ct_NMEDIT=$NMEDIT
7183 # Extract the first word of "nmedit", so it can be a program name with args.
7184 set dummy nmedit; ac_word=$2
7185 echo "$as_me:$LINENO: checking for $ac_word" >&5
7186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7187 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7188 echo $ECHO_N "(cached) $ECHO_C" >&6
7189 else
7190 if test -n "$ac_ct_NMEDIT"; then
7191 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7192 else
7193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 for as_dir in $PATH
7196 IFS=$as_save_IFS
7197 test -z "$as_dir" && as_dir=.
7198 for ac_exec_ext in '' $ac_executable_extensions; do
7199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7200 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7202 break 2
7204 done
7205 done
7207 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
7210 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7211 if test -n "$ac_ct_NMEDIT"; then
7212 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7213 echo "${ECHO_T}$ac_ct_NMEDIT" >&6
7214 else
7215 echo "$as_me:$LINENO: result: no" >&5
7216 echo "${ECHO_T}no" >&6
7219 NMEDIT=$ac_ct_NMEDIT
7220 else
7221 NMEDIT="$ac_cv_prog_NMEDIT"
7224 if test -n "$ac_tool_prefix"; then
7225 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7226 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7227 echo "$as_me:$LINENO: checking for $ac_word" >&5
7228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7229 if test "${ac_cv_prog_LIPO+set}" = set; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
7231 else
7232 if test -n "$LIPO"; then
7233 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7234 else
7235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236 for as_dir in $PATH
7238 IFS=$as_save_IFS
7239 test -z "$as_dir" && as_dir=.
7240 for ac_exec_ext in '' $ac_executable_extensions; do
7241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7242 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7244 break 2
7246 done
7247 done
7251 LIPO=$ac_cv_prog_LIPO
7252 if test -n "$LIPO"; then
7253 echo "$as_me:$LINENO: result: $LIPO" >&5
7254 echo "${ECHO_T}$LIPO" >&6
7255 else
7256 echo "$as_me:$LINENO: result: no" >&5
7257 echo "${ECHO_T}no" >&6
7261 if test -z "$ac_cv_prog_LIPO"; then
7262 ac_ct_LIPO=$LIPO
7263 # Extract the first word of "lipo", so it can be a program name with args.
7264 set dummy lipo; ac_word=$2
7265 echo "$as_me:$LINENO: checking for $ac_word" >&5
7266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7267 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7268 echo $ECHO_N "(cached) $ECHO_C" >&6
7269 else
7270 if test -n "$ac_ct_LIPO"; then
7271 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7272 else
7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274 for as_dir in $PATH
7276 IFS=$as_save_IFS
7277 test -z "$as_dir" && as_dir=.
7278 for ac_exec_ext in '' $ac_executable_extensions; do
7279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7280 ac_cv_prog_ac_ct_LIPO="lipo"
7281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7282 break 2
7284 done
7285 done
7287 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
7290 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7291 if test -n "$ac_ct_LIPO"; then
7292 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7293 echo "${ECHO_T}$ac_ct_LIPO" >&6
7294 else
7295 echo "$as_me:$LINENO: result: no" >&5
7296 echo "${ECHO_T}no" >&6
7299 LIPO=$ac_ct_LIPO
7300 else
7301 LIPO="$ac_cv_prog_LIPO"
7304 if test -n "$ac_tool_prefix"; then
7305 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7306 set dummy ${ac_tool_prefix}otool; ac_word=$2
7307 echo "$as_me:$LINENO: checking for $ac_word" >&5
7308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7309 if test "${ac_cv_prog_OTOOL+set}" = set; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7311 else
7312 if test -n "$OTOOL"; then
7313 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7314 else
7315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316 for as_dir in $PATH
7318 IFS=$as_save_IFS
7319 test -z "$as_dir" && as_dir=.
7320 for ac_exec_ext in '' $ac_executable_extensions; do
7321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7322 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7324 break 2
7326 done
7327 done
7331 OTOOL=$ac_cv_prog_OTOOL
7332 if test -n "$OTOOL"; then
7333 echo "$as_me:$LINENO: result: $OTOOL" >&5
7334 echo "${ECHO_T}$OTOOL" >&6
7335 else
7336 echo "$as_me:$LINENO: result: no" >&5
7337 echo "${ECHO_T}no" >&6
7341 if test -z "$ac_cv_prog_OTOOL"; then
7342 ac_ct_OTOOL=$OTOOL
7343 # Extract the first word of "otool", so it can be a program name with args.
7344 set dummy otool; ac_word=$2
7345 echo "$as_me:$LINENO: checking for $ac_word" >&5
7346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7347 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
7349 else
7350 if test -n "$ac_ct_OTOOL"; then
7351 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7352 else
7353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354 for as_dir in $PATH
7356 IFS=$as_save_IFS
7357 test -z "$as_dir" && as_dir=.
7358 for ac_exec_ext in '' $ac_executable_extensions; do
7359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7360 ac_cv_prog_ac_ct_OTOOL="otool"
7361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7362 break 2
7364 done
7365 done
7367 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
7370 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7371 if test -n "$ac_ct_OTOOL"; then
7372 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7373 echo "${ECHO_T}$ac_ct_OTOOL" >&6
7374 else
7375 echo "$as_me:$LINENO: result: no" >&5
7376 echo "${ECHO_T}no" >&6
7379 OTOOL=$ac_ct_OTOOL
7380 else
7381 OTOOL="$ac_cv_prog_OTOOL"
7384 if test -n "$ac_tool_prefix"; then
7385 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7386 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7387 echo "$as_me:$LINENO: checking for $ac_word" >&5
7388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7389 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7390 echo $ECHO_N "(cached) $ECHO_C" >&6
7391 else
7392 if test -n "$OTOOL64"; then
7393 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7394 else
7395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396 for as_dir in $PATH
7398 IFS=$as_save_IFS
7399 test -z "$as_dir" && as_dir=.
7400 for ac_exec_ext in '' $ac_executable_extensions; do
7401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7402 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7404 break 2
7406 done
7407 done
7411 OTOOL64=$ac_cv_prog_OTOOL64
7412 if test -n "$OTOOL64"; then
7413 echo "$as_me:$LINENO: result: $OTOOL64" >&5
7414 echo "${ECHO_T}$OTOOL64" >&6
7415 else
7416 echo "$as_me:$LINENO: result: no" >&5
7417 echo "${ECHO_T}no" >&6
7421 if test -z "$ac_cv_prog_OTOOL64"; then
7422 ac_ct_OTOOL64=$OTOOL64
7423 # Extract the first word of "otool64", so it can be a program name with args.
7424 set dummy otool64; ac_word=$2
7425 echo "$as_me:$LINENO: checking for $ac_word" >&5
7426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7427 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7428 echo $ECHO_N "(cached) $ECHO_C" >&6
7429 else
7430 if test -n "$ac_ct_OTOOL64"; then
7431 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7432 else
7433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7434 for as_dir in $PATH
7436 IFS=$as_save_IFS
7437 test -z "$as_dir" && as_dir=.
7438 for ac_exec_ext in '' $ac_executable_extensions; do
7439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7440 ac_cv_prog_ac_ct_OTOOL64="otool64"
7441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7442 break 2
7444 done
7445 done
7447 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
7450 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7451 if test -n "$ac_ct_OTOOL64"; then
7452 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7453 echo "${ECHO_T}$ac_ct_OTOOL64" >&6
7454 else
7455 echo "$as_me:$LINENO: result: no" >&5
7456 echo "${ECHO_T}no" >&6
7459 OTOOL64=$ac_ct_OTOOL64
7460 else
7461 OTOOL64="$ac_cv_prog_OTOOL64"
7490 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7491 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
7492 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
7494 else
7495 lt_cv_apple_cc_single_mod=no
7496 if test -z "${LT_MULTI_MODULE}"; then
7497 # By default we will add the -single_module flag. You can override
7498 # by either setting the environment variable LT_MULTI_MODULE
7499 # non-empty at configure time, or by adding -multi_module to the
7500 # link flags.
7501 rm -rf libconftest.dylib*
7502 echo "int foo(void){return 1;}" > conftest.c
7503 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7504 -dynamiclib -Wl,-single_module conftest.c" >&5
7505 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7506 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7507 _lt_result=$?
7508 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7509 lt_cv_apple_cc_single_mod=yes
7510 else
7511 cat conftest.err >&5
7513 rm -rf libconftest.dylib*
7514 rm -f conftest.*
7517 echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7518 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
7519 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7520 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
7521 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7522 echo $ECHO_N "(cached) $ECHO_C" >&6
7523 else
7524 lt_cv_ld_exported_symbols_list=no
7525 save_LDFLAGS=$LDFLAGS
7526 echo "_main" > conftest.sym
7527 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7528 cat >conftest.$ac_ext <<_ACEOF
7529 /* confdefs.h. */
7530 _ACEOF
7531 cat confdefs.h >>conftest.$ac_ext
7532 cat >>conftest.$ac_ext <<_ACEOF
7533 /* end confdefs.h. */
7536 main ()
7540 return 0;
7542 _ACEOF
7543 rm -f conftest.$ac_objext conftest$ac_exeext
7544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7545 (eval $ac_link) 2>conftest.er1
7546 ac_status=$?
7547 grep -v '^ *+' conftest.er1 >conftest.err
7548 rm -f conftest.er1
7549 cat conftest.err >&5
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); } &&
7552 { ac_try='test -z "$ac_c_werror_flag"
7553 || test ! -s conftest.err'
7554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7555 (eval $ac_try) 2>&5
7556 ac_status=$?
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); }; } &&
7559 { ac_try='test -s conftest$ac_exeext'
7560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7561 (eval $ac_try) 2>&5
7562 ac_status=$?
7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); }; }; then
7565 lt_cv_ld_exported_symbols_list=yes
7566 else
7567 echo "$as_me: failed program was:" >&5
7568 sed 's/^/| /' conftest.$ac_ext >&5
7570 lt_cv_ld_exported_symbols_list=no
7572 rm -f conftest.err conftest.$ac_objext \
7573 conftest$ac_exeext conftest.$ac_ext
7574 LDFLAGS="$save_LDFLAGS"
7577 echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7578 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
7579 case $host_os in
7580 rhapsody* | darwin1.[012])
7581 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7582 darwin1.*)
7583 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7584 darwin*) # darwin 5.x on
7585 # if running on 10.5 or later, the deployment target defaults
7586 # to the OS version, if on x86, and 10.4, the deployment
7587 # target defaults to 10.4. Don't you love it?
7588 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7589 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7590 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7591 10.[012]*)
7592 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7593 10.*)
7594 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7595 esac
7597 esac
7598 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7599 _lt_dar_single_mod='$single_module'
7601 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7602 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7603 else
7604 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7606 if test "$DSYMUTIL" != ":"; then
7607 _lt_dsymutil='~$DSYMUTIL $lib || :'
7608 else
7609 _lt_dsymutil=
7612 esac
7615 for ac_header in dlfcn.h
7617 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7618 echo "$as_me:$LINENO: checking for $ac_header" >&5
7619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7621 echo $ECHO_N "(cached) $ECHO_C" >&6
7622 else
7623 cat >conftest.$ac_ext <<_ACEOF
7624 /* confdefs.h. */
7625 _ACEOF
7626 cat confdefs.h >>conftest.$ac_ext
7627 cat >>conftest.$ac_ext <<_ACEOF
7628 /* end confdefs.h. */
7629 $ac_includes_default
7631 #include <$ac_header>
7632 _ACEOF
7633 rm -f conftest.$ac_objext
7634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7635 (eval $ac_compile) 2>conftest.er1
7636 ac_status=$?
7637 grep -v '^ *+' conftest.er1 >conftest.err
7638 rm -f conftest.er1
7639 cat conftest.err >&5
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); } &&
7642 { ac_try='test -z "$ac_c_werror_flag"
7643 || test ! -s conftest.err'
7644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7645 (eval $ac_try) 2>&5
7646 ac_status=$?
7647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 (exit $ac_status); }; } &&
7649 { ac_try='test -s conftest.$ac_objext'
7650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7651 (eval $ac_try) 2>&5
7652 ac_status=$?
7653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654 (exit $ac_status); }; }; then
7655 eval "$as_ac_Header=yes"
7656 else
7657 echo "$as_me: failed program was:" >&5
7658 sed 's/^/| /' conftest.$ac_ext >&5
7660 eval "$as_ac_Header=no"
7662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7667 cat >>confdefs.h <<_ACEOF
7668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7669 _ACEOF
7673 done
7677 # Set options
7681 enable_dlopen=no
7684 enable_win32_dll=no
7688 # Check whether --enable-static or --disable-static was given.
7689 if test "${enable_static+set}" = set; then
7690 enableval="$enable_static"
7691 p=${PACKAGE-default}
7692 case $enableval in
7693 yes) enable_static=yes ;;
7694 no) enable_static=no ;;
7696 enable_static=no
7697 # Look at the argument we got. We use all the common list separators.
7698 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7699 for pkg in $enableval; do
7700 IFS="$lt_save_ifs"
7701 if test "X$pkg" = "X$p"; then
7702 enable_static=yes
7704 done
7705 IFS="$lt_save_ifs"
7707 esac
7708 else
7709 enable_static=yes
7720 # Check whether --with-pic or --without-pic was given.
7721 if test "${with_pic+set}" = set; then
7722 withval="$with_pic"
7723 pic_mode="$withval"
7724 else
7725 pic_mode=default
7728 test -z "$pic_mode" && pic_mode=default
7736 # Check whether --enable-fast-install or --disable-fast-install was given.
7737 if test "${enable_fast_install+set}" = set; then
7738 enableval="$enable_fast_install"
7739 p=${PACKAGE-default}
7740 case $enableval in
7741 yes) enable_fast_install=yes ;;
7742 no) enable_fast_install=no ;;
7744 enable_fast_install=no
7745 # Look at the argument we got. We use all the common list separators.
7746 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7747 for pkg in $enableval; do
7748 IFS="$lt_save_ifs"
7749 if test "X$pkg" = "X$p"; then
7750 enable_fast_install=yes
7752 done
7753 IFS="$lt_save_ifs"
7755 esac
7756 else
7757 enable_fast_install=yes
7769 # This can be used to rebuild libtool when needed
7770 LIBTOOL_DEPS="$ltmain"
7772 # Always use our own libtool.
7773 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7799 test -z "$LN_S" && LN_S="ln -s"
7814 if test -n "${ZSH_VERSION+set}" ; then
7815 setopt NO_GLOB_SUBST
7818 echo "$as_me:$LINENO: checking for objdir" >&5
7819 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7820 if test "${lt_cv_objdir+set}" = set; then
7821 echo $ECHO_N "(cached) $ECHO_C" >&6
7822 else
7823 rm -f .libs 2>/dev/null
7824 mkdir .libs 2>/dev/null
7825 if test -d .libs; then
7826 lt_cv_objdir=.libs
7827 else
7828 # MS-DOS does not allow filenames that begin with a dot.
7829 lt_cv_objdir=_libs
7831 rmdir .libs 2>/dev/null
7833 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7834 echo "${ECHO_T}$lt_cv_objdir" >&6
7835 objdir=$lt_cv_objdir
7841 cat >>confdefs.h <<_ACEOF
7842 #define LT_OBJDIR "$lt_cv_objdir/"
7843 _ACEOF
7861 case $host_os in
7862 aix3*)
7863 # AIX sometimes has problems with the GCC collect2 program. For some
7864 # reason, if we set the COLLECT_NAMES environment variable, the problems
7865 # vanish in a puff of smoke.
7866 if test "X${COLLECT_NAMES+set}" != Xset; then
7867 COLLECT_NAMES=
7868 export COLLECT_NAMES
7871 esac
7873 # Sed substitution that helps us do robust quoting. It backslashifies
7874 # metacharacters that are still active within double-quoted strings.
7875 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7877 # Same as above, but do not quote variable references.
7878 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7880 # Sed substitution to delay expansion of an escaped shell variable in a
7881 # double_quote_subst'ed string.
7882 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7884 # Sed substitution to delay expansion of an escaped single quote.
7885 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7887 # Sed substitution to avoid accidental globbing in evaled expressions
7888 no_glob_subst='s/\*/\\\*/g'
7890 # Global variables:
7891 ofile=libtool
7892 can_build_shared=yes
7894 # All known linkers require a `.a' archive for static linking (except MSVC,
7895 # which needs '.lib').
7896 libext=a
7898 with_gnu_ld="$lt_cv_prog_gnu_ld"
7900 old_CC="$CC"
7901 old_CFLAGS="$CFLAGS"
7903 # Set sane defaults for various variables
7904 test -z "$CC" && CC=cc
7905 test -z "$LTCC" && LTCC=$CC
7906 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7907 test -z "$LD" && LD=ld
7908 test -z "$ac_objext" && ac_objext=o
7910 for cc_temp in $compiler""; do
7911 case $cc_temp in
7912 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7913 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7914 \-*) ;;
7915 *) break;;
7916 esac
7917 done
7918 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7921 # Only perform the check for file, if the check method requires it
7922 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7923 case $deplibs_check_method in
7924 file_magic*)
7925 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7926 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7927 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7928 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7929 echo $ECHO_N "(cached) $ECHO_C" >&6
7930 else
7931 case $MAGIC_CMD in
7932 [\\/*] | ?:[\\/]*)
7933 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7936 lt_save_MAGIC_CMD="$MAGIC_CMD"
7937 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7938 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7939 for ac_dir in $ac_dummy; do
7940 IFS="$lt_save_ifs"
7941 test -z "$ac_dir" && ac_dir=.
7942 if test -f $ac_dir/${ac_tool_prefix}file; then
7943 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7944 if test -n "$file_magic_test_file"; then
7945 case $deplibs_check_method in
7946 "file_magic "*)
7947 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7948 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7949 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7950 $EGREP "$file_magic_regex" > /dev/null; then
7952 else
7953 cat <<_LT_EOF 1>&2
7955 *** Warning: the command libtool uses to detect shared libraries,
7956 *** $file_magic_cmd, produces output that libtool cannot recognize.
7957 *** The result is that libtool may fail to recognize shared libraries
7958 *** as such. This will affect the creation of libtool libraries that
7959 *** depend on shared libraries, but programs linked with such libtool
7960 *** libraries will work regardless of this problem. Nevertheless, you
7961 *** may want to report the problem to your system manager and/or to
7962 *** bug-libtool@gnu.org
7964 _LT_EOF
7965 fi ;;
7966 esac
7968 break
7970 done
7971 IFS="$lt_save_ifs"
7972 MAGIC_CMD="$lt_save_MAGIC_CMD"
7974 esac
7977 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7978 if test -n "$MAGIC_CMD"; then
7979 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7980 echo "${ECHO_T}$MAGIC_CMD" >&6
7981 else
7982 echo "$as_me:$LINENO: result: no" >&5
7983 echo "${ECHO_T}no" >&6
7990 if test -z "$lt_cv_path_MAGIC_CMD"; then
7991 if test -n "$ac_tool_prefix"; then
7992 echo "$as_me:$LINENO: checking for file" >&5
7993 echo $ECHO_N "checking for file... $ECHO_C" >&6
7994 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7995 echo $ECHO_N "(cached) $ECHO_C" >&6
7996 else
7997 case $MAGIC_CMD in
7998 [\\/*] | ?:[\\/]*)
7999 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8002 lt_save_MAGIC_CMD="$MAGIC_CMD"
8003 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8004 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8005 for ac_dir in $ac_dummy; do
8006 IFS="$lt_save_ifs"
8007 test -z "$ac_dir" && ac_dir=.
8008 if test -f $ac_dir/file; then
8009 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8010 if test -n "$file_magic_test_file"; then
8011 case $deplibs_check_method in
8012 "file_magic "*)
8013 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8014 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8015 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8016 $EGREP "$file_magic_regex" > /dev/null; then
8018 else
8019 cat <<_LT_EOF 1>&2
8021 *** Warning: the command libtool uses to detect shared libraries,
8022 *** $file_magic_cmd, produces output that libtool cannot recognize.
8023 *** The result is that libtool may fail to recognize shared libraries
8024 *** as such. This will affect the creation of libtool libraries that
8025 *** depend on shared libraries, but programs linked with such libtool
8026 *** libraries will work regardless of this problem. Nevertheless, you
8027 *** may want to report the problem to your system manager and/or to
8028 *** bug-libtool@gnu.org
8030 _LT_EOF
8031 fi ;;
8032 esac
8034 break
8036 done
8037 IFS="$lt_save_ifs"
8038 MAGIC_CMD="$lt_save_MAGIC_CMD"
8040 esac
8043 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8044 if test -n "$MAGIC_CMD"; then
8045 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8046 echo "${ECHO_T}$MAGIC_CMD" >&6
8047 else
8048 echo "$as_me:$LINENO: result: no" >&5
8049 echo "${ECHO_T}no" >&6
8053 else
8054 MAGIC_CMD=:
8060 esac
8062 # Use C for the default configuration in the libtool script
8064 lt_save_CC="$CC"
8065 ac_ext=c
8066 ac_cpp='$CPP $CPPFLAGS'
8067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8072 # Source file extension for C test sources.
8073 ac_ext=c
8075 # Object file extension for compiled C test sources.
8076 objext=o
8077 objext=$objext
8079 # Code to be used in simple compile tests
8080 lt_simple_compile_test_code="int some_variable = 0;"
8082 # Code to be used in simple link tests
8083 lt_simple_link_test_code='int main(){return(0);}'
8091 # If no C compiler was specified, use CC.
8092 LTCC=${LTCC-"$CC"}
8094 # If no C compiler flags were specified, use CFLAGS.
8095 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8097 # Allow CC to be a program name with arguments.
8098 compiler=$CC
8100 # Save the default compiler, since it gets overwritten when the other
8101 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8102 compiler_DEFAULT=$CC
8104 # save warnings/boilerplate of simple test code
8105 ac_outfile=conftest.$ac_objext
8106 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8107 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8108 _lt_compiler_boilerplate=`cat conftest.err`
8109 $RM conftest*
8111 ac_outfile=conftest.$ac_objext
8112 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8113 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8114 _lt_linker_boilerplate=`cat conftest.err`
8115 $RM -r conftest*
8118 ## CAVEAT EMPTOR:
8119 ## There is no encapsulation within the following macros, do not change
8120 ## the running order or otherwise move them around unless you know exactly
8121 ## what you are doing...
8122 if test -n "$compiler"; then
8124 lt_prog_compiler_no_builtin_flag=
8126 if test "$GCC" = yes; then
8127 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8129 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8130 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8131 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8132 echo $ECHO_N "(cached) $ECHO_C" >&6
8133 else
8134 lt_cv_prog_compiler_rtti_exceptions=no
8135 ac_outfile=conftest.$ac_objext
8136 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8137 lt_compiler_flag="-fno-rtti -fno-exceptions"
8138 # Insert the option either (1) after the last *FLAGS variable, or
8139 # (2) before a word containing "conftest.", or (3) at the end.
8140 # Note that $ac_compile itself does not contain backslashes and begins
8141 # with a dollar sign (not a hyphen), so the echo should work correctly.
8142 # The option is referenced via a variable to avoid confusing sed.
8143 lt_compile=`echo "$ac_compile" | $SED \
8144 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8145 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8146 -e 's:$: $lt_compiler_flag:'`
8147 (eval echo "\"\$as_me:8147: $lt_compile\"" >&5)
8148 (eval "$lt_compile" 2>conftest.err)
8149 ac_status=$?
8150 cat conftest.err >&5
8151 echo "$as_me:8151: \$? = $ac_status" >&5
8152 if (exit $ac_status) && test -s "$ac_outfile"; then
8153 # The compiler can only warn and ignore the option if not recognized
8154 # So say no if there are warnings other than the usual output.
8155 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8156 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8157 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8158 lt_cv_prog_compiler_rtti_exceptions=yes
8161 $RM conftest*
8164 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8165 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8167 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8168 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8169 else
8180 lt_prog_compiler_wl=
8181 lt_prog_compiler_pic=
8182 lt_prog_compiler_static=
8184 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8185 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8187 if test "$GCC" = yes; then
8188 lt_prog_compiler_wl='-Wl,'
8189 lt_prog_compiler_static='-static'
8191 case $host_os in
8192 aix*)
8193 # All AIX code is PIC.
8194 if test "$host_cpu" = ia64; then
8195 # AIX 5 now supports IA64 processor
8196 lt_prog_compiler_static='-Bstatic'
8200 amigaos*)
8201 case $host_cpu in
8202 powerpc)
8203 # see comment about AmigaOS4 .so support
8204 lt_prog_compiler_pic='-fPIC'
8206 m68k)
8207 # FIXME: we need at least 68020 code to build shared libraries, but
8208 # adding the `-m68020' flag to GCC prevents building anything better,
8209 # like `-m68040'.
8210 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8212 esac
8215 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8216 # PIC is the default for these OSes.
8219 mingw* | cygwin* | pw32* | os2* | cegcc*)
8220 # This hack is so that the source file can tell whether it is being
8221 # built for inclusion in a dll (and should export symbols for example).
8222 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8223 # (--disable-auto-import) libraries
8224 lt_prog_compiler_pic='-DDLL_EXPORT'
8227 darwin* | rhapsody*)
8228 # PIC is the default on this platform
8229 # Common symbols not allowed in MH_DYLIB files
8230 lt_prog_compiler_pic='-fno-common'
8233 hpux*)
8234 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8235 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8236 # sets the default TLS model and affects inlining.
8237 case $host_cpu in
8238 hppa*64*)
8239 # +Z the default
8242 lt_prog_compiler_pic='-fPIC'
8244 esac
8247 interix[3-9]*)
8248 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8249 # Instead, we relocate shared libraries at runtime.
8252 msdosdjgpp*)
8253 # Just because we use GCC doesn't mean we suddenly get shared libraries
8254 # on systems that don't support them.
8255 lt_prog_compiler_can_build_shared=no
8256 enable_shared=no
8259 *nto* | *qnx*)
8260 # QNX uses GNU C++, but need to define -shared option too, otherwise
8261 # it will coredump.
8262 lt_prog_compiler_pic='-fPIC -shared'
8265 sysv4*MP*)
8266 if test -d /usr/nec; then
8267 lt_prog_compiler_pic=-Kconform_pic
8272 lt_prog_compiler_pic='-fPIC'
8274 esac
8275 else
8276 # PORTME Check for flag to pass linker flags through the system compiler.
8277 case $host_os in
8278 aix*)
8279 lt_prog_compiler_wl='-Wl,'
8280 if test "$host_cpu" = ia64; then
8281 # AIX 5 now supports IA64 processor
8282 lt_prog_compiler_static='-Bstatic'
8283 else
8284 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8288 mingw* | cygwin* | pw32* | os2* | cegcc*)
8289 # This hack is so that the source file can tell whether it is being
8290 # built for inclusion in a dll (and should export symbols for example).
8291 lt_prog_compiler_pic='-DDLL_EXPORT'
8294 hpux9* | hpux10* | hpux11*)
8295 lt_prog_compiler_wl='-Wl,'
8296 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8297 # not for PA HP-UX.
8298 case $host_cpu in
8299 hppa*64*|ia64*)
8300 # +Z the default
8303 lt_prog_compiler_pic='+Z'
8305 esac
8306 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8307 lt_prog_compiler_static='${wl}-a ${wl}archive'
8310 irix5* | irix6* | nonstopux*)
8311 lt_prog_compiler_wl='-Wl,'
8312 # PIC (with -KPIC) is the default.
8313 lt_prog_compiler_static='-non_shared'
8316 linux* | k*bsd*-gnu)
8317 case $cc_basename in
8318 # old Intel for x86_64 which still supported -KPIC.
8319 ecc*)
8320 lt_prog_compiler_wl='-Wl,'
8321 lt_prog_compiler_pic='-KPIC'
8322 lt_prog_compiler_static='-static'
8324 # icc used to be incompatible with GCC.
8325 # ICC 10 doesn't accept -KPIC any more.
8326 icc* | ifort*)
8327 lt_prog_compiler_wl='-Wl,'
8328 lt_prog_compiler_pic='-fPIC'
8329 lt_prog_compiler_static='-static'
8331 # Lahey Fortran 8.1.
8332 lf95*)
8333 lt_prog_compiler_wl='-Wl,'
8334 lt_prog_compiler_pic='--shared'
8335 lt_prog_compiler_static='--static'
8337 pgcc* | pgf77* | pgf90* | pgf95*)
8338 # Portland Group compilers (*not* the Pentium gcc compiler,
8339 # which looks to be a dead project)
8340 lt_prog_compiler_wl='-Wl,'
8341 lt_prog_compiler_pic='-fpic'
8342 lt_prog_compiler_static='-Bstatic'
8344 ccc*)
8345 lt_prog_compiler_wl='-Wl,'
8346 # All Alpha code is PIC.
8347 lt_prog_compiler_static='-non_shared'
8349 xl*)
8350 # IBM XL C 8.0/Fortran 10.1 on PPC
8351 lt_prog_compiler_wl='-Wl,'
8352 lt_prog_compiler_pic='-qpic'
8353 lt_prog_compiler_static='-qstaticlink'
8356 case `$CC -V 2>&1 | sed 5q` in
8357 *Sun\ C*)
8358 # Sun C 5.9
8359 lt_prog_compiler_pic='-KPIC'
8360 lt_prog_compiler_static='-Bstatic'
8361 lt_prog_compiler_wl='-Wl,'
8363 *Sun\ F*)
8364 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8365 lt_prog_compiler_pic='-KPIC'
8366 lt_prog_compiler_static='-Bstatic'
8367 lt_prog_compiler_wl=''
8369 esac
8371 esac
8374 newsos6)
8375 lt_prog_compiler_pic='-KPIC'
8376 lt_prog_compiler_static='-Bstatic'
8379 *nto* | *qnx*)
8380 # QNX uses GNU C++, but need to define -shared option too, otherwise
8381 # it will coredump.
8382 lt_prog_compiler_pic='-fPIC -shared'
8385 osf3* | osf4* | osf5*)
8386 lt_prog_compiler_wl='-Wl,'
8387 # All OSF/1 code is PIC.
8388 lt_prog_compiler_static='-non_shared'
8391 rdos*)
8392 lt_prog_compiler_static='-non_shared'
8395 solaris*)
8396 lt_prog_compiler_pic='-KPIC'
8397 lt_prog_compiler_static='-Bstatic'
8398 case $cc_basename in
8399 f77* | f90* | f95*)
8400 lt_prog_compiler_wl='-Qoption ld ';;
8402 lt_prog_compiler_wl='-Wl,';;
8403 esac
8406 sunos4*)
8407 lt_prog_compiler_wl='-Qoption ld '
8408 lt_prog_compiler_pic='-PIC'
8409 lt_prog_compiler_static='-Bstatic'
8412 sysv4 | sysv4.2uw2* | sysv4.3*)
8413 lt_prog_compiler_wl='-Wl,'
8414 lt_prog_compiler_pic='-KPIC'
8415 lt_prog_compiler_static='-Bstatic'
8418 sysv4*MP*)
8419 if test -d /usr/nec ;then
8420 lt_prog_compiler_pic='-Kconform_pic'
8421 lt_prog_compiler_static='-Bstatic'
8425 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8426 lt_prog_compiler_wl='-Wl,'
8427 lt_prog_compiler_pic='-KPIC'
8428 lt_prog_compiler_static='-Bstatic'
8431 unicos*)
8432 lt_prog_compiler_wl='-Wl,'
8433 lt_prog_compiler_can_build_shared=no
8436 uts4*)
8437 lt_prog_compiler_pic='-pic'
8438 lt_prog_compiler_static='-Bstatic'
8442 lt_prog_compiler_can_build_shared=no
8444 esac
8447 case $host_os in
8448 # For platforms which do not support PIC, -DPIC is meaningless:
8449 *djgpp*)
8450 lt_prog_compiler_pic=
8453 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8455 esac
8456 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8457 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8465 # Check to make sure the PIC flag actually works.
8467 if test -n "$lt_prog_compiler_pic"; then
8468 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8469 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8470 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
8472 else
8473 lt_cv_prog_compiler_pic_works=no
8474 ac_outfile=conftest.$ac_objext
8475 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8476 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8477 # Insert the option either (1) after the last *FLAGS variable, or
8478 # (2) before a word containing "conftest.", or (3) at the end.
8479 # Note that $ac_compile itself does not contain backslashes and begins
8480 # with a dollar sign (not a hyphen), so the echo should work correctly.
8481 # The option is referenced via a variable to avoid confusing sed.
8482 lt_compile=`echo "$ac_compile" | $SED \
8483 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8484 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8485 -e 's:$: $lt_compiler_flag:'`
8486 (eval echo "\"\$as_me:8486: $lt_compile\"" >&5)
8487 (eval "$lt_compile" 2>conftest.err)
8488 ac_status=$?
8489 cat conftest.err >&5
8490 echo "$as_me:8490: \$? = $ac_status" >&5
8491 if (exit $ac_status) && test -s "$ac_outfile"; then
8492 # The compiler can only warn and ignore the option if not recognized
8493 # So say no if there are warnings other than the usual output.
8494 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8495 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8496 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8497 lt_cv_prog_compiler_pic_works=yes
8500 $RM conftest*
8503 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8504 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
8506 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8507 case $lt_prog_compiler_pic in
8508 "" | " "*) ;;
8509 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8510 esac
8511 else
8512 lt_prog_compiler_pic=
8513 lt_prog_compiler_can_build_shared=no
8524 # Check to make sure the static flag actually works.
8526 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8527 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8528 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8529 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8530 echo $ECHO_N "(cached) $ECHO_C" >&6
8531 else
8532 lt_cv_prog_compiler_static_works=no
8533 save_LDFLAGS="$LDFLAGS"
8534 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8535 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8536 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8537 # The linker can only warn and ignore the option if not recognized
8538 # So say no if there are warnings
8539 if test -s conftest.err; then
8540 # Append any errors to the config.log.
8541 cat conftest.err 1>&5
8542 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8543 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8544 if diff conftest.exp conftest.er2 >/dev/null; then
8545 lt_cv_prog_compiler_static_works=yes
8547 else
8548 lt_cv_prog_compiler_static_works=yes
8551 $RM -r conftest*
8552 LDFLAGS="$save_LDFLAGS"
8555 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8556 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
8558 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8560 else
8561 lt_prog_compiler_static=
8570 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8571 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8572 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8573 echo $ECHO_N "(cached) $ECHO_C" >&6
8574 else
8575 lt_cv_prog_compiler_c_o=no
8576 $RM -r conftest 2>/dev/null
8577 mkdir conftest
8578 cd conftest
8579 mkdir out
8580 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8582 lt_compiler_flag="-o out/conftest2.$ac_objext"
8583 # Insert the option either (1) after the last *FLAGS variable, or
8584 # (2) before a word containing "conftest.", or (3) at the end.
8585 # Note that $ac_compile itself does not contain backslashes and begins
8586 # with a dollar sign (not a hyphen), so the echo should work correctly.
8587 lt_compile=`echo "$ac_compile" | $SED \
8588 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8589 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8590 -e 's:$: $lt_compiler_flag:'`
8591 (eval echo "\"\$as_me:8591: $lt_compile\"" >&5)
8592 (eval "$lt_compile" 2>out/conftest.err)
8593 ac_status=$?
8594 cat out/conftest.err >&5
8595 echo "$as_me:8595: \$? = $ac_status" >&5
8596 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8597 then
8598 # The compiler can only warn and ignore the option if not recognized
8599 # So say no if there are warnings
8600 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8601 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8602 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8603 lt_cv_prog_compiler_c_o=yes
8606 chmod u+w . 2>&5
8607 $RM conftest*
8608 # SGI C++ compiler will create directory out/ii_files/ for
8609 # template instantiation
8610 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8611 $RM out/* && rmdir out
8612 cd ..
8613 $RM -r conftest
8614 $RM conftest*
8617 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8618 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8625 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8626 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8627 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8628 echo $ECHO_N "(cached) $ECHO_C" >&6
8629 else
8630 lt_cv_prog_compiler_c_o=no
8631 $RM -r conftest 2>/dev/null
8632 mkdir conftest
8633 cd conftest
8634 mkdir out
8635 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8637 lt_compiler_flag="-o out/conftest2.$ac_objext"
8638 # Insert the option either (1) after the last *FLAGS variable, or
8639 # (2) before a word containing "conftest.", or (3) at the end.
8640 # Note that $ac_compile itself does not contain backslashes and begins
8641 # with a dollar sign (not a hyphen), so the echo should work correctly.
8642 lt_compile=`echo "$ac_compile" | $SED \
8643 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8644 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8645 -e 's:$: $lt_compiler_flag:'`
8646 (eval echo "\"\$as_me:8646: $lt_compile\"" >&5)
8647 (eval "$lt_compile" 2>out/conftest.err)
8648 ac_status=$?
8649 cat out/conftest.err >&5
8650 echo "$as_me:8650: \$? = $ac_status" >&5
8651 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8652 then
8653 # The compiler can only warn and ignore the option if not recognized
8654 # So say no if there are warnings
8655 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8656 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8657 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8658 lt_cv_prog_compiler_c_o=yes
8661 chmod u+w . 2>&5
8662 $RM conftest*
8663 # SGI C++ compiler will create directory out/ii_files/ for
8664 # template instantiation
8665 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8666 $RM out/* && rmdir out
8667 cd ..
8668 $RM -r conftest
8669 $RM conftest*
8672 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8673 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8678 hard_links="nottested"
8679 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8680 # do not overwrite the value of need_locks provided by the user
8681 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8682 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8683 hard_links=yes
8684 $RM conftest*
8685 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8686 touch conftest.a
8687 ln conftest.a conftest.b 2>&5 || hard_links=no
8688 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8689 echo "$as_me:$LINENO: result: $hard_links" >&5
8690 echo "${ECHO_T}$hard_links" >&6
8691 if test "$hard_links" = no; then
8692 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8693 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8694 need_locks=warn
8696 else
8697 need_locks=no
8705 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8706 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8708 runpath_var=
8709 allow_undefined_flag=
8710 always_export_symbols=no
8711 archive_cmds=
8712 archive_expsym_cmds=
8713 compiler_needs_object=no
8714 enable_shared_with_static_runtimes=no
8715 export_dynamic_flag_spec=
8716 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8717 hardcode_automatic=no
8718 hardcode_direct=no
8719 hardcode_direct_absolute=no
8720 hardcode_libdir_flag_spec=
8721 hardcode_libdir_flag_spec_ld=
8722 hardcode_libdir_separator=
8723 hardcode_minus_L=no
8724 hardcode_shlibpath_var=unsupported
8725 inherit_rpath=no
8726 link_all_deplibs=unknown
8727 module_cmds=
8728 module_expsym_cmds=
8729 old_archive_from_new_cmds=
8730 old_archive_from_expsyms_cmds=
8731 thread_safe_flag_spec=
8732 whole_archive_flag_spec=
8733 # include_expsyms should be a list of space-separated symbols to be *always*
8734 # included in the symbol list
8735 include_expsyms=
8736 # exclude_expsyms can be an extended regexp of symbols to exclude
8737 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8738 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8739 # as well as any symbol that contains `d'.
8740 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8741 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8742 # platforms (ab)use it in PIC code, but their linkers get confused if
8743 # the symbol is explicitly referenced. Since portable code cannot
8744 # rely on this symbol name, it's probably fine to never include it in
8745 # preloaded symbol tables.
8746 # Exclude shared library initialization/finalization symbols.
8747 extract_expsyms_cmds=
8749 case $host_os in
8750 cygwin* | mingw* | pw32* | cegcc*)
8751 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8752 # When not using gcc, we currently assume that we are using
8753 # Microsoft Visual C++.
8754 if test "$GCC" != yes; then
8755 with_gnu_ld=no
8758 interix*)
8759 # we just hope/assume this is gcc and not c89 (= MSVC++)
8760 with_gnu_ld=yes
8762 openbsd*)
8763 with_gnu_ld=no
8765 esac
8767 ld_shlibs=yes
8768 if test "$with_gnu_ld" = yes; then
8769 # If archive_cmds runs LD, not CC, wlarc should be empty
8770 wlarc='${wl}'
8772 # Set some defaults for GNU ld with shared library support. These
8773 # are reset later if shared libraries are not supported. Putting them
8774 # here allows them to be overridden if necessary.
8775 runpath_var=LD_RUN_PATH
8776 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8777 export_dynamic_flag_spec='${wl}--export-dynamic'
8778 # ancient GNU ld didn't support --whole-archive et. al.
8779 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8780 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8781 else
8782 whole_archive_flag_spec=
8784 supports_anon_versioning=no
8785 case `$LD -v 2>&1` in
8786 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8787 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8788 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8789 *\ 2.11.*) ;; # other 2.11 versions
8790 *) supports_anon_versioning=yes ;;
8791 esac
8793 # See if GNU ld supports shared libraries.
8794 case $host_os in
8795 aix[3-9]*)
8796 # On AIX/PPC, the GNU linker is very broken
8797 if test "$host_cpu" != ia64; then
8798 ld_shlibs=no
8799 cat <<_LT_EOF 1>&2
8801 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8802 *** to be unable to reliably create shared libraries on AIX.
8803 *** Therefore, libtool is disabling shared libraries support. If you
8804 *** really care for shared libraries, you may want to modify your PATH
8805 *** so that a non-GNU linker is found, and then restart.
8807 _LT_EOF
8811 amigaos*)
8812 case $host_cpu in
8813 powerpc)
8814 # see comment about AmigaOS4 .so support
8815 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8816 archive_expsym_cmds=''
8818 m68k)
8819 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)'
8820 hardcode_libdir_flag_spec='-L$libdir'
8821 hardcode_minus_L=yes
8823 esac
8826 beos*)
8827 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8828 allow_undefined_flag=unsupported
8829 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8830 # support --undefined. This deserves some investigation. FIXME
8831 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8832 else
8833 ld_shlibs=no
8837 cygwin* | mingw* | pw32* | cegcc*)
8838 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8839 # as there is no search path for DLLs.
8840 hardcode_libdir_flag_spec='-L$libdir'
8841 allow_undefined_flag=unsupported
8842 always_export_symbols=no
8843 enable_shared_with_static_runtimes=yes
8844 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8846 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8847 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8848 # If the export-symbols file already is a .def file (1st line
8849 # is EXPORTS), use it as is; otherwise, prepend...
8850 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8851 cp $export_symbols $output_objdir/$soname.def;
8852 else
8853 echo EXPORTS > $output_objdir/$soname.def;
8854 cat $export_symbols >> $output_objdir/$soname.def;
8856 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8857 else
8858 ld_shlibs=no
8862 interix[3-9]*)
8863 hardcode_direct=no
8864 hardcode_shlibpath_var=no
8865 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8866 export_dynamic_flag_spec='${wl}-E'
8867 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8868 # Instead, shared libraries are loaded at an image base (0x10000000 by
8869 # default) and relocated if they conflict, which is a slow very memory
8870 # consuming and fragmenting process. To avoid this, we pick a random,
8871 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8872 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8873 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8874 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'
8877 gnu* | linux* | tpf* | k*bsd*-gnu)
8878 tmp_diet=no
8879 if test "$host_os" = linux-dietlibc; then
8880 case $cc_basename in
8881 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8882 esac
8884 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8885 && test "$tmp_diet" = no
8886 then
8887 tmp_addflag=
8888 tmp_sharedflag='-shared'
8889 case $cc_basename,$host_cpu in
8890 pgcc*) # Portland Group C compiler
8891 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'
8892 tmp_addflag=' $pic_flag'
8894 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8895 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'
8896 tmp_addflag=' $pic_flag -Mnomain' ;;
8897 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8898 tmp_addflag=' -i_dynamic' ;;
8899 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8900 tmp_addflag=' -i_dynamic -nofor_main' ;;
8901 ifc* | ifort*) # Intel Fortran compiler
8902 tmp_addflag=' -nofor_main' ;;
8903 lf95*) # Lahey Fortran 8.1
8904 whole_archive_flag_spec=
8905 tmp_sharedflag='--shared' ;;
8906 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8907 tmp_sharedflag='-qmkshrobj'
8908 tmp_addflag= ;;
8909 esac
8910 case `$CC -V 2>&1 | sed 5q` in
8911 *Sun\ C*) # Sun C 5.9
8912 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'
8913 compiler_needs_object=yes
8914 tmp_sharedflag='-G' ;;
8915 *Sun\ F*) # Sun Fortran 8.3
8916 tmp_sharedflag='-G' ;;
8917 esac
8918 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8920 if test "x$supports_anon_versioning" = xyes; then
8921 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8922 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8923 echo "local: *; };" >> $output_objdir/$libname.ver~
8924 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8927 case $cc_basename in
8928 xlf*)
8929 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8930 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8931 hardcode_libdir_flag_spec=
8932 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8933 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8934 if test "x$supports_anon_versioning" = xyes; then
8935 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8936 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8937 echo "local: *; };" >> $output_objdir/$libname.ver~
8938 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8941 esac
8942 else
8943 ld_shlibs=no
8947 netbsd*)
8948 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8949 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8950 wlarc=
8951 else
8952 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8953 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8957 solaris*)
8958 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8959 ld_shlibs=no
8960 cat <<_LT_EOF 1>&2
8962 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8963 *** create shared libraries on Solaris systems. Therefore, libtool
8964 *** is disabling shared libraries support. We urge you to upgrade GNU
8965 *** binutils to release 2.9.1 or newer. Another option is to modify
8966 *** your PATH or compiler configuration so that the native linker is
8967 *** used, and then restart.
8969 _LT_EOF
8970 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8971 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8972 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8973 else
8974 ld_shlibs=no
8978 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8979 case `$LD -v 2>&1` in
8980 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8981 ld_shlibs=no
8982 cat <<_LT_EOF 1>&2
8984 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8985 *** reliably create shared libraries on SCO systems. Therefore, libtool
8986 *** is disabling shared libraries support. We urge you to upgrade GNU
8987 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8988 *** your PATH or compiler configuration so that the native linker is
8989 *** used, and then restart.
8991 _LT_EOF
8994 # For security reasons, it is highly recommended that you always
8995 # use absolute paths for naming shared libraries, and exclude the
8996 # DT_RUNPATH tag from executables and libraries. But doing so
8997 # requires that you compile everything twice, which is a pain.
8998 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8999 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9000 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9001 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9002 else
9003 ld_shlibs=no
9006 esac
9009 sunos4*)
9010 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9011 wlarc=
9012 hardcode_direct=yes
9013 hardcode_shlibpath_var=no
9017 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9018 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9019 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9020 else
9021 ld_shlibs=no
9024 esac
9026 if test "$ld_shlibs" = no; then
9027 runpath_var=
9028 hardcode_libdir_flag_spec=
9029 export_dynamic_flag_spec=
9030 whole_archive_flag_spec=
9032 else
9033 # PORTME fill in a description of your system's linker (not GNU ld)
9034 case $host_os in
9035 aix3*)
9036 allow_undefined_flag=unsupported
9037 always_export_symbols=yes
9038 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'
9039 # Note: this linker hardcodes the directories in LIBPATH if there
9040 # are no directories specified by -L.
9041 hardcode_minus_L=yes
9042 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9043 # Neither direct hardcoding nor static linking is supported with a
9044 # broken collect2.
9045 hardcode_direct=unsupported
9049 aix[4-9]*)
9050 if test "$host_cpu" = ia64; then
9051 # On IA64, the linker does run time linking by default, so we don't
9052 # have to do anything special.
9053 aix_use_runtimelinking=no
9054 exp_sym_flag='-Bexport'
9055 no_entry_flag=""
9056 else
9057 # If we're using GNU nm, then we don't want the "-C" option.
9058 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9059 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9060 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'
9061 else
9062 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'
9064 aix_use_runtimelinking=no
9066 # Test if we are trying to use run time linking or normal
9067 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9068 # need to do runtime linking.
9069 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9070 for ld_flag in $LDFLAGS; do
9071 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9072 aix_use_runtimelinking=yes
9073 break
9075 done
9077 esac
9079 exp_sym_flag='-bexport'
9080 no_entry_flag='-bnoentry'
9083 # When large executables or shared objects are built, AIX ld can
9084 # have problems creating the table of contents. If linking a library
9085 # or program results in "error TOC overflow" add -mminimal-toc to
9086 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9087 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9089 archive_cmds=''
9090 hardcode_direct=yes
9091 hardcode_direct_absolute=yes
9092 hardcode_libdir_separator=':'
9093 link_all_deplibs=yes
9094 file_list_spec='${wl}-f,'
9096 if test "$GCC" = yes; then
9097 case $host_os in aix4.[012]|aix4.[012].*)
9098 # We only want to do this on AIX 4.2 and lower, the check
9099 # below for broken collect2 doesn't work under 4.3+
9100 collect2name=`${CC} -print-prog-name=collect2`
9101 if test -f "$collect2name" &&
9102 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9103 then
9104 # We have reworked collect2
9106 else
9107 # We have old collect2
9108 hardcode_direct=unsupported
9109 # It fails to find uninstalled libraries when the uninstalled
9110 # path is not listed in the libpath. Setting hardcode_minus_L
9111 # to unsupported forces relinking
9112 hardcode_minus_L=yes
9113 hardcode_libdir_flag_spec='-L$libdir'
9114 hardcode_libdir_separator=
9117 esac
9118 shared_flag='-shared'
9119 if test "$aix_use_runtimelinking" = yes; then
9120 shared_flag="$shared_flag "'${wl}-G'
9122 else
9123 # not using gcc
9124 if test "$host_cpu" = ia64; then
9125 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9126 # chokes on -Wl,-G. The following line is correct:
9127 shared_flag='-G'
9128 else
9129 if test "$aix_use_runtimelinking" = yes; then
9130 shared_flag='${wl}-G'
9131 else
9132 shared_flag='${wl}-bM:SRE'
9137 export_dynamic_flag_spec='${wl}-bexpall'
9138 # It seems that -bexpall does not export symbols beginning with
9139 # underscore (_), so it is better to generate a list of symbols to export.
9140 always_export_symbols=yes
9141 if test "$aix_use_runtimelinking" = yes; then
9142 # Warning - without using the other runtime loading flags (-brtl),
9143 # -berok will link without error, but may produce a broken library.
9144 allow_undefined_flag='-berok'
9145 # Determine the default libpath from the value encoded in an
9146 # empty executable.
9147 cat >conftest.$ac_ext <<_ACEOF
9148 /* confdefs.h. */
9149 _ACEOF
9150 cat confdefs.h >>conftest.$ac_ext
9151 cat >>conftest.$ac_ext <<_ACEOF
9152 /* end confdefs.h. */
9155 main ()
9159 return 0;
9161 _ACEOF
9162 rm -f conftest.$ac_objext conftest$ac_exeext
9163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9164 (eval $ac_link) 2>conftest.er1
9165 ac_status=$?
9166 grep -v '^ *+' conftest.er1 >conftest.err
9167 rm -f conftest.er1
9168 cat conftest.err >&5
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); } &&
9171 { ac_try='test -z "$ac_c_werror_flag"
9172 || test ! -s conftest.err'
9173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9174 (eval $ac_try) 2>&5
9175 ac_status=$?
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); }; } &&
9178 { ac_try='test -s conftest$ac_exeext'
9179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9180 (eval $ac_try) 2>&5
9181 ac_status=$?
9182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183 (exit $ac_status); }; }; then
9185 lt_aix_libpath_sed='
9186 /Import File Strings/,/^$/ {
9187 /^0/ {
9188 s/^0 *\(.*\)$/\1/
9192 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9193 # Check for a 64-bit object if we didn't find anything.
9194 if test -z "$aix_libpath"; then
9195 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9197 else
9198 echo "$as_me: failed program was:" >&5
9199 sed 's/^/| /' conftest.$ac_ext >&5
9202 rm -f conftest.err conftest.$ac_objext \
9203 conftest$ac_exeext conftest.$ac_ext
9204 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9206 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9207 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"
9208 else
9209 if test "$host_cpu" = ia64; then
9210 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9211 allow_undefined_flag="-z nodefs"
9212 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"
9213 else
9214 # Determine the default libpath from the value encoded in an
9215 # empty executable.
9216 cat >conftest.$ac_ext <<_ACEOF
9217 /* confdefs.h. */
9218 _ACEOF
9219 cat confdefs.h >>conftest.$ac_ext
9220 cat >>conftest.$ac_ext <<_ACEOF
9221 /* end confdefs.h. */
9224 main ()
9228 return 0;
9230 _ACEOF
9231 rm -f conftest.$ac_objext conftest$ac_exeext
9232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9233 (eval $ac_link) 2>conftest.er1
9234 ac_status=$?
9235 grep -v '^ *+' conftest.er1 >conftest.err
9236 rm -f conftest.er1
9237 cat conftest.err >&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); } &&
9240 { ac_try='test -z "$ac_c_werror_flag"
9241 || test ! -s conftest.err'
9242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9243 (eval $ac_try) 2>&5
9244 ac_status=$?
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); }; } &&
9247 { ac_try='test -s conftest$ac_exeext'
9248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9249 (eval $ac_try) 2>&5
9250 ac_status=$?
9251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252 (exit $ac_status); }; }; then
9254 lt_aix_libpath_sed='
9255 /Import File Strings/,/^$/ {
9256 /^0/ {
9257 s/^0 *\(.*\)$/\1/
9261 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9262 # Check for a 64-bit object if we didn't find anything.
9263 if test -z "$aix_libpath"; then
9264 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9266 else
9267 echo "$as_me: failed program was:" >&5
9268 sed 's/^/| /' conftest.$ac_ext >&5
9271 rm -f conftest.err conftest.$ac_objext \
9272 conftest$ac_exeext conftest.$ac_ext
9273 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9275 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9276 # Warning - without using the other run time loading flags,
9277 # -berok will link without error, but may produce a broken library.
9278 no_undefined_flag=' ${wl}-bernotok'
9279 allow_undefined_flag=' ${wl}-berok'
9280 # Exported symbols can be pulled into shared objects from archives
9281 whole_archive_flag_spec='$convenience'
9282 archive_cmds_need_lc=yes
9283 # This is similar to how AIX traditionally builds its shared libraries.
9284 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'
9289 amigaos*)
9290 case $host_cpu in
9291 powerpc)
9292 # see comment about AmigaOS4 .so support
9293 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9294 archive_expsym_cmds=''
9296 m68k)
9297 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)'
9298 hardcode_libdir_flag_spec='-L$libdir'
9299 hardcode_minus_L=yes
9301 esac
9304 bsdi[45]*)
9305 export_dynamic_flag_spec=-rdynamic
9308 cygwin* | mingw* | pw32* | cegcc*)
9309 # When not using gcc, we currently assume that we are using
9310 # Microsoft Visual C++.
9311 # hardcode_libdir_flag_spec is actually meaningless, as there is
9312 # no search path for DLLs.
9313 hardcode_libdir_flag_spec=' '
9314 allow_undefined_flag=unsupported
9315 # Tell ltmain to make .lib files, not .a files.
9316 libext=lib
9317 # Tell ltmain to make .dll files, not .so files.
9318 shrext_cmds=".dll"
9319 # FIXME: Setting linknames here is a bad hack.
9320 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9321 # The linker will automatically build a .lib file if we build a DLL.
9322 old_archive_from_new_cmds='true'
9323 # FIXME: Should let the user specify the lib program.
9324 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9325 fix_srcfile_path='`cygpath -w "$srcfile"`'
9326 enable_shared_with_static_runtimes=yes
9329 darwin* | rhapsody*)
9332 archive_cmds_need_lc=no
9333 hardcode_direct=no
9334 hardcode_automatic=yes
9335 hardcode_shlibpath_var=unsupported
9336 whole_archive_flag_spec=''
9337 link_all_deplibs=yes
9338 allow_undefined_flag="$_lt_dar_allow_undefined"
9339 case $cc_basename in
9340 ifort*) _lt_dar_can_shared=yes ;;
9341 *) _lt_dar_can_shared=$GCC ;;
9342 esac
9343 if test "$_lt_dar_can_shared" = "yes"; then
9344 output_verbose_link_cmd=echo
9345 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9346 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9347 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 ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9348 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9350 else
9351 ld_shlibs=no
9356 dgux*)
9357 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9358 hardcode_libdir_flag_spec='-L$libdir'
9359 hardcode_shlibpath_var=no
9362 freebsd1*)
9363 ld_shlibs=no
9366 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9367 # support. Future versions do this automatically, but an explicit c++rt0.o
9368 # does not break anything, and helps significantly (at the cost of a little
9369 # extra space).
9370 freebsd2.2*)
9371 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9372 hardcode_libdir_flag_spec='-R$libdir'
9373 hardcode_direct=yes
9374 hardcode_shlibpath_var=no
9377 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9378 freebsd2*)
9379 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9380 hardcode_direct=yes
9381 hardcode_minus_L=yes
9382 hardcode_shlibpath_var=no
9385 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9386 freebsd* | dragonfly*)
9387 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9388 hardcode_libdir_flag_spec='-R$libdir'
9389 hardcode_direct=yes
9390 hardcode_shlibpath_var=no
9393 hpux9*)
9394 if test "$GCC" = yes; then
9395 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'
9396 else
9397 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'
9399 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9400 hardcode_libdir_separator=:
9401 hardcode_direct=yes
9403 # hardcode_minus_L: Not really in the search PATH,
9404 # but as the default location of the library.
9405 hardcode_minus_L=yes
9406 export_dynamic_flag_spec='${wl}-E'
9409 hpux10*)
9410 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9411 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9412 else
9413 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9415 if test "$with_gnu_ld" = no; then
9416 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9417 hardcode_libdir_flag_spec_ld='+b $libdir'
9418 hardcode_libdir_separator=:
9419 hardcode_direct=yes
9420 hardcode_direct_absolute=yes
9421 export_dynamic_flag_spec='${wl}-E'
9422 # hardcode_minus_L: Not really in the search PATH,
9423 # but as the default location of the library.
9424 hardcode_minus_L=yes
9428 hpux11*)
9429 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9430 case $host_cpu in
9431 hppa*64*)
9432 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9434 ia64*)
9435 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9438 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9440 esac
9441 else
9442 case $host_cpu in
9443 hppa*64*)
9444 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9446 ia64*)
9447 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9450 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9452 esac
9454 if test "$with_gnu_ld" = no; then
9455 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9456 hardcode_libdir_separator=:
9458 case $host_cpu in
9459 hppa*64*|ia64*)
9460 hardcode_direct=no
9461 hardcode_shlibpath_var=no
9464 hardcode_direct=yes
9465 hardcode_direct_absolute=yes
9466 export_dynamic_flag_spec='${wl}-E'
9468 # hardcode_minus_L: Not really in the search PATH,
9469 # but as the default location of the library.
9470 hardcode_minus_L=yes
9472 esac
9476 irix5* | irix6* | nonstopux*)
9477 if test "$GCC" = yes; then
9478 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'
9479 # Try to use the -exported_symbol ld option, if it does not
9480 # work, assume that -exports_file does not work either and
9481 # implicitly export all symbols.
9482 save_LDFLAGS="$LDFLAGS"
9483 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9484 cat >conftest.$ac_ext <<_ACEOF
9485 int foo(void) {}
9486 _ACEOF
9487 rm -f conftest.$ac_objext conftest$ac_exeext
9488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9489 (eval $ac_link) 2>conftest.er1
9490 ac_status=$?
9491 grep -v '^ *+' conftest.er1 >conftest.err
9492 rm -f conftest.er1
9493 cat conftest.err >&5
9494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495 (exit $ac_status); } &&
9496 { ac_try='test -z "$ac_c_werror_flag"
9497 || test ! -s conftest.err'
9498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9499 (eval $ac_try) 2>&5
9500 ac_status=$?
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); }; } &&
9503 { ac_try='test -s conftest$ac_exeext'
9504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9505 (eval $ac_try) 2>&5
9506 ac_status=$?
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); }; }; then
9509 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'
9511 else
9512 echo "$as_me: failed program was:" >&5
9513 sed 's/^/| /' conftest.$ac_ext >&5
9516 rm -f conftest.err conftest.$ac_objext \
9517 conftest$ac_exeext conftest.$ac_ext
9518 LDFLAGS="$save_LDFLAGS"
9519 else
9520 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'
9521 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'
9523 archive_cmds_need_lc='no'
9524 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9525 hardcode_libdir_separator=:
9526 inherit_rpath=yes
9527 link_all_deplibs=yes
9530 netbsd*)
9531 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9532 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9533 else
9534 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9536 hardcode_libdir_flag_spec='-R$libdir'
9537 hardcode_direct=yes
9538 hardcode_shlibpath_var=no
9541 newsos6)
9542 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9543 hardcode_direct=yes
9544 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9545 hardcode_libdir_separator=:
9546 hardcode_shlibpath_var=no
9549 *nto* | *qnx*)
9552 openbsd*)
9553 if test -f /usr/libexec/ld.so; then
9554 hardcode_direct=yes
9555 hardcode_shlibpath_var=no
9556 hardcode_direct_absolute=yes
9557 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9558 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9559 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9560 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9561 export_dynamic_flag_spec='${wl}-E'
9562 else
9563 case $host_os in
9564 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9565 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9566 hardcode_libdir_flag_spec='-R$libdir'
9569 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9570 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9572 esac
9574 else
9575 ld_shlibs=no
9579 os2*)
9580 hardcode_libdir_flag_spec='-L$libdir'
9581 hardcode_minus_L=yes
9582 allow_undefined_flag=unsupported
9583 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'
9584 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9587 osf3*)
9588 if test "$GCC" = yes; then
9589 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9590 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'
9591 else
9592 allow_undefined_flag=' -expect_unresolved \*'
9593 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'
9595 archive_cmds_need_lc='no'
9596 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9597 hardcode_libdir_separator=:
9600 osf4* | osf5*) # as osf3* with the addition of -msym flag
9601 if test "$GCC" = yes; then
9602 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9603 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'
9604 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9605 else
9606 allow_undefined_flag=' -expect_unresolved \*'
9607 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'
9608 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~
9609 $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'
9611 # Both c and cxx compiler support -rpath directly
9612 hardcode_libdir_flag_spec='-rpath $libdir'
9614 archive_cmds_need_lc='no'
9615 hardcode_libdir_separator=:
9618 solaris*)
9619 no_undefined_flag=' -z defs'
9620 if test "$GCC" = yes; then
9621 wlarc='${wl}'
9622 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9623 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9624 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9625 else
9626 case `$CC -V 2>&1` in
9627 *"Compilers 5.0"*)
9628 wlarc=''
9629 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9630 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9631 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9634 wlarc='${wl}'
9635 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9636 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9637 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9639 esac
9641 hardcode_libdir_flag_spec='-R$libdir'
9642 hardcode_shlibpath_var=no
9643 case $host_os in
9644 solaris2.[0-5] | solaris2.[0-5].*) ;;
9646 # The compiler driver will combine and reorder linker options,
9647 # but understands `-z linker_flag'. GCC discards it without `$wl',
9648 # but is careful enough not to reorder.
9649 # Supported since Solaris 2.6 (maybe 2.5.1?)
9650 if test "$GCC" = yes; then
9651 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9652 else
9653 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9656 esac
9657 link_all_deplibs=yes
9660 sunos4*)
9661 if test "x$host_vendor" = xsequent; then
9662 # Use $CC to link under sequent, because it throws in some extra .o
9663 # files that make .init and .fini sections work.
9664 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9665 else
9666 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9668 hardcode_libdir_flag_spec='-L$libdir'
9669 hardcode_direct=yes
9670 hardcode_minus_L=yes
9671 hardcode_shlibpath_var=no
9674 sysv4)
9675 case $host_vendor in
9676 sni)
9677 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9678 hardcode_direct=yes # is this really true???
9680 siemens)
9681 ## LD is ld it makes a PLAMLIB
9682 ## CC just makes a GrossModule.
9683 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9684 reload_cmds='$CC -r -o $output$reload_objs'
9685 hardcode_direct=no
9687 motorola)
9688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9689 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9691 esac
9692 runpath_var='LD_RUN_PATH'
9693 hardcode_shlibpath_var=no
9696 sysv4.3*)
9697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9698 hardcode_shlibpath_var=no
9699 export_dynamic_flag_spec='-Bexport'
9702 sysv4*MP*)
9703 if test -d /usr/nec; then
9704 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9705 hardcode_shlibpath_var=no
9706 runpath_var=LD_RUN_PATH
9707 hardcode_runpath_var=yes
9708 ld_shlibs=yes
9712 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9713 no_undefined_flag='${wl}-z,text'
9714 archive_cmds_need_lc=no
9715 hardcode_shlibpath_var=no
9716 runpath_var='LD_RUN_PATH'
9718 if test "$GCC" = yes; then
9719 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9720 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9721 else
9722 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9723 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9727 sysv5* | sco3.2v5* | sco5v6*)
9728 # Note: We can NOT use -z defs as we might desire, because we do not
9729 # link with -lc, and that would cause any symbols used from libc to
9730 # always be unresolved, which means just about no library would
9731 # ever link correctly. If we're not using GNU ld we use -z text
9732 # though, which does catch some bad symbols but isn't as heavy-handed
9733 # as -z defs.
9734 no_undefined_flag='${wl}-z,text'
9735 allow_undefined_flag='${wl}-z,nodefs'
9736 archive_cmds_need_lc=no
9737 hardcode_shlibpath_var=no
9738 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9739 hardcode_libdir_separator=':'
9740 link_all_deplibs=yes
9741 export_dynamic_flag_spec='${wl}-Bexport'
9742 runpath_var='LD_RUN_PATH'
9744 if test "$GCC" = yes; then
9745 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9746 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9747 else
9748 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9749 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9753 uts4*)
9754 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9755 hardcode_libdir_flag_spec='-L$libdir'
9756 hardcode_shlibpath_var=no
9760 ld_shlibs=no
9762 esac
9764 if test x$host_vendor = xsni; then
9765 case $host in
9766 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9767 export_dynamic_flag_spec='${wl}-Blargedynsym'
9769 esac
9773 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9774 echo "${ECHO_T}$ld_shlibs" >&6
9775 test "$ld_shlibs" = no && can_build_shared=no
9777 with_gnu_ld=$with_gnu_ld
9794 # Do we need to explicitly link libc?
9796 case "x$archive_cmds_need_lc" in
9797 x|xyes)
9798 # Assume -lc should be added
9799 archive_cmds_need_lc=yes
9801 if test "$enable_shared" = yes && test "$GCC" = yes; then
9802 case $archive_cmds in
9803 *'~'*)
9804 # FIXME: we may have to deal with multi-command sequences.
9806 '$CC '*)
9807 # Test whether the compiler implicitly links with -lc since on some
9808 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9809 # to ld, don't add -lc before -lgcc.
9810 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9811 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9812 $RM conftest*
9813 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9816 (eval $ac_compile) 2>&5
9817 ac_status=$?
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); } 2>conftest.err; then
9820 soname=conftest
9821 lib=conftest
9822 libobjs=conftest.$ac_objext
9823 deplibs=
9824 wl=$lt_prog_compiler_wl
9825 pic_flag=$lt_prog_compiler_pic
9826 compiler_flags=-v
9827 linker_flags=-v
9828 verstring=
9829 output_objdir=.
9830 libname=conftest
9831 lt_save_allow_undefined_flag=$allow_undefined_flag
9832 allow_undefined_flag=
9833 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9834 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9835 ac_status=$?
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); }
9838 then
9839 archive_cmds_need_lc=no
9840 else
9841 archive_cmds_need_lc=yes
9843 allow_undefined_flag=$lt_save_allow_undefined_flag
9844 else
9845 cat conftest.err 1>&5
9847 $RM conftest*
9848 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9849 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9851 esac
9854 esac
10012 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10013 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10015 if test "$GCC" = yes; then
10016 case $host_os in
10017 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10018 *) lt_awk_arg="/^libraries:/" ;;
10019 esac
10020 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10021 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10022 # if the path contains ";" then we assume it to be the separator
10023 # otherwise default to the standard path separator (i.e. ":") - it is
10024 # assumed that no part of a normal pathname contains ";" but that should
10025 # okay in the real world where ";" in dirpaths is itself problematic.
10026 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10027 else
10028 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10030 # Ok, now we have the path, separated by spaces, we can step through it
10031 # and add multilib dir if necessary.
10032 lt_tmp_lt_search_path_spec=
10033 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10034 for lt_sys_path in $lt_search_path_spec; do
10035 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10036 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10037 else
10038 test -d "$lt_sys_path" && \
10039 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10041 done
10042 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10043 BEGIN {RS=" "; FS="/|\n";} {
10044 lt_foo="";
10045 lt_count=0;
10046 for (lt_i = NF; lt_i > 0; lt_i--) {
10047 if ($lt_i != "" && $lt_i != ".") {
10048 if ($lt_i == "..") {
10049 lt_count++;
10050 } else {
10051 if (lt_count == 0) {
10052 lt_foo="/" $lt_i lt_foo;
10053 } else {
10054 lt_count--;
10059 if (lt_foo != "") { lt_freq[lt_foo]++; }
10060 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10062 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10063 else
10064 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10066 library_names_spec=
10067 libname_spec='lib$name'
10068 soname_spec=
10069 shrext_cmds=".so"
10070 postinstall_cmds=
10071 postuninstall_cmds=
10072 finish_cmds=
10073 finish_eval=
10074 shlibpath_var=
10075 shlibpath_overrides_runpath=unknown
10076 version_type=none
10077 dynamic_linker="$host_os ld.so"
10078 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10079 need_lib_prefix=unknown
10080 hardcode_into_libs=no
10082 # when you set need_version to no, make sure it does not cause -set_version
10083 # flags to be left without arguments
10084 need_version=unknown
10086 case $host_os in
10087 aix3*)
10088 version_type=linux
10089 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10090 shlibpath_var=LIBPATH
10092 # AIX 3 has no versioning support, so we append a major version to the name.
10093 soname_spec='${libname}${release}${shared_ext}$major'
10096 aix[4-9]*)
10097 version_type=linux
10098 need_lib_prefix=no
10099 need_version=no
10100 hardcode_into_libs=yes
10101 if test "$host_cpu" = ia64; then
10102 # AIX 5 supports IA64
10103 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10104 shlibpath_var=LD_LIBRARY_PATH
10105 else
10106 # With GCC up to 2.95.x, collect2 would create an import file
10107 # for dependence libraries. The import file would start with
10108 # the line `#! .'. This would cause the generated library to
10109 # depend on `.', always an invalid library. This was fixed in
10110 # development snapshots of GCC prior to 3.0.
10111 case $host_os in
10112 aix4 | aix4.[01] | aix4.[01].*)
10113 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10114 echo ' yes '
10115 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10117 else
10118 can_build_shared=no
10121 esac
10122 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10123 # soname into executable. Probably we can add versioning support to
10124 # collect2, so additional links can be useful in future.
10125 if test "$aix_use_runtimelinking" = yes; then
10126 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10127 # instead of lib<name>.a to let people know that these are not
10128 # typical AIX shared libraries.
10129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10130 else
10131 # We preserve .a as extension for shared libraries through AIX4.2
10132 # and later when we are not doing run time linking.
10133 library_names_spec='${libname}${release}.a $libname.a'
10134 soname_spec='${libname}${release}${shared_ext}$major'
10136 shlibpath_var=LIBPATH
10140 amigaos*)
10141 case $host_cpu in
10142 powerpc)
10143 # Since July 2007 AmigaOS4 officially supports .so libraries.
10144 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10147 m68k)
10148 library_names_spec='$libname.ixlibrary $libname.a'
10149 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10150 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'
10152 esac
10155 beos*)
10156 library_names_spec='${libname}${shared_ext}'
10157 dynamic_linker="$host_os ld.so"
10158 shlibpath_var=LIBRARY_PATH
10161 bsdi[45]*)
10162 version_type=linux
10163 need_version=no
10164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10165 soname_spec='${libname}${release}${shared_ext}$major'
10166 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10167 shlibpath_var=LD_LIBRARY_PATH
10168 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10169 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10170 # the default ld.so.conf also contains /usr/contrib/lib and
10171 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10172 # libtool to hard-code these into programs
10175 cygwin* | mingw* | pw32* | cegcc*)
10176 version_type=windows
10177 shrext_cmds=".dll"
10178 need_version=no
10179 need_lib_prefix=no
10181 case $GCC,$host_os in
10182 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10183 library_names_spec='$libname.dll.a'
10184 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10185 postinstall_cmds='base_file=`basename \${file}`~
10186 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10187 dldir=$destdir/`dirname \$dlpath`~
10188 test -d \$dldir || mkdir -p \$dldir~
10189 $install_prog $dir/$dlname \$dldir/$dlname~
10190 chmod a+x \$dldir/$dlname~
10191 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10192 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10194 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10195 dlpath=$dir/\$dldll~
10196 $RM \$dlpath'
10197 shlibpath_overrides_runpath=yes
10199 case $host_os in
10200 cygwin*)
10201 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10202 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10203 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10205 mingw* | cegcc*)
10206 # MinGW DLLs use traditional 'lib' prefix
10207 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10208 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10209 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10210 # It is most probably a Windows format PATH printed by
10211 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10212 # path with ; separators, and with drive letters. We can handle the
10213 # drive letters (cygwin fileutils understands them), so leave them,
10214 # especially as we might pass files found there to a mingw objdump,
10215 # which wouldn't understand a cygwinified path. Ahh.
10216 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10217 else
10218 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10221 pw32*)
10222 # pw32 DLLs use 'pw' prefix rather than 'lib'
10223 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10225 esac
10229 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10231 esac
10232 dynamic_linker='Win32 ld.exe'
10233 # FIXME: first we should search . and the directory the executable is in
10234 shlibpath_var=PATH
10237 darwin* | rhapsody*)
10238 dynamic_linker="$host_os dyld"
10239 version_type=darwin
10240 need_lib_prefix=no
10241 need_version=no
10242 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10243 soname_spec='${libname}${release}${major}$shared_ext'
10244 shlibpath_overrides_runpath=yes
10245 shlibpath_var=DYLD_LIBRARY_PATH
10246 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10248 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10249 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10252 dgux*)
10253 version_type=linux
10254 need_lib_prefix=no
10255 need_version=no
10256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10257 soname_spec='${libname}${release}${shared_ext}$major'
10258 shlibpath_var=LD_LIBRARY_PATH
10261 freebsd1*)
10262 dynamic_linker=no
10265 freebsd* | dragonfly*)
10266 # DragonFly does not have aout. When/if they implement a new
10267 # versioning mechanism, adjust this.
10268 if test -x /usr/bin/objformat; then
10269 objformat=`/usr/bin/objformat`
10270 else
10271 case $host_os in
10272 freebsd[123]*) objformat=aout ;;
10273 *) objformat=elf ;;
10274 esac
10276 version_type=freebsd-$objformat
10277 case $version_type in
10278 freebsd-elf*)
10279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10280 need_version=no
10281 need_lib_prefix=no
10283 freebsd-*)
10284 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10285 need_version=yes
10287 esac
10288 shlibpath_var=LD_LIBRARY_PATH
10289 case $host_os in
10290 freebsd2*)
10291 shlibpath_overrides_runpath=yes
10293 freebsd3.[01]* | freebsdelf3.[01]*)
10294 shlibpath_overrides_runpath=yes
10295 hardcode_into_libs=yes
10297 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10298 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10299 shlibpath_overrides_runpath=no
10300 hardcode_into_libs=yes
10302 *) # from 4.6 on, and DragonFly
10303 shlibpath_overrides_runpath=yes
10304 hardcode_into_libs=yes
10306 esac
10309 gnu*)
10310 version_type=linux
10311 need_lib_prefix=no
10312 need_version=no
10313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10314 soname_spec='${libname}${release}${shared_ext}$major'
10315 shlibpath_var=LD_LIBRARY_PATH
10316 hardcode_into_libs=yes
10319 hpux9* | hpux10* | hpux11*)
10320 # Give a soname corresponding to the major version so that dld.sl refuses to
10321 # link against other versions.
10322 version_type=sunos
10323 need_lib_prefix=no
10324 need_version=no
10325 case $host_cpu in
10326 ia64*)
10327 shrext_cmds='.so'
10328 hardcode_into_libs=yes
10329 dynamic_linker="$host_os dld.so"
10330 shlibpath_var=LD_LIBRARY_PATH
10331 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10333 soname_spec='${libname}${release}${shared_ext}$major'
10334 if test "X$HPUX_IA64_MODE" = X32; then
10335 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10336 else
10337 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10339 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10341 hppa*64*)
10342 shrext_cmds='.sl'
10343 hardcode_into_libs=yes
10344 dynamic_linker="$host_os dld.sl"
10345 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10346 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10348 soname_spec='${libname}${release}${shared_ext}$major'
10349 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10350 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10353 shrext_cmds='.sl'
10354 dynamic_linker="$host_os dld.sl"
10355 shlibpath_var=SHLIB_PATH
10356 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10358 soname_spec='${libname}${release}${shared_ext}$major'
10360 esac
10361 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10362 postinstall_cmds='chmod 555 $lib'
10365 interix[3-9]*)
10366 version_type=linux
10367 need_lib_prefix=no
10368 need_version=no
10369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10370 soname_spec='${libname}${release}${shared_ext}$major'
10371 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10372 shlibpath_var=LD_LIBRARY_PATH
10373 shlibpath_overrides_runpath=no
10374 hardcode_into_libs=yes
10377 irix5* | irix6* | nonstopux*)
10378 case $host_os in
10379 nonstopux*) version_type=nonstopux ;;
10381 if test "$lt_cv_prog_gnu_ld" = yes; then
10382 version_type=linux
10383 else
10384 version_type=irix
10385 fi ;;
10386 esac
10387 need_lib_prefix=no
10388 need_version=no
10389 soname_spec='${libname}${release}${shared_ext}$major'
10390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10391 case $host_os in
10392 irix5* | nonstopux*)
10393 libsuff= shlibsuff=
10396 case $LD in # libtool.m4 will add one of these switches to LD
10397 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10398 libsuff= shlibsuff= libmagic=32-bit;;
10399 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10400 libsuff=32 shlibsuff=N32 libmagic=N32;;
10401 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10402 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10403 *) libsuff= shlibsuff= libmagic=never-match;;
10404 esac
10406 esac
10407 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10408 shlibpath_overrides_runpath=no
10409 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10410 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10411 hardcode_into_libs=yes
10414 # No shared lib support for Linux oldld, aout, or coff.
10415 linux*oldld* | linux*aout* | linux*coff*)
10416 dynamic_linker=no
10419 # This must be Linux ELF.
10420 linux* | k*bsd*-gnu)
10421 version_type=linux
10422 need_lib_prefix=no
10423 need_version=no
10424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10425 soname_spec='${libname}${release}${shared_ext}$major'
10426 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10427 shlibpath_var=LD_LIBRARY_PATH
10428 shlibpath_overrides_runpath=no
10429 # Some binutils ld are patched to set DT_RUNPATH
10430 save_LDFLAGS=$LDFLAGS
10431 save_libdir=$libdir
10432 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10433 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10434 cat >conftest.$ac_ext <<_ACEOF
10435 /* confdefs.h. */
10436 _ACEOF
10437 cat confdefs.h >>conftest.$ac_ext
10438 cat >>conftest.$ac_ext <<_ACEOF
10439 /* end confdefs.h. */
10442 main ()
10446 return 0;
10448 _ACEOF
10449 rm -f conftest.$ac_objext conftest$ac_exeext
10450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10451 (eval $ac_link) 2>conftest.er1
10452 ac_status=$?
10453 grep -v '^ *+' conftest.er1 >conftest.err
10454 rm -f conftest.er1
10455 cat conftest.err >&5
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); } &&
10458 { ac_try='test -z "$ac_c_werror_flag"
10459 || test ! -s conftest.err'
10460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10461 (eval $ac_try) 2>&5
10462 ac_status=$?
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); }; } &&
10465 { ac_try='test -s conftest$ac_exeext'
10466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10467 (eval $ac_try) 2>&5
10468 ac_status=$?
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); }; }; then
10471 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10472 shlibpath_overrides_runpath=yes
10475 else
10476 echo "$as_me: failed program was:" >&5
10477 sed 's/^/| /' conftest.$ac_ext >&5
10480 rm -f conftest.err conftest.$ac_objext \
10481 conftest$ac_exeext conftest.$ac_ext
10482 LDFLAGS=$save_LDFLAGS
10483 libdir=$save_libdir
10485 # This implies no fast_install, which is unacceptable.
10486 # Some rework will be needed to allow for fast_install
10487 # before this can be enabled.
10488 hardcode_into_libs=yes
10490 # Append ld.so.conf contents to the search path
10491 if test -f /etc/ld.so.conf; then
10492 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10493 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10496 # We used to test for /lib/ld.so.1 and disable shared libraries on
10497 # powerpc, because MkLinux only supported shared libraries with the
10498 # GNU dynamic linker. Since this was broken with cross compilers,
10499 # most powerpc-linux boxes support dynamic linking these days and
10500 # people can always --disable-shared, the test was removed, and we
10501 # assume the GNU/Linux dynamic linker is in use.
10502 dynamic_linker='GNU/Linux ld.so'
10505 netbsd*)
10506 version_type=sunos
10507 need_lib_prefix=no
10508 need_version=no
10509 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10511 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10512 dynamic_linker='NetBSD (a.out) ld.so'
10513 else
10514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10515 soname_spec='${libname}${release}${shared_ext}$major'
10516 dynamic_linker='NetBSD ld.elf_so'
10518 shlibpath_var=LD_LIBRARY_PATH
10519 shlibpath_overrides_runpath=yes
10520 hardcode_into_libs=yes
10523 newsos6)
10524 version_type=linux
10525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10526 shlibpath_var=LD_LIBRARY_PATH
10527 shlibpath_overrides_runpath=yes
10530 *nto* | *qnx*)
10531 version_type=qnx
10532 need_lib_prefix=no
10533 need_version=no
10534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10535 soname_spec='${libname}${release}${shared_ext}$major'
10536 shlibpath_var=LD_LIBRARY_PATH
10537 shlibpath_overrides_runpath=no
10538 hardcode_into_libs=yes
10539 dynamic_linker='ldqnx.so'
10542 openbsd*)
10543 version_type=sunos
10544 sys_lib_dlsearch_path_spec="/usr/lib"
10545 need_lib_prefix=no
10546 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10547 case $host_os in
10548 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10549 *) need_version=no ;;
10550 esac
10551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10552 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10553 shlibpath_var=LD_LIBRARY_PATH
10554 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10555 case $host_os in
10556 openbsd2.[89] | openbsd2.[89].*)
10557 shlibpath_overrides_runpath=no
10560 shlibpath_overrides_runpath=yes
10562 esac
10563 else
10564 shlibpath_overrides_runpath=yes
10568 os2*)
10569 libname_spec='$name'
10570 shrext_cmds=".dll"
10571 need_lib_prefix=no
10572 library_names_spec='$libname${shared_ext} $libname.a'
10573 dynamic_linker='OS/2 ld.exe'
10574 shlibpath_var=LIBPATH
10577 osf3* | osf4* | osf5*)
10578 version_type=osf
10579 need_lib_prefix=no
10580 need_version=no
10581 soname_spec='${libname}${release}${shared_ext}$major'
10582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10583 shlibpath_var=LD_LIBRARY_PATH
10584 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10585 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10588 rdos*)
10589 dynamic_linker=no
10592 solaris*)
10593 version_type=linux
10594 need_lib_prefix=no
10595 need_version=no
10596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10597 soname_spec='${libname}${release}${shared_ext}$major'
10598 shlibpath_var=LD_LIBRARY_PATH
10599 shlibpath_overrides_runpath=yes
10600 hardcode_into_libs=yes
10601 # ldd complains unless libraries are executable
10602 postinstall_cmds='chmod +x $lib'
10605 sunos4*)
10606 version_type=sunos
10607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10608 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10609 shlibpath_var=LD_LIBRARY_PATH
10610 shlibpath_overrides_runpath=yes
10611 if test "$with_gnu_ld" = yes; then
10612 need_lib_prefix=no
10614 need_version=yes
10617 sysv4 | sysv4.3*)
10618 version_type=linux
10619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10620 soname_spec='${libname}${release}${shared_ext}$major'
10621 shlibpath_var=LD_LIBRARY_PATH
10622 case $host_vendor in
10623 sni)
10624 shlibpath_overrides_runpath=no
10625 need_lib_prefix=no
10626 runpath_var=LD_RUN_PATH
10628 siemens)
10629 need_lib_prefix=no
10631 motorola)
10632 need_lib_prefix=no
10633 need_version=no
10634 shlibpath_overrides_runpath=no
10635 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10637 esac
10640 sysv4*MP*)
10641 if test -d /usr/nec ;then
10642 version_type=linux
10643 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10644 soname_spec='$libname${shared_ext}.$major'
10645 shlibpath_var=LD_LIBRARY_PATH
10649 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10650 version_type=freebsd-elf
10651 need_lib_prefix=no
10652 need_version=no
10653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10654 soname_spec='${libname}${release}${shared_ext}$major'
10655 shlibpath_var=LD_LIBRARY_PATH
10656 shlibpath_overrides_runpath=yes
10657 hardcode_into_libs=yes
10658 if test "$with_gnu_ld" = yes; then
10659 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10660 else
10661 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10662 case $host_os in
10663 sco3.2v5*)
10664 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10666 esac
10668 sys_lib_dlsearch_path_spec='/usr/lib'
10671 tpf*)
10672 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10673 version_type=linux
10674 need_lib_prefix=no
10675 need_version=no
10676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10677 shlibpath_var=LD_LIBRARY_PATH
10678 shlibpath_overrides_runpath=no
10679 hardcode_into_libs=yes
10682 uts4*)
10683 version_type=linux
10684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10685 soname_spec='${libname}${release}${shared_ext}$major'
10686 shlibpath_var=LD_LIBRARY_PATH
10690 dynamic_linker=no
10692 esac
10693 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10694 echo "${ECHO_T}$dynamic_linker" >&6
10695 test "$dynamic_linker" = no && can_build_shared=no
10697 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10698 if test "$GCC" = yes; then
10699 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10702 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10703 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10705 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10706 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10795 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10796 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10797 hardcode_action=
10798 if test -n "$hardcode_libdir_flag_spec" ||
10799 test -n "$runpath_var" ||
10800 test "X$hardcode_automatic" = "Xyes" ; then
10802 # We can hardcode non-existent directories.
10803 if test "$hardcode_direct" != no &&
10804 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10805 # have to relink, otherwise we might link with an installed library
10806 # when we should be linking with a yet-to-be-installed one
10807 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10808 test "$hardcode_minus_L" != no; then
10809 # Linking always hardcodes the temporary library directory.
10810 hardcode_action=relink
10811 else
10812 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10813 hardcode_action=immediate
10815 else
10816 # We cannot hardcode anything, or else we can only hardcode existing
10817 # directories.
10818 hardcode_action=unsupported
10820 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10821 echo "${ECHO_T}$hardcode_action" >&6
10823 if test "$hardcode_action" = relink ||
10824 test "$inherit_rpath" = yes; then
10825 # Fast installation is not supported
10826 enable_fast_install=no
10827 elif test "$shlibpath_overrides_runpath" = yes ||
10828 test "$enable_shared" = no; then
10829 # Fast installation is not necessary
10830 enable_fast_install=needless
10838 if test "x$enable_dlopen" != xyes; then
10839 enable_dlopen=unknown
10840 enable_dlopen_self=unknown
10841 enable_dlopen_self_static=unknown
10842 else
10843 lt_cv_dlopen=no
10844 lt_cv_dlopen_libs=
10846 case $host_os in
10847 beos*)
10848 lt_cv_dlopen="load_add_on"
10849 lt_cv_dlopen_libs=
10850 lt_cv_dlopen_self=yes
10853 mingw* | pw32* | cegcc*)
10854 lt_cv_dlopen="LoadLibrary"
10855 lt_cv_dlopen_libs=
10858 cygwin*)
10859 lt_cv_dlopen="dlopen"
10860 lt_cv_dlopen_libs=
10863 darwin*)
10864 # if libdl is installed we need to link against it
10865 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10866 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10867 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10868 echo $ECHO_N "(cached) $ECHO_C" >&6
10869 else
10870 ac_check_lib_save_LIBS=$LIBS
10871 LIBS="-ldl $LIBS"
10872 cat >conftest.$ac_ext <<_ACEOF
10873 /* confdefs.h. */
10874 _ACEOF
10875 cat confdefs.h >>conftest.$ac_ext
10876 cat >>conftest.$ac_ext <<_ACEOF
10877 /* end confdefs.h. */
10879 /* Override any gcc2 internal prototype to avoid an error. */
10880 #ifdef __cplusplus
10881 extern "C"
10882 #endif
10883 /* We use char because int might match the return type of a gcc2
10884 builtin and then its argument prototype would still apply. */
10885 char dlopen ();
10887 main ()
10889 dlopen ();
10891 return 0;
10893 _ACEOF
10894 rm -f conftest.$ac_objext conftest$ac_exeext
10895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10896 (eval $ac_link) 2>conftest.er1
10897 ac_status=$?
10898 grep -v '^ *+' conftest.er1 >conftest.err
10899 rm -f conftest.er1
10900 cat conftest.err >&5
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); } &&
10903 { ac_try='test -z "$ac_c_werror_flag"
10904 || test ! -s conftest.err'
10905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10906 (eval $ac_try) 2>&5
10907 ac_status=$?
10908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909 (exit $ac_status); }; } &&
10910 { ac_try='test -s conftest$ac_exeext'
10911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10912 (eval $ac_try) 2>&5
10913 ac_status=$?
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); }; }; then
10916 ac_cv_lib_dl_dlopen=yes
10917 else
10918 echo "$as_me: failed program was:" >&5
10919 sed 's/^/| /' conftest.$ac_ext >&5
10921 ac_cv_lib_dl_dlopen=no
10923 rm -f conftest.err conftest.$ac_objext \
10924 conftest$ac_exeext conftest.$ac_ext
10925 LIBS=$ac_check_lib_save_LIBS
10927 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10928 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10929 if test $ac_cv_lib_dl_dlopen = yes; then
10930 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10931 else
10933 lt_cv_dlopen="dyld"
10934 lt_cv_dlopen_libs=
10935 lt_cv_dlopen_self=yes
10942 echo "$as_me:$LINENO: checking for shl_load" >&5
10943 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10944 if test "${ac_cv_func_shl_load+set}" = set; then
10945 echo $ECHO_N "(cached) $ECHO_C" >&6
10946 else
10947 cat >conftest.$ac_ext <<_ACEOF
10948 /* confdefs.h. */
10949 _ACEOF
10950 cat confdefs.h >>conftest.$ac_ext
10951 cat >>conftest.$ac_ext <<_ACEOF
10952 /* end confdefs.h. */
10953 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10955 #define shl_load innocuous_shl_load
10957 /* System header to define __stub macros and hopefully few prototypes,
10958 which can conflict with char shl_load (); below.
10959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10960 <limits.h> exists even on freestanding compilers. */
10962 #ifdef __STDC__
10963 # include <limits.h>
10964 #else
10965 # include <assert.h>
10966 #endif
10968 #undef shl_load
10970 /* Override any gcc2 internal prototype to avoid an error. */
10971 #ifdef __cplusplus
10972 extern "C"
10974 #endif
10975 /* We use char because int might match the return type of a gcc2
10976 builtin and then its argument prototype would still apply. */
10977 char shl_load ();
10978 /* The GNU C library defines this for functions which it implements
10979 to always fail with ENOSYS. Some functions are actually named
10980 something starting with __ and the normal name is an alias. */
10981 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10982 choke me
10983 #else
10984 char (*f) () = shl_load;
10985 #endif
10986 #ifdef __cplusplus
10988 #endif
10991 main ()
10993 return f != shl_load;
10995 return 0;
10997 _ACEOF
10998 rm -f conftest.$ac_objext conftest$ac_exeext
10999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11000 (eval $ac_link) 2>conftest.er1
11001 ac_status=$?
11002 grep -v '^ *+' conftest.er1 >conftest.err
11003 rm -f conftest.er1
11004 cat conftest.err >&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); } &&
11007 { ac_try='test -z "$ac_c_werror_flag"
11008 || test ! -s conftest.err'
11009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11010 (eval $ac_try) 2>&5
11011 ac_status=$?
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); }; } &&
11014 { ac_try='test -s conftest$ac_exeext'
11015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11016 (eval $ac_try) 2>&5
11017 ac_status=$?
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); }; }; then
11020 ac_cv_func_shl_load=yes
11021 else
11022 echo "$as_me: failed program was:" >&5
11023 sed 's/^/| /' conftest.$ac_ext >&5
11025 ac_cv_func_shl_load=no
11027 rm -f conftest.err conftest.$ac_objext \
11028 conftest$ac_exeext conftest.$ac_ext
11030 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11031 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11032 if test $ac_cv_func_shl_load = yes; then
11033 lt_cv_dlopen="shl_load"
11034 else
11035 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11036 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11037 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11038 echo $ECHO_N "(cached) $ECHO_C" >&6
11039 else
11040 ac_check_lib_save_LIBS=$LIBS
11041 LIBS="-ldld $LIBS"
11042 cat >conftest.$ac_ext <<_ACEOF
11043 /* confdefs.h. */
11044 _ACEOF
11045 cat confdefs.h >>conftest.$ac_ext
11046 cat >>conftest.$ac_ext <<_ACEOF
11047 /* end confdefs.h. */
11049 /* Override any gcc2 internal prototype to avoid an error. */
11050 #ifdef __cplusplus
11051 extern "C"
11052 #endif
11053 /* We use char because int might match the return type of a gcc2
11054 builtin and then its argument prototype would still apply. */
11055 char shl_load ();
11057 main ()
11059 shl_load ();
11061 return 0;
11063 _ACEOF
11064 rm -f conftest.$ac_objext conftest$ac_exeext
11065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11066 (eval $ac_link) 2>conftest.er1
11067 ac_status=$?
11068 grep -v '^ *+' conftest.er1 >conftest.err
11069 rm -f conftest.er1
11070 cat conftest.err >&5
11071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); } &&
11073 { ac_try='test -z "$ac_c_werror_flag"
11074 || test ! -s conftest.err'
11075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11076 (eval $ac_try) 2>&5
11077 ac_status=$?
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); }; } &&
11080 { ac_try='test -s conftest$ac_exeext'
11081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11082 (eval $ac_try) 2>&5
11083 ac_status=$?
11084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085 (exit $ac_status); }; }; then
11086 ac_cv_lib_dld_shl_load=yes
11087 else
11088 echo "$as_me: failed program was:" >&5
11089 sed 's/^/| /' conftest.$ac_ext >&5
11091 ac_cv_lib_dld_shl_load=no
11093 rm -f conftest.err conftest.$ac_objext \
11094 conftest$ac_exeext conftest.$ac_ext
11095 LIBS=$ac_check_lib_save_LIBS
11097 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11098 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11099 if test $ac_cv_lib_dld_shl_load = yes; then
11100 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11101 else
11102 echo "$as_me:$LINENO: checking for dlopen" >&5
11103 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11104 if test "${ac_cv_func_dlopen+set}" = set; then
11105 echo $ECHO_N "(cached) $ECHO_C" >&6
11106 else
11107 cat >conftest.$ac_ext <<_ACEOF
11108 /* confdefs.h. */
11109 _ACEOF
11110 cat confdefs.h >>conftest.$ac_ext
11111 cat >>conftest.$ac_ext <<_ACEOF
11112 /* end confdefs.h. */
11113 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11115 #define dlopen innocuous_dlopen
11117 /* System header to define __stub macros and hopefully few prototypes,
11118 which can conflict with char dlopen (); below.
11119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11120 <limits.h> exists even on freestanding compilers. */
11122 #ifdef __STDC__
11123 # include <limits.h>
11124 #else
11125 # include <assert.h>
11126 #endif
11128 #undef dlopen
11130 /* Override any gcc2 internal prototype to avoid an error. */
11131 #ifdef __cplusplus
11132 extern "C"
11134 #endif
11135 /* We use char because int might match the return type of a gcc2
11136 builtin and then its argument prototype would still apply. */
11137 char dlopen ();
11138 /* The GNU C library defines this for functions which it implements
11139 to always fail with ENOSYS. Some functions are actually named
11140 something starting with __ and the normal name is an alias. */
11141 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11142 choke me
11143 #else
11144 char (*f) () = dlopen;
11145 #endif
11146 #ifdef __cplusplus
11148 #endif
11151 main ()
11153 return f != dlopen;
11155 return 0;
11157 _ACEOF
11158 rm -f conftest.$ac_objext conftest$ac_exeext
11159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11160 (eval $ac_link) 2>conftest.er1
11161 ac_status=$?
11162 grep -v '^ *+' conftest.er1 >conftest.err
11163 rm -f conftest.er1
11164 cat conftest.err >&5
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); } &&
11167 { ac_try='test -z "$ac_c_werror_flag"
11168 || test ! -s conftest.err'
11169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11170 (eval $ac_try) 2>&5
11171 ac_status=$?
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 (exit $ac_status); }; } &&
11174 { ac_try='test -s conftest$ac_exeext'
11175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11176 (eval $ac_try) 2>&5
11177 ac_status=$?
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); }; }; then
11180 ac_cv_func_dlopen=yes
11181 else
11182 echo "$as_me: failed program was:" >&5
11183 sed 's/^/| /' conftest.$ac_ext >&5
11185 ac_cv_func_dlopen=no
11187 rm -f conftest.err conftest.$ac_objext \
11188 conftest$ac_exeext conftest.$ac_ext
11190 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11191 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11192 if test $ac_cv_func_dlopen = yes; then
11193 lt_cv_dlopen="dlopen"
11194 else
11195 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11196 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11197 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11198 echo $ECHO_N "(cached) $ECHO_C" >&6
11199 else
11200 ac_check_lib_save_LIBS=$LIBS
11201 LIBS="-ldl $LIBS"
11202 cat >conftest.$ac_ext <<_ACEOF
11203 /* confdefs.h. */
11204 _ACEOF
11205 cat confdefs.h >>conftest.$ac_ext
11206 cat >>conftest.$ac_ext <<_ACEOF
11207 /* end confdefs.h. */
11209 /* Override any gcc2 internal prototype to avoid an error. */
11210 #ifdef __cplusplus
11211 extern "C"
11212 #endif
11213 /* We use char because int might match the return type of a gcc2
11214 builtin and then its argument prototype would still apply. */
11215 char dlopen ();
11217 main ()
11219 dlopen ();
11221 return 0;
11223 _ACEOF
11224 rm -f conftest.$ac_objext conftest$ac_exeext
11225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11226 (eval $ac_link) 2>conftest.er1
11227 ac_status=$?
11228 grep -v '^ *+' conftest.er1 >conftest.err
11229 rm -f conftest.er1
11230 cat conftest.err >&5
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); } &&
11233 { ac_try='test -z "$ac_c_werror_flag"
11234 || test ! -s conftest.err'
11235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11236 (eval $ac_try) 2>&5
11237 ac_status=$?
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); }; } &&
11240 { ac_try='test -s conftest$ac_exeext'
11241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11242 (eval $ac_try) 2>&5
11243 ac_status=$?
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); }; }; then
11246 ac_cv_lib_dl_dlopen=yes
11247 else
11248 echo "$as_me: failed program was:" >&5
11249 sed 's/^/| /' conftest.$ac_ext >&5
11251 ac_cv_lib_dl_dlopen=no
11253 rm -f conftest.err conftest.$ac_objext \
11254 conftest$ac_exeext conftest.$ac_ext
11255 LIBS=$ac_check_lib_save_LIBS
11257 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11258 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11259 if test $ac_cv_lib_dl_dlopen = yes; then
11260 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11261 else
11262 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11263 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11264 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11265 echo $ECHO_N "(cached) $ECHO_C" >&6
11266 else
11267 ac_check_lib_save_LIBS=$LIBS
11268 LIBS="-lsvld $LIBS"
11269 cat >conftest.$ac_ext <<_ACEOF
11270 /* confdefs.h. */
11271 _ACEOF
11272 cat confdefs.h >>conftest.$ac_ext
11273 cat >>conftest.$ac_ext <<_ACEOF
11274 /* end confdefs.h. */
11276 /* Override any gcc2 internal prototype to avoid an error. */
11277 #ifdef __cplusplus
11278 extern "C"
11279 #endif
11280 /* We use char because int might match the return type of a gcc2
11281 builtin and then its argument prototype would still apply. */
11282 char dlopen ();
11284 main ()
11286 dlopen ();
11288 return 0;
11290 _ACEOF
11291 rm -f conftest.$ac_objext conftest$ac_exeext
11292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11293 (eval $ac_link) 2>conftest.er1
11294 ac_status=$?
11295 grep -v '^ *+' conftest.er1 >conftest.err
11296 rm -f conftest.er1
11297 cat conftest.err >&5
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); } &&
11300 { ac_try='test -z "$ac_c_werror_flag"
11301 || test ! -s conftest.err'
11302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11303 (eval $ac_try) 2>&5
11304 ac_status=$?
11305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); }; } &&
11307 { ac_try='test -s conftest$ac_exeext'
11308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11309 (eval $ac_try) 2>&5
11310 ac_status=$?
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); }; }; then
11313 ac_cv_lib_svld_dlopen=yes
11314 else
11315 echo "$as_me: failed program was:" >&5
11316 sed 's/^/| /' conftest.$ac_ext >&5
11318 ac_cv_lib_svld_dlopen=no
11320 rm -f conftest.err conftest.$ac_objext \
11321 conftest$ac_exeext conftest.$ac_ext
11322 LIBS=$ac_check_lib_save_LIBS
11324 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11325 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11326 if test $ac_cv_lib_svld_dlopen = yes; then
11327 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11328 else
11329 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11330 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11331 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11332 echo $ECHO_N "(cached) $ECHO_C" >&6
11333 else
11334 ac_check_lib_save_LIBS=$LIBS
11335 LIBS="-ldld $LIBS"
11336 cat >conftest.$ac_ext <<_ACEOF
11337 /* confdefs.h. */
11338 _ACEOF
11339 cat confdefs.h >>conftest.$ac_ext
11340 cat >>conftest.$ac_ext <<_ACEOF
11341 /* end confdefs.h. */
11343 /* Override any gcc2 internal prototype to avoid an error. */
11344 #ifdef __cplusplus
11345 extern "C"
11346 #endif
11347 /* We use char because int might match the return type of a gcc2
11348 builtin and then its argument prototype would still apply. */
11349 char dld_link ();
11351 main ()
11353 dld_link ();
11355 return 0;
11357 _ACEOF
11358 rm -f conftest.$ac_objext conftest$ac_exeext
11359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11360 (eval $ac_link) 2>conftest.er1
11361 ac_status=$?
11362 grep -v '^ *+' conftest.er1 >conftest.err
11363 rm -f conftest.er1
11364 cat conftest.err >&5
11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366 (exit $ac_status); } &&
11367 { ac_try='test -z "$ac_c_werror_flag"
11368 || test ! -s conftest.err'
11369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11370 (eval $ac_try) 2>&5
11371 ac_status=$?
11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 (exit $ac_status); }; } &&
11374 { ac_try='test -s conftest$ac_exeext'
11375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11376 (eval $ac_try) 2>&5
11377 ac_status=$?
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); }; }; then
11380 ac_cv_lib_dld_dld_link=yes
11381 else
11382 echo "$as_me: failed program was:" >&5
11383 sed 's/^/| /' conftest.$ac_ext >&5
11385 ac_cv_lib_dld_dld_link=no
11387 rm -f conftest.err conftest.$ac_objext \
11388 conftest$ac_exeext conftest.$ac_ext
11389 LIBS=$ac_check_lib_save_LIBS
11391 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11392 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11393 if test $ac_cv_lib_dld_dld_link = yes; then
11394 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11413 esac
11415 if test "x$lt_cv_dlopen" != xno; then
11416 enable_dlopen=yes
11417 else
11418 enable_dlopen=no
11421 case $lt_cv_dlopen in
11422 dlopen)
11423 save_CPPFLAGS="$CPPFLAGS"
11424 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11426 save_LDFLAGS="$LDFLAGS"
11427 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11429 save_LIBS="$LIBS"
11430 LIBS="$lt_cv_dlopen_libs $LIBS"
11432 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11433 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11434 if test "${lt_cv_dlopen_self+set}" = set; then
11435 echo $ECHO_N "(cached) $ECHO_C" >&6
11436 else
11437 if test "$cross_compiling" = yes; then :
11438 lt_cv_dlopen_self=cross
11439 else
11440 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11441 lt_status=$lt_dlunknown
11442 cat > conftest.$ac_ext <<_LT_EOF
11443 #line 11443 "configure"
11444 #include "confdefs.h"
11446 #if HAVE_DLFCN_H
11447 #include <dlfcn.h>
11448 #endif
11450 #include <stdio.h>
11452 #ifdef RTLD_GLOBAL
11453 # define LT_DLGLOBAL RTLD_GLOBAL
11454 #else
11455 # ifdef DL_GLOBAL
11456 # define LT_DLGLOBAL DL_GLOBAL
11457 # else
11458 # define LT_DLGLOBAL 0
11459 # endif
11460 #endif
11462 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11463 find out it does not work in some platform. */
11464 #ifndef LT_DLLAZY_OR_NOW
11465 # ifdef RTLD_LAZY
11466 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11467 # else
11468 # ifdef DL_LAZY
11469 # define LT_DLLAZY_OR_NOW DL_LAZY
11470 # else
11471 # ifdef RTLD_NOW
11472 # define LT_DLLAZY_OR_NOW RTLD_NOW
11473 # else
11474 # ifdef DL_NOW
11475 # define LT_DLLAZY_OR_NOW DL_NOW
11476 # else
11477 # define LT_DLLAZY_OR_NOW 0
11478 # endif
11479 # endif
11480 # endif
11481 # endif
11482 #endif
11484 void fnord() { int i=42;}
11485 int main ()
11487 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11488 int status = $lt_dlunknown;
11490 if (self)
11492 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11493 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11494 /* dlclose (self); */
11496 else
11497 puts (dlerror ());
11499 return status;
11501 _LT_EOF
11502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11503 (eval $ac_link) 2>&5
11504 ac_status=$?
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11507 (./conftest; exit; ) >&5 2>/dev/null
11508 lt_status=$?
11509 case x$lt_status in
11510 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11511 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11512 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11513 esac
11514 else :
11515 # compilation failed
11516 lt_cv_dlopen_self=no
11519 rm -fr conftest*
11523 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11524 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11526 if test "x$lt_cv_dlopen_self" = xyes; then
11527 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11528 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11529 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11530 if test "${lt_cv_dlopen_self_static+set}" = set; then
11531 echo $ECHO_N "(cached) $ECHO_C" >&6
11532 else
11533 if test "$cross_compiling" = yes; then :
11534 lt_cv_dlopen_self_static=cross
11535 else
11536 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11537 lt_status=$lt_dlunknown
11538 cat > conftest.$ac_ext <<_LT_EOF
11539 #line 11539 "configure"
11540 #include "confdefs.h"
11542 #if HAVE_DLFCN_H
11543 #include <dlfcn.h>
11544 #endif
11546 #include <stdio.h>
11548 #ifdef RTLD_GLOBAL
11549 # define LT_DLGLOBAL RTLD_GLOBAL
11550 #else
11551 # ifdef DL_GLOBAL
11552 # define LT_DLGLOBAL DL_GLOBAL
11553 # else
11554 # define LT_DLGLOBAL 0
11555 # endif
11556 #endif
11558 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11559 find out it does not work in some platform. */
11560 #ifndef LT_DLLAZY_OR_NOW
11561 # ifdef RTLD_LAZY
11562 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11563 # else
11564 # ifdef DL_LAZY
11565 # define LT_DLLAZY_OR_NOW DL_LAZY
11566 # else
11567 # ifdef RTLD_NOW
11568 # define LT_DLLAZY_OR_NOW RTLD_NOW
11569 # else
11570 # ifdef DL_NOW
11571 # define LT_DLLAZY_OR_NOW DL_NOW
11572 # else
11573 # define LT_DLLAZY_OR_NOW 0
11574 # endif
11575 # endif
11576 # endif
11577 # endif
11578 #endif
11580 void fnord() { int i=42;}
11581 int main ()
11583 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11584 int status = $lt_dlunknown;
11586 if (self)
11588 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11589 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11590 /* dlclose (self); */
11592 else
11593 puts (dlerror ());
11595 return status;
11597 _LT_EOF
11598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11599 (eval $ac_link) 2>&5
11600 ac_status=$?
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11603 (./conftest; exit; ) >&5 2>/dev/null
11604 lt_status=$?
11605 case x$lt_status in
11606 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11607 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11608 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11609 esac
11610 else :
11611 # compilation failed
11612 lt_cv_dlopen_self_static=no
11615 rm -fr conftest*
11619 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11620 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11623 CPPFLAGS="$save_CPPFLAGS"
11624 LDFLAGS="$save_LDFLAGS"
11625 LIBS="$save_LIBS"
11627 esac
11629 case $lt_cv_dlopen_self in
11630 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11631 *) enable_dlopen_self=unknown ;;
11632 esac
11634 case $lt_cv_dlopen_self_static in
11635 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11636 *) enable_dlopen_self_static=unknown ;;
11637 esac
11656 striplib=
11657 old_striplib=
11658 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11659 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11660 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11661 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11662 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11663 echo "$as_me:$LINENO: result: yes" >&5
11664 echo "${ECHO_T}yes" >&6
11665 else
11666 # FIXME - insert some real tests, host_os isn't really good enough
11667 case $host_os in
11668 darwin*)
11669 if test -n "$STRIP" ; then
11670 striplib="$STRIP -x"
11671 old_striplib="$STRIP -S"
11672 echo "$as_me:$LINENO: result: yes" >&5
11673 echo "${ECHO_T}yes" >&6
11674 else
11675 echo "$as_me:$LINENO: result: no" >&5
11676 echo "${ECHO_T}no" >&6
11680 echo "$as_me:$LINENO: result: no" >&5
11681 echo "${ECHO_T}no" >&6
11683 esac
11697 # Report which library types will actually be built
11698 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11699 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11700 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11701 echo "${ECHO_T}$can_build_shared" >&6
11703 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11704 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11705 test "$can_build_shared" = "no" && enable_shared=no
11707 # On AIX, shared libraries and static libraries use the same namespace, and
11708 # are all built from PIC.
11709 case $host_os in
11710 aix3*)
11711 test "$enable_shared" = yes && enable_static=no
11712 if test -n "$RANLIB"; then
11713 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11714 postinstall_cmds='$RANLIB $lib'
11718 aix[4-9]*)
11719 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11720 test "$enable_shared" = yes && enable_static=no
11723 esac
11724 echo "$as_me:$LINENO: result: $enable_shared" >&5
11725 echo "${ECHO_T}$enable_shared" >&6
11727 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11728 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11729 # Make sure either enable_shared or enable_static is yes.
11730 test "$enable_shared" = yes || enable_static=yes
11731 echo "$as_me:$LINENO: result: $enable_static" >&5
11732 echo "${ECHO_T}$enable_static" >&6
11738 ac_ext=c
11739 ac_cpp='$CPP $CPPFLAGS'
11740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11744 CC="$lt_save_CC"
11758 ac_config_commands="$ac_config_commands libtool"
11763 # Only expand once:
11767 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
11768 if test "${enable_64_bit_bfd+set}" = set; then
11769 enableval="$enable_64_bit_bfd"
11770 case "${enableval}" in
11771 yes) want64=true ;;
11772 no) want64=false ;;
11773 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
11774 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
11775 { (exit 1); exit 1; }; } ;;
11776 esac
11777 else
11778 want64=false
11780 # Check whether --enable-targets or --disable-targets was given.
11781 if test "${enable_targets+set}" = set; then
11782 enableval="$enable_targets"
11783 case "${enableval}" in
11784 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
11785 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
11786 { (exit 1); exit 1; }; }
11788 no) enable_targets= ;;
11789 *) enable_targets=$enableval ;;
11790 esac
11792 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
11793 if test "${enable_commonbfdlib+set}" = set; then
11794 enableval="$enable_commonbfdlib"
11795 case "${enableval}" in
11796 yes) commonbfdlib=true ;;
11797 no) commonbfdlib=false ;;
11798 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
11799 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
11800 { (exit 1); exit 1; }; } ;;
11801 esac
11804 # Check whether --with-mmap or --without-mmap was given.
11805 if test "${with_mmap+set}" = set; then
11806 withval="$with_mmap"
11807 case "${withval}" in
11808 yes) want_mmap=true ;;
11809 no) want_mmap=false ;;
11810 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
11811 echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
11812 { (exit 1); exit 1; }; } ;;
11813 esac
11814 else
11815 want_mmap=false
11817 # Check whether --enable-secureplt or --disable-secureplt was given.
11818 if test "${enable_secureplt+set}" = set; then
11819 enableval="$enable_secureplt"
11820 case "${enableval}" in
11821 yes) use_secureplt=true ;;
11822 no) use_secureplt=false ;;
11823 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
11824 echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
11825 { (exit 1); exit 1; }; } ;;
11826 esac
11827 else
11828 use_secureplt=false
11829 fi; if test $use_secureplt = true; then
11831 cat >>confdefs.h <<\_ACEOF
11832 #define USE_SECUREPLT 1
11833 _ACEOF
11837 DEBUGDIR=${libdir}/debug
11839 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
11840 if test "${with_separate_debug_dir+set}" = set; then
11841 withval="$with_separate_debug_dir"
11842 DEBUGDIR="${withval}"
11846 # Check to see if we should allow the generation of
11847 # symbols with the ELF standard's STT_COMMON type.
11848 # Check whether --enable-elf-stt-common or --disable-elf-stt-common was given.
11849 if test "${enable_elf_stt_common+set}" = set; then
11850 enableval="$enable_elf_stt_common"
11851 case "${enableval}" in
11852 yes) want_elf_stt_common=true ;;
11853 no) want_elf_stt_common=false ;;
11854 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for ELF STT_COMMON option" >&5
11855 echo "$as_me: error: bad value ${enableval} for ELF STT_COMMON option" >&2;}
11856 { (exit 1); exit 1; }; } ;;
11857 esac
11858 else
11859 # We have to choose a default behaviour. For native builds we could
11860 # test whether the loader supports the STT_COMMON type, but that would
11861 # mean that built binaries could not be exported to older systems where
11862 # the loader does not support it. So by default we always choose to
11863 # disable this feature.
11864 want_elf_stt_common=false
11865 fi; if test $want_elf_stt_common = true; then
11867 cat >>confdefs.h <<\_ACEOF
11868 #define USE_STT_COMMON 1
11869 _ACEOF
11875 # Check whether --with-pkgversion or --without-pkgversion was given.
11876 if test "${with_pkgversion+set}" = set; then
11877 withval="$with_pkgversion"
11878 case "$withval" in
11879 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
11880 echo "$as_me: error: package version not specified" >&2;}
11881 { (exit 1); exit 1; }; } ;;
11882 no) PKGVERSION= ;;
11883 *) PKGVERSION="($withval) " ;;
11884 esac
11885 else
11886 PKGVERSION="(GNU Binutils) "
11893 # Check whether --with-bugurl or --without-bugurl was given.
11894 if test "${with_bugurl+set}" = set; then
11895 withval="$with_bugurl"
11896 case "$withval" in
11897 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
11898 echo "$as_me: error: bug URL not specified" >&2;}
11899 { (exit 1); exit 1; }; } ;;
11900 no) BUGURL=
11902 *) BUGURL="$withval"
11904 esac
11905 else
11906 BUGURL="http://www.sourceware.org/bugzilla/"
11909 case ${BUGURL} in
11911 REPORT_BUGS_TO=
11912 REPORT_BUGS_TEXI=
11915 REPORT_BUGS_TO="<$BUGURL>"
11916 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
11918 esac;
11924 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11926 # Check whether --enable-werror or --disable-werror was given.
11927 if test "${enable_werror+set}" = set; then
11928 enableval="$enable_werror"
11929 case "${enableval}" in
11930 yes | y) ERROR_ON_WARNING="yes" ;;
11931 no | n) ERROR_ON_WARNING="no" ;;
11932 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
11933 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
11934 { (exit 1); exit 1; }; } ;;
11935 esac
11938 # Enable -Wno-format by default when using gcc on mingw
11939 case "${host}" in
11940 *-*-mingw32*)
11941 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11942 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11945 *) ;;
11946 esac
11948 # Enable -Werror by default when using gcc
11949 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11950 ERROR_ON_WARNING=yes
11953 NO_WERROR=
11954 if test "${ERROR_ON_WARNING}" = yes ; then
11955 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11956 NO_WERROR="-Wno-error"
11959 if test "${GCC}" = yes ; then
11960 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11963 # Check whether --enable-build-warnings or --disable-build-warnings was given.
11964 if test "${enable_build_warnings+set}" = set; then
11965 enableval="$enable_build_warnings"
11966 case "${enableval}" in
11967 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11968 no) if test "${GCC}" = yes ; then
11969 WARN_CFLAGS="-w"
11970 fi;;
11971 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11972 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11973 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11974 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11975 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11976 esac
11979 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11980 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11987 ac_config_headers="$ac_config_headers config.h:config.in"
11990 if test -z "$target" ; then
11991 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
11992 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
11993 { (exit 1); exit 1; }; }
11996 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11997 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11998 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11999 if test "${enable_maintainer_mode+set}" = set; then
12000 enableval="$enable_maintainer_mode"
12001 USE_MAINTAINER_MODE=$enableval
12002 else
12003 USE_MAINTAINER_MODE=no
12005 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12006 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
12009 if test $USE_MAINTAINER_MODE = yes; then
12010 MAINTAINER_MODE_TRUE=
12011 MAINTAINER_MODE_FALSE='#'
12012 else
12013 MAINTAINER_MODE_TRUE='#'
12014 MAINTAINER_MODE_FALSE=
12017 MAINT=$MAINTAINER_MODE_TRUE
12022 if false; then
12023 GENINSRC_NEVER_TRUE=
12024 GENINSRC_NEVER_FALSE='#'
12025 else
12026 GENINSRC_NEVER_TRUE='#'
12027 GENINSRC_NEVER_FALSE=
12030 case ${build_alias} in
12031 "") build_noncanonical=${build} ;;
12032 *) build_noncanonical=${build_alias} ;;
12033 esac
12035 case ${host_alias} in
12036 "") host_noncanonical=${build_noncanonical} ;;
12037 *) host_noncanonical=${host_alias} ;;
12038 esac
12040 case ${target_alias} in
12041 "") target_noncanonical=${host_noncanonical} ;;
12042 *) target_noncanonical=${target_alias} ;;
12043 esac
12045 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
12046 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
12047 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
12048 if test "${enable_install_libbfd+set}" = set; then
12049 enableval="$enable_install_libbfd"
12050 install_libbfd_p=$enableval
12051 else
12052 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
12053 install_libbfd_p=yes
12054 else
12055 install_libbfd_p=no
12058 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
12059 echo "${ECHO_T}$install_libbfd_p" >&6
12062 if test $install_libbfd_p = yes; then
12063 INSTALL_LIBBFD_TRUE=
12064 INSTALL_LIBBFD_FALSE='#'
12065 else
12066 INSTALL_LIBBFD_TRUE='#'
12067 INSTALL_LIBBFD_FALSE=
12070 # Need _noncanonical variables for this.
12075 # libbfd.a is a host library containing target dependent code
12076 bfdlibdir='$(libdir)'
12077 bfdincludedir='$(includedir)'
12078 if test "${host}" != "${target}"; then
12079 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
12080 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
12088 host64=false
12089 target64=false
12090 bfd_default_target_size=32
12092 # host stuff:
12094 ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi id"
12095 # If we haven't got the data from the intl directory,
12096 # assume NLS is disabled.
12097 USE_NLS=no
12098 LIBINTL=
12099 LIBINTL_DEP=
12100 INCINTL=
12101 XGETTEXT=
12102 GMSGFMT=
12103 POSUB=
12105 if test -f ../intl/config.intl; then
12106 . ../intl/config.intl
12108 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12109 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12110 if test x"$USE_NLS" != xyes; then
12111 echo "$as_me:$LINENO: result: no" >&5
12112 echo "${ECHO_T}no" >&6
12113 else
12114 echo "$as_me:$LINENO: result: yes" >&5
12115 echo "${ECHO_T}yes" >&6
12117 cat >>confdefs.h <<\_ACEOF
12118 #define ENABLE_NLS 1
12119 _ACEOF
12122 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12123 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12124 # Look for .po and .gmo files in the source directory.
12125 CATALOGS=
12126 XLINGUAS=
12127 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12128 # If there aren't any .gmo files the shell will give us the
12129 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12130 # weeded out.
12131 case "$cat" in *\**)
12132 continue;;
12133 esac
12134 # The quadruple backslash is collapsed to a double backslash
12135 # by the backticks, then collapsed again by the double quotes,
12136 # leaving us with one backslash in the sed expression (right
12137 # before the dot that mustn't act as a wildcard).
12138 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12139 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12140 # The user is allowed to set LINGUAS to a list of languages to
12141 # install catalogs for. If it's empty that means "all of them."
12142 if test "x$LINGUAS" = x; then
12143 CATALOGS="$CATALOGS $cat"
12144 XLINGUAS="$XLINGUAS $lang"
12145 else
12146 case "$LINGUAS" in *$lang*)
12147 CATALOGS="$CATALOGS $cat"
12148 XLINGUAS="$XLINGUAS $lang"
12150 esac
12152 done
12153 LINGUAS="$XLINGUAS"
12154 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12155 echo "${ECHO_T}$LINGUAS" >&6
12158 DATADIRNAME=share
12160 INSTOBJEXT=.mo
12162 GENCAT=gencat
12164 CATOBJEXT=.gmo
12168 MKINSTALLDIRS=
12169 if test -n "$ac_aux_dir"; then
12170 case "$ac_aux_dir" in
12171 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12172 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12173 esac
12175 if test -z "$MKINSTALLDIRS"; then
12176 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12181 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12182 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12183 # Check whether --enable-nls or --disable-nls was given.
12184 if test "${enable_nls+set}" = set; then
12185 enableval="$enable_nls"
12186 USE_NLS=$enableval
12187 else
12188 USE_NLS=yes
12190 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12191 echo "${ECHO_T}$USE_NLS" >&6
12198 # Prepare PATH_SEPARATOR.
12199 # The user is always right.
12200 if test "${PATH_SEPARATOR+set}" != set; then
12201 echo "#! /bin/sh" >conf$$.sh
12202 echo "exit 0" >>conf$$.sh
12203 chmod +x conf$$.sh
12204 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12205 PATH_SEPARATOR=';'
12206 else
12207 PATH_SEPARATOR=:
12209 rm -f conf$$.sh
12212 # Find out how to test for executable files. Don't use a zero-byte file,
12213 # as systems may use methods other than mode bits to determine executability.
12214 cat >conf$$.file <<_ASEOF
12215 #! /bin/sh
12216 exit 0
12217 _ASEOF
12218 chmod +x conf$$.file
12219 if test -x conf$$.file >/dev/null 2>&1; then
12220 ac_executable_p="test -x"
12221 else
12222 ac_executable_p="test -f"
12224 rm -f conf$$.file
12226 # Extract the first word of "msgfmt", so it can be a program name with args.
12227 set dummy msgfmt; ac_word=$2
12228 echo "$as_me:$LINENO: checking for $ac_word" >&5
12229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12230 if test "${ac_cv_path_MSGFMT+set}" = set; then
12231 echo $ECHO_N "(cached) $ECHO_C" >&6
12232 else
12233 case "$MSGFMT" in
12234 [\\/]* | ?:[\\/]*)
12235 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12238 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12239 for ac_dir in $PATH; do
12240 IFS="$ac_save_IFS"
12241 test -z "$ac_dir" && ac_dir=.
12242 for ac_exec_ext in '' $ac_executable_extensions; do
12243 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12244 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12245 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12246 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12247 break 2
12250 done
12251 done
12252 IFS="$ac_save_IFS"
12253 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12255 esac
12257 MSGFMT="$ac_cv_path_MSGFMT"
12258 if test "$MSGFMT" != ":"; then
12259 echo "$as_me:$LINENO: result: $MSGFMT" >&5
12260 echo "${ECHO_T}$MSGFMT" >&6
12261 else
12262 echo "$as_me:$LINENO: result: no" >&5
12263 echo "${ECHO_T}no" >&6
12266 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12267 set dummy gmsgfmt; ac_word=$2
12268 echo "$as_me:$LINENO: checking for $ac_word" >&5
12269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12270 if test "${ac_cv_path_GMSGFMT+set}" = set; then
12271 echo $ECHO_N "(cached) $ECHO_C" >&6
12272 else
12273 case $GMSGFMT in
12274 [\\/]* | ?:[\\/]*)
12275 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12279 for as_dir in $PATH
12281 IFS=$as_save_IFS
12282 test -z "$as_dir" && as_dir=.
12283 for ac_exec_ext in '' $ac_executable_extensions; do
12284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12285 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12287 break 2
12289 done
12290 done
12292 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12294 esac
12296 GMSGFMT=$ac_cv_path_GMSGFMT
12298 if test -n "$GMSGFMT"; then
12299 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
12300 echo "${ECHO_T}$GMSGFMT" >&6
12301 else
12302 echo "$as_me:$LINENO: result: no" >&5
12303 echo "${ECHO_T}no" >&6
12308 # Prepare PATH_SEPARATOR.
12309 # The user is always right.
12310 if test "${PATH_SEPARATOR+set}" != set; then
12311 echo "#! /bin/sh" >conf$$.sh
12312 echo "exit 0" >>conf$$.sh
12313 chmod +x conf$$.sh
12314 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12315 PATH_SEPARATOR=';'
12316 else
12317 PATH_SEPARATOR=:
12319 rm -f conf$$.sh
12322 # Find out how to test for executable files. Don't use a zero-byte file,
12323 # as systems may use methods other than mode bits to determine executability.
12324 cat >conf$$.file <<_ASEOF
12325 #! /bin/sh
12326 exit 0
12327 _ASEOF
12328 chmod +x conf$$.file
12329 if test -x conf$$.file >/dev/null 2>&1; then
12330 ac_executable_p="test -x"
12331 else
12332 ac_executable_p="test -f"
12334 rm -f conf$$.file
12336 # Extract the first word of "xgettext", so it can be a program name with args.
12337 set dummy xgettext; ac_word=$2
12338 echo "$as_me:$LINENO: checking for $ac_word" >&5
12339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12340 if test "${ac_cv_path_XGETTEXT+set}" = set; then
12341 echo $ECHO_N "(cached) $ECHO_C" >&6
12342 else
12343 case "$XGETTEXT" in
12344 [\\/]* | ?:[\\/]*)
12345 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12348 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12349 for ac_dir in $PATH; do
12350 IFS="$ac_save_IFS"
12351 test -z "$ac_dir" && ac_dir=.
12352 for ac_exec_ext in '' $ac_executable_extensions; do
12353 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12354 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12355 (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
12356 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12357 break 2
12360 done
12361 done
12362 IFS="$ac_save_IFS"
12363 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12365 esac
12367 XGETTEXT="$ac_cv_path_XGETTEXT"
12368 if test "$XGETTEXT" != ":"; then
12369 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
12370 echo "${ECHO_T}$XGETTEXT" >&6
12371 else
12372 echo "$as_me:$LINENO: result: no" >&5
12373 echo "${ECHO_T}no" >&6
12376 rm -f messages.po
12379 # Prepare PATH_SEPARATOR.
12380 # The user is always right.
12381 if test "${PATH_SEPARATOR+set}" != set; then
12382 echo "#! /bin/sh" >conf$$.sh
12383 echo "exit 0" >>conf$$.sh
12384 chmod +x conf$$.sh
12385 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12386 PATH_SEPARATOR=';'
12387 else
12388 PATH_SEPARATOR=:
12390 rm -f conf$$.sh
12393 # Find out how to test for executable files. Don't use a zero-byte file,
12394 # as systems may use methods other than mode bits to determine executability.
12395 cat >conf$$.file <<_ASEOF
12396 #! /bin/sh
12397 exit 0
12398 _ASEOF
12399 chmod +x conf$$.file
12400 if test -x conf$$.file >/dev/null 2>&1; then
12401 ac_executable_p="test -x"
12402 else
12403 ac_executable_p="test -f"
12405 rm -f conf$$.file
12407 # Extract the first word of "msgmerge", so it can be a program name with args.
12408 set dummy msgmerge; ac_word=$2
12409 echo "$as_me:$LINENO: checking for $ac_word" >&5
12410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12411 if test "${ac_cv_path_MSGMERGE+set}" = set; then
12412 echo $ECHO_N "(cached) $ECHO_C" >&6
12413 else
12414 case "$MSGMERGE" in
12415 [\\/]* | ?:[\\/]*)
12416 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12419 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12420 for ac_dir in $PATH; do
12421 IFS="$ac_save_IFS"
12422 test -z "$ac_dir" && ac_dir=.
12423 for ac_exec_ext in '' $ac_executable_extensions; do
12424 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12425 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12426 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12427 break 2
12430 done
12431 done
12432 IFS="$ac_save_IFS"
12433 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12435 esac
12437 MSGMERGE="$ac_cv_path_MSGMERGE"
12438 if test "$MSGMERGE" != ":"; then
12439 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
12440 echo "${ECHO_T}$MSGMERGE" >&6
12441 else
12442 echo "$as_me:$LINENO: result: no" >&5
12443 echo "${ECHO_T}no" >&6
12447 if test "$GMSGFMT" != ":"; then
12448 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12449 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12451 else
12452 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12453 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12454 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
12455 GMSGFMT=":"
12459 if test "$XGETTEXT" != ":"; then
12460 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12461 (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
12463 else
12464 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
12465 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
12466 XGETTEXT=":"
12468 rm -f messages.po
12471 ac_config_commands="$ac_config_commands default-1"
12475 # Permit host specific settings.
12476 . ${srcdir}/configure.host
12479 # Find a good install program. We prefer a C program (faster),
12480 # so one script is as good as another. But avoid the broken or
12481 # incompatible versions:
12482 # SysV /etc/install, /usr/sbin/install
12483 # SunOS /usr/etc/install
12484 # IRIX /sbin/install
12485 # AIX /bin/install
12486 # AmigaOS /C/install, which installs bootblocks on floppy discs
12487 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12488 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
12489 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12490 # OS/2's system install, which has a completely different semantic
12491 # ./install, which can be erroneously created by make from ./install.sh.
12492 # Reject install programs that cannot install multiple files.
12493 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12494 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12495 if test -z "$INSTALL"; then
12496 if test "${ac_cv_path_install+set}" = set; then
12497 echo $ECHO_N "(cached) $ECHO_C" >&6
12498 else
12499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12500 for as_dir in $PATH
12502 IFS=$as_save_IFS
12503 test -z "$as_dir" && as_dir=.
12504 # Account for people who put trailing slashes in PATH elements.
12505 case $as_dir/ in
12506 ./ | .// | /cC/* | \
12507 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12508 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12509 /usr/ucb/* ) ;;
12511 # OSF1 and SCO ODT 3.0 have their own names for install.
12512 # Don't use installbsd from OSF since it installs stuff as root
12513 # by default.
12514 for ac_prog in ginstall scoinst install; do
12515 for ac_exec_ext in '' $ac_executable_extensions; do
12516 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12517 if test $ac_prog = install &&
12518 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12519 # AIX install. It has an incompatible calling convention.
12521 elif test $ac_prog = install &&
12522 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12523 # program-specific install script used by HP pwplus--don't use.
12525 else
12526 rm -rf conftest.one conftest.two conftest.dir
12527 echo one > conftest.one
12528 echo two > conftest.two
12529 mkdir conftest.dir
12530 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12531 test -s conftest.one && test -s conftest.two &&
12532 test -s conftest.dir/conftest.one &&
12533 test -s conftest.dir/conftest.two
12534 then
12535 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12536 break 3
12540 done
12541 done
12543 esac
12544 done
12546 rm -rf conftest.one conftest.two conftest.dir
12549 if test "${ac_cv_path_install+set}" = set; then
12550 INSTALL=$ac_cv_path_install
12551 else
12552 # As a last resort, use the slow shell script. Don't cache a
12553 # value for INSTALL within a source directory, because that will
12554 # break other packages using the cache if that directory is
12555 # removed, or if the value is a relative name.
12556 INSTALL=$ac_install_sh
12559 echo "$as_me:$LINENO: result: $INSTALL" >&5
12560 echo "${ECHO_T}$INSTALL" >&6
12562 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12563 # It thinks the first close brace ends the variable substitution.
12564 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12566 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12568 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12571 BFD_HOST_64BIT_LONG=0
12572 BFD_HOST_64BIT_LONG_LONG=0
12573 BFD_HOST_64_BIT_DEFINED=0
12574 BFD_HOST_64_BIT=
12575 BFD_HOST_U_64_BIT=
12576 BFD_HOSTPTR_T="unsigned long"
12578 echo "$as_me:$LINENO: checking for long long" >&5
12579 echo $ECHO_N "checking for long long... $ECHO_C" >&6
12580 if test "${ac_cv_type_long_long+set}" = set; then
12581 echo $ECHO_N "(cached) $ECHO_C" >&6
12582 else
12583 cat >conftest.$ac_ext <<_ACEOF
12584 /* confdefs.h. */
12585 _ACEOF
12586 cat confdefs.h >>conftest.$ac_ext
12587 cat >>conftest.$ac_ext <<_ACEOF
12588 /* end confdefs.h. */
12589 $ac_includes_default
12591 main ()
12593 if ((long long *) 0)
12594 return 0;
12595 if (sizeof (long long))
12596 return 0;
12598 return 0;
12600 _ACEOF
12601 rm -f conftest.$ac_objext
12602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12603 (eval $ac_compile) 2>conftest.er1
12604 ac_status=$?
12605 grep -v '^ *+' conftest.er1 >conftest.err
12606 rm -f conftest.er1
12607 cat conftest.err >&5
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); } &&
12610 { ac_try='test -z "$ac_c_werror_flag"
12611 || test ! -s conftest.err'
12612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12613 (eval $ac_try) 2>&5
12614 ac_status=$?
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); }; } &&
12617 { ac_try='test -s conftest.$ac_objext'
12618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12619 (eval $ac_try) 2>&5
12620 ac_status=$?
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); }; }; then
12623 ac_cv_type_long_long=yes
12624 else
12625 echo "$as_me: failed program was:" >&5
12626 sed 's/^/| /' conftest.$ac_ext >&5
12628 ac_cv_type_long_long=no
12630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12632 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12633 echo "${ECHO_T}$ac_cv_type_long_long" >&6
12635 echo "$as_me:$LINENO: checking size of long long" >&5
12636 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12637 if test "${ac_cv_sizeof_long_long+set}" = set; then
12638 echo $ECHO_N "(cached) $ECHO_C" >&6
12639 else
12640 if test "$ac_cv_type_long_long" = yes; then
12641 # The cast to unsigned long works around a bug in the HP C Compiler
12642 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12643 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12644 # This bug is HP SR number 8606223364.
12645 if test "$cross_compiling" = yes; then
12646 # Depending upon the size, compute the lo and hi bounds.
12647 cat >conftest.$ac_ext <<_ACEOF
12648 /* confdefs.h. */
12649 _ACEOF
12650 cat confdefs.h >>conftest.$ac_ext
12651 cat >>conftest.$ac_ext <<_ACEOF
12652 /* end confdefs.h. */
12653 $ac_includes_default
12655 main ()
12657 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12658 test_array [0] = 0
12661 return 0;
12663 _ACEOF
12664 rm -f conftest.$ac_objext
12665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12666 (eval $ac_compile) 2>conftest.er1
12667 ac_status=$?
12668 grep -v '^ *+' conftest.er1 >conftest.err
12669 rm -f conftest.er1
12670 cat conftest.err >&5
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); } &&
12673 { ac_try='test -z "$ac_c_werror_flag"
12674 || test ! -s conftest.err'
12675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12676 (eval $ac_try) 2>&5
12677 ac_status=$?
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); }; } &&
12680 { ac_try='test -s conftest.$ac_objext'
12681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12682 (eval $ac_try) 2>&5
12683 ac_status=$?
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); }; }; then
12686 ac_lo=0 ac_mid=0
12687 while :; do
12688 cat >conftest.$ac_ext <<_ACEOF
12689 /* confdefs.h. */
12690 _ACEOF
12691 cat confdefs.h >>conftest.$ac_ext
12692 cat >>conftest.$ac_ext <<_ACEOF
12693 /* end confdefs.h. */
12694 $ac_includes_default
12696 main ()
12698 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12699 test_array [0] = 0
12702 return 0;
12704 _ACEOF
12705 rm -f conftest.$ac_objext
12706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12707 (eval $ac_compile) 2>conftest.er1
12708 ac_status=$?
12709 grep -v '^ *+' conftest.er1 >conftest.err
12710 rm -f conftest.er1
12711 cat conftest.err >&5
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); } &&
12714 { ac_try='test -z "$ac_c_werror_flag"
12715 || test ! -s conftest.err'
12716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12717 (eval $ac_try) 2>&5
12718 ac_status=$?
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); }; } &&
12721 { ac_try='test -s conftest.$ac_objext'
12722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12723 (eval $ac_try) 2>&5
12724 ac_status=$?
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); }; }; then
12727 ac_hi=$ac_mid; break
12728 else
12729 echo "$as_me: failed program was:" >&5
12730 sed 's/^/| /' conftest.$ac_ext >&5
12732 ac_lo=`expr $ac_mid + 1`
12733 if test $ac_lo -le $ac_mid; then
12734 ac_lo= ac_hi=
12735 break
12737 ac_mid=`expr 2 '*' $ac_mid + 1`
12739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12740 done
12741 else
12742 echo "$as_me: failed program was:" >&5
12743 sed 's/^/| /' conftest.$ac_ext >&5
12745 cat >conftest.$ac_ext <<_ACEOF
12746 /* confdefs.h. */
12747 _ACEOF
12748 cat confdefs.h >>conftest.$ac_ext
12749 cat >>conftest.$ac_ext <<_ACEOF
12750 /* end confdefs.h. */
12751 $ac_includes_default
12753 main ()
12755 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12756 test_array [0] = 0
12759 return 0;
12761 _ACEOF
12762 rm -f conftest.$ac_objext
12763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12764 (eval $ac_compile) 2>conftest.er1
12765 ac_status=$?
12766 grep -v '^ *+' conftest.er1 >conftest.err
12767 rm -f conftest.er1
12768 cat conftest.err >&5
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); } &&
12771 { ac_try='test -z "$ac_c_werror_flag"
12772 || test ! -s conftest.err'
12773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12774 (eval $ac_try) 2>&5
12775 ac_status=$?
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); }; } &&
12778 { ac_try='test -s conftest.$ac_objext'
12779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12780 (eval $ac_try) 2>&5
12781 ac_status=$?
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); }; }; then
12784 ac_hi=-1 ac_mid=-1
12785 while :; do
12786 cat >conftest.$ac_ext <<_ACEOF
12787 /* confdefs.h. */
12788 _ACEOF
12789 cat confdefs.h >>conftest.$ac_ext
12790 cat >>conftest.$ac_ext <<_ACEOF
12791 /* end confdefs.h. */
12792 $ac_includes_default
12794 main ()
12796 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12797 test_array [0] = 0
12800 return 0;
12802 _ACEOF
12803 rm -f conftest.$ac_objext
12804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12805 (eval $ac_compile) 2>conftest.er1
12806 ac_status=$?
12807 grep -v '^ *+' conftest.er1 >conftest.err
12808 rm -f conftest.er1
12809 cat conftest.err >&5
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); } &&
12812 { ac_try='test -z "$ac_c_werror_flag"
12813 || test ! -s conftest.err'
12814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12815 (eval $ac_try) 2>&5
12816 ac_status=$?
12817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818 (exit $ac_status); }; } &&
12819 { ac_try='test -s conftest.$ac_objext'
12820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12821 (eval $ac_try) 2>&5
12822 ac_status=$?
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); }; }; then
12825 ac_lo=$ac_mid; break
12826 else
12827 echo "$as_me: failed program was:" >&5
12828 sed 's/^/| /' conftest.$ac_ext >&5
12830 ac_hi=`expr '(' $ac_mid ')' - 1`
12831 if test $ac_mid -le $ac_hi; then
12832 ac_lo= ac_hi=
12833 break
12835 ac_mid=`expr 2 '*' $ac_mid`
12837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12838 done
12839 else
12840 echo "$as_me: failed program was:" >&5
12841 sed 's/^/| /' conftest.$ac_ext >&5
12843 ac_lo= ac_hi=
12845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12848 # Binary search between lo and hi bounds.
12849 while test "x$ac_lo" != "x$ac_hi"; do
12850 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12851 cat >conftest.$ac_ext <<_ACEOF
12852 /* confdefs.h. */
12853 _ACEOF
12854 cat confdefs.h >>conftest.$ac_ext
12855 cat >>conftest.$ac_ext <<_ACEOF
12856 /* end confdefs.h. */
12857 $ac_includes_default
12859 main ()
12861 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12862 test_array [0] = 0
12865 return 0;
12867 _ACEOF
12868 rm -f conftest.$ac_objext
12869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12870 (eval $ac_compile) 2>conftest.er1
12871 ac_status=$?
12872 grep -v '^ *+' conftest.er1 >conftest.err
12873 rm -f conftest.er1
12874 cat conftest.err >&5
12875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876 (exit $ac_status); } &&
12877 { ac_try='test -z "$ac_c_werror_flag"
12878 || test ! -s conftest.err'
12879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12880 (eval $ac_try) 2>&5
12881 ac_status=$?
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); }; } &&
12884 { ac_try='test -s conftest.$ac_objext'
12885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12886 (eval $ac_try) 2>&5
12887 ac_status=$?
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }; }; then
12890 ac_hi=$ac_mid
12891 else
12892 echo "$as_me: failed program was:" >&5
12893 sed 's/^/| /' conftest.$ac_ext >&5
12895 ac_lo=`expr '(' $ac_mid ')' + 1`
12897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12898 done
12899 case $ac_lo in
12900 ?*) ac_cv_sizeof_long_long=$ac_lo;;
12901 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12902 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12903 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
12904 See \`config.log' for more details." >&5
12905 echo "$as_me: error: cannot compute sizeof (long long), 77
12906 See \`config.log' for more details." >&2;}
12907 { (exit 1); exit 1; }; }; } ;;
12908 esac
12909 else
12910 if test "$cross_compiling" = yes; then
12911 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12912 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12913 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12914 See \`config.log' for more details." >&5
12915 echo "$as_me: error: cannot run test program while cross compiling
12916 See \`config.log' for more details." >&2;}
12917 { (exit 1); exit 1; }; }; }
12918 else
12919 cat >conftest.$ac_ext <<_ACEOF
12920 /* confdefs.h. */
12921 _ACEOF
12922 cat confdefs.h >>conftest.$ac_ext
12923 cat >>conftest.$ac_ext <<_ACEOF
12924 /* end confdefs.h. */
12925 $ac_includes_default
12926 long longval () { return (long) (sizeof (long long)); }
12927 unsigned long ulongval () { return (long) (sizeof (long long)); }
12928 #include <stdio.h>
12929 #include <stdlib.h>
12931 main ()
12934 FILE *f = fopen ("conftest.val", "w");
12935 if (! f)
12936 exit (1);
12937 if (((long) (sizeof (long long))) < 0)
12939 long i = longval ();
12940 if (i != ((long) (sizeof (long long))))
12941 exit (1);
12942 fprintf (f, "%ld\n", i);
12944 else
12946 unsigned long i = ulongval ();
12947 if (i != ((long) (sizeof (long long))))
12948 exit (1);
12949 fprintf (f, "%lu\n", i);
12951 exit (ferror (f) || fclose (f) != 0);
12954 return 0;
12956 _ACEOF
12957 rm -f conftest$ac_exeext
12958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12959 (eval $ac_link) 2>&5
12960 ac_status=$?
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12964 (eval $ac_try) 2>&5
12965 ac_status=$?
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); }; }; then
12968 ac_cv_sizeof_long_long=`cat conftest.val`
12969 else
12970 echo "$as_me: program exited with status $ac_status" >&5
12971 echo "$as_me: failed program was:" >&5
12972 sed 's/^/| /' conftest.$ac_ext >&5
12974 ( exit $ac_status )
12975 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12976 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12977 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
12978 See \`config.log' for more details." >&5
12979 echo "$as_me: error: cannot compute sizeof (long long), 77
12980 See \`config.log' for more details." >&2;}
12981 { (exit 1); exit 1; }; }; }
12983 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12986 rm -f conftest.val
12987 else
12988 ac_cv_sizeof_long_long=0
12991 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
12992 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
12993 cat >>confdefs.h <<_ACEOF
12994 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12995 _ACEOF
12998 echo "$as_me:$LINENO: checking for void *" >&5
12999 echo $ECHO_N "checking for void *... $ECHO_C" >&6
13000 if test "${ac_cv_type_void_p+set}" = set; then
13001 echo $ECHO_N "(cached) $ECHO_C" >&6
13002 else
13003 cat >conftest.$ac_ext <<_ACEOF
13004 /* confdefs.h. */
13005 _ACEOF
13006 cat confdefs.h >>conftest.$ac_ext
13007 cat >>conftest.$ac_ext <<_ACEOF
13008 /* end confdefs.h. */
13009 $ac_includes_default
13011 main ()
13013 if ((void * *) 0)
13014 return 0;
13015 if (sizeof (void *))
13016 return 0;
13018 return 0;
13020 _ACEOF
13021 rm -f conftest.$ac_objext
13022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13023 (eval $ac_compile) 2>conftest.er1
13024 ac_status=$?
13025 grep -v '^ *+' conftest.er1 >conftest.err
13026 rm -f conftest.er1
13027 cat conftest.err >&5
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); } &&
13030 { ac_try='test -z "$ac_c_werror_flag"
13031 || test ! -s conftest.err'
13032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13033 (eval $ac_try) 2>&5
13034 ac_status=$?
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); }; } &&
13037 { ac_try='test -s conftest.$ac_objext'
13038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13039 (eval $ac_try) 2>&5
13040 ac_status=$?
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); }; }; then
13043 ac_cv_type_void_p=yes
13044 else
13045 echo "$as_me: failed program was:" >&5
13046 sed 's/^/| /' conftest.$ac_ext >&5
13048 ac_cv_type_void_p=no
13050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13052 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13053 echo "${ECHO_T}$ac_cv_type_void_p" >&6
13055 echo "$as_me:$LINENO: checking size of void *" >&5
13056 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13057 if test "${ac_cv_sizeof_void_p+set}" = set; then
13058 echo $ECHO_N "(cached) $ECHO_C" >&6
13059 else
13060 if test "$ac_cv_type_void_p" = yes; then
13061 # The cast to unsigned long works around a bug in the HP C Compiler
13062 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13063 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13064 # This bug is HP SR number 8606223364.
13065 if test "$cross_compiling" = yes; then
13066 # Depending upon the size, compute the lo and hi bounds.
13067 cat >conftest.$ac_ext <<_ACEOF
13068 /* confdefs.h. */
13069 _ACEOF
13070 cat confdefs.h >>conftest.$ac_ext
13071 cat >>conftest.$ac_ext <<_ACEOF
13072 /* end confdefs.h. */
13073 $ac_includes_default
13075 main ()
13077 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
13078 test_array [0] = 0
13081 return 0;
13083 _ACEOF
13084 rm -f conftest.$ac_objext
13085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13086 (eval $ac_compile) 2>conftest.er1
13087 ac_status=$?
13088 grep -v '^ *+' conftest.er1 >conftest.err
13089 rm -f conftest.er1
13090 cat conftest.err >&5
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); } &&
13093 { ac_try='test -z "$ac_c_werror_flag"
13094 || test ! -s conftest.err'
13095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13096 (eval $ac_try) 2>&5
13097 ac_status=$?
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); }; } &&
13100 { ac_try='test -s conftest.$ac_objext'
13101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13102 (eval $ac_try) 2>&5
13103 ac_status=$?
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); }; }; then
13106 ac_lo=0 ac_mid=0
13107 while :; do
13108 cat >conftest.$ac_ext <<_ACEOF
13109 /* confdefs.h. */
13110 _ACEOF
13111 cat confdefs.h >>conftest.$ac_ext
13112 cat >>conftest.$ac_ext <<_ACEOF
13113 /* end confdefs.h. */
13114 $ac_includes_default
13116 main ()
13118 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13119 test_array [0] = 0
13122 return 0;
13124 _ACEOF
13125 rm -f conftest.$ac_objext
13126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13127 (eval $ac_compile) 2>conftest.er1
13128 ac_status=$?
13129 grep -v '^ *+' conftest.er1 >conftest.err
13130 rm -f conftest.er1
13131 cat conftest.err >&5
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 (exit $ac_status); } &&
13134 { ac_try='test -z "$ac_c_werror_flag"
13135 || test ! -s conftest.err'
13136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13137 (eval $ac_try) 2>&5
13138 ac_status=$?
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); }; } &&
13141 { ac_try='test -s conftest.$ac_objext'
13142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13143 (eval $ac_try) 2>&5
13144 ac_status=$?
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); }; }; then
13147 ac_hi=$ac_mid; break
13148 else
13149 echo "$as_me: failed program was:" >&5
13150 sed 's/^/| /' conftest.$ac_ext >&5
13152 ac_lo=`expr $ac_mid + 1`
13153 if test $ac_lo -le $ac_mid; then
13154 ac_lo= ac_hi=
13155 break
13157 ac_mid=`expr 2 '*' $ac_mid + 1`
13159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13160 done
13161 else
13162 echo "$as_me: failed program was:" >&5
13163 sed 's/^/| /' conftest.$ac_ext >&5
13165 cat >conftest.$ac_ext <<_ACEOF
13166 /* confdefs.h. */
13167 _ACEOF
13168 cat confdefs.h >>conftest.$ac_ext
13169 cat >>conftest.$ac_ext <<_ACEOF
13170 /* end confdefs.h. */
13171 $ac_includes_default
13173 main ()
13175 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
13176 test_array [0] = 0
13179 return 0;
13181 _ACEOF
13182 rm -f conftest.$ac_objext
13183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13184 (eval $ac_compile) 2>conftest.er1
13185 ac_status=$?
13186 grep -v '^ *+' conftest.er1 >conftest.err
13187 rm -f conftest.er1
13188 cat conftest.err >&5
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); } &&
13191 { ac_try='test -z "$ac_c_werror_flag"
13192 || test ! -s conftest.err'
13193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13194 (eval $ac_try) 2>&5
13195 ac_status=$?
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); }; } &&
13198 { ac_try='test -s conftest.$ac_objext'
13199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13200 (eval $ac_try) 2>&5
13201 ac_status=$?
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); }; }; then
13204 ac_hi=-1 ac_mid=-1
13205 while :; do
13206 cat >conftest.$ac_ext <<_ACEOF
13207 /* confdefs.h. */
13208 _ACEOF
13209 cat confdefs.h >>conftest.$ac_ext
13210 cat >>conftest.$ac_ext <<_ACEOF
13211 /* end confdefs.h. */
13212 $ac_includes_default
13214 main ()
13216 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
13217 test_array [0] = 0
13220 return 0;
13222 _ACEOF
13223 rm -f conftest.$ac_objext
13224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13225 (eval $ac_compile) 2>conftest.er1
13226 ac_status=$?
13227 grep -v '^ *+' conftest.er1 >conftest.err
13228 rm -f conftest.er1
13229 cat conftest.err >&5
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); } &&
13232 { ac_try='test -z "$ac_c_werror_flag"
13233 || test ! -s conftest.err'
13234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13235 (eval $ac_try) 2>&5
13236 ac_status=$?
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); }; } &&
13239 { ac_try='test -s conftest.$ac_objext'
13240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13241 (eval $ac_try) 2>&5
13242 ac_status=$?
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); }; }; then
13245 ac_lo=$ac_mid; break
13246 else
13247 echo "$as_me: failed program was:" >&5
13248 sed 's/^/| /' conftest.$ac_ext >&5
13250 ac_hi=`expr '(' $ac_mid ')' - 1`
13251 if test $ac_mid -le $ac_hi; then
13252 ac_lo= ac_hi=
13253 break
13255 ac_mid=`expr 2 '*' $ac_mid`
13257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13258 done
13259 else
13260 echo "$as_me: failed program was:" >&5
13261 sed 's/^/| /' conftest.$ac_ext >&5
13263 ac_lo= ac_hi=
13265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13268 # Binary search between lo and hi bounds.
13269 while test "x$ac_lo" != "x$ac_hi"; do
13270 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13271 cat >conftest.$ac_ext <<_ACEOF
13272 /* confdefs.h. */
13273 _ACEOF
13274 cat confdefs.h >>conftest.$ac_ext
13275 cat >>conftest.$ac_ext <<_ACEOF
13276 /* end confdefs.h. */
13277 $ac_includes_default
13279 main ()
13281 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13282 test_array [0] = 0
13285 return 0;
13287 _ACEOF
13288 rm -f conftest.$ac_objext
13289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13290 (eval $ac_compile) 2>conftest.er1
13291 ac_status=$?
13292 grep -v '^ *+' conftest.er1 >conftest.err
13293 rm -f conftest.er1
13294 cat conftest.err >&5
13295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296 (exit $ac_status); } &&
13297 { ac_try='test -z "$ac_c_werror_flag"
13298 || test ! -s conftest.err'
13299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13300 (eval $ac_try) 2>&5
13301 ac_status=$?
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); }; } &&
13304 { ac_try='test -s conftest.$ac_objext'
13305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13306 (eval $ac_try) 2>&5
13307 ac_status=$?
13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); }; }; then
13310 ac_hi=$ac_mid
13311 else
13312 echo "$as_me: failed program was:" >&5
13313 sed 's/^/| /' conftest.$ac_ext >&5
13315 ac_lo=`expr '(' $ac_mid ')' + 1`
13317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13318 done
13319 case $ac_lo in
13320 ?*) ac_cv_sizeof_void_p=$ac_lo;;
13321 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13322 echo "$as_me: error: in \`$ac_pwd':" >&2;}
13323 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13324 See \`config.log' for more details." >&5
13325 echo "$as_me: error: cannot compute sizeof (void *), 77
13326 See \`config.log' for more details." >&2;}
13327 { (exit 1); exit 1; }; }; } ;;
13328 esac
13329 else
13330 if test "$cross_compiling" = yes; then
13331 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13332 echo "$as_me: error: in \`$ac_pwd':" >&2;}
13333 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13334 See \`config.log' for more details." >&5
13335 echo "$as_me: error: cannot run test program while cross compiling
13336 See \`config.log' for more details." >&2;}
13337 { (exit 1); exit 1; }; }; }
13338 else
13339 cat >conftest.$ac_ext <<_ACEOF
13340 /* confdefs.h. */
13341 _ACEOF
13342 cat confdefs.h >>conftest.$ac_ext
13343 cat >>conftest.$ac_ext <<_ACEOF
13344 /* end confdefs.h. */
13345 $ac_includes_default
13346 long longval () { return (long) (sizeof (void *)); }
13347 unsigned long ulongval () { return (long) (sizeof (void *)); }
13348 #include <stdio.h>
13349 #include <stdlib.h>
13351 main ()
13354 FILE *f = fopen ("conftest.val", "w");
13355 if (! f)
13356 exit (1);
13357 if (((long) (sizeof (void *))) < 0)
13359 long i = longval ();
13360 if (i != ((long) (sizeof (void *))))
13361 exit (1);
13362 fprintf (f, "%ld\n", i);
13364 else
13366 unsigned long i = ulongval ();
13367 if (i != ((long) (sizeof (void *))))
13368 exit (1);
13369 fprintf (f, "%lu\n", i);
13371 exit (ferror (f) || fclose (f) != 0);
13374 return 0;
13376 _ACEOF
13377 rm -f conftest$ac_exeext
13378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13379 (eval $ac_link) 2>&5
13380 ac_status=$?
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13384 (eval $ac_try) 2>&5
13385 ac_status=$?
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); }; }; then
13388 ac_cv_sizeof_void_p=`cat conftest.val`
13389 else
13390 echo "$as_me: program exited with status $ac_status" >&5
13391 echo "$as_me: failed program was:" >&5
13392 sed 's/^/| /' conftest.$ac_ext >&5
13394 ( exit $ac_status )
13395 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13396 echo "$as_me: error: in \`$ac_pwd':" >&2;}
13397 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13398 See \`config.log' for more details." >&5
13399 echo "$as_me: error: cannot compute sizeof (void *), 77
13400 See \`config.log' for more details." >&2;}
13401 { (exit 1); exit 1; }; }; }
13403 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13406 rm -f conftest.val
13407 else
13408 ac_cv_sizeof_void_p=0
13411 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13412 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13413 cat >>confdefs.h <<_ACEOF
13414 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13415 _ACEOF
13418 echo "$as_me:$LINENO: checking for long" >&5
13419 echo $ECHO_N "checking for long... $ECHO_C" >&6
13420 if test "${ac_cv_type_long+set}" = set; then
13421 echo $ECHO_N "(cached) $ECHO_C" >&6
13422 else
13423 cat >conftest.$ac_ext <<_ACEOF
13424 /* confdefs.h. */
13425 _ACEOF
13426 cat confdefs.h >>conftest.$ac_ext
13427 cat >>conftest.$ac_ext <<_ACEOF
13428 /* end confdefs.h. */
13429 $ac_includes_default
13431 main ()
13433 if ((long *) 0)
13434 return 0;
13435 if (sizeof (long))
13436 return 0;
13438 return 0;
13440 _ACEOF
13441 rm -f conftest.$ac_objext
13442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13443 (eval $ac_compile) 2>conftest.er1
13444 ac_status=$?
13445 grep -v '^ *+' conftest.er1 >conftest.err
13446 rm -f conftest.er1
13447 cat conftest.err >&5
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); } &&
13450 { ac_try='test -z "$ac_c_werror_flag"
13451 || test ! -s conftest.err'
13452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13453 (eval $ac_try) 2>&5
13454 ac_status=$?
13455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); }; } &&
13457 { ac_try='test -s conftest.$ac_objext'
13458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13459 (eval $ac_try) 2>&5
13460 ac_status=$?
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); }; }; then
13463 ac_cv_type_long=yes
13464 else
13465 echo "$as_me: failed program was:" >&5
13466 sed 's/^/| /' conftest.$ac_ext >&5
13468 ac_cv_type_long=no
13470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13472 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13473 echo "${ECHO_T}$ac_cv_type_long" >&6
13475 echo "$as_me:$LINENO: checking size of long" >&5
13476 echo $ECHO_N "checking size of long... $ECHO_C" >&6
13477 if test "${ac_cv_sizeof_long+set}" = set; then
13478 echo $ECHO_N "(cached) $ECHO_C" >&6
13479 else
13480 if test "$ac_cv_type_long" = yes; then
13481 # The cast to unsigned long works around a bug in the HP C Compiler
13482 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13483 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13484 # This bug is HP SR number 8606223364.
13485 if test "$cross_compiling" = yes; then
13486 # Depending upon the size, compute the lo and hi bounds.
13487 cat >conftest.$ac_ext <<_ACEOF
13488 /* confdefs.h. */
13489 _ACEOF
13490 cat confdefs.h >>conftest.$ac_ext
13491 cat >>conftest.$ac_ext <<_ACEOF
13492 /* end confdefs.h. */
13493 $ac_includes_default
13495 main ()
13497 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
13498 test_array [0] = 0
13501 return 0;
13503 _ACEOF
13504 rm -f conftest.$ac_objext
13505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13506 (eval $ac_compile) 2>conftest.er1
13507 ac_status=$?
13508 grep -v '^ *+' conftest.er1 >conftest.err
13509 rm -f conftest.er1
13510 cat conftest.err >&5
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); } &&
13513 { ac_try='test -z "$ac_c_werror_flag"
13514 || test ! -s conftest.err'
13515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13516 (eval $ac_try) 2>&5
13517 ac_status=$?
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); }; } &&
13520 { ac_try='test -s conftest.$ac_objext'
13521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13522 (eval $ac_try) 2>&5
13523 ac_status=$?
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); }; }; then
13526 ac_lo=0 ac_mid=0
13527 while :; do
13528 cat >conftest.$ac_ext <<_ACEOF
13529 /* confdefs.h. */
13530 _ACEOF
13531 cat confdefs.h >>conftest.$ac_ext
13532 cat >>conftest.$ac_ext <<_ACEOF
13533 /* end confdefs.h. */
13534 $ac_includes_default
13536 main ()
13538 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13539 test_array [0] = 0
13542 return 0;
13544 _ACEOF
13545 rm -f conftest.$ac_objext
13546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13547 (eval $ac_compile) 2>conftest.er1
13548 ac_status=$?
13549 grep -v '^ *+' conftest.er1 >conftest.err
13550 rm -f conftest.er1
13551 cat conftest.err >&5
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); } &&
13554 { ac_try='test -z "$ac_c_werror_flag"
13555 || test ! -s conftest.err'
13556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13557 (eval $ac_try) 2>&5
13558 ac_status=$?
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); }; } &&
13561 { ac_try='test -s conftest.$ac_objext'
13562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563 (eval $ac_try) 2>&5
13564 ac_status=$?
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); }; }; then
13567 ac_hi=$ac_mid; break
13568 else
13569 echo "$as_me: failed program was:" >&5
13570 sed 's/^/| /' conftest.$ac_ext >&5
13572 ac_lo=`expr $ac_mid + 1`
13573 if test $ac_lo -le $ac_mid; then
13574 ac_lo= ac_hi=
13575 break
13577 ac_mid=`expr 2 '*' $ac_mid + 1`
13579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13580 done
13581 else
13582 echo "$as_me: failed program was:" >&5
13583 sed 's/^/| /' conftest.$ac_ext >&5
13585 cat >conftest.$ac_ext <<_ACEOF
13586 /* confdefs.h. */
13587 _ACEOF
13588 cat confdefs.h >>conftest.$ac_ext
13589 cat >>conftest.$ac_ext <<_ACEOF
13590 /* end confdefs.h. */
13591 $ac_includes_default
13593 main ()
13595 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
13596 test_array [0] = 0
13599 return 0;
13601 _ACEOF
13602 rm -f conftest.$ac_objext
13603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13604 (eval $ac_compile) 2>conftest.er1
13605 ac_status=$?
13606 grep -v '^ *+' conftest.er1 >conftest.err
13607 rm -f conftest.er1
13608 cat conftest.err >&5
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); } &&
13611 { ac_try='test -z "$ac_c_werror_flag"
13612 || test ! -s conftest.err'
13613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13614 (eval $ac_try) 2>&5
13615 ac_status=$?
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); }; } &&
13618 { ac_try='test -s conftest.$ac_objext'
13619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13620 (eval $ac_try) 2>&5
13621 ac_status=$?
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); }; }; then
13624 ac_hi=-1 ac_mid=-1
13625 while :; do
13626 cat >conftest.$ac_ext <<_ACEOF
13627 /* confdefs.h. */
13628 _ACEOF
13629 cat confdefs.h >>conftest.$ac_ext
13630 cat >>conftest.$ac_ext <<_ACEOF
13631 /* end confdefs.h. */
13632 $ac_includes_default
13634 main ()
13636 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
13637 test_array [0] = 0
13640 return 0;
13642 _ACEOF
13643 rm -f conftest.$ac_objext
13644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13645 (eval $ac_compile) 2>conftest.er1
13646 ac_status=$?
13647 grep -v '^ *+' conftest.er1 >conftest.err
13648 rm -f conftest.er1
13649 cat conftest.err >&5
13650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651 (exit $ac_status); } &&
13652 { ac_try='test -z "$ac_c_werror_flag"
13653 || test ! -s conftest.err'
13654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13655 (eval $ac_try) 2>&5
13656 ac_status=$?
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); }; } &&
13659 { ac_try='test -s conftest.$ac_objext'
13660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13661 (eval $ac_try) 2>&5
13662 ac_status=$?
13663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 (exit $ac_status); }; }; then
13665 ac_lo=$ac_mid; break
13666 else
13667 echo "$as_me: failed program was:" >&5
13668 sed 's/^/| /' conftest.$ac_ext >&5
13670 ac_hi=`expr '(' $ac_mid ')' - 1`
13671 if test $ac_mid -le $ac_hi; then
13672 ac_lo= ac_hi=
13673 break
13675 ac_mid=`expr 2 '*' $ac_mid`
13677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13678 done
13679 else
13680 echo "$as_me: failed program was:" >&5
13681 sed 's/^/| /' conftest.$ac_ext >&5
13683 ac_lo= ac_hi=
13685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13688 # Binary search between lo and hi bounds.
13689 while test "x$ac_lo" != "x$ac_hi"; do
13690 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13691 cat >conftest.$ac_ext <<_ACEOF
13692 /* confdefs.h. */
13693 _ACEOF
13694 cat confdefs.h >>conftest.$ac_ext
13695 cat >>conftest.$ac_ext <<_ACEOF
13696 /* end confdefs.h. */
13697 $ac_includes_default
13699 main ()
13701 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13702 test_array [0] = 0
13705 return 0;
13707 _ACEOF
13708 rm -f conftest.$ac_objext
13709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13710 (eval $ac_compile) 2>conftest.er1
13711 ac_status=$?
13712 grep -v '^ *+' conftest.er1 >conftest.err
13713 rm -f conftest.er1
13714 cat conftest.err >&5
13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716 (exit $ac_status); } &&
13717 { ac_try='test -z "$ac_c_werror_flag"
13718 || test ! -s conftest.err'
13719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13720 (eval $ac_try) 2>&5
13721 ac_status=$?
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); }; } &&
13724 { ac_try='test -s conftest.$ac_objext'
13725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13726 (eval $ac_try) 2>&5
13727 ac_status=$?
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); }; }; then
13730 ac_hi=$ac_mid
13731 else
13732 echo "$as_me: failed program was:" >&5
13733 sed 's/^/| /' conftest.$ac_ext >&5
13735 ac_lo=`expr '(' $ac_mid ')' + 1`
13737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13738 done
13739 case $ac_lo in
13740 ?*) ac_cv_sizeof_long=$ac_lo;;
13741 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13742 echo "$as_me: error: in \`$ac_pwd':" >&2;}
13743 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13744 See \`config.log' for more details." >&5
13745 echo "$as_me: error: cannot compute sizeof (long), 77
13746 See \`config.log' for more details." >&2;}
13747 { (exit 1); exit 1; }; }; } ;;
13748 esac
13749 else
13750 if test "$cross_compiling" = yes; then
13751 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13752 echo "$as_me: error: in \`$ac_pwd':" >&2;}
13753 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13754 See \`config.log' for more details." >&5
13755 echo "$as_me: error: cannot run test program while cross compiling
13756 See \`config.log' for more details." >&2;}
13757 { (exit 1); exit 1; }; }; }
13758 else
13759 cat >conftest.$ac_ext <<_ACEOF
13760 /* confdefs.h. */
13761 _ACEOF
13762 cat confdefs.h >>conftest.$ac_ext
13763 cat >>conftest.$ac_ext <<_ACEOF
13764 /* end confdefs.h. */
13765 $ac_includes_default
13766 long longval () { return (long) (sizeof (long)); }
13767 unsigned long ulongval () { return (long) (sizeof (long)); }
13768 #include <stdio.h>
13769 #include <stdlib.h>
13771 main ()
13774 FILE *f = fopen ("conftest.val", "w");
13775 if (! f)
13776 exit (1);
13777 if (((long) (sizeof (long))) < 0)
13779 long i = longval ();
13780 if (i != ((long) (sizeof (long))))
13781 exit (1);
13782 fprintf (f, "%ld\n", i);
13784 else
13786 unsigned long i = ulongval ();
13787 if (i != ((long) (sizeof (long))))
13788 exit (1);
13789 fprintf (f, "%lu\n", i);
13791 exit (ferror (f) || fclose (f) != 0);
13794 return 0;
13796 _ACEOF
13797 rm -f conftest$ac_exeext
13798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13799 (eval $ac_link) 2>&5
13800 ac_status=$?
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13804 (eval $ac_try) 2>&5
13805 ac_status=$?
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); }; }; then
13808 ac_cv_sizeof_long=`cat conftest.val`
13809 else
13810 echo "$as_me: program exited with status $ac_status" >&5
13811 echo "$as_me: failed program was:" >&5
13812 sed 's/^/| /' conftest.$ac_ext >&5
13814 ( exit $ac_status )
13815 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13816 echo "$as_me: error: in \`$ac_pwd':" >&2;}
13817 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13818 See \`config.log' for more details." >&5
13819 echo "$as_me: error: cannot compute sizeof (long), 77
13820 See \`config.log' for more details." >&2;}
13821 { (exit 1); exit 1; }; }; }
13823 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13826 rm -f conftest.val
13827 else
13828 ac_cv_sizeof_long=0
13831 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13832 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13833 cat >>confdefs.h <<_ACEOF
13834 #define SIZEOF_LONG $ac_cv_sizeof_long
13835 _ACEOF
13839 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
13840 host64=true
13843 if test "x${ac_cv_sizeof_long}" = "x8"; then
13844 BFD_HOST_64BIT_LONG=1
13845 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
13846 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
13847 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
13848 BFD_HOST_64BIT_LONG_LONG=1
13849 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
13850 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
13851 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
13852 BFD_HOSTPTR_T="unsigned long long"
13856 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
13857 BFD_HOST_64_BIT_DEFINED=1
13858 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
13859 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
13869 # Put a plausible default for CC_FOR_BUILD in Makefile.
13870 if test -z "$CC_FOR_BUILD"; then
13871 if test "x$cross_compiling" = "xno"; then
13872 CC_FOR_BUILD='$(CC)'
13873 else
13874 CC_FOR_BUILD=gcc
13878 # Also set EXEEXT_FOR_BUILD.
13879 if test "x$cross_compiling" = "xno"; then
13880 EXEEXT_FOR_BUILD='$(EXEEXT)'
13881 else
13882 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
13883 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
13884 if test "${bfd_cv_build_exeext+set}" = set; then
13885 echo $ECHO_N "(cached) $ECHO_C" >&6
13886 else
13887 rm -f conftest*
13888 echo 'int main () { return 0; }' > conftest.c
13889 bfd_cv_build_exeext=
13890 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
13891 for file in conftest.*; do
13892 case $file in
13893 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
13894 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
13895 esac
13896 done
13897 rm -f conftest*
13898 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
13900 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
13901 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
13902 EXEEXT_FOR_BUILD=""
13903 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
13914 for ac_header in alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h
13916 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13918 echo "$as_me:$LINENO: checking for $ac_header" >&5
13919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13921 echo $ECHO_N "(cached) $ECHO_C" >&6
13923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13925 else
13926 # Is the header compilable?
13927 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13928 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13929 cat >conftest.$ac_ext <<_ACEOF
13930 /* confdefs.h. */
13931 _ACEOF
13932 cat confdefs.h >>conftest.$ac_ext
13933 cat >>conftest.$ac_ext <<_ACEOF
13934 /* end confdefs.h. */
13935 $ac_includes_default
13936 #include <$ac_header>
13937 _ACEOF
13938 rm -f conftest.$ac_objext
13939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13940 (eval $ac_compile) 2>conftest.er1
13941 ac_status=$?
13942 grep -v '^ *+' conftest.er1 >conftest.err
13943 rm -f conftest.er1
13944 cat conftest.err >&5
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); } &&
13947 { ac_try='test -z "$ac_c_werror_flag"
13948 || test ! -s conftest.err'
13949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13950 (eval $ac_try) 2>&5
13951 ac_status=$?
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); }; } &&
13954 { ac_try='test -s conftest.$ac_objext'
13955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13956 (eval $ac_try) 2>&5
13957 ac_status=$?
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); }; }; then
13960 ac_header_compiler=yes
13961 else
13962 echo "$as_me: failed program was:" >&5
13963 sed 's/^/| /' conftest.$ac_ext >&5
13965 ac_header_compiler=no
13967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13968 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13969 echo "${ECHO_T}$ac_header_compiler" >&6
13971 # Is the header present?
13972 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13973 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13974 cat >conftest.$ac_ext <<_ACEOF
13975 /* confdefs.h. */
13976 _ACEOF
13977 cat confdefs.h >>conftest.$ac_ext
13978 cat >>conftest.$ac_ext <<_ACEOF
13979 /* end confdefs.h. */
13980 #include <$ac_header>
13981 _ACEOF
13982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13984 ac_status=$?
13985 grep -v '^ *+' conftest.er1 >conftest.err
13986 rm -f conftest.er1
13987 cat conftest.err >&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); } >/dev/null; then
13990 if test -s conftest.err; then
13991 ac_cpp_err=$ac_c_preproc_warn_flag
13992 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13993 else
13994 ac_cpp_err=
13996 else
13997 ac_cpp_err=yes
13999 if test -z "$ac_cpp_err"; then
14000 ac_header_preproc=yes
14001 else
14002 echo "$as_me: failed program was:" >&5
14003 sed 's/^/| /' conftest.$ac_ext >&5
14005 ac_header_preproc=no
14007 rm -f conftest.err conftest.$ac_ext
14008 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14009 echo "${ECHO_T}$ac_header_preproc" >&6
14011 # So? What about this header?
14012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14013 yes:no: )
14014 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14015 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14017 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14018 ac_header_preproc=yes
14020 no:yes:* )
14021 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14022 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14023 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14024 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14025 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14026 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14027 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14028 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14030 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14031 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14032 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14034 cat <<\_ASBOX
14035 ## ------------------------------------------ ##
14036 ## Report this to the AC_PACKAGE_NAME lists. ##
14037 ## ------------------------------------------ ##
14038 _ASBOX
14040 sed "s/^/$as_me: WARNING: /" >&2
14042 esac
14043 echo "$as_me:$LINENO: checking for $ac_header" >&5
14044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14046 echo $ECHO_N "(cached) $ECHO_C" >&6
14047 else
14048 eval "$as_ac_Header=\$ac_header_preproc"
14050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14055 cat >>confdefs.h <<_ACEOF
14056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14057 _ACEOF
14061 done
14066 for ac_header in fcntl.h sys/file.h sys/time.h
14068 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14070 echo "$as_me:$LINENO: checking for $ac_header" >&5
14071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14073 echo $ECHO_N "(cached) $ECHO_C" >&6
14075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14077 else
14078 # Is the header compilable?
14079 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14080 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14081 cat >conftest.$ac_ext <<_ACEOF
14082 /* confdefs.h. */
14083 _ACEOF
14084 cat confdefs.h >>conftest.$ac_ext
14085 cat >>conftest.$ac_ext <<_ACEOF
14086 /* end confdefs.h. */
14087 $ac_includes_default
14088 #include <$ac_header>
14089 _ACEOF
14090 rm -f conftest.$ac_objext
14091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14092 (eval $ac_compile) 2>conftest.er1
14093 ac_status=$?
14094 grep -v '^ *+' conftest.er1 >conftest.err
14095 rm -f conftest.er1
14096 cat conftest.err >&5
14097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); } &&
14099 { ac_try='test -z "$ac_c_werror_flag"
14100 || test ! -s conftest.err'
14101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14102 (eval $ac_try) 2>&5
14103 ac_status=$?
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); }; } &&
14106 { ac_try='test -s conftest.$ac_objext'
14107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14108 (eval $ac_try) 2>&5
14109 ac_status=$?
14110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); }; }; then
14112 ac_header_compiler=yes
14113 else
14114 echo "$as_me: failed program was:" >&5
14115 sed 's/^/| /' conftest.$ac_ext >&5
14117 ac_header_compiler=no
14119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14120 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14121 echo "${ECHO_T}$ac_header_compiler" >&6
14123 # Is the header present?
14124 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14125 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14126 cat >conftest.$ac_ext <<_ACEOF
14127 /* confdefs.h. */
14128 _ACEOF
14129 cat confdefs.h >>conftest.$ac_ext
14130 cat >>conftest.$ac_ext <<_ACEOF
14131 /* end confdefs.h. */
14132 #include <$ac_header>
14133 _ACEOF
14134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14136 ac_status=$?
14137 grep -v '^ *+' conftest.er1 >conftest.err
14138 rm -f conftest.er1
14139 cat conftest.err >&5
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); } >/dev/null; then
14142 if test -s conftest.err; then
14143 ac_cpp_err=$ac_c_preproc_warn_flag
14144 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14145 else
14146 ac_cpp_err=
14148 else
14149 ac_cpp_err=yes
14151 if test -z "$ac_cpp_err"; then
14152 ac_header_preproc=yes
14153 else
14154 echo "$as_me: failed program was:" >&5
14155 sed 's/^/| /' conftest.$ac_ext >&5
14157 ac_header_preproc=no
14159 rm -f conftest.err conftest.$ac_ext
14160 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14161 echo "${ECHO_T}$ac_header_preproc" >&6
14163 # So? What about this header?
14164 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14165 yes:no: )
14166 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14167 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14169 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14170 ac_header_preproc=yes
14172 no:yes:* )
14173 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14174 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14175 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14176 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14177 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14178 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14179 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14180 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14183 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14184 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14186 cat <<\_ASBOX
14187 ## ------------------------------------------ ##
14188 ## Report this to the AC_PACKAGE_NAME lists. ##
14189 ## ------------------------------------------ ##
14190 _ASBOX
14192 sed "s/^/$as_me: WARNING: /" >&2
14194 esac
14195 echo "$as_me:$LINENO: checking for $ac_header" >&5
14196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14198 echo $ECHO_N "(cached) $ECHO_C" >&6
14199 else
14200 eval "$as_ac_Header=\$ac_header_preproc"
14202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14207 cat >>confdefs.h <<_ACEOF
14208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14209 _ACEOF
14213 done
14217 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
14219 acx_cv_header_stdint=stddef.h
14220 acx_cv_header_stdint_kind="(already complete)"
14221 for i in stdint.h $inttype_headers; do
14222 unset ac_cv_type_uintptr_t
14223 unset ac_cv_type_uintmax_t
14224 unset ac_cv_type_int_least32_t
14225 unset ac_cv_type_int_fast32_t
14226 unset ac_cv_type_uint64_t
14227 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
14228 echo "$as_me:$LINENO: checking for uintmax_t" >&5
14229 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
14230 if test "${ac_cv_type_uintmax_t+set}" = set; then
14231 echo $ECHO_N "(cached) $ECHO_C" >&6
14232 else
14233 cat >conftest.$ac_ext <<_ACEOF
14234 /* confdefs.h. */
14235 _ACEOF
14236 cat confdefs.h >>conftest.$ac_ext
14237 cat >>conftest.$ac_ext <<_ACEOF
14238 /* end confdefs.h. */
14239 #include <sys/types.h>
14240 #include <$i>
14243 main ()
14245 if ((uintmax_t *) 0)
14246 return 0;
14247 if (sizeof (uintmax_t))
14248 return 0;
14250 return 0;
14252 _ACEOF
14253 rm -f conftest.$ac_objext
14254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14255 (eval $ac_compile) 2>conftest.er1
14256 ac_status=$?
14257 grep -v '^ *+' conftest.er1 >conftest.err
14258 rm -f conftest.er1
14259 cat conftest.err >&5
14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261 (exit $ac_status); } &&
14262 { ac_try='test -z "$ac_c_werror_flag"
14263 || test ! -s conftest.err'
14264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14265 (eval $ac_try) 2>&5
14266 ac_status=$?
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); }; } &&
14269 { ac_try='test -s conftest.$ac_objext'
14270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14271 (eval $ac_try) 2>&5
14272 ac_status=$?
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); }; }; then
14275 ac_cv_type_uintmax_t=yes
14276 else
14277 echo "$as_me: failed program was:" >&5
14278 sed 's/^/| /' conftest.$ac_ext >&5
14280 ac_cv_type_uintmax_t=no
14282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14284 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
14285 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
14286 if test $ac_cv_type_uintmax_t = yes; then
14287 acx_cv_header_stdint=$i
14288 else
14289 continue
14292 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14293 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14294 if test "${ac_cv_type_uintptr_t+set}" = set; then
14295 echo $ECHO_N "(cached) $ECHO_C" >&6
14296 else
14297 cat >conftest.$ac_ext <<_ACEOF
14298 /* confdefs.h. */
14299 _ACEOF
14300 cat confdefs.h >>conftest.$ac_ext
14301 cat >>conftest.$ac_ext <<_ACEOF
14302 /* end confdefs.h. */
14303 #include <sys/types.h>
14304 #include <$i>
14307 main ()
14309 if ((uintptr_t *) 0)
14310 return 0;
14311 if (sizeof (uintptr_t))
14312 return 0;
14314 return 0;
14316 _ACEOF
14317 rm -f conftest.$ac_objext
14318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14319 (eval $ac_compile) 2>conftest.er1
14320 ac_status=$?
14321 grep -v '^ *+' conftest.er1 >conftest.err
14322 rm -f conftest.er1
14323 cat conftest.err >&5
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); } &&
14326 { ac_try='test -z "$ac_c_werror_flag"
14327 || test ! -s conftest.err'
14328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329 (eval $ac_try) 2>&5
14330 ac_status=$?
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); }; } &&
14333 { ac_try='test -s conftest.$ac_objext'
14334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14335 (eval $ac_try) 2>&5
14336 ac_status=$?
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); }; }; then
14339 ac_cv_type_uintptr_t=yes
14340 else
14341 echo "$as_me: failed program was:" >&5
14342 sed 's/^/| /' conftest.$ac_ext >&5
14344 ac_cv_type_uintptr_t=no
14346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14348 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14349 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14350 if test $ac_cv_type_uintptr_t = yes; then
14352 else
14353 acx_cv_header_stdint_kind="(mostly complete)"
14356 echo "$as_me:$LINENO: checking for int_least32_t" >&5
14357 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
14358 if test "${ac_cv_type_int_least32_t+set}" = set; then
14359 echo $ECHO_N "(cached) $ECHO_C" >&6
14360 else
14361 cat >conftest.$ac_ext <<_ACEOF
14362 /* confdefs.h. */
14363 _ACEOF
14364 cat confdefs.h >>conftest.$ac_ext
14365 cat >>conftest.$ac_ext <<_ACEOF
14366 /* end confdefs.h. */
14367 #include <sys/types.h>
14368 #include <$i>
14371 main ()
14373 if ((int_least32_t *) 0)
14374 return 0;
14375 if (sizeof (int_least32_t))
14376 return 0;
14378 return 0;
14380 _ACEOF
14381 rm -f conftest.$ac_objext
14382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14383 (eval $ac_compile) 2>conftest.er1
14384 ac_status=$?
14385 grep -v '^ *+' conftest.er1 >conftest.err
14386 rm -f conftest.er1
14387 cat conftest.err >&5
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); } &&
14390 { ac_try='test -z "$ac_c_werror_flag"
14391 || test ! -s conftest.err'
14392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14393 (eval $ac_try) 2>&5
14394 ac_status=$?
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); }; } &&
14397 { ac_try='test -s conftest.$ac_objext'
14398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14399 (eval $ac_try) 2>&5
14400 ac_status=$?
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); }; }; then
14403 ac_cv_type_int_least32_t=yes
14404 else
14405 echo "$as_me: failed program was:" >&5
14406 sed 's/^/| /' conftest.$ac_ext >&5
14408 ac_cv_type_int_least32_t=no
14410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14412 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
14413 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
14414 if test $ac_cv_type_int_least32_t = yes; then
14416 else
14417 acx_cv_header_stdint_kind="(mostly complete)"
14420 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
14421 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
14422 if test "${ac_cv_type_int_fast32_t+set}" = set; then
14423 echo $ECHO_N "(cached) $ECHO_C" >&6
14424 else
14425 cat >conftest.$ac_ext <<_ACEOF
14426 /* confdefs.h. */
14427 _ACEOF
14428 cat confdefs.h >>conftest.$ac_ext
14429 cat >>conftest.$ac_ext <<_ACEOF
14430 /* end confdefs.h. */
14431 #include <sys/types.h>
14432 #include <$i>
14435 main ()
14437 if ((int_fast32_t *) 0)
14438 return 0;
14439 if (sizeof (int_fast32_t))
14440 return 0;
14442 return 0;
14444 _ACEOF
14445 rm -f conftest.$ac_objext
14446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14447 (eval $ac_compile) 2>conftest.er1
14448 ac_status=$?
14449 grep -v '^ *+' conftest.er1 >conftest.err
14450 rm -f conftest.er1
14451 cat conftest.err >&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); } &&
14454 { ac_try='test -z "$ac_c_werror_flag"
14455 || test ! -s conftest.err'
14456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14457 (eval $ac_try) 2>&5
14458 ac_status=$?
14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); }; } &&
14461 { ac_try='test -s conftest.$ac_objext'
14462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14463 (eval $ac_try) 2>&5
14464 ac_status=$?
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); }; }; then
14467 ac_cv_type_int_fast32_t=yes
14468 else
14469 echo "$as_me: failed program was:" >&5
14470 sed 's/^/| /' conftest.$ac_ext >&5
14472 ac_cv_type_int_fast32_t=no
14474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14476 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
14477 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
14478 if test $ac_cv_type_int_fast32_t = yes; then
14480 else
14481 acx_cv_header_stdint_kind="(mostly complete)"
14484 echo "$as_me:$LINENO: checking for uint64_t" >&5
14485 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14486 if test "${ac_cv_type_uint64_t+set}" = set; then
14487 echo $ECHO_N "(cached) $ECHO_C" >&6
14488 else
14489 cat >conftest.$ac_ext <<_ACEOF
14490 /* confdefs.h. */
14491 _ACEOF
14492 cat confdefs.h >>conftest.$ac_ext
14493 cat >>conftest.$ac_ext <<_ACEOF
14494 /* end confdefs.h. */
14495 #include <sys/types.h>
14496 #include <$i>
14499 main ()
14501 if ((uint64_t *) 0)
14502 return 0;
14503 if (sizeof (uint64_t))
14504 return 0;
14506 return 0;
14508 _ACEOF
14509 rm -f conftest.$ac_objext
14510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14511 (eval $ac_compile) 2>conftest.er1
14512 ac_status=$?
14513 grep -v '^ *+' conftest.er1 >conftest.err
14514 rm -f conftest.er1
14515 cat conftest.err >&5
14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); } &&
14518 { ac_try='test -z "$ac_c_werror_flag"
14519 || test ! -s conftest.err'
14520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14521 (eval $ac_try) 2>&5
14522 ac_status=$?
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); }; } &&
14525 { ac_try='test -s conftest.$ac_objext'
14526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14527 (eval $ac_try) 2>&5
14528 ac_status=$?
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); }; }; then
14531 ac_cv_type_uint64_t=yes
14532 else
14533 echo "$as_me: failed program was:" >&5
14534 sed 's/^/| /' conftest.$ac_ext >&5
14536 ac_cv_type_uint64_t=no
14538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14540 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14541 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14542 if test $ac_cv_type_uint64_t = yes; then
14544 else
14545 acx_cv_header_stdint_kind="(lacks uint64_t)"
14548 break
14549 done
14550 if test "$acx_cv_header_stdint" = stddef.h; then
14551 acx_cv_header_stdint_kind="(lacks uintmax_t)"
14552 for i in stdint.h $inttype_headers; do
14553 unset ac_cv_type_uintptr_t
14554 unset ac_cv_type_uint32_t
14555 unset ac_cv_type_uint64_t
14556 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
14557 echo "$as_me:$LINENO: checking for uint32_t" >&5
14558 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
14559 if test "${ac_cv_type_uint32_t+set}" = set; then
14560 echo $ECHO_N "(cached) $ECHO_C" >&6
14561 else
14562 cat >conftest.$ac_ext <<_ACEOF
14563 /* confdefs.h. */
14564 _ACEOF
14565 cat confdefs.h >>conftest.$ac_ext
14566 cat >>conftest.$ac_ext <<_ACEOF
14567 /* end confdefs.h. */
14568 #include <sys/types.h>
14569 #include <$i>
14572 main ()
14574 if ((uint32_t *) 0)
14575 return 0;
14576 if (sizeof (uint32_t))
14577 return 0;
14579 return 0;
14581 _ACEOF
14582 rm -f conftest.$ac_objext
14583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14584 (eval $ac_compile) 2>conftest.er1
14585 ac_status=$?
14586 grep -v '^ *+' conftest.er1 >conftest.err
14587 rm -f conftest.er1
14588 cat conftest.err >&5
14589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590 (exit $ac_status); } &&
14591 { ac_try='test -z "$ac_c_werror_flag"
14592 || test ! -s conftest.err'
14593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14594 (eval $ac_try) 2>&5
14595 ac_status=$?
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); }; } &&
14598 { ac_try='test -s conftest.$ac_objext'
14599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14600 (eval $ac_try) 2>&5
14601 ac_status=$?
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); }; }; then
14604 ac_cv_type_uint32_t=yes
14605 else
14606 echo "$as_me: failed program was:" >&5
14607 sed 's/^/| /' conftest.$ac_ext >&5
14609 ac_cv_type_uint32_t=no
14611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14613 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
14614 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
14615 if test $ac_cv_type_uint32_t = yes; then
14616 acx_cv_header_stdint=$i
14617 else
14618 continue
14621 echo "$as_me:$LINENO: checking for uint64_t" >&5
14622 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14623 if test "${ac_cv_type_uint64_t+set}" = set; then
14624 echo $ECHO_N "(cached) $ECHO_C" >&6
14625 else
14626 cat >conftest.$ac_ext <<_ACEOF
14627 /* confdefs.h. */
14628 _ACEOF
14629 cat confdefs.h >>conftest.$ac_ext
14630 cat >>conftest.$ac_ext <<_ACEOF
14631 /* end confdefs.h. */
14632 #include <sys/types.h>
14633 #include <$i>
14636 main ()
14638 if ((uint64_t *) 0)
14639 return 0;
14640 if (sizeof (uint64_t))
14641 return 0;
14643 return 0;
14645 _ACEOF
14646 rm -f conftest.$ac_objext
14647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14648 (eval $ac_compile) 2>conftest.er1
14649 ac_status=$?
14650 grep -v '^ *+' conftest.er1 >conftest.err
14651 rm -f conftest.er1
14652 cat conftest.err >&5
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); } &&
14655 { ac_try='test -z "$ac_c_werror_flag"
14656 || test ! -s conftest.err'
14657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14658 (eval $ac_try) 2>&5
14659 ac_status=$?
14660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661 (exit $ac_status); }; } &&
14662 { ac_try='test -s conftest.$ac_objext'
14663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14664 (eval $ac_try) 2>&5
14665 ac_status=$?
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 (exit $ac_status); }; }; then
14668 ac_cv_type_uint64_t=yes
14669 else
14670 echo "$as_me: failed program was:" >&5
14671 sed 's/^/| /' conftest.$ac_ext >&5
14673 ac_cv_type_uint64_t=no
14675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14677 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14678 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14680 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14681 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14682 if test "${ac_cv_type_uintptr_t+set}" = set; then
14683 echo $ECHO_N "(cached) $ECHO_C" >&6
14684 else
14685 cat >conftest.$ac_ext <<_ACEOF
14686 /* confdefs.h. */
14687 _ACEOF
14688 cat confdefs.h >>conftest.$ac_ext
14689 cat >>conftest.$ac_ext <<_ACEOF
14690 /* end confdefs.h. */
14691 #include <sys/types.h>
14692 #include <$i>
14695 main ()
14697 if ((uintptr_t *) 0)
14698 return 0;
14699 if (sizeof (uintptr_t))
14700 return 0;
14702 return 0;
14704 _ACEOF
14705 rm -f conftest.$ac_objext
14706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14707 (eval $ac_compile) 2>conftest.er1
14708 ac_status=$?
14709 grep -v '^ *+' conftest.er1 >conftest.err
14710 rm -f conftest.er1
14711 cat conftest.err >&5
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); } &&
14714 { ac_try='test -z "$ac_c_werror_flag"
14715 || test ! -s conftest.err'
14716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14717 (eval $ac_try) 2>&5
14718 ac_status=$?
14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720 (exit $ac_status); }; } &&
14721 { ac_try='test -s conftest.$ac_objext'
14722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14723 (eval $ac_try) 2>&5
14724 ac_status=$?
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); }; }; then
14727 ac_cv_type_uintptr_t=yes
14728 else
14729 echo "$as_me: failed program was:" >&5
14730 sed 's/^/| /' conftest.$ac_ext >&5
14732 ac_cv_type_uintptr_t=no
14734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14736 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14737 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14739 break
14740 done
14742 if test "$acx_cv_header_stdint" = stddef.h; then
14743 acx_cv_header_stdint_kind="(u_intXX_t style)"
14744 for i in sys/types.h $inttype_headers; do
14745 unset ac_cv_type_u_int32_t
14746 unset ac_cv_type_u_int64_t
14747 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
14748 echo "$as_me:$LINENO: checking for u_int32_t" >&5
14749 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
14750 if test "${ac_cv_type_u_int32_t+set}" = set; then
14751 echo $ECHO_N "(cached) $ECHO_C" >&6
14752 else
14753 cat >conftest.$ac_ext <<_ACEOF
14754 /* confdefs.h. */
14755 _ACEOF
14756 cat confdefs.h >>conftest.$ac_ext
14757 cat >>conftest.$ac_ext <<_ACEOF
14758 /* end confdefs.h. */
14759 #include <sys/types.h>
14760 #include <$i>
14763 main ()
14765 if ((u_int32_t *) 0)
14766 return 0;
14767 if (sizeof (u_int32_t))
14768 return 0;
14770 return 0;
14772 _ACEOF
14773 rm -f conftest.$ac_objext
14774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14775 (eval $ac_compile) 2>conftest.er1
14776 ac_status=$?
14777 grep -v '^ *+' conftest.er1 >conftest.err
14778 rm -f conftest.er1
14779 cat conftest.err >&5
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); } &&
14782 { ac_try='test -z "$ac_c_werror_flag"
14783 || test ! -s conftest.err'
14784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14785 (eval $ac_try) 2>&5
14786 ac_status=$?
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); }; } &&
14789 { ac_try='test -s conftest.$ac_objext'
14790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14791 (eval $ac_try) 2>&5
14792 ac_status=$?
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); }; }; then
14795 ac_cv_type_u_int32_t=yes
14796 else
14797 echo "$as_me: failed program was:" >&5
14798 sed 's/^/| /' conftest.$ac_ext >&5
14800 ac_cv_type_u_int32_t=no
14802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14804 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
14805 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
14806 if test $ac_cv_type_u_int32_t = yes; then
14807 acx_cv_header_stdint=$i
14808 else
14809 continue
14812 echo "$as_me:$LINENO: checking for u_int64_t" >&5
14813 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
14814 if test "${ac_cv_type_u_int64_t+set}" = set; then
14815 echo $ECHO_N "(cached) $ECHO_C" >&6
14816 else
14817 cat >conftest.$ac_ext <<_ACEOF
14818 /* confdefs.h. */
14819 _ACEOF
14820 cat confdefs.h >>conftest.$ac_ext
14821 cat >>conftest.$ac_ext <<_ACEOF
14822 /* end confdefs.h. */
14823 #include <sys/types.h>
14824 #include <$i>
14827 main ()
14829 if ((u_int64_t *) 0)
14830 return 0;
14831 if (sizeof (u_int64_t))
14832 return 0;
14834 return 0;
14836 _ACEOF
14837 rm -f conftest.$ac_objext
14838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14839 (eval $ac_compile) 2>conftest.er1
14840 ac_status=$?
14841 grep -v '^ *+' conftest.er1 >conftest.err
14842 rm -f conftest.er1
14843 cat conftest.err >&5
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); } &&
14846 { ac_try='test -z "$ac_c_werror_flag"
14847 || test ! -s conftest.err'
14848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14849 (eval $ac_try) 2>&5
14850 ac_status=$?
14851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852 (exit $ac_status); }; } &&
14853 { ac_try='test -s conftest.$ac_objext'
14854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14855 (eval $ac_try) 2>&5
14856 ac_status=$?
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); }; }; then
14859 ac_cv_type_u_int64_t=yes
14860 else
14861 echo "$as_me: failed program was:" >&5
14862 sed 's/^/| /' conftest.$ac_ext >&5
14864 ac_cv_type_u_int64_t=no
14866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14868 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14869 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
14871 break
14872 done
14874 if test "$acx_cv_header_stdint" = stddef.h; then
14875 acx_cv_header_stdint_kind="(using manual detection)"
14878 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14879 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14880 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14881 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14882 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14884 # ----------------- Summarize what we found so far
14886 echo "$as_me:$LINENO: checking what to include in bfd_stdint.h" >&5
14887 echo $ECHO_N "checking what to include in bfd_stdint.h... $ECHO_C" >&6
14889 case `$as_basename bfd_stdint.h ||
14890 $as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
14891 Xbfd_stdint.h : 'X\(//\)$' \| \
14892 Xbfd_stdint.h : 'X\(/\)$' \| \
14893 . : '\(.\)' 2>/dev/null ||
14894 echo X/bfd_stdint.h |
14895 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14896 /^X\/\(\/\/\)$/{ s//\1/; q; }
14897 /^X\/\(\/\).*/{ s//\1/; q; }
14898 s/.*/./; q'` in
14899 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14900 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14901 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14902 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14903 *) ;;
14904 esac
14906 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14907 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
14909 # ----------------- done included file, check C basic types --------
14911 # Lacking an uintptr_t? Test size of void *
14912 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14913 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
14914 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14915 if test "${ac_cv_type_void_p+set}" = set; then
14916 echo $ECHO_N "(cached) $ECHO_C" >&6
14917 else
14918 cat >conftest.$ac_ext <<_ACEOF
14919 /* confdefs.h. */
14920 _ACEOF
14921 cat confdefs.h >>conftest.$ac_ext
14922 cat >>conftest.$ac_ext <<_ACEOF
14923 /* end confdefs.h. */
14924 $ac_includes_default
14926 main ()
14928 if ((void * *) 0)
14929 return 0;
14930 if (sizeof (void *))
14931 return 0;
14933 return 0;
14935 _ACEOF
14936 rm -f conftest.$ac_objext
14937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14938 (eval $ac_compile) 2>conftest.er1
14939 ac_status=$?
14940 grep -v '^ *+' conftest.er1 >conftest.err
14941 rm -f conftest.er1
14942 cat conftest.err >&5
14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); } &&
14945 { ac_try='test -z "$ac_c_werror_flag"
14946 || test ! -s conftest.err'
14947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14948 (eval $ac_try) 2>&5
14949 ac_status=$?
14950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951 (exit $ac_status); }; } &&
14952 { ac_try='test -s conftest.$ac_objext'
14953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14954 (eval $ac_try) 2>&5
14955 ac_status=$?
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); }; }; then
14958 ac_cv_type_void_p=yes
14959 else
14960 echo "$as_me: failed program was:" >&5
14961 sed 's/^/| /' conftest.$ac_ext >&5
14963 ac_cv_type_void_p=no
14965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14967 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14968 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14970 echo "$as_me:$LINENO: checking size of void *" >&5
14971 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14972 if test "${ac_cv_sizeof_void_p+set}" = set; then
14973 echo $ECHO_N "(cached) $ECHO_C" >&6
14974 else
14975 if test "$ac_cv_type_void_p" = yes; then
14976 # The cast to unsigned long works around a bug in the HP C Compiler
14977 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14978 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14979 # This bug is HP SR number 8606223364.
14980 if test "$cross_compiling" = yes; then
14981 # Depending upon the size, compute the lo and hi bounds.
14982 cat >conftest.$ac_ext <<_ACEOF
14983 /* confdefs.h. */
14984 _ACEOF
14985 cat confdefs.h >>conftest.$ac_ext
14986 cat >>conftest.$ac_ext <<_ACEOF
14987 /* end confdefs.h. */
14988 $ac_includes_default
14990 main ()
14992 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14993 test_array [0] = 0
14996 return 0;
14998 _ACEOF
14999 rm -f conftest.$ac_objext
15000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15001 (eval $ac_compile) 2>conftest.er1
15002 ac_status=$?
15003 grep -v '^ *+' conftest.er1 >conftest.err
15004 rm -f conftest.er1
15005 cat conftest.err >&5
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); } &&
15008 { ac_try='test -z "$ac_c_werror_flag"
15009 || test ! -s conftest.err'
15010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15011 (eval $ac_try) 2>&5
15012 ac_status=$?
15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); }; } &&
15015 { ac_try='test -s conftest.$ac_objext'
15016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15017 (eval $ac_try) 2>&5
15018 ac_status=$?
15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); }; }; then
15021 ac_lo=0 ac_mid=0
15022 while :; do
15023 cat >conftest.$ac_ext <<_ACEOF
15024 /* confdefs.h. */
15025 _ACEOF
15026 cat confdefs.h >>conftest.$ac_ext
15027 cat >>conftest.$ac_ext <<_ACEOF
15028 /* end confdefs.h. */
15029 $ac_includes_default
15031 main ()
15033 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15034 test_array [0] = 0
15037 return 0;
15039 _ACEOF
15040 rm -f conftest.$ac_objext
15041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15042 (eval $ac_compile) 2>conftest.er1
15043 ac_status=$?
15044 grep -v '^ *+' conftest.er1 >conftest.err
15045 rm -f conftest.er1
15046 cat conftest.err >&5
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); } &&
15049 { ac_try='test -z "$ac_c_werror_flag"
15050 || test ! -s conftest.err'
15051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15052 (eval $ac_try) 2>&5
15053 ac_status=$?
15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); }; } &&
15056 { ac_try='test -s conftest.$ac_objext'
15057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15058 (eval $ac_try) 2>&5
15059 ac_status=$?
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); }; }; then
15062 ac_hi=$ac_mid; break
15063 else
15064 echo "$as_me: failed program was:" >&5
15065 sed 's/^/| /' conftest.$ac_ext >&5
15067 ac_lo=`expr $ac_mid + 1`
15068 if test $ac_lo -le $ac_mid; then
15069 ac_lo= ac_hi=
15070 break
15072 ac_mid=`expr 2 '*' $ac_mid + 1`
15074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15075 done
15076 else
15077 echo "$as_me: failed program was:" >&5
15078 sed 's/^/| /' conftest.$ac_ext >&5
15080 cat >conftest.$ac_ext <<_ACEOF
15081 /* confdefs.h. */
15082 _ACEOF
15083 cat confdefs.h >>conftest.$ac_ext
15084 cat >>conftest.$ac_ext <<_ACEOF
15085 /* end confdefs.h. */
15086 $ac_includes_default
15088 main ()
15090 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15091 test_array [0] = 0
15094 return 0;
15096 _ACEOF
15097 rm -f conftest.$ac_objext
15098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15099 (eval $ac_compile) 2>conftest.er1
15100 ac_status=$?
15101 grep -v '^ *+' conftest.er1 >conftest.err
15102 rm -f conftest.er1
15103 cat conftest.err >&5
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); } &&
15106 { ac_try='test -z "$ac_c_werror_flag"
15107 || test ! -s conftest.err'
15108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15109 (eval $ac_try) 2>&5
15110 ac_status=$?
15111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112 (exit $ac_status); }; } &&
15113 { ac_try='test -s conftest.$ac_objext'
15114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15115 (eval $ac_try) 2>&5
15116 ac_status=$?
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); }; }; then
15119 ac_hi=-1 ac_mid=-1
15120 while :; do
15121 cat >conftest.$ac_ext <<_ACEOF
15122 /* confdefs.h. */
15123 _ACEOF
15124 cat confdefs.h >>conftest.$ac_ext
15125 cat >>conftest.$ac_ext <<_ACEOF
15126 /* end confdefs.h. */
15127 $ac_includes_default
15129 main ()
15131 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15132 test_array [0] = 0
15135 return 0;
15137 _ACEOF
15138 rm -f conftest.$ac_objext
15139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15140 (eval $ac_compile) 2>conftest.er1
15141 ac_status=$?
15142 grep -v '^ *+' conftest.er1 >conftest.err
15143 rm -f conftest.er1
15144 cat conftest.err >&5
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); } &&
15147 { ac_try='test -z "$ac_c_werror_flag"
15148 || test ! -s conftest.err'
15149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15150 (eval $ac_try) 2>&5
15151 ac_status=$?
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); }; } &&
15154 { ac_try='test -s conftest.$ac_objext'
15155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15156 (eval $ac_try) 2>&5
15157 ac_status=$?
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); }; }; then
15160 ac_lo=$ac_mid; break
15161 else
15162 echo "$as_me: failed program was:" >&5
15163 sed 's/^/| /' conftest.$ac_ext >&5
15165 ac_hi=`expr '(' $ac_mid ')' - 1`
15166 if test $ac_mid -le $ac_hi; then
15167 ac_lo= ac_hi=
15168 break
15170 ac_mid=`expr 2 '*' $ac_mid`
15172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15173 done
15174 else
15175 echo "$as_me: failed program was:" >&5
15176 sed 's/^/| /' conftest.$ac_ext >&5
15178 ac_lo= ac_hi=
15180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15183 # Binary search between lo and hi bounds.
15184 while test "x$ac_lo" != "x$ac_hi"; do
15185 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15186 cat >conftest.$ac_ext <<_ACEOF
15187 /* confdefs.h. */
15188 _ACEOF
15189 cat confdefs.h >>conftest.$ac_ext
15190 cat >>conftest.$ac_ext <<_ACEOF
15191 /* end confdefs.h. */
15192 $ac_includes_default
15194 main ()
15196 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15197 test_array [0] = 0
15200 return 0;
15202 _ACEOF
15203 rm -f conftest.$ac_objext
15204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15205 (eval $ac_compile) 2>conftest.er1
15206 ac_status=$?
15207 grep -v '^ *+' conftest.er1 >conftest.err
15208 rm -f conftest.er1
15209 cat conftest.err >&5
15210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211 (exit $ac_status); } &&
15212 { ac_try='test -z "$ac_c_werror_flag"
15213 || test ! -s conftest.err'
15214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15215 (eval $ac_try) 2>&5
15216 ac_status=$?
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); }; } &&
15219 { ac_try='test -s conftest.$ac_objext'
15220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15221 (eval $ac_try) 2>&5
15222 ac_status=$?
15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); }; }; then
15225 ac_hi=$ac_mid
15226 else
15227 echo "$as_me: failed program was:" >&5
15228 sed 's/^/| /' conftest.$ac_ext >&5
15230 ac_lo=`expr '(' $ac_mid ')' + 1`
15232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15233 done
15234 case $ac_lo in
15235 ?*) ac_cv_sizeof_void_p=$ac_lo;;
15236 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15237 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15238 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15239 See \`config.log' for more details." >&5
15240 echo "$as_me: error: cannot compute sizeof (void *), 77
15241 See \`config.log' for more details." >&2;}
15242 { (exit 1); exit 1; }; }; } ;;
15243 esac
15244 else
15245 if test "$cross_compiling" = yes; then
15246 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15247 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15248 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15249 See \`config.log' for more details." >&5
15250 echo "$as_me: error: cannot run test program while cross compiling
15251 See \`config.log' for more details." >&2;}
15252 { (exit 1); exit 1; }; }; }
15253 else
15254 cat >conftest.$ac_ext <<_ACEOF
15255 /* confdefs.h. */
15256 _ACEOF
15257 cat confdefs.h >>conftest.$ac_ext
15258 cat >>conftest.$ac_ext <<_ACEOF
15259 /* end confdefs.h. */
15260 $ac_includes_default
15261 long longval () { return (long) (sizeof (void *)); }
15262 unsigned long ulongval () { return (long) (sizeof (void *)); }
15263 #include <stdio.h>
15264 #include <stdlib.h>
15266 main ()
15269 FILE *f = fopen ("conftest.val", "w");
15270 if (! f)
15271 exit (1);
15272 if (((long) (sizeof (void *))) < 0)
15274 long i = longval ();
15275 if (i != ((long) (sizeof (void *))))
15276 exit (1);
15277 fprintf (f, "%ld\n", i);
15279 else
15281 unsigned long i = ulongval ();
15282 if (i != ((long) (sizeof (void *))))
15283 exit (1);
15284 fprintf (f, "%lu\n", i);
15286 exit (ferror (f) || fclose (f) != 0);
15289 return 0;
15291 _ACEOF
15292 rm -f conftest$ac_exeext
15293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15294 (eval $ac_link) 2>&5
15295 ac_status=$?
15296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15299 (eval $ac_try) 2>&5
15300 ac_status=$?
15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 (exit $ac_status); }; }; then
15303 ac_cv_sizeof_void_p=`cat conftest.val`
15304 else
15305 echo "$as_me: program exited with status $ac_status" >&5
15306 echo "$as_me: failed program was:" >&5
15307 sed 's/^/| /' conftest.$ac_ext >&5
15309 ( exit $ac_status )
15310 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15311 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15312 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15313 See \`config.log' for more details." >&5
15314 echo "$as_me: error: cannot compute sizeof (void *), 77
15315 See \`config.log' for more details." >&2;}
15316 { (exit 1); exit 1; }; }; }
15318 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15321 rm -f conftest.val
15322 else
15323 ac_cv_sizeof_void_p=0
15326 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15327 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15328 cat >>confdefs.h <<_ACEOF
15329 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15330 _ACEOF
15333 esac
15335 # Lacking an uint64_t? Test size of long
15336 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15337 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
15338 echo $ECHO_N "checking for long... $ECHO_C" >&6
15339 if test "${ac_cv_type_long+set}" = set; then
15340 echo $ECHO_N "(cached) $ECHO_C" >&6
15341 else
15342 cat >conftest.$ac_ext <<_ACEOF
15343 /* confdefs.h. */
15344 _ACEOF
15345 cat confdefs.h >>conftest.$ac_ext
15346 cat >>conftest.$ac_ext <<_ACEOF
15347 /* end confdefs.h. */
15348 $ac_includes_default
15350 main ()
15352 if ((long *) 0)
15353 return 0;
15354 if (sizeof (long))
15355 return 0;
15357 return 0;
15359 _ACEOF
15360 rm -f conftest.$ac_objext
15361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15362 (eval $ac_compile) 2>conftest.er1
15363 ac_status=$?
15364 grep -v '^ *+' conftest.er1 >conftest.err
15365 rm -f conftest.er1
15366 cat conftest.err >&5
15367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); } &&
15369 { ac_try='test -z "$ac_c_werror_flag"
15370 || test ! -s conftest.err'
15371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15372 (eval $ac_try) 2>&5
15373 ac_status=$?
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); }; } &&
15376 { ac_try='test -s conftest.$ac_objext'
15377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15378 (eval $ac_try) 2>&5
15379 ac_status=$?
15380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); }; }; then
15382 ac_cv_type_long=yes
15383 else
15384 echo "$as_me: failed program was:" >&5
15385 sed 's/^/| /' conftest.$ac_ext >&5
15387 ac_cv_type_long=no
15389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15391 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15392 echo "${ECHO_T}$ac_cv_type_long" >&6
15394 echo "$as_me:$LINENO: checking size of long" >&5
15395 echo $ECHO_N "checking size of long... $ECHO_C" >&6
15396 if test "${ac_cv_sizeof_long+set}" = set; then
15397 echo $ECHO_N "(cached) $ECHO_C" >&6
15398 else
15399 if test "$ac_cv_type_long" = yes; then
15400 # The cast to unsigned long works around a bug in the HP C Compiler
15401 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15402 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15403 # This bug is HP SR number 8606223364.
15404 if test "$cross_compiling" = yes; then
15405 # Depending upon the size, compute the lo and hi bounds.
15406 cat >conftest.$ac_ext <<_ACEOF
15407 /* confdefs.h. */
15408 _ACEOF
15409 cat confdefs.h >>conftest.$ac_ext
15410 cat >>conftest.$ac_ext <<_ACEOF
15411 /* end confdefs.h. */
15412 $ac_includes_default
15414 main ()
15416 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15417 test_array [0] = 0
15420 return 0;
15422 _ACEOF
15423 rm -f conftest.$ac_objext
15424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15425 (eval $ac_compile) 2>conftest.er1
15426 ac_status=$?
15427 grep -v '^ *+' conftest.er1 >conftest.err
15428 rm -f conftest.er1
15429 cat conftest.err >&5
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); } &&
15432 { ac_try='test -z "$ac_c_werror_flag"
15433 || test ! -s conftest.err'
15434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15435 (eval $ac_try) 2>&5
15436 ac_status=$?
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); }; } &&
15439 { ac_try='test -s conftest.$ac_objext'
15440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15441 (eval $ac_try) 2>&5
15442 ac_status=$?
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); }; }; then
15445 ac_lo=0 ac_mid=0
15446 while :; do
15447 cat >conftest.$ac_ext <<_ACEOF
15448 /* confdefs.h. */
15449 _ACEOF
15450 cat confdefs.h >>conftest.$ac_ext
15451 cat >>conftest.$ac_ext <<_ACEOF
15452 /* end confdefs.h. */
15453 $ac_includes_default
15455 main ()
15457 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15458 test_array [0] = 0
15461 return 0;
15463 _ACEOF
15464 rm -f conftest.$ac_objext
15465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15466 (eval $ac_compile) 2>conftest.er1
15467 ac_status=$?
15468 grep -v '^ *+' conftest.er1 >conftest.err
15469 rm -f conftest.er1
15470 cat conftest.err >&5
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); } &&
15473 { ac_try='test -z "$ac_c_werror_flag"
15474 || test ! -s conftest.err'
15475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15476 (eval $ac_try) 2>&5
15477 ac_status=$?
15478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479 (exit $ac_status); }; } &&
15480 { ac_try='test -s conftest.$ac_objext'
15481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15482 (eval $ac_try) 2>&5
15483 ac_status=$?
15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485 (exit $ac_status); }; }; then
15486 ac_hi=$ac_mid; break
15487 else
15488 echo "$as_me: failed program was:" >&5
15489 sed 's/^/| /' conftest.$ac_ext >&5
15491 ac_lo=`expr $ac_mid + 1`
15492 if test $ac_lo -le $ac_mid; then
15493 ac_lo= ac_hi=
15494 break
15496 ac_mid=`expr 2 '*' $ac_mid + 1`
15498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15499 done
15500 else
15501 echo "$as_me: failed program was:" >&5
15502 sed 's/^/| /' conftest.$ac_ext >&5
15504 cat >conftest.$ac_ext <<_ACEOF
15505 /* confdefs.h. */
15506 _ACEOF
15507 cat confdefs.h >>conftest.$ac_ext
15508 cat >>conftest.$ac_ext <<_ACEOF
15509 /* end confdefs.h. */
15510 $ac_includes_default
15512 main ()
15514 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15515 test_array [0] = 0
15518 return 0;
15520 _ACEOF
15521 rm -f conftest.$ac_objext
15522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15523 (eval $ac_compile) 2>conftest.er1
15524 ac_status=$?
15525 grep -v '^ *+' conftest.er1 >conftest.err
15526 rm -f conftest.er1
15527 cat conftest.err >&5
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); } &&
15530 { ac_try='test -z "$ac_c_werror_flag"
15531 || test ! -s conftest.err'
15532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15533 (eval $ac_try) 2>&5
15534 ac_status=$?
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); }; } &&
15537 { ac_try='test -s conftest.$ac_objext'
15538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15539 (eval $ac_try) 2>&5
15540 ac_status=$?
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); }; }; then
15543 ac_hi=-1 ac_mid=-1
15544 while :; do
15545 cat >conftest.$ac_ext <<_ACEOF
15546 /* confdefs.h. */
15547 _ACEOF
15548 cat confdefs.h >>conftest.$ac_ext
15549 cat >>conftest.$ac_ext <<_ACEOF
15550 /* end confdefs.h. */
15551 $ac_includes_default
15553 main ()
15555 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15556 test_array [0] = 0
15559 return 0;
15561 _ACEOF
15562 rm -f conftest.$ac_objext
15563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15564 (eval $ac_compile) 2>conftest.er1
15565 ac_status=$?
15566 grep -v '^ *+' conftest.er1 >conftest.err
15567 rm -f conftest.er1
15568 cat conftest.err >&5
15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); } &&
15571 { ac_try='test -z "$ac_c_werror_flag"
15572 || test ! -s conftest.err'
15573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15574 (eval $ac_try) 2>&5
15575 ac_status=$?
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); }; } &&
15578 { ac_try='test -s conftest.$ac_objext'
15579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15580 (eval $ac_try) 2>&5
15581 ac_status=$?
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); }; }; then
15584 ac_lo=$ac_mid; break
15585 else
15586 echo "$as_me: failed program was:" >&5
15587 sed 's/^/| /' conftest.$ac_ext >&5
15589 ac_hi=`expr '(' $ac_mid ')' - 1`
15590 if test $ac_mid -le $ac_hi; then
15591 ac_lo= ac_hi=
15592 break
15594 ac_mid=`expr 2 '*' $ac_mid`
15596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15597 done
15598 else
15599 echo "$as_me: failed program was:" >&5
15600 sed 's/^/| /' conftest.$ac_ext >&5
15602 ac_lo= ac_hi=
15604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15607 # Binary search between lo and hi bounds.
15608 while test "x$ac_lo" != "x$ac_hi"; do
15609 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15610 cat >conftest.$ac_ext <<_ACEOF
15611 /* confdefs.h. */
15612 _ACEOF
15613 cat confdefs.h >>conftest.$ac_ext
15614 cat >>conftest.$ac_ext <<_ACEOF
15615 /* end confdefs.h. */
15616 $ac_includes_default
15618 main ()
15620 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15621 test_array [0] = 0
15624 return 0;
15626 _ACEOF
15627 rm -f conftest.$ac_objext
15628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15629 (eval $ac_compile) 2>conftest.er1
15630 ac_status=$?
15631 grep -v '^ *+' conftest.er1 >conftest.err
15632 rm -f conftest.er1
15633 cat conftest.err >&5
15634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635 (exit $ac_status); } &&
15636 { ac_try='test -z "$ac_c_werror_flag"
15637 || test ! -s conftest.err'
15638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15639 (eval $ac_try) 2>&5
15640 ac_status=$?
15641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642 (exit $ac_status); }; } &&
15643 { ac_try='test -s conftest.$ac_objext'
15644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15645 (eval $ac_try) 2>&5
15646 ac_status=$?
15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648 (exit $ac_status); }; }; then
15649 ac_hi=$ac_mid
15650 else
15651 echo "$as_me: failed program was:" >&5
15652 sed 's/^/| /' conftest.$ac_ext >&5
15654 ac_lo=`expr '(' $ac_mid ')' + 1`
15656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15657 done
15658 case $ac_lo in
15659 ?*) ac_cv_sizeof_long=$ac_lo;;
15660 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15661 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15662 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15663 See \`config.log' for more details." >&5
15664 echo "$as_me: error: cannot compute sizeof (long), 77
15665 See \`config.log' for more details." >&2;}
15666 { (exit 1); exit 1; }; }; } ;;
15667 esac
15668 else
15669 if test "$cross_compiling" = yes; then
15670 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15671 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15672 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15673 See \`config.log' for more details." >&5
15674 echo "$as_me: error: cannot run test program while cross compiling
15675 See \`config.log' for more details." >&2;}
15676 { (exit 1); exit 1; }; }; }
15677 else
15678 cat >conftest.$ac_ext <<_ACEOF
15679 /* confdefs.h. */
15680 _ACEOF
15681 cat confdefs.h >>conftest.$ac_ext
15682 cat >>conftest.$ac_ext <<_ACEOF
15683 /* end confdefs.h. */
15684 $ac_includes_default
15685 long longval () { return (long) (sizeof (long)); }
15686 unsigned long ulongval () { return (long) (sizeof (long)); }
15687 #include <stdio.h>
15688 #include <stdlib.h>
15690 main ()
15693 FILE *f = fopen ("conftest.val", "w");
15694 if (! f)
15695 exit (1);
15696 if (((long) (sizeof (long))) < 0)
15698 long i = longval ();
15699 if (i != ((long) (sizeof (long))))
15700 exit (1);
15701 fprintf (f, "%ld\n", i);
15703 else
15705 unsigned long i = ulongval ();
15706 if (i != ((long) (sizeof (long))))
15707 exit (1);
15708 fprintf (f, "%lu\n", i);
15710 exit (ferror (f) || fclose (f) != 0);
15713 return 0;
15715 _ACEOF
15716 rm -f conftest$ac_exeext
15717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15718 (eval $ac_link) 2>&5
15719 ac_status=$?
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15723 (eval $ac_try) 2>&5
15724 ac_status=$?
15725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); }; }; then
15727 ac_cv_sizeof_long=`cat conftest.val`
15728 else
15729 echo "$as_me: program exited with status $ac_status" >&5
15730 echo "$as_me: failed program was:" >&5
15731 sed 's/^/| /' conftest.$ac_ext >&5
15733 ( exit $ac_status )
15734 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15735 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15736 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15737 See \`config.log' for more details." >&5
15738 echo "$as_me: error: cannot compute sizeof (long), 77
15739 See \`config.log' for more details." >&2;}
15740 { (exit 1); exit 1; }; }; }
15742 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15745 rm -f conftest.val
15746 else
15747 ac_cv_sizeof_long=0
15750 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15751 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15752 cat >>confdefs.h <<_ACEOF
15753 #define SIZEOF_LONG $ac_cv_sizeof_long
15754 _ACEOF
15757 esac
15759 if test $acx_cv_header_stdint = stddef.h; then
15760 # Lacking a good header? Test size of everything and deduce all types.
15761 echo "$as_me:$LINENO: checking for int" >&5
15762 echo $ECHO_N "checking for int... $ECHO_C" >&6
15763 if test "${ac_cv_type_int+set}" = set; then
15764 echo $ECHO_N "(cached) $ECHO_C" >&6
15765 else
15766 cat >conftest.$ac_ext <<_ACEOF
15767 /* confdefs.h. */
15768 _ACEOF
15769 cat confdefs.h >>conftest.$ac_ext
15770 cat >>conftest.$ac_ext <<_ACEOF
15771 /* end confdefs.h. */
15772 $ac_includes_default
15774 main ()
15776 if ((int *) 0)
15777 return 0;
15778 if (sizeof (int))
15779 return 0;
15781 return 0;
15783 _ACEOF
15784 rm -f conftest.$ac_objext
15785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15786 (eval $ac_compile) 2>conftest.er1
15787 ac_status=$?
15788 grep -v '^ *+' conftest.er1 >conftest.err
15789 rm -f conftest.er1
15790 cat conftest.err >&5
15791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792 (exit $ac_status); } &&
15793 { ac_try='test -z "$ac_c_werror_flag"
15794 || test ! -s conftest.err'
15795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15796 (eval $ac_try) 2>&5
15797 ac_status=$?
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); }; } &&
15800 { ac_try='test -s conftest.$ac_objext'
15801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15802 (eval $ac_try) 2>&5
15803 ac_status=$?
15804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 (exit $ac_status); }; }; then
15806 ac_cv_type_int=yes
15807 else
15808 echo "$as_me: failed program was:" >&5
15809 sed 's/^/| /' conftest.$ac_ext >&5
15811 ac_cv_type_int=no
15813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15815 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15816 echo "${ECHO_T}$ac_cv_type_int" >&6
15818 echo "$as_me:$LINENO: checking size of int" >&5
15819 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15820 if test "${ac_cv_sizeof_int+set}" = set; then
15821 echo $ECHO_N "(cached) $ECHO_C" >&6
15822 else
15823 if test "$ac_cv_type_int" = yes; then
15824 # The cast to unsigned long works around a bug in the HP C Compiler
15825 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15826 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15827 # This bug is HP SR number 8606223364.
15828 if test "$cross_compiling" = yes; then
15829 # Depending upon the size, compute the lo and hi bounds.
15830 cat >conftest.$ac_ext <<_ACEOF
15831 /* confdefs.h. */
15832 _ACEOF
15833 cat confdefs.h >>conftest.$ac_ext
15834 cat >>conftest.$ac_ext <<_ACEOF
15835 /* end confdefs.h. */
15836 $ac_includes_default
15838 main ()
15840 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15841 test_array [0] = 0
15844 return 0;
15846 _ACEOF
15847 rm -f conftest.$ac_objext
15848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15849 (eval $ac_compile) 2>conftest.er1
15850 ac_status=$?
15851 grep -v '^ *+' conftest.er1 >conftest.err
15852 rm -f conftest.er1
15853 cat conftest.err >&5
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); } &&
15856 { ac_try='test -z "$ac_c_werror_flag"
15857 || test ! -s conftest.err'
15858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15859 (eval $ac_try) 2>&5
15860 ac_status=$?
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); }; } &&
15863 { ac_try='test -s conftest.$ac_objext'
15864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15865 (eval $ac_try) 2>&5
15866 ac_status=$?
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); }; }; then
15869 ac_lo=0 ac_mid=0
15870 while :; do
15871 cat >conftest.$ac_ext <<_ACEOF
15872 /* confdefs.h. */
15873 _ACEOF
15874 cat confdefs.h >>conftest.$ac_ext
15875 cat >>conftest.$ac_ext <<_ACEOF
15876 /* end confdefs.h. */
15877 $ac_includes_default
15879 main ()
15881 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15882 test_array [0] = 0
15885 return 0;
15887 _ACEOF
15888 rm -f conftest.$ac_objext
15889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15890 (eval $ac_compile) 2>conftest.er1
15891 ac_status=$?
15892 grep -v '^ *+' conftest.er1 >conftest.err
15893 rm -f conftest.er1
15894 cat conftest.err >&5
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); } &&
15897 { ac_try='test -z "$ac_c_werror_flag"
15898 || test ! -s conftest.err'
15899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15900 (eval $ac_try) 2>&5
15901 ac_status=$?
15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); }; } &&
15904 { ac_try='test -s conftest.$ac_objext'
15905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15906 (eval $ac_try) 2>&5
15907 ac_status=$?
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); }; }; then
15910 ac_hi=$ac_mid; break
15911 else
15912 echo "$as_me: failed program was:" >&5
15913 sed 's/^/| /' conftest.$ac_ext >&5
15915 ac_lo=`expr $ac_mid + 1`
15916 if test $ac_lo -le $ac_mid; then
15917 ac_lo= ac_hi=
15918 break
15920 ac_mid=`expr 2 '*' $ac_mid + 1`
15922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15923 done
15924 else
15925 echo "$as_me: failed program was:" >&5
15926 sed 's/^/| /' conftest.$ac_ext >&5
15928 cat >conftest.$ac_ext <<_ACEOF
15929 /* confdefs.h. */
15930 _ACEOF
15931 cat confdefs.h >>conftest.$ac_ext
15932 cat >>conftest.$ac_ext <<_ACEOF
15933 /* end confdefs.h. */
15934 $ac_includes_default
15936 main ()
15938 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15939 test_array [0] = 0
15942 return 0;
15944 _ACEOF
15945 rm -f conftest.$ac_objext
15946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15947 (eval $ac_compile) 2>conftest.er1
15948 ac_status=$?
15949 grep -v '^ *+' conftest.er1 >conftest.err
15950 rm -f conftest.er1
15951 cat conftest.err >&5
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); } &&
15954 { ac_try='test -z "$ac_c_werror_flag"
15955 || test ! -s conftest.err'
15956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15957 (eval $ac_try) 2>&5
15958 ac_status=$?
15959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960 (exit $ac_status); }; } &&
15961 { ac_try='test -s conftest.$ac_objext'
15962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15963 (eval $ac_try) 2>&5
15964 ac_status=$?
15965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966 (exit $ac_status); }; }; then
15967 ac_hi=-1 ac_mid=-1
15968 while :; do
15969 cat >conftest.$ac_ext <<_ACEOF
15970 /* confdefs.h. */
15971 _ACEOF
15972 cat confdefs.h >>conftest.$ac_ext
15973 cat >>conftest.$ac_ext <<_ACEOF
15974 /* end confdefs.h. */
15975 $ac_includes_default
15977 main ()
15979 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15980 test_array [0] = 0
15983 return 0;
15985 _ACEOF
15986 rm -f conftest.$ac_objext
15987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15988 (eval $ac_compile) 2>conftest.er1
15989 ac_status=$?
15990 grep -v '^ *+' conftest.er1 >conftest.err
15991 rm -f conftest.er1
15992 cat conftest.err >&5
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); } &&
15995 { ac_try='test -z "$ac_c_werror_flag"
15996 || test ! -s conftest.err'
15997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15998 (eval $ac_try) 2>&5
15999 ac_status=$?
16000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001 (exit $ac_status); }; } &&
16002 { ac_try='test -s conftest.$ac_objext'
16003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16004 (eval $ac_try) 2>&5
16005 ac_status=$?
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); }; }; then
16008 ac_lo=$ac_mid; break
16009 else
16010 echo "$as_me: failed program was:" >&5
16011 sed 's/^/| /' conftest.$ac_ext >&5
16013 ac_hi=`expr '(' $ac_mid ')' - 1`
16014 if test $ac_mid -le $ac_hi; then
16015 ac_lo= ac_hi=
16016 break
16018 ac_mid=`expr 2 '*' $ac_mid`
16020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16021 done
16022 else
16023 echo "$as_me: failed program was:" >&5
16024 sed 's/^/| /' conftest.$ac_ext >&5
16026 ac_lo= ac_hi=
16028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16031 # Binary search between lo and hi bounds.
16032 while test "x$ac_lo" != "x$ac_hi"; do
16033 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16034 cat >conftest.$ac_ext <<_ACEOF
16035 /* confdefs.h. */
16036 _ACEOF
16037 cat confdefs.h >>conftest.$ac_ext
16038 cat >>conftest.$ac_ext <<_ACEOF
16039 /* end confdefs.h. */
16040 $ac_includes_default
16042 main ()
16044 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16045 test_array [0] = 0
16048 return 0;
16050 _ACEOF
16051 rm -f conftest.$ac_objext
16052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16053 (eval $ac_compile) 2>conftest.er1
16054 ac_status=$?
16055 grep -v '^ *+' conftest.er1 >conftest.err
16056 rm -f conftest.er1
16057 cat conftest.err >&5
16058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059 (exit $ac_status); } &&
16060 { ac_try='test -z "$ac_c_werror_flag"
16061 || test ! -s conftest.err'
16062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16063 (eval $ac_try) 2>&5
16064 ac_status=$?
16065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066 (exit $ac_status); }; } &&
16067 { ac_try='test -s conftest.$ac_objext'
16068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16069 (eval $ac_try) 2>&5
16070 ac_status=$?
16071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); }; }; then
16073 ac_hi=$ac_mid
16074 else
16075 echo "$as_me: failed program was:" >&5
16076 sed 's/^/| /' conftest.$ac_ext >&5
16078 ac_lo=`expr '(' $ac_mid ')' + 1`
16080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16081 done
16082 case $ac_lo in
16083 ?*) ac_cv_sizeof_int=$ac_lo;;
16084 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16085 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16086 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16087 See \`config.log' for more details." >&5
16088 echo "$as_me: error: cannot compute sizeof (int), 77
16089 See \`config.log' for more details." >&2;}
16090 { (exit 1); exit 1; }; }; } ;;
16091 esac
16092 else
16093 if test "$cross_compiling" = yes; then
16094 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16095 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16096 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16097 See \`config.log' for more details." >&5
16098 echo "$as_me: error: cannot run test program while cross compiling
16099 See \`config.log' for more details." >&2;}
16100 { (exit 1); exit 1; }; }; }
16101 else
16102 cat >conftest.$ac_ext <<_ACEOF
16103 /* confdefs.h. */
16104 _ACEOF
16105 cat confdefs.h >>conftest.$ac_ext
16106 cat >>conftest.$ac_ext <<_ACEOF
16107 /* end confdefs.h. */
16108 $ac_includes_default
16109 long longval () { return (long) (sizeof (int)); }
16110 unsigned long ulongval () { return (long) (sizeof (int)); }
16111 #include <stdio.h>
16112 #include <stdlib.h>
16114 main ()
16117 FILE *f = fopen ("conftest.val", "w");
16118 if (! f)
16119 exit (1);
16120 if (((long) (sizeof (int))) < 0)
16122 long i = longval ();
16123 if (i != ((long) (sizeof (int))))
16124 exit (1);
16125 fprintf (f, "%ld\n", i);
16127 else
16129 unsigned long i = ulongval ();
16130 if (i != ((long) (sizeof (int))))
16131 exit (1);
16132 fprintf (f, "%lu\n", i);
16134 exit (ferror (f) || fclose (f) != 0);
16137 return 0;
16139 _ACEOF
16140 rm -f conftest$ac_exeext
16141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16142 (eval $ac_link) 2>&5
16143 ac_status=$?
16144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16147 (eval $ac_try) 2>&5
16148 ac_status=$?
16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); }; }; then
16151 ac_cv_sizeof_int=`cat conftest.val`
16152 else
16153 echo "$as_me: program exited with status $ac_status" >&5
16154 echo "$as_me: failed program was:" >&5
16155 sed 's/^/| /' conftest.$ac_ext >&5
16157 ( exit $ac_status )
16158 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16159 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16160 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16161 See \`config.log' for more details." >&5
16162 echo "$as_me: error: cannot compute sizeof (int), 77
16163 See \`config.log' for more details." >&2;}
16164 { (exit 1); exit 1; }; }; }
16166 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16169 rm -f conftest.val
16170 else
16171 ac_cv_sizeof_int=0
16174 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16175 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16176 cat >>confdefs.h <<_ACEOF
16177 #define SIZEOF_INT $ac_cv_sizeof_int
16178 _ACEOF
16181 echo "$as_me:$LINENO: checking for short" >&5
16182 echo $ECHO_N "checking for short... $ECHO_C" >&6
16183 if test "${ac_cv_type_short+set}" = set; then
16184 echo $ECHO_N "(cached) $ECHO_C" >&6
16185 else
16186 cat >conftest.$ac_ext <<_ACEOF
16187 /* confdefs.h. */
16188 _ACEOF
16189 cat confdefs.h >>conftest.$ac_ext
16190 cat >>conftest.$ac_ext <<_ACEOF
16191 /* end confdefs.h. */
16192 $ac_includes_default
16194 main ()
16196 if ((short *) 0)
16197 return 0;
16198 if (sizeof (short))
16199 return 0;
16201 return 0;
16203 _ACEOF
16204 rm -f conftest.$ac_objext
16205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16206 (eval $ac_compile) 2>conftest.er1
16207 ac_status=$?
16208 grep -v '^ *+' conftest.er1 >conftest.err
16209 rm -f conftest.er1
16210 cat conftest.err >&5
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); } &&
16213 { ac_try='test -z "$ac_c_werror_flag"
16214 || test ! -s conftest.err'
16215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16216 (eval $ac_try) 2>&5
16217 ac_status=$?
16218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219 (exit $ac_status); }; } &&
16220 { ac_try='test -s conftest.$ac_objext'
16221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16222 (eval $ac_try) 2>&5
16223 ac_status=$?
16224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225 (exit $ac_status); }; }; then
16226 ac_cv_type_short=yes
16227 else
16228 echo "$as_me: failed program was:" >&5
16229 sed 's/^/| /' conftest.$ac_ext >&5
16231 ac_cv_type_short=no
16233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16235 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
16236 echo "${ECHO_T}$ac_cv_type_short" >&6
16238 echo "$as_me:$LINENO: checking size of short" >&5
16239 echo $ECHO_N "checking size of short... $ECHO_C" >&6
16240 if test "${ac_cv_sizeof_short+set}" = set; then
16241 echo $ECHO_N "(cached) $ECHO_C" >&6
16242 else
16243 if test "$ac_cv_type_short" = yes; then
16244 # The cast to unsigned long works around a bug in the HP C Compiler
16245 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16246 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16247 # This bug is HP SR number 8606223364.
16248 if test "$cross_compiling" = yes; then
16249 # Depending upon the size, compute the lo and hi bounds.
16250 cat >conftest.$ac_ext <<_ACEOF
16251 /* confdefs.h. */
16252 _ACEOF
16253 cat confdefs.h >>conftest.$ac_ext
16254 cat >>conftest.$ac_ext <<_ACEOF
16255 /* end confdefs.h. */
16256 $ac_includes_default
16258 main ()
16260 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
16261 test_array [0] = 0
16264 return 0;
16266 _ACEOF
16267 rm -f conftest.$ac_objext
16268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16269 (eval $ac_compile) 2>conftest.er1
16270 ac_status=$?
16271 grep -v '^ *+' conftest.er1 >conftest.err
16272 rm -f conftest.er1
16273 cat conftest.err >&5
16274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16275 (exit $ac_status); } &&
16276 { ac_try='test -z "$ac_c_werror_flag"
16277 || test ! -s conftest.err'
16278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16279 (eval $ac_try) 2>&5
16280 ac_status=$?
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); }; } &&
16283 { ac_try='test -s conftest.$ac_objext'
16284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16285 (eval $ac_try) 2>&5
16286 ac_status=$?
16287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288 (exit $ac_status); }; }; then
16289 ac_lo=0 ac_mid=0
16290 while :; do
16291 cat >conftest.$ac_ext <<_ACEOF
16292 /* confdefs.h. */
16293 _ACEOF
16294 cat confdefs.h >>conftest.$ac_ext
16295 cat >>conftest.$ac_ext <<_ACEOF
16296 /* end confdefs.h. */
16297 $ac_includes_default
16299 main ()
16301 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16302 test_array [0] = 0
16305 return 0;
16307 _ACEOF
16308 rm -f conftest.$ac_objext
16309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16310 (eval $ac_compile) 2>conftest.er1
16311 ac_status=$?
16312 grep -v '^ *+' conftest.er1 >conftest.err
16313 rm -f conftest.er1
16314 cat conftest.err >&5
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); } &&
16317 { ac_try='test -z "$ac_c_werror_flag"
16318 || test ! -s conftest.err'
16319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16320 (eval $ac_try) 2>&5
16321 ac_status=$?
16322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323 (exit $ac_status); }; } &&
16324 { ac_try='test -s conftest.$ac_objext'
16325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16326 (eval $ac_try) 2>&5
16327 ac_status=$?
16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329 (exit $ac_status); }; }; then
16330 ac_hi=$ac_mid; break
16331 else
16332 echo "$as_me: failed program was:" >&5
16333 sed 's/^/| /' conftest.$ac_ext >&5
16335 ac_lo=`expr $ac_mid + 1`
16336 if test $ac_lo -le $ac_mid; then
16337 ac_lo= ac_hi=
16338 break
16340 ac_mid=`expr 2 '*' $ac_mid + 1`
16342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16343 done
16344 else
16345 echo "$as_me: failed program was:" >&5
16346 sed 's/^/| /' conftest.$ac_ext >&5
16348 cat >conftest.$ac_ext <<_ACEOF
16349 /* confdefs.h. */
16350 _ACEOF
16351 cat confdefs.h >>conftest.$ac_ext
16352 cat >>conftest.$ac_ext <<_ACEOF
16353 /* end confdefs.h. */
16354 $ac_includes_default
16356 main ()
16358 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16359 test_array [0] = 0
16362 return 0;
16364 _ACEOF
16365 rm -f conftest.$ac_objext
16366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16367 (eval $ac_compile) 2>conftest.er1
16368 ac_status=$?
16369 grep -v '^ *+' conftest.er1 >conftest.err
16370 rm -f conftest.er1
16371 cat conftest.err >&5
16372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); } &&
16374 { ac_try='test -z "$ac_c_werror_flag"
16375 || test ! -s conftest.err'
16376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16377 (eval $ac_try) 2>&5
16378 ac_status=$?
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); }; } &&
16381 { ac_try='test -s conftest.$ac_objext'
16382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16383 (eval $ac_try) 2>&5
16384 ac_status=$?
16385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386 (exit $ac_status); }; }; then
16387 ac_hi=-1 ac_mid=-1
16388 while :; do
16389 cat >conftest.$ac_ext <<_ACEOF
16390 /* confdefs.h. */
16391 _ACEOF
16392 cat confdefs.h >>conftest.$ac_ext
16393 cat >>conftest.$ac_ext <<_ACEOF
16394 /* end confdefs.h. */
16395 $ac_includes_default
16397 main ()
16399 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16400 test_array [0] = 0
16403 return 0;
16405 _ACEOF
16406 rm -f conftest.$ac_objext
16407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16408 (eval $ac_compile) 2>conftest.er1
16409 ac_status=$?
16410 grep -v '^ *+' conftest.er1 >conftest.err
16411 rm -f conftest.er1
16412 cat conftest.err >&5
16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); } &&
16415 { ac_try='test -z "$ac_c_werror_flag"
16416 || test ! -s conftest.err'
16417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16418 (eval $ac_try) 2>&5
16419 ac_status=$?
16420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); }; } &&
16422 { ac_try='test -s conftest.$ac_objext'
16423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16424 (eval $ac_try) 2>&5
16425 ac_status=$?
16426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427 (exit $ac_status); }; }; then
16428 ac_lo=$ac_mid; break
16429 else
16430 echo "$as_me: failed program was:" >&5
16431 sed 's/^/| /' conftest.$ac_ext >&5
16433 ac_hi=`expr '(' $ac_mid ')' - 1`
16434 if test $ac_mid -le $ac_hi; then
16435 ac_lo= ac_hi=
16436 break
16438 ac_mid=`expr 2 '*' $ac_mid`
16440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16441 done
16442 else
16443 echo "$as_me: failed program was:" >&5
16444 sed 's/^/| /' conftest.$ac_ext >&5
16446 ac_lo= ac_hi=
16448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16451 # Binary search between lo and hi bounds.
16452 while test "x$ac_lo" != "x$ac_hi"; do
16453 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16454 cat >conftest.$ac_ext <<_ACEOF
16455 /* confdefs.h. */
16456 _ACEOF
16457 cat confdefs.h >>conftest.$ac_ext
16458 cat >>conftest.$ac_ext <<_ACEOF
16459 /* end confdefs.h. */
16460 $ac_includes_default
16462 main ()
16464 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16465 test_array [0] = 0
16468 return 0;
16470 _ACEOF
16471 rm -f conftest.$ac_objext
16472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16473 (eval $ac_compile) 2>conftest.er1
16474 ac_status=$?
16475 grep -v '^ *+' conftest.er1 >conftest.err
16476 rm -f conftest.er1
16477 cat conftest.err >&5
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); } &&
16480 { ac_try='test -z "$ac_c_werror_flag"
16481 || test ! -s conftest.err'
16482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16483 (eval $ac_try) 2>&5
16484 ac_status=$?
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); }; } &&
16487 { ac_try='test -s conftest.$ac_objext'
16488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16489 (eval $ac_try) 2>&5
16490 ac_status=$?
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); }; }; then
16493 ac_hi=$ac_mid
16494 else
16495 echo "$as_me: failed program was:" >&5
16496 sed 's/^/| /' conftest.$ac_ext >&5
16498 ac_lo=`expr '(' $ac_mid ')' + 1`
16500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16501 done
16502 case $ac_lo in
16503 ?*) ac_cv_sizeof_short=$ac_lo;;
16504 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16505 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16506 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16507 See \`config.log' for more details." >&5
16508 echo "$as_me: error: cannot compute sizeof (short), 77
16509 See \`config.log' for more details." >&2;}
16510 { (exit 1); exit 1; }; }; } ;;
16511 esac
16512 else
16513 if test "$cross_compiling" = yes; then
16514 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16515 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16516 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16517 See \`config.log' for more details." >&5
16518 echo "$as_me: error: cannot run test program while cross compiling
16519 See \`config.log' for more details." >&2;}
16520 { (exit 1); exit 1; }; }; }
16521 else
16522 cat >conftest.$ac_ext <<_ACEOF
16523 /* confdefs.h. */
16524 _ACEOF
16525 cat confdefs.h >>conftest.$ac_ext
16526 cat >>conftest.$ac_ext <<_ACEOF
16527 /* end confdefs.h. */
16528 $ac_includes_default
16529 long longval () { return (long) (sizeof (short)); }
16530 unsigned long ulongval () { return (long) (sizeof (short)); }
16531 #include <stdio.h>
16532 #include <stdlib.h>
16534 main ()
16537 FILE *f = fopen ("conftest.val", "w");
16538 if (! f)
16539 exit (1);
16540 if (((long) (sizeof (short))) < 0)
16542 long i = longval ();
16543 if (i != ((long) (sizeof (short))))
16544 exit (1);
16545 fprintf (f, "%ld\n", i);
16547 else
16549 unsigned long i = ulongval ();
16550 if (i != ((long) (sizeof (short))))
16551 exit (1);
16552 fprintf (f, "%lu\n", i);
16554 exit (ferror (f) || fclose (f) != 0);
16557 return 0;
16559 _ACEOF
16560 rm -f conftest$ac_exeext
16561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16562 (eval $ac_link) 2>&5
16563 ac_status=$?
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16567 (eval $ac_try) 2>&5
16568 ac_status=$?
16569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570 (exit $ac_status); }; }; then
16571 ac_cv_sizeof_short=`cat conftest.val`
16572 else
16573 echo "$as_me: program exited with status $ac_status" >&5
16574 echo "$as_me: failed program was:" >&5
16575 sed 's/^/| /' conftest.$ac_ext >&5
16577 ( exit $ac_status )
16578 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16579 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16580 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16581 See \`config.log' for more details." >&5
16582 echo "$as_me: error: cannot compute sizeof (short), 77
16583 See \`config.log' for more details." >&2;}
16584 { (exit 1); exit 1; }; }; }
16586 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16589 rm -f conftest.val
16590 else
16591 ac_cv_sizeof_short=0
16594 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16595 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16596 cat >>confdefs.h <<_ACEOF
16597 #define SIZEOF_SHORT $ac_cv_sizeof_short
16598 _ACEOF
16601 echo "$as_me:$LINENO: checking for char" >&5
16602 echo $ECHO_N "checking for char... $ECHO_C" >&6
16603 if test "${ac_cv_type_char+set}" = set; then
16604 echo $ECHO_N "(cached) $ECHO_C" >&6
16605 else
16606 cat >conftest.$ac_ext <<_ACEOF
16607 /* confdefs.h. */
16608 _ACEOF
16609 cat confdefs.h >>conftest.$ac_ext
16610 cat >>conftest.$ac_ext <<_ACEOF
16611 /* end confdefs.h. */
16612 $ac_includes_default
16614 main ()
16616 if ((char *) 0)
16617 return 0;
16618 if (sizeof (char))
16619 return 0;
16621 return 0;
16623 _ACEOF
16624 rm -f conftest.$ac_objext
16625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16626 (eval $ac_compile) 2>conftest.er1
16627 ac_status=$?
16628 grep -v '^ *+' conftest.er1 >conftest.err
16629 rm -f conftest.er1
16630 cat conftest.err >&5
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); } &&
16633 { ac_try='test -z "$ac_c_werror_flag"
16634 || test ! -s conftest.err'
16635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16636 (eval $ac_try) 2>&5
16637 ac_status=$?
16638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); }; } &&
16640 { ac_try='test -s conftest.$ac_objext'
16641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16642 (eval $ac_try) 2>&5
16643 ac_status=$?
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); }; }; then
16646 ac_cv_type_char=yes
16647 else
16648 echo "$as_me: failed program was:" >&5
16649 sed 's/^/| /' conftest.$ac_ext >&5
16651 ac_cv_type_char=no
16653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16655 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16656 echo "${ECHO_T}$ac_cv_type_char" >&6
16658 echo "$as_me:$LINENO: checking size of char" >&5
16659 echo $ECHO_N "checking size of char... $ECHO_C" >&6
16660 if test "${ac_cv_sizeof_char+set}" = set; then
16661 echo $ECHO_N "(cached) $ECHO_C" >&6
16662 else
16663 if test "$ac_cv_type_char" = yes; then
16664 # The cast to unsigned long works around a bug in the HP C Compiler
16665 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16666 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16667 # This bug is HP SR number 8606223364.
16668 if test "$cross_compiling" = yes; then
16669 # Depending upon the size, compute the lo and hi bounds.
16670 cat >conftest.$ac_ext <<_ACEOF
16671 /* confdefs.h. */
16672 _ACEOF
16673 cat confdefs.h >>conftest.$ac_ext
16674 cat >>conftest.$ac_ext <<_ACEOF
16675 /* end confdefs.h. */
16676 $ac_includes_default
16678 main ()
16680 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16681 test_array [0] = 0
16684 return 0;
16686 _ACEOF
16687 rm -f conftest.$ac_objext
16688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16689 (eval $ac_compile) 2>conftest.er1
16690 ac_status=$?
16691 grep -v '^ *+' conftest.er1 >conftest.err
16692 rm -f conftest.er1
16693 cat conftest.err >&5
16694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695 (exit $ac_status); } &&
16696 { ac_try='test -z "$ac_c_werror_flag"
16697 || test ! -s conftest.err'
16698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16699 (eval $ac_try) 2>&5
16700 ac_status=$?
16701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); }; } &&
16703 { ac_try='test -s conftest.$ac_objext'
16704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16705 (eval $ac_try) 2>&5
16706 ac_status=$?
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); }; }; then
16709 ac_lo=0 ac_mid=0
16710 while :; do
16711 cat >conftest.$ac_ext <<_ACEOF
16712 /* confdefs.h. */
16713 _ACEOF
16714 cat confdefs.h >>conftest.$ac_ext
16715 cat >>conftest.$ac_ext <<_ACEOF
16716 /* end confdefs.h. */
16717 $ac_includes_default
16719 main ()
16721 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16722 test_array [0] = 0
16725 return 0;
16727 _ACEOF
16728 rm -f conftest.$ac_objext
16729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16730 (eval $ac_compile) 2>conftest.er1
16731 ac_status=$?
16732 grep -v '^ *+' conftest.er1 >conftest.err
16733 rm -f conftest.er1
16734 cat conftest.err >&5
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); } &&
16737 { ac_try='test -z "$ac_c_werror_flag"
16738 || test ! -s conftest.err'
16739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16740 (eval $ac_try) 2>&5
16741 ac_status=$?
16742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 (exit $ac_status); }; } &&
16744 { ac_try='test -s conftest.$ac_objext'
16745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16746 (eval $ac_try) 2>&5
16747 ac_status=$?
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); }; }; then
16750 ac_hi=$ac_mid; break
16751 else
16752 echo "$as_me: failed program was:" >&5
16753 sed 's/^/| /' conftest.$ac_ext >&5
16755 ac_lo=`expr $ac_mid + 1`
16756 if test $ac_lo -le $ac_mid; then
16757 ac_lo= ac_hi=
16758 break
16760 ac_mid=`expr 2 '*' $ac_mid + 1`
16762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16763 done
16764 else
16765 echo "$as_me: failed program was:" >&5
16766 sed 's/^/| /' conftest.$ac_ext >&5
16768 cat >conftest.$ac_ext <<_ACEOF
16769 /* confdefs.h. */
16770 _ACEOF
16771 cat confdefs.h >>conftest.$ac_ext
16772 cat >>conftest.$ac_ext <<_ACEOF
16773 /* end confdefs.h. */
16774 $ac_includes_default
16776 main ()
16778 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16779 test_array [0] = 0
16782 return 0;
16784 _ACEOF
16785 rm -f conftest.$ac_objext
16786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16787 (eval $ac_compile) 2>conftest.er1
16788 ac_status=$?
16789 grep -v '^ *+' conftest.er1 >conftest.err
16790 rm -f conftest.er1
16791 cat conftest.err >&5
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); } &&
16794 { ac_try='test -z "$ac_c_werror_flag"
16795 || test ! -s conftest.err'
16796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16797 (eval $ac_try) 2>&5
16798 ac_status=$?
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); }; } &&
16801 { ac_try='test -s conftest.$ac_objext'
16802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16803 (eval $ac_try) 2>&5
16804 ac_status=$?
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); }; }; then
16807 ac_hi=-1 ac_mid=-1
16808 while :; do
16809 cat >conftest.$ac_ext <<_ACEOF
16810 /* confdefs.h. */
16811 _ACEOF
16812 cat confdefs.h >>conftest.$ac_ext
16813 cat >>conftest.$ac_ext <<_ACEOF
16814 /* end confdefs.h. */
16815 $ac_includes_default
16817 main ()
16819 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16820 test_array [0] = 0
16823 return 0;
16825 _ACEOF
16826 rm -f conftest.$ac_objext
16827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16828 (eval $ac_compile) 2>conftest.er1
16829 ac_status=$?
16830 grep -v '^ *+' conftest.er1 >conftest.err
16831 rm -f conftest.er1
16832 cat conftest.err >&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); } &&
16835 { ac_try='test -z "$ac_c_werror_flag"
16836 || test ! -s conftest.err'
16837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16838 (eval $ac_try) 2>&5
16839 ac_status=$?
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); }; } &&
16842 { ac_try='test -s conftest.$ac_objext'
16843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16844 (eval $ac_try) 2>&5
16845 ac_status=$?
16846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847 (exit $ac_status); }; }; then
16848 ac_lo=$ac_mid; break
16849 else
16850 echo "$as_me: failed program was:" >&5
16851 sed 's/^/| /' conftest.$ac_ext >&5
16853 ac_hi=`expr '(' $ac_mid ')' - 1`
16854 if test $ac_mid -le $ac_hi; then
16855 ac_lo= ac_hi=
16856 break
16858 ac_mid=`expr 2 '*' $ac_mid`
16860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16861 done
16862 else
16863 echo "$as_me: failed program was:" >&5
16864 sed 's/^/| /' conftest.$ac_ext >&5
16866 ac_lo= ac_hi=
16868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16871 # Binary search between lo and hi bounds.
16872 while test "x$ac_lo" != "x$ac_hi"; do
16873 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16874 cat >conftest.$ac_ext <<_ACEOF
16875 /* confdefs.h. */
16876 _ACEOF
16877 cat confdefs.h >>conftest.$ac_ext
16878 cat >>conftest.$ac_ext <<_ACEOF
16879 /* end confdefs.h. */
16880 $ac_includes_default
16882 main ()
16884 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16885 test_array [0] = 0
16888 return 0;
16890 _ACEOF
16891 rm -f conftest.$ac_objext
16892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16893 (eval $ac_compile) 2>conftest.er1
16894 ac_status=$?
16895 grep -v '^ *+' conftest.er1 >conftest.err
16896 rm -f conftest.er1
16897 cat conftest.err >&5
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); } &&
16900 { ac_try='test -z "$ac_c_werror_flag"
16901 || test ! -s conftest.err'
16902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16903 (eval $ac_try) 2>&5
16904 ac_status=$?
16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); }; } &&
16907 { ac_try='test -s conftest.$ac_objext'
16908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16909 (eval $ac_try) 2>&5
16910 ac_status=$?
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); }; }; then
16913 ac_hi=$ac_mid
16914 else
16915 echo "$as_me: failed program was:" >&5
16916 sed 's/^/| /' conftest.$ac_ext >&5
16918 ac_lo=`expr '(' $ac_mid ')' + 1`
16920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16921 done
16922 case $ac_lo in
16923 ?*) ac_cv_sizeof_char=$ac_lo;;
16924 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16925 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16926 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16927 See \`config.log' for more details." >&5
16928 echo "$as_me: error: cannot compute sizeof (char), 77
16929 See \`config.log' for more details." >&2;}
16930 { (exit 1); exit 1; }; }; } ;;
16931 esac
16932 else
16933 if test "$cross_compiling" = yes; then
16934 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16935 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16936 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16937 See \`config.log' for more details." >&5
16938 echo "$as_me: error: cannot run test program while cross compiling
16939 See \`config.log' for more details." >&2;}
16940 { (exit 1); exit 1; }; }; }
16941 else
16942 cat >conftest.$ac_ext <<_ACEOF
16943 /* confdefs.h. */
16944 _ACEOF
16945 cat confdefs.h >>conftest.$ac_ext
16946 cat >>conftest.$ac_ext <<_ACEOF
16947 /* end confdefs.h. */
16948 $ac_includes_default
16949 long longval () { return (long) (sizeof (char)); }
16950 unsigned long ulongval () { return (long) (sizeof (char)); }
16951 #include <stdio.h>
16952 #include <stdlib.h>
16954 main ()
16957 FILE *f = fopen ("conftest.val", "w");
16958 if (! f)
16959 exit (1);
16960 if (((long) (sizeof (char))) < 0)
16962 long i = longval ();
16963 if (i != ((long) (sizeof (char))))
16964 exit (1);
16965 fprintf (f, "%ld\n", i);
16967 else
16969 unsigned long i = ulongval ();
16970 if (i != ((long) (sizeof (char))))
16971 exit (1);
16972 fprintf (f, "%lu\n", i);
16974 exit (ferror (f) || fclose (f) != 0);
16977 return 0;
16979 _ACEOF
16980 rm -f conftest$ac_exeext
16981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16982 (eval $ac_link) 2>&5
16983 ac_status=$?
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16987 (eval $ac_try) 2>&5
16988 ac_status=$?
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); }; }; then
16991 ac_cv_sizeof_char=`cat conftest.val`
16992 else
16993 echo "$as_me: program exited with status $ac_status" >&5
16994 echo "$as_me: failed program was:" >&5
16995 sed 's/^/| /' conftest.$ac_ext >&5
16997 ( exit $ac_status )
16998 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16999 echo "$as_me: error: in \`$ac_pwd':" >&2;}
17000 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17001 See \`config.log' for more details." >&5
17002 echo "$as_me: error: cannot compute sizeof (char), 77
17003 See \`config.log' for more details." >&2;}
17004 { (exit 1); exit 1; }; }; }
17006 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17009 rm -f conftest.val
17010 else
17011 ac_cv_sizeof_char=0
17014 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17015 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17016 cat >>confdefs.h <<_ACEOF
17017 #define SIZEOF_CHAR $ac_cv_sizeof_char
17018 _ACEOF
17022 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
17023 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
17024 case "$ac_cv_sizeof_char" in
17025 1) acx_cv_type_int8_t=char ;;
17026 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
17027 echo "$as_me: error: no 8-bit type" >&2;}
17028 { (exit please report a bug); exit please report a bug; }; }
17029 esac
17030 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
17031 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
17033 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
17034 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
17035 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
17036 2:*) acx_cv_type_int16_t=int ;;
17037 *:2) acx_cv_type_int16_t=short ;;
17038 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
17039 echo "$as_me: error: no 16-bit type" >&2;}
17040 { (exit please report a bug); exit please report a bug; }; }
17041 esac
17042 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
17043 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
17045 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
17046 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
17047 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
17048 4:*) acx_cv_type_int32_t=int ;;
17049 *:4) acx_cv_type_int32_t=long ;;
17050 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
17051 echo "$as_me: error: no 32-bit type" >&2;}
17052 { (exit please report a bug); exit please report a bug; }; }
17053 esac
17054 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
17055 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
17058 # These tests are here to make the output prettier
17060 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
17061 case "$ac_cv_sizeof_long" in
17062 8) acx_cv_type_int64_t=long ;;
17063 esac
17064 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
17065 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
17066 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
17067 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
17070 # Now we can use the above types
17072 if test "$ac_cv_type_uintptr_t" != yes; then
17073 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
17074 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
17075 case $ac_cv_sizeof_void_p in
17076 2) acx_cv_type_intptr_t=int16_t ;;
17077 4) acx_cv_type_intptr_t=int32_t ;;
17078 8) acx_cv_type_intptr_t=int64_t ;;
17079 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
17080 echo "$as_me: error: no equivalent for intptr_t" >&2;}
17081 { (exit please report a bug); exit please report a bug; }; }
17082 esac
17083 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
17084 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
17087 # ----------------- done all checks, emit header -------------
17088 ac_config_commands="$ac_config_commands bfd_stdint.h"
17092 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
17093 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
17094 if test "${ac_cv_header_time+set}" = set; then
17095 echo $ECHO_N "(cached) $ECHO_C" >&6
17096 else
17097 cat >conftest.$ac_ext <<_ACEOF
17098 /* confdefs.h. */
17099 _ACEOF
17100 cat confdefs.h >>conftest.$ac_ext
17101 cat >>conftest.$ac_ext <<_ACEOF
17102 /* end confdefs.h. */
17103 #include <sys/types.h>
17104 #include <sys/time.h>
17105 #include <time.h>
17108 main ()
17110 if ((struct tm *) 0)
17111 return 0;
17113 return 0;
17115 _ACEOF
17116 rm -f conftest.$ac_objext
17117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17118 (eval $ac_compile) 2>conftest.er1
17119 ac_status=$?
17120 grep -v '^ *+' conftest.er1 >conftest.err
17121 rm -f conftest.er1
17122 cat conftest.err >&5
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); } &&
17125 { ac_try='test -z "$ac_c_werror_flag"
17126 || test ! -s conftest.err'
17127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17128 (eval $ac_try) 2>&5
17129 ac_status=$?
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); }; } &&
17132 { ac_try='test -s conftest.$ac_objext'
17133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17134 (eval $ac_try) 2>&5
17135 ac_status=$?
17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 (exit $ac_status); }; }; then
17138 ac_cv_header_time=yes
17139 else
17140 echo "$as_me: failed program was:" >&5
17141 sed 's/^/| /' conftest.$ac_ext >&5
17143 ac_cv_header_time=no
17145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17147 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
17148 echo "${ECHO_T}$ac_cv_header_time" >&6
17149 if test $ac_cv_header_time = yes; then
17151 cat >>confdefs.h <<\_ACEOF
17152 #define TIME_WITH_SYS_TIME 1
17153 _ACEOF
17162 ac_header_dirent=no
17163 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
17164 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
17165 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
17166 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
17167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17168 echo $ECHO_N "(cached) $ECHO_C" >&6
17169 else
17170 cat >conftest.$ac_ext <<_ACEOF
17171 /* confdefs.h. */
17172 _ACEOF
17173 cat confdefs.h >>conftest.$ac_ext
17174 cat >>conftest.$ac_ext <<_ACEOF
17175 /* end confdefs.h. */
17176 #include <sys/types.h>
17177 #include <$ac_hdr>
17180 main ()
17182 if ((DIR *) 0)
17183 return 0;
17185 return 0;
17187 _ACEOF
17188 rm -f conftest.$ac_objext
17189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17190 (eval $ac_compile) 2>conftest.er1
17191 ac_status=$?
17192 grep -v '^ *+' conftest.er1 >conftest.err
17193 rm -f conftest.er1
17194 cat conftest.err >&5
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); } &&
17197 { ac_try='test -z "$ac_c_werror_flag"
17198 || test ! -s conftest.err'
17199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17200 (eval $ac_try) 2>&5
17201 ac_status=$?
17202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203 (exit $ac_status); }; } &&
17204 { ac_try='test -s conftest.$ac_objext'
17205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17206 (eval $ac_try) 2>&5
17207 ac_status=$?
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); }; }; then
17210 eval "$as_ac_Header=yes"
17211 else
17212 echo "$as_me: failed program was:" >&5
17213 sed 's/^/| /' conftest.$ac_ext >&5
17215 eval "$as_ac_Header=no"
17217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17222 cat >>confdefs.h <<_ACEOF
17223 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
17224 _ACEOF
17226 ac_header_dirent=$ac_hdr; break
17229 done
17230 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
17231 if test $ac_header_dirent = dirent.h; then
17232 echo "$as_me:$LINENO: checking for library containing opendir" >&5
17233 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
17234 if test "${ac_cv_search_opendir+set}" = set; then
17235 echo $ECHO_N "(cached) $ECHO_C" >&6
17236 else
17237 ac_func_search_save_LIBS=$LIBS
17238 ac_cv_search_opendir=no
17239 cat >conftest.$ac_ext <<_ACEOF
17240 /* confdefs.h. */
17241 _ACEOF
17242 cat confdefs.h >>conftest.$ac_ext
17243 cat >>conftest.$ac_ext <<_ACEOF
17244 /* end confdefs.h. */
17246 /* Override any gcc2 internal prototype to avoid an error. */
17247 #ifdef __cplusplus
17248 extern "C"
17249 #endif
17250 /* We use char because int might match the return type of a gcc2
17251 builtin and then its argument prototype would still apply. */
17252 char opendir ();
17254 main ()
17256 opendir ();
17258 return 0;
17260 _ACEOF
17261 rm -f conftest.$ac_objext conftest$ac_exeext
17262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17263 (eval $ac_link) 2>conftest.er1
17264 ac_status=$?
17265 grep -v '^ *+' conftest.er1 >conftest.err
17266 rm -f conftest.er1
17267 cat conftest.err >&5
17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); } &&
17270 { ac_try='test -z "$ac_c_werror_flag"
17271 || test ! -s conftest.err'
17272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17273 (eval $ac_try) 2>&5
17274 ac_status=$?
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); }; } &&
17277 { ac_try='test -s conftest$ac_exeext'
17278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17279 (eval $ac_try) 2>&5
17280 ac_status=$?
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 (exit $ac_status); }; }; then
17283 ac_cv_search_opendir="none required"
17284 else
17285 echo "$as_me: failed program was:" >&5
17286 sed 's/^/| /' conftest.$ac_ext >&5
17289 rm -f conftest.err conftest.$ac_objext \
17290 conftest$ac_exeext conftest.$ac_ext
17291 if test "$ac_cv_search_opendir" = no; then
17292 for ac_lib in dir; do
17293 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17294 cat >conftest.$ac_ext <<_ACEOF
17295 /* confdefs.h. */
17296 _ACEOF
17297 cat confdefs.h >>conftest.$ac_ext
17298 cat >>conftest.$ac_ext <<_ACEOF
17299 /* end confdefs.h. */
17301 /* Override any gcc2 internal prototype to avoid an error. */
17302 #ifdef __cplusplus
17303 extern "C"
17304 #endif
17305 /* We use char because int might match the return type of a gcc2
17306 builtin and then its argument prototype would still apply. */
17307 char opendir ();
17309 main ()
17311 opendir ();
17313 return 0;
17315 _ACEOF
17316 rm -f conftest.$ac_objext conftest$ac_exeext
17317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17318 (eval $ac_link) 2>conftest.er1
17319 ac_status=$?
17320 grep -v '^ *+' conftest.er1 >conftest.err
17321 rm -f conftest.er1
17322 cat conftest.err >&5
17323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); } &&
17325 { ac_try='test -z "$ac_c_werror_flag"
17326 || test ! -s conftest.err'
17327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17328 (eval $ac_try) 2>&5
17329 ac_status=$?
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); }; } &&
17332 { ac_try='test -s conftest$ac_exeext'
17333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17334 (eval $ac_try) 2>&5
17335 ac_status=$?
17336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337 (exit $ac_status); }; }; then
17338 ac_cv_search_opendir="-l$ac_lib"
17339 break
17340 else
17341 echo "$as_me: failed program was:" >&5
17342 sed 's/^/| /' conftest.$ac_ext >&5
17345 rm -f conftest.err conftest.$ac_objext \
17346 conftest$ac_exeext conftest.$ac_ext
17347 done
17349 LIBS=$ac_func_search_save_LIBS
17351 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
17352 echo "${ECHO_T}$ac_cv_search_opendir" >&6
17353 if test "$ac_cv_search_opendir" != no; then
17354 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
17358 else
17359 echo "$as_me:$LINENO: checking for library containing opendir" >&5
17360 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
17361 if test "${ac_cv_search_opendir+set}" = set; then
17362 echo $ECHO_N "(cached) $ECHO_C" >&6
17363 else
17364 ac_func_search_save_LIBS=$LIBS
17365 ac_cv_search_opendir=no
17366 cat >conftest.$ac_ext <<_ACEOF
17367 /* confdefs.h. */
17368 _ACEOF
17369 cat confdefs.h >>conftest.$ac_ext
17370 cat >>conftest.$ac_ext <<_ACEOF
17371 /* end confdefs.h. */
17373 /* Override any gcc2 internal prototype to avoid an error. */
17374 #ifdef __cplusplus
17375 extern "C"
17376 #endif
17377 /* We use char because int might match the return type of a gcc2
17378 builtin and then its argument prototype would still apply. */
17379 char opendir ();
17381 main ()
17383 opendir ();
17385 return 0;
17387 _ACEOF
17388 rm -f conftest.$ac_objext conftest$ac_exeext
17389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17390 (eval $ac_link) 2>conftest.er1
17391 ac_status=$?
17392 grep -v '^ *+' conftest.er1 >conftest.err
17393 rm -f conftest.er1
17394 cat conftest.err >&5
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); } &&
17397 { ac_try='test -z "$ac_c_werror_flag"
17398 || test ! -s conftest.err'
17399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17400 (eval $ac_try) 2>&5
17401 ac_status=$?
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); }; } &&
17404 { ac_try='test -s conftest$ac_exeext'
17405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17406 (eval $ac_try) 2>&5
17407 ac_status=$?
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); }; }; then
17410 ac_cv_search_opendir="none required"
17411 else
17412 echo "$as_me: failed program was:" >&5
17413 sed 's/^/| /' conftest.$ac_ext >&5
17416 rm -f conftest.err conftest.$ac_objext \
17417 conftest$ac_exeext conftest.$ac_ext
17418 if test "$ac_cv_search_opendir" = no; then
17419 for ac_lib in x; do
17420 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17421 cat >conftest.$ac_ext <<_ACEOF
17422 /* confdefs.h. */
17423 _ACEOF
17424 cat confdefs.h >>conftest.$ac_ext
17425 cat >>conftest.$ac_ext <<_ACEOF
17426 /* end confdefs.h. */
17428 /* Override any gcc2 internal prototype to avoid an error. */
17429 #ifdef __cplusplus
17430 extern "C"
17431 #endif
17432 /* We use char because int might match the return type of a gcc2
17433 builtin and then its argument prototype would still apply. */
17434 char opendir ();
17436 main ()
17438 opendir ();
17440 return 0;
17442 _ACEOF
17443 rm -f conftest.$ac_objext conftest$ac_exeext
17444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17445 (eval $ac_link) 2>conftest.er1
17446 ac_status=$?
17447 grep -v '^ *+' conftest.er1 >conftest.err
17448 rm -f conftest.er1
17449 cat conftest.err >&5
17450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451 (exit $ac_status); } &&
17452 { ac_try='test -z "$ac_c_werror_flag"
17453 || test ! -s conftest.err'
17454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17455 (eval $ac_try) 2>&5
17456 ac_status=$?
17457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458 (exit $ac_status); }; } &&
17459 { ac_try='test -s conftest$ac_exeext'
17460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17461 (eval $ac_try) 2>&5
17462 ac_status=$?
17463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464 (exit $ac_status); }; }; then
17465 ac_cv_search_opendir="-l$ac_lib"
17466 break
17467 else
17468 echo "$as_me: failed program was:" >&5
17469 sed 's/^/| /' conftest.$ac_ext >&5
17472 rm -f conftest.err conftest.$ac_objext \
17473 conftest$ac_exeext conftest.$ac_ext
17474 done
17476 LIBS=$ac_func_search_save_LIBS
17478 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
17479 echo "${ECHO_T}$ac_cv_search_opendir" >&6
17480 if test "$ac_cv_search_opendir" != no; then
17481 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
17487 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
17488 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
17489 if test "${gcc_cv_header_string+set}" = set; then
17490 echo $ECHO_N "(cached) $ECHO_C" >&6
17491 else
17492 cat >conftest.$ac_ext <<_ACEOF
17493 /* confdefs.h. */
17494 _ACEOF
17495 cat confdefs.h >>conftest.$ac_ext
17496 cat >>conftest.$ac_ext <<_ACEOF
17497 /* end confdefs.h. */
17498 #include <string.h>
17499 #include <strings.h>
17501 main ()
17505 return 0;
17507 _ACEOF
17508 rm -f conftest.$ac_objext
17509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17510 (eval $ac_compile) 2>conftest.er1
17511 ac_status=$?
17512 grep -v '^ *+' conftest.er1 >conftest.err
17513 rm -f conftest.er1
17514 cat conftest.err >&5
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); } &&
17517 { ac_try='test -z "$ac_c_werror_flag"
17518 || test ! -s conftest.err'
17519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17520 (eval $ac_try) 2>&5
17521 ac_status=$?
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); }; } &&
17524 { ac_try='test -s conftest.$ac_objext'
17525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17526 (eval $ac_try) 2>&5
17527 ac_status=$?
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); }; }; then
17530 gcc_cv_header_string=yes
17531 else
17532 echo "$as_me: failed program was:" >&5
17533 sed 's/^/| /' conftest.$ac_ext >&5
17535 gcc_cv_header_string=no
17537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17539 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
17540 echo "${ECHO_T}$gcc_cv_header_string" >&6
17541 if test $gcc_cv_header_string = yes; then
17543 cat >>confdefs.h <<\_ACEOF
17544 #define STRING_WITH_STRINGS 1
17545 _ACEOF
17556 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
17558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17559 echo "$as_me:$LINENO: checking for $ac_func" >&5
17560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17561 if eval "test \"\${$as_ac_var+set}\" = set"; then
17562 echo $ECHO_N "(cached) $ECHO_C" >&6
17563 else
17564 cat >conftest.$ac_ext <<_ACEOF
17565 /* confdefs.h. */
17566 _ACEOF
17567 cat confdefs.h >>conftest.$ac_ext
17568 cat >>conftest.$ac_ext <<_ACEOF
17569 /* end confdefs.h. */
17570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17572 #define $ac_func innocuous_$ac_func
17574 /* System header to define __stub macros and hopefully few prototypes,
17575 which can conflict with char $ac_func (); below.
17576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17577 <limits.h> exists even on freestanding compilers. */
17579 #ifdef __STDC__
17580 # include <limits.h>
17581 #else
17582 # include <assert.h>
17583 #endif
17585 #undef $ac_func
17587 /* Override any gcc2 internal prototype to avoid an error. */
17588 #ifdef __cplusplus
17589 extern "C"
17591 #endif
17592 /* We use char because int might match the return type of a gcc2
17593 builtin and then its argument prototype would still apply. */
17594 char $ac_func ();
17595 /* The GNU C library defines this for functions which it implements
17596 to always fail with ENOSYS. Some functions are actually named
17597 something starting with __ and the normal name is an alias. */
17598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17599 choke me
17600 #else
17601 char (*f) () = $ac_func;
17602 #endif
17603 #ifdef __cplusplus
17605 #endif
17608 main ()
17610 return f != $ac_func;
17612 return 0;
17614 _ACEOF
17615 rm -f conftest.$ac_objext conftest$ac_exeext
17616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17617 (eval $ac_link) 2>conftest.er1
17618 ac_status=$?
17619 grep -v '^ *+' conftest.er1 >conftest.err
17620 rm -f conftest.er1
17621 cat conftest.err >&5
17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); } &&
17624 { ac_try='test -z "$ac_c_werror_flag"
17625 || test ! -s conftest.err'
17626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17627 (eval $ac_try) 2>&5
17628 ac_status=$?
17629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630 (exit $ac_status); }; } &&
17631 { ac_try='test -s conftest$ac_exeext'
17632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17633 (eval $ac_try) 2>&5
17634 ac_status=$?
17635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636 (exit $ac_status); }; }; then
17637 eval "$as_ac_var=yes"
17638 else
17639 echo "$as_me: failed program was:" >&5
17640 sed 's/^/| /' conftest.$ac_ext >&5
17642 eval "$as_ac_var=no"
17644 rm -f conftest.err conftest.$ac_objext \
17645 conftest$ac_exeext conftest.$ac_ext
17647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17648 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17649 if test `eval echo '${'$as_ac_var'}'` = yes; then
17650 cat >>confdefs.h <<_ACEOF
17651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17652 _ACEOF
17655 done
17658 for ac_func in strtoull
17660 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17661 echo "$as_me:$LINENO: checking for $ac_func" >&5
17662 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17663 if eval "test \"\${$as_ac_var+set}\" = set"; then
17664 echo $ECHO_N "(cached) $ECHO_C" >&6
17665 else
17666 cat >conftest.$ac_ext <<_ACEOF
17667 /* confdefs.h. */
17668 _ACEOF
17669 cat confdefs.h >>conftest.$ac_ext
17670 cat >>conftest.$ac_ext <<_ACEOF
17671 /* end confdefs.h. */
17672 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17674 #define $ac_func innocuous_$ac_func
17676 /* System header to define __stub macros and hopefully few prototypes,
17677 which can conflict with char $ac_func (); below.
17678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17679 <limits.h> exists even on freestanding compilers. */
17681 #ifdef __STDC__
17682 # include <limits.h>
17683 #else
17684 # include <assert.h>
17685 #endif
17687 #undef $ac_func
17689 /* Override any gcc2 internal prototype to avoid an error. */
17690 #ifdef __cplusplus
17691 extern "C"
17693 #endif
17694 /* We use char because int might match the return type of a gcc2
17695 builtin and then its argument prototype would still apply. */
17696 char $ac_func ();
17697 /* The GNU C library defines this for functions which it implements
17698 to always fail with ENOSYS. Some functions are actually named
17699 something starting with __ and the normal name is an alias. */
17700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17701 choke me
17702 #else
17703 char (*f) () = $ac_func;
17704 #endif
17705 #ifdef __cplusplus
17707 #endif
17710 main ()
17712 return f != $ac_func;
17714 return 0;
17716 _ACEOF
17717 rm -f conftest.$ac_objext conftest$ac_exeext
17718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17719 (eval $ac_link) 2>conftest.er1
17720 ac_status=$?
17721 grep -v '^ *+' conftest.er1 >conftest.err
17722 rm -f conftest.er1
17723 cat conftest.err >&5
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); } &&
17726 { ac_try='test -z "$ac_c_werror_flag"
17727 || test ! -s conftest.err'
17728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17729 (eval $ac_try) 2>&5
17730 ac_status=$?
17731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732 (exit $ac_status); }; } &&
17733 { ac_try='test -s conftest$ac_exeext'
17734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17735 (eval $ac_try) 2>&5
17736 ac_status=$?
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); }; }; then
17739 eval "$as_ac_var=yes"
17740 else
17741 echo "$as_me: failed program was:" >&5
17742 sed 's/^/| /' conftest.$ac_ext >&5
17744 eval "$as_ac_var=no"
17746 rm -f conftest.err conftest.$ac_objext \
17747 conftest$ac_exeext conftest.$ac_ext
17749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17750 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17751 if test `eval echo '${'$as_ac_var'}'` = yes; then
17752 cat >>confdefs.h <<_ACEOF
17753 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17754 _ACEOF
17757 done
17760 echo "$as_me:$LINENO: checking whether basename is declared" >&5
17761 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
17762 if test "${ac_cv_have_decl_basename+set}" = set; then
17763 echo $ECHO_N "(cached) $ECHO_C" >&6
17764 else
17765 cat >conftest.$ac_ext <<_ACEOF
17766 /* confdefs.h. */
17767 _ACEOF
17768 cat confdefs.h >>conftest.$ac_ext
17769 cat >>conftest.$ac_ext <<_ACEOF
17770 /* end confdefs.h. */
17771 $ac_includes_default
17773 main ()
17775 #ifndef basename
17776 char *p = (char *) basename;
17777 #endif
17780 return 0;
17782 _ACEOF
17783 rm -f conftest.$ac_objext
17784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17785 (eval $ac_compile) 2>conftest.er1
17786 ac_status=$?
17787 grep -v '^ *+' conftest.er1 >conftest.err
17788 rm -f conftest.er1
17789 cat conftest.err >&5
17790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791 (exit $ac_status); } &&
17792 { ac_try='test -z "$ac_c_werror_flag"
17793 || test ! -s conftest.err'
17794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17795 (eval $ac_try) 2>&5
17796 ac_status=$?
17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); }; } &&
17799 { ac_try='test -s conftest.$ac_objext'
17800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17801 (eval $ac_try) 2>&5
17802 ac_status=$?
17803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); }; }; then
17805 ac_cv_have_decl_basename=yes
17806 else
17807 echo "$as_me: failed program was:" >&5
17808 sed 's/^/| /' conftest.$ac_ext >&5
17810 ac_cv_have_decl_basename=no
17812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17814 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
17815 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
17816 if test $ac_cv_have_decl_basename = yes; then
17818 cat >>confdefs.h <<_ACEOF
17819 #define HAVE_DECL_BASENAME 1
17820 _ACEOF
17823 else
17824 cat >>confdefs.h <<_ACEOF
17825 #define HAVE_DECL_BASENAME 0
17826 _ACEOF
17832 echo "$as_me:$LINENO: checking whether ftello is declared" >&5
17833 echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
17834 if test "${ac_cv_have_decl_ftello+set}" = set; then
17835 echo $ECHO_N "(cached) $ECHO_C" >&6
17836 else
17837 cat >conftest.$ac_ext <<_ACEOF
17838 /* confdefs.h. */
17839 _ACEOF
17840 cat confdefs.h >>conftest.$ac_ext
17841 cat >>conftest.$ac_ext <<_ACEOF
17842 /* end confdefs.h. */
17843 $ac_includes_default
17845 main ()
17847 #ifndef ftello
17848 char *p = (char *) ftello;
17849 #endif
17852 return 0;
17854 _ACEOF
17855 rm -f conftest.$ac_objext
17856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17857 (eval $ac_compile) 2>conftest.er1
17858 ac_status=$?
17859 grep -v '^ *+' conftest.er1 >conftest.err
17860 rm -f conftest.er1
17861 cat conftest.err >&5
17862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863 (exit $ac_status); } &&
17864 { ac_try='test -z "$ac_c_werror_flag"
17865 || test ! -s conftest.err'
17866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17867 (eval $ac_try) 2>&5
17868 ac_status=$?
17869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870 (exit $ac_status); }; } &&
17871 { ac_try='test -s conftest.$ac_objext'
17872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17873 (eval $ac_try) 2>&5
17874 ac_status=$?
17875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 (exit $ac_status); }; }; then
17877 ac_cv_have_decl_ftello=yes
17878 else
17879 echo "$as_me: failed program was:" >&5
17880 sed 's/^/| /' conftest.$ac_ext >&5
17882 ac_cv_have_decl_ftello=no
17884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17886 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
17887 echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
17888 if test $ac_cv_have_decl_ftello = yes; then
17890 cat >>confdefs.h <<_ACEOF
17891 #define HAVE_DECL_FTELLO 1
17892 _ACEOF
17895 else
17896 cat >>confdefs.h <<_ACEOF
17897 #define HAVE_DECL_FTELLO 0
17898 _ACEOF
17904 echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
17905 echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
17906 if test "${ac_cv_have_decl_ftello64+set}" = set; then
17907 echo $ECHO_N "(cached) $ECHO_C" >&6
17908 else
17909 cat >conftest.$ac_ext <<_ACEOF
17910 /* confdefs.h. */
17911 _ACEOF
17912 cat confdefs.h >>conftest.$ac_ext
17913 cat >>conftest.$ac_ext <<_ACEOF
17914 /* end confdefs.h. */
17915 $ac_includes_default
17917 main ()
17919 #ifndef ftello64
17920 char *p = (char *) ftello64;
17921 #endif
17924 return 0;
17926 _ACEOF
17927 rm -f conftest.$ac_objext
17928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17929 (eval $ac_compile) 2>conftest.er1
17930 ac_status=$?
17931 grep -v '^ *+' conftest.er1 >conftest.err
17932 rm -f conftest.er1
17933 cat conftest.err >&5
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); } &&
17936 { ac_try='test -z "$ac_c_werror_flag"
17937 || test ! -s conftest.err'
17938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17939 (eval $ac_try) 2>&5
17940 ac_status=$?
17941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942 (exit $ac_status); }; } &&
17943 { ac_try='test -s conftest.$ac_objext'
17944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17945 (eval $ac_try) 2>&5
17946 ac_status=$?
17947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948 (exit $ac_status); }; }; then
17949 ac_cv_have_decl_ftello64=yes
17950 else
17951 echo "$as_me: failed program was:" >&5
17952 sed 's/^/| /' conftest.$ac_ext >&5
17954 ac_cv_have_decl_ftello64=no
17956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17958 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
17959 echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
17960 if test $ac_cv_have_decl_ftello64 = yes; then
17962 cat >>confdefs.h <<_ACEOF
17963 #define HAVE_DECL_FTELLO64 1
17964 _ACEOF
17967 else
17968 cat >>confdefs.h <<_ACEOF
17969 #define HAVE_DECL_FTELLO64 0
17970 _ACEOF
17976 echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
17977 echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
17978 if test "${ac_cv_have_decl_fseeko+set}" = set; then
17979 echo $ECHO_N "(cached) $ECHO_C" >&6
17980 else
17981 cat >conftest.$ac_ext <<_ACEOF
17982 /* confdefs.h. */
17983 _ACEOF
17984 cat confdefs.h >>conftest.$ac_ext
17985 cat >>conftest.$ac_ext <<_ACEOF
17986 /* end confdefs.h. */
17987 $ac_includes_default
17989 main ()
17991 #ifndef fseeko
17992 char *p = (char *) fseeko;
17993 #endif
17996 return 0;
17998 _ACEOF
17999 rm -f conftest.$ac_objext
18000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18001 (eval $ac_compile) 2>conftest.er1
18002 ac_status=$?
18003 grep -v '^ *+' conftest.er1 >conftest.err
18004 rm -f conftest.er1
18005 cat conftest.err >&5
18006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007 (exit $ac_status); } &&
18008 { ac_try='test -z "$ac_c_werror_flag"
18009 || test ! -s conftest.err'
18010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18011 (eval $ac_try) 2>&5
18012 ac_status=$?
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); }; } &&
18015 { ac_try='test -s conftest.$ac_objext'
18016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18017 (eval $ac_try) 2>&5
18018 ac_status=$?
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); }; }; then
18021 ac_cv_have_decl_fseeko=yes
18022 else
18023 echo "$as_me: failed program was:" >&5
18024 sed 's/^/| /' conftest.$ac_ext >&5
18026 ac_cv_have_decl_fseeko=no
18028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18030 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
18031 echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
18032 if test $ac_cv_have_decl_fseeko = yes; then
18034 cat >>confdefs.h <<_ACEOF
18035 #define HAVE_DECL_FSEEKO 1
18036 _ACEOF
18039 else
18040 cat >>confdefs.h <<_ACEOF
18041 #define HAVE_DECL_FSEEKO 0
18042 _ACEOF
18048 echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
18049 echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
18050 if test "${ac_cv_have_decl_fseeko64+set}" = set; then
18051 echo $ECHO_N "(cached) $ECHO_C" >&6
18052 else
18053 cat >conftest.$ac_ext <<_ACEOF
18054 /* confdefs.h. */
18055 _ACEOF
18056 cat confdefs.h >>conftest.$ac_ext
18057 cat >>conftest.$ac_ext <<_ACEOF
18058 /* end confdefs.h. */
18059 $ac_includes_default
18061 main ()
18063 #ifndef fseeko64
18064 char *p = (char *) fseeko64;
18065 #endif
18068 return 0;
18070 _ACEOF
18071 rm -f conftest.$ac_objext
18072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18073 (eval $ac_compile) 2>conftest.er1
18074 ac_status=$?
18075 grep -v '^ *+' conftest.er1 >conftest.err
18076 rm -f conftest.er1
18077 cat conftest.err >&5
18078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079 (exit $ac_status); } &&
18080 { ac_try='test -z "$ac_c_werror_flag"
18081 || test ! -s conftest.err'
18082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18083 (eval $ac_try) 2>&5
18084 ac_status=$?
18085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086 (exit $ac_status); }; } &&
18087 { ac_try='test -s conftest.$ac_objext'
18088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18089 (eval $ac_try) 2>&5
18090 ac_status=$?
18091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18092 (exit $ac_status); }; }; then
18093 ac_cv_have_decl_fseeko64=yes
18094 else
18095 echo "$as_me: failed program was:" >&5
18096 sed 's/^/| /' conftest.$ac_ext >&5
18098 ac_cv_have_decl_fseeko64=no
18100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18102 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
18103 echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
18104 if test $ac_cv_have_decl_fseeko64 = yes; then
18106 cat >>confdefs.h <<_ACEOF
18107 #define HAVE_DECL_FSEEKO64 1
18108 _ACEOF
18111 else
18112 cat >>confdefs.h <<_ACEOF
18113 #define HAVE_DECL_FSEEKO64 0
18114 _ACEOF
18122 case "${host}" in
18123 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
18125 cat >>confdefs.h <<\_ACEOF
18126 #define USE_BINARY_FOPEN 1
18127 _ACEOF
18129 esac
18131 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
18132 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
18133 if test "${ac_cv_have_decl_ffs+set}" = set; then
18134 echo $ECHO_N "(cached) $ECHO_C" >&6
18135 else
18136 cat >conftest.$ac_ext <<_ACEOF
18137 /* confdefs.h. */
18138 _ACEOF
18139 cat confdefs.h >>conftest.$ac_ext
18140 cat >>conftest.$ac_ext <<_ACEOF
18141 /* end confdefs.h. */
18142 $ac_includes_default
18144 main ()
18146 #ifndef ffs
18147 char *p = (char *) ffs;
18148 #endif
18151 return 0;
18153 _ACEOF
18154 rm -f conftest.$ac_objext
18155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18156 (eval $ac_compile) 2>conftest.er1
18157 ac_status=$?
18158 grep -v '^ *+' conftest.er1 >conftest.err
18159 rm -f conftest.er1
18160 cat conftest.err >&5
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); } &&
18163 { ac_try='test -z "$ac_c_werror_flag"
18164 || test ! -s conftest.err'
18165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18166 (eval $ac_try) 2>&5
18167 ac_status=$?
18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 (exit $ac_status); }; } &&
18170 { ac_try='test -s conftest.$ac_objext'
18171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18172 (eval $ac_try) 2>&5
18173 ac_status=$?
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); }; }; then
18176 ac_cv_have_decl_ffs=yes
18177 else
18178 echo "$as_me: failed program was:" >&5
18179 sed 's/^/| /' conftest.$ac_ext >&5
18181 ac_cv_have_decl_ffs=no
18183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18185 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
18186 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
18187 if test $ac_cv_have_decl_ffs = yes; then
18189 cat >>confdefs.h <<_ACEOF
18190 #define HAVE_DECL_FFS 1
18191 _ACEOF
18194 else
18195 cat >>confdefs.h <<_ACEOF
18196 #define HAVE_DECL_FFS 0
18197 _ACEOF
18203 echo "$as_me:$LINENO: checking whether free is declared" >&5
18204 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
18205 if test "${ac_cv_have_decl_free+set}" = set; then
18206 echo $ECHO_N "(cached) $ECHO_C" >&6
18207 else
18208 cat >conftest.$ac_ext <<_ACEOF
18209 /* confdefs.h. */
18210 _ACEOF
18211 cat confdefs.h >>conftest.$ac_ext
18212 cat >>conftest.$ac_ext <<_ACEOF
18213 /* end confdefs.h. */
18214 $ac_includes_default
18216 main ()
18218 #ifndef free
18219 char *p = (char *) free;
18220 #endif
18223 return 0;
18225 _ACEOF
18226 rm -f conftest.$ac_objext
18227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18228 (eval $ac_compile) 2>conftest.er1
18229 ac_status=$?
18230 grep -v '^ *+' conftest.er1 >conftest.err
18231 rm -f conftest.er1
18232 cat conftest.err >&5
18233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234 (exit $ac_status); } &&
18235 { ac_try='test -z "$ac_c_werror_flag"
18236 || test ! -s conftest.err'
18237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18238 (eval $ac_try) 2>&5
18239 ac_status=$?
18240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241 (exit $ac_status); }; } &&
18242 { ac_try='test -s conftest.$ac_objext'
18243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18244 (eval $ac_try) 2>&5
18245 ac_status=$?
18246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247 (exit $ac_status); }; }; then
18248 ac_cv_have_decl_free=yes
18249 else
18250 echo "$as_me: failed program was:" >&5
18251 sed 's/^/| /' conftest.$ac_ext >&5
18253 ac_cv_have_decl_free=no
18255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18257 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
18258 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
18259 if test $ac_cv_have_decl_free = yes; then
18261 cat >>confdefs.h <<_ACEOF
18262 #define HAVE_DECL_FREE 1
18263 _ACEOF
18266 else
18267 cat >>confdefs.h <<_ACEOF
18268 #define HAVE_DECL_FREE 0
18269 _ACEOF
18275 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
18276 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
18277 if test "${ac_cv_have_decl_getenv+set}" = set; then
18278 echo $ECHO_N "(cached) $ECHO_C" >&6
18279 else
18280 cat >conftest.$ac_ext <<_ACEOF
18281 /* confdefs.h. */
18282 _ACEOF
18283 cat confdefs.h >>conftest.$ac_ext
18284 cat >>conftest.$ac_ext <<_ACEOF
18285 /* end confdefs.h. */
18286 $ac_includes_default
18288 main ()
18290 #ifndef getenv
18291 char *p = (char *) getenv;
18292 #endif
18295 return 0;
18297 _ACEOF
18298 rm -f conftest.$ac_objext
18299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18300 (eval $ac_compile) 2>conftest.er1
18301 ac_status=$?
18302 grep -v '^ *+' conftest.er1 >conftest.err
18303 rm -f conftest.er1
18304 cat conftest.err >&5
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); } &&
18307 { ac_try='test -z "$ac_c_werror_flag"
18308 || test ! -s conftest.err'
18309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18310 (eval $ac_try) 2>&5
18311 ac_status=$?
18312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18313 (exit $ac_status); }; } &&
18314 { ac_try='test -s conftest.$ac_objext'
18315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18316 (eval $ac_try) 2>&5
18317 ac_status=$?
18318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319 (exit $ac_status); }; }; then
18320 ac_cv_have_decl_getenv=yes
18321 else
18322 echo "$as_me: failed program was:" >&5
18323 sed 's/^/| /' conftest.$ac_ext >&5
18325 ac_cv_have_decl_getenv=no
18327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18329 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
18330 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
18331 if test $ac_cv_have_decl_getenv = yes; then
18333 cat >>confdefs.h <<_ACEOF
18334 #define HAVE_DECL_GETENV 1
18335 _ACEOF
18338 else
18339 cat >>confdefs.h <<_ACEOF
18340 #define HAVE_DECL_GETENV 0
18341 _ACEOF
18347 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
18348 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
18349 if test "${ac_cv_have_decl_malloc+set}" = set; then
18350 echo $ECHO_N "(cached) $ECHO_C" >&6
18351 else
18352 cat >conftest.$ac_ext <<_ACEOF
18353 /* confdefs.h. */
18354 _ACEOF
18355 cat confdefs.h >>conftest.$ac_ext
18356 cat >>conftest.$ac_ext <<_ACEOF
18357 /* end confdefs.h. */
18358 $ac_includes_default
18360 main ()
18362 #ifndef malloc
18363 char *p = (char *) malloc;
18364 #endif
18367 return 0;
18369 _ACEOF
18370 rm -f conftest.$ac_objext
18371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18372 (eval $ac_compile) 2>conftest.er1
18373 ac_status=$?
18374 grep -v '^ *+' conftest.er1 >conftest.err
18375 rm -f conftest.er1
18376 cat conftest.err >&5
18377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); } &&
18379 { ac_try='test -z "$ac_c_werror_flag"
18380 || test ! -s conftest.err'
18381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18382 (eval $ac_try) 2>&5
18383 ac_status=$?
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); }; } &&
18386 { ac_try='test -s conftest.$ac_objext'
18387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18388 (eval $ac_try) 2>&5
18389 ac_status=$?
18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); }; }; then
18392 ac_cv_have_decl_malloc=yes
18393 else
18394 echo "$as_me: failed program was:" >&5
18395 sed 's/^/| /' conftest.$ac_ext >&5
18397 ac_cv_have_decl_malloc=no
18399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18401 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
18402 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
18403 if test $ac_cv_have_decl_malloc = yes; then
18405 cat >>confdefs.h <<_ACEOF
18406 #define HAVE_DECL_MALLOC 1
18407 _ACEOF
18410 else
18411 cat >>confdefs.h <<_ACEOF
18412 #define HAVE_DECL_MALLOC 0
18413 _ACEOF
18419 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
18420 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
18421 if test "${ac_cv_have_decl_realloc+set}" = set; then
18422 echo $ECHO_N "(cached) $ECHO_C" >&6
18423 else
18424 cat >conftest.$ac_ext <<_ACEOF
18425 /* confdefs.h. */
18426 _ACEOF
18427 cat confdefs.h >>conftest.$ac_ext
18428 cat >>conftest.$ac_ext <<_ACEOF
18429 /* end confdefs.h. */
18430 $ac_includes_default
18432 main ()
18434 #ifndef realloc
18435 char *p = (char *) realloc;
18436 #endif
18439 return 0;
18441 _ACEOF
18442 rm -f conftest.$ac_objext
18443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18444 (eval $ac_compile) 2>conftest.er1
18445 ac_status=$?
18446 grep -v '^ *+' conftest.er1 >conftest.err
18447 rm -f conftest.er1
18448 cat conftest.err >&5
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); } &&
18451 { ac_try='test -z "$ac_c_werror_flag"
18452 || test ! -s conftest.err'
18453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18454 (eval $ac_try) 2>&5
18455 ac_status=$?
18456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18457 (exit $ac_status); }; } &&
18458 { ac_try='test -s conftest.$ac_objext'
18459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18460 (eval $ac_try) 2>&5
18461 ac_status=$?
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); }; }; then
18464 ac_cv_have_decl_realloc=yes
18465 else
18466 echo "$as_me: failed program was:" >&5
18467 sed 's/^/| /' conftest.$ac_ext >&5
18469 ac_cv_have_decl_realloc=no
18471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18473 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
18474 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
18475 if test $ac_cv_have_decl_realloc = yes; then
18477 cat >>confdefs.h <<_ACEOF
18478 #define HAVE_DECL_REALLOC 1
18479 _ACEOF
18482 else
18483 cat >>confdefs.h <<_ACEOF
18484 #define HAVE_DECL_REALLOC 0
18485 _ACEOF
18491 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
18492 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
18493 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
18494 echo $ECHO_N "(cached) $ECHO_C" >&6
18495 else
18496 cat >conftest.$ac_ext <<_ACEOF
18497 /* confdefs.h. */
18498 _ACEOF
18499 cat confdefs.h >>conftest.$ac_ext
18500 cat >>conftest.$ac_ext <<_ACEOF
18501 /* end confdefs.h. */
18502 $ac_includes_default
18504 main ()
18506 #ifndef stpcpy
18507 char *p = (char *) stpcpy;
18508 #endif
18511 return 0;
18513 _ACEOF
18514 rm -f conftest.$ac_objext
18515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18516 (eval $ac_compile) 2>conftest.er1
18517 ac_status=$?
18518 grep -v '^ *+' conftest.er1 >conftest.err
18519 rm -f conftest.er1
18520 cat conftest.err >&5
18521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522 (exit $ac_status); } &&
18523 { ac_try='test -z "$ac_c_werror_flag"
18524 || test ! -s conftest.err'
18525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18526 (eval $ac_try) 2>&5
18527 ac_status=$?
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); }; } &&
18530 { ac_try='test -s conftest.$ac_objext'
18531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18532 (eval $ac_try) 2>&5
18533 ac_status=$?
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); }; }; then
18536 ac_cv_have_decl_stpcpy=yes
18537 else
18538 echo "$as_me: failed program was:" >&5
18539 sed 's/^/| /' conftest.$ac_ext >&5
18541 ac_cv_have_decl_stpcpy=no
18543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18545 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
18546 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
18547 if test $ac_cv_have_decl_stpcpy = yes; then
18549 cat >>confdefs.h <<_ACEOF
18550 #define HAVE_DECL_STPCPY 1
18551 _ACEOF
18554 else
18555 cat >>confdefs.h <<_ACEOF
18556 #define HAVE_DECL_STPCPY 0
18557 _ACEOF
18563 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
18564 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
18565 if test "${ac_cv_have_decl_strstr+set}" = set; then
18566 echo $ECHO_N "(cached) $ECHO_C" >&6
18567 else
18568 cat >conftest.$ac_ext <<_ACEOF
18569 /* confdefs.h. */
18570 _ACEOF
18571 cat confdefs.h >>conftest.$ac_ext
18572 cat >>conftest.$ac_ext <<_ACEOF
18573 /* end confdefs.h. */
18574 $ac_includes_default
18576 main ()
18578 #ifndef strstr
18579 char *p = (char *) strstr;
18580 #endif
18583 return 0;
18585 _ACEOF
18586 rm -f conftest.$ac_objext
18587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18588 (eval $ac_compile) 2>conftest.er1
18589 ac_status=$?
18590 grep -v '^ *+' conftest.er1 >conftest.err
18591 rm -f conftest.er1
18592 cat conftest.err >&5
18593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594 (exit $ac_status); } &&
18595 { ac_try='test -z "$ac_c_werror_flag"
18596 || test ! -s conftest.err'
18597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18598 (eval $ac_try) 2>&5
18599 ac_status=$?
18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); }; } &&
18602 { ac_try='test -s conftest.$ac_objext'
18603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18604 (eval $ac_try) 2>&5
18605 ac_status=$?
18606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607 (exit $ac_status); }; }; then
18608 ac_cv_have_decl_strstr=yes
18609 else
18610 echo "$as_me: failed program was:" >&5
18611 sed 's/^/| /' conftest.$ac_ext >&5
18613 ac_cv_have_decl_strstr=no
18615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18617 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
18618 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
18619 if test $ac_cv_have_decl_strstr = yes; then
18621 cat >>confdefs.h <<_ACEOF
18622 #define HAVE_DECL_STRSTR 1
18623 _ACEOF
18626 else
18627 cat >>confdefs.h <<_ACEOF
18628 #define HAVE_DECL_STRSTR 0
18629 _ACEOF
18635 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
18636 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
18637 if test "${ac_cv_have_decl_snprintf+set}" = set; then
18638 echo $ECHO_N "(cached) $ECHO_C" >&6
18639 else
18640 cat >conftest.$ac_ext <<_ACEOF
18641 /* confdefs.h. */
18642 _ACEOF
18643 cat confdefs.h >>conftest.$ac_ext
18644 cat >>conftest.$ac_ext <<_ACEOF
18645 /* end confdefs.h. */
18646 $ac_includes_default
18648 main ()
18650 #ifndef snprintf
18651 char *p = (char *) snprintf;
18652 #endif
18655 return 0;
18657 _ACEOF
18658 rm -f conftest.$ac_objext
18659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18660 (eval $ac_compile) 2>conftest.er1
18661 ac_status=$?
18662 grep -v '^ *+' conftest.er1 >conftest.err
18663 rm -f conftest.er1
18664 cat conftest.err >&5
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); } &&
18667 { ac_try='test -z "$ac_c_werror_flag"
18668 || test ! -s conftest.err'
18669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18670 (eval $ac_try) 2>&5
18671 ac_status=$?
18672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673 (exit $ac_status); }; } &&
18674 { ac_try='test -s conftest.$ac_objext'
18675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18676 (eval $ac_try) 2>&5
18677 ac_status=$?
18678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679 (exit $ac_status); }; }; then
18680 ac_cv_have_decl_snprintf=yes
18681 else
18682 echo "$as_me: failed program was:" >&5
18683 sed 's/^/| /' conftest.$ac_ext >&5
18685 ac_cv_have_decl_snprintf=no
18687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18689 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
18690 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
18691 if test $ac_cv_have_decl_snprintf = yes; then
18693 cat >>confdefs.h <<_ACEOF
18694 #define HAVE_DECL_SNPRINTF 1
18695 _ACEOF
18698 else
18699 cat >>confdefs.h <<_ACEOF
18700 #define HAVE_DECL_SNPRINTF 0
18701 _ACEOF
18707 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
18708 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
18709 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
18710 echo $ECHO_N "(cached) $ECHO_C" >&6
18711 else
18712 cat >conftest.$ac_ext <<_ACEOF
18713 /* confdefs.h. */
18714 _ACEOF
18715 cat confdefs.h >>conftest.$ac_ext
18716 cat >>conftest.$ac_ext <<_ACEOF
18717 /* end confdefs.h. */
18718 $ac_includes_default
18720 main ()
18722 #ifndef vsnprintf
18723 char *p = (char *) vsnprintf;
18724 #endif
18727 return 0;
18729 _ACEOF
18730 rm -f conftest.$ac_objext
18731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18732 (eval $ac_compile) 2>conftest.er1
18733 ac_status=$?
18734 grep -v '^ *+' conftest.er1 >conftest.err
18735 rm -f conftest.er1
18736 cat conftest.err >&5
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 (exit $ac_status); } &&
18739 { ac_try='test -z "$ac_c_werror_flag"
18740 || test ! -s conftest.err'
18741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18742 (eval $ac_try) 2>&5
18743 ac_status=$?
18744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745 (exit $ac_status); }; } &&
18746 { ac_try='test -s conftest.$ac_objext'
18747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18748 (eval $ac_try) 2>&5
18749 ac_status=$?
18750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751 (exit $ac_status); }; }; then
18752 ac_cv_have_decl_vsnprintf=yes
18753 else
18754 echo "$as_me: failed program was:" >&5
18755 sed 's/^/| /' conftest.$ac_ext >&5
18757 ac_cv_have_decl_vsnprintf=no
18759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18761 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
18762 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
18763 if test $ac_cv_have_decl_vsnprintf = yes; then
18765 cat >>confdefs.h <<_ACEOF
18766 #define HAVE_DECL_VSNPRINTF 1
18767 _ACEOF
18770 else
18771 cat >>confdefs.h <<_ACEOF
18772 #define HAVE_DECL_VSNPRINTF 0
18773 _ACEOF
18780 # Link in zlib if we can. This allows us to read compressed debug sections.
18781 # This is used only by compress.c.
18782 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
18783 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
18784 if test "${ac_cv_search_zlibVersion+set}" = set; then
18785 echo $ECHO_N "(cached) $ECHO_C" >&6
18786 else
18787 ac_func_search_save_LIBS=$LIBS
18788 ac_cv_search_zlibVersion=no
18789 cat >conftest.$ac_ext <<_ACEOF
18790 /* confdefs.h. */
18791 _ACEOF
18792 cat confdefs.h >>conftest.$ac_ext
18793 cat >>conftest.$ac_ext <<_ACEOF
18794 /* end confdefs.h. */
18796 /* Override any gcc2 internal prototype to avoid an error. */
18797 #ifdef __cplusplus
18798 extern "C"
18799 #endif
18800 /* We use char because int might match the return type of a gcc2
18801 builtin and then its argument prototype would still apply. */
18802 char zlibVersion ();
18804 main ()
18806 zlibVersion ();
18808 return 0;
18810 _ACEOF
18811 rm -f conftest.$ac_objext conftest$ac_exeext
18812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18813 (eval $ac_link) 2>conftest.er1
18814 ac_status=$?
18815 grep -v '^ *+' conftest.er1 >conftest.err
18816 rm -f conftest.er1
18817 cat conftest.err >&5
18818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819 (exit $ac_status); } &&
18820 { ac_try='test -z "$ac_c_werror_flag"
18821 || test ! -s conftest.err'
18822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18823 (eval $ac_try) 2>&5
18824 ac_status=$?
18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826 (exit $ac_status); }; } &&
18827 { ac_try='test -s conftest$ac_exeext'
18828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18829 (eval $ac_try) 2>&5
18830 ac_status=$?
18831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18832 (exit $ac_status); }; }; then
18833 ac_cv_search_zlibVersion="none required"
18834 else
18835 echo "$as_me: failed program was:" >&5
18836 sed 's/^/| /' conftest.$ac_ext >&5
18839 rm -f conftest.err conftest.$ac_objext \
18840 conftest$ac_exeext conftest.$ac_ext
18841 if test "$ac_cv_search_zlibVersion" = no; then
18842 for ac_lib in z; do
18843 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18844 cat >conftest.$ac_ext <<_ACEOF
18845 /* confdefs.h. */
18846 _ACEOF
18847 cat confdefs.h >>conftest.$ac_ext
18848 cat >>conftest.$ac_ext <<_ACEOF
18849 /* end confdefs.h. */
18851 /* Override any gcc2 internal prototype to avoid an error. */
18852 #ifdef __cplusplus
18853 extern "C"
18854 #endif
18855 /* We use char because int might match the return type of a gcc2
18856 builtin and then its argument prototype would still apply. */
18857 char zlibVersion ();
18859 main ()
18861 zlibVersion ();
18863 return 0;
18865 _ACEOF
18866 rm -f conftest.$ac_objext conftest$ac_exeext
18867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18868 (eval $ac_link) 2>conftest.er1
18869 ac_status=$?
18870 grep -v '^ *+' conftest.er1 >conftest.err
18871 rm -f conftest.er1
18872 cat conftest.err >&5
18873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874 (exit $ac_status); } &&
18875 { ac_try='test -z "$ac_c_werror_flag"
18876 || test ! -s conftest.err'
18877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18878 (eval $ac_try) 2>&5
18879 ac_status=$?
18880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881 (exit $ac_status); }; } &&
18882 { ac_try='test -s conftest$ac_exeext'
18883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18884 (eval $ac_try) 2>&5
18885 ac_status=$?
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); }; }; then
18888 ac_cv_search_zlibVersion="-l$ac_lib"
18889 break
18890 else
18891 echo "$as_me: failed program was:" >&5
18892 sed 's/^/| /' conftest.$ac_ext >&5
18895 rm -f conftest.err conftest.$ac_objext \
18896 conftest$ac_exeext conftest.$ac_ext
18897 done
18899 LIBS=$ac_func_search_save_LIBS
18901 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
18902 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
18903 if test "$ac_cv_search_zlibVersion" != no; then
18904 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
18906 for ac_header in zlib.h
18908 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18910 echo "$as_me:$LINENO: checking for $ac_header" >&5
18911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18913 echo $ECHO_N "(cached) $ECHO_C" >&6
18915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18916 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18917 else
18918 # Is the header compilable?
18919 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18920 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18921 cat >conftest.$ac_ext <<_ACEOF
18922 /* confdefs.h. */
18923 _ACEOF
18924 cat confdefs.h >>conftest.$ac_ext
18925 cat >>conftest.$ac_ext <<_ACEOF
18926 /* end confdefs.h. */
18927 $ac_includes_default
18928 #include <$ac_header>
18929 _ACEOF
18930 rm -f conftest.$ac_objext
18931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18932 (eval $ac_compile) 2>conftest.er1
18933 ac_status=$?
18934 grep -v '^ *+' conftest.er1 >conftest.err
18935 rm -f conftest.er1
18936 cat conftest.err >&5
18937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938 (exit $ac_status); } &&
18939 { ac_try='test -z "$ac_c_werror_flag"
18940 || test ! -s conftest.err'
18941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18942 (eval $ac_try) 2>&5
18943 ac_status=$?
18944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945 (exit $ac_status); }; } &&
18946 { ac_try='test -s conftest.$ac_objext'
18947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18948 (eval $ac_try) 2>&5
18949 ac_status=$?
18950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951 (exit $ac_status); }; }; then
18952 ac_header_compiler=yes
18953 else
18954 echo "$as_me: failed program was:" >&5
18955 sed 's/^/| /' conftest.$ac_ext >&5
18957 ac_header_compiler=no
18959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18960 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18961 echo "${ECHO_T}$ac_header_compiler" >&6
18963 # Is the header present?
18964 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18965 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18966 cat >conftest.$ac_ext <<_ACEOF
18967 /* confdefs.h. */
18968 _ACEOF
18969 cat confdefs.h >>conftest.$ac_ext
18970 cat >>conftest.$ac_ext <<_ACEOF
18971 /* end confdefs.h. */
18972 #include <$ac_header>
18973 _ACEOF
18974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18976 ac_status=$?
18977 grep -v '^ *+' conftest.er1 >conftest.err
18978 rm -f conftest.er1
18979 cat conftest.err >&5
18980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981 (exit $ac_status); } >/dev/null; then
18982 if test -s conftest.err; then
18983 ac_cpp_err=$ac_c_preproc_warn_flag
18984 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18985 else
18986 ac_cpp_err=
18988 else
18989 ac_cpp_err=yes
18991 if test -z "$ac_cpp_err"; then
18992 ac_header_preproc=yes
18993 else
18994 echo "$as_me: failed program was:" >&5
18995 sed 's/^/| /' conftest.$ac_ext >&5
18997 ac_header_preproc=no
18999 rm -f conftest.err conftest.$ac_ext
19000 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19001 echo "${ECHO_T}$ac_header_preproc" >&6
19003 # So? What about this header?
19004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19005 yes:no: )
19006 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19007 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19009 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19010 ac_header_preproc=yes
19012 no:yes:* )
19013 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19014 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19015 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19016 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19017 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19018 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19019 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19020 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19022 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19023 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19024 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19026 cat <<\_ASBOX
19027 ## ------------------------------------------ ##
19028 ## Report this to the AC_PACKAGE_NAME lists. ##
19029 ## ------------------------------------------ ##
19030 _ASBOX
19032 sed "s/^/$as_me: WARNING: /" >&2
19034 esac
19035 echo "$as_me:$LINENO: checking for $ac_header" >&5
19036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19038 echo $ECHO_N "(cached) $ECHO_C" >&6
19039 else
19040 eval "$as_ac_Header=\$ac_header_preproc"
19042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19043 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19046 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19047 cat >>confdefs.h <<_ACEOF
19048 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19049 _ACEOF
19053 done
19058 # If we are configured native, pick a core file support file.
19059 COREFILE=
19060 COREFLAG=
19061 TRAD_HEADER=
19062 if test "${target}" = "${host}"; then
19063 case "${host}" in
19064 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
19065 COREFILE=''
19067 alpha*-*-linux-*)
19068 COREFILE=trad-core.lo
19069 TRAD_HEADER='"hosts/alphalinux.h"'
19071 alpha*-*-netbsd* | alpha*-*-openbsd*)
19072 COREFILE=netbsd-core.lo
19074 alpha*-*-*) COREFILE=osf-core.lo ;;
19075 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
19076 COREFILE='' ;;
19077 arm-*-netbsd* | arm-*-openbsd*)
19078 COREFILE=netbsd-core.lo
19080 arm-*-riscix) COREFILE=trad-core.lo ;;
19081 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
19082 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
19083 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
19084 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
19085 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
19086 hppa*-*-netbsd* | hppa*-*-openbsd*)
19087 COREFILE=netbsd-core.lo
19090 i370-*-*)
19091 COREFILE=trad-core.lo
19092 TRAD_HEADER='"hosts/i370linux.h"'
19095 i[3-7]86-sequent-bsd*)
19096 COREFILE=trad-core.lo
19097 TRAD_HEADER='"hosts/symmetry.h"'
19099 i[3-7]86-sequent-sysv4*) ;;
19100 i[3-7]86-sequent-sysv*)
19101 COREFILE=trad-core.lo
19102 TRAD_HEADER='"hosts/symmetry.h"'
19104 i[3-7]86-*-bsdi)
19105 COREFILE=
19107 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*)
19108 COREFILE=trad-core.lo
19109 TRAD_HEADER='"hosts/i386bsd.h"'
19111 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
19112 COREFILE=''
19113 TRAD_HEADER='"hosts/i386bsd.h"'
19115 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
19116 COREFILE=netbsd-core.lo
19118 i[3-7]86-esix-sysv3*)
19119 COREFILE=trad-core.lo
19120 TRAD_HEADER='"hosts/esix.h"'
19122 i[3-7]86-*-sco3.2v5*)
19123 COREFILE=sco5-core.lo
19125 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
19126 COREFILE=trad-core.lo
19127 TRAD_HEADER='"hosts/i386sco.h"'
19129 i[3-7]86-*-mach3*)
19130 COREFILE=trad-core.lo
19131 TRAD_HEADER='"hosts/i386mach3.h"'
19133 i[3-7]86-*-linux-*)
19134 COREFILE=trad-core.lo
19135 TRAD_HEADER='"hosts/i386linux.h"'
19137 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
19138 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
19139 i860-*-mach3* | i860-*-osf1*)
19140 COREFILE=trad-core.lo
19141 TRAD_HEADER='"hosts/i860mach3.h"'
19143 mips-*-netbsd* | mips*-*-openbsd*)
19144 COREFILE=netbsd-core.lo
19146 mips-dec-*)
19147 COREFILE=trad-core.lo
19148 TRAD_HEADER='"hosts/decstation.h"'
19150 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
19151 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
19152 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
19153 mips-*-sysv4*) ;;
19154 mips-*-sysv* | mips-*-riscos*)
19155 COREFILE=trad-core.lo
19156 TRAD_HEADER='"hosts/riscos.h"'
19158 mips-sony-bsd*)
19159 COREFILE=trad-core.lo
19160 TRAD_HEADER='"hosts/news-mips.h"'
19162 m68*-bull*-sysv*)
19163 COREFILE=trad-core.lo
19164 TRAD_HEADER='"hosts/dpx2.h"'
19166 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
19167 m68*-hp-bsd*)
19168 COREFILE=trad-core.lo
19169 TRAD_HEADER='"hosts/hp300bsd.h"'
19171 m68*-*-linux-*)
19172 COREFILE=trad-core.lo
19173 TRAD_HEADER='"hosts/m68klinux.h"'
19175 m68*-motorola-sysv*)
19176 COREFILE=trad-core.lo
19177 TRAD_HEADER='"hosts/delta68.h"'
19179 m68*-sony-*)
19180 COREFILE=trad-core.lo
19181 TRAD_HEADER='"hosts/news.h"'
19183 m68*-*-netbsd* | m68*-*-openbsd*)
19184 COREFILE=netbsd-core.lo
19186 m68*-apple-aux*)
19187 COREFILE=trad-core.lo
19188 TRAD_HEADER='"hosts/m68kaux.h"'
19190 m88*-*-sysv4*)
19192 m88*-motorola-sysv*)
19193 COREFILE=ptrace-core.lo
19195 m88*-*-mach3*)
19196 COREFILE=trad-core.lo
19197 TRAD_HEADER='"hosts/m88kmach3.h"'
19199 m88*-*-openbsd*)
19200 COREFILE=netbsd-core.lo
19202 ns32k-pc532-mach)
19203 COREFILE=trad-core.lo
19204 TRAD_HEADER='"hosts/pc532mach.h"'
19206 ns32k-*-netbsd* | ns32k-*-openbsd*)
19207 COREFILE=netbsd-core.lo
19209 rs6000-*-lynx*)
19210 COREFILE=lynx-core.lo
19212 rs6000-*-aix5.* | powerpc-*-aix5.*)
19213 COREFILE=rs6000-core.lo
19214 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
19216 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
19217 COREFILE=rs6000-core.lo
19218 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
19219 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
19220 # have c_impl as a member of struct core_dumpx
19221 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
19222 echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
19223 cat >conftest.$ac_ext <<_ACEOF
19224 /* confdefs.h. */
19225 _ACEOF
19226 cat confdefs.h >>conftest.$ac_ext
19227 cat >>conftest.$ac_ext <<_ACEOF
19228 /* end confdefs.h. */
19229 #include <core.h>
19231 main ()
19233 struct core_dumpx c; c.c_impl = 0;
19235 return 0;
19237 _ACEOF
19238 rm -f conftest.$ac_objext
19239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19240 (eval $ac_compile) 2>conftest.er1
19241 ac_status=$?
19242 grep -v '^ *+' conftest.er1 >conftest.err
19243 rm -f conftest.er1
19244 cat conftest.err >&5
19245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246 (exit $ac_status); } &&
19247 { ac_try='test -z "$ac_c_werror_flag"
19248 || test ! -s conftest.err'
19249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19250 (eval $ac_try) 2>&5
19251 ac_status=$?
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); }; } &&
19254 { ac_try='test -s conftest.$ac_objext'
19255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19256 (eval $ac_try) 2>&5
19257 ac_status=$?
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); }; }; then
19261 cat >>confdefs.h <<\_ACEOF
19262 #define HAVE_ST_C_IMPL 1
19263 _ACEOF
19265 echo "$as_me:$LINENO: result: yes" >&5
19266 echo "${ECHO_T}yes" >&6
19267 else
19268 echo "$as_me: failed program was:" >&5
19269 sed 's/^/| /' conftest.$ac_ext >&5
19271 echo "$as_me:$LINENO: result: no" >&5
19272 echo "${ECHO_T}no" >&6
19274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19276 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
19277 rs6000-*-*) COREFILE=rs6000-core.lo ;;
19278 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
19279 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
19280 powerpc-*-beos*) ;;
19281 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
19282 COREFILE='' ;;
19283 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
19284 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
19285 s390*-*-*) COREFILE=trad-core.lo ;;
19286 sh*-*-netbsd* | sh*-*-openbsd*)
19287 COREFILE=netbsd-core.lo
19289 sparc-*-netbsd* | sparc*-*-openbsd*)
19290 COREFILE=netbsd-core.lo
19292 tahoe-*-*)
19293 COREFILE=trad-core.lo
19294 TRAD_HEADER='"hosts/tahoe.h"'
19296 vax-*-netbsd* | vax-*-openbsd*)
19297 COREFILE=netbsd-core.lo
19299 vax-*-ultrix2*)
19300 COREFILE=trad-core.lo
19301 TRAD_HEADER='"hosts/vaxult2.h"'
19303 vax-*-ultrix*)
19304 COREFILE=trad-core.lo
19305 TRAD_HEADER='"hosts/vaxult2.h"'
19307 vax-*-linux-*)
19308 COREFILE=trad-core.lo
19309 TRAD_HEADER='"hosts/vaxlinux.h"'
19311 vax-*-*)
19312 COREFILE=trad-core.lo
19313 TRAD_HEADER='"hosts/vaxbsd.h"'
19315 x86_64-*-netbsd* | x86_64-*-openbsd*)
19316 COREFILE=netbsd-core.lo
19318 esac
19320 case "$COREFILE" in
19321 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
19322 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
19323 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
19324 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
19325 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
19326 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
19327 osf-core.lo) COREFLAG=-DOSF_CORE ;;
19328 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
19329 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
19330 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
19331 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
19332 esac
19334 # ELF corefile support has several flavors, but all of
19335 # them use something called <sys/procfs.h>
19337 for ac_header in sys/procfs.h
19339 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19341 echo "$as_me:$LINENO: checking for $ac_header" >&5
19342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19344 echo $ECHO_N "(cached) $ECHO_C" >&6
19346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19348 else
19349 # Is the header compilable?
19350 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19351 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19352 cat >conftest.$ac_ext <<_ACEOF
19353 /* confdefs.h. */
19354 _ACEOF
19355 cat confdefs.h >>conftest.$ac_ext
19356 cat >>conftest.$ac_ext <<_ACEOF
19357 /* end confdefs.h. */
19358 $ac_includes_default
19359 #include <$ac_header>
19360 _ACEOF
19361 rm -f conftest.$ac_objext
19362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19363 (eval $ac_compile) 2>conftest.er1
19364 ac_status=$?
19365 grep -v '^ *+' conftest.er1 >conftest.err
19366 rm -f conftest.er1
19367 cat conftest.err >&5
19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369 (exit $ac_status); } &&
19370 { ac_try='test -z "$ac_c_werror_flag"
19371 || test ! -s conftest.err'
19372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19373 (eval $ac_try) 2>&5
19374 ac_status=$?
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); }; } &&
19377 { ac_try='test -s conftest.$ac_objext'
19378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19379 (eval $ac_try) 2>&5
19380 ac_status=$?
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); }; }; then
19383 ac_header_compiler=yes
19384 else
19385 echo "$as_me: failed program was:" >&5
19386 sed 's/^/| /' conftest.$ac_ext >&5
19388 ac_header_compiler=no
19390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19391 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19392 echo "${ECHO_T}$ac_header_compiler" >&6
19394 # Is the header present?
19395 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19396 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19397 cat >conftest.$ac_ext <<_ACEOF
19398 /* confdefs.h. */
19399 _ACEOF
19400 cat confdefs.h >>conftest.$ac_ext
19401 cat >>conftest.$ac_ext <<_ACEOF
19402 /* end confdefs.h. */
19403 #include <$ac_header>
19404 _ACEOF
19405 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19406 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19407 ac_status=$?
19408 grep -v '^ *+' conftest.er1 >conftest.err
19409 rm -f conftest.er1
19410 cat conftest.err >&5
19411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412 (exit $ac_status); } >/dev/null; then
19413 if test -s conftest.err; then
19414 ac_cpp_err=$ac_c_preproc_warn_flag
19415 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19416 else
19417 ac_cpp_err=
19419 else
19420 ac_cpp_err=yes
19422 if test -z "$ac_cpp_err"; then
19423 ac_header_preproc=yes
19424 else
19425 echo "$as_me: failed program was:" >&5
19426 sed 's/^/| /' conftest.$ac_ext >&5
19428 ac_header_preproc=no
19430 rm -f conftest.err conftest.$ac_ext
19431 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19432 echo "${ECHO_T}$ac_header_preproc" >&6
19434 # So? What about this header?
19435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19436 yes:no: )
19437 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19438 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19440 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19441 ac_header_preproc=yes
19443 no:yes:* )
19444 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19445 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19446 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19447 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19448 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19449 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19450 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19451 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19454 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19455 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19457 cat <<\_ASBOX
19458 ## ------------------------------------------ ##
19459 ## Report this to the AC_PACKAGE_NAME lists. ##
19460 ## ------------------------------------------ ##
19461 _ASBOX
19463 sed "s/^/$as_me: WARNING: /" >&2
19465 esac
19466 echo "$as_me:$LINENO: checking for $ac_header" >&5
19467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19469 echo $ECHO_N "(cached) $ECHO_C" >&6
19470 else
19471 eval "$as_ac_Header=\$ac_header_preproc"
19473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19478 cat >>confdefs.h <<_ACEOF
19479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19480 _ACEOF
19484 done
19486 if test "$ac_cv_header_sys_procfs_h" = yes; then
19487 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
19488 echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
19489 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
19490 echo $ECHO_N "(cached) $ECHO_C" >&6
19491 else
19492 cat >conftest.$ac_ext <<_ACEOF
19493 /* confdefs.h. */
19494 _ACEOF
19495 cat confdefs.h >>conftest.$ac_ext
19496 cat >>conftest.$ac_ext <<_ACEOF
19497 /* end confdefs.h. */
19499 #define _SYSCALL32
19500 #include <sys/procfs.h>
19502 main ()
19504 prstatus_t avar
19506 return 0;
19508 _ACEOF
19509 rm -f conftest.$ac_objext
19510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19511 (eval $ac_compile) 2>conftest.er1
19512 ac_status=$?
19513 grep -v '^ *+' conftest.er1 >conftest.err
19514 rm -f conftest.er1
19515 cat conftest.err >&5
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); } &&
19518 { ac_try='test -z "$ac_c_werror_flag"
19519 || test ! -s conftest.err'
19520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19521 (eval $ac_try) 2>&5
19522 ac_status=$?
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); }; } &&
19525 { ac_try='test -s conftest.$ac_objext'
19526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19527 (eval $ac_try) 2>&5
19528 ac_status=$?
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); }; }; then
19531 bfd_cv_have_sys_procfs_type_prstatus_t=yes
19532 else
19533 echo "$as_me: failed program was:" >&5
19534 sed 's/^/| /' conftest.$ac_ext >&5
19536 bfd_cv_have_sys_procfs_type_prstatus_t=no
19539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19542 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
19544 cat >>confdefs.h <<\_ACEOF
19545 #define HAVE_PRSTATUS_T 1
19546 _ACEOF
19549 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
19550 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
19552 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
19553 echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
19554 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
19555 echo $ECHO_N "(cached) $ECHO_C" >&6
19556 else
19557 cat >conftest.$ac_ext <<_ACEOF
19558 /* confdefs.h. */
19559 _ACEOF
19560 cat confdefs.h >>conftest.$ac_ext
19561 cat >>conftest.$ac_ext <<_ACEOF
19562 /* end confdefs.h. */
19564 #define _SYSCALL32
19565 #include <sys/procfs.h>
19567 main ()
19569 prstatus32_t avar
19571 return 0;
19573 _ACEOF
19574 rm -f conftest.$ac_objext
19575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19576 (eval $ac_compile) 2>conftest.er1
19577 ac_status=$?
19578 grep -v '^ *+' conftest.er1 >conftest.err
19579 rm -f conftest.er1
19580 cat conftest.err >&5
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); } &&
19583 { ac_try='test -z "$ac_c_werror_flag"
19584 || test ! -s conftest.err'
19585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19586 (eval $ac_try) 2>&5
19587 ac_status=$?
19588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); }; } &&
19590 { ac_try='test -s conftest.$ac_objext'
19591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19592 (eval $ac_try) 2>&5
19593 ac_status=$?
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); }; }; then
19596 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
19597 else
19598 echo "$as_me: failed program was:" >&5
19599 sed 's/^/| /' conftest.$ac_ext >&5
19601 bfd_cv_have_sys_procfs_type_prstatus32_t=no
19604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19607 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
19609 cat >>confdefs.h <<\_ACEOF
19610 #define HAVE_PRSTATUS32_T 1
19611 _ACEOF
19614 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
19615 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
19617 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
19618 echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
19619 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
19620 echo $ECHO_N "(cached) $ECHO_C" >&6
19621 else
19622 cat >conftest.$ac_ext <<_ACEOF
19623 /* confdefs.h. */
19624 _ACEOF
19625 cat confdefs.h >>conftest.$ac_ext
19626 cat >>conftest.$ac_ext <<_ACEOF
19627 /* end confdefs.h. */
19629 #define _SYSCALL32
19630 #include <sys/procfs.h>
19632 main ()
19634 prstatus_t avar; void* aref = (void*) &avar.pr_who
19636 return 0;
19638 _ACEOF
19639 rm -f conftest.$ac_objext
19640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19641 (eval $ac_compile) 2>conftest.er1
19642 ac_status=$?
19643 grep -v '^ *+' conftest.er1 >conftest.err
19644 rm -f conftest.er1
19645 cat conftest.err >&5
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); } &&
19648 { ac_try='test -z "$ac_c_werror_flag"
19649 || test ! -s conftest.err'
19650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19651 (eval $ac_try) 2>&5
19652 ac_status=$?
19653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654 (exit $ac_status); }; } &&
19655 { ac_try='test -s conftest.$ac_objext'
19656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19657 (eval $ac_try) 2>&5
19658 ac_status=$?
19659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660 (exit $ac_status); }; }; then
19661 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
19662 else
19663 echo "$as_me: failed program was:" >&5
19664 sed 's/^/| /' conftest.$ac_ext >&5
19666 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
19669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19672 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
19674 cat >>confdefs.h <<\_ACEOF
19675 #define HAVE_PRSTATUS_T_PR_WHO 1
19676 _ACEOF
19679 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
19680 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
19682 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
19683 echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
19684 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
19685 echo $ECHO_N "(cached) $ECHO_C" >&6
19686 else
19687 cat >conftest.$ac_ext <<_ACEOF
19688 /* confdefs.h. */
19689 _ACEOF
19690 cat confdefs.h >>conftest.$ac_ext
19691 cat >>conftest.$ac_ext <<_ACEOF
19692 /* end confdefs.h. */
19694 #define _SYSCALL32
19695 #include <sys/procfs.h>
19697 main ()
19699 prstatus32_t avar; void* aref = (void*) &avar.pr_who
19701 return 0;
19703 _ACEOF
19704 rm -f conftest.$ac_objext
19705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19706 (eval $ac_compile) 2>conftest.er1
19707 ac_status=$?
19708 grep -v '^ *+' conftest.er1 >conftest.err
19709 rm -f conftest.er1
19710 cat conftest.err >&5
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); } &&
19713 { ac_try='test -z "$ac_c_werror_flag"
19714 || test ! -s conftest.err'
19715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19716 (eval $ac_try) 2>&5
19717 ac_status=$?
19718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 (exit $ac_status); }; } &&
19720 { ac_try='test -s conftest.$ac_objext'
19721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19722 (eval $ac_try) 2>&5
19723 ac_status=$?
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); }; }; then
19726 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
19727 else
19728 echo "$as_me: failed program was:" >&5
19729 sed 's/^/| /' conftest.$ac_ext >&5
19731 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
19734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19737 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
19739 cat >>confdefs.h <<\_ACEOF
19740 #define HAVE_PRSTATUS32_T_PR_WHO 1
19741 _ACEOF
19744 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
19745 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
19747 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
19748 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
19749 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
19750 echo $ECHO_N "(cached) $ECHO_C" >&6
19751 else
19752 cat >conftest.$ac_ext <<_ACEOF
19753 /* confdefs.h. */
19754 _ACEOF
19755 cat confdefs.h >>conftest.$ac_ext
19756 cat >>conftest.$ac_ext <<_ACEOF
19757 /* end confdefs.h. */
19759 #define _SYSCALL32
19760 #include <sys/procfs.h>
19762 main ()
19764 pstatus_t avar
19766 return 0;
19768 _ACEOF
19769 rm -f conftest.$ac_objext
19770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19771 (eval $ac_compile) 2>conftest.er1
19772 ac_status=$?
19773 grep -v '^ *+' conftest.er1 >conftest.err
19774 rm -f conftest.er1
19775 cat conftest.err >&5
19776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777 (exit $ac_status); } &&
19778 { ac_try='test -z "$ac_c_werror_flag"
19779 || test ! -s conftest.err'
19780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19781 (eval $ac_try) 2>&5
19782 ac_status=$?
19783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784 (exit $ac_status); }; } &&
19785 { ac_try='test -s conftest.$ac_objext'
19786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19787 (eval $ac_try) 2>&5
19788 ac_status=$?
19789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790 (exit $ac_status); }; }; then
19791 bfd_cv_have_sys_procfs_type_pstatus_t=yes
19792 else
19793 echo "$as_me: failed program was:" >&5
19794 sed 's/^/| /' conftest.$ac_ext >&5
19796 bfd_cv_have_sys_procfs_type_pstatus_t=no
19799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19802 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
19804 cat >>confdefs.h <<\_ACEOF
19805 #define HAVE_PSTATUS_T 1
19806 _ACEOF
19809 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
19810 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
19812 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
19813 echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
19814 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
19815 echo $ECHO_N "(cached) $ECHO_C" >&6
19816 else
19817 cat >conftest.$ac_ext <<_ACEOF
19818 /* confdefs.h. */
19819 _ACEOF
19820 cat confdefs.h >>conftest.$ac_ext
19821 cat >>conftest.$ac_ext <<_ACEOF
19822 /* end confdefs.h. */
19824 #define _SYSCALL32
19825 #include <sys/procfs.h>
19827 main ()
19829 pxstatus_t avar
19831 return 0;
19833 _ACEOF
19834 rm -f conftest.$ac_objext
19835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19836 (eval $ac_compile) 2>conftest.er1
19837 ac_status=$?
19838 grep -v '^ *+' conftest.er1 >conftest.err
19839 rm -f conftest.er1
19840 cat conftest.err >&5
19841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842 (exit $ac_status); } &&
19843 { ac_try='test -z "$ac_c_werror_flag"
19844 || test ! -s conftest.err'
19845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19846 (eval $ac_try) 2>&5
19847 ac_status=$?
19848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849 (exit $ac_status); }; } &&
19850 { ac_try='test -s conftest.$ac_objext'
19851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19852 (eval $ac_try) 2>&5
19853 ac_status=$?
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); }; }; then
19856 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
19857 else
19858 echo "$as_me: failed program was:" >&5
19859 sed 's/^/| /' conftest.$ac_ext >&5
19861 bfd_cv_have_sys_procfs_type_pxstatus_t=no
19864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19867 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
19869 cat >>confdefs.h <<\_ACEOF
19870 #define HAVE_PXSTATUS_T 1
19871 _ACEOF
19874 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
19875 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
19877 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
19878 echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
19879 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
19880 echo $ECHO_N "(cached) $ECHO_C" >&6
19881 else
19882 cat >conftest.$ac_ext <<_ACEOF
19883 /* confdefs.h. */
19884 _ACEOF
19885 cat confdefs.h >>conftest.$ac_ext
19886 cat >>conftest.$ac_ext <<_ACEOF
19887 /* end confdefs.h. */
19889 #define _SYSCALL32
19890 #include <sys/procfs.h>
19892 main ()
19894 pstatus32_t avar
19896 return 0;
19898 _ACEOF
19899 rm -f conftest.$ac_objext
19900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19901 (eval $ac_compile) 2>conftest.er1
19902 ac_status=$?
19903 grep -v '^ *+' conftest.er1 >conftest.err
19904 rm -f conftest.er1
19905 cat conftest.err >&5
19906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907 (exit $ac_status); } &&
19908 { ac_try='test -z "$ac_c_werror_flag"
19909 || test ! -s conftest.err'
19910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19911 (eval $ac_try) 2>&5
19912 ac_status=$?
19913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914 (exit $ac_status); }; } &&
19915 { ac_try='test -s conftest.$ac_objext'
19916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19917 (eval $ac_try) 2>&5
19918 ac_status=$?
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); }; }; then
19921 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
19922 else
19923 echo "$as_me: failed program was:" >&5
19924 sed 's/^/| /' conftest.$ac_ext >&5
19926 bfd_cv_have_sys_procfs_type_pstatus32_t=no
19929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19932 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
19934 cat >>confdefs.h <<\_ACEOF
19935 #define HAVE_PSTATUS32_T 1
19936 _ACEOF
19939 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
19940 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
19942 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
19943 echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
19944 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
19945 echo $ECHO_N "(cached) $ECHO_C" >&6
19946 else
19947 cat >conftest.$ac_ext <<_ACEOF
19948 /* confdefs.h. */
19949 _ACEOF
19950 cat confdefs.h >>conftest.$ac_ext
19951 cat >>conftest.$ac_ext <<_ACEOF
19952 /* end confdefs.h. */
19954 #define _SYSCALL32
19955 #include <sys/procfs.h>
19957 main ()
19959 prpsinfo_t avar
19961 return 0;
19963 _ACEOF
19964 rm -f conftest.$ac_objext
19965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19966 (eval $ac_compile) 2>conftest.er1
19967 ac_status=$?
19968 grep -v '^ *+' conftest.er1 >conftest.err
19969 rm -f conftest.er1
19970 cat conftest.err >&5
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); } &&
19973 { ac_try='test -z "$ac_c_werror_flag"
19974 || test ! -s conftest.err'
19975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19976 (eval $ac_try) 2>&5
19977 ac_status=$?
19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979 (exit $ac_status); }; } &&
19980 { ac_try='test -s conftest.$ac_objext'
19981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19982 (eval $ac_try) 2>&5
19983 ac_status=$?
19984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19985 (exit $ac_status); }; }; then
19986 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
19987 else
19988 echo "$as_me: failed program was:" >&5
19989 sed 's/^/| /' conftest.$ac_ext >&5
19991 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
19994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19997 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
19999 cat >>confdefs.h <<\_ACEOF
20000 #define HAVE_PRPSINFO_T 1
20001 _ACEOF
20004 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
20005 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
20007 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
20008 echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
20009 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
20010 echo $ECHO_N "(cached) $ECHO_C" >&6
20011 else
20012 cat >conftest.$ac_ext <<_ACEOF
20013 /* confdefs.h. */
20014 _ACEOF
20015 cat confdefs.h >>conftest.$ac_ext
20016 cat >>conftest.$ac_ext <<_ACEOF
20017 /* end confdefs.h. */
20019 #define _SYSCALL32
20020 #include <sys/procfs.h>
20022 main ()
20024 prpsinfo32_t avar
20026 return 0;
20028 _ACEOF
20029 rm -f conftest.$ac_objext
20030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20031 (eval $ac_compile) 2>conftest.er1
20032 ac_status=$?
20033 grep -v '^ *+' conftest.er1 >conftest.err
20034 rm -f conftest.er1
20035 cat conftest.err >&5
20036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037 (exit $ac_status); } &&
20038 { ac_try='test -z "$ac_c_werror_flag"
20039 || test ! -s conftest.err'
20040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20041 (eval $ac_try) 2>&5
20042 ac_status=$?
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); }; } &&
20045 { ac_try='test -s conftest.$ac_objext'
20046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20047 (eval $ac_try) 2>&5
20048 ac_status=$?
20049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); }; }; then
20051 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
20052 else
20053 echo "$as_me: failed program was:" >&5
20054 sed 's/^/| /' conftest.$ac_ext >&5
20056 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
20059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20062 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
20064 cat >>confdefs.h <<\_ACEOF
20065 #define HAVE_PRPSINFO32_T 1
20066 _ACEOF
20069 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
20070 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
20072 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
20073 echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
20074 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
20075 echo $ECHO_N "(cached) $ECHO_C" >&6
20076 else
20077 cat >conftest.$ac_ext <<_ACEOF
20078 /* confdefs.h. */
20079 _ACEOF
20080 cat confdefs.h >>conftest.$ac_ext
20081 cat >>conftest.$ac_ext <<_ACEOF
20082 /* end confdefs.h. */
20084 #define _SYSCALL32
20085 #include <sys/procfs.h>
20087 main ()
20089 psinfo_t avar
20091 return 0;
20093 _ACEOF
20094 rm -f conftest.$ac_objext
20095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20096 (eval $ac_compile) 2>conftest.er1
20097 ac_status=$?
20098 grep -v '^ *+' conftest.er1 >conftest.err
20099 rm -f conftest.er1
20100 cat conftest.err >&5
20101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102 (exit $ac_status); } &&
20103 { ac_try='test -z "$ac_c_werror_flag"
20104 || test ! -s conftest.err'
20105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20106 (eval $ac_try) 2>&5
20107 ac_status=$?
20108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109 (exit $ac_status); }; } &&
20110 { ac_try='test -s conftest.$ac_objext'
20111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20112 (eval $ac_try) 2>&5
20113 ac_status=$?
20114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115 (exit $ac_status); }; }; then
20116 bfd_cv_have_sys_procfs_type_psinfo_t=yes
20117 else
20118 echo "$as_me: failed program was:" >&5
20119 sed 's/^/| /' conftest.$ac_ext >&5
20121 bfd_cv_have_sys_procfs_type_psinfo_t=no
20124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20127 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
20129 cat >>confdefs.h <<\_ACEOF
20130 #define HAVE_PSINFO_T 1
20131 _ACEOF
20134 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
20135 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
20137 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
20138 echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
20139 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
20140 echo $ECHO_N "(cached) $ECHO_C" >&6
20141 else
20142 cat >conftest.$ac_ext <<_ACEOF
20143 /* confdefs.h. */
20144 _ACEOF
20145 cat confdefs.h >>conftest.$ac_ext
20146 cat >>conftest.$ac_ext <<_ACEOF
20147 /* end confdefs.h. */
20149 #define _SYSCALL32
20150 #include <sys/procfs.h>
20152 main ()
20154 psinfo32_t avar
20156 return 0;
20158 _ACEOF
20159 rm -f conftest.$ac_objext
20160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20161 (eval $ac_compile) 2>conftest.er1
20162 ac_status=$?
20163 grep -v '^ *+' conftest.er1 >conftest.err
20164 rm -f conftest.er1
20165 cat conftest.err >&5
20166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167 (exit $ac_status); } &&
20168 { ac_try='test -z "$ac_c_werror_flag"
20169 || test ! -s conftest.err'
20170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20171 (eval $ac_try) 2>&5
20172 ac_status=$?
20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174 (exit $ac_status); }; } &&
20175 { ac_try='test -s conftest.$ac_objext'
20176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20177 (eval $ac_try) 2>&5
20178 ac_status=$?
20179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180 (exit $ac_status); }; }; then
20181 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
20182 else
20183 echo "$as_me: failed program was:" >&5
20184 sed 's/^/| /' conftest.$ac_ext >&5
20186 bfd_cv_have_sys_procfs_type_psinfo32_t=no
20189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20192 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
20194 cat >>confdefs.h <<\_ACEOF
20195 #define HAVE_PSINFO32_T 1
20196 _ACEOF
20199 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
20200 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
20202 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
20203 echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
20204 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
20205 echo $ECHO_N "(cached) $ECHO_C" >&6
20206 else
20207 cat >conftest.$ac_ext <<_ACEOF
20208 /* confdefs.h. */
20209 _ACEOF
20210 cat confdefs.h >>conftest.$ac_ext
20211 cat >>conftest.$ac_ext <<_ACEOF
20212 /* end confdefs.h. */
20214 #define _SYSCALL32
20215 #include <sys/procfs.h>
20217 main ()
20219 lwpstatus_t avar
20221 return 0;
20223 _ACEOF
20224 rm -f conftest.$ac_objext
20225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20226 (eval $ac_compile) 2>conftest.er1
20227 ac_status=$?
20228 grep -v '^ *+' conftest.er1 >conftest.err
20229 rm -f conftest.er1
20230 cat conftest.err >&5
20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); } &&
20233 { ac_try='test -z "$ac_c_werror_flag"
20234 || test ! -s conftest.err'
20235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20236 (eval $ac_try) 2>&5
20237 ac_status=$?
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); }; } &&
20240 { ac_try='test -s conftest.$ac_objext'
20241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20242 (eval $ac_try) 2>&5
20243 ac_status=$?
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); }; }; then
20246 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
20247 else
20248 echo "$as_me: failed program was:" >&5
20249 sed 's/^/| /' conftest.$ac_ext >&5
20251 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
20254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20257 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
20259 cat >>confdefs.h <<\_ACEOF
20260 #define HAVE_LWPSTATUS_T 1
20261 _ACEOF
20264 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
20265 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
20267 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
20268 echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
20269 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
20270 echo $ECHO_N "(cached) $ECHO_C" >&6
20271 else
20272 cat >conftest.$ac_ext <<_ACEOF
20273 /* confdefs.h. */
20274 _ACEOF
20275 cat confdefs.h >>conftest.$ac_ext
20276 cat >>conftest.$ac_ext <<_ACEOF
20277 /* end confdefs.h. */
20279 #define _SYSCALL32
20280 #include <sys/procfs.h>
20282 main ()
20284 lwpxstatus_t avar
20286 return 0;
20288 _ACEOF
20289 rm -f conftest.$ac_objext
20290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20291 (eval $ac_compile) 2>conftest.er1
20292 ac_status=$?
20293 grep -v '^ *+' conftest.er1 >conftest.err
20294 rm -f conftest.er1
20295 cat conftest.err >&5
20296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297 (exit $ac_status); } &&
20298 { ac_try='test -z "$ac_c_werror_flag"
20299 || test ! -s conftest.err'
20300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20301 (eval $ac_try) 2>&5
20302 ac_status=$?
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); }; } &&
20305 { ac_try='test -s conftest.$ac_objext'
20306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20307 (eval $ac_try) 2>&5
20308 ac_status=$?
20309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310 (exit $ac_status); }; }; then
20311 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
20312 else
20313 echo "$as_me: failed program was:" >&5
20314 sed 's/^/| /' conftest.$ac_ext >&5
20316 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
20319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20322 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
20324 cat >>confdefs.h <<\_ACEOF
20325 #define HAVE_LWPXSTATUS_T 1
20326 _ACEOF
20329 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
20330 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
20332 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
20333 echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
20334 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
20335 echo $ECHO_N "(cached) $ECHO_C" >&6
20336 else
20337 cat >conftest.$ac_ext <<_ACEOF
20338 /* confdefs.h. */
20339 _ACEOF
20340 cat confdefs.h >>conftest.$ac_ext
20341 cat >>conftest.$ac_ext <<_ACEOF
20342 /* end confdefs.h. */
20344 #define _SYSCALL32
20345 #include <sys/procfs.h>
20347 main ()
20349 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
20351 return 0;
20353 _ACEOF
20354 rm -f conftest.$ac_objext
20355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20356 (eval $ac_compile) 2>conftest.er1
20357 ac_status=$?
20358 grep -v '^ *+' conftest.er1 >conftest.err
20359 rm -f conftest.er1
20360 cat conftest.err >&5
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); } &&
20363 { ac_try='test -z "$ac_c_werror_flag"
20364 || test ! -s conftest.err'
20365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20366 (eval $ac_try) 2>&5
20367 ac_status=$?
20368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369 (exit $ac_status); }; } &&
20370 { ac_try='test -s conftest.$ac_objext'
20371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20372 (eval $ac_try) 2>&5
20373 ac_status=$?
20374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375 (exit $ac_status); }; }; then
20376 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
20377 else
20378 echo "$as_me: failed program was:" >&5
20379 sed 's/^/| /' conftest.$ac_ext >&5
20381 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
20384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20387 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
20389 cat >>confdefs.h <<\_ACEOF
20390 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
20391 _ACEOF
20394 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
20395 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
20397 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
20398 echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
20399 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
20400 echo $ECHO_N "(cached) $ECHO_C" >&6
20401 else
20402 cat >conftest.$ac_ext <<_ACEOF
20403 /* confdefs.h. */
20404 _ACEOF
20405 cat confdefs.h >>conftest.$ac_ext
20406 cat >>conftest.$ac_ext <<_ACEOF
20407 /* end confdefs.h. */
20409 #define _SYSCALL32
20410 #include <sys/procfs.h>
20412 main ()
20414 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
20416 return 0;
20418 _ACEOF
20419 rm -f conftest.$ac_objext
20420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20421 (eval $ac_compile) 2>conftest.er1
20422 ac_status=$?
20423 grep -v '^ *+' conftest.er1 >conftest.err
20424 rm -f conftest.er1
20425 cat conftest.err >&5
20426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); } &&
20428 { ac_try='test -z "$ac_c_werror_flag"
20429 || test ! -s conftest.err'
20430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20431 (eval $ac_try) 2>&5
20432 ac_status=$?
20433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434 (exit $ac_status); }; } &&
20435 { ac_try='test -s conftest.$ac_objext'
20436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20437 (eval $ac_try) 2>&5
20438 ac_status=$?
20439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440 (exit $ac_status); }; }; then
20441 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
20442 else
20443 echo "$as_me: failed program was:" >&5
20444 sed 's/^/| /' conftest.$ac_ext >&5
20446 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
20449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20452 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
20454 cat >>confdefs.h <<\_ACEOF
20455 #define HAVE_LWPSTATUS_T_PR_REG 1
20456 _ACEOF
20459 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
20460 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
20462 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
20463 echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
20464 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
20465 echo $ECHO_N "(cached) $ECHO_C" >&6
20466 else
20467 cat >conftest.$ac_ext <<_ACEOF
20468 /* confdefs.h. */
20469 _ACEOF
20470 cat confdefs.h >>conftest.$ac_ext
20471 cat >>conftest.$ac_ext <<_ACEOF
20472 /* end confdefs.h. */
20474 #define _SYSCALL32
20475 #include <sys/procfs.h>
20477 main ()
20479 win32_pstatus_t avar
20481 return 0;
20483 _ACEOF
20484 rm -f conftest.$ac_objext
20485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20486 (eval $ac_compile) 2>conftest.er1
20487 ac_status=$?
20488 grep -v '^ *+' conftest.er1 >conftest.err
20489 rm -f conftest.er1
20490 cat conftest.err >&5
20491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492 (exit $ac_status); } &&
20493 { ac_try='test -z "$ac_c_werror_flag"
20494 || test ! -s conftest.err'
20495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20496 (eval $ac_try) 2>&5
20497 ac_status=$?
20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499 (exit $ac_status); }; } &&
20500 { ac_try='test -s conftest.$ac_objext'
20501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20502 (eval $ac_try) 2>&5
20503 ac_status=$?
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); }; }; then
20506 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
20507 else
20508 echo "$as_me: failed program was:" >&5
20509 sed 's/^/| /' conftest.$ac_ext >&5
20511 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
20514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20517 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
20519 cat >>confdefs.h <<\_ACEOF
20520 #define HAVE_WIN32_PSTATUS_T 1
20521 _ACEOF
20524 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
20525 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
20531 if test -n "$TRAD_HEADER"; then
20533 cat >>confdefs.h <<_ACEOF
20534 #define TRAD_HEADER $TRAD_HEADER
20535 _ACEOF
20539 # Horrible hacks to build DLLs on Windows.
20540 WIN32LDFLAGS=
20541 WIN32LIBADD=
20542 case "${host}" in
20543 *-*-cygwin*)
20544 if test "$enable_shared" = "yes"; then
20545 WIN32LDFLAGS="-no-undefined"
20546 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
20549 *-*-linux*)
20550 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
20551 # libiberty.a.
20552 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
20553 if test -n "$x"; then
20554 WIN32LIBADD="-L../libiberty/pic -liberty"
20557 esac
20561 # target stuff:
20563 # Canonicalize the secondary target names.
20564 if test -n "$enable_targets" ; then
20565 for targ in `echo $enable_targets | sed 's/,/ /g'`
20567 result=`$ac_config_sub $targ 2>/dev/null`
20568 if test -n "$result" ; then
20569 canon_targets="$canon_targets $result"
20570 else
20571 # Allow targets that config.sub doesn't recognize, like "all".
20572 canon_targets="$canon_targets $targ"
20574 done
20577 all_targets=false
20578 defvec=
20579 selvecs=
20580 assocvecs=
20581 selarchs=
20582 TDEFINES=
20583 for targ in $target $canon_targets
20585 if test "x$targ" = "xall"; then
20586 all_targets=true
20587 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
20588 else
20589 . $srcdir/config.bfd
20590 if test "x$targ" = "x$target"; then
20591 defvec=$targ_defvec
20593 selvecs="$selvecs $targ_defvec $targ_selvecs"
20594 selarchs="$selarchs $targ_archs"
20595 TDEFINES="$TDEFINES $targ_cflags"
20597 done
20600 # This processing still needs to be done if we're to decide properly whether
20601 # 64-bit support needs to be compiled in. Currently, it will be included if
20602 # the default or any other explicitly requested target requires it; it
20603 # will not be included on a 32-bit host if no 64-bit target is requested, and
20604 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
20605 # used.
20607 # uniq the default and selected vectors in all the configured targets.
20608 f=""
20609 for i in $selvecs ; do
20610 case " $f " in
20611 *" $i "*) ;;
20612 *) f="$f $i" ;;
20613 esac
20614 done
20615 selvecs="$f"
20618 # uniq the associated vectors in all the configured targets.
20619 f=""
20620 for i in $assocvecs ; do
20621 case " $f " in
20622 *" $i "*) ;;
20623 *) f="$f $i" ;;
20624 esac
20625 done
20626 assocvecs="$f"
20629 # uniq the architectures in all the configured targets.
20630 f=""
20631 for i in $selarchs ; do
20632 case " $f " in
20633 *" $i "*) ;;
20634 *) f="$f $i" ;;
20635 esac
20636 done
20637 selarchs="$f"
20639 # Target backend .o files.
20642 elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
20644 for vec in $selvecs
20646 target_size=32
20647 case "$vec" in
20648 # This list is alphabetized to make it easy to compare
20649 # with the two vector lists in targets.c. For the same reason,
20650 # use one entry per line, even though this leads to long lines.
20651 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
20652 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
20653 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
20654 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
20655 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
20656 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
20657 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
20658 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
20659 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
20660 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
20661 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
20662 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
20663 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
20664 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
20665 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
20666 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
20667 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
20668 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
20669 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
20670 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
20671 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
20672 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
20673 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
20674 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
20675 bfd_efi_bsdrv_ia32_vec) tb="$tb efi-bsdrv-ia32.lo peigen.lo cofflink.lo" ;;
20676 bfd_efi_rtdrv_ia32_vec) tb="$tb efi-rtdrv-ia32.lo peigen.lo cofflink.lo" ;;
20677 bfd_efi_app_x86_64_vec) tb="$tb efi-app-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
20678 bfd_efi_bsdrv_x86_64_vec) tb="$tb efi-bsdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
20679 bfd_efi_rtdrv_x86_64_vec) tb="$tb efi-rtdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
20680 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
20681 bfd_efi_bsdrv_ia64_vec) tb="$tb efi-bsdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
20682 bfd_efi_rtdrv_ia64_vec) tb="$tb efi-rtdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
20683 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
20684 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
20685 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
20686 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
20687 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
20688 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
20689 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20690 bfd_elf32_bigarm_symbian_vec)
20691 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20692 bfd_elf32_bigarm_vxworks_vec)
20693 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20694 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20695 bfd_elf32_bigmips_vxworks_vec)
20696 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20697 bfd_elf32_cr16_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
20698 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
20699 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
20700 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
20701 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
20702 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
20703 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
20704 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
20705 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
20706 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
20707 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
20708 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
20709 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
20710 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
20711 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
20712 bfd_elf32_i386_dragonfly_vec)
20713 tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
20714 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
20715 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
20716 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
20717 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
20718 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
20719 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
20720 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
20721 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
20722 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
20723 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
20724 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
20725 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
20726 bfd_elf32_littlearm_symbian_vec)
20727 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20728 bfd_elf32_littlearm_vxworks_vec)
20729 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20730 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20731 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20732 bfd_elf32_littlemips_vxworks_vec)
20733 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20734 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
20735 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
20736 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
20737 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
20738 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
20739 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
20740 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
20741 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
20742 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
20743 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
20744 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
20745 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
20746 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
20747 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
20748 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
20749 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
20750 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
20751 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20752 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20753 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20754 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20755 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
20756 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
20757 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
20758 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
20759 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
20760 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
20761 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
20762 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
20763 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
20764 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
20765 # FIXME: We include cofflink.lo not because it's needed for
20766 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
20767 # which needs it but does not list it. Should be fixed in right place.
20768 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20769 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20770 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20771 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20772 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
20773 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
20774 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20775 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
20776 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20777 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20778 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
20779 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
20780 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20781 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
20782 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20783 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
20784 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
20785 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
20786 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20787 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20788 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
20789 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
20790 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
20791 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
20792 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
20793 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
20794 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
20795 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
20796 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
20797 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
20798 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 ;;
20799 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
20800 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
20801 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
20802 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
20803 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
20804 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
20805 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 ;;
20806 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
20807 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
20808 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
20809 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
20810 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20811 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20812 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20813 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20814 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20815 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20816 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
20817 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
20818 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 ;;
20819 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 ;;
20820 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
20821 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
20822 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
20823 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
20824 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
20825 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
20826 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
20827 cris_aout_vec) tb="$tb aout-cris.lo" ;;
20828 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
20829 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
20830 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
20831 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
20832 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
20833 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
20834 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
20835 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
20836 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
20837 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
20838 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
20839 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
20840 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
20841 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
20842 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
20843 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
20844 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
20845 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
20846 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
20847 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
20848 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
20849 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
20850 i386msdos_vec) tb="$tb i386msdos.lo" ;;
20851 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
20852 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
20853 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
20854 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
20855 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
20856 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
20857 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
20858 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
20859 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
20860 ieee_vec) tb="$tb ieee.lo" ;;
20861 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
20862 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
20863 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
20864 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
20865 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
20866 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
20867 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
20868 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
20869 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
20870 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
20871 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
20872 mach_o_be_vec) tb="$tb mach-o.lo" ;;
20873 mach_o_le_vec) tb="$tb mach-o.lo" ;;
20874 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
20875 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
20876 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
20877 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
20878 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
20879 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
20880 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
20881 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
20882 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
20883 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
20884 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
20885 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
20886 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
20887 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
20888 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
20889 pef_vec) tb="$tb pef.lo" ;;
20890 pef_xlib_vec) tb="$tb pef.lo" ;;
20891 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
20892 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
20893 ppcboot_vec) tb="$tb ppcboot.lo" ;;
20894 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
20895 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
20896 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
20897 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
20898 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
20899 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
20900 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
20901 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
20902 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
20903 som_vec) tb="$tb som.lo" ;;
20904 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
20905 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
20906 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
20907 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
20908 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
20909 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
20910 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
20911 sym_vec) tb="$tb xsym.lo" ;;
20912 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
20913 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
20914 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
20915 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
20916 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
20917 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
20918 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
20919 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
20920 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
20921 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
20922 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
20923 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
20924 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
20925 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
20926 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
20927 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
20928 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
20929 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
20930 versados_vec) tb="$tb versados.lo" ;;
20931 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
20932 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
20933 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
20934 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
20935 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
20936 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
20938 # These appear out of order in targets.c
20939 srec_vec) tb="$tb srec.lo" ;;
20940 symbolsrec_vec) tb="$tb srec.lo" ;;
20941 tekhex_vec) tb="$tb tekhex.lo" ;;
20942 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
20943 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
20945 "") ;;
20946 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
20947 echo "$as_me: error: *** unknown target vector $vec" >&2;}
20948 { (exit 1); exit 1; }; } ;;
20949 esac
20951 if test ${target_size} = 64; then
20952 target64=true
20954 if test x"${vec}" = x"${defvec}"; then
20955 bfd_default_target_size=${target_size}
20957 done
20959 # Target architecture .o files.
20960 # A couple of CPUs use shorter file names to avoid problems on DOS
20961 # filesystems.
20962 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
20964 # Weed out duplicate .o files.
20965 f=""
20966 for i in $tb ; do
20967 case " $f " in
20968 *" $i "*) ;;
20969 *) f="$f $i" ;;
20970 esac
20971 done
20972 tb="$f"
20974 f=""
20975 for i in $ta ; do
20976 case " $f " in
20977 *" $i "*) ;;
20978 *) f="$f $i" ;;
20979 esac
20980 done
20981 ta="$f"
20983 bfd_backends="$tb"
20984 bfd_machines="$ta"
20986 if test x${all_targets} = xtrue ; then
20987 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
20988 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
20989 selvecs=
20990 havevecs=
20991 selarchs=
20992 test -n "$assocvecs" &&
20993 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
20994 else # all_targets is true
20995 # Only set these if they will be nonempty, for the clever echo.
20996 havevecs=
20997 assocvecs=
20998 test -n "$selvecs" &&
20999 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
21000 test -n "$selvecs" &&
21001 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
21002 test -n "$selarchs" &&
21003 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
21004 fi # all_targets is true
21006 case ${host64}-${target64}-${want64} in
21007 *true*)
21008 wordsize=64
21009 bfd64_libs='$(BFD64_LIBS)'
21010 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
21011 if test $BFD_HOST_64_BIT_DEFINED = 0; then
21012 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
21013 echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
21014 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
21015 echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
21017 if test -n "$GCC" ; then
21018 bad_64bit_gcc=no;
21019 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
21020 echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
21021 # Add more tests for gcc versions with non-working 64-bit support here.
21022 cat >conftest.$ac_ext <<_ACEOF
21023 /* confdefs.h. */
21024 _ACEOF
21025 cat confdefs.h >>conftest.$ac_ext
21026 cat >>conftest.$ac_ext <<_ACEOF
21027 /* end confdefs.h. */
21028 :__GNUC__:__GNUC_MINOR__:__i386__:
21029 _ACEOF
21030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21031 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
21032 bad_64bit_gcc=yes;
21033 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
21034 echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
21035 else
21036 echo "$as_me:$LINENO: result: no" >&5
21037 echo "${ECHO_T}no" >&6
21039 rm -f conftest*
21041 if test $bad_64bit_gcc = yes ; then
21042 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
21043 echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
21044 { (exit 1); exit 1; }; }
21048 false-false-false)
21049 wordsize=32
21050 all_backends='$(BFD32_BACKENDS)'
21052 esac
21061 # Determine the host dependant file_ptr a.k.a. off_t type. In order
21062 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
21063 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
21064 # Hopefully a reasonable assumption since fseeko et.al. should be
21065 # upward compatible.
21071 for ac_func in ftello ftello64 fseeko fseeko64 fopen64
21073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21074 echo "$as_me:$LINENO: checking for $ac_func" >&5
21075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21076 if eval "test \"\${$as_ac_var+set}\" = set"; then
21077 echo $ECHO_N "(cached) $ECHO_C" >&6
21078 else
21079 cat >conftest.$ac_ext <<_ACEOF
21080 /* confdefs.h. */
21081 _ACEOF
21082 cat confdefs.h >>conftest.$ac_ext
21083 cat >>conftest.$ac_ext <<_ACEOF
21084 /* end confdefs.h. */
21085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21087 #define $ac_func innocuous_$ac_func
21089 /* System header to define __stub macros and hopefully few prototypes,
21090 which can conflict with char $ac_func (); below.
21091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21092 <limits.h> exists even on freestanding compilers. */
21094 #ifdef __STDC__
21095 # include <limits.h>
21096 #else
21097 # include <assert.h>
21098 #endif
21100 #undef $ac_func
21102 /* Override any gcc2 internal prototype to avoid an error. */
21103 #ifdef __cplusplus
21104 extern "C"
21106 #endif
21107 /* We use char because int might match the return type of a gcc2
21108 builtin and then its argument prototype would still apply. */
21109 char $ac_func ();
21110 /* The GNU C library defines this for functions which it implements
21111 to always fail with ENOSYS. Some functions are actually named
21112 something starting with __ and the normal name is an alias. */
21113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21114 choke me
21115 #else
21116 char (*f) () = $ac_func;
21117 #endif
21118 #ifdef __cplusplus
21120 #endif
21123 main ()
21125 return f != $ac_func;
21127 return 0;
21129 _ACEOF
21130 rm -f conftest.$ac_objext conftest$ac_exeext
21131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21132 (eval $ac_link) 2>conftest.er1
21133 ac_status=$?
21134 grep -v '^ *+' conftest.er1 >conftest.err
21135 rm -f conftest.er1
21136 cat conftest.err >&5
21137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138 (exit $ac_status); } &&
21139 { ac_try='test -z "$ac_c_werror_flag"
21140 || test ! -s conftest.err'
21141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21142 (eval $ac_try) 2>&5
21143 ac_status=$?
21144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21145 (exit $ac_status); }; } &&
21146 { ac_try='test -s conftest$ac_exeext'
21147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21148 (eval $ac_try) 2>&5
21149 ac_status=$?
21150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151 (exit $ac_status); }; }; then
21152 eval "$as_ac_var=yes"
21153 else
21154 echo "$as_me: failed program was:" >&5
21155 sed 's/^/| /' conftest.$ac_ext >&5
21157 eval "$as_ac_var=no"
21159 rm -f conftest.err conftest.$ac_objext \
21160 conftest$ac_exeext conftest.$ac_ext
21162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21163 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21164 if test `eval echo '${'$as_ac_var'}'` = yes; then
21165 cat >>confdefs.h <<_ACEOF
21166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21167 _ACEOF
21170 done
21172 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
21173 echo "$as_me:$LINENO: checking for off_t" >&5
21174 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21175 if test "${ac_cv_type_off_t+set}" = set; then
21176 echo $ECHO_N "(cached) $ECHO_C" >&6
21177 else
21178 cat >conftest.$ac_ext <<_ACEOF
21179 /* confdefs.h. */
21180 _ACEOF
21181 cat confdefs.h >>conftest.$ac_ext
21182 cat >>conftest.$ac_ext <<_ACEOF
21183 /* end confdefs.h. */
21184 $ac_includes_default
21186 main ()
21188 if ((off_t *) 0)
21189 return 0;
21190 if (sizeof (off_t))
21191 return 0;
21193 return 0;
21195 _ACEOF
21196 rm -f conftest.$ac_objext
21197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21198 (eval $ac_compile) 2>conftest.er1
21199 ac_status=$?
21200 grep -v '^ *+' conftest.er1 >conftest.err
21201 rm -f conftest.er1
21202 cat conftest.err >&5
21203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204 (exit $ac_status); } &&
21205 { ac_try='test -z "$ac_c_werror_flag"
21206 || test ! -s conftest.err'
21207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21208 (eval $ac_try) 2>&5
21209 ac_status=$?
21210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211 (exit $ac_status); }; } &&
21212 { ac_try='test -s conftest.$ac_objext'
21213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21214 (eval $ac_try) 2>&5
21215 ac_status=$?
21216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21217 (exit $ac_status); }; }; then
21218 ac_cv_type_off_t=yes
21219 else
21220 echo "$as_me: failed program was:" >&5
21221 sed 's/^/| /' conftest.$ac_ext >&5
21223 ac_cv_type_off_t=no
21225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21227 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21228 echo "${ECHO_T}$ac_cv_type_off_t" >&6
21230 echo "$as_me:$LINENO: checking size of off_t" >&5
21231 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
21232 if test "${ac_cv_sizeof_off_t+set}" = set; then
21233 echo $ECHO_N "(cached) $ECHO_C" >&6
21234 else
21235 if test "$ac_cv_type_off_t" = yes; then
21236 # The cast to unsigned long works around a bug in the HP C Compiler
21237 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21238 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21239 # This bug is HP SR number 8606223364.
21240 if test "$cross_compiling" = yes; then
21241 # Depending upon the size, compute the lo and hi bounds.
21242 cat >conftest.$ac_ext <<_ACEOF
21243 /* confdefs.h. */
21244 _ACEOF
21245 cat confdefs.h >>conftest.$ac_ext
21246 cat >>conftest.$ac_ext <<_ACEOF
21247 /* end confdefs.h. */
21248 $ac_includes_default
21250 main ()
21252 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
21253 test_array [0] = 0
21256 return 0;
21258 _ACEOF
21259 rm -f conftest.$ac_objext
21260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21261 (eval $ac_compile) 2>conftest.er1
21262 ac_status=$?
21263 grep -v '^ *+' conftest.er1 >conftest.err
21264 rm -f conftest.er1
21265 cat conftest.err >&5
21266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21267 (exit $ac_status); } &&
21268 { ac_try='test -z "$ac_c_werror_flag"
21269 || test ! -s conftest.err'
21270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21271 (eval $ac_try) 2>&5
21272 ac_status=$?
21273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21274 (exit $ac_status); }; } &&
21275 { ac_try='test -s conftest.$ac_objext'
21276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21277 (eval $ac_try) 2>&5
21278 ac_status=$?
21279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280 (exit $ac_status); }; }; then
21281 ac_lo=0 ac_mid=0
21282 while :; do
21283 cat >conftest.$ac_ext <<_ACEOF
21284 /* confdefs.h. */
21285 _ACEOF
21286 cat confdefs.h >>conftest.$ac_ext
21287 cat >>conftest.$ac_ext <<_ACEOF
21288 /* end confdefs.h. */
21289 $ac_includes_default
21291 main ()
21293 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
21294 test_array [0] = 0
21297 return 0;
21299 _ACEOF
21300 rm -f conftest.$ac_objext
21301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21302 (eval $ac_compile) 2>conftest.er1
21303 ac_status=$?
21304 grep -v '^ *+' conftest.er1 >conftest.err
21305 rm -f conftest.er1
21306 cat conftest.err >&5
21307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308 (exit $ac_status); } &&
21309 { ac_try='test -z "$ac_c_werror_flag"
21310 || test ! -s conftest.err'
21311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21312 (eval $ac_try) 2>&5
21313 ac_status=$?
21314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315 (exit $ac_status); }; } &&
21316 { ac_try='test -s conftest.$ac_objext'
21317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21318 (eval $ac_try) 2>&5
21319 ac_status=$?
21320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321 (exit $ac_status); }; }; then
21322 ac_hi=$ac_mid; break
21323 else
21324 echo "$as_me: failed program was:" >&5
21325 sed 's/^/| /' conftest.$ac_ext >&5
21327 ac_lo=`expr $ac_mid + 1`
21328 if test $ac_lo -le $ac_mid; then
21329 ac_lo= ac_hi=
21330 break
21332 ac_mid=`expr 2 '*' $ac_mid + 1`
21334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21335 done
21336 else
21337 echo "$as_me: failed program was:" >&5
21338 sed 's/^/| /' conftest.$ac_ext >&5
21340 cat >conftest.$ac_ext <<_ACEOF
21341 /* confdefs.h. */
21342 _ACEOF
21343 cat confdefs.h >>conftest.$ac_ext
21344 cat >>conftest.$ac_ext <<_ACEOF
21345 /* end confdefs.h. */
21346 $ac_includes_default
21348 main ()
21350 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
21351 test_array [0] = 0
21354 return 0;
21356 _ACEOF
21357 rm -f conftest.$ac_objext
21358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21359 (eval $ac_compile) 2>conftest.er1
21360 ac_status=$?
21361 grep -v '^ *+' conftest.er1 >conftest.err
21362 rm -f conftest.er1
21363 cat conftest.err >&5
21364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365 (exit $ac_status); } &&
21366 { ac_try='test -z "$ac_c_werror_flag"
21367 || test ! -s conftest.err'
21368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21369 (eval $ac_try) 2>&5
21370 ac_status=$?
21371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372 (exit $ac_status); }; } &&
21373 { ac_try='test -s conftest.$ac_objext'
21374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21375 (eval $ac_try) 2>&5
21376 ac_status=$?
21377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378 (exit $ac_status); }; }; then
21379 ac_hi=-1 ac_mid=-1
21380 while :; do
21381 cat >conftest.$ac_ext <<_ACEOF
21382 /* confdefs.h. */
21383 _ACEOF
21384 cat confdefs.h >>conftest.$ac_ext
21385 cat >>conftest.$ac_ext <<_ACEOF
21386 /* end confdefs.h. */
21387 $ac_includes_default
21389 main ()
21391 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
21392 test_array [0] = 0
21395 return 0;
21397 _ACEOF
21398 rm -f conftest.$ac_objext
21399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21400 (eval $ac_compile) 2>conftest.er1
21401 ac_status=$?
21402 grep -v '^ *+' conftest.er1 >conftest.err
21403 rm -f conftest.er1
21404 cat conftest.err >&5
21405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21406 (exit $ac_status); } &&
21407 { ac_try='test -z "$ac_c_werror_flag"
21408 || test ! -s conftest.err'
21409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21410 (eval $ac_try) 2>&5
21411 ac_status=$?
21412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413 (exit $ac_status); }; } &&
21414 { ac_try='test -s conftest.$ac_objext'
21415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21416 (eval $ac_try) 2>&5
21417 ac_status=$?
21418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419 (exit $ac_status); }; }; then
21420 ac_lo=$ac_mid; break
21421 else
21422 echo "$as_me: failed program was:" >&5
21423 sed 's/^/| /' conftest.$ac_ext >&5
21425 ac_hi=`expr '(' $ac_mid ')' - 1`
21426 if test $ac_mid -le $ac_hi; then
21427 ac_lo= ac_hi=
21428 break
21430 ac_mid=`expr 2 '*' $ac_mid`
21432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21433 done
21434 else
21435 echo "$as_me: failed program was:" >&5
21436 sed 's/^/| /' conftest.$ac_ext >&5
21438 ac_lo= ac_hi=
21440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21443 # Binary search between lo and hi bounds.
21444 while test "x$ac_lo" != "x$ac_hi"; do
21445 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21446 cat >conftest.$ac_ext <<_ACEOF
21447 /* confdefs.h. */
21448 _ACEOF
21449 cat confdefs.h >>conftest.$ac_ext
21450 cat >>conftest.$ac_ext <<_ACEOF
21451 /* end confdefs.h. */
21452 $ac_includes_default
21454 main ()
21456 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
21457 test_array [0] = 0
21460 return 0;
21462 _ACEOF
21463 rm -f conftest.$ac_objext
21464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21465 (eval $ac_compile) 2>conftest.er1
21466 ac_status=$?
21467 grep -v '^ *+' conftest.er1 >conftest.err
21468 rm -f conftest.er1
21469 cat conftest.err >&5
21470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21471 (exit $ac_status); } &&
21472 { ac_try='test -z "$ac_c_werror_flag"
21473 || test ! -s conftest.err'
21474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21475 (eval $ac_try) 2>&5
21476 ac_status=$?
21477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21478 (exit $ac_status); }; } &&
21479 { ac_try='test -s conftest.$ac_objext'
21480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21481 (eval $ac_try) 2>&5
21482 ac_status=$?
21483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484 (exit $ac_status); }; }; then
21485 ac_hi=$ac_mid
21486 else
21487 echo "$as_me: failed program was:" >&5
21488 sed 's/^/| /' conftest.$ac_ext >&5
21490 ac_lo=`expr '(' $ac_mid ')' + 1`
21492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21493 done
21494 case $ac_lo in
21495 ?*) ac_cv_sizeof_off_t=$ac_lo;;
21496 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21497 echo "$as_me: error: in \`$ac_pwd':" >&2;}
21498 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
21499 See \`config.log' for more details." >&5
21500 echo "$as_me: error: cannot compute sizeof (off_t), 77
21501 See \`config.log' for more details." >&2;}
21502 { (exit 1); exit 1; }; }; } ;;
21503 esac
21504 else
21505 if test "$cross_compiling" = yes; then
21506 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21507 echo "$as_me: error: in \`$ac_pwd':" >&2;}
21508 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21509 See \`config.log' for more details." >&5
21510 echo "$as_me: error: cannot run test program while cross compiling
21511 See \`config.log' for more details." >&2;}
21512 { (exit 1); exit 1; }; }; }
21513 else
21514 cat >conftest.$ac_ext <<_ACEOF
21515 /* confdefs.h. */
21516 _ACEOF
21517 cat confdefs.h >>conftest.$ac_ext
21518 cat >>conftest.$ac_ext <<_ACEOF
21519 /* end confdefs.h. */
21520 $ac_includes_default
21521 long longval () { return (long) (sizeof (off_t)); }
21522 unsigned long ulongval () { return (long) (sizeof (off_t)); }
21523 #include <stdio.h>
21524 #include <stdlib.h>
21526 main ()
21529 FILE *f = fopen ("conftest.val", "w");
21530 if (! f)
21531 exit (1);
21532 if (((long) (sizeof (off_t))) < 0)
21534 long i = longval ();
21535 if (i != ((long) (sizeof (off_t))))
21536 exit (1);
21537 fprintf (f, "%ld\n", i);
21539 else
21541 unsigned long i = ulongval ();
21542 if (i != ((long) (sizeof (off_t))))
21543 exit (1);
21544 fprintf (f, "%lu\n", i);
21546 exit (ferror (f) || fclose (f) != 0);
21549 return 0;
21551 _ACEOF
21552 rm -f conftest$ac_exeext
21553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21554 (eval $ac_link) 2>&5
21555 ac_status=$?
21556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21559 (eval $ac_try) 2>&5
21560 ac_status=$?
21561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562 (exit $ac_status); }; }; then
21563 ac_cv_sizeof_off_t=`cat conftest.val`
21564 else
21565 echo "$as_me: program exited with status $ac_status" >&5
21566 echo "$as_me: failed program was:" >&5
21567 sed 's/^/| /' conftest.$ac_ext >&5
21569 ( exit $ac_status )
21570 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21571 echo "$as_me: error: in \`$ac_pwd':" >&2;}
21572 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
21573 See \`config.log' for more details." >&5
21574 echo "$as_me: error: cannot compute sizeof (off_t), 77
21575 See \`config.log' for more details." >&2;}
21576 { (exit 1); exit 1; }; }; }
21578 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21581 rm -f conftest.val
21582 else
21583 ac_cv_sizeof_off_t=0
21586 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
21587 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
21588 cat >>confdefs.h <<_ACEOF
21589 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
21590 _ACEOF
21594 echo "$as_me:$LINENO: checking file_ptr type" >&5
21595 echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
21596 bfd_file_ptr="long"
21597 bfd_ufile_ptr="unsigned long"
21598 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
21599 -o x"${ac_cv_sizeof_off_t}" = x8; then
21600 bfd_file_ptr=BFD_HOST_64_BIT
21601 bfd_ufile_ptr=BFD_HOST_U_64_BIT
21603 echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
21604 echo "${ECHO_T}$bfd_file_ptr" >&6
21609 tdefaults=""
21610 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
21611 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
21612 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
21613 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
21614 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
21619 for ac_header in stdlib.h unistd.h
21621 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21622 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21623 echo "$as_me:$LINENO: checking for $ac_header" >&5
21624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21626 echo $ECHO_N "(cached) $ECHO_C" >&6
21628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21630 else
21631 # Is the header compilable?
21632 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21633 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21634 cat >conftest.$ac_ext <<_ACEOF
21635 /* confdefs.h. */
21636 _ACEOF
21637 cat confdefs.h >>conftest.$ac_ext
21638 cat >>conftest.$ac_ext <<_ACEOF
21639 /* end confdefs.h. */
21640 $ac_includes_default
21641 #include <$ac_header>
21642 _ACEOF
21643 rm -f conftest.$ac_objext
21644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21645 (eval $ac_compile) 2>conftest.er1
21646 ac_status=$?
21647 grep -v '^ *+' conftest.er1 >conftest.err
21648 rm -f conftest.er1
21649 cat conftest.err >&5
21650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); } &&
21652 { ac_try='test -z "$ac_c_werror_flag"
21653 || test ! -s conftest.err'
21654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21655 (eval $ac_try) 2>&5
21656 ac_status=$?
21657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21658 (exit $ac_status); }; } &&
21659 { ac_try='test -s conftest.$ac_objext'
21660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21661 (eval $ac_try) 2>&5
21662 ac_status=$?
21663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21664 (exit $ac_status); }; }; then
21665 ac_header_compiler=yes
21666 else
21667 echo "$as_me: failed program was:" >&5
21668 sed 's/^/| /' conftest.$ac_ext >&5
21670 ac_header_compiler=no
21672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21673 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21674 echo "${ECHO_T}$ac_header_compiler" >&6
21676 # Is the header present?
21677 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21678 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21679 cat >conftest.$ac_ext <<_ACEOF
21680 /* confdefs.h. */
21681 _ACEOF
21682 cat confdefs.h >>conftest.$ac_ext
21683 cat >>conftest.$ac_ext <<_ACEOF
21684 /* end confdefs.h. */
21685 #include <$ac_header>
21686 _ACEOF
21687 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21688 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21689 ac_status=$?
21690 grep -v '^ *+' conftest.er1 >conftest.err
21691 rm -f conftest.er1
21692 cat conftest.err >&5
21693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21694 (exit $ac_status); } >/dev/null; then
21695 if test -s conftest.err; then
21696 ac_cpp_err=$ac_c_preproc_warn_flag
21697 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21698 else
21699 ac_cpp_err=
21701 else
21702 ac_cpp_err=yes
21704 if test -z "$ac_cpp_err"; then
21705 ac_header_preproc=yes
21706 else
21707 echo "$as_me: failed program was:" >&5
21708 sed 's/^/| /' conftest.$ac_ext >&5
21710 ac_header_preproc=no
21712 rm -f conftest.err conftest.$ac_ext
21713 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21714 echo "${ECHO_T}$ac_header_preproc" >&6
21716 # So? What about this header?
21717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21718 yes:no: )
21719 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21720 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21722 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21723 ac_header_preproc=yes
21725 no:yes:* )
21726 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21727 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21728 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21729 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21730 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21731 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21732 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21733 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21736 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21737 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21739 cat <<\_ASBOX
21740 ## ------------------------------------------ ##
21741 ## Report this to the AC_PACKAGE_NAME lists. ##
21742 ## ------------------------------------------ ##
21743 _ASBOX
21745 sed "s/^/$as_me: WARNING: /" >&2
21747 esac
21748 echo "$as_me:$LINENO: checking for $ac_header" >&5
21749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21751 echo $ECHO_N "(cached) $ECHO_C" >&6
21752 else
21753 eval "$as_ac_Header=\$ac_header_preproc"
21755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21756 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21760 cat >>confdefs.h <<_ACEOF
21761 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21762 _ACEOF
21766 done
21769 for ac_func in getpagesize
21771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21772 echo "$as_me:$LINENO: checking for $ac_func" >&5
21773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21774 if eval "test \"\${$as_ac_var+set}\" = set"; then
21775 echo $ECHO_N "(cached) $ECHO_C" >&6
21776 else
21777 cat >conftest.$ac_ext <<_ACEOF
21778 /* confdefs.h. */
21779 _ACEOF
21780 cat confdefs.h >>conftest.$ac_ext
21781 cat >>conftest.$ac_ext <<_ACEOF
21782 /* end confdefs.h. */
21783 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21785 #define $ac_func innocuous_$ac_func
21787 /* System header to define __stub macros and hopefully few prototypes,
21788 which can conflict with char $ac_func (); below.
21789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21790 <limits.h> exists even on freestanding compilers. */
21792 #ifdef __STDC__
21793 # include <limits.h>
21794 #else
21795 # include <assert.h>
21796 #endif
21798 #undef $ac_func
21800 /* Override any gcc2 internal prototype to avoid an error. */
21801 #ifdef __cplusplus
21802 extern "C"
21804 #endif
21805 /* We use char because int might match the return type of a gcc2
21806 builtin and then its argument prototype would still apply. */
21807 char $ac_func ();
21808 /* The GNU C library defines this for functions which it implements
21809 to always fail with ENOSYS. Some functions are actually named
21810 something starting with __ and the normal name is an alias. */
21811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21812 choke me
21813 #else
21814 char (*f) () = $ac_func;
21815 #endif
21816 #ifdef __cplusplus
21818 #endif
21821 main ()
21823 return f != $ac_func;
21825 return 0;
21827 _ACEOF
21828 rm -f conftest.$ac_objext conftest$ac_exeext
21829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21830 (eval $ac_link) 2>conftest.er1
21831 ac_status=$?
21832 grep -v '^ *+' conftest.er1 >conftest.err
21833 rm -f conftest.er1
21834 cat conftest.err >&5
21835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21836 (exit $ac_status); } &&
21837 { ac_try='test -z "$ac_c_werror_flag"
21838 || test ! -s conftest.err'
21839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21840 (eval $ac_try) 2>&5
21841 ac_status=$?
21842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843 (exit $ac_status); }; } &&
21844 { ac_try='test -s conftest$ac_exeext'
21845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21846 (eval $ac_try) 2>&5
21847 ac_status=$?
21848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849 (exit $ac_status); }; }; then
21850 eval "$as_ac_var=yes"
21851 else
21852 echo "$as_me: failed program was:" >&5
21853 sed 's/^/| /' conftest.$ac_ext >&5
21855 eval "$as_ac_var=no"
21857 rm -f conftest.err conftest.$ac_objext \
21858 conftest$ac_exeext conftest.$ac_ext
21860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21861 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21862 if test `eval echo '${'$as_ac_var'}'` = yes; then
21863 cat >>confdefs.h <<_ACEOF
21864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21865 _ACEOF
21868 done
21870 echo "$as_me:$LINENO: checking for working mmap" >&5
21871 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21872 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21873 echo $ECHO_N "(cached) $ECHO_C" >&6
21874 else
21875 if test "$cross_compiling" = yes; then
21876 ac_cv_func_mmap_fixed_mapped=no
21877 else
21878 cat >conftest.$ac_ext <<_ACEOF
21879 /* confdefs.h. */
21880 _ACEOF
21881 cat confdefs.h >>conftest.$ac_ext
21882 cat >>conftest.$ac_ext <<_ACEOF
21883 /* end confdefs.h. */
21884 $ac_includes_default
21885 /* malloc might have been renamed as rpl_malloc. */
21886 #undef malloc
21888 /* Thanks to Mike Haertel and Jim Avera for this test.
21889 Here is a matrix of mmap possibilities:
21890 mmap private not fixed
21891 mmap private fixed at somewhere currently unmapped
21892 mmap private fixed at somewhere already mapped
21893 mmap shared not fixed
21894 mmap shared fixed at somewhere currently unmapped
21895 mmap shared fixed at somewhere already mapped
21896 For private mappings, we should verify that changes cannot be read()
21897 back from the file, nor mmap's back from the file at a different
21898 address. (There have been systems where private was not correctly
21899 implemented like the infamous i386 svr4.0, and systems where the
21900 VM page cache was not coherent with the file system buffer cache
21901 like early versions of FreeBSD and possibly contemporary NetBSD.)
21902 For shared mappings, we should conversely verify that changes get
21903 propagated back to all the places they're supposed to be.
21905 Grep wants private fixed already mapped.
21906 The main things grep needs to know about mmap are:
21907 * does it exist and is it safe to write into the mmap'd area
21908 * how to use it (BSD variants) */
21910 #include <fcntl.h>
21911 #include <sys/mman.h>
21913 #if !STDC_HEADERS && !HAVE_STDLIB_H
21914 char *malloc ();
21915 #endif
21917 /* This mess was copied from the GNU getpagesize.h. */
21918 #if !HAVE_GETPAGESIZE
21919 /* Assume that all systems that can run configure have sys/param.h. */
21920 # if !HAVE_SYS_PARAM_H
21921 # define HAVE_SYS_PARAM_H 1
21922 # endif
21924 # ifdef _SC_PAGESIZE
21925 # define getpagesize() sysconf(_SC_PAGESIZE)
21926 # else /* no _SC_PAGESIZE */
21927 # if HAVE_SYS_PARAM_H
21928 # include <sys/param.h>
21929 # ifdef EXEC_PAGESIZE
21930 # define getpagesize() EXEC_PAGESIZE
21931 # else /* no EXEC_PAGESIZE */
21932 # ifdef NBPG
21933 # define getpagesize() NBPG * CLSIZE
21934 # ifndef CLSIZE
21935 # define CLSIZE 1
21936 # endif /* no CLSIZE */
21937 # else /* no NBPG */
21938 # ifdef NBPC
21939 # define getpagesize() NBPC
21940 # else /* no NBPC */
21941 # ifdef PAGESIZE
21942 # define getpagesize() PAGESIZE
21943 # endif /* PAGESIZE */
21944 # endif /* no NBPC */
21945 # endif /* no NBPG */
21946 # endif /* no EXEC_PAGESIZE */
21947 # else /* no HAVE_SYS_PARAM_H */
21948 # define getpagesize() 8192 /* punt totally */
21949 # endif /* no HAVE_SYS_PARAM_H */
21950 # endif /* no _SC_PAGESIZE */
21952 #endif /* no HAVE_GETPAGESIZE */
21955 main ()
21957 char *data, *data2, *data3;
21958 int i, pagesize;
21959 int fd;
21961 pagesize = getpagesize ();
21963 /* First, make a file with some known garbage in it. */
21964 data = (char *) malloc (pagesize);
21965 if (!data)
21966 exit (1);
21967 for (i = 0; i < pagesize; ++i)
21968 *(data + i) = rand ();
21969 umask (0);
21970 fd = creat ("conftest.mmap", 0600);
21971 if (fd < 0)
21972 exit (1);
21973 if (write (fd, data, pagesize) != pagesize)
21974 exit (1);
21975 close (fd);
21977 /* Next, try to mmap the file at a fixed address which already has
21978 something else allocated at it. If we can, also make sure that
21979 we see the same garbage. */
21980 fd = open ("conftest.mmap", O_RDWR);
21981 if (fd < 0)
21982 exit (1);
21983 data2 = (char *) malloc (2 * pagesize);
21984 if (!data2)
21985 exit (1);
21986 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
21987 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21988 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21989 exit (1);
21990 for (i = 0; i < pagesize; ++i)
21991 if (*(data + i) != *(data2 + i))
21992 exit (1);
21994 /* Finally, make sure that changes to the mapped area do not
21995 percolate back to the file as seen by read(). (This is a bug on
21996 some variants of i386 svr4.0.) */
21997 for (i = 0; i < pagesize; ++i)
21998 *(data2 + i) = *(data2 + i) + 1;
21999 data3 = (char *) malloc (pagesize);
22000 if (!data3)
22001 exit (1);
22002 if (read (fd, data3, pagesize) != pagesize)
22003 exit (1);
22004 for (i = 0; i < pagesize; ++i)
22005 if (*(data + i) != *(data3 + i))
22006 exit (1);
22007 close (fd);
22008 exit (0);
22010 _ACEOF
22011 rm -f conftest$ac_exeext
22012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22013 (eval $ac_link) 2>&5
22014 ac_status=$?
22015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22018 (eval $ac_try) 2>&5
22019 ac_status=$?
22020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021 (exit $ac_status); }; }; then
22022 ac_cv_func_mmap_fixed_mapped=yes
22023 else
22024 echo "$as_me: program exited with status $ac_status" >&5
22025 echo "$as_me: failed program was:" >&5
22026 sed 's/^/| /' conftest.$ac_ext >&5
22028 ( exit $ac_status )
22029 ac_cv_func_mmap_fixed_mapped=no
22031 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22034 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22035 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22036 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22038 cat >>confdefs.h <<\_ACEOF
22039 #define HAVE_MMAP 1
22040 _ACEOF
22043 rm -f conftest.mmap
22047 for ac_func in madvise mprotect
22049 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22050 echo "$as_me:$LINENO: checking for $ac_func" >&5
22051 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22052 if eval "test \"\${$as_ac_var+set}\" = set"; then
22053 echo $ECHO_N "(cached) $ECHO_C" >&6
22054 else
22055 cat >conftest.$ac_ext <<_ACEOF
22056 /* confdefs.h. */
22057 _ACEOF
22058 cat confdefs.h >>conftest.$ac_ext
22059 cat >>conftest.$ac_ext <<_ACEOF
22060 /* end confdefs.h. */
22061 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22063 #define $ac_func innocuous_$ac_func
22065 /* System header to define __stub macros and hopefully few prototypes,
22066 which can conflict with char $ac_func (); below.
22067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22068 <limits.h> exists even on freestanding compilers. */
22070 #ifdef __STDC__
22071 # include <limits.h>
22072 #else
22073 # include <assert.h>
22074 #endif
22076 #undef $ac_func
22078 /* Override any gcc2 internal prototype to avoid an error. */
22079 #ifdef __cplusplus
22080 extern "C"
22082 #endif
22083 /* We use char because int might match the return type of a gcc2
22084 builtin and then its argument prototype would still apply. */
22085 char $ac_func ();
22086 /* The GNU C library defines this for functions which it implements
22087 to always fail with ENOSYS. Some functions are actually named
22088 something starting with __ and the normal name is an alias. */
22089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22090 choke me
22091 #else
22092 char (*f) () = $ac_func;
22093 #endif
22094 #ifdef __cplusplus
22096 #endif
22099 main ()
22101 return f != $ac_func;
22103 return 0;
22105 _ACEOF
22106 rm -f conftest.$ac_objext conftest$ac_exeext
22107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22108 (eval $ac_link) 2>conftest.er1
22109 ac_status=$?
22110 grep -v '^ *+' conftest.er1 >conftest.err
22111 rm -f conftest.er1
22112 cat conftest.err >&5
22113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114 (exit $ac_status); } &&
22115 { ac_try='test -z "$ac_c_werror_flag"
22116 || test ! -s conftest.err'
22117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22118 (eval $ac_try) 2>&5
22119 ac_status=$?
22120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121 (exit $ac_status); }; } &&
22122 { ac_try='test -s conftest$ac_exeext'
22123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22124 (eval $ac_try) 2>&5
22125 ac_status=$?
22126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127 (exit $ac_status); }; }; then
22128 eval "$as_ac_var=yes"
22129 else
22130 echo "$as_me: failed program was:" >&5
22131 sed 's/^/| /' conftest.$ac_ext >&5
22133 eval "$as_ac_var=no"
22135 rm -f conftest.err conftest.$ac_objext \
22136 conftest$ac_exeext conftest.$ac_ext
22138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22139 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22140 if test `eval echo '${'$as_ac_var'}'` = yes; then
22141 cat >>confdefs.h <<_ACEOF
22142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22143 _ACEOF
22146 done
22148 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
22149 true+yes )
22150 cat >>confdefs.h <<\_ACEOF
22151 #define USE_MMAP 1
22152 _ACEOF
22154 esac
22156 rm -f doc/config.status
22157 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
22160 ac_config_commands="$ac_config_commands default"
22167 cat >confcache <<\_ACEOF
22168 # This file is a shell script that caches the results of configure
22169 # tests run on this system so they can be shared between configure
22170 # scripts and configure runs, see configure's option --config-cache.
22171 # It is not useful on other systems. If it contains results you don't
22172 # want to keep, you may remove or edit it.
22174 # config.status only pays attention to the cache file if you give it
22175 # the --recheck option to rerun configure.
22177 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22178 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22179 # following values.
22181 _ACEOF
22183 # The following way of writing the cache mishandles newlines in values,
22184 # but we know of no workaround that is simple, portable, and efficient.
22185 # So, don't put newlines in cache variables' values.
22186 # Ultrix sh set writes to stderr and can't be redirected directly,
22187 # and sets the high bit in the cache file unless we assign to the vars.
22189 (set) 2>&1 |
22190 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22191 *ac_space=\ *)
22192 # `set' does not quote correctly, so add quotes (double-quote
22193 # substitution turns \\\\ into \\, and sed turns \\ into \).
22194 sed -n \
22195 "s/'/'\\\\''/g;
22196 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22199 # `set' quotes correctly as required by POSIX, so do not add quotes.
22200 sed -n \
22201 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22203 esac;
22205 sed '
22206 t clear
22207 : clear
22208 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22209 t end
22210 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22211 : end' >>confcache
22212 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22213 if test -w $cache_file; then
22214 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22215 cat confcache >$cache_file
22216 else
22217 echo "not updating unwritable cache $cache_file"
22220 rm -f confcache
22222 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22223 # Let make expand exec_prefix.
22224 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22226 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22227 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22228 # trailing colons and then remove the whole line if VPATH becomes empty
22229 # (actually we leave an empty line to preserve line numbers).
22230 if test "x$srcdir" = x.; then
22231 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22232 s/:*\$(srcdir):*/:/;
22233 s/:*\${srcdir}:*/:/;
22234 s/:*@srcdir@:*/:/;
22235 s/^\([^=]*=[ ]*\):*/\1/;
22236 s/:*$//;
22237 s/^[^=]*=[ ]*$//;
22241 DEFS=-DHAVE_CONFIG_H
22243 ac_libobjs=
22244 ac_ltlibobjs=
22245 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22246 # 1. Remove the extension, and $U if already installed.
22247 ac_i=`echo "$ac_i" |
22248 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22249 # 2. Add them.
22250 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22251 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22252 done
22253 LIBOBJS=$ac_libobjs
22255 LTLIBOBJS=$ac_ltlibobjs
22258 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22259 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22260 Usually this means the macro was only invoked conditionally." >&5
22261 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22262 Usually this means the macro was only invoked conditionally." >&2;}
22263 { (exit 1); exit 1; }; }
22265 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22266 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22267 Usually this means the macro was only invoked conditionally." >&5
22268 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22269 Usually this means the macro was only invoked conditionally." >&2;}
22270 { (exit 1); exit 1; }; }
22272 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22273 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22274 Usually this means the macro was only invoked conditionally." >&5
22275 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22276 Usually this means the macro was only invoked conditionally." >&2;}
22277 { (exit 1); exit 1; }; }
22279 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
22280 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
22281 Usually this means the macro was only invoked conditionally." >&5
22282 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
22283 Usually this means the macro was only invoked conditionally." >&2;}
22284 { (exit 1); exit 1; }; }
22286 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
22287 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
22288 Usually this means the macro was only invoked conditionally." >&5
22289 echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
22290 Usually this means the macro was only invoked conditionally." >&2;}
22291 { (exit 1); exit 1; }; }
22294 : ${CONFIG_STATUS=./config.status}
22295 ac_clean_files_save=$ac_clean_files
22296 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22297 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22298 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22299 cat >$CONFIG_STATUS <<_ACEOF
22300 #! $SHELL
22301 # Generated by $as_me.
22302 # Run this file to recreate the current configuration.
22303 # Compiler output produced by configure, useful for debugging
22304 # configure, is in config.log if it exists.
22306 debug=false
22307 ac_cs_recheck=false
22308 ac_cs_silent=false
22309 SHELL=\${CONFIG_SHELL-$SHELL}
22310 _ACEOF
22312 cat >>$CONFIG_STATUS <<\_ACEOF
22313 ## --------------------- ##
22314 ## M4sh Initialization. ##
22315 ## --------------------- ##
22317 # Be Bourne compatible
22318 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22319 emulate sh
22320 NULLCMD=:
22321 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22322 # is contrary to our usage. Disable this feature.
22323 alias -g '${1+"$@"}'='"$@"'
22324 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22325 set -o posix
22327 DUALCASE=1; export DUALCASE # for MKS sh
22329 # Support unset when possible.
22330 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22331 as_unset=unset
22332 else
22333 as_unset=false
22337 # Work around bugs in pre-3.0 UWIN ksh.
22338 $as_unset ENV MAIL MAILPATH
22339 PS1='$ '
22340 PS2='> '
22341 PS4='+ '
22343 # NLS nuisances.
22344 for as_var in \
22345 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22346 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22347 LC_TELEPHONE LC_TIME
22349 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22350 eval $as_var=C; export $as_var
22351 else
22352 $as_unset $as_var
22354 done
22356 # Required to use basename.
22357 if expr a : '\(a\)' >/dev/null 2>&1; then
22358 as_expr=expr
22359 else
22360 as_expr=false
22363 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22364 as_basename=basename
22365 else
22366 as_basename=false
22370 # Name of the executable.
22371 as_me=`$as_basename "$0" ||
22372 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22373 X"$0" : 'X\(//\)$' \| \
22374 X"$0" : 'X\(/\)$' \| \
22375 . : '\(.\)' 2>/dev/null ||
22376 echo X/"$0" |
22377 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22378 /^X\/\(\/\/\)$/{ s//\1/; q; }
22379 /^X\/\(\/\).*/{ s//\1/; q; }
22380 s/.*/./; q'`
22383 # PATH needs CR, and LINENO needs CR and PATH.
22384 # Avoid depending upon Character Ranges.
22385 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22386 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22387 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22388 as_cr_digits='0123456789'
22389 as_cr_alnum=$as_cr_Letters$as_cr_digits
22391 # The user is always right.
22392 if test "${PATH_SEPARATOR+set}" != set; then
22393 echo "#! /bin/sh" >conf$$.sh
22394 echo "exit 0" >>conf$$.sh
22395 chmod +x conf$$.sh
22396 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22397 PATH_SEPARATOR=';'
22398 else
22399 PATH_SEPARATOR=:
22401 rm -f conf$$.sh
22405 as_lineno_1=$LINENO
22406 as_lineno_2=$LINENO
22407 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22408 test "x$as_lineno_1" != "x$as_lineno_2" &&
22409 test "x$as_lineno_3" = "x$as_lineno_2" || {
22410 # Find who we are. Look in the path if we contain no path at all
22411 # relative or not.
22412 case $0 in
22413 *[\\/]* ) as_myself=$0 ;;
22414 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22415 for as_dir in $PATH
22417 IFS=$as_save_IFS
22418 test -z "$as_dir" && as_dir=.
22419 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22420 done
22423 esac
22424 # We did not find ourselves, most probably we were run as `sh COMMAND'
22425 # in which case we are not to be found in the path.
22426 if test "x$as_myself" = x; then
22427 as_myself=$0
22429 if test ! -f "$as_myself"; then
22430 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22431 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22432 { (exit 1); exit 1; }; }
22434 case $CONFIG_SHELL in
22436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22437 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22439 IFS=$as_save_IFS
22440 test -z "$as_dir" && as_dir=.
22441 for as_base in sh bash ksh sh5; do
22442 case $as_dir in
22444 if ("$as_dir/$as_base" -c '
22445 as_lineno_1=$LINENO
22446 as_lineno_2=$LINENO
22447 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22448 test "x$as_lineno_1" != "x$as_lineno_2" &&
22449 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22450 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22451 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22452 CONFIG_SHELL=$as_dir/$as_base
22453 export CONFIG_SHELL
22454 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22455 fi;;
22456 esac
22457 done
22458 done
22460 esac
22462 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22463 # uniformly replaced by the line number. The first 'sed' inserts a
22464 # line-number line before each line; the second 'sed' does the real
22465 # work. The second script uses 'N' to pair each line-number line
22466 # with the numbered line, and appends trailing '-' during
22467 # substitution so that $LINENO is not a special case at line end.
22468 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22469 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22470 sed '=' <$as_myself |
22471 sed '
22473 s,$,-,
22474 : loop
22475 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22476 t loop
22477 s,-$,,
22478 s,^['$as_cr_digits']*\n,,
22479 ' >$as_me.lineno &&
22480 chmod +x $as_me.lineno ||
22481 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22482 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22483 { (exit 1); exit 1; }; }
22485 # Don't try to exec as it changes $[0], causing all sort of problems
22486 # (the dirname of $[0] is not the place where we might find the
22487 # original and so on. Autoconf is especially sensible to this).
22488 . ./$as_me.lineno
22489 # Exit status is that of the last command.
22490 exit
22494 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22495 *c*,-n*) ECHO_N= ECHO_C='
22496 ' ECHO_T=' ' ;;
22497 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22498 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22499 esac
22501 if expr a : '\(a\)' >/dev/null 2>&1; then
22502 as_expr=expr
22503 else
22504 as_expr=false
22507 rm -f conf$$ conf$$.exe conf$$.file
22508 echo >conf$$.file
22509 if ln -s conf$$.file conf$$ 2>/dev/null; then
22510 # We could just check for DJGPP; but this test a) works b) is more generic
22511 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22512 if test -f conf$$.exe; then
22513 # Don't use ln at all; we don't have any links
22514 as_ln_s='cp -p'
22515 else
22516 as_ln_s='ln -s'
22518 elif ln conf$$.file conf$$ 2>/dev/null; then
22519 as_ln_s=ln
22520 else
22521 as_ln_s='cp -p'
22523 rm -f conf$$ conf$$.exe conf$$.file
22525 if mkdir -p . 2>/dev/null; then
22526 as_mkdir_p=:
22527 else
22528 test -d ./-p && rmdir ./-p
22529 as_mkdir_p=false
22532 as_executable_p="test -f"
22534 # Sed expression to map a string onto a valid CPP name.
22535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22537 # Sed expression to map a string onto a valid variable name.
22538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22541 # IFS
22542 # We need space, tab and new line, in precisely that order.
22543 as_nl='
22545 IFS=" $as_nl"
22547 # CDPATH.
22548 $as_unset CDPATH
22550 exec 6>&1
22552 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22553 # report actual input values of CONFIG_FILES etc. instead of their
22554 # values after options handling. Logging --version etc. is OK.
22555 exec 5>>config.log
22557 echo
22558 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22559 ## Running $as_me. ##
22560 _ASBOX
22561 } >&5
22562 cat >&5 <<_CSEOF
22564 This file was extended by $as_me, which was
22565 generated by GNU Autoconf 2.59. Invocation command line was
22567 CONFIG_FILES = $CONFIG_FILES
22568 CONFIG_HEADERS = $CONFIG_HEADERS
22569 CONFIG_LINKS = $CONFIG_LINKS
22570 CONFIG_COMMANDS = $CONFIG_COMMANDS
22571 $ $0 $@
22573 _CSEOF
22574 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22575 echo >&5
22576 _ACEOF
22578 # Files that config.status was made for.
22579 if test -n "$ac_config_files"; then
22580 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22583 if test -n "$ac_config_headers"; then
22584 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22587 if test -n "$ac_config_links"; then
22588 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22591 if test -n "$ac_config_commands"; then
22592 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22595 cat >>$CONFIG_STATUS <<\_ACEOF
22597 ac_cs_usage="\
22598 \`$as_me' instantiates files from templates according to the
22599 current configuration.
22601 Usage: $0 [OPTIONS] [FILE]...
22603 -h, --help print this help, then exit
22604 -V, --version print version number, then exit
22605 -q, --quiet do not print progress messages
22606 -d, --debug don't remove temporary files
22607 --recheck update $as_me by reconfiguring in the same conditions
22608 --file=FILE[:TEMPLATE]
22609 instantiate the configuration file FILE
22610 --header=FILE[:TEMPLATE]
22611 instantiate the configuration header FILE
22613 Configuration files:
22614 $config_files
22616 Configuration headers:
22617 $config_headers
22619 Configuration commands:
22620 $config_commands
22622 Report bugs to <bug-autoconf@gnu.org>."
22623 _ACEOF
22625 cat >>$CONFIG_STATUS <<_ACEOF
22626 ac_cs_version="\\
22627 config.status
22628 configured by $0, generated by GNU Autoconf 2.59,
22629 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22631 Copyright (C) 2003 Free Software Foundation, Inc.
22632 This config.status script is free software; the Free Software Foundation
22633 gives unlimited permission to copy, distribute and modify it."
22634 srcdir=$srcdir
22635 INSTALL="$INSTALL"
22636 _ACEOF
22638 cat >>$CONFIG_STATUS <<\_ACEOF
22639 # If no file are specified by the user, then we need to provide default
22640 # value. By we need to know if files were specified by the user.
22641 ac_need_defaults=:
22642 while test $# != 0
22644 case $1 in
22645 --*=*)
22646 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22647 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22648 ac_shift=:
22651 ac_option=$1
22652 ac_optarg=$2
22653 ac_shift=shift
22655 *) # This is not an option, so the user has probably given explicit
22656 # arguments.
22657 ac_option=$1
22658 ac_need_defaults=false;;
22659 esac
22661 case $ac_option in
22662 # Handling of the options.
22663 _ACEOF
22664 cat >>$CONFIG_STATUS <<\_ACEOF
22665 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22666 ac_cs_recheck=: ;;
22667 --version | --vers* | -V )
22668 echo "$ac_cs_version"; exit 0 ;;
22669 --he | --h)
22670 # Conflict between --help and --header
22671 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22672 Try \`$0 --help' for more information." >&5
22673 echo "$as_me: error: ambiguous option: $1
22674 Try \`$0 --help' for more information." >&2;}
22675 { (exit 1); exit 1; }; };;
22676 --help | --hel | -h )
22677 echo "$ac_cs_usage"; exit 0 ;;
22678 --debug | --d* | -d )
22679 debug=: ;;
22680 --file | --fil | --fi | --f )
22681 $ac_shift
22682 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22683 ac_need_defaults=false;;
22684 --header | --heade | --head | --hea )
22685 $ac_shift
22686 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22687 ac_need_defaults=false;;
22688 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22689 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22690 ac_cs_silent=: ;;
22692 # This is an error.
22693 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22694 Try \`$0 --help' for more information." >&5
22695 echo "$as_me: error: unrecognized option: $1
22696 Try \`$0 --help' for more information." >&2;}
22697 { (exit 1); exit 1; }; } ;;
22699 *) ac_config_targets="$ac_config_targets $1" ;;
22701 esac
22702 shift
22703 done
22705 ac_configure_extra_args=
22707 if $ac_cs_silent; then
22708 exec 6>/dev/null
22709 ac_configure_extra_args="$ac_configure_extra_args --silent"
22712 _ACEOF
22713 cat >>$CONFIG_STATUS <<_ACEOF
22714 if \$ac_cs_recheck; then
22715 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22716 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22719 _ACEOF
22721 cat >>$CONFIG_STATUS <<_ACEOF
22723 # INIT-COMMANDS section.
22726 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22729 # The HP-UX ksh and POSIX shell print the target directory to stdout
22730 # if CDPATH is set.
22731 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22733 sed_quote_subst='$sed_quote_subst'
22734 double_quote_subst='$double_quote_subst'
22735 delay_variable_subst='$delay_variable_subst'
22736 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
22737 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
22738 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
22739 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
22740 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
22741 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
22742 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
22743 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
22744 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
22745 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
22746 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
22747 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
22748 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
22749 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
22750 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
22751 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
22752 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
22753 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
22754 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
22755 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
22756 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
22757 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
22758 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
22759 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
22760 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
22761 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
22762 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
22763 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22764 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
22765 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
22766 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
22767 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
22768 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22769 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
22770 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
22771 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22772 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22773 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22774 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
22775 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22776 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
22777 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
22778 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
22779 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
22780 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"`'
22781 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
22782 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
22783 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
22784 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
22785 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
22786 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
22787 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
22788 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
22789 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
22790 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
22791 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
22792 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
22793 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
22794 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
22795 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
22796 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
22797 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
22798 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22799 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22800 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
22801 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
22802 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22803 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22804 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
22805 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22806 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22807 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22808 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22809 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22810 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22811 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
22812 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22813 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22814 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22815 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
22816 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
22817 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
22818 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
22819 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
22820 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22821 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
22822 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
22823 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
22824 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
22825 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
22826 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22827 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22828 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22829 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22830 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
22831 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
22832 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
22833 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
22834 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
22835 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22836 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22837 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
22838 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22839 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
22840 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22841 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22842 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22843 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22844 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
22845 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
22846 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22847 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22848 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
22849 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
22850 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
22851 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
22852 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
22853 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
22855 LTCC='$LTCC'
22856 LTCFLAGS='$LTCFLAGS'
22857 compiler='$compiler_DEFAULT'
22859 # Quote evaled strings.
22860 for var in SED \
22861 GREP \
22862 EGREP \
22863 FGREP \
22864 LD \
22865 NM \
22866 LN_S \
22867 lt_SP2NL \
22868 lt_NL2SP \
22869 reload_flag \
22870 OBJDUMP \
22871 deplibs_check_method \
22872 file_magic_cmd \
22873 AR \
22874 AR_FLAGS \
22875 STRIP \
22876 RANLIB \
22877 CC \
22878 CFLAGS \
22879 compiler \
22880 lt_cv_sys_global_symbol_pipe \
22881 lt_cv_sys_global_symbol_to_cdecl \
22882 lt_cv_sys_global_symbol_to_c_name_address \
22883 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22884 SHELL \
22885 ECHO \
22886 lt_prog_compiler_no_builtin_flag \
22887 lt_prog_compiler_wl \
22888 lt_prog_compiler_pic \
22889 lt_prog_compiler_static \
22890 lt_cv_prog_compiler_c_o \
22891 need_locks \
22892 DSYMUTIL \
22893 NMEDIT \
22894 LIPO \
22895 OTOOL \
22896 OTOOL64 \
22897 shrext_cmds \
22898 export_dynamic_flag_spec \
22899 whole_archive_flag_spec \
22900 compiler_needs_object \
22901 with_gnu_ld \
22902 allow_undefined_flag \
22903 no_undefined_flag \
22904 hardcode_libdir_flag_spec \
22905 hardcode_libdir_flag_spec_ld \
22906 hardcode_libdir_separator \
22907 fix_srcfile_path \
22908 exclude_expsyms \
22909 include_expsyms \
22910 file_list_spec \
22911 variables_saved_for_relink \
22912 libname_spec \
22913 library_names_spec \
22914 soname_spec \
22915 finish_eval \
22916 old_striplib \
22917 striplib; do
22918 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22919 *[\\\\\\\`\\"\\\$]*)
22920 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22923 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22925 esac
22926 done
22928 # Double-quote double-evaled strings.
22929 for var in reload_cmds \
22930 old_postinstall_cmds \
22931 old_postuninstall_cmds \
22932 old_archive_cmds \
22933 extract_expsyms_cmds \
22934 old_archive_from_new_cmds \
22935 old_archive_from_expsyms_cmds \
22936 archive_cmds \
22937 archive_expsym_cmds \
22938 module_cmds \
22939 module_expsym_cmds \
22940 export_symbols_cmds \
22941 prelink_cmds \
22942 postinstall_cmds \
22943 postuninstall_cmds \
22944 finish_cmds \
22945 sys_lib_search_path_spec \
22946 sys_lib_dlsearch_path_spec; do
22947 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22948 *[\\\\\\\`\\"\\\$]*)
22949 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22952 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22954 esac
22955 done
22957 # Fix-up fallback echo if it was mangled by the above quoting rules.
22958 case \$lt_ECHO in
22959 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
22961 esac
22963 ac_aux_dir='$ac_aux_dir'
22964 xsi_shell='$xsi_shell'
22965 lt_shell_append='$lt_shell_append'
22967 # See if we are running on zsh, and set the options which allow our
22968 # commands through without removal of \ escapes INIT.
22969 if test -n "\${ZSH_VERSION+set}" ; then
22970 setopt NO_GLOB_SUBST
22974 PACKAGE='$PACKAGE'
22975 VERSION='$VERSION'
22976 TIMESTAMP='$TIMESTAMP'
22977 RM='$RM'
22978 ofile='$ofile'
22982 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
22983 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
22984 # from automake.
22985 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
22986 # Capture the value of LINGUAS because we need it to compute CATALOGS.
22987 LINGUAS="${LINGUAS-%UNSET%}"
22990 GCC="$GCC"
22991 CC="$CC"
22992 acx_cv_header_stdint="$acx_cv_header_stdint"
22993 acx_cv_type_int8_t="$acx_cv_type_int8_t"
22994 acx_cv_type_int16_t="$acx_cv_type_int16_t"
22995 acx_cv_type_int32_t="$acx_cv_type_int32_t"
22996 acx_cv_type_int64_t="$acx_cv_type_int64_t"
22997 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
22998 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
22999 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
23000 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
23001 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
23002 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
23003 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
23004 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
23005 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
23009 _ACEOF
23013 cat >>$CONFIG_STATUS <<\_ACEOF
23014 for ac_config_target in $ac_config_targets
23016 case "$ac_config_target" in
23017 # Handling of arguments.
23018 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23019 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23020 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
23021 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
23022 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23023 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23024 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
23025 "bfd_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
23026 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23027 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
23028 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23029 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23030 { (exit 1); exit 1; }; };;
23031 esac
23032 done
23034 # If the user did not use the arguments to specify the items to instantiate,
23035 # then the envvar interface is used. Set only those that are not.
23036 # We use the long form for the default assignment because of an extremely
23037 # bizarre bug on SunOS 4.1.3.
23038 if $ac_need_defaults; then
23039 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23040 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23041 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23044 # Have a temporary directory for convenience. Make it in the build tree
23045 # simply because there is no reason to put it here, and in addition,
23046 # creating and moving files from /tmp can sometimes cause problems.
23047 # Create a temporary directory, and hook for its removal unless debugging.
23048 $debug ||
23050 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23051 trap '{ (exit 1); exit 1; }' 1 2 13 15
23054 # Create a (secure) tmp directory for tmp files.
23057 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23058 test -n "$tmp" && test -d "$tmp"
23059 } ||
23061 tmp=./confstat$$-$RANDOM
23062 (umask 077 && mkdir $tmp)
23063 } ||
23065 echo "$me: cannot create a temporary directory in ." >&2
23066 { (exit 1); exit 1; }
23069 _ACEOF
23071 cat >>$CONFIG_STATUS <<_ACEOF
23074 # CONFIG_FILES section.
23077 # No need to generate the scripts if there are no CONFIG_FILES.
23078 # This happens for instance when ./config.status config.h
23079 if test -n "\$CONFIG_FILES"; then
23080 # Protect against being on the right side of a sed subst in config.status.
23081 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23082 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23083 s,@SHELL@,$SHELL,;t t
23084 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23085 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23086 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23087 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23088 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23089 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23090 s,@exec_prefix@,$exec_prefix,;t t
23091 s,@prefix@,$prefix,;t t
23092 s,@program_transform_name@,$program_transform_name,;t t
23093 s,@bindir@,$bindir,;t t
23094 s,@sbindir@,$sbindir,;t t
23095 s,@libexecdir@,$libexecdir,;t t
23096 s,@datadir@,$datadir,;t t
23097 s,@sysconfdir@,$sysconfdir,;t t
23098 s,@sharedstatedir@,$sharedstatedir,;t t
23099 s,@localstatedir@,$localstatedir,;t t
23100 s,@libdir@,$libdir,;t t
23101 s,@includedir@,$includedir,;t t
23102 s,@oldincludedir@,$oldincludedir,;t t
23103 s,@infodir@,$infodir,;t t
23104 s,@mandir@,$mandir,;t t
23105 s,@build_alias@,$build_alias,;t t
23106 s,@host_alias@,$host_alias,;t t
23107 s,@target_alias@,$target_alias,;t t
23108 s,@DEFS@,$DEFS,;t t
23109 s,@ECHO_C@,$ECHO_C,;t t
23110 s,@ECHO_N@,$ECHO_N,;t t
23111 s,@ECHO_T@,$ECHO_T,;t t
23112 s,@LIBS@,$LIBS,;t t
23113 s,@build@,$build,;t t
23114 s,@build_cpu@,$build_cpu,;t t
23115 s,@build_vendor@,$build_vendor,;t t
23116 s,@build_os@,$build_os,;t t
23117 s,@host@,$host,;t t
23118 s,@host_cpu@,$host_cpu,;t t
23119 s,@host_vendor@,$host_vendor,;t t
23120 s,@host_os@,$host_os,;t t
23121 s,@target@,$target,;t t
23122 s,@target_cpu@,$target_cpu,;t t
23123 s,@target_vendor@,$target_vendor,;t t
23124 s,@target_os@,$target_os,;t t
23125 s,@CC@,$CC,;t t
23126 s,@CFLAGS@,$CFLAGS,;t t
23127 s,@LDFLAGS@,$LDFLAGS,;t t
23128 s,@CPPFLAGS@,$CPPFLAGS,;t t
23129 s,@ac_ct_CC@,$ac_ct_CC,;t t
23130 s,@EXEEXT@,$EXEEXT,;t t
23131 s,@OBJEXT@,$OBJEXT,;t t
23132 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23133 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23134 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23135 s,@CYGPATH_W@,$CYGPATH_W,;t t
23136 s,@PACKAGE@,$PACKAGE,;t t
23137 s,@VERSION@,$VERSION,;t t
23138 s,@ACLOCAL@,$ACLOCAL,;t t
23139 s,@AUTOCONF@,$AUTOCONF,;t t
23140 s,@AUTOMAKE@,$AUTOMAKE,;t t
23141 s,@AUTOHEADER@,$AUTOHEADER,;t t
23142 s,@MAKEINFO@,$MAKEINFO,;t t
23143 s,@install_sh@,$install_sh,;t t
23144 s,@STRIP@,$STRIP,;t t
23145 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23146 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23147 s,@mkdir_p@,$mkdir_p,;t t
23148 s,@AWK@,$AWK,;t t
23149 s,@SET_MAKE@,$SET_MAKE,;t t
23150 s,@am__leading_dot@,$am__leading_dot,;t t
23151 s,@AMTAR@,$AMTAR,;t t
23152 s,@am__tar@,$am__tar,;t t
23153 s,@am__untar@,$am__untar,;t t
23154 s,@DEPDIR@,$DEPDIR,;t t
23155 s,@am__include@,$am__include,;t t
23156 s,@am__quote@,$am__quote,;t t
23157 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23158 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23159 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23160 s,@CCDEPMODE@,$CCDEPMODE,;t t
23161 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23162 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23163 s,@AR@,$AR,;t t
23164 s,@ac_ct_AR@,$ac_ct_AR,;t t
23165 s,@RANLIB@,$RANLIB,;t t
23166 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23167 s,@CPP@,$CPP,;t t
23168 s,@EGREP@,$EGREP,;t t
23169 s,@LIBTOOL@,$LIBTOOL,;t t
23170 s,@SED@,$SED,;t t
23171 s,@FGREP@,$FGREP,;t t
23172 s,@GREP@,$GREP,;t t
23173 s,@LD@,$LD,;t t
23174 s,@DUMPBIN@,$DUMPBIN,;t t
23175 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
23176 s,@NM@,$NM,;t t
23177 s,@LN_S@,$LN_S,;t t
23178 s,@OBJDUMP@,$OBJDUMP,;t t
23179 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
23180 s,@lt_ECHO@,$lt_ECHO,;t t
23181 s,@DSYMUTIL@,$DSYMUTIL,;t t
23182 s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
23183 s,@NMEDIT@,$NMEDIT,;t t
23184 s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
23185 s,@LIPO@,$LIPO,;t t
23186 s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
23187 s,@OTOOL@,$OTOOL,;t t
23188 s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
23189 s,@OTOOL64@,$OTOOL64,;t t
23190 s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
23191 s,@DEBUGDIR@,$DEBUGDIR,;t t
23192 s,@PKGVERSION@,$PKGVERSION,;t t
23193 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
23194 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
23195 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
23196 s,@NO_WERROR@,$NO_WERROR,;t t
23197 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23198 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23199 s,@MAINT@,$MAINT,;t t
23200 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
23201 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
23202 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
23203 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
23204 s,@host_noncanonical@,$host_noncanonical,;t t
23205 s,@target_noncanonical@,$target_noncanonical,;t t
23206 s,@bfdlibdir@,$bfdlibdir,;t t
23207 s,@bfdincludedir@,$bfdincludedir,;t t
23208 s,@USE_NLS@,$USE_NLS,;t t
23209 s,@LIBINTL@,$LIBINTL,;t t
23210 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
23211 s,@INCINTL@,$INCINTL,;t t
23212 s,@XGETTEXT@,$XGETTEXT,;t t
23213 s,@GMSGFMT@,$GMSGFMT,;t t
23214 s,@POSUB@,$POSUB,;t t
23215 s,@CATALOGS@,$CATALOGS,;t t
23216 s,@DATADIRNAME@,$DATADIRNAME,;t t
23217 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
23218 s,@GENCAT@,$GENCAT,;t t
23219 s,@CATOBJEXT@,$CATOBJEXT,;t t
23220 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
23221 s,@MSGFMT@,$MSGFMT,;t t
23222 s,@MSGMERGE@,$MSGMERGE,;t t
23223 s,@HDEFINES@,$HDEFINES,;t t
23224 s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
23225 s,@BFD_HOST_64BIT_LONG_LONG@,$BFD_HOST_64BIT_LONG_LONG,;t t
23226 s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
23227 s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
23228 s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
23229 s,@BFD_HOSTPTR_T@,$BFD_HOSTPTR_T,;t t
23230 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
23231 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
23232 s,@COREFILE@,$COREFILE,;t t
23233 s,@COREFLAG@,$COREFLAG,;t t
23234 s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
23235 s,@WIN32LIBADD@,$WIN32LIBADD,;t t
23236 s,@TDEFINES@,$TDEFINES,;t t
23237 s,@wordsize@,$wordsize,;t t
23238 s,@bfd64_libs@,$bfd64_libs,;t t
23239 s,@all_backends@,$all_backends,;t t
23240 s,@bfd_backends@,$bfd_backends,;t t
23241 s,@bfd_machines@,$bfd_machines,;t t
23242 s,@bfd_default_target_size@,$bfd_default_target_size,;t t
23243 s,@bfd_file_ptr@,$bfd_file_ptr,;t t
23244 s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
23245 s,@tdefaults@,$tdefaults,;t t
23246 s,@datarootdir@,$datarootdir,;t t
23247 s,@docdir@,$docdir,;t t
23248 s,@htmldir@,$htmldir,;t t
23249 s,@LIBOBJS@,$LIBOBJS,;t t
23250 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23251 CEOF
23253 _ACEOF
23255 cat >>$CONFIG_STATUS <<\_ACEOF
23256 # Split the substitutions into bite-sized pieces for seds with
23257 # small command number limits, like on Digital OSF/1 and HP-UX.
23258 ac_max_sed_lines=48
23259 ac_sed_frag=1 # Number of current file.
23260 ac_beg=1 # First line for current file.
23261 ac_end=$ac_max_sed_lines # Line after last line for current file.
23262 ac_more_lines=:
23263 ac_sed_cmds=
23264 while $ac_more_lines; do
23265 if test $ac_beg -gt 1; then
23266 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23267 else
23268 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23270 if test ! -s $tmp/subs.frag; then
23271 ac_more_lines=false
23272 else
23273 # The purpose of the label and of the branching condition is to
23274 # speed up the sed processing (if there are no `@' at all, there
23275 # is no need to browse any of the substitutions).
23276 # These are the two extra sed commands mentioned above.
23277 (echo ':t
23278 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23279 if test -z "$ac_sed_cmds"; then
23280 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23281 else
23282 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23284 ac_sed_frag=`expr $ac_sed_frag + 1`
23285 ac_beg=$ac_end
23286 ac_end=`expr $ac_end + $ac_max_sed_lines`
23288 done
23289 if test -z "$ac_sed_cmds"; then
23290 ac_sed_cmds=cat
23292 fi # test -n "$CONFIG_FILES"
23294 _ACEOF
23295 cat >>$CONFIG_STATUS <<\_ACEOF
23296 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23297 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23298 case $ac_file in
23299 - | *:- | *:-:* ) # input from stdin
23300 cat >$tmp/stdin
23301 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23302 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23303 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23304 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23305 * ) ac_file_in=$ac_file.in ;;
23306 esac
23308 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23309 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23310 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23311 X"$ac_file" : 'X\(//\)[^/]' \| \
23312 X"$ac_file" : 'X\(//\)$' \| \
23313 X"$ac_file" : 'X\(/\)' \| \
23314 . : '\(.\)' 2>/dev/null ||
23315 echo X"$ac_file" |
23316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23317 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23318 /^X\(\/\/\)$/{ s//\1/; q; }
23319 /^X\(\/\).*/{ s//\1/; q; }
23320 s/.*/./; q'`
23321 { if $as_mkdir_p; then
23322 mkdir -p "$ac_dir"
23323 else
23324 as_dir="$ac_dir"
23325 as_dirs=
23326 while test ! -d "$as_dir"; do
23327 as_dirs="$as_dir $as_dirs"
23328 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23329 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23330 X"$as_dir" : 'X\(//\)[^/]' \| \
23331 X"$as_dir" : 'X\(//\)$' \| \
23332 X"$as_dir" : 'X\(/\)' \| \
23333 . : '\(.\)' 2>/dev/null ||
23334 echo X"$as_dir" |
23335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23336 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23337 /^X\(\/\/\)$/{ s//\1/; q; }
23338 /^X\(\/\).*/{ s//\1/; q; }
23339 s/.*/./; q'`
23340 done
23341 test ! -n "$as_dirs" || mkdir $as_dirs
23342 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23343 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23344 { (exit 1); exit 1; }; }; }
23346 ac_builddir=.
23348 if test "$ac_dir" != .; then
23349 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23350 # A "../" for each directory in $ac_dir_suffix.
23351 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23352 else
23353 ac_dir_suffix= ac_top_builddir=
23356 case $srcdir in
23357 .) # No --srcdir option. We are building in place.
23358 ac_srcdir=.
23359 if test -z "$ac_top_builddir"; then
23360 ac_top_srcdir=.
23361 else
23362 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23363 fi ;;
23364 [\\/]* | ?:[\\/]* ) # Absolute path.
23365 ac_srcdir=$srcdir$ac_dir_suffix;
23366 ac_top_srcdir=$srcdir ;;
23367 *) # Relative path.
23368 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23369 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23370 esac
23372 # Do not use `cd foo && pwd` to compute absolute paths, because
23373 # the directories may not exist.
23374 case `pwd` in
23375 .) ac_abs_builddir="$ac_dir";;
23377 case "$ac_dir" in
23378 .) ac_abs_builddir=`pwd`;;
23379 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23380 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23381 esac;;
23382 esac
23383 case $ac_abs_builddir in
23384 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23386 case ${ac_top_builddir}. in
23387 .) ac_abs_top_builddir=$ac_abs_builddir;;
23388 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23389 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23390 esac;;
23391 esac
23392 case $ac_abs_builddir in
23393 .) ac_abs_srcdir=$ac_srcdir;;
23395 case $ac_srcdir in
23396 .) ac_abs_srcdir=$ac_abs_builddir;;
23397 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23398 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23399 esac;;
23400 esac
23401 case $ac_abs_builddir in
23402 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23404 case $ac_top_srcdir in
23405 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23406 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23407 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23408 esac;;
23409 esac
23412 case $INSTALL in
23413 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23414 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23415 esac
23417 if test x"$ac_file" != x-; then
23418 { echo "$as_me:$LINENO: creating $ac_file" >&5
23419 echo "$as_me: creating $ac_file" >&6;}
23420 rm -f "$ac_file"
23422 # Let's still pretend it is `configure' which instantiates (i.e., don't
23423 # use $as_me), people would be surprised to read:
23424 # /* config.h. Generated by config.status. */
23425 if test x"$ac_file" = x-; then
23426 configure_input=
23427 else
23428 configure_input="$ac_file. "
23430 configure_input=$configure_input"Generated from `echo $ac_file_in |
23431 sed 's,.*/,,'` by configure."
23433 # First look for the input files in the build tree, otherwise in the
23434 # src tree.
23435 ac_file_inputs=`IFS=:
23436 for f in $ac_file_in; do
23437 case $f in
23438 -) echo $tmp/stdin ;;
23439 [\\/$]*)
23440 # Absolute (can't be DOS-style, as IFS=:)
23441 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23442 echo "$as_me: error: cannot find input file: $f" >&2;}
23443 { (exit 1); exit 1; }; }
23444 echo "$f";;
23445 *) # Relative
23446 if test -f "$f"; then
23447 # Build tree
23448 echo "$f"
23449 elif test -f "$srcdir/$f"; then
23450 # Source tree
23451 echo "$srcdir/$f"
23452 else
23453 # /dev/null tree
23454 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23455 echo "$as_me: error: cannot find input file: $f" >&2;}
23456 { (exit 1); exit 1; }; }
23457 fi;;
23458 esac
23459 done` || { (exit 1); exit 1; }
23460 _ACEOF
23461 cat >>$CONFIG_STATUS <<_ACEOF
23462 sed "$ac_vpsub
23463 $extrasub
23464 _ACEOF
23465 cat >>$CONFIG_STATUS <<\_ACEOF
23467 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23468 s,@configure_input@,$configure_input,;t t
23469 s,@srcdir@,$ac_srcdir,;t t
23470 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23471 s,@top_srcdir@,$ac_top_srcdir,;t t
23472 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23473 s,@builddir@,$ac_builddir,;t t
23474 s,@abs_builddir@,$ac_abs_builddir,;t t
23475 s,@top_builddir@,$ac_top_builddir,;t t
23476 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23477 s,@INSTALL@,$ac_INSTALL,;t t
23478 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23479 rm -f $tmp/stdin
23480 if test x"$ac_file" != x-; then
23481 mv $tmp/out $ac_file
23482 else
23483 cat $tmp/out
23484 rm -f $tmp/out
23487 done
23488 _ACEOF
23489 cat >>$CONFIG_STATUS <<\_ACEOF
23492 # CONFIG_HEADER section.
23495 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23496 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23498 # ac_d sets the value in "#define NAME VALUE" lines.
23499 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23500 ac_dB='[ ].*$,\1#\2'
23501 ac_dC=' '
23502 ac_dD=',;t'
23503 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23504 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23505 ac_uB='$,\1#\2define\3'
23506 ac_uC=' '
23507 ac_uD=',;t'
23509 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23510 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23511 case $ac_file in
23512 - | *:- | *:-:* ) # input from stdin
23513 cat >$tmp/stdin
23514 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23515 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23516 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23517 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23518 * ) ac_file_in=$ac_file.in ;;
23519 esac
23521 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23522 echo "$as_me: creating $ac_file" >&6;}
23524 # First look for the input files in the build tree, otherwise in the
23525 # src tree.
23526 ac_file_inputs=`IFS=:
23527 for f in $ac_file_in; do
23528 case $f in
23529 -) echo $tmp/stdin ;;
23530 [\\/$]*)
23531 # Absolute (can't be DOS-style, as IFS=:)
23532 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23533 echo "$as_me: error: cannot find input file: $f" >&2;}
23534 { (exit 1); exit 1; }; }
23535 # Do quote $f, to prevent DOS paths from being IFS'd.
23536 echo "$f";;
23537 *) # Relative
23538 if test -f "$f"; then
23539 # Build tree
23540 echo "$f"
23541 elif test -f "$srcdir/$f"; then
23542 # Source tree
23543 echo "$srcdir/$f"
23544 else
23545 # /dev/null tree
23546 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23547 echo "$as_me: error: cannot find input file: $f" >&2;}
23548 { (exit 1); exit 1; }; }
23549 fi;;
23550 esac
23551 done` || { (exit 1); exit 1; }
23552 # Remove the trailing spaces.
23553 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23555 _ACEOF
23557 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23558 # `conftest.undefs', that substitutes the proper values into
23559 # config.h.in to produce config.h. The first handles `#define'
23560 # templates, and the second `#undef' templates.
23561 # And first: Protect against being on the right side of a sed subst in
23562 # config.status. Protect against being in an unquoted here document
23563 # in config.status.
23564 rm -f conftest.defines conftest.undefs
23565 # Using a here document instead of a string reduces the quoting nightmare.
23566 # Putting comments in sed scripts is not portable.
23568 # `end' is used to avoid that the second main sed command (meant for
23569 # 0-ary CPP macros) applies to n-ary macro definitions.
23570 # See the Autoconf documentation for `clear'.
23571 cat >confdef2sed.sed <<\_ACEOF
23572 s/[\\&,]/\\&/g
23573 s,[\\$`],\\&,g
23574 t clear
23575 : clear
23576 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23577 t end
23578 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23579 : end
23580 _ACEOF
23581 # If some macros were called several times there might be several times
23582 # the same #defines, which is useless. Nevertheless, we may not want to
23583 # sort them, since we want the *last* AC-DEFINE to be honored.
23584 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23585 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23586 rm -f confdef2sed.sed
23588 # This sed command replaces #undef with comments. This is necessary, for
23589 # example, in the case of _POSIX_SOURCE, which is predefined and required
23590 # on some systems where configure will not decide to define it.
23591 cat >>conftest.undefs <<\_ACEOF
23592 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23593 _ACEOF
23595 # Break up conftest.defines because some shells have a limit on the size
23596 # of here documents, and old seds have small limits too (100 cmds).
23597 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23598 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23599 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23600 echo ' :' >>$CONFIG_STATUS
23601 rm -f conftest.tail
23602 while grep . conftest.defines >/dev/null
23604 # Write a limited-size here document to $tmp/defines.sed.
23605 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23606 # Speed up: don't consider the non `#define' lines.
23607 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23608 # Work around the forget-to-reset-the-flag bug.
23609 echo 't clr' >>$CONFIG_STATUS
23610 echo ': clr' >>$CONFIG_STATUS
23611 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23612 echo 'CEOF
23613 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23614 rm -f $tmp/in
23615 mv $tmp/out $tmp/in
23616 ' >>$CONFIG_STATUS
23617 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23618 rm -f conftest.defines
23619 mv conftest.tail conftest.defines
23620 done
23621 rm -f conftest.defines
23622 echo ' fi # grep' >>$CONFIG_STATUS
23623 echo >>$CONFIG_STATUS
23625 # Break up conftest.undefs because some shells have a limit on the size
23626 # of here documents, and old seds have small limits too (100 cmds).
23627 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23628 rm -f conftest.tail
23629 while grep . conftest.undefs >/dev/null
23631 # Write a limited-size here document to $tmp/undefs.sed.
23632 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23633 # Speed up: don't consider the non `#undef'
23634 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23635 # Work around the forget-to-reset-the-flag bug.
23636 echo 't clr' >>$CONFIG_STATUS
23637 echo ': clr' >>$CONFIG_STATUS
23638 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23639 echo 'CEOF
23640 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23641 rm -f $tmp/in
23642 mv $tmp/out $tmp/in
23643 ' >>$CONFIG_STATUS
23644 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23645 rm -f conftest.undefs
23646 mv conftest.tail conftest.undefs
23647 done
23648 rm -f conftest.undefs
23650 cat >>$CONFIG_STATUS <<\_ACEOF
23651 # Let's still pretend it is `configure' which instantiates (i.e., don't
23652 # use $as_me), people would be surprised to read:
23653 # /* config.h. Generated by config.status. */
23654 if test x"$ac_file" = x-; then
23655 echo "/* Generated by configure. */" >$tmp/config.h
23656 else
23657 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23659 cat $tmp/in >>$tmp/config.h
23660 rm -f $tmp/in
23661 if test x"$ac_file" != x-; then
23662 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23663 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23664 echo "$as_me: $ac_file is unchanged" >&6;}
23665 else
23666 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23667 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23668 X"$ac_file" : 'X\(//\)[^/]' \| \
23669 X"$ac_file" : 'X\(//\)$' \| \
23670 X"$ac_file" : 'X\(/\)' \| \
23671 . : '\(.\)' 2>/dev/null ||
23672 echo X"$ac_file" |
23673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23674 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23675 /^X\(\/\/\)$/{ s//\1/; q; }
23676 /^X\(\/\).*/{ s//\1/; q; }
23677 s/.*/./; q'`
23678 { if $as_mkdir_p; then
23679 mkdir -p "$ac_dir"
23680 else
23681 as_dir="$ac_dir"
23682 as_dirs=
23683 while test ! -d "$as_dir"; do
23684 as_dirs="$as_dir $as_dirs"
23685 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23686 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23687 X"$as_dir" : 'X\(//\)[^/]' \| \
23688 X"$as_dir" : 'X\(//\)$' \| \
23689 X"$as_dir" : 'X\(/\)' \| \
23690 . : '\(.\)' 2>/dev/null ||
23691 echo X"$as_dir" |
23692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23693 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23694 /^X\(\/\/\)$/{ s//\1/; q; }
23695 /^X\(\/\).*/{ s//\1/; q; }
23696 s/.*/./; q'`
23697 done
23698 test ! -n "$as_dirs" || mkdir $as_dirs
23699 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23700 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23701 { (exit 1); exit 1; }; }; }
23703 rm -f $ac_file
23704 mv $tmp/config.h $ac_file
23706 else
23707 cat $tmp/config.h
23708 rm -f $tmp/config.h
23710 # Compute $ac_file's index in $config_headers.
23711 _am_stamp_count=1
23712 for _am_header in $config_headers :; do
23713 case $_am_header in
23714 $ac_file | $ac_file:* )
23715 break ;;
23717 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23718 esac
23719 done
23720 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23721 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23722 X$ac_file : 'X\(//\)[^/]' \| \
23723 X$ac_file : 'X\(//\)$' \| \
23724 X$ac_file : 'X\(/\)' \| \
23725 . : '\(.\)' 2>/dev/null ||
23726 echo X$ac_file |
23727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23728 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23729 /^X\(\/\/\)$/{ s//\1/; q; }
23730 /^X\(\/\).*/{ s//\1/; q; }
23731 s/.*/./; q'`/stamp-h$_am_stamp_count
23732 done
23733 _ACEOF
23734 cat >>$CONFIG_STATUS <<\_ACEOF
23737 # CONFIG_COMMANDS section.
23739 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23740 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23741 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23742 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23743 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23744 X"$ac_dest" : 'X\(//\)[^/]' \| \
23745 X"$ac_dest" : 'X\(//\)$' \| \
23746 X"$ac_dest" : 'X\(/\)' \| \
23747 . : '\(.\)' 2>/dev/null ||
23748 echo X"$ac_dest" |
23749 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23750 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23751 /^X\(\/\/\)$/{ s//\1/; q; }
23752 /^X\(\/\).*/{ s//\1/; q; }
23753 s/.*/./; q'`
23754 { if $as_mkdir_p; then
23755 mkdir -p "$ac_dir"
23756 else
23757 as_dir="$ac_dir"
23758 as_dirs=
23759 while test ! -d "$as_dir"; do
23760 as_dirs="$as_dir $as_dirs"
23761 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23762 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23763 X"$as_dir" : 'X\(//\)[^/]' \| \
23764 X"$as_dir" : 'X\(//\)$' \| \
23765 X"$as_dir" : 'X\(/\)' \| \
23766 . : '\(.\)' 2>/dev/null ||
23767 echo X"$as_dir" |
23768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23769 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23770 /^X\(\/\/\)$/{ s//\1/; q; }
23771 /^X\(\/\).*/{ s//\1/; q; }
23772 s/.*/./; q'`
23773 done
23774 test ! -n "$as_dirs" || mkdir $as_dirs
23775 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23776 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23777 { (exit 1); exit 1; }; }; }
23779 ac_builddir=.
23781 if test "$ac_dir" != .; then
23782 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23783 # A "../" for each directory in $ac_dir_suffix.
23784 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23785 else
23786 ac_dir_suffix= ac_top_builddir=
23789 case $srcdir in
23790 .) # No --srcdir option. We are building in place.
23791 ac_srcdir=.
23792 if test -z "$ac_top_builddir"; then
23793 ac_top_srcdir=.
23794 else
23795 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23796 fi ;;
23797 [\\/]* | ?:[\\/]* ) # Absolute path.
23798 ac_srcdir=$srcdir$ac_dir_suffix;
23799 ac_top_srcdir=$srcdir ;;
23800 *) # Relative path.
23801 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23802 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23803 esac
23805 # Do not use `cd foo && pwd` to compute absolute paths, because
23806 # the directories may not exist.
23807 case `pwd` in
23808 .) ac_abs_builddir="$ac_dir";;
23810 case "$ac_dir" in
23811 .) ac_abs_builddir=`pwd`;;
23812 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23813 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23814 esac;;
23815 esac
23816 case $ac_abs_builddir in
23817 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23819 case ${ac_top_builddir}. in
23820 .) ac_abs_top_builddir=$ac_abs_builddir;;
23821 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23822 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23823 esac;;
23824 esac
23825 case $ac_abs_builddir in
23826 .) ac_abs_srcdir=$ac_srcdir;;
23828 case $ac_srcdir in
23829 .) ac_abs_srcdir=$ac_abs_builddir;;
23830 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23831 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23832 esac;;
23833 esac
23834 case $ac_abs_builddir in
23835 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23837 case $ac_top_srcdir in
23838 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23839 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23840 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23841 esac;;
23842 esac
23845 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23846 echo "$as_me: executing $ac_dest commands" >&6;}
23847 case $ac_dest in
23848 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23849 # Strip MF so we end up with the name of the file.
23850 mf=`echo "$mf" | sed -e 's/:.*$//'`
23851 # Check whether this is an Automake generated Makefile or not.
23852 # We used to match only the files named `Makefile.in', but
23853 # some people rename them; so instead we look at the file content.
23854 # Grep'ing the first line is not enough: some people post-process
23855 # each Makefile.in and add a new line on top of each file to say so.
23856 # So let's grep whole file.
23857 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23858 dirpart=`(dirname "$mf") 2>/dev/null ||
23859 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23860 X"$mf" : 'X\(//\)[^/]' \| \
23861 X"$mf" : 'X\(//\)$' \| \
23862 X"$mf" : 'X\(/\)' \| \
23863 . : '\(.\)' 2>/dev/null ||
23864 echo X"$mf" |
23865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23867 /^X\(\/\/\)$/{ s//\1/; q; }
23868 /^X\(\/\).*/{ s//\1/; q; }
23869 s/.*/./; q'`
23870 else
23871 continue
23873 # Extract the definition of DEPDIR, am__include, and am__quote
23874 # from the Makefile without running `make'.
23875 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23876 test -z "$DEPDIR" && continue
23877 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23878 test -z "am__include" && continue
23879 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23880 # When using ansi2knr, U may be empty or an underscore; expand it
23881 U=`sed -n 's/^U = //p' < "$mf"`
23882 # Find all dependency output files, they are included files with
23883 # $(DEPDIR) in their names. We invoke sed twice because it is the
23884 # simplest approach to changing $(DEPDIR) to its actual value in the
23885 # expansion.
23886 for file in `sed -n "
23887 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23888 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23889 # Make sure the directory exists.
23890 test -f "$dirpart/$file" && continue
23891 fdir=`(dirname "$file") 2>/dev/null ||
23892 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23893 X"$file" : 'X\(//\)[^/]' \| \
23894 X"$file" : 'X\(//\)$' \| \
23895 X"$file" : 'X\(/\)' \| \
23896 . : '\(.\)' 2>/dev/null ||
23897 echo X"$file" |
23898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23899 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23900 /^X\(\/\/\)$/{ s//\1/; q; }
23901 /^X\(\/\).*/{ s//\1/; q; }
23902 s/.*/./; q'`
23903 { if $as_mkdir_p; then
23904 mkdir -p $dirpart/$fdir
23905 else
23906 as_dir=$dirpart/$fdir
23907 as_dirs=
23908 while test ! -d "$as_dir"; do
23909 as_dirs="$as_dir $as_dirs"
23910 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23911 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23912 X"$as_dir" : 'X\(//\)[^/]' \| \
23913 X"$as_dir" : 'X\(//\)$' \| \
23914 X"$as_dir" : 'X\(/\)' \| \
23915 . : '\(.\)' 2>/dev/null ||
23916 echo X"$as_dir" |
23917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23918 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23919 /^X\(\/\/\)$/{ s//\1/; q; }
23920 /^X\(\/\).*/{ s//\1/; q; }
23921 s/.*/./; q'`
23922 done
23923 test ! -n "$as_dirs" || mkdir $as_dirs
23924 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23925 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23926 { (exit 1); exit 1; }; }; }
23928 # echo "creating $dirpart/$file"
23929 echo '# dummy' > "$dirpart/$file"
23930 done
23931 done
23933 libtool )
23935 # See if we are running on zsh, and set the options which allow our
23936 # commands through without removal of \ escapes.
23937 if test -n "${ZSH_VERSION+set}" ; then
23938 setopt NO_GLOB_SUBST
23941 cfgfile="${ofile}T"
23942 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23943 $RM "$cfgfile"
23945 cat <<_LT_EOF >> "$cfgfile"
23946 #! $SHELL
23948 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
23949 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
23950 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23951 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23953 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23954 # 2006, 2007, 2008 Free Software Foundation, Inc.
23955 # Written by Gordon Matzigkeit, 1996
23957 # This file is part of GNU Libtool.
23959 # GNU Libtool is free software; you can redistribute it and/or
23960 # modify it under the terms of the GNU General Public License as
23961 # published by the Free Software Foundation; either version 2 of
23962 # the License, or (at your option) any later version.
23964 # As a special exception to the GNU General Public License,
23965 # if you distribute this file as part of a program or library that
23966 # is built using GNU Libtool, you may include this file under the
23967 # same distribution terms that you use for the rest of that program.
23969 # GNU Libtool is distributed in the hope that it will be useful,
23970 # but WITHOUT ANY WARRANTY; without even the implied warranty of
23971 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23972 # GNU General Public License for more details.
23974 # You should have received a copy of the GNU General Public License
23975 # along with GNU Libtool; see the file COPYING. If not, a copy
23976 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
23977 # obtained by writing to the Free Software Foundation, Inc.,
23978 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23981 # The names of the tagged configurations supported by this script.
23982 available_tags=""
23984 # ### BEGIN LIBTOOL CONFIG
23986 # Whether or not to build shared libraries.
23987 build_libtool_libs=$enable_shared
23989 # Which release of libtool.m4 was used?
23990 macro_version=$macro_version
23991 macro_revision=$macro_revision
23993 # Whether or not to build static libraries.
23994 build_old_libs=$enable_static
23996 # What type of objects to build.
23997 pic_mode=$pic_mode
23999 # Whether or not to optimize for fast installation.
24000 fast_install=$enable_fast_install
24002 # The host system.
24003 host_alias=$host_alias
24004 host=$host
24005 host_os=$host_os
24007 # The build system.
24008 build_alias=$build_alias
24009 build=$build
24010 build_os=$build_os
24012 # A sed program that does not truncate output.
24013 SED=$lt_SED
24015 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24016 Xsed="\$SED -e 1s/^X//"
24018 # A grep program that handles long lines.
24019 GREP=$lt_GREP
24021 # An ERE matcher.
24022 EGREP=$lt_EGREP
24024 # A literal string matcher.
24025 FGREP=$lt_FGREP
24027 # A BSD- or MS-compatible name lister.
24028 NM=$lt_NM
24030 # Whether we need soft or hard links.
24031 LN_S=$lt_LN_S
24033 # What is the maximum length of a command?
24034 max_cmd_len=$max_cmd_len
24036 # Object file suffix (normally "o").
24037 objext=$ac_objext
24039 # Executable file suffix (normally "").
24040 exeext=$exeext
24042 # whether the shell understands "unset".
24043 lt_unset=$lt_unset
24045 # turn spaces into newlines.
24046 SP2NL=$lt_lt_SP2NL
24048 # turn newlines into spaces.
24049 NL2SP=$lt_lt_NL2SP
24051 # How to create reloadable object files.
24052 reload_flag=$lt_reload_flag
24053 reload_cmds=$lt_reload_cmds
24055 # An object symbol dumper.
24056 OBJDUMP=$lt_OBJDUMP
24058 # Method to check whether dependent libraries are shared objects.
24059 deplibs_check_method=$lt_deplibs_check_method
24061 # Command to use when deplibs_check_method == "file_magic".
24062 file_magic_cmd=$lt_file_magic_cmd
24064 # The archiver.
24065 AR=$lt_AR
24066 AR_FLAGS=$lt_AR_FLAGS
24068 # A symbol stripping program.
24069 STRIP=$lt_STRIP
24071 # Commands used to install an old-style archive.
24072 RANLIB=$lt_RANLIB
24073 old_postinstall_cmds=$lt_old_postinstall_cmds
24074 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24076 # A C compiler.
24077 LTCC=$lt_CC
24079 # LTCC compiler flags.
24080 LTCFLAGS=$lt_CFLAGS
24082 # Take the output of nm and produce a listing of raw symbols and C names.
24083 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24085 # Transform the output of nm in a proper C declaration.
24086 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24088 # Transform the output of nm in a C name address pair.
24089 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24091 # Transform the output of nm in a C name address pair when lib prefix is needed.
24092 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24094 # The name of the directory that contains temporary libtool files.
24095 objdir=$objdir
24097 # Shell to use when invoking shell scripts.
24098 SHELL=$lt_SHELL
24100 # An echo program that does not interpret backslashes.
24101 ECHO=$lt_ECHO
24103 # Used to examine libraries when file_magic_cmd begins with "file".
24104 MAGIC_CMD=$MAGIC_CMD
24106 # Must we lock files when doing compilation?
24107 need_locks=$lt_need_locks
24109 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24110 DSYMUTIL=$lt_DSYMUTIL
24112 # Tool to change global to local symbols on Mac OS X.
24113 NMEDIT=$lt_NMEDIT
24115 # Tool to manipulate fat objects and archives on Mac OS X.
24116 LIPO=$lt_LIPO
24118 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24119 OTOOL=$lt_OTOOL
24121 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24122 OTOOL64=$lt_OTOOL64
24124 # Old archive suffix (normally "a").
24125 libext=$libext
24127 # Shared library suffix (normally ".so").
24128 shrext_cmds=$lt_shrext_cmds
24130 # The commands to extract the exported symbol list from a shared archive.
24131 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24133 # Variables whose values should be saved in libtool wrapper scripts and
24134 # restored at link time.
24135 variables_saved_for_relink=$lt_variables_saved_for_relink
24137 # Do we need the "lib" prefix for modules?
24138 need_lib_prefix=$need_lib_prefix
24140 # Do we need a version for libraries?
24141 need_version=$need_version
24143 # Library versioning type.
24144 version_type=$version_type
24146 # Shared library runtime path variable.
24147 runpath_var=$runpath_var
24149 # Shared library path variable.
24150 shlibpath_var=$shlibpath_var
24152 # Is shlibpath searched before the hard-coded library search path?
24153 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24155 # Format of library name prefix.
24156 libname_spec=$lt_libname_spec
24158 # List of archive names. First name is the real one, the rest are links.
24159 # The last name is the one that the linker finds with -lNAME
24160 library_names_spec=$lt_library_names_spec
24162 # The coded name of the library, if different from the real name.
24163 soname_spec=$lt_soname_spec
24165 # Command to use after installation of a shared archive.
24166 postinstall_cmds=$lt_postinstall_cmds
24168 # Command to use after uninstallation of a shared archive.
24169 postuninstall_cmds=$lt_postuninstall_cmds
24171 # Commands used to finish a libtool library installation in a directory.
24172 finish_cmds=$lt_finish_cmds
24174 # As "finish_cmds", except a single script fragment to be evaled but
24175 # not shown.
24176 finish_eval=$lt_finish_eval
24178 # Whether we should hardcode library paths into libraries.
24179 hardcode_into_libs=$hardcode_into_libs
24181 # Compile-time system search path for libraries.
24182 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24184 # Run-time system search path for libraries.
24185 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24187 # Whether dlopen is supported.
24188 dlopen_support=$enable_dlopen
24190 # Whether dlopen of programs is supported.
24191 dlopen_self=$enable_dlopen_self
24193 # Whether dlopen of statically linked programs is supported.
24194 dlopen_self_static=$enable_dlopen_self_static
24196 # Commands to strip libraries.
24197 old_striplib=$lt_old_striplib
24198 striplib=$lt_striplib
24201 # The linker used to build libraries.
24202 LD=$lt_LD
24204 # Commands used to build an old-style archive.
24205 old_archive_cmds=$lt_old_archive_cmds
24207 # A language specific compiler.
24208 CC=$lt_compiler
24210 # Is the compiler the GNU compiler?
24211 with_gcc=$GCC
24213 # Compiler flag to turn off builtin functions.
24214 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24216 # How to pass a linker flag through the compiler.
24217 wl=$lt_lt_prog_compiler_wl
24219 # Additional compiler flags for building library objects.
24220 pic_flag=$lt_lt_prog_compiler_pic
24222 # Compiler flag to prevent dynamic linking.
24223 link_static_flag=$lt_lt_prog_compiler_static
24225 # Does compiler simultaneously support -c and -o options?
24226 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24228 # Whether or not to add -lc for building shared libraries.
24229 build_libtool_need_lc=$archive_cmds_need_lc
24231 # Whether or not to disallow shared libs when runtime libs are static.
24232 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24234 # Compiler flag to allow reflexive dlopens.
24235 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24237 # Compiler flag to generate shared objects directly from archives.
24238 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24240 # Whether the compiler copes with passing no objects directly.
24241 compiler_needs_object=$lt_compiler_needs_object
24243 # Create an old-style archive from a shared archive.
24244 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24246 # Create a temporary old-style archive to link instead of a shared archive.
24247 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24249 # Commands used to build a shared archive.
24250 archive_cmds=$lt_archive_cmds
24251 archive_expsym_cmds=$lt_archive_expsym_cmds
24253 # Commands used to build a loadable module if different from building
24254 # a shared archive.
24255 module_cmds=$lt_module_cmds
24256 module_expsym_cmds=$lt_module_expsym_cmds
24258 # Whether we are building with GNU ld or not.
24259 with_gnu_ld=$lt_with_gnu_ld
24261 # Flag that allows shared libraries with undefined symbols to be built.
24262 allow_undefined_flag=$lt_allow_undefined_flag
24264 # Flag that enforces no undefined symbols.
24265 no_undefined_flag=$lt_no_undefined_flag
24267 # Flag to hardcode \$libdir into a binary during linking.
24268 # This must work even if \$libdir does not exist
24269 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24271 # If ld is used when linking, flag to hardcode \$libdir into a binary
24272 # during linking. This must work even if \$libdir does not exist.
24273 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
24275 # Whether we need a single "-rpath" flag with a separated argument.
24276 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24278 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24279 # DIR into the resulting binary.
24280 hardcode_direct=$hardcode_direct
24282 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24283 # DIR into the resulting binary and the resulting library dependency is
24284 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24285 # library is relocated.
24286 hardcode_direct_absolute=$hardcode_direct_absolute
24288 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24289 # into the resulting binary.
24290 hardcode_minus_L=$hardcode_minus_L
24292 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24293 # into the resulting binary.
24294 hardcode_shlibpath_var=$hardcode_shlibpath_var
24296 # Set to "yes" if building a shared library automatically hardcodes DIR
24297 # into the library and all subsequent libraries and executables linked
24298 # against it.
24299 hardcode_automatic=$hardcode_automatic
24301 # Set to yes if linker adds runtime paths of dependent libraries
24302 # to runtime path list.
24303 inherit_rpath=$inherit_rpath
24305 # Whether libtool must link a program against all its dependency libraries.
24306 link_all_deplibs=$link_all_deplibs
24308 # Fix the shell variable \$srcfile for the compiler.
24309 fix_srcfile_path=$lt_fix_srcfile_path
24311 # Set to "yes" if exported symbols are required.
24312 always_export_symbols=$always_export_symbols
24314 # The commands to list exported symbols.
24315 export_symbols_cmds=$lt_export_symbols_cmds
24317 # Symbols that should not be listed in the preloaded symbols.
24318 exclude_expsyms=$lt_exclude_expsyms
24320 # Symbols that must always be exported.
24321 include_expsyms=$lt_include_expsyms
24323 # Commands necessary for linking programs (against libraries) with templates.
24324 prelink_cmds=$lt_prelink_cmds
24326 # Specify filename containing input files.
24327 file_list_spec=$lt_file_list_spec
24329 # How to hardcode a shared library path into an executable.
24330 hardcode_action=$hardcode_action
24332 # ### END LIBTOOL CONFIG
24334 _LT_EOF
24336 case $host_os in
24337 aix3*)
24338 cat <<\_LT_EOF >> "$cfgfile"
24339 # AIX sometimes has problems with the GCC collect2 program. For some
24340 # reason, if we set the COLLECT_NAMES environment variable, the problems
24341 # vanish in a puff of smoke.
24342 if test "X${COLLECT_NAMES+set}" != Xset; then
24343 COLLECT_NAMES=
24344 export COLLECT_NAMES
24346 _LT_EOF
24348 esac
24351 ltmain="$ac_aux_dir/ltmain.sh"
24354 # We use sed instead of cat because bash on DJGPP gets confused if
24355 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24356 # text mode, it properly converts lines to CR/LF. This bash problem
24357 # is reportedly fixed, but why not run on old versions too?
24358 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
24359 || (rm -f "$cfgfile"; exit 1)
24361 case $xsi_shell in
24362 yes)
24363 cat << \_LT_EOF >> "$cfgfile"
24365 # func_dirname file append nondir_replacement
24366 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
24367 # otherwise set result to NONDIR_REPLACEMENT.
24368 func_dirname ()
24370 case ${1} in
24371 */*) func_dirname_result="${1%/*}${2}" ;;
24372 * ) func_dirname_result="${3}" ;;
24373 esac
24376 # func_basename file
24377 func_basename ()
24379 func_basename_result="${1##*/}"
24382 # func_dirname_and_basename file append nondir_replacement
24383 # perform func_basename and func_dirname in a single function
24384 # call:
24385 # dirname: Compute the dirname of FILE. If nonempty,
24386 # add APPEND to the result, otherwise set result
24387 # to NONDIR_REPLACEMENT.
24388 # value returned in "$func_dirname_result"
24389 # basename: Compute filename of FILE.
24390 # value retuned in "$func_basename_result"
24391 # Implementation must be kept synchronized with func_dirname
24392 # and func_basename. For efficiency, we do not delegate to
24393 # those functions but instead duplicate the functionality here.
24394 func_dirname_and_basename ()
24396 case ${1} in
24397 */*) func_dirname_result="${1%/*}${2}" ;;
24398 * ) func_dirname_result="${3}" ;;
24399 esac
24400 func_basename_result="${1##*/}"
24403 # func_stripname prefix suffix name
24404 # strip PREFIX and SUFFIX off of NAME.
24405 # PREFIX and SUFFIX must not contain globbing or regex special
24406 # characters, hashes, percent signs, but SUFFIX may contain a leading
24407 # dot (in which case that matches only a dot).
24408 func_stripname ()
24410 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
24411 # positional parameters, so assign one to ordinary parameter first.
24412 func_stripname_result=${3}
24413 func_stripname_result=${func_stripname_result#"${1}"}
24414 func_stripname_result=${func_stripname_result%"${2}"}
24417 # func_opt_split
24418 func_opt_split ()
24420 func_opt_split_opt=${1%%=*}
24421 func_opt_split_arg=${1#*=}
24424 # func_lo2o object
24425 func_lo2o ()
24427 case ${1} in
24428 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
24429 *) func_lo2o_result=${1} ;;
24430 esac
24433 # func_xform libobj-or-source
24434 func_xform ()
24436 func_xform_result=${1%.*}.lo
24439 # func_arith arithmetic-term...
24440 func_arith ()
24442 func_arith_result=$(( $* ))
24445 # func_len string
24446 # STRING may not start with a hyphen.
24447 func_len ()
24449 func_len_result=${#1}
24452 _LT_EOF
24454 *) # Bourne compatible functions.
24455 cat << \_LT_EOF >> "$cfgfile"
24457 # func_dirname file append nondir_replacement
24458 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
24459 # otherwise set result to NONDIR_REPLACEMENT.
24460 func_dirname ()
24462 # Extract subdirectory from the argument.
24463 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
24464 if test "X$func_dirname_result" = "X${1}"; then
24465 func_dirname_result="${3}"
24466 else
24467 func_dirname_result="$func_dirname_result${2}"
24471 # func_basename file
24472 func_basename ()
24474 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
24478 # func_stripname prefix suffix name
24479 # strip PREFIX and SUFFIX off of NAME.
24480 # PREFIX and SUFFIX must not contain globbing or regex special
24481 # characters, hashes, percent signs, but SUFFIX may contain a leading
24482 # dot (in which case that matches only a dot).
24483 # func_strip_suffix prefix name
24484 func_stripname ()
24486 case ${2} in
24487 .*) func_stripname_result=`$ECHO "X${3}" \
24488 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
24489 *) func_stripname_result=`$ECHO "X${3}" \
24490 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
24491 esac
24494 # sed scripts:
24495 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
24496 my_sed_long_arg='1s/^-[^=]*=//'
24498 # func_opt_split
24499 func_opt_split ()
24501 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
24502 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
24505 # func_lo2o object
24506 func_lo2o ()
24508 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
24511 # func_xform libobj-or-source
24512 func_xform ()
24514 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
24517 # func_arith arithmetic-term...
24518 func_arith ()
24520 func_arith_result=`expr "$@"`
24523 # func_len string
24524 # STRING may not start with a hyphen.
24525 func_len ()
24527 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
24530 _LT_EOF
24531 esac
24533 case $lt_shell_append in
24534 yes)
24535 cat << \_LT_EOF >> "$cfgfile"
24537 # func_append var value
24538 # Append VALUE to the end of shell variable VAR.
24539 func_append ()
24541 eval "$1+=\$2"
24543 _LT_EOF
24546 cat << \_LT_EOF >> "$cfgfile"
24548 # func_append var value
24549 # Append VALUE to the end of shell variable VAR.
24550 func_append ()
24552 eval "$1=\$$1\$2"
24555 _LT_EOF
24557 esac
24560 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
24561 || (rm -f "$cfgfile"; exit 1)
24563 mv -f "$cfgfile" "$ofile" ||
24564 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24565 chmod +x "$ofile"
24568 default-1 )
24569 for ac_file in $CONFIG_FILES; do
24570 # Support "outfile[:infile[:infile...]]"
24571 case "$ac_file" in
24572 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24573 esac
24574 # PO directories have a Makefile.in generated from Makefile.in.in.
24575 case "$ac_file" in */Makefile.in)
24576 # Adjust a relative srcdir.
24577 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
24578 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
24579 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
24580 # In autoconf-2.13 it is called $ac_given_srcdir.
24581 # In autoconf-2.50 it is called $srcdir.
24582 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
24583 case "$ac_given_srcdir" in
24584 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
24585 /*) top_srcdir="$ac_given_srcdir" ;;
24586 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
24587 esac
24588 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
24589 rm -f "$ac_dir/POTFILES"
24590 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
24591 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
24592 POMAKEFILEDEPS="POTFILES.in"
24593 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
24594 # on $ac_dir but don't depend on user-specified configuration
24595 # parameters.
24596 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
24597 # The LINGUAS file contains the set of available languages.
24598 if test -n "$OBSOLETE_ALL_LINGUAS"; then
24599 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
24601 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
24602 # Hide the ALL_LINGUAS assigment from automake.
24603 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
24604 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
24605 else
24606 # The set of available languages was given in configure.in.
24607 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
24609 case "$ac_given_srcdir" in
24610 .) srcdirpre= ;;
24611 *) srcdirpre='$(srcdir)/' ;;
24612 esac
24613 POFILES=
24614 GMOFILES=
24615 UPDATEPOFILES=
24616 DUMMYPOFILES=
24617 for lang in $ALL_LINGUAS; do
24618 POFILES="$POFILES $srcdirpre$lang.po"
24619 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
24620 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
24621 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
24622 done
24623 # CATALOGS depends on both $ac_dir and the user's LINGUAS
24624 # environment variable.
24625 INST_LINGUAS=
24626 if test -n "$ALL_LINGUAS"; then
24627 for presentlang in $ALL_LINGUAS; do
24628 useit=no
24629 if test "%UNSET%" != "$LINGUAS"; then
24630 desiredlanguages="$LINGUAS"
24631 else
24632 desiredlanguages="$ALL_LINGUAS"
24634 for desiredlang in $desiredlanguages; do
24635 # Use the presentlang catalog if desiredlang is
24636 # a. equal to presentlang, or
24637 # b. a variant of presentlang (because in this case,
24638 # presentlang can be used as a fallback for messages
24639 # which are not translated in the desiredlang catalog).
24640 case "$desiredlang" in
24641 "$presentlang"*) useit=yes;;
24642 esac
24643 done
24644 if test $useit = yes; then
24645 INST_LINGUAS="$INST_LINGUAS $presentlang"
24647 done
24649 CATALOGS=
24650 if test -n "$INST_LINGUAS"; then
24651 for lang in $INST_LINGUAS; do
24652 CATALOGS="$CATALOGS $lang.gmo"
24653 done
24655 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
24656 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"
24657 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
24658 if test -f "$f"; then
24659 case "$f" in
24660 *.orig | *.bak | *~) ;;
24661 *) cat "$f" >> "$ac_dir/Makefile" ;;
24662 esac
24664 done
24667 esac
24668 done ;;
24669 bfd_stdint.h )
24670 if test "$GCC" = yes; then
24671 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
24672 else
24673 echo "/* generated for $CC */" > tmp-stdint.h
24676 sed 's/^ *//' >> tmp-stdint.h <<EOF
24678 #ifndef GCC_GENERATED_STDINT_H
24679 #define GCC_GENERATED_STDINT_H 1
24681 #include <sys/types.h>
24684 if test "$acx_cv_header_stdint" != stdint.h; then
24685 echo "#include <stddef.h>" >> tmp-stdint.h
24687 if test "$acx_cv_header_stdint" != stddef.h; then
24688 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
24691 sed 's/^ *//' >> tmp-stdint.h <<EOF
24692 /* glibc uses these symbols as guards to prevent redefinitions. */
24693 #ifdef __int8_t_defined
24694 #define _INT8_T
24695 #define _INT16_T
24696 #define _INT32_T
24697 #endif
24698 #ifdef __uint32_t_defined
24699 #define _UINT32_T
24700 #endif
24704 # ----------------- done header, emit basic int types -------------
24705 if test "$acx_cv_header_stdint" = stddef.h; then
24706 sed 's/^ *//' >> tmp-stdint.h <<EOF
24708 #ifndef _UINT8_T
24709 #define _UINT8_T
24710 #ifndef __uint8_t_defined
24711 #define __uint8_t_defined
24712 typedef unsigned $acx_cv_type_int8_t uint8_t;
24713 #endif
24714 #endif
24716 #ifndef _UINT16_T
24717 #define _UINT16_T
24718 #ifndef __uint16_t_defined
24719 #define __uint16_t_defined
24720 typedef unsigned $acx_cv_type_int16_t uint16_t;
24721 #endif
24722 #endif
24724 #ifndef _UINT32_T
24725 #define _UINT32_T
24726 #ifndef __uint32_t_defined
24727 #define __uint32_t_defined
24728 typedef unsigned $acx_cv_type_int32_t uint32_t;
24729 #endif
24730 #endif
24732 #ifndef _INT8_T
24733 #define _INT8_T
24734 #ifndef __int8_t_defined
24735 #define __int8_t_defined
24736 typedef $acx_cv_type_int8_t int8_t;
24737 #endif
24738 #endif
24740 #ifndef _INT16_T
24741 #define _INT16_T
24742 #ifndef __int16_t_defined
24743 #define __int16_t_defined
24744 typedef $acx_cv_type_int16_t int16_t;
24745 #endif
24746 #endif
24748 #ifndef _INT32_T
24749 #define _INT32_T
24750 #ifndef __int32_t_defined
24751 #define __int32_t_defined
24752 typedef $acx_cv_type_int32_t int32_t;
24753 #endif
24754 #endif
24756 elif test "$ac_cv_type_u_int32_t" = yes; then
24757 sed 's/^ *//' >> tmp-stdint.h <<EOF
24759 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
24760 #ifndef _INT8_T
24761 #define _INT8_T
24762 #endif
24763 #ifndef _INT16_T
24764 #define _INT16_T
24765 #endif
24766 #ifndef _INT32_T
24767 #define _INT32_T
24768 #endif
24770 #ifndef _UINT8_T
24771 #define _UINT8_T
24772 #ifndef __uint8_t_defined
24773 #define __uint8_t_defined
24774 typedef u_int8_t uint8_t;
24775 #endif
24776 #endif
24778 #ifndef _UINT16_T
24779 #define _UINT16_T
24780 #ifndef __uint16_t_defined
24781 #define __uint16_t_defined
24782 typedef u_int16_t uint16_t;
24783 #endif
24784 #endif
24786 #ifndef _UINT32_T
24787 #define _UINT32_T
24788 #ifndef __uint32_t_defined
24789 #define __uint32_t_defined
24790 typedef u_int32_t uint32_t;
24791 #endif
24792 #endif
24794 else
24795 sed 's/^ *//' >> tmp-stdint.h <<EOF
24797 /* Some systems have guard macros to prevent redefinitions, define them. */
24798 #ifndef _INT8_T
24799 #define _INT8_T
24800 #endif
24801 #ifndef _INT16_T
24802 #define _INT16_T
24803 #endif
24804 #ifndef _INT32_T
24805 #define _INT32_T
24806 #endif
24807 #ifndef _UINT8_T
24808 #define _UINT8_T
24809 #endif
24810 #ifndef _UINT16_T
24811 #define _UINT16_T
24812 #endif
24813 #ifndef _UINT32_T
24814 #define _UINT32_T
24815 #endif
24819 # ------------- done basic int types, emit int64_t types ------------
24820 if test "$ac_cv_type_uint64_t" = yes; then
24821 sed 's/^ *//' >> tmp-stdint.h <<EOF
24823 /* system headers have good uint64_t and int64_t */
24824 #ifndef _INT64_T
24825 #define _INT64_T
24826 #endif
24827 #ifndef _UINT64_T
24828 #define _UINT64_T
24829 #endif
24831 elif test "$ac_cv_type_u_int64_t" = yes; then
24832 sed 's/^ *//' >> tmp-stdint.h <<EOF
24834 /* system headers have an u_int64_t (and int64_t) */
24835 #ifndef _INT64_T
24836 #define _INT64_T
24837 #endif
24838 #ifndef _UINT64_T
24839 #define _UINT64_T
24840 #ifndef __uint64_t_defined
24841 #define __uint64_t_defined
24842 typedef u_int64_t uint64_t;
24843 #endif
24844 #endif
24846 elif test -n "$acx_cv_type_int64_t"; then
24847 sed 's/^ *//' >> tmp-stdint.h <<EOF
24849 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
24850 #ifndef _INT64_T
24851 #define _INT64_T
24852 typedef $acx_cv_type_int64_t int64_t;
24853 #endif
24854 #ifndef _UINT64_T
24855 #define _UINT64_T
24856 #ifndef __uint64_t_defined
24857 #define __uint64_t_defined
24858 typedef unsigned $acx_cv_type_int64_t uint64_t;
24859 #endif
24860 #endif
24862 else
24863 sed 's/^ *//' >> tmp-stdint.h <<EOF
24865 /* some common heuristics for int64_t, using compiler-specific tests */
24866 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
24867 #ifndef _INT64_T
24868 #define _INT64_T
24869 #ifndef __int64_t_defined
24870 typedef long long int64_t;
24871 #endif
24872 #endif
24873 #ifndef _UINT64_T
24874 #define _UINT64_T
24875 typedef unsigned long long uint64_t;
24876 #endif
24878 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
24879 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
24880 does not implement __extension__. But that compiler doesn't define
24881 __GNUC_MINOR__. */
24882 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
24883 # define __extension__
24884 # endif
24886 # ifndef _INT64_T
24887 # define _INT64_T
24888 __extension__ typedef long long int64_t;
24889 # endif
24890 # ifndef _UINT64_T
24891 # define _UINT64_T
24892 __extension__ typedef unsigned long long uint64_t;
24893 # endif
24895 #elif !defined __STRICT_ANSI__
24896 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
24898 # ifndef _INT64_T
24899 # define _INT64_T
24900 typedef __int64 int64_t;
24901 # endif
24902 # ifndef _UINT64_T
24903 # define _UINT64_T
24904 typedef unsigned __int64 uint64_t;
24905 # endif
24906 # endif /* compiler */
24908 #endif /* ANSI version */
24912 # ------------- done int64_t types, emit intptr types ------------
24913 if test "$ac_cv_type_uintptr_t" != yes; then
24914 sed 's/^ *//' >> tmp-stdint.h <<EOF
24916 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
24917 #ifndef __uintptr_t_defined
24918 typedef u$acx_cv_type_intptr_t uintptr_t;
24919 #endif
24920 #ifndef __intptr_t_defined
24921 typedef $acx_cv_type_intptr_t intptr_t;
24922 #endif
24926 # ------------- done intptr types, emit int_least types ------------
24927 if test "$ac_cv_type_int_least32_t" != yes; then
24928 sed 's/^ *//' >> tmp-stdint.h <<EOF
24930 /* Define int_least types */
24931 typedef int8_t int_least8_t;
24932 typedef int16_t int_least16_t;
24933 typedef int32_t int_least32_t;
24934 #ifdef _INT64_T
24935 typedef int64_t int_least64_t;
24936 #endif
24938 typedef uint8_t uint_least8_t;
24939 typedef uint16_t uint_least16_t;
24940 typedef uint32_t uint_least32_t;
24941 #ifdef _UINT64_T
24942 typedef uint64_t uint_least64_t;
24943 #endif
24947 # ------------- done intptr types, emit int_fast types ------------
24948 if test "$ac_cv_type_int_fast32_t" != yes; then
24949 sed 's/^ *//' >> tmp-stdint.h <<EOF
24951 /* Define int_fast types. short is often slow */
24952 typedef int8_t int_fast8_t;
24953 typedef int int_fast16_t;
24954 typedef int32_t int_fast32_t;
24955 #ifdef _INT64_T
24956 typedef int64_t int_fast64_t;
24957 #endif
24959 typedef uint8_t uint_fast8_t;
24960 typedef unsigned int uint_fast16_t;
24961 typedef uint32_t uint_fast32_t;
24962 #ifdef _UINT64_T
24963 typedef uint64_t uint_fast64_t;
24964 #endif
24968 if test "$ac_cv_type_uintmax_t" != yes; then
24969 sed 's/^ *//' >> tmp-stdint.h <<EOF
24971 /* Define intmax based on what we found */
24972 #ifdef _INT64_T
24973 typedef int64_t intmax_t;
24974 #else
24975 typedef long intmax_t;
24976 #endif
24977 #ifdef _UINT64_T
24978 typedef uint64_t uintmax_t;
24979 #else
24980 typedef unsigned long uintmax_t;
24981 #endif
24985 sed 's/^ *//' >> tmp-stdint.h <<EOF
24987 #endif /* GCC_GENERATED_STDINT_H */
24990 if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
24991 rm -f tmp-stdint.h
24992 else
24993 mv -f tmp-stdint.h bfd_stdint.h
24997 default )
24998 case "$srcdir" in
24999 .) srcdirpre= ;;
25000 *) srcdirpre='$(srcdir)/' ;;
25001 esac
25002 POFILES=
25003 GMOFILES=
25004 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
25005 if test $lang != dummy; then
25006 POFILES="$POFILES $srcdirpre$lang.po"
25007 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
25009 done
25010 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
25011 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
25012 -e "s,@POFILES@,$POFILES," \
25013 -e "s,@GMOFILES@,$GMOFILES," \
25014 po/Makefile.in > po/Makefile ;;
25015 esac
25016 done
25017 _ACEOF
25019 cat >>$CONFIG_STATUS <<\_ACEOF
25021 { (exit 0); exit 0; }
25022 _ACEOF
25023 chmod +x $CONFIG_STATUS
25024 ac_clean_files=$ac_clean_files_save
25027 # configure is writing to config.log, and then calls config.status.
25028 # config.status does its own redirection, appending to config.log.
25029 # Unfortunately, on DOS this fails, as config.log is still kept open
25030 # by configure, so config.status won't be able to write to it; its
25031 # output is simply discarded. So we exec the FD to /dev/null,
25032 # effectively closing config.log, so it can be properly (re)opened and
25033 # appended to by config.status. When coming back to configure, we
25034 # need to make the FD available again.
25035 if test "$no_create" != yes; then
25036 ac_cs_success=:
25037 ac_config_status_args=
25038 test "$silent" = yes &&
25039 ac_config_status_args="$ac_config_status_args --quiet"
25040 exec 5>/dev/null
25041 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25042 exec 5>>config.log
25043 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25044 # would make configure fail if this is the last instruction.
25045 $ac_cs_success || { (exit 1); exit 1; }