* configure, config.in: Rebuild.
[binutils.git] / bfd / configure
blob5cd7e776c471d729e58fef30b3624cdc1a165001
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
17557 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno
17559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17560 echo "$as_me:$LINENO: checking for $ac_func" >&5
17561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17562 if eval "test \"\${$as_ac_var+set}\" = set"; then
17563 echo $ECHO_N "(cached) $ECHO_C" >&6
17564 else
17565 cat >conftest.$ac_ext <<_ACEOF
17566 /* confdefs.h. */
17567 _ACEOF
17568 cat confdefs.h >>conftest.$ac_ext
17569 cat >>conftest.$ac_ext <<_ACEOF
17570 /* end confdefs.h. */
17571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17573 #define $ac_func innocuous_$ac_func
17575 /* System header to define __stub macros and hopefully few prototypes,
17576 which can conflict with char $ac_func (); below.
17577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17578 <limits.h> exists even on freestanding compilers. */
17580 #ifdef __STDC__
17581 # include <limits.h>
17582 #else
17583 # include <assert.h>
17584 #endif
17586 #undef $ac_func
17588 /* Override any gcc2 internal prototype to avoid an error. */
17589 #ifdef __cplusplus
17590 extern "C"
17592 #endif
17593 /* We use char because int might match the return type of a gcc2
17594 builtin and then its argument prototype would still apply. */
17595 char $ac_func ();
17596 /* The GNU C library defines this for functions which it implements
17597 to always fail with ENOSYS. Some functions are actually named
17598 something starting with __ and the normal name is an alias. */
17599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17600 choke me
17601 #else
17602 char (*f) () = $ac_func;
17603 #endif
17604 #ifdef __cplusplus
17606 #endif
17609 main ()
17611 return f != $ac_func;
17613 return 0;
17615 _ACEOF
17616 rm -f conftest.$ac_objext conftest$ac_exeext
17617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17618 (eval $ac_link) 2>conftest.er1
17619 ac_status=$?
17620 grep -v '^ *+' conftest.er1 >conftest.err
17621 rm -f conftest.er1
17622 cat conftest.err >&5
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); } &&
17625 { ac_try='test -z "$ac_c_werror_flag"
17626 || test ! -s conftest.err'
17627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17628 (eval $ac_try) 2>&5
17629 ac_status=$?
17630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631 (exit $ac_status); }; } &&
17632 { ac_try='test -s conftest$ac_exeext'
17633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17634 (eval $ac_try) 2>&5
17635 ac_status=$?
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); }; }; then
17638 eval "$as_ac_var=yes"
17639 else
17640 echo "$as_me: failed program was:" >&5
17641 sed 's/^/| /' conftest.$ac_ext >&5
17643 eval "$as_ac_var=no"
17645 rm -f conftest.err conftest.$ac_objext \
17646 conftest$ac_exeext conftest.$ac_ext
17648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17649 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17650 if test `eval echo '${'$as_ac_var'}'` = yes; then
17651 cat >>confdefs.h <<_ACEOF
17652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17653 _ACEOF
17656 done
17659 for ac_func in strtoull
17661 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17662 echo "$as_me:$LINENO: checking for $ac_func" >&5
17663 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17664 if eval "test \"\${$as_ac_var+set}\" = set"; then
17665 echo $ECHO_N "(cached) $ECHO_C" >&6
17666 else
17667 cat >conftest.$ac_ext <<_ACEOF
17668 /* confdefs.h. */
17669 _ACEOF
17670 cat confdefs.h >>conftest.$ac_ext
17671 cat >>conftest.$ac_ext <<_ACEOF
17672 /* end confdefs.h. */
17673 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17675 #define $ac_func innocuous_$ac_func
17677 /* System header to define __stub macros and hopefully few prototypes,
17678 which can conflict with char $ac_func (); below.
17679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17680 <limits.h> exists even on freestanding compilers. */
17682 #ifdef __STDC__
17683 # include <limits.h>
17684 #else
17685 # include <assert.h>
17686 #endif
17688 #undef $ac_func
17690 /* Override any gcc2 internal prototype to avoid an error. */
17691 #ifdef __cplusplus
17692 extern "C"
17694 #endif
17695 /* We use char because int might match the return type of a gcc2
17696 builtin and then its argument prototype would still apply. */
17697 char $ac_func ();
17698 /* The GNU C library defines this for functions which it implements
17699 to always fail with ENOSYS. Some functions are actually named
17700 something starting with __ and the normal name is an alias. */
17701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17702 choke me
17703 #else
17704 char (*f) () = $ac_func;
17705 #endif
17706 #ifdef __cplusplus
17708 #endif
17711 main ()
17713 return f != $ac_func;
17715 return 0;
17717 _ACEOF
17718 rm -f conftest.$ac_objext conftest$ac_exeext
17719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17720 (eval $ac_link) 2>conftest.er1
17721 ac_status=$?
17722 grep -v '^ *+' conftest.er1 >conftest.err
17723 rm -f conftest.er1
17724 cat conftest.err >&5
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); } &&
17727 { ac_try='test -z "$ac_c_werror_flag"
17728 || test ! -s conftest.err'
17729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17730 (eval $ac_try) 2>&5
17731 ac_status=$?
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); }; } &&
17734 { ac_try='test -s conftest$ac_exeext'
17735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17736 (eval $ac_try) 2>&5
17737 ac_status=$?
17738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739 (exit $ac_status); }; }; then
17740 eval "$as_ac_var=yes"
17741 else
17742 echo "$as_me: failed program was:" >&5
17743 sed 's/^/| /' conftest.$ac_ext >&5
17745 eval "$as_ac_var=no"
17747 rm -f conftest.err conftest.$ac_objext \
17748 conftest$ac_exeext conftest.$ac_ext
17750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17751 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17752 if test `eval echo '${'$as_ac_var'}'` = yes; then
17753 cat >>confdefs.h <<_ACEOF
17754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17755 _ACEOF
17758 done
17761 echo "$as_me:$LINENO: checking whether basename is declared" >&5
17762 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
17763 if test "${ac_cv_have_decl_basename+set}" = set; then
17764 echo $ECHO_N "(cached) $ECHO_C" >&6
17765 else
17766 cat >conftest.$ac_ext <<_ACEOF
17767 /* confdefs.h. */
17768 _ACEOF
17769 cat confdefs.h >>conftest.$ac_ext
17770 cat >>conftest.$ac_ext <<_ACEOF
17771 /* end confdefs.h. */
17772 $ac_includes_default
17774 main ()
17776 #ifndef basename
17777 char *p = (char *) basename;
17778 #endif
17781 return 0;
17783 _ACEOF
17784 rm -f conftest.$ac_objext
17785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17786 (eval $ac_compile) 2>conftest.er1
17787 ac_status=$?
17788 grep -v '^ *+' conftest.er1 >conftest.err
17789 rm -f conftest.er1
17790 cat conftest.err >&5
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); } &&
17793 { ac_try='test -z "$ac_c_werror_flag"
17794 || test ! -s conftest.err'
17795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17796 (eval $ac_try) 2>&5
17797 ac_status=$?
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); }; } &&
17800 { ac_try='test -s conftest.$ac_objext'
17801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17802 (eval $ac_try) 2>&5
17803 ac_status=$?
17804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805 (exit $ac_status); }; }; then
17806 ac_cv_have_decl_basename=yes
17807 else
17808 echo "$as_me: failed program was:" >&5
17809 sed 's/^/| /' conftest.$ac_ext >&5
17811 ac_cv_have_decl_basename=no
17813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17815 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
17816 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
17817 if test $ac_cv_have_decl_basename = yes; then
17819 cat >>confdefs.h <<_ACEOF
17820 #define HAVE_DECL_BASENAME 1
17821 _ACEOF
17824 else
17825 cat >>confdefs.h <<_ACEOF
17826 #define HAVE_DECL_BASENAME 0
17827 _ACEOF
17833 echo "$as_me:$LINENO: checking whether ftello is declared" >&5
17834 echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
17835 if test "${ac_cv_have_decl_ftello+set}" = set; then
17836 echo $ECHO_N "(cached) $ECHO_C" >&6
17837 else
17838 cat >conftest.$ac_ext <<_ACEOF
17839 /* confdefs.h. */
17840 _ACEOF
17841 cat confdefs.h >>conftest.$ac_ext
17842 cat >>conftest.$ac_ext <<_ACEOF
17843 /* end confdefs.h. */
17844 $ac_includes_default
17846 main ()
17848 #ifndef ftello
17849 char *p = (char *) ftello;
17850 #endif
17853 return 0;
17855 _ACEOF
17856 rm -f conftest.$ac_objext
17857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17858 (eval $ac_compile) 2>conftest.er1
17859 ac_status=$?
17860 grep -v '^ *+' conftest.er1 >conftest.err
17861 rm -f conftest.er1
17862 cat conftest.err >&5
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); } &&
17865 { ac_try='test -z "$ac_c_werror_flag"
17866 || test ! -s conftest.err'
17867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17868 (eval $ac_try) 2>&5
17869 ac_status=$?
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); }; } &&
17872 { ac_try='test -s conftest.$ac_objext'
17873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17874 (eval $ac_try) 2>&5
17875 ac_status=$?
17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877 (exit $ac_status); }; }; then
17878 ac_cv_have_decl_ftello=yes
17879 else
17880 echo "$as_me: failed program was:" >&5
17881 sed 's/^/| /' conftest.$ac_ext >&5
17883 ac_cv_have_decl_ftello=no
17885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17887 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
17888 echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
17889 if test $ac_cv_have_decl_ftello = yes; then
17891 cat >>confdefs.h <<_ACEOF
17892 #define HAVE_DECL_FTELLO 1
17893 _ACEOF
17896 else
17897 cat >>confdefs.h <<_ACEOF
17898 #define HAVE_DECL_FTELLO 0
17899 _ACEOF
17905 echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
17906 echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
17907 if test "${ac_cv_have_decl_ftello64+set}" = set; then
17908 echo $ECHO_N "(cached) $ECHO_C" >&6
17909 else
17910 cat >conftest.$ac_ext <<_ACEOF
17911 /* confdefs.h. */
17912 _ACEOF
17913 cat confdefs.h >>conftest.$ac_ext
17914 cat >>conftest.$ac_ext <<_ACEOF
17915 /* end confdefs.h. */
17916 $ac_includes_default
17918 main ()
17920 #ifndef ftello64
17921 char *p = (char *) ftello64;
17922 #endif
17925 return 0;
17927 _ACEOF
17928 rm -f conftest.$ac_objext
17929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17930 (eval $ac_compile) 2>conftest.er1
17931 ac_status=$?
17932 grep -v '^ *+' conftest.er1 >conftest.err
17933 rm -f conftest.er1
17934 cat conftest.err >&5
17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); } &&
17937 { ac_try='test -z "$ac_c_werror_flag"
17938 || test ! -s conftest.err'
17939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17940 (eval $ac_try) 2>&5
17941 ac_status=$?
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); }; } &&
17944 { ac_try='test -s conftest.$ac_objext'
17945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17946 (eval $ac_try) 2>&5
17947 ac_status=$?
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); }; }; then
17950 ac_cv_have_decl_ftello64=yes
17951 else
17952 echo "$as_me: failed program was:" >&5
17953 sed 's/^/| /' conftest.$ac_ext >&5
17955 ac_cv_have_decl_ftello64=no
17957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17959 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
17960 echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
17961 if test $ac_cv_have_decl_ftello64 = yes; then
17963 cat >>confdefs.h <<_ACEOF
17964 #define HAVE_DECL_FTELLO64 1
17965 _ACEOF
17968 else
17969 cat >>confdefs.h <<_ACEOF
17970 #define HAVE_DECL_FTELLO64 0
17971 _ACEOF
17977 echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
17978 echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
17979 if test "${ac_cv_have_decl_fseeko+set}" = set; then
17980 echo $ECHO_N "(cached) $ECHO_C" >&6
17981 else
17982 cat >conftest.$ac_ext <<_ACEOF
17983 /* confdefs.h. */
17984 _ACEOF
17985 cat confdefs.h >>conftest.$ac_ext
17986 cat >>conftest.$ac_ext <<_ACEOF
17987 /* end confdefs.h. */
17988 $ac_includes_default
17990 main ()
17992 #ifndef fseeko
17993 char *p = (char *) fseeko;
17994 #endif
17997 return 0;
17999 _ACEOF
18000 rm -f conftest.$ac_objext
18001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18002 (eval $ac_compile) 2>conftest.er1
18003 ac_status=$?
18004 grep -v '^ *+' conftest.er1 >conftest.err
18005 rm -f conftest.er1
18006 cat conftest.err >&5
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); } &&
18009 { ac_try='test -z "$ac_c_werror_flag"
18010 || test ! -s conftest.err'
18011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18012 (eval $ac_try) 2>&5
18013 ac_status=$?
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); }; } &&
18016 { ac_try='test -s conftest.$ac_objext'
18017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18018 (eval $ac_try) 2>&5
18019 ac_status=$?
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); }; }; then
18022 ac_cv_have_decl_fseeko=yes
18023 else
18024 echo "$as_me: failed program was:" >&5
18025 sed 's/^/| /' conftest.$ac_ext >&5
18027 ac_cv_have_decl_fseeko=no
18029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18031 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
18032 echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
18033 if test $ac_cv_have_decl_fseeko = yes; then
18035 cat >>confdefs.h <<_ACEOF
18036 #define HAVE_DECL_FSEEKO 1
18037 _ACEOF
18040 else
18041 cat >>confdefs.h <<_ACEOF
18042 #define HAVE_DECL_FSEEKO 0
18043 _ACEOF
18049 echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
18050 echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
18051 if test "${ac_cv_have_decl_fseeko64+set}" = set; then
18052 echo $ECHO_N "(cached) $ECHO_C" >&6
18053 else
18054 cat >conftest.$ac_ext <<_ACEOF
18055 /* confdefs.h. */
18056 _ACEOF
18057 cat confdefs.h >>conftest.$ac_ext
18058 cat >>conftest.$ac_ext <<_ACEOF
18059 /* end confdefs.h. */
18060 $ac_includes_default
18062 main ()
18064 #ifndef fseeko64
18065 char *p = (char *) fseeko64;
18066 #endif
18069 return 0;
18071 _ACEOF
18072 rm -f conftest.$ac_objext
18073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18074 (eval $ac_compile) 2>conftest.er1
18075 ac_status=$?
18076 grep -v '^ *+' conftest.er1 >conftest.err
18077 rm -f conftest.er1
18078 cat conftest.err >&5
18079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18080 (exit $ac_status); } &&
18081 { ac_try='test -z "$ac_c_werror_flag"
18082 || test ! -s conftest.err'
18083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18084 (eval $ac_try) 2>&5
18085 ac_status=$?
18086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087 (exit $ac_status); }; } &&
18088 { ac_try='test -s conftest.$ac_objext'
18089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18090 (eval $ac_try) 2>&5
18091 ac_status=$?
18092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093 (exit $ac_status); }; }; then
18094 ac_cv_have_decl_fseeko64=yes
18095 else
18096 echo "$as_me: failed program was:" >&5
18097 sed 's/^/| /' conftest.$ac_ext >&5
18099 ac_cv_have_decl_fseeko64=no
18101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18103 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
18104 echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
18105 if test $ac_cv_have_decl_fseeko64 = yes; then
18107 cat >>confdefs.h <<_ACEOF
18108 #define HAVE_DECL_FSEEKO64 1
18109 _ACEOF
18112 else
18113 cat >>confdefs.h <<_ACEOF
18114 #define HAVE_DECL_FSEEKO64 0
18115 _ACEOF
18123 case "${host}" in
18124 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
18126 cat >>confdefs.h <<\_ACEOF
18127 #define USE_BINARY_FOPEN 1
18128 _ACEOF
18130 esac
18132 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
18133 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
18134 if test "${ac_cv_have_decl_ffs+set}" = set; then
18135 echo $ECHO_N "(cached) $ECHO_C" >&6
18136 else
18137 cat >conftest.$ac_ext <<_ACEOF
18138 /* confdefs.h. */
18139 _ACEOF
18140 cat confdefs.h >>conftest.$ac_ext
18141 cat >>conftest.$ac_ext <<_ACEOF
18142 /* end confdefs.h. */
18143 $ac_includes_default
18145 main ()
18147 #ifndef ffs
18148 char *p = (char *) ffs;
18149 #endif
18152 return 0;
18154 _ACEOF
18155 rm -f conftest.$ac_objext
18156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18157 (eval $ac_compile) 2>conftest.er1
18158 ac_status=$?
18159 grep -v '^ *+' conftest.er1 >conftest.err
18160 rm -f conftest.er1
18161 cat conftest.err >&5
18162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18163 (exit $ac_status); } &&
18164 { ac_try='test -z "$ac_c_werror_flag"
18165 || test ! -s conftest.err'
18166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18167 (eval $ac_try) 2>&5
18168 ac_status=$?
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); }; } &&
18171 { ac_try='test -s conftest.$ac_objext'
18172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18173 (eval $ac_try) 2>&5
18174 ac_status=$?
18175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176 (exit $ac_status); }; }; then
18177 ac_cv_have_decl_ffs=yes
18178 else
18179 echo "$as_me: failed program was:" >&5
18180 sed 's/^/| /' conftest.$ac_ext >&5
18182 ac_cv_have_decl_ffs=no
18184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18186 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
18187 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
18188 if test $ac_cv_have_decl_ffs = yes; then
18190 cat >>confdefs.h <<_ACEOF
18191 #define HAVE_DECL_FFS 1
18192 _ACEOF
18195 else
18196 cat >>confdefs.h <<_ACEOF
18197 #define HAVE_DECL_FFS 0
18198 _ACEOF
18204 echo "$as_me:$LINENO: checking whether free is declared" >&5
18205 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
18206 if test "${ac_cv_have_decl_free+set}" = set; then
18207 echo $ECHO_N "(cached) $ECHO_C" >&6
18208 else
18209 cat >conftest.$ac_ext <<_ACEOF
18210 /* confdefs.h. */
18211 _ACEOF
18212 cat confdefs.h >>conftest.$ac_ext
18213 cat >>conftest.$ac_ext <<_ACEOF
18214 /* end confdefs.h. */
18215 $ac_includes_default
18217 main ()
18219 #ifndef free
18220 char *p = (char *) free;
18221 #endif
18224 return 0;
18226 _ACEOF
18227 rm -f conftest.$ac_objext
18228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18229 (eval $ac_compile) 2>conftest.er1
18230 ac_status=$?
18231 grep -v '^ *+' conftest.er1 >conftest.err
18232 rm -f conftest.er1
18233 cat conftest.err >&5
18234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235 (exit $ac_status); } &&
18236 { ac_try='test -z "$ac_c_werror_flag"
18237 || test ! -s conftest.err'
18238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18239 (eval $ac_try) 2>&5
18240 ac_status=$?
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); }; } &&
18243 { ac_try='test -s conftest.$ac_objext'
18244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18245 (eval $ac_try) 2>&5
18246 ac_status=$?
18247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248 (exit $ac_status); }; }; then
18249 ac_cv_have_decl_free=yes
18250 else
18251 echo "$as_me: failed program was:" >&5
18252 sed 's/^/| /' conftest.$ac_ext >&5
18254 ac_cv_have_decl_free=no
18256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18258 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
18259 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
18260 if test $ac_cv_have_decl_free = yes; then
18262 cat >>confdefs.h <<_ACEOF
18263 #define HAVE_DECL_FREE 1
18264 _ACEOF
18267 else
18268 cat >>confdefs.h <<_ACEOF
18269 #define HAVE_DECL_FREE 0
18270 _ACEOF
18276 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
18277 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
18278 if test "${ac_cv_have_decl_getenv+set}" = set; then
18279 echo $ECHO_N "(cached) $ECHO_C" >&6
18280 else
18281 cat >conftest.$ac_ext <<_ACEOF
18282 /* confdefs.h. */
18283 _ACEOF
18284 cat confdefs.h >>conftest.$ac_ext
18285 cat >>conftest.$ac_ext <<_ACEOF
18286 /* end confdefs.h. */
18287 $ac_includes_default
18289 main ()
18291 #ifndef getenv
18292 char *p = (char *) getenv;
18293 #endif
18296 return 0;
18298 _ACEOF
18299 rm -f conftest.$ac_objext
18300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18301 (eval $ac_compile) 2>conftest.er1
18302 ac_status=$?
18303 grep -v '^ *+' conftest.er1 >conftest.err
18304 rm -f conftest.er1
18305 cat conftest.err >&5
18306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307 (exit $ac_status); } &&
18308 { ac_try='test -z "$ac_c_werror_flag"
18309 || test ! -s conftest.err'
18310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18311 (eval $ac_try) 2>&5
18312 ac_status=$?
18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314 (exit $ac_status); }; } &&
18315 { ac_try='test -s conftest.$ac_objext'
18316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18317 (eval $ac_try) 2>&5
18318 ac_status=$?
18319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320 (exit $ac_status); }; }; then
18321 ac_cv_have_decl_getenv=yes
18322 else
18323 echo "$as_me: failed program was:" >&5
18324 sed 's/^/| /' conftest.$ac_ext >&5
18326 ac_cv_have_decl_getenv=no
18328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18330 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
18331 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
18332 if test $ac_cv_have_decl_getenv = yes; then
18334 cat >>confdefs.h <<_ACEOF
18335 #define HAVE_DECL_GETENV 1
18336 _ACEOF
18339 else
18340 cat >>confdefs.h <<_ACEOF
18341 #define HAVE_DECL_GETENV 0
18342 _ACEOF
18348 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
18349 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
18350 if test "${ac_cv_have_decl_malloc+set}" = set; then
18351 echo $ECHO_N "(cached) $ECHO_C" >&6
18352 else
18353 cat >conftest.$ac_ext <<_ACEOF
18354 /* confdefs.h. */
18355 _ACEOF
18356 cat confdefs.h >>conftest.$ac_ext
18357 cat >>conftest.$ac_ext <<_ACEOF
18358 /* end confdefs.h. */
18359 $ac_includes_default
18361 main ()
18363 #ifndef malloc
18364 char *p = (char *) malloc;
18365 #endif
18368 return 0;
18370 _ACEOF
18371 rm -f conftest.$ac_objext
18372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18373 (eval $ac_compile) 2>conftest.er1
18374 ac_status=$?
18375 grep -v '^ *+' conftest.er1 >conftest.err
18376 rm -f conftest.er1
18377 cat conftest.err >&5
18378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379 (exit $ac_status); } &&
18380 { ac_try='test -z "$ac_c_werror_flag"
18381 || test ! -s conftest.err'
18382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18383 (eval $ac_try) 2>&5
18384 ac_status=$?
18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386 (exit $ac_status); }; } &&
18387 { ac_try='test -s conftest.$ac_objext'
18388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18389 (eval $ac_try) 2>&5
18390 ac_status=$?
18391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392 (exit $ac_status); }; }; then
18393 ac_cv_have_decl_malloc=yes
18394 else
18395 echo "$as_me: failed program was:" >&5
18396 sed 's/^/| /' conftest.$ac_ext >&5
18398 ac_cv_have_decl_malloc=no
18400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18402 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
18403 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
18404 if test $ac_cv_have_decl_malloc = yes; then
18406 cat >>confdefs.h <<_ACEOF
18407 #define HAVE_DECL_MALLOC 1
18408 _ACEOF
18411 else
18412 cat >>confdefs.h <<_ACEOF
18413 #define HAVE_DECL_MALLOC 0
18414 _ACEOF
18420 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
18421 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
18422 if test "${ac_cv_have_decl_realloc+set}" = set; then
18423 echo $ECHO_N "(cached) $ECHO_C" >&6
18424 else
18425 cat >conftest.$ac_ext <<_ACEOF
18426 /* confdefs.h. */
18427 _ACEOF
18428 cat confdefs.h >>conftest.$ac_ext
18429 cat >>conftest.$ac_ext <<_ACEOF
18430 /* end confdefs.h. */
18431 $ac_includes_default
18433 main ()
18435 #ifndef realloc
18436 char *p = (char *) realloc;
18437 #endif
18440 return 0;
18442 _ACEOF
18443 rm -f conftest.$ac_objext
18444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18445 (eval $ac_compile) 2>conftest.er1
18446 ac_status=$?
18447 grep -v '^ *+' conftest.er1 >conftest.err
18448 rm -f conftest.er1
18449 cat conftest.err >&5
18450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18451 (exit $ac_status); } &&
18452 { ac_try='test -z "$ac_c_werror_flag"
18453 || test ! -s conftest.err'
18454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18455 (eval $ac_try) 2>&5
18456 ac_status=$?
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); }; } &&
18459 { ac_try='test -s conftest.$ac_objext'
18460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18461 (eval $ac_try) 2>&5
18462 ac_status=$?
18463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464 (exit $ac_status); }; }; then
18465 ac_cv_have_decl_realloc=yes
18466 else
18467 echo "$as_me: failed program was:" >&5
18468 sed 's/^/| /' conftest.$ac_ext >&5
18470 ac_cv_have_decl_realloc=no
18472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18474 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
18475 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
18476 if test $ac_cv_have_decl_realloc = yes; then
18478 cat >>confdefs.h <<_ACEOF
18479 #define HAVE_DECL_REALLOC 1
18480 _ACEOF
18483 else
18484 cat >>confdefs.h <<_ACEOF
18485 #define HAVE_DECL_REALLOC 0
18486 _ACEOF
18492 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
18493 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
18494 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
18495 echo $ECHO_N "(cached) $ECHO_C" >&6
18496 else
18497 cat >conftest.$ac_ext <<_ACEOF
18498 /* confdefs.h. */
18499 _ACEOF
18500 cat confdefs.h >>conftest.$ac_ext
18501 cat >>conftest.$ac_ext <<_ACEOF
18502 /* end confdefs.h. */
18503 $ac_includes_default
18505 main ()
18507 #ifndef stpcpy
18508 char *p = (char *) stpcpy;
18509 #endif
18512 return 0;
18514 _ACEOF
18515 rm -f conftest.$ac_objext
18516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18517 (eval $ac_compile) 2>conftest.er1
18518 ac_status=$?
18519 grep -v '^ *+' conftest.er1 >conftest.err
18520 rm -f conftest.er1
18521 cat conftest.err >&5
18522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523 (exit $ac_status); } &&
18524 { ac_try='test -z "$ac_c_werror_flag"
18525 || test ! -s conftest.err'
18526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18527 (eval $ac_try) 2>&5
18528 ac_status=$?
18529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530 (exit $ac_status); }; } &&
18531 { ac_try='test -s conftest.$ac_objext'
18532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18533 (eval $ac_try) 2>&5
18534 ac_status=$?
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); }; }; then
18537 ac_cv_have_decl_stpcpy=yes
18538 else
18539 echo "$as_me: failed program was:" >&5
18540 sed 's/^/| /' conftest.$ac_ext >&5
18542 ac_cv_have_decl_stpcpy=no
18544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18546 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
18547 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
18548 if test $ac_cv_have_decl_stpcpy = yes; then
18550 cat >>confdefs.h <<_ACEOF
18551 #define HAVE_DECL_STPCPY 1
18552 _ACEOF
18555 else
18556 cat >>confdefs.h <<_ACEOF
18557 #define HAVE_DECL_STPCPY 0
18558 _ACEOF
18564 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
18565 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
18566 if test "${ac_cv_have_decl_strstr+set}" = set; then
18567 echo $ECHO_N "(cached) $ECHO_C" >&6
18568 else
18569 cat >conftest.$ac_ext <<_ACEOF
18570 /* confdefs.h. */
18571 _ACEOF
18572 cat confdefs.h >>conftest.$ac_ext
18573 cat >>conftest.$ac_ext <<_ACEOF
18574 /* end confdefs.h. */
18575 $ac_includes_default
18577 main ()
18579 #ifndef strstr
18580 char *p = (char *) strstr;
18581 #endif
18584 return 0;
18586 _ACEOF
18587 rm -f conftest.$ac_objext
18588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18589 (eval $ac_compile) 2>conftest.er1
18590 ac_status=$?
18591 grep -v '^ *+' conftest.er1 >conftest.err
18592 rm -f conftest.er1
18593 cat conftest.err >&5
18594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595 (exit $ac_status); } &&
18596 { ac_try='test -z "$ac_c_werror_flag"
18597 || test ! -s conftest.err'
18598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18599 (eval $ac_try) 2>&5
18600 ac_status=$?
18601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602 (exit $ac_status); }; } &&
18603 { ac_try='test -s conftest.$ac_objext'
18604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18605 (eval $ac_try) 2>&5
18606 ac_status=$?
18607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608 (exit $ac_status); }; }; then
18609 ac_cv_have_decl_strstr=yes
18610 else
18611 echo "$as_me: failed program was:" >&5
18612 sed 's/^/| /' conftest.$ac_ext >&5
18614 ac_cv_have_decl_strstr=no
18616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18618 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
18619 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
18620 if test $ac_cv_have_decl_strstr = yes; then
18622 cat >>confdefs.h <<_ACEOF
18623 #define HAVE_DECL_STRSTR 1
18624 _ACEOF
18627 else
18628 cat >>confdefs.h <<_ACEOF
18629 #define HAVE_DECL_STRSTR 0
18630 _ACEOF
18636 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
18637 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
18638 if test "${ac_cv_have_decl_snprintf+set}" = set; then
18639 echo $ECHO_N "(cached) $ECHO_C" >&6
18640 else
18641 cat >conftest.$ac_ext <<_ACEOF
18642 /* confdefs.h. */
18643 _ACEOF
18644 cat confdefs.h >>conftest.$ac_ext
18645 cat >>conftest.$ac_ext <<_ACEOF
18646 /* end confdefs.h. */
18647 $ac_includes_default
18649 main ()
18651 #ifndef snprintf
18652 char *p = (char *) snprintf;
18653 #endif
18656 return 0;
18658 _ACEOF
18659 rm -f conftest.$ac_objext
18660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18661 (eval $ac_compile) 2>conftest.er1
18662 ac_status=$?
18663 grep -v '^ *+' conftest.er1 >conftest.err
18664 rm -f conftest.er1
18665 cat conftest.err >&5
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); } &&
18668 { ac_try='test -z "$ac_c_werror_flag"
18669 || test ! -s conftest.err'
18670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18671 (eval $ac_try) 2>&5
18672 ac_status=$?
18673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18674 (exit $ac_status); }; } &&
18675 { ac_try='test -s conftest.$ac_objext'
18676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18677 (eval $ac_try) 2>&5
18678 ac_status=$?
18679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680 (exit $ac_status); }; }; then
18681 ac_cv_have_decl_snprintf=yes
18682 else
18683 echo "$as_me: failed program was:" >&5
18684 sed 's/^/| /' conftest.$ac_ext >&5
18686 ac_cv_have_decl_snprintf=no
18688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18690 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
18691 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
18692 if test $ac_cv_have_decl_snprintf = yes; then
18694 cat >>confdefs.h <<_ACEOF
18695 #define HAVE_DECL_SNPRINTF 1
18696 _ACEOF
18699 else
18700 cat >>confdefs.h <<_ACEOF
18701 #define HAVE_DECL_SNPRINTF 0
18702 _ACEOF
18708 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
18709 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
18710 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
18711 echo $ECHO_N "(cached) $ECHO_C" >&6
18712 else
18713 cat >conftest.$ac_ext <<_ACEOF
18714 /* confdefs.h. */
18715 _ACEOF
18716 cat confdefs.h >>conftest.$ac_ext
18717 cat >>conftest.$ac_ext <<_ACEOF
18718 /* end confdefs.h. */
18719 $ac_includes_default
18721 main ()
18723 #ifndef vsnprintf
18724 char *p = (char *) vsnprintf;
18725 #endif
18728 return 0;
18730 _ACEOF
18731 rm -f conftest.$ac_objext
18732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18733 (eval $ac_compile) 2>conftest.er1
18734 ac_status=$?
18735 grep -v '^ *+' conftest.er1 >conftest.err
18736 rm -f conftest.er1
18737 cat conftest.err >&5
18738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739 (exit $ac_status); } &&
18740 { ac_try='test -z "$ac_c_werror_flag"
18741 || test ! -s conftest.err'
18742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18743 (eval $ac_try) 2>&5
18744 ac_status=$?
18745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746 (exit $ac_status); }; } &&
18747 { ac_try='test -s conftest.$ac_objext'
18748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18749 (eval $ac_try) 2>&5
18750 ac_status=$?
18751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18752 (exit $ac_status); }; }; then
18753 ac_cv_have_decl_vsnprintf=yes
18754 else
18755 echo "$as_me: failed program was:" >&5
18756 sed 's/^/| /' conftest.$ac_ext >&5
18758 ac_cv_have_decl_vsnprintf=no
18760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18762 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
18763 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
18764 if test $ac_cv_have_decl_vsnprintf = yes; then
18766 cat >>confdefs.h <<_ACEOF
18767 #define HAVE_DECL_VSNPRINTF 1
18768 _ACEOF
18771 else
18772 cat >>confdefs.h <<_ACEOF
18773 #define HAVE_DECL_VSNPRINTF 0
18774 _ACEOF
18781 # Link in zlib if we can. This allows us to read compressed debug sections.
18782 # This is used only by compress.c.
18783 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
18784 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
18785 if test "${ac_cv_search_zlibVersion+set}" = set; then
18786 echo $ECHO_N "(cached) $ECHO_C" >&6
18787 else
18788 ac_func_search_save_LIBS=$LIBS
18789 ac_cv_search_zlibVersion=no
18790 cat >conftest.$ac_ext <<_ACEOF
18791 /* confdefs.h. */
18792 _ACEOF
18793 cat confdefs.h >>conftest.$ac_ext
18794 cat >>conftest.$ac_ext <<_ACEOF
18795 /* end confdefs.h. */
18797 /* Override any gcc2 internal prototype to avoid an error. */
18798 #ifdef __cplusplus
18799 extern "C"
18800 #endif
18801 /* We use char because int might match the return type of a gcc2
18802 builtin and then its argument prototype would still apply. */
18803 char zlibVersion ();
18805 main ()
18807 zlibVersion ();
18809 return 0;
18811 _ACEOF
18812 rm -f conftest.$ac_objext conftest$ac_exeext
18813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18814 (eval $ac_link) 2>conftest.er1
18815 ac_status=$?
18816 grep -v '^ *+' conftest.er1 >conftest.err
18817 rm -f conftest.er1
18818 cat conftest.err >&5
18819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820 (exit $ac_status); } &&
18821 { ac_try='test -z "$ac_c_werror_flag"
18822 || test ! -s conftest.err'
18823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18824 (eval $ac_try) 2>&5
18825 ac_status=$?
18826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18827 (exit $ac_status); }; } &&
18828 { ac_try='test -s conftest$ac_exeext'
18829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18830 (eval $ac_try) 2>&5
18831 ac_status=$?
18832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833 (exit $ac_status); }; }; then
18834 ac_cv_search_zlibVersion="none required"
18835 else
18836 echo "$as_me: failed program was:" >&5
18837 sed 's/^/| /' conftest.$ac_ext >&5
18840 rm -f conftest.err conftest.$ac_objext \
18841 conftest$ac_exeext conftest.$ac_ext
18842 if test "$ac_cv_search_zlibVersion" = no; then
18843 for ac_lib in z; do
18844 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18845 cat >conftest.$ac_ext <<_ACEOF
18846 /* confdefs.h. */
18847 _ACEOF
18848 cat confdefs.h >>conftest.$ac_ext
18849 cat >>conftest.$ac_ext <<_ACEOF
18850 /* end confdefs.h. */
18852 /* Override any gcc2 internal prototype to avoid an error. */
18853 #ifdef __cplusplus
18854 extern "C"
18855 #endif
18856 /* We use char because int might match the return type of a gcc2
18857 builtin and then its argument prototype would still apply. */
18858 char zlibVersion ();
18860 main ()
18862 zlibVersion ();
18864 return 0;
18866 _ACEOF
18867 rm -f conftest.$ac_objext conftest$ac_exeext
18868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18869 (eval $ac_link) 2>conftest.er1
18870 ac_status=$?
18871 grep -v '^ *+' conftest.er1 >conftest.err
18872 rm -f conftest.er1
18873 cat conftest.err >&5
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); } &&
18876 { ac_try='test -z "$ac_c_werror_flag"
18877 || test ! -s conftest.err'
18878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18879 (eval $ac_try) 2>&5
18880 ac_status=$?
18881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882 (exit $ac_status); }; } &&
18883 { ac_try='test -s conftest$ac_exeext'
18884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18885 (eval $ac_try) 2>&5
18886 ac_status=$?
18887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888 (exit $ac_status); }; }; then
18889 ac_cv_search_zlibVersion="-l$ac_lib"
18890 break
18891 else
18892 echo "$as_me: failed program was:" >&5
18893 sed 's/^/| /' conftest.$ac_ext >&5
18896 rm -f conftest.err conftest.$ac_objext \
18897 conftest$ac_exeext conftest.$ac_ext
18898 done
18900 LIBS=$ac_func_search_save_LIBS
18902 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
18903 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
18904 if test "$ac_cv_search_zlibVersion" != no; then
18905 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
18907 for ac_header in zlib.h
18909 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18911 echo "$as_me:$LINENO: checking for $ac_header" >&5
18912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18914 echo $ECHO_N "(cached) $ECHO_C" >&6
18916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18918 else
18919 # Is the header compilable?
18920 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18921 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18922 cat >conftest.$ac_ext <<_ACEOF
18923 /* confdefs.h. */
18924 _ACEOF
18925 cat confdefs.h >>conftest.$ac_ext
18926 cat >>conftest.$ac_ext <<_ACEOF
18927 /* end confdefs.h. */
18928 $ac_includes_default
18929 #include <$ac_header>
18930 _ACEOF
18931 rm -f conftest.$ac_objext
18932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18933 (eval $ac_compile) 2>conftest.er1
18934 ac_status=$?
18935 grep -v '^ *+' conftest.er1 >conftest.err
18936 rm -f conftest.er1
18937 cat conftest.err >&5
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); } &&
18940 { ac_try='test -z "$ac_c_werror_flag"
18941 || test ! -s conftest.err'
18942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18943 (eval $ac_try) 2>&5
18944 ac_status=$?
18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); }; } &&
18947 { ac_try='test -s conftest.$ac_objext'
18948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18949 (eval $ac_try) 2>&5
18950 ac_status=$?
18951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952 (exit $ac_status); }; }; then
18953 ac_header_compiler=yes
18954 else
18955 echo "$as_me: failed program was:" >&5
18956 sed 's/^/| /' conftest.$ac_ext >&5
18958 ac_header_compiler=no
18960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18961 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18962 echo "${ECHO_T}$ac_header_compiler" >&6
18964 # Is the header present?
18965 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18966 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18967 cat >conftest.$ac_ext <<_ACEOF
18968 /* confdefs.h. */
18969 _ACEOF
18970 cat confdefs.h >>conftest.$ac_ext
18971 cat >>conftest.$ac_ext <<_ACEOF
18972 /* end confdefs.h. */
18973 #include <$ac_header>
18974 _ACEOF
18975 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18976 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18977 ac_status=$?
18978 grep -v '^ *+' conftest.er1 >conftest.err
18979 rm -f conftest.er1
18980 cat conftest.err >&5
18981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 (exit $ac_status); } >/dev/null; then
18983 if test -s conftest.err; then
18984 ac_cpp_err=$ac_c_preproc_warn_flag
18985 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18986 else
18987 ac_cpp_err=
18989 else
18990 ac_cpp_err=yes
18992 if test -z "$ac_cpp_err"; then
18993 ac_header_preproc=yes
18994 else
18995 echo "$as_me: failed program was:" >&5
18996 sed 's/^/| /' conftest.$ac_ext >&5
18998 ac_header_preproc=no
19000 rm -f conftest.err conftest.$ac_ext
19001 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19002 echo "${ECHO_T}$ac_header_preproc" >&6
19004 # So? What about this header?
19005 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19006 yes:no: )
19007 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19008 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19010 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19011 ac_header_preproc=yes
19013 no:yes:* )
19014 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19015 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19016 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19017 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19018 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19019 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19020 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19021 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19023 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19024 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19025 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19027 cat <<\_ASBOX
19028 ## ------------------------------------------ ##
19029 ## Report this to the AC_PACKAGE_NAME lists. ##
19030 ## ------------------------------------------ ##
19031 _ASBOX
19033 sed "s/^/$as_me: WARNING: /" >&2
19035 esac
19036 echo "$as_me:$LINENO: checking for $ac_header" >&5
19037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19039 echo $ECHO_N "(cached) $ECHO_C" >&6
19040 else
19041 eval "$as_ac_Header=\$ac_header_preproc"
19043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19044 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19047 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19048 cat >>confdefs.h <<_ACEOF
19049 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19050 _ACEOF
19054 done
19059 # If we are configured native, pick a core file support file.
19060 COREFILE=
19061 COREFLAG=
19062 TRAD_HEADER=
19063 if test "${target}" = "${host}"; then
19064 case "${host}" in
19065 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
19066 COREFILE=''
19068 alpha*-*-linux-*)
19069 COREFILE=trad-core.lo
19070 TRAD_HEADER='"hosts/alphalinux.h"'
19072 alpha*-*-netbsd* | alpha*-*-openbsd*)
19073 COREFILE=netbsd-core.lo
19075 alpha*-*-*) COREFILE=osf-core.lo ;;
19076 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
19077 COREFILE='' ;;
19078 arm-*-netbsd* | arm-*-openbsd*)
19079 COREFILE=netbsd-core.lo
19081 arm-*-riscix) COREFILE=trad-core.lo ;;
19082 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
19083 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
19084 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
19085 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
19086 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
19087 hppa*-*-netbsd* | hppa*-*-openbsd*)
19088 COREFILE=netbsd-core.lo
19091 i370-*-*)
19092 COREFILE=trad-core.lo
19093 TRAD_HEADER='"hosts/i370linux.h"'
19096 i[3-7]86-sequent-bsd*)
19097 COREFILE=trad-core.lo
19098 TRAD_HEADER='"hosts/symmetry.h"'
19100 i[3-7]86-sequent-sysv4*) ;;
19101 i[3-7]86-sequent-sysv*)
19102 COREFILE=trad-core.lo
19103 TRAD_HEADER='"hosts/symmetry.h"'
19105 i[3-7]86-*-bsdi)
19106 COREFILE=
19108 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*)
19109 COREFILE=trad-core.lo
19110 TRAD_HEADER='"hosts/i386bsd.h"'
19112 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
19113 COREFILE=''
19114 TRAD_HEADER='"hosts/i386bsd.h"'
19116 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
19117 COREFILE=netbsd-core.lo
19119 i[3-7]86-esix-sysv3*)
19120 COREFILE=trad-core.lo
19121 TRAD_HEADER='"hosts/esix.h"'
19123 i[3-7]86-*-sco3.2v5*)
19124 COREFILE=sco5-core.lo
19126 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
19127 COREFILE=trad-core.lo
19128 TRAD_HEADER='"hosts/i386sco.h"'
19130 i[3-7]86-*-mach3*)
19131 COREFILE=trad-core.lo
19132 TRAD_HEADER='"hosts/i386mach3.h"'
19134 i[3-7]86-*-linux-*)
19135 COREFILE=trad-core.lo
19136 TRAD_HEADER='"hosts/i386linux.h"'
19138 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
19139 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
19140 i860-*-mach3* | i860-*-osf1*)
19141 COREFILE=trad-core.lo
19142 TRAD_HEADER='"hosts/i860mach3.h"'
19144 mips-*-netbsd* | mips*-*-openbsd*)
19145 COREFILE=netbsd-core.lo
19147 mips-dec-*)
19148 COREFILE=trad-core.lo
19149 TRAD_HEADER='"hosts/decstation.h"'
19151 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
19152 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
19153 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
19154 mips-*-sysv4*) ;;
19155 mips-*-sysv* | mips-*-riscos*)
19156 COREFILE=trad-core.lo
19157 TRAD_HEADER='"hosts/riscos.h"'
19159 mips-sony-bsd*)
19160 COREFILE=trad-core.lo
19161 TRAD_HEADER='"hosts/news-mips.h"'
19163 m68*-bull*-sysv*)
19164 COREFILE=trad-core.lo
19165 TRAD_HEADER='"hosts/dpx2.h"'
19167 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
19168 m68*-hp-bsd*)
19169 COREFILE=trad-core.lo
19170 TRAD_HEADER='"hosts/hp300bsd.h"'
19172 m68*-*-linux-*)
19173 COREFILE=trad-core.lo
19174 TRAD_HEADER='"hosts/m68klinux.h"'
19176 m68*-motorola-sysv*)
19177 COREFILE=trad-core.lo
19178 TRAD_HEADER='"hosts/delta68.h"'
19180 m68*-sony-*)
19181 COREFILE=trad-core.lo
19182 TRAD_HEADER='"hosts/news.h"'
19184 m68*-*-netbsd* | m68*-*-openbsd*)
19185 COREFILE=netbsd-core.lo
19187 m68*-apple-aux*)
19188 COREFILE=trad-core.lo
19189 TRAD_HEADER='"hosts/m68kaux.h"'
19191 m88*-*-sysv4*)
19193 m88*-motorola-sysv*)
19194 COREFILE=ptrace-core.lo
19196 m88*-*-mach3*)
19197 COREFILE=trad-core.lo
19198 TRAD_HEADER='"hosts/m88kmach3.h"'
19200 m88*-*-openbsd*)
19201 COREFILE=netbsd-core.lo
19203 ns32k-pc532-mach)
19204 COREFILE=trad-core.lo
19205 TRAD_HEADER='"hosts/pc532mach.h"'
19207 ns32k-*-netbsd* | ns32k-*-openbsd*)
19208 COREFILE=netbsd-core.lo
19210 rs6000-*-lynx*)
19211 COREFILE=lynx-core.lo
19213 rs6000-*-aix5.* | powerpc-*-aix5.*)
19214 COREFILE=rs6000-core.lo
19215 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
19217 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
19218 COREFILE=rs6000-core.lo
19219 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
19220 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
19221 # have c_impl as a member of struct core_dumpx
19222 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
19223 echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
19224 cat >conftest.$ac_ext <<_ACEOF
19225 /* confdefs.h. */
19226 _ACEOF
19227 cat confdefs.h >>conftest.$ac_ext
19228 cat >>conftest.$ac_ext <<_ACEOF
19229 /* end confdefs.h. */
19230 #include <core.h>
19232 main ()
19234 struct core_dumpx c; c.c_impl = 0;
19236 return 0;
19238 _ACEOF
19239 rm -f conftest.$ac_objext
19240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19241 (eval $ac_compile) 2>conftest.er1
19242 ac_status=$?
19243 grep -v '^ *+' conftest.er1 >conftest.err
19244 rm -f conftest.er1
19245 cat conftest.err >&5
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); } &&
19248 { ac_try='test -z "$ac_c_werror_flag"
19249 || test ! -s conftest.err'
19250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19251 (eval $ac_try) 2>&5
19252 ac_status=$?
19253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); }; } &&
19255 { ac_try='test -s conftest.$ac_objext'
19256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19257 (eval $ac_try) 2>&5
19258 ac_status=$?
19259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); }; }; then
19262 cat >>confdefs.h <<\_ACEOF
19263 #define HAVE_ST_C_IMPL 1
19264 _ACEOF
19266 echo "$as_me:$LINENO: result: yes" >&5
19267 echo "${ECHO_T}yes" >&6
19268 else
19269 echo "$as_me: failed program was:" >&5
19270 sed 's/^/| /' conftest.$ac_ext >&5
19272 echo "$as_me:$LINENO: result: no" >&5
19273 echo "${ECHO_T}no" >&6
19275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19277 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
19278 rs6000-*-*) COREFILE=rs6000-core.lo ;;
19279 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
19280 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
19281 powerpc-*-beos*) ;;
19282 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
19283 COREFILE='' ;;
19284 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
19285 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
19286 s390*-*-*) COREFILE=trad-core.lo ;;
19287 sh*-*-netbsd* | sh*-*-openbsd*)
19288 COREFILE=netbsd-core.lo
19290 sparc-*-netbsd* | sparc*-*-openbsd*)
19291 COREFILE=netbsd-core.lo
19293 tahoe-*-*)
19294 COREFILE=trad-core.lo
19295 TRAD_HEADER='"hosts/tahoe.h"'
19297 vax-*-netbsd* | vax-*-openbsd*)
19298 COREFILE=netbsd-core.lo
19300 vax-*-ultrix2*)
19301 COREFILE=trad-core.lo
19302 TRAD_HEADER='"hosts/vaxult2.h"'
19304 vax-*-ultrix*)
19305 COREFILE=trad-core.lo
19306 TRAD_HEADER='"hosts/vaxult2.h"'
19308 vax-*-linux-*)
19309 COREFILE=trad-core.lo
19310 TRAD_HEADER='"hosts/vaxlinux.h"'
19312 vax-*-*)
19313 COREFILE=trad-core.lo
19314 TRAD_HEADER='"hosts/vaxbsd.h"'
19316 x86_64-*-netbsd* | x86_64-*-openbsd*)
19317 COREFILE=netbsd-core.lo
19319 esac
19321 case "$COREFILE" in
19322 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
19323 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
19324 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
19325 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
19326 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
19327 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
19328 osf-core.lo) COREFLAG=-DOSF_CORE ;;
19329 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
19330 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
19331 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
19332 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
19333 esac
19335 # ELF corefile support has several flavors, but all of
19336 # them use something called <sys/procfs.h>
19338 for ac_header in sys/procfs.h
19340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19342 echo "$as_me:$LINENO: checking for $ac_header" >&5
19343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19345 echo $ECHO_N "(cached) $ECHO_C" >&6
19347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19349 else
19350 # Is the header compilable?
19351 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19353 cat >conftest.$ac_ext <<_ACEOF
19354 /* confdefs.h. */
19355 _ACEOF
19356 cat confdefs.h >>conftest.$ac_ext
19357 cat >>conftest.$ac_ext <<_ACEOF
19358 /* end confdefs.h. */
19359 $ac_includes_default
19360 #include <$ac_header>
19361 _ACEOF
19362 rm -f conftest.$ac_objext
19363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19364 (eval $ac_compile) 2>conftest.er1
19365 ac_status=$?
19366 grep -v '^ *+' conftest.er1 >conftest.err
19367 rm -f conftest.er1
19368 cat conftest.err >&5
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); } &&
19371 { ac_try='test -z "$ac_c_werror_flag"
19372 || test ! -s conftest.err'
19373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19374 (eval $ac_try) 2>&5
19375 ac_status=$?
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); }; } &&
19378 { ac_try='test -s conftest.$ac_objext'
19379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19380 (eval $ac_try) 2>&5
19381 ac_status=$?
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 (exit $ac_status); }; }; then
19384 ac_header_compiler=yes
19385 else
19386 echo "$as_me: failed program was:" >&5
19387 sed 's/^/| /' conftest.$ac_ext >&5
19389 ac_header_compiler=no
19391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19392 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19393 echo "${ECHO_T}$ac_header_compiler" >&6
19395 # Is the header present?
19396 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19397 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19398 cat >conftest.$ac_ext <<_ACEOF
19399 /* confdefs.h. */
19400 _ACEOF
19401 cat confdefs.h >>conftest.$ac_ext
19402 cat >>conftest.$ac_ext <<_ACEOF
19403 /* end confdefs.h. */
19404 #include <$ac_header>
19405 _ACEOF
19406 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19407 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19408 ac_status=$?
19409 grep -v '^ *+' conftest.er1 >conftest.err
19410 rm -f conftest.er1
19411 cat conftest.err >&5
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); } >/dev/null; then
19414 if test -s conftest.err; then
19415 ac_cpp_err=$ac_c_preproc_warn_flag
19416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19417 else
19418 ac_cpp_err=
19420 else
19421 ac_cpp_err=yes
19423 if test -z "$ac_cpp_err"; then
19424 ac_header_preproc=yes
19425 else
19426 echo "$as_me: failed program was:" >&5
19427 sed 's/^/| /' conftest.$ac_ext >&5
19429 ac_header_preproc=no
19431 rm -f conftest.err conftest.$ac_ext
19432 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19433 echo "${ECHO_T}$ac_header_preproc" >&6
19435 # So? What about this header?
19436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19437 yes:no: )
19438 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19439 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19441 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19442 ac_header_preproc=yes
19444 no:yes:* )
19445 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19446 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19447 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19448 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19449 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19450 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19451 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19452 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19454 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19455 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19456 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19458 cat <<\_ASBOX
19459 ## ------------------------------------------ ##
19460 ## Report this to the AC_PACKAGE_NAME lists. ##
19461 ## ------------------------------------------ ##
19462 _ASBOX
19464 sed "s/^/$as_me: WARNING: /" >&2
19466 esac
19467 echo "$as_me:$LINENO: checking for $ac_header" >&5
19468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19470 echo $ECHO_N "(cached) $ECHO_C" >&6
19471 else
19472 eval "$as_ac_Header=\$ac_header_preproc"
19474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19479 cat >>confdefs.h <<_ACEOF
19480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19481 _ACEOF
19485 done
19487 if test "$ac_cv_header_sys_procfs_h" = yes; then
19488 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
19489 echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
19490 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
19491 echo $ECHO_N "(cached) $ECHO_C" >&6
19492 else
19493 cat >conftest.$ac_ext <<_ACEOF
19494 /* confdefs.h. */
19495 _ACEOF
19496 cat confdefs.h >>conftest.$ac_ext
19497 cat >>conftest.$ac_ext <<_ACEOF
19498 /* end confdefs.h. */
19500 #define _SYSCALL32
19501 #include <sys/procfs.h>
19503 main ()
19505 prstatus_t avar
19507 return 0;
19509 _ACEOF
19510 rm -f conftest.$ac_objext
19511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19512 (eval $ac_compile) 2>conftest.er1
19513 ac_status=$?
19514 grep -v '^ *+' conftest.er1 >conftest.err
19515 rm -f conftest.er1
19516 cat conftest.err >&5
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); } &&
19519 { ac_try='test -z "$ac_c_werror_flag"
19520 || test ! -s conftest.err'
19521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19522 (eval $ac_try) 2>&5
19523 ac_status=$?
19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); }; } &&
19526 { ac_try='test -s conftest.$ac_objext'
19527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19528 (eval $ac_try) 2>&5
19529 ac_status=$?
19530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531 (exit $ac_status); }; }; then
19532 bfd_cv_have_sys_procfs_type_prstatus_t=yes
19533 else
19534 echo "$as_me: failed program was:" >&5
19535 sed 's/^/| /' conftest.$ac_ext >&5
19537 bfd_cv_have_sys_procfs_type_prstatus_t=no
19540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19543 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
19545 cat >>confdefs.h <<\_ACEOF
19546 #define HAVE_PRSTATUS_T 1
19547 _ACEOF
19550 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
19551 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
19553 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
19554 echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
19555 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
19556 echo $ECHO_N "(cached) $ECHO_C" >&6
19557 else
19558 cat >conftest.$ac_ext <<_ACEOF
19559 /* confdefs.h. */
19560 _ACEOF
19561 cat confdefs.h >>conftest.$ac_ext
19562 cat >>conftest.$ac_ext <<_ACEOF
19563 /* end confdefs.h. */
19565 #define _SYSCALL32
19566 #include <sys/procfs.h>
19568 main ()
19570 prstatus32_t avar
19572 return 0;
19574 _ACEOF
19575 rm -f conftest.$ac_objext
19576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19577 (eval $ac_compile) 2>conftest.er1
19578 ac_status=$?
19579 grep -v '^ *+' conftest.er1 >conftest.err
19580 rm -f conftest.er1
19581 cat conftest.err >&5
19582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583 (exit $ac_status); } &&
19584 { ac_try='test -z "$ac_c_werror_flag"
19585 || test ! -s conftest.err'
19586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19587 (eval $ac_try) 2>&5
19588 ac_status=$?
19589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590 (exit $ac_status); }; } &&
19591 { ac_try='test -s conftest.$ac_objext'
19592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19593 (eval $ac_try) 2>&5
19594 ac_status=$?
19595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596 (exit $ac_status); }; }; then
19597 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
19598 else
19599 echo "$as_me: failed program was:" >&5
19600 sed 's/^/| /' conftest.$ac_ext >&5
19602 bfd_cv_have_sys_procfs_type_prstatus32_t=no
19605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19608 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
19610 cat >>confdefs.h <<\_ACEOF
19611 #define HAVE_PRSTATUS32_T 1
19612 _ACEOF
19615 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
19616 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
19618 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
19619 echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
19620 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
19621 echo $ECHO_N "(cached) $ECHO_C" >&6
19622 else
19623 cat >conftest.$ac_ext <<_ACEOF
19624 /* confdefs.h. */
19625 _ACEOF
19626 cat confdefs.h >>conftest.$ac_ext
19627 cat >>conftest.$ac_ext <<_ACEOF
19628 /* end confdefs.h. */
19630 #define _SYSCALL32
19631 #include <sys/procfs.h>
19633 main ()
19635 prstatus_t avar; void* aref = (void*) &avar.pr_who
19637 return 0;
19639 _ACEOF
19640 rm -f conftest.$ac_objext
19641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19642 (eval $ac_compile) 2>conftest.er1
19643 ac_status=$?
19644 grep -v '^ *+' conftest.er1 >conftest.err
19645 rm -f conftest.er1
19646 cat conftest.err >&5
19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); } &&
19649 { ac_try='test -z "$ac_c_werror_flag"
19650 || test ! -s conftest.err'
19651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19652 (eval $ac_try) 2>&5
19653 ac_status=$?
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); }; } &&
19656 { ac_try='test -s conftest.$ac_objext'
19657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19658 (eval $ac_try) 2>&5
19659 ac_status=$?
19660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661 (exit $ac_status); }; }; then
19662 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
19663 else
19664 echo "$as_me: failed program was:" >&5
19665 sed 's/^/| /' conftest.$ac_ext >&5
19667 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
19670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19673 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
19675 cat >>confdefs.h <<\_ACEOF
19676 #define HAVE_PRSTATUS_T_PR_WHO 1
19677 _ACEOF
19680 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
19681 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
19683 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
19684 echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
19685 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
19686 echo $ECHO_N "(cached) $ECHO_C" >&6
19687 else
19688 cat >conftest.$ac_ext <<_ACEOF
19689 /* confdefs.h. */
19690 _ACEOF
19691 cat confdefs.h >>conftest.$ac_ext
19692 cat >>conftest.$ac_ext <<_ACEOF
19693 /* end confdefs.h. */
19695 #define _SYSCALL32
19696 #include <sys/procfs.h>
19698 main ()
19700 prstatus32_t avar; void* aref = (void*) &avar.pr_who
19702 return 0;
19704 _ACEOF
19705 rm -f conftest.$ac_objext
19706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19707 (eval $ac_compile) 2>conftest.er1
19708 ac_status=$?
19709 grep -v '^ *+' conftest.er1 >conftest.err
19710 rm -f conftest.er1
19711 cat conftest.err >&5
19712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713 (exit $ac_status); } &&
19714 { ac_try='test -z "$ac_c_werror_flag"
19715 || test ! -s conftest.err'
19716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19717 (eval $ac_try) 2>&5
19718 ac_status=$?
19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720 (exit $ac_status); }; } &&
19721 { ac_try='test -s conftest.$ac_objext'
19722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19723 (eval $ac_try) 2>&5
19724 ac_status=$?
19725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726 (exit $ac_status); }; }; then
19727 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
19728 else
19729 echo "$as_me: failed program was:" >&5
19730 sed 's/^/| /' conftest.$ac_ext >&5
19732 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
19735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19738 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
19740 cat >>confdefs.h <<\_ACEOF
19741 #define HAVE_PRSTATUS32_T_PR_WHO 1
19742 _ACEOF
19745 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
19746 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
19748 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
19749 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
19750 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
19751 echo $ECHO_N "(cached) $ECHO_C" >&6
19752 else
19753 cat >conftest.$ac_ext <<_ACEOF
19754 /* confdefs.h. */
19755 _ACEOF
19756 cat confdefs.h >>conftest.$ac_ext
19757 cat >>conftest.$ac_ext <<_ACEOF
19758 /* end confdefs.h. */
19760 #define _SYSCALL32
19761 #include <sys/procfs.h>
19763 main ()
19765 pstatus_t avar
19767 return 0;
19769 _ACEOF
19770 rm -f conftest.$ac_objext
19771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19772 (eval $ac_compile) 2>conftest.er1
19773 ac_status=$?
19774 grep -v '^ *+' conftest.er1 >conftest.err
19775 rm -f conftest.er1
19776 cat conftest.err >&5
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); } &&
19779 { ac_try='test -z "$ac_c_werror_flag"
19780 || test ! -s conftest.err'
19781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19782 (eval $ac_try) 2>&5
19783 ac_status=$?
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); }; } &&
19786 { ac_try='test -s conftest.$ac_objext'
19787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19788 (eval $ac_try) 2>&5
19789 ac_status=$?
19790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791 (exit $ac_status); }; }; then
19792 bfd_cv_have_sys_procfs_type_pstatus_t=yes
19793 else
19794 echo "$as_me: failed program was:" >&5
19795 sed 's/^/| /' conftest.$ac_ext >&5
19797 bfd_cv_have_sys_procfs_type_pstatus_t=no
19800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19803 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
19805 cat >>confdefs.h <<\_ACEOF
19806 #define HAVE_PSTATUS_T 1
19807 _ACEOF
19810 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
19811 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
19813 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
19814 echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
19815 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
19816 echo $ECHO_N "(cached) $ECHO_C" >&6
19817 else
19818 cat >conftest.$ac_ext <<_ACEOF
19819 /* confdefs.h. */
19820 _ACEOF
19821 cat confdefs.h >>conftest.$ac_ext
19822 cat >>conftest.$ac_ext <<_ACEOF
19823 /* end confdefs.h. */
19825 #define _SYSCALL32
19826 #include <sys/procfs.h>
19828 main ()
19830 pxstatus_t avar
19832 return 0;
19834 _ACEOF
19835 rm -f conftest.$ac_objext
19836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19837 (eval $ac_compile) 2>conftest.er1
19838 ac_status=$?
19839 grep -v '^ *+' conftest.er1 >conftest.err
19840 rm -f conftest.er1
19841 cat conftest.err >&5
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); } &&
19844 { ac_try='test -z "$ac_c_werror_flag"
19845 || test ! -s conftest.err'
19846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19847 (eval $ac_try) 2>&5
19848 ac_status=$?
19849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850 (exit $ac_status); }; } &&
19851 { ac_try='test -s conftest.$ac_objext'
19852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19853 (eval $ac_try) 2>&5
19854 ac_status=$?
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); }; }; then
19857 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
19858 else
19859 echo "$as_me: failed program was:" >&5
19860 sed 's/^/| /' conftest.$ac_ext >&5
19862 bfd_cv_have_sys_procfs_type_pxstatus_t=no
19865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19868 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
19870 cat >>confdefs.h <<\_ACEOF
19871 #define HAVE_PXSTATUS_T 1
19872 _ACEOF
19875 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
19876 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
19878 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
19879 echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
19880 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
19881 echo $ECHO_N "(cached) $ECHO_C" >&6
19882 else
19883 cat >conftest.$ac_ext <<_ACEOF
19884 /* confdefs.h. */
19885 _ACEOF
19886 cat confdefs.h >>conftest.$ac_ext
19887 cat >>conftest.$ac_ext <<_ACEOF
19888 /* end confdefs.h. */
19890 #define _SYSCALL32
19891 #include <sys/procfs.h>
19893 main ()
19895 pstatus32_t avar
19897 return 0;
19899 _ACEOF
19900 rm -f conftest.$ac_objext
19901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19902 (eval $ac_compile) 2>conftest.er1
19903 ac_status=$?
19904 grep -v '^ *+' conftest.er1 >conftest.err
19905 rm -f conftest.er1
19906 cat conftest.err >&5
19907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908 (exit $ac_status); } &&
19909 { ac_try='test -z "$ac_c_werror_flag"
19910 || test ! -s conftest.err'
19911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19912 (eval $ac_try) 2>&5
19913 ac_status=$?
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); }; } &&
19916 { ac_try='test -s conftest.$ac_objext'
19917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19918 (eval $ac_try) 2>&5
19919 ac_status=$?
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); }; }; then
19922 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
19923 else
19924 echo "$as_me: failed program was:" >&5
19925 sed 's/^/| /' conftest.$ac_ext >&5
19927 bfd_cv_have_sys_procfs_type_pstatus32_t=no
19930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19933 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
19935 cat >>confdefs.h <<\_ACEOF
19936 #define HAVE_PSTATUS32_T 1
19937 _ACEOF
19940 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
19941 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
19943 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
19944 echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
19945 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
19946 echo $ECHO_N "(cached) $ECHO_C" >&6
19947 else
19948 cat >conftest.$ac_ext <<_ACEOF
19949 /* confdefs.h. */
19950 _ACEOF
19951 cat confdefs.h >>conftest.$ac_ext
19952 cat >>conftest.$ac_ext <<_ACEOF
19953 /* end confdefs.h. */
19955 #define _SYSCALL32
19956 #include <sys/procfs.h>
19958 main ()
19960 prpsinfo_t avar
19962 return 0;
19964 _ACEOF
19965 rm -f conftest.$ac_objext
19966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19967 (eval $ac_compile) 2>conftest.er1
19968 ac_status=$?
19969 grep -v '^ *+' conftest.er1 >conftest.err
19970 rm -f conftest.er1
19971 cat conftest.err >&5
19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973 (exit $ac_status); } &&
19974 { ac_try='test -z "$ac_c_werror_flag"
19975 || test ! -s conftest.err'
19976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19977 (eval $ac_try) 2>&5
19978 ac_status=$?
19979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980 (exit $ac_status); }; } &&
19981 { ac_try='test -s conftest.$ac_objext'
19982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19983 (eval $ac_try) 2>&5
19984 ac_status=$?
19985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986 (exit $ac_status); }; }; then
19987 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
19988 else
19989 echo "$as_me: failed program was:" >&5
19990 sed 's/^/| /' conftest.$ac_ext >&5
19992 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
19995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19998 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
20000 cat >>confdefs.h <<\_ACEOF
20001 #define HAVE_PRPSINFO_T 1
20002 _ACEOF
20005 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
20006 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
20008 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
20009 echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
20010 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
20011 echo $ECHO_N "(cached) $ECHO_C" >&6
20012 else
20013 cat >conftest.$ac_ext <<_ACEOF
20014 /* confdefs.h. */
20015 _ACEOF
20016 cat confdefs.h >>conftest.$ac_ext
20017 cat >>conftest.$ac_ext <<_ACEOF
20018 /* end confdefs.h. */
20020 #define _SYSCALL32
20021 #include <sys/procfs.h>
20023 main ()
20025 prpsinfo32_t avar
20027 return 0;
20029 _ACEOF
20030 rm -f conftest.$ac_objext
20031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20032 (eval $ac_compile) 2>conftest.er1
20033 ac_status=$?
20034 grep -v '^ *+' conftest.er1 >conftest.err
20035 rm -f conftest.er1
20036 cat conftest.err >&5
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); } &&
20039 { ac_try='test -z "$ac_c_werror_flag"
20040 || test ! -s conftest.err'
20041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20042 (eval $ac_try) 2>&5
20043 ac_status=$?
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); }; } &&
20046 { ac_try='test -s conftest.$ac_objext'
20047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20048 (eval $ac_try) 2>&5
20049 ac_status=$?
20050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051 (exit $ac_status); }; }; then
20052 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
20053 else
20054 echo "$as_me: failed program was:" >&5
20055 sed 's/^/| /' conftest.$ac_ext >&5
20057 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
20060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20063 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
20065 cat >>confdefs.h <<\_ACEOF
20066 #define HAVE_PRPSINFO32_T 1
20067 _ACEOF
20070 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
20071 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
20073 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
20074 echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
20075 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
20076 echo $ECHO_N "(cached) $ECHO_C" >&6
20077 else
20078 cat >conftest.$ac_ext <<_ACEOF
20079 /* confdefs.h. */
20080 _ACEOF
20081 cat confdefs.h >>conftest.$ac_ext
20082 cat >>conftest.$ac_ext <<_ACEOF
20083 /* end confdefs.h. */
20085 #define _SYSCALL32
20086 #include <sys/procfs.h>
20088 main ()
20090 psinfo_t avar
20092 return 0;
20094 _ACEOF
20095 rm -f conftest.$ac_objext
20096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20097 (eval $ac_compile) 2>conftest.er1
20098 ac_status=$?
20099 grep -v '^ *+' conftest.er1 >conftest.err
20100 rm -f conftest.er1
20101 cat conftest.err >&5
20102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); } &&
20104 { ac_try='test -z "$ac_c_werror_flag"
20105 || test ! -s conftest.err'
20106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20107 (eval $ac_try) 2>&5
20108 ac_status=$?
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); }; } &&
20111 { ac_try='test -s conftest.$ac_objext'
20112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20113 (eval $ac_try) 2>&5
20114 ac_status=$?
20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116 (exit $ac_status); }; }; then
20117 bfd_cv_have_sys_procfs_type_psinfo_t=yes
20118 else
20119 echo "$as_me: failed program was:" >&5
20120 sed 's/^/| /' conftest.$ac_ext >&5
20122 bfd_cv_have_sys_procfs_type_psinfo_t=no
20125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20128 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
20130 cat >>confdefs.h <<\_ACEOF
20131 #define HAVE_PSINFO_T 1
20132 _ACEOF
20135 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
20136 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
20138 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
20139 echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
20140 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
20141 echo $ECHO_N "(cached) $ECHO_C" >&6
20142 else
20143 cat >conftest.$ac_ext <<_ACEOF
20144 /* confdefs.h. */
20145 _ACEOF
20146 cat confdefs.h >>conftest.$ac_ext
20147 cat >>conftest.$ac_ext <<_ACEOF
20148 /* end confdefs.h. */
20150 #define _SYSCALL32
20151 #include <sys/procfs.h>
20153 main ()
20155 psinfo32_t avar
20157 return 0;
20159 _ACEOF
20160 rm -f conftest.$ac_objext
20161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20162 (eval $ac_compile) 2>conftest.er1
20163 ac_status=$?
20164 grep -v '^ *+' conftest.er1 >conftest.err
20165 rm -f conftest.er1
20166 cat conftest.err >&5
20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); } &&
20169 { ac_try='test -z "$ac_c_werror_flag"
20170 || test ! -s conftest.err'
20171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20172 (eval $ac_try) 2>&5
20173 ac_status=$?
20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); }; } &&
20176 { ac_try='test -s conftest.$ac_objext'
20177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20178 (eval $ac_try) 2>&5
20179 ac_status=$?
20180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181 (exit $ac_status); }; }; then
20182 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
20183 else
20184 echo "$as_me: failed program was:" >&5
20185 sed 's/^/| /' conftest.$ac_ext >&5
20187 bfd_cv_have_sys_procfs_type_psinfo32_t=no
20190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20193 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
20195 cat >>confdefs.h <<\_ACEOF
20196 #define HAVE_PSINFO32_T 1
20197 _ACEOF
20200 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
20201 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
20203 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
20204 echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
20205 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
20206 echo $ECHO_N "(cached) $ECHO_C" >&6
20207 else
20208 cat >conftest.$ac_ext <<_ACEOF
20209 /* confdefs.h. */
20210 _ACEOF
20211 cat confdefs.h >>conftest.$ac_ext
20212 cat >>conftest.$ac_ext <<_ACEOF
20213 /* end confdefs.h. */
20215 #define _SYSCALL32
20216 #include <sys/procfs.h>
20218 main ()
20220 lwpstatus_t avar
20222 return 0;
20224 _ACEOF
20225 rm -f conftest.$ac_objext
20226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20227 (eval $ac_compile) 2>conftest.er1
20228 ac_status=$?
20229 grep -v '^ *+' conftest.er1 >conftest.err
20230 rm -f conftest.er1
20231 cat conftest.err >&5
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); } &&
20234 { ac_try='test -z "$ac_c_werror_flag"
20235 || test ! -s conftest.err'
20236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20237 (eval $ac_try) 2>&5
20238 ac_status=$?
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); }; } &&
20241 { ac_try='test -s conftest.$ac_objext'
20242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20243 (eval $ac_try) 2>&5
20244 ac_status=$?
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); }; }; then
20247 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
20248 else
20249 echo "$as_me: failed program was:" >&5
20250 sed 's/^/| /' conftest.$ac_ext >&5
20252 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
20255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20258 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
20260 cat >>confdefs.h <<\_ACEOF
20261 #define HAVE_LWPSTATUS_T 1
20262 _ACEOF
20265 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
20266 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
20268 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
20269 echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
20270 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
20271 echo $ECHO_N "(cached) $ECHO_C" >&6
20272 else
20273 cat >conftest.$ac_ext <<_ACEOF
20274 /* confdefs.h. */
20275 _ACEOF
20276 cat confdefs.h >>conftest.$ac_ext
20277 cat >>conftest.$ac_ext <<_ACEOF
20278 /* end confdefs.h. */
20280 #define _SYSCALL32
20281 #include <sys/procfs.h>
20283 main ()
20285 lwpxstatus_t avar
20287 return 0;
20289 _ACEOF
20290 rm -f conftest.$ac_objext
20291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20292 (eval $ac_compile) 2>conftest.er1
20293 ac_status=$?
20294 grep -v '^ *+' conftest.er1 >conftest.err
20295 rm -f conftest.er1
20296 cat conftest.err >&5
20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); } &&
20299 { ac_try='test -z "$ac_c_werror_flag"
20300 || test ! -s conftest.err'
20301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20302 (eval $ac_try) 2>&5
20303 ac_status=$?
20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305 (exit $ac_status); }; } &&
20306 { ac_try='test -s conftest.$ac_objext'
20307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20308 (eval $ac_try) 2>&5
20309 ac_status=$?
20310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311 (exit $ac_status); }; }; then
20312 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
20313 else
20314 echo "$as_me: failed program was:" >&5
20315 sed 's/^/| /' conftest.$ac_ext >&5
20317 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
20320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20323 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
20325 cat >>confdefs.h <<\_ACEOF
20326 #define HAVE_LWPXSTATUS_T 1
20327 _ACEOF
20330 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
20331 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
20333 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
20334 echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
20335 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
20336 echo $ECHO_N "(cached) $ECHO_C" >&6
20337 else
20338 cat >conftest.$ac_ext <<_ACEOF
20339 /* confdefs.h. */
20340 _ACEOF
20341 cat confdefs.h >>conftest.$ac_ext
20342 cat >>conftest.$ac_ext <<_ACEOF
20343 /* end confdefs.h. */
20345 #define _SYSCALL32
20346 #include <sys/procfs.h>
20348 main ()
20350 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
20352 return 0;
20354 _ACEOF
20355 rm -f conftest.$ac_objext
20356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20357 (eval $ac_compile) 2>conftest.er1
20358 ac_status=$?
20359 grep -v '^ *+' conftest.er1 >conftest.err
20360 rm -f conftest.er1
20361 cat conftest.err >&5
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); } &&
20364 { ac_try='test -z "$ac_c_werror_flag"
20365 || test ! -s conftest.err'
20366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20367 (eval $ac_try) 2>&5
20368 ac_status=$?
20369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370 (exit $ac_status); }; } &&
20371 { ac_try='test -s conftest.$ac_objext'
20372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20373 (eval $ac_try) 2>&5
20374 ac_status=$?
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); }; }; then
20377 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
20378 else
20379 echo "$as_me: failed program was:" >&5
20380 sed 's/^/| /' conftest.$ac_ext >&5
20382 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
20385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20388 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
20390 cat >>confdefs.h <<\_ACEOF
20391 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
20392 _ACEOF
20395 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
20396 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
20398 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
20399 echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
20400 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
20401 echo $ECHO_N "(cached) $ECHO_C" >&6
20402 else
20403 cat >conftest.$ac_ext <<_ACEOF
20404 /* confdefs.h. */
20405 _ACEOF
20406 cat confdefs.h >>conftest.$ac_ext
20407 cat >>conftest.$ac_ext <<_ACEOF
20408 /* end confdefs.h. */
20410 #define _SYSCALL32
20411 #include <sys/procfs.h>
20413 main ()
20415 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
20417 return 0;
20419 _ACEOF
20420 rm -f conftest.$ac_objext
20421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20422 (eval $ac_compile) 2>conftest.er1
20423 ac_status=$?
20424 grep -v '^ *+' conftest.er1 >conftest.err
20425 rm -f conftest.er1
20426 cat conftest.err >&5
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); } &&
20429 { ac_try='test -z "$ac_c_werror_flag"
20430 || test ! -s conftest.err'
20431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20432 (eval $ac_try) 2>&5
20433 ac_status=$?
20434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435 (exit $ac_status); }; } &&
20436 { ac_try='test -s conftest.$ac_objext'
20437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20438 (eval $ac_try) 2>&5
20439 ac_status=$?
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); }; }; then
20442 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
20443 else
20444 echo "$as_me: failed program was:" >&5
20445 sed 's/^/| /' conftest.$ac_ext >&5
20447 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
20450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20453 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
20455 cat >>confdefs.h <<\_ACEOF
20456 #define HAVE_LWPSTATUS_T_PR_REG 1
20457 _ACEOF
20460 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
20461 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
20463 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
20464 echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
20465 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
20466 echo $ECHO_N "(cached) $ECHO_C" >&6
20467 else
20468 cat >conftest.$ac_ext <<_ACEOF
20469 /* confdefs.h. */
20470 _ACEOF
20471 cat confdefs.h >>conftest.$ac_ext
20472 cat >>conftest.$ac_ext <<_ACEOF
20473 /* end confdefs.h. */
20475 #define _SYSCALL32
20476 #include <sys/procfs.h>
20478 main ()
20480 win32_pstatus_t avar
20482 return 0;
20484 _ACEOF
20485 rm -f conftest.$ac_objext
20486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20487 (eval $ac_compile) 2>conftest.er1
20488 ac_status=$?
20489 grep -v '^ *+' conftest.er1 >conftest.err
20490 rm -f conftest.er1
20491 cat conftest.err >&5
20492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 (exit $ac_status); } &&
20494 { ac_try='test -z "$ac_c_werror_flag"
20495 || test ! -s conftest.err'
20496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20497 (eval $ac_try) 2>&5
20498 ac_status=$?
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); }; } &&
20501 { ac_try='test -s conftest.$ac_objext'
20502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20503 (eval $ac_try) 2>&5
20504 ac_status=$?
20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); }; }; then
20507 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
20508 else
20509 echo "$as_me: failed program was:" >&5
20510 sed 's/^/| /' conftest.$ac_ext >&5
20512 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
20515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20518 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
20520 cat >>confdefs.h <<\_ACEOF
20521 #define HAVE_WIN32_PSTATUS_T 1
20522 _ACEOF
20525 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
20526 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
20532 if test -n "$TRAD_HEADER"; then
20534 cat >>confdefs.h <<_ACEOF
20535 #define TRAD_HEADER $TRAD_HEADER
20536 _ACEOF
20540 # Horrible hacks to build DLLs on Windows.
20541 WIN32LDFLAGS=
20542 WIN32LIBADD=
20543 case "${host}" in
20544 *-*-cygwin*)
20545 if test "$enable_shared" = "yes"; then
20546 WIN32LDFLAGS="-no-undefined"
20547 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
20550 *-*-linux*)
20551 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
20552 # libiberty.a.
20553 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
20554 if test -n "$x"; then
20555 WIN32LIBADD="-L../libiberty/pic -liberty"
20558 esac
20562 # target stuff:
20564 # Canonicalize the secondary target names.
20565 if test -n "$enable_targets" ; then
20566 for targ in `echo $enable_targets | sed 's/,/ /g'`
20568 result=`$ac_config_sub $targ 2>/dev/null`
20569 if test -n "$result" ; then
20570 canon_targets="$canon_targets $result"
20571 else
20572 # Allow targets that config.sub doesn't recognize, like "all".
20573 canon_targets="$canon_targets $targ"
20575 done
20578 all_targets=false
20579 defvec=
20580 selvecs=
20581 assocvecs=
20582 selarchs=
20583 TDEFINES=
20584 for targ in $target $canon_targets
20586 if test "x$targ" = "xall"; then
20587 all_targets=true
20588 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
20589 else
20590 . $srcdir/config.bfd
20591 if test "x$targ" = "x$target"; then
20592 defvec=$targ_defvec
20594 selvecs="$selvecs $targ_defvec $targ_selvecs"
20595 selarchs="$selarchs $targ_archs"
20596 TDEFINES="$TDEFINES $targ_cflags"
20598 done
20601 # This processing still needs to be done if we're to decide properly whether
20602 # 64-bit support needs to be compiled in. Currently, it will be included if
20603 # the default or any other explicitly requested target requires it; it
20604 # will not be included on a 32-bit host if no 64-bit target is requested, and
20605 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
20606 # used.
20608 # uniq the default and selected vectors in all the configured targets.
20609 f=""
20610 for i in $selvecs ; do
20611 case " $f " in
20612 *" $i "*) ;;
20613 *) f="$f $i" ;;
20614 esac
20615 done
20616 selvecs="$f"
20619 # uniq the associated vectors in all the configured targets.
20620 f=""
20621 for i in $assocvecs ; do
20622 case " $f " in
20623 *" $i "*) ;;
20624 *) f="$f $i" ;;
20625 esac
20626 done
20627 assocvecs="$f"
20630 # uniq the architectures in all the configured targets.
20631 f=""
20632 for i in $selarchs ; do
20633 case " $f " in
20634 *" $i "*) ;;
20635 *) f="$f $i" ;;
20636 esac
20637 done
20638 selarchs="$f"
20640 # Target backend .o files.
20643 elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
20645 for vec in $selvecs
20647 target_size=32
20648 case "$vec" in
20649 # This list is alphabetized to make it easy to compare
20650 # with the two vector lists in targets.c. For the same reason,
20651 # use one entry per line, even though this leads to long lines.
20652 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
20653 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
20654 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
20655 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
20656 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
20657 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
20658 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
20659 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
20660 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
20661 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
20662 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
20663 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
20664 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
20665 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
20666 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
20667 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
20668 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
20669 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
20670 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
20671 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
20672 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
20673 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
20674 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
20675 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
20676 bfd_efi_bsdrv_ia32_vec) tb="$tb efi-bsdrv-ia32.lo peigen.lo cofflink.lo" ;;
20677 bfd_efi_rtdrv_ia32_vec) tb="$tb efi-rtdrv-ia32.lo peigen.lo cofflink.lo" ;;
20678 bfd_efi_app_x86_64_vec) tb="$tb efi-app-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
20679 bfd_efi_bsdrv_x86_64_vec) tb="$tb efi-bsdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
20680 bfd_efi_rtdrv_x86_64_vec) tb="$tb efi-rtdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
20681 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
20682 bfd_efi_bsdrv_ia64_vec) tb="$tb efi-bsdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
20683 bfd_efi_rtdrv_ia64_vec) tb="$tb efi-rtdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
20684 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
20685 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
20686 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
20687 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
20688 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
20689 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
20690 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20691 bfd_elf32_bigarm_symbian_vec)
20692 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20693 bfd_elf32_bigarm_vxworks_vec)
20694 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20695 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20696 bfd_elf32_bigmips_vxworks_vec)
20697 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20698 bfd_elf32_cr16_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
20699 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
20700 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
20701 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
20702 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
20703 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
20704 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
20705 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
20706 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
20707 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
20708 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
20709 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
20710 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
20711 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
20712 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
20713 bfd_elf32_i386_dragonfly_vec)
20714 tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
20715 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
20716 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
20717 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
20718 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
20719 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
20720 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
20721 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
20722 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
20723 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
20724 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
20725 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
20726 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
20727 bfd_elf32_littlearm_symbian_vec)
20728 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20729 bfd_elf32_littlearm_vxworks_vec)
20730 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20731 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20732 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20733 bfd_elf32_littlemips_vxworks_vec)
20734 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20735 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
20736 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
20737 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
20738 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
20739 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
20740 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
20741 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
20742 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
20743 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
20744 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
20745 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
20746 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
20747 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
20748 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
20749 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
20750 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
20751 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
20752 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20753 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20754 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20755 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20756 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
20757 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
20758 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
20759 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
20760 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
20761 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
20762 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
20763 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
20764 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
20765 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
20766 # FIXME: We include cofflink.lo not because it's needed for
20767 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
20768 # which needs it but does not list it. Should be fixed in right place.
20769 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20770 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20771 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20772 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20773 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
20774 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
20775 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20776 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
20777 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20778 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20779 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
20780 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
20781 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20782 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
20783 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20784 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
20785 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
20786 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
20787 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20788 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20789 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
20790 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
20791 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
20792 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
20793 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
20794 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
20795 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
20796 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
20797 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
20798 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
20799 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 ;;
20800 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
20801 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
20802 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
20803 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
20804 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
20805 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
20806 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 ;;
20807 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
20808 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
20809 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
20810 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
20811 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20812 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20813 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20814 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20815 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20816 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20817 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
20818 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
20819 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 ;;
20820 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 ;;
20821 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
20822 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
20823 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
20824 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
20825 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
20826 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
20827 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
20828 cris_aout_vec) tb="$tb aout-cris.lo" ;;
20829 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
20830 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
20831 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
20832 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
20833 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
20834 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
20835 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
20836 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
20837 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
20838 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
20839 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
20840 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
20841 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
20842 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
20843 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
20844 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
20845 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
20846 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
20847 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
20848 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
20849 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
20850 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
20851 i386msdos_vec) tb="$tb i386msdos.lo" ;;
20852 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
20853 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
20854 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
20855 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
20856 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
20857 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
20858 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
20859 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
20860 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
20861 ieee_vec) tb="$tb ieee.lo" ;;
20862 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
20863 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
20864 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
20865 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
20866 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
20867 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
20868 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
20869 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
20870 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
20871 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
20872 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
20873 mach_o_be_vec) tb="$tb mach-o.lo" ;;
20874 mach_o_le_vec) tb="$tb mach-o.lo" ;;
20875 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
20876 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
20877 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
20878 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
20879 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
20880 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
20881 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
20882 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
20883 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
20884 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
20885 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
20886 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
20887 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
20888 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
20889 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
20890 pef_vec) tb="$tb pef.lo" ;;
20891 pef_xlib_vec) tb="$tb pef.lo" ;;
20892 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
20893 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
20894 ppcboot_vec) tb="$tb ppcboot.lo" ;;
20895 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
20896 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
20897 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
20898 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
20899 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
20900 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
20901 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
20902 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
20903 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
20904 som_vec) tb="$tb som.lo" ;;
20905 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
20906 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
20907 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
20908 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
20909 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
20910 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
20911 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
20912 sym_vec) tb="$tb xsym.lo" ;;
20913 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
20914 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
20915 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
20916 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
20917 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
20918 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
20919 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
20920 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
20921 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
20922 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
20923 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
20924 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
20925 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
20926 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
20927 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
20928 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
20929 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
20930 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
20931 versados_vec) tb="$tb versados.lo" ;;
20932 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
20933 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
20934 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
20935 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
20936 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
20937 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
20939 # These appear out of order in targets.c
20940 srec_vec) tb="$tb srec.lo" ;;
20941 symbolsrec_vec) tb="$tb srec.lo" ;;
20942 tekhex_vec) tb="$tb tekhex.lo" ;;
20943 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
20944 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
20946 "") ;;
20947 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
20948 echo "$as_me: error: *** unknown target vector $vec" >&2;}
20949 { (exit 1); exit 1; }; } ;;
20950 esac
20952 if test ${target_size} = 64; then
20953 target64=true
20955 if test x"${vec}" = x"${defvec}"; then
20956 bfd_default_target_size=${target_size}
20958 done
20960 # Target architecture .o files.
20961 # A couple of CPUs use shorter file names to avoid problems on DOS
20962 # filesystems.
20963 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
20965 # Weed out duplicate .o files.
20966 f=""
20967 for i in $tb ; do
20968 case " $f " in
20969 *" $i "*) ;;
20970 *) f="$f $i" ;;
20971 esac
20972 done
20973 tb="$f"
20975 f=""
20976 for i in $ta ; do
20977 case " $f " in
20978 *" $i "*) ;;
20979 *) f="$f $i" ;;
20980 esac
20981 done
20982 ta="$f"
20984 bfd_backends="$tb"
20985 bfd_machines="$ta"
20987 if test x${all_targets} = xtrue ; then
20988 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
20989 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
20990 selvecs=
20991 havevecs=
20992 selarchs=
20993 test -n "$assocvecs" &&
20994 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
20995 else # all_targets is true
20996 # Only set these if they will be nonempty, for the clever echo.
20997 havevecs=
20998 assocvecs=
20999 test -n "$selvecs" &&
21000 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
21001 test -n "$selvecs" &&
21002 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
21003 test -n "$selarchs" &&
21004 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
21005 fi # all_targets is true
21007 case ${host64}-${target64}-${want64} in
21008 *true*)
21009 wordsize=64
21010 bfd64_libs='$(BFD64_LIBS)'
21011 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
21012 if test $BFD_HOST_64_BIT_DEFINED = 0; then
21013 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
21014 echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
21015 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
21016 echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
21018 if test -n "$GCC" ; then
21019 bad_64bit_gcc=no;
21020 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
21021 echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
21022 # Add more tests for gcc versions with non-working 64-bit support here.
21023 cat >conftest.$ac_ext <<_ACEOF
21024 /* confdefs.h. */
21025 _ACEOF
21026 cat confdefs.h >>conftest.$ac_ext
21027 cat >>conftest.$ac_ext <<_ACEOF
21028 /* end confdefs.h. */
21029 :__GNUC__:__GNUC_MINOR__:__i386__:
21030 _ACEOF
21031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21032 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
21033 bad_64bit_gcc=yes;
21034 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
21035 echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
21036 else
21037 echo "$as_me:$LINENO: result: no" >&5
21038 echo "${ECHO_T}no" >&6
21040 rm -f conftest*
21042 if test $bad_64bit_gcc = yes ; then
21043 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
21044 echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
21045 { (exit 1); exit 1; }; }
21049 false-false-false)
21050 wordsize=32
21051 all_backends='$(BFD32_BACKENDS)'
21053 esac
21062 # Determine the host dependant file_ptr a.k.a. off_t type. In order
21063 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
21064 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
21065 # Hopefully a reasonable assumption since fseeko et.al. should be
21066 # upward compatible.
21072 for ac_func in ftello ftello64 fseeko fseeko64 fopen64
21074 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21075 echo "$as_me:$LINENO: checking for $ac_func" >&5
21076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21077 if eval "test \"\${$as_ac_var+set}\" = set"; then
21078 echo $ECHO_N "(cached) $ECHO_C" >&6
21079 else
21080 cat >conftest.$ac_ext <<_ACEOF
21081 /* confdefs.h. */
21082 _ACEOF
21083 cat confdefs.h >>conftest.$ac_ext
21084 cat >>conftest.$ac_ext <<_ACEOF
21085 /* end confdefs.h. */
21086 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21088 #define $ac_func innocuous_$ac_func
21090 /* System header to define __stub macros and hopefully few prototypes,
21091 which can conflict with char $ac_func (); below.
21092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21093 <limits.h> exists even on freestanding compilers. */
21095 #ifdef __STDC__
21096 # include <limits.h>
21097 #else
21098 # include <assert.h>
21099 #endif
21101 #undef $ac_func
21103 /* Override any gcc2 internal prototype to avoid an error. */
21104 #ifdef __cplusplus
21105 extern "C"
21107 #endif
21108 /* We use char because int might match the return type of a gcc2
21109 builtin and then its argument prototype would still apply. */
21110 char $ac_func ();
21111 /* The GNU C library defines this for functions which it implements
21112 to always fail with ENOSYS. Some functions are actually named
21113 something starting with __ and the normal name is an alias. */
21114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21115 choke me
21116 #else
21117 char (*f) () = $ac_func;
21118 #endif
21119 #ifdef __cplusplus
21121 #endif
21124 main ()
21126 return f != $ac_func;
21128 return 0;
21130 _ACEOF
21131 rm -f conftest.$ac_objext conftest$ac_exeext
21132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21133 (eval $ac_link) 2>conftest.er1
21134 ac_status=$?
21135 grep -v '^ *+' conftest.er1 >conftest.err
21136 rm -f conftest.er1
21137 cat conftest.err >&5
21138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); } &&
21140 { ac_try='test -z "$ac_c_werror_flag"
21141 || test ! -s conftest.err'
21142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21143 (eval $ac_try) 2>&5
21144 ac_status=$?
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); }; } &&
21147 { ac_try='test -s conftest$ac_exeext'
21148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21149 (eval $ac_try) 2>&5
21150 ac_status=$?
21151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152 (exit $ac_status); }; }; then
21153 eval "$as_ac_var=yes"
21154 else
21155 echo "$as_me: failed program was:" >&5
21156 sed 's/^/| /' conftest.$ac_ext >&5
21158 eval "$as_ac_var=no"
21160 rm -f conftest.err conftest.$ac_objext \
21161 conftest$ac_exeext conftest.$ac_ext
21163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21164 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21165 if test `eval echo '${'$as_ac_var'}'` = yes; then
21166 cat >>confdefs.h <<_ACEOF
21167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21168 _ACEOF
21171 done
21173 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
21174 echo "$as_me:$LINENO: checking for off_t" >&5
21175 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21176 if test "${ac_cv_type_off_t+set}" = set; then
21177 echo $ECHO_N "(cached) $ECHO_C" >&6
21178 else
21179 cat >conftest.$ac_ext <<_ACEOF
21180 /* confdefs.h. */
21181 _ACEOF
21182 cat confdefs.h >>conftest.$ac_ext
21183 cat >>conftest.$ac_ext <<_ACEOF
21184 /* end confdefs.h. */
21185 $ac_includes_default
21187 main ()
21189 if ((off_t *) 0)
21190 return 0;
21191 if (sizeof (off_t))
21192 return 0;
21194 return 0;
21196 _ACEOF
21197 rm -f conftest.$ac_objext
21198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21199 (eval $ac_compile) 2>conftest.er1
21200 ac_status=$?
21201 grep -v '^ *+' conftest.er1 >conftest.err
21202 rm -f conftest.er1
21203 cat conftest.err >&5
21204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205 (exit $ac_status); } &&
21206 { ac_try='test -z "$ac_c_werror_flag"
21207 || test ! -s conftest.err'
21208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21209 (eval $ac_try) 2>&5
21210 ac_status=$?
21211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21212 (exit $ac_status); }; } &&
21213 { ac_try='test -s conftest.$ac_objext'
21214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21215 (eval $ac_try) 2>&5
21216 ac_status=$?
21217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21218 (exit $ac_status); }; }; then
21219 ac_cv_type_off_t=yes
21220 else
21221 echo "$as_me: failed program was:" >&5
21222 sed 's/^/| /' conftest.$ac_ext >&5
21224 ac_cv_type_off_t=no
21226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21228 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21229 echo "${ECHO_T}$ac_cv_type_off_t" >&6
21231 echo "$as_me:$LINENO: checking size of off_t" >&5
21232 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
21233 if test "${ac_cv_sizeof_off_t+set}" = set; then
21234 echo $ECHO_N "(cached) $ECHO_C" >&6
21235 else
21236 if test "$ac_cv_type_off_t" = yes; then
21237 # The cast to unsigned long works around a bug in the HP C Compiler
21238 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21239 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21240 # This bug is HP SR number 8606223364.
21241 if test "$cross_compiling" = yes; then
21242 # Depending upon the size, compute the lo and hi bounds.
21243 cat >conftest.$ac_ext <<_ACEOF
21244 /* confdefs.h. */
21245 _ACEOF
21246 cat confdefs.h >>conftest.$ac_ext
21247 cat >>conftest.$ac_ext <<_ACEOF
21248 /* end confdefs.h. */
21249 $ac_includes_default
21251 main ()
21253 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
21254 test_array [0] = 0
21257 return 0;
21259 _ACEOF
21260 rm -f conftest.$ac_objext
21261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21262 (eval $ac_compile) 2>conftest.er1
21263 ac_status=$?
21264 grep -v '^ *+' conftest.er1 >conftest.err
21265 rm -f conftest.er1
21266 cat conftest.err >&5
21267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268 (exit $ac_status); } &&
21269 { ac_try='test -z "$ac_c_werror_flag"
21270 || test ! -s conftest.err'
21271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21272 (eval $ac_try) 2>&5
21273 ac_status=$?
21274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275 (exit $ac_status); }; } &&
21276 { ac_try='test -s conftest.$ac_objext'
21277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21278 (eval $ac_try) 2>&5
21279 ac_status=$?
21280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281 (exit $ac_status); }; }; then
21282 ac_lo=0 ac_mid=0
21283 while :; do
21284 cat >conftest.$ac_ext <<_ACEOF
21285 /* confdefs.h. */
21286 _ACEOF
21287 cat confdefs.h >>conftest.$ac_ext
21288 cat >>conftest.$ac_ext <<_ACEOF
21289 /* end confdefs.h. */
21290 $ac_includes_default
21292 main ()
21294 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
21295 test_array [0] = 0
21298 return 0;
21300 _ACEOF
21301 rm -f conftest.$ac_objext
21302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21303 (eval $ac_compile) 2>conftest.er1
21304 ac_status=$?
21305 grep -v '^ *+' conftest.er1 >conftest.err
21306 rm -f conftest.er1
21307 cat conftest.err >&5
21308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21309 (exit $ac_status); } &&
21310 { ac_try='test -z "$ac_c_werror_flag"
21311 || test ! -s conftest.err'
21312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21313 (eval $ac_try) 2>&5
21314 ac_status=$?
21315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316 (exit $ac_status); }; } &&
21317 { ac_try='test -s conftest.$ac_objext'
21318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21319 (eval $ac_try) 2>&5
21320 ac_status=$?
21321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322 (exit $ac_status); }; }; then
21323 ac_hi=$ac_mid; break
21324 else
21325 echo "$as_me: failed program was:" >&5
21326 sed 's/^/| /' conftest.$ac_ext >&5
21328 ac_lo=`expr $ac_mid + 1`
21329 if test $ac_lo -le $ac_mid; then
21330 ac_lo= ac_hi=
21331 break
21333 ac_mid=`expr 2 '*' $ac_mid + 1`
21335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21336 done
21337 else
21338 echo "$as_me: failed program was:" >&5
21339 sed 's/^/| /' conftest.$ac_ext >&5
21341 cat >conftest.$ac_ext <<_ACEOF
21342 /* confdefs.h. */
21343 _ACEOF
21344 cat confdefs.h >>conftest.$ac_ext
21345 cat >>conftest.$ac_ext <<_ACEOF
21346 /* end confdefs.h. */
21347 $ac_includes_default
21349 main ()
21351 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
21352 test_array [0] = 0
21355 return 0;
21357 _ACEOF
21358 rm -f conftest.$ac_objext
21359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21360 (eval $ac_compile) 2>conftest.er1
21361 ac_status=$?
21362 grep -v '^ *+' conftest.er1 >conftest.err
21363 rm -f conftest.er1
21364 cat conftest.err >&5
21365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366 (exit $ac_status); } &&
21367 { ac_try='test -z "$ac_c_werror_flag"
21368 || test ! -s conftest.err'
21369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21370 (eval $ac_try) 2>&5
21371 ac_status=$?
21372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373 (exit $ac_status); }; } &&
21374 { ac_try='test -s conftest.$ac_objext'
21375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21376 (eval $ac_try) 2>&5
21377 ac_status=$?
21378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379 (exit $ac_status); }; }; then
21380 ac_hi=-1 ac_mid=-1
21381 while :; do
21382 cat >conftest.$ac_ext <<_ACEOF
21383 /* confdefs.h. */
21384 _ACEOF
21385 cat confdefs.h >>conftest.$ac_ext
21386 cat >>conftest.$ac_ext <<_ACEOF
21387 /* end confdefs.h. */
21388 $ac_includes_default
21390 main ()
21392 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
21393 test_array [0] = 0
21396 return 0;
21398 _ACEOF
21399 rm -f conftest.$ac_objext
21400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21401 (eval $ac_compile) 2>conftest.er1
21402 ac_status=$?
21403 grep -v '^ *+' conftest.er1 >conftest.err
21404 rm -f conftest.er1
21405 cat conftest.err >&5
21406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21407 (exit $ac_status); } &&
21408 { ac_try='test -z "$ac_c_werror_flag"
21409 || test ! -s conftest.err'
21410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21411 (eval $ac_try) 2>&5
21412 ac_status=$?
21413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21414 (exit $ac_status); }; } &&
21415 { ac_try='test -s conftest.$ac_objext'
21416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21417 (eval $ac_try) 2>&5
21418 ac_status=$?
21419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420 (exit $ac_status); }; }; then
21421 ac_lo=$ac_mid; break
21422 else
21423 echo "$as_me: failed program was:" >&5
21424 sed 's/^/| /' conftest.$ac_ext >&5
21426 ac_hi=`expr '(' $ac_mid ')' - 1`
21427 if test $ac_mid -le $ac_hi; then
21428 ac_lo= ac_hi=
21429 break
21431 ac_mid=`expr 2 '*' $ac_mid`
21433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21434 done
21435 else
21436 echo "$as_me: failed program was:" >&5
21437 sed 's/^/| /' conftest.$ac_ext >&5
21439 ac_lo= ac_hi=
21441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21444 # Binary search between lo and hi bounds.
21445 while test "x$ac_lo" != "x$ac_hi"; do
21446 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21447 cat >conftest.$ac_ext <<_ACEOF
21448 /* confdefs.h. */
21449 _ACEOF
21450 cat confdefs.h >>conftest.$ac_ext
21451 cat >>conftest.$ac_ext <<_ACEOF
21452 /* end confdefs.h. */
21453 $ac_includes_default
21455 main ()
21457 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
21458 test_array [0] = 0
21461 return 0;
21463 _ACEOF
21464 rm -f conftest.$ac_objext
21465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21466 (eval $ac_compile) 2>conftest.er1
21467 ac_status=$?
21468 grep -v '^ *+' conftest.er1 >conftest.err
21469 rm -f conftest.er1
21470 cat conftest.err >&5
21471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472 (exit $ac_status); } &&
21473 { ac_try='test -z "$ac_c_werror_flag"
21474 || test ! -s conftest.err'
21475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21476 (eval $ac_try) 2>&5
21477 ac_status=$?
21478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479 (exit $ac_status); }; } &&
21480 { ac_try='test -s conftest.$ac_objext'
21481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21482 (eval $ac_try) 2>&5
21483 ac_status=$?
21484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485 (exit $ac_status); }; }; then
21486 ac_hi=$ac_mid
21487 else
21488 echo "$as_me: failed program was:" >&5
21489 sed 's/^/| /' conftest.$ac_ext >&5
21491 ac_lo=`expr '(' $ac_mid ')' + 1`
21493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21494 done
21495 case $ac_lo in
21496 ?*) ac_cv_sizeof_off_t=$ac_lo;;
21497 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21498 echo "$as_me: error: in \`$ac_pwd':" >&2;}
21499 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
21500 See \`config.log' for more details." >&5
21501 echo "$as_me: error: cannot compute sizeof (off_t), 77
21502 See \`config.log' for more details." >&2;}
21503 { (exit 1); exit 1; }; }; } ;;
21504 esac
21505 else
21506 if test "$cross_compiling" = yes; then
21507 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21508 echo "$as_me: error: in \`$ac_pwd':" >&2;}
21509 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21510 See \`config.log' for more details." >&5
21511 echo "$as_me: error: cannot run test program while cross compiling
21512 See \`config.log' for more details." >&2;}
21513 { (exit 1); exit 1; }; }; }
21514 else
21515 cat >conftest.$ac_ext <<_ACEOF
21516 /* confdefs.h. */
21517 _ACEOF
21518 cat confdefs.h >>conftest.$ac_ext
21519 cat >>conftest.$ac_ext <<_ACEOF
21520 /* end confdefs.h. */
21521 $ac_includes_default
21522 long longval () { return (long) (sizeof (off_t)); }
21523 unsigned long ulongval () { return (long) (sizeof (off_t)); }
21524 #include <stdio.h>
21525 #include <stdlib.h>
21527 main ()
21530 FILE *f = fopen ("conftest.val", "w");
21531 if (! f)
21532 exit (1);
21533 if (((long) (sizeof (off_t))) < 0)
21535 long i = longval ();
21536 if (i != ((long) (sizeof (off_t))))
21537 exit (1);
21538 fprintf (f, "%ld\n", i);
21540 else
21542 unsigned long i = ulongval ();
21543 if (i != ((long) (sizeof (off_t))))
21544 exit (1);
21545 fprintf (f, "%lu\n", i);
21547 exit (ferror (f) || fclose (f) != 0);
21550 return 0;
21552 _ACEOF
21553 rm -f conftest$ac_exeext
21554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21555 (eval $ac_link) 2>&5
21556 ac_status=$?
21557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21560 (eval $ac_try) 2>&5
21561 ac_status=$?
21562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21563 (exit $ac_status); }; }; then
21564 ac_cv_sizeof_off_t=`cat conftest.val`
21565 else
21566 echo "$as_me: program exited with status $ac_status" >&5
21567 echo "$as_me: failed program was:" >&5
21568 sed 's/^/| /' conftest.$ac_ext >&5
21570 ( exit $ac_status )
21571 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21572 echo "$as_me: error: in \`$ac_pwd':" >&2;}
21573 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
21574 See \`config.log' for more details." >&5
21575 echo "$as_me: error: cannot compute sizeof (off_t), 77
21576 See \`config.log' for more details." >&2;}
21577 { (exit 1); exit 1; }; }; }
21579 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21582 rm -f conftest.val
21583 else
21584 ac_cv_sizeof_off_t=0
21587 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
21588 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
21589 cat >>confdefs.h <<_ACEOF
21590 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
21591 _ACEOF
21595 echo "$as_me:$LINENO: checking file_ptr type" >&5
21596 echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
21597 bfd_file_ptr="long"
21598 bfd_ufile_ptr="unsigned long"
21599 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
21600 -o x"${ac_cv_sizeof_off_t}" = x8; then
21601 bfd_file_ptr=BFD_HOST_64_BIT
21602 bfd_ufile_ptr=BFD_HOST_U_64_BIT
21604 echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
21605 echo "${ECHO_T}$bfd_file_ptr" >&6
21610 tdefaults=""
21611 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
21612 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
21613 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
21614 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
21615 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
21620 for ac_header in stdlib.h unistd.h
21622 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21624 echo "$as_me:$LINENO: checking for $ac_header" >&5
21625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21627 echo $ECHO_N "(cached) $ECHO_C" >&6
21629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21630 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21631 else
21632 # Is the header compilable?
21633 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21634 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21635 cat >conftest.$ac_ext <<_ACEOF
21636 /* confdefs.h. */
21637 _ACEOF
21638 cat confdefs.h >>conftest.$ac_ext
21639 cat >>conftest.$ac_ext <<_ACEOF
21640 /* end confdefs.h. */
21641 $ac_includes_default
21642 #include <$ac_header>
21643 _ACEOF
21644 rm -f conftest.$ac_objext
21645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21646 (eval $ac_compile) 2>conftest.er1
21647 ac_status=$?
21648 grep -v '^ *+' conftest.er1 >conftest.err
21649 rm -f conftest.er1
21650 cat conftest.err >&5
21651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652 (exit $ac_status); } &&
21653 { ac_try='test -z "$ac_c_werror_flag"
21654 || test ! -s conftest.err'
21655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21656 (eval $ac_try) 2>&5
21657 ac_status=$?
21658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659 (exit $ac_status); }; } &&
21660 { ac_try='test -s conftest.$ac_objext'
21661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21662 (eval $ac_try) 2>&5
21663 ac_status=$?
21664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665 (exit $ac_status); }; }; then
21666 ac_header_compiler=yes
21667 else
21668 echo "$as_me: failed program was:" >&5
21669 sed 's/^/| /' conftest.$ac_ext >&5
21671 ac_header_compiler=no
21673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21674 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21675 echo "${ECHO_T}$ac_header_compiler" >&6
21677 # Is the header present?
21678 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21679 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21680 cat >conftest.$ac_ext <<_ACEOF
21681 /* confdefs.h. */
21682 _ACEOF
21683 cat confdefs.h >>conftest.$ac_ext
21684 cat >>conftest.$ac_ext <<_ACEOF
21685 /* end confdefs.h. */
21686 #include <$ac_header>
21687 _ACEOF
21688 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21689 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21690 ac_status=$?
21691 grep -v '^ *+' conftest.er1 >conftest.err
21692 rm -f conftest.er1
21693 cat conftest.err >&5
21694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21695 (exit $ac_status); } >/dev/null; then
21696 if test -s conftest.err; then
21697 ac_cpp_err=$ac_c_preproc_warn_flag
21698 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21699 else
21700 ac_cpp_err=
21702 else
21703 ac_cpp_err=yes
21705 if test -z "$ac_cpp_err"; then
21706 ac_header_preproc=yes
21707 else
21708 echo "$as_me: failed program was:" >&5
21709 sed 's/^/| /' conftest.$ac_ext >&5
21711 ac_header_preproc=no
21713 rm -f conftest.err conftest.$ac_ext
21714 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21715 echo "${ECHO_T}$ac_header_preproc" >&6
21717 # So? What about this header?
21718 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21719 yes:no: )
21720 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21721 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21723 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21724 ac_header_preproc=yes
21726 no:yes:* )
21727 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21728 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21729 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21730 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21731 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21732 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21733 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21734 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21736 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21737 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21738 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21740 cat <<\_ASBOX
21741 ## ------------------------------------------ ##
21742 ## Report this to the AC_PACKAGE_NAME lists. ##
21743 ## ------------------------------------------ ##
21744 _ASBOX
21746 sed "s/^/$as_me: WARNING: /" >&2
21748 esac
21749 echo "$as_me:$LINENO: checking for $ac_header" >&5
21750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21752 echo $ECHO_N "(cached) $ECHO_C" >&6
21753 else
21754 eval "$as_ac_Header=\$ac_header_preproc"
21756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21757 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21761 cat >>confdefs.h <<_ACEOF
21762 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21763 _ACEOF
21767 done
21770 for ac_func in getpagesize
21772 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21773 echo "$as_me:$LINENO: checking for $ac_func" >&5
21774 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21775 if eval "test \"\${$as_ac_var+set}\" = set"; then
21776 echo $ECHO_N "(cached) $ECHO_C" >&6
21777 else
21778 cat >conftest.$ac_ext <<_ACEOF
21779 /* confdefs.h. */
21780 _ACEOF
21781 cat confdefs.h >>conftest.$ac_ext
21782 cat >>conftest.$ac_ext <<_ACEOF
21783 /* end confdefs.h. */
21784 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21786 #define $ac_func innocuous_$ac_func
21788 /* System header to define __stub macros and hopefully few prototypes,
21789 which can conflict with char $ac_func (); below.
21790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21791 <limits.h> exists even on freestanding compilers. */
21793 #ifdef __STDC__
21794 # include <limits.h>
21795 #else
21796 # include <assert.h>
21797 #endif
21799 #undef $ac_func
21801 /* Override any gcc2 internal prototype to avoid an error. */
21802 #ifdef __cplusplus
21803 extern "C"
21805 #endif
21806 /* We use char because int might match the return type of a gcc2
21807 builtin and then its argument prototype would still apply. */
21808 char $ac_func ();
21809 /* The GNU C library defines this for functions which it implements
21810 to always fail with ENOSYS. Some functions are actually named
21811 something starting with __ and the normal name is an alias. */
21812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21813 choke me
21814 #else
21815 char (*f) () = $ac_func;
21816 #endif
21817 #ifdef __cplusplus
21819 #endif
21822 main ()
21824 return f != $ac_func;
21826 return 0;
21828 _ACEOF
21829 rm -f conftest.$ac_objext conftest$ac_exeext
21830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21831 (eval $ac_link) 2>conftest.er1
21832 ac_status=$?
21833 grep -v '^ *+' conftest.er1 >conftest.err
21834 rm -f conftest.er1
21835 cat conftest.err >&5
21836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21837 (exit $ac_status); } &&
21838 { ac_try='test -z "$ac_c_werror_flag"
21839 || test ! -s conftest.err'
21840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21841 (eval $ac_try) 2>&5
21842 ac_status=$?
21843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844 (exit $ac_status); }; } &&
21845 { ac_try='test -s conftest$ac_exeext'
21846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21847 (eval $ac_try) 2>&5
21848 ac_status=$?
21849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850 (exit $ac_status); }; }; then
21851 eval "$as_ac_var=yes"
21852 else
21853 echo "$as_me: failed program was:" >&5
21854 sed 's/^/| /' conftest.$ac_ext >&5
21856 eval "$as_ac_var=no"
21858 rm -f conftest.err conftest.$ac_objext \
21859 conftest$ac_exeext conftest.$ac_ext
21861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21862 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21863 if test `eval echo '${'$as_ac_var'}'` = yes; then
21864 cat >>confdefs.h <<_ACEOF
21865 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21866 _ACEOF
21869 done
21871 echo "$as_me:$LINENO: checking for working mmap" >&5
21872 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21873 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21874 echo $ECHO_N "(cached) $ECHO_C" >&6
21875 else
21876 if test "$cross_compiling" = yes; then
21877 ac_cv_func_mmap_fixed_mapped=no
21878 else
21879 cat >conftest.$ac_ext <<_ACEOF
21880 /* confdefs.h. */
21881 _ACEOF
21882 cat confdefs.h >>conftest.$ac_ext
21883 cat >>conftest.$ac_ext <<_ACEOF
21884 /* end confdefs.h. */
21885 $ac_includes_default
21886 /* malloc might have been renamed as rpl_malloc. */
21887 #undef malloc
21889 /* Thanks to Mike Haertel and Jim Avera for this test.
21890 Here is a matrix of mmap possibilities:
21891 mmap private not fixed
21892 mmap private fixed at somewhere currently unmapped
21893 mmap private fixed at somewhere already mapped
21894 mmap shared not fixed
21895 mmap shared fixed at somewhere currently unmapped
21896 mmap shared fixed at somewhere already mapped
21897 For private mappings, we should verify that changes cannot be read()
21898 back from the file, nor mmap's back from the file at a different
21899 address. (There have been systems where private was not correctly
21900 implemented like the infamous i386 svr4.0, and systems where the
21901 VM page cache was not coherent with the file system buffer cache
21902 like early versions of FreeBSD and possibly contemporary NetBSD.)
21903 For shared mappings, we should conversely verify that changes get
21904 propagated back to all the places they're supposed to be.
21906 Grep wants private fixed already mapped.
21907 The main things grep needs to know about mmap are:
21908 * does it exist and is it safe to write into the mmap'd area
21909 * how to use it (BSD variants) */
21911 #include <fcntl.h>
21912 #include <sys/mman.h>
21914 #if !STDC_HEADERS && !HAVE_STDLIB_H
21915 char *malloc ();
21916 #endif
21918 /* This mess was copied from the GNU getpagesize.h. */
21919 #if !HAVE_GETPAGESIZE
21920 /* Assume that all systems that can run configure have sys/param.h. */
21921 # if !HAVE_SYS_PARAM_H
21922 # define HAVE_SYS_PARAM_H 1
21923 # endif
21925 # ifdef _SC_PAGESIZE
21926 # define getpagesize() sysconf(_SC_PAGESIZE)
21927 # else /* no _SC_PAGESIZE */
21928 # if HAVE_SYS_PARAM_H
21929 # include <sys/param.h>
21930 # ifdef EXEC_PAGESIZE
21931 # define getpagesize() EXEC_PAGESIZE
21932 # else /* no EXEC_PAGESIZE */
21933 # ifdef NBPG
21934 # define getpagesize() NBPG * CLSIZE
21935 # ifndef CLSIZE
21936 # define CLSIZE 1
21937 # endif /* no CLSIZE */
21938 # else /* no NBPG */
21939 # ifdef NBPC
21940 # define getpagesize() NBPC
21941 # else /* no NBPC */
21942 # ifdef PAGESIZE
21943 # define getpagesize() PAGESIZE
21944 # endif /* PAGESIZE */
21945 # endif /* no NBPC */
21946 # endif /* no NBPG */
21947 # endif /* no EXEC_PAGESIZE */
21948 # else /* no HAVE_SYS_PARAM_H */
21949 # define getpagesize() 8192 /* punt totally */
21950 # endif /* no HAVE_SYS_PARAM_H */
21951 # endif /* no _SC_PAGESIZE */
21953 #endif /* no HAVE_GETPAGESIZE */
21956 main ()
21958 char *data, *data2, *data3;
21959 int i, pagesize;
21960 int fd;
21962 pagesize = getpagesize ();
21964 /* First, make a file with some known garbage in it. */
21965 data = (char *) malloc (pagesize);
21966 if (!data)
21967 exit (1);
21968 for (i = 0; i < pagesize; ++i)
21969 *(data + i) = rand ();
21970 umask (0);
21971 fd = creat ("conftest.mmap", 0600);
21972 if (fd < 0)
21973 exit (1);
21974 if (write (fd, data, pagesize) != pagesize)
21975 exit (1);
21976 close (fd);
21978 /* Next, try to mmap the file at a fixed address which already has
21979 something else allocated at it. If we can, also make sure that
21980 we see the same garbage. */
21981 fd = open ("conftest.mmap", O_RDWR);
21982 if (fd < 0)
21983 exit (1);
21984 data2 = (char *) malloc (2 * pagesize);
21985 if (!data2)
21986 exit (1);
21987 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
21988 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21989 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21990 exit (1);
21991 for (i = 0; i < pagesize; ++i)
21992 if (*(data + i) != *(data2 + i))
21993 exit (1);
21995 /* Finally, make sure that changes to the mapped area do not
21996 percolate back to the file as seen by read(). (This is a bug on
21997 some variants of i386 svr4.0.) */
21998 for (i = 0; i < pagesize; ++i)
21999 *(data2 + i) = *(data2 + i) + 1;
22000 data3 = (char *) malloc (pagesize);
22001 if (!data3)
22002 exit (1);
22003 if (read (fd, data3, pagesize) != pagesize)
22004 exit (1);
22005 for (i = 0; i < pagesize; ++i)
22006 if (*(data + i) != *(data3 + i))
22007 exit (1);
22008 close (fd);
22009 exit (0);
22011 _ACEOF
22012 rm -f conftest$ac_exeext
22013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22014 (eval $ac_link) 2>&5
22015 ac_status=$?
22016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22019 (eval $ac_try) 2>&5
22020 ac_status=$?
22021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022 (exit $ac_status); }; }; then
22023 ac_cv_func_mmap_fixed_mapped=yes
22024 else
22025 echo "$as_me: program exited with status $ac_status" >&5
22026 echo "$as_me: failed program was:" >&5
22027 sed 's/^/| /' conftest.$ac_ext >&5
22029 ( exit $ac_status )
22030 ac_cv_func_mmap_fixed_mapped=no
22032 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22035 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22036 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22037 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22039 cat >>confdefs.h <<\_ACEOF
22040 #define HAVE_MMAP 1
22041 _ACEOF
22044 rm -f conftest.mmap
22048 for ac_func in madvise mprotect
22050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22051 echo "$as_me:$LINENO: checking for $ac_func" >&5
22052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22053 if eval "test \"\${$as_ac_var+set}\" = set"; then
22054 echo $ECHO_N "(cached) $ECHO_C" >&6
22055 else
22056 cat >conftest.$ac_ext <<_ACEOF
22057 /* confdefs.h. */
22058 _ACEOF
22059 cat confdefs.h >>conftest.$ac_ext
22060 cat >>conftest.$ac_ext <<_ACEOF
22061 /* end confdefs.h. */
22062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22064 #define $ac_func innocuous_$ac_func
22066 /* System header to define __stub macros and hopefully few prototypes,
22067 which can conflict with char $ac_func (); below.
22068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22069 <limits.h> exists even on freestanding compilers. */
22071 #ifdef __STDC__
22072 # include <limits.h>
22073 #else
22074 # include <assert.h>
22075 #endif
22077 #undef $ac_func
22079 /* Override any gcc2 internal prototype to avoid an error. */
22080 #ifdef __cplusplus
22081 extern "C"
22083 #endif
22084 /* We use char because int might match the return type of a gcc2
22085 builtin and then its argument prototype would still apply. */
22086 char $ac_func ();
22087 /* The GNU C library defines this for functions which it implements
22088 to always fail with ENOSYS. Some functions are actually named
22089 something starting with __ and the normal name is an alias. */
22090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22091 choke me
22092 #else
22093 char (*f) () = $ac_func;
22094 #endif
22095 #ifdef __cplusplus
22097 #endif
22100 main ()
22102 return f != $ac_func;
22104 return 0;
22106 _ACEOF
22107 rm -f conftest.$ac_objext conftest$ac_exeext
22108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22109 (eval $ac_link) 2>conftest.er1
22110 ac_status=$?
22111 grep -v '^ *+' conftest.er1 >conftest.err
22112 rm -f conftest.er1
22113 cat conftest.err >&5
22114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115 (exit $ac_status); } &&
22116 { ac_try='test -z "$ac_c_werror_flag"
22117 || test ! -s conftest.err'
22118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22119 (eval $ac_try) 2>&5
22120 ac_status=$?
22121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22122 (exit $ac_status); }; } &&
22123 { ac_try='test -s conftest$ac_exeext'
22124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22125 (eval $ac_try) 2>&5
22126 ac_status=$?
22127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22128 (exit $ac_status); }; }; then
22129 eval "$as_ac_var=yes"
22130 else
22131 echo "$as_me: failed program was:" >&5
22132 sed 's/^/| /' conftest.$ac_ext >&5
22134 eval "$as_ac_var=no"
22136 rm -f conftest.err conftest.$ac_objext \
22137 conftest$ac_exeext conftest.$ac_ext
22139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22140 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22141 if test `eval echo '${'$as_ac_var'}'` = yes; then
22142 cat >>confdefs.h <<_ACEOF
22143 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22144 _ACEOF
22147 done
22149 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
22150 true+yes )
22151 cat >>confdefs.h <<\_ACEOF
22152 #define USE_MMAP 1
22153 _ACEOF
22155 esac
22157 rm -f doc/config.status
22158 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
22161 ac_config_commands="$ac_config_commands default"
22168 cat >confcache <<\_ACEOF
22169 # This file is a shell script that caches the results of configure
22170 # tests run on this system so they can be shared between configure
22171 # scripts and configure runs, see configure's option --config-cache.
22172 # It is not useful on other systems. If it contains results you don't
22173 # want to keep, you may remove or edit it.
22175 # config.status only pays attention to the cache file if you give it
22176 # the --recheck option to rerun configure.
22178 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22179 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22180 # following values.
22182 _ACEOF
22184 # The following way of writing the cache mishandles newlines in values,
22185 # but we know of no workaround that is simple, portable, and efficient.
22186 # So, don't put newlines in cache variables' values.
22187 # Ultrix sh set writes to stderr and can't be redirected directly,
22188 # and sets the high bit in the cache file unless we assign to the vars.
22190 (set) 2>&1 |
22191 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22192 *ac_space=\ *)
22193 # `set' does not quote correctly, so add quotes (double-quote
22194 # substitution turns \\\\ into \\, and sed turns \\ into \).
22195 sed -n \
22196 "s/'/'\\\\''/g;
22197 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22200 # `set' quotes correctly as required by POSIX, so do not add quotes.
22201 sed -n \
22202 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22204 esac;
22206 sed '
22207 t clear
22208 : clear
22209 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22210 t end
22211 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22212 : end' >>confcache
22213 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22214 if test -w $cache_file; then
22215 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22216 cat confcache >$cache_file
22217 else
22218 echo "not updating unwritable cache $cache_file"
22221 rm -f confcache
22223 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22224 # Let make expand exec_prefix.
22225 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22227 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22228 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22229 # trailing colons and then remove the whole line if VPATH becomes empty
22230 # (actually we leave an empty line to preserve line numbers).
22231 if test "x$srcdir" = x.; then
22232 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22233 s/:*\$(srcdir):*/:/;
22234 s/:*\${srcdir}:*/:/;
22235 s/:*@srcdir@:*/:/;
22236 s/^\([^=]*=[ ]*\):*/\1/;
22237 s/:*$//;
22238 s/^[^=]*=[ ]*$//;
22242 DEFS=-DHAVE_CONFIG_H
22244 ac_libobjs=
22245 ac_ltlibobjs=
22246 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22247 # 1. Remove the extension, and $U if already installed.
22248 ac_i=`echo "$ac_i" |
22249 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22250 # 2. Add them.
22251 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22252 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22253 done
22254 LIBOBJS=$ac_libobjs
22256 LTLIBOBJS=$ac_ltlibobjs
22259 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22260 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22261 Usually this means the macro was only invoked conditionally." >&5
22262 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22263 Usually this means the macro was only invoked conditionally." >&2;}
22264 { (exit 1); exit 1; }; }
22266 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22267 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22268 Usually this means the macro was only invoked conditionally." >&5
22269 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22270 Usually this means the macro was only invoked conditionally." >&2;}
22271 { (exit 1); exit 1; }; }
22273 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22274 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22275 Usually this means the macro was only invoked conditionally." >&5
22276 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22277 Usually this means the macro was only invoked conditionally." >&2;}
22278 { (exit 1); exit 1; }; }
22280 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
22281 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
22282 Usually this means the macro was only invoked conditionally." >&5
22283 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
22284 Usually this means the macro was only invoked conditionally." >&2;}
22285 { (exit 1); exit 1; }; }
22287 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
22288 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
22289 Usually this means the macro was only invoked conditionally." >&5
22290 echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
22291 Usually this means the macro was only invoked conditionally." >&2;}
22292 { (exit 1); exit 1; }; }
22295 : ${CONFIG_STATUS=./config.status}
22296 ac_clean_files_save=$ac_clean_files
22297 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22298 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22299 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22300 cat >$CONFIG_STATUS <<_ACEOF
22301 #! $SHELL
22302 # Generated by $as_me.
22303 # Run this file to recreate the current configuration.
22304 # Compiler output produced by configure, useful for debugging
22305 # configure, is in config.log if it exists.
22307 debug=false
22308 ac_cs_recheck=false
22309 ac_cs_silent=false
22310 SHELL=\${CONFIG_SHELL-$SHELL}
22311 _ACEOF
22313 cat >>$CONFIG_STATUS <<\_ACEOF
22314 ## --------------------- ##
22315 ## M4sh Initialization. ##
22316 ## --------------------- ##
22318 # Be Bourne compatible
22319 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22320 emulate sh
22321 NULLCMD=:
22322 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22323 # is contrary to our usage. Disable this feature.
22324 alias -g '${1+"$@"}'='"$@"'
22325 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22326 set -o posix
22328 DUALCASE=1; export DUALCASE # for MKS sh
22330 # Support unset when possible.
22331 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22332 as_unset=unset
22333 else
22334 as_unset=false
22338 # Work around bugs in pre-3.0 UWIN ksh.
22339 $as_unset ENV MAIL MAILPATH
22340 PS1='$ '
22341 PS2='> '
22342 PS4='+ '
22344 # NLS nuisances.
22345 for as_var in \
22346 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22347 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22348 LC_TELEPHONE LC_TIME
22350 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22351 eval $as_var=C; export $as_var
22352 else
22353 $as_unset $as_var
22355 done
22357 # Required to use basename.
22358 if expr a : '\(a\)' >/dev/null 2>&1; then
22359 as_expr=expr
22360 else
22361 as_expr=false
22364 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22365 as_basename=basename
22366 else
22367 as_basename=false
22371 # Name of the executable.
22372 as_me=`$as_basename "$0" ||
22373 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22374 X"$0" : 'X\(//\)$' \| \
22375 X"$0" : 'X\(/\)$' \| \
22376 . : '\(.\)' 2>/dev/null ||
22377 echo X/"$0" |
22378 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22379 /^X\/\(\/\/\)$/{ s//\1/; q; }
22380 /^X\/\(\/\).*/{ s//\1/; q; }
22381 s/.*/./; q'`
22384 # PATH needs CR, and LINENO needs CR and PATH.
22385 # Avoid depending upon Character Ranges.
22386 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22387 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22388 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22389 as_cr_digits='0123456789'
22390 as_cr_alnum=$as_cr_Letters$as_cr_digits
22392 # The user is always right.
22393 if test "${PATH_SEPARATOR+set}" != set; then
22394 echo "#! /bin/sh" >conf$$.sh
22395 echo "exit 0" >>conf$$.sh
22396 chmod +x conf$$.sh
22397 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22398 PATH_SEPARATOR=';'
22399 else
22400 PATH_SEPARATOR=:
22402 rm -f conf$$.sh
22406 as_lineno_1=$LINENO
22407 as_lineno_2=$LINENO
22408 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22409 test "x$as_lineno_1" != "x$as_lineno_2" &&
22410 test "x$as_lineno_3" = "x$as_lineno_2" || {
22411 # Find who we are. Look in the path if we contain no path at all
22412 # relative or not.
22413 case $0 in
22414 *[\\/]* ) as_myself=$0 ;;
22415 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22416 for as_dir in $PATH
22418 IFS=$as_save_IFS
22419 test -z "$as_dir" && as_dir=.
22420 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22421 done
22424 esac
22425 # We did not find ourselves, most probably we were run as `sh COMMAND'
22426 # in which case we are not to be found in the path.
22427 if test "x$as_myself" = x; then
22428 as_myself=$0
22430 if test ! -f "$as_myself"; then
22431 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22432 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22433 { (exit 1); exit 1; }; }
22435 case $CONFIG_SHELL in
22437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22438 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22440 IFS=$as_save_IFS
22441 test -z "$as_dir" && as_dir=.
22442 for as_base in sh bash ksh sh5; do
22443 case $as_dir in
22445 if ("$as_dir/$as_base" -c '
22446 as_lineno_1=$LINENO
22447 as_lineno_2=$LINENO
22448 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22449 test "x$as_lineno_1" != "x$as_lineno_2" &&
22450 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22451 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22452 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22453 CONFIG_SHELL=$as_dir/$as_base
22454 export CONFIG_SHELL
22455 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22456 fi;;
22457 esac
22458 done
22459 done
22461 esac
22463 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22464 # uniformly replaced by the line number. The first 'sed' inserts a
22465 # line-number line before each line; the second 'sed' does the real
22466 # work. The second script uses 'N' to pair each line-number line
22467 # with the numbered line, and appends trailing '-' during
22468 # substitution so that $LINENO is not a special case at line end.
22469 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22470 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22471 sed '=' <$as_myself |
22472 sed '
22474 s,$,-,
22475 : loop
22476 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22477 t loop
22478 s,-$,,
22479 s,^['$as_cr_digits']*\n,,
22480 ' >$as_me.lineno &&
22481 chmod +x $as_me.lineno ||
22482 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22483 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22484 { (exit 1); exit 1; }; }
22486 # Don't try to exec as it changes $[0], causing all sort of problems
22487 # (the dirname of $[0] is not the place where we might find the
22488 # original and so on. Autoconf is especially sensible to this).
22489 . ./$as_me.lineno
22490 # Exit status is that of the last command.
22491 exit
22495 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22496 *c*,-n*) ECHO_N= ECHO_C='
22497 ' ECHO_T=' ' ;;
22498 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22499 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22500 esac
22502 if expr a : '\(a\)' >/dev/null 2>&1; then
22503 as_expr=expr
22504 else
22505 as_expr=false
22508 rm -f conf$$ conf$$.exe conf$$.file
22509 echo >conf$$.file
22510 if ln -s conf$$.file conf$$ 2>/dev/null; then
22511 # We could just check for DJGPP; but this test a) works b) is more generic
22512 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22513 if test -f conf$$.exe; then
22514 # Don't use ln at all; we don't have any links
22515 as_ln_s='cp -p'
22516 else
22517 as_ln_s='ln -s'
22519 elif ln conf$$.file conf$$ 2>/dev/null; then
22520 as_ln_s=ln
22521 else
22522 as_ln_s='cp -p'
22524 rm -f conf$$ conf$$.exe conf$$.file
22526 if mkdir -p . 2>/dev/null; then
22527 as_mkdir_p=:
22528 else
22529 test -d ./-p && rmdir ./-p
22530 as_mkdir_p=false
22533 as_executable_p="test -f"
22535 # Sed expression to map a string onto a valid CPP name.
22536 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22538 # Sed expression to map a string onto a valid variable name.
22539 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22542 # IFS
22543 # We need space, tab and new line, in precisely that order.
22544 as_nl='
22546 IFS=" $as_nl"
22548 # CDPATH.
22549 $as_unset CDPATH
22551 exec 6>&1
22553 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22554 # report actual input values of CONFIG_FILES etc. instead of their
22555 # values after options handling. Logging --version etc. is OK.
22556 exec 5>>config.log
22558 echo
22559 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22560 ## Running $as_me. ##
22561 _ASBOX
22562 } >&5
22563 cat >&5 <<_CSEOF
22565 This file was extended by $as_me, which was
22566 generated by GNU Autoconf 2.59. Invocation command line was
22568 CONFIG_FILES = $CONFIG_FILES
22569 CONFIG_HEADERS = $CONFIG_HEADERS
22570 CONFIG_LINKS = $CONFIG_LINKS
22571 CONFIG_COMMANDS = $CONFIG_COMMANDS
22572 $ $0 $@
22574 _CSEOF
22575 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22576 echo >&5
22577 _ACEOF
22579 # Files that config.status was made for.
22580 if test -n "$ac_config_files"; then
22581 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22584 if test -n "$ac_config_headers"; then
22585 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22588 if test -n "$ac_config_links"; then
22589 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22592 if test -n "$ac_config_commands"; then
22593 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22596 cat >>$CONFIG_STATUS <<\_ACEOF
22598 ac_cs_usage="\
22599 \`$as_me' instantiates files from templates according to the
22600 current configuration.
22602 Usage: $0 [OPTIONS] [FILE]...
22604 -h, --help print this help, then exit
22605 -V, --version print version number, then exit
22606 -q, --quiet do not print progress messages
22607 -d, --debug don't remove temporary files
22608 --recheck update $as_me by reconfiguring in the same conditions
22609 --file=FILE[:TEMPLATE]
22610 instantiate the configuration file FILE
22611 --header=FILE[:TEMPLATE]
22612 instantiate the configuration header FILE
22614 Configuration files:
22615 $config_files
22617 Configuration headers:
22618 $config_headers
22620 Configuration commands:
22621 $config_commands
22623 Report bugs to <bug-autoconf@gnu.org>."
22624 _ACEOF
22626 cat >>$CONFIG_STATUS <<_ACEOF
22627 ac_cs_version="\\
22628 config.status
22629 configured by $0, generated by GNU Autoconf 2.59,
22630 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22632 Copyright (C) 2003 Free Software Foundation, Inc.
22633 This config.status script is free software; the Free Software Foundation
22634 gives unlimited permission to copy, distribute and modify it."
22635 srcdir=$srcdir
22636 INSTALL="$INSTALL"
22637 _ACEOF
22639 cat >>$CONFIG_STATUS <<\_ACEOF
22640 # If no file are specified by the user, then we need to provide default
22641 # value. By we need to know if files were specified by the user.
22642 ac_need_defaults=:
22643 while test $# != 0
22645 case $1 in
22646 --*=*)
22647 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22648 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22649 ac_shift=:
22652 ac_option=$1
22653 ac_optarg=$2
22654 ac_shift=shift
22656 *) # This is not an option, so the user has probably given explicit
22657 # arguments.
22658 ac_option=$1
22659 ac_need_defaults=false;;
22660 esac
22662 case $ac_option in
22663 # Handling of the options.
22664 _ACEOF
22665 cat >>$CONFIG_STATUS <<\_ACEOF
22666 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22667 ac_cs_recheck=: ;;
22668 --version | --vers* | -V )
22669 echo "$ac_cs_version"; exit 0 ;;
22670 --he | --h)
22671 # Conflict between --help and --header
22672 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22673 Try \`$0 --help' for more information." >&5
22674 echo "$as_me: error: ambiguous option: $1
22675 Try \`$0 --help' for more information." >&2;}
22676 { (exit 1); exit 1; }; };;
22677 --help | --hel | -h )
22678 echo "$ac_cs_usage"; exit 0 ;;
22679 --debug | --d* | -d )
22680 debug=: ;;
22681 --file | --fil | --fi | --f )
22682 $ac_shift
22683 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22684 ac_need_defaults=false;;
22685 --header | --heade | --head | --hea )
22686 $ac_shift
22687 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22688 ac_need_defaults=false;;
22689 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22690 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22691 ac_cs_silent=: ;;
22693 # This is an error.
22694 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22695 Try \`$0 --help' for more information." >&5
22696 echo "$as_me: error: unrecognized option: $1
22697 Try \`$0 --help' for more information." >&2;}
22698 { (exit 1); exit 1; }; } ;;
22700 *) ac_config_targets="$ac_config_targets $1" ;;
22702 esac
22703 shift
22704 done
22706 ac_configure_extra_args=
22708 if $ac_cs_silent; then
22709 exec 6>/dev/null
22710 ac_configure_extra_args="$ac_configure_extra_args --silent"
22713 _ACEOF
22714 cat >>$CONFIG_STATUS <<_ACEOF
22715 if \$ac_cs_recheck; then
22716 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22717 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22720 _ACEOF
22722 cat >>$CONFIG_STATUS <<_ACEOF
22724 # INIT-COMMANDS section.
22727 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22730 # The HP-UX ksh and POSIX shell print the target directory to stdout
22731 # if CDPATH is set.
22732 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22734 sed_quote_subst='$sed_quote_subst'
22735 double_quote_subst='$double_quote_subst'
22736 delay_variable_subst='$delay_variable_subst'
22737 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
22738 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
22739 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
22740 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
22741 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
22742 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
22743 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
22744 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
22745 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
22746 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
22747 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
22748 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
22749 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
22750 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
22751 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
22752 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
22753 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
22754 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
22755 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
22756 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
22757 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
22758 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
22759 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
22760 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
22761 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
22762 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
22763 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
22764 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22765 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
22766 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
22767 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
22768 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
22769 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22770 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
22771 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
22772 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22773 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22774 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22775 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
22776 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22777 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
22778 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
22779 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
22780 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
22781 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"`'
22782 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"`'
22783 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
22784 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
22785 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
22786 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
22787 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
22788 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
22789 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
22790 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
22791 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
22792 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
22793 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
22794 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
22795 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
22796 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
22797 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
22798 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
22799 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22800 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22801 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
22802 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
22803 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22804 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22805 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
22806 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22807 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22808 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22809 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22810 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22811 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22812 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
22813 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22814 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22815 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22816 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
22817 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
22818 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
22819 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
22820 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
22821 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22822 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
22823 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
22824 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
22825 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
22826 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
22827 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22828 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22829 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22830 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22831 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
22832 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
22833 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
22834 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
22835 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
22836 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22837 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22838 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
22839 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22840 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
22841 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22842 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22843 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22844 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22845 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
22846 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
22847 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22848 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22849 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
22850 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
22851 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
22852 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
22853 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
22854 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
22856 LTCC='$LTCC'
22857 LTCFLAGS='$LTCFLAGS'
22858 compiler='$compiler_DEFAULT'
22860 # Quote evaled strings.
22861 for var in SED \
22862 GREP \
22863 EGREP \
22864 FGREP \
22865 LD \
22866 NM \
22867 LN_S \
22868 lt_SP2NL \
22869 lt_NL2SP \
22870 reload_flag \
22871 OBJDUMP \
22872 deplibs_check_method \
22873 file_magic_cmd \
22874 AR \
22875 AR_FLAGS \
22876 STRIP \
22877 RANLIB \
22878 CC \
22879 CFLAGS \
22880 compiler \
22881 lt_cv_sys_global_symbol_pipe \
22882 lt_cv_sys_global_symbol_to_cdecl \
22883 lt_cv_sys_global_symbol_to_c_name_address \
22884 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22885 SHELL \
22886 ECHO \
22887 lt_prog_compiler_no_builtin_flag \
22888 lt_prog_compiler_wl \
22889 lt_prog_compiler_pic \
22890 lt_prog_compiler_static \
22891 lt_cv_prog_compiler_c_o \
22892 need_locks \
22893 DSYMUTIL \
22894 NMEDIT \
22895 LIPO \
22896 OTOOL \
22897 OTOOL64 \
22898 shrext_cmds \
22899 export_dynamic_flag_spec \
22900 whole_archive_flag_spec \
22901 compiler_needs_object \
22902 with_gnu_ld \
22903 allow_undefined_flag \
22904 no_undefined_flag \
22905 hardcode_libdir_flag_spec \
22906 hardcode_libdir_flag_spec_ld \
22907 hardcode_libdir_separator \
22908 fix_srcfile_path \
22909 exclude_expsyms \
22910 include_expsyms \
22911 file_list_spec \
22912 variables_saved_for_relink \
22913 libname_spec \
22914 library_names_spec \
22915 soname_spec \
22916 finish_eval \
22917 old_striplib \
22918 striplib; do
22919 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22920 *[\\\\\\\`\\"\\\$]*)
22921 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22924 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22926 esac
22927 done
22929 # Double-quote double-evaled strings.
22930 for var in reload_cmds \
22931 old_postinstall_cmds \
22932 old_postuninstall_cmds \
22933 old_archive_cmds \
22934 extract_expsyms_cmds \
22935 old_archive_from_new_cmds \
22936 old_archive_from_expsyms_cmds \
22937 archive_cmds \
22938 archive_expsym_cmds \
22939 module_cmds \
22940 module_expsym_cmds \
22941 export_symbols_cmds \
22942 prelink_cmds \
22943 postinstall_cmds \
22944 postuninstall_cmds \
22945 finish_cmds \
22946 sys_lib_search_path_spec \
22947 sys_lib_dlsearch_path_spec; do
22948 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22949 *[\\\\\\\`\\"\\\$]*)
22950 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22953 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22955 esac
22956 done
22958 # Fix-up fallback echo if it was mangled by the above quoting rules.
22959 case \$lt_ECHO in
22960 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
22962 esac
22964 ac_aux_dir='$ac_aux_dir'
22965 xsi_shell='$xsi_shell'
22966 lt_shell_append='$lt_shell_append'
22968 # See if we are running on zsh, and set the options which allow our
22969 # commands through without removal of \ escapes INIT.
22970 if test -n "\${ZSH_VERSION+set}" ; then
22971 setopt NO_GLOB_SUBST
22975 PACKAGE='$PACKAGE'
22976 VERSION='$VERSION'
22977 TIMESTAMP='$TIMESTAMP'
22978 RM='$RM'
22979 ofile='$ofile'
22983 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
22984 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
22985 # from automake.
22986 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
22987 # Capture the value of LINGUAS because we need it to compute CATALOGS.
22988 LINGUAS="${LINGUAS-%UNSET%}"
22991 GCC="$GCC"
22992 CC="$CC"
22993 acx_cv_header_stdint="$acx_cv_header_stdint"
22994 acx_cv_type_int8_t="$acx_cv_type_int8_t"
22995 acx_cv_type_int16_t="$acx_cv_type_int16_t"
22996 acx_cv_type_int32_t="$acx_cv_type_int32_t"
22997 acx_cv_type_int64_t="$acx_cv_type_int64_t"
22998 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
22999 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
23000 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
23001 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
23002 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
23003 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
23004 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
23005 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
23006 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
23010 _ACEOF
23014 cat >>$CONFIG_STATUS <<\_ACEOF
23015 for ac_config_target in $ac_config_targets
23017 case "$ac_config_target" in
23018 # Handling of arguments.
23019 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23020 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23021 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
23022 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
23023 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23024 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23025 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
23026 "bfd_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
23027 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23028 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
23029 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23030 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23031 { (exit 1); exit 1; }; };;
23032 esac
23033 done
23035 # If the user did not use the arguments to specify the items to instantiate,
23036 # then the envvar interface is used. Set only those that are not.
23037 # We use the long form for the default assignment because of an extremely
23038 # bizarre bug on SunOS 4.1.3.
23039 if $ac_need_defaults; then
23040 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23041 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23042 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23045 # Have a temporary directory for convenience. Make it in the build tree
23046 # simply because there is no reason to put it here, and in addition,
23047 # creating and moving files from /tmp can sometimes cause problems.
23048 # Create a temporary directory, and hook for its removal unless debugging.
23049 $debug ||
23051 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23052 trap '{ (exit 1); exit 1; }' 1 2 13 15
23055 # Create a (secure) tmp directory for tmp files.
23058 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23059 test -n "$tmp" && test -d "$tmp"
23060 } ||
23062 tmp=./confstat$$-$RANDOM
23063 (umask 077 && mkdir $tmp)
23064 } ||
23066 echo "$me: cannot create a temporary directory in ." >&2
23067 { (exit 1); exit 1; }
23070 _ACEOF
23072 cat >>$CONFIG_STATUS <<_ACEOF
23075 # CONFIG_FILES section.
23078 # No need to generate the scripts if there are no CONFIG_FILES.
23079 # This happens for instance when ./config.status config.h
23080 if test -n "\$CONFIG_FILES"; then
23081 # Protect against being on the right side of a sed subst in config.status.
23082 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23083 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23084 s,@SHELL@,$SHELL,;t t
23085 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23086 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23087 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23088 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23089 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23090 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23091 s,@exec_prefix@,$exec_prefix,;t t
23092 s,@prefix@,$prefix,;t t
23093 s,@program_transform_name@,$program_transform_name,;t t
23094 s,@bindir@,$bindir,;t t
23095 s,@sbindir@,$sbindir,;t t
23096 s,@libexecdir@,$libexecdir,;t t
23097 s,@datadir@,$datadir,;t t
23098 s,@sysconfdir@,$sysconfdir,;t t
23099 s,@sharedstatedir@,$sharedstatedir,;t t
23100 s,@localstatedir@,$localstatedir,;t t
23101 s,@libdir@,$libdir,;t t
23102 s,@includedir@,$includedir,;t t
23103 s,@oldincludedir@,$oldincludedir,;t t
23104 s,@infodir@,$infodir,;t t
23105 s,@mandir@,$mandir,;t t
23106 s,@build_alias@,$build_alias,;t t
23107 s,@host_alias@,$host_alias,;t t
23108 s,@target_alias@,$target_alias,;t t
23109 s,@DEFS@,$DEFS,;t t
23110 s,@ECHO_C@,$ECHO_C,;t t
23111 s,@ECHO_N@,$ECHO_N,;t t
23112 s,@ECHO_T@,$ECHO_T,;t t
23113 s,@LIBS@,$LIBS,;t t
23114 s,@build@,$build,;t t
23115 s,@build_cpu@,$build_cpu,;t t
23116 s,@build_vendor@,$build_vendor,;t t
23117 s,@build_os@,$build_os,;t t
23118 s,@host@,$host,;t t
23119 s,@host_cpu@,$host_cpu,;t t
23120 s,@host_vendor@,$host_vendor,;t t
23121 s,@host_os@,$host_os,;t t
23122 s,@target@,$target,;t t
23123 s,@target_cpu@,$target_cpu,;t t
23124 s,@target_vendor@,$target_vendor,;t t
23125 s,@target_os@,$target_os,;t t
23126 s,@CC@,$CC,;t t
23127 s,@CFLAGS@,$CFLAGS,;t t
23128 s,@LDFLAGS@,$LDFLAGS,;t t
23129 s,@CPPFLAGS@,$CPPFLAGS,;t t
23130 s,@ac_ct_CC@,$ac_ct_CC,;t t
23131 s,@EXEEXT@,$EXEEXT,;t t
23132 s,@OBJEXT@,$OBJEXT,;t t
23133 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23134 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23135 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23136 s,@CYGPATH_W@,$CYGPATH_W,;t t
23137 s,@PACKAGE@,$PACKAGE,;t t
23138 s,@VERSION@,$VERSION,;t t
23139 s,@ACLOCAL@,$ACLOCAL,;t t
23140 s,@AUTOCONF@,$AUTOCONF,;t t
23141 s,@AUTOMAKE@,$AUTOMAKE,;t t
23142 s,@AUTOHEADER@,$AUTOHEADER,;t t
23143 s,@MAKEINFO@,$MAKEINFO,;t t
23144 s,@install_sh@,$install_sh,;t t
23145 s,@STRIP@,$STRIP,;t t
23146 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23147 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23148 s,@mkdir_p@,$mkdir_p,;t t
23149 s,@AWK@,$AWK,;t t
23150 s,@SET_MAKE@,$SET_MAKE,;t t
23151 s,@am__leading_dot@,$am__leading_dot,;t t
23152 s,@AMTAR@,$AMTAR,;t t
23153 s,@am__tar@,$am__tar,;t t
23154 s,@am__untar@,$am__untar,;t t
23155 s,@DEPDIR@,$DEPDIR,;t t
23156 s,@am__include@,$am__include,;t t
23157 s,@am__quote@,$am__quote,;t t
23158 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23159 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23160 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23161 s,@CCDEPMODE@,$CCDEPMODE,;t t
23162 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23163 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23164 s,@AR@,$AR,;t t
23165 s,@ac_ct_AR@,$ac_ct_AR,;t t
23166 s,@RANLIB@,$RANLIB,;t t
23167 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23168 s,@CPP@,$CPP,;t t
23169 s,@EGREP@,$EGREP,;t t
23170 s,@LIBTOOL@,$LIBTOOL,;t t
23171 s,@SED@,$SED,;t t
23172 s,@FGREP@,$FGREP,;t t
23173 s,@GREP@,$GREP,;t t
23174 s,@LD@,$LD,;t t
23175 s,@DUMPBIN@,$DUMPBIN,;t t
23176 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
23177 s,@NM@,$NM,;t t
23178 s,@LN_S@,$LN_S,;t t
23179 s,@OBJDUMP@,$OBJDUMP,;t t
23180 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
23181 s,@lt_ECHO@,$lt_ECHO,;t t
23182 s,@DSYMUTIL@,$DSYMUTIL,;t t
23183 s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
23184 s,@NMEDIT@,$NMEDIT,;t t
23185 s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
23186 s,@LIPO@,$LIPO,;t t
23187 s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
23188 s,@OTOOL@,$OTOOL,;t t
23189 s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
23190 s,@OTOOL64@,$OTOOL64,;t t
23191 s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
23192 s,@DEBUGDIR@,$DEBUGDIR,;t t
23193 s,@PKGVERSION@,$PKGVERSION,;t t
23194 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
23195 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
23196 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
23197 s,@NO_WERROR@,$NO_WERROR,;t t
23198 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23199 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23200 s,@MAINT@,$MAINT,;t t
23201 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
23202 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
23203 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
23204 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
23205 s,@host_noncanonical@,$host_noncanonical,;t t
23206 s,@target_noncanonical@,$target_noncanonical,;t t
23207 s,@bfdlibdir@,$bfdlibdir,;t t
23208 s,@bfdincludedir@,$bfdincludedir,;t t
23209 s,@USE_NLS@,$USE_NLS,;t t
23210 s,@LIBINTL@,$LIBINTL,;t t
23211 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
23212 s,@INCINTL@,$INCINTL,;t t
23213 s,@XGETTEXT@,$XGETTEXT,;t t
23214 s,@GMSGFMT@,$GMSGFMT,;t t
23215 s,@POSUB@,$POSUB,;t t
23216 s,@CATALOGS@,$CATALOGS,;t t
23217 s,@DATADIRNAME@,$DATADIRNAME,;t t
23218 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
23219 s,@GENCAT@,$GENCAT,;t t
23220 s,@CATOBJEXT@,$CATOBJEXT,;t t
23221 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
23222 s,@MSGFMT@,$MSGFMT,;t t
23223 s,@MSGMERGE@,$MSGMERGE,;t t
23224 s,@HDEFINES@,$HDEFINES,;t t
23225 s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
23226 s,@BFD_HOST_64BIT_LONG_LONG@,$BFD_HOST_64BIT_LONG_LONG,;t t
23227 s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
23228 s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
23229 s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
23230 s,@BFD_HOSTPTR_T@,$BFD_HOSTPTR_T,;t t
23231 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
23232 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
23233 s,@COREFILE@,$COREFILE,;t t
23234 s,@COREFLAG@,$COREFLAG,;t t
23235 s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
23236 s,@WIN32LIBADD@,$WIN32LIBADD,;t t
23237 s,@TDEFINES@,$TDEFINES,;t t
23238 s,@wordsize@,$wordsize,;t t
23239 s,@bfd64_libs@,$bfd64_libs,;t t
23240 s,@all_backends@,$all_backends,;t t
23241 s,@bfd_backends@,$bfd_backends,;t t
23242 s,@bfd_machines@,$bfd_machines,;t t
23243 s,@bfd_default_target_size@,$bfd_default_target_size,;t t
23244 s,@bfd_file_ptr@,$bfd_file_ptr,;t t
23245 s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
23246 s,@tdefaults@,$tdefaults,;t t
23247 s,@datarootdir@,$datarootdir,;t t
23248 s,@docdir@,$docdir,;t t
23249 s,@htmldir@,$htmldir,;t t
23250 s,@LIBOBJS@,$LIBOBJS,;t t
23251 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23252 CEOF
23254 _ACEOF
23256 cat >>$CONFIG_STATUS <<\_ACEOF
23257 # Split the substitutions into bite-sized pieces for seds with
23258 # small command number limits, like on Digital OSF/1 and HP-UX.
23259 ac_max_sed_lines=48
23260 ac_sed_frag=1 # Number of current file.
23261 ac_beg=1 # First line for current file.
23262 ac_end=$ac_max_sed_lines # Line after last line for current file.
23263 ac_more_lines=:
23264 ac_sed_cmds=
23265 while $ac_more_lines; do
23266 if test $ac_beg -gt 1; then
23267 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23268 else
23269 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23271 if test ! -s $tmp/subs.frag; then
23272 ac_more_lines=false
23273 else
23274 # The purpose of the label and of the branching condition is to
23275 # speed up the sed processing (if there are no `@' at all, there
23276 # is no need to browse any of the substitutions).
23277 # These are the two extra sed commands mentioned above.
23278 (echo ':t
23279 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23280 if test -z "$ac_sed_cmds"; then
23281 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23282 else
23283 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23285 ac_sed_frag=`expr $ac_sed_frag + 1`
23286 ac_beg=$ac_end
23287 ac_end=`expr $ac_end + $ac_max_sed_lines`
23289 done
23290 if test -z "$ac_sed_cmds"; then
23291 ac_sed_cmds=cat
23293 fi # test -n "$CONFIG_FILES"
23295 _ACEOF
23296 cat >>$CONFIG_STATUS <<\_ACEOF
23297 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23298 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23299 case $ac_file in
23300 - | *:- | *:-:* ) # input from stdin
23301 cat >$tmp/stdin
23302 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23303 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23304 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23305 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23306 * ) ac_file_in=$ac_file.in ;;
23307 esac
23309 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23310 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23311 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23312 X"$ac_file" : 'X\(//\)[^/]' \| \
23313 X"$ac_file" : 'X\(//\)$' \| \
23314 X"$ac_file" : 'X\(/\)' \| \
23315 . : '\(.\)' 2>/dev/null ||
23316 echo X"$ac_file" |
23317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23318 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23319 /^X\(\/\/\)$/{ s//\1/; q; }
23320 /^X\(\/\).*/{ s//\1/; q; }
23321 s/.*/./; q'`
23322 { if $as_mkdir_p; then
23323 mkdir -p "$ac_dir"
23324 else
23325 as_dir="$ac_dir"
23326 as_dirs=
23327 while test ! -d "$as_dir"; do
23328 as_dirs="$as_dir $as_dirs"
23329 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23331 X"$as_dir" : 'X\(//\)[^/]' \| \
23332 X"$as_dir" : 'X\(//\)$' \| \
23333 X"$as_dir" : 'X\(/\)' \| \
23334 . : '\(.\)' 2>/dev/null ||
23335 echo X"$as_dir" |
23336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23337 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23338 /^X\(\/\/\)$/{ s//\1/; q; }
23339 /^X\(\/\).*/{ s//\1/; q; }
23340 s/.*/./; q'`
23341 done
23342 test ! -n "$as_dirs" || mkdir $as_dirs
23343 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23344 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23345 { (exit 1); exit 1; }; }; }
23347 ac_builddir=.
23349 if test "$ac_dir" != .; then
23350 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23351 # A "../" for each directory in $ac_dir_suffix.
23352 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23353 else
23354 ac_dir_suffix= ac_top_builddir=
23357 case $srcdir in
23358 .) # No --srcdir option. We are building in place.
23359 ac_srcdir=.
23360 if test -z "$ac_top_builddir"; then
23361 ac_top_srcdir=.
23362 else
23363 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23364 fi ;;
23365 [\\/]* | ?:[\\/]* ) # Absolute path.
23366 ac_srcdir=$srcdir$ac_dir_suffix;
23367 ac_top_srcdir=$srcdir ;;
23368 *) # Relative path.
23369 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23370 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23371 esac
23373 # Do not use `cd foo && pwd` to compute absolute paths, because
23374 # the directories may not exist.
23375 case `pwd` in
23376 .) ac_abs_builddir="$ac_dir";;
23378 case "$ac_dir" in
23379 .) ac_abs_builddir=`pwd`;;
23380 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23381 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23382 esac;;
23383 esac
23384 case $ac_abs_builddir in
23385 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23387 case ${ac_top_builddir}. in
23388 .) ac_abs_top_builddir=$ac_abs_builddir;;
23389 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23390 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23391 esac;;
23392 esac
23393 case $ac_abs_builddir in
23394 .) ac_abs_srcdir=$ac_srcdir;;
23396 case $ac_srcdir in
23397 .) ac_abs_srcdir=$ac_abs_builddir;;
23398 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23399 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23400 esac;;
23401 esac
23402 case $ac_abs_builddir in
23403 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23405 case $ac_top_srcdir in
23406 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23407 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23408 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23409 esac;;
23410 esac
23413 case $INSTALL in
23414 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23415 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23416 esac
23418 if test x"$ac_file" != x-; then
23419 { echo "$as_me:$LINENO: creating $ac_file" >&5
23420 echo "$as_me: creating $ac_file" >&6;}
23421 rm -f "$ac_file"
23423 # Let's still pretend it is `configure' which instantiates (i.e., don't
23424 # use $as_me), people would be surprised to read:
23425 # /* config.h. Generated by config.status. */
23426 if test x"$ac_file" = x-; then
23427 configure_input=
23428 else
23429 configure_input="$ac_file. "
23431 configure_input=$configure_input"Generated from `echo $ac_file_in |
23432 sed 's,.*/,,'` by configure."
23434 # First look for the input files in the build tree, otherwise in the
23435 # src tree.
23436 ac_file_inputs=`IFS=:
23437 for f in $ac_file_in; do
23438 case $f in
23439 -) echo $tmp/stdin ;;
23440 [\\/$]*)
23441 # Absolute (can't be DOS-style, as IFS=:)
23442 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23443 echo "$as_me: error: cannot find input file: $f" >&2;}
23444 { (exit 1); exit 1; }; }
23445 echo "$f";;
23446 *) # Relative
23447 if test -f "$f"; then
23448 # Build tree
23449 echo "$f"
23450 elif test -f "$srcdir/$f"; then
23451 # Source tree
23452 echo "$srcdir/$f"
23453 else
23454 # /dev/null tree
23455 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23456 echo "$as_me: error: cannot find input file: $f" >&2;}
23457 { (exit 1); exit 1; }; }
23458 fi;;
23459 esac
23460 done` || { (exit 1); exit 1; }
23461 _ACEOF
23462 cat >>$CONFIG_STATUS <<_ACEOF
23463 sed "$ac_vpsub
23464 $extrasub
23465 _ACEOF
23466 cat >>$CONFIG_STATUS <<\_ACEOF
23468 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23469 s,@configure_input@,$configure_input,;t t
23470 s,@srcdir@,$ac_srcdir,;t t
23471 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23472 s,@top_srcdir@,$ac_top_srcdir,;t t
23473 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23474 s,@builddir@,$ac_builddir,;t t
23475 s,@abs_builddir@,$ac_abs_builddir,;t t
23476 s,@top_builddir@,$ac_top_builddir,;t t
23477 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23478 s,@INSTALL@,$ac_INSTALL,;t t
23479 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23480 rm -f $tmp/stdin
23481 if test x"$ac_file" != x-; then
23482 mv $tmp/out $ac_file
23483 else
23484 cat $tmp/out
23485 rm -f $tmp/out
23488 done
23489 _ACEOF
23490 cat >>$CONFIG_STATUS <<\_ACEOF
23493 # CONFIG_HEADER section.
23496 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23497 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23499 # ac_d sets the value in "#define NAME VALUE" lines.
23500 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23501 ac_dB='[ ].*$,\1#\2'
23502 ac_dC=' '
23503 ac_dD=',;t'
23504 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23505 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23506 ac_uB='$,\1#\2define\3'
23507 ac_uC=' '
23508 ac_uD=',;t'
23510 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23511 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23512 case $ac_file in
23513 - | *:- | *:-:* ) # input from stdin
23514 cat >$tmp/stdin
23515 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23516 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23517 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23518 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23519 * ) ac_file_in=$ac_file.in ;;
23520 esac
23522 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23523 echo "$as_me: creating $ac_file" >&6;}
23525 # First look for the input files in the build tree, otherwise in the
23526 # src tree.
23527 ac_file_inputs=`IFS=:
23528 for f in $ac_file_in; do
23529 case $f in
23530 -) echo $tmp/stdin ;;
23531 [\\/$]*)
23532 # Absolute (can't be DOS-style, as IFS=:)
23533 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23534 echo "$as_me: error: cannot find input file: $f" >&2;}
23535 { (exit 1); exit 1; }; }
23536 # Do quote $f, to prevent DOS paths from being IFS'd.
23537 echo "$f";;
23538 *) # Relative
23539 if test -f "$f"; then
23540 # Build tree
23541 echo "$f"
23542 elif test -f "$srcdir/$f"; then
23543 # Source tree
23544 echo "$srcdir/$f"
23545 else
23546 # /dev/null tree
23547 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23548 echo "$as_me: error: cannot find input file: $f" >&2;}
23549 { (exit 1); exit 1; }; }
23550 fi;;
23551 esac
23552 done` || { (exit 1); exit 1; }
23553 # Remove the trailing spaces.
23554 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23556 _ACEOF
23558 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23559 # `conftest.undefs', that substitutes the proper values into
23560 # config.h.in to produce config.h. The first handles `#define'
23561 # templates, and the second `#undef' templates.
23562 # And first: Protect against being on the right side of a sed subst in
23563 # config.status. Protect against being in an unquoted here document
23564 # in config.status.
23565 rm -f conftest.defines conftest.undefs
23566 # Using a here document instead of a string reduces the quoting nightmare.
23567 # Putting comments in sed scripts is not portable.
23569 # `end' is used to avoid that the second main sed command (meant for
23570 # 0-ary CPP macros) applies to n-ary macro definitions.
23571 # See the Autoconf documentation for `clear'.
23572 cat >confdef2sed.sed <<\_ACEOF
23573 s/[\\&,]/\\&/g
23574 s,[\\$`],\\&,g
23575 t clear
23576 : clear
23577 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23578 t end
23579 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23580 : end
23581 _ACEOF
23582 # If some macros were called several times there might be several times
23583 # the same #defines, which is useless. Nevertheless, we may not want to
23584 # sort them, since we want the *last* AC-DEFINE to be honored.
23585 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23586 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23587 rm -f confdef2sed.sed
23589 # This sed command replaces #undef with comments. This is necessary, for
23590 # example, in the case of _POSIX_SOURCE, which is predefined and required
23591 # on some systems where configure will not decide to define it.
23592 cat >>conftest.undefs <<\_ACEOF
23593 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23594 _ACEOF
23596 # Break up conftest.defines because some shells have a limit on the size
23597 # of here documents, and old seds have small limits too (100 cmds).
23598 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23599 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23600 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23601 echo ' :' >>$CONFIG_STATUS
23602 rm -f conftest.tail
23603 while grep . conftest.defines >/dev/null
23605 # Write a limited-size here document to $tmp/defines.sed.
23606 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23607 # Speed up: don't consider the non `#define' lines.
23608 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23609 # Work around the forget-to-reset-the-flag bug.
23610 echo 't clr' >>$CONFIG_STATUS
23611 echo ': clr' >>$CONFIG_STATUS
23612 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23613 echo 'CEOF
23614 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23615 rm -f $tmp/in
23616 mv $tmp/out $tmp/in
23617 ' >>$CONFIG_STATUS
23618 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23619 rm -f conftest.defines
23620 mv conftest.tail conftest.defines
23621 done
23622 rm -f conftest.defines
23623 echo ' fi # grep' >>$CONFIG_STATUS
23624 echo >>$CONFIG_STATUS
23626 # Break up conftest.undefs because some shells have a limit on the size
23627 # of here documents, and old seds have small limits too (100 cmds).
23628 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23629 rm -f conftest.tail
23630 while grep . conftest.undefs >/dev/null
23632 # Write a limited-size here document to $tmp/undefs.sed.
23633 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23634 # Speed up: don't consider the non `#undef'
23635 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23636 # Work around the forget-to-reset-the-flag bug.
23637 echo 't clr' >>$CONFIG_STATUS
23638 echo ': clr' >>$CONFIG_STATUS
23639 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23640 echo 'CEOF
23641 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23642 rm -f $tmp/in
23643 mv $tmp/out $tmp/in
23644 ' >>$CONFIG_STATUS
23645 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23646 rm -f conftest.undefs
23647 mv conftest.tail conftest.undefs
23648 done
23649 rm -f conftest.undefs
23651 cat >>$CONFIG_STATUS <<\_ACEOF
23652 # Let's still pretend it is `configure' which instantiates (i.e., don't
23653 # use $as_me), people would be surprised to read:
23654 # /* config.h. Generated by config.status. */
23655 if test x"$ac_file" = x-; then
23656 echo "/* Generated by configure. */" >$tmp/config.h
23657 else
23658 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23660 cat $tmp/in >>$tmp/config.h
23661 rm -f $tmp/in
23662 if test x"$ac_file" != x-; then
23663 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23664 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23665 echo "$as_me: $ac_file is unchanged" >&6;}
23666 else
23667 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23668 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23669 X"$ac_file" : 'X\(//\)[^/]' \| \
23670 X"$ac_file" : 'X\(//\)$' \| \
23671 X"$ac_file" : 'X\(/\)' \| \
23672 . : '\(.\)' 2>/dev/null ||
23673 echo X"$ac_file" |
23674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23675 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23676 /^X\(\/\/\)$/{ s//\1/; q; }
23677 /^X\(\/\).*/{ s//\1/; q; }
23678 s/.*/./; q'`
23679 { if $as_mkdir_p; then
23680 mkdir -p "$ac_dir"
23681 else
23682 as_dir="$ac_dir"
23683 as_dirs=
23684 while test ! -d "$as_dir"; do
23685 as_dirs="$as_dir $as_dirs"
23686 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23687 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23688 X"$as_dir" : 'X\(//\)[^/]' \| \
23689 X"$as_dir" : 'X\(//\)$' \| \
23690 X"$as_dir" : 'X\(/\)' \| \
23691 . : '\(.\)' 2>/dev/null ||
23692 echo X"$as_dir" |
23693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23694 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23695 /^X\(\/\/\)$/{ s//\1/; q; }
23696 /^X\(\/\).*/{ s//\1/; q; }
23697 s/.*/./; q'`
23698 done
23699 test ! -n "$as_dirs" || mkdir $as_dirs
23700 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23701 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23702 { (exit 1); exit 1; }; }; }
23704 rm -f $ac_file
23705 mv $tmp/config.h $ac_file
23707 else
23708 cat $tmp/config.h
23709 rm -f $tmp/config.h
23711 # Compute $ac_file's index in $config_headers.
23712 _am_stamp_count=1
23713 for _am_header in $config_headers :; do
23714 case $_am_header in
23715 $ac_file | $ac_file:* )
23716 break ;;
23718 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23719 esac
23720 done
23721 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23722 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23723 X$ac_file : 'X\(//\)[^/]' \| \
23724 X$ac_file : 'X\(//\)$' \| \
23725 X$ac_file : 'X\(/\)' \| \
23726 . : '\(.\)' 2>/dev/null ||
23727 echo X$ac_file |
23728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23729 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23730 /^X\(\/\/\)$/{ s//\1/; q; }
23731 /^X\(\/\).*/{ s//\1/; q; }
23732 s/.*/./; q'`/stamp-h$_am_stamp_count
23733 done
23734 _ACEOF
23735 cat >>$CONFIG_STATUS <<\_ACEOF
23738 # CONFIG_COMMANDS section.
23740 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23741 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23742 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23743 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23744 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23745 X"$ac_dest" : 'X\(//\)[^/]' \| \
23746 X"$ac_dest" : 'X\(//\)$' \| \
23747 X"$ac_dest" : 'X\(/\)' \| \
23748 . : '\(.\)' 2>/dev/null ||
23749 echo X"$ac_dest" |
23750 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23751 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23752 /^X\(\/\/\)$/{ s//\1/; q; }
23753 /^X\(\/\).*/{ s//\1/; q; }
23754 s/.*/./; q'`
23755 { if $as_mkdir_p; then
23756 mkdir -p "$ac_dir"
23757 else
23758 as_dir="$ac_dir"
23759 as_dirs=
23760 while test ! -d "$as_dir"; do
23761 as_dirs="$as_dir $as_dirs"
23762 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23763 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23764 X"$as_dir" : 'X\(//\)[^/]' \| \
23765 X"$as_dir" : 'X\(//\)$' \| \
23766 X"$as_dir" : 'X\(/\)' \| \
23767 . : '\(.\)' 2>/dev/null ||
23768 echo X"$as_dir" |
23769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23770 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23771 /^X\(\/\/\)$/{ s//\1/; q; }
23772 /^X\(\/\).*/{ s//\1/; q; }
23773 s/.*/./; q'`
23774 done
23775 test ! -n "$as_dirs" || mkdir $as_dirs
23776 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23777 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23778 { (exit 1); exit 1; }; }; }
23780 ac_builddir=.
23782 if test "$ac_dir" != .; then
23783 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23784 # A "../" for each directory in $ac_dir_suffix.
23785 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23786 else
23787 ac_dir_suffix= ac_top_builddir=
23790 case $srcdir in
23791 .) # No --srcdir option. We are building in place.
23792 ac_srcdir=.
23793 if test -z "$ac_top_builddir"; then
23794 ac_top_srcdir=.
23795 else
23796 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23797 fi ;;
23798 [\\/]* | ?:[\\/]* ) # Absolute path.
23799 ac_srcdir=$srcdir$ac_dir_suffix;
23800 ac_top_srcdir=$srcdir ;;
23801 *) # Relative path.
23802 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23803 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23804 esac
23806 # Do not use `cd foo && pwd` to compute absolute paths, because
23807 # the directories may not exist.
23808 case `pwd` in
23809 .) ac_abs_builddir="$ac_dir";;
23811 case "$ac_dir" in
23812 .) ac_abs_builddir=`pwd`;;
23813 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23814 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23815 esac;;
23816 esac
23817 case $ac_abs_builddir in
23818 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23820 case ${ac_top_builddir}. in
23821 .) ac_abs_top_builddir=$ac_abs_builddir;;
23822 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23823 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23824 esac;;
23825 esac
23826 case $ac_abs_builddir in
23827 .) ac_abs_srcdir=$ac_srcdir;;
23829 case $ac_srcdir in
23830 .) ac_abs_srcdir=$ac_abs_builddir;;
23831 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23832 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23833 esac;;
23834 esac
23835 case $ac_abs_builddir in
23836 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23838 case $ac_top_srcdir in
23839 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23840 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23841 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23842 esac;;
23843 esac
23846 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23847 echo "$as_me: executing $ac_dest commands" >&6;}
23848 case $ac_dest in
23849 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23850 # Strip MF so we end up with the name of the file.
23851 mf=`echo "$mf" | sed -e 's/:.*$//'`
23852 # Check whether this is an Automake generated Makefile or not.
23853 # We used to match only the files named `Makefile.in', but
23854 # some people rename them; so instead we look at the file content.
23855 # Grep'ing the first line is not enough: some people post-process
23856 # each Makefile.in and add a new line on top of each file to say so.
23857 # So let's grep whole file.
23858 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23859 dirpart=`(dirname "$mf") 2>/dev/null ||
23860 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23861 X"$mf" : 'X\(//\)[^/]' \| \
23862 X"$mf" : 'X\(//\)$' \| \
23863 X"$mf" : 'X\(/\)' \| \
23864 . : '\(.\)' 2>/dev/null ||
23865 echo X"$mf" |
23866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23868 /^X\(\/\/\)$/{ s//\1/; q; }
23869 /^X\(\/\).*/{ s//\1/; q; }
23870 s/.*/./; q'`
23871 else
23872 continue
23874 # Extract the definition of DEPDIR, am__include, and am__quote
23875 # from the Makefile without running `make'.
23876 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23877 test -z "$DEPDIR" && continue
23878 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23879 test -z "am__include" && continue
23880 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23881 # When using ansi2knr, U may be empty or an underscore; expand it
23882 U=`sed -n 's/^U = //p' < "$mf"`
23883 # Find all dependency output files, they are included files with
23884 # $(DEPDIR) in their names. We invoke sed twice because it is the
23885 # simplest approach to changing $(DEPDIR) to its actual value in the
23886 # expansion.
23887 for file in `sed -n "
23888 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23889 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23890 # Make sure the directory exists.
23891 test -f "$dirpart/$file" && continue
23892 fdir=`(dirname "$file") 2>/dev/null ||
23893 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23894 X"$file" : 'X\(//\)[^/]' \| \
23895 X"$file" : 'X\(//\)$' \| \
23896 X"$file" : 'X\(/\)' \| \
23897 . : '\(.\)' 2>/dev/null ||
23898 echo X"$file" |
23899 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23900 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23901 /^X\(\/\/\)$/{ s//\1/; q; }
23902 /^X\(\/\).*/{ s//\1/; q; }
23903 s/.*/./; q'`
23904 { if $as_mkdir_p; then
23905 mkdir -p $dirpart/$fdir
23906 else
23907 as_dir=$dirpart/$fdir
23908 as_dirs=
23909 while test ! -d "$as_dir"; do
23910 as_dirs="$as_dir $as_dirs"
23911 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23912 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23913 X"$as_dir" : 'X\(//\)[^/]' \| \
23914 X"$as_dir" : 'X\(//\)$' \| \
23915 X"$as_dir" : 'X\(/\)' \| \
23916 . : '\(.\)' 2>/dev/null ||
23917 echo X"$as_dir" |
23918 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23919 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23920 /^X\(\/\/\)$/{ s//\1/; q; }
23921 /^X\(\/\).*/{ s//\1/; q; }
23922 s/.*/./; q'`
23923 done
23924 test ! -n "$as_dirs" || mkdir $as_dirs
23925 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23926 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23927 { (exit 1); exit 1; }; }; }
23929 # echo "creating $dirpart/$file"
23930 echo '# dummy' > "$dirpart/$file"
23931 done
23932 done
23934 libtool )
23936 # See if we are running on zsh, and set the options which allow our
23937 # commands through without removal of \ escapes.
23938 if test -n "${ZSH_VERSION+set}" ; then
23939 setopt NO_GLOB_SUBST
23942 cfgfile="${ofile}T"
23943 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23944 $RM "$cfgfile"
23946 cat <<_LT_EOF >> "$cfgfile"
23947 #! $SHELL
23949 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
23950 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
23951 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23952 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23954 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23955 # 2006, 2007, 2008 Free Software Foundation, Inc.
23956 # Written by Gordon Matzigkeit, 1996
23958 # This file is part of GNU Libtool.
23960 # GNU Libtool is free software; you can redistribute it and/or
23961 # modify it under the terms of the GNU General Public License as
23962 # published by the Free Software Foundation; either version 2 of
23963 # the License, or (at your option) any later version.
23965 # As a special exception to the GNU General Public License,
23966 # if you distribute this file as part of a program or library that
23967 # is built using GNU Libtool, you may include this file under the
23968 # same distribution terms that you use for the rest of that program.
23970 # GNU Libtool is distributed in the hope that it will be useful,
23971 # but WITHOUT ANY WARRANTY; without even the implied warranty of
23972 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23973 # GNU General Public License for more details.
23975 # You should have received a copy of the GNU General Public License
23976 # along with GNU Libtool; see the file COPYING. If not, a copy
23977 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
23978 # obtained by writing to the Free Software Foundation, Inc.,
23979 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23982 # The names of the tagged configurations supported by this script.
23983 available_tags=""
23985 # ### BEGIN LIBTOOL CONFIG
23987 # Whether or not to build shared libraries.
23988 build_libtool_libs=$enable_shared
23990 # Which release of libtool.m4 was used?
23991 macro_version=$macro_version
23992 macro_revision=$macro_revision
23994 # Whether or not to build static libraries.
23995 build_old_libs=$enable_static
23997 # What type of objects to build.
23998 pic_mode=$pic_mode
24000 # Whether or not to optimize for fast installation.
24001 fast_install=$enable_fast_install
24003 # The host system.
24004 host_alias=$host_alias
24005 host=$host
24006 host_os=$host_os
24008 # The build system.
24009 build_alias=$build_alias
24010 build=$build
24011 build_os=$build_os
24013 # A sed program that does not truncate output.
24014 SED=$lt_SED
24016 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24017 Xsed="\$SED -e 1s/^X//"
24019 # A grep program that handles long lines.
24020 GREP=$lt_GREP
24022 # An ERE matcher.
24023 EGREP=$lt_EGREP
24025 # A literal string matcher.
24026 FGREP=$lt_FGREP
24028 # A BSD- or MS-compatible name lister.
24029 NM=$lt_NM
24031 # Whether we need soft or hard links.
24032 LN_S=$lt_LN_S
24034 # What is the maximum length of a command?
24035 max_cmd_len=$max_cmd_len
24037 # Object file suffix (normally "o").
24038 objext=$ac_objext
24040 # Executable file suffix (normally "").
24041 exeext=$exeext
24043 # whether the shell understands "unset".
24044 lt_unset=$lt_unset
24046 # turn spaces into newlines.
24047 SP2NL=$lt_lt_SP2NL
24049 # turn newlines into spaces.
24050 NL2SP=$lt_lt_NL2SP
24052 # How to create reloadable object files.
24053 reload_flag=$lt_reload_flag
24054 reload_cmds=$lt_reload_cmds
24056 # An object symbol dumper.
24057 OBJDUMP=$lt_OBJDUMP
24059 # Method to check whether dependent libraries are shared objects.
24060 deplibs_check_method=$lt_deplibs_check_method
24062 # Command to use when deplibs_check_method == "file_magic".
24063 file_magic_cmd=$lt_file_magic_cmd
24065 # The archiver.
24066 AR=$lt_AR
24067 AR_FLAGS=$lt_AR_FLAGS
24069 # A symbol stripping program.
24070 STRIP=$lt_STRIP
24072 # Commands used to install an old-style archive.
24073 RANLIB=$lt_RANLIB
24074 old_postinstall_cmds=$lt_old_postinstall_cmds
24075 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24077 # A C compiler.
24078 LTCC=$lt_CC
24080 # LTCC compiler flags.
24081 LTCFLAGS=$lt_CFLAGS
24083 # Take the output of nm and produce a listing of raw symbols and C names.
24084 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24086 # Transform the output of nm in a proper C declaration.
24087 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24089 # Transform the output of nm in a C name address pair.
24090 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24092 # Transform the output of nm in a C name address pair when lib prefix is needed.
24093 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24095 # The name of the directory that contains temporary libtool files.
24096 objdir=$objdir
24098 # Shell to use when invoking shell scripts.
24099 SHELL=$lt_SHELL
24101 # An echo program that does not interpret backslashes.
24102 ECHO=$lt_ECHO
24104 # Used to examine libraries when file_magic_cmd begins with "file".
24105 MAGIC_CMD=$MAGIC_CMD
24107 # Must we lock files when doing compilation?
24108 need_locks=$lt_need_locks
24110 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24111 DSYMUTIL=$lt_DSYMUTIL
24113 # Tool to change global to local symbols on Mac OS X.
24114 NMEDIT=$lt_NMEDIT
24116 # Tool to manipulate fat objects and archives on Mac OS X.
24117 LIPO=$lt_LIPO
24119 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24120 OTOOL=$lt_OTOOL
24122 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24123 OTOOL64=$lt_OTOOL64
24125 # Old archive suffix (normally "a").
24126 libext=$libext
24128 # Shared library suffix (normally ".so").
24129 shrext_cmds=$lt_shrext_cmds
24131 # The commands to extract the exported symbol list from a shared archive.
24132 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24134 # Variables whose values should be saved in libtool wrapper scripts and
24135 # restored at link time.
24136 variables_saved_for_relink=$lt_variables_saved_for_relink
24138 # Do we need the "lib" prefix for modules?
24139 need_lib_prefix=$need_lib_prefix
24141 # Do we need a version for libraries?
24142 need_version=$need_version
24144 # Library versioning type.
24145 version_type=$version_type
24147 # Shared library runtime path variable.
24148 runpath_var=$runpath_var
24150 # Shared library path variable.
24151 shlibpath_var=$shlibpath_var
24153 # Is shlibpath searched before the hard-coded library search path?
24154 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24156 # Format of library name prefix.
24157 libname_spec=$lt_libname_spec
24159 # List of archive names. First name is the real one, the rest are links.
24160 # The last name is the one that the linker finds with -lNAME
24161 library_names_spec=$lt_library_names_spec
24163 # The coded name of the library, if different from the real name.
24164 soname_spec=$lt_soname_spec
24166 # Command to use after installation of a shared archive.
24167 postinstall_cmds=$lt_postinstall_cmds
24169 # Command to use after uninstallation of a shared archive.
24170 postuninstall_cmds=$lt_postuninstall_cmds
24172 # Commands used to finish a libtool library installation in a directory.
24173 finish_cmds=$lt_finish_cmds
24175 # As "finish_cmds", except a single script fragment to be evaled but
24176 # not shown.
24177 finish_eval=$lt_finish_eval
24179 # Whether we should hardcode library paths into libraries.
24180 hardcode_into_libs=$hardcode_into_libs
24182 # Compile-time system search path for libraries.
24183 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24185 # Run-time system search path for libraries.
24186 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24188 # Whether dlopen is supported.
24189 dlopen_support=$enable_dlopen
24191 # Whether dlopen of programs is supported.
24192 dlopen_self=$enable_dlopen_self
24194 # Whether dlopen of statically linked programs is supported.
24195 dlopen_self_static=$enable_dlopen_self_static
24197 # Commands to strip libraries.
24198 old_striplib=$lt_old_striplib
24199 striplib=$lt_striplib
24202 # The linker used to build libraries.
24203 LD=$lt_LD
24205 # Commands used to build an old-style archive.
24206 old_archive_cmds=$lt_old_archive_cmds
24208 # A language specific compiler.
24209 CC=$lt_compiler
24211 # Is the compiler the GNU compiler?
24212 with_gcc=$GCC
24214 # Compiler flag to turn off builtin functions.
24215 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24217 # How to pass a linker flag through the compiler.
24218 wl=$lt_lt_prog_compiler_wl
24220 # Additional compiler flags for building library objects.
24221 pic_flag=$lt_lt_prog_compiler_pic
24223 # Compiler flag to prevent dynamic linking.
24224 link_static_flag=$lt_lt_prog_compiler_static
24226 # Does compiler simultaneously support -c and -o options?
24227 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24229 # Whether or not to add -lc for building shared libraries.
24230 build_libtool_need_lc=$archive_cmds_need_lc
24232 # Whether or not to disallow shared libs when runtime libs are static.
24233 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24235 # Compiler flag to allow reflexive dlopens.
24236 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24238 # Compiler flag to generate shared objects directly from archives.
24239 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24241 # Whether the compiler copes with passing no objects directly.
24242 compiler_needs_object=$lt_compiler_needs_object
24244 # Create an old-style archive from a shared archive.
24245 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24247 # Create a temporary old-style archive to link instead of a shared archive.
24248 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24250 # Commands used to build a shared archive.
24251 archive_cmds=$lt_archive_cmds
24252 archive_expsym_cmds=$lt_archive_expsym_cmds
24254 # Commands used to build a loadable module if different from building
24255 # a shared archive.
24256 module_cmds=$lt_module_cmds
24257 module_expsym_cmds=$lt_module_expsym_cmds
24259 # Whether we are building with GNU ld or not.
24260 with_gnu_ld=$lt_with_gnu_ld
24262 # Flag that allows shared libraries with undefined symbols to be built.
24263 allow_undefined_flag=$lt_allow_undefined_flag
24265 # Flag that enforces no undefined symbols.
24266 no_undefined_flag=$lt_no_undefined_flag
24268 # Flag to hardcode \$libdir into a binary during linking.
24269 # This must work even if \$libdir does not exist
24270 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24272 # If ld is used when linking, flag to hardcode \$libdir into a binary
24273 # during linking. This must work even if \$libdir does not exist.
24274 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
24276 # Whether we need a single "-rpath" flag with a separated argument.
24277 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24279 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24280 # DIR into the resulting binary.
24281 hardcode_direct=$hardcode_direct
24283 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24284 # DIR into the resulting binary and the resulting library dependency is
24285 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24286 # library is relocated.
24287 hardcode_direct_absolute=$hardcode_direct_absolute
24289 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24290 # into the resulting binary.
24291 hardcode_minus_L=$hardcode_minus_L
24293 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24294 # into the resulting binary.
24295 hardcode_shlibpath_var=$hardcode_shlibpath_var
24297 # Set to "yes" if building a shared library automatically hardcodes DIR
24298 # into the library and all subsequent libraries and executables linked
24299 # against it.
24300 hardcode_automatic=$hardcode_automatic
24302 # Set to yes if linker adds runtime paths of dependent libraries
24303 # to runtime path list.
24304 inherit_rpath=$inherit_rpath
24306 # Whether libtool must link a program against all its dependency libraries.
24307 link_all_deplibs=$link_all_deplibs
24309 # Fix the shell variable \$srcfile for the compiler.
24310 fix_srcfile_path=$lt_fix_srcfile_path
24312 # Set to "yes" if exported symbols are required.
24313 always_export_symbols=$always_export_symbols
24315 # The commands to list exported symbols.
24316 export_symbols_cmds=$lt_export_symbols_cmds
24318 # Symbols that should not be listed in the preloaded symbols.
24319 exclude_expsyms=$lt_exclude_expsyms
24321 # Symbols that must always be exported.
24322 include_expsyms=$lt_include_expsyms
24324 # Commands necessary for linking programs (against libraries) with templates.
24325 prelink_cmds=$lt_prelink_cmds
24327 # Specify filename containing input files.
24328 file_list_spec=$lt_file_list_spec
24330 # How to hardcode a shared library path into an executable.
24331 hardcode_action=$hardcode_action
24333 # ### END LIBTOOL CONFIG
24335 _LT_EOF
24337 case $host_os in
24338 aix3*)
24339 cat <<\_LT_EOF >> "$cfgfile"
24340 # AIX sometimes has problems with the GCC collect2 program. For some
24341 # reason, if we set the COLLECT_NAMES environment variable, the problems
24342 # vanish in a puff of smoke.
24343 if test "X${COLLECT_NAMES+set}" != Xset; then
24344 COLLECT_NAMES=
24345 export COLLECT_NAMES
24347 _LT_EOF
24349 esac
24352 ltmain="$ac_aux_dir/ltmain.sh"
24355 # We use sed instead of cat because bash on DJGPP gets confused if
24356 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24357 # text mode, it properly converts lines to CR/LF. This bash problem
24358 # is reportedly fixed, but why not run on old versions too?
24359 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
24360 || (rm -f "$cfgfile"; exit 1)
24362 case $xsi_shell in
24363 yes)
24364 cat << \_LT_EOF >> "$cfgfile"
24366 # func_dirname file append nondir_replacement
24367 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
24368 # otherwise set result to NONDIR_REPLACEMENT.
24369 func_dirname ()
24371 case ${1} in
24372 */*) func_dirname_result="${1%/*}${2}" ;;
24373 * ) func_dirname_result="${3}" ;;
24374 esac
24377 # func_basename file
24378 func_basename ()
24380 func_basename_result="${1##*/}"
24383 # func_dirname_and_basename file append nondir_replacement
24384 # perform func_basename and func_dirname in a single function
24385 # call:
24386 # dirname: Compute the dirname of FILE. If nonempty,
24387 # add APPEND to the result, otherwise set result
24388 # to NONDIR_REPLACEMENT.
24389 # value returned in "$func_dirname_result"
24390 # basename: Compute filename of FILE.
24391 # value retuned in "$func_basename_result"
24392 # Implementation must be kept synchronized with func_dirname
24393 # and func_basename. For efficiency, we do not delegate to
24394 # those functions but instead duplicate the functionality here.
24395 func_dirname_and_basename ()
24397 case ${1} in
24398 */*) func_dirname_result="${1%/*}${2}" ;;
24399 * ) func_dirname_result="${3}" ;;
24400 esac
24401 func_basename_result="${1##*/}"
24404 # func_stripname prefix suffix name
24405 # strip PREFIX and SUFFIX off of NAME.
24406 # PREFIX and SUFFIX must not contain globbing or regex special
24407 # characters, hashes, percent signs, but SUFFIX may contain a leading
24408 # dot (in which case that matches only a dot).
24409 func_stripname ()
24411 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
24412 # positional parameters, so assign one to ordinary parameter first.
24413 func_stripname_result=${3}
24414 func_stripname_result=${func_stripname_result#"${1}"}
24415 func_stripname_result=${func_stripname_result%"${2}"}
24418 # func_opt_split
24419 func_opt_split ()
24421 func_opt_split_opt=${1%%=*}
24422 func_opt_split_arg=${1#*=}
24425 # func_lo2o object
24426 func_lo2o ()
24428 case ${1} in
24429 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
24430 *) func_lo2o_result=${1} ;;
24431 esac
24434 # func_xform libobj-or-source
24435 func_xform ()
24437 func_xform_result=${1%.*}.lo
24440 # func_arith arithmetic-term...
24441 func_arith ()
24443 func_arith_result=$(( $* ))
24446 # func_len string
24447 # STRING may not start with a hyphen.
24448 func_len ()
24450 func_len_result=${#1}
24453 _LT_EOF
24455 *) # Bourne compatible functions.
24456 cat << \_LT_EOF >> "$cfgfile"
24458 # func_dirname file append nondir_replacement
24459 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
24460 # otherwise set result to NONDIR_REPLACEMENT.
24461 func_dirname ()
24463 # Extract subdirectory from the argument.
24464 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
24465 if test "X$func_dirname_result" = "X${1}"; then
24466 func_dirname_result="${3}"
24467 else
24468 func_dirname_result="$func_dirname_result${2}"
24472 # func_basename file
24473 func_basename ()
24475 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
24479 # func_stripname prefix suffix name
24480 # strip PREFIX and SUFFIX off of NAME.
24481 # PREFIX and SUFFIX must not contain globbing or regex special
24482 # characters, hashes, percent signs, but SUFFIX may contain a leading
24483 # dot (in which case that matches only a dot).
24484 # func_strip_suffix prefix name
24485 func_stripname ()
24487 case ${2} in
24488 .*) func_stripname_result=`$ECHO "X${3}" \
24489 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
24490 *) func_stripname_result=`$ECHO "X${3}" \
24491 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
24492 esac
24495 # sed scripts:
24496 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
24497 my_sed_long_arg='1s/^-[^=]*=//'
24499 # func_opt_split
24500 func_opt_split ()
24502 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
24503 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
24506 # func_lo2o object
24507 func_lo2o ()
24509 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
24512 # func_xform libobj-or-source
24513 func_xform ()
24515 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
24518 # func_arith arithmetic-term...
24519 func_arith ()
24521 func_arith_result=`expr "$@"`
24524 # func_len string
24525 # STRING may not start with a hyphen.
24526 func_len ()
24528 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
24531 _LT_EOF
24532 esac
24534 case $lt_shell_append in
24535 yes)
24536 cat << \_LT_EOF >> "$cfgfile"
24538 # func_append var value
24539 # Append VALUE to the end of shell variable VAR.
24540 func_append ()
24542 eval "$1+=\$2"
24544 _LT_EOF
24547 cat << \_LT_EOF >> "$cfgfile"
24549 # func_append var value
24550 # Append VALUE to the end of shell variable VAR.
24551 func_append ()
24553 eval "$1=\$$1\$2"
24556 _LT_EOF
24558 esac
24561 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
24562 || (rm -f "$cfgfile"; exit 1)
24564 mv -f "$cfgfile" "$ofile" ||
24565 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24566 chmod +x "$ofile"
24569 default-1 )
24570 for ac_file in $CONFIG_FILES; do
24571 # Support "outfile[:infile[:infile...]]"
24572 case "$ac_file" in
24573 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24574 esac
24575 # PO directories have a Makefile.in generated from Makefile.in.in.
24576 case "$ac_file" in */Makefile.in)
24577 # Adjust a relative srcdir.
24578 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
24579 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
24580 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
24581 # In autoconf-2.13 it is called $ac_given_srcdir.
24582 # In autoconf-2.50 it is called $srcdir.
24583 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
24584 case "$ac_given_srcdir" in
24585 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
24586 /*) top_srcdir="$ac_given_srcdir" ;;
24587 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
24588 esac
24589 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
24590 rm -f "$ac_dir/POTFILES"
24591 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
24592 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
24593 POMAKEFILEDEPS="POTFILES.in"
24594 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
24595 # on $ac_dir but don't depend on user-specified configuration
24596 # parameters.
24597 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
24598 # The LINGUAS file contains the set of available languages.
24599 if test -n "$OBSOLETE_ALL_LINGUAS"; then
24600 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
24602 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
24603 # Hide the ALL_LINGUAS assigment from automake.
24604 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
24605 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
24606 else
24607 # The set of available languages was given in configure.in.
24608 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
24610 case "$ac_given_srcdir" in
24611 .) srcdirpre= ;;
24612 *) srcdirpre='$(srcdir)/' ;;
24613 esac
24614 POFILES=
24615 GMOFILES=
24616 UPDATEPOFILES=
24617 DUMMYPOFILES=
24618 for lang in $ALL_LINGUAS; do
24619 POFILES="$POFILES $srcdirpre$lang.po"
24620 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
24621 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
24622 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
24623 done
24624 # CATALOGS depends on both $ac_dir and the user's LINGUAS
24625 # environment variable.
24626 INST_LINGUAS=
24627 if test -n "$ALL_LINGUAS"; then
24628 for presentlang in $ALL_LINGUAS; do
24629 useit=no
24630 if test "%UNSET%" != "$LINGUAS"; then
24631 desiredlanguages="$LINGUAS"
24632 else
24633 desiredlanguages="$ALL_LINGUAS"
24635 for desiredlang in $desiredlanguages; do
24636 # Use the presentlang catalog if desiredlang is
24637 # a. equal to presentlang, or
24638 # b. a variant of presentlang (because in this case,
24639 # presentlang can be used as a fallback for messages
24640 # which are not translated in the desiredlang catalog).
24641 case "$desiredlang" in
24642 "$presentlang"*) useit=yes;;
24643 esac
24644 done
24645 if test $useit = yes; then
24646 INST_LINGUAS="$INST_LINGUAS $presentlang"
24648 done
24650 CATALOGS=
24651 if test -n "$INST_LINGUAS"; then
24652 for lang in $INST_LINGUAS; do
24653 CATALOGS="$CATALOGS $lang.gmo"
24654 done
24656 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
24657 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"
24658 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
24659 if test -f "$f"; then
24660 case "$f" in
24661 *.orig | *.bak | *~) ;;
24662 *) cat "$f" >> "$ac_dir/Makefile" ;;
24663 esac
24665 done
24668 esac
24669 done ;;
24670 bfd_stdint.h )
24671 if test "$GCC" = yes; then
24672 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
24673 else
24674 echo "/* generated for $CC */" > tmp-stdint.h
24677 sed 's/^ *//' >> tmp-stdint.h <<EOF
24679 #ifndef GCC_GENERATED_STDINT_H
24680 #define GCC_GENERATED_STDINT_H 1
24682 #include <sys/types.h>
24685 if test "$acx_cv_header_stdint" != stdint.h; then
24686 echo "#include <stddef.h>" >> tmp-stdint.h
24688 if test "$acx_cv_header_stdint" != stddef.h; then
24689 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
24692 sed 's/^ *//' >> tmp-stdint.h <<EOF
24693 /* glibc uses these symbols as guards to prevent redefinitions. */
24694 #ifdef __int8_t_defined
24695 #define _INT8_T
24696 #define _INT16_T
24697 #define _INT32_T
24698 #endif
24699 #ifdef __uint32_t_defined
24700 #define _UINT32_T
24701 #endif
24705 # ----------------- done header, emit basic int types -------------
24706 if test "$acx_cv_header_stdint" = stddef.h; then
24707 sed 's/^ *//' >> tmp-stdint.h <<EOF
24709 #ifndef _UINT8_T
24710 #define _UINT8_T
24711 #ifndef __uint8_t_defined
24712 #define __uint8_t_defined
24713 typedef unsigned $acx_cv_type_int8_t uint8_t;
24714 #endif
24715 #endif
24717 #ifndef _UINT16_T
24718 #define _UINT16_T
24719 #ifndef __uint16_t_defined
24720 #define __uint16_t_defined
24721 typedef unsigned $acx_cv_type_int16_t uint16_t;
24722 #endif
24723 #endif
24725 #ifndef _UINT32_T
24726 #define _UINT32_T
24727 #ifndef __uint32_t_defined
24728 #define __uint32_t_defined
24729 typedef unsigned $acx_cv_type_int32_t uint32_t;
24730 #endif
24731 #endif
24733 #ifndef _INT8_T
24734 #define _INT8_T
24735 #ifndef __int8_t_defined
24736 #define __int8_t_defined
24737 typedef $acx_cv_type_int8_t int8_t;
24738 #endif
24739 #endif
24741 #ifndef _INT16_T
24742 #define _INT16_T
24743 #ifndef __int16_t_defined
24744 #define __int16_t_defined
24745 typedef $acx_cv_type_int16_t int16_t;
24746 #endif
24747 #endif
24749 #ifndef _INT32_T
24750 #define _INT32_T
24751 #ifndef __int32_t_defined
24752 #define __int32_t_defined
24753 typedef $acx_cv_type_int32_t int32_t;
24754 #endif
24755 #endif
24757 elif test "$ac_cv_type_u_int32_t" = yes; then
24758 sed 's/^ *//' >> tmp-stdint.h <<EOF
24760 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
24761 #ifndef _INT8_T
24762 #define _INT8_T
24763 #endif
24764 #ifndef _INT16_T
24765 #define _INT16_T
24766 #endif
24767 #ifndef _INT32_T
24768 #define _INT32_T
24769 #endif
24771 #ifndef _UINT8_T
24772 #define _UINT8_T
24773 #ifndef __uint8_t_defined
24774 #define __uint8_t_defined
24775 typedef u_int8_t uint8_t;
24776 #endif
24777 #endif
24779 #ifndef _UINT16_T
24780 #define _UINT16_T
24781 #ifndef __uint16_t_defined
24782 #define __uint16_t_defined
24783 typedef u_int16_t uint16_t;
24784 #endif
24785 #endif
24787 #ifndef _UINT32_T
24788 #define _UINT32_T
24789 #ifndef __uint32_t_defined
24790 #define __uint32_t_defined
24791 typedef u_int32_t uint32_t;
24792 #endif
24793 #endif
24795 else
24796 sed 's/^ *//' >> tmp-stdint.h <<EOF
24798 /* Some systems have guard macros to prevent redefinitions, define them. */
24799 #ifndef _INT8_T
24800 #define _INT8_T
24801 #endif
24802 #ifndef _INT16_T
24803 #define _INT16_T
24804 #endif
24805 #ifndef _INT32_T
24806 #define _INT32_T
24807 #endif
24808 #ifndef _UINT8_T
24809 #define _UINT8_T
24810 #endif
24811 #ifndef _UINT16_T
24812 #define _UINT16_T
24813 #endif
24814 #ifndef _UINT32_T
24815 #define _UINT32_T
24816 #endif
24820 # ------------- done basic int types, emit int64_t types ------------
24821 if test "$ac_cv_type_uint64_t" = yes; then
24822 sed 's/^ *//' >> tmp-stdint.h <<EOF
24824 /* system headers have good uint64_t and int64_t */
24825 #ifndef _INT64_T
24826 #define _INT64_T
24827 #endif
24828 #ifndef _UINT64_T
24829 #define _UINT64_T
24830 #endif
24832 elif test "$ac_cv_type_u_int64_t" = yes; then
24833 sed 's/^ *//' >> tmp-stdint.h <<EOF
24835 /* system headers have an u_int64_t (and int64_t) */
24836 #ifndef _INT64_T
24837 #define _INT64_T
24838 #endif
24839 #ifndef _UINT64_T
24840 #define _UINT64_T
24841 #ifndef __uint64_t_defined
24842 #define __uint64_t_defined
24843 typedef u_int64_t uint64_t;
24844 #endif
24845 #endif
24847 elif test -n "$acx_cv_type_int64_t"; then
24848 sed 's/^ *//' >> tmp-stdint.h <<EOF
24850 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
24851 #ifndef _INT64_T
24852 #define _INT64_T
24853 typedef $acx_cv_type_int64_t int64_t;
24854 #endif
24855 #ifndef _UINT64_T
24856 #define _UINT64_T
24857 #ifndef __uint64_t_defined
24858 #define __uint64_t_defined
24859 typedef unsigned $acx_cv_type_int64_t uint64_t;
24860 #endif
24861 #endif
24863 else
24864 sed 's/^ *//' >> tmp-stdint.h <<EOF
24866 /* some common heuristics for int64_t, using compiler-specific tests */
24867 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
24868 #ifndef _INT64_T
24869 #define _INT64_T
24870 #ifndef __int64_t_defined
24871 typedef long long int64_t;
24872 #endif
24873 #endif
24874 #ifndef _UINT64_T
24875 #define _UINT64_T
24876 typedef unsigned long long uint64_t;
24877 #endif
24879 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
24880 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
24881 does not implement __extension__. But that compiler doesn't define
24882 __GNUC_MINOR__. */
24883 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
24884 # define __extension__
24885 # endif
24887 # ifndef _INT64_T
24888 # define _INT64_T
24889 __extension__ typedef long long int64_t;
24890 # endif
24891 # ifndef _UINT64_T
24892 # define _UINT64_T
24893 __extension__ typedef unsigned long long uint64_t;
24894 # endif
24896 #elif !defined __STRICT_ANSI__
24897 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
24899 # ifndef _INT64_T
24900 # define _INT64_T
24901 typedef __int64 int64_t;
24902 # endif
24903 # ifndef _UINT64_T
24904 # define _UINT64_T
24905 typedef unsigned __int64 uint64_t;
24906 # endif
24907 # endif /* compiler */
24909 #endif /* ANSI version */
24913 # ------------- done int64_t types, emit intptr types ------------
24914 if test "$ac_cv_type_uintptr_t" != yes; then
24915 sed 's/^ *//' >> tmp-stdint.h <<EOF
24917 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
24918 #ifndef __uintptr_t_defined
24919 typedef u$acx_cv_type_intptr_t uintptr_t;
24920 #endif
24921 #ifndef __intptr_t_defined
24922 typedef $acx_cv_type_intptr_t intptr_t;
24923 #endif
24927 # ------------- done intptr types, emit int_least types ------------
24928 if test "$ac_cv_type_int_least32_t" != yes; then
24929 sed 's/^ *//' >> tmp-stdint.h <<EOF
24931 /* Define int_least types */
24932 typedef int8_t int_least8_t;
24933 typedef int16_t int_least16_t;
24934 typedef int32_t int_least32_t;
24935 #ifdef _INT64_T
24936 typedef int64_t int_least64_t;
24937 #endif
24939 typedef uint8_t uint_least8_t;
24940 typedef uint16_t uint_least16_t;
24941 typedef uint32_t uint_least32_t;
24942 #ifdef _UINT64_T
24943 typedef uint64_t uint_least64_t;
24944 #endif
24948 # ------------- done intptr types, emit int_fast types ------------
24949 if test "$ac_cv_type_int_fast32_t" != yes; then
24950 sed 's/^ *//' >> tmp-stdint.h <<EOF
24952 /* Define int_fast types. short is often slow */
24953 typedef int8_t int_fast8_t;
24954 typedef int int_fast16_t;
24955 typedef int32_t int_fast32_t;
24956 #ifdef _INT64_T
24957 typedef int64_t int_fast64_t;
24958 #endif
24960 typedef uint8_t uint_fast8_t;
24961 typedef unsigned int uint_fast16_t;
24962 typedef uint32_t uint_fast32_t;
24963 #ifdef _UINT64_T
24964 typedef uint64_t uint_fast64_t;
24965 #endif
24969 if test "$ac_cv_type_uintmax_t" != yes; then
24970 sed 's/^ *//' >> tmp-stdint.h <<EOF
24972 /* Define intmax based on what we found */
24973 #ifdef _INT64_T
24974 typedef int64_t intmax_t;
24975 #else
24976 typedef long intmax_t;
24977 #endif
24978 #ifdef _UINT64_T
24979 typedef uint64_t uintmax_t;
24980 #else
24981 typedef unsigned long uintmax_t;
24982 #endif
24986 sed 's/^ *//' >> tmp-stdint.h <<EOF
24988 #endif /* GCC_GENERATED_STDINT_H */
24991 if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
24992 rm -f tmp-stdint.h
24993 else
24994 mv -f tmp-stdint.h bfd_stdint.h
24998 default )
24999 case "$srcdir" in
25000 .) srcdirpre= ;;
25001 *) srcdirpre='$(srcdir)/' ;;
25002 esac
25003 POFILES=
25004 GMOFILES=
25005 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
25006 if test $lang != dummy; then
25007 POFILES="$POFILES $srcdirpre$lang.po"
25008 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
25010 done
25011 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
25012 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
25013 -e "s,@POFILES@,$POFILES," \
25014 -e "s,@GMOFILES@,$GMOFILES," \
25015 po/Makefile.in > po/Makefile ;;
25016 esac
25017 done
25018 _ACEOF
25020 cat >>$CONFIG_STATUS <<\_ACEOF
25022 { (exit 0); exit 0; }
25023 _ACEOF
25024 chmod +x $CONFIG_STATUS
25025 ac_clean_files=$ac_clean_files_save
25028 # configure is writing to config.log, and then calls config.status.
25029 # config.status does its own redirection, appending to config.log.
25030 # Unfortunately, on DOS this fails, as config.log is still kept open
25031 # by configure, so config.status won't be able to write to it; its
25032 # output is simply discarded. So we exec the FD to /dev/null,
25033 # effectively closing config.log, so it can be properly (re)opened and
25034 # appended to by config.status. When coming back to configure, we
25035 # need to make the FD available again.
25036 if test "$no_create" != yes; then
25037 ac_cs_success=:
25038 ac_config_status_args=
25039 test "$silent" = yes &&
25040 ac_config_status_args="$ac_config_status_args --quiet"
25041 exec 5>/dev/null
25042 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25043 exec 5>>config.log
25044 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25045 # would make configure fail if this is the last instruction.
25046 $ac_cs_success || { (exit 1); exit 1; }