2008-09-08 Tristan Gingold <gingold@adacore.com>
[binutils.git] / bfd / configure
blobf53be91cc1945cfb8af4f7f95cafe42b8b534840
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 lt_ECHO DEBUGDIR PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_64BIT_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT BFD_HOSTPTR_T CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG WIN32LDFLAGS WIN32LIBADD TDEFINES wordsize bfd64_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
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 --enable-static[=PKGS]
1008 build static libraries [default=yes]
1009 --enable-fast-install[=PKGS]
1010 optimize for fast installation [default=yes]
1011 --disable-libtool-lock avoid locking (might break parallel builds)
1012 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1013 --enable-targets alternative target configurations
1014 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
1015 --enable-secureplt Default to creating read-only plt entries
1016 --enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type
1017 --enable-werror treat compile warnings as errors
1018 --enable-build-warnings enable build-time compiler warnings
1019 --enable-maintainer-mode enable make rules and dependencies not useful
1020 (and sometimes confusing) to the casual installer
1021 --enable-install-libbfd controls installation of libbfd and related headers
1022 --disable-nls do not use Native Language Support
1024 Optional Packages:
1025 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1026 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1027 --with-pic try to use only PIC/non-PIC objects [default=use
1028 both]
1029 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1030 --with-mmap try using mmap for BFD input files if available
1031 --with-separate-debug-dir=DIR
1032 Look for global separate debug info in DIR
1033 [default=LIBDIR/debug]
1034 --with-pkgversion=PKG Use PKG in the version string in place of "GNU
1035 Binutils"
1036 --with-bugurl=URL Direct users to URL to report a bug
1038 Some influential environment variables:
1039 CC C compiler command
1040 CFLAGS C compiler flags
1041 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1042 nonstandard directory <lib dir>
1043 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1044 headers in a nonstandard directory <include dir>
1045 CPP C preprocessor
1047 Use these variables to override the choices made by `configure' or to help
1048 it to find libraries and programs with nonstandard names/locations.
1050 _ACEOF
1053 if test "$ac_init_help" = "recursive"; then
1054 # If there are subdirs, report their specific --help.
1055 ac_popdir=`pwd`
1056 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1057 test -d $ac_dir || continue
1058 ac_builddir=.
1060 if test "$ac_dir" != .; then
1061 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1062 # A "../" for each directory in $ac_dir_suffix.
1063 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1064 else
1065 ac_dir_suffix= ac_top_builddir=
1068 case $srcdir in
1069 .) # No --srcdir option. We are building in place.
1070 ac_srcdir=.
1071 if test -z "$ac_top_builddir"; then
1072 ac_top_srcdir=.
1073 else
1074 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1075 fi ;;
1076 [\\/]* | ?:[\\/]* ) # Absolute path.
1077 ac_srcdir=$srcdir$ac_dir_suffix;
1078 ac_top_srcdir=$srcdir ;;
1079 *) # Relative path.
1080 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1081 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1082 esac
1084 # Do not use `cd foo && pwd` to compute absolute paths, because
1085 # the directories may not exist.
1086 case `pwd` in
1087 .) ac_abs_builddir="$ac_dir";;
1089 case "$ac_dir" in
1090 .) ac_abs_builddir=`pwd`;;
1091 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1092 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1093 esac;;
1094 esac
1095 case $ac_abs_builddir in
1096 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1098 case ${ac_top_builddir}. in
1099 .) ac_abs_top_builddir=$ac_abs_builddir;;
1100 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1101 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1102 esac;;
1103 esac
1104 case $ac_abs_builddir in
1105 .) ac_abs_srcdir=$ac_srcdir;;
1107 case $ac_srcdir in
1108 .) ac_abs_srcdir=$ac_abs_builddir;;
1109 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1110 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1111 esac;;
1112 esac
1113 case $ac_abs_builddir in
1114 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1116 case $ac_top_srcdir in
1117 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1118 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1119 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1120 esac;;
1121 esac
1123 cd $ac_dir
1124 # Check for guested configure; otherwise get Cygnus style configure.
1125 if test -f $ac_srcdir/configure.gnu; then
1126 echo
1127 $SHELL $ac_srcdir/configure.gnu --help=recursive
1128 elif test -f $ac_srcdir/configure; then
1129 echo
1130 $SHELL $ac_srcdir/configure --help=recursive
1131 elif test -f $ac_srcdir/configure.ac ||
1132 test -f $ac_srcdir/configure.in; then
1133 echo
1134 $ac_configure --help
1135 else
1136 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1138 cd $ac_popdir
1139 done
1142 test -n "$ac_init_help" && exit 0
1143 if $ac_init_version; then
1144 cat <<\_ACEOF
1146 Copyright (C) 2003 Free Software Foundation, Inc.
1147 This configure script is free software; the Free Software Foundation
1148 gives unlimited permission to copy, distribute and modify it.
1149 _ACEOF
1150 exit 0
1152 exec 5>config.log
1153 cat >&5 <<_ACEOF
1154 This file contains any messages produced by compilers while
1155 running configure, to aid debugging if configure makes a mistake.
1157 It was created by $as_me, which was
1158 generated by GNU Autoconf 2.59. Invocation command line was
1160 $ $0 $@
1162 _ACEOF
1164 cat <<_ASUNAME
1165 ## --------- ##
1166 ## Platform. ##
1167 ## --------- ##
1169 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1170 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1171 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1172 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1173 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1175 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1176 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1178 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1179 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1180 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1181 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1182 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1183 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1184 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1186 _ASUNAME
1188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1189 for as_dir in $PATH
1191 IFS=$as_save_IFS
1192 test -z "$as_dir" && as_dir=.
1193 echo "PATH: $as_dir"
1194 done
1196 } >&5
1198 cat >&5 <<_ACEOF
1201 ## ----------- ##
1202 ## Core tests. ##
1203 ## ----------- ##
1205 _ACEOF
1208 # Keep a trace of the command line.
1209 # Strip out --no-create and --no-recursion so they do not pile up.
1210 # Strip out --silent because we don't want to record it for future runs.
1211 # Also quote any args containing shell meta-characters.
1212 # Make two passes to allow for proper duplicate-argument suppression.
1213 ac_configure_args=
1214 ac_configure_args0=
1215 ac_configure_args1=
1216 ac_sep=
1217 ac_must_keep_next=false
1218 for ac_pass in 1 2
1220 for ac_arg
1222 case $ac_arg in
1223 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1224 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225 | -silent | --silent | --silen | --sile | --sil)
1226 continue ;;
1227 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1228 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1229 esac
1230 case $ac_pass in
1231 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1233 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1234 if test $ac_must_keep_next = true; then
1235 ac_must_keep_next=false # Got value, back to normal.
1236 else
1237 case $ac_arg in
1238 *=* | --config-cache | -C | -disable-* | --disable-* \
1239 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1240 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1241 | -with-* | --with-* | -without-* | --without-* | --x)
1242 case "$ac_configure_args0 " in
1243 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1244 esac
1246 -* ) ac_must_keep_next=true ;;
1247 esac
1249 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1250 # Get rid of the leading space.
1251 ac_sep=" "
1253 esac
1254 done
1255 done
1256 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1257 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1259 # When interrupted or exit'd, cleanup temporary files, and complete
1260 # config.log. We remove comments because anyway the quotes in there
1261 # would cause problems or look ugly.
1262 # WARNING: Be sure not to use single quotes in there, as some shells,
1263 # such as our DU 5.0 friend, will then `close' the trap.
1264 trap 'exit_status=$?
1265 # Save into config.log some information that might help in debugging.
1267 echo
1269 cat <<\_ASBOX
1270 ## ---------------- ##
1271 ## Cache variables. ##
1272 ## ---------------- ##
1273 _ASBOX
1274 echo
1275 # The following way of writing the cache mishandles newlines in values,
1277 (set) 2>&1 |
1278 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1279 *ac_space=\ *)
1280 sed -n \
1281 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1282 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1285 sed -n \
1286 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1288 esac;
1290 echo
1292 cat <<\_ASBOX
1293 ## ----------------- ##
1294 ## Output variables. ##
1295 ## ----------------- ##
1296 _ASBOX
1297 echo
1298 for ac_var in $ac_subst_vars
1300 eval ac_val=$`echo $ac_var`
1301 echo "$ac_var='"'"'$ac_val'"'"'"
1302 done | sort
1303 echo
1305 if test -n "$ac_subst_files"; then
1306 cat <<\_ASBOX
1307 ## ------------- ##
1308 ## Output files. ##
1309 ## ------------- ##
1310 _ASBOX
1311 echo
1312 for ac_var in $ac_subst_files
1314 eval ac_val=$`echo $ac_var`
1315 echo "$ac_var='"'"'$ac_val'"'"'"
1316 done | sort
1317 echo
1320 if test -s confdefs.h; then
1321 cat <<\_ASBOX
1322 ## ----------- ##
1323 ## confdefs.h. ##
1324 ## ----------- ##
1325 _ASBOX
1326 echo
1327 sed "/^$/d" confdefs.h | sort
1328 echo
1330 test "$ac_signal" != 0 &&
1331 echo "$as_me: caught signal $ac_signal"
1332 echo "$as_me: exit $exit_status"
1333 } >&5
1334 rm -f core *.core &&
1335 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1336 exit $exit_status
1338 for ac_signal in 1 2 13 15; do
1339 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1340 done
1341 ac_signal=0
1343 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1344 rm -rf conftest* confdefs.h
1345 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1346 echo >confdefs.h
1348 # Predefined preprocessor variables.
1350 cat >>confdefs.h <<_ACEOF
1351 #define PACKAGE_NAME "$PACKAGE_NAME"
1352 _ACEOF
1355 cat >>confdefs.h <<_ACEOF
1356 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1357 _ACEOF
1360 cat >>confdefs.h <<_ACEOF
1361 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1362 _ACEOF
1365 cat >>confdefs.h <<_ACEOF
1366 #define PACKAGE_STRING "$PACKAGE_STRING"
1367 _ACEOF
1370 cat >>confdefs.h <<_ACEOF
1371 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1372 _ACEOF
1375 # Let the site file select an alternate cache file if it wants to.
1376 # Prefer explicitly selected file to automatically selected ones.
1377 if test -z "$CONFIG_SITE"; then
1378 if test "x$prefix" != xNONE; then
1379 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1380 else
1381 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1384 for ac_site_file in $CONFIG_SITE; do
1385 if test -r "$ac_site_file"; then
1386 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1387 echo "$as_me: loading site script $ac_site_file" >&6;}
1388 sed 's/^/| /' "$ac_site_file" >&5
1389 . "$ac_site_file"
1391 done
1393 if test -r "$cache_file"; then
1394 # Some versions of bash will fail to source /dev/null (special
1395 # files actually), so we avoid doing that.
1396 if test -f "$cache_file"; then
1397 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1398 echo "$as_me: loading cache $cache_file" >&6;}
1399 case $cache_file in
1400 [\\/]* | ?:[\\/]* ) . $cache_file;;
1401 *) . ./$cache_file;;
1402 esac
1404 else
1405 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1406 echo "$as_me: creating cache $cache_file" >&6;}
1407 >$cache_file
1410 # Check that the precious variables saved in the cache have kept the same
1411 # value.
1412 ac_cache_corrupted=false
1413 for ac_var in `(set) 2>&1 |
1414 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1415 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1416 eval ac_new_set=\$ac_env_${ac_var}_set
1417 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1418 eval ac_new_val="\$ac_env_${ac_var}_value"
1419 case $ac_old_set,$ac_new_set in
1420 set,)
1421 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1422 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1423 ac_cache_corrupted=: ;;
1424 ,set)
1425 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1426 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1427 ac_cache_corrupted=: ;;
1428 ,);;
1430 if test "x$ac_old_val" != "x$ac_new_val"; then
1431 # differences in whitespace do not lead to failure.
1432 ac_old_val_w=`echo x $ac_old_val`
1433 ac_new_val_w=`echo x $ac_new_val`
1434 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1435 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1436 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1437 ac_cache_corrupted=:
1438 else
1439 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1440 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1441 eval $ac_var=\$ac_old_val
1443 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1444 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1445 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1446 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1447 fi;;
1448 esac
1449 # Pass precious variables to config.status.
1450 if test "$ac_new_set" = set; then
1451 case $ac_new_val in
1452 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1453 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1454 *) ac_arg=$ac_var=$ac_new_val ;;
1455 esac
1456 case " $ac_configure_args " in
1457 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1458 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1459 esac
1461 done
1462 if $ac_cache_corrupted; then
1463 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1464 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1465 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1466 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1467 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1468 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1469 { (exit 1); exit 1; }; }
1472 ac_ext=c
1473 ac_cpp='$CPP $CPPFLAGS'
1474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1501 ac_aux_dir=
1502 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1503 if test -f $ac_dir/install-sh; then
1504 ac_aux_dir=$ac_dir
1505 ac_install_sh="$ac_aux_dir/install-sh -c"
1506 break
1507 elif test -f $ac_dir/install.sh; then
1508 ac_aux_dir=$ac_dir
1509 ac_install_sh="$ac_aux_dir/install.sh -c"
1510 break
1511 elif test -f $ac_dir/shtool; then
1512 ac_aux_dir=$ac_dir
1513 ac_install_sh="$ac_aux_dir/shtool install -c"
1514 break
1516 done
1517 if test -z "$ac_aux_dir"; then
1518 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1519 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1520 { (exit 1); exit 1; }; }
1522 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1523 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1524 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1526 # Make sure we can run config.sub.
1527 $ac_config_sub sun4 >/dev/null 2>&1 ||
1528 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1529 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1530 { (exit 1); exit 1; }; }
1532 echo "$as_me:$LINENO: checking build system type" >&5
1533 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1534 if test "${ac_cv_build+set}" = set; then
1535 echo $ECHO_N "(cached) $ECHO_C" >&6
1536 else
1537 ac_cv_build_alias=$build_alias
1538 test -z "$ac_cv_build_alias" &&
1539 ac_cv_build_alias=`$ac_config_guess`
1540 test -z "$ac_cv_build_alias" &&
1541 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1542 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1543 { (exit 1); exit 1; }; }
1544 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1545 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1546 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1547 { (exit 1); exit 1; }; }
1550 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1551 echo "${ECHO_T}$ac_cv_build" >&6
1552 build=$ac_cv_build
1553 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1554 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1555 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1558 echo "$as_me:$LINENO: checking host system type" >&5
1559 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1560 if test "${ac_cv_host+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1562 else
1563 ac_cv_host_alias=$host_alias
1564 test -z "$ac_cv_host_alias" &&
1565 ac_cv_host_alias=$ac_cv_build_alias
1566 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1567 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1568 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1569 { (exit 1); exit 1; }; }
1572 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1573 echo "${ECHO_T}$ac_cv_host" >&6
1574 host=$ac_cv_host
1575 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1576 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1577 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1580 echo "$as_me:$LINENO: checking target system type" >&5
1581 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1582 if test "${ac_cv_target+set}" = set; then
1583 echo $ECHO_N "(cached) $ECHO_C" >&6
1584 else
1585 ac_cv_target_alias=$target_alias
1586 test "x$ac_cv_target_alias" = "x" &&
1587 ac_cv_target_alias=$ac_cv_host_alias
1588 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1589 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1590 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1591 { (exit 1); exit 1; }; }
1594 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1595 echo "${ECHO_T}$ac_cv_target" >&6
1596 target=$ac_cv_target
1597 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1598 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1599 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1602 # The aliases save the names the user supplied, while $host etc.
1603 # will get canonicalized.
1604 test -n "$target_alias" &&
1605 test "$program_prefix$program_suffix$program_transform_name" = \
1606 NONENONEs,x,x, &&
1607 program_prefix=${target_alias}-
1608 ac_ext=c
1609 ac_cpp='$CPP $CPPFLAGS'
1610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1613 if test -n "$ac_tool_prefix"; then
1614 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1615 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1616 echo "$as_me:$LINENO: checking for $ac_word" >&5
1617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1618 if test "${ac_cv_prog_CC+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1620 else
1621 if test -n "$CC"; then
1622 ac_cv_prog_CC="$CC" # Let the user override the test.
1623 else
1624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1625 for as_dir in $PATH
1627 IFS=$as_save_IFS
1628 test -z "$as_dir" && as_dir=.
1629 for ac_exec_ext in '' $ac_executable_extensions; do
1630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1631 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1633 break 2
1635 done
1636 done
1640 CC=$ac_cv_prog_CC
1641 if test -n "$CC"; then
1642 echo "$as_me:$LINENO: result: $CC" >&5
1643 echo "${ECHO_T}$CC" >&6
1644 else
1645 echo "$as_me:$LINENO: result: no" >&5
1646 echo "${ECHO_T}no" >&6
1650 if test -z "$ac_cv_prog_CC"; then
1651 ac_ct_CC=$CC
1652 # Extract the first word of "gcc", so it can be a program name with args.
1653 set dummy gcc; ac_word=$2
1654 echo "$as_me:$LINENO: checking for $ac_word" >&5
1655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1656 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1657 echo $ECHO_N "(cached) $ECHO_C" >&6
1658 else
1659 if test -n "$ac_ct_CC"; then
1660 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1661 else
1662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663 for as_dir in $PATH
1665 IFS=$as_save_IFS
1666 test -z "$as_dir" && as_dir=.
1667 for ac_exec_ext in '' $ac_executable_extensions; do
1668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1669 ac_cv_prog_ac_ct_CC="gcc"
1670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1671 break 2
1673 done
1674 done
1678 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1679 if test -n "$ac_ct_CC"; then
1680 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1681 echo "${ECHO_T}$ac_ct_CC" >&6
1682 else
1683 echo "$as_me:$LINENO: result: no" >&5
1684 echo "${ECHO_T}no" >&6
1687 CC=$ac_ct_CC
1688 else
1689 CC="$ac_cv_prog_CC"
1692 if test -z "$CC"; then
1693 if test -n "$ac_tool_prefix"; then
1694 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1695 set dummy ${ac_tool_prefix}cc; ac_word=$2
1696 echo "$as_me:$LINENO: checking for $ac_word" >&5
1697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698 if test "${ac_cv_prog_CC+set}" = set; then
1699 echo $ECHO_N "(cached) $ECHO_C" >&6
1700 else
1701 if test -n "$CC"; then
1702 ac_cv_prog_CC="$CC" # Let the user override the test.
1703 else
1704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705 for as_dir in $PATH
1707 IFS=$as_save_IFS
1708 test -z "$as_dir" && as_dir=.
1709 for ac_exec_ext in '' $ac_executable_extensions; do
1710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711 ac_cv_prog_CC="${ac_tool_prefix}cc"
1712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713 break 2
1715 done
1716 done
1720 CC=$ac_cv_prog_CC
1721 if test -n "$CC"; then
1722 echo "$as_me:$LINENO: result: $CC" >&5
1723 echo "${ECHO_T}$CC" >&6
1724 else
1725 echo "$as_me:$LINENO: result: no" >&5
1726 echo "${ECHO_T}no" >&6
1730 if test -z "$ac_cv_prog_CC"; then
1731 ac_ct_CC=$CC
1732 # Extract the first word of "cc", so it can be a program name with args.
1733 set dummy cc; ac_word=$2
1734 echo "$as_me:$LINENO: checking for $ac_word" >&5
1735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1736 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1737 echo $ECHO_N "(cached) $ECHO_C" >&6
1738 else
1739 if test -n "$ac_ct_CC"; then
1740 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1741 else
1742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1743 for as_dir in $PATH
1745 IFS=$as_save_IFS
1746 test -z "$as_dir" && as_dir=.
1747 for ac_exec_ext in '' $ac_executable_extensions; do
1748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1749 ac_cv_prog_ac_ct_CC="cc"
1750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1751 break 2
1753 done
1754 done
1758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1759 if test -n "$ac_ct_CC"; then
1760 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1761 echo "${ECHO_T}$ac_ct_CC" >&6
1762 else
1763 echo "$as_me:$LINENO: result: no" >&5
1764 echo "${ECHO_T}no" >&6
1767 CC=$ac_ct_CC
1768 else
1769 CC="$ac_cv_prog_CC"
1773 if test -z "$CC"; then
1774 # Extract the first word of "cc", so it can be a program name with args.
1775 set dummy cc; ac_word=$2
1776 echo "$as_me:$LINENO: checking for $ac_word" >&5
1777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1778 if test "${ac_cv_prog_CC+set}" = set; then
1779 echo $ECHO_N "(cached) $ECHO_C" >&6
1780 else
1781 if test -n "$CC"; then
1782 ac_cv_prog_CC="$CC" # Let the user override the test.
1783 else
1784 ac_prog_rejected=no
1785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1786 for as_dir in $PATH
1788 IFS=$as_save_IFS
1789 test -z "$as_dir" && as_dir=.
1790 for ac_exec_ext in '' $ac_executable_extensions; do
1791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1792 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1793 ac_prog_rejected=yes
1794 continue
1796 ac_cv_prog_CC="cc"
1797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1798 break 2
1800 done
1801 done
1803 if test $ac_prog_rejected = yes; then
1804 # We found a bogon in the path, so make sure we never use it.
1805 set dummy $ac_cv_prog_CC
1806 shift
1807 if test $# != 0; then
1808 # We chose a different compiler from the bogus one.
1809 # However, it has the same basename, so the bogon will be chosen
1810 # first if we set CC to just the basename; use the full file name.
1811 shift
1812 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1817 CC=$ac_cv_prog_CC
1818 if test -n "$CC"; then
1819 echo "$as_me:$LINENO: result: $CC" >&5
1820 echo "${ECHO_T}$CC" >&6
1821 else
1822 echo "$as_me:$LINENO: result: no" >&5
1823 echo "${ECHO_T}no" >&6
1827 if test -z "$CC"; then
1828 if test -n "$ac_tool_prefix"; then
1829 for ac_prog in cl
1831 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1832 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1833 echo "$as_me:$LINENO: checking for $ac_word" >&5
1834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1835 if test "${ac_cv_prog_CC+set}" = set; then
1836 echo $ECHO_N "(cached) $ECHO_C" >&6
1837 else
1838 if test -n "$CC"; then
1839 ac_cv_prog_CC="$CC" # Let the user override the test.
1840 else
1841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1842 for as_dir in $PATH
1844 IFS=$as_save_IFS
1845 test -z "$as_dir" && as_dir=.
1846 for ac_exec_ext in '' $ac_executable_extensions; do
1847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1848 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1850 break 2
1852 done
1853 done
1857 CC=$ac_cv_prog_CC
1858 if test -n "$CC"; then
1859 echo "$as_me:$LINENO: result: $CC" >&5
1860 echo "${ECHO_T}$CC" >&6
1861 else
1862 echo "$as_me:$LINENO: result: no" >&5
1863 echo "${ECHO_T}no" >&6
1866 test -n "$CC" && break
1867 done
1869 if test -z "$CC"; then
1870 ac_ct_CC=$CC
1871 for ac_prog in cl
1873 # Extract the first word of "$ac_prog", so it can be a program name with args.
1874 set dummy $ac_prog; ac_word=$2
1875 echo "$as_me:$LINENO: checking for $ac_word" >&5
1876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1877 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1878 echo $ECHO_N "(cached) $ECHO_C" >&6
1879 else
1880 if test -n "$ac_ct_CC"; then
1881 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1882 else
1883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1884 for as_dir in $PATH
1886 IFS=$as_save_IFS
1887 test -z "$as_dir" && as_dir=.
1888 for ac_exec_ext in '' $ac_executable_extensions; do
1889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1890 ac_cv_prog_ac_ct_CC="$ac_prog"
1891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1892 break 2
1894 done
1895 done
1899 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1900 if test -n "$ac_ct_CC"; then
1901 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1902 echo "${ECHO_T}$ac_ct_CC" >&6
1903 else
1904 echo "$as_me:$LINENO: result: no" >&5
1905 echo "${ECHO_T}no" >&6
1908 test -n "$ac_ct_CC" && break
1909 done
1911 CC=$ac_ct_CC
1917 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1918 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1919 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1920 See \`config.log' for more details." >&5
1921 echo "$as_me: error: no acceptable C compiler found in \$PATH
1922 See \`config.log' for more details." >&2;}
1923 { (exit 1); exit 1; }; }; }
1925 # Provide some information about the compiler.
1926 echo "$as_me:$LINENO:" \
1927 "checking for C compiler version" >&5
1928 ac_compiler=`set X $ac_compile; echo $2`
1929 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1930 (eval $ac_compiler --version </dev/null >&5) 2>&5
1931 ac_status=$?
1932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1933 (exit $ac_status); }
1934 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1935 (eval $ac_compiler -v </dev/null >&5) 2>&5
1936 ac_status=$?
1937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938 (exit $ac_status); }
1939 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1940 (eval $ac_compiler -V </dev/null >&5) 2>&5
1941 ac_status=$?
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); }
1945 cat >conftest.$ac_ext <<_ACEOF
1946 /* confdefs.h. */
1947 _ACEOF
1948 cat confdefs.h >>conftest.$ac_ext
1949 cat >>conftest.$ac_ext <<_ACEOF
1950 /* end confdefs.h. */
1953 main ()
1957 return 0;
1959 _ACEOF
1960 ac_clean_files_save=$ac_clean_files
1961 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1962 # Try to create an executable without -o first, disregard a.out.
1963 # It will help us diagnose broken compilers, and finding out an intuition
1964 # of exeext.
1965 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1966 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1967 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1968 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1969 (eval $ac_link_default) 2>&5
1970 ac_status=$?
1971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972 (exit $ac_status); }; then
1973 # Find the output, starting from the most likely. This scheme is
1974 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1975 # resort.
1977 # Be careful to initialize this variable, since it used to be cached.
1978 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1979 ac_cv_exeext=
1980 # b.out is created by i960 compilers.
1981 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1983 test -f "$ac_file" || continue
1984 case $ac_file in
1985 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1987 conftest.$ac_ext )
1988 # This is the source file.
1990 [ab].out )
1991 # We found the default executable, but exeext='' is most
1992 # certainly right.
1993 break;;
1994 *.* )
1995 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1996 # FIXME: I believe we export ac_cv_exeext for Libtool,
1997 # but it would be cool to find out if it's true. Does anybody
1998 # maintain Libtool? --akim.
1999 export ac_cv_exeext
2000 break;;
2002 break;;
2003 esac
2004 done
2005 else
2006 echo "$as_me: failed program was:" >&5
2007 sed 's/^/| /' conftest.$ac_ext >&5
2009 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2010 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2011 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2012 See \`config.log' for more details." >&5
2013 echo "$as_me: error: C compiler cannot create executables
2014 See \`config.log' for more details." >&2;}
2015 { (exit 77); exit 77; }; }; }
2018 ac_exeext=$ac_cv_exeext
2019 echo "$as_me:$LINENO: result: $ac_file" >&5
2020 echo "${ECHO_T}$ac_file" >&6
2022 # Check the compiler produces executables we can run. If not, either
2023 # the compiler is broken, or we cross compile.
2024 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2025 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2026 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2027 # If not cross compiling, check that we can run a simple program.
2028 if test "$cross_compiling" != yes; then
2029 if { ac_try='./$ac_file'
2030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2031 (eval $ac_try) 2>&5
2032 ac_status=$?
2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034 (exit $ac_status); }; }; then
2035 cross_compiling=no
2036 else
2037 if test "$cross_compiling" = maybe; then
2038 cross_compiling=yes
2039 else
2040 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2041 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2042 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2043 If you meant to cross compile, use \`--host'.
2044 See \`config.log' for more details." >&5
2045 echo "$as_me: error: cannot run C compiled programs.
2046 If you meant to cross compile, use \`--host'.
2047 See \`config.log' for more details." >&2;}
2048 { (exit 1); exit 1; }; }; }
2052 echo "$as_me:$LINENO: result: yes" >&5
2053 echo "${ECHO_T}yes" >&6
2055 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2056 ac_clean_files=$ac_clean_files_save
2057 # Check the compiler produces executables we can run. If not, either
2058 # the compiler is broken, or we cross compile.
2059 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2060 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2061 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2062 echo "${ECHO_T}$cross_compiling" >&6
2064 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2065 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2067 (eval $ac_link) 2>&5
2068 ac_status=$?
2069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070 (exit $ac_status); }; then
2071 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2072 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2073 # work properly (i.e., refer to `conftest.exe'), while it won't with
2074 # `rm'.
2075 for ac_file in conftest.exe conftest conftest.*; do
2076 test -f "$ac_file" || continue
2077 case $ac_file in
2078 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2079 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2080 export ac_cv_exeext
2081 break;;
2082 * ) break;;
2083 esac
2084 done
2085 else
2086 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2087 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2088 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2089 See \`config.log' for more details." >&5
2090 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2091 See \`config.log' for more details." >&2;}
2092 { (exit 1); exit 1; }; }; }
2095 rm -f conftest$ac_cv_exeext
2096 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2097 echo "${ECHO_T}$ac_cv_exeext" >&6
2099 rm -f conftest.$ac_ext
2100 EXEEXT=$ac_cv_exeext
2101 ac_exeext=$EXEEXT
2102 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2103 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2104 if test "${ac_cv_objext+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2106 else
2107 cat >conftest.$ac_ext <<_ACEOF
2108 /* confdefs.h. */
2109 _ACEOF
2110 cat confdefs.h >>conftest.$ac_ext
2111 cat >>conftest.$ac_ext <<_ACEOF
2112 /* end confdefs.h. */
2115 main ()
2119 return 0;
2121 _ACEOF
2122 rm -f conftest.o conftest.obj
2123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2124 (eval $ac_compile) 2>&5
2125 ac_status=$?
2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127 (exit $ac_status); }; then
2128 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2129 case $ac_file in
2130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2131 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2132 break;;
2133 esac
2134 done
2135 else
2136 echo "$as_me: failed program was:" >&5
2137 sed 's/^/| /' conftest.$ac_ext >&5
2139 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2140 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2141 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2142 See \`config.log' for more details." >&5
2143 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2144 See \`config.log' for more details." >&2;}
2145 { (exit 1); exit 1; }; }; }
2148 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2150 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2151 echo "${ECHO_T}$ac_cv_objext" >&6
2152 OBJEXT=$ac_cv_objext
2153 ac_objext=$OBJEXT
2154 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2155 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2156 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2157 echo $ECHO_N "(cached) $ECHO_C" >&6
2158 else
2159 cat >conftest.$ac_ext <<_ACEOF
2160 /* confdefs.h. */
2161 _ACEOF
2162 cat confdefs.h >>conftest.$ac_ext
2163 cat >>conftest.$ac_ext <<_ACEOF
2164 /* end confdefs.h. */
2167 main ()
2169 #ifndef __GNUC__
2170 choke me
2171 #endif
2174 return 0;
2176 _ACEOF
2177 rm -f conftest.$ac_objext
2178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2179 (eval $ac_compile) 2>conftest.er1
2180 ac_status=$?
2181 grep -v '^ *+' conftest.er1 >conftest.err
2182 rm -f conftest.er1
2183 cat conftest.err >&5
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); } &&
2186 { ac_try='test -z "$ac_c_werror_flag"
2187 || test ! -s conftest.err'
2188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2189 (eval $ac_try) 2>&5
2190 ac_status=$?
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 (exit $ac_status); }; } &&
2193 { ac_try='test -s conftest.$ac_objext'
2194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2195 (eval $ac_try) 2>&5
2196 ac_status=$?
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); }; }; then
2199 ac_compiler_gnu=yes
2200 else
2201 echo "$as_me: failed program was:" >&5
2202 sed 's/^/| /' conftest.$ac_ext >&5
2204 ac_compiler_gnu=no
2206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2207 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2210 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2211 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2212 GCC=`test $ac_compiler_gnu = yes && echo yes`
2213 ac_test_CFLAGS=${CFLAGS+set}
2214 ac_save_CFLAGS=$CFLAGS
2215 CFLAGS="-g"
2216 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2217 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2218 if test "${ac_cv_prog_cc_g+set}" = set; then
2219 echo $ECHO_N "(cached) $ECHO_C" >&6
2220 else
2221 cat >conftest.$ac_ext <<_ACEOF
2222 /* confdefs.h. */
2223 _ACEOF
2224 cat confdefs.h >>conftest.$ac_ext
2225 cat >>conftest.$ac_ext <<_ACEOF
2226 /* end confdefs.h. */
2229 main ()
2233 return 0;
2235 _ACEOF
2236 rm -f conftest.$ac_objext
2237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2238 (eval $ac_compile) 2>conftest.er1
2239 ac_status=$?
2240 grep -v '^ *+' conftest.er1 >conftest.err
2241 rm -f conftest.er1
2242 cat conftest.err >&5
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); } &&
2245 { ac_try='test -z "$ac_c_werror_flag"
2246 || test ! -s conftest.err'
2247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2248 (eval $ac_try) 2>&5
2249 ac_status=$?
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); }; } &&
2252 { ac_try='test -s conftest.$ac_objext'
2253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2254 (eval $ac_try) 2>&5
2255 ac_status=$?
2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257 (exit $ac_status); }; }; then
2258 ac_cv_prog_cc_g=yes
2259 else
2260 echo "$as_me: failed program was:" >&5
2261 sed 's/^/| /' conftest.$ac_ext >&5
2263 ac_cv_prog_cc_g=no
2265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2267 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2268 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2269 if test "$ac_test_CFLAGS" = set; then
2270 CFLAGS=$ac_save_CFLAGS
2271 elif test $ac_cv_prog_cc_g = yes; then
2272 if test "$GCC" = yes; then
2273 CFLAGS="-g -O2"
2274 else
2275 CFLAGS="-g"
2277 else
2278 if test "$GCC" = yes; then
2279 CFLAGS="-O2"
2280 else
2281 CFLAGS=
2284 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2285 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2286 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
2288 else
2289 ac_cv_prog_cc_stdc=no
2290 ac_save_CC=$CC
2291 cat >conftest.$ac_ext <<_ACEOF
2292 /* confdefs.h. */
2293 _ACEOF
2294 cat confdefs.h >>conftest.$ac_ext
2295 cat >>conftest.$ac_ext <<_ACEOF
2296 /* end confdefs.h. */
2297 #include <stdarg.h>
2298 #include <stdio.h>
2299 #include <sys/types.h>
2300 #include <sys/stat.h>
2301 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2302 struct buf { int x; };
2303 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2304 static char *e (p, i)
2305 char **p;
2306 int i;
2308 return p[i];
2310 static char *f (char * (*g) (char **, int), char **p, ...)
2312 char *s;
2313 va_list v;
2314 va_start (v,p);
2315 s = g (p, va_arg (v,int));
2316 va_end (v);
2317 return s;
2320 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2321 function prototypes and stuff, but not '\xHH' hex character constants.
2322 These don't provoke an error unfortunately, instead are silently treated
2323 as 'x'. The following induces an error, until -std1 is added to get
2324 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2325 array size at least. It's necessary to write '\x00'==0 to get something
2326 that's true only with -std1. */
2327 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2329 int test (int i, double x);
2330 struct s1 {int (*f) (int a);};
2331 struct s2 {int (*f) (double a);};
2332 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2333 int argc;
2334 char **argv;
2336 main ()
2338 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2340 return 0;
2342 _ACEOF
2343 # Don't try gcc -ansi; that turns off useful extensions and
2344 # breaks some systems' header files.
2345 # AIX -qlanglvl=ansi
2346 # Ultrix and OSF/1 -std1
2347 # HP-UX 10.20 and later -Ae
2348 # HP-UX older versions -Aa -D_HPUX_SOURCE
2349 # SVR4 -Xc -D__EXTENSIONS__
2350 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2352 CC="$ac_save_CC $ac_arg"
2353 rm -f conftest.$ac_objext
2354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2355 (eval $ac_compile) 2>conftest.er1
2356 ac_status=$?
2357 grep -v '^ *+' conftest.er1 >conftest.err
2358 rm -f conftest.er1
2359 cat conftest.err >&5
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); } &&
2362 { ac_try='test -z "$ac_c_werror_flag"
2363 || test ! -s conftest.err'
2364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365 (eval $ac_try) 2>&5
2366 ac_status=$?
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }; } &&
2369 { ac_try='test -s conftest.$ac_objext'
2370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371 (eval $ac_try) 2>&5
2372 ac_status=$?
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); }; }; then
2375 ac_cv_prog_cc_stdc=$ac_arg
2376 break
2377 else
2378 echo "$as_me: failed program was:" >&5
2379 sed 's/^/| /' conftest.$ac_ext >&5
2382 rm -f conftest.err conftest.$ac_objext
2383 done
2384 rm -f conftest.$ac_ext conftest.$ac_objext
2385 CC=$ac_save_CC
2389 case "x$ac_cv_prog_cc_stdc" in
2390 x|xno)
2391 echo "$as_me:$LINENO: result: none needed" >&5
2392 echo "${ECHO_T}none needed" >&6 ;;
2394 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2395 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2396 CC="$CC $ac_cv_prog_cc_stdc" ;;
2397 esac
2399 # Some people use a C++ compiler to compile C. Since we use `exit',
2400 # in C++ we need to declare it. In case someone uses the same compiler
2401 # for both compiling C and C++ we need to have the C++ compiler decide
2402 # the declaration of exit, since it's the most demanding environment.
2403 cat >conftest.$ac_ext <<_ACEOF
2404 #ifndef __cplusplus
2405 choke me
2406 #endif
2407 _ACEOF
2408 rm -f conftest.$ac_objext
2409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2410 (eval $ac_compile) 2>conftest.er1
2411 ac_status=$?
2412 grep -v '^ *+' conftest.er1 >conftest.err
2413 rm -f conftest.er1
2414 cat conftest.err >&5
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); } &&
2417 { ac_try='test -z "$ac_c_werror_flag"
2418 || test ! -s conftest.err'
2419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420 (eval $ac_try) 2>&5
2421 ac_status=$?
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }; } &&
2424 { ac_try='test -s conftest.$ac_objext'
2425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426 (eval $ac_try) 2>&5
2427 ac_status=$?
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }; }; then
2430 for ac_declaration in \
2431 '' \
2432 'extern "C" void std::exit (int) throw (); using std::exit;' \
2433 'extern "C" void std::exit (int); using std::exit;' \
2434 'extern "C" void exit (int) throw ();' \
2435 'extern "C" void exit (int);' \
2436 'void exit (int);'
2438 cat >conftest.$ac_ext <<_ACEOF
2439 /* confdefs.h. */
2440 _ACEOF
2441 cat confdefs.h >>conftest.$ac_ext
2442 cat >>conftest.$ac_ext <<_ACEOF
2443 /* end confdefs.h. */
2444 $ac_declaration
2445 #include <stdlib.h>
2447 main ()
2449 exit (42);
2451 return 0;
2453 _ACEOF
2454 rm -f conftest.$ac_objext
2455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2456 (eval $ac_compile) 2>conftest.er1
2457 ac_status=$?
2458 grep -v '^ *+' conftest.er1 >conftest.err
2459 rm -f conftest.er1
2460 cat conftest.err >&5
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); } &&
2463 { ac_try='test -z "$ac_c_werror_flag"
2464 || test ! -s conftest.err'
2465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466 (eval $ac_try) 2>&5
2467 ac_status=$?
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; } &&
2470 { ac_try='test -s conftest.$ac_objext'
2471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472 (eval $ac_try) 2>&5
2473 ac_status=$?
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); }; }; then
2477 else
2478 echo "$as_me: failed program was:" >&5
2479 sed 's/^/| /' conftest.$ac_ext >&5
2481 continue
2483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2484 cat >conftest.$ac_ext <<_ACEOF
2485 /* confdefs.h. */
2486 _ACEOF
2487 cat confdefs.h >>conftest.$ac_ext
2488 cat >>conftest.$ac_ext <<_ACEOF
2489 /* end confdefs.h. */
2490 $ac_declaration
2492 main ()
2494 exit (42);
2496 return 0;
2498 _ACEOF
2499 rm -f conftest.$ac_objext
2500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2501 (eval $ac_compile) 2>conftest.er1
2502 ac_status=$?
2503 grep -v '^ *+' conftest.er1 >conftest.err
2504 rm -f conftest.er1
2505 cat conftest.err >&5
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); } &&
2508 { ac_try='test -z "$ac_c_werror_flag"
2509 || test ! -s conftest.err'
2510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511 (eval $ac_try) 2>&5
2512 ac_status=$?
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; } &&
2515 { ac_try='test -s conftest.$ac_objext'
2516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517 (eval $ac_try) 2>&5
2518 ac_status=$?
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }; }; then
2521 break
2522 else
2523 echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2528 done
2529 rm -f conftest*
2530 if test -n "$ac_declaration"; then
2531 echo '#ifdef __cplusplus' >>confdefs.h
2532 echo $ac_declaration >>confdefs.h
2533 echo '#endif' >>confdefs.h
2536 else
2537 echo "$as_me: failed program was:" >&5
2538 sed 's/^/| /' conftest.$ac_ext >&5
2541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2542 ac_ext=c
2543 ac_cpp='$CPP $CPPFLAGS'
2544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2549 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2550 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2551 if test "${ac_cv_search_strerror+set}" = set; then
2552 echo $ECHO_N "(cached) $ECHO_C" >&6
2553 else
2554 ac_func_search_save_LIBS=$LIBS
2555 ac_cv_search_strerror=no
2556 cat >conftest.$ac_ext <<_ACEOF
2557 /* confdefs.h. */
2558 _ACEOF
2559 cat confdefs.h >>conftest.$ac_ext
2560 cat >>conftest.$ac_ext <<_ACEOF
2561 /* end confdefs.h. */
2563 /* Override any gcc2 internal prototype to avoid an error. */
2564 #ifdef __cplusplus
2565 extern "C"
2566 #endif
2567 /* We use char because int might match the return type of a gcc2
2568 builtin and then its argument prototype would still apply. */
2569 char strerror ();
2571 main ()
2573 strerror ();
2575 return 0;
2577 _ACEOF
2578 rm -f conftest.$ac_objext conftest$ac_exeext
2579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2580 (eval $ac_link) 2>conftest.er1
2581 ac_status=$?
2582 grep -v '^ *+' conftest.er1 >conftest.err
2583 rm -f conftest.er1
2584 cat conftest.err >&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); } &&
2587 { ac_try='test -z "$ac_c_werror_flag"
2588 || test ! -s conftest.err'
2589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590 (eval $ac_try) 2>&5
2591 ac_status=$?
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; } &&
2594 { ac_try='test -s conftest$ac_exeext'
2595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596 (eval $ac_try) 2>&5
2597 ac_status=$?
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; }; then
2600 ac_cv_search_strerror="none required"
2601 else
2602 echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2606 rm -f conftest.err conftest.$ac_objext \
2607 conftest$ac_exeext conftest.$ac_ext
2608 if test "$ac_cv_search_strerror" = no; then
2609 for ac_lib in cposix; do
2610 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2611 cat >conftest.$ac_ext <<_ACEOF
2612 /* confdefs.h. */
2613 _ACEOF
2614 cat confdefs.h >>conftest.$ac_ext
2615 cat >>conftest.$ac_ext <<_ACEOF
2616 /* end confdefs.h. */
2618 /* Override any gcc2 internal prototype to avoid an error. */
2619 #ifdef __cplusplus
2620 extern "C"
2621 #endif
2622 /* We use char because int might match the return type of a gcc2
2623 builtin and then its argument prototype would still apply. */
2624 char strerror ();
2626 main ()
2628 strerror ();
2630 return 0;
2632 _ACEOF
2633 rm -f conftest.$ac_objext conftest$ac_exeext
2634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2635 (eval $ac_link) 2>conftest.er1
2636 ac_status=$?
2637 grep -v '^ *+' conftest.er1 >conftest.err
2638 rm -f conftest.er1
2639 cat conftest.err >&5
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); } &&
2642 { ac_try='test -z "$ac_c_werror_flag"
2643 || test ! -s conftest.err'
2644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645 (eval $ac_try) 2>&5
2646 ac_status=$?
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; } &&
2649 { ac_try='test -s conftest$ac_exeext'
2650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651 (eval $ac_try) 2>&5
2652 ac_status=$?
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); }; }; then
2655 ac_cv_search_strerror="-l$ac_lib"
2656 break
2657 else
2658 echo "$as_me: failed program was:" >&5
2659 sed 's/^/| /' conftest.$ac_ext >&5
2662 rm -f conftest.err conftest.$ac_objext \
2663 conftest$ac_exeext conftest.$ac_ext
2664 done
2666 LIBS=$ac_func_search_save_LIBS
2668 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2669 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2670 if test "$ac_cv_search_strerror" != no; then
2671 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2676 am__api_version="1.9"
2677 # Find a good install program. We prefer a C program (faster),
2678 # so one script is as good as another. But avoid the broken or
2679 # incompatible versions:
2680 # SysV /etc/install, /usr/sbin/install
2681 # SunOS /usr/etc/install
2682 # IRIX /sbin/install
2683 # AIX /bin/install
2684 # AmigaOS /C/install, which installs bootblocks on floppy discs
2685 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2686 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2687 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2688 # OS/2's system install, which has a completely different semantic
2689 # ./install, which can be erroneously created by make from ./install.sh.
2690 # Reject install programs that cannot install multiple files.
2691 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2692 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2693 if test -z "$INSTALL"; then
2694 if test "${ac_cv_path_install+set}" = set; then
2695 echo $ECHO_N "(cached) $ECHO_C" >&6
2696 else
2697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698 for as_dir in $PATH
2700 IFS=$as_save_IFS
2701 test -z "$as_dir" && as_dir=.
2702 # Account for people who put trailing slashes in PATH elements.
2703 case $as_dir/ in
2704 ./ | .// | /cC/* | \
2705 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2706 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2707 /usr/ucb/* ) ;;
2709 # OSF1 and SCO ODT 3.0 have their own names for install.
2710 # Don't use installbsd from OSF since it installs stuff as root
2711 # by default.
2712 for ac_prog in ginstall scoinst install; do
2713 for ac_exec_ext in '' $ac_executable_extensions; do
2714 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2715 if test $ac_prog = install &&
2716 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2717 # AIX install. It has an incompatible calling convention.
2719 elif test $ac_prog = install &&
2720 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2721 # program-specific install script used by HP pwplus--don't use.
2723 else
2724 rm -rf conftest.one conftest.two conftest.dir
2725 echo one > conftest.one
2726 echo two > conftest.two
2727 mkdir conftest.dir
2728 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2729 test -s conftest.one && test -s conftest.two &&
2730 test -s conftest.dir/conftest.one &&
2731 test -s conftest.dir/conftest.two
2732 then
2733 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2734 break 3
2738 done
2739 done
2741 esac
2742 done
2744 rm -rf conftest.one conftest.two conftest.dir
2747 if test "${ac_cv_path_install+set}" = set; then
2748 INSTALL=$ac_cv_path_install
2749 else
2750 # As a last resort, use the slow shell script. Don't cache a
2751 # value for INSTALL within a source directory, because that will
2752 # break other packages using the cache if that directory is
2753 # removed, or if the value is a relative name.
2754 INSTALL=$ac_install_sh
2757 echo "$as_me:$LINENO: result: $INSTALL" >&5
2758 echo "${ECHO_T}$INSTALL" >&6
2760 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2761 # It thinks the first close brace ends the variable substitution.
2762 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2764 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2766 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2768 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2769 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2770 # Just in case
2771 sleep 1
2772 echo timestamp > conftest.file
2773 # Do `set' in a subshell so we don't clobber the current shell's
2774 # arguments. Must try -L first in case configure is actually a
2775 # symlink; some systems play weird games with the mod time of symlinks
2776 # (eg FreeBSD returns the mod time of the symlink's containing
2777 # directory).
2778 if (
2779 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2780 if test "$*" = "X"; then
2781 # -L didn't work.
2782 set X `ls -t $srcdir/configure conftest.file`
2784 rm -f conftest.file
2785 if test "$*" != "X $srcdir/configure conftest.file" \
2786 && test "$*" != "X conftest.file $srcdir/configure"; then
2788 # If neither matched, then we have a broken ls. This can happen
2789 # if, for instance, CONFIG_SHELL is bash and it inherits a
2790 # broken ls alias from the environment. This has actually
2791 # happened. Such a system could not be considered "sane".
2792 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2793 alias in your environment" >&5
2794 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2795 alias in your environment" >&2;}
2796 { (exit 1); exit 1; }; }
2799 test "$2" = conftest.file
2801 then
2802 # Ok.
2804 else
2805 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2806 Check your system clock" >&5
2807 echo "$as_me: error: newly created file is older than distributed files!
2808 Check your system clock" >&2;}
2809 { (exit 1); exit 1; }; }
2811 echo "$as_me:$LINENO: result: yes" >&5
2812 echo "${ECHO_T}yes" >&6
2813 test "$program_prefix" != NONE &&
2814 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2815 # Use a double $ so make ignores it.
2816 test "$program_suffix" != NONE &&
2817 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2818 # Double any \ or $. echo might interpret backslashes.
2819 # By default was `s,x,x', remove it if useless.
2820 cat <<\_ACEOF >conftest.sed
2821 s/[\\$]/&&/g;s/;s,x,x,$//
2822 _ACEOF
2823 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2824 rm conftest.sed
2826 # expand $ac_aux_dir to an absolute path
2827 am_aux_dir=`cd $ac_aux_dir && pwd`
2829 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2830 # Use eval to expand $SHELL
2831 if eval "$MISSING --run true"; then
2832 am_missing_run="$MISSING --run "
2833 else
2834 am_missing_run=
2835 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2836 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2839 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2840 # We used to keeping the `.' as first argument, in order to
2841 # allow $(mkdir_p) to be used without argument. As in
2842 # $(mkdir_p) $(somedir)
2843 # where $(somedir) is conditionally defined. However this is wrong
2844 # for two reasons:
2845 # 1. if the package is installed by a user who cannot write `.'
2846 # make install will fail,
2847 # 2. the above comment should most certainly read
2848 # $(mkdir_p) $(DESTDIR)$(somedir)
2849 # so it does not work when $(somedir) is undefined and
2850 # $(DESTDIR) is not.
2851 # To support the latter case, we have to write
2852 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2853 # so the `.' trick is pointless.
2854 mkdir_p='mkdir -p --'
2855 else
2856 # On NextStep and OpenStep, the `mkdir' command does not
2857 # recognize any option. It will interpret all options as
2858 # directories to create, and then abort because `.' already
2859 # exists.
2860 for d in ./-p ./--version;
2862 test -d $d && rmdir $d
2863 done
2864 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2865 if test -f "$ac_aux_dir/mkinstalldirs"; then
2866 mkdir_p='$(mkinstalldirs)'
2867 else
2868 mkdir_p='$(install_sh) -d'
2872 for ac_prog in gawk mawk nawk awk
2874 # Extract the first word of "$ac_prog", so it can be a program name with args.
2875 set dummy $ac_prog; ac_word=$2
2876 echo "$as_me:$LINENO: checking for $ac_word" >&5
2877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2878 if test "${ac_cv_prog_AWK+set}" = set; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2880 else
2881 if test -n "$AWK"; then
2882 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2883 else
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 for as_dir in $PATH
2887 IFS=$as_save_IFS
2888 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2891 ac_cv_prog_AWK="$ac_prog"
2892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2893 break 2
2895 done
2896 done
2900 AWK=$ac_cv_prog_AWK
2901 if test -n "$AWK"; then
2902 echo "$as_me:$LINENO: result: $AWK" >&5
2903 echo "${ECHO_T}$AWK" >&6
2904 else
2905 echo "$as_me:$LINENO: result: no" >&5
2906 echo "${ECHO_T}no" >&6
2909 test -n "$AWK" && break
2910 done
2912 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2913 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2914 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2915 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2916 echo $ECHO_N "(cached) $ECHO_C" >&6
2917 else
2918 cat >conftest.make <<\_ACEOF
2919 all:
2920 @echo 'ac_maketemp="$(MAKE)"'
2921 _ACEOF
2922 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2923 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2924 if test -n "$ac_maketemp"; then
2925 eval ac_cv_prog_make_${ac_make}_set=yes
2926 else
2927 eval ac_cv_prog_make_${ac_make}_set=no
2929 rm -f conftest.make
2931 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2932 echo "$as_me:$LINENO: result: yes" >&5
2933 echo "${ECHO_T}yes" >&6
2934 SET_MAKE=
2935 else
2936 echo "$as_me:$LINENO: result: no" >&5
2937 echo "${ECHO_T}no" >&6
2938 SET_MAKE="MAKE=${MAKE-make}"
2941 rm -rf .tst 2>/dev/null
2942 mkdir .tst 2>/dev/null
2943 if test -d .tst; then
2944 am__leading_dot=.
2945 else
2946 am__leading_dot=_
2948 rmdir .tst 2>/dev/null
2950 DEPDIR="${am__leading_dot}deps"
2952 ac_config_commands="$ac_config_commands depfiles"
2955 am_make=${MAKE-make}
2956 cat > confinc << 'END'
2957 am__doit:
2958 @echo done
2959 .PHONY: am__doit
2961 # If we don't find an include directive, just comment out the code.
2962 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2963 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2964 am__include="#"
2965 am__quote=
2966 _am_result=none
2967 # First try GNU make style include.
2968 echo "include confinc" > confmf
2969 # We grep out `Entering directory' and `Leaving directory'
2970 # messages which can occur if `w' ends up in MAKEFLAGS.
2971 # In particular we don't look at `^make:' because GNU make might
2972 # be invoked under some other name (usually "gmake"), in which
2973 # case it prints its new name instead of `make'.
2974 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2975 am__include=include
2976 am__quote=
2977 _am_result=GNU
2979 # Now try BSD make style include.
2980 if test "$am__include" = "#"; then
2981 echo '.include "confinc"' > confmf
2982 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2983 am__include=.include
2984 am__quote="\""
2985 _am_result=BSD
2990 echo "$as_me:$LINENO: result: $_am_result" >&5
2991 echo "${ECHO_T}$_am_result" >&6
2992 rm -f confinc confmf
2994 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2995 if test "${enable_dependency_tracking+set}" = set; then
2996 enableval="$enable_dependency_tracking"
2999 if test "x$enable_dependency_tracking" != xno; then
3000 am_depcomp="$ac_aux_dir/depcomp"
3001 AMDEPBACKSLASH='\'
3005 if test "x$enable_dependency_tracking" != xno; then
3006 AMDEP_TRUE=
3007 AMDEP_FALSE='#'
3008 else
3009 AMDEP_TRUE='#'
3010 AMDEP_FALSE=
3015 # test to see if srcdir already configured
3016 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3017 test -f $srcdir/config.status; then
3018 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3019 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3020 { (exit 1); exit 1; }; }
3023 # test whether we have cygpath
3024 if test -z "$CYGPATH_W"; then
3025 if (cygpath --version) >/dev/null 2>/dev/null; then
3026 CYGPATH_W='cygpath -w'
3027 else
3028 CYGPATH_W=echo
3033 # Define the identity of the package.
3034 PACKAGE=bfd
3035 VERSION=2.19.50
3038 cat >>confdefs.h <<_ACEOF
3039 #define PACKAGE "$PACKAGE"
3040 _ACEOF
3043 cat >>confdefs.h <<_ACEOF
3044 #define VERSION "$VERSION"
3045 _ACEOF
3047 # Some tools Automake needs.
3049 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3052 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3055 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3058 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3061 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3063 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3065 # Installed binaries are usually stripped using `strip' when the user
3066 # run `make install-strip'. However `strip' might not be the right
3067 # tool to use in cross-compilation environments, therefore Automake
3068 # will honor the `STRIP' environment variable to overrule this program.
3069 if test "$cross_compiling" != no; then
3070 if test -n "$ac_tool_prefix"; then
3071 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3072 set dummy ${ac_tool_prefix}strip; ac_word=$2
3073 echo "$as_me:$LINENO: checking for $ac_word" >&5
3074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3075 if test "${ac_cv_prog_STRIP+set}" = set; then
3076 echo $ECHO_N "(cached) $ECHO_C" >&6
3077 else
3078 if test -n "$STRIP"; then
3079 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3080 else
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082 for as_dir in $PATH
3084 IFS=$as_save_IFS
3085 test -z "$as_dir" && as_dir=.
3086 for ac_exec_ext in '' $ac_executable_extensions; do
3087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3088 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3090 break 2
3092 done
3093 done
3097 STRIP=$ac_cv_prog_STRIP
3098 if test -n "$STRIP"; then
3099 echo "$as_me:$LINENO: result: $STRIP" >&5
3100 echo "${ECHO_T}$STRIP" >&6
3101 else
3102 echo "$as_me:$LINENO: result: no" >&5
3103 echo "${ECHO_T}no" >&6
3107 if test -z "$ac_cv_prog_STRIP"; then
3108 ac_ct_STRIP=$STRIP
3109 # Extract the first word of "strip", so it can be a program name with args.
3110 set dummy strip; ac_word=$2
3111 echo "$as_me:$LINENO: checking for $ac_word" >&5
3112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3113 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3114 echo $ECHO_N "(cached) $ECHO_C" >&6
3115 else
3116 if test -n "$ac_ct_STRIP"; then
3117 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3118 else
3119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120 for as_dir in $PATH
3122 IFS=$as_save_IFS
3123 test -z "$as_dir" && as_dir=.
3124 for ac_exec_ext in '' $ac_executable_extensions; do
3125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3126 ac_cv_prog_ac_ct_STRIP="strip"
3127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3128 break 2
3130 done
3131 done
3133 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3136 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3137 if test -n "$ac_ct_STRIP"; then
3138 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3139 echo "${ECHO_T}$ac_ct_STRIP" >&6
3140 else
3141 echo "$as_me:$LINENO: result: no" >&5
3142 echo "${ECHO_T}no" >&6
3145 STRIP=$ac_ct_STRIP
3146 else
3147 STRIP="$ac_cv_prog_STRIP"
3151 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3153 # We need awk for the "check" target. The system "awk" is bad on
3154 # some platforms.
3155 # Always define AMTAR for backward compatibility.
3157 AMTAR=${AMTAR-"${am_missing_run}tar"}
3159 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3164 depcc="$CC" am_compiler_list=
3166 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3167 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3168 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3169 echo $ECHO_N "(cached) $ECHO_C" >&6
3170 else
3171 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3172 # We make a subdir and do the tests there. Otherwise we can end up
3173 # making bogus files that we don't know about and never remove. For
3174 # instance it was reported that on HP-UX the gcc test will end up
3175 # making a dummy file named `D' -- because `-MD' means `put the output
3176 # in D'.
3177 mkdir conftest.dir
3178 # Copy depcomp to subdir because otherwise we won't find it if we're
3179 # using a relative directory.
3180 cp "$am_depcomp" conftest.dir
3181 cd conftest.dir
3182 # We will build objects and dependencies in a subdirectory because
3183 # it helps to detect inapplicable dependency modes. For instance
3184 # both Tru64's cc and ICC support -MD to output dependencies as a
3185 # side effect of compilation, but ICC will put the dependencies in
3186 # the current directory while Tru64 will put them in the object
3187 # directory.
3188 mkdir sub
3190 am_cv_CC_dependencies_compiler_type=none
3191 if test "$am_compiler_list" = ""; then
3192 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3194 for depmode in $am_compiler_list; do
3195 # Setup a source with many dependencies, because some compilers
3196 # like to wrap large dependency lists on column 80 (with \), and
3197 # we should not choose a depcomp mode which is confused by this.
3199 # We need to recreate these files for each test, as the compiler may
3200 # overwrite some of them when testing with obscure command lines.
3201 # This happens at least with the AIX C compiler.
3202 : > sub/conftest.c
3203 for i in 1 2 3 4 5 6; do
3204 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3205 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3206 # Solaris 8's {/usr,}/bin/sh.
3207 touch sub/conftst$i.h
3208 done
3209 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3211 case $depmode in
3212 nosideeffect)
3213 # after this tag, mechanisms are not by side-effect, so they'll
3214 # only be used when explicitly requested
3215 if test "x$enable_dependency_tracking" = xyes; then
3216 continue
3217 else
3218 break
3221 none) break ;;
3222 esac
3223 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3224 # mode. It turns out that the SunPro C++ compiler does not properly
3225 # handle `-M -o', and we need to detect this.
3226 if depmode=$depmode \
3227 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3228 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3229 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3230 >/dev/null 2>conftest.err &&
3231 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3232 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3233 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3234 # icc doesn't choke on unknown options, it will just issue warnings
3235 # or remarks (even with -Werror). So we grep stderr for any message
3236 # that says an option was ignored or not supported.
3237 # When given -MP, icc 7.0 and 7.1 complain thusly:
3238 # icc: Command line warning: ignoring option '-M'; no argument required
3239 # The diagnosis changed in icc 8.0:
3240 # icc: Command line remark: option '-MP' not supported
3241 if (grep 'ignoring option' conftest.err ||
3242 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3243 am_cv_CC_dependencies_compiler_type=$depmode
3244 break
3247 done
3249 cd ..
3250 rm -rf conftest.dir
3251 else
3252 am_cv_CC_dependencies_compiler_type=none
3256 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3257 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3258 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3263 test "x$enable_dependency_tracking" != xno \
3264 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3265 am__fastdepCC_TRUE=
3266 am__fastdepCC_FALSE='#'
3267 else
3268 am__fastdepCC_TRUE='#'
3269 am__fastdepCC_FALSE=
3275 if test -n "$ac_tool_prefix"; then
3276 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3277 set dummy ${ac_tool_prefix}ar; ac_word=$2
3278 echo "$as_me:$LINENO: checking for $ac_word" >&5
3279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3280 if test "${ac_cv_prog_AR+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 else
3283 if test -n "$AR"; then
3284 ac_cv_prog_AR="$AR" # Let the user override the test.
3285 else
3286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287 for as_dir in $PATH
3289 IFS=$as_save_IFS
3290 test -z "$as_dir" && as_dir=.
3291 for ac_exec_ext in '' $ac_executable_extensions; do
3292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3293 ac_cv_prog_AR="${ac_tool_prefix}ar"
3294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3295 break 2
3297 done
3298 done
3302 AR=$ac_cv_prog_AR
3303 if test -n "$AR"; then
3304 echo "$as_me:$LINENO: result: $AR" >&5
3305 echo "${ECHO_T}$AR" >&6
3306 else
3307 echo "$as_me:$LINENO: result: no" >&5
3308 echo "${ECHO_T}no" >&6
3312 if test -z "$ac_cv_prog_AR"; then
3313 ac_ct_AR=$AR
3314 # Extract the first word of "ar", so it can be a program name with args.
3315 set dummy ar; ac_word=$2
3316 echo "$as_me:$LINENO: checking for $ac_word" >&5
3317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3318 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 else
3321 if test -n "$ac_ct_AR"; then
3322 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3323 else
3324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325 for as_dir in $PATH
3327 IFS=$as_save_IFS
3328 test -z "$as_dir" && as_dir=.
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3331 ac_cv_prog_ac_ct_AR="ar"
3332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3333 break 2
3335 done
3336 done
3340 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3341 if test -n "$ac_ct_AR"; then
3342 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3343 echo "${ECHO_T}$ac_ct_AR" >&6
3344 else
3345 echo "$as_me:$LINENO: result: no" >&5
3346 echo "${ECHO_T}no" >&6
3349 AR=$ac_ct_AR
3350 else
3351 AR="$ac_cv_prog_AR"
3354 if test -n "$ac_tool_prefix"; then
3355 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3356 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3357 echo "$as_me:$LINENO: checking for $ac_word" >&5
3358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3359 if test "${ac_cv_prog_RANLIB+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" >&6
3361 else
3362 if test -n "$RANLIB"; then
3363 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3364 else
3365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366 for as_dir in $PATH
3368 IFS=$as_save_IFS
3369 test -z "$as_dir" && as_dir=.
3370 for ac_exec_ext in '' $ac_executable_extensions; do
3371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3372 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3374 break 2
3376 done
3377 done
3381 RANLIB=$ac_cv_prog_RANLIB
3382 if test -n "$RANLIB"; then
3383 echo "$as_me:$LINENO: result: $RANLIB" >&5
3384 echo "${ECHO_T}$RANLIB" >&6
3385 else
3386 echo "$as_me:$LINENO: result: no" >&5
3387 echo "${ECHO_T}no" >&6
3391 if test -z "$ac_cv_prog_RANLIB"; then
3392 ac_ct_RANLIB=$RANLIB
3393 # Extract the first word of "ranlib", so it can be a program name with args.
3394 set dummy ranlib; ac_word=$2
3395 echo "$as_me:$LINENO: checking for $ac_word" >&5
3396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3397 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3399 else
3400 if test -n "$ac_ct_RANLIB"; then
3401 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3402 else
3403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404 for as_dir in $PATH
3406 IFS=$as_save_IFS
3407 test -z "$as_dir" && as_dir=.
3408 for ac_exec_ext in '' $ac_executable_extensions; do
3409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3410 ac_cv_prog_ac_ct_RANLIB="ranlib"
3411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3412 break 2
3414 done
3415 done
3417 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3420 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3421 if test -n "$ac_ct_RANLIB"; then
3422 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3423 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3424 else
3425 echo "$as_me:$LINENO: result: no" >&5
3426 echo "${ECHO_T}no" >&6
3429 RANLIB=$ac_ct_RANLIB
3430 else
3431 RANLIB="$ac_cv_prog_RANLIB"
3435 # Check whether --enable-shared or --disable-shared was given.
3436 if test "${enable_shared+set}" = set; then
3437 enableval="$enable_shared"
3438 p=${PACKAGE-default}
3439 case $enableval in
3440 yes) enable_shared=yes ;;
3441 no) enable_shared=no ;;
3443 enable_shared=no
3444 # Look at the argument we got. We use all the common list separators.
3445 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3446 for pkg in $enableval; do
3447 IFS="$lt_save_ifs"
3448 if test "X$pkg" = "X$p"; then
3449 enable_shared=yes
3451 done
3452 IFS="$lt_save_ifs"
3454 esac
3455 else
3456 enable_shared=no
3467 ac_ext=c
3468 ac_cpp='$CPP $CPPFLAGS'
3469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3472 if test -n "$ac_tool_prefix"; then
3473 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3474 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3475 echo "$as_me:$LINENO: checking for $ac_word" >&5
3476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3477 if test "${ac_cv_prog_CC+set}" = set; then
3478 echo $ECHO_N "(cached) $ECHO_C" >&6
3479 else
3480 if test -n "$CC"; then
3481 ac_cv_prog_CC="$CC" # Let the user override the test.
3482 else
3483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484 for as_dir in $PATH
3486 IFS=$as_save_IFS
3487 test -z "$as_dir" && as_dir=.
3488 for ac_exec_ext in '' $ac_executable_extensions; do
3489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3490 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3492 break 2
3494 done
3495 done
3499 CC=$ac_cv_prog_CC
3500 if test -n "$CC"; then
3501 echo "$as_me:$LINENO: result: $CC" >&5
3502 echo "${ECHO_T}$CC" >&6
3503 else
3504 echo "$as_me:$LINENO: result: no" >&5
3505 echo "${ECHO_T}no" >&6
3509 if test -z "$ac_cv_prog_CC"; then
3510 ac_ct_CC=$CC
3511 # Extract the first word of "gcc", so it can be a program name with args.
3512 set dummy gcc; ac_word=$2
3513 echo "$as_me:$LINENO: checking for $ac_word" >&5
3514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3515 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3516 echo $ECHO_N "(cached) $ECHO_C" >&6
3517 else
3518 if test -n "$ac_ct_CC"; then
3519 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3520 else
3521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522 for as_dir in $PATH
3524 IFS=$as_save_IFS
3525 test -z "$as_dir" && as_dir=.
3526 for ac_exec_ext in '' $ac_executable_extensions; do
3527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3528 ac_cv_prog_ac_ct_CC="gcc"
3529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3530 break 2
3532 done
3533 done
3537 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3538 if test -n "$ac_ct_CC"; then
3539 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3540 echo "${ECHO_T}$ac_ct_CC" >&6
3541 else
3542 echo "$as_me:$LINENO: result: no" >&5
3543 echo "${ECHO_T}no" >&6
3546 CC=$ac_ct_CC
3547 else
3548 CC="$ac_cv_prog_CC"
3551 if test -z "$CC"; then
3552 if test -n "$ac_tool_prefix"; then
3553 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3554 set dummy ${ac_tool_prefix}cc; ac_word=$2
3555 echo "$as_me:$LINENO: checking for $ac_word" >&5
3556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3557 if test "${ac_cv_prog_CC+set}" = set; then
3558 echo $ECHO_N "(cached) $ECHO_C" >&6
3559 else
3560 if test -n "$CC"; then
3561 ac_cv_prog_CC="$CC" # Let the user override the test.
3562 else
3563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564 for as_dir in $PATH
3566 IFS=$as_save_IFS
3567 test -z "$as_dir" && as_dir=.
3568 for ac_exec_ext in '' $ac_executable_extensions; do
3569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3570 ac_cv_prog_CC="${ac_tool_prefix}cc"
3571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3572 break 2
3574 done
3575 done
3579 CC=$ac_cv_prog_CC
3580 if test -n "$CC"; then
3581 echo "$as_me:$LINENO: result: $CC" >&5
3582 echo "${ECHO_T}$CC" >&6
3583 else
3584 echo "$as_me:$LINENO: result: no" >&5
3585 echo "${ECHO_T}no" >&6
3589 if test -z "$ac_cv_prog_CC"; then
3590 ac_ct_CC=$CC
3591 # Extract the first word of "cc", so it can be a program name with args.
3592 set dummy cc; ac_word=$2
3593 echo "$as_me:$LINENO: checking for $ac_word" >&5
3594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3595 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3596 echo $ECHO_N "(cached) $ECHO_C" >&6
3597 else
3598 if test -n "$ac_ct_CC"; then
3599 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3600 else
3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 for as_dir in $PATH
3604 IFS=$as_save_IFS
3605 test -z "$as_dir" && as_dir=.
3606 for ac_exec_ext in '' $ac_executable_extensions; do
3607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3608 ac_cv_prog_ac_ct_CC="cc"
3609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3610 break 2
3612 done
3613 done
3617 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3618 if test -n "$ac_ct_CC"; then
3619 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3620 echo "${ECHO_T}$ac_ct_CC" >&6
3621 else
3622 echo "$as_me:$LINENO: result: no" >&5
3623 echo "${ECHO_T}no" >&6
3626 CC=$ac_ct_CC
3627 else
3628 CC="$ac_cv_prog_CC"
3632 if test -z "$CC"; then
3633 # Extract the first word of "cc", so it can be a program name with args.
3634 set dummy cc; ac_word=$2
3635 echo "$as_me:$LINENO: checking for $ac_word" >&5
3636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3637 if test "${ac_cv_prog_CC+set}" = set; then
3638 echo $ECHO_N "(cached) $ECHO_C" >&6
3639 else
3640 if test -n "$CC"; then
3641 ac_cv_prog_CC="$CC" # Let the user override the test.
3642 else
3643 ac_prog_rejected=no
3644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3645 for as_dir in $PATH
3647 IFS=$as_save_IFS
3648 test -z "$as_dir" && as_dir=.
3649 for ac_exec_ext in '' $ac_executable_extensions; do
3650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3651 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3652 ac_prog_rejected=yes
3653 continue
3655 ac_cv_prog_CC="cc"
3656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3657 break 2
3659 done
3660 done
3662 if test $ac_prog_rejected = yes; then
3663 # We found a bogon in the path, so make sure we never use it.
3664 set dummy $ac_cv_prog_CC
3665 shift
3666 if test $# != 0; then
3667 # We chose a different compiler from the bogus one.
3668 # However, it has the same basename, so the bogon will be chosen
3669 # first if we set CC to just the basename; use the full file name.
3670 shift
3671 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3676 CC=$ac_cv_prog_CC
3677 if test -n "$CC"; then
3678 echo "$as_me:$LINENO: result: $CC" >&5
3679 echo "${ECHO_T}$CC" >&6
3680 else
3681 echo "$as_me:$LINENO: result: no" >&5
3682 echo "${ECHO_T}no" >&6
3686 if test -z "$CC"; then
3687 if test -n "$ac_tool_prefix"; then
3688 for ac_prog in cl
3690 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3691 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3692 echo "$as_me:$LINENO: checking for $ac_word" >&5
3693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3694 if test "${ac_cv_prog_CC+set}" = set; then
3695 echo $ECHO_N "(cached) $ECHO_C" >&6
3696 else
3697 if test -n "$CC"; then
3698 ac_cv_prog_CC="$CC" # Let the user override the test.
3699 else
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 for as_dir in $PATH
3703 IFS=$as_save_IFS
3704 test -z "$as_dir" && as_dir=.
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3707 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3709 break 2
3711 done
3712 done
3716 CC=$ac_cv_prog_CC
3717 if test -n "$CC"; then
3718 echo "$as_me:$LINENO: result: $CC" >&5
3719 echo "${ECHO_T}$CC" >&6
3720 else
3721 echo "$as_me:$LINENO: result: no" >&5
3722 echo "${ECHO_T}no" >&6
3725 test -n "$CC" && break
3726 done
3728 if test -z "$CC"; then
3729 ac_ct_CC=$CC
3730 for ac_prog in cl
3732 # Extract the first word of "$ac_prog", so it can be a program name with args.
3733 set dummy $ac_prog; ac_word=$2
3734 echo "$as_me:$LINENO: checking for $ac_word" >&5
3735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3736 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3738 else
3739 if test -n "$ac_ct_CC"; then
3740 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3741 else
3742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743 for as_dir in $PATH
3745 IFS=$as_save_IFS
3746 test -z "$as_dir" && as_dir=.
3747 for ac_exec_ext in '' $ac_executable_extensions; do
3748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3749 ac_cv_prog_ac_ct_CC="$ac_prog"
3750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3751 break 2
3753 done
3754 done
3758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3759 if test -n "$ac_ct_CC"; then
3760 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3761 echo "${ECHO_T}$ac_ct_CC" >&6
3762 else
3763 echo "$as_me:$LINENO: result: no" >&5
3764 echo "${ECHO_T}no" >&6
3767 test -n "$ac_ct_CC" && break
3768 done
3770 CC=$ac_ct_CC
3776 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3777 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3778 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3779 See \`config.log' for more details." >&5
3780 echo "$as_me: error: no acceptable C compiler found in \$PATH
3781 See \`config.log' for more details." >&2;}
3782 { (exit 1); exit 1; }; }; }
3784 # Provide some information about the compiler.
3785 echo "$as_me:$LINENO:" \
3786 "checking for C compiler version" >&5
3787 ac_compiler=`set X $ac_compile; echo $2`
3788 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3789 (eval $ac_compiler --version </dev/null >&5) 2>&5
3790 ac_status=$?
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); }
3793 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3794 (eval $ac_compiler -v </dev/null >&5) 2>&5
3795 ac_status=$?
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); }
3798 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3799 (eval $ac_compiler -V </dev/null >&5) 2>&5
3800 ac_status=$?
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); }
3804 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3805 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3806 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3807 echo $ECHO_N "(cached) $ECHO_C" >&6
3808 else
3809 cat >conftest.$ac_ext <<_ACEOF
3810 /* confdefs.h. */
3811 _ACEOF
3812 cat confdefs.h >>conftest.$ac_ext
3813 cat >>conftest.$ac_ext <<_ACEOF
3814 /* end confdefs.h. */
3817 main ()
3819 #ifndef __GNUC__
3820 choke me
3821 #endif
3824 return 0;
3826 _ACEOF
3827 rm -f conftest.$ac_objext
3828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3829 (eval $ac_compile) 2>conftest.er1
3830 ac_status=$?
3831 grep -v '^ *+' conftest.er1 >conftest.err
3832 rm -f conftest.er1
3833 cat conftest.err >&5
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); } &&
3836 { ac_try='test -z "$ac_c_werror_flag"
3837 || test ! -s conftest.err'
3838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3839 (eval $ac_try) 2>&5
3840 ac_status=$?
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); }; } &&
3843 { ac_try='test -s conftest.$ac_objext'
3844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3845 (eval $ac_try) 2>&5
3846 ac_status=$?
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); }; }; then
3849 ac_compiler_gnu=yes
3850 else
3851 echo "$as_me: failed program was:" >&5
3852 sed 's/^/| /' conftest.$ac_ext >&5
3854 ac_compiler_gnu=no
3856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3857 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3860 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3861 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3862 GCC=`test $ac_compiler_gnu = yes && echo yes`
3863 ac_test_CFLAGS=${CFLAGS+set}
3864 ac_save_CFLAGS=$CFLAGS
3865 CFLAGS="-g"
3866 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3867 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3868 if test "${ac_cv_prog_cc_g+set}" = set; then
3869 echo $ECHO_N "(cached) $ECHO_C" >&6
3870 else
3871 cat >conftest.$ac_ext <<_ACEOF
3872 /* confdefs.h. */
3873 _ACEOF
3874 cat confdefs.h >>conftest.$ac_ext
3875 cat >>conftest.$ac_ext <<_ACEOF
3876 /* end confdefs.h. */
3879 main ()
3883 return 0;
3885 _ACEOF
3886 rm -f conftest.$ac_objext
3887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3888 (eval $ac_compile) 2>conftest.er1
3889 ac_status=$?
3890 grep -v '^ *+' conftest.er1 >conftest.err
3891 rm -f conftest.er1
3892 cat conftest.err >&5
3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894 (exit $ac_status); } &&
3895 { ac_try='test -z "$ac_c_werror_flag"
3896 || test ! -s conftest.err'
3897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3898 (eval $ac_try) 2>&5
3899 ac_status=$?
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); }; } &&
3902 { ac_try='test -s conftest.$ac_objext'
3903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3904 (eval $ac_try) 2>&5
3905 ac_status=$?
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); }; }; then
3908 ac_cv_prog_cc_g=yes
3909 else
3910 echo "$as_me: failed program was:" >&5
3911 sed 's/^/| /' conftest.$ac_ext >&5
3913 ac_cv_prog_cc_g=no
3915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3917 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3918 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3919 if test "$ac_test_CFLAGS" = set; then
3920 CFLAGS=$ac_save_CFLAGS
3921 elif test $ac_cv_prog_cc_g = yes; then
3922 if test "$GCC" = yes; then
3923 CFLAGS="-g -O2"
3924 else
3925 CFLAGS="-g"
3927 else
3928 if test "$GCC" = yes; then
3929 CFLAGS="-O2"
3930 else
3931 CFLAGS=
3934 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3935 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3936 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3937 echo $ECHO_N "(cached) $ECHO_C" >&6
3938 else
3939 ac_cv_prog_cc_stdc=no
3940 ac_save_CC=$CC
3941 cat >conftest.$ac_ext <<_ACEOF
3942 /* confdefs.h. */
3943 _ACEOF
3944 cat confdefs.h >>conftest.$ac_ext
3945 cat >>conftest.$ac_ext <<_ACEOF
3946 /* end confdefs.h. */
3947 #include <stdarg.h>
3948 #include <stdio.h>
3949 #include <sys/types.h>
3950 #include <sys/stat.h>
3951 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3952 struct buf { int x; };
3953 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3954 static char *e (p, i)
3955 char **p;
3956 int i;
3958 return p[i];
3960 static char *f (char * (*g) (char **, int), char **p, ...)
3962 char *s;
3963 va_list v;
3964 va_start (v,p);
3965 s = g (p, va_arg (v,int));
3966 va_end (v);
3967 return s;
3970 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3971 function prototypes and stuff, but not '\xHH' hex character constants.
3972 These don't provoke an error unfortunately, instead are silently treated
3973 as 'x'. The following induces an error, until -std1 is added to get
3974 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3975 array size at least. It's necessary to write '\x00'==0 to get something
3976 that's true only with -std1. */
3977 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3979 int test (int i, double x);
3980 struct s1 {int (*f) (int a);};
3981 struct s2 {int (*f) (double a);};
3982 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3983 int argc;
3984 char **argv;
3986 main ()
3988 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3990 return 0;
3992 _ACEOF
3993 # Don't try gcc -ansi; that turns off useful extensions and
3994 # breaks some systems' header files.
3995 # AIX -qlanglvl=ansi
3996 # Ultrix and OSF/1 -std1
3997 # HP-UX 10.20 and later -Ae
3998 # HP-UX older versions -Aa -D_HPUX_SOURCE
3999 # SVR4 -Xc -D__EXTENSIONS__
4000 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4002 CC="$ac_save_CC $ac_arg"
4003 rm -f conftest.$ac_objext
4004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4005 (eval $ac_compile) 2>conftest.er1
4006 ac_status=$?
4007 grep -v '^ *+' conftest.er1 >conftest.err
4008 rm -f conftest.er1
4009 cat conftest.err >&5
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); } &&
4012 { ac_try='test -z "$ac_c_werror_flag"
4013 || test ! -s conftest.err'
4014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4015 (eval $ac_try) 2>&5
4016 ac_status=$?
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }; } &&
4019 { ac_try='test -s conftest.$ac_objext'
4020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021 (eval $ac_try) 2>&5
4022 ac_status=$?
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); }; }; then
4025 ac_cv_prog_cc_stdc=$ac_arg
4026 break
4027 else
4028 echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4032 rm -f conftest.err conftest.$ac_objext
4033 done
4034 rm -f conftest.$ac_ext conftest.$ac_objext
4035 CC=$ac_save_CC
4039 case "x$ac_cv_prog_cc_stdc" in
4040 x|xno)
4041 echo "$as_me:$LINENO: result: none needed" >&5
4042 echo "${ECHO_T}none needed" >&6 ;;
4044 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4045 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4046 CC="$CC $ac_cv_prog_cc_stdc" ;;
4047 esac
4049 # Some people use a C++ compiler to compile C. Since we use `exit',
4050 # in C++ we need to declare it. In case someone uses the same compiler
4051 # for both compiling C and C++ we need to have the C++ compiler decide
4052 # the declaration of exit, since it's the most demanding environment.
4053 cat >conftest.$ac_ext <<_ACEOF
4054 #ifndef __cplusplus
4055 choke me
4056 #endif
4057 _ACEOF
4058 rm -f conftest.$ac_objext
4059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4060 (eval $ac_compile) 2>conftest.er1
4061 ac_status=$?
4062 grep -v '^ *+' conftest.er1 >conftest.err
4063 rm -f conftest.er1
4064 cat conftest.err >&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); } &&
4067 { ac_try='test -z "$ac_c_werror_flag"
4068 || test ! -s conftest.err'
4069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070 (eval $ac_try) 2>&5
4071 ac_status=$?
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); }; } &&
4074 { ac_try='test -s conftest.$ac_objext'
4075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076 (eval $ac_try) 2>&5
4077 ac_status=$?
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; }; then
4080 for ac_declaration in \
4081 '' \
4082 'extern "C" void std::exit (int) throw (); using std::exit;' \
4083 'extern "C" void std::exit (int); using std::exit;' \
4084 'extern "C" void exit (int) throw ();' \
4085 'extern "C" void exit (int);' \
4086 'void exit (int);'
4088 cat >conftest.$ac_ext <<_ACEOF
4089 /* confdefs.h. */
4090 _ACEOF
4091 cat confdefs.h >>conftest.$ac_ext
4092 cat >>conftest.$ac_ext <<_ACEOF
4093 /* end confdefs.h. */
4094 $ac_declaration
4095 #include <stdlib.h>
4097 main ()
4099 exit (42);
4101 return 0;
4103 _ACEOF
4104 rm -f conftest.$ac_objext
4105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4106 (eval $ac_compile) 2>conftest.er1
4107 ac_status=$?
4108 grep -v '^ *+' conftest.er1 >conftest.err
4109 rm -f conftest.er1
4110 cat conftest.err >&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); } &&
4113 { ac_try='test -z "$ac_c_werror_flag"
4114 || test ! -s conftest.err'
4115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4116 (eval $ac_try) 2>&5
4117 ac_status=$?
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); }; } &&
4120 { ac_try='test -s conftest.$ac_objext'
4121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122 (eval $ac_try) 2>&5
4123 ac_status=$?
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); }; }; then
4127 else
4128 echo "$as_me: failed program was:" >&5
4129 sed 's/^/| /' conftest.$ac_ext >&5
4131 continue
4133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4134 cat >conftest.$ac_ext <<_ACEOF
4135 /* confdefs.h. */
4136 _ACEOF
4137 cat confdefs.h >>conftest.$ac_ext
4138 cat >>conftest.$ac_ext <<_ACEOF
4139 /* end confdefs.h. */
4140 $ac_declaration
4142 main ()
4144 exit (42);
4146 return 0;
4148 _ACEOF
4149 rm -f conftest.$ac_objext
4150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4151 (eval $ac_compile) 2>conftest.er1
4152 ac_status=$?
4153 grep -v '^ *+' conftest.er1 >conftest.err
4154 rm -f conftest.er1
4155 cat conftest.err >&5
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); } &&
4158 { ac_try='test -z "$ac_c_werror_flag"
4159 || test ! -s conftest.err'
4160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4161 (eval $ac_try) 2>&5
4162 ac_status=$?
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; } &&
4165 { ac_try='test -s conftest.$ac_objext'
4166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167 (eval $ac_try) 2>&5
4168 ac_status=$?
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); }; }; then
4171 break
4172 else
4173 echo "$as_me: failed program was:" >&5
4174 sed 's/^/| /' conftest.$ac_ext >&5
4177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4178 done
4179 rm -f conftest*
4180 if test -n "$ac_declaration"; then
4181 echo '#ifdef __cplusplus' >>confdefs.h
4182 echo $ac_declaration >>confdefs.h
4183 echo '#endif' >>confdefs.h
4186 else
4187 echo "$as_me: failed program was:" >&5
4188 sed 's/^/| /' conftest.$ac_ext >&5
4191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4192 ac_ext=c
4193 ac_cpp='$CPP $CPPFLAGS'
4194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4199 cat >>confdefs.h <<\_ACEOF
4200 #define _GNU_SOURCE 1
4201 _ACEOF
4204 ac_ext=c
4205 ac_cpp='$CPP $CPPFLAGS'
4206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4209 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4210 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4211 # On Suns, sometimes $CPP names a directory.
4212 if test -n "$CPP" && test -d "$CPP"; then
4213 CPP=
4215 if test -z "$CPP"; then
4216 if test "${ac_cv_prog_CPP+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4218 else
4219 # Double quotes because CPP needs to be expanded
4220 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4222 ac_preproc_ok=false
4223 for ac_c_preproc_warn_flag in '' yes
4225 # Use a header file that comes with gcc, so configuring glibc
4226 # with a fresh cross-compiler works.
4227 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4228 # <limits.h> exists even on freestanding compilers.
4229 # On the NeXT, cc -E runs the code through the compiler's parser,
4230 # not just through cpp. "Syntax error" is here to catch this case.
4231 cat >conftest.$ac_ext <<_ACEOF
4232 /* confdefs.h. */
4233 _ACEOF
4234 cat confdefs.h >>conftest.$ac_ext
4235 cat >>conftest.$ac_ext <<_ACEOF
4236 /* end confdefs.h. */
4237 #ifdef __STDC__
4238 # include <limits.h>
4239 #else
4240 # include <assert.h>
4241 #endif
4242 Syntax error
4243 _ACEOF
4244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4246 ac_status=$?
4247 grep -v '^ *+' conftest.er1 >conftest.err
4248 rm -f conftest.er1
4249 cat conftest.err >&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); } >/dev/null; then
4252 if test -s conftest.err; then
4253 ac_cpp_err=$ac_c_preproc_warn_flag
4254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4255 else
4256 ac_cpp_err=
4258 else
4259 ac_cpp_err=yes
4261 if test -z "$ac_cpp_err"; then
4263 else
4264 echo "$as_me: failed program was:" >&5
4265 sed 's/^/| /' conftest.$ac_ext >&5
4267 # Broken: fails on valid input.
4268 continue
4270 rm -f conftest.err conftest.$ac_ext
4272 # OK, works on sane cases. Now check whether non-existent headers
4273 # can be detected and how.
4274 cat >conftest.$ac_ext <<_ACEOF
4275 /* confdefs.h. */
4276 _ACEOF
4277 cat confdefs.h >>conftest.$ac_ext
4278 cat >>conftest.$ac_ext <<_ACEOF
4279 /* end confdefs.h. */
4280 #include <ac_nonexistent.h>
4281 _ACEOF
4282 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4283 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4284 ac_status=$?
4285 grep -v '^ *+' conftest.er1 >conftest.err
4286 rm -f conftest.er1
4287 cat conftest.err >&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); } >/dev/null; then
4290 if test -s conftest.err; then
4291 ac_cpp_err=$ac_c_preproc_warn_flag
4292 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4293 else
4294 ac_cpp_err=
4296 else
4297 ac_cpp_err=yes
4299 if test -z "$ac_cpp_err"; then
4300 # Broken: success on invalid input.
4301 continue
4302 else
4303 echo "$as_me: failed program was:" >&5
4304 sed 's/^/| /' conftest.$ac_ext >&5
4306 # Passes both tests.
4307 ac_preproc_ok=:
4308 break
4310 rm -f conftest.err conftest.$ac_ext
4312 done
4313 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4314 rm -f conftest.err conftest.$ac_ext
4315 if $ac_preproc_ok; then
4316 break
4319 done
4320 ac_cv_prog_CPP=$CPP
4323 CPP=$ac_cv_prog_CPP
4324 else
4325 ac_cv_prog_CPP=$CPP
4327 echo "$as_me:$LINENO: result: $CPP" >&5
4328 echo "${ECHO_T}$CPP" >&6
4329 ac_preproc_ok=false
4330 for ac_c_preproc_warn_flag in '' yes
4332 # Use a header file that comes with gcc, so configuring glibc
4333 # with a fresh cross-compiler works.
4334 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4335 # <limits.h> exists even on freestanding compilers.
4336 # On the NeXT, cc -E runs the code through the compiler's parser,
4337 # not just through cpp. "Syntax error" is here to catch this case.
4338 cat >conftest.$ac_ext <<_ACEOF
4339 /* confdefs.h. */
4340 _ACEOF
4341 cat confdefs.h >>conftest.$ac_ext
4342 cat >>conftest.$ac_ext <<_ACEOF
4343 /* end confdefs.h. */
4344 #ifdef __STDC__
4345 # include <limits.h>
4346 #else
4347 # include <assert.h>
4348 #endif
4349 Syntax error
4350 _ACEOF
4351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4353 ac_status=$?
4354 grep -v '^ *+' conftest.er1 >conftest.err
4355 rm -f conftest.er1
4356 cat conftest.err >&5
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); } >/dev/null; then
4359 if test -s conftest.err; then
4360 ac_cpp_err=$ac_c_preproc_warn_flag
4361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4362 else
4363 ac_cpp_err=
4365 else
4366 ac_cpp_err=yes
4368 if test -z "$ac_cpp_err"; then
4370 else
4371 echo "$as_me: failed program was:" >&5
4372 sed 's/^/| /' conftest.$ac_ext >&5
4374 # Broken: fails on valid input.
4375 continue
4377 rm -f conftest.err conftest.$ac_ext
4379 # OK, works on sane cases. Now check whether non-existent headers
4380 # can be detected and how.
4381 cat >conftest.$ac_ext <<_ACEOF
4382 /* confdefs.h. */
4383 _ACEOF
4384 cat confdefs.h >>conftest.$ac_ext
4385 cat >>conftest.$ac_ext <<_ACEOF
4386 /* end confdefs.h. */
4387 #include <ac_nonexistent.h>
4388 _ACEOF
4389 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4391 ac_status=$?
4392 grep -v '^ *+' conftest.er1 >conftest.err
4393 rm -f conftest.er1
4394 cat conftest.err >&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } >/dev/null; then
4397 if test -s conftest.err; then
4398 ac_cpp_err=$ac_c_preproc_warn_flag
4399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4400 else
4401 ac_cpp_err=
4403 else
4404 ac_cpp_err=yes
4406 if test -z "$ac_cpp_err"; then
4407 # Broken: success on invalid input.
4408 continue
4409 else
4410 echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4413 # Passes both tests.
4414 ac_preproc_ok=:
4415 break
4417 rm -f conftest.err conftest.$ac_ext
4419 done
4420 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4421 rm -f conftest.err conftest.$ac_ext
4422 if $ac_preproc_ok; then
4424 else
4425 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4426 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4427 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4428 See \`config.log' for more details." >&5
4429 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4430 See \`config.log' for more details." >&2;}
4431 { (exit 1); exit 1; }; }; }
4434 ac_ext=c
4435 ac_cpp='$CPP $CPPFLAGS'
4436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4441 echo "$as_me:$LINENO: checking for egrep" >&5
4442 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4443 if test "${ac_cv_prog_egrep+set}" = set; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
4445 else
4446 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4447 then ac_cv_prog_egrep='grep -E'
4448 else ac_cv_prog_egrep='egrep'
4451 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4452 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4453 EGREP=$ac_cv_prog_egrep
4456 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4457 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4458 if test "${ac_cv_header_stdc+set}" = set; then
4459 echo $ECHO_N "(cached) $ECHO_C" >&6
4460 else
4461 cat >conftest.$ac_ext <<_ACEOF
4462 /* confdefs.h. */
4463 _ACEOF
4464 cat confdefs.h >>conftest.$ac_ext
4465 cat >>conftest.$ac_ext <<_ACEOF
4466 /* end confdefs.h. */
4467 #include <stdlib.h>
4468 #include <stdarg.h>
4469 #include <string.h>
4470 #include <float.h>
4473 main ()
4477 return 0;
4479 _ACEOF
4480 rm -f conftest.$ac_objext
4481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4482 (eval $ac_compile) 2>conftest.er1
4483 ac_status=$?
4484 grep -v '^ *+' conftest.er1 >conftest.err
4485 rm -f conftest.er1
4486 cat conftest.err >&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); } &&
4489 { ac_try='test -z "$ac_c_werror_flag"
4490 || test ! -s conftest.err'
4491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4492 (eval $ac_try) 2>&5
4493 ac_status=$?
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); }; } &&
4496 { ac_try='test -s conftest.$ac_objext'
4497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4498 (eval $ac_try) 2>&5
4499 ac_status=$?
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; }; then
4502 ac_cv_header_stdc=yes
4503 else
4504 echo "$as_me: failed program was:" >&5
4505 sed 's/^/| /' conftest.$ac_ext >&5
4507 ac_cv_header_stdc=no
4509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4511 if test $ac_cv_header_stdc = yes; then
4512 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4513 cat >conftest.$ac_ext <<_ACEOF
4514 /* confdefs.h. */
4515 _ACEOF
4516 cat confdefs.h >>conftest.$ac_ext
4517 cat >>conftest.$ac_ext <<_ACEOF
4518 /* end confdefs.h. */
4519 #include <string.h>
4521 _ACEOF
4522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4523 $EGREP "memchr" >/dev/null 2>&1; then
4525 else
4526 ac_cv_header_stdc=no
4528 rm -f conftest*
4532 if test $ac_cv_header_stdc = yes; then
4533 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4534 cat >conftest.$ac_ext <<_ACEOF
4535 /* confdefs.h. */
4536 _ACEOF
4537 cat confdefs.h >>conftest.$ac_ext
4538 cat >>conftest.$ac_ext <<_ACEOF
4539 /* end confdefs.h. */
4540 #include <stdlib.h>
4542 _ACEOF
4543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4544 $EGREP "free" >/dev/null 2>&1; then
4546 else
4547 ac_cv_header_stdc=no
4549 rm -f conftest*
4553 if test $ac_cv_header_stdc = yes; then
4554 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4555 if test "$cross_compiling" = yes; then
4557 else
4558 cat >conftest.$ac_ext <<_ACEOF
4559 /* confdefs.h. */
4560 _ACEOF
4561 cat confdefs.h >>conftest.$ac_ext
4562 cat >>conftest.$ac_ext <<_ACEOF
4563 /* end confdefs.h. */
4564 #include <ctype.h>
4565 #if ((' ' & 0x0FF) == 0x020)
4566 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4567 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4568 #else
4569 # define ISLOWER(c) \
4570 (('a' <= (c) && (c) <= 'i') \
4571 || ('j' <= (c) && (c) <= 'r') \
4572 || ('s' <= (c) && (c) <= 'z'))
4573 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4574 #endif
4576 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4578 main ()
4580 int i;
4581 for (i = 0; i < 256; i++)
4582 if (XOR (islower (i), ISLOWER (i))
4583 || toupper (i) != TOUPPER (i))
4584 exit(2);
4585 exit (0);
4587 _ACEOF
4588 rm -f conftest$ac_exeext
4589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4590 (eval $ac_link) 2>&5
4591 ac_status=$?
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595 (eval $ac_try) 2>&5
4596 ac_status=$?
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }; }; then
4600 else
4601 echo "$as_me: program exited with status $ac_status" >&5
4602 echo "$as_me: failed program was:" >&5
4603 sed 's/^/| /' conftest.$ac_ext >&5
4605 ( exit $ac_status )
4606 ac_cv_header_stdc=no
4608 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4612 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4613 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4614 if test $ac_cv_header_stdc = yes; then
4616 cat >>confdefs.h <<\_ACEOF
4617 #define STDC_HEADERS 1
4618 _ACEOF
4622 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4632 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4633 inttypes.h stdint.h unistd.h
4635 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4636 echo "$as_me:$LINENO: checking for $ac_header" >&5
4637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4640 else
4641 cat >conftest.$ac_ext <<_ACEOF
4642 /* confdefs.h. */
4643 _ACEOF
4644 cat confdefs.h >>conftest.$ac_ext
4645 cat >>conftest.$ac_ext <<_ACEOF
4646 /* end confdefs.h. */
4647 $ac_includes_default
4649 #include <$ac_header>
4650 _ACEOF
4651 rm -f conftest.$ac_objext
4652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4653 (eval $ac_compile) 2>conftest.er1
4654 ac_status=$?
4655 grep -v '^ *+' conftest.er1 >conftest.err
4656 rm -f conftest.er1
4657 cat conftest.err >&5
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); } &&
4660 { ac_try='test -z "$ac_c_werror_flag"
4661 || test ! -s conftest.err'
4662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663 (eval $ac_try) 2>&5
4664 ac_status=$?
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); }; } &&
4667 { ac_try='test -s conftest.$ac_objext'
4668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669 (eval $ac_try) 2>&5
4670 ac_status=$?
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); }; }; then
4673 eval "$as_ac_Header=yes"
4674 else
4675 echo "$as_me: failed program was:" >&5
4676 sed 's/^/| /' conftest.$ac_ext >&5
4678 eval "$as_ac_Header=no"
4680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4682 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4683 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4684 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4685 cat >>confdefs.h <<_ACEOF
4686 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4687 _ACEOF
4691 done
4695 if test "${ac_cv_header_minix_config_h+set}" = set; then
4696 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4697 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4698 if test "${ac_cv_header_minix_config_h+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4702 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4703 else
4704 # Is the header compilable?
4705 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4706 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4707 cat >conftest.$ac_ext <<_ACEOF
4708 /* confdefs.h. */
4709 _ACEOF
4710 cat confdefs.h >>conftest.$ac_ext
4711 cat >>conftest.$ac_ext <<_ACEOF
4712 /* end confdefs.h. */
4713 $ac_includes_default
4714 #include <minix/config.h>
4715 _ACEOF
4716 rm -f conftest.$ac_objext
4717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4718 (eval $ac_compile) 2>conftest.er1
4719 ac_status=$?
4720 grep -v '^ *+' conftest.er1 >conftest.err
4721 rm -f conftest.er1
4722 cat conftest.err >&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); } &&
4725 { ac_try='test -z "$ac_c_werror_flag"
4726 || test ! -s conftest.err'
4727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4728 (eval $ac_try) 2>&5
4729 ac_status=$?
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); }; } &&
4732 { ac_try='test -s conftest.$ac_objext'
4733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4734 (eval $ac_try) 2>&5
4735 ac_status=$?
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); }; }; then
4738 ac_header_compiler=yes
4739 else
4740 echo "$as_me: failed program was:" >&5
4741 sed 's/^/| /' conftest.$ac_ext >&5
4743 ac_header_compiler=no
4745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4746 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4747 echo "${ECHO_T}$ac_header_compiler" >&6
4749 # Is the header present?
4750 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4751 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4752 cat >conftest.$ac_ext <<_ACEOF
4753 /* confdefs.h. */
4754 _ACEOF
4755 cat confdefs.h >>conftest.$ac_ext
4756 cat >>conftest.$ac_ext <<_ACEOF
4757 /* end confdefs.h. */
4758 #include <minix/config.h>
4759 _ACEOF
4760 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4761 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4762 ac_status=$?
4763 grep -v '^ *+' conftest.er1 >conftest.err
4764 rm -f conftest.er1
4765 cat conftest.err >&5
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); } >/dev/null; then
4768 if test -s conftest.err; then
4769 ac_cpp_err=$ac_c_preproc_warn_flag
4770 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4771 else
4772 ac_cpp_err=
4774 else
4775 ac_cpp_err=yes
4777 if test -z "$ac_cpp_err"; then
4778 ac_header_preproc=yes
4779 else
4780 echo "$as_me: failed program was:" >&5
4781 sed 's/^/| /' conftest.$ac_ext >&5
4783 ac_header_preproc=no
4785 rm -f conftest.err conftest.$ac_ext
4786 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4787 echo "${ECHO_T}$ac_header_preproc" >&6
4789 # So? What about this header?
4790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4791 yes:no: )
4792 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4793 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4794 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4795 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4796 ac_header_preproc=yes
4798 no:yes:* )
4799 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4800 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4801 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4802 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4803 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4804 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4805 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4806 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4807 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4808 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4809 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4810 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4812 cat <<\_ASBOX
4813 ## ------------------------------------------ ##
4814 ## Report this to the AC_PACKAGE_NAME lists. ##
4815 ## ------------------------------------------ ##
4816 _ASBOX
4818 sed "s/^/$as_me: WARNING: /" >&2
4820 esac
4821 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4822 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4823 if test "${ac_cv_header_minix_config_h+set}" = set; then
4824 echo $ECHO_N "(cached) $ECHO_C" >&6
4825 else
4826 ac_cv_header_minix_config_h=$ac_header_preproc
4828 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4829 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4832 if test $ac_cv_header_minix_config_h = yes; then
4833 MINIX=yes
4834 else
4835 MINIX=
4839 if test "$MINIX" = yes; then
4841 cat >>confdefs.h <<\_ACEOF
4842 #define _POSIX_SOURCE 1
4843 _ACEOF
4846 cat >>confdefs.h <<\_ACEOF
4847 #define _POSIX_1_SOURCE 2
4848 _ACEOF
4851 cat >>confdefs.h <<\_ACEOF
4852 #define _MINIX 1
4853 _ACEOF
4859 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4860 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4861 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4863 else
4864 cat >conftest.$ac_ext <<_ACEOF
4865 /* confdefs.h. */
4866 _ACEOF
4867 cat confdefs.h >>conftest.$ac_ext
4868 cat >>conftest.$ac_ext <<_ACEOF
4869 /* end confdefs.h. */
4871 # define __EXTENSIONS__ 1
4872 $ac_includes_default
4874 main ()
4878 return 0;
4880 _ACEOF
4881 rm -f conftest.$ac_objext
4882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4883 (eval $ac_compile) 2>conftest.er1
4884 ac_status=$?
4885 grep -v '^ *+' conftest.er1 >conftest.err
4886 rm -f conftest.er1
4887 cat conftest.err >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } &&
4890 { ac_try='test -z "$ac_c_werror_flag"
4891 || test ! -s conftest.err'
4892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893 (eval $ac_try) 2>&5
4894 ac_status=$?
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }; } &&
4897 { ac_try='test -s conftest.$ac_objext'
4898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899 (eval $ac_try) 2>&5
4900 ac_status=$?
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }; }; then
4903 ac_cv_safe_to_define___extensions__=yes
4904 else
4905 echo "$as_me: failed program was:" >&5
4906 sed 's/^/| /' conftest.$ac_ext >&5
4908 ac_cv_safe_to_define___extensions__=no
4910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4912 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4913 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4914 test $ac_cv_safe_to_define___extensions__ = yes &&
4915 cat >>confdefs.h <<\_ACEOF
4916 #define __EXTENSIONS__ 1
4917 _ACEOF
4919 cat >>confdefs.h <<\_ACEOF
4920 #define _ALL_SOURCE 1
4921 _ACEOF
4923 cat >>confdefs.h <<\_ACEOF
4924 #define _GNU_SOURCE 1
4925 _ACEOF
4927 cat >>confdefs.h <<\_ACEOF
4928 #define _POSIX_PTHREAD_SEMANTICS 1
4929 _ACEOF
4931 cat >>confdefs.h <<\_ACEOF
4932 #define _TANDEM_SOURCE 1
4933 _ACEOF
4939 macro_version='2.1a'
4940 macro_revision='1.2435'
4953 ltmain="$ac_aux_dir/ltmain.sh"
4955 # Set options
4957 enable_dlopen=no
4960 enable_win32_dll=no
4964 # Check whether --enable-static or --disable-static was given.
4965 if test "${enable_static+set}" = set; then
4966 enableval="$enable_static"
4967 p=${PACKAGE-default}
4968 case $enableval in
4969 yes) enable_static=yes ;;
4970 no) enable_static=no ;;
4972 enable_static=no
4973 # Look at the argument we got. We use all the common list separators.
4974 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4975 for pkg in $enableval; do
4976 IFS="$lt_save_ifs"
4977 if test "X$pkg" = "X$p"; then
4978 enable_static=yes
4980 done
4981 IFS="$lt_save_ifs"
4983 esac
4984 else
4985 enable_static=yes
4996 # Check whether --with-pic or --without-pic was given.
4997 if test "${with_pic+set}" = set; then
4998 withval="$with_pic"
4999 pic_mode="$withval"
5000 else
5001 pic_mode=default
5004 test -z "$pic_mode" && pic_mode=default
5012 # Check whether --enable-fast-install or --disable-fast-install was given.
5013 if test "${enable_fast_install+set}" = set; then
5014 enableval="$enable_fast_install"
5015 p=${PACKAGE-default}
5016 case $enableval in
5017 yes) enable_fast_install=yes ;;
5018 no) enable_fast_install=no ;;
5020 enable_fast_install=no
5021 # Look at the argument we got. We use all the common list separators.
5022 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5023 for pkg in $enableval; do
5024 IFS="$lt_save_ifs"
5025 if test "X$pkg" = "X$p"; then
5026 enable_fast_install=yes
5028 done
5029 IFS="$lt_save_ifs"
5031 esac
5032 else
5033 enable_fast_install=yes
5043 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5044 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5045 if test "${lt_cv_path_SED+set}" = set; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5047 else
5048 # Loop through the user's path and test for sed and gsed.
5049 # Then use that list of sed's as ones to test for truncation.
5050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051 for as_dir in $PATH
5053 IFS=$as_save_IFS
5054 test -z "$as_dir" && as_dir=.
5055 for lt_ac_prog in sed gsed; do
5056 for ac_exec_ext in '' $ac_executable_extensions; do
5057 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5058 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5060 done
5061 done
5062 done
5063 IFS=$as_save_IFS
5064 lt_ac_max=0
5065 lt_ac_count=0
5066 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5067 # along with /bin/sed that truncates output.
5068 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5069 test ! -f $lt_ac_sed && continue
5070 cat /dev/null > conftest.in
5071 lt_ac_count=0
5072 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5073 # Check for GNU sed and select it if it is found.
5074 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5075 lt_cv_path_SED=$lt_ac_sed
5076 break
5078 while true; do
5079 cat conftest.in conftest.in >conftest.tmp
5080 mv conftest.tmp conftest.in
5081 cp conftest.in conftest.nl
5082 echo >>conftest.nl
5083 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5084 cmp -s conftest.out conftest.nl || break
5085 # 10000 chars as input seems more than enough
5086 test $lt_ac_count -gt 10 && break
5087 lt_ac_count=`expr $lt_ac_count + 1`
5088 if test $lt_ac_count -gt $lt_ac_max; then
5089 lt_ac_max=$lt_ac_count
5090 lt_cv_path_SED=$lt_ac_sed
5092 done
5093 done
5097 SED=$lt_cv_path_SED
5099 echo "$as_me:$LINENO: result: $SED" >&5
5100 echo "${ECHO_T}$SED" >&6
5102 test -z "$SED" && SED=sed
5103 Xsed="$SED -e 1s/^X//"
5115 echo "$as_me:$LINENO: checking for fgrep" >&5
5116 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5117 if test "${ac_cv_prog_fgrep+set}" = set; then
5118 echo $ECHO_N "(cached) $ECHO_C" >&6
5119 else
5120 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5121 then ac_cv_prog_fgrep='grep -F'
5122 else ac_cv_prog_fgrep='fgrep'
5125 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5126 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5127 FGREP=$ac_cv_prog_fgrep
5130 test -z "$GREP" && GREP=grep
5150 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5151 if test "${with_gnu_ld+set}" = set; then
5152 withval="$with_gnu_ld"
5153 test "$withval" = no || with_gnu_ld=yes
5154 else
5155 with_gnu_ld=no
5157 ac_prog=ld
5158 if test "$GCC" = yes; then
5159 # Check if gcc -print-prog-name=ld gives a path.
5160 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5161 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5162 case $host in
5163 *-*-mingw*)
5164 # gcc leaves a trailing carriage return which upsets mingw
5165 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5167 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5168 esac
5169 case $ac_prog in
5170 # Accept absolute paths.
5171 [\\/]* | ?:[\\/]*)
5172 re_direlt='/[^/][^/]*/\.\./'
5173 # Canonicalize the pathname of ld
5174 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5175 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5176 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5177 done
5178 test -z "$LD" && LD="$ac_prog"
5181 # If it fails, then pretend we aren't using GCC.
5182 ac_prog=ld
5185 # If it is relative, then search for the first ld in PATH.
5186 with_gnu_ld=unknown
5188 esac
5189 elif test "$with_gnu_ld" = yes; then
5190 echo "$as_me:$LINENO: checking for GNU ld" >&5
5191 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5192 else
5193 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5194 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5196 if test "${lt_cv_path_LD+set}" = set; then
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
5198 else
5199 if test -z "$LD"; then
5200 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5201 for ac_dir in $PATH; do
5202 IFS="$lt_save_ifs"
5203 test -z "$ac_dir" && ac_dir=.
5204 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5205 lt_cv_path_LD="$ac_dir/$ac_prog"
5206 # Check to see if the program is GNU ld. I'd rather use --version,
5207 # but apparently some variants of GNU ld only accept -v.
5208 # Break only if it was the GNU/non-GNU ld that we prefer.
5209 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5210 *GNU* | *'with BFD'*)
5211 test "$with_gnu_ld" != no && break
5214 test "$with_gnu_ld" != yes && break
5216 esac
5218 done
5219 IFS="$lt_save_ifs"
5220 else
5221 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5225 LD="$lt_cv_path_LD"
5226 if test -n "$LD"; then
5227 echo "$as_me:$LINENO: result: $LD" >&5
5228 echo "${ECHO_T}$LD" >&6
5229 else
5230 echo "$as_me:$LINENO: result: no" >&5
5231 echo "${ECHO_T}no" >&6
5233 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5234 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5235 { (exit 1); exit 1; }; }
5236 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5237 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5238 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
5240 else
5241 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5242 case `$LD -v 2>&1 </dev/null` in
5243 *GNU* | *'with BFD'*)
5244 lt_cv_prog_gnu_ld=yes
5247 lt_cv_prog_gnu_ld=no
5249 esac
5251 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5252 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5253 with_gnu_ld=$lt_cv_prog_gnu_ld
5264 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5265 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5266 if test "${lt_cv_path_NM+set}" = set; then
5267 echo $ECHO_N "(cached) $ECHO_C" >&6
5268 else
5269 if test -n "$NM"; then
5270 # Let the user override the test.
5271 lt_cv_path_NM="$NM"
5272 else
5273 lt_nm_to_check="${ac_tool_prefix}nm"
5274 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5275 lt_nm_to_check="$lt_nm_to_check nm"
5277 for lt_tmp_nm in $lt_nm_to_check; do
5278 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5279 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5280 IFS="$lt_save_ifs"
5281 test -z "$ac_dir" && ac_dir=.
5282 tmp_nm="$ac_dir/$lt_tmp_nm"
5283 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5284 # Check to see if the nm accepts a BSD-compat flag.
5285 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5286 # nm: unknown option "B" ignored
5287 # Tru64's nm complains that /dev/null is an invalid object file
5288 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5289 */dev/null* | *'Invalid file or object type'*)
5290 lt_cv_path_NM="$tmp_nm -B"
5291 break
5294 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5295 */dev/null*)
5296 lt_cv_path_NM="$tmp_nm -p"
5297 break
5300 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5301 continue # so that we can try to find one that supports BSD flags
5303 esac
5305 esac
5307 done
5308 IFS="$lt_save_ifs"
5309 done
5310 : ${lt_cv_path_NM=no}
5313 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5314 echo "${ECHO_T}$lt_cv_path_NM" >&6
5315 if test "$lt_cv_path_NM" != "no"; then
5316 NM="$lt_cv_path_NM"
5317 else
5318 # Didn't find any BSD compatible name lister, look for dumpbin.
5319 if test -n "$ac_tool_prefix"; then
5320 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5322 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5323 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5324 echo "$as_me:$LINENO: checking for $ac_word" >&5
5325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5326 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5327 echo $ECHO_N "(cached) $ECHO_C" >&6
5328 else
5329 if test -n "$DUMPBIN"; then
5330 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5331 else
5332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5333 for as_dir in $PATH
5335 IFS=$as_save_IFS
5336 test -z "$as_dir" && as_dir=.
5337 for ac_exec_ext in '' $ac_executable_extensions; do
5338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5339 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5341 break 2
5343 done
5344 done
5348 DUMPBIN=$ac_cv_prog_DUMPBIN
5349 if test -n "$DUMPBIN"; then
5350 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5351 echo "${ECHO_T}$DUMPBIN" >&6
5352 else
5353 echo "$as_me:$LINENO: result: no" >&5
5354 echo "${ECHO_T}no" >&6
5357 test -n "$DUMPBIN" && break
5358 done
5360 if test -z "$DUMPBIN"; then
5361 ac_ct_DUMPBIN=$DUMPBIN
5362 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5364 # Extract the first word of "$ac_prog", so it can be a program name with args.
5365 set dummy $ac_prog; ac_word=$2
5366 echo "$as_me:$LINENO: checking for $ac_word" >&5
5367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5368 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5369 echo $ECHO_N "(cached) $ECHO_C" >&6
5370 else
5371 if test -n "$ac_ct_DUMPBIN"; then
5372 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5373 else
5374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375 for as_dir in $PATH
5377 IFS=$as_save_IFS
5378 test -z "$as_dir" && as_dir=.
5379 for ac_exec_ext in '' $ac_executable_extensions; do
5380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5381 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5383 break 2
5385 done
5386 done
5390 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5391 if test -n "$ac_ct_DUMPBIN"; then
5392 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5393 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5394 else
5395 echo "$as_me:$LINENO: result: no" >&5
5396 echo "${ECHO_T}no" >&6
5399 test -n "$ac_ct_DUMPBIN" && break
5400 done
5401 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5403 DUMPBIN=$ac_ct_DUMPBIN
5407 if test "$DUMPBIN" != ":"; then
5408 NM="$DUMPBIN"
5411 test -z "$NM" && NM=nm
5418 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5419 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5420 if test "${lt_cv_nm_interface+set}" = set; then
5421 echo $ECHO_N "(cached) $ECHO_C" >&6
5422 else
5423 lt_cv_nm_interface="BSD nm"
5424 echo "int some_variable = 0;" > conftest.$ac_ext
5425 (eval echo "\"\$as_me:5425: $ac_compile\"" >&5)
5426 (eval "$ac_compile" 2>conftest.err)
5427 cat conftest.err >&5
5428 (eval echo "\"\$as_me:5428: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5429 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5430 cat conftest.err >&5
5431 (eval echo "\"\$as_me:5431: output\"" >&5)
5432 cat conftest.out >&5
5433 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5434 lt_cv_nm_interface="MS dumpbin"
5436 rm -f conftest*
5438 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5439 echo "${ECHO_T}$lt_cv_nm_interface" >&6
5441 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5442 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5443 LN_S=$as_ln_s
5444 if test "$LN_S" = "ln -s"; then
5445 echo "$as_me:$LINENO: result: yes" >&5
5446 echo "${ECHO_T}yes" >&6
5447 else
5448 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5449 echo "${ECHO_T}no, using $LN_S" >&6
5452 # find the maximum length of command line arguments
5453 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5454 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5455 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5456 echo $ECHO_N "(cached) $ECHO_C" >&6
5457 else
5459 teststring="ABCD"
5461 case $build_os in
5462 msdosdjgpp*)
5463 # On DJGPP, this test can blow up pretty badly due to problems in libc
5464 # (any single argument exceeding 2000 bytes causes a buffer overrun
5465 # during glob expansion). Even if it were fixed, the result of this
5466 # check would be larger than it should be.
5467 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5470 gnu*)
5471 # Under GNU Hurd, this test is not required because there is
5472 # no limit to the length of command line arguments.
5473 # Libtool will interpret -1 as no limit whatsoever
5474 lt_cv_sys_max_cmd_len=-1;
5477 cygwin* | mingw*)
5478 # On Win9x/ME, this test blows up -- it succeeds, but takes
5479 # about 5 minutes as the teststring grows exponentially.
5480 # Worse, since 9x/ME are not pre-emptively multitasking,
5481 # you end up with a "frozen" computer, even though with patience
5482 # the test eventually succeeds (with a max line length of 256k).
5483 # Instead, let's just punt: use the minimum linelength reported by
5484 # all of the supported platforms: 8192 (on NT/2K/XP).
5485 lt_cv_sys_max_cmd_len=8192;
5488 amigaos*)
5489 # On AmigaOS with pdksh, this test takes hours, literally.
5490 # So we just punt and use a minimum line length of 8192.
5491 lt_cv_sys_max_cmd_len=8192;
5494 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5495 # This has been around since 386BSD, at least. Likely further.
5496 if test -x /sbin/sysctl; then
5497 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5498 elif test -x /usr/sbin/sysctl; then
5499 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5500 else
5501 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5503 # And add a safety zone
5504 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5505 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5508 interix*)
5509 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5510 lt_cv_sys_max_cmd_len=196608
5513 osf*)
5514 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5515 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5516 # nice to cause kernel panics so lets avoid the loop below.
5517 # First set a reasonable default.
5518 lt_cv_sys_max_cmd_len=16384
5520 if test -x /sbin/sysconfig; then
5521 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5522 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5523 esac
5526 sco3.2v5*)
5527 lt_cv_sys_max_cmd_len=102400
5529 sysv5* | sco5v6* | sysv4.2uw2*)
5530 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5531 if test -n "$kargmax"; then
5532 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5533 else
5534 lt_cv_sys_max_cmd_len=32768
5538 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
5539 if test -n $lt_cv_sys_max_cmd_len; then
5540 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5541 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5542 else
5543 # Make teststring a little bigger before we do anything with it.
5544 # a 1K string should be a reasonable start.
5545 for i in 1 2 3 4 5 6 7 8 ; do
5546 teststring=$teststring$teststring
5547 done
5548 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5549 # If test is not a shell built-in, we'll probably end up computing a
5550 # maximum length that is only half of the actual maximum length, but
5551 # we can't tell.
5552 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5553 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5554 test $i != 17 # 1/2 MB should be enough
5556 i=`expr $i + 1`
5557 teststring=$teststring$teststring
5558 done
5559 # Only check the string length outside the loop.
5560 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5561 teststring=
5562 # Add a significant safety factor because C++ compilers can tack on
5563 # massive amounts of additional arguments before passing them to the
5564 # linker. It appears as though 1/2 is a usable value.
5565 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5568 esac
5572 if test -n $lt_cv_sys_max_cmd_len ; then
5573 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5574 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5575 else
5576 echo "$as_me:$LINENO: result: none" >&5
5577 echo "${ECHO_T}none" >&6
5579 max_cmd_len=$lt_cv_sys_max_cmd_len
5587 : ${CP="cp -f"}
5588 : ${MV="mv -f"}
5589 : ${RM="rm -f"}
5591 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5592 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5593 # Try some XSI features
5594 xsi_shell=no
5595 ( _lt_dummy="a/b/c"
5596 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5597 = c,a/b,, ) >/dev/null 2>&1 \
5598 && xsi_shell=yes
5599 echo "$as_me:$LINENO: result: $xsi_shell" >&5
5600 echo "${ECHO_T}$xsi_shell" >&6
5603 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5604 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5605 lt_shell_append=no
5606 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5607 >/dev/null 2>&1 \
5608 && lt_shell_append=yes
5609 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5610 echo "${ECHO_T}$lt_shell_append" >&6
5613 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5614 lt_unset=unset
5615 else
5616 lt_unset=false
5623 # test EBCDIC or ASCII
5624 case `echo X|tr X '\101'` in
5625 A) # ASCII based system
5626 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5627 lt_SP2NL='tr \040 \012'
5628 lt_NL2SP='tr \015\012 \040\040'
5630 *) # EBCDIC based system
5631 lt_SP2NL='tr \100 \n'
5632 lt_NL2SP='tr \r\n \100\100'
5634 esac
5644 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5645 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5646 if test "${lt_cv_ld_reload_flag+set}" = set; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
5648 else
5649 lt_cv_ld_reload_flag='-r'
5651 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5652 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5653 reload_flag=$lt_cv_ld_reload_flag
5654 case $reload_flag in
5655 "" | " "*) ;;
5656 *) reload_flag=" $reload_flag" ;;
5657 esac
5658 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5659 case $host_os in
5660 darwin*)
5661 if test "$GCC" = yes; then
5662 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5663 else
5664 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5667 esac
5678 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5679 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5680 if test "${lt_cv_deplibs_check_method+set}" = set; then
5681 echo $ECHO_N "(cached) $ECHO_C" >&6
5682 else
5683 lt_cv_file_magic_cmd='$MAGIC_CMD'
5684 lt_cv_file_magic_test_file=
5685 lt_cv_deplibs_check_method='unknown'
5686 # Need to set the preceding variable on all platforms that support
5687 # interlibrary dependencies.
5688 # 'none' -- dependencies not supported.
5689 # `unknown' -- same as none, but documents that we really don't know.
5690 # 'pass_all' -- all dependencies passed with no checks.
5691 # 'test_compile' -- check by making test program.
5692 # 'file_magic [[regex]]' -- check by looking for files in library path
5693 # which responds to the $file_magic_cmd with a given extended regex.
5694 # If you have `file' or equivalent on your system and you're not sure
5695 # whether `pass_all' will *always* work, you probably want this one.
5697 case $host_os in
5698 aix[4-9]*)
5699 lt_cv_deplibs_check_method=pass_all
5702 beos*)
5703 lt_cv_deplibs_check_method=pass_all
5706 bsdi[45]*)
5707 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5708 lt_cv_file_magic_cmd='/usr/bin/file -L'
5709 lt_cv_file_magic_test_file=/shlib/libc.so
5712 cygwin*)
5713 # func_win32_libid is a shell function defined in ltmain.sh
5714 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5715 lt_cv_file_magic_cmd='func_win32_libid'
5718 mingw* | pw32*)
5719 # Base MSYS/MinGW do not provide the 'file' command needed by
5720 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5721 # unless we find 'file', for example because we are cross-compiling.
5722 if ( file / ) >/dev/null 2>&1; then
5723 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5724 lt_cv_file_magic_cmd='func_win32_libid'
5725 else
5726 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5727 lt_cv_file_magic_cmd='$OBJDUMP -f'
5731 darwin* | rhapsody*)
5732 lt_cv_deplibs_check_method=pass_all
5735 freebsd* | dragonfly*)
5736 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5737 case $host_cpu in
5738 i*86 )
5739 # Not sure whether the presence of OpenBSD here was a mistake.
5740 # Let's accept both of them until this is cleared up.
5741 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5742 lt_cv_file_magic_cmd=/usr/bin/file
5743 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5745 esac
5746 else
5747 lt_cv_deplibs_check_method=pass_all
5751 gnu*)
5752 lt_cv_deplibs_check_method=pass_all
5755 hpux10.20* | hpux11*)
5756 lt_cv_file_magic_cmd=/usr/bin/file
5757 case $host_cpu in
5758 ia64*)
5759 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5760 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5762 hppa*64*)
5763 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5764 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5767 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5768 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5770 esac
5773 interix[3-9]*)
5774 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5775 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5778 irix5* | irix6* | nonstopux*)
5779 case $LD in
5780 *-32|*"-32 ") libmagic=32-bit;;
5781 *-n32|*"-n32 ") libmagic=N32;;
5782 *-64|*"-64 ") libmagic=64-bit;;
5783 *) libmagic=never-match;;
5784 esac
5785 lt_cv_deplibs_check_method=pass_all
5788 # This must be Linux ELF.
5789 linux* | k*bsd*-gnu)
5790 lt_cv_deplibs_check_method=pass_all
5793 netbsd*)
5794 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5795 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5796 else
5797 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5801 newos6*)
5802 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5803 lt_cv_file_magic_cmd=/usr/bin/file
5804 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5807 *nto* | *qnx*)
5808 lt_cv_deplibs_check_method=pass_all
5811 openbsd*)
5812 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5813 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5814 else
5815 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5819 osf3* | osf4* | osf5*)
5820 lt_cv_deplibs_check_method=pass_all
5823 rdos*)
5824 lt_cv_deplibs_check_method=pass_all
5827 solaris*)
5828 lt_cv_deplibs_check_method=pass_all
5831 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5832 lt_cv_deplibs_check_method=pass_all
5835 sysv4 | sysv4.3*)
5836 case $host_vendor in
5837 motorola)
5838 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5839 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5841 ncr)
5842 lt_cv_deplibs_check_method=pass_all
5844 sequent)
5845 lt_cv_file_magic_cmd='/bin/file'
5846 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5848 sni)
5849 lt_cv_file_magic_cmd='/bin/file'
5850 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5851 lt_cv_file_magic_test_file=/lib/libc.so
5853 siemens)
5854 lt_cv_deplibs_check_method=pass_all
5857 lt_cv_deplibs_check_method=pass_all
5859 esac
5862 tpf*)
5863 lt_cv_deplibs_check_method=pass_all
5865 esac
5868 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5869 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5870 file_magic_cmd=$lt_cv_file_magic_cmd
5871 deplibs_check_method=$lt_cv_deplibs_check_method
5872 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5885 if test -n "$ac_tool_prefix"; then
5886 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5887 set dummy ${ac_tool_prefix}ar; ac_word=$2
5888 echo "$as_me:$LINENO: checking for $ac_word" >&5
5889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5890 if test "${ac_cv_prog_AR+set}" = set; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
5892 else
5893 if test -n "$AR"; then
5894 ac_cv_prog_AR="$AR" # Let the user override the test.
5895 else
5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897 for as_dir in $PATH
5899 IFS=$as_save_IFS
5900 test -z "$as_dir" && as_dir=.
5901 for ac_exec_ext in '' $ac_executable_extensions; do
5902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5903 ac_cv_prog_AR="${ac_tool_prefix}ar"
5904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5905 break 2
5907 done
5908 done
5912 AR=$ac_cv_prog_AR
5913 if test -n "$AR"; then
5914 echo "$as_me:$LINENO: result: $AR" >&5
5915 echo "${ECHO_T}$AR" >&6
5916 else
5917 echo "$as_me:$LINENO: result: no" >&5
5918 echo "${ECHO_T}no" >&6
5922 if test -z "$ac_cv_prog_AR"; then
5923 ac_ct_AR=$AR
5924 # Extract the first word of "ar", so it can be a program name with args.
5925 set dummy ar; ac_word=$2
5926 echo "$as_me:$LINENO: checking for $ac_word" >&5
5927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5928 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5929 echo $ECHO_N "(cached) $ECHO_C" >&6
5930 else
5931 if test -n "$ac_ct_AR"; then
5932 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5933 else
5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 for as_dir in $PATH
5937 IFS=$as_save_IFS
5938 test -z "$as_dir" && as_dir=.
5939 for ac_exec_ext in '' $ac_executable_extensions; do
5940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5941 ac_cv_prog_ac_ct_AR="ar"
5942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5943 break 2
5945 done
5946 done
5948 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5951 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5952 if test -n "$ac_ct_AR"; then
5953 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5954 echo "${ECHO_T}$ac_ct_AR" >&6
5955 else
5956 echo "$as_me:$LINENO: result: no" >&5
5957 echo "${ECHO_T}no" >&6
5960 AR=$ac_ct_AR
5961 else
5962 AR="$ac_cv_prog_AR"
5965 test -z "$AR" && AR=ar
5966 test -z "$AR_FLAGS" && AR_FLAGS=cru
5978 if test -n "$ac_tool_prefix"; then
5979 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5980 set dummy ${ac_tool_prefix}strip; ac_word=$2
5981 echo "$as_me:$LINENO: checking for $ac_word" >&5
5982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5983 if test "${ac_cv_prog_STRIP+set}" = set; then
5984 echo $ECHO_N "(cached) $ECHO_C" >&6
5985 else
5986 if test -n "$STRIP"; then
5987 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5988 else
5989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5990 for as_dir in $PATH
5992 IFS=$as_save_IFS
5993 test -z "$as_dir" && as_dir=.
5994 for ac_exec_ext in '' $ac_executable_extensions; do
5995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5996 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5998 break 2
6000 done
6001 done
6005 STRIP=$ac_cv_prog_STRIP
6006 if test -n "$STRIP"; then
6007 echo "$as_me:$LINENO: result: $STRIP" >&5
6008 echo "${ECHO_T}$STRIP" >&6
6009 else
6010 echo "$as_me:$LINENO: result: no" >&5
6011 echo "${ECHO_T}no" >&6
6015 if test -z "$ac_cv_prog_STRIP"; then
6016 ac_ct_STRIP=$STRIP
6017 # Extract the first word of "strip", so it can be a program name with args.
6018 set dummy strip; ac_word=$2
6019 echo "$as_me:$LINENO: checking for $ac_word" >&5
6020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6021 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6022 echo $ECHO_N "(cached) $ECHO_C" >&6
6023 else
6024 if test -n "$ac_ct_STRIP"; then
6025 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6026 else
6027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6028 for as_dir in $PATH
6030 IFS=$as_save_IFS
6031 test -z "$as_dir" && as_dir=.
6032 for ac_exec_ext in '' $ac_executable_extensions; do
6033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6034 ac_cv_prog_ac_ct_STRIP="strip"
6035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6036 break 2
6038 done
6039 done
6041 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6044 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6045 if test -n "$ac_ct_STRIP"; then
6046 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6047 echo "${ECHO_T}$ac_ct_STRIP" >&6
6048 else
6049 echo "$as_me:$LINENO: result: no" >&5
6050 echo "${ECHO_T}no" >&6
6053 STRIP=$ac_ct_STRIP
6054 else
6055 STRIP="$ac_cv_prog_STRIP"
6058 test -z "$STRIP" && STRIP=:
6065 if test -n "$ac_tool_prefix"; then
6066 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6067 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6068 echo "$as_me:$LINENO: checking for $ac_word" >&5
6069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6070 if test "${ac_cv_prog_RANLIB+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6072 else
6073 if test -n "$RANLIB"; then
6074 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6075 else
6076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6077 for as_dir in $PATH
6079 IFS=$as_save_IFS
6080 test -z "$as_dir" && as_dir=.
6081 for ac_exec_ext in '' $ac_executable_extensions; do
6082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6083 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6085 break 2
6087 done
6088 done
6092 RANLIB=$ac_cv_prog_RANLIB
6093 if test -n "$RANLIB"; then
6094 echo "$as_me:$LINENO: result: $RANLIB" >&5
6095 echo "${ECHO_T}$RANLIB" >&6
6096 else
6097 echo "$as_me:$LINENO: result: no" >&5
6098 echo "${ECHO_T}no" >&6
6102 if test -z "$ac_cv_prog_RANLIB"; then
6103 ac_ct_RANLIB=$RANLIB
6104 # Extract the first word of "ranlib", so it can be a program name with args.
6105 set dummy ranlib; ac_word=$2
6106 echo "$as_me:$LINENO: checking for $ac_word" >&5
6107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6108 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6110 else
6111 if test -n "$ac_ct_RANLIB"; then
6112 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6113 else
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115 for as_dir in $PATH
6117 IFS=$as_save_IFS
6118 test -z "$as_dir" && as_dir=.
6119 for ac_exec_ext in '' $ac_executable_extensions; do
6120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6121 ac_cv_prog_ac_ct_RANLIB="ranlib"
6122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6123 break 2
6125 done
6126 done
6128 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6131 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6132 if test -n "$ac_ct_RANLIB"; then
6133 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6134 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6135 else
6136 echo "$as_me:$LINENO: result: no" >&5
6137 echo "${ECHO_T}no" >&6
6140 RANLIB=$ac_ct_RANLIB
6141 else
6142 RANLIB="$ac_cv_prog_RANLIB"
6145 test -z "$RANLIB" && RANLIB=:
6152 # Determine commands to create old-style static archives.
6153 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6154 old_postinstall_cmds='chmod 644 $oldlib'
6155 old_postuninstall_cmds=
6157 if test -n "$RANLIB"; then
6158 case $host_os in
6159 openbsd*)
6160 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6163 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6165 esac
6166 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6202 # If no C compiler was specified, use CC.
6203 LTCC=${LTCC-"$CC"}
6205 # If no C compiler flags were specified, use CFLAGS.
6206 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6208 # Allow CC to be a program name with arguments.
6209 compiler=$CC
6212 # Check for command to grab the raw symbol name followed by C symbol from nm.
6213 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6214 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6215 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
6217 else
6219 # These are sane defaults that work on at least a few old systems.
6220 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6222 # Character class describing NM global symbol codes.
6223 symcode='[BCDEGRST]'
6225 # Regexp to match symbols that can be accessed directly from C.
6226 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6228 # Define system-specific variables.
6229 case $host_os in
6230 aix*)
6231 symcode='[BCDT]'
6233 cygwin* | mingw* | pw32*)
6234 symcode='[ABCDGISTW]'
6236 hpux*)
6237 if test "$host_cpu" = ia64; then
6238 symcode='[ABCDEGRST]'
6241 irix* | nonstopux*)
6242 symcode='[BCDEGRST]'
6244 osf*)
6245 symcode='[BCDEGQRST]'
6247 solaris*)
6248 symcode='[BDRT]'
6250 sco3.2v5*)
6251 symcode='[DT]'
6253 sysv4.2uw2*)
6254 symcode='[DT]'
6256 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6257 symcode='[ABDT]'
6259 sysv4)
6260 symcode='[DFNSTU]'
6262 esac
6264 # If we're using GNU nm, then use its standard symbol codes.
6265 case `$NM -V 2>&1` in
6266 *GNU* | *'with BFD'*)
6267 symcode='[ABCDGIRSTW]' ;;
6268 esac
6270 # Transform an extracted symbol line into a proper C declaration.
6271 # Some systems (esp. on ia64) link data and code symbols differently,
6272 # so use this general approach.
6273 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6275 # Transform an extracted symbol line into symbol name and symbol address
6276 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6278 # Handle CRLF in mingw tool chain
6279 opt_cr=
6280 case $build_os in
6281 mingw*)
6282 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6284 esac
6286 # Try without a prefix underscore, then with it.
6287 for ac_symprfx in "" "_"; do
6289 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6290 symxfrm="\\1 $ac_symprfx\\2 \\2"
6292 # Write the raw and C identifiers.
6293 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6294 # Fake it for dumpbin and say T for any non-static function
6295 # and D for any global variable.
6296 # Also find C++ and __fastcall symbols from MSVC++,
6297 # which start with @ or ?.
6298 lt_cv_sys_global_symbol_pipe="$AWK '"\
6299 " {last_section=section; section=\$ 3};"\
6300 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6301 " \$ 0!~/External *\|/{next};"\
6302 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6303 " {if(hide[section]) next};"\
6304 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6305 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6306 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6307 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6308 " ' prfx=^$ac_symprfx"
6309 else
6310 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6313 # Check to see that the pipe works correctly.
6314 pipe_works=no
6316 rm -f conftest*
6317 cat > conftest.$ac_ext <<_LT_EOF
6318 #ifdef __cplusplus
6319 extern "C" {
6320 #endif
6321 char nm_test_var;
6322 void nm_test_func(void);
6323 void nm_test_func(void){}
6324 #ifdef __cplusplus
6326 #endif
6327 int main(){nm_test_var='a';nm_test_func();return(0);}
6328 _LT_EOF
6330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6331 (eval $ac_compile) 2>&5
6332 ac_status=$?
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); }; then
6335 # Now try to grab the symbols.
6336 nlist=conftest.nm
6337 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6338 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6339 ac_status=$?
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } && test -s "$nlist"; then
6342 # Try sorting and uniquifying the output.
6343 if sort "$nlist" | uniq > "$nlist"T; then
6344 mv -f "$nlist"T "$nlist"
6345 else
6346 rm -f "$nlist"T
6349 # Make sure that we snagged all the symbols we need.
6350 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6351 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6352 cat <<_LT_EOF > conftest.$ac_ext
6353 #ifdef __cplusplus
6354 extern "C" {
6355 #endif
6357 _LT_EOF
6358 # Now generate the symbol file.
6359 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6361 cat <<_LT_EOF >> conftest.$ac_ext
6363 /* The mapping between symbol names and symbols. */
6364 const struct {
6365 const char *name;
6366 void *address;
6368 lt__PROGRAM__LTX_preloaded_symbols[] =
6370 { "@PROGRAM@", (void *) 0 },
6371 _LT_EOF
6372 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6373 cat <<\_LT_EOF >> conftest.$ac_ext
6374 {0, (void *) 0}
6377 /* This works around a problem in FreeBSD linker */
6378 #ifdef FREEBSD_WORKAROUND
6379 static const void *lt_preloaded_setup() {
6380 return lt__PROGRAM__LTX_preloaded_symbols;
6382 #endif
6384 #ifdef __cplusplus
6386 #endif
6387 _LT_EOF
6388 # Now try linking the two files.
6389 mv conftest.$ac_objext conftstm.$ac_objext
6390 lt_save_LIBS="$LIBS"
6391 lt_save_CFLAGS="$CFLAGS"
6392 LIBS="conftstm.$ac_objext"
6393 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6395 (eval $ac_link) 2>&5
6396 ac_status=$?
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6399 pipe_works=yes
6401 LIBS="$lt_save_LIBS"
6402 CFLAGS="$lt_save_CFLAGS"
6403 else
6404 echo "cannot find nm_test_func in $nlist" >&5
6406 else
6407 echo "cannot find nm_test_var in $nlist" >&5
6409 else
6410 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6412 else
6413 echo "$progname: failed program was:" >&5
6414 cat conftest.$ac_ext >&5
6416 rm -f conftest* conftst*
6418 # Do not use the global_symbol_pipe unless it works.
6419 if test "$pipe_works" = yes; then
6420 break
6421 else
6422 lt_cv_sys_global_symbol_pipe=
6424 done
6428 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6429 lt_cv_sys_global_symbol_to_cdecl=
6431 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6432 echo "$as_me:$LINENO: result: failed" >&5
6433 echo "${ECHO_T}failed" >&6
6434 else
6435 echo "$as_me:$LINENO: result: ok" >&5
6436 echo "${ECHO_T}ok" >&6
6455 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6456 if test "${enable_libtool_lock+set}" = set; then
6457 enableval="$enable_libtool_lock"
6460 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6462 # Some flags need to be propagated to the compiler or linker for good
6463 # libtool support.
6464 case $host in
6465 ia64-*-hpux*)
6466 # Find out which ABI we are using.
6467 echo 'int i;' > conftest.$ac_ext
6468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6469 (eval $ac_compile) 2>&5
6470 ac_status=$?
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); }; then
6473 case `/usr/bin/file conftest.$ac_objext` in
6474 *ELF-32*)
6475 HPUX_IA64_MODE="32"
6477 *ELF-64*)
6478 HPUX_IA64_MODE="64"
6480 esac
6482 rm -rf conftest*
6484 *-*-irix6*)
6485 # Find out which ABI we are using.
6486 echo '#line 6486 "configure"' > conftest.$ac_ext
6487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6488 (eval $ac_compile) 2>&5
6489 ac_status=$?
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); }; then
6492 if test "$lt_cv_prog_gnu_ld" = yes; then
6493 case `/usr/bin/file conftest.$ac_objext` in
6494 *32-bit*)
6495 LD="${LD-ld} -melf32bsmip"
6497 *N32*)
6498 LD="${LD-ld} -melf32bmipn32"
6500 *64-bit*)
6501 LD="${LD-ld} -melf64bmip"
6503 esac
6504 else
6505 case `/usr/bin/file conftest.$ac_objext` in
6506 *32-bit*)
6507 LD="${LD-ld} -32"
6509 *N32*)
6510 LD="${LD-ld} -n32"
6512 *64-bit*)
6513 LD="${LD-ld} -64"
6515 esac
6518 rm -rf conftest*
6521 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6522 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6523 # Find out which ABI we are using.
6524 echo 'int i;' > conftest.$ac_ext
6525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6526 (eval $ac_compile) 2>&5
6527 ac_status=$?
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); }; then
6530 case `/usr/bin/file conftest.o` in
6531 *32-bit*)
6532 case $host in
6533 x86_64-*kfreebsd*-gnu)
6534 LD="${LD-ld} -m elf_i386_fbsd"
6536 x86_64-*linux*)
6537 LD="${LD-ld} -m elf_i386"
6539 ppc64-*linux*|powerpc64-*linux*)
6540 LD="${LD-ld} -m elf32ppclinux"
6542 s390x-*linux*)
6543 LD="${LD-ld} -m elf_s390"
6545 sparc64-*linux*)
6546 LD="${LD-ld} -m elf32_sparc"
6548 esac
6550 *64-bit*)
6551 case $host in
6552 x86_64-*kfreebsd*-gnu)
6553 LD="${LD-ld} -m elf_x86_64_fbsd"
6555 x86_64-*linux*)
6556 LD="${LD-ld} -m elf_x86_64"
6558 ppc*-*linux*|powerpc*-*linux*)
6559 LD="${LD-ld} -m elf64ppc"
6561 s390*-*linux*|s390*-*tpf*)
6562 LD="${LD-ld} -m elf64_s390"
6564 sparc*-*linux*)
6565 LD="${LD-ld} -m elf64_sparc"
6567 esac
6569 esac
6571 rm -rf conftest*
6574 *-*-sco3.2v5*)
6575 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6576 SAVE_CFLAGS="$CFLAGS"
6577 CFLAGS="$CFLAGS -belf"
6578 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6579 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6580 if test "${lt_cv_cc_needs_belf+set}" = set; then
6581 echo $ECHO_N "(cached) $ECHO_C" >&6
6582 else
6583 ac_ext=c
6584 ac_cpp='$CPP $CPPFLAGS'
6585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6589 cat >conftest.$ac_ext <<_ACEOF
6590 /* confdefs.h. */
6591 _ACEOF
6592 cat confdefs.h >>conftest.$ac_ext
6593 cat >>conftest.$ac_ext <<_ACEOF
6594 /* end confdefs.h. */
6597 main ()
6601 return 0;
6603 _ACEOF
6604 rm -f conftest.$ac_objext conftest$ac_exeext
6605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6606 (eval $ac_link) 2>conftest.er1
6607 ac_status=$?
6608 grep -v '^ *+' conftest.er1 >conftest.err
6609 rm -f conftest.er1
6610 cat conftest.err >&5
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); } &&
6613 { ac_try='test -z "$ac_c_werror_flag"
6614 || test ! -s conftest.err'
6615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616 (eval $ac_try) 2>&5
6617 ac_status=$?
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); }; } &&
6620 { ac_try='test -s conftest$ac_exeext'
6621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6622 (eval $ac_try) 2>&5
6623 ac_status=$?
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); }; }; then
6626 lt_cv_cc_needs_belf=yes
6627 else
6628 echo "$as_me: failed program was:" >&5
6629 sed 's/^/| /' conftest.$ac_ext >&5
6631 lt_cv_cc_needs_belf=no
6633 rm -f conftest.err conftest.$ac_objext \
6634 conftest$ac_exeext conftest.$ac_ext
6635 ac_ext=c
6636 ac_cpp='$CPP $CPPFLAGS'
6637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6642 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6643 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6644 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6645 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6646 CFLAGS="$SAVE_CFLAGS"
6649 sparc*-*solaris*)
6650 # Find out which ABI we are using.
6651 echo 'int i;' > conftest.$ac_ext
6652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6653 (eval $ac_compile) 2>&5
6654 ac_status=$?
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); }; then
6657 case `/usr/bin/file conftest.o` in
6658 *64-bit*)
6659 case $lt_cv_prog_gnu_ld in
6660 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6661 *) LD="${LD-ld} -64" ;;
6662 esac
6664 esac
6666 rm -rf conftest*
6668 esac
6670 need_locks="$enable_libtool_lock"
6673 for ac_header in dlfcn.h
6675 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6676 echo "$as_me:$LINENO: checking for $ac_header" >&5
6677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6678 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6679 echo $ECHO_N "(cached) $ECHO_C" >&6
6680 else
6681 cat >conftest.$ac_ext <<_ACEOF
6682 /* confdefs.h. */
6683 _ACEOF
6684 cat confdefs.h >>conftest.$ac_ext
6685 cat >>conftest.$ac_ext <<_ACEOF
6686 /* end confdefs.h. */
6687 $ac_includes_default
6689 #include <$ac_header>
6690 _ACEOF
6691 rm -f conftest.$ac_objext
6692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6693 (eval $ac_compile) 2>conftest.er1
6694 ac_status=$?
6695 grep -v '^ *+' conftest.er1 >conftest.err
6696 rm -f conftest.er1
6697 cat conftest.err >&5
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); } &&
6700 { ac_try='test -z "$ac_c_werror_flag"
6701 || test ! -s conftest.err'
6702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6703 (eval $ac_try) 2>&5
6704 ac_status=$?
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); }; } &&
6707 { ac_try='test -s conftest.$ac_objext'
6708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709 (eval $ac_try) 2>&5
6710 ac_status=$?
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); }; }; then
6713 eval "$as_ac_Header=yes"
6714 else
6715 echo "$as_me: failed program was:" >&5
6716 sed 's/^/| /' conftest.$ac_ext >&5
6718 eval "$as_ac_Header=no"
6720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6723 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6725 cat >>confdefs.h <<_ACEOF
6726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6727 _ACEOF
6731 done
6735 # This can be used to rebuild libtool when needed
6736 LIBTOOL_DEPS="$ltmain"
6738 # Always use our own libtool.
6739 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6765 test -z "$LN_S" && LN_S="ln -s"
6780 if test -n "${ZSH_VERSION+set}" ; then
6781 setopt NO_GLOB_SUBST
6784 echo "$as_me:$LINENO: checking for objdir" >&5
6785 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6786 if test "${lt_cv_objdir+set}" = set; then
6787 echo $ECHO_N "(cached) $ECHO_C" >&6
6788 else
6789 rm -f .libs 2>/dev/null
6790 mkdir .libs 2>/dev/null
6791 if test -d .libs; then
6792 lt_cv_objdir=.libs
6793 else
6794 # MS-DOS does not allow filenames that begin with a dot.
6795 lt_cv_objdir=_libs
6797 rmdir .libs 2>/dev/null
6799 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6800 echo "${ECHO_T}$lt_cv_objdir" >&6
6801 objdir=$lt_cv_objdir
6807 cat >>confdefs.h <<_ACEOF
6808 #define LT_OBJDIR "$lt_cv_objdir/"
6809 _ACEOF
6827 case $host_os in
6828 aix3*)
6829 # AIX sometimes has problems with the GCC collect2 program. For some
6830 # reason, if we set the COLLECT_NAMES environment variable, the problems
6831 # vanish in a puff of smoke.
6832 if test "X${COLLECT_NAMES+set}" != Xset; then
6833 COLLECT_NAMES=
6834 export COLLECT_NAMES
6837 esac
6839 # Sed substitution that helps us do robust quoting. It backslashifies
6840 # metacharacters that are still active within double-quoted strings.
6841 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6843 # Same as above, but do not quote variable references.
6844 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6846 # Sed substitution to delay expansion of an escaped shell variable in a
6847 # double_quote_subst'ed string.
6848 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6850 # Sed substitution to delay expansion of an escaped single quote.
6851 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6853 # Sed substitution to avoid accidental globbing in evaled expressions
6854 no_glob_subst='s/\*/\\\*/g'
6856 # Global variables:
6857 ofile=libtool
6858 can_build_shared=yes
6860 # All known linkers require a `.a' archive for static linking (except MSVC,
6861 # which needs '.lib').
6862 libext=a
6864 with_gnu_ld="$lt_cv_prog_gnu_ld"
6866 old_CC="$CC"
6867 old_CFLAGS="$CFLAGS"
6869 # Set sane defaults for various variables
6870 test -z "$CC" && CC=cc
6871 test -z "$LTCC" && LTCC=$CC
6872 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6873 test -z "$LD" && LD=ld
6874 test -z "$ac_objext" && ac_objext=o
6876 for cc_temp in $compiler""; do
6877 case $cc_temp in
6878 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6879 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6880 \-*) ;;
6881 *) break;;
6882 esac
6883 done
6884 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6887 # Only perform the check for file, if the check method requires it
6888 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6889 case $deplibs_check_method in
6890 file_magic*)
6891 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6892 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6893 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6894 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6895 echo $ECHO_N "(cached) $ECHO_C" >&6
6896 else
6897 case $MAGIC_CMD in
6898 [\\/*] | ?:[\\/]*)
6899 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6902 lt_save_MAGIC_CMD="$MAGIC_CMD"
6903 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6904 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6905 for ac_dir in $ac_dummy; do
6906 IFS="$lt_save_ifs"
6907 test -z "$ac_dir" && ac_dir=.
6908 if test -f $ac_dir/${ac_tool_prefix}file; then
6909 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6910 if test -n "$file_magic_test_file"; then
6911 case $deplibs_check_method in
6912 "file_magic "*)
6913 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6914 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6915 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6916 $EGREP "$file_magic_regex" > /dev/null; then
6918 else
6919 cat <<_LT_EOF 1>&2
6921 *** Warning: the command libtool uses to detect shared libraries,
6922 *** $file_magic_cmd, produces output that libtool cannot recognize.
6923 *** The result is that libtool may fail to recognize shared libraries
6924 *** as such. This will affect the creation of libtool libraries that
6925 *** depend on shared libraries, but programs linked with such libtool
6926 *** libraries will work regardless of this problem. Nevertheless, you
6927 *** may want to report the problem to your system manager and/or to
6928 *** bug-libtool@gnu.org
6930 _LT_EOF
6931 fi ;;
6932 esac
6934 break
6936 done
6937 IFS="$lt_save_ifs"
6938 MAGIC_CMD="$lt_save_MAGIC_CMD"
6940 esac
6943 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6944 if test -n "$MAGIC_CMD"; then
6945 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6946 echo "${ECHO_T}$MAGIC_CMD" >&6
6947 else
6948 echo "$as_me:$LINENO: result: no" >&5
6949 echo "${ECHO_T}no" >&6
6956 if test -z "$lt_cv_path_MAGIC_CMD"; then
6957 if test -n "$ac_tool_prefix"; then
6958 echo "$as_me:$LINENO: checking for file" >&5
6959 echo $ECHO_N "checking for file... $ECHO_C" >&6
6960 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6961 echo $ECHO_N "(cached) $ECHO_C" >&6
6962 else
6963 case $MAGIC_CMD in
6964 [\\/*] | ?:[\\/]*)
6965 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6968 lt_save_MAGIC_CMD="$MAGIC_CMD"
6969 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6970 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6971 for ac_dir in $ac_dummy; do
6972 IFS="$lt_save_ifs"
6973 test -z "$ac_dir" && ac_dir=.
6974 if test -f $ac_dir/file; then
6975 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6976 if test -n "$file_magic_test_file"; then
6977 case $deplibs_check_method in
6978 "file_magic "*)
6979 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6980 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6981 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6982 $EGREP "$file_magic_regex" > /dev/null; then
6984 else
6985 cat <<_LT_EOF 1>&2
6987 *** Warning: the command libtool uses to detect shared libraries,
6988 *** $file_magic_cmd, produces output that libtool cannot recognize.
6989 *** The result is that libtool may fail to recognize shared libraries
6990 *** as such. This will affect the creation of libtool libraries that
6991 *** depend on shared libraries, but programs linked with such libtool
6992 *** libraries will work regardless of this problem. Nevertheless, you
6993 *** may want to report the problem to your system manager and/or to
6994 *** bug-libtool@gnu.org
6996 _LT_EOF
6997 fi ;;
6998 esac
7000 break
7002 done
7003 IFS="$lt_save_ifs"
7004 MAGIC_CMD="$lt_save_MAGIC_CMD"
7006 esac
7009 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7010 if test -n "$MAGIC_CMD"; then
7011 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7012 echo "${ECHO_T}$MAGIC_CMD" >&6
7013 else
7014 echo "$as_me:$LINENO: result: no" >&5
7015 echo "${ECHO_T}no" >&6
7019 else
7020 MAGIC_CMD=:
7026 esac
7028 # Use C for the default configuration in the libtool script
7030 lt_save_CC="$CC"
7031 ac_ext=c
7032 ac_cpp='$CPP $CPPFLAGS'
7033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7038 # Source file extension for C test sources.
7039 ac_ext=c
7041 # Object file extension for compiled C test sources.
7042 objext=o
7043 objext=$objext
7045 # Code to be used in simple compile tests
7046 lt_simple_compile_test_code="int some_variable = 0;"
7048 # Code to be used in simple link tests
7049 lt_simple_link_test_code='int main(){return(0);}'
7057 # If no C compiler was specified, use CC.
7058 LTCC=${LTCC-"$CC"}
7060 # If no C compiler flags were specified, use CFLAGS.
7061 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7063 # Allow CC to be a program name with arguments.
7064 compiler=$CC
7066 # Save the default compiler, since it gets overwritten when the other
7067 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7068 compiler_DEFAULT=$CC
7070 # save warnings/boilerplate of simple test code
7071 ac_outfile=conftest.$ac_objext
7072 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7073 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7074 _lt_compiler_boilerplate=`cat conftest.err`
7075 $RM conftest*
7077 ac_outfile=conftest.$ac_objext
7078 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7079 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7080 _lt_linker_boilerplate=`cat conftest.err`
7081 $RM conftest*
7084 ## CAVEAT EMPTOR:
7085 ## There is no encapsulation within the following macros, do not change
7086 ## the running order or otherwise move them around unless you know exactly
7087 ## what you are doing...
7088 if test -n "$compiler"; then
7090 lt_prog_compiler_no_builtin_flag=
7092 if test "$GCC" = yes; then
7093 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7095 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7096 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7097 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
7099 else
7100 lt_cv_prog_compiler_rtti_exceptions=no
7101 ac_outfile=conftest.$ac_objext
7102 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7103 lt_compiler_flag="-fno-rtti -fno-exceptions"
7104 # Insert the option either (1) after the last *FLAGS variable, or
7105 # (2) before a word containing "conftest.", or (3) at the end.
7106 # Note that $ac_compile itself does not contain backslashes and begins
7107 # with a dollar sign (not a hyphen), so the echo should work correctly.
7108 # The option is referenced via a variable to avoid confusing sed.
7109 lt_compile=`echo "$ac_compile" | $SED \
7110 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7111 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7112 -e 's:$: $lt_compiler_flag:'`
7113 (eval echo "\"\$as_me:7113: $lt_compile\"" >&5)
7114 (eval "$lt_compile" 2>conftest.err)
7115 ac_status=$?
7116 cat conftest.err >&5
7117 echo "$as_me:7117: \$? = $ac_status" >&5
7118 if (exit $ac_status) && test -s "$ac_outfile"; then
7119 # The compiler can only warn and ignore the option if not recognized
7120 # So say no if there are warnings other than the usual output.
7121 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7122 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7123 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7124 lt_cv_prog_compiler_rtti_exceptions=yes
7127 $RM conftest*
7130 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7131 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7133 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7134 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7135 else
7146 lt_prog_compiler_wl=
7147 lt_prog_compiler_pic=
7148 lt_prog_compiler_static=
7150 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7151 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7153 if test "$GCC" = yes; then
7154 lt_prog_compiler_wl='-Wl,'
7155 lt_prog_compiler_static='-static'
7157 case $host_os in
7158 aix*)
7159 # All AIX code is PIC.
7160 if test "$host_cpu" = ia64; then
7161 # AIX 5 now supports IA64 processor
7162 lt_prog_compiler_static='-Bstatic'
7166 amigaos*)
7167 if test "$host_cpu" = m68k; then
7168 # FIXME: we need at least 68020 code to build shared libraries, but
7169 # adding the `-m68020' flag to GCC prevents building anything better,
7170 # like `-m68040'.
7171 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7175 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7176 # PIC is the default for these OSes.
7179 mingw* | cygwin* | pw32* | os2*)
7180 # This hack is so that the source file can tell whether it is being
7181 # built for inclusion in a dll (and should export symbols for example).
7182 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7183 # (--disable-auto-import) libraries
7184 lt_prog_compiler_pic='-DDLL_EXPORT'
7187 darwin* | rhapsody*)
7188 # PIC is the default on this platform
7189 # Common symbols not allowed in MH_DYLIB files
7190 lt_prog_compiler_pic='-fno-common'
7193 hpux*)
7194 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7195 # not for PA HP-UX.
7196 case $host_cpu in
7197 hppa*64*|ia64*)
7198 # +Z the default
7201 lt_prog_compiler_pic='-fPIC'
7203 esac
7206 interix[3-9]*)
7207 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7208 # Instead, we relocate shared libraries at runtime.
7211 msdosdjgpp*)
7212 # Just because we use GCC doesn't mean we suddenly get shared libraries
7213 # on systems that don't support them.
7214 lt_prog_compiler_can_build_shared=no
7215 enable_shared=no
7218 *nto* | *qnx*)
7219 # QNX uses GNU C++, but need to define -shared option too, otherwise
7220 # it will coredump.
7221 lt_prog_compiler_pic='-fPIC -shared'
7224 sysv4*MP*)
7225 if test -d /usr/nec; then
7226 lt_prog_compiler_pic=-Kconform_pic
7231 lt_prog_compiler_pic='-fPIC'
7233 esac
7234 else
7235 # PORTME Check for flag to pass linker flags through the system compiler.
7236 case $host_os in
7237 aix*)
7238 lt_prog_compiler_wl='-Wl,'
7239 if test "$host_cpu" = ia64; then
7240 # AIX 5 now supports IA64 processor
7241 lt_prog_compiler_static='-Bstatic'
7242 else
7243 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7246 darwin*)
7247 # PIC is the default on this platform
7248 # Common symbols not allowed in MH_DYLIB files
7249 case $cc_basename in
7250 xlc*)
7251 lt_prog_compiler_pic='-qnocommon'
7252 lt_prog_compiler_wl='-Wl,'
7254 esac
7257 mingw* | cygwin* | pw32* | os2*)
7258 # This hack is so that the source file can tell whether it is being
7259 # built for inclusion in a dll (and should export symbols for example).
7260 lt_prog_compiler_pic='-DDLL_EXPORT'
7263 hpux9* | hpux10* | hpux11*)
7264 lt_prog_compiler_wl='-Wl,'
7265 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7266 # not for PA HP-UX.
7267 case $host_cpu in
7268 hppa*64*|ia64*)
7269 # +Z the default
7272 lt_prog_compiler_pic='+Z'
7274 esac
7275 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7276 lt_prog_compiler_static='${wl}-a ${wl}archive'
7279 irix5* | irix6* | nonstopux*)
7280 lt_prog_compiler_wl='-Wl,'
7281 # PIC (with -KPIC) is the default.
7282 lt_prog_compiler_static='-non_shared'
7285 linux* | k*bsd*-gnu)
7286 case $cc_basename in
7287 icc* | ecc*)
7288 lt_prog_compiler_wl='-Wl,'
7289 lt_prog_compiler_pic='-KPIC'
7290 lt_prog_compiler_static='-static'
7292 pgcc* | pgf77* | pgf90* | pgf95*)
7293 # Portland Group compilers (*not* the Pentium gcc compiler,
7294 # which looks to be a dead project)
7295 lt_prog_compiler_wl='-Wl,'
7296 lt_prog_compiler_pic='-fpic'
7297 lt_prog_compiler_static='-Bstatic'
7299 ccc*)
7300 lt_prog_compiler_wl='-Wl,'
7301 # All Alpha code is PIC.
7302 lt_prog_compiler_static='-non_shared'
7305 case `$CC -V 2>&1 | sed 5q` in
7306 *Sun\ C*)
7307 # Sun C 5.9
7308 lt_prog_compiler_pic='-KPIC'
7309 lt_prog_compiler_static='-Bstatic'
7310 lt_prog_compiler_wl='-Wl,'
7312 *Sun\ F*)
7313 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7314 lt_prog_compiler_pic='-KPIC'
7315 lt_prog_compiler_static='-Bstatic'
7316 lt_prog_compiler_wl=''
7318 esac
7320 esac
7323 newsos6)
7324 lt_prog_compiler_pic='-KPIC'
7325 lt_prog_compiler_static='-Bstatic'
7328 *nto* | *qnx*)
7329 # QNX uses GNU C++, but need to define -shared option too, otherwise
7330 # it will coredump.
7331 lt_prog_compiler_pic='-fPIC -shared'
7334 osf3* | osf4* | osf5*)
7335 lt_prog_compiler_wl='-Wl,'
7336 # All OSF/1 code is PIC.
7337 lt_prog_compiler_static='-non_shared'
7340 rdos*)
7341 lt_prog_compiler_static='-non_shared'
7344 solaris*)
7345 lt_prog_compiler_pic='-KPIC'
7346 lt_prog_compiler_static='-Bstatic'
7347 case $cc_basename in
7348 f77* | f90* | f95*)
7349 lt_prog_compiler_wl='-Qoption ld ';;
7351 lt_prog_compiler_wl='-Wl,';;
7352 esac
7355 sunos4*)
7356 lt_prog_compiler_wl='-Qoption ld '
7357 lt_prog_compiler_pic='-PIC'
7358 lt_prog_compiler_static='-Bstatic'
7361 sysv4 | sysv4.2uw2* | sysv4.3*)
7362 lt_prog_compiler_wl='-Wl,'
7363 lt_prog_compiler_pic='-KPIC'
7364 lt_prog_compiler_static='-Bstatic'
7367 sysv4*MP*)
7368 if test -d /usr/nec ;then
7369 lt_prog_compiler_pic='-Kconform_pic'
7370 lt_prog_compiler_static='-Bstatic'
7374 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7375 lt_prog_compiler_wl='-Wl,'
7376 lt_prog_compiler_pic='-KPIC'
7377 lt_prog_compiler_static='-Bstatic'
7380 unicos*)
7381 lt_prog_compiler_wl='-Wl,'
7382 lt_prog_compiler_can_build_shared=no
7385 uts4*)
7386 lt_prog_compiler_pic='-pic'
7387 lt_prog_compiler_static='-Bstatic'
7391 lt_prog_compiler_can_build_shared=no
7393 esac
7396 case $host_os in
7397 # For platforms which do not support PIC, -DPIC is meaningless:
7398 *djgpp*)
7399 lt_prog_compiler_pic=
7402 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7404 esac
7405 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7406 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7414 # Check to make sure the PIC flag actually works.
7416 if test -n "$lt_prog_compiler_pic"; then
7417 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7418 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7419 if test "${lt_prog_compiler_pic_works+set}" = set; then
7420 echo $ECHO_N "(cached) $ECHO_C" >&6
7421 else
7422 lt_prog_compiler_pic_works=no
7423 ac_outfile=conftest.$ac_objext
7424 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7425 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7426 # Insert the option either (1) after the last *FLAGS variable, or
7427 # (2) before a word containing "conftest.", or (3) at the end.
7428 # Note that $ac_compile itself does not contain backslashes and begins
7429 # with a dollar sign (not a hyphen), so the echo should work correctly.
7430 # The option is referenced via a variable to avoid confusing sed.
7431 lt_compile=`echo "$ac_compile" | $SED \
7432 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7433 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7434 -e 's:$: $lt_compiler_flag:'`
7435 (eval echo "\"\$as_me:7435: $lt_compile\"" >&5)
7436 (eval "$lt_compile" 2>conftest.err)
7437 ac_status=$?
7438 cat conftest.err >&5
7439 echo "$as_me:7439: \$? = $ac_status" >&5
7440 if (exit $ac_status) && test -s "$ac_outfile"; then
7441 # The compiler can only warn and ignore the option if not recognized
7442 # So say no if there are warnings other than the usual output.
7443 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7444 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7445 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7446 lt_prog_compiler_pic_works=yes
7449 $RM conftest*
7452 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7453 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7455 if test x"$lt_prog_compiler_pic_works" = xyes; then
7456 case $lt_prog_compiler_pic in
7457 "" | " "*) ;;
7458 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7459 esac
7460 else
7461 lt_prog_compiler_pic=
7462 lt_prog_compiler_can_build_shared=no
7473 # Check to make sure the static flag actually works.
7475 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7476 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7477 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7478 if test "${lt_prog_compiler_static_works+set}" = set; then
7479 echo $ECHO_N "(cached) $ECHO_C" >&6
7480 else
7481 lt_prog_compiler_static_works=no
7482 save_LDFLAGS="$LDFLAGS"
7483 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7484 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7485 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7486 # The linker can only warn and ignore the option if not recognized
7487 # So say no if there are warnings
7488 if test -s conftest.err; then
7489 # Append any errors to the config.log.
7490 cat conftest.err 1>&5
7491 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7492 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7493 if diff conftest.exp conftest.er2 >/dev/null; then
7494 lt_prog_compiler_static_works=yes
7496 else
7497 lt_prog_compiler_static_works=yes
7500 $RM conftest*
7501 LDFLAGS="$save_LDFLAGS"
7504 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7505 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7507 if test x"$lt_prog_compiler_static_works" = xyes; then
7509 else
7510 lt_prog_compiler_static=
7519 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7520 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7521 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7522 echo $ECHO_N "(cached) $ECHO_C" >&6
7523 else
7524 lt_cv_prog_compiler_c_o=no
7525 $RM -r conftest 2>/dev/null
7526 mkdir conftest
7527 cd conftest
7528 mkdir out
7529 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7531 lt_compiler_flag="-o out/conftest2.$ac_objext"
7532 # Insert the option either (1) after the last *FLAGS variable, or
7533 # (2) before a word containing "conftest.", or (3) at the end.
7534 # Note that $ac_compile itself does not contain backslashes and begins
7535 # with a dollar sign (not a hyphen), so the echo should work correctly.
7536 lt_compile=`echo "$ac_compile" | $SED \
7537 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7538 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7539 -e 's:$: $lt_compiler_flag:'`
7540 (eval echo "\"\$as_me:7540: $lt_compile\"" >&5)
7541 (eval "$lt_compile" 2>out/conftest.err)
7542 ac_status=$?
7543 cat out/conftest.err >&5
7544 echo "$as_me:7544: \$? = $ac_status" >&5
7545 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7546 then
7547 # The compiler can only warn and ignore the option if not recognized
7548 # So say no if there are warnings
7549 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7550 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7551 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7552 lt_cv_prog_compiler_c_o=yes
7555 chmod u+w . 2>&5
7556 $RM conftest*
7557 # SGI C++ compiler will create directory out/ii_files/ for
7558 # template instantiation
7559 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7560 $RM out/* && rmdir out
7561 cd ..
7562 $RM -r conftest
7563 $RM conftest*
7566 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7567 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7574 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7575 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7576 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7577 echo $ECHO_N "(cached) $ECHO_C" >&6
7578 else
7579 lt_cv_prog_compiler_c_o=no
7580 $RM -r conftest 2>/dev/null
7581 mkdir conftest
7582 cd conftest
7583 mkdir out
7584 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7586 lt_compiler_flag="-o out/conftest2.$ac_objext"
7587 # Insert the option either (1) after the last *FLAGS variable, or
7588 # (2) before a word containing "conftest.", or (3) at the end.
7589 # Note that $ac_compile itself does not contain backslashes and begins
7590 # with a dollar sign (not a hyphen), so the echo should work correctly.
7591 lt_compile=`echo "$ac_compile" | $SED \
7592 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7593 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7594 -e 's:$: $lt_compiler_flag:'`
7595 (eval echo "\"\$as_me:7595: $lt_compile\"" >&5)
7596 (eval "$lt_compile" 2>out/conftest.err)
7597 ac_status=$?
7598 cat out/conftest.err >&5
7599 echo "$as_me:7599: \$? = $ac_status" >&5
7600 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7601 then
7602 # The compiler can only warn and ignore the option if not recognized
7603 # So say no if there are warnings
7604 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7605 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7606 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7607 lt_cv_prog_compiler_c_o=yes
7610 chmod u+w . 2>&5
7611 $RM conftest*
7612 # SGI C++ compiler will create directory out/ii_files/ for
7613 # template instantiation
7614 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7615 $RM out/* && rmdir out
7616 cd ..
7617 $RM -r conftest
7618 $RM conftest*
7621 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7622 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7627 hard_links="nottested"
7628 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7629 # do not overwrite the value of need_locks provided by the user
7630 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7631 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7632 hard_links=yes
7633 $RM conftest*
7634 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7635 touch conftest.a
7636 ln conftest.a conftest.b 2>&5 || hard_links=no
7637 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7638 echo "$as_me:$LINENO: result: $hard_links" >&5
7639 echo "${ECHO_T}$hard_links" >&6
7640 if test "$hard_links" = no; then
7641 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7642 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7643 need_locks=warn
7645 else
7646 need_locks=no
7654 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7655 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7657 runpath_var=
7658 allow_undefined_flag=
7659 always_export_symbols=no
7660 archive_cmds=
7661 archive_expsym_cmds=
7662 compiler_needs_object=no
7663 enable_shared_with_static_runtimes=no
7664 export_dynamic_flag_spec=
7665 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7666 hardcode_automatic=no
7667 hardcode_direct=no
7668 hardcode_direct_absolute=no
7669 hardcode_libdir_flag_spec=
7670 hardcode_libdir_flag_spec_ld=
7671 hardcode_libdir_separator=
7672 hardcode_minus_L=no
7673 hardcode_shlibpath_var=unsupported
7674 inherit_rpath=no
7675 link_all_deplibs=unknown
7676 module_cmds=
7677 module_expsym_cmds=
7678 old_archive_from_new_cmds=
7679 old_archive_from_expsyms_cmds=
7680 thread_safe_flag_spec=
7681 whole_archive_flag_spec=
7682 # include_expsyms should be a list of space-separated symbols to be *always*
7683 # included in the symbol list
7684 include_expsyms=
7685 # exclude_expsyms can be an extended regexp of symbols to exclude
7686 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7687 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7688 # as well as any symbol that contains `d'.
7689 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7690 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7691 # platforms (ab)use it in PIC code, but their linkers get confused if
7692 # the symbol is explicitly referenced. Since portable code cannot
7693 # rely on this symbol name, it's probably fine to never include it in
7694 # preloaded symbol tables.
7695 extract_expsyms_cmds=
7697 case $host_os in
7698 cygwin* | mingw* | pw32*)
7699 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7700 # When not using gcc, we currently assume that we are using
7701 # Microsoft Visual C++.
7702 if test "$GCC" != yes; then
7703 with_gnu_ld=no
7706 interix*)
7707 # we just hope/assume this is gcc and not c89 (= MSVC++)
7708 with_gnu_ld=yes
7710 openbsd*)
7711 with_gnu_ld=no
7713 esac
7715 ld_shlibs=yes
7716 if test "$with_gnu_ld" = yes; then
7717 # If archive_cmds runs LD, not CC, wlarc should be empty
7718 wlarc='${wl}'
7720 # Set some defaults for GNU ld with shared library support. These
7721 # are reset later if shared libraries are not supported. Putting them
7722 # here allows them to be overridden if necessary.
7723 runpath_var=LD_RUN_PATH
7724 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7725 export_dynamic_flag_spec='${wl}--export-dynamic'
7726 # ancient GNU ld didn't support --whole-archive et. al.
7727 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7728 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7729 else
7730 whole_archive_flag_spec=
7732 supports_anon_versioning=no
7733 case `$LD -v 2>&1` in
7734 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7735 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7736 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7737 *\ 2.11.*) ;; # other 2.11 versions
7738 *) supports_anon_versioning=yes ;;
7739 esac
7741 # See if GNU ld supports shared libraries.
7742 case $host_os in
7743 aix[3-9]*)
7744 # On AIX/PPC, the GNU linker is very broken
7745 if test "$host_cpu" != ia64; then
7746 ld_shlibs=no
7747 cat <<_LT_EOF 1>&2
7749 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7750 *** to be unable to reliably create shared libraries on AIX.
7751 *** Therefore, libtool is disabling shared libraries support. If you
7752 *** really care for shared libraries, you may want to modify your PATH
7753 *** so that a non-GNU linker is found, and then restart.
7755 _LT_EOF
7759 amigaos*)
7760 if test "$host_cpu" = m68k; then
7761 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7762 hardcode_libdir_flag_spec='-L$libdir'
7763 hardcode_minus_L=yes
7766 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7767 # that the semantics of dynamic libraries on AmigaOS, at least up
7768 # to version 4, is to share data among multiple programs linked
7769 # with the same dynamic library. Since this doesn't match the
7770 # behavior of shared libraries on other platforms, we can't use
7771 # them.
7772 ld_shlibs=no
7775 beos*)
7776 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7777 allow_undefined_flag=unsupported
7778 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7779 # support --undefined. This deserves some investigation. FIXME
7780 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7781 else
7782 ld_shlibs=no
7786 cygwin* | mingw* | pw32*)
7787 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7788 # as there is no search path for DLLs.
7789 hardcode_libdir_flag_spec='-L$libdir'
7790 allow_undefined_flag=unsupported
7791 always_export_symbols=no
7792 enable_shared_with_static_runtimes=yes
7793 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7795 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7796 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7797 # If the export-symbols file already is a .def file (1st line
7798 # is EXPORTS), use it as is; otherwise, prepend...
7799 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7800 cp $export_symbols $output_objdir/$soname.def;
7801 else
7802 echo EXPORTS > $output_objdir/$soname.def;
7803 cat $export_symbols >> $output_objdir/$soname.def;
7805 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7806 else
7807 ld_shlibs=no
7811 interix[3-9]*)
7812 hardcode_direct=no
7813 hardcode_shlibpath_var=no
7814 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7815 export_dynamic_flag_spec='${wl}-E'
7816 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7817 # Instead, shared libraries are loaded at an image base (0x10000000 by
7818 # default) and relocated if they conflict, which is a slow very memory
7819 # consuming and fragmenting process. To avoid this, we pick a random,
7820 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7821 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7822 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7823 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7826 gnu* | linux* | tpf* | k*bsd*-gnu)
7827 tmp_diet=no
7828 if test "$host_os" = linux-dietlibc; then
7829 case $cc_basename in
7830 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7831 esac
7833 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7834 && test "$tmp_diet" = no
7835 then
7836 tmp_addflag=
7837 case $cc_basename,$host_cpu in
7838 pgcc*) # Portland Group C compiler
7839 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7840 tmp_addflag=' $pic_flag'
7842 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7843 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7844 tmp_addflag=' $pic_flag -Mnomain' ;;
7845 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7846 tmp_addflag=' -i_dynamic' ;;
7847 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7848 tmp_addflag=' -i_dynamic -nofor_main' ;;
7849 ifc* | ifort*) # Intel Fortran compiler
7850 tmp_addflag=' -nofor_main' ;;
7851 esac
7852 case `$CC -V 2>&1 | sed 5q` in
7853 *Sun\ C*) # Sun C 5.9
7854 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7855 compiler_needs_object=yes
7856 tmp_sharedflag='-G' ;;
7857 *Sun\ F*) # Sun Fortran 8.3
7858 tmp_sharedflag='-G' ;;
7860 tmp_sharedflag='-shared' ;;
7861 esac
7862 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7864 if test "x$supports_anon_versioning" = xyes; then
7865 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7866 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7867 echo "local: *; };" >> $output_objdir/$libname.ver~
7868 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7870 else
7871 ld_shlibs=no
7875 netbsd*)
7876 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7877 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7878 wlarc=
7879 else
7880 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7881 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7885 solaris*)
7886 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7887 ld_shlibs=no
7888 cat <<_LT_EOF 1>&2
7890 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7891 *** create shared libraries on Solaris systems. Therefore, libtool
7892 *** is disabling shared libraries support. We urge you to upgrade GNU
7893 *** binutils to release 2.9.1 or newer. Another option is to modify
7894 *** your PATH or compiler configuration so that the native linker is
7895 *** used, and then restart.
7897 _LT_EOF
7898 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7899 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7900 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7901 else
7902 ld_shlibs=no
7906 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7907 case `$LD -v 2>&1` in
7908 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7909 ld_shlibs=no
7910 cat <<_LT_EOF 1>&2
7912 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7913 *** reliably create shared libraries on SCO systems. Therefore, libtool
7914 *** is disabling shared libraries support. We urge you to upgrade GNU
7915 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7916 *** your PATH or compiler configuration so that the native linker is
7917 *** used, and then restart.
7919 _LT_EOF
7922 # For security reasons, it is highly recommended that you always
7923 # use absolute paths for naming shared libraries, and exclude the
7924 # DT_RUNPATH tag from executables and libraries. But doing so
7925 # requires that you compile everything twice, which is a pain.
7926 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7927 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7928 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7929 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7930 else
7931 ld_shlibs=no
7934 esac
7937 sunos4*)
7938 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7939 wlarc=
7940 hardcode_direct=yes
7941 hardcode_shlibpath_var=no
7945 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7946 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7947 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7948 else
7949 ld_shlibs=no
7952 esac
7954 if test "$ld_shlibs" = no; then
7955 runpath_var=
7956 hardcode_libdir_flag_spec=
7957 export_dynamic_flag_spec=
7958 whole_archive_flag_spec=
7960 else
7961 # PORTME fill in a description of your system's linker (not GNU ld)
7962 case $host_os in
7963 aix3*)
7964 allow_undefined_flag=unsupported
7965 always_export_symbols=yes
7966 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
7967 # Note: this linker hardcodes the directories in LIBPATH if there
7968 # are no directories specified by -L.
7969 hardcode_minus_L=yes
7970 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7971 # Neither direct hardcoding nor static linking is supported with a
7972 # broken collect2.
7973 hardcode_direct=unsupported
7977 aix[4-9]*)
7978 if test "$host_cpu" = ia64; then
7979 # On IA64, the linker does run time linking by default, so we don't
7980 # have to do anything special.
7981 aix_use_runtimelinking=no
7982 exp_sym_flag='-Bexport'
7983 no_entry_flag=""
7984 else
7985 # If we're using GNU nm, then we don't want the "-C" option.
7986 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7987 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7988 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7989 else
7990 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7992 aix_use_runtimelinking=no
7994 # Test if we are trying to use run time linking or normal
7995 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7996 # need to do runtime linking.
7997 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7998 for ld_flag in $LDFLAGS; do
7999 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8000 aix_use_runtimelinking=yes
8001 break
8003 done
8005 esac
8007 exp_sym_flag='-bexport'
8008 no_entry_flag='-bnoentry'
8011 # When large executables or shared objects are built, AIX ld can
8012 # have problems creating the table of contents. If linking a library
8013 # or program results in "error TOC overflow" add -mminimal-toc to
8014 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8015 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8017 archive_cmds=''
8018 hardcode_direct=yes
8019 hardcode_direct_absolute=yes
8020 hardcode_libdir_separator=':'
8021 link_all_deplibs=yes
8022 file_list_spec='${wl}-f,'
8024 if test "$GCC" = yes; then
8025 case $host_os in aix4.[012]|aix4.[012].*)
8026 # We only want to do this on AIX 4.2 and lower, the check
8027 # below for broken collect2 doesn't work under 4.3+
8028 collect2name=`${CC} -print-prog-name=collect2`
8029 if test -f "$collect2name" &&
8030 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8031 then
8032 # We have reworked collect2
8034 else
8035 # We have old collect2
8036 hardcode_direct=unsupported
8037 # It fails to find uninstalled libraries when the uninstalled
8038 # path is not listed in the libpath. Setting hardcode_minus_L
8039 # to unsupported forces relinking
8040 hardcode_minus_L=yes
8041 hardcode_libdir_flag_spec='-L$libdir'
8042 hardcode_libdir_separator=
8045 esac
8046 shared_flag='-shared'
8047 if test "$aix_use_runtimelinking" = yes; then
8048 shared_flag="$shared_flag "'${wl}-G'
8050 else
8051 # not using gcc
8052 if test "$host_cpu" = ia64; then
8053 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8054 # chokes on -Wl,-G. The following line is correct:
8055 shared_flag='-G'
8056 else
8057 if test "$aix_use_runtimelinking" = yes; then
8058 shared_flag='${wl}-G'
8059 else
8060 shared_flag='${wl}-bM:SRE'
8065 # It seems that -bexpall does not export symbols beginning with
8066 # underscore (_), so it is better to generate a list of symbols to export.
8067 always_export_symbols=yes
8068 if test "$aix_use_runtimelinking" = yes; then
8069 # Warning - without using the other runtime loading flags (-brtl),
8070 # -berok will link without error, but may produce a broken library.
8071 allow_undefined_flag='-berok'
8072 # Determine the default libpath from the value encoded in an
8073 # empty executable.
8074 cat >conftest.$ac_ext <<_ACEOF
8075 /* confdefs.h. */
8076 _ACEOF
8077 cat confdefs.h >>conftest.$ac_ext
8078 cat >>conftest.$ac_ext <<_ACEOF
8079 /* end confdefs.h. */
8082 main ()
8086 return 0;
8088 _ACEOF
8089 rm -f conftest.$ac_objext conftest$ac_exeext
8090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8091 (eval $ac_link) 2>conftest.er1
8092 ac_status=$?
8093 grep -v '^ *+' conftest.er1 >conftest.err
8094 rm -f conftest.er1
8095 cat conftest.err >&5
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); } &&
8098 { ac_try='test -z "$ac_c_werror_flag"
8099 || test ! -s conftest.err'
8100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8101 (eval $ac_try) 2>&5
8102 ac_status=$?
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); }; } &&
8105 { ac_try='test -s conftest$ac_exeext'
8106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8107 (eval $ac_try) 2>&5
8108 ac_status=$?
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); }; }; then
8112 lt_aix_libpath_sed='
8113 /Import File Strings/,/^$/ {
8114 /^0/ {
8115 s/^0 *\(.*\)$/\1/
8119 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8120 # Check for a 64-bit object if we didn't find anything.
8121 if test -z "$aix_libpath"; then
8122 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8124 else
8125 echo "$as_me: failed program was:" >&5
8126 sed 's/^/| /' conftest.$ac_ext >&5
8129 rm -f conftest.err conftest.$ac_objext \
8130 conftest$ac_exeext conftest.$ac_ext
8131 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8133 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8134 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8135 else
8136 if test "$host_cpu" = ia64; then
8137 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8138 allow_undefined_flag="-z nodefs"
8139 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8140 else
8141 # Determine the default libpath from the value encoded in an
8142 # empty executable.
8143 cat >conftest.$ac_ext <<_ACEOF
8144 /* confdefs.h. */
8145 _ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h. */
8151 main ()
8155 return 0;
8157 _ACEOF
8158 rm -f conftest.$ac_objext conftest$ac_exeext
8159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8160 (eval $ac_link) 2>conftest.er1
8161 ac_status=$?
8162 grep -v '^ *+' conftest.er1 >conftest.err
8163 rm -f conftest.er1
8164 cat conftest.err >&5
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); } &&
8167 { ac_try='test -z "$ac_c_werror_flag"
8168 || test ! -s conftest.err'
8169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8170 (eval $ac_try) 2>&5
8171 ac_status=$?
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); }; } &&
8174 { ac_try='test -s conftest$ac_exeext'
8175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8176 (eval $ac_try) 2>&5
8177 ac_status=$?
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); }; }; then
8181 lt_aix_libpath_sed='
8182 /Import File Strings/,/^$/ {
8183 /^0/ {
8184 s/^0 *\(.*\)$/\1/
8188 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8189 # Check for a 64-bit object if we didn't find anything.
8190 if test -z "$aix_libpath"; then
8191 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8193 else
8194 echo "$as_me: failed program was:" >&5
8195 sed 's/^/| /' conftest.$ac_ext >&5
8198 rm -f conftest.err conftest.$ac_objext \
8199 conftest$ac_exeext conftest.$ac_ext
8200 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8202 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8203 # Warning - without using the other run time loading flags,
8204 # -berok will link without error, but may produce a broken library.
8205 no_undefined_flag=' ${wl}-bernotok'
8206 allow_undefined_flag=' ${wl}-berok'
8207 # Exported symbols can be pulled into shared objects from archives
8208 whole_archive_flag_spec='$convenience'
8209 archive_cmds_need_lc=yes
8210 # This is similar to how AIX traditionally builds its shared libraries.
8211 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8216 amigaos*)
8217 if test "$host_cpu" = m68k; then
8218 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8219 hardcode_libdir_flag_spec='-L$libdir'
8220 hardcode_minus_L=yes
8222 # see comment about different semantics on the GNU ld section
8223 ld_shlibs=no
8226 bsdi[45]*)
8227 export_dynamic_flag_spec=-rdynamic
8230 cygwin* | mingw* | pw32*)
8231 # When not using gcc, we currently assume that we are using
8232 # Microsoft Visual C++.
8233 # hardcode_libdir_flag_spec is actually meaningless, as there is
8234 # no search path for DLLs.
8235 hardcode_libdir_flag_spec=' '
8236 allow_undefined_flag=unsupported
8237 # Tell ltmain to make .lib files, not .a files.
8238 libext=lib
8239 # Tell ltmain to make .dll files, not .so files.
8240 shrext_cmds=".dll"
8241 # FIXME: Setting linknames here is a bad hack.
8242 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8243 # The linker will automatically build a .lib file if we build a DLL.
8244 old_archive_from_new_cmds='true'
8245 # FIXME: Should let the user specify the lib program.
8246 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8247 fix_srcfile_path='`cygpath -w "$srcfile"`'
8248 enable_shared_with_static_runtimes=yes
8251 darwin* | rhapsody*)
8252 case $host_os in
8253 rhapsody* | darwin1.[012])
8254 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8256 *) # Darwin 1.3 on
8257 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8258 10.[012])
8259 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8261 10.*)
8262 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8264 esac
8266 esac
8267 archive_cmds_need_lc=no
8268 hardcode_direct=no
8269 hardcode_automatic=yes
8270 hardcode_shlibpath_var=unsupported
8271 whole_archive_flag_spec=''
8272 link_all_deplibs=yes
8273 if test "$GCC" = yes ; then
8274 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8275 echo $ECHO_N "(cached) $ECHO_C" >&6
8276 else
8277 lt_cv_apple_cc_single_mod=no
8278 if test -z "${LT_MULTI_MODULE}"; then
8279 # By default we will add the -single_module flag. You can override
8280 # by either setting the environment variable LT_MULTI_MODULE
8281 # non-empty at configure time, or by adding -multi-module to the
8282 # link flags.
8283 echo "int foo(void){return 1;}" > conftest.c
8284 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8285 -dynamiclib ${wl}-single_module conftest.c
8286 if test -f libconftest.dylib; then
8287 lt_cv_apple_cc_single_mod=yes
8288 rm libconftest.dylib
8290 rm conftest.$ac_ext
8294 output_verbose_link_cmd=echo
8295 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8296 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8297 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8298 else
8299 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8300 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8302 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8303 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8304 else
8305 case $cc_basename in
8306 xlc*)
8307 output_verbose_link_cmd=echo
8308 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8309 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8310 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8311 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8312 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8315 ld_shlibs=no
8317 esac
8321 dgux*)
8322 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8323 hardcode_libdir_flag_spec='-L$libdir'
8324 hardcode_shlibpath_var=no
8327 freebsd1*)
8328 ld_shlibs=no
8331 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8332 # support. Future versions do this automatically, but an explicit c++rt0.o
8333 # does not break anything, and helps significantly (at the cost of a little
8334 # extra space).
8335 freebsd2.2*)
8336 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8337 hardcode_libdir_flag_spec='-R$libdir'
8338 hardcode_direct=yes
8339 hardcode_shlibpath_var=no
8342 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8343 freebsd2*)
8344 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8345 hardcode_direct=yes
8346 hardcode_minus_L=yes
8347 hardcode_shlibpath_var=no
8350 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8351 freebsd* | dragonfly*)
8352 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8353 hardcode_libdir_flag_spec='-R$libdir'
8354 hardcode_direct=yes
8355 hardcode_shlibpath_var=no
8358 hpux9*)
8359 if test "$GCC" = yes; then
8360 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8361 else
8362 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8364 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8365 hardcode_libdir_separator=:
8366 hardcode_direct=yes
8368 # hardcode_minus_L: Not really in the search PATH,
8369 # but as the default location of the library.
8370 hardcode_minus_L=yes
8371 export_dynamic_flag_spec='${wl}-E'
8374 hpux10*)
8375 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8376 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8377 else
8378 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8380 if test "$with_gnu_ld" = no; then
8381 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8382 hardcode_libdir_flag_spec_ld='+b $libdir'
8383 hardcode_libdir_separator=:
8384 hardcode_direct=yes
8385 hardcode_direct_absolute=yes
8386 export_dynamic_flag_spec='${wl}-E'
8387 # hardcode_minus_L: Not really in the search PATH,
8388 # but as the default location of the library.
8389 hardcode_minus_L=yes
8393 hpux11*)
8394 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8395 case $host_cpu in
8396 hppa*64*)
8397 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8399 ia64*)
8400 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8403 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8405 esac
8406 else
8407 case $host_cpu in
8408 hppa*64*)
8409 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8411 ia64*)
8412 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8415 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8417 esac
8419 if test "$with_gnu_ld" = no; then
8420 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8421 hardcode_libdir_separator=:
8423 case $host_cpu in
8424 hppa*64*|ia64*)
8425 hardcode_direct=no
8426 hardcode_shlibpath_var=no
8429 hardcode_direct=yes
8430 hardcode_direct_absolute=yes
8431 export_dynamic_flag_spec='${wl}-E'
8433 # hardcode_minus_L: Not really in the search PATH,
8434 # but as the default location of the library.
8435 hardcode_minus_L=yes
8437 esac
8441 irix5* | irix6* | nonstopux*)
8442 if test "$GCC" = yes; then
8443 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8444 # Try to use the -exported_symbol ld option, if it does not
8445 # work, assume that -exports_file does not work either and
8446 # implicitly export all symbols.
8447 save_LDFLAGS="$LDFLAGS"
8448 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8449 cat >conftest.$ac_ext <<_ACEOF
8450 int foo(void) {}
8451 _ACEOF
8452 rm -f conftest.$ac_objext conftest$ac_exeext
8453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8454 (eval $ac_link) 2>conftest.er1
8455 ac_status=$?
8456 grep -v '^ *+' conftest.er1 >conftest.err
8457 rm -f conftest.er1
8458 cat conftest.err >&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); } &&
8461 { ac_try='test -z "$ac_c_werror_flag"
8462 || test ! -s conftest.err'
8463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8464 (eval $ac_try) 2>&5
8465 ac_status=$?
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }; } &&
8468 { ac_try='test -s conftest$ac_exeext'
8469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8470 (eval $ac_try) 2>&5
8471 ac_status=$?
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); }; }; then
8474 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8476 else
8477 echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.$ac_ext >&5
8481 rm -f conftest.err conftest.$ac_objext \
8482 conftest$ac_exeext conftest.$ac_ext
8483 LDFLAGS="$save_LDFLAGS"
8484 else
8485 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8486 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8488 archive_cmds_need_lc='no'
8489 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8490 hardcode_libdir_separator=:
8491 inherit_rpath=yes
8492 link_all_deplibs=yes
8495 netbsd*)
8496 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8497 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8498 else
8499 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8501 hardcode_libdir_flag_spec='-R$libdir'
8502 hardcode_direct=yes
8503 hardcode_shlibpath_var=no
8506 newsos6)
8507 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8508 hardcode_direct=yes
8509 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8510 hardcode_libdir_separator=:
8511 hardcode_shlibpath_var=no
8514 *nto* | *qnx*)
8517 openbsd*)
8518 hardcode_direct=yes
8519 hardcode_shlibpath_var=no
8520 hardcode_direct_absolute=yes
8521 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8522 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8523 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8524 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8525 export_dynamic_flag_spec='${wl}-E'
8526 else
8527 case $host_os in
8528 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8529 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8530 hardcode_libdir_flag_spec='-R$libdir'
8533 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8534 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8536 esac
8540 os2*)
8541 hardcode_libdir_flag_spec='-L$libdir'
8542 hardcode_minus_L=yes
8543 allow_undefined_flag=unsupported
8544 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8545 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8548 osf3*)
8549 if test "$GCC" = yes; then
8550 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8551 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8552 else
8553 allow_undefined_flag=' -expect_unresolved \*'
8554 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8556 archive_cmds_need_lc='no'
8557 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8558 hardcode_libdir_separator=:
8561 osf4* | osf5*) # as osf3* with the addition of -msym flag
8562 if test "$GCC" = yes; then
8563 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8564 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8565 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8566 else
8567 allow_undefined_flag=' -expect_unresolved \*'
8568 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8569 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8570 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8572 # Both c and cxx compiler support -rpath directly
8573 hardcode_libdir_flag_spec='-rpath $libdir'
8575 archive_cmds_need_lc='no'
8576 hardcode_libdir_separator=:
8579 solaris*)
8580 no_undefined_flag=' -z defs'
8581 if test "$GCC" = yes; then
8582 wlarc='${wl}'
8583 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8584 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8585 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8586 else
8587 case `$CC -V 2>&1` in
8588 *"Compilers 5.0"*)
8589 wlarc=''
8590 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8591 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8592 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8595 wlarc='${wl}'
8596 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8597 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8598 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8600 esac
8602 hardcode_libdir_flag_spec='-R$libdir'
8603 hardcode_shlibpath_var=no
8604 case $host_os in
8605 solaris2.[0-5] | solaris2.[0-5].*) ;;
8607 # The compiler driver will combine and reorder linker options,
8608 # but understands `-z linker_flag'. GCC discards it without `$wl',
8609 # but is careful enough not to reorder.
8610 # Supported since Solaris 2.6 (maybe 2.5.1?)
8611 if test "$GCC" = yes; then
8612 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8613 else
8614 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8617 esac
8618 link_all_deplibs=yes
8621 sunos4*)
8622 if test "x$host_vendor" = xsequent; then
8623 # Use $CC to link under sequent, because it throws in some extra .o
8624 # files that make .init and .fini sections work.
8625 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8626 else
8627 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8629 hardcode_libdir_flag_spec='-L$libdir'
8630 hardcode_direct=yes
8631 hardcode_minus_L=yes
8632 hardcode_shlibpath_var=no
8635 sysv4)
8636 case $host_vendor in
8637 sni)
8638 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8639 hardcode_direct=yes # is this really true???
8641 siemens)
8642 ## LD is ld it makes a PLAMLIB
8643 ## CC just makes a GrossModule.
8644 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8645 reload_cmds='$CC -r -o $output$reload_objs'
8646 hardcode_direct=no
8648 motorola)
8649 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8650 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8652 esac
8653 runpath_var='LD_RUN_PATH'
8654 hardcode_shlibpath_var=no
8657 sysv4.3*)
8658 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8659 hardcode_shlibpath_var=no
8660 export_dynamic_flag_spec='-Bexport'
8663 sysv4*MP*)
8664 if test -d /usr/nec; then
8665 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8666 hardcode_shlibpath_var=no
8667 runpath_var=LD_RUN_PATH
8668 hardcode_runpath_var=yes
8669 ld_shlibs=yes
8673 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8674 no_undefined_flag='${wl}-z,text'
8675 archive_cmds_need_lc=no
8676 hardcode_shlibpath_var=no
8677 runpath_var='LD_RUN_PATH'
8679 if test "$GCC" = yes; then
8680 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8681 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8682 else
8683 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8684 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8688 sysv5* | sco3.2v5* | sco5v6*)
8689 # Note: We can NOT use -z defs as we might desire, because we do not
8690 # link with -lc, and that would cause any symbols used from libc to
8691 # always be unresolved, which means just about no library would
8692 # ever link correctly. If we're not using GNU ld we use -z text
8693 # though, which does catch some bad symbols but isn't as heavy-handed
8694 # as -z defs.
8695 no_undefined_flag='${wl}-z,text'
8696 allow_undefined_flag='${wl}-z,nodefs'
8697 archive_cmds_need_lc=no
8698 hardcode_shlibpath_var=no
8699 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8700 hardcode_libdir_separator=':'
8701 link_all_deplibs=yes
8702 export_dynamic_flag_spec='${wl}-Bexport'
8703 runpath_var='LD_RUN_PATH'
8705 if test "$GCC" = yes; then
8706 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8707 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8708 else
8709 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8710 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8714 uts4*)
8715 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8716 hardcode_libdir_flag_spec='-L$libdir'
8717 hardcode_shlibpath_var=no
8721 ld_shlibs=no
8723 esac
8725 if test x$host_vendor = xsni; then
8726 case $host in
8727 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8728 export_dynamic_flag_spec='${wl}-Blargedynsym'
8730 esac
8734 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8735 echo "${ECHO_T}$ld_shlibs" >&6
8736 test "$ld_shlibs" = no && can_build_shared=no
8738 with_gnu_ld=$with_gnu_ld
8755 # Do we need to explicitly link libc?
8757 case "x$archive_cmds_need_lc" in
8758 x|xyes)
8759 # Assume -lc should be added
8760 archive_cmds_need_lc=yes
8762 if test "$enable_shared" = yes && test "$GCC" = yes; then
8763 case $archive_cmds in
8764 *'~'*)
8765 # FIXME: we may have to deal with multi-command sequences.
8767 '$CC '*)
8768 # Test whether the compiler implicitly links with -lc since on some
8769 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8770 # to ld, don't add -lc before -lgcc.
8771 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8772 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8773 $RM conftest*
8774 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8777 (eval $ac_compile) 2>&5
8778 ac_status=$?
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); } 2>conftest.err; then
8781 soname=conftest
8782 lib=conftest
8783 libobjs=conftest.$ac_objext
8784 deplibs=
8785 wl=$lt_prog_compiler_wl
8786 pic_flag=$lt_prog_compiler_pic
8787 compiler_flags=-v
8788 linker_flags=-v
8789 verstring=
8790 output_objdir=.
8791 libname=conftest
8792 lt_save_allow_undefined_flag=$allow_undefined_flag
8793 allow_undefined_flag=
8794 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8795 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8796 ac_status=$?
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 (exit $ac_status); }
8799 then
8800 archive_cmds_need_lc=no
8801 else
8802 archive_cmds_need_lc=yes
8804 allow_undefined_flag=$lt_save_allow_undefined_flag
8805 else
8806 cat conftest.err 1>&5
8808 $RM conftest*
8809 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8810 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8812 esac
8815 esac
8973 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8974 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8975 withGCC=$GCC
8976 if test "$withGCC" = yes; then
8977 case $host_os in
8978 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8979 *) lt_awk_arg="/^libraries:/" ;;
8980 esac
8981 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8982 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8983 # if the path contains ";" then we assume it to be the separator
8984 # otherwise default to the standard path separator (i.e. ":") - it is
8985 # assumed that no part of a normal pathname contains ";" but that should
8986 # okay in the real world where ";" in dirpaths is itself problematic.
8987 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8988 else
8989 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8991 # Ok, now we have the path, separated by spaces, we can step through it
8992 # and add multilib dir if necessary.
8993 lt_tmp_lt_search_path_spec=
8994 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8995 for lt_sys_path in $lt_search_path_spec; do
8996 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8997 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8998 else
8999 test -d "$lt_sys_path" && \
9000 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9002 done
9003 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9004 BEGIN {RS=" "; FS="/|\n";} {
9005 lt_foo="";
9006 lt_count=0;
9007 for (lt_i = NF; lt_i > 0; lt_i--) {
9008 if ($lt_i != "" && $lt_i != ".") {
9009 if ($lt_i == "..") {
9010 lt_count++;
9011 } else {
9012 if (lt_count == 0) {
9013 lt_foo="/" $lt_i lt_foo;
9014 } else {
9015 lt_count--;
9020 if (lt_foo != "") { lt_freq[lt_foo]++; }
9021 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9023 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9024 else
9025 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9027 library_names_spec=
9028 libname_spec='lib$name'
9029 soname_spec=
9030 shrext_cmds=".so"
9031 postinstall_cmds=
9032 postuninstall_cmds=
9033 finish_cmds=
9034 finish_eval=
9035 shlibpath_var=
9036 shlibpath_overrides_runpath=unknown
9037 version_type=none
9038 dynamic_linker="$host_os ld.so"
9039 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9040 need_lib_prefix=unknown
9041 hardcode_into_libs=no
9043 # when you set need_version to no, make sure it does not cause -set_version
9044 # flags to be left without arguments
9045 need_version=unknown
9047 case $host_os in
9048 aix3*)
9049 version_type=linux
9050 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9051 shlibpath_var=LIBPATH
9053 # AIX 3 has no versioning support, so we append a major version to the name.
9054 soname_spec='${libname}${release}${shared_ext}$major'
9057 aix[4-9]*)
9058 version_type=linux
9059 need_lib_prefix=no
9060 need_version=no
9061 hardcode_into_libs=yes
9062 if test "$host_cpu" = ia64; then
9063 # AIX 5 supports IA64
9064 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9065 shlibpath_var=LD_LIBRARY_PATH
9066 else
9067 # With GCC up to 2.95.x, collect2 would create an import file
9068 # for dependence libraries. The import file would start with
9069 # the line `#! .'. This would cause the generated library to
9070 # depend on `.', always an invalid library. This was fixed in
9071 # development snapshots of GCC prior to 3.0.
9072 case $host_os in
9073 aix4 | aix4.[01] | aix4.[01].*)
9074 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9075 echo ' yes '
9076 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9078 else
9079 can_build_shared=no
9082 esac
9083 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9084 # soname into executable. Probably we can add versioning support to
9085 # collect2, so additional links can be useful in future.
9086 if test "$aix_use_runtimelinking" = yes; then
9087 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9088 # instead of lib<name>.a to let people know that these are not
9089 # typical AIX shared libraries.
9090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9091 else
9092 # We preserve .a as extension for shared libraries through AIX4.2
9093 # and later when we are not doing run time linking.
9094 library_names_spec='${libname}${release}.a $libname.a'
9095 soname_spec='${libname}${release}${shared_ext}$major'
9097 shlibpath_var=LIBPATH
9101 amigaos*)
9102 if test "$host_cpu" = m68k; then
9103 library_names_spec='$libname.ixlibrary $libname.a'
9104 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9105 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9106 else
9107 dynamic_linker=no
9111 beos*)
9112 library_names_spec='${libname}${shared_ext}'
9113 dynamic_linker="$host_os ld.so"
9114 shlibpath_var=LIBRARY_PATH
9117 bsdi[45]*)
9118 version_type=linux
9119 need_version=no
9120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9121 soname_spec='${libname}${release}${shared_ext}$major'
9122 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9123 shlibpath_var=LD_LIBRARY_PATH
9124 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9125 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9126 # the default ld.so.conf also contains /usr/contrib/lib and
9127 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9128 # libtool to hard-code these into programs
9131 cygwin* | mingw* | pw32*)
9132 version_type=windows
9133 shrext_cmds=".dll"
9134 need_version=no
9135 need_lib_prefix=no
9137 case $withGCC,$host_os in
9138 yes,cygwin* | yes,mingw* | yes,pw32*)
9139 library_names_spec='$libname.dll.a'
9140 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9141 postinstall_cmds='base_file=`basename \${file}`~
9142 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9143 dldir=$destdir/`dirname \$dlpath`~
9144 test -d \$dldir || mkdir -p \$dldir~
9145 $install_prog $dir/$dlname \$dldir/$dlname~
9146 chmod a+x \$dldir/$dlname~
9147 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9148 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9150 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9151 dlpath=$dir/\$dldll~
9152 $RM \$dlpath'
9153 shlibpath_overrides_runpath=yes
9155 case $host_os in
9156 cygwin*)
9157 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9158 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9159 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9161 mingw*)
9162 # MinGW DLLs use traditional 'lib' prefix
9163 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9164 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9165 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9166 # It is most probably a Windows format PATH printed by
9167 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9168 # path with ; separators, and with drive letters. We can handle the
9169 # drive letters (cygwin fileutils understands them), so leave them,
9170 # especially as we might pass files found there to a mingw objdump,
9171 # which wouldn't understand a cygwinified path. Ahh.
9172 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9173 else
9174 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9177 pw32*)
9178 # pw32 DLLs use 'pw' prefix rather than 'lib'
9179 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9181 esac
9185 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9187 esac
9188 dynamic_linker='Win32 ld.exe'
9189 # FIXME: first we should search . and the directory the executable is in
9190 shlibpath_var=PATH
9193 darwin* | rhapsody*)
9194 dynamic_linker="$host_os dyld"
9195 version_type=darwin
9196 need_lib_prefix=no
9197 need_version=no
9198 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9199 soname_spec='${libname}${release}${major}$shared_ext'
9200 shlibpath_overrides_runpath=yes
9201 shlibpath_var=DYLD_LIBRARY_PATH
9202 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9204 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9205 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9208 dgux*)
9209 version_type=linux
9210 need_lib_prefix=no
9211 need_version=no
9212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9213 soname_spec='${libname}${release}${shared_ext}$major'
9214 shlibpath_var=LD_LIBRARY_PATH
9217 freebsd1*)
9218 dynamic_linker=no
9221 freebsd* | dragonfly*)
9222 # DragonFly does not have aout. When/if they implement a new
9223 # versioning mechanism, adjust this.
9224 if test -x /usr/bin/objformat; then
9225 objformat=`/usr/bin/objformat`
9226 else
9227 case $host_os in
9228 freebsd[123]*) objformat=aout ;;
9229 *) objformat=elf ;;
9230 esac
9232 version_type=freebsd-$objformat
9233 case $version_type in
9234 freebsd-elf*)
9235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9236 need_version=no
9237 need_lib_prefix=no
9239 freebsd-*)
9240 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9241 need_version=yes
9243 esac
9244 shlibpath_var=LD_LIBRARY_PATH
9245 case $host_os in
9246 freebsd2*)
9247 shlibpath_overrides_runpath=yes
9249 freebsd3.[01]* | freebsdelf3.[01]*)
9250 shlibpath_overrides_runpath=yes
9251 hardcode_into_libs=yes
9253 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9254 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9255 shlibpath_overrides_runpath=no
9256 hardcode_into_libs=yes
9258 *) # from 4.6 on, and DragonFly
9259 shlibpath_overrides_runpath=yes
9260 hardcode_into_libs=yes
9262 esac
9265 gnu*)
9266 version_type=linux
9267 need_lib_prefix=no
9268 need_version=no
9269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9270 soname_spec='${libname}${release}${shared_ext}$major'
9271 shlibpath_var=LD_LIBRARY_PATH
9272 hardcode_into_libs=yes
9275 hpux9* | hpux10* | hpux11*)
9276 # Give a soname corresponding to the major version so that dld.sl refuses to
9277 # link against other versions.
9278 version_type=sunos
9279 need_lib_prefix=no
9280 need_version=no
9281 case $host_cpu in
9282 ia64*)
9283 shrext_cmds='.so'
9284 hardcode_into_libs=yes
9285 dynamic_linker="$host_os dld.so"
9286 shlibpath_var=LD_LIBRARY_PATH
9287 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9289 soname_spec='${libname}${release}${shared_ext}$major'
9290 if test "X$HPUX_IA64_MODE" = X32; then
9291 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9292 else
9293 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9295 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9297 hppa*64*)
9298 shrext_cmds='.sl'
9299 hardcode_into_libs=yes
9300 dynamic_linker="$host_os dld.sl"
9301 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9302 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9304 soname_spec='${libname}${release}${shared_ext}$major'
9305 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9306 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9309 shrext_cmds='.sl'
9310 dynamic_linker="$host_os dld.sl"
9311 shlibpath_var=SHLIB_PATH
9312 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9314 soname_spec='${libname}${release}${shared_ext}$major'
9316 esac
9317 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9318 postinstall_cmds='chmod 555 $lib'
9321 interix[3-9]*)
9322 version_type=linux
9323 need_lib_prefix=no
9324 need_version=no
9325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9326 soname_spec='${libname}${release}${shared_ext}$major'
9327 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9328 shlibpath_var=LD_LIBRARY_PATH
9329 shlibpath_overrides_runpath=no
9330 hardcode_into_libs=yes
9333 irix5* | irix6* | nonstopux*)
9334 case $host_os in
9335 nonstopux*) version_type=nonstopux ;;
9337 if test "$lt_cv_prog_gnu_ld" = yes; then
9338 version_type=linux
9339 else
9340 version_type=irix
9341 fi ;;
9342 esac
9343 need_lib_prefix=no
9344 need_version=no
9345 soname_spec='${libname}${release}${shared_ext}$major'
9346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9347 case $host_os in
9348 irix5* | nonstopux*)
9349 libsuff= shlibsuff=
9352 case $LD in # libtool.m4 will add one of these switches to LD
9353 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9354 libsuff= shlibsuff= libmagic=32-bit;;
9355 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9356 libsuff=32 shlibsuff=N32 libmagic=N32;;
9357 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9358 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9359 *) libsuff= shlibsuff= libmagic=never-match;;
9360 esac
9362 esac
9363 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9364 shlibpath_overrides_runpath=no
9365 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9366 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9367 hardcode_into_libs=yes
9370 # No shared lib support for Linux oldld, aout, or coff.
9371 linux*oldld* | linux*aout* | linux*coff*)
9372 dynamic_linker=no
9375 # This must be Linux ELF.
9376 linux* | k*bsd*-gnu)
9377 version_type=linux
9378 need_lib_prefix=no
9379 need_version=no
9380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9381 soname_spec='${libname}${release}${shared_ext}$major'
9382 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9383 shlibpath_var=LD_LIBRARY_PATH
9384 shlibpath_overrides_runpath=no
9385 # Some binutils ld are patched to set DT_RUNPATH
9386 save_LDFLAGS=$LDFLAGS
9387 save_libdir=$libdir
9388 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9389 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9390 cat >conftest.$ac_ext <<_ACEOF
9391 /* confdefs.h. */
9392 _ACEOF
9393 cat confdefs.h >>conftest.$ac_ext
9394 cat >>conftest.$ac_ext <<_ACEOF
9395 /* end confdefs.h. */
9398 main ()
9402 return 0;
9404 _ACEOF
9405 rm -f conftest.$ac_objext conftest$ac_exeext
9406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9407 (eval $ac_link) 2>conftest.er1
9408 ac_status=$?
9409 grep -v '^ *+' conftest.er1 >conftest.err
9410 rm -f conftest.er1
9411 cat conftest.err >&5
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); } &&
9414 { ac_try='test -z "$ac_c_werror_flag"
9415 || test ! -s conftest.err'
9416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9417 (eval $ac_try) 2>&5
9418 ac_status=$?
9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 (exit $ac_status); }; } &&
9421 { ac_try='test -s conftest$ac_exeext'
9422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9423 (eval $ac_try) 2>&5
9424 ac_status=$?
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); }; }; then
9427 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9428 shlibpath_overrides_runpath=yes
9431 else
9432 echo "$as_me: failed program was:" >&5
9433 sed 's/^/| /' conftest.$ac_ext >&5
9436 rm -f conftest.err conftest.$ac_objext \
9437 conftest$ac_exeext conftest.$ac_ext
9438 LDFLAGS=$save_LDFLAGS
9439 libdir=$save_libdir
9441 # This implies no fast_install, which is unacceptable.
9442 # Some rework will be needed to allow for fast_install
9443 # before this can be enabled.
9444 hardcode_into_libs=yes
9446 # Append ld.so.conf contents to the search path
9447 if test -f /etc/ld.so.conf; then
9448 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9449 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9452 # We used to test for /lib/ld.so.1 and disable shared libraries on
9453 # powerpc, because MkLinux only supported shared libraries with the
9454 # GNU dynamic linker. Since this was broken with cross compilers,
9455 # most powerpc-linux boxes support dynamic linking these days and
9456 # people can always --disable-shared, the test was removed, and we
9457 # assume the GNU/Linux dynamic linker is in use.
9458 dynamic_linker='GNU/Linux ld.so'
9461 netbsd*)
9462 version_type=sunos
9463 need_lib_prefix=no
9464 need_version=no
9465 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9467 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9468 dynamic_linker='NetBSD (a.out) ld.so'
9469 else
9470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9471 soname_spec='${libname}${release}${shared_ext}$major'
9472 dynamic_linker='NetBSD ld.elf_so'
9474 shlibpath_var=LD_LIBRARY_PATH
9475 shlibpath_overrides_runpath=yes
9476 hardcode_into_libs=yes
9479 newsos6)
9480 version_type=linux
9481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9482 shlibpath_var=LD_LIBRARY_PATH
9483 shlibpath_overrides_runpath=yes
9486 *nto* | *qnx*)
9487 version_type=qnx
9488 need_lib_prefix=no
9489 need_version=no
9490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9491 soname_spec='${libname}${release}${shared_ext}$major'
9492 shlibpath_var=LD_LIBRARY_PATH
9493 shlibpath_overrides_runpath=no
9494 hardcode_into_libs=yes
9495 dynamic_linker='ldqnx.so'
9498 openbsd*)
9499 version_type=sunos
9500 sys_lib_dlsearch_path_spec="/usr/lib"
9501 need_lib_prefix=no
9502 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9503 case $host_os in
9504 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9505 *) need_version=no ;;
9506 esac
9507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9508 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9509 shlibpath_var=LD_LIBRARY_PATH
9510 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9511 case $host_os in
9512 openbsd2.[89] | openbsd2.[89].*)
9513 shlibpath_overrides_runpath=no
9516 shlibpath_overrides_runpath=yes
9518 esac
9519 else
9520 shlibpath_overrides_runpath=yes
9524 os2*)
9525 libname_spec='$name'
9526 shrext_cmds=".dll"
9527 need_lib_prefix=no
9528 library_names_spec='$libname${shared_ext} $libname.a'
9529 dynamic_linker='OS/2 ld.exe'
9530 shlibpath_var=LIBPATH
9533 osf3* | osf4* | osf5*)
9534 version_type=osf
9535 need_lib_prefix=no
9536 need_version=no
9537 soname_spec='${libname}${release}${shared_ext}$major'
9538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9539 shlibpath_var=LD_LIBRARY_PATH
9540 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9541 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9544 rdos*)
9545 dynamic_linker=no
9548 solaris*)
9549 version_type=linux
9550 need_lib_prefix=no
9551 need_version=no
9552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9553 soname_spec='${libname}${release}${shared_ext}$major'
9554 shlibpath_var=LD_LIBRARY_PATH
9555 shlibpath_overrides_runpath=yes
9556 hardcode_into_libs=yes
9557 # ldd complains unless libraries are executable
9558 postinstall_cmds='chmod +x $lib'
9561 sunos4*)
9562 version_type=sunos
9563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9564 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9565 shlibpath_var=LD_LIBRARY_PATH
9566 shlibpath_overrides_runpath=yes
9567 if test "$with_gnu_ld" = yes; then
9568 need_lib_prefix=no
9570 need_version=yes
9573 sysv4 | sysv4.3*)
9574 version_type=linux
9575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9576 soname_spec='${libname}${release}${shared_ext}$major'
9577 shlibpath_var=LD_LIBRARY_PATH
9578 case $host_vendor in
9579 sni)
9580 shlibpath_overrides_runpath=no
9581 need_lib_prefix=no
9582 runpath_var=LD_RUN_PATH
9584 siemens)
9585 need_lib_prefix=no
9587 motorola)
9588 need_lib_prefix=no
9589 need_version=no
9590 shlibpath_overrides_runpath=no
9591 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9593 esac
9596 sysv4*MP*)
9597 if test -d /usr/nec ;then
9598 version_type=linux
9599 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9600 soname_spec='$libname${shared_ext}.$major'
9601 shlibpath_var=LD_LIBRARY_PATH
9605 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9606 version_type=freebsd-elf
9607 need_lib_prefix=no
9608 need_version=no
9609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9610 soname_spec='${libname}${release}${shared_ext}$major'
9611 shlibpath_var=LD_LIBRARY_PATH
9612 shlibpath_overrides_runpath=yes
9613 hardcode_into_libs=yes
9614 if test "$with_gnu_ld" = yes; then
9615 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9616 else
9617 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9618 case $host_os in
9619 sco3.2v5*)
9620 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9622 esac
9624 sys_lib_dlsearch_path_spec='/usr/lib'
9627 tpf*)
9628 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9629 version_type=linux
9630 need_lib_prefix=no
9631 need_version=no
9632 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9633 shlibpath_var=LD_LIBRARY_PATH
9634 shlibpath_overrides_runpath=no
9635 hardcode_into_libs=yes
9638 uts4*)
9639 version_type=linux
9640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9641 soname_spec='${libname}${release}${shared_ext}$major'
9642 shlibpath_var=LD_LIBRARY_PATH
9646 dynamic_linker=no
9648 esac
9649 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9650 echo "${ECHO_T}$dynamic_linker" >&6
9651 test "$dynamic_linker" = no && can_build_shared=no
9653 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9654 if test "$GCC" = yes; then
9655 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9744 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9745 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9746 hardcode_action=
9747 if test -n "$hardcode_libdir_flag_spec" ||
9748 test -n "$runpath_var" ||
9749 test "X$hardcode_automatic" = "Xyes" ; then
9751 # We can hardcode non-existent directories.
9752 if test "$hardcode_direct" != no &&
9753 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9754 # have to relink, otherwise we might link with an installed library
9755 # when we should be linking with a yet-to-be-installed one
9756 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9757 test "$hardcode_minus_L" != no; then
9758 # Linking always hardcodes the temporary library directory.
9759 hardcode_action=relink
9760 else
9761 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9762 hardcode_action=immediate
9764 else
9765 # We cannot hardcode anything, or else we can only hardcode existing
9766 # directories.
9767 hardcode_action=unsupported
9769 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9770 echo "${ECHO_T}$hardcode_action" >&6
9772 if test "$hardcode_action" = relink ||
9773 test "$inherit_rpath" = yes; then
9774 # Fast installation is not supported
9775 enable_fast_install=no
9776 elif test "$shlibpath_overrides_runpath" = yes ||
9777 test "$enable_shared" = no; then
9778 # Fast installation is not necessary
9779 enable_fast_install=needless
9787 if test "x$enable_dlopen" != xyes; then
9788 enable_dlopen=unknown
9789 enable_dlopen_self=unknown
9790 enable_dlopen_self_static=unknown
9791 else
9792 lt_cv_dlopen=no
9793 lt_cv_dlopen_libs=
9795 case $host_os in
9796 beos*)
9797 lt_cv_dlopen="load_add_on"
9798 lt_cv_dlopen_libs=
9799 lt_cv_dlopen_self=yes
9802 mingw* | pw32*)
9803 lt_cv_dlopen="LoadLibrary"
9804 lt_cv_dlopen_libs=
9807 cygwin*)
9808 lt_cv_dlopen="dlopen"
9809 lt_cv_dlopen_libs=
9812 darwin*)
9813 # if libdl is installed we need to link against it
9814 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9815 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9816 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9817 echo $ECHO_N "(cached) $ECHO_C" >&6
9818 else
9819 ac_check_lib_save_LIBS=$LIBS
9820 LIBS="-ldl $LIBS"
9821 cat >conftest.$ac_ext <<_ACEOF
9822 /* confdefs.h. */
9823 _ACEOF
9824 cat confdefs.h >>conftest.$ac_ext
9825 cat >>conftest.$ac_ext <<_ACEOF
9826 /* end confdefs.h. */
9828 /* Override any gcc2 internal prototype to avoid an error. */
9829 #ifdef __cplusplus
9830 extern "C"
9831 #endif
9832 /* We use char because int might match the return type of a gcc2
9833 builtin and then its argument prototype would still apply. */
9834 char dlopen ();
9836 main ()
9838 dlopen ();
9840 return 0;
9842 _ACEOF
9843 rm -f conftest.$ac_objext conftest$ac_exeext
9844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9845 (eval $ac_link) 2>conftest.er1
9846 ac_status=$?
9847 grep -v '^ *+' conftest.er1 >conftest.err
9848 rm -f conftest.er1
9849 cat conftest.err >&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); } &&
9852 { ac_try='test -z "$ac_c_werror_flag"
9853 || test ! -s conftest.err'
9854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855 (eval $ac_try) 2>&5
9856 ac_status=$?
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); }; } &&
9859 { ac_try='test -s conftest$ac_exeext'
9860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9861 (eval $ac_try) 2>&5
9862 ac_status=$?
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); }; }; then
9865 ac_cv_lib_dl_dlopen=yes
9866 else
9867 echo "$as_me: failed program was:" >&5
9868 sed 's/^/| /' conftest.$ac_ext >&5
9870 ac_cv_lib_dl_dlopen=no
9872 rm -f conftest.err conftest.$ac_objext \
9873 conftest$ac_exeext conftest.$ac_ext
9874 LIBS=$ac_check_lib_save_LIBS
9876 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9877 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9878 if test $ac_cv_lib_dl_dlopen = yes; then
9879 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9880 else
9882 lt_cv_dlopen="dyld"
9883 lt_cv_dlopen_libs=
9884 lt_cv_dlopen_self=yes
9891 echo "$as_me:$LINENO: checking for shl_load" >&5
9892 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9893 if test "${ac_cv_func_shl_load+set}" = set; then
9894 echo $ECHO_N "(cached) $ECHO_C" >&6
9895 else
9896 cat >conftest.$ac_ext <<_ACEOF
9897 /* confdefs.h. */
9898 _ACEOF
9899 cat confdefs.h >>conftest.$ac_ext
9900 cat >>conftest.$ac_ext <<_ACEOF
9901 /* end confdefs.h. */
9902 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9904 #define shl_load innocuous_shl_load
9906 /* System header to define __stub macros and hopefully few prototypes,
9907 which can conflict with char shl_load (); below.
9908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9909 <limits.h> exists even on freestanding compilers. */
9911 #ifdef __STDC__
9912 # include <limits.h>
9913 #else
9914 # include <assert.h>
9915 #endif
9917 #undef shl_load
9919 /* Override any gcc2 internal prototype to avoid an error. */
9920 #ifdef __cplusplus
9921 extern "C"
9923 #endif
9924 /* We use char because int might match the return type of a gcc2
9925 builtin and then its argument prototype would still apply. */
9926 char shl_load ();
9927 /* The GNU C library defines this for functions which it implements
9928 to always fail with ENOSYS. Some functions are actually named
9929 something starting with __ and the normal name is an alias. */
9930 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9931 choke me
9932 #else
9933 char (*f) () = shl_load;
9934 #endif
9935 #ifdef __cplusplus
9937 #endif
9940 main ()
9942 return f != shl_load;
9944 return 0;
9946 _ACEOF
9947 rm -f conftest.$ac_objext conftest$ac_exeext
9948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9949 (eval $ac_link) 2>conftest.er1
9950 ac_status=$?
9951 grep -v '^ *+' conftest.er1 >conftest.err
9952 rm -f conftest.er1
9953 cat conftest.err >&5
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); } &&
9956 { ac_try='test -z "$ac_c_werror_flag"
9957 || test ! -s conftest.err'
9958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9959 (eval $ac_try) 2>&5
9960 ac_status=$?
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 (exit $ac_status); }; } &&
9963 { ac_try='test -s conftest$ac_exeext'
9964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9965 (eval $ac_try) 2>&5
9966 ac_status=$?
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); }; }; then
9969 ac_cv_func_shl_load=yes
9970 else
9971 echo "$as_me: failed program was:" >&5
9972 sed 's/^/| /' conftest.$ac_ext >&5
9974 ac_cv_func_shl_load=no
9976 rm -f conftest.err conftest.$ac_objext \
9977 conftest$ac_exeext conftest.$ac_ext
9979 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9980 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9981 if test $ac_cv_func_shl_load = yes; then
9982 lt_cv_dlopen="shl_load"
9983 else
9984 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9985 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9986 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9987 echo $ECHO_N "(cached) $ECHO_C" >&6
9988 else
9989 ac_check_lib_save_LIBS=$LIBS
9990 LIBS="-ldld $LIBS"
9991 cat >conftest.$ac_ext <<_ACEOF
9992 /* confdefs.h. */
9993 _ACEOF
9994 cat confdefs.h >>conftest.$ac_ext
9995 cat >>conftest.$ac_ext <<_ACEOF
9996 /* end confdefs.h. */
9998 /* Override any gcc2 internal prototype to avoid an error. */
9999 #ifdef __cplusplus
10000 extern "C"
10001 #endif
10002 /* We use char because int might match the return type of a gcc2
10003 builtin and then its argument prototype would still apply. */
10004 char shl_load ();
10006 main ()
10008 shl_load ();
10010 return 0;
10012 _ACEOF
10013 rm -f conftest.$ac_objext conftest$ac_exeext
10014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10015 (eval $ac_link) 2>conftest.er1
10016 ac_status=$?
10017 grep -v '^ *+' conftest.er1 >conftest.err
10018 rm -f conftest.er1
10019 cat conftest.err >&5
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); } &&
10022 { ac_try='test -z "$ac_c_werror_flag"
10023 || test ! -s conftest.err'
10024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10025 (eval $ac_try) 2>&5
10026 ac_status=$?
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); }; } &&
10029 { ac_try='test -s conftest$ac_exeext'
10030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10031 (eval $ac_try) 2>&5
10032 ac_status=$?
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); }; }; then
10035 ac_cv_lib_dld_shl_load=yes
10036 else
10037 echo "$as_me: failed program was:" >&5
10038 sed 's/^/| /' conftest.$ac_ext >&5
10040 ac_cv_lib_dld_shl_load=no
10042 rm -f conftest.err conftest.$ac_objext \
10043 conftest$ac_exeext conftest.$ac_ext
10044 LIBS=$ac_check_lib_save_LIBS
10046 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10047 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10048 if test $ac_cv_lib_dld_shl_load = yes; then
10049 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10050 else
10051 echo "$as_me:$LINENO: checking for dlopen" >&5
10052 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10053 if test "${ac_cv_func_dlopen+set}" = set; then
10054 echo $ECHO_N "(cached) $ECHO_C" >&6
10055 else
10056 cat >conftest.$ac_ext <<_ACEOF
10057 /* confdefs.h. */
10058 _ACEOF
10059 cat confdefs.h >>conftest.$ac_ext
10060 cat >>conftest.$ac_ext <<_ACEOF
10061 /* end confdefs.h. */
10062 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10064 #define dlopen innocuous_dlopen
10066 /* System header to define __stub macros and hopefully few prototypes,
10067 which can conflict with char dlopen (); below.
10068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10069 <limits.h> exists even on freestanding compilers. */
10071 #ifdef __STDC__
10072 # include <limits.h>
10073 #else
10074 # include <assert.h>
10075 #endif
10077 #undef dlopen
10079 /* Override any gcc2 internal prototype to avoid an error. */
10080 #ifdef __cplusplus
10081 extern "C"
10083 #endif
10084 /* We use char because int might match the return type of a gcc2
10085 builtin and then its argument prototype would still apply. */
10086 char dlopen ();
10087 /* The GNU C library defines this for functions which it implements
10088 to always fail with ENOSYS. Some functions are actually named
10089 something starting with __ and the normal name is an alias. */
10090 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10091 choke me
10092 #else
10093 char (*f) () = dlopen;
10094 #endif
10095 #ifdef __cplusplus
10097 #endif
10100 main ()
10102 return f != dlopen;
10104 return 0;
10106 _ACEOF
10107 rm -f conftest.$ac_objext conftest$ac_exeext
10108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10109 (eval $ac_link) 2>conftest.er1
10110 ac_status=$?
10111 grep -v '^ *+' conftest.er1 >conftest.err
10112 rm -f conftest.er1
10113 cat conftest.err >&5
10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); } &&
10116 { ac_try='test -z "$ac_c_werror_flag"
10117 || test ! -s conftest.err'
10118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10119 (eval $ac_try) 2>&5
10120 ac_status=$?
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); }; } &&
10123 { ac_try='test -s conftest$ac_exeext'
10124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10125 (eval $ac_try) 2>&5
10126 ac_status=$?
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); }; }; then
10129 ac_cv_func_dlopen=yes
10130 else
10131 echo "$as_me: failed program was:" >&5
10132 sed 's/^/| /' conftest.$ac_ext >&5
10134 ac_cv_func_dlopen=no
10136 rm -f conftest.err conftest.$ac_objext \
10137 conftest$ac_exeext conftest.$ac_ext
10139 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10140 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10141 if test $ac_cv_func_dlopen = yes; then
10142 lt_cv_dlopen="dlopen"
10143 else
10144 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10145 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10146 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10147 echo $ECHO_N "(cached) $ECHO_C" >&6
10148 else
10149 ac_check_lib_save_LIBS=$LIBS
10150 LIBS="-ldl $LIBS"
10151 cat >conftest.$ac_ext <<_ACEOF
10152 /* confdefs.h. */
10153 _ACEOF
10154 cat confdefs.h >>conftest.$ac_ext
10155 cat >>conftest.$ac_ext <<_ACEOF
10156 /* end confdefs.h. */
10158 /* Override any gcc2 internal prototype to avoid an error. */
10159 #ifdef __cplusplus
10160 extern "C"
10161 #endif
10162 /* We use char because int might match the return type of a gcc2
10163 builtin and then its argument prototype would still apply. */
10164 char dlopen ();
10166 main ()
10168 dlopen ();
10170 return 0;
10172 _ACEOF
10173 rm -f conftest.$ac_objext conftest$ac_exeext
10174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10175 (eval $ac_link) 2>conftest.er1
10176 ac_status=$?
10177 grep -v '^ *+' conftest.er1 >conftest.err
10178 rm -f conftest.er1
10179 cat conftest.err >&5
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); } &&
10182 { ac_try='test -z "$ac_c_werror_flag"
10183 || test ! -s conftest.err'
10184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10185 (eval $ac_try) 2>&5
10186 ac_status=$?
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); }; } &&
10189 { ac_try='test -s conftest$ac_exeext'
10190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10191 (eval $ac_try) 2>&5
10192 ac_status=$?
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); }; }; then
10195 ac_cv_lib_dl_dlopen=yes
10196 else
10197 echo "$as_me: failed program was:" >&5
10198 sed 's/^/| /' conftest.$ac_ext >&5
10200 ac_cv_lib_dl_dlopen=no
10202 rm -f conftest.err conftest.$ac_objext \
10203 conftest$ac_exeext conftest.$ac_ext
10204 LIBS=$ac_check_lib_save_LIBS
10206 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10207 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10208 if test $ac_cv_lib_dl_dlopen = yes; then
10209 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10210 else
10211 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10212 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10213 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10214 echo $ECHO_N "(cached) $ECHO_C" >&6
10215 else
10216 ac_check_lib_save_LIBS=$LIBS
10217 LIBS="-lsvld $LIBS"
10218 cat >conftest.$ac_ext <<_ACEOF
10219 /* confdefs.h. */
10220 _ACEOF
10221 cat confdefs.h >>conftest.$ac_ext
10222 cat >>conftest.$ac_ext <<_ACEOF
10223 /* end confdefs.h. */
10225 /* Override any gcc2 internal prototype to avoid an error. */
10226 #ifdef __cplusplus
10227 extern "C"
10228 #endif
10229 /* We use char because int might match the return type of a gcc2
10230 builtin and then its argument prototype would still apply. */
10231 char dlopen ();
10233 main ()
10235 dlopen ();
10237 return 0;
10239 _ACEOF
10240 rm -f conftest.$ac_objext conftest$ac_exeext
10241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10242 (eval $ac_link) 2>conftest.er1
10243 ac_status=$?
10244 grep -v '^ *+' conftest.er1 >conftest.err
10245 rm -f conftest.er1
10246 cat conftest.err >&5
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); } &&
10249 { ac_try='test -z "$ac_c_werror_flag"
10250 || test ! -s conftest.err'
10251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10252 (eval $ac_try) 2>&5
10253 ac_status=$?
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); }; } &&
10256 { ac_try='test -s conftest$ac_exeext'
10257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258 (eval $ac_try) 2>&5
10259 ac_status=$?
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); }; }; then
10262 ac_cv_lib_svld_dlopen=yes
10263 else
10264 echo "$as_me: failed program was:" >&5
10265 sed 's/^/| /' conftest.$ac_ext >&5
10267 ac_cv_lib_svld_dlopen=no
10269 rm -f conftest.err conftest.$ac_objext \
10270 conftest$ac_exeext conftest.$ac_ext
10271 LIBS=$ac_check_lib_save_LIBS
10273 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10274 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10275 if test $ac_cv_lib_svld_dlopen = yes; then
10276 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10277 else
10278 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10279 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10280 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10281 echo $ECHO_N "(cached) $ECHO_C" >&6
10282 else
10283 ac_check_lib_save_LIBS=$LIBS
10284 LIBS="-ldld $LIBS"
10285 cat >conftest.$ac_ext <<_ACEOF
10286 /* confdefs.h. */
10287 _ACEOF
10288 cat confdefs.h >>conftest.$ac_ext
10289 cat >>conftest.$ac_ext <<_ACEOF
10290 /* end confdefs.h. */
10292 /* Override any gcc2 internal prototype to avoid an error. */
10293 #ifdef __cplusplus
10294 extern "C"
10295 #endif
10296 /* We use char because int might match the return type of a gcc2
10297 builtin and then its argument prototype would still apply. */
10298 char dld_link ();
10300 main ()
10302 dld_link ();
10304 return 0;
10306 _ACEOF
10307 rm -f conftest.$ac_objext conftest$ac_exeext
10308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10309 (eval $ac_link) 2>conftest.er1
10310 ac_status=$?
10311 grep -v '^ *+' conftest.er1 >conftest.err
10312 rm -f conftest.er1
10313 cat conftest.err >&5
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); } &&
10316 { ac_try='test -z "$ac_c_werror_flag"
10317 || test ! -s conftest.err'
10318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319 (eval $ac_try) 2>&5
10320 ac_status=$?
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); }; } &&
10323 { ac_try='test -s conftest$ac_exeext'
10324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325 (eval $ac_try) 2>&5
10326 ac_status=$?
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); }; }; then
10329 ac_cv_lib_dld_dld_link=yes
10330 else
10331 echo "$as_me: failed program was:" >&5
10332 sed 's/^/| /' conftest.$ac_ext >&5
10334 ac_cv_lib_dld_dld_link=no
10336 rm -f conftest.err conftest.$ac_objext \
10337 conftest$ac_exeext conftest.$ac_ext
10338 LIBS=$ac_check_lib_save_LIBS
10340 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10341 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10342 if test $ac_cv_lib_dld_dld_link = yes; then
10343 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10362 esac
10364 if test "x$lt_cv_dlopen" != xno; then
10365 enable_dlopen=yes
10366 else
10367 enable_dlopen=no
10370 case $lt_cv_dlopen in
10371 dlopen)
10372 save_CPPFLAGS="$CPPFLAGS"
10373 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10375 save_LDFLAGS="$LDFLAGS"
10376 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10378 save_LIBS="$LIBS"
10379 LIBS="$lt_cv_dlopen_libs $LIBS"
10381 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10382 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10383 if test "${lt_cv_dlopen_self+set}" = set; then
10384 echo $ECHO_N "(cached) $ECHO_C" >&6
10385 else
10386 if test "$cross_compiling" = yes; then :
10387 lt_cv_dlopen_self=cross
10388 else
10389 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10390 lt_status=$lt_dlunknown
10391 cat > conftest.$ac_ext <<_LT_EOF
10392 #line 10392 "configure"
10393 #include "confdefs.h"
10395 #if HAVE_DLFCN_H
10396 #include <dlfcn.h>
10397 #endif
10399 #include <stdio.h>
10401 #ifdef RTLD_GLOBAL
10402 # define LT_DLGLOBAL RTLD_GLOBAL
10403 #else
10404 # ifdef DL_GLOBAL
10405 # define LT_DLGLOBAL DL_GLOBAL
10406 # else
10407 # define LT_DLGLOBAL 0
10408 # endif
10409 #endif
10411 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10412 find out it does not work in some platform. */
10413 #ifndef LT_DLLAZY_OR_NOW
10414 # ifdef RTLD_LAZY
10415 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10416 # else
10417 # ifdef DL_LAZY
10418 # define LT_DLLAZY_OR_NOW DL_LAZY
10419 # else
10420 # ifdef RTLD_NOW
10421 # define LT_DLLAZY_OR_NOW RTLD_NOW
10422 # else
10423 # ifdef DL_NOW
10424 # define LT_DLLAZY_OR_NOW DL_NOW
10425 # else
10426 # define LT_DLLAZY_OR_NOW 0
10427 # endif
10428 # endif
10429 # endif
10430 # endif
10431 #endif
10433 #ifdef __cplusplus
10434 extern "C" void exit (int);
10435 #endif
10437 void fnord() { int i=42;}
10438 int main ()
10440 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10441 int status = $lt_dlunknown;
10443 if (self)
10445 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10446 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10447 /* dlclose (self); */
10449 else
10450 puts (dlerror ());
10452 exit (status);
10454 _LT_EOF
10455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10456 (eval $ac_link) 2>&5
10457 ac_status=$?
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10460 (./conftest; exit; ) >&5 2>/dev/null
10461 lt_status=$?
10462 case x$lt_status in
10463 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10464 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10465 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10466 esac
10467 else :
10468 # compilation failed
10469 lt_cv_dlopen_self=no
10472 rm -fr conftest*
10476 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10477 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10479 if test "x$lt_cv_dlopen_self" = xyes; then
10480 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10481 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10482 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10483 if test "${lt_cv_dlopen_self_static+set}" = set; then
10484 echo $ECHO_N "(cached) $ECHO_C" >&6
10485 else
10486 if test "$cross_compiling" = yes; then :
10487 lt_cv_dlopen_self_static=cross
10488 else
10489 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10490 lt_status=$lt_dlunknown
10491 cat > conftest.$ac_ext <<_LT_EOF
10492 #line 10492 "configure"
10493 #include "confdefs.h"
10495 #if HAVE_DLFCN_H
10496 #include <dlfcn.h>
10497 #endif
10499 #include <stdio.h>
10501 #ifdef RTLD_GLOBAL
10502 # define LT_DLGLOBAL RTLD_GLOBAL
10503 #else
10504 # ifdef DL_GLOBAL
10505 # define LT_DLGLOBAL DL_GLOBAL
10506 # else
10507 # define LT_DLGLOBAL 0
10508 # endif
10509 #endif
10511 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10512 find out it does not work in some platform. */
10513 #ifndef LT_DLLAZY_OR_NOW
10514 # ifdef RTLD_LAZY
10515 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10516 # else
10517 # ifdef DL_LAZY
10518 # define LT_DLLAZY_OR_NOW DL_LAZY
10519 # else
10520 # ifdef RTLD_NOW
10521 # define LT_DLLAZY_OR_NOW RTLD_NOW
10522 # else
10523 # ifdef DL_NOW
10524 # define LT_DLLAZY_OR_NOW DL_NOW
10525 # else
10526 # define LT_DLLAZY_OR_NOW 0
10527 # endif
10528 # endif
10529 # endif
10530 # endif
10531 #endif
10533 #ifdef __cplusplus
10534 extern "C" void exit (int);
10535 #endif
10537 void fnord() { int i=42;}
10538 int main ()
10540 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10541 int status = $lt_dlunknown;
10543 if (self)
10545 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10546 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10547 /* dlclose (self); */
10549 else
10550 puts (dlerror ());
10552 exit (status);
10554 _LT_EOF
10555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10556 (eval $ac_link) 2>&5
10557 ac_status=$?
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10560 (./conftest; exit; ) >&5 2>/dev/null
10561 lt_status=$?
10562 case x$lt_status in
10563 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10564 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10565 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10566 esac
10567 else :
10568 # compilation failed
10569 lt_cv_dlopen_self_static=no
10572 rm -fr conftest*
10576 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10577 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10580 CPPFLAGS="$save_CPPFLAGS"
10581 LDFLAGS="$save_LDFLAGS"
10582 LIBS="$save_LIBS"
10584 esac
10586 case $lt_cv_dlopen_self in
10587 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10588 *) enable_dlopen_self=unknown ;;
10589 esac
10591 case $lt_cv_dlopen_self_static in
10592 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10593 *) enable_dlopen_self_static=unknown ;;
10594 esac
10613 striplib=
10614 old_striplib=
10615 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10616 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10617 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10618 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10619 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10620 echo "$as_me:$LINENO: result: yes" >&5
10621 echo "${ECHO_T}yes" >&6
10622 else
10623 # FIXME - insert some real tests, host_os isn't really good enough
10624 case $host_os in
10625 darwin*)
10626 if test -n "$STRIP" ; then
10627 striplib="$STRIP -x"
10628 old_striplib="$STRIP -S"
10629 echo "$as_me:$LINENO: result: yes" >&5
10630 echo "${ECHO_T}yes" >&6
10631 else
10632 echo "$as_me:$LINENO: result: no" >&5
10633 echo "${ECHO_T}no" >&6
10637 echo "$as_me:$LINENO: result: no" >&5
10638 echo "${ECHO_T}no" >&6
10640 esac
10654 # Report which library types will actually be built
10655 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10656 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10657 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10658 echo "${ECHO_T}$can_build_shared" >&6
10660 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10661 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10662 test "$can_build_shared" = "no" && enable_shared=no
10664 # On AIX, shared libraries and static libraries use the same namespace, and
10665 # are all built from PIC.
10666 case $host_os in
10667 aix3*)
10668 test "$enable_shared" = yes && enable_static=no
10669 if test -n "$RANLIB"; then
10670 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10671 postinstall_cmds='$RANLIB $lib'
10675 aix[4-9]*)
10676 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10677 test "$enable_shared" = yes && enable_static=no
10680 esac
10681 echo "$as_me:$LINENO: result: $enable_shared" >&5
10682 echo "${ECHO_T}$enable_shared" >&6
10684 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10685 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10686 # Make sure either enable_shared or enable_static is yes.
10687 test "$enable_shared" = yes || enable_static=yes
10688 echo "$as_me:$LINENO: result: $enable_static" >&5
10689 echo "${ECHO_T}$enable_static" >&6
10695 ac_ext=c
10696 ac_cpp='$CPP $CPPFLAGS'
10697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10701 CC="$lt_save_CC"
10715 ac_config_commands="$ac_config_commands libtool"
10720 # Only expand once:
10724 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
10725 if test "${enable_64_bit_bfd+set}" = set; then
10726 enableval="$enable_64_bit_bfd"
10727 case "${enableval}" in
10728 yes) want64=true ;;
10729 no) want64=false ;;
10730 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
10731 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
10732 { (exit 1); exit 1; }; } ;;
10733 esac
10734 else
10735 want64=false
10737 # Check whether --enable-targets or --disable-targets was given.
10738 if test "${enable_targets+set}" = set; then
10739 enableval="$enable_targets"
10740 case "${enableval}" in
10741 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10742 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10743 { (exit 1); exit 1; }; }
10745 no) enable_targets= ;;
10746 *) enable_targets=$enableval ;;
10747 esac
10749 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10750 if test "${enable_commonbfdlib+set}" = set; then
10751 enableval="$enable_commonbfdlib"
10752 case "${enableval}" in
10753 yes) commonbfdlib=true ;;
10754 no) commonbfdlib=false ;;
10755 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
10756 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10757 { (exit 1); exit 1; }; } ;;
10758 esac
10761 # Check whether --with-mmap or --without-mmap was given.
10762 if test "${with_mmap+set}" = set; then
10763 withval="$with_mmap"
10764 case "${withval}" in
10765 yes) want_mmap=true ;;
10766 no) want_mmap=false ;;
10767 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
10768 echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
10769 { (exit 1); exit 1; }; } ;;
10770 esac
10771 else
10772 want_mmap=false
10774 # Check whether --enable-secureplt or --disable-secureplt was given.
10775 if test "${enable_secureplt+set}" = set; then
10776 enableval="$enable_secureplt"
10777 case "${enableval}" in
10778 yes) use_secureplt=true ;;
10779 no) use_secureplt=false ;;
10780 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
10781 echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
10782 { (exit 1); exit 1; }; } ;;
10783 esac
10784 else
10785 use_secureplt=false
10786 fi; if test $use_secureplt = true; then
10788 cat >>confdefs.h <<\_ACEOF
10789 #define USE_SECUREPLT 1
10790 _ACEOF
10794 DEBUGDIR=${libdir}/debug
10796 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
10797 if test "${with_separate_debug_dir+set}" = set; then
10798 withval="$with_separate_debug_dir"
10799 DEBUGDIR="${withval}"
10803 # Check to see if we should allow the generation of
10804 # symbols with the ELF standard's STT_COMMON type.
10805 # Check whether --enable-elf-stt-common or --disable-elf-stt-common was given.
10806 if test "${enable_elf_stt_common+set}" = set; then
10807 enableval="$enable_elf_stt_common"
10808 case "${enableval}" in
10809 yes) want_elf_stt_common=true ;;
10810 no) want_elf_stt_common=false ;;
10811 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for ELF STT_COMMON option" >&5
10812 echo "$as_me: error: bad value ${enableval} for ELF STT_COMMON option" >&2;}
10813 { (exit 1); exit 1; }; } ;;
10814 esac
10815 else
10816 # We have to choose a default behaviour. For native builds we could
10817 # test whether the loader supports the STT_COMMON type, but that would
10818 # mean that built binaries could not be exported to older systems where
10819 # the loader does not support it. So by default we always choose to
10820 # disable this feature.
10821 want_elf_stt_common=false
10822 fi; if test $want_elf_stt_common = true; then
10824 cat >>confdefs.h <<\_ACEOF
10825 #define USE_STT_COMMON 1
10826 _ACEOF
10832 # Check whether --with-pkgversion or --without-pkgversion was given.
10833 if test "${with_pkgversion+set}" = set; then
10834 withval="$with_pkgversion"
10835 case "$withval" in
10836 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
10837 echo "$as_me: error: package version not specified" >&2;}
10838 { (exit 1); exit 1; }; } ;;
10839 no) PKGVERSION= ;;
10840 *) PKGVERSION="($withval) " ;;
10841 esac
10842 else
10843 PKGVERSION="(GNU Binutils) "
10850 # Check whether --with-bugurl or --without-bugurl was given.
10851 if test "${with_bugurl+set}" = set; then
10852 withval="$with_bugurl"
10853 case "$withval" in
10854 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
10855 echo "$as_me: error: bug URL not specified" >&2;}
10856 { (exit 1); exit 1; }; } ;;
10857 no) BUGURL=
10859 *) BUGURL="$withval"
10861 esac
10862 else
10863 BUGURL="http://www.sourceware.org/bugzilla/"
10866 case ${BUGURL} in
10868 REPORT_BUGS_TO=
10869 REPORT_BUGS_TEXI=
10872 REPORT_BUGS_TO="<$BUGURL>"
10873 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
10875 esac;
10881 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10883 # Check whether --enable-werror or --disable-werror was given.
10884 if test "${enable_werror+set}" = set; then
10885 enableval="$enable_werror"
10886 case "${enableval}" in
10887 yes | y) ERROR_ON_WARNING="yes" ;;
10888 no | n) ERROR_ON_WARNING="no" ;;
10889 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10890 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10891 { (exit 1); exit 1; }; } ;;
10892 esac
10895 # Enable -Wno-format by default when using gcc on mingw
10896 case "${host}" in
10897 *-*-mingw32*)
10898 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10899 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
10902 *) ;;
10903 esac
10905 # Enable -Werror by default when using gcc
10906 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10907 ERROR_ON_WARNING=yes
10910 NO_WERROR=
10911 if test "${ERROR_ON_WARNING}" = yes ; then
10912 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10913 NO_WERROR="-Wno-error"
10916 if test "${GCC}" = yes ; then
10917 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10920 # Check whether --enable-build-warnings or --disable-build-warnings was given.
10921 if test "${enable_build_warnings+set}" = set; then
10922 enableval="$enable_build_warnings"
10923 case "${enableval}" in
10924 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10925 no) if test "${GCC}" = yes ; then
10926 WARN_CFLAGS="-w"
10927 fi;;
10928 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10929 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10930 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10931 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10932 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10933 esac
10936 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10937 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
10944 ac_config_headers="$ac_config_headers config.h:config.in"
10947 if test -z "$target" ; then
10948 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
10949 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
10950 { (exit 1); exit 1; }; }
10953 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10954 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10955 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10956 if test "${enable_maintainer_mode+set}" = set; then
10957 enableval="$enable_maintainer_mode"
10958 USE_MAINTAINER_MODE=$enableval
10959 else
10960 USE_MAINTAINER_MODE=no
10962 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10963 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
10966 if test $USE_MAINTAINER_MODE = yes; then
10967 MAINTAINER_MODE_TRUE=
10968 MAINTAINER_MODE_FALSE='#'
10969 else
10970 MAINTAINER_MODE_TRUE='#'
10971 MAINTAINER_MODE_FALSE=
10974 MAINT=$MAINTAINER_MODE_TRUE
10979 if false; then
10980 GENINSRC_NEVER_TRUE=
10981 GENINSRC_NEVER_FALSE='#'
10982 else
10983 GENINSRC_NEVER_TRUE='#'
10984 GENINSRC_NEVER_FALSE=
10987 case ${build_alias} in
10988 "") build_noncanonical=${build} ;;
10989 *) build_noncanonical=${build_alias} ;;
10990 esac
10992 case ${host_alias} in
10993 "") host_noncanonical=${build_noncanonical} ;;
10994 *) host_noncanonical=${host_alias} ;;
10995 esac
10997 case ${target_alias} in
10998 "") target_noncanonical=${host_noncanonical} ;;
10999 *) target_noncanonical=${target_alias} ;;
11000 esac
11002 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
11003 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
11004 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
11005 if test "${enable_install_libbfd+set}" = set; then
11006 enableval="$enable_install_libbfd"
11007 install_libbfd_p=$enableval
11008 else
11009 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
11010 install_libbfd_p=yes
11011 else
11012 install_libbfd_p=no
11015 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
11016 echo "${ECHO_T}$install_libbfd_p" >&6
11019 if test $install_libbfd_p = yes; then
11020 INSTALL_LIBBFD_TRUE=
11021 INSTALL_LIBBFD_FALSE='#'
11022 else
11023 INSTALL_LIBBFD_TRUE='#'
11024 INSTALL_LIBBFD_FALSE=
11027 # Need _noncanonical variables for this.
11032 # libbfd.a is a host library containing target dependent code
11033 bfdlibdir='$(libdir)'
11034 bfdincludedir='$(includedir)'
11035 if test "${host}" != "${target}"; then
11036 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
11037 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
11045 host64=false
11046 target64=false
11047 bfd_default_target_size=32
11049 # host stuff:
11051 ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi"
11052 # If we haven't got the data from the intl directory,
11053 # assume NLS is disabled.
11054 USE_NLS=no
11055 LIBINTL=
11056 LIBINTL_DEP=
11057 INCINTL=
11058 XGETTEXT=
11059 GMSGFMT=
11060 POSUB=
11062 if test -f ../intl/config.intl; then
11063 . ../intl/config.intl
11065 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11066 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11067 if test x"$USE_NLS" != xyes; then
11068 echo "$as_me:$LINENO: result: no" >&5
11069 echo "${ECHO_T}no" >&6
11070 else
11071 echo "$as_me:$LINENO: result: yes" >&5
11072 echo "${ECHO_T}yes" >&6
11074 cat >>confdefs.h <<\_ACEOF
11075 #define ENABLE_NLS 1
11076 _ACEOF
11079 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11080 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
11081 # Look for .po and .gmo files in the source directory.
11082 CATALOGS=
11083 XLINGUAS=
11084 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11085 # If there aren't any .gmo files the shell will give us the
11086 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11087 # weeded out.
11088 case "$cat" in *\**)
11089 continue;;
11090 esac
11091 # The quadruple backslash is collapsed to a double backslash
11092 # by the backticks, then collapsed again by the double quotes,
11093 # leaving us with one backslash in the sed expression (right
11094 # before the dot that mustn't act as a wildcard).
11095 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11096 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11097 # The user is allowed to set LINGUAS to a list of languages to
11098 # install catalogs for. If it's empty that means "all of them."
11099 if test "x$LINGUAS" = x; then
11100 CATALOGS="$CATALOGS $cat"
11101 XLINGUAS="$XLINGUAS $lang"
11102 else
11103 case "$LINGUAS" in *$lang*)
11104 CATALOGS="$CATALOGS $cat"
11105 XLINGUAS="$XLINGUAS $lang"
11107 esac
11109 done
11110 LINGUAS="$XLINGUAS"
11111 echo "$as_me:$LINENO: result: $LINGUAS" >&5
11112 echo "${ECHO_T}$LINGUAS" >&6
11115 DATADIRNAME=share
11117 INSTOBJEXT=.mo
11119 GENCAT=gencat
11121 CATOBJEXT=.gmo
11125 MKINSTALLDIRS=
11126 if test -n "$ac_aux_dir"; then
11127 case "$ac_aux_dir" in
11128 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11129 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11130 esac
11132 if test -z "$MKINSTALLDIRS"; then
11133 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11138 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11139 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11140 # Check whether --enable-nls or --disable-nls was given.
11141 if test "${enable_nls+set}" = set; then
11142 enableval="$enable_nls"
11143 USE_NLS=$enableval
11144 else
11145 USE_NLS=yes
11147 echo "$as_me:$LINENO: result: $USE_NLS" >&5
11148 echo "${ECHO_T}$USE_NLS" >&6
11155 # Prepare PATH_SEPARATOR.
11156 # The user is always right.
11157 if test "${PATH_SEPARATOR+set}" != set; then
11158 echo "#! /bin/sh" >conf$$.sh
11159 echo "exit 0" >>conf$$.sh
11160 chmod +x conf$$.sh
11161 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11162 PATH_SEPARATOR=';'
11163 else
11164 PATH_SEPARATOR=:
11166 rm -f conf$$.sh
11169 # Find out how to test for executable files. Don't use a zero-byte file,
11170 # as systems may use methods other than mode bits to determine executability.
11171 cat >conf$$.file <<_ASEOF
11172 #! /bin/sh
11173 exit 0
11174 _ASEOF
11175 chmod +x conf$$.file
11176 if test -x conf$$.file >/dev/null 2>&1; then
11177 ac_executable_p="test -x"
11178 else
11179 ac_executable_p="test -f"
11181 rm -f conf$$.file
11183 # Extract the first word of "msgfmt", so it can be a program name with args.
11184 set dummy msgfmt; ac_word=$2
11185 echo "$as_me:$LINENO: checking for $ac_word" >&5
11186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11187 if test "${ac_cv_path_MSGFMT+set}" = set; then
11188 echo $ECHO_N "(cached) $ECHO_C" >&6
11189 else
11190 case "$MSGFMT" in
11191 [\\/]* | ?:[\\/]*)
11192 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11195 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11196 for ac_dir in $PATH; do
11197 IFS="$ac_save_IFS"
11198 test -z "$ac_dir" && ac_dir=.
11199 for ac_exec_ext in '' $ac_executable_extensions; do
11200 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11201 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11202 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11203 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11204 break 2
11207 done
11208 done
11209 IFS="$ac_save_IFS"
11210 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11212 esac
11214 MSGFMT="$ac_cv_path_MSGFMT"
11215 if test "$MSGFMT" != ":"; then
11216 echo "$as_me:$LINENO: result: $MSGFMT" >&5
11217 echo "${ECHO_T}$MSGFMT" >&6
11218 else
11219 echo "$as_me:$LINENO: result: no" >&5
11220 echo "${ECHO_T}no" >&6
11223 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11224 set dummy gmsgfmt; ac_word=$2
11225 echo "$as_me:$LINENO: checking for $ac_word" >&5
11226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11227 if test "${ac_cv_path_GMSGFMT+set}" = set; then
11228 echo $ECHO_N "(cached) $ECHO_C" >&6
11229 else
11230 case $GMSGFMT in
11231 [\\/]* | ?:[\\/]*)
11232 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11236 for as_dir in $PATH
11238 IFS=$as_save_IFS
11239 test -z "$as_dir" && as_dir=.
11240 for ac_exec_ext in '' $ac_executable_extensions; do
11241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11242 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11244 break 2
11246 done
11247 done
11249 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11251 esac
11253 GMSGFMT=$ac_cv_path_GMSGFMT
11255 if test -n "$GMSGFMT"; then
11256 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
11257 echo "${ECHO_T}$GMSGFMT" >&6
11258 else
11259 echo "$as_me:$LINENO: result: no" >&5
11260 echo "${ECHO_T}no" >&6
11265 # Prepare PATH_SEPARATOR.
11266 # The user is always right.
11267 if test "${PATH_SEPARATOR+set}" != set; then
11268 echo "#! /bin/sh" >conf$$.sh
11269 echo "exit 0" >>conf$$.sh
11270 chmod +x conf$$.sh
11271 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11272 PATH_SEPARATOR=';'
11273 else
11274 PATH_SEPARATOR=:
11276 rm -f conf$$.sh
11279 # Find out how to test for executable files. Don't use a zero-byte file,
11280 # as systems may use methods other than mode bits to determine executability.
11281 cat >conf$$.file <<_ASEOF
11282 #! /bin/sh
11283 exit 0
11284 _ASEOF
11285 chmod +x conf$$.file
11286 if test -x conf$$.file >/dev/null 2>&1; then
11287 ac_executable_p="test -x"
11288 else
11289 ac_executable_p="test -f"
11291 rm -f conf$$.file
11293 # Extract the first word of "xgettext", so it can be a program name with args.
11294 set dummy xgettext; ac_word=$2
11295 echo "$as_me:$LINENO: checking for $ac_word" >&5
11296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11297 if test "${ac_cv_path_XGETTEXT+set}" = set; then
11298 echo $ECHO_N "(cached) $ECHO_C" >&6
11299 else
11300 case "$XGETTEXT" in
11301 [\\/]* | ?:[\\/]*)
11302 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11305 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11306 for ac_dir in $PATH; do
11307 IFS="$ac_save_IFS"
11308 test -z "$ac_dir" && ac_dir=.
11309 for ac_exec_ext in '' $ac_executable_extensions; do
11310 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11311 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11312 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11313 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11314 break 2
11317 done
11318 done
11319 IFS="$ac_save_IFS"
11320 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11322 esac
11324 XGETTEXT="$ac_cv_path_XGETTEXT"
11325 if test "$XGETTEXT" != ":"; then
11326 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11327 echo "${ECHO_T}$XGETTEXT" >&6
11328 else
11329 echo "$as_me:$LINENO: result: no" >&5
11330 echo "${ECHO_T}no" >&6
11333 rm -f messages.po
11336 # Prepare PATH_SEPARATOR.
11337 # The user is always right.
11338 if test "${PATH_SEPARATOR+set}" != set; then
11339 echo "#! /bin/sh" >conf$$.sh
11340 echo "exit 0" >>conf$$.sh
11341 chmod +x conf$$.sh
11342 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11343 PATH_SEPARATOR=';'
11344 else
11345 PATH_SEPARATOR=:
11347 rm -f conf$$.sh
11350 # Find out how to test for executable files. Don't use a zero-byte file,
11351 # as systems may use methods other than mode bits to determine executability.
11352 cat >conf$$.file <<_ASEOF
11353 #! /bin/sh
11354 exit 0
11355 _ASEOF
11356 chmod +x conf$$.file
11357 if test -x conf$$.file >/dev/null 2>&1; then
11358 ac_executable_p="test -x"
11359 else
11360 ac_executable_p="test -f"
11362 rm -f conf$$.file
11364 # Extract the first word of "msgmerge", so it can be a program name with args.
11365 set dummy msgmerge; ac_word=$2
11366 echo "$as_me:$LINENO: checking for $ac_word" >&5
11367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11368 if test "${ac_cv_path_MSGMERGE+set}" = set; then
11369 echo $ECHO_N "(cached) $ECHO_C" >&6
11370 else
11371 case "$MSGMERGE" in
11372 [\\/]* | ?:[\\/]*)
11373 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11376 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11377 for ac_dir in $PATH; do
11378 IFS="$ac_save_IFS"
11379 test -z "$ac_dir" && ac_dir=.
11380 for ac_exec_ext in '' $ac_executable_extensions; do
11381 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11382 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11383 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11384 break 2
11387 done
11388 done
11389 IFS="$ac_save_IFS"
11390 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11392 esac
11394 MSGMERGE="$ac_cv_path_MSGMERGE"
11395 if test "$MSGMERGE" != ":"; then
11396 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11397 echo "${ECHO_T}$MSGMERGE" >&6
11398 else
11399 echo "$as_me:$LINENO: result: no" >&5
11400 echo "${ECHO_T}no" >&6
11404 if test "$GMSGFMT" != ":"; then
11405 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11406 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11408 else
11409 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11410 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11411 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11412 GMSGFMT=":"
11416 if test "$XGETTEXT" != ":"; then
11417 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11418 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11420 else
11421 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11422 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11423 XGETTEXT=":"
11425 rm -f messages.po
11428 ac_config_commands="$ac_config_commands default-1"
11432 # Permit host specific settings.
11433 . ${srcdir}/configure.host
11436 # Find a good install program. We prefer a C program (faster),
11437 # so one script is as good as another. But avoid the broken or
11438 # incompatible versions:
11439 # SysV /etc/install, /usr/sbin/install
11440 # SunOS /usr/etc/install
11441 # IRIX /sbin/install
11442 # AIX /bin/install
11443 # AmigaOS /C/install, which installs bootblocks on floppy discs
11444 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11445 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11446 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11447 # OS/2's system install, which has a completely different semantic
11448 # ./install, which can be erroneously created by make from ./install.sh.
11449 # Reject install programs that cannot install multiple files.
11450 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11451 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11452 if test -z "$INSTALL"; then
11453 if test "${ac_cv_path_install+set}" = set; then
11454 echo $ECHO_N "(cached) $ECHO_C" >&6
11455 else
11456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11457 for as_dir in $PATH
11459 IFS=$as_save_IFS
11460 test -z "$as_dir" && as_dir=.
11461 # Account for people who put trailing slashes in PATH elements.
11462 case $as_dir/ in
11463 ./ | .// | /cC/* | \
11464 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11465 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11466 /usr/ucb/* ) ;;
11468 # OSF1 and SCO ODT 3.0 have their own names for install.
11469 # Don't use installbsd from OSF since it installs stuff as root
11470 # by default.
11471 for ac_prog in ginstall scoinst install; do
11472 for ac_exec_ext in '' $ac_executable_extensions; do
11473 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11474 if test $ac_prog = install &&
11475 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11476 # AIX install. It has an incompatible calling convention.
11478 elif test $ac_prog = install &&
11479 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11480 # program-specific install script used by HP pwplus--don't use.
11482 else
11483 rm -rf conftest.one conftest.two conftest.dir
11484 echo one > conftest.one
11485 echo two > conftest.two
11486 mkdir conftest.dir
11487 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11488 test -s conftest.one && test -s conftest.two &&
11489 test -s conftest.dir/conftest.one &&
11490 test -s conftest.dir/conftest.two
11491 then
11492 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11493 break 3
11497 done
11498 done
11500 esac
11501 done
11503 rm -rf conftest.one conftest.two conftest.dir
11506 if test "${ac_cv_path_install+set}" = set; then
11507 INSTALL=$ac_cv_path_install
11508 else
11509 # As a last resort, use the slow shell script. Don't cache a
11510 # value for INSTALL within a source directory, because that will
11511 # break other packages using the cache if that directory is
11512 # removed, or if the value is a relative name.
11513 INSTALL=$ac_install_sh
11516 echo "$as_me:$LINENO: result: $INSTALL" >&5
11517 echo "${ECHO_T}$INSTALL" >&6
11519 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11520 # It thinks the first close brace ends the variable substitution.
11521 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11523 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11525 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11528 BFD_HOST_64BIT_LONG=0
11529 BFD_HOST_64BIT_LONG_LONG=0
11530 BFD_HOST_64_BIT_DEFINED=0
11531 BFD_HOST_64_BIT=
11532 BFD_HOST_U_64_BIT=
11533 BFD_HOSTPTR_T="unsigned long"
11535 echo "$as_me:$LINENO: checking for long long" >&5
11536 echo $ECHO_N "checking for long long... $ECHO_C" >&6
11537 if test "${ac_cv_type_long_long+set}" = set; then
11538 echo $ECHO_N "(cached) $ECHO_C" >&6
11539 else
11540 cat >conftest.$ac_ext <<_ACEOF
11541 /* confdefs.h. */
11542 _ACEOF
11543 cat confdefs.h >>conftest.$ac_ext
11544 cat >>conftest.$ac_ext <<_ACEOF
11545 /* end confdefs.h. */
11546 $ac_includes_default
11548 main ()
11550 if ((long long *) 0)
11551 return 0;
11552 if (sizeof (long long))
11553 return 0;
11555 return 0;
11557 _ACEOF
11558 rm -f conftest.$ac_objext
11559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11560 (eval $ac_compile) 2>conftest.er1
11561 ac_status=$?
11562 grep -v '^ *+' conftest.er1 >conftest.err
11563 rm -f conftest.er1
11564 cat conftest.err >&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); } &&
11567 { ac_try='test -z "$ac_c_werror_flag"
11568 || test ! -s conftest.err'
11569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11570 (eval $ac_try) 2>&5
11571 ac_status=$?
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); }; } &&
11574 { ac_try='test -s conftest.$ac_objext'
11575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11576 (eval $ac_try) 2>&5
11577 ac_status=$?
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); }; }; then
11580 ac_cv_type_long_long=yes
11581 else
11582 echo "$as_me: failed program was:" >&5
11583 sed 's/^/| /' conftest.$ac_ext >&5
11585 ac_cv_type_long_long=no
11587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11589 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11590 echo "${ECHO_T}$ac_cv_type_long_long" >&6
11592 echo "$as_me:$LINENO: checking size of long long" >&5
11593 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
11594 if test "${ac_cv_sizeof_long_long+set}" = set; then
11595 echo $ECHO_N "(cached) $ECHO_C" >&6
11596 else
11597 if test "$ac_cv_type_long_long" = yes; then
11598 # The cast to unsigned long works around a bug in the HP C Compiler
11599 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11600 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11601 # This bug is HP SR number 8606223364.
11602 if test "$cross_compiling" = yes; then
11603 # Depending upon the size, compute the lo and hi bounds.
11604 cat >conftest.$ac_ext <<_ACEOF
11605 /* confdefs.h. */
11606 _ACEOF
11607 cat confdefs.h >>conftest.$ac_ext
11608 cat >>conftest.$ac_ext <<_ACEOF
11609 /* end confdefs.h. */
11610 $ac_includes_default
11612 main ()
11614 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
11615 test_array [0] = 0
11618 return 0;
11620 _ACEOF
11621 rm -f conftest.$ac_objext
11622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11623 (eval $ac_compile) 2>conftest.er1
11624 ac_status=$?
11625 grep -v '^ *+' conftest.er1 >conftest.err
11626 rm -f conftest.er1
11627 cat conftest.err >&5
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); } &&
11630 { ac_try='test -z "$ac_c_werror_flag"
11631 || test ! -s conftest.err'
11632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633 (eval $ac_try) 2>&5
11634 ac_status=$?
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; } &&
11637 { ac_try='test -s conftest.$ac_objext'
11638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11639 (eval $ac_try) 2>&5
11640 ac_status=$?
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); }; }; then
11643 ac_lo=0 ac_mid=0
11644 while :; do
11645 cat >conftest.$ac_ext <<_ACEOF
11646 /* confdefs.h. */
11647 _ACEOF
11648 cat confdefs.h >>conftest.$ac_ext
11649 cat >>conftest.$ac_ext <<_ACEOF
11650 /* end confdefs.h. */
11651 $ac_includes_default
11653 main ()
11655 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11656 test_array [0] = 0
11659 return 0;
11661 _ACEOF
11662 rm -f conftest.$ac_objext
11663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11664 (eval $ac_compile) 2>conftest.er1
11665 ac_status=$?
11666 grep -v '^ *+' conftest.er1 >conftest.err
11667 rm -f conftest.er1
11668 cat conftest.err >&5
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); } &&
11671 { ac_try='test -z "$ac_c_werror_flag"
11672 || test ! -s conftest.err'
11673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11674 (eval $ac_try) 2>&5
11675 ac_status=$?
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); }; } &&
11678 { ac_try='test -s conftest.$ac_objext'
11679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11680 (eval $ac_try) 2>&5
11681 ac_status=$?
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); }; }; then
11684 ac_hi=$ac_mid; break
11685 else
11686 echo "$as_me: failed program was:" >&5
11687 sed 's/^/| /' conftest.$ac_ext >&5
11689 ac_lo=`expr $ac_mid + 1`
11690 if test $ac_lo -le $ac_mid; then
11691 ac_lo= ac_hi=
11692 break
11694 ac_mid=`expr 2 '*' $ac_mid + 1`
11696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11697 done
11698 else
11699 echo "$as_me: failed program was:" >&5
11700 sed 's/^/| /' conftest.$ac_ext >&5
11702 cat >conftest.$ac_ext <<_ACEOF
11703 /* confdefs.h. */
11704 _ACEOF
11705 cat confdefs.h >>conftest.$ac_ext
11706 cat >>conftest.$ac_ext <<_ACEOF
11707 /* end confdefs.h. */
11708 $ac_includes_default
11710 main ()
11712 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
11713 test_array [0] = 0
11716 return 0;
11718 _ACEOF
11719 rm -f conftest.$ac_objext
11720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11721 (eval $ac_compile) 2>conftest.er1
11722 ac_status=$?
11723 grep -v '^ *+' conftest.er1 >conftest.err
11724 rm -f conftest.er1
11725 cat conftest.err >&5
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); } &&
11728 { ac_try='test -z "$ac_c_werror_flag"
11729 || test ! -s conftest.err'
11730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11731 (eval $ac_try) 2>&5
11732 ac_status=$?
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); }; } &&
11735 { ac_try='test -s conftest.$ac_objext'
11736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11737 (eval $ac_try) 2>&5
11738 ac_status=$?
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); }; }; then
11741 ac_hi=-1 ac_mid=-1
11742 while :; do
11743 cat >conftest.$ac_ext <<_ACEOF
11744 /* confdefs.h. */
11745 _ACEOF
11746 cat confdefs.h >>conftest.$ac_ext
11747 cat >>conftest.$ac_ext <<_ACEOF
11748 /* end confdefs.h. */
11749 $ac_includes_default
11751 main ()
11753 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
11754 test_array [0] = 0
11757 return 0;
11759 _ACEOF
11760 rm -f conftest.$ac_objext
11761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11762 (eval $ac_compile) 2>conftest.er1
11763 ac_status=$?
11764 grep -v '^ *+' conftest.er1 >conftest.err
11765 rm -f conftest.er1
11766 cat conftest.err >&5
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); } &&
11769 { ac_try='test -z "$ac_c_werror_flag"
11770 || test ! -s conftest.err'
11771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11772 (eval $ac_try) 2>&5
11773 ac_status=$?
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); }; } &&
11776 { ac_try='test -s conftest.$ac_objext'
11777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11778 (eval $ac_try) 2>&5
11779 ac_status=$?
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); }; }; then
11782 ac_lo=$ac_mid; break
11783 else
11784 echo "$as_me: failed program was:" >&5
11785 sed 's/^/| /' conftest.$ac_ext >&5
11787 ac_hi=`expr '(' $ac_mid ')' - 1`
11788 if test $ac_mid -le $ac_hi; then
11789 ac_lo= ac_hi=
11790 break
11792 ac_mid=`expr 2 '*' $ac_mid`
11794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11795 done
11796 else
11797 echo "$as_me: failed program was:" >&5
11798 sed 's/^/| /' conftest.$ac_ext >&5
11800 ac_lo= ac_hi=
11802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11805 # Binary search between lo and hi bounds.
11806 while test "x$ac_lo" != "x$ac_hi"; do
11807 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11808 cat >conftest.$ac_ext <<_ACEOF
11809 /* confdefs.h. */
11810 _ACEOF
11811 cat confdefs.h >>conftest.$ac_ext
11812 cat >>conftest.$ac_ext <<_ACEOF
11813 /* end confdefs.h. */
11814 $ac_includes_default
11816 main ()
11818 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11819 test_array [0] = 0
11822 return 0;
11824 _ACEOF
11825 rm -f conftest.$ac_objext
11826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11827 (eval $ac_compile) 2>conftest.er1
11828 ac_status=$?
11829 grep -v '^ *+' conftest.er1 >conftest.err
11830 rm -f conftest.er1
11831 cat conftest.err >&5
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); } &&
11834 { ac_try='test -z "$ac_c_werror_flag"
11835 || test ! -s conftest.err'
11836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11837 (eval $ac_try) 2>&5
11838 ac_status=$?
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); }; } &&
11841 { ac_try='test -s conftest.$ac_objext'
11842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11843 (eval $ac_try) 2>&5
11844 ac_status=$?
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); }; }; then
11847 ac_hi=$ac_mid
11848 else
11849 echo "$as_me: failed program was:" >&5
11850 sed 's/^/| /' conftest.$ac_ext >&5
11852 ac_lo=`expr '(' $ac_mid ')' + 1`
11854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11855 done
11856 case $ac_lo in
11857 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11858 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11859 echo "$as_me: error: in \`$ac_pwd':" >&2;}
11860 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
11861 See \`config.log' for more details." >&5
11862 echo "$as_me: error: cannot compute sizeof (long long), 77
11863 See \`config.log' for more details." >&2;}
11864 { (exit 1); exit 1; }; }; } ;;
11865 esac
11866 else
11867 if test "$cross_compiling" = yes; then
11868 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11869 echo "$as_me: error: in \`$ac_pwd':" >&2;}
11870 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11871 See \`config.log' for more details." >&5
11872 echo "$as_me: error: cannot run test program while cross compiling
11873 See \`config.log' for more details." >&2;}
11874 { (exit 1); exit 1; }; }; }
11875 else
11876 cat >conftest.$ac_ext <<_ACEOF
11877 /* confdefs.h. */
11878 _ACEOF
11879 cat confdefs.h >>conftest.$ac_ext
11880 cat >>conftest.$ac_ext <<_ACEOF
11881 /* end confdefs.h. */
11882 $ac_includes_default
11883 long longval () { return (long) (sizeof (long long)); }
11884 unsigned long ulongval () { return (long) (sizeof (long long)); }
11885 #include <stdio.h>
11886 #include <stdlib.h>
11888 main ()
11891 FILE *f = fopen ("conftest.val", "w");
11892 if (! f)
11893 exit (1);
11894 if (((long) (sizeof (long long))) < 0)
11896 long i = longval ();
11897 if (i != ((long) (sizeof (long long))))
11898 exit (1);
11899 fprintf (f, "%ld\n", i);
11901 else
11903 unsigned long i = ulongval ();
11904 if (i != ((long) (sizeof (long long))))
11905 exit (1);
11906 fprintf (f, "%lu\n", i);
11908 exit (ferror (f) || fclose (f) != 0);
11911 return 0;
11913 _ACEOF
11914 rm -f conftest$ac_exeext
11915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11916 (eval $ac_link) 2>&5
11917 ac_status=$?
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11921 (eval $ac_try) 2>&5
11922 ac_status=$?
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); }; }; then
11925 ac_cv_sizeof_long_long=`cat conftest.val`
11926 else
11927 echo "$as_me: program exited with status $ac_status" >&5
11928 echo "$as_me: failed program was:" >&5
11929 sed 's/^/| /' conftest.$ac_ext >&5
11931 ( exit $ac_status )
11932 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11933 echo "$as_me: error: in \`$ac_pwd':" >&2;}
11934 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
11935 See \`config.log' for more details." >&5
11936 echo "$as_me: error: cannot compute sizeof (long long), 77
11937 See \`config.log' for more details." >&2;}
11938 { (exit 1); exit 1; }; }; }
11940 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11943 rm -f conftest.val
11944 else
11945 ac_cv_sizeof_long_long=0
11948 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11949 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
11950 cat >>confdefs.h <<_ACEOF
11951 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11952 _ACEOF
11955 echo "$as_me:$LINENO: checking for void *" >&5
11956 echo $ECHO_N "checking for void *... $ECHO_C" >&6
11957 if test "${ac_cv_type_void_p+set}" = set; then
11958 echo $ECHO_N "(cached) $ECHO_C" >&6
11959 else
11960 cat >conftest.$ac_ext <<_ACEOF
11961 /* confdefs.h. */
11962 _ACEOF
11963 cat confdefs.h >>conftest.$ac_ext
11964 cat >>conftest.$ac_ext <<_ACEOF
11965 /* end confdefs.h. */
11966 $ac_includes_default
11968 main ()
11970 if ((void * *) 0)
11971 return 0;
11972 if (sizeof (void *))
11973 return 0;
11975 return 0;
11977 _ACEOF
11978 rm -f conftest.$ac_objext
11979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11980 (eval $ac_compile) 2>conftest.er1
11981 ac_status=$?
11982 grep -v '^ *+' conftest.er1 >conftest.err
11983 rm -f conftest.er1
11984 cat conftest.err >&5
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); } &&
11987 { ac_try='test -z "$ac_c_werror_flag"
11988 || test ! -s conftest.err'
11989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11990 (eval $ac_try) 2>&5
11991 ac_status=$?
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); }; } &&
11994 { ac_try='test -s conftest.$ac_objext'
11995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11996 (eval $ac_try) 2>&5
11997 ac_status=$?
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); }; }; then
12000 ac_cv_type_void_p=yes
12001 else
12002 echo "$as_me: failed program was:" >&5
12003 sed 's/^/| /' conftest.$ac_ext >&5
12005 ac_cv_type_void_p=no
12007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12009 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
12010 echo "${ECHO_T}$ac_cv_type_void_p" >&6
12012 echo "$as_me:$LINENO: checking size of void *" >&5
12013 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
12014 if test "${ac_cv_sizeof_void_p+set}" = set; then
12015 echo $ECHO_N "(cached) $ECHO_C" >&6
12016 else
12017 if test "$ac_cv_type_void_p" = yes; then
12018 # The cast to unsigned long works around a bug in the HP C Compiler
12019 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12020 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12021 # This bug is HP SR number 8606223364.
12022 if test "$cross_compiling" = yes; then
12023 # Depending upon the size, compute the lo and hi bounds.
12024 cat >conftest.$ac_ext <<_ACEOF
12025 /* confdefs.h. */
12026 _ACEOF
12027 cat confdefs.h >>conftest.$ac_ext
12028 cat >>conftest.$ac_ext <<_ACEOF
12029 /* end confdefs.h. */
12030 $ac_includes_default
12032 main ()
12034 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
12035 test_array [0] = 0
12038 return 0;
12040 _ACEOF
12041 rm -f conftest.$ac_objext
12042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12043 (eval $ac_compile) 2>conftest.er1
12044 ac_status=$?
12045 grep -v '^ *+' conftest.er1 >conftest.err
12046 rm -f conftest.er1
12047 cat conftest.err >&5
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); } &&
12050 { ac_try='test -z "$ac_c_werror_flag"
12051 || test ! -s conftest.err'
12052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12053 (eval $ac_try) 2>&5
12054 ac_status=$?
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); }; } &&
12057 { ac_try='test -s conftest.$ac_objext'
12058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12059 (eval $ac_try) 2>&5
12060 ac_status=$?
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); }; }; then
12063 ac_lo=0 ac_mid=0
12064 while :; do
12065 cat >conftest.$ac_ext <<_ACEOF
12066 /* confdefs.h. */
12067 _ACEOF
12068 cat confdefs.h >>conftest.$ac_ext
12069 cat >>conftest.$ac_ext <<_ACEOF
12070 /* end confdefs.h. */
12071 $ac_includes_default
12073 main ()
12075 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
12076 test_array [0] = 0
12079 return 0;
12081 _ACEOF
12082 rm -f conftest.$ac_objext
12083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12084 (eval $ac_compile) 2>conftest.er1
12085 ac_status=$?
12086 grep -v '^ *+' conftest.er1 >conftest.err
12087 rm -f conftest.er1
12088 cat conftest.err >&5
12089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090 (exit $ac_status); } &&
12091 { ac_try='test -z "$ac_c_werror_flag"
12092 || test ! -s conftest.err'
12093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12094 (eval $ac_try) 2>&5
12095 ac_status=$?
12096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); }; } &&
12098 { ac_try='test -s conftest.$ac_objext'
12099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12100 (eval $ac_try) 2>&5
12101 ac_status=$?
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); }; }; then
12104 ac_hi=$ac_mid; break
12105 else
12106 echo "$as_me: failed program was:" >&5
12107 sed 's/^/| /' conftest.$ac_ext >&5
12109 ac_lo=`expr $ac_mid + 1`
12110 if test $ac_lo -le $ac_mid; then
12111 ac_lo= ac_hi=
12112 break
12114 ac_mid=`expr 2 '*' $ac_mid + 1`
12116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12117 done
12118 else
12119 echo "$as_me: failed program was:" >&5
12120 sed 's/^/| /' conftest.$ac_ext >&5
12122 cat >conftest.$ac_ext <<_ACEOF
12123 /* confdefs.h. */
12124 _ACEOF
12125 cat confdefs.h >>conftest.$ac_ext
12126 cat >>conftest.$ac_ext <<_ACEOF
12127 /* end confdefs.h. */
12128 $ac_includes_default
12130 main ()
12132 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
12133 test_array [0] = 0
12136 return 0;
12138 _ACEOF
12139 rm -f conftest.$ac_objext
12140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12141 (eval $ac_compile) 2>conftest.er1
12142 ac_status=$?
12143 grep -v '^ *+' conftest.er1 >conftest.err
12144 rm -f conftest.er1
12145 cat conftest.err >&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); } &&
12148 { ac_try='test -z "$ac_c_werror_flag"
12149 || test ! -s conftest.err'
12150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12151 (eval $ac_try) 2>&5
12152 ac_status=$?
12153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); }; } &&
12155 { ac_try='test -s conftest.$ac_objext'
12156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12157 (eval $ac_try) 2>&5
12158 ac_status=$?
12159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160 (exit $ac_status); }; }; then
12161 ac_hi=-1 ac_mid=-1
12162 while :; do
12163 cat >conftest.$ac_ext <<_ACEOF
12164 /* confdefs.h. */
12165 _ACEOF
12166 cat confdefs.h >>conftest.$ac_ext
12167 cat >>conftest.$ac_ext <<_ACEOF
12168 /* end confdefs.h. */
12169 $ac_includes_default
12171 main ()
12173 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
12174 test_array [0] = 0
12177 return 0;
12179 _ACEOF
12180 rm -f conftest.$ac_objext
12181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12182 (eval $ac_compile) 2>conftest.er1
12183 ac_status=$?
12184 grep -v '^ *+' conftest.er1 >conftest.err
12185 rm -f conftest.er1
12186 cat conftest.err >&5
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); } &&
12189 { ac_try='test -z "$ac_c_werror_flag"
12190 || test ! -s conftest.err'
12191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12192 (eval $ac_try) 2>&5
12193 ac_status=$?
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); }; } &&
12196 { ac_try='test -s conftest.$ac_objext'
12197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12198 (eval $ac_try) 2>&5
12199 ac_status=$?
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); }; }; then
12202 ac_lo=$ac_mid; break
12203 else
12204 echo "$as_me: failed program was:" >&5
12205 sed 's/^/| /' conftest.$ac_ext >&5
12207 ac_hi=`expr '(' $ac_mid ')' - 1`
12208 if test $ac_mid -le $ac_hi; then
12209 ac_lo= ac_hi=
12210 break
12212 ac_mid=`expr 2 '*' $ac_mid`
12214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12215 done
12216 else
12217 echo "$as_me: failed program was:" >&5
12218 sed 's/^/| /' conftest.$ac_ext >&5
12220 ac_lo= ac_hi=
12222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12225 # Binary search between lo and hi bounds.
12226 while test "x$ac_lo" != "x$ac_hi"; do
12227 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12228 cat >conftest.$ac_ext <<_ACEOF
12229 /* confdefs.h. */
12230 _ACEOF
12231 cat confdefs.h >>conftest.$ac_ext
12232 cat >>conftest.$ac_ext <<_ACEOF
12233 /* end confdefs.h. */
12234 $ac_includes_default
12236 main ()
12238 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
12239 test_array [0] = 0
12242 return 0;
12244 _ACEOF
12245 rm -f conftest.$ac_objext
12246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12247 (eval $ac_compile) 2>conftest.er1
12248 ac_status=$?
12249 grep -v '^ *+' conftest.er1 >conftest.err
12250 rm -f conftest.er1
12251 cat conftest.err >&5
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); } &&
12254 { ac_try='test -z "$ac_c_werror_flag"
12255 || test ! -s conftest.err'
12256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12257 (eval $ac_try) 2>&5
12258 ac_status=$?
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); }; } &&
12261 { ac_try='test -s conftest.$ac_objext'
12262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12263 (eval $ac_try) 2>&5
12264 ac_status=$?
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); }; }; then
12267 ac_hi=$ac_mid
12268 else
12269 echo "$as_me: failed program was:" >&5
12270 sed 's/^/| /' conftest.$ac_ext >&5
12272 ac_lo=`expr '(' $ac_mid ')' + 1`
12274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12275 done
12276 case $ac_lo in
12277 ?*) ac_cv_sizeof_void_p=$ac_lo;;
12278 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12279 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12280 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
12281 See \`config.log' for more details." >&5
12282 echo "$as_me: error: cannot compute sizeof (void *), 77
12283 See \`config.log' for more details." >&2;}
12284 { (exit 1); exit 1; }; }; } ;;
12285 esac
12286 else
12287 if test "$cross_compiling" = yes; then
12288 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12289 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12290 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12291 See \`config.log' for more details." >&5
12292 echo "$as_me: error: cannot run test program while cross compiling
12293 See \`config.log' for more details." >&2;}
12294 { (exit 1); exit 1; }; }; }
12295 else
12296 cat >conftest.$ac_ext <<_ACEOF
12297 /* confdefs.h. */
12298 _ACEOF
12299 cat confdefs.h >>conftest.$ac_ext
12300 cat >>conftest.$ac_ext <<_ACEOF
12301 /* end confdefs.h. */
12302 $ac_includes_default
12303 long longval () { return (long) (sizeof (void *)); }
12304 unsigned long ulongval () { return (long) (sizeof (void *)); }
12305 #include <stdio.h>
12306 #include <stdlib.h>
12308 main ()
12311 FILE *f = fopen ("conftest.val", "w");
12312 if (! f)
12313 exit (1);
12314 if (((long) (sizeof (void *))) < 0)
12316 long i = longval ();
12317 if (i != ((long) (sizeof (void *))))
12318 exit (1);
12319 fprintf (f, "%ld\n", i);
12321 else
12323 unsigned long i = ulongval ();
12324 if (i != ((long) (sizeof (void *))))
12325 exit (1);
12326 fprintf (f, "%lu\n", i);
12328 exit (ferror (f) || fclose (f) != 0);
12331 return 0;
12333 _ACEOF
12334 rm -f conftest$ac_exeext
12335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12336 (eval $ac_link) 2>&5
12337 ac_status=$?
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12341 (eval $ac_try) 2>&5
12342 ac_status=$?
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); }; }; then
12345 ac_cv_sizeof_void_p=`cat conftest.val`
12346 else
12347 echo "$as_me: program exited with status $ac_status" >&5
12348 echo "$as_me: failed program was:" >&5
12349 sed 's/^/| /' conftest.$ac_ext >&5
12351 ( exit $ac_status )
12352 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12353 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12354 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
12355 See \`config.log' for more details." >&5
12356 echo "$as_me: error: cannot compute sizeof (void *), 77
12357 See \`config.log' for more details." >&2;}
12358 { (exit 1); exit 1; }; }; }
12360 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12363 rm -f conftest.val
12364 else
12365 ac_cv_sizeof_void_p=0
12368 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
12369 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
12370 cat >>confdefs.h <<_ACEOF
12371 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12372 _ACEOF
12375 echo "$as_me:$LINENO: checking for long" >&5
12376 echo $ECHO_N "checking for long... $ECHO_C" >&6
12377 if test "${ac_cv_type_long+set}" = set; then
12378 echo $ECHO_N "(cached) $ECHO_C" >&6
12379 else
12380 cat >conftest.$ac_ext <<_ACEOF
12381 /* confdefs.h. */
12382 _ACEOF
12383 cat confdefs.h >>conftest.$ac_ext
12384 cat >>conftest.$ac_ext <<_ACEOF
12385 /* end confdefs.h. */
12386 $ac_includes_default
12388 main ()
12390 if ((long *) 0)
12391 return 0;
12392 if (sizeof (long))
12393 return 0;
12395 return 0;
12397 _ACEOF
12398 rm -f conftest.$ac_objext
12399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12400 (eval $ac_compile) 2>conftest.er1
12401 ac_status=$?
12402 grep -v '^ *+' conftest.er1 >conftest.err
12403 rm -f conftest.er1
12404 cat conftest.err >&5
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); } &&
12407 { ac_try='test -z "$ac_c_werror_flag"
12408 || test ! -s conftest.err'
12409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12410 (eval $ac_try) 2>&5
12411 ac_status=$?
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); }; } &&
12414 { ac_try='test -s conftest.$ac_objext'
12415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12416 (eval $ac_try) 2>&5
12417 ac_status=$?
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); }; }; then
12420 ac_cv_type_long=yes
12421 else
12422 echo "$as_me: failed program was:" >&5
12423 sed 's/^/| /' conftest.$ac_ext >&5
12425 ac_cv_type_long=no
12427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12429 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12430 echo "${ECHO_T}$ac_cv_type_long" >&6
12432 echo "$as_me:$LINENO: checking size of long" >&5
12433 echo $ECHO_N "checking size of long... $ECHO_C" >&6
12434 if test "${ac_cv_sizeof_long+set}" = set; then
12435 echo $ECHO_N "(cached) $ECHO_C" >&6
12436 else
12437 if test "$ac_cv_type_long" = yes; then
12438 # The cast to unsigned long works around a bug in the HP C Compiler
12439 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12440 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12441 # This bug is HP SR number 8606223364.
12442 if test "$cross_compiling" = yes; then
12443 # Depending upon the size, compute the lo and hi bounds.
12444 cat >conftest.$ac_ext <<_ACEOF
12445 /* confdefs.h. */
12446 _ACEOF
12447 cat confdefs.h >>conftest.$ac_ext
12448 cat >>conftest.$ac_ext <<_ACEOF
12449 /* end confdefs.h. */
12450 $ac_includes_default
12452 main ()
12454 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12455 test_array [0] = 0
12458 return 0;
12460 _ACEOF
12461 rm -f conftest.$ac_objext
12462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12463 (eval $ac_compile) 2>conftest.er1
12464 ac_status=$?
12465 grep -v '^ *+' conftest.er1 >conftest.err
12466 rm -f conftest.er1
12467 cat conftest.err >&5
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); } &&
12470 { ac_try='test -z "$ac_c_werror_flag"
12471 || test ! -s conftest.err'
12472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12473 (eval $ac_try) 2>&5
12474 ac_status=$?
12475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); }; } &&
12477 { ac_try='test -s conftest.$ac_objext'
12478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12479 (eval $ac_try) 2>&5
12480 ac_status=$?
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); }; }; then
12483 ac_lo=0 ac_mid=0
12484 while :; do
12485 cat >conftest.$ac_ext <<_ACEOF
12486 /* confdefs.h. */
12487 _ACEOF
12488 cat confdefs.h >>conftest.$ac_ext
12489 cat >>conftest.$ac_ext <<_ACEOF
12490 /* end confdefs.h. */
12491 $ac_includes_default
12493 main ()
12495 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12496 test_array [0] = 0
12499 return 0;
12501 _ACEOF
12502 rm -f conftest.$ac_objext
12503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12504 (eval $ac_compile) 2>conftest.er1
12505 ac_status=$?
12506 grep -v '^ *+' conftest.er1 >conftest.err
12507 rm -f conftest.er1
12508 cat conftest.err >&5
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); } &&
12511 { ac_try='test -z "$ac_c_werror_flag"
12512 || test ! -s conftest.err'
12513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514 (eval $ac_try) 2>&5
12515 ac_status=$?
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); }; } &&
12518 { ac_try='test -s conftest.$ac_objext'
12519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12520 (eval $ac_try) 2>&5
12521 ac_status=$?
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); }; }; then
12524 ac_hi=$ac_mid; break
12525 else
12526 echo "$as_me: failed program was:" >&5
12527 sed 's/^/| /' conftest.$ac_ext >&5
12529 ac_lo=`expr $ac_mid + 1`
12530 if test $ac_lo -le $ac_mid; then
12531 ac_lo= ac_hi=
12532 break
12534 ac_mid=`expr 2 '*' $ac_mid + 1`
12536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12537 done
12538 else
12539 echo "$as_me: failed program was:" >&5
12540 sed 's/^/| /' conftest.$ac_ext >&5
12542 cat >conftest.$ac_ext <<_ACEOF
12543 /* confdefs.h. */
12544 _ACEOF
12545 cat confdefs.h >>conftest.$ac_ext
12546 cat >>conftest.$ac_ext <<_ACEOF
12547 /* end confdefs.h. */
12548 $ac_includes_default
12550 main ()
12552 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12553 test_array [0] = 0
12556 return 0;
12558 _ACEOF
12559 rm -f conftest.$ac_objext
12560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12561 (eval $ac_compile) 2>conftest.er1
12562 ac_status=$?
12563 grep -v '^ *+' conftest.er1 >conftest.err
12564 rm -f conftest.er1
12565 cat conftest.err >&5
12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); } &&
12568 { ac_try='test -z "$ac_c_werror_flag"
12569 || test ! -s conftest.err'
12570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12571 (eval $ac_try) 2>&5
12572 ac_status=$?
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); }; } &&
12575 { ac_try='test -s conftest.$ac_objext'
12576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12577 (eval $ac_try) 2>&5
12578 ac_status=$?
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); }; }; then
12581 ac_hi=-1 ac_mid=-1
12582 while :; do
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 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12594 test_array [0] = 0
12597 return 0;
12599 _ACEOF
12600 rm -f conftest.$ac_objext
12601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12602 (eval $ac_compile) 2>conftest.er1
12603 ac_status=$?
12604 grep -v '^ *+' conftest.er1 >conftest.err
12605 rm -f conftest.er1
12606 cat conftest.err >&5
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); } &&
12609 { ac_try='test -z "$ac_c_werror_flag"
12610 || test ! -s conftest.err'
12611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12612 (eval $ac_try) 2>&5
12613 ac_status=$?
12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); }; } &&
12616 { ac_try='test -s conftest.$ac_objext'
12617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12618 (eval $ac_try) 2>&5
12619 ac_status=$?
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); }; }; then
12622 ac_lo=$ac_mid; break
12623 else
12624 echo "$as_me: failed program was:" >&5
12625 sed 's/^/| /' conftest.$ac_ext >&5
12627 ac_hi=`expr '(' $ac_mid ')' - 1`
12628 if test $ac_mid -le $ac_hi; then
12629 ac_lo= ac_hi=
12630 break
12632 ac_mid=`expr 2 '*' $ac_mid`
12634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12635 done
12636 else
12637 echo "$as_me: failed program was:" >&5
12638 sed 's/^/| /' conftest.$ac_ext >&5
12640 ac_lo= ac_hi=
12642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12645 # Binary search between lo and hi bounds.
12646 while test "x$ac_lo" != "x$ac_hi"; do
12647 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12648 cat >conftest.$ac_ext <<_ACEOF
12649 /* confdefs.h. */
12650 _ACEOF
12651 cat confdefs.h >>conftest.$ac_ext
12652 cat >>conftest.$ac_ext <<_ACEOF
12653 /* end confdefs.h. */
12654 $ac_includes_default
12656 main ()
12658 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12659 test_array [0] = 0
12662 return 0;
12664 _ACEOF
12665 rm -f conftest.$ac_objext
12666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12667 (eval $ac_compile) 2>conftest.er1
12668 ac_status=$?
12669 grep -v '^ *+' conftest.er1 >conftest.err
12670 rm -f conftest.er1
12671 cat conftest.err >&5
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); } &&
12674 { ac_try='test -z "$ac_c_werror_flag"
12675 || test ! -s conftest.err'
12676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12677 (eval $ac_try) 2>&5
12678 ac_status=$?
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); }; } &&
12681 { ac_try='test -s conftest.$ac_objext'
12682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12683 (eval $ac_try) 2>&5
12684 ac_status=$?
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); }; }; then
12687 ac_hi=$ac_mid
12688 else
12689 echo "$as_me: failed program was:" >&5
12690 sed 's/^/| /' conftest.$ac_ext >&5
12692 ac_lo=`expr '(' $ac_mid ')' + 1`
12694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12695 done
12696 case $ac_lo in
12697 ?*) ac_cv_sizeof_long=$ac_lo;;
12698 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12699 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12700 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12701 See \`config.log' for more details." >&5
12702 echo "$as_me: error: cannot compute sizeof (long), 77
12703 See \`config.log' for more details." >&2;}
12704 { (exit 1); exit 1; }; }; } ;;
12705 esac
12706 else
12707 if test "$cross_compiling" = yes; then
12708 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12709 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12710 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12711 See \`config.log' for more details." >&5
12712 echo "$as_me: error: cannot run test program while cross compiling
12713 See \`config.log' for more details." >&2;}
12714 { (exit 1); exit 1; }; }; }
12715 else
12716 cat >conftest.$ac_ext <<_ACEOF
12717 /* confdefs.h. */
12718 _ACEOF
12719 cat confdefs.h >>conftest.$ac_ext
12720 cat >>conftest.$ac_ext <<_ACEOF
12721 /* end confdefs.h. */
12722 $ac_includes_default
12723 long longval () { return (long) (sizeof (long)); }
12724 unsigned long ulongval () { return (long) (sizeof (long)); }
12725 #include <stdio.h>
12726 #include <stdlib.h>
12728 main ()
12731 FILE *f = fopen ("conftest.val", "w");
12732 if (! f)
12733 exit (1);
12734 if (((long) (sizeof (long))) < 0)
12736 long i = longval ();
12737 if (i != ((long) (sizeof (long))))
12738 exit (1);
12739 fprintf (f, "%ld\n", i);
12741 else
12743 unsigned long i = ulongval ();
12744 if (i != ((long) (sizeof (long))))
12745 exit (1);
12746 fprintf (f, "%lu\n", i);
12748 exit (ferror (f) || fclose (f) != 0);
12751 return 0;
12753 _ACEOF
12754 rm -f conftest$ac_exeext
12755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12756 (eval $ac_link) 2>&5
12757 ac_status=$?
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12761 (eval $ac_try) 2>&5
12762 ac_status=$?
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); }; }; then
12765 ac_cv_sizeof_long=`cat conftest.val`
12766 else
12767 echo "$as_me: program exited with status $ac_status" >&5
12768 echo "$as_me: failed program was:" >&5
12769 sed 's/^/| /' conftest.$ac_ext >&5
12771 ( exit $ac_status )
12772 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12773 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12774 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12775 See \`config.log' for more details." >&5
12776 echo "$as_me: error: cannot compute sizeof (long), 77
12777 See \`config.log' for more details." >&2;}
12778 { (exit 1); exit 1; }; }; }
12780 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12783 rm -f conftest.val
12784 else
12785 ac_cv_sizeof_long=0
12788 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12789 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12790 cat >>confdefs.h <<_ACEOF
12791 #define SIZEOF_LONG $ac_cv_sizeof_long
12792 _ACEOF
12796 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
12797 host64=true
12800 if test "x${ac_cv_sizeof_long}" = "x8"; then
12801 BFD_HOST_64BIT_LONG=1
12802 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
12803 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
12804 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
12805 BFD_HOST_64BIT_LONG_LONG=1
12806 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
12807 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
12808 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
12809 BFD_HOSTPTR_T="unsigned long long"
12813 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
12814 BFD_HOST_64_BIT_DEFINED=1
12815 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
12816 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
12826 # Put a plausible default for CC_FOR_BUILD in Makefile.
12827 if test -z "$CC_FOR_BUILD"; then
12828 if test "x$cross_compiling" = "xno"; then
12829 CC_FOR_BUILD='$(CC)'
12830 else
12831 CC_FOR_BUILD=gcc
12835 # Also set EXEEXT_FOR_BUILD.
12836 if test "x$cross_compiling" = "xno"; then
12837 EXEEXT_FOR_BUILD='$(EXEEXT)'
12838 else
12839 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
12840 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
12841 if test "${bfd_cv_build_exeext+set}" = set; then
12842 echo $ECHO_N "(cached) $ECHO_C" >&6
12843 else
12844 rm -f conftest*
12845 echo 'int main () { return 0; }' > conftest.c
12846 bfd_cv_build_exeext=
12847 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12848 for file in conftest.*; do
12849 case $file in
12850 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12851 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12852 esac
12853 done
12854 rm -f conftest*
12855 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
12857 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
12858 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
12859 EXEEXT_FOR_BUILD=""
12860 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
12871 for ac_header in alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h
12873 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12875 echo "$as_me:$LINENO: checking for $ac_header" >&5
12876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12878 echo $ECHO_N "(cached) $ECHO_C" >&6
12880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12882 else
12883 # Is the header compilable?
12884 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12885 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12886 cat >conftest.$ac_ext <<_ACEOF
12887 /* confdefs.h. */
12888 _ACEOF
12889 cat confdefs.h >>conftest.$ac_ext
12890 cat >>conftest.$ac_ext <<_ACEOF
12891 /* end confdefs.h. */
12892 $ac_includes_default
12893 #include <$ac_header>
12894 _ACEOF
12895 rm -f conftest.$ac_objext
12896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12897 (eval $ac_compile) 2>conftest.er1
12898 ac_status=$?
12899 grep -v '^ *+' conftest.er1 >conftest.err
12900 rm -f conftest.er1
12901 cat conftest.err >&5
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); } &&
12904 { ac_try='test -z "$ac_c_werror_flag"
12905 || test ! -s conftest.err'
12906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12907 (eval $ac_try) 2>&5
12908 ac_status=$?
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); }; } &&
12911 { ac_try='test -s conftest.$ac_objext'
12912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12913 (eval $ac_try) 2>&5
12914 ac_status=$?
12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 (exit $ac_status); }; }; then
12917 ac_header_compiler=yes
12918 else
12919 echo "$as_me: failed program was:" >&5
12920 sed 's/^/| /' conftest.$ac_ext >&5
12922 ac_header_compiler=no
12924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12925 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12926 echo "${ECHO_T}$ac_header_compiler" >&6
12928 # Is the header present?
12929 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12930 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12931 cat >conftest.$ac_ext <<_ACEOF
12932 /* confdefs.h. */
12933 _ACEOF
12934 cat confdefs.h >>conftest.$ac_ext
12935 cat >>conftest.$ac_ext <<_ACEOF
12936 /* end confdefs.h. */
12937 #include <$ac_header>
12938 _ACEOF
12939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12940 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12941 ac_status=$?
12942 grep -v '^ *+' conftest.er1 >conftest.err
12943 rm -f conftest.er1
12944 cat conftest.err >&5
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); } >/dev/null; then
12947 if test -s conftest.err; then
12948 ac_cpp_err=$ac_c_preproc_warn_flag
12949 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12950 else
12951 ac_cpp_err=
12953 else
12954 ac_cpp_err=yes
12956 if test -z "$ac_cpp_err"; then
12957 ac_header_preproc=yes
12958 else
12959 echo "$as_me: failed program was:" >&5
12960 sed 's/^/| /' conftest.$ac_ext >&5
12962 ac_header_preproc=no
12964 rm -f conftest.err conftest.$ac_ext
12965 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12966 echo "${ECHO_T}$ac_header_preproc" >&6
12968 # So? What about this header?
12969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12970 yes:no: )
12971 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12972 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12974 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12975 ac_header_preproc=yes
12977 no:yes:* )
12978 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12979 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12980 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12981 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12982 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12983 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12984 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12985 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12988 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12989 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12991 cat <<\_ASBOX
12992 ## ------------------------------------------ ##
12993 ## Report this to the AC_PACKAGE_NAME lists. ##
12994 ## ------------------------------------------ ##
12995 _ASBOX
12997 sed "s/^/$as_me: WARNING: /" >&2
12999 esac
13000 echo "$as_me:$LINENO: checking for $ac_header" >&5
13001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13003 echo $ECHO_N "(cached) $ECHO_C" >&6
13004 else
13005 eval "$as_ac_Header=\$ac_header_preproc"
13007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13011 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13012 cat >>confdefs.h <<_ACEOF
13013 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13014 _ACEOF
13018 done
13023 for ac_header in fcntl.h sys/file.h sys/time.h
13025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13027 echo "$as_me:$LINENO: checking for $ac_header" >&5
13028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13030 echo $ECHO_N "(cached) $ECHO_C" >&6
13032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13034 else
13035 # Is the header compilable?
13036 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13038 cat >conftest.$ac_ext <<_ACEOF
13039 /* confdefs.h. */
13040 _ACEOF
13041 cat confdefs.h >>conftest.$ac_ext
13042 cat >>conftest.$ac_ext <<_ACEOF
13043 /* end confdefs.h. */
13044 $ac_includes_default
13045 #include <$ac_header>
13046 _ACEOF
13047 rm -f conftest.$ac_objext
13048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13049 (eval $ac_compile) 2>conftest.er1
13050 ac_status=$?
13051 grep -v '^ *+' conftest.er1 >conftest.err
13052 rm -f conftest.er1
13053 cat conftest.err >&5
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); } &&
13056 { ac_try='test -z "$ac_c_werror_flag"
13057 || test ! -s conftest.err'
13058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13059 (eval $ac_try) 2>&5
13060 ac_status=$?
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); }; } &&
13063 { ac_try='test -s conftest.$ac_objext'
13064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13065 (eval $ac_try) 2>&5
13066 ac_status=$?
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); }; }; then
13069 ac_header_compiler=yes
13070 else
13071 echo "$as_me: failed program was:" >&5
13072 sed 's/^/| /' conftest.$ac_ext >&5
13074 ac_header_compiler=no
13076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13077 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13078 echo "${ECHO_T}$ac_header_compiler" >&6
13080 # Is the header present?
13081 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13082 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13083 cat >conftest.$ac_ext <<_ACEOF
13084 /* confdefs.h. */
13085 _ACEOF
13086 cat confdefs.h >>conftest.$ac_ext
13087 cat >>conftest.$ac_ext <<_ACEOF
13088 /* end confdefs.h. */
13089 #include <$ac_header>
13090 _ACEOF
13091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13093 ac_status=$?
13094 grep -v '^ *+' conftest.er1 >conftest.err
13095 rm -f conftest.er1
13096 cat conftest.err >&5
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); } >/dev/null; then
13099 if test -s conftest.err; then
13100 ac_cpp_err=$ac_c_preproc_warn_flag
13101 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13102 else
13103 ac_cpp_err=
13105 else
13106 ac_cpp_err=yes
13108 if test -z "$ac_cpp_err"; then
13109 ac_header_preproc=yes
13110 else
13111 echo "$as_me: failed program was:" >&5
13112 sed 's/^/| /' conftest.$ac_ext >&5
13114 ac_header_preproc=no
13116 rm -f conftest.err conftest.$ac_ext
13117 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13118 echo "${ECHO_T}$ac_header_preproc" >&6
13120 # So? What about this header?
13121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13122 yes:no: )
13123 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13124 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13126 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13127 ac_header_preproc=yes
13129 no:yes:* )
13130 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13131 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13132 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13133 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13134 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13135 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13136 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13137 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13140 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13141 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13143 cat <<\_ASBOX
13144 ## ------------------------------------------ ##
13145 ## Report this to the AC_PACKAGE_NAME lists. ##
13146 ## ------------------------------------------ ##
13147 _ASBOX
13149 sed "s/^/$as_me: WARNING: /" >&2
13151 esac
13152 echo "$as_me:$LINENO: checking for $ac_header" >&5
13153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13155 echo $ECHO_N "(cached) $ECHO_C" >&6
13156 else
13157 eval "$as_ac_Header=\$ac_header_preproc"
13159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13164 cat >>confdefs.h <<_ACEOF
13165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13166 _ACEOF
13170 done
13174 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
13176 acx_cv_header_stdint=stddef.h
13177 acx_cv_header_stdint_kind="(already complete)"
13178 for i in stdint.h $inttype_headers; do
13179 unset ac_cv_type_uintptr_t
13180 unset ac_cv_type_uintmax_t
13181 unset ac_cv_type_int_least32_t
13182 unset ac_cv_type_int_fast32_t
13183 unset ac_cv_type_uint64_t
13184 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
13185 echo "$as_me:$LINENO: checking for uintmax_t" >&5
13186 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
13187 if test "${ac_cv_type_uintmax_t+set}" = set; then
13188 echo $ECHO_N "(cached) $ECHO_C" >&6
13189 else
13190 cat >conftest.$ac_ext <<_ACEOF
13191 /* confdefs.h. */
13192 _ACEOF
13193 cat confdefs.h >>conftest.$ac_ext
13194 cat >>conftest.$ac_ext <<_ACEOF
13195 /* end confdefs.h. */
13196 #include <sys/types.h>
13197 #include <$i>
13200 main ()
13202 if ((uintmax_t *) 0)
13203 return 0;
13204 if (sizeof (uintmax_t))
13205 return 0;
13207 return 0;
13209 _ACEOF
13210 rm -f conftest.$ac_objext
13211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13212 (eval $ac_compile) 2>conftest.er1
13213 ac_status=$?
13214 grep -v '^ *+' conftest.er1 >conftest.err
13215 rm -f conftest.er1
13216 cat conftest.err >&5
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); } &&
13219 { ac_try='test -z "$ac_c_werror_flag"
13220 || test ! -s conftest.err'
13221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13222 (eval $ac_try) 2>&5
13223 ac_status=$?
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); }; } &&
13226 { ac_try='test -s conftest.$ac_objext'
13227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13228 (eval $ac_try) 2>&5
13229 ac_status=$?
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); }; }; then
13232 ac_cv_type_uintmax_t=yes
13233 else
13234 echo "$as_me: failed program was:" >&5
13235 sed 's/^/| /' conftest.$ac_ext >&5
13237 ac_cv_type_uintmax_t=no
13239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13241 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
13242 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
13243 if test $ac_cv_type_uintmax_t = yes; then
13244 acx_cv_header_stdint=$i
13245 else
13246 continue
13249 echo "$as_me:$LINENO: checking for uintptr_t" >&5
13250 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13251 if test "${ac_cv_type_uintptr_t+set}" = set; then
13252 echo $ECHO_N "(cached) $ECHO_C" >&6
13253 else
13254 cat >conftest.$ac_ext <<_ACEOF
13255 /* confdefs.h. */
13256 _ACEOF
13257 cat confdefs.h >>conftest.$ac_ext
13258 cat >>conftest.$ac_ext <<_ACEOF
13259 /* end confdefs.h. */
13260 #include <sys/types.h>
13261 #include <$i>
13264 main ()
13266 if ((uintptr_t *) 0)
13267 return 0;
13268 if (sizeof (uintptr_t))
13269 return 0;
13271 return 0;
13273 _ACEOF
13274 rm -f conftest.$ac_objext
13275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13276 (eval $ac_compile) 2>conftest.er1
13277 ac_status=$?
13278 grep -v '^ *+' conftest.er1 >conftest.err
13279 rm -f conftest.er1
13280 cat conftest.err >&5
13281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282 (exit $ac_status); } &&
13283 { ac_try='test -z "$ac_c_werror_flag"
13284 || test ! -s conftest.err'
13285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13286 (eval $ac_try) 2>&5
13287 ac_status=$?
13288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289 (exit $ac_status); }; } &&
13290 { ac_try='test -s conftest.$ac_objext'
13291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13292 (eval $ac_try) 2>&5
13293 ac_status=$?
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); }; }; then
13296 ac_cv_type_uintptr_t=yes
13297 else
13298 echo "$as_me: failed program was:" >&5
13299 sed 's/^/| /' conftest.$ac_ext >&5
13301 ac_cv_type_uintptr_t=no
13303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13305 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13306 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13307 if test $ac_cv_type_uintptr_t = yes; then
13309 else
13310 acx_cv_header_stdint_kind="(mostly complete)"
13313 echo "$as_me:$LINENO: checking for int_least32_t" >&5
13314 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
13315 if test "${ac_cv_type_int_least32_t+set}" = set; then
13316 echo $ECHO_N "(cached) $ECHO_C" >&6
13317 else
13318 cat >conftest.$ac_ext <<_ACEOF
13319 /* confdefs.h. */
13320 _ACEOF
13321 cat confdefs.h >>conftest.$ac_ext
13322 cat >>conftest.$ac_ext <<_ACEOF
13323 /* end confdefs.h. */
13324 #include <sys/types.h>
13325 #include <$i>
13328 main ()
13330 if ((int_least32_t *) 0)
13331 return 0;
13332 if (sizeof (int_least32_t))
13333 return 0;
13335 return 0;
13337 _ACEOF
13338 rm -f conftest.$ac_objext
13339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13340 (eval $ac_compile) 2>conftest.er1
13341 ac_status=$?
13342 grep -v '^ *+' conftest.er1 >conftest.err
13343 rm -f conftest.er1
13344 cat conftest.err >&5
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 (exit $ac_status); } &&
13347 { ac_try='test -z "$ac_c_werror_flag"
13348 || test ! -s conftest.err'
13349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13350 (eval $ac_try) 2>&5
13351 ac_status=$?
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); }; } &&
13354 { ac_try='test -s conftest.$ac_objext'
13355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13356 (eval $ac_try) 2>&5
13357 ac_status=$?
13358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359 (exit $ac_status); }; }; then
13360 ac_cv_type_int_least32_t=yes
13361 else
13362 echo "$as_me: failed program was:" >&5
13363 sed 's/^/| /' conftest.$ac_ext >&5
13365 ac_cv_type_int_least32_t=no
13367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13369 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
13370 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
13371 if test $ac_cv_type_int_least32_t = yes; then
13373 else
13374 acx_cv_header_stdint_kind="(mostly complete)"
13377 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
13378 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
13379 if test "${ac_cv_type_int_fast32_t+set}" = set; then
13380 echo $ECHO_N "(cached) $ECHO_C" >&6
13381 else
13382 cat >conftest.$ac_ext <<_ACEOF
13383 /* confdefs.h. */
13384 _ACEOF
13385 cat confdefs.h >>conftest.$ac_ext
13386 cat >>conftest.$ac_ext <<_ACEOF
13387 /* end confdefs.h. */
13388 #include <sys/types.h>
13389 #include <$i>
13392 main ()
13394 if ((int_fast32_t *) 0)
13395 return 0;
13396 if (sizeof (int_fast32_t))
13397 return 0;
13399 return 0;
13401 _ACEOF
13402 rm -f conftest.$ac_objext
13403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13404 (eval $ac_compile) 2>conftest.er1
13405 ac_status=$?
13406 grep -v '^ *+' conftest.er1 >conftest.err
13407 rm -f conftest.er1
13408 cat conftest.err >&5
13409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410 (exit $ac_status); } &&
13411 { ac_try='test -z "$ac_c_werror_flag"
13412 || test ! -s conftest.err'
13413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13414 (eval $ac_try) 2>&5
13415 ac_status=$?
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); }; } &&
13418 { ac_try='test -s conftest.$ac_objext'
13419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13420 (eval $ac_try) 2>&5
13421 ac_status=$?
13422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); }; }; then
13424 ac_cv_type_int_fast32_t=yes
13425 else
13426 echo "$as_me: failed program was:" >&5
13427 sed 's/^/| /' conftest.$ac_ext >&5
13429 ac_cv_type_int_fast32_t=no
13431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13433 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
13434 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
13435 if test $ac_cv_type_int_fast32_t = yes; then
13437 else
13438 acx_cv_header_stdint_kind="(mostly complete)"
13441 echo "$as_me:$LINENO: checking for uint64_t" >&5
13442 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13443 if test "${ac_cv_type_uint64_t+set}" = set; then
13444 echo $ECHO_N "(cached) $ECHO_C" >&6
13445 else
13446 cat >conftest.$ac_ext <<_ACEOF
13447 /* confdefs.h. */
13448 _ACEOF
13449 cat confdefs.h >>conftest.$ac_ext
13450 cat >>conftest.$ac_ext <<_ACEOF
13451 /* end confdefs.h. */
13452 #include <sys/types.h>
13453 #include <$i>
13456 main ()
13458 if ((uint64_t *) 0)
13459 return 0;
13460 if (sizeof (uint64_t))
13461 return 0;
13463 return 0;
13465 _ACEOF
13466 rm -f conftest.$ac_objext
13467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13468 (eval $ac_compile) 2>conftest.er1
13469 ac_status=$?
13470 grep -v '^ *+' conftest.er1 >conftest.err
13471 rm -f conftest.er1
13472 cat conftest.err >&5
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); } &&
13475 { ac_try='test -z "$ac_c_werror_flag"
13476 || test ! -s conftest.err'
13477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13478 (eval $ac_try) 2>&5
13479 ac_status=$?
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); }; } &&
13482 { ac_try='test -s conftest.$ac_objext'
13483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13484 (eval $ac_try) 2>&5
13485 ac_status=$?
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); }; }; then
13488 ac_cv_type_uint64_t=yes
13489 else
13490 echo "$as_me: failed program was:" >&5
13491 sed 's/^/| /' conftest.$ac_ext >&5
13493 ac_cv_type_uint64_t=no
13495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13497 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13498 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
13499 if test $ac_cv_type_uint64_t = yes; then
13501 else
13502 acx_cv_header_stdint_kind="(lacks uint64_t)"
13505 break
13506 done
13507 if test "$acx_cv_header_stdint" = stddef.h; then
13508 acx_cv_header_stdint_kind="(lacks uintmax_t)"
13509 for i in stdint.h $inttype_headers; do
13510 unset ac_cv_type_uintptr_t
13511 unset ac_cv_type_uint32_t
13512 unset ac_cv_type_uint64_t
13513 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
13514 echo "$as_me:$LINENO: checking for uint32_t" >&5
13515 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
13516 if test "${ac_cv_type_uint32_t+set}" = set; then
13517 echo $ECHO_N "(cached) $ECHO_C" >&6
13518 else
13519 cat >conftest.$ac_ext <<_ACEOF
13520 /* confdefs.h. */
13521 _ACEOF
13522 cat confdefs.h >>conftest.$ac_ext
13523 cat >>conftest.$ac_ext <<_ACEOF
13524 /* end confdefs.h. */
13525 #include <sys/types.h>
13526 #include <$i>
13529 main ()
13531 if ((uint32_t *) 0)
13532 return 0;
13533 if (sizeof (uint32_t))
13534 return 0;
13536 return 0;
13538 _ACEOF
13539 rm -f conftest.$ac_objext
13540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13541 (eval $ac_compile) 2>conftest.er1
13542 ac_status=$?
13543 grep -v '^ *+' conftest.er1 >conftest.err
13544 rm -f conftest.er1
13545 cat conftest.err >&5
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); } &&
13548 { ac_try='test -z "$ac_c_werror_flag"
13549 || test ! -s conftest.err'
13550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13551 (eval $ac_try) 2>&5
13552 ac_status=$?
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); }; } &&
13555 { ac_try='test -s conftest.$ac_objext'
13556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13557 (eval $ac_try) 2>&5
13558 ac_status=$?
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); }; }; then
13561 ac_cv_type_uint32_t=yes
13562 else
13563 echo "$as_me: failed program was:" >&5
13564 sed 's/^/| /' conftest.$ac_ext >&5
13566 ac_cv_type_uint32_t=no
13568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13570 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
13571 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
13572 if test $ac_cv_type_uint32_t = yes; then
13573 acx_cv_header_stdint=$i
13574 else
13575 continue
13578 echo "$as_me:$LINENO: checking for uint64_t" >&5
13579 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13580 if test "${ac_cv_type_uint64_t+set}" = set; then
13581 echo $ECHO_N "(cached) $ECHO_C" >&6
13582 else
13583 cat >conftest.$ac_ext <<_ACEOF
13584 /* confdefs.h. */
13585 _ACEOF
13586 cat confdefs.h >>conftest.$ac_ext
13587 cat >>conftest.$ac_ext <<_ACEOF
13588 /* end confdefs.h. */
13589 #include <sys/types.h>
13590 #include <$i>
13593 main ()
13595 if ((uint64_t *) 0)
13596 return 0;
13597 if (sizeof (uint64_t))
13598 return 0;
13600 return 0;
13602 _ACEOF
13603 rm -f conftest.$ac_objext
13604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13605 (eval $ac_compile) 2>conftest.er1
13606 ac_status=$?
13607 grep -v '^ *+' conftest.er1 >conftest.err
13608 rm -f conftest.er1
13609 cat conftest.err >&5
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); } &&
13612 { ac_try='test -z "$ac_c_werror_flag"
13613 || test ! -s conftest.err'
13614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13615 (eval $ac_try) 2>&5
13616 ac_status=$?
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); }; } &&
13619 { ac_try='test -s conftest.$ac_objext'
13620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13621 (eval $ac_try) 2>&5
13622 ac_status=$?
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); }; }; then
13625 ac_cv_type_uint64_t=yes
13626 else
13627 echo "$as_me: failed program was:" >&5
13628 sed 's/^/| /' conftest.$ac_ext >&5
13630 ac_cv_type_uint64_t=no
13632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13634 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13635 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
13637 echo "$as_me:$LINENO: checking for uintptr_t" >&5
13638 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13639 if test "${ac_cv_type_uintptr_t+set}" = set; then
13640 echo $ECHO_N "(cached) $ECHO_C" >&6
13641 else
13642 cat >conftest.$ac_ext <<_ACEOF
13643 /* confdefs.h. */
13644 _ACEOF
13645 cat confdefs.h >>conftest.$ac_ext
13646 cat >>conftest.$ac_ext <<_ACEOF
13647 /* end confdefs.h. */
13648 #include <sys/types.h>
13649 #include <$i>
13652 main ()
13654 if ((uintptr_t *) 0)
13655 return 0;
13656 if (sizeof (uintptr_t))
13657 return 0;
13659 return 0;
13661 _ACEOF
13662 rm -f conftest.$ac_objext
13663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13664 (eval $ac_compile) 2>conftest.er1
13665 ac_status=$?
13666 grep -v '^ *+' conftest.er1 >conftest.err
13667 rm -f conftest.er1
13668 cat conftest.err >&5
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); } &&
13671 { ac_try='test -z "$ac_c_werror_flag"
13672 || test ! -s conftest.err'
13673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13674 (eval $ac_try) 2>&5
13675 ac_status=$?
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); }; } &&
13678 { ac_try='test -s conftest.$ac_objext'
13679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13680 (eval $ac_try) 2>&5
13681 ac_status=$?
13682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683 (exit $ac_status); }; }; then
13684 ac_cv_type_uintptr_t=yes
13685 else
13686 echo "$as_me: failed program was:" >&5
13687 sed 's/^/| /' conftest.$ac_ext >&5
13689 ac_cv_type_uintptr_t=no
13691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13693 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13694 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13696 break
13697 done
13699 if test "$acx_cv_header_stdint" = stddef.h; then
13700 acx_cv_header_stdint_kind="(u_intXX_t style)"
13701 for i in sys/types.h $inttype_headers; do
13702 unset ac_cv_type_u_int32_t
13703 unset ac_cv_type_u_int64_t
13704 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
13705 echo "$as_me:$LINENO: checking for u_int32_t" >&5
13706 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
13707 if test "${ac_cv_type_u_int32_t+set}" = set; then
13708 echo $ECHO_N "(cached) $ECHO_C" >&6
13709 else
13710 cat >conftest.$ac_ext <<_ACEOF
13711 /* confdefs.h. */
13712 _ACEOF
13713 cat confdefs.h >>conftest.$ac_ext
13714 cat >>conftest.$ac_ext <<_ACEOF
13715 /* end confdefs.h. */
13716 #include <sys/types.h>
13717 #include <$i>
13720 main ()
13722 if ((u_int32_t *) 0)
13723 return 0;
13724 if (sizeof (u_int32_t))
13725 return 0;
13727 return 0;
13729 _ACEOF
13730 rm -f conftest.$ac_objext
13731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13732 (eval $ac_compile) 2>conftest.er1
13733 ac_status=$?
13734 grep -v '^ *+' conftest.er1 >conftest.err
13735 rm -f conftest.er1
13736 cat conftest.err >&5
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); } &&
13739 { ac_try='test -z "$ac_c_werror_flag"
13740 || test ! -s conftest.err'
13741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13742 (eval $ac_try) 2>&5
13743 ac_status=$?
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); }; } &&
13746 { ac_try='test -s conftest.$ac_objext'
13747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13748 (eval $ac_try) 2>&5
13749 ac_status=$?
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); }; }; then
13752 ac_cv_type_u_int32_t=yes
13753 else
13754 echo "$as_me: failed program was:" >&5
13755 sed 's/^/| /' conftest.$ac_ext >&5
13757 ac_cv_type_u_int32_t=no
13759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13761 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
13762 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
13763 if test $ac_cv_type_u_int32_t = yes; then
13764 acx_cv_header_stdint=$i
13765 else
13766 continue
13769 echo "$as_me:$LINENO: checking for u_int64_t" >&5
13770 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
13771 if test "${ac_cv_type_u_int64_t+set}" = set; then
13772 echo $ECHO_N "(cached) $ECHO_C" >&6
13773 else
13774 cat >conftest.$ac_ext <<_ACEOF
13775 /* confdefs.h. */
13776 _ACEOF
13777 cat confdefs.h >>conftest.$ac_ext
13778 cat >>conftest.$ac_ext <<_ACEOF
13779 /* end confdefs.h. */
13780 #include <sys/types.h>
13781 #include <$i>
13784 main ()
13786 if ((u_int64_t *) 0)
13787 return 0;
13788 if (sizeof (u_int64_t))
13789 return 0;
13791 return 0;
13793 _ACEOF
13794 rm -f conftest.$ac_objext
13795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13796 (eval $ac_compile) 2>conftest.er1
13797 ac_status=$?
13798 grep -v '^ *+' conftest.er1 >conftest.err
13799 rm -f conftest.er1
13800 cat conftest.err >&5
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); } &&
13803 { ac_try='test -z "$ac_c_werror_flag"
13804 || test ! -s conftest.err'
13805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13806 (eval $ac_try) 2>&5
13807 ac_status=$?
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 (exit $ac_status); }; } &&
13810 { ac_try='test -s conftest.$ac_objext'
13811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13812 (eval $ac_try) 2>&5
13813 ac_status=$?
13814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815 (exit $ac_status); }; }; then
13816 ac_cv_type_u_int64_t=yes
13817 else
13818 echo "$as_me: failed program was:" >&5
13819 sed 's/^/| /' conftest.$ac_ext >&5
13821 ac_cv_type_u_int64_t=no
13823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13825 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13826 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
13828 break
13829 done
13831 if test "$acx_cv_header_stdint" = stddef.h; then
13832 acx_cv_header_stdint_kind="(using manual detection)"
13835 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
13836 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
13837 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
13838 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
13839 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
13841 # ----------------- Summarize what we found so far
13843 echo "$as_me:$LINENO: checking what to include in bfd_stdint.h" >&5
13844 echo $ECHO_N "checking what to include in bfd_stdint.h... $ECHO_C" >&6
13846 case `$as_basename bfd_stdint.h ||
13847 $as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
13848 Xbfd_stdint.h : 'X\(//\)$' \| \
13849 Xbfd_stdint.h : 'X\(/\)$' \| \
13850 . : '\(.\)' 2>/dev/null ||
13851 echo X/bfd_stdint.h |
13852 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13853 /^X\/\(\/\/\)$/{ s//\1/; q; }
13854 /^X\/\(\/\).*/{ s//\1/; q; }
13855 s/.*/./; q'` in
13856 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13857 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13858 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13859 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13860 *) ;;
13861 esac
13863 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
13864 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
13866 # ----------------- done included file, check C basic types --------
13868 # Lacking an uintptr_t? Test size of void *
13869 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
13870 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
13871 echo $ECHO_N "checking for void *... $ECHO_C" >&6
13872 if test "${ac_cv_type_void_p+set}" = set; then
13873 echo $ECHO_N "(cached) $ECHO_C" >&6
13874 else
13875 cat >conftest.$ac_ext <<_ACEOF
13876 /* confdefs.h. */
13877 _ACEOF
13878 cat confdefs.h >>conftest.$ac_ext
13879 cat >>conftest.$ac_ext <<_ACEOF
13880 /* end confdefs.h. */
13881 $ac_includes_default
13883 main ()
13885 if ((void * *) 0)
13886 return 0;
13887 if (sizeof (void *))
13888 return 0;
13890 return 0;
13892 _ACEOF
13893 rm -f conftest.$ac_objext
13894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13895 (eval $ac_compile) 2>conftest.er1
13896 ac_status=$?
13897 grep -v '^ *+' conftest.er1 >conftest.err
13898 rm -f conftest.er1
13899 cat conftest.err >&5
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); } &&
13902 { ac_try='test -z "$ac_c_werror_flag"
13903 || test ! -s conftest.err'
13904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13905 (eval $ac_try) 2>&5
13906 ac_status=$?
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); }; } &&
13909 { ac_try='test -s conftest.$ac_objext'
13910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13911 (eval $ac_try) 2>&5
13912 ac_status=$?
13913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); }; }; then
13915 ac_cv_type_void_p=yes
13916 else
13917 echo "$as_me: failed program was:" >&5
13918 sed 's/^/| /' conftest.$ac_ext >&5
13920 ac_cv_type_void_p=no
13922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13924 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13925 echo "${ECHO_T}$ac_cv_type_void_p" >&6
13927 echo "$as_me:$LINENO: checking size of void *" >&5
13928 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13929 if test "${ac_cv_sizeof_void_p+set}" = set; then
13930 echo $ECHO_N "(cached) $ECHO_C" >&6
13931 else
13932 if test "$ac_cv_type_void_p" = yes; then
13933 # The cast to unsigned long works around a bug in the HP C Compiler
13934 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13935 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13936 # This bug is HP SR number 8606223364.
13937 if test "$cross_compiling" = yes; then
13938 # Depending upon the size, compute the lo and hi bounds.
13939 cat >conftest.$ac_ext <<_ACEOF
13940 /* confdefs.h. */
13941 _ACEOF
13942 cat confdefs.h >>conftest.$ac_ext
13943 cat >>conftest.$ac_ext <<_ACEOF
13944 /* end confdefs.h. */
13945 $ac_includes_default
13947 main ()
13949 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
13950 test_array [0] = 0
13953 return 0;
13955 _ACEOF
13956 rm -f conftest.$ac_objext
13957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13958 (eval $ac_compile) 2>conftest.er1
13959 ac_status=$?
13960 grep -v '^ *+' conftest.er1 >conftest.err
13961 rm -f conftest.er1
13962 cat conftest.err >&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); } &&
13965 { ac_try='test -z "$ac_c_werror_flag"
13966 || test ! -s conftest.err'
13967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13968 (eval $ac_try) 2>&5
13969 ac_status=$?
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); }; } &&
13972 { ac_try='test -s conftest.$ac_objext'
13973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13974 (eval $ac_try) 2>&5
13975 ac_status=$?
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); }; }; then
13978 ac_lo=0 ac_mid=0
13979 while :; do
13980 cat >conftest.$ac_ext <<_ACEOF
13981 /* confdefs.h. */
13982 _ACEOF
13983 cat confdefs.h >>conftest.$ac_ext
13984 cat >>conftest.$ac_ext <<_ACEOF
13985 /* end confdefs.h. */
13986 $ac_includes_default
13988 main ()
13990 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13991 test_array [0] = 0
13994 return 0;
13996 _ACEOF
13997 rm -f conftest.$ac_objext
13998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13999 (eval $ac_compile) 2>conftest.er1
14000 ac_status=$?
14001 grep -v '^ *+' conftest.er1 >conftest.err
14002 rm -f conftest.er1
14003 cat conftest.err >&5
14004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005 (exit $ac_status); } &&
14006 { ac_try='test -z "$ac_c_werror_flag"
14007 || test ! -s conftest.err'
14008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14009 (eval $ac_try) 2>&5
14010 ac_status=$?
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); }; } &&
14013 { ac_try='test -s conftest.$ac_objext'
14014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14015 (eval $ac_try) 2>&5
14016 ac_status=$?
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); }; }; then
14019 ac_hi=$ac_mid; break
14020 else
14021 echo "$as_me: failed program was:" >&5
14022 sed 's/^/| /' conftest.$ac_ext >&5
14024 ac_lo=`expr $ac_mid + 1`
14025 if test $ac_lo -le $ac_mid; then
14026 ac_lo= ac_hi=
14027 break
14029 ac_mid=`expr 2 '*' $ac_mid + 1`
14031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14032 done
14033 else
14034 echo "$as_me: failed program was:" >&5
14035 sed 's/^/| /' conftest.$ac_ext >&5
14037 cat >conftest.$ac_ext <<_ACEOF
14038 /* confdefs.h. */
14039 _ACEOF
14040 cat confdefs.h >>conftest.$ac_ext
14041 cat >>conftest.$ac_ext <<_ACEOF
14042 /* end confdefs.h. */
14043 $ac_includes_default
14045 main ()
14047 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14048 test_array [0] = 0
14051 return 0;
14053 _ACEOF
14054 rm -f conftest.$ac_objext
14055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14056 (eval $ac_compile) 2>conftest.er1
14057 ac_status=$?
14058 grep -v '^ *+' conftest.er1 >conftest.err
14059 rm -f conftest.er1
14060 cat conftest.err >&5
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); } &&
14063 { ac_try='test -z "$ac_c_werror_flag"
14064 || test ! -s conftest.err'
14065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14066 (eval $ac_try) 2>&5
14067 ac_status=$?
14068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069 (exit $ac_status); }; } &&
14070 { ac_try='test -s conftest.$ac_objext'
14071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14072 (eval $ac_try) 2>&5
14073 ac_status=$?
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); }; }; then
14076 ac_hi=-1 ac_mid=-1
14077 while :; do
14078 cat >conftest.$ac_ext <<_ACEOF
14079 /* confdefs.h. */
14080 _ACEOF
14081 cat confdefs.h >>conftest.$ac_ext
14082 cat >>conftest.$ac_ext <<_ACEOF
14083 /* end confdefs.h. */
14084 $ac_includes_default
14086 main ()
14088 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14089 test_array [0] = 0
14092 return 0;
14094 _ACEOF
14095 rm -f conftest.$ac_objext
14096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14097 (eval $ac_compile) 2>conftest.er1
14098 ac_status=$?
14099 grep -v '^ *+' conftest.er1 >conftest.err
14100 rm -f conftest.er1
14101 cat conftest.err >&5
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); } &&
14104 { ac_try='test -z "$ac_c_werror_flag"
14105 || test ! -s conftest.err'
14106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14107 (eval $ac_try) 2>&5
14108 ac_status=$?
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); }; } &&
14111 { ac_try='test -s conftest.$ac_objext'
14112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14113 (eval $ac_try) 2>&5
14114 ac_status=$?
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); }; }; then
14117 ac_lo=$ac_mid; break
14118 else
14119 echo "$as_me: failed program was:" >&5
14120 sed 's/^/| /' conftest.$ac_ext >&5
14122 ac_hi=`expr '(' $ac_mid ')' - 1`
14123 if test $ac_mid -le $ac_hi; then
14124 ac_lo= ac_hi=
14125 break
14127 ac_mid=`expr 2 '*' $ac_mid`
14129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14130 done
14131 else
14132 echo "$as_me: failed program was:" >&5
14133 sed 's/^/| /' conftest.$ac_ext >&5
14135 ac_lo= ac_hi=
14137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14140 # Binary search between lo and hi bounds.
14141 while test "x$ac_lo" != "x$ac_hi"; do
14142 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14143 cat >conftest.$ac_ext <<_ACEOF
14144 /* confdefs.h. */
14145 _ACEOF
14146 cat confdefs.h >>conftest.$ac_ext
14147 cat >>conftest.$ac_ext <<_ACEOF
14148 /* end confdefs.h. */
14149 $ac_includes_default
14151 main ()
14153 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14154 test_array [0] = 0
14157 return 0;
14159 _ACEOF
14160 rm -f conftest.$ac_objext
14161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14162 (eval $ac_compile) 2>conftest.er1
14163 ac_status=$?
14164 grep -v '^ *+' conftest.er1 >conftest.err
14165 rm -f conftest.er1
14166 cat conftest.err >&5
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); } &&
14169 { ac_try='test -z "$ac_c_werror_flag"
14170 || test ! -s conftest.err'
14171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14172 (eval $ac_try) 2>&5
14173 ac_status=$?
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); }; } &&
14176 { ac_try='test -s conftest.$ac_objext'
14177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14178 (eval $ac_try) 2>&5
14179 ac_status=$?
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); }; }; then
14182 ac_hi=$ac_mid
14183 else
14184 echo "$as_me: failed program was:" >&5
14185 sed 's/^/| /' conftest.$ac_ext >&5
14187 ac_lo=`expr '(' $ac_mid ')' + 1`
14189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14190 done
14191 case $ac_lo in
14192 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14193 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14194 echo "$as_me: error: in \`$ac_pwd':" >&2;}
14195 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14196 See \`config.log' for more details." >&5
14197 echo "$as_me: error: cannot compute sizeof (void *), 77
14198 See \`config.log' for more details." >&2;}
14199 { (exit 1); exit 1; }; }; } ;;
14200 esac
14201 else
14202 if test "$cross_compiling" = yes; then
14203 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14204 echo "$as_me: error: in \`$ac_pwd':" >&2;}
14205 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14206 See \`config.log' for more details." >&5
14207 echo "$as_me: error: cannot run test program while cross compiling
14208 See \`config.log' for more details." >&2;}
14209 { (exit 1); exit 1; }; }; }
14210 else
14211 cat >conftest.$ac_ext <<_ACEOF
14212 /* confdefs.h. */
14213 _ACEOF
14214 cat confdefs.h >>conftest.$ac_ext
14215 cat >>conftest.$ac_ext <<_ACEOF
14216 /* end confdefs.h. */
14217 $ac_includes_default
14218 long longval () { return (long) (sizeof (void *)); }
14219 unsigned long ulongval () { return (long) (sizeof (void *)); }
14220 #include <stdio.h>
14221 #include <stdlib.h>
14223 main ()
14226 FILE *f = fopen ("conftest.val", "w");
14227 if (! f)
14228 exit (1);
14229 if (((long) (sizeof (void *))) < 0)
14231 long i = longval ();
14232 if (i != ((long) (sizeof (void *))))
14233 exit (1);
14234 fprintf (f, "%ld\n", i);
14236 else
14238 unsigned long i = ulongval ();
14239 if (i != ((long) (sizeof (void *))))
14240 exit (1);
14241 fprintf (f, "%lu\n", i);
14243 exit (ferror (f) || fclose (f) != 0);
14246 return 0;
14248 _ACEOF
14249 rm -f conftest$ac_exeext
14250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14251 (eval $ac_link) 2>&5
14252 ac_status=$?
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14256 (eval $ac_try) 2>&5
14257 ac_status=$?
14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); }; }; then
14260 ac_cv_sizeof_void_p=`cat conftest.val`
14261 else
14262 echo "$as_me: program exited with status $ac_status" >&5
14263 echo "$as_me: failed program was:" >&5
14264 sed 's/^/| /' conftest.$ac_ext >&5
14266 ( exit $ac_status )
14267 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14268 echo "$as_me: error: in \`$ac_pwd':" >&2;}
14269 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14270 See \`config.log' for more details." >&5
14271 echo "$as_me: error: cannot compute sizeof (void *), 77
14272 See \`config.log' for more details." >&2;}
14273 { (exit 1); exit 1; }; }; }
14275 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14278 rm -f conftest.val
14279 else
14280 ac_cv_sizeof_void_p=0
14283 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14284 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14285 cat >>confdefs.h <<_ACEOF
14286 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14287 _ACEOF
14290 esac
14292 # Lacking an uint64_t? Test size of long
14293 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14294 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
14295 echo $ECHO_N "checking for long... $ECHO_C" >&6
14296 if test "${ac_cv_type_long+set}" = set; then
14297 echo $ECHO_N "(cached) $ECHO_C" >&6
14298 else
14299 cat >conftest.$ac_ext <<_ACEOF
14300 /* confdefs.h. */
14301 _ACEOF
14302 cat confdefs.h >>conftest.$ac_ext
14303 cat >>conftest.$ac_ext <<_ACEOF
14304 /* end confdefs.h. */
14305 $ac_includes_default
14307 main ()
14309 if ((long *) 0)
14310 return 0;
14311 if (sizeof (long))
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_long=yes
14340 else
14341 echo "$as_me: failed program was:" >&5
14342 sed 's/^/| /' conftest.$ac_ext >&5
14344 ac_cv_type_long=no
14346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14348 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14349 echo "${ECHO_T}$ac_cv_type_long" >&6
14351 echo "$as_me:$LINENO: checking size of long" >&5
14352 echo $ECHO_N "checking size of long... $ECHO_C" >&6
14353 if test "${ac_cv_sizeof_long+set}" = set; then
14354 echo $ECHO_N "(cached) $ECHO_C" >&6
14355 else
14356 if test "$ac_cv_type_long" = yes; then
14357 # The cast to unsigned long works around a bug in the HP C Compiler
14358 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14359 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14360 # This bug is HP SR number 8606223364.
14361 if test "$cross_compiling" = yes; then
14362 # Depending upon the size, compute the lo and hi bounds.
14363 cat >conftest.$ac_ext <<_ACEOF
14364 /* confdefs.h. */
14365 _ACEOF
14366 cat confdefs.h >>conftest.$ac_ext
14367 cat >>conftest.$ac_ext <<_ACEOF
14368 /* end confdefs.h. */
14369 $ac_includes_default
14371 main ()
14373 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
14374 test_array [0] = 0
14377 return 0;
14379 _ACEOF
14380 rm -f conftest.$ac_objext
14381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14382 (eval $ac_compile) 2>conftest.er1
14383 ac_status=$?
14384 grep -v '^ *+' conftest.er1 >conftest.err
14385 rm -f conftest.er1
14386 cat conftest.err >&5
14387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 (exit $ac_status); } &&
14389 { ac_try='test -z "$ac_c_werror_flag"
14390 || test ! -s conftest.err'
14391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14392 (eval $ac_try) 2>&5
14393 ac_status=$?
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); }; } &&
14396 { ac_try='test -s conftest.$ac_objext'
14397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14398 (eval $ac_try) 2>&5
14399 ac_status=$?
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); }; }; then
14402 ac_lo=0 ac_mid=0
14403 while :; do
14404 cat >conftest.$ac_ext <<_ACEOF
14405 /* confdefs.h. */
14406 _ACEOF
14407 cat confdefs.h >>conftest.$ac_ext
14408 cat >>conftest.$ac_ext <<_ACEOF
14409 /* end confdefs.h. */
14410 $ac_includes_default
14412 main ()
14414 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14415 test_array [0] = 0
14418 return 0;
14420 _ACEOF
14421 rm -f conftest.$ac_objext
14422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14423 (eval $ac_compile) 2>conftest.er1
14424 ac_status=$?
14425 grep -v '^ *+' conftest.er1 >conftest.err
14426 rm -f conftest.er1
14427 cat conftest.err >&5
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); } &&
14430 { ac_try='test -z "$ac_c_werror_flag"
14431 || test ! -s conftest.err'
14432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14433 (eval $ac_try) 2>&5
14434 ac_status=$?
14435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436 (exit $ac_status); }; } &&
14437 { ac_try='test -s conftest.$ac_objext'
14438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14439 (eval $ac_try) 2>&5
14440 ac_status=$?
14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); }; }; then
14443 ac_hi=$ac_mid; break
14444 else
14445 echo "$as_me: failed program was:" >&5
14446 sed 's/^/| /' conftest.$ac_ext >&5
14448 ac_lo=`expr $ac_mid + 1`
14449 if test $ac_lo -le $ac_mid; then
14450 ac_lo= ac_hi=
14451 break
14453 ac_mid=`expr 2 '*' $ac_mid + 1`
14455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14456 done
14457 else
14458 echo "$as_me: failed program was:" >&5
14459 sed 's/^/| /' conftest.$ac_ext >&5
14461 cat >conftest.$ac_ext <<_ACEOF
14462 /* confdefs.h. */
14463 _ACEOF
14464 cat confdefs.h >>conftest.$ac_ext
14465 cat >>conftest.$ac_ext <<_ACEOF
14466 /* end confdefs.h. */
14467 $ac_includes_default
14469 main ()
14471 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
14472 test_array [0] = 0
14475 return 0;
14477 _ACEOF
14478 rm -f conftest.$ac_objext
14479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14480 (eval $ac_compile) 2>conftest.er1
14481 ac_status=$?
14482 grep -v '^ *+' conftest.er1 >conftest.err
14483 rm -f conftest.er1
14484 cat conftest.err >&5
14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); } &&
14487 { ac_try='test -z "$ac_c_werror_flag"
14488 || test ! -s conftest.err'
14489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14490 (eval $ac_try) 2>&5
14491 ac_status=$?
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); }; } &&
14494 { ac_try='test -s conftest.$ac_objext'
14495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14496 (eval $ac_try) 2>&5
14497 ac_status=$?
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); }; }; then
14500 ac_hi=-1 ac_mid=-1
14501 while :; do
14502 cat >conftest.$ac_ext <<_ACEOF
14503 /* confdefs.h. */
14504 _ACEOF
14505 cat confdefs.h >>conftest.$ac_ext
14506 cat >>conftest.$ac_ext <<_ACEOF
14507 /* end confdefs.h. */
14508 $ac_includes_default
14510 main ()
14512 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
14513 test_array [0] = 0
14516 return 0;
14518 _ACEOF
14519 rm -f conftest.$ac_objext
14520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14521 (eval $ac_compile) 2>conftest.er1
14522 ac_status=$?
14523 grep -v '^ *+' conftest.er1 >conftest.err
14524 rm -f conftest.er1
14525 cat conftest.err >&5
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); } &&
14528 { ac_try='test -z "$ac_c_werror_flag"
14529 || test ! -s conftest.err'
14530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14531 (eval $ac_try) 2>&5
14532 ac_status=$?
14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); }; } &&
14535 { ac_try='test -s conftest.$ac_objext'
14536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14537 (eval $ac_try) 2>&5
14538 ac_status=$?
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); }; }; then
14541 ac_lo=$ac_mid; break
14542 else
14543 echo "$as_me: failed program was:" >&5
14544 sed 's/^/| /' conftest.$ac_ext >&5
14546 ac_hi=`expr '(' $ac_mid ')' - 1`
14547 if test $ac_mid -le $ac_hi; then
14548 ac_lo= ac_hi=
14549 break
14551 ac_mid=`expr 2 '*' $ac_mid`
14553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14554 done
14555 else
14556 echo "$as_me: failed program was:" >&5
14557 sed 's/^/| /' conftest.$ac_ext >&5
14559 ac_lo= ac_hi=
14561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14564 # Binary search between lo and hi bounds.
14565 while test "x$ac_lo" != "x$ac_hi"; do
14566 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14567 cat >conftest.$ac_ext <<_ACEOF
14568 /* confdefs.h. */
14569 _ACEOF
14570 cat confdefs.h >>conftest.$ac_ext
14571 cat >>conftest.$ac_ext <<_ACEOF
14572 /* end confdefs.h. */
14573 $ac_includes_default
14575 main ()
14577 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14578 test_array [0] = 0
14581 return 0;
14583 _ACEOF
14584 rm -f conftest.$ac_objext
14585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14586 (eval $ac_compile) 2>conftest.er1
14587 ac_status=$?
14588 grep -v '^ *+' conftest.er1 >conftest.err
14589 rm -f conftest.er1
14590 cat conftest.err >&5
14591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592 (exit $ac_status); } &&
14593 { ac_try='test -z "$ac_c_werror_flag"
14594 || test ! -s conftest.err'
14595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14596 (eval $ac_try) 2>&5
14597 ac_status=$?
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); }; } &&
14600 { ac_try='test -s conftest.$ac_objext'
14601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14602 (eval $ac_try) 2>&5
14603 ac_status=$?
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); }; }; then
14606 ac_hi=$ac_mid
14607 else
14608 echo "$as_me: failed program was:" >&5
14609 sed 's/^/| /' conftest.$ac_ext >&5
14611 ac_lo=`expr '(' $ac_mid ')' + 1`
14613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14614 done
14615 case $ac_lo in
14616 ?*) ac_cv_sizeof_long=$ac_lo;;
14617 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14618 echo "$as_me: error: in \`$ac_pwd':" >&2;}
14619 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
14620 See \`config.log' for more details." >&5
14621 echo "$as_me: error: cannot compute sizeof (long), 77
14622 See \`config.log' for more details." >&2;}
14623 { (exit 1); exit 1; }; }; } ;;
14624 esac
14625 else
14626 if test "$cross_compiling" = yes; then
14627 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14628 echo "$as_me: error: in \`$ac_pwd':" >&2;}
14629 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14630 See \`config.log' for more details." >&5
14631 echo "$as_me: error: cannot run test program while cross compiling
14632 See \`config.log' for more details." >&2;}
14633 { (exit 1); exit 1; }; }; }
14634 else
14635 cat >conftest.$ac_ext <<_ACEOF
14636 /* confdefs.h. */
14637 _ACEOF
14638 cat confdefs.h >>conftest.$ac_ext
14639 cat >>conftest.$ac_ext <<_ACEOF
14640 /* end confdefs.h. */
14641 $ac_includes_default
14642 long longval () { return (long) (sizeof (long)); }
14643 unsigned long ulongval () { return (long) (sizeof (long)); }
14644 #include <stdio.h>
14645 #include <stdlib.h>
14647 main ()
14650 FILE *f = fopen ("conftest.val", "w");
14651 if (! f)
14652 exit (1);
14653 if (((long) (sizeof (long))) < 0)
14655 long i = longval ();
14656 if (i != ((long) (sizeof (long))))
14657 exit (1);
14658 fprintf (f, "%ld\n", i);
14660 else
14662 unsigned long i = ulongval ();
14663 if (i != ((long) (sizeof (long))))
14664 exit (1);
14665 fprintf (f, "%lu\n", i);
14667 exit (ferror (f) || fclose (f) != 0);
14670 return 0;
14672 _ACEOF
14673 rm -f conftest$ac_exeext
14674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14675 (eval $ac_link) 2>&5
14676 ac_status=$?
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14680 (eval $ac_try) 2>&5
14681 ac_status=$?
14682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683 (exit $ac_status); }; }; then
14684 ac_cv_sizeof_long=`cat conftest.val`
14685 else
14686 echo "$as_me: program exited with status $ac_status" >&5
14687 echo "$as_me: failed program was:" >&5
14688 sed 's/^/| /' conftest.$ac_ext >&5
14690 ( exit $ac_status )
14691 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14692 echo "$as_me: error: in \`$ac_pwd':" >&2;}
14693 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
14694 See \`config.log' for more details." >&5
14695 echo "$as_me: error: cannot compute sizeof (long), 77
14696 See \`config.log' for more details." >&2;}
14697 { (exit 1); exit 1; }; }; }
14699 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14702 rm -f conftest.val
14703 else
14704 ac_cv_sizeof_long=0
14707 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
14708 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
14709 cat >>confdefs.h <<_ACEOF
14710 #define SIZEOF_LONG $ac_cv_sizeof_long
14711 _ACEOF
14714 esac
14716 if test $acx_cv_header_stdint = stddef.h; then
14717 # Lacking a good header? Test size of everything and deduce all types.
14718 echo "$as_me:$LINENO: checking for int" >&5
14719 echo $ECHO_N "checking for int... $ECHO_C" >&6
14720 if test "${ac_cv_type_int+set}" = set; then
14721 echo $ECHO_N "(cached) $ECHO_C" >&6
14722 else
14723 cat >conftest.$ac_ext <<_ACEOF
14724 /* confdefs.h. */
14725 _ACEOF
14726 cat confdefs.h >>conftest.$ac_ext
14727 cat >>conftest.$ac_ext <<_ACEOF
14728 /* end confdefs.h. */
14729 $ac_includes_default
14731 main ()
14733 if ((int *) 0)
14734 return 0;
14735 if (sizeof (int))
14736 return 0;
14738 return 0;
14740 _ACEOF
14741 rm -f conftest.$ac_objext
14742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14743 (eval $ac_compile) 2>conftest.er1
14744 ac_status=$?
14745 grep -v '^ *+' conftest.er1 >conftest.err
14746 rm -f conftest.er1
14747 cat conftest.err >&5
14748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749 (exit $ac_status); } &&
14750 { ac_try='test -z "$ac_c_werror_flag"
14751 || test ! -s conftest.err'
14752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14753 (eval $ac_try) 2>&5
14754 ac_status=$?
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); }; } &&
14757 { ac_try='test -s conftest.$ac_objext'
14758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14759 (eval $ac_try) 2>&5
14760 ac_status=$?
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); }; }; then
14763 ac_cv_type_int=yes
14764 else
14765 echo "$as_me: failed program was:" >&5
14766 sed 's/^/| /' conftest.$ac_ext >&5
14768 ac_cv_type_int=no
14770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14772 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14773 echo "${ECHO_T}$ac_cv_type_int" >&6
14775 echo "$as_me:$LINENO: checking size of int" >&5
14776 echo $ECHO_N "checking size of int... $ECHO_C" >&6
14777 if test "${ac_cv_sizeof_int+set}" = set; then
14778 echo $ECHO_N "(cached) $ECHO_C" >&6
14779 else
14780 if test "$ac_cv_type_int" = yes; then
14781 # The cast to unsigned long works around a bug in the HP C Compiler
14782 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14783 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14784 # This bug is HP SR number 8606223364.
14785 if test "$cross_compiling" = yes; then
14786 # Depending upon the size, compute the lo and hi bounds.
14787 cat >conftest.$ac_ext <<_ACEOF
14788 /* confdefs.h. */
14789 _ACEOF
14790 cat confdefs.h >>conftest.$ac_ext
14791 cat >>conftest.$ac_ext <<_ACEOF
14792 /* end confdefs.h. */
14793 $ac_includes_default
14795 main ()
14797 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14798 test_array [0] = 0
14801 return 0;
14803 _ACEOF
14804 rm -f conftest.$ac_objext
14805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14806 (eval $ac_compile) 2>conftest.er1
14807 ac_status=$?
14808 grep -v '^ *+' conftest.er1 >conftest.err
14809 rm -f conftest.er1
14810 cat conftest.err >&5
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); } &&
14813 { ac_try='test -z "$ac_c_werror_flag"
14814 || test ! -s conftest.err'
14815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14816 (eval $ac_try) 2>&5
14817 ac_status=$?
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); }; } &&
14820 { ac_try='test -s conftest.$ac_objext'
14821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14822 (eval $ac_try) 2>&5
14823 ac_status=$?
14824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); }; }; then
14826 ac_lo=0 ac_mid=0
14827 while :; do
14828 cat >conftest.$ac_ext <<_ACEOF
14829 /* confdefs.h. */
14830 _ACEOF
14831 cat confdefs.h >>conftest.$ac_ext
14832 cat >>conftest.$ac_ext <<_ACEOF
14833 /* end confdefs.h. */
14834 $ac_includes_default
14836 main ()
14838 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14839 test_array [0] = 0
14842 return 0;
14844 _ACEOF
14845 rm -f conftest.$ac_objext
14846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14847 (eval $ac_compile) 2>conftest.er1
14848 ac_status=$?
14849 grep -v '^ *+' conftest.er1 >conftest.err
14850 rm -f conftest.er1
14851 cat conftest.err >&5
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); } &&
14854 { ac_try='test -z "$ac_c_werror_flag"
14855 || test ! -s conftest.err'
14856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14857 (eval $ac_try) 2>&5
14858 ac_status=$?
14859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); }; } &&
14861 { ac_try='test -s conftest.$ac_objext'
14862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14863 (eval $ac_try) 2>&5
14864 ac_status=$?
14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866 (exit $ac_status); }; }; then
14867 ac_hi=$ac_mid; break
14868 else
14869 echo "$as_me: failed program was:" >&5
14870 sed 's/^/| /' conftest.$ac_ext >&5
14872 ac_lo=`expr $ac_mid + 1`
14873 if test $ac_lo -le $ac_mid; then
14874 ac_lo= ac_hi=
14875 break
14877 ac_mid=`expr 2 '*' $ac_mid + 1`
14879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14880 done
14881 else
14882 echo "$as_me: failed program was:" >&5
14883 sed 's/^/| /' conftest.$ac_ext >&5
14885 cat >conftest.$ac_ext <<_ACEOF
14886 /* confdefs.h. */
14887 _ACEOF
14888 cat confdefs.h >>conftest.$ac_ext
14889 cat >>conftest.$ac_ext <<_ACEOF
14890 /* end confdefs.h. */
14891 $ac_includes_default
14893 main ()
14895 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14896 test_array [0] = 0
14899 return 0;
14901 _ACEOF
14902 rm -f conftest.$ac_objext
14903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14904 (eval $ac_compile) 2>conftest.er1
14905 ac_status=$?
14906 grep -v '^ *+' conftest.er1 >conftest.err
14907 rm -f conftest.er1
14908 cat conftest.err >&5
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); } &&
14911 { ac_try='test -z "$ac_c_werror_flag"
14912 || test ! -s conftest.err'
14913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14914 (eval $ac_try) 2>&5
14915 ac_status=$?
14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917 (exit $ac_status); }; } &&
14918 { ac_try='test -s conftest.$ac_objext'
14919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14920 (eval $ac_try) 2>&5
14921 ac_status=$?
14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); }; }; then
14924 ac_hi=-1 ac_mid=-1
14925 while :; do
14926 cat >conftest.$ac_ext <<_ACEOF
14927 /* confdefs.h. */
14928 _ACEOF
14929 cat confdefs.h >>conftest.$ac_ext
14930 cat >>conftest.$ac_ext <<_ACEOF
14931 /* end confdefs.h. */
14932 $ac_includes_default
14934 main ()
14936 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14937 test_array [0] = 0
14940 return 0;
14942 _ACEOF
14943 rm -f conftest.$ac_objext
14944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14945 (eval $ac_compile) 2>conftest.er1
14946 ac_status=$?
14947 grep -v '^ *+' conftest.er1 >conftest.err
14948 rm -f conftest.er1
14949 cat conftest.err >&5
14950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951 (exit $ac_status); } &&
14952 { ac_try='test -z "$ac_c_werror_flag"
14953 || test ! -s conftest.err'
14954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14955 (eval $ac_try) 2>&5
14956 ac_status=$?
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); }; } &&
14959 { ac_try='test -s conftest.$ac_objext'
14960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14961 (eval $ac_try) 2>&5
14962 ac_status=$?
14963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); }; }; then
14965 ac_lo=$ac_mid; break
14966 else
14967 echo "$as_me: failed program was:" >&5
14968 sed 's/^/| /' conftest.$ac_ext >&5
14970 ac_hi=`expr '(' $ac_mid ')' - 1`
14971 if test $ac_mid -le $ac_hi; then
14972 ac_lo= ac_hi=
14973 break
14975 ac_mid=`expr 2 '*' $ac_mid`
14977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14978 done
14979 else
14980 echo "$as_me: failed program was:" >&5
14981 sed 's/^/| /' conftest.$ac_ext >&5
14983 ac_lo= ac_hi=
14985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14988 # Binary search between lo and hi bounds.
14989 while test "x$ac_lo" != "x$ac_hi"; do
14990 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14991 cat >conftest.$ac_ext <<_ACEOF
14992 /* confdefs.h. */
14993 _ACEOF
14994 cat confdefs.h >>conftest.$ac_ext
14995 cat >>conftest.$ac_ext <<_ACEOF
14996 /* end confdefs.h. */
14997 $ac_includes_default
14999 main ()
15001 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15002 test_array [0] = 0
15005 return 0;
15007 _ACEOF
15008 rm -f conftest.$ac_objext
15009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15010 (eval $ac_compile) 2>conftest.er1
15011 ac_status=$?
15012 grep -v '^ *+' conftest.er1 >conftest.err
15013 rm -f conftest.er1
15014 cat conftest.err >&5
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); } &&
15017 { ac_try='test -z "$ac_c_werror_flag"
15018 || test ! -s conftest.err'
15019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15020 (eval $ac_try) 2>&5
15021 ac_status=$?
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); }; } &&
15024 { ac_try='test -s conftest.$ac_objext'
15025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15026 (eval $ac_try) 2>&5
15027 ac_status=$?
15028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029 (exit $ac_status); }; }; then
15030 ac_hi=$ac_mid
15031 else
15032 echo "$as_me: failed program was:" >&5
15033 sed 's/^/| /' conftest.$ac_ext >&5
15035 ac_lo=`expr '(' $ac_mid ')' + 1`
15037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15038 done
15039 case $ac_lo in
15040 ?*) ac_cv_sizeof_int=$ac_lo;;
15041 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15042 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15043 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15044 See \`config.log' for more details." >&5
15045 echo "$as_me: error: cannot compute sizeof (int), 77
15046 See \`config.log' for more details." >&2;}
15047 { (exit 1); exit 1; }; }; } ;;
15048 esac
15049 else
15050 if test "$cross_compiling" = yes; then
15051 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15052 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15053 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15054 See \`config.log' for more details." >&5
15055 echo "$as_me: error: cannot run test program while cross compiling
15056 See \`config.log' for more details." >&2;}
15057 { (exit 1); exit 1; }; }; }
15058 else
15059 cat >conftest.$ac_ext <<_ACEOF
15060 /* confdefs.h. */
15061 _ACEOF
15062 cat confdefs.h >>conftest.$ac_ext
15063 cat >>conftest.$ac_ext <<_ACEOF
15064 /* end confdefs.h. */
15065 $ac_includes_default
15066 long longval () { return (long) (sizeof (int)); }
15067 unsigned long ulongval () { return (long) (sizeof (int)); }
15068 #include <stdio.h>
15069 #include <stdlib.h>
15071 main ()
15074 FILE *f = fopen ("conftest.val", "w");
15075 if (! f)
15076 exit (1);
15077 if (((long) (sizeof (int))) < 0)
15079 long i = longval ();
15080 if (i != ((long) (sizeof (int))))
15081 exit (1);
15082 fprintf (f, "%ld\n", i);
15084 else
15086 unsigned long i = ulongval ();
15087 if (i != ((long) (sizeof (int))))
15088 exit (1);
15089 fprintf (f, "%lu\n", i);
15091 exit (ferror (f) || fclose (f) != 0);
15094 return 0;
15096 _ACEOF
15097 rm -f conftest$ac_exeext
15098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15099 (eval $ac_link) 2>&5
15100 ac_status=$?
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15104 (eval $ac_try) 2>&5
15105 ac_status=$?
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); }; }; then
15108 ac_cv_sizeof_int=`cat conftest.val`
15109 else
15110 echo "$as_me: program exited with status $ac_status" >&5
15111 echo "$as_me: failed program was:" >&5
15112 sed 's/^/| /' conftest.$ac_ext >&5
15114 ( exit $ac_status )
15115 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15116 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15117 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15118 See \`config.log' for more details." >&5
15119 echo "$as_me: error: cannot compute sizeof (int), 77
15120 See \`config.log' for more details." >&2;}
15121 { (exit 1); exit 1; }; }; }
15123 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15126 rm -f conftest.val
15127 else
15128 ac_cv_sizeof_int=0
15131 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15132 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15133 cat >>confdefs.h <<_ACEOF
15134 #define SIZEOF_INT $ac_cv_sizeof_int
15135 _ACEOF
15138 echo "$as_me:$LINENO: checking for short" >&5
15139 echo $ECHO_N "checking for short... $ECHO_C" >&6
15140 if test "${ac_cv_type_short+set}" = set; then
15141 echo $ECHO_N "(cached) $ECHO_C" >&6
15142 else
15143 cat >conftest.$ac_ext <<_ACEOF
15144 /* confdefs.h. */
15145 _ACEOF
15146 cat confdefs.h >>conftest.$ac_ext
15147 cat >>conftest.$ac_ext <<_ACEOF
15148 /* end confdefs.h. */
15149 $ac_includes_default
15151 main ()
15153 if ((short *) 0)
15154 return 0;
15155 if (sizeof (short))
15156 return 0;
15158 return 0;
15160 _ACEOF
15161 rm -f conftest.$ac_objext
15162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15163 (eval $ac_compile) 2>conftest.er1
15164 ac_status=$?
15165 grep -v '^ *+' conftest.er1 >conftest.err
15166 rm -f conftest.er1
15167 cat conftest.err >&5
15168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169 (exit $ac_status); } &&
15170 { ac_try='test -z "$ac_c_werror_flag"
15171 || test ! -s conftest.err'
15172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15173 (eval $ac_try) 2>&5
15174 ac_status=$?
15175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 (exit $ac_status); }; } &&
15177 { ac_try='test -s conftest.$ac_objext'
15178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15179 (eval $ac_try) 2>&5
15180 ac_status=$?
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); }; }; then
15183 ac_cv_type_short=yes
15184 else
15185 echo "$as_me: failed program was:" >&5
15186 sed 's/^/| /' conftest.$ac_ext >&5
15188 ac_cv_type_short=no
15190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15192 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15193 echo "${ECHO_T}$ac_cv_type_short" >&6
15195 echo "$as_me:$LINENO: checking size of short" >&5
15196 echo $ECHO_N "checking size of short... $ECHO_C" >&6
15197 if test "${ac_cv_sizeof_short+set}" = set; then
15198 echo $ECHO_N "(cached) $ECHO_C" >&6
15199 else
15200 if test "$ac_cv_type_short" = yes; then
15201 # The cast to unsigned long works around a bug in the HP C Compiler
15202 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15203 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15204 # This bug is HP SR number 8606223364.
15205 if test "$cross_compiling" = yes; then
15206 # Depending upon the size, compute the lo and hi bounds.
15207 cat >conftest.$ac_ext <<_ACEOF
15208 /* confdefs.h. */
15209 _ACEOF
15210 cat confdefs.h >>conftest.$ac_ext
15211 cat >>conftest.$ac_ext <<_ACEOF
15212 /* end confdefs.h. */
15213 $ac_includes_default
15215 main ()
15217 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15218 test_array [0] = 0
15221 return 0;
15223 _ACEOF
15224 rm -f conftest.$ac_objext
15225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15226 (eval $ac_compile) 2>conftest.er1
15227 ac_status=$?
15228 grep -v '^ *+' conftest.er1 >conftest.err
15229 rm -f conftest.er1
15230 cat conftest.err >&5
15231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232 (exit $ac_status); } &&
15233 { ac_try='test -z "$ac_c_werror_flag"
15234 || test ! -s conftest.err'
15235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15236 (eval $ac_try) 2>&5
15237 ac_status=$?
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); }; } &&
15240 { ac_try='test -s conftest.$ac_objext'
15241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15242 (eval $ac_try) 2>&5
15243 ac_status=$?
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); }; }; then
15246 ac_lo=0 ac_mid=0
15247 while :; do
15248 cat >conftest.$ac_ext <<_ACEOF
15249 /* confdefs.h. */
15250 _ACEOF
15251 cat confdefs.h >>conftest.$ac_ext
15252 cat >>conftest.$ac_ext <<_ACEOF
15253 /* end confdefs.h. */
15254 $ac_includes_default
15256 main ()
15258 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15259 test_array [0] = 0
15262 return 0;
15264 _ACEOF
15265 rm -f conftest.$ac_objext
15266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15267 (eval $ac_compile) 2>conftest.er1
15268 ac_status=$?
15269 grep -v '^ *+' conftest.er1 >conftest.err
15270 rm -f conftest.er1
15271 cat conftest.err >&5
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); } &&
15274 { ac_try='test -z "$ac_c_werror_flag"
15275 || test ! -s conftest.err'
15276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15277 (eval $ac_try) 2>&5
15278 ac_status=$?
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); }; } &&
15281 { ac_try='test -s conftest.$ac_objext'
15282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15283 (eval $ac_try) 2>&5
15284 ac_status=$?
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); }; }; then
15287 ac_hi=$ac_mid; break
15288 else
15289 echo "$as_me: failed program was:" >&5
15290 sed 's/^/| /' conftest.$ac_ext >&5
15292 ac_lo=`expr $ac_mid + 1`
15293 if test $ac_lo -le $ac_mid; then
15294 ac_lo= ac_hi=
15295 break
15297 ac_mid=`expr 2 '*' $ac_mid + 1`
15299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15300 done
15301 else
15302 echo "$as_me: failed program was:" >&5
15303 sed 's/^/| /' conftest.$ac_ext >&5
15305 cat >conftest.$ac_ext <<_ACEOF
15306 /* confdefs.h. */
15307 _ACEOF
15308 cat confdefs.h >>conftest.$ac_ext
15309 cat >>conftest.$ac_ext <<_ACEOF
15310 /* end confdefs.h. */
15311 $ac_includes_default
15313 main ()
15315 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15316 test_array [0] = 0
15319 return 0;
15321 _ACEOF
15322 rm -f conftest.$ac_objext
15323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15324 (eval $ac_compile) 2>conftest.er1
15325 ac_status=$?
15326 grep -v '^ *+' conftest.er1 >conftest.err
15327 rm -f conftest.er1
15328 cat conftest.err >&5
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); } &&
15331 { ac_try='test -z "$ac_c_werror_flag"
15332 || test ! -s conftest.err'
15333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15334 (eval $ac_try) 2>&5
15335 ac_status=$?
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); }; } &&
15338 { ac_try='test -s conftest.$ac_objext'
15339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15340 (eval $ac_try) 2>&5
15341 ac_status=$?
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); }; }; then
15344 ac_hi=-1 ac_mid=-1
15345 while :; do
15346 cat >conftest.$ac_ext <<_ACEOF
15347 /* confdefs.h. */
15348 _ACEOF
15349 cat confdefs.h >>conftest.$ac_ext
15350 cat >>conftest.$ac_ext <<_ACEOF
15351 /* end confdefs.h. */
15352 $ac_includes_default
15354 main ()
15356 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15357 test_array [0] = 0
15360 return 0;
15362 _ACEOF
15363 rm -f conftest.$ac_objext
15364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15365 (eval $ac_compile) 2>conftest.er1
15366 ac_status=$?
15367 grep -v '^ *+' conftest.er1 >conftest.err
15368 rm -f conftest.er1
15369 cat conftest.err >&5
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); } &&
15372 { ac_try='test -z "$ac_c_werror_flag"
15373 || test ! -s conftest.err'
15374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15375 (eval $ac_try) 2>&5
15376 ac_status=$?
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); }; } &&
15379 { ac_try='test -s conftest.$ac_objext'
15380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15381 (eval $ac_try) 2>&5
15382 ac_status=$?
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); }; }; then
15385 ac_lo=$ac_mid; break
15386 else
15387 echo "$as_me: failed program was:" >&5
15388 sed 's/^/| /' conftest.$ac_ext >&5
15390 ac_hi=`expr '(' $ac_mid ')' - 1`
15391 if test $ac_mid -le $ac_hi; then
15392 ac_lo= ac_hi=
15393 break
15395 ac_mid=`expr 2 '*' $ac_mid`
15397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15398 done
15399 else
15400 echo "$as_me: failed program was:" >&5
15401 sed 's/^/| /' conftest.$ac_ext >&5
15403 ac_lo= ac_hi=
15405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15408 # Binary search between lo and hi bounds.
15409 while test "x$ac_lo" != "x$ac_hi"; do
15410 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15411 cat >conftest.$ac_ext <<_ACEOF
15412 /* confdefs.h. */
15413 _ACEOF
15414 cat confdefs.h >>conftest.$ac_ext
15415 cat >>conftest.$ac_ext <<_ACEOF
15416 /* end confdefs.h. */
15417 $ac_includes_default
15419 main ()
15421 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15422 test_array [0] = 0
15425 return 0;
15427 _ACEOF
15428 rm -f conftest.$ac_objext
15429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15430 (eval $ac_compile) 2>conftest.er1
15431 ac_status=$?
15432 grep -v '^ *+' conftest.er1 >conftest.err
15433 rm -f conftest.er1
15434 cat conftest.err >&5
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); } &&
15437 { ac_try='test -z "$ac_c_werror_flag"
15438 || test ! -s conftest.err'
15439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15440 (eval $ac_try) 2>&5
15441 ac_status=$?
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); }; } &&
15444 { ac_try='test -s conftest.$ac_objext'
15445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15446 (eval $ac_try) 2>&5
15447 ac_status=$?
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; }; then
15450 ac_hi=$ac_mid
15451 else
15452 echo "$as_me: failed program was:" >&5
15453 sed 's/^/| /' conftest.$ac_ext >&5
15455 ac_lo=`expr '(' $ac_mid ')' + 1`
15457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15458 done
15459 case $ac_lo in
15460 ?*) ac_cv_sizeof_short=$ac_lo;;
15461 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15462 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15463 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15464 See \`config.log' for more details." >&5
15465 echo "$as_me: error: cannot compute sizeof (short), 77
15466 See \`config.log' for more details." >&2;}
15467 { (exit 1); exit 1; }; }; } ;;
15468 esac
15469 else
15470 if test "$cross_compiling" = yes; then
15471 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15472 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15473 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15474 See \`config.log' for more details." >&5
15475 echo "$as_me: error: cannot run test program while cross compiling
15476 See \`config.log' for more details." >&2;}
15477 { (exit 1); exit 1; }; }; }
15478 else
15479 cat >conftest.$ac_ext <<_ACEOF
15480 /* confdefs.h. */
15481 _ACEOF
15482 cat confdefs.h >>conftest.$ac_ext
15483 cat >>conftest.$ac_ext <<_ACEOF
15484 /* end confdefs.h. */
15485 $ac_includes_default
15486 long longval () { return (long) (sizeof (short)); }
15487 unsigned long ulongval () { return (long) (sizeof (short)); }
15488 #include <stdio.h>
15489 #include <stdlib.h>
15491 main ()
15494 FILE *f = fopen ("conftest.val", "w");
15495 if (! f)
15496 exit (1);
15497 if (((long) (sizeof (short))) < 0)
15499 long i = longval ();
15500 if (i != ((long) (sizeof (short))))
15501 exit (1);
15502 fprintf (f, "%ld\n", i);
15504 else
15506 unsigned long i = ulongval ();
15507 if (i != ((long) (sizeof (short))))
15508 exit (1);
15509 fprintf (f, "%lu\n", i);
15511 exit (ferror (f) || fclose (f) != 0);
15514 return 0;
15516 _ACEOF
15517 rm -f conftest$ac_exeext
15518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15519 (eval $ac_link) 2>&5
15520 ac_status=$?
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15524 (eval $ac_try) 2>&5
15525 ac_status=$?
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); }; }; then
15528 ac_cv_sizeof_short=`cat conftest.val`
15529 else
15530 echo "$as_me: program exited with status $ac_status" >&5
15531 echo "$as_me: failed program was:" >&5
15532 sed 's/^/| /' conftest.$ac_ext >&5
15534 ( exit $ac_status )
15535 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15536 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15537 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15538 See \`config.log' for more details." >&5
15539 echo "$as_me: error: cannot compute sizeof (short), 77
15540 See \`config.log' for more details." >&2;}
15541 { (exit 1); exit 1; }; }; }
15543 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15546 rm -f conftest.val
15547 else
15548 ac_cv_sizeof_short=0
15551 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15552 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15553 cat >>confdefs.h <<_ACEOF
15554 #define SIZEOF_SHORT $ac_cv_sizeof_short
15555 _ACEOF
15558 echo "$as_me:$LINENO: checking for char" >&5
15559 echo $ECHO_N "checking for char... $ECHO_C" >&6
15560 if test "${ac_cv_type_char+set}" = set; then
15561 echo $ECHO_N "(cached) $ECHO_C" >&6
15562 else
15563 cat >conftest.$ac_ext <<_ACEOF
15564 /* confdefs.h. */
15565 _ACEOF
15566 cat confdefs.h >>conftest.$ac_ext
15567 cat >>conftest.$ac_ext <<_ACEOF
15568 /* end confdefs.h. */
15569 $ac_includes_default
15571 main ()
15573 if ((char *) 0)
15574 return 0;
15575 if (sizeof (char))
15576 return 0;
15578 return 0;
15580 _ACEOF
15581 rm -f conftest.$ac_objext
15582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15583 (eval $ac_compile) 2>conftest.er1
15584 ac_status=$?
15585 grep -v '^ *+' conftest.er1 >conftest.err
15586 rm -f conftest.er1
15587 cat conftest.err >&5
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); } &&
15590 { ac_try='test -z "$ac_c_werror_flag"
15591 || test ! -s conftest.err'
15592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15593 (eval $ac_try) 2>&5
15594 ac_status=$?
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); }; } &&
15597 { ac_try='test -s conftest.$ac_objext'
15598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15599 (eval $ac_try) 2>&5
15600 ac_status=$?
15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602 (exit $ac_status); }; }; then
15603 ac_cv_type_char=yes
15604 else
15605 echo "$as_me: failed program was:" >&5
15606 sed 's/^/| /' conftest.$ac_ext >&5
15608 ac_cv_type_char=no
15610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15612 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15613 echo "${ECHO_T}$ac_cv_type_char" >&6
15615 echo "$as_me:$LINENO: checking size of char" >&5
15616 echo $ECHO_N "checking size of char... $ECHO_C" >&6
15617 if test "${ac_cv_sizeof_char+set}" = set; then
15618 echo $ECHO_N "(cached) $ECHO_C" >&6
15619 else
15620 if test "$ac_cv_type_char" = yes; then
15621 # The cast to unsigned long works around a bug in the HP C Compiler
15622 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15623 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15624 # This bug is HP SR number 8606223364.
15625 if test "$cross_compiling" = yes; then
15626 # Depending upon the size, compute the lo and hi bounds.
15627 cat >conftest.$ac_ext <<_ACEOF
15628 /* confdefs.h. */
15629 _ACEOF
15630 cat confdefs.h >>conftest.$ac_ext
15631 cat >>conftest.$ac_ext <<_ACEOF
15632 /* end confdefs.h. */
15633 $ac_includes_default
15635 main ()
15637 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15638 test_array [0] = 0
15641 return 0;
15643 _ACEOF
15644 rm -f conftest.$ac_objext
15645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15646 (eval $ac_compile) 2>conftest.er1
15647 ac_status=$?
15648 grep -v '^ *+' conftest.er1 >conftest.err
15649 rm -f conftest.er1
15650 cat conftest.err >&5
15651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 (exit $ac_status); } &&
15653 { ac_try='test -z "$ac_c_werror_flag"
15654 || test ! -s conftest.err'
15655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15656 (eval $ac_try) 2>&5
15657 ac_status=$?
15658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659 (exit $ac_status); }; } &&
15660 { ac_try='test -s conftest.$ac_objext'
15661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15662 (eval $ac_try) 2>&5
15663 ac_status=$?
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); }; }; then
15666 ac_lo=0 ac_mid=0
15667 while :; do
15668 cat >conftest.$ac_ext <<_ACEOF
15669 /* confdefs.h. */
15670 _ACEOF
15671 cat confdefs.h >>conftest.$ac_ext
15672 cat >>conftest.$ac_ext <<_ACEOF
15673 /* end confdefs.h. */
15674 $ac_includes_default
15676 main ()
15678 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15679 test_array [0] = 0
15682 return 0;
15684 _ACEOF
15685 rm -f conftest.$ac_objext
15686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15687 (eval $ac_compile) 2>conftest.er1
15688 ac_status=$?
15689 grep -v '^ *+' conftest.er1 >conftest.err
15690 rm -f conftest.er1
15691 cat conftest.err >&5
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); } &&
15694 { ac_try='test -z "$ac_c_werror_flag"
15695 || test ! -s conftest.err'
15696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15697 (eval $ac_try) 2>&5
15698 ac_status=$?
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); }; } &&
15701 { ac_try='test -s conftest.$ac_objext'
15702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15703 (eval $ac_try) 2>&5
15704 ac_status=$?
15705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706 (exit $ac_status); }; }; then
15707 ac_hi=$ac_mid; break
15708 else
15709 echo "$as_me: failed program was:" >&5
15710 sed 's/^/| /' conftest.$ac_ext >&5
15712 ac_lo=`expr $ac_mid + 1`
15713 if test $ac_lo -le $ac_mid; then
15714 ac_lo= ac_hi=
15715 break
15717 ac_mid=`expr 2 '*' $ac_mid + 1`
15719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15720 done
15721 else
15722 echo "$as_me: failed program was:" >&5
15723 sed 's/^/| /' conftest.$ac_ext >&5
15725 cat >conftest.$ac_ext <<_ACEOF
15726 /* confdefs.h. */
15727 _ACEOF
15728 cat confdefs.h >>conftest.$ac_ext
15729 cat >>conftest.$ac_ext <<_ACEOF
15730 /* end confdefs.h. */
15731 $ac_includes_default
15733 main ()
15735 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15736 test_array [0] = 0
15739 return 0;
15741 _ACEOF
15742 rm -f conftest.$ac_objext
15743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15744 (eval $ac_compile) 2>conftest.er1
15745 ac_status=$?
15746 grep -v '^ *+' conftest.er1 >conftest.err
15747 rm -f conftest.er1
15748 cat conftest.err >&5
15749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 (exit $ac_status); } &&
15751 { ac_try='test -z "$ac_c_werror_flag"
15752 || test ! -s conftest.err'
15753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15754 (eval $ac_try) 2>&5
15755 ac_status=$?
15756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); }; } &&
15758 { ac_try='test -s conftest.$ac_objext'
15759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15760 (eval $ac_try) 2>&5
15761 ac_status=$?
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); }; }; then
15764 ac_hi=-1 ac_mid=-1
15765 while :; do
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 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15777 test_array [0] = 0
15780 return 0;
15782 _ACEOF
15783 rm -f conftest.$ac_objext
15784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15785 (eval $ac_compile) 2>conftest.er1
15786 ac_status=$?
15787 grep -v '^ *+' conftest.er1 >conftest.err
15788 rm -f conftest.er1
15789 cat conftest.err >&5
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); } &&
15792 { ac_try='test -z "$ac_c_werror_flag"
15793 || test ! -s conftest.err'
15794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15795 (eval $ac_try) 2>&5
15796 ac_status=$?
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); }; } &&
15799 { ac_try='test -s conftest.$ac_objext'
15800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15801 (eval $ac_try) 2>&5
15802 ac_status=$?
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); }; }; then
15805 ac_lo=$ac_mid; break
15806 else
15807 echo "$as_me: failed program was:" >&5
15808 sed 's/^/| /' conftest.$ac_ext >&5
15810 ac_hi=`expr '(' $ac_mid ')' - 1`
15811 if test $ac_mid -le $ac_hi; then
15812 ac_lo= ac_hi=
15813 break
15815 ac_mid=`expr 2 '*' $ac_mid`
15817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15818 done
15819 else
15820 echo "$as_me: failed program was:" >&5
15821 sed 's/^/| /' conftest.$ac_ext >&5
15823 ac_lo= ac_hi=
15825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15828 # Binary search between lo and hi bounds.
15829 while test "x$ac_lo" != "x$ac_hi"; do
15830 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15831 cat >conftest.$ac_ext <<_ACEOF
15832 /* confdefs.h. */
15833 _ACEOF
15834 cat confdefs.h >>conftest.$ac_ext
15835 cat >>conftest.$ac_ext <<_ACEOF
15836 /* end confdefs.h. */
15837 $ac_includes_default
15839 main ()
15841 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15842 test_array [0] = 0
15845 return 0;
15847 _ACEOF
15848 rm -f conftest.$ac_objext
15849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15850 (eval $ac_compile) 2>conftest.er1
15851 ac_status=$?
15852 grep -v '^ *+' conftest.er1 >conftest.err
15853 rm -f conftest.er1
15854 cat conftest.err >&5
15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); } &&
15857 { ac_try='test -z "$ac_c_werror_flag"
15858 || test ! -s conftest.err'
15859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15860 (eval $ac_try) 2>&5
15861 ac_status=$?
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); }; } &&
15864 { ac_try='test -s conftest.$ac_objext'
15865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15866 (eval $ac_try) 2>&5
15867 ac_status=$?
15868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 (exit $ac_status); }; }; then
15870 ac_hi=$ac_mid
15871 else
15872 echo "$as_me: failed program was:" >&5
15873 sed 's/^/| /' conftest.$ac_ext >&5
15875 ac_lo=`expr '(' $ac_mid ')' + 1`
15877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15878 done
15879 case $ac_lo in
15880 ?*) ac_cv_sizeof_char=$ac_lo;;
15881 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15882 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15883 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15884 See \`config.log' for more details." >&5
15885 echo "$as_me: error: cannot compute sizeof (char), 77
15886 See \`config.log' for more details." >&2;}
15887 { (exit 1); exit 1; }; }; } ;;
15888 esac
15889 else
15890 if test "$cross_compiling" = yes; then
15891 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15892 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15893 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15894 See \`config.log' for more details." >&5
15895 echo "$as_me: error: cannot run test program while cross compiling
15896 See \`config.log' for more details." >&2;}
15897 { (exit 1); exit 1; }; }; }
15898 else
15899 cat >conftest.$ac_ext <<_ACEOF
15900 /* confdefs.h. */
15901 _ACEOF
15902 cat confdefs.h >>conftest.$ac_ext
15903 cat >>conftest.$ac_ext <<_ACEOF
15904 /* end confdefs.h. */
15905 $ac_includes_default
15906 long longval () { return (long) (sizeof (char)); }
15907 unsigned long ulongval () { return (long) (sizeof (char)); }
15908 #include <stdio.h>
15909 #include <stdlib.h>
15911 main ()
15914 FILE *f = fopen ("conftest.val", "w");
15915 if (! f)
15916 exit (1);
15917 if (((long) (sizeof (char))) < 0)
15919 long i = longval ();
15920 if (i != ((long) (sizeof (char))))
15921 exit (1);
15922 fprintf (f, "%ld\n", i);
15924 else
15926 unsigned long i = ulongval ();
15927 if (i != ((long) (sizeof (char))))
15928 exit (1);
15929 fprintf (f, "%lu\n", i);
15931 exit (ferror (f) || fclose (f) != 0);
15934 return 0;
15936 _ACEOF
15937 rm -f conftest$ac_exeext
15938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15939 (eval $ac_link) 2>&5
15940 ac_status=$?
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15944 (eval $ac_try) 2>&5
15945 ac_status=$?
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); }; }; then
15948 ac_cv_sizeof_char=`cat conftest.val`
15949 else
15950 echo "$as_me: program exited with status $ac_status" >&5
15951 echo "$as_me: failed program was:" >&5
15952 sed 's/^/| /' conftest.$ac_ext >&5
15954 ( exit $ac_status )
15955 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15956 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15957 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15958 See \`config.log' for more details." >&5
15959 echo "$as_me: error: cannot compute sizeof (char), 77
15960 See \`config.log' for more details." >&2;}
15961 { (exit 1); exit 1; }; }; }
15963 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15966 rm -f conftest.val
15967 else
15968 ac_cv_sizeof_char=0
15971 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15972 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15973 cat >>confdefs.h <<_ACEOF
15974 #define SIZEOF_CHAR $ac_cv_sizeof_char
15975 _ACEOF
15979 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
15980 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
15981 case "$ac_cv_sizeof_char" in
15982 1) acx_cv_type_int8_t=char ;;
15983 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
15984 echo "$as_me: error: no 8-bit type" >&2;}
15985 { (exit please report a bug); exit please report a bug; }; }
15986 esac
15987 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
15988 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
15990 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
15991 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
15992 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15993 2:*) acx_cv_type_int16_t=int ;;
15994 *:2) acx_cv_type_int16_t=short ;;
15995 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
15996 echo "$as_me: error: no 16-bit type" >&2;}
15997 { (exit please report a bug); exit please report a bug; }; }
15998 esac
15999 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
16000 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
16002 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
16003 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
16004 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16005 4:*) acx_cv_type_int32_t=int ;;
16006 *:4) acx_cv_type_int32_t=long ;;
16007 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
16008 echo "$as_me: error: no 32-bit type" >&2;}
16009 { (exit please report a bug); exit please report a bug; }; }
16010 esac
16011 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
16012 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
16015 # These tests are here to make the output prettier
16017 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16018 case "$ac_cv_sizeof_long" in
16019 8) acx_cv_type_int64_t=long ;;
16020 esac
16021 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
16022 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
16023 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16024 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
16027 # Now we can use the above types
16029 if test "$ac_cv_type_uintptr_t" != yes; then
16030 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
16031 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
16032 case $ac_cv_sizeof_void_p in
16033 2) acx_cv_type_intptr_t=int16_t ;;
16034 4) acx_cv_type_intptr_t=int32_t ;;
16035 8) acx_cv_type_intptr_t=int64_t ;;
16036 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
16037 echo "$as_me: error: no equivalent for intptr_t" >&2;}
16038 { (exit please report a bug); exit please report a bug; }; }
16039 esac
16040 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
16041 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
16044 # ----------------- done all checks, emit header -------------
16045 ac_config_commands="$ac_config_commands bfd_stdint.h"
16049 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
16050 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
16051 if test "${ac_cv_header_time+set}" = set; then
16052 echo $ECHO_N "(cached) $ECHO_C" >&6
16053 else
16054 cat >conftest.$ac_ext <<_ACEOF
16055 /* confdefs.h. */
16056 _ACEOF
16057 cat confdefs.h >>conftest.$ac_ext
16058 cat >>conftest.$ac_ext <<_ACEOF
16059 /* end confdefs.h. */
16060 #include <sys/types.h>
16061 #include <sys/time.h>
16062 #include <time.h>
16065 main ()
16067 if ((struct tm *) 0)
16068 return 0;
16070 return 0;
16072 _ACEOF
16073 rm -f conftest.$ac_objext
16074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16075 (eval $ac_compile) 2>conftest.er1
16076 ac_status=$?
16077 grep -v '^ *+' conftest.er1 >conftest.err
16078 rm -f conftest.er1
16079 cat conftest.err >&5
16080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081 (exit $ac_status); } &&
16082 { ac_try='test -z "$ac_c_werror_flag"
16083 || test ! -s conftest.err'
16084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16085 (eval $ac_try) 2>&5
16086 ac_status=$?
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); }; } &&
16089 { ac_try='test -s conftest.$ac_objext'
16090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16091 (eval $ac_try) 2>&5
16092 ac_status=$?
16093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094 (exit $ac_status); }; }; then
16095 ac_cv_header_time=yes
16096 else
16097 echo "$as_me: failed program was:" >&5
16098 sed 's/^/| /' conftest.$ac_ext >&5
16100 ac_cv_header_time=no
16102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16104 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
16105 echo "${ECHO_T}$ac_cv_header_time" >&6
16106 if test $ac_cv_header_time = yes; then
16108 cat >>confdefs.h <<\_ACEOF
16109 #define TIME_WITH_SYS_TIME 1
16110 _ACEOF
16119 ac_header_dirent=no
16120 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16121 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16122 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
16123 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
16124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16125 echo $ECHO_N "(cached) $ECHO_C" >&6
16126 else
16127 cat >conftest.$ac_ext <<_ACEOF
16128 /* confdefs.h. */
16129 _ACEOF
16130 cat confdefs.h >>conftest.$ac_ext
16131 cat >>conftest.$ac_ext <<_ACEOF
16132 /* end confdefs.h. */
16133 #include <sys/types.h>
16134 #include <$ac_hdr>
16137 main ()
16139 if ((DIR *) 0)
16140 return 0;
16142 return 0;
16144 _ACEOF
16145 rm -f conftest.$ac_objext
16146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16147 (eval $ac_compile) 2>conftest.er1
16148 ac_status=$?
16149 grep -v '^ *+' conftest.er1 >conftest.err
16150 rm -f conftest.er1
16151 cat conftest.err >&5
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); } &&
16154 { ac_try='test -z "$ac_c_werror_flag"
16155 || test ! -s conftest.err'
16156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16157 (eval $ac_try) 2>&5
16158 ac_status=$?
16159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); }; } &&
16161 { ac_try='test -s conftest.$ac_objext'
16162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16163 (eval $ac_try) 2>&5
16164 ac_status=$?
16165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166 (exit $ac_status); }; }; then
16167 eval "$as_ac_Header=yes"
16168 else
16169 echo "$as_me: failed program was:" >&5
16170 sed 's/^/| /' conftest.$ac_ext >&5
16172 eval "$as_ac_Header=no"
16174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16177 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16178 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16179 cat >>confdefs.h <<_ACEOF
16180 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16181 _ACEOF
16183 ac_header_dirent=$ac_hdr; break
16186 done
16187 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16188 if test $ac_header_dirent = dirent.h; then
16189 echo "$as_me:$LINENO: checking for library containing opendir" >&5
16190 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
16191 if test "${ac_cv_search_opendir+set}" = set; then
16192 echo $ECHO_N "(cached) $ECHO_C" >&6
16193 else
16194 ac_func_search_save_LIBS=$LIBS
16195 ac_cv_search_opendir=no
16196 cat >conftest.$ac_ext <<_ACEOF
16197 /* confdefs.h. */
16198 _ACEOF
16199 cat confdefs.h >>conftest.$ac_ext
16200 cat >>conftest.$ac_ext <<_ACEOF
16201 /* end confdefs.h. */
16203 /* Override any gcc2 internal prototype to avoid an error. */
16204 #ifdef __cplusplus
16205 extern "C"
16206 #endif
16207 /* We use char because int might match the return type of a gcc2
16208 builtin and then its argument prototype would still apply. */
16209 char opendir ();
16211 main ()
16213 opendir ();
16215 return 0;
16217 _ACEOF
16218 rm -f conftest.$ac_objext conftest$ac_exeext
16219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16220 (eval $ac_link) 2>conftest.er1
16221 ac_status=$?
16222 grep -v '^ *+' conftest.er1 >conftest.err
16223 rm -f conftest.er1
16224 cat conftest.err >&5
16225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226 (exit $ac_status); } &&
16227 { ac_try='test -z "$ac_c_werror_flag"
16228 || test ! -s conftest.err'
16229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16230 (eval $ac_try) 2>&5
16231 ac_status=$?
16232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233 (exit $ac_status); }; } &&
16234 { ac_try='test -s conftest$ac_exeext'
16235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16236 (eval $ac_try) 2>&5
16237 ac_status=$?
16238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239 (exit $ac_status); }; }; then
16240 ac_cv_search_opendir="none required"
16241 else
16242 echo "$as_me: failed program was:" >&5
16243 sed 's/^/| /' conftest.$ac_ext >&5
16246 rm -f conftest.err conftest.$ac_objext \
16247 conftest$ac_exeext conftest.$ac_ext
16248 if test "$ac_cv_search_opendir" = no; then
16249 for ac_lib in dir; do
16250 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16251 cat >conftest.$ac_ext <<_ACEOF
16252 /* confdefs.h. */
16253 _ACEOF
16254 cat confdefs.h >>conftest.$ac_ext
16255 cat >>conftest.$ac_ext <<_ACEOF
16256 /* end confdefs.h. */
16258 /* Override any gcc2 internal prototype to avoid an error. */
16259 #ifdef __cplusplus
16260 extern "C"
16261 #endif
16262 /* We use char because int might match the return type of a gcc2
16263 builtin and then its argument prototype would still apply. */
16264 char opendir ();
16266 main ()
16268 opendir ();
16270 return 0;
16272 _ACEOF
16273 rm -f conftest.$ac_objext conftest$ac_exeext
16274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16275 (eval $ac_link) 2>conftest.er1
16276 ac_status=$?
16277 grep -v '^ *+' conftest.er1 >conftest.err
16278 rm -f conftest.er1
16279 cat conftest.err >&5
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); } &&
16282 { ac_try='test -z "$ac_c_werror_flag"
16283 || test ! -s conftest.err'
16284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16285 (eval $ac_try) 2>&5
16286 ac_status=$?
16287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288 (exit $ac_status); }; } &&
16289 { ac_try='test -s conftest$ac_exeext'
16290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16291 (eval $ac_try) 2>&5
16292 ac_status=$?
16293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16294 (exit $ac_status); }; }; then
16295 ac_cv_search_opendir="-l$ac_lib"
16296 break
16297 else
16298 echo "$as_me: failed program was:" >&5
16299 sed 's/^/| /' conftest.$ac_ext >&5
16302 rm -f conftest.err conftest.$ac_objext \
16303 conftest$ac_exeext conftest.$ac_ext
16304 done
16306 LIBS=$ac_func_search_save_LIBS
16308 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16309 echo "${ECHO_T}$ac_cv_search_opendir" >&6
16310 if test "$ac_cv_search_opendir" != no; then
16311 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
16315 else
16316 echo "$as_me:$LINENO: checking for library containing opendir" >&5
16317 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
16318 if test "${ac_cv_search_opendir+set}" = set; then
16319 echo $ECHO_N "(cached) $ECHO_C" >&6
16320 else
16321 ac_func_search_save_LIBS=$LIBS
16322 ac_cv_search_opendir=no
16323 cat >conftest.$ac_ext <<_ACEOF
16324 /* confdefs.h. */
16325 _ACEOF
16326 cat confdefs.h >>conftest.$ac_ext
16327 cat >>conftest.$ac_ext <<_ACEOF
16328 /* end confdefs.h. */
16330 /* Override any gcc2 internal prototype to avoid an error. */
16331 #ifdef __cplusplus
16332 extern "C"
16333 #endif
16334 /* We use char because int might match the return type of a gcc2
16335 builtin and then its argument prototype would still apply. */
16336 char opendir ();
16338 main ()
16340 opendir ();
16342 return 0;
16344 _ACEOF
16345 rm -f conftest.$ac_objext conftest$ac_exeext
16346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16347 (eval $ac_link) 2>conftest.er1
16348 ac_status=$?
16349 grep -v '^ *+' conftest.er1 >conftest.err
16350 rm -f conftest.er1
16351 cat conftest.err >&5
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); } &&
16354 { ac_try='test -z "$ac_c_werror_flag"
16355 || test ! -s conftest.err'
16356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16357 (eval $ac_try) 2>&5
16358 ac_status=$?
16359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360 (exit $ac_status); }; } &&
16361 { ac_try='test -s conftest$ac_exeext'
16362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16363 (eval $ac_try) 2>&5
16364 ac_status=$?
16365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366 (exit $ac_status); }; }; then
16367 ac_cv_search_opendir="none required"
16368 else
16369 echo "$as_me: failed program was:" >&5
16370 sed 's/^/| /' conftest.$ac_ext >&5
16373 rm -f conftest.err conftest.$ac_objext \
16374 conftest$ac_exeext conftest.$ac_ext
16375 if test "$ac_cv_search_opendir" = no; then
16376 for ac_lib in x; do
16377 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16378 cat >conftest.$ac_ext <<_ACEOF
16379 /* confdefs.h. */
16380 _ACEOF
16381 cat confdefs.h >>conftest.$ac_ext
16382 cat >>conftest.$ac_ext <<_ACEOF
16383 /* end confdefs.h. */
16385 /* Override any gcc2 internal prototype to avoid an error. */
16386 #ifdef __cplusplus
16387 extern "C"
16388 #endif
16389 /* We use char because int might match the return type of a gcc2
16390 builtin and then its argument prototype would still apply. */
16391 char opendir ();
16393 main ()
16395 opendir ();
16397 return 0;
16399 _ACEOF
16400 rm -f conftest.$ac_objext conftest$ac_exeext
16401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16402 (eval $ac_link) 2>conftest.er1
16403 ac_status=$?
16404 grep -v '^ *+' conftest.er1 >conftest.err
16405 rm -f conftest.er1
16406 cat conftest.err >&5
16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408 (exit $ac_status); } &&
16409 { ac_try='test -z "$ac_c_werror_flag"
16410 || test ! -s conftest.err'
16411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16412 (eval $ac_try) 2>&5
16413 ac_status=$?
16414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415 (exit $ac_status); }; } &&
16416 { ac_try='test -s conftest$ac_exeext'
16417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16418 (eval $ac_try) 2>&5
16419 ac_status=$?
16420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); }; }; then
16422 ac_cv_search_opendir="-l$ac_lib"
16423 break
16424 else
16425 echo "$as_me: failed program was:" >&5
16426 sed 's/^/| /' conftest.$ac_ext >&5
16429 rm -f conftest.err conftest.$ac_objext \
16430 conftest$ac_exeext conftest.$ac_ext
16431 done
16433 LIBS=$ac_func_search_save_LIBS
16435 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16436 echo "${ECHO_T}$ac_cv_search_opendir" >&6
16437 if test "$ac_cv_search_opendir" != no; then
16438 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
16444 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
16445 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
16446 if test "${gcc_cv_header_string+set}" = set; then
16447 echo $ECHO_N "(cached) $ECHO_C" >&6
16448 else
16449 cat >conftest.$ac_ext <<_ACEOF
16450 /* confdefs.h. */
16451 _ACEOF
16452 cat confdefs.h >>conftest.$ac_ext
16453 cat >>conftest.$ac_ext <<_ACEOF
16454 /* end confdefs.h. */
16455 #include <string.h>
16456 #include <strings.h>
16458 main ()
16462 return 0;
16464 _ACEOF
16465 rm -f conftest.$ac_objext
16466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16467 (eval $ac_compile) 2>conftest.er1
16468 ac_status=$?
16469 grep -v '^ *+' conftest.er1 >conftest.err
16470 rm -f conftest.er1
16471 cat conftest.err >&5
16472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473 (exit $ac_status); } &&
16474 { ac_try='test -z "$ac_c_werror_flag"
16475 || test ! -s conftest.err'
16476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16477 (eval $ac_try) 2>&5
16478 ac_status=$?
16479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480 (exit $ac_status); }; } &&
16481 { ac_try='test -s conftest.$ac_objext'
16482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16483 (eval $ac_try) 2>&5
16484 ac_status=$?
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); }; }; then
16487 gcc_cv_header_string=yes
16488 else
16489 echo "$as_me: failed program was:" >&5
16490 sed 's/^/| /' conftest.$ac_ext >&5
16492 gcc_cv_header_string=no
16494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16496 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
16497 echo "${ECHO_T}$gcc_cv_header_string" >&6
16498 if test $gcc_cv_header_string = yes; then
16500 cat >>confdefs.h <<\_ACEOF
16501 #define STRING_WITH_STRINGS 1
16502 _ACEOF
16513 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
16515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16516 echo "$as_me:$LINENO: checking for $ac_func" >&5
16517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16518 if eval "test \"\${$as_ac_var+set}\" = set"; then
16519 echo $ECHO_N "(cached) $ECHO_C" >&6
16520 else
16521 cat >conftest.$ac_ext <<_ACEOF
16522 /* confdefs.h. */
16523 _ACEOF
16524 cat confdefs.h >>conftest.$ac_ext
16525 cat >>conftest.$ac_ext <<_ACEOF
16526 /* end confdefs.h. */
16527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16529 #define $ac_func innocuous_$ac_func
16531 /* System header to define __stub macros and hopefully few prototypes,
16532 which can conflict with char $ac_func (); below.
16533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16534 <limits.h> exists even on freestanding compilers. */
16536 #ifdef __STDC__
16537 # include <limits.h>
16538 #else
16539 # include <assert.h>
16540 #endif
16542 #undef $ac_func
16544 /* Override any gcc2 internal prototype to avoid an error. */
16545 #ifdef __cplusplus
16546 extern "C"
16548 #endif
16549 /* We use char because int might match the return type of a gcc2
16550 builtin and then its argument prototype would still apply. */
16551 char $ac_func ();
16552 /* The GNU C library defines this for functions which it implements
16553 to always fail with ENOSYS. Some functions are actually named
16554 something starting with __ and the normal name is an alias. */
16555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16556 choke me
16557 #else
16558 char (*f) () = $ac_func;
16559 #endif
16560 #ifdef __cplusplus
16562 #endif
16565 main ()
16567 return f != $ac_func;
16569 return 0;
16571 _ACEOF
16572 rm -f conftest.$ac_objext conftest$ac_exeext
16573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16574 (eval $ac_link) 2>conftest.er1
16575 ac_status=$?
16576 grep -v '^ *+' conftest.er1 >conftest.err
16577 rm -f conftest.er1
16578 cat conftest.err >&5
16579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580 (exit $ac_status); } &&
16581 { ac_try='test -z "$ac_c_werror_flag"
16582 || test ! -s conftest.err'
16583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16584 (eval $ac_try) 2>&5
16585 ac_status=$?
16586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587 (exit $ac_status); }; } &&
16588 { ac_try='test -s conftest$ac_exeext'
16589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16590 (eval $ac_try) 2>&5
16591 ac_status=$?
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); }; }; then
16594 eval "$as_ac_var=yes"
16595 else
16596 echo "$as_me: failed program was:" >&5
16597 sed 's/^/| /' conftest.$ac_ext >&5
16599 eval "$as_ac_var=no"
16601 rm -f conftest.err conftest.$ac_objext \
16602 conftest$ac_exeext conftest.$ac_ext
16604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16605 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16606 if test `eval echo '${'$as_ac_var'}'` = yes; then
16607 cat >>confdefs.h <<_ACEOF
16608 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16609 _ACEOF
16612 done
16615 for ac_func in strtoull
16617 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16618 echo "$as_me:$LINENO: checking for $ac_func" >&5
16619 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16620 if eval "test \"\${$as_ac_var+set}\" = set"; then
16621 echo $ECHO_N "(cached) $ECHO_C" >&6
16622 else
16623 cat >conftest.$ac_ext <<_ACEOF
16624 /* confdefs.h. */
16625 _ACEOF
16626 cat confdefs.h >>conftest.$ac_ext
16627 cat >>conftest.$ac_ext <<_ACEOF
16628 /* end confdefs.h. */
16629 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16631 #define $ac_func innocuous_$ac_func
16633 /* System header to define __stub macros and hopefully few prototypes,
16634 which can conflict with char $ac_func (); below.
16635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16636 <limits.h> exists even on freestanding compilers. */
16638 #ifdef __STDC__
16639 # include <limits.h>
16640 #else
16641 # include <assert.h>
16642 #endif
16644 #undef $ac_func
16646 /* Override any gcc2 internal prototype to avoid an error. */
16647 #ifdef __cplusplus
16648 extern "C"
16650 #endif
16651 /* We use char because int might match the return type of a gcc2
16652 builtin and then its argument prototype would still apply. */
16653 char $ac_func ();
16654 /* The GNU C library defines this for functions which it implements
16655 to always fail with ENOSYS. Some functions are actually named
16656 something starting with __ and the normal name is an alias. */
16657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16658 choke me
16659 #else
16660 char (*f) () = $ac_func;
16661 #endif
16662 #ifdef __cplusplus
16664 #endif
16667 main ()
16669 return f != $ac_func;
16671 return 0;
16673 _ACEOF
16674 rm -f conftest.$ac_objext conftest$ac_exeext
16675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16676 (eval $ac_link) 2>conftest.er1
16677 ac_status=$?
16678 grep -v '^ *+' conftest.er1 >conftest.err
16679 rm -f conftest.er1
16680 cat conftest.err >&5
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); } &&
16683 { ac_try='test -z "$ac_c_werror_flag"
16684 || test ! -s conftest.err'
16685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16686 (eval $ac_try) 2>&5
16687 ac_status=$?
16688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 (exit $ac_status); }; } &&
16690 { ac_try='test -s conftest$ac_exeext'
16691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16692 (eval $ac_try) 2>&5
16693 ac_status=$?
16694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695 (exit $ac_status); }; }; then
16696 eval "$as_ac_var=yes"
16697 else
16698 echo "$as_me: failed program was:" >&5
16699 sed 's/^/| /' conftest.$ac_ext >&5
16701 eval "$as_ac_var=no"
16703 rm -f conftest.err conftest.$ac_objext \
16704 conftest$ac_exeext conftest.$ac_ext
16706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16707 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16708 if test `eval echo '${'$as_ac_var'}'` = yes; then
16709 cat >>confdefs.h <<_ACEOF
16710 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16711 _ACEOF
16714 done
16717 echo "$as_me:$LINENO: checking whether basename is declared" >&5
16718 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
16719 if test "${ac_cv_have_decl_basename+set}" = set; then
16720 echo $ECHO_N "(cached) $ECHO_C" >&6
16721 else
16722 cat >conftest.$ac_ext <<_ACEOF
16723 /* confdefs.h. */
16724 _ACEOF
16725 cat confdefs.h >>conftest.$ac_ext
16726 cat >>conftest.$ac_ext <<_ACEOF
16727 /* end confdefs.h. */
16728 $ac_includes_default
16730 main ()
16732 #ifndef basename
16733 char *p = (char *) basename;
16734 #endif
16737 return 0;
16739 _ACEOF
16740 rm -f conftest.$ac_objext
16741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16742 (eval $ac_compile) 2>conftest.er1
16743 ac_status=$?
16744 grep -v '^ *+' conftest.er1 >conftest.err
16745 rm -f conftest.er1
16746 cat conftest.err >&5
16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); } &&
16749 { ac_try='test -z "$ac_c_werror_flag"
16750 || test ! -s conftest.err'
16751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16752 (eval $ac_try) 2>&5
16753 ac_status=$?
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); }; } &&
16756 { ac_try='test -s conftest.$ac_objext'
16757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16758 (eval $ac_try) 2>&5
16759 ac_status=$?
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); }; }; then
16762 ac_cv_have_decl_basename=yes
16763 else
16764 echo "$as_me: failed program was:" >&5
16765 sed 's/^/| /' conftest.$ac_ext >&5
16767 ac_cv_have_decl_basename=no
16769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16771 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
16772 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
16773 if test $ac_cv_have_decl_basename = yes; then
16775 cat >>confdefs.h <<_ACEOF
16776 #define HAVE_DECL_BASENAME 1
16777 _ACEOF
16780 else
16781 cat >>confdefs.h <<_ACEOF
16782 #define HAVE_DECL_BASENAME 0
16783 _ACEOF
16789 echo "$as_me:$LINENO: checking whether ftello is declared" >&5
16790 echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
16791 if test "${ac_cv_have_decl_ftello+set}" = set; then
16792 echo $ECHO_N "(cached) $ECHO_C" >&6
16793 else
16794 cat >conftest.$ac_ext <<_ACEOF
16795 /* confdefs.h. */
16796 _ACEOF
16797 cat confdefs.h >>conftest.$ac_ext
16798 cat >>conftest.$ac_ext <<_ACEOF
16799 /* end confdefs.h. */
16800 $ac_includes_default
16802 main ()
16804 #ifndef ftello
16805 char *p = (char *) ftello;
16806 #endif
16809 return 0;
16811 _ACEOF
16812 rm -f conftest.$ac_objext
16813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16814 (eval $ac_compile) 2>conftest.er1
16815 ac_status=$?
16816 grep -v '^ *+' conftest.er1 >conftest.err
16817 rm -f conftest.er1
16818 cat conftest.err >&5
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); } &&
16821 { ac_try='test -z "$ac_c_werror_flag"
16822 || test ! -s conftest.err'
16823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16824 (eval $ac_try) 2>&5
16825 ac_status=$?
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); }; } &&
16828 { ac_try='test -s conftest.$ac_objext'
16829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16830 (eval $ac_try) 2>&5
16831 ac_status=$?
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); }; }; then
16834 ac_cv_have_decl_ftello=yes
16835 else
16836 echo "$as_me: failed program was:" >&5
16837 sed 's/^/| /' conftest.$ac_ext >&5
16839 ac_cv_have_decl_ftello=no
16841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16843 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
16844 echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
16845 if test $ac_cv_have_decl_ftello = yes; then
16847 cat >>confdefs.h <<_ACEOF
16848 #define HAVE_DECL_FTELLO 1
16849 _ACEOF
16852 else
16853 cat >>confdefs.h <<_ACEOF
16854 #define HAVE_DECL_FTELLO 0
16855 _ACEOF
16861 echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
16862 echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
16863 if test "${ac_cv_have_decl_ftello64+set}" = set; then
16864 echo $ECHO_N "(cached) $ECHO_C" >&6
16865 else
16866 cat >conftest.$ac_ext <<_ACEOF
16867 /* confdefs.h. */
16868 _ACEOF
16869 cat confdefs.h >>conftest.$ac_ext
16870 cat >>conftest.$ac_ext <<_ACEOF
16871 /* end confdefs.h. */
16872 $ac_includes_default
16874 main ()
16876 #ifndef ftello64
16877 char *p = (char *) ftello64;
16878 #endif
16881 return 0;
16883 _ACEOF
16884 rm -f conftest.$ac_objext
16885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16886 (eval $ac_compile) 2>conftest.er1
16887 ac_status=$?
16888 grep -v '^ *+' conftest.er1 >conftest.err
16889 rm -f conftest.er1
16890 cat conftest.err >&5
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); } &&
16893 { ac_try='test -z "$ac_c_werror_flag"
16894 || test ! -s conftest.err'
16895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16896 (eval $ac_try) 2>&5
16897 ac_status=$?
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); }; } &&
16900 { ac_try='test -s conftest.$ac_objext'
16901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16902 (eval $ac_try) 2>&5
16903 ac_status=$?
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); }; }; then
16906 ac_cv_have_decl_ftello64=yes
16907 else
16908 echo "$as_me: failed program was:" >&5
16909 sed 's/^/| /' conftest.$ac_ext >&5
16911 ac_cv_have_decl_ftello64=no
16913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16915 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
16916 echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
16917 if test $ac_cv_have_decl_ftello64 = yes; then
16919 cat >>confdefs.h <<_ACEOF
16920 #define HAVE_DECL_FTELLO64 1
16921 _ACEOF
16924 else
16925 cat >>confdefs.h <<_ACEOF
16926 #define HAVE_DECL_FTELLO64 0
16927 _ACEOF
16933 echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
16934 echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
16935 if test "${ac_cv_have_decl_fseeko+set}" = set; then
16936 echo $ECHO_N "(cached) $ECHO_C" >&6
16937 else
16938 cat >conftest.$ac_ext <<_ACEOF
16939 /* confdefs.h. */
16940 _ACEOF
16941 cat confdefs.h >>conftest.$ac_ext
16942 cat >>conftest.$ac_ext <<_ACEOF
16943 /* end confdefs.h. */
16944 $ac_includes_default
16946 main ()
16948 #ifndef fseeko
16949 char *p = (char *) fseeko;
16950 #endif
16953 return 0;
16955 _ACEOF
16956 rm -f conftest.$ac_objext
16957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16958 (eval $ac_compile) 2>conftest.er1
16959 ac_status=$?
16960 grep -v '^ *+' conftest.er1 >conftest.err
16961 rm -f conftest.er1
16962 cat conftest.err >&5
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); } &&
16965 { ac_try='test -z "$ac_c_werror_flag"
16966 || test ! -s conftest.err'
16967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16968 (eval $ac_try) 2>&5
16969 ac_status=$?
16970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971 (exit $ac_status); }; } &&
16972 { ac_try='test -s conftest.$ac_objext'
16973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16974 (eval $ac_try) 2>&5
16975 ac_status=$?
16976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977 (exit $ac_status); }; }; then
16978 ac_cv_have_decl_fseeko=yes
16979 else
16980 echo "$as_me: failed program was:" >&5
16981 sed 's/^/| /' conftest.$ac_ext >&5
16983 ac_cv_have_decl_fseeko=no
16985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16987 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
16988 echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
16989 if test $ac_cv_have_decl_fseeko = yes; then
16991 cat >>confdefs.h <<_ACEOF
16992 #define HAVE_DECL_FSEEKO 1
16993 _ACEOF
16996 else
16997 cat >>confdefs.h <<_ACEOF
16998 #define HAVE_DECL_FSEEKO 0
16999 _ACEOF
17005 echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
17006 echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
17007 if test "${ac_cv_have_decl_fseeko64+set}" = set; then
17008 echo $ECHO_N "(cached) $ECHO_C" >&6
17009 else
17010 cat >conftest.$ac_ext <<_ACEOF
17011 /* confdefs.h. */
17012 _ACEOF
17013 cat confdefs.h >>conftest.$ac_ext
17014 cat >>conftest.$ac_ext <<_ACEOF
17015 /* end confdefs.h. */
17016 $ac_includes_default
17018 main ()
17020 #ifndef fseeko64
17021 char *p = (char *) fseeko64;
17022 #endif
17025 return 0;
17027 _ACEOF
17028 rm -f conftest.$ac_objext
17029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17030 (eval $ac_compile) 2>conftest.er1
17031 ac_status=$?
17032 grep -v '^ *+' conftest.er1 >conftest.err
17033 rm -f conftest.er1
17034 cat conftest.err >&5
17035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); } &&
17037 { ac_try='test -z "$ac_c_werror_flag"
17038 || test ! -s conftest.err'
17039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17040 (eval $ac_try) 2>&5
17041 ac_status=$?
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); }; } &&
17044 { ac_try='test -s conftest.$ac_objext'
17045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17046 (eval $ac_try) 2>&5
17047 ac_status=$?
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); }; }; then
17050 ac_cv_have_decl_fseeko64=yes
17051 else
17052 echo "$as_me: failed program was:" >&5
17053 sed 's/^/| /' conftest.$ac_ext >&5
17055 ac_cv_have_decl_fseeko64=no
17057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17059 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
17060 echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
17061 if test $ac_cv_have_decl_fseeko64 = yes; then
17063 cat >>confdefs.h <<_ACEOF
17064 #define HAVE_DECL_FSEEKO64 1
17065 _ACEOF
17068 else
17069 cat >>confdefs.h <<_ACEOF
17070 #define HAVE_DECL_FSEEKO64 0
17071 _ACEOF
17079 case "${host}" in
17080 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
17082 cat >>confdefs.h <<\_ACEOF
17083 #define USE_BINARY_FOPEN 1
17084 _ACEOF
17086 esac
17088 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
17089 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
17090 if test "${ac_cv_have_decl_ffs+set}" = set; then
17091 echo $ECHO_N "(cached) $ECHO_C" >&6
17092 else
17093 cat >conftest.$ac_ext <<_ACEOF
17094 /* confdefs.h. */
17095 _ACEOF
17096 cat confdefs.h >>conftest.$ac_ext
17097 cat >>conftest.$ac_ext <<_ACEOF
17098 /* end confdefs.h. */
17099 $ac_includes_default
17101 main ()
17103 #ifndef ffs
17104 char *p = (char *) ffs;
17105 #endif
17108 return 0;
17110 _ACEOF
17111 rm -f conftest.$ac_objext
17112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17113 (eval $ac_compile) 2>conftest.er1
17114 ac_status=$?
17115 grep -v '^ *+' conftest.er1 >conftest.err
17116 rm -f conftest.er1
17117 cat conftest.err >&5
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); } &&
17120 { ac_try='test -z "$ac_c_werror_flag"
17121 || test ! -s conftest.err'
17122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17123 (eval $ac_try) 2>&5
17124 ac_status=$?
17125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); }; } &&
17127 { ac_try='test -s conftest.$ac_objext'
17128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17129 (eval $ac_try) 2>&5
17130 ac_status=$?
17131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132 (exit $ac_status); }; }; then
17133 ac_cv_have_decl_ffs=yes
17134 else
17135 echo "$as_me: failed program was:" >&5
17136 sed 's/^/| /' conftest.$ac_ext >&5
17138 ac_cv_have_decl_ffs=no
17140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17142 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
17143 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
17144 if test $ac_cv_have_decl_ffs = yes; then
17146 cat >>confdefs.h <<_ACEOF
17147 #define HAVE_DECL_FFS 1
17148 _ACEOF
17151 else
17152 cat >>confdefs.h <<_ACEOF
17153 #define HAVE_DECL_FFS 0
17154 _ACEOF
17160 echo "$as_me:$LINENO: checking whether free is declared" >&5
17161 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
17162 if test "${ac_cv_have_decl_free+set}" = set; then
17163 echo $ECHO_N "(cached) $ECHO_C" >&6
17164 else
17165 cat >conftest.$ac_ext <<_ACEOF
17166 /* confdefs.h. */
17167 _ACEOF
17168 cat confdefs.h >>conftest.$ac_ext
17169 cat >>conftest.$ac_ext <<_ACEOF
17170 /* end confdefs.h. */
17171 $ac_includes_default
17173 main ()
17175 #ifndef free
17176 char *p = (char *) free;
17177 #endif
17180 return 0;
17182 _ACEOF
17183 rm -f conftest.$ac_objext
17184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17185 (eval $ac_compile) 2>conftest.er1
17186 ac_status=$?
17187 grep -v '^ *+' conftest.er1 >conftest.err
17188 rm -f conftest.er1
17189 cat conftest.err >&5
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); } &&
17192 { ac_try='test -z "$ac_c_werror_flag"
17193 || test ! -s conftest.err'
17194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17195 (eval $ac_try) 2>&5
17196 ac_status=$?
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); }; } &&
17199 { ac_try='test -s conftest.$ac_objext'
17200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17201 (eval $ac_try) 2>&5
17202 ac_status=$?
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); }; }; then
17205 ac_cv_have_decl_free=yes
17206 else
17207 echo "$as_me: failed program was:" >&5
17208 sed 's/^/| /' conftest.$ac_ext >&5
17210 ac_cv_have_decl_free=no
17212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17214 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
17215 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
17216 if test $ac_cv_have_decl_free = yes; then
17218 cat >>confdefs.h <<_ACEOF
17219 #define HAVE_DECL_FREE 1
17220 _ACEOF
17223 else
17224 cat >>confdefs.h <<_ACEOF
17225 #define HAVE_DECL_FREE 0
17226 _ACEOF
17232 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
17233 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
17234 if test "${ac_cv_have_decl_getenv+set}" = set; then
17235 echo $ECHO_N "(cached) $ECHO_C" >&6
17236 else
17237 cat >conftest.$ac_ext <<_ACEOF
17238 /* confdefs.h. */
17239 _ACEOF
17240 cat confdefs.h >>conftest.$ac_ext
17241 cat >>conftest.$ac_ext <<_ACEOF
17242 /* end confdefs.h. */
17243 $ac_includes_default
17245 main ()
17247 #ifndef getenv
17248 char *p = (char *) getenv;
17249 #endif
17252 return 0;
17254 _ACEOF
17255 rm -f conftest.$ac_objext
17256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17257 (eval $ac_compile) 2>conftest.er1
17258 ac_status=$?
17259 grep -v '^ *+' conftest.er1 >conftest.err
17260 rm -f conftest.er1
17261 cat conftest.err >&5
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); } &&
17264 { ac_try='test -z "$ac_c_werror_flag"
17265 || test ! -s conftest.err'
17266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17267 (eval $ac_try) 2>&5
17268 ac_status=$?
17269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270 (exit $ac_status); }; } &&
17271 { ac_try='test -s conftest.$ac_objext'
17272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17273 (eval $ac_try) 2>&5
17274 ac_status=$?
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); }; }; then
17277 ac_cv_have_decl_getenv=yes
17278 else
17279 echo "$as_me: failed program was:" >&5
17280 sed 's/^/| /' conftest.$ac_ext >&5
17282 ac_cv_have_decl_getenv=no
17284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17286 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
17287 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
17288 if test $ac_cv_have_decl_getenv = yes; then
17290 cat >>confdefs.h <<_ACEOF
17291 #define HAVE_DECL_GETENV 1
17292 _ACEOF
17295 else
17296 cat >>confdefs.h <<_ACEOF
17297 #define HAVE_DECL_GETENV 0
17298 _ACEOF
17304 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
17305 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
17306 if test "${ac_cv_have_decl_malloc+set}" = set; then
17307 echo $ECHO_N "(cached) $ECHO_C" >&6
17308 else
17309 cat >conftest.$ac_ext <<_ACEOF
17310 /* confdefs.h. */
17311 _ACEOF
17312 cat confdefs.h >>conftest.$ac_ext
17313 cat >>conftest.$ac_ext <<_ACEOF
17314 /* end confdefs.h. */
17315 $ac_includes_default
17317 main ()
17319 #ifndef malloc
17320 char *p = (char *) malloc;
17321 #endif
17324 return 0;
17326 _ACEOF
17327 rm -f conftest.$ac_objext
17328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17329 (eval $ac_compile) 2>conftest.er1
17330 ac_status=$?
17331 grep -v '^ *+' conftest.er1 >conftest.err
17332 rm -f conftest.er1
17333 cat conftest.err >&5
17334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); } &&
17336 { ac_try='test -z "$ac_c_werror_flag"
17337 || test ! -s conftest.err'
17338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17339 (eval $ac_try) 2>&5
17340 ac_status=$?
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); }; } &&
17343 { ac_try='test -s conftest.$ac_objext'
17344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17345 (eval $ac_try) 2>&5
17346 ac_status=$?
17347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348 (exit $ac_status); }; }; then
17349 ac_cv_have_decl_malloc=yes
17350 else
17351 echo "$as_me: failed program was:" >&5
17352 sed 's/^/| /' conftest.$ac_ext >&5
17354 ac_cv_have_decl_malloc=no
17356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17358 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
17359 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
17360 if test $ac_cv_have_decl_malloc = yes; then
17362 cat >>confdefs.h <<_ACEOF
17363 #define HAVE_DECL_MALLOC 1
17364 _ACEOF
17367 else
17368 cat >>confdefs.h <<_ACEOF
17369 #define HAVE_DECL_MALLOC 0
17370 _ACEOF
17376 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
17377 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
17378 if test "${ac_cv_have_decl_realloc+set}" = set; then
17379 echo $ECHO_N "(cached) $ECHO_C" >&6
17380 else
17381 cat >conftest.$ac_ext <<_ACEOF
17382 /* confdefs.h. */
17383 _ACEOF
17384 cat confdefs.h >>conftest.$ac_ext
17385 cat >>conftest.$ac_ext <<_ACEOF
17386 /* end confdefs.h. */
17387 $ac_includes_default
17389 main ()
17391 #ifndef realloc
17392 char *p = (char *) realloc;
17393 #endif
17396 return 0;
17398 _ACEOF
17399 rm -f conftest.$ac_objext
17400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17401 (eval $ac_compile) 2>conftest.er1
17402 ac_status=$?
17403 grep -v '^ *+' conftest.er1 >conftest.err
17404 rm -f conftest.er1
17405 cat conftest.err >&5
17406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407 (exit $ac_status); } &&
17408 { ac_try='test -z "$ac_c_werror_flag"
17409 || test ! -s conftest.err'
17410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17411 (eval $ac_try) 2>&5
17412 ac_status=$?
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); }; } &&
17415 { ac_try='test -s conftest.$ac_objext'
17416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17417 (eval $ac_try) 2>&5
17418 ac_status=$?
17419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420 (exit $ac_status); }; }; then
17421 ac_cv_have_decl_realloc=yes
17422 else
17423 echo "$as_me: failed program was:" >&5
17424 sed 's/^/| /' conftest.$ac_ext >&5
17426 ac_cv_have_decl_realloc=no
17428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17430 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
17431 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
17432 if test $ac_cv_have_decl_realloc = yes; then
17434 cat >>confdefs.h <<_ACEOF
17435 #define HAVE_DECL_REALLOC 1
17436 _ACEOF
17439 else
17440 cat >>confdefs.h <<_ACEOF
17441 #define HAVE_DECL_REALLOC 0
17442 _ACEOF
17448 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
17449 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
17450 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
17451 echo $ECHO_N "(cached) $ECHO_C" >&6
17452 else
17453 cat >conftest.$ac_ext <<_ACEOF
17454 /* confdefs.h. */
17455 _ACEOF
17456 cat confdefs.h >>conftest.$ac_ext
17457 cat >>conftest.$ac_ext <<_ACEOF
17458 /* end confdefs.h. */
17459 $ac_includes_default
17461 main ()
17463 #ifndef stpcpy
17464 char *p = (char *) stpcpy;
17465 #endif
17468 return 0;
17470 _ACEOF
17471 rm -f conftest.$ac_objext
17472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17473 (eval $ac_compile) 2>conftest.er1
17474 ac_status=$?
17475 grep -v '^ *+' conftest.er1 >conftest.err
17476 rm -f conftest.er1
17477 cat conftest.err >&5
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); } &&
17480 { ac_try='test -z "$ac_c_werror_flag"
17481 || test ! -s conftest.err'
17482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17483 (eval $ac_try) 2>&5
17484 ac_status=$?
17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); }; } &&
17487 { ac_try='test -s conftest.$ac_objext'
17488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17489 (eval $ac_try) 2>&5
17490 ac_status=$?
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); }; }; then
17493 ac_cv_have_decl_stpcpy=yes
17494 else
17495 echo "$as_me: failed program was:" >&5
17496 sed 's/^/| /' conftest.$ac_ext >&5
17498 ac_cv_have_decl_stpcpy=no
17500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17502 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
17503 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
17504 if test $ac_cv_have_decl_stpcpy = yes; then
17506 cat >>confdefs.h <<_ACEOF
17507 #define HAVE_DECL_STPCPY 1
17508 _ACEOF
17511 else
17512 cat >>confdefs.h <<_ACEOF
17513 #define HAVE_DECL_STPCPY 0
17514 _ACEOF
17520 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
17521 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
17522 if test "${ac_cv_have_decl_strstr+set}" = set; then
17523 echo $ECHO_N "(cached) $ECHO_C" >&6
17524 else
17525 cat >conftest.$ac_ext <<_ACEOF
17526 /* confdefs.h. */
17527 _ACEOF
17528 cat confdefs.h >>conftest.$ac_ext
17529 cat >>conftest.$ac_ext <<_ACEOF
17530 /* end confdefs.h. */
17531 $ac_includes_default
17533 main ()
17535 #ifndef strstr
17536 char *p = (char *) strstr;
17537 #endif
17540 return 0;
17542 _ACEOF
17543 rm -f conftest.$ac_objext
17544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17545 (eval $ac_compile) 2>conftest.er1
17546 ac_status=$?
17547 grep -v '^ *+' conftest.er1 >conftest.err
17548 rm -f conftest.er1
17549 cat conftest.err >&5
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); } &&
17552 { ac_try='test -z "$ac_c_werror_flag"
17553 || test ! -s conftest.err'
17554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17555 (eval $ac_try) 2>&5
17556 ac_status=$?
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); }; } &&
17559 { ac_try='test -s conftest.$ac_objext'
17560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17561 (eval $ac_try) 2>&5
17562 ac_status=$?
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); }; }; then
17565 ac_cv_have_decl_strstr=yes
17566 else
17567 echo "$as_me: failed program was:" >&5
17568 sed 's/^/| /' conftest.$ac_ext >&5
17570 ac_cv_have_decl_strstr=no
17572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17574 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
17575 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
17576 if test $ac_cv_have_decl_strstr = yes; then
17578 cat >>confdefs.h <<_ACEOF
17579 #define HAVE_DECL_STRSTR 1
17580 _ACEOF
17583 else
17584 cat >>confdefs.h <<_ACEOF
17585 #define HAVE_DECL_STRSTR 0
17586 _ACEOF
17592 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
17593 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
17594 if test "${ac_cv_have_decl_snprintf+set}" = set; then
17595 echo $ECHO_N "(cached) $ECHO_C" >&6
17596 else
17597 cat >conftest.$ac_ext <<_ACEOF
17598 /* confdefs.h. */
17599 _ACEOF
17600 cat confdefs.h >>conftest.$ac_ext
17601 cat >>conftest.$ac_ext <<_ACEOF
17602 /* end confdefs.h. */
17603 $ac_includes_default
17605 main ()
17607 #ifndef snprintf
17608 char *p = (char *) snprintf;
17609 #endif
17612 return 0;
17614 _ACEOF
17615 rm -f conftest.$ac_objext
17616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17617 (eval $ac_compile) 2>conftest.er1
17618 ac_status=$?
17619 grep -v '^ *+' conftest.er1 >conftest.err
17620 rm -f conftest.er1
17621 cat conftest.err >&5
17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); } &&
17624 { ac_try='test -z "$ac_c_werror_flag"
17625 || test ! -s conftest.err'
17626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17627 (eval $ac_try) 2>&5
17628 ac_status=$?
17629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630 (exit $ac_status); }; } &&
17631 { ac_try='test -s conftest.$ac_objext'
17632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17633 (eval $ac_try) 2>&5
17634 ac_status=$?
17635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636 (exit $ac_status); }; }; then
17637 ac_cv_have_decl_snprintf=yes
17638 else
17639 echo "$as_me: failed program was:" >&5
17640 sed 's/^/| /' conftest.$ac_ext >&5
17642 ac_cv_have_decl_snprintf=no
17644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17646 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
17647 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
17648 if test $ac_cv_have_decl_snprintf = yes; then
17650 cat >>confdefs.h <<_ACEOF
17651 #define HAVE_DECL_SNPRINTF 1
17652 _ACEOF
17655 else
17656 cat >>confdefs.h <<_ACEOF
17657 #define HAVE_DECL_SNPRINTF 0
17658 _ACEOF
17664 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
17665 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
17666 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
17667 echo $ECHO_N "(cached) $ECHO_C" >&6
17668 else
17669 cat >conftest.$ac_ext <<_ACEOF
17670 /* confdefs.h. */
17671 _ACEOF
17672 cat confdefs.h >>conftest.$ac_ext
17673 cat >>conftest.$ac_ext <<_ACEOF
17674 /* end confdefs.h. */
17675 $ac_includes_default
17677 main ()
17679 #ifndef vsnprintf
17680 char *p = (char *) vsnprintf;
17681 #endif
17684 return 0;
17686 _ACEOF
17687 rm -f conftest.$ac_objext
17688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17689 (eval $ac_compile) 2>conftest.er1
17690 ac_status=$?
17691 grep -v '^ *+' conftest.er1 >conftest.err
17692 rm -f conftest.er1
17693 cat conftest.err >&5
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); } &&
17696 { ac_try='test -z "$ac_c_werror_flag"
17697 || test ! -s conftest.err'
17698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17699 (eval $ac_try) 2>&5
17700 ac_status=$?
17701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702 (exit $ac_status); }; } &&
17703 { ac_try='test -s conftest.$ac_objext'
17704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17705 (eval $ac_try) 2>&5
17706 ac_status=$?
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); }; }; then
17709 ac_cv_have_decl_vsnprintf=yes
17710 else
17711 echo "$as_me: failed program was:" >&5
17712 sed 's/^/| /' conftest.$ac_ext >&5
17714 ac_cv_have_decl_vsnprintf=no
17716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17718 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
17719 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
17720 if test $ac_cv_have_decl_vsnprintf = yes; then
17722 cat >>confdefs.h <<_ACEOF
17723 #define HAVE_DECL_VSNPRINTF 1
17724 _ACEOF
17727 else
17728 cat >>confdefs.h <<_ACEOF
17729 #define HAVE_DECL_VSNPRINTF 0
17730 _ACEOF
17737 # Link in zlib if we can. This allows us to read compressed debug sections.
17738 # This is used only by compress.c.
17739 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
17740 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
17741 if test "${ac_cv_search_zlibVersion+set}" = set; then
17742 echo $ECHO_N "(cached) $ECHO_C" >&6
17743 else
17744 ac_func_search_save_LIBS=$LIBS
17745 ac_cv_search_zlibVersion=no
17746 cat >conftest.$ac_ext <<_ACEOF
17747 /* confdefs.h. */
17748 _ACEOF
17749 cat confdefs.h >>conftest.$ac_ext
17750 cat >>conftest.$ac_ext <<_ACEOF
17751 /* end confdefs.h. */
17753 /* Override any gcc2 internal prototype to avoid an error. */
17754 #ifdef __cplusplus
17755 extern "C"
17756 #endif
17757 /* We use char because int might match the return type of a gcc2
17758 builtin and then its argument prototype would still apply. */
17759 char zlibVersion ();
17761 main ()
17763 zlibVersion ();
17765 return 0;
17767 _ACEOF
17768 rm -f conftest.$ac_objext conftest$ac_exeext
17769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17770 (eval $ac_link) 2>conftest.er1
17771 ac_status=$?
17772 grep -v '^ *+' conftest.er1 >conftest.err
17773 rm -f conftest.er1
17774 cat conftest.err >&5
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); } &&
17777 { ac_try='test -z "$ac_c_werror_flag"
17778 || test ! -s conftest.err'
17779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17780 (eval $ac_try) 2>&5
17781 ac_status=$?
17782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783 (exit $ac_status); }; } &&
17784 { ac_try='test -s conftest$ac_exeext'
17785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17786 (eval $ac_try) 2>&5
17787 ac_status=$?
17788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789 (exit $ac_status); }; }; then
17790 ac_cv_search_zlibVersion="none required"
17791 else
17792 echo "$as_me: failed program was:" >&5
17793 sed 's/^/| /' conftest.$ac_ext >&5
17796 rm -f conftest.err conftest.$ac_objext \
17797 conftest$ac_exeext conftest.$ac_ext
17798 if test "$ac_cv_search_zlibVersion" = no; then
17799 for ac_lib in z; do
17800 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17801 cat >conftest.$ac_ext <<_ACEOF
17802 /* confdefs.h. */
17803 _ACEOF
17804 cat confdefs.h >>conftest.$ac_ext
17805 cat >>conftest.$ac_ext <<_ACEOF
17806 /* end confdefs.h. */
17808 /* Override any gcc2 internal prototype to avoid an error. */
17809 #ifdef __cplusplus
17810 extern "C"
17811 #endif
17812 /* We use char because int might match the return type of a gcc2
17813 builtin and then its argument prototype would still apply. */
17814 char zlibVersion ();
17816 main ()
17818 zlibVersion ();
17820 return 0;
17822 _ACEOF
17823 rm -f conftest.$ac_objext conftest$ac_exeext
17824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17825 (eval $ac_link) 2>conftest.er1
17826 ac_status=$?
17827 grep -v '^ *+' conftest.er1 >conftest.err
17828 rm -f conftest.er1
17829 cat conftest.err >&5
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); } &&
17832 { ac_try='test -z "$ac_c_werror_flag"
17833 || test ! -s conftest.err'
17834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17835 (eval $ac_try) 2>&5
17836 ac_status=$?
17837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838 (exit $ac_status); }; } &&
17839 { ac_try='test -s conftest$ac_exeext'
17840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17841 (eval $ac_try) 2>&5
17842 ac_status=$?
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); }; }; then
17845 ac_cv_search_zlibVersion="-l$ac_lib"
17846 break
17847 else
17848 echo "$as_me: failed program was:" >&5
17849 sed 's/^/| /' conftest.$ac_ext >&5
17852 rm -f conftest.err conftest.$ac_objext \
17853 conftest$ac_exeext conftest.$ac_ext
17854 done
17856 LIBS=$ac_func_search_save_LIBS
17858 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
17859 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
17860 if test "$ac_cv_search_zlibVersion" != no; then
17861 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
17863 for ac_header in zlib.h
17865 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17866 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17867 echo "$as_me:$LINENO: checking for $ac_header" >&5
17868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17869 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17870 echo $ECHO_N "(cached) $ECHO_C" >&6
17872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17873 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17874 else
17875 # Is the header compilable?
17876 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17877 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17878 cat >conftest.$ac_ext <<_ACEOF
17879 /* confdefs.h. */
17880 _ACEOF
17881 cat confdefs.h >>conftest.$ac_ext
17882 cat >>conftest.$ac_ext <<_ACEOF
17883 /* end confdefs.h. */
17884 $ac_includes_default
17885 #include <$ac_header>
17886 _ACEOF
17887 rm -f conftest.$ac_objext
17888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17889 (eval $ac_compile) 2>conftest.er1
17890 ac_status=$?
17891 grep -v '^ *+' conftest.er1 >conftest.err
17892 rm -f conftest.er1
17893 cat conftest.err >&5
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); } &&
17896 { ac_try='test -z "$ac_c_werror_flag"
17897 || test ! -s conftest.err'
17898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17899 (eval $ac_try) 2>&5
17900 ac_status=$?
17901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902 (exit $ac_status); }; } &&
17903 { ac_try='test -s conftest.$ac_objext'
17904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17905 (eval $ac_try) 2>&5
17906 ac_status=$?
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); }; }; then
17909 ac_header_compiler=yes
17910 else
17911 echo "$as_me: failed program was:" >&5
17912 sed 's/^/| /' conftest.$ac_ext >&5
17914 ac_header_compiler=no
17916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17917 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17918 echo "${ECHO_T}$ac_header_compiler" >&6
17920 # Is the header present?
17921 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17922 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17923 cat >conftest.$ac_ext <<_ACEOF
17924 /* confdefs.h. */
17925 _ACEOF
17926 cat confdefs.h >>conftest.$ac_ext
17927 cat >>conftest.$ac_ext <<_ACEOF
17928 /* end confdefs.h. */
17929 #include <$ac_header>
17930 _ACEOF
17931 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17932 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17933 ac_status=$?
17934 grep -v '^ *+' conftest.er1 >conftest.err
17935 rm -f conftest.er1
17936 cat conftest.err >&5
17937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); } >/dev/null; then
17939 if test -s conftest.err; then
17940 ac_cpp_err=$ac_c_preproc_warn_flag
17941 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17942 else
17943 ac_cpp_err=
17945 else
17946 ac_cpp_err=yes
17948 if test -z "$ac_cpp_err"; then
17949 ac_header_preproc=yes
17950 else
17951 echo "$as_me: failed program was:" >&5
17952 sed 's/^/| /' conftest.$ac_ext >&5
17954 ac_header_preproc=no
17956 rm -f conftest.err conftest.$ac_ext
17957 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17958 echo "${ECHO_T}$ac_header_preproc" >&6
17960 # So? What about this header?
17961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17962 yes:no: )
17963 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17964 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17966 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17967 ac_header_preproc=yes
17969 no:yes:* )
17970 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17971 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17972 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17973 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17974 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17975 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17976 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17977 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17979 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17980 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17981 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17983 cat <<\_ASBOX
17984 ## ------------------------------------------ ##
17985 ## Report this to the AC_PACKAGE_NAME lists. ##
17986 ## ------------------------------------------ ##
17987 _ASBOX
17989 sed "s/^/$as_me: WARNING: /" >&2
17991 esac
17992 echo "$as_me:$LINENO: checking for $ac_header" >&5
17993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17995 echo $ECHO_N "(cached) $ECHO_C" >&6
17996 else
17997 eval "$as_ac_Header=\$ac_header_preproc"
17999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18000 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18003 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18004 cat >>confdefs.h <<_ACEOF
18005 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18006 _ACEOF
18010 done
18015 # If we are configured native, pick a core file support file.
18016 COREFILE=
18017 COREFLAG=
18018 TRAD_HEADER=
18019 if test "${target}" = "${host}"; then
18020 case "${host}" in
18021 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
18022 COREFILE=''
18024 alpha*-*-linux-*)
18025 COREFILE=trad-core.lo
18026 TRAD_HEADER='"hosts/alphalinux.h"'
18028 alpha*-*-netbsd* | alpha*-*-openbsd*)
18029 COREFILE=netbsd-core.lo
18031 alpha*-*-*) COREFILE=osf-core.lo ;;
18032 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
18033 COREFILE='' ;;
18034 arm-*-netbsd* | arm-*-openbsd*)
18035 COREFILE=netbsd-core.lo
18037 arm-*-riscix) COREFILE=trad-core.lo ;;
18038 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
18039 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
18040 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
18041 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
18042 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
18043 hppa*-*-netbsd* | hppa*-*-openbsd*)
18044 COREFILE=netbsd-core.lo
18047 i370-*-*)
18048 COREFILE=trad-core.lo
18049 TRAD_HEADER='"hosts/i370linux.h"'
18052 i[3-7]86-sequent-bsd*)
18053 COREFILE=trad-core.lo
18054 TRAD_HEADER='"hosts/symmetry.h"'
18056 i[3-7]86-sequent-sysv4*) ;;
18057 i[3-7]86-sequent-sysv*)
18058 COREFILE=trad-core.lo
18059 TRAD_HEADER='"hosts/symmetry.h"'
18061 i[3-7]86-*-bsdi)
18062 COREFILE=
18064 i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234] | i[3-7]86-*-freebsd4\.[01234]\.* | i[3-7]86-*-freebsd*aout*)
18065 COREFILE=trad-core.lo
18066 TRAD_HEADER='"hosts/i386bsd.h"'
18068 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
18069 COREFILE=''
18070 TRAD_HEADER='"hosts/i386bsd.h"'
18072 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
18073 COREFILE=netbsd-core.lo
18075 i[3-7]86-esix-sysv3*)
18076 COREFILE=trad-core.lo
18077 TRAD_HEADER='"hosts/esix.h"'
18079 i[3-7]86-*-sco3.2v5*)
18080 COREFILE=sco5-core.lo
18082 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
18083 COREFILE=trad-core.lo
18084 TRAD_HEADER='"hosts/i386sco.h"'
18086 i[3-7]86-*-mach3*)
18087 COREFILE=trad-core.lo
18088 TRAD_HEADER='"hosts/i386mach3.h"'
18090 i[3-7]86-*-linux-*)
18091 COREFILE=trad-core.lo
18092 TRAD_HEADER='"hosts/i386linux.h"'
18094 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
18095 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
18096 i860-*-mach3* | i860-*-osf1*)
18097 COREFILE=trad-core.lo
18098 TRAD_HEADER='"hosts/i860mach3.h"'
18100 mips-*-netbsd* | mips*-*-openbsd*)
18101 COREFILE=netbsd-core.lo
18103 mips-dec-*)
18104 COREFILE=trad-core.lo
18105 TRAD_HEADER='"hosts/decstation.h"'
18107 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
18108 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
18109 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
18110 mips-*-sysv4*) ;;
18111 mips-*-sysv* | mips-*-riscos*)
18112 COREFILE=trad-core.lo
18113 TRAD_HEADER='"hosts/riscos.h"'
18115 mips-sony-bsd*)
18116 COREFILE=trad-core.lo
18117 TRAD_HEADER='"hosts/news-mips.h"'
18119 m68*-bull*-sysv*)
18120 COREFILE=trad-core.lo
18121 TRAD_HEADER='"hosts/dpx2.h"'
18123 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
18124 m68*-hp-bsd*)
18125 COREFILE=trad-core.lo
18126 TRAD_HEADER='"hosts/hp300bsd.h"'
18128 m68*-*-linux-*)
18129 COREFILE=trad-core.lo
18130 TRAD_HEADER='"hosts/m68klinux.h"'
18132 m68*-motorola-sysv*)
18133 COREFILE=trad-core.lo
18134 TRAD_HEADER='"hosts/delta68.h"'
18136 m68*-sony-*)
18137 COREFILE=trad-core.lo
18138 TRAD_HEADER='"hosts/news.h"'
18140 m68*-*-netbsd* | m68*-*-openbsd*)
18141 COREFILE=netbsd-core.lo
18143 m68*-apple-aux*)
18144 COREFILE=trad-core.lo
18145 TRAD_HEADER='"hosts/m68kaux.h"'
18147 m88*-*-sysv4*)
18149 m88*-motorola-sysv*)
18150 COREFILE=ptrace-core.lo
18152 m88*-*-mach3*)
18153 COREFILE=trad-core.lo
18154 TRAD_HEADER='"hosts/m88kmach3.h"'
18156 m88*-*-openbsd*)
18157 COREFILE=netbsd-core.lo
18159 ns32k-pc532-mach)
18160 COREFILE=trad-core.lo
18161 TRAD_HEADER='"hosts/pc532mach.h"'
18163 ns32k-*-netbsd* | ns32k-*-openbsd*)
18164 COREFILE=netbsd-core.lo
18166 rs6000-*-lynx*)
18167 COREFILE=lynx-core.lo
18169 rs6000-*-aix5.* | powerpc-*-aix5.*)
18170 COREFILE=rs6000-core.lo
18171 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
18173 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
18174 COREFILE=rs6000-core.lo
18175 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
18176 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
18177 # have c_impl as a member of struct core_dumpx
18178 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
18179 echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
18180 cat >conftest.$ac_ext <<_ACEOF
18181 /* confdefs.h. */
18182 _ACEOF
18183 cat confdefs.h >>conftest.$ac_ext
18184 cat >>conftest.$ac_ext <<_ACEOF
18185 /* end confdefs.h. */
18186 #include <core.h>
18188 main ()
18190 struct core_dumpx c; c.c_impl = 0;
18192 return 0;
18194 _ACEOF
18195 rm -f conftest.$ac_objext
18196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18197 (eval $ac_compile) 2>conftest.er1
18198 ac_status=$?
18199 grep -v '^ *+' conftest.er1 >conftest.err
18200 rm -f conftest.er1
18201 cat conftest.err >&5
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); } &&
18204 { ac_try='test -z "$ac_c_werror_flag"
18205 || test ! -s conftest.err'
18206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18207 (eval $ac_try) 2>&5
18208 ac_status=$?
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); }; } &&
18211 { ac_try='test -s conftest.$ac_objext'
18212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18213 (eval $ac_try) 2>&5
18214 ac_status=$?
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); }; }; then
18218 cat >>confdefs.h <<\_ACEOF
18219 #define HAVE_ST_C_IMPL 1
18220 _ACEOF
18222 echo "$as_me:$LINENO: result: yes" >&5
18223 echo "${ECHO_T}yes" >&6
18224 else
18225 echo "$as_me: failed program was:" >&5
18226 sed 's/^/| /' conftest.$ac_ext >&5
18228 echo "$as_me:$LINENO: result: no" >&5
18229 echo "${ECHO_T}no" >&6
18231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18233 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
18234 rs6000-*-*) COREFILE=rs6000-core.lo ;;
18235 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
18236 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
18237 powerpc-*-beos*) ;;
18238 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
18239 COREFILE='' ;;
18240 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
18241 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
18242 s390*-*-*) COREFILE=trad-core.lo ;;
18243 sh*-*-netbsd* | sh*-*-openbsd*)
18244 COREFILE=netbsd-core.lo
18246 sparc-*-netbsd* | sparc*-*-openbsd*)
18247 COREFILE=netbsd-core.lo
18249 tahoe-*-*)
18250 COREFILE=trad-core.lo
18251 TRAD_HEADER='"hosts/tahoe.h"'
18253 vax-*-netbsd* | vax-*-openbsd*)
18254 COREFILE=netbsd-core.lo
18256 vax-*-ultrix2*)
18257 COREFILE=trad-core.lo
18258 TRAD_HEADER='"hosts/vaxult2.h"'
18260 vax-*-ultrix*)
18261 COREFILE=trad-core.lo
18262 TRAD_HEADER='"hosts/vaxult2.h"'
18264 vax-*-linux-*)
18265 COREFILE=trad-core.lo
18266 TRAD_HEADER='"hosts/vaxlinux.h"'
18268 vax-*-*)
18269 COREFILE=trad-core.lo
18270 TRAD_HEADER='"hosts/vaxbsd.h"'
18272 x86_64-*-netbsd* | x86_64-*-openbsd*)
18273 COREFILE=netbsd-core.lo
18275 esac
18277 case "$COREFILE" in
18278 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
18279 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
18280 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
18281 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
18282 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
18283 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
18284 osf-core.lo) COREFLAG=-DOSF_CORE ;;
18285 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
18286 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
18287 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
18288 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
18289 esac
18291 # ELF corefile support has several flavors, but all of
18292 # them use something called <sys/procfs.h>
18294 for ac_header in sys/procfs.h
18296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18298 echo "$as_me:$LINENO: checking for $ac_header" >&5
18299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18301 echo $ECHO_N "(cached) $ECHO_C" >&6
18303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18305 else
18306 # Is the header compilable?
18307 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18309 cat >conftest.$ac_ext <<_ACEOF
18310 /* confdefs.h. */
18311 _ACEOF
18312 cat confdefs.h >>conftest.$ac_ext
18313 cat >>conftest.$ac_ext <<_ACEOF
18314 /* end confdefs.h. */
18315 $ac_includes_default
18316 #include <$ac_header>
18317 _ACEOF
18318 rm -f conftest.$ac_objext
18319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18320 (eval $ac_compile) 2>conftest.er1
18321 ac_status=$?
18322 grep -v '^ *+' conftest.er1 >conftest.err
18323 rm -f conftest.er1
18324 cat conftest.err >&5
18325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326 (exit $ac_status); } &&
18327 { ac_try='test -z "$ac_c_werror_flag"
18328 || test ! -s conftest.err'
18329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18330 (eval $ac_try) 2>&5
18331 ac_status=$?
18332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333 (exit $ac_status); }; } &&
18334 { ac_try='test -s conftest.$ac_objext'
18335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18336 (eval $ac_try) 2>&5
18337 ac_status=$?
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); }; }; then
18340 ac_header_compiler=yes
18341 else
18342 echo "$as_me: failed program was:" >&5
18343 sed 's/^/| /' conftest.$ac_ext >&5
18345 ac_header_compiler=no
18347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18348 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18349 echo "${ECHO_T}$ac_header_compiler" >&6
18351 # Is the header present?
18352 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18353 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18354 cat >conftest.$ac_ext <<_ACEOF
18355 /* confdefs.h. */
18356 _ACEOF
18357 cat confdefs.h >>conftest.$ac_ext
18358 cat >>conftest.$ac_ext <<_ACEOF
18359 /* end confdefs.h. */
18360 #include <$ac_header>
18361 _ACEOF
18362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18364 ac_status=$?
18365 grep -v '^ *+' conftest.er1 >conftest.err
18366 rm -f conftest.er1
18367 cat conftest.err >&5
18368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369 (exit $ac_status); } >/dev/null; then
18370 if test -s conftest.err; then
18371 ac_cpp_err=$ac_c_preproc_warn_flag
18372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18373 else
18374 ac_cpp_err=
18376 else
18377 ac_cpp_err=yes
18379 if test -z "$ac_cpp_err"; then
18380 ac_header_preproc=yes
18381 else
18382 echo "$as_me: failed program was:" >&5
18383 sed 's/^/| /' conftest.$ac_ext >&5
18385 ac_header_preproc=no
18387 rm -f conftest.err conftest.$ac_ext
18388 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18389 echo "${ECHO_T}$ac_header_preproc" >&6
18391 # So? What about this header?
18392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18393 yes:no: )
18394 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18395 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18397 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18398 ac_header_preproc=yes
18400 no:yes:* )
18401 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18402 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18403 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18404 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18405 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18406 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18407 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18408 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18410 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18411 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18412 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18414 cat <<\_ASBOX
18415 ## ------------------------------------------ ##
18416 ## Report this to the AC_PACKAGE_NAME lists. ##
18417 ## ------------------------------------------ ##
18418 _ASBOX
18420 sed "s/^/$as_me: WARNING: /" >&2
18422 esac
18423 echo "$as_me:$LINENO: checking for $ac_header" >&5
18424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18426 echo $ECHO_N "(cached) $ECHO_C" >&6
18427 else
18428 eval "$as_ac_Header=\$ac_header_preproc"
18430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18435 cat >>confdefs.h <<_ACEOF
18436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18437 _ACEOF
18441 done
18443 if test "$ac_cv_header_sys_procfs_h" = yes; then
18444 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
18445 echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
18446 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
18447 echo $ECHO_N "(cached) $ECHO_C" >&6
18448 else
18449 cat >conftest.$ac_ext <<_ACEOF
18450 /* confdefs.h. */
18451 _ACEOF
18452 cat confdefs.h >>conftest.$ac_ext
18453 cat >>conftest.$ac_ext <<_ACEOF
18454 /* end confdefs.h. */
18456 #define _SYSCALL32
18457 #include <sys/procfs.h>
18459 main ()
18461 prstatus_t avar
18463 return 0;
18465 _ACEOF
18466 rm -f conftest.$ac_objext
18467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18468 (eval $ac_compile) 2>conftest.er1
18469 ac_status=$?
18470 grep -v '^ *+' conftest.er1 >conftest.err
18471 rm -f conftest.er1
18472 cat conftest.err >&5
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); } &&
18475 { ac_try='test -z "$ac_c_werror_flag"
18476 || test ! -s conftest.err'
18477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18478 (eval $ac_try) 2>&5
18479 ac_status=$?
18480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481 (exit $ac_status); }; } &&
18482 { ac_try='test -s conftest.$ac_objext'
18483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18484 (eval $ac_try) 2>&5
18485 ac_status=$?
18486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487 (exit $ac_status); }; }; then
18488 bfd_cv_have_sys_procfs_type_prstatus_t=yes
18489 else
18490 echo "$as_me: failed program was:" >&5
18491 sed 's/^/| /' conftest.$ac_ext >&5
18493 bfd_cv_have_sys_procfs_type_prstatus_t=no
18496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18499 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
18501 cat >>confdefs.h <<\_ACEOF
18502 #define HAVE_PRSTATUS_T 1
18503 _ACEOF
18506 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
18507 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
18509 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
18510 echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
18511 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
18512 echo $ECHO_N "(cached) $ECHO_C" >&6
18513 else
18514 cat >conftest.$ac_ext <<_ACEOF
18515 /* confdefs.h. */
18516 _ACEOF
18517 cat confdefs.h >>conftest.$ac_ext
18518 cat >>conftest.$ac_ext <<_ACEOF
18519 /* end confdefs.h. */
18521 #define _SYSCALL32
18522 #include <sys/procfs.h>
18524 main ()
18526 prstatus32_t avar
18528 return 0;
18530 _ACEOF
18531 rm -f conftest.$ac_objext
18532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18533 (eval $ac_compile) 2>conftest.er1
18534 ac_status=$?
18535 grep -v '^ *+' conftest.er1 >conftest.err
18536 rm -f conftest.er1
18537 cat conftest.err >&5
18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); } &&
18540 { ac_try='test -z "$ac_c_werror_flag"
18541 || test ! -s conftest.err'
18542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18543 (eval $ac_try) 2>&5
18544 ac_status=$?
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); }; } &&
18547 { ac_try='test -s conftest.$ac_objext'
18548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18549 (eval $ac_try) 2>&5
18550 ac_status=$?
18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); }; }; then
18553 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
18554 else
18555 echo "$as_me: failed program was:" >&5
18556 sed 's/^/| /' conftest.$ac_ext >&5
18558 bfd_cv_have_sys_procfs_type_prstatus32_t=no
18561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18564 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
18566 cat >>confdefs.h <<\_ACEOF
18567 #define HAVE_PRSTATUS32_T 1
18568 _ACEOF
18571 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
18572 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
18574 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
18575 echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
18576 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
18577 echo $ECHO_N "(cached) $ECHO_C" >&6
18578 else
18579 cat >conftest.$ac_ext <<_ACEOF
18580 /* confdefs.h. */
18581 _ACEOF
18582 cat confdefs.h >>conftest.$ac_ext
18583 cat >>conftest.$ac_ext <<_ACEOF
18584 /* end confdefs.h. */
18586 #define _SYSCALL32
18587 #include <sys/procfs.h>
18589 main ()
18591 prstatus_t avar; void* aref = (void*) &avar.pr_who
18593 return 0;
18595 _ACEOF
18596 rm -f conftest.$ac_objext
18597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18598 (eval $ac_compile) 2>conftest.er1
18599 ac_status=$?
18600 grep -v '^ *+' conftest.er1 >conftest.err
18601 rm -f conftest.er1
18602 cat conftest.err >&5
18603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604 (exit $ac_status); } &&
18605 { ac_try='test -z "$ac_c_werror_flag"
18606 || test ! -s conftest.err'
18607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18608 (eval $ac_try) 2>&5
18609 ac_status=$?
18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); }; } &&
18612 { ac_try='test -s conftest.$ac_objext'
18613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18614 (eval $ac_try) 2>&5
18615 ac_status=$?
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); }; }; then
18618 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
18619 else
18620 echo "$as_me: failed program was:" >&5
18621 sed 's/^/| /' conftest.$ac_ext >&5
18623 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
18626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18629 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
18631 cat >>confdefs.h <<\_ACEOF
18632 #define HAVE_PRSTATUS_T_PR_WHO 1
18633 _ACEOF
18636 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
18637 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
18639 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
18640 echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
18641 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
18642 echo $ECHO_N "(cached) $ECHO_C" >&6
18643 else
18644 cat >conftest.$ac_ext <<_ACEOF
18645 /* confdefs.h. */
18646 _ACEOF
18647 cat confdefs.h >>conftest.$ac_ext
18648 cat >>conftest.$ac_ext <<_ACEOF
18649 /* end confdefs.h. */
18651 #define _SYSCALL32
18652 #include <sys/procfs.h>
18654 main ()
18656 prstatus32_t avar; void* aref = (void*) &avar.pr_who
18658 return 0;
18660 _ACEOF
18661 rm -f conftest.$ac_objext
18662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18663 (eval $ac_compile) 2>conftest.er1
18664 ac_status=$?
18665 grep -v '^ *+' conftest.er1 >conftest.err
18666 rm -f conftest.er1
18667 cat conftest.err >&5
18668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669 (exit $ac_status); } &&
18670 { ac_try='test -z "$ac_c_werror_flag"
18671 || test ! -s conftest.err'
18672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18673 (eval $ac_try) 2>&5
18674 ac_status=$?
18675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676 (exit $ac_status); }; } &&
18677 { ac_try='test -s conftest.$ac_objext'
18678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18679 (eval $ac_try) 2>&5
18680 ac_status=$?
18681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682 (exit $ac_status); }; }; then
18683 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
18684 else
18685 echo "$as_me: failed program was:" >&5
18686 sed 's/^/| /' conftest.$ac_ext >&5
18688 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
18691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18694 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
18696 cat >>confdefs.h <<\_ACEOF
18697 #define HAVE_PRSTATUS32_T_PR_WHO 1
18698 _ACEOF
18701 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
18702 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
18704 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
18705 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
18706 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
18707 echo $ECHO_N "(cached) $ECHO_C" >&6
18708 else
18709 cat >conftest.$ac_ext <<_ACEOF
18710 /* confdefs.h. */
18711 _ACEOF
18712 cat confdefs.h >>conftest.$ac_ext
18713 cat >>conftest.$ac_ext <<_ACEOF
18714 /* end confdefs.h. */
18716 #define _SYSCALL32
18717 #include <sys/procfs.h>
18719 main ()
18721 pstatus_t avar
18723 return 0;
18725 _ACEOF
18726 rm -f conftest.$ac_objext
18727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18728 (eval $ac_compile) 2>conftest.er1
18729 ac_status=$?
18730 grep -v '^ *+' conftest.er1 >conftest.err
18731 rm -f conftest.er1
18732 cat conftest.err >&5
18733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734 (exit $ac_status); } &&
18735 { ac_try='test -z "$ac_c_werror_flag"
18736 || test ! -s conftest.err'
18737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18738 (eval $ac_try) 2>&5
18739 ac_status=$?
18740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741 (exit $ac_status); }; } &&
18742 { ac_try='test -s conftest.$ac_objext'
18743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18744 (eval $ac_try) 2>&5
18745 ac_status=$?
18746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747 (exit $ac_status); }; }; then
18748 bfd_cv_have_sys_procfs_type_pstatus_t=yes
18749 else
18750 echo "$as_me: failed program was:" >&5
18751 sed 's/^/| /' conftest.$ac_ext >&5
18753 bfd_cv_have_sys_procfs_type_pstatus_t=no
18756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18759 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
18761 cat >>confdefs.h <<\_ACEOF
18762 #define HAVE_PSTATUS_T 1
18763 _ACEOF
18766 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
18767 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
18769 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
18770 echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
18771 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
18772 echo $ECHO_N "(cached) $ECHO_C" >&6
18773 else
18774 cat >conftest.$ac_ext <<_ACEOF
18775 /* confdefs.h. */
18776 _ACEOF
18777 cat confdefs.h >>conftest.$ac_ext
18778 cat >>conftest.$ac_ext <<_ACEOF
18779 /* end confdefs.h. */
18781 #define _SYSCALL32
18782 #include <sys/procfs.h>
18784 main ()
18786 pxstatus_t avar
18788 return 0;
18790 _ACEOF
18791 rm -f conftest.$ac_objext
18792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18793 (eval $ac_compile) 2>conftest.er1
18794 ac_status=$?
18795 grep -v '^ *+' conftest.er1 >conftest.err
18796 rm -f conftest.er1
18797 cat conftest.err >&5
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); } &&
18800 { ac_try='test -z "$ac_c_werror_flag"
18801 || test ! -s conftest.err'
18802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18803 (eval $ac_try) 2>&5
18804 ac_status=$?
18805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806 (exit $ac_status); }; } &&
18807 { ac_try='test -s conftest.$ac_objext'
18808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18809 (eval $ac_try) 2>&5
18810 ac_status=$?
18811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812 (exit $ac_status); }; }; then
18813 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
18814 else
18815 echo "$as_me: failed program was:" >&5
18816 sed 's/^/| /' conftest.$ac_ext >&5
18818 bfd_cv_have_sys_procfs_type_pxstatus_t=no
18821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18824 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
18826 cat >>confdefs.h <<\_ACEOF
18827 #define HAVE_PXSTATUS_T 1
18828 _ACEOF
18831 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
18832 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
18834 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
18835 echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
18836 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
18837 echo $ECHO_N "(cached) $ECHO_C" >&6
18838 else
18839 cat >conftest.$ac_ext <<_ACEOF
18840 /* confdefs.h. */
18841 _ACEOF
18842 cat confdefs.h >>conftest.$ac_ext
18843 cat >>conftest.$ac_ext <<_ACEOF
18844 /* end confdefs.h. */
18846 #define _SYSCALL32
18847 #include <sys/procfs.h>
18849 main ()
18851 pstatus32_t avar
18853 return 0;
18855 _ACEOF
18856 rm -f conftest.$ac_objext
18857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18858 (eval $ac_compile) 2>conftest.er1
18859 ac_status=$?
18860 grep -v '^ *+' conftest.er1 >conftest.err
18861 rm -f conftest.er1
18862 cat conftest.err >&5
18863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864 (exit $ac_status); } &&
18865 { ac_try='test -z "$ac_c_werror_flag"
18866 || test ! -s conftest.err'
18867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18868 (eval $ac_try) 2>&5
18869 ac_status=$?
18870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871 (exit $ac_status); }; } &&
18872 { ac_try='test -s conftest.$ac_objext'
18873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18874 (eval $ac_try) 2>&5
18875 ac_status=$?
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); }; }; then
18878 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
18879 else
18880 echo "$as_me: failed program was:" >&5
18881 sed 's/^/| /' conftest.$ac_ext >&5
18883 bfd_cv_have_sys_procfs_type_pstatus32_t=no
18886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18889 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
18891 cat >>confdefs.h <<\_ACEOF
18892 #define HAVE_PSTATUS32_T 1
18893 _ACEOF
18896 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
18897 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
18899 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
18900 echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
18901 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
18902 echo $ECHO_N "(cached) $ECHO_C" >&6
18903 else
18904 cat >conftest.$ac_ext <<_ACEOF
18905 /* confdefs.h. */
18906 _ACEOF
18907 cat confdefs.h >>conftest.$ac_ext
18908 cat >>conftest.$ac_ext <<_ACEOF
18909 /* end confdefs.h. */
18911 #define _SYSCALL32
18912 #include <sys/procfs.h>
18914 main ()
18916 prpsinfo_t avar
18918 return 0;
18920 _ACEOF
18921 rm -f conftest.$ac_objext
18922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18923 (eval $ac_compile) 2>conftest.er1
18924 ac_status=$?
18925 grep -v '^ *+' conftest.er1 >conftest.err
18926 rm -f conftest.er1
18927 cat conftest.err >&5
18928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929 (exit $ac_status); } &&
18930 { ac_try='test -z "$ac_c_werror_flag"
18931 || test ! -s conftest.err'
18932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18933 (eval $ac_try) 2>&5
18934 ac_status=$?
18935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); }; } &&
18937 { ac_try='test -s conftest.$ac_objext'
18938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18939 (eval $ac_try) 2>&5
18940 ac_status=$?
18941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942 (exit $ac_status); }; }; then
18943 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
18944 else
18945 echo "$as_me: failed program was:" >&5
18946 sed 's/^/| /' conftest.$ac_ext >&5
18948 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
18951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18954 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
18956 cat >>confdefs.h <<\_ACEOF
18957 #define HAVE_PRPSINFO_T 1
18958 _ACEOF
18961 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
18962 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
18964 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
18965 echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
18966 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
18967 echo $ECHO_N "(cached) $ECHO_C" >&6
18968 else
18969 cat >conftest.$ac_ext <<_ACEOF
18970 /* confdefs.h. */
18971 _ACEOF
18972 cat confdefs.h >>conftest.$ac_ext
18973 cat >>conftest.$ac_ext <<_ACEOF
18974 /* end confdefs.h. */
18976 #define _SYSCALL32
18977 #include <sys/procfs.h>
18979 main ()
18981 prpsinfo32_t avar
18983 return 0;
18985 _ACEOF
18986 rm -f conftest.$ac_objext
18987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18988 (eval $ac_compile) 2>conftest.er1
18989 ac_status=$?
18990 grep -v '^ *+' conftest.er1 >conftest.err
18991 rm -f conftest.er1
18992 cat conftest.err >&5
18993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994 (exit $ac_status); } &&
18995 { ac_try='test -z "$ac_c_werror_flag"
18996 || test ! -s conftest.err'
18997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18998 (eval $ac_try) 2>&5
18999 ac_status=$?
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); }; } &&
19002 { ac_try='test -s conftest.$ac_objext'
19003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19004 (eval $ac_try) 2>&5
19005 ac_status=$?
19006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007 (exit $ac_status); }; }; then
19008 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
19009 else
19010 echo "$as_me: failed program was:" >&5
19011 sed 's/^/| /' conftest.$ac_ext >&5
19013 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
19016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19019 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
19021 cat >>confdefs.h <<\_ACEOF
19022 #define HAVE_PRPSINFO32_T 1
19023 _ACEOF
19026 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
19027 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
19029 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
19030 echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
19031 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
19032 echo $ECHO_N "(cached) $ECHO_C" >&6
19033 else
19034 cat >conftest.$ac_ext <<_ACEOF
19035 /* confdefs.h. */
19036 _ACEOF
19037 cat confdefs.h >>conftest.$ac_ext
19038 cat >>conftest.$ac_ext <<_ACEOF
19039 /* end confdefs.h. */
19041 #define _SYSCALL32
19042 #include <sys/procfs.h>
19044 main ()
19046 psinfo_t avar
19048 return 0;
19050 _ACEOF
19051 rm -f conftest.$ac_objext
19052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19053 (eval $ac_compile) 2>conftest.er1
19054 ac_status=$?
19055 grep -v '^ *+' conftest.er1 >conftest.err
19056 rm -f conftest.er1
19057 cat conftest.err >&5
19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); } &&
19060 { ac_try='test -z "$ac_c_werror_flag"
19061 || test ! -s conftest.err'
19062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19063 (eval $ac_try) 2>&5
19064 ac_status=$?
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); }; } &&
19067 { ac_try='test -s conftest.$ac_objext'
19068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19069 (eval $ac_try) 2>&5
19070 ac_status=$?
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); }; }; then
19073 bfd_cv_have_sys_procfs_type_psinfo_t=yes
19074 else
19075 echo "$as_me: failed program was:" >&5
19076 sed 's/^/| /' conftest.$ac_ext >&5
19078 bfd_cv_have_sys_procfs_type_psinfo_t=no
19081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19084 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
19086 cat >>confdefs.h <<\_ACEOF
19087 #define HAVE_PSINFO_T 1
19088 _ACEOF
19091 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
19092 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
19094 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
19095 echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
19096 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
19097 echo $ECHO_N "(cached) $ECHO_C" >&6
19098 else
19099 cat >conftest.$ac_ext <<_ACEOF
19100 /* confdefs.h. */
19101 _ACEOF
19102 cat confdefs.h >>conftest.$ac_ext
19103 cat >>conftest.$ac_ext <<_ACEOF
19104 /* end confdefs.h. */
19106 #define _SYSCALL32
19107 #include <sys/procfs.h>
19109 main ()
19111 psinfo32_t avar
19113 return 0;
19115 _ACEOF
19116 rm -f conftest.$ac_objext
19117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19118 (eval $ac_compile) 2>conftest.er1
19119 ac_status=$?
19120 grep -v '^ *+' conftest.er1 >conftest.err
19121 rm -f conftest.er1
19122 cat conftest.err >&5
19123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124 (exit $ac_status); } &&
19125 { ac_try='test -z "$ac_c_werror_flag"
19126 || test ! -s conftest.err'
19127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19128 (eval $ac_try) 2>&5
19129 ac_status=$?
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); }; } &&
19132 { ac_try='test -s conftest.$ac_objext'
19133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19134 (eval $ac_try) 2>&5
19135 ac_status=$?
19136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137 (exit $ac_status); }; }; then
19138 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
19139 else
19140 echo "$as_me: failed program was:" >&5
19141 sed 's/^/| /' conftest.$ac_ext >&5
19143 bfd_cv_have_sys_procfs_type_psinfo32_t=no
19146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19149 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
19151 cat >>confdefs.h <<\_ACEOF
19152 #define HAVE_PSINFO32_T 1
19153 _ACEOF
19156 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
19157 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
19159 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
19160 echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
19161 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
19162 echo $ECHO_N "(cached) $ECHO_C" >&6
19163 else
19164 cat >conftest.$ac_ext <<_ACEOF
19165 /* confdefs.h. */
19166 _ACEOF
19167 cat confdefs.h >>conftest.$ac_ext
19168 cat >>conftest.$ac_ext <<_ACEOF
19169 /* end confdefs.h. */
19171 #define _SYSCALL32
19172 #include <sys/procfs.h>
19174 main ()
19176 lwpstatus_t avar
19178 return 0;
19180 _ACEOF
19181 rm -f conftest.$ac_objext
19182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19183 (eval $ac_compile) 2>conftest.er1
19184 ac_status=$?
19185 grep -v '^ *+' conftest.er1 >conftest.err
19186 rm -f conftest.er1
19187 cat conftest.err >&5
19188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189 (exit $ac_status); } &&
19190 { ac_try='test -z "$ac_c_werror_flag"
19191 || test ! -s conftest.err'
19192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19193 (eval $ac_try) 2>&5
19194 ac_status=$?
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); }; } &&
19197 { ac_try='test -s conftest.$ac_objext'
19198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19199 (eval $ac_try) 2>&5
19200 ac_status=$?
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); }; }; then
19203 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
19204 else
19205 echo "$as_me: failed program was:" >&5
19206 sed 's/^/| /' conftest.$ac_ext >&5
19208 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
19211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19214 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
19216 cat >>confdefs.h <<\_ACEOF
19217 #define HAVE_LWPSTATUS_T 1
19218 _ACEOF
19221 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
19222 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
19224 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
19225 echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
19226 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
19227 echo $ECHO_N "(cached) $ECHO_C" >&6
19228 else
19229 cat >conftest.$ac_ext <<_ACEOF
19230 /* confdefs.h. */
19231 _ACEOF
19232 cat confdefs.h >>conftest.$ac_ext
19233 cat >>conftest.$ac_ext <<_ACEOF
19234 /* end confdefs.h. */
19236 #define _SYSCALL32
19237 #include <sys/procfs.h>
19239 main ()
19241 lwpxstatus_t avar
19243 return 0;
19245 _ACEOF
19246 rm -f conftest.$ac_objext
19247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19248 (eval $ac_compile) 2>conftest.er1
19249 ac_status=$?
19250 grep -v '^ *+' conftest.er1 >conftest.err
19251 rm -f conftest.er1
19252 cat conftest.err >&5
19253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); } &&
19255 { ac_try='test -z "$ac_c_werror_flag"
19256 || test ! -s conftest.err'
19257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19258 (eval $ac_try) 2>&5
19259 ac_status=$?
19260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261 (exit $ac_status); }; } &&
19262 { ac_try='test -s conftest.$ac_objext'
19263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19264 (eval $ac_try) 2>&5
19265 ac_status=$?
19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); }; }; then
19268 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
19269 else
19270 echo "$as_me: failed program was:" >&5
19271 sed 's/^/| /' conftest.$ac_ext >&5
19273 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
19276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19279 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
19281 cat >>confdefs.h <<\_ACEOF
19282 #define HAVE_LWPXSTATUS_T 1
19283 _ACEOF
19286 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
19287 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
19289 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
19290 echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
19291 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
19292 echo $ECHO_N "(cached) $ECHO_C" >&6
19293 else
19294 cat >conftest.$ac_ext <<_ACEOF
19295 /* confdefs.h. */
19296 _ACEOF
19297 cat confdefs.h >>conftest.$ac_ext
19298 cat >>conftest.$ac_ext <<_ACEOF
19299 /* end confdefs.h. */
19301 #define _SYSCALL32
19302 #include <sys/procfs.h>
19304 main ()
19306 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
19308 return 0;
19310 _ACEOF
19311 rm -f conftest.$ac_objext
19312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19313 (eval $ac_compile) 2>conftest.er1
19314 ac_status=$?
19315 grep -v '^ *+' conftest.er1 >conftest.err
19316 rm -f conftest.er1
19317 cat conftest.err >&5
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); } &&
19320 { ac_try='test -z "$ac_c_werror_flag"
19321 || test ! -s conftest.err'
19322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19323 (eval $ac_try) 2>&5
19324 ac_status=$?
19325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326 (exit $ac_status); }; } &&
19327 { ac_try='test -s conftest.$ac_objext'
19328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19329 (eval $ac_try) 2>&5
19330 ac_status=$?
19331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332 (exit $ac_status); }; }; then
19333 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
19334 else
19335 echo "$as_me: failed program was:" >&5
19336 sed 's/^/| /' conftest.$ac_ext >&5
19338 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
19341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19344 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
19346 cat >>confdefs.h <<\_ACEOF
19347 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
19348 _ACEOF
19351 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
19352 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
19354 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
19355 echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
19356 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
19357 echo $ECHO_N "(cached) $ECHO_C" >&6
19358 else
19359 cat >conftest.$ac_ext <<_ACEOF
19360 /* confdefs.h. */
19361 _ACEOF
19362 cat confdefs.h >>conftest.$ac_ext
19363 cat >>conftest.$ac_ext <<_ACEOF
19364 /* end confdefs.h. */
19366 #define _SYSCALL32
19367 #include <sys/procfs.h>
19369 main ()
19371 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
19373 return 0;
19375 _ACEOF
19376 rm -f conftest.$ac_objext
19377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19378 (eval $ac_compile) 2>conftest.er1
19379 ac_status=$?
19380 grep -v '^ *+' conftest.er1 >conftest.err
19381 rm -f conftest.er1
19382 cat conftest.err >&5
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); } &&
19385 { ac_try='test -z "$ac_c_werror_flag"
19386 || test ! -s conftest.err'
19387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19388 (eval $ac_try) 2>&5
19389 ac_status=$?
19390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391 (exit $ac_status); }; } &&
19392 { ac_try='test -s conftest.$ac_objext'
19393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19394 (eval $ac_try) 2>&5
19395 ac_status=$?
19396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397 (exit $ac_status); }; }; then
19398 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
19399 else
19400 echo "$as_me: failed program was:" >&5
19401 sed 's/^/| /' conftest.$ac_ext >&5
19403 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
19406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19409 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
19411 cat >>confdefs.h <<\_ACEOF
19412 #define HAVE_LWPSTATUS_T_PR_REG 1
19413 _ACEOF
19416 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
19417 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
19419 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
19420 echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
19421 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
19422 echo $ECHO_N "(cached) $ECHO_C" >&6
19423 else
19424 cat >conftest.$ac_ext <<_ACEOF
19425 /* confdefs.h. */
19426 _ACEOF
19427 cat confdefs.h >>conftest.$ac_ext
19428 cat >>conftest.$ac_ext <<_ACEOF
19429 /* end confdefs.h. */
19431 #define _SYSCALL32
19432 #include <sys/procfs.h>
19434 main ()
19436 win32_pstatus_t avar
19438 return 0;
19440 _ACEOF
19441 rm -f conftest.$ac_objext
19442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19443 (eval $ac_compile) 2>conftest.er1
19444 ac_status=$?
19445 grep -v '^ *+' conftest.er1 >conftest.err
19446 rm -f conftest.er1
19447 cat conftest.err >&5
19448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449 (exit $ac_status); } &&
19450 { ac_try='test -z "$ac_c_werror_flag"
19451 || test ! -s conftest.err'
19452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19453 (eval $ac_try) 2>&5
19454 ac_status=$?
19455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456 (exit $ac_status); }; } &&
19457 { ac_try='test -s conftest.$ac_objext'
19458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19459 (eval $ac_try) 2>&5
19460 ac_status=$?
19461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462 (exit $ac_status); }; }; then
19463 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
19464 else
19465 echo "$as_me: failed program was:" >&5
19466 sed 's/^/| /' conftest.$ac_ext >&5
19468 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
19471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19474 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
19476 cat >>confdefs.h <<\_ACEOF
19477 #define HAVE_WIN32_PSTATUS_T 1
19478 _ACEOF
19481 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
19482 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
19488 if test -n "$TRAD_HEADER"; then
19490 cat >>confdefs.h <<_ACEOF
19491 #define TRAD_HEADER $TRAD_HEADER
19492 _ACEOF
19496 # Horrible hacks to build DLLs on Windows.
19497 WIN32LDFLAGS=
19498 WIN32LIBADD=
19499 case "${host}" in
19500 *-*-cygwin*)
19501 if test "$enable_shared" = "yes"; then
19502 WIN32LDFLAGS="-no-undefined"
19503 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
19506 *-*-linux*)
19507 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
19508 # libiberty.a.
19509 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
19510 if test -n "$x"; then
19511 WIN32LIBADD="-L../libiberty/pic -liberty"
19514 esac
19518 # target stuff:
19520 # Canonicalize the secondary target names.
19521 if test -n "$enable_targets" ; then
19522 for targ in `echo $enable_targets | sed 's/,/ /g'`
19524 result=`$ac_config_sub $targ 2>/dev/null`
19525 if test -n "$result" ; then
19526 canon_targets="$canon_targets $result"
19527 else
19528 # Allow targets that config.sub doesn't recognize, like "all".
19529 canon_targets="$canon_targets $targ"
19531 done
19534 all_targets=false
19535 defvec=
19536 selvecs=
19537 assocvecs=
19538 selarchs=
19539 TDEFINES=
19540 for targ in $target $canon_targets
19542 if test "x$targ" = "xall"; then
19543 all_targets=true
19544 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
19545 else
19546 . $srcdir/config.bfd
19547 if test "x$targ" = "x$target"; then
19548 defvec=$targ_defvec
19550 selvecs="$selvecs $targ_defvec $targ_selvecs"
19551 selarchs="$selarchs $targ_archs"
19552 TDEFINES="$TDEFINES $targ_cflags"
19554 done
19557 # This processing still needs to be done if we're to decide properly whether
19558 # 64-bit support needs to be compiled in. Currently, it will be included if
19559 # the default or any other explicitly requested target requires it; it
19560 # will not be included on a 32-bit host if no 64-bit target is requested, and
19561 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
19562 # used.
19564 # uniq the default and selected vectors in all the configured targets.
19565 f=""
19566 for i in $selvecs ; do
19567 case " $f " in
19568 *" $i "*) ;;
19569 *) f="$f $i" ;;
19570 esac
19571 done
19572 selvecs="$f"
19575 # uniq the associated vectors in all the configured targets.
19576 f=""
19577 for i in $assocvecs ; do
19578 case " $f " in
19579 *" $i "*) ;;
19580 *) f="$f $i" ;;
19581 esac
19582 done
19583 assocvecs="$f"
19586 # uniq the architectures in all the configured targets.
19587 f=""
19588 for i in $selarchs ; do
19589 case " $f " in
19590 *" $i "*) ;;
19591 *) f="$f $i" ;;
19592 esac
19593 done
19594 selarchs="$f"
19596 # Target backend .o files.
19599 elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
19601 for vec in $selvecs
19603 target_size=32
19604 case "$vec" in
19605 # This list is alphabetized to make it easy to compare
19606 # with the two vector lists in targets.c. For the same reason,
19607 # use one entry per line, even though this leads to long lines.
19608 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
19609 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
19610 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
19611 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
19612 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
19613 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
19614 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
19615 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
19616 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
19617 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
19618 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
19619 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
19620 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
19621 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
19622 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
19623 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
19624 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
19625 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
19626 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
19627 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
19628 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
19629 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
19630 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
19631 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
19632 bfd_efi_bsdrv_ia32_vec) tb="$tb efi-bsdrv-ia32.lo peigen.lo cofflink.lo" ;;
19633 bfd_efi_rtdrv_ia32_vec) tb="$tb efi-rtdrv-ia32.lo peigen.lo cofflink.lo" ;;
19634 bfd_efi_app_x86_64_vec) tb="$tb efi-app-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
19635 bfd_efi_bsdrv_x86_64_vec) tb="$tb efi-bsdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
19636 bfd_efi_rtdrv_x86_64_vec) tb="$tb efi-rtdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
19637 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
19638 bfd_efi_bsdrv_ia64_vec) tb="$tb efi-bsdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
19639 bfd_efi_rtdrv_ia64_vec) tb="$tb efi-rtdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
19640 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
19641 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
19642 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
19643 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
19644 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
19645 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
19646 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19647 bfd_elf32_bigarm_symbian_vec)
19648 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19649 bfd_elf32_bigarm_vxworks_vec)
19650 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19651 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19652 bfd_elf32_bigmips_vxworks_vec)
19653 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19654 bfd_elf32_cr16_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
19655 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
19656 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
19657 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
19658 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
19659 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
19660 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
19661 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
19662 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
19663 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
19664 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
19665 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
19666 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
19667 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
19668 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
19669 bfd_elf32_i386_dragonfly_vec)
19670 tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
19671 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
19672 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
19673 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
19674 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
19675 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
19676 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
19677 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
19678 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
19679 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
19680 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
19681 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
19682 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
19683 bfd_elf32_littlearm_symbian_vec)
19684 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19685 bfd_elf32_littlearm_vxworks_vec)
19686 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19687 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19688 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19689 bfd_elf32_littlemips_vxworks_vec)
19690 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19691 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
19692 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
19693 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
19694 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
19695 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
19696 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
19697 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
19698 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
19699 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
19700 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
19701 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
19702 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
19703 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
19704 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
19705 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
19706 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
19707 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
19708 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19709 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19710 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19711 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19712 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
19713 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
19714 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
19715 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
19716 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
19717 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
19718 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
19719 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
19720 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
19721 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
19722 # FIXME: We include cofflink.lo not because it's needed for
19723 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
19724 # which needs it but does not list it. Should be fixed in right place.
19725 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19726 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19727 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19728 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19729 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
19730 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
19731 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19732 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19733 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19734 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19735 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19736 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19737 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19738 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19739 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19740 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
19741 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
19742 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
19743 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19744 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19745 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
19746 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
19747 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
19748 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
19749 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
19750 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
19751 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
19752 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
19753 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
19754 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
19755 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19756 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
19757 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
19758 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
19759 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
19760 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
19761 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
19762 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19763 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
19764 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
19765 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
19766 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
19767 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19768 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19769 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19770 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19771 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19772 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19773 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
19774 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
19775 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19776 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19777 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
19778 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
19779 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
19780 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
19781 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
19782 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
19783 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
19784 cris_aout_vec) tb="$tb aout-cris.lo" ;;
19785 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
19786 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
19787 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
19788 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
19789 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
19790 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
19791 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
19792 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
19793 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
19794 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
19795 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
19796 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
19797 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
19798 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
19799 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
19800 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
19801 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
19802 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
19803 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
19804 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
19805 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
19806 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
19807 i386msdos_vec) tb="$tb i386msdos.lo" ;;
19808 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
19809 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
19810 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
19811 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
19812 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
19813 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
19814 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
19815 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
19816 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
19817 ieee_vec) tb="$tb ieee.lo" ;;
19818 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
19819 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
19820 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
19821 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
19822 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
19823 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
19824 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
19825 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
19826 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
19827 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
19828 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
19829 mach_o_be_vec) tb="$tb mach-o.lo" ;;
19830 mach_o_le_vec) tb="$tb mach-o.lo" ;;
19831 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
19832 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
19833 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
19834 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
19835 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
19836 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
19837 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
19838 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
19839 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
19840 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
19841 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
19842 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
19843 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
19844 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
19845 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
19846 pef_vec) tb="$tb pef.lo" ;;
19847 pef_xlib_vec) tb="$tb pef.lo" ;;
19848 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
19849 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
19850 ppcboot_vec) tb="$tb ppcboot.lo" ;;
19851 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
19852 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
19853 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
19854 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
19855 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
19856 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
19857 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
19858 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
19859 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
19860 som_vec) tb="$tb som.lo" ;;
19861 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
19862 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
19863 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
19864 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
19865 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
19866 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
19867 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
19868 sym_vec) tb="$tb xsym.lo" ;;
19869 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
19870 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
19871 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
19872 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
19873 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
19874 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
19875 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
19876 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
19877 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
19878 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
19879 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
19880 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
19881 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
19882 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
19883 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
19884 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
19885 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
19886 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
19887 versados_vec) tb="$tb versados.lo" ;;
19888 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
19889 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
19890 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
19891 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
19892 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
19893 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
19895 # These appear out of order in targets.c
19896 srec_vec) tb="$tb srec.lo" ;;
19897 symbolsrec_vec) tb="$tb srec.lo" ;;
19898 tekhex_vec) tb="$tb tekhex.lo" ;;
19899 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
19900 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
19902 "") ;;
19903 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
19904 echo "$as_me: error: *** unknown target vector $vec" >&2;}
19905 { (exit 1); exit 1; }; } ;;
19906 esac
19908 if test ${target_size} = 64; then
19909 target64=true
19911 if test x"${vec}" = x"${defvec}"; then
19912 bfd_default_target_size=${target_size}
19914 done
19916 # Target architecture .o files.
19917 # A couple of CPUs use shorter file names to avoid problems on DOS
19918 # filesystems.
19919 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
19921 # Weed out duplicate .o files.
19922 f=""
19923 for i in $tb ; do
19924 case " $f " in
19925 *" $i "*) ;;
19926 *) f="$f $i" ;;
19927 esac
19928 done
19929 tb="$f"
19931 f=""
19932 for i in $ta ; do
19933 case " $f " in
19934 *" $i "*) ;;
19935 *) f="$f $i" ;;
19936 esac
19937 done
19938 ta="$f"
19940 bfd_backends="$tb"
19941 bfd_machines="$ta"
19943 if test x${all_targets} = xtrue ; then
19944 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
19945 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
19946 selvecs=
19947 havevecs=
19948 selarchs=
19949 test -n "$assocvecs" &&
19950 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
19951 else # all_targets is true
19952 # Only set these if they will be nonempty, for the clever echo.
19953 havevecs=
19954 assocvecs=
19955 test -n "$selvecs" &&
19956 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
19957 test -n "$selvecs" &&
19958 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
19959 test -n "$selarchs" &&
19960 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
19961 fi # all_targets is true
19963 case ${host64}-${target64}-${want64} in
19964 *true*)
19965 wordsize=64
19966 bfd64_libs='$(BFD64_LIBS)'
19967 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
19968 if test $BFD_HOST_64_BIT_DEFINED = 0; then
19969 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
19970 echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
19971 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
19972 echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
19974 if test -n "$GCC" ; then
19975 bad_64bit_gcc=no;
19976 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
19977 echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
19978 # Add more tests for gcc versions with non-working 64-bit support here.
19979 cat >conftest.$ac_ext <<_ACEOF
19980 /* confdefs.h. */
19981 _ACEOF
19982 cat confdefs.h >>conftest.$ac_ext
19983 cat >>conftest.$ac_ext <<_ACEOF
19984 /* end confdefs.h. */
19985 :__GNUC__:__GNUC_MINOR__:__i386__:
19986 _ACEOF
19987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19988 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
19989 bad_64bit_gcc=yes;
19990 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
19991 echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
19992 else
19993 echo "$as_me:$LINENO: result: no" >&5
19994 echo "${ECHO_T}no" >&6
19996 rm -f conftest*
19998 if test $bad_64bit_gcc = yes ; then
19999 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
20000 echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
20001 { (exit 1); exit 1; }; }
20005 false-false-false)
20006 wordsize=32
20007 all_backends='$(BFD32_BACKENDS)'
20009 esac
20018 # Determine the host dependant file_ptr a.k.a. off_t type. In order
20019 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
20020 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
20021 # Hopefully a reasonable assumption since fseeko et.al. should be
20022 # upward compatible.
20028 for ac_func in ftello ftello64 fseeko fseeko64 fopen64
20030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20031 echo "$as_me:$LINENO: checking for $ac_func" >&5
20032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20033 if eval "test \"\${$as_ac_var+set}\" = set"; then
20034 echo $ECHO_N "(cached) $ECHO_C" >&6
20035 else
20036 cat >conftest.$ac_ext <<_ACEOF
20037 /* confdefs.h. */
20038 _ACEOF
20039 cat confdefs.h >>conftest.$ac_ext
20040 cat >>conftest.$ac_ext <<_ACEOF
20041 /* end confdefs.h. */
20042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20044 #define $ac_func innocuous_$ac_func
20046 /* System header to define __stub macros and hopefully few prototypes,
20047 which can conflict with char $ac_func (); below.
20048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20049 <limits.h> exists even on freestanding compilers. */
20051 #ifdef __STDC__
20052 # include <limits.h>
20053 #else
20054 # include <assert.h>
20055 #endif
20057 #undef $ac_func
20059 /* Override any gcc2 internal prototype to avoid an error. */
20060 #ifdef __cplusplus
20061 extern "C"
20063 #endif
20064 /* We use char because int might match the return type of a gcc2
20065 builtin and then its argument prototype would still apply. */
20066 char $ac_func ();
20067 /* The GNU C library defines this for functions which it implements
20068 to always fail with ENOSYS. Some functions are actually named
20069 something starting with __ and the normal name is an alias. */
20070 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20071 choke me
20072 #else
20073 char (*f) () = $ac_func;
20074 #endif
20075 #ifdef __cplusplus
20077 #endif
20080 main ()
20082 return f != $ac_func;
20084 return 0;
20086 _ACEOF
20087 rm -f conftest.$ac_objext conftest$ac_exeext
20088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20089 (eval $ac_link) 2>conftest.er1
20090 ac_status=$?
20091 grep -v '^ *+' conftest.er1 >conftest.err
20092 rm -f conftest.er1
20093 cat conftest.err >&5
20094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095 (exit $ac_status); } &&
20096 { ac_try='test -z "$ac_c_werror_flag"
20097 || test ! -s conftest.err'
20098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20099 (eval $ac_try) 2>&5
20100 ac_status=$?
20101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102 (exit $ac_status); }; } &&
20103 { ac_try='test -s conftest$ac_exeext'
20104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20105 (eval $ac_try) 2>&5
20106 ac_status=$?
20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 (exit $ac_status); }; }; then
20109 eval "$as_ac_var=yes"
20110 else
20111 echo "$as_me: failed program was:" >&5
20112 sed 's/^/| /' conftest.$ac_ext >&5
20114 eval "$as_ac_var=no"
20116 rm -f conftest.err conftest.$ac_objext \
20117 conftest$ac_exeext conftest.$ac_ext
20119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20120 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20121 if test `eval echo '${'$as_ac_var'}'` = yes; then
20122 cat >>confdefs.h <<_ACEOF
20123 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20124 _ACEOF
20127 done
20129 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
20130 echo "$as_me:$LINENO: checking for off_t" >&5
20131 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
20132 if test "${ac_cv_type_off_t+set}" = set; then
20133 echo $ECHO_N "(cached) $ECHO_C" >&6
20134 else
20135 cat >conftest.$ac_ext <<_ACEOF
20136 /* confdefs.h. */
20137 _ACEOF
20138 cat confdefs.h >>conftest.$ac_ext
20139 cat >>conftest.$ac_ext <<_ACEOF
20140 /* end confdefs.h. */
20141 $ac_includes_default
20143 main ()
20145 if ((off_t *) 0)
20146 return 0;
20147 if (sizeof (off_t))
20148 return 0;
20150 return 0;
20152 _ACEOF
20153 rm -f conftest.$ac_objext
20154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20155 (eval $ac_compile) 2>conftest.er1
20156 ac_status=$?
20157 grep -v '^ *+' conftest.er1 >conftest.err
20158 rm -f conftest.er1
20159 cat conftest.err >&5
20160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161 (exit $ac_status); } &&
20162 { ac_try='test -z "$ac_c_werror_flag"
20163 || test ! -s conftest.err'
20164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20165 (eval $ac_try) 2>&5
20166 ac_status=$?
20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); }; } &&
20169 { ac_try='test -s conftest.$ac_objext'
20170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20171 (eval $ac_try) 2>&5
20172 ac_status=$?
20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174 (exit $ac_status); }; }; then
20175 ac_cv_type_off_t=yes
20176 else
20177 echo "$as_me: failed program was:" >&5
20178 sed 's/^/| /' conftest.$ac_ext >&5
20180 ac_cv_type_off_t=no
20182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20184 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20185 echo "${ECHO_T}$ac_cv_type_off_t" >&6
20187 echo "$as_me:$LINENO: checking size of off_t" >&5
20188 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
20189 if test "${ac_cv_sizeof_off_t+set}" = set; then
20190 echo $ECHO_N "(cached) $ECHO_C" >&6
20191 else
20192 if test "$ac_cv_type_off_t" = yes; then
20193 # The cast to unsigned long works around a bug in the HP C Compiler
20194 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20195 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20196 # This bug is HP SR number 8606223364.
20197 if test "$cross_compiling" = yes; then
20198 # Depending upon the size, compute the lo and hi bounds.
20199 cat >conftest.$ac_ext <<_ACEOF
20200 /* confdefs.h. */
20201 _ACEOF
20202 cat confdefs.h >>conftest.$ac_ext
20203 cat >>conftest.$ac_ext <<_ACEOF
20204 /* end confdefs.h. */
20205 $ac_includes_default
20207 main ()
20209 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
20210 test_array [0] = 0
20213 return 0;
20215 _ACEOF
20216 rm -f conftest.$ac_objext
20217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20218 (eval $ac_compile) 2>conftest.er1
20219 ac_status=$?
20220 grep -v '^ *+' conftest.er1 >conftest.err
20221 rm -f conftest.er1
20222 cat conftest.err >&5
20223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224 (exit $ac_status); } &&
20225 { ac_try='test -z "$ac_c_werror_flag"
20226 || test ! -s conftest.err'
20227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20228 (eval $ac_try) 2>&5
20229 ac_status=$?
20230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231 (exit $ac_status); }; } &&
20232 { ac_try='test -s conftest.$ac_objext'
20233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20234 (eval $ac_try) 2>&5
20235 ac_status=$?
20236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237 (exit $ac_status); }; }; then
20238 ac_lo=0 ac_mid=0
20239 while :; do
20240 cat >conftest.$ac_ext <<_ACEOF
20241 /* confdefs.h. */
20242 _ACEOF
20243 cat confdefs.h >>conftest.$ac_ext
20244 cat >>conftest.$ac_ext <<_ACEOF
20245 /* end confdefs.h. */
20246 $ac_includes_default
20248 main ()
20250 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
20251 test_array [0] = 0
20254 return 0;
20256 _ACEOF
20257 rm -f conftest.$ac_objext
20258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20259 (eval $ac_compile) 2>conftest.er1
20260 ac_status=$?
20261 grep -v '^ *+' conftest.er1 >conftest.err
20262 rm -f conftest.er1
20263 cat conftest.err >&5
20264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265 (exit $ac_status); } &&
20266 { ac_try='test -z "$ac_c_werror_flag"
20267 || test ! -s conftest.err'
20268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20269 (eval $ac_try) 2>&5
20270 ac_status=$?
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); }; } &&
20273 { ac_try='test -s conftest.$ac_objext'
20274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20275 (eval $ac_try) 2>&5
20276 ac_status=$?
20277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278 (exit $ac_status); }; }; then
20279 ac_hi=$ac_mid; break
20280 else
20281 echo "$as_me: failed program was:" >&5
20282 sed 's/^/| /' conftest.$ac_ext >&5
20284 ac_lo=`expr $ac_mid + 1`
20285 if test $ac_lo -le $ac_mid; then
20286 ac_lo= ac_hi=
20287 break
20289 ac_mid=`expr 2 '*' $ac_mid + 1`
20291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20292 done
20293 else
20294 echo "$as_me: failed program was:" >&5
20295 sed 's/^/| /' conftest.$ac_ext >&5
20297 cat >conftest.$ac_ext <<_ACEOF
20298 /* confdefs.h. */
20299 _ACEOF
20300 cat confdefs.h >>conftest.$ac_ext
20301 cat >>conftest.$ac_ext <<_ACEOF
20302 /* end confdefs.h. */
20303 $ac_includes_default
20305 main ()
20307 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
20308 test_array [0] = 0
20311 return 0;
20313 _ACEOF
20314 rm -f conftest.$ac_objext
20315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20316 (eval $ac_compile) 2>conftest.er1
20317 ac_status=$?
20318 grep -v '^ *+' conftest.er1 >conftest.err
20319 rm -f conftest.er1
20320 cat conftest.err >&5
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); } &&
20323 { ac_try='test -z "$ac_c_werror_flag"
20324 || test ! -s conftest.err'
20325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20326 (eval $ac_try) 2>&5
20327 ac_status=$?
20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329 (exit $ac_status); }; } &&
20330 { ac_try='test -s conftest.$ac_objext'
20331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20332 (eval $ac_try) 2>&5
20333 ac_status=$?
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); }; }; then
20336 ac_hi=-1 ac_mid=-1
20337 while :; do
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. */
20344 $ac_includes_default
20346 main ()
20348 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
20349 test_array [0] = 0
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 ac_lo=$ac_mid; break
20378 else
20379 echo "$as_me: failed program was:" >&5
20380 sed 's/^/| /' conftest.$ac_ext >&5
20382 ac_hi=`expr '(' $ac_mid ')' - 1`
20383 if test $ac_mid -le $ac_hi; then
20384 ac_lo= ac_hi=
20385 break
20387 ac_mid=`expr 2 '*' $ac_mid`
20389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20390 done
20391 else
20392 echo "$as_me: failed program was:" >&5
20393 sed 's/^/| /' conftest.$ac_ext >&5
20395 ac_lo= ac_hi=
20397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20400 # Binary search between lo and hi bounds.
20401 while test "x$ac_lo" != "x$ac_hi"; do
20402 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20403 cat >conftest.$ac_ext <<_ACEOF
20404 /* confdefs.h. */
20405 _ACEOF
20406 cat confdefs.h >>conftest.$ac_ext
20407 cat >>conftest.$ac_ext <<_ACEOF
20408 /* end confdefs.h. */
20409 $ac_includes_default
20411 main ()
20413 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
20414 test_array [0] = 0
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 ac_hi=$ac_mid
20443 else
20444 echo "$as_me: failed program was:" >&5
20445 sed 's/^/| /' conftest.$ac_ext >&5
20447 ac_lo=`expr '(' $ac_mid ')' + 1`
20449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20450 done
20451 case $ac_lo in
20452 ?*) ac_cv_sizeof_off_t=$ac_lo;;
20453 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20454 echo "$as_me: error: in \`$ac_pwd':" >&2;}
20455 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
20456 See \`config.log' for more details." >&5
20457 echo "$as_me: error: cannot compute sizeof (off_t), 77
20458 See \`config.log' for more details." >&2;}
20459 { (exit 1); exit 1; }; }; } ;;
20460 esac
20461 else
20462 if test "$cross_compiling" = yes; then
20463 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20464 echo "$as_me: error: in \`$ac_pwd':" >&2;}
20465 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20466 See \`config.log' for more details." >&5
20467 echo "$as_me: error: cannot run test program while cross compiling
20468 See \`config.log' for more details." >&2;}
20469 { (exit 1); exit 1; }; }; }
20470 else
20471 cat >conftest.$ac_ext <<_ACEOF
20472 /* confdefs.h. */
20473 _ACEOF
20474 cat confdefs.h >>conftest.$ac_ext
20475 cat >>conftest.$ac_ext <<_ACEOF
20476 /* end confdefs.h. */
20477 $ac_includes_default
20478 long longval () { return (long) (sizeof (off_t)); }
20479 unsigned long ulongval () { return (long) (sizeof (off_t)); }
20480 #include <stdio.h>
20481 #include <stdlib.h>
20483 main ()
20486 FILE *f = fopen ("conftest.val", "w");
20487 if (! f)
20488 exit (1);
20489 if (((long) (sizeof (off_t))) < 0)
20491 long i = longval ();
20492 if (i != ((long) (sizeof (off_t))))
20493 exit (1);
20494 fprintf (f, "%ld\n", i);
20496 else
20498 unsigned long i = ulongval ();
20499 if (i != ((long) (sizeof (off_t))))
20500 exit (1);
20501 fprintf (f, "%lu\n", i);
20503 exit (ferror (f) || fclose (f) != 0);
20506 return 0;
20508 _ACEOF
20509 rm -f conftest$ac_exeext
20510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20511 (eval $ac_link) 2>&5
20512 ac_status=$?
20513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20516 (eval $ac_try) 2>&5
20517 ac_status=$?
20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519 (exit $ac_status); }; }; then
20520 ac_cv_sizeof_off_t=`cat conftest.val`
20521 else
20522 echo "$as_me: program exited with status $ac_status" >&5
20523 echo "$as_me: failed program was:" >&5
20524 sed 's/^/| /' conftest.$ac_ext >&5
20526 ( exit $ac_status )
20527 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20528 echo "$as_me: error: in \`$ac_pwd':" >&2;}
20529 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
20530 See \`config.log' for more details." >&5
20531 echo "$as_me: error: cannot compute sizeof (off_t), 77
20532 See \`config.log' for more details." >&2;}
20533 { (exit 1); exit 1; }; }; }
20535 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20538 rm -f conftest.val
20539 else
20540 ac_cv_sizeof_off_t=0
20543 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
20544 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
20545 cat >>confdefs.h <<_ACEOF
20546 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
20547 _ACEOF
20551 echo "$as_me:$LINENO: checking file_ptr type" >&5
20552 echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
20553 bfd_file_ptr="long"
20554 bfd_ufile_ptr="unsigned long"
20555 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
20556 -o x"${ac_cv_sizeof_off_t}" = x8; then
20557 bfd_file_ptr=BFD_HOST_64_BIT
20558 bfd_ufile_ptr=BFD_HOST_U_64_BIT
20560 echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
20561 echo "${ECHO_T}$bfd_file_ptr" >&6
20566 tdefaults=""
20567 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
20568 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
20569 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
20570 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
20571 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
20576 for ac_header in stdlib.h unistd.h
20578 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20580 echo "$as_me:$LINENO: checking for $ac_header" >&5
20581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20583 echo $ECHO_N "(cached) $ECHO_C" >&6
20585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20586 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20587 else
20588 # Is the header compilable?
20589 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20590 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20591 cat >conftest.$ac_ext <<_ACEOF
20592 /* confdefs.h. */
20593 _ACEOF
20594 cat confdefs.h >>conftest.$ac_ext
20595 cat >>conftest.$ac_ext <<_ACEOF
20596 /* end confdefs.h. */
20597 $ac_includes_default
20598 #include <$ac_header>
20599 _ACEOF
20600 rm -f conftest.$ac_objext
20601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20602 (eval $ac_compile) 2>conftest.er1
20603 ac_status=$?
20604 grep -v '^ *+' conftest.er1 >conftest.err
20605 rm -f conftest.er1
20606 cat conftest.err >&5
20607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608 (exit $ac_status); } &&
20609 { ac_try='test -z "$ac_c_werror_flag"
20610 || test ! -s conftest.err'
20611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20612 (eval $ac_try) 2>&5
20613 ac_status=$?
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); }; } &&
20616 { ac_try='test -s conftest.$ac_objext'
20617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20618 (eval $ac_try) 2>&5
20619 ac_status=$?
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); }; }; then
20622 ac_header_compiler=yes
20623 else
20624 echo "$as_me: failed program was:" >&5
20625 sed 's/^/| /' conftest.$ac_ext >&5
20627 ac_header_compiler=no
20629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20630 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20631 echo "${ECHO_T}$ac_header_compiler" >&6
20633 # Is the header present?
20634 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20635 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20636 cat >conftest.$ac_ext <<_ACEOF
20637 /* confdefs.h. */
20638 _ACEOF
20639 cat confdefs.h >>conftest.$ac_ext
20640 cat >>conftest.$ac_ext <<_ACEOF
20641 /* end confdefs.h. */
20642 #include <$ac_header>
20643 _ACEOF
20644 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20645 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20646 ac_status=$?
20647 grep -v '^ *+' conftest.er1 >conftest.err
20648 rm -f conftest.er1
20649 cat conftest.err >&5
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); } >/dev/null; then
20652 if test -s conftest.err; then
20653 ac_cpp_err=$ac_c_preproc_warn_flag
20654 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20655 else
20656 ac_cpp_err=
20658 else
20659 ac_cpp_err=yes
20661 if test -z "$ac_cpp_err"; then
20662 ac_header_preproc=yes
20663 else
20664 echo "$as_me: failed program was:" >&5
20665 sed 's/^/| /' conftest.$ac_ext >&5
20667 ac_header_preproc=no
20669 rm -f conftest.err conftest.$ac_ext
20670 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20671 echo "${ECHO_T}$ac_header_preproc" >&6
20673 # So? What about this header?
20674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20675 yes:no: )
20676 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20677 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20679 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20680 ac_header_preproc=yes
20682 no:yes:* )
20683 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20684 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20685 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20686 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20687 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20688 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20689 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20690 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20692 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20693 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20694 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20696 cat <<\_ASBOX
20697 ## ------------------------------------------ ##
20698 ## Report this to the AC_PACKAGE_NAME lists. ##
20699 ## ------------------------------------------ ##
20700 _ASBOX
20702 sed "s/^/$as_me: WARNING: /" >&2
20704 esac
20705 echo "$as_me:$LINENO: checking for $ac_header" >&5
20706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20708 echo $ECHO_N "(cached) $ECHO_C" >&6
20709 else
20710 eval "$as_ac_Header=\$ac_header_preproc"
20712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20713 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20716 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20717 cat >>confdefs.h <<_ACEOF
20718 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20719 _ACEOF
20723 done
20726 for ac_func in getpagesize
20728 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20729 echo "$as_me:$LINENO: checking for $ac_func" >&5
20730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20731 if eval "test \"\${$as_ac_var+set}\" = set"; then
20732 echo $ECHO_N "(cached) $ECHO_C" >&6
20733 else
20734 cat >conftest.$ac_ext <<_ACEOF
20735 /* confdefs.h. */
20736 _ACEOF
20737 cat confdefs.h >>conftest.$ac_ext
20738 cat >>conftest.$ac_ext <<_ACEOF
20739 /* end confdefs.h. */
20740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20742 #define $ac_func innocuous_$ac_func
20744 /* System header to define __stub macros and hopefully few prototypes,
20745 which can conflict with char $ac_func (); below.
20746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20747 <limits.h> exists even on freestanding compilers. */
20749 #ifdef __STDC__
20750 # include <limits.h>
20751 #else
20752 # include <assert.h>
20753 #endif
20755 #undef $ac_func
20757 /* Override any gcc2 internal prototype to avoid an error. */
20758 #ifdef __cplusplus
20759 extern "C"
20761 #endif
20762 /* We use char because int might match the return type of a gcc2
20763 builtin and then its argument prototype would still apply. */
20764 char $ac_func ();
20765 /* The GNU C library defines this for functions which it implements
20766 to always fail with ENOSYS. Some functions are actually named
20767 something starting with __ and the normal name is an alias. */
20768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20769 choke me
20770 #else
20771 char (*f) () = $ac_func;
20772 #endif
20773 #ifdef __cplusplus
20775 #endif
20778 main ()
20780 return f != $ac_func;
20782 return 0;
20784 _ACEOF
20785 rm -f conftest.$ac_objext conftest$ac_exeext
20786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20787 (eval $ac_link) 2>conftest.er1
20788 ac_status=$?
20789 grep -v '^ *+' conftest.er1 >conftest.err
20790 rm -f conftest.er1
20791 cat conftest.err >&5
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); } &&
20794 { ac_try='test -z "$ac_c_werror_flag"
20795 || test ! -s conftest.err'
20796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20797 (eval $ac_try) 2>&5
20798 ac_status=$?
20799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800 (exit $ac_status); }; } &&
20801 { ac_try='test -s conftest$ac_exeext'
20802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20803 (eval $ac_try) 2>&5
20804 ac_status=$?
20805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806 (exit $ac_status); }; }; then
20807 eval "$as_ac_var=yes"
20808 else
20809 echo "$as_me: failed program was:" >&5
20810 sed 's/^/| /' conftest.$ac_ext >&5
20812 eval "$as_ac_var=no"
20814 rm -f conftest.err conftest.$ac_objext \
20815 conftest$ac_exeext conftest.$ac_ext
20817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20818 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20819 if test `eval echo '${'$as_ac_var'}'` = yes; then
20820 cat >>confdefs.h <<_ACEOF
20821 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20822 _ACEOF
20825 done
20827 echo "$as_me:$LINENO: checking for working mmap" >&5
20828 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
20829 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20830 echo $ECHO_N "(cached) $ECHO_C" >&6
20831 else
20832 if test "$cross_compiling" = yes; then
20833 ac_cv_func_mmap_fixed_mapped=no
20834 else
20835 cat >conftest.$ac_ext <<_ACEOF
20836 /* confdefs.h. */
20837 _ACEOF
20838 cat confdefs.h >>conftest.$ac_ext
20839 cat >>conftest.$ac_ext <<_ACEOF
20840 /* end confdefs.h. */
20841 $ac_includes_default
20842 /* malloc might have been renamed as rpl_malloc. */
20843 #undef malloc
20845 /* Thanks to Mike Haertel and Jim Avera for this test.
20846 Here is a matrix of mmap possibilities:
20847 mmap private not fixed
20848 mmap private fixed at somewhere currently unmapped
20849 mmap private fixed at somewhere already mapped
20850 mmap shared not fixed
20851 mmap shared fixed at somewhere currently unmapped
20852 mmap shared fixed at somewhere already mapped
20853 For private mappings, we should verify that changes cannot be read()
20854 back from the file, nor mmap's back from the file at a different
20855 address. (There have been systems where private was not correctly
20856 implemented like the infamous i386 svr4.0, and systems where the
20857 VM page cache was not coherent with the file system buffer cache
20858 like early versions of FreeBSD and possibly contemporary NetBSD.)
20859 For shared mappings, we should conversely verify that changes get
20860 propagated back to all the places they're supposed to be.
20862 Grep wants private fixed already mapped.
20863 The main things grep needs to know about mmap are:
20864 * does it exist and is it safe to write into the mmap'd area
20865 * how to use it (BSD variants) */
20867 #include <fcntl.h>
20868 #include <sys/mman.h>
20870 #if !STDC_HEADERS && !HAVE_STDLIB_H
20871 char *malloc ();
20872 #endif
20874 /* This mess was copied from the GNU getpagesize.h. */
20875 #if !HAVE_GETPAGESIZE
20876 /* Assume that all systems that can run configure have sys/param.h. */
20877 # if !HAVE_SYS_PARAM_H
20878 # define HAVE_SYS_PARAM_H 1
20879 # endif
20881 # ifdef _SC_PAGESIZE
20882 # define getpagesize() sysconf(_SC_PAGESIZE)
20883 # else /* no _SC_PAGESIZE */
20884 # if HAVE_SYS_PARAM_H
20885 # include <sys/param.h>
20886 # ifdef EXEC_PAGESIZE
20887 # define getpagesize() EXEC_PAGESIZE
20888 # else /* no EXEC_PAGESIZE */
20889 # ifdef NBPG
20890 # define getpagesize() NBPG * CLSIZE
20891 # ifndef CLSIZE
20892 # define CLSIZE 1
20893 # endif /* no CLSIZE */
20894 # else /* no NBPG */
20895 # ifdef NBPC
20896 # define getpagesize() NBPC
20897 # else /* no NBPC */
20898 # ifdef PAGESIZE
20899 # define getpagesize() PAGESIZE
20900 # endif /* PAGESIZE */
20901 # endif /* no NBPC */
20902 # endif /* no NBPG */
20903 # endif /* no EXEC_PAGESIZE */
20904 # else /* no HAVE_SYS_PARAM_H */
20905 # define getpagesize() 8192 /* punt totally */
20906 # endif /* no HAVE_SYS_PARAM_H */
20907 # endif /* no _SC_PAGESIZE */
20909 #endif /* no HAVE_GETPAGESIZE */
20912 main ()
20914 char *data, *data2, *data3;
20915 int i, pagesize;
20916 int fd;
20918 pagesize = getpagesize ();
20920 /* First, make a file with some known garbage in it. */
20921 data = (char *) malloc (pagesize);
20922 if (!data)
20923 exit (1);
20924 for (i = 0; i < pagesize; ++i)
20925 *(data + i) = rand ();
20926 umask (0);
20927 fd = creat ("conftest.mmap", 0600);
20928 if (fd < 0)
20929 exit (1);
20930 if (write (fd, data, pagesize) != pagesize)
20931 exit (1);
20932 close (fd);
20934 /* Next, try to mmap the file at a fixed address which already has
20935 something else allocated at it. If we can, also make sure that
20936 we see the same garbage. */
20937 fd = open ("conftest.mmap", O_RDWR);
20938 if (fd < 0)
20939 exit (1);
20940 data2 = (char *) malloc (2 * pagesize);
20941 if (!data2)
20942 exit (1);
20943 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
20944 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20945 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20946 exit (1);
20947 for (i = 0; i < pagesize; ++i)
20948 if (*(data + i) != *(data2 + i))
20949 exit (1);
20951 /* Finally, make sure that changes to the mapped area do not
20952 percolate back to the file as seen by read(). (This is a bug on
20953 some variants of i386 svr4.0.) */
20954 for (i = 0; i < pagesize; ++i)
20955 *(data2 + i) = *(data2 + i) + 1;
20956 data3 = (char *) malloc (pagesize);
20957 if (!data3)
20958 exit (1);
20959 if (read (fd, data3, pagesize) != pagesize)
20960 exit (1);
20961 for (i = 0; i < pagesize; ++i)
20962 if (*(data + i) != *(data3 + i))
20963 exit (1);
20964 close (fd);
20965 exit (0);
20967 _ACEOF
20968 rm -f conftest$ac_exeext
20969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20970 (eval $ac_link) 2>&5
20971 ac_status=$?
20972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20975 (eval $ac_try) 2>&5
20976 ac_status=$?
20977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978 (exit $ac_status); }; }; then
20979 ac_cv_func_mmap_fixed_mapped=yes
20980 else
20981 echo "$as_me: program exited with status $ac_status" >&5
20982 echo "$as_me: failed program was:" >&5
20983 sed 's/^/| /' conftest.$ac_ext >&5
20985 ( exit $ac_status )
20986 ac_cv_func_mmap_fixed_mapped=no
20988 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20991 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20992 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
20993 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20995 cat >>confdefs.h <<\_ACEOF
20996 #define HAVE_MMAP 1
20997 _ACEOF
21000 rm -f conftest.mmap
21004 for ac_func in madvise mprotect
21006 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21007 echo "$as_me:$LINENO: checking for $ac_func" >&5
21008 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21009 if eval "test \"\${$as_ac_var+set}\" = set"; then
21010 echo $ECHO_N "(cached) $ECHO_C" >&6
21011 else
21012 cat >conftest.$ac_ext <<_ACEOF
21013 /* confdefs.h. */
21014 _ACEOF
21015 cat confdefs.h >>conftest.$ac_ext
21016 cat >>conftest.$ac_ext <<_ACEOF
21017 /* end confdefs.h. */
21018 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21020 #define $ac_func innocuous_$ac_func
21022 /* System header to define __stub macros and hopefully few prototypes,
21023 which can conflict with char $ac_func (); below.
21024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21025 <limits.h> exists even on freestanding compilers. */
21027 #ifdef __STDC__
21028 # include <limits.h>
21029 #else
21030 # include <assert.h>
21031 #endif
21033 #undef $ac_func
21035 /* Override any gcc2 internal prototype to avoid an error. */
21036 #ifdef __cplusplus
21037 extern "C"
21039 #endif
21040 /* We use char because int might match the return type of a gcc2
21041 builtin and then its argument prototype would still apply. */
21042 char $ac_func ();
21043 /* The GNU C library defines this for functions which it implements
21044 to always fail with ENOSYS. Some functions are actually named
21045 something starting with __ and the normal name is an alias. */
21046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21047 choke me
21048 #else
21049 char (*f) () = $ac_func;
21050 #endif
21051 #ifdef __cplusplus
21053 #endif
21056 main ()
21058 return f != $ac_func;
21060 return 0;
21062 _ACEOF
21063 rm -f conftest.$ac_objext conftest$ac_exeext
21064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21065 (eval $ac_link) 2>conftest.er1
21066 ac_status=$?
21067 grep -v '^ *+' conftest.er1 >conftest.err
21068 rm -f conftest.er1
21069 cat conftest.err >&5
21070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071 (exit $ac_status); } &&
21072 { ac_try='test -z "$ac_c_werror_flag"
21073 || test ! -s conftest.err'
21074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21075 (eval $ac_try) 2>&5
21076 ac_status=$?
21077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078 (exit $ac_status); }; } &&
21079 { ac_try='test -s conftest$ac_exeext'
21080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21081 (eval $ac_try) 2>&5
21082 ac_status=$?
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); }; }; then
21085 eval "$as_ac_var=yes"
21086 else
21087 echo "$as_me: failed program was:" >&5
21088 sed 's/^/| /' conftest.$ac_ext >&5
21090 eval "$as_ac_var=no"
21092 rm -f conftest.err conftest.$ac_objext \
21093 conftest$ac_exeext conftest.$ac_ext
21095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21096 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21097 if test `eval echo '${'$as_ac_var'}'` = yes; then
21098 cat >>confdefs.h <<_ACEOF
21099 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21100 _ACEOF
21103 done
21105 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
21106 true+yes )
21107 cat >>confdefs.h <<\_ACEOF
21108 #define USE_MMAP 1
21109 _ACEOF
21111 esac
21113 rm -f doc/config.status
21114 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
21117 ac_config_commands="$ac_config_commands default"
21124 cat >confcache <<\_ACEOF
21125 # This file is a shell script that caches the results of configure
21126 # tests run on this system so they can be shared between configure
21127 # scripts and configure runs, see configure's option --config-cache.
21128 # It is not useful on other systems. If it contains results you don't
21129 # want to keep, you may remove or edit it.
21131 # config.status only pays attention to the cache file if you give it
21132 # the --recheck option to rerun configure.
21134 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21135 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21136 # following values.
21138 _ACEOF
21140 # The following way of writing the cache mishandles newlines in values,
21141 # but we know of no workaround that is simple, portable, and efficient.
21142 # So, don't put newlines in cache variables' values.
21143 # Ultrix sh set writes to stderr and can't be redirected directly,
21144 # and sets the high bit in the cache file unless we assign to the vars.
21146 (set) 2>&1 |
21147 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21148 *ac_space=\ *)
21149 # `set' does not quote correctly, so add quotes (double-quote
21150 # substitution turns \\\\ into \\, and sed turns \\ into \).
21151 sed -n \
21152 "s/'/'\\\\''/g;
21153 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21156 # `set' quotes correctly as required by POSIX, so do not add quotes.
21157 sed -n \
21158 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21160 esac;
21162 sed '
21163 t clear
21164 : clear
21165 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21166 t end
21167 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21168 : end' >>confcache
21169 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21170 if test -w $cache_file; then
21171 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21172 cat confcache >$cache_file
21173 else
21174 echo "not updating unwritable cache $cache_file"
21177 rm -f confcache
21179 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21180 # Let make expand exec_prefix.
21181 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21183 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21184 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21185 # trailing colons and then remove the whole line if VPATH becomes empty
21186 # (actually we leave an empty line to preserve line numbers).
21187 if test "x$srcdir" = x.; then
21188 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21189 s/:*\$(srcdir):*/:/;
21190 s/:*\${srcdir}:*/:/;
21191 s/:*@srcdir@:*/:/;
21192 s/^\([^=]*=[ ]*\):*/\1/;
21193 s/:*$//;
21194 s/^[^=]*=[ ]*$//;
21198 DEFS=-DHAVE_CONFIG_H
21200 ac_libobjs=
21201 ac_ltlibobjs=
21202 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21203 # 1. Remove the extension, and $U if already installed.
21204 ac_i=`echo "$ac_i" |
21205 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21206 # 2. Add them.
21207 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21208 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21209 done
21210 LIBOBJS=$ac_libobjs
21212 LTLIBOBJS=$ac_ltlibobjs
21215 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21216 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21217 Usually this means the macro was only invoked conditionally." >&5
21218 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21219 Usually this means the macro was only invoked conditionally." >&2;}
21220 { (exit 1); exit 1; }; }
21222 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21223 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21224 Usually this means the macro was only invoked conditionally." >&5
21225 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21226 Usually this means the macro was only invoked conditionally." >&2;}
21227 { (exit 1); exit 1; }; }
21229 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21230 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21231 Usually this means the macro was only invoked conditionally." >&5
21232 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21233 Usually this means the macro was only invoked conditionally." >&2;}
21234 { (exit 1); exit 1; }; }
21236 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
21237 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
21238 Usually this means the macro was only invoked conditionally." >&5
21239 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
21240 Usually this means the macro was only invoked conditionally." >&2;}
21241 { (exit 1); exit 1; }; }
21243 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
21244 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
21245 Usually this means the macro was only invoked conditionally." >&5
21246 echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
21247 Usually this means the macro was only invoked conditionally." >&2;}
21248 { (exit 1); exit 1; }; }
21251 : ${CONFIG_STATUS=./config.status}
21252 ac_clean_files_save=$ac_clean_files
21253 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21254 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21255 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21256 cat >$CONFIG_STATUS <<_ACEOF
21257 #! $SHELL
21258 # Generated by $as_me.
21259 # Run this file to recreate the current configuration.
21260 # Compiler output produced by configure, useful for debugging
21261 # configure, is in config.log if it exists.
21263 debug=false
21264 ac_cs_recheck=false
21265 ac_cs_silent=false
21266 SHELL=\${CONFIG_SHELL-$SHELL}
21267 _ACEOF
21269 cat >>$CONFIG_STATUS <<\_ACEOF
21270 ## --------------------- ##
21271 ## M4sh Initialization. ##
21272 ## --------------------- ##
21274 # Be Bourne compatible
21275 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21276 emulate sh
21277 NULLCMD=:
21278 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21279 # is contrary to our usage. Disable this feature.
21280 alias -g '${1+"$@"}'='"$@"'
21281 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21282 set -o posix
21284 DUALCASE=1; export DUALCASE # for MKS sh
21286 # Support unset when possible.
21287 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21288 as_unset=unset
21289 else
21290 as_unset=false
21294 # Work around bugs in pre-3.0 UWIN ksh.
21295 $as_unset ENV MAIL MAILPATH
21296 PS1='$ '
21297 PS2='> '
21298 PS4='+ '
21300 # NLS nuisances.
21301 for as_var in \
21302 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21303 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21304 LC_TELEPHONE LC_TIME
21306 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21307 eval $as_var=C; export $as_var
21308 else
21309 $as_unset $as_var
21311 done
21313 # Required to use basename.
21314 if expr a : '\(a\)' >/dev/null 2>&1; then
21315 as_expr=expr
21316 else
21317 as_expr=false
21320 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21321 as_basename=basename
21322 else
21323 as_basename=false
21327 # Name of the executable.
21328 as_me=`$as_basename "$0" ||
21329 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21330 X"$0" : 'X\(//\)$' \| \
21331 X"$0" : 'X\(/\)$' \| \
21332 . : '\(.\)' 2>/dev/null ||
21333 echo X/"$0" |
21334 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21335 /^X\/\(\/\/\)$/{ s//\1/; q; }
21336 /^X\/\(\/\).*/{ s//\1/; q; }
21337 s/.*/./; q'`
21340 # PATH needs CR, and LINENO needs CR and PATH.
21341 # Avoid depending upon Character Ranges.
21342 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21343 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21344 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21345 as_cr_digits='0123456789'
21346 as_cr_alnum=$as_cr_Letters$as_cr_digits
21348 # The user is always right.
21349 if test "${PATH_SEPARATOR+set}" != set; then
21350 echo "#! /bin/sh" >conf$$.sh
21351 echo "exit 0" >>conf$$.sh
21352 chmod +x conf$$.sh
21353 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21354 PATH_SEPARATOR=';'
21355 else
21356 PATH_SEPARATOR=:
21358 rm -f conf$$.sh
21362 as_lineno_1=$LINENO
21363 as_lineno_2=$LINENO
21364 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21365 test "x$as_lineno_1" != "x$as_lineno_2" &&
21366 test "x$as_lineno_3" = "x$as_lineno_2" || {
21367 # Find who we are. Look in the path if we contain no path at all
21368 # relative or not.
21369 case $0 in
21370 *[\\/]* ) as_myself=$0 ;;
21371 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21372 for as_dir in $PATH
21374 IFS=$as_save_IFS
21375 test -z "$as_dir" && as_dir=.
21376 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21377 done
21380 esac
21381 # We did not find ourselves, most probably we were run as `sh COMMAND'
21382 # in which case we are not to be found in the path.
21383 if test "x$as_myself" = x; then
21384 as_myself=$0
21386 if test ! -f "$as_myself"; then
21387 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21388 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21389 { (exit 1); exit 1; }; }
21391 case $CONFIG_SHELL in
21393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21394 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21396 IFS=$as_save_IFS
21397 test -z "$as_dir" && as_dir=.
21398 for as_base in sh bash ksh sh5; do
21399 case $as_dir in
21401 if ("$as_dir/$as_base" -c '
21402 as_lineno_1=$LINENO
21403 as_lineno_2=$LINENO
21404 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21405 test "x$as_lineno_1" != "x$as_lineno_2" &&
21406 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21407 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21408 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21409 CONFIG_SHELL=$as_dir/$as_base
21410 export CONFIG_SHELL
21411 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21412 fi;;
21413 esac
21414 done
21415 done
21417 esac
21419 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21420 # uniformly replaced by the line number. The first 'sed' inserts a
21421 # line-number line before each line; the second 'sed' does the real
21422 # work. The second script uses 'N' to pair each line-number line
21423 # with the numbered line, and appends trailing '-' during
21424 # substitution so that $LINENO is not a special case at line end.
21425 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21426 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21427 sed '=' <$as_myself |
21428 sed '
21430 s,$,-,
21431 : loop
21432 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21433 t loop
21434 s,-$,,
21435 s,^['$as_cr_digits']*\n,,
21436 ' >$as_me.lineno &&
21437 chmod +x $as_me.lineno ||
21438 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21439 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21440 { (exit 1); exit 1; }; }
21442 # Don't try to exec as it changes $[0], causing all sort of problems
21443 # (the dirname of $[0] is not the place where we might find the
21444 # original and so on. Autoconf is especially sensible to this).
21445 . ./$as_me.lineno
21446 # Exit status is that of the last command.
21447 exit
21451 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21452 *c*,-n*) ECHO_N= ECHO_C='
21453 ' ECHO_T=' ' ;;
21454 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21455 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21456 esac
21458 if expr a : '\(a\)' >/dev/null 2>&1; then
21459 as_expr=expr
21460 else
21461 as_expr=false
21464 rm -f conf$$ conf$$.exe conf$$.file
21465 echo >conf$$.file
21466 if ln -s conf$$.file conf$$ 2>/dev/null; then
21467 # We could just check for DJGPP; but this test a) works b) is more generic
21468 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21469 if test -f conf$$.exe; then
21470 # Don't use ln at all; we don't have any links
21471 as_ln_s='cp -p'
21472 else
21473 as_ln_s='ln -s'
21475 elif ln conf$$.file conf$$ 2>/dev/null; then
21476 as_ln_s=ln
21477 else
21478 as_ln_s='cp -p'
21480 rm -f conf$$ conf$$.exe conf$$.file
21482 if mkdir -p . 2>/dev/null; then
21483 as_mkdir_p=:
21484 else
21485 test -d ./-p && rmdir ./-p
21486 as_mkdir_p=false
21489 as_executable_p="test -f"
21491 # Sed expression to map a string onto a valid CPP name.
21492 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21494 # Sed expression to map a string onto a valid variable name.
21495 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21498 # IFS
21499 # We need space, tab and new line, in precisely that order.
21500 as_nl='
21502 IFS=" $as_nl"
21504 # CDPATH.
21505 $as_unset CDPATH
21507 exec 6>&1
21509 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21510 # report actual input values of CONFIG_FILES etc. instead of their
21511 # values after options handling. Logging --version etc. is OK.
21512 exec 5>>config.log
21514 echo
21515 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21516 ## Running $as_me. ##
21517 _ASBOX
21518 } >&5
21519 cat >&5 <<_CSEOF
21521 This file was extended by $as_me, which was
21522 generated by GNU Autoconf 2.59. Invocation command line was
21524 CONFIG_FILES = $CONFIG_FILES
21525 CONFIG_HEADERS = $CONFIG_HEADERS
21526 CONFIG_LINKS = $CONFIG_LINKS
21527 CONFIG_COMMANDS = $CONFIG_COMMANDS
21528 $ $0 $@
21530 _CSEOF
21531 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21532 echo >&5
21533 _ACEOF
21535 # Files that config.status was made for.
21536 if test -n "$ac_config_files"; then
21537 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21540 if test -n "$ac_config_headers"; then
21541 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21544 if test -n "$ac_config_links"; then
21545 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21548 if test -n "$ac_config_commands"; then
21549 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21552 cat >>$CONFIG_STATUS <<\_ACEOF
21554 ac_cs_usage="\
21555 \`$as_me' instantiates files from templates according to the
21556 current configuration.
21558 Usage: $0 [OPTIONS] [FILE]...
21560 -h, --help print this help, then exit
21561 -V, --version print version number, then exit
21562 -q, --quiet do not print progress messages
21563 -d, --debug don't remove temporary files
21564 --recheck update $as_me by reconfiguring in the same conditions
21565 --file=FILE[:TEMPLATE]
21566 instantiate the configuration file FILE
21567 --header=FILE[:TEMPLATE]
21568 instantiate the configuration header FILE
21570 Configuration files:
21571 $config_files
21573 Configuration headers:
21574 $config_headers
21576 Configuration commands:
21577 $config_commands
21579 Report bugs to <bug-autoconf@gnu.org>."
21580 _ACEOF
21582 cat >>$CONFIG_STATUS <<_ACEOF
21583 ac_cs_version="\\
21584 config.status
21585 configured by $0, generated by GNU Autoconf 2.59,
21586 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21588 Copyright (C) 2003 Free Software Foundation, Inc.
21589 This config.status script is free software; the Free Software Foundation
21590 gives unlimited permission to copy, distribute and modify it."
21591 srcdir=$srcdir
21592 INSTALL="$INSTALL"
21593 _ACEOF
21595 cat >>$CONFIG_STATUS <<\_ACEOF
21596 # If no file are specified by the user, then we need to provide default
21597 # value. By we need to know if files were specified by the user.
21598 ac_need_defaults=:
21599 while test $# != 0
21601 case $1 in
21602 --*=*)
21603 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21604 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21605 ac_shift=:
21608 ac_option=$1
21609 ac_optarg=$2
21610 ac_shift=shift
21612 *) # This is not an option, so the user has probably given explicit
21613 # arguments.
21614 ac_option=$1
21615 ac_need_defaults=false;;
21616 esac
21618 case $ac_option in
21619 # Handling of the options.
21620 _ACEOF
21621 cat >>$CONFIG_STATUS <<\_ACEOF
21622 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21623 ac_cs_recheck=: ;;
21624 --version | --vers* | -V )
21625 echo "$ac_cs_version"; exit 0 ;;
21626 --he | --h)
21627 # Conflict between --help and --header
21628 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21629 Try \`$0 --help' for more information." >&5
21630 echo "$as_me: error: ambiguous option: $1
21631 Try \`$0 --help' for more information." >&2;}
21632 { (exit 1); exit 1; }; };;
21633 --help | --hel | -h )
21634 echo "$ac_cs_usage"; exit 0 ;;
21635 --debug | --d* | -d )
21636 debug=: ;;
21637 --file | --fil | --fi | --f )
21638 $ac_shift
21639 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21640 ac_need_defaults=false;;
21641 --header | --heade | --head | --hea )
21642 $ac_shift
21643 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21644 ac_need_defaults=false;;
21645 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21646 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21647 ac_cs_silent=: ;;
21649 # This is an error.
21650 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21651 Try \`$0 --help' for more information." >&5
21652 echo "$as_me: error: unrecognized option: $1
21653 Try \`$0 --help' for more information." >&2;}
21654 { (exit 1); exit 1; }; } ;;
21656 *) ac_config_targets="$ac_config_targets $1" ;;
21658 esac
21659 shift
21660 done
21662 ac_configure_extra_args=
21664 if $ac_cs_silent; then
21665 exec 6>/dev/null
21666 ac_configure_extra_args="$ac_configure_extra_args --silent"
21669 _ACEOF
21670 cat >>$CONFIG_STATUS <<_ACEOF
21671 if \$ac_cs_recheck; then
21672 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21673 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21676 _ACEOF
21678 cat >>$CONFIG_STATUS <<_ACEOF
21680 # INIT-COMMANDS section.
21683 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21686 # The HP-UX ksh and POSIX shell print the target directory to stdout
21687 # if CDPATH is set.
21688 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21690 sed_quote_subst='$sed_quote_subst'
21691 double_quote_subst='$double_quote_subst'
21692 delay_variable_subst='$delay_variable_subst'
21693 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
21694 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
21695 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
21696 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
21697 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
21698 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
21699 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
21700 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
21701 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
21702 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
21703 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
21704 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
21705 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
21706 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
21707 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
21708 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
21709 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
21710 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
21711 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
21712 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
21713 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
21714 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
21715 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
21716 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
21717 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
21718 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
21719 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
21720 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21721 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
21722 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
21723 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
21724 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21725 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
21726 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
21727 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21728 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21729 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21730 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
21731 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21732 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
21733 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
21734 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
21735 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
21736 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
21737 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
21738 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
21739 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
21740 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
21741 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
21742 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
21743 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
21744 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
21745 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
21746 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
21747 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
21748 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21749 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21750 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
21751 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
21752 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21753 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21754 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
21755 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21756 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21757 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21758 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21759 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21760 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21761 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
21762 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21763 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21764 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21765 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
21766 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
21767 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
21768 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
21769 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
21770 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21771 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
21772 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
21773 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
21774 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
21775 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
21776 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21777 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21778 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21779 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21780 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
21781 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
21782 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
21783 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
21784 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
21785 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21786 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21787 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
21788 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21789 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
21790 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21791 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21792 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21793 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21794 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
21795 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
21796 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21797 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21798 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
21799 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
21800 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
21801 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
21802 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
21803 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
21805 LTCC='$LTCC'
21806 LTCFLAGS='$LTCFLAGS'
21807 compiler='$compiler_DEFAULT'
21809 # Quote evaled strings.
21810 for var in SED \
21811 GREP \
21812 EGREP \
21813 FGREP \
21814 LD \
21815 NM \
21816 LN_S \
21817 lt_SP2NL \
21818 lt_NL2SP \
21819 reload_flag \
21820 deplibs_check_method \
21821 file_magic_cmd \
21822 AR \
21823 AR_FLAGS \
21824 STRIP \
21825 RANLIB \
21826 CC \
21827 CFLAGS \
21828 compiler \
21829 lt_cv_sys_global_symbol_pipe \
21830 lt_cv_sys_global_symbol_to_cdecl \
21831 lt_cv_sys_global_symbol_to_c_name_address \
21832 SHELL \
21833 ECHO \
21834 lt_prog_compiler_no_builtin_flag \
21835 lt_prog_compiler_wl \
21836 lt_prog_compiler_pic \
21837 lt_prog_compiler_static \
21838 lt_cv_prog_compiler_c_o \
21839 need_locks \
21840 shrext_cmds \
21841 export_dynamic_flag_spec \
21842 whole_archive_flag_spec \
21843 compiler_needs_object \
21844 with_gnu_ld \
21845 allow_undefined_flag \
21846 no_undefined_flag \
21847 hardcode_libdir_flag_spec \
21848 hardcode_libdir_flag_spec_ld \
21849 hardcode_libdir_separator \
21850 fix_srcfile_path \
21851 exclude_expsyms \
21852 include_expsyms \
21853 file_list_spec \
21854 variables_saved_for_relink \
21855 libname_spec \
21856 library_names_spec \
21857 soname_spec \
21858 finish_eval \
21859 old_striplib \
21860 striplib; do
21861 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21862 *[\\\\\\\`\\"\\\$]*)
21863 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21866 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21868 esac
21869 done
21871 # Double-quote double-evaled strings.
21872 for var in reload_cmds \
21873 old_postinstall_cmds \
21874 old_postuninstall_cmds \
21875 old_archive_cmds \
21876 extract_expsyms_cmds \
21877 old_archive_from_new_cmds \
21878 old_archive_from_expsyms_cmds \
21879 archive_cmds \
21880 archive_expsym_cmds \
21881 module_cmds \
21882 module_expsym_cmds \
21883 export_symbols_cmds \
21884 prelink_cmds \
21885 postinstall_cmds \
21886 postuninstall_cmds \
21887 finish_cmds \
21888 sys_lib_search_path_spec \
21889 sys_lib_dlsearch_path_spec; do
21890 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21891 *[\\\\\\\`\\"\\\$]*)
21892 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21895 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21897 esac
21898 done
21900 # Fix-up fallback echo if it was mangled by the above quoting rules.
21901 case \$lt_ECHO in
21902 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
21904 esac
21906 ac_aux_dir='$ac_aux_dir'
21907 xsi_shell='$xsi_shell'
21908 lt_shell_append='$lt_shell_append'
21910 # See if we are running on zsh, and set the options which allow our
21911 # commands through without removal of \ escapes INIT.
21912 if test -n "\${ZSH_VERSION+set}" ; then
21913 setopt NO_GLOB_SUBST
21917 PACKAGE='$PACKAGE'
21918 VERSION='$VERSION'
21919 TIMESTAMP='$TIMESTAMP'
21920 RM='$RM'
21921 ofile='$ofile'
21925 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
21926 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
21927 # from automake.
21928 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
21929 # Capture the value of LINGUAS because we need it to compute CATALOGS.
21930 LINGUAS="${LINGUAS-%UNSET%}"
21933 GCC="$GCC"
21934 CC="$CC"
21935 acx_cv_header_stdint="$acx_cv_header_stdint"
21936 acx_cv_type_int8_t="$acx_cv_type_int8_t"
21937 acx_cv_type_int16_t="$acx_cv_type_int16_t"
21938 acx_cv_type_int32_t="$acx_cv_type_int32_t"
21939 acx_cv_type_int64_t="$acx_cv_type_int64_t"
21940 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
21941 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
21942 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
21943 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
21944 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
21945 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
21946 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
21947 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
21948 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
21952 _ACEOF
21956 cat >>$CONFIG_STATUS <<\_ACEOF
21957 for ac_config_target in $ac_config_targets
21959 case "$ac_config_target" in
21960 # Handling of arguments.
21961 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21962 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21963 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
21964 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
21965 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21966 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21967 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
21968 "bfd_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
21969 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21970 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
21971 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21972 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21973 { (exit 1); exit 1; }; };;
21974 esac
21975 done
21977 # If the user did not use the arguments to specify the items to instantiate,
21978 # then the envvar interface is used. Set only those that are not.
21979 # We use the long form for the default assignment because of an extremely
21980 # bizarre bug on SunOS 4.1.3.
21981 if $ac_need_defaults; then
21982 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21983 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21984 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21987 # Have a temporary directory for convenience. Make it in the build tree
21988 # simply because there is no reason to put it here, and in addition,
21989 # creating and moving files from /tmp can sometimes cause problems.
21990 # Create a temporary directory, and hook for its removal unless debugging.
21991 $debug ||
21993 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21994 trap '{ (exit 1); exit 1; }' 1 2 13 15
21997 # Create a (secure) tmp directory for tmp files.
22000 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22001 test -n "$tmp" && test -d "$tmp"
22002 } ||
22004 tmp=./confstat$$-$RANDOM
22005 (umask 077 && mkdir $tmp)
22006 } ||
22008 echo "$me: cannot create a temporary directory in ." >&2
22009 { (exit 1); exit 1; }
22012 _ACEOF
22014 cat >>$CONFIG_STATUS <<_ACEOF
22017 # CONFIG_FILES section.
22020 # No need to generate the scripts if there are no CONFIG_FILES.
22021 # This happens for instance when ./config.status config.h
22022 if test -n "\$CONFIG_FILES"; then
22023 # Protect against being on the right side of a sed subst in config.status.
22024 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22025 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22026 s,@SHELL@,$SHELL,;t t
22027 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22028 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22029 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22030 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22031 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22032 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22033 s,@exec_prefix@,$exec_prefix,;t t
22034 s,@prefix@,$prefix,;t t
22035 s,@program_transform_name@,$program_transform_name,;t t
22036 s,@bindir@,$bindir,;t t
22037 s,@sbindir@,$sbindir,;t t
22038 s,@libexecdir@,$libexecdir,;t t
22039 s,@datadir@,$datadir,;t t
22040 s,@sysconfdir@,$sysconfdir,;t t
22041 s,@sharedstatedir@,$sharedstatedir,;t t
22042 s,@localstatedir@,$localstatedir,;t t
22043 s,@libdir@,$libdir,;t t
22044 s,@includedir@,$includedir,;t t
22045 s,@oldincludedir@,$oldincludedir,;t t
22046 s,@infodir@,$infodir,;t t
22047 s,@mandir@,$mandir,;t t
22048 s,@build_alias@,$build_alias,;t t
22049 s,@host_alias@,$host_alias,;t t
22050 s,@target_alias@,$target_alias,;t t
22051 s,@DEFS@,$DEFS,;t t
22052 s,@ECHO_C@,$ECHO_C,;t t
22053 s,@ECHO_N@,$ECHO_N,;t t
22054 s,@ECHO_T@,$ECHO_T,;t t
22055 s,@LIBS@,$LIBS,;t t
22056 s,@build@,$build,;t t
22057 s,@build_cpu@,$build_cpu,;t t
22058 s,@build_vendor@,$build_vendor,;t t
22059 s,@build_os@,$build_os,;t t
22060 s,@host@,$host,;t t
22061 s,@host_cpu@,$host_cpu,;t t
22062 s,@host_vendor@,$host_vendor,;t t
22063 s,@host_os@,$host_os,;t t
22064 s,@target@,$target,;t t
22065 s,@target_cpu@,$target_cpu,;t t
22066 s,@target_vendor@,$target_vendor,;t t
22067 s,@target_os@,$target_os,;t t
22068 s,@CC@,$CC,;t t
22069 s,@CFLAGS@,$CFLAGS,;t t
22070 s,@LDFLAGS@,$LDFLAGS,;t t
22071 s,@CPPFLAGS@,$CPPFLAGS,;t t
22072 s,@ac_ct_CC@,$ac_ct_CC,;t t
22073 s,@EXEEXT@,$EXEEXT,;t t
22074 s,@OBJEXT@,$OBJEXT,;t t
22075 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22076 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22077 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22078 s,@CYGPATH_W@,$CYGPATH_W,;t t
22079 s,@PACKAGE@,$PACKAGE,;t t
22080 s,@VERSION@,$VERSION,;t t
22081 s,@ACLOCAL@,$ACLOCAL,;t t
22082 s,@AUTOCONF@,$AUTOCONF,;t t
22083 s,@AUTOMAKE@,$AUTOMAKE,;t t
22084 s,@AUTOHEADER@,$AUTOHEADER,;t t
22085 s,@MAKEINFO@,$MAKEINFO,;t t
22086 s,@install_sh@,$install_sh,;t t
22087 s,@STRIP@,$STRIP,;t t
22088 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22089 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22090 s,@mkdir_p@,$mkdir_p,;t t
22091 s,@AWK@,$AWK,;t t
22092 s,@SET_MAKE@,$SET_MAKE,;t t
22093 s,@am__leading_dot@,$am__leading_dot,;t t
22094 s,@AMTAR@,$AMTAR,;t t
22095 s,@am__tar@,$am__tar,;t t
22096 s,@am__untar@,$am__untar,;t t
22097 s,@DEPDIR@,$DEPDIR,;t t
22098 s,@am__include@,$am__include,;t t
22099 s,@am__quote@,$am__quote,;t t
22100 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22101 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22102 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22103 s,@CCDEPMODE@,$CCDEPMODE,;t t
22104 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22105 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22106 s,@AR@,$AR,;t t
22107 s,@ac_ct_AR@,$ac_ct_AR,;t t
22108 s,@RANLIB@,$RANLIB,;t t
22109 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22110 s,@CPP@,$CPP,;t t
22111 s,@EGREP@,$EGREP,;t t
22112 s,@LIBTOOL@,$LIBTOOL,;t t
22113 s,@SED@,$SED,;t t
22114 s,@FGREP@,$FGREP,;t t
22115 s,@GREP@,$GREP,;t t
22116 s,@LD@,$LD,;t t
22117 s,@DUMPBIN@,$DUMPBIN,;t t
22118 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
22119 s,@NM@,$NM,;t t
22120 s,@LN_S@,$LN_S,;t t
22121 s,@lt_ECHO@,$lt_ECHO,;t t
22122 s,@DEBUGDIR@,$DEBUGDIR,;t t
22123 s,@PKGVERSION@,$PKGVERSION,;t t
22124 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
22125 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
22126 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
22127 s,@NO_WERROR@,$NO_WERROR,;t t
22128 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22129 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22130 s,@MAINT@,$MAINT,;t t
22131 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
22132 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
22133 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
22134 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
22135 s,@host_noncanonical@,$host_noncanonical,;t t
22136 s,@target_noncanonical@,$target_noncanonical,;t t
22137 s,@bfdlibdir@,$bfdlibdir,;t t
22138 s,@bfdincludedir@,$bfdincludedir,;t t
22139 s,@USE_NLS@,$USE_NLS,;t t
22140 s,@LIBINTL@,$LIBINTL,;t t
22141 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
22142 s,@INCINTL@,$INCINTL,;t t
22143 s,@XGETTEXT@,$XGETTEXT,;t t
22144 s,@GMSGFMT@,$GMSGFMT,;t t
22145 s,@POSUB@,$POSUB,;t t
22146 s,@CATALOGS@,$CATALOGS,;t t
22147 s,@DATADIRNAME@,$DATADIRNAME,;t t
22148 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
22149 s,@GENCAT@,$GENCAT,;t t
22150 s,@CATOBJEXT@,$CATOBJEXT,;t t
22151 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
22152 s,@MSGFMT@,$MSGFMT,;t t
22153 s,@MSGMERGE@,$MSGMERGE,;t t
22154 s,@HDEFINES@,$HDEFINES,;t t
22155 s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
22156 s,@BFD_HOST_64BIT_LONG_LONG@,$BFD_HOST_64BIT_LONG_LONG,;t t
22157 s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
22158 s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
22159 s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
22160 s,@BFD_HOSTPTR_T@,$BFD_HOSTPTR_T,;t t
22161 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
22162 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
22163 s,@COREFILE@,$COREFILE,;t t
22164 s,@COREFLAG@,$COREFLAG,;t t
22165 s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
22166 s,@WIN32LIBADD@,$WIN32LIBADD,;t t
22167 s,@TDEFINES@,$TDEFINES,;t t
22168 s,@wordsize@,$wordsize,;t t
22169 s,@bfd64_libs@,$bfd64_libs,;t t
22170 s,@all_backends@,$all_backends,;t t
22171 s,@bfd_backends@,$bfd_backends,;t t
22172 s,@bfd_machines@,$bfd_machines,;t t
22173 s,@bfd_default_target_size@,$bfd_default_target_size,;t t
22174 s,@bfd_file_ptr@,$bfd_file_ptr,;t t
22175 s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
22176 s,@tdefaults@,$tdefaults,;t t
22177 s,@datarootdir@,$datarootdir,;t t
22178 s,@docdir@,$docdir,;t t
22179 s,@htmldir@,$htmldir,;t t
22180 s,@LIBOBJS@,$LIBOBJS,;t t
22181 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22182 CEOF
22184 _ACEOF
22186 cat >>$CONFIG_STATUS <<\_ACEOF
22187 # Split the substitutions into bite-sized pieces for seds with
22188 # small command number limits, like on Digital OSF/1 and HP-UX.
22189 ac_max_sed_lines=48
22190 ac_sed_frag=1 # Number of current file.
22191 ac_beg=1 # First line for current file.
22192 ac_end=$ac_max_sed_lines # Line after last line for current file.
22193 ac_more_lines=:
22194 ac_sed_cmds=
22195 while $ac_more_lines; do
22196 if test $ac_beg -gt 1; then
22197 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22198 else
22199 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22201 if test ! -s $tmp/subs.frag; then
22202 ac_more_lines=false
22203 else
22204 # The purpose of the label and of the branching condition is to
22205 # speed up the sed processing (if there are no `@' at all, there
22206 # is no need to browse any of the substitutions).
22207 # These are the two extra sed commands mentioned above.
22208 (echo ':t
22209 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22210 if test -z "$ac_sed_cmds"; then
22211 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22212 else
22213 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22215 ac_sed_frag=`expr $ac_sed_frag + 1`
22216 ac_beg=$ac_end
22217 ac_end=`expr $ac_end + $ac_max_sed_lines`
22219 done
22220 if test -z "$ac_sed_cmds"; then
22221 ac_sed_cmds=cat
22223 fi # test -n "$CONFIG_FILES"
22225 _ACEOF
22226 cat >>$CONFIG_STATUS <<\_ACEOF
22227 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22228 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22229 case $ac_file in
22230 - | *:- | *:-:* ) # input from stdin
22231 cat >$tmp/stdin
22232 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22233 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22234 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22235 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22236 * ) ac_file_in=$ac_file.in ;;
22237 esac
22239 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22240 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22241 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22242 X"$ac_file" : 'X\(//\)[^/]' \| \
22243 X"$ac_file" : 'X\(//\)$' \| \
22244 X"$ac_file" : 'X\(/\)' \| \
22245 . : '\(.\)' 2>/dev/null ||
22246 echo X"$ac_file" |
22247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22248 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22249 /^X\(\/\/\)$/{ s//\1/; q; }
22250 /^X\(\/\).*/{ s//\1/; q; }
22251 s/.*/./; q'`
22252 { if $as_mkdir_p; then
22253 mkdir -p "$ac_dir"
22254 else
22255 as_dir="$ac_dir"
22256 as_dirs=
22257 while test ! -d "$as_dir"; do
22258 as_dirs="$as_dir $as_dirs"
22259 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22260 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22261 X"$as_dir" : 'X\(//\)[^/]' \| \
22262 X"$as_dir" : 'X\(//\)$' \| \
22263 X"$as_dir" : 'X\(/\)' \| \
22264 . : '\(.\)' 2>/dev/null ||
22265 echo X"$as_dir" |
22266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22267 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22268 /^X\(\/\/\)$/{ s//\1/; q; }
22269 /^X\(\/\).*/{ s//\1/; q; }
22270 s/.*/./; q'`
22271 done
22272 test ! -n "$as_dirs" || mkdir $as_dirs
22273 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22274 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22275 { (exit 1); exit 1; }; }; }
22277 ac_builddir=.
22279 if test "$ac_dir" != .; then
22280 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22281 # A "../" for each directory in $ac_dir_suffix.
22282 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22283 else
22284 ac_dir_suffix= ac_top_builddir=
22287 case $srcdir in
22288 .) # No --srcdir option. We are building in place.
22289 ac_srcdir=.
22290 if test -z "$ac_top_builddir"; then
22291 ac_top_srcdir=.
22292 else
22293 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22294 fi ;;
22295 [\\/]* | ?:[\\/]* ) # Absolute path.
22296 ac_srcdir=$srcdir$ac_dir_suffix;
22297 ac_top_srcdir=$srcdir ;;
22298 *) # Relative path.
22299 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22300 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22301 esac
22303 # Do not use `cd foo && pwd` to compute absolute paths, because
22304 # the directories may not exist.
22305 case `pwd` in
22306 .) ac_abs_builddir="$ac_dir";;
22308 case "$ac_dir" in
22309 .) ac_abs_builddir=`pwd`;;
22310 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22311 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22312 esac;;
22313 esac
22314 case $ac_abs_builddir in
22315 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22317 case ${ac_top_builddir}. in
22318 .) ac_abs_top_builddir=$ac_abs_builddir;;
22319 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22320 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22321 esac;;
22322 esac
22323 case $ac_abs_builddir in
22324 .) ac_abs_srcdir=$ac_srcdir;;
22326 case $ac_srcdir in
22327 .) ac_abs_srcdir=$ac_abs_builddir;;
22328 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22329 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22330 esac;;
22331 esac
22332 case $ac_abs_builddir in
22333 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22335 case $ac_top_srcdir in
22336 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22337 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22338 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22339 esac;;
22340 esac
22343 case $INSTALL in
22344 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22345 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22346 esac
22348 if test x"$ac_file" != x-; then
22349 { echo "$as_me:$LINENO: creating $ac_file" >&5
22350 echo "$as_me: creating $ac_file" >&6;}
22351 rm -f "$ac_file"
22353 # Let's still pretend it is `configure' which instantiates (i.e., don't
22354 # use $as_me), people would be surprised to read:
22355 # /* config.h. Generated by config.status. */
22356 if test x"$ac_file" = x-; then
22357 configure_input=
22358 else
22359 configure_input="$ac_file. "
22361 configure_input=$configure_input"Generated from `echo $ac_file_in |
22362 sed 's,.*/,,'` by configure."
22364 # First look for the input files in the build tree, otherwise in the
22365 # src tree.
22366 ac_file_inputs=`IFS=:
22367 for f in $ac_file_in; do
22368 case $f in
22369 -) echo $tmp/stdin ;;
22370 [\\/$]*)
22371 # Absolute (can't be DOS-style, as IFS=:)
22372 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22373 echo "$as_me: error: cannot find input file: $f" >&2;}
22374 { (exit 1); exit 1; }; }
22375 echo "$f";;
22376 *) # Relative
22377 if test -f "$f"; then
22378 # Build tree
22379 echo "$f"
22380 elif test -f "$srcdir/$f"; then
22381 # Source tree
22382 echo "$srcdir/$f"
22383 else
22384 # /dev/null tree
22385 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22386 echo "$as_me: error: cannot find input file: $f" >&2;}
22387 { (exit 1); exit 1; }; }
22388 fi;;
22389 esac
22390 done` || { (exit 1); exit 1; }
22391 _ACEOF
22392 cat >>$CONFIG_STATUS <<_ACEOF
22393 sed "$ac_vpsub
22394 $extrasub
22395 _ACEOF
22396 cat >>$CONFIG_STATUS <<\_ACEOF
22398 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22399 s,@configure_input@,$configure_input,;t t
22400 s,@srcdir@,$ac_srcdir,;t t
22401 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22402 s,@top_srcdir@,$ac_top_srcdir,;t t
22403 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22404 s,@builddir@,$ac_builddir,;t t
22405 s,@abs_builddir@,$ac_abs_builddir,;t t
22406 s,@top_builddir@,$ac_top_builddir,;t t
22407 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22408 s,@INSTALL@,$ac_INSTALL,;t t
22409 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22410 rm -f $tmp/stdin
22411 if test x"$ac_file" != x-; then
22412 mv $tmp/out $ac_file
22413 else
22414 cat $tmp/out
22415 rm -f $tmp/out
22418 done
22419 _ACEOF
22420 cat >>$CONFIG_STATUS <<\_ACEOF
22423 # CONFIG_HEADER section.
22426 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22427 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22429 # ac_d sets the value in "#define NAME VALUE" lines.
22430 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22431 ac_dB='[ ].*$,\1#\2'
22432 ac_dC=' '
22433 ac_dD=',;t'
22434 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22435 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22436 ac_uB='$,\1#\2define\3'
22437 ac_uC=' '
22438 ac_uD=',;t'
22440 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22441 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22442 case $ac_file in
22443 - | *:- | *:-:* ) # input from stdin
22444 cat >$tmp/stdin
22445 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22446 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22447 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22448 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22449 * ) ac_file_in=$ac_file.in ;;
22450 esac
22452 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22453 echo "$as_me: creating $ac_file" >&6;}
22455 # First look for the input files in the build tree, otherwise in the
22456 # src tree.
22457 ac_file_inputs=`IFS=:
22458 for f in $ac_file_in; do
22459 case $f in
22460 -) echo $tmp/stdin ;;
22461 [\\/$]*)
22462 # Absolute (can't be DOS-style, as IFS=:)
22463 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22464 echo "$as_me: error: cannot find input file: $f" >&2;}
22465 { (exit 1); exit 1; }; }
22466 # Do quote $f, to prevent DOS paths from being IFS'd.
22467 echo "$f";;
22468 *) # Relative
22469 if test -f "$f"; then
22470 # Build tree
22471 echo "$f"
22472 elif test -f "$srcdir/$f"; then
22473 # Source tree
22474 echo "$srcdir/$f"
22475 else
22476 # /dev/null tree
22477 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22478 echo "$as_me: error: cannot find input file: $f" >&2;}
22479 { (exit 1); exit 1; }; }
22480 fi;;
22481 esac
22482 done` || { (exit 1); exit 1; }
22483 # Remove the trailing spaces.
22484 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22486 _ACEOF
22488 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22489 # `conftest.undefs', that substitutes the proper values into
22490 # config.h.in to produce config.h. The first handles `#define'
22491 # templates, and the second `#undef' templates.
22492 # And first: Protect against being on the right side of a sed subst in
22493 # config.status. Protect against being in an unquoted here document
22494 # in config.status.
22495 rm -f conftest.defines conftest.undefs
22496 # Using a here document instead of a string reduces the quoting nightmare.
22497 # Putting comments in sed scripts is not portable.
22499 # `end' is used to avoid that the second main sed command (meant for
22500 # 0-ary CPP macros) applies to n-ary macro definitions.
22501 # See the Autoconf documentation for `clear'.
22502 cat >confdef2sed.sed <<\_ACEOF
22503 s/[\\&,]/\\&/g
22504 s,[\\$`],\\&,g
22505 t clear
22506 : clear
22507 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22508 t end
22509 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22510 : end
22511 _ACEOF
22512 # If some macros were called several times there might be several times
22513 # the same #defines, which is useless. Nevertheless, we may not want to
22514 # sort them, since we want the *last* AC-DEFINE to be honored.
22515 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22516 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22517 rm -f confdef2sed.sed
22519 # This sed command replaces #undef with comments. This is necessary, for
22520 # example, in the case of _POSIX_SOURCE, which is predefined and required
22521 # on some systems where configure will not decide to define it.
22522 cat >>conftest.undefs <<\_ACEOF
22523 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22524 _ACEOF
22526 # Break up conftest.defines because some shells have a limit on the size
22527 # of here documents, and old seds have small limits too (100 cmds).
22528 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22529 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22530 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22531 echo ' :' >>$CONFIG_STATUS
22532 rm -f conftest.tail
22533 while grep . conftest.defines >/dev/null
22535 # Write a limited-size here document to $tmp/defines.sed.
22536 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22537 # Speed up: don't consider the non `#define' lines.
22538 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22539 # Work around the forget-to-reset-the-flag bug.
22540 echo 't clr' >>$CONFIG_STATUS
22541 echo ': clr' >>$CONFIG_STATUS
22542 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22543 echo 'CEOF
22544 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22545 rm -f $tmp/in
22546 mv $tmp/out $tmp/in
22547 ' >>$CONFIG_STATUS
22548 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22549 rm -f conftest.defines
22550 mv conftest.tail conftest.defines
22551 done
22552 rm -f conftest.defines
22553 echo ' fi # grep' >>$CONFIG_STATUS
22554 echo >>$CONFIG_STATUS
22556 # Break up conftest.undefs because some shells have a limit on the size
22557 # of here documents, and old seds have small limits too (100 cmds).
22558 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22559 rm -f conftest.tail
22560 while grep . conftest.undefs >/dev/null
22562 # Write a limited-size here document to $tmp/undefs.sed.
22563 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22564 # Speed up: don't consider the non `#undef'
22565 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22566 # Work around the forget-to-reset-the-flag bug.
22567 echo 't clr' >>$CONFIG_STATUS
22568 echo ': clr' >>$CONFIG_STATUS
22569 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22570 echo 'CEOF
22571 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22572 rm -f $tmp/in
22573 mv $tmp/out $tmp/in
22574 ' >>$CONFIG_STATUS
22575 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22576 rm -f conftest.undefs
22577 mv conftest.tail conftest.undefs
22578 done
22579 rm -f conftest.undefs
22581 cat >>$CONFIG_STATUS <<\_ACEOF
22582 # Let's still pretend it is `configure' which instantiates (i.e., don't
22583 # use $as_me), people would be surprised to read:
22584 # /* config.h. Generated by config.status. */
22585 if test x"$ac_file" = x-; then
22586 echo "/* Generated by configure. */" >$tmp/config.h
22587 else
22588 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22590 cat $tmp/in >>$tmp/config.h
22591 rm -f $tmp/in
22592 if test x"$ac_file" != x-; then
22593 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22594 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22595 echo "$as_me: $ac_file is unchanged" >&6;}
22596 else
22597 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22598 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22599 X"$ac_file" : 'X\(//\)[^/]' \| \
22600 X"$ac_file" : 'X\(//\)$' \| \
22601 X"$ac_file" : 'X\(/\)' \| \
22602 . : '\(.\)' 2>/dev/null ||
22603 echo X"$ac_file" |
22604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22605 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22606 /^X\(\/\/\)$/{ s//\1/; q; }
22607 /^X\(\/\).*/{ s//\1/; q; }
22608 s/.*/./; q'`
22609 { if $as_mkdir_p; then
22610 mkdir -p "$ac_dir"
22611 else
22612 as_dir="$ac_dir"
22613 as_dirs=
22614 while test ! -d "$as_dir"; do
22615 as_dirs="$as_dir $as_dirs"
22616 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22617 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22618 X"$as_dir" : 'X\(//\)[^/]' \| \
22619 X"$as_dir" : 'X\(//\)$' \| \
22620 X"$as_dir" : 'X\(/\)' \| \
22621 . : '\(.\)' 2>/dev/null ||
22622 echo X"$as_dir" |
22623 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22624 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22625 /^X\(\/\/\)$/{ s//\1/; q; }
22626 /^X\(\/\).*/{ s//\1/; q; }
22627 s/.*/./; q'`
22628 done
22629 test ! -n "$as_dirs" || mkdir $as_dirs
22630 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22631 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22632 { (exit 1); exit 1; }; }; }
22634 rm -f $ac_file
22635 mv $tmp/config.h $ac_file
22637 else
22638 cat $tmp/config.h
22639 rm -f $tmp/config.h
22641 # Compute $ac_file's index in $config_headers.
22642 _am_stamp_count=1
22643 for _am_header in $config_headers :; do
22644 case $_am_header in
22645 $ac_file | $ac_file:* )
22646 break ;;
22648 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22649 esac
22650 done
22651 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22652 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22653 X$ac_file : 'X\(//\)[^/]' \| \
22654 X$ac_file : 'X\(//\)$' \| \
22655 X$ac_file : 'X\(/\)' \| \
22656 . : '\(.\)' 2>/dev/null ||
22657 echo X$ac_file |
22658 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22659 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22660 /^X\(\/\/\)$/{ s//\1/; q; }
22661 /^X\(\/\).*/{ s//\1/; q; }
22662 s/.*/./; q'`/stamp-h$_am_stamp_count
22663 done
22664 _ACEOF
22665 cat >>$CONFIG_STATUS <<\_ACEOF
22668 # CONFIG_COMMANDS section.
22670 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22671 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22672 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22673 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22674 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22675 X"$ac_dest" : 'X\(//\)[^/]' \| \
22676 X"$ac_dest" : 'X\(//\)$' \| \
22677 X"$ac_dest" : 'X\(/\)' \| \
22678 . : '\(.\)' 2>/dev/null ||
22679 echo X"$ac_dest" |
22680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22682 /^X\(\/\/\)$/{ s//\1/; q; }
22683 /^X\(\/\).*/{ s//\1/; q; }
22684 s/.*/./; q'`
22685 { if $as_mkdir_p; then
22686 mkdir -p "$ac_dir"
22687 else
22688 as_dir="$ac_dir"
22689 as_dirs=
22690 while test ! -d "$as_dir"; do
22691 as_dirs="$as_dir $as_dirs"
22692 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22693 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22694 X"$as_dir" : 'X\(//\)[^/]' \| \
22695 X"$as_dir" : 'X\(//\)$' \| \
22696 X"$as_dir" : 'X\(/\)' \| \
22697 . : '\(.\)' 2>/dev/null ||
22698 echo X"$as_dir" |
22699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22700 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22701 /^X\(\/\/\)$/{ s//\1/; q; }
22702 /^X\(\/\).*/{ s//\1/; q; }
22703 s/.*/./; q'`
22704 done
22705 test ! -n "$as_dirs" || mkdir $as_dirs
22706 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22707 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22708 { (exit 1); exit 1; }; }; }
22710 ac_builddir=.
22712 if test "$ac_dir" != .; then
22713 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22714 # A "../" for each directory in $ac_dir_suffix.
22715 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22716 else
22717 ac_dir_suffix= ac_top_builddir=
22720 case $srcdir in
22721 .) # No --srcdir option. We are building in place.
22722 ac_srcdir=.
22723 if test -z "$ac_top_builddir"; then
22724 ac_top_srcdir=.
22725 else
22726 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22727 fi ;;
22728 [\\/]* | ?:[\\/]* ) # Absolute path.
22729 ac_srcdir=$srcdir$ac_dir_suffix;
22730 ac_top_srcdir=$srcdir ;;
22731 *) # Relative path.
22732 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22733 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22734 esac
22736 # Do not use `cd foo && pwd` to compute absolute paths, because
22737 # the directories may not exist.
22738 case `pwd` in
22739 .) ac_abs_builddir="$ac_dir";;
22741 case "$ac_dir" in
22742 .) ac_abs_builddir=`pwd`;;
22743 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22744 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22745 esac;;
22746 esac
22747 case $ac_abs_builddir in
22748 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22750 case ${ac_top_builddir}. in
22751 .) ac_abs_top_builddir=$ac_abs_builddir;;
22752 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22753 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22754 esac;;
22755 esac
22756 case $ac_abs_builddir in
22757 .) ac_abs_srcdir=$ac_srcdir;;
22759 case $ac_srcdir in
22760 .) ac_abs_srcdir=$ac_abs_builddir;;
22761 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22762 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22763 esac;;
22764 esac
22765 case $ac_abs_builddir in
22766 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22768 case $ac_top_srcdir in
22769 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22770 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22771 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22772 esac;;
22773 esac
22776 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22777 echo "$as_me: executing $ac_dest commands" >&6;}
22778 case $ac_dest in
22779 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22780 # Strip MF so we end up with the name of the file.
22781 mf=`echo "$mf" | sed -e 's/:.*$//'`
22782 # Check whether this is an Automake generated Makefile or not.
22783 # We used to match only the files named `Makefile.in', but
22784 # some people rename them; so instead we look at the file content.
22785 # Grep'ing the first line is not enough: some people post-process
22786 # each Makefile.in and add a new line on top of each file to say so.
22787 # So let's grep whole file.
22788 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22789 dirpart=`(dirname "$mf") 2>/dev/null ||
22790 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22791 X"$mf" : 'X\(//\)[^/]' \| \
22792 X"$mf" : 'X\(//\)$' \| \
22793 X"$mf" : 'X\(/\)' \| \
22794 . : '\(.\)' 2>/dev/null ||
22795 echo X"$mf" |
22796 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22797 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22798 /^X\(\/\/\)$/{ s//\1/; q; }
22799 /^X\(\/\).*/{ s//\1/; q; }
22800 s/.*/./; q'`
22801 else
22802 continue
22804 # Extract the definition of DEPDIR, am__include, and am__quote
22805 # from the Makefile without running `make'.
22806 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22807 test -z "$DEPDIR" && continue
22808 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22809 test -z "am__include" && continue
22810 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22811 # When using ansi2knr, U may be empty or an underscore; expand it
22812 U=`sed -n 's/^U = //p' < "$mf"`
22813 # Find all dependency output files, they are included files with
22814 # $(DEPDIR) in their names. We invoke sed twice because it is the
22815 # simplest approach to changing $(DEPDIR) to its actual value in the
22816 # expansion.
22817 for file in `sed -n "
22818 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22819 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22820 # Make sure the directory exists.
22821 test -f "$dirpart/$file" && continue
22822 fdir=`(dirname "$file") 2>/dev/null ||
22823 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22824 X"$file" : 'X\(//\)[^/]' \| \
22825 X"$file" : 'X\(//\)$' \| \
22826 X"$file" : 'X\(/\)' \| \
22827 . : '\(.\)' 2>/dev/null ||
22828 echo X"$file" |
22829 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22830 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22831 /^X\(\/\/\)$/{ s//\1/; q; }
22832 /^X\(\/\).*/{ s//\1/; q; }
22833 s/.*/./; q'`
22834 { if $as_mkdir_p; then
22835 mkdir -p $dirpart/$fdir
22836 else
22837 as_dir=$dirpart/$fdir
22838 as_dirs=
22839 while test ! -d "$as_dir"; do
22840 as_dirs="$as_dir $as_dirs"
22841 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22842 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22843 X"$as_dir" : 'X\(//\)[^/]' \| \
22844 X"$as_dir" : 'X\(//\)$' \| \
22845 X"$as_dir" : 'X\(/\)' \| \
22846 . : '\(.\)' 2>/dev/null ||
22847 echo X"$as_dir" |
22848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22849 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22850 /^X\(\/\/\)$/{ s//\1/; q; }
22851 /^X\(\/\).*/{ s//\1/; q; }
22852 s/.*/./; q'`
22853 done
22854 test ! -n "$as_dirs" || mkdir $as_dirs
22855 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22856 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22857 { (exit 1); exit 1; }; }; }
22859 # echo "creating $dirpart/$file"
22860 echo '# dummy' > "$dirpart/$file"
22861 done
22862 done
22864 libtool )
22866 # See if we are running on zsh, and set the options which allow our
22867 # commands through without removal of \ escapes.
22868 if test -n "${ZSH_VERSION+set}" ; then
22869 setopt NO_GLOB_SUBST
22872 cfgfile="${ofile}T"
22873 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22874 $RM "$cfgfile"
22876 cat <<_LT_EOF >> "$cfgfile"
22877 #! $SHELL
22879 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22880 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
22881 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22882 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22884 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22885 # 2006, 2007 Free Software Foundation, Inc.
22887 # This file is part of GNU Libtool:
22888 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
22890 # This program is free software; you can redistribute it and/or modify
22891 # it under the terms of the GNU General Public License as published by
22892 # the Free Software Foundation; either version 2 of the License, or
22893 # (at your option) any later version.
22895 # This program is distributed in the hope that it will be useful, but
22896 # WITHOUT ANY WARRANTY; without even the implied warranty of
22897 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22898 # General Public License for more details.
22900 # You should have received a copy of the GNU General Public License
22901 # along with this program; if not, a copy can be downloaded from
22902 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
22903 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
22904 # MA 02110-1301, USA.
22906 # As a special exception to the GNU General Public License, if you
22907 # distribute this file as part of a program that contains a
22908 # configuration script generated by Autoconf, you may include it under
22909 # the same distribution terms that you use for the rest of that program.
22912 # The names of the tagged configurations supported by this script.
22913 available_tags=""
22915 # ### BEGIN LIBTOOL CONFIG
22917 # Whether or not to build shared libraries.
22918 build_libtool_libs=$enable_shared
22920 # Which release of libtool.m4 was used?
22921 macro_version=$macro_version
22922 macro_revision=$macro_revision
22924 # Whether or not to build static libraries.
22925 build_old_libs=$enable_static
22927 # What type of objects to build.
22928 pic_mode=$pic_mode
22930 # Whether or not to optimize for fast installation.
22931 fast_install=$enable_fast_install
22933 # The host system.
22934 host_alias=$host_alias
22935 host=$host
22936 host_os=$host_os
22938 # The build system.
22939 build_alias=$build_alias
22940 build=$build
22941 build_os=$build_os
22943 # A sed program that does not truncate output.
22944 SED=$lt_SED
22946 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22947 Xsed="\$SED -e 1s/^X//"
22949 # A grep program that handles long lines.
22950 GREP=$lt_GREP
22952 # An ERE matcher.
22953 EGREP=$lt_EGREP
22955 # A literal string matcher.
22956 FGREP=$lt_FGREP
22958 # A BSD- or MS-compatible name lister.
22959 NM=$lt_NM
22961 # Whether we need soft or hard links.
22962 LN_S=$lt_LN_S
22964 # What is the maximum length of a command?
22965 max_cmd_len=$max_cmd_len
22967 # Object file suffix (normally "o").
22968 objext=$ac_objext
22970 # Executable file suffix (normally "").
22971 exeext=$exeext
22973 # whether the shell understands "unset".
22974 lt_unset=$lt_unset
22976 # turn spaces into newlines.
22977 SP2NL=$lt_lt_SP2NL
22979 # turn newlines into spaces.
22980 NL2SP=$lt_lt_NL2SP
22982 # How to create reloadable object files.
22983 reload_flag=$lt_reload_flag
22984 reload_cmds=$lt_reload_cmds
22986 # Method to check whether dependent libraries are shared objects.
22987 deplibs_check_method=$lt_deplibs_check_method
22989 # Command to use when deplibs_check_method == "file_magic".
22990 file_magic_cmd=$lt_file_magic_cmd
22992 # The archiver.
22993 AR=$lt_AR
22994 AR_FLAGS=$lt_AR_FLAGS
22996 # A symbol stripping program.
22997 STRIP=$lt_STRIP
22999 # Commands used to install an old-style archive.
23000 RANLIB=$lt_RANLIB
23001 old_postinstall_cmds=$lt_old_postinstall_cmds
23002 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23004 # A C compiler.
23005 LTCC=$lt_CC
23007 # LTCC compiler flags.
23008 LTCFLAGS=$lt_CFLAGS
23010 # Take the output of nm and produce a listing of raw symbols and C names.
23011 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23013 # Transform the output of nm in a proper C declaration.
23014 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23016 # Transform the output of nm in a C name address pair.
23017 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23019 # The name of the directory that contains temporary libtool files.
23020 objdir=$objdir
23022 # Shell to use when invoking shell scripts.
23023 SHELL=$lt_SHELL
23025 # An echo program that does not interpret backslashes.
23026 ECHO=$lt_ECHO
23028 # Used to examine libraries when file_magic_cmd begins with "file".
23029 MAGIC_CMD=$MAGIC_CMD
23031 # Must we lock files when doing compilation?
23032 need_locks=$lt_need_locks
23034 # Old archive suffix (normally "a").
23035 libext=$libext
23037 # Shared library suffix (normally ".so").
23038 shrext_cmds=$lt_shrext_cmds
23040 # The commands to extract the exported symbol list from a shared archive.
23041 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23043 # Variables whose values should be saved in libtool wrapper scripts and
23044 # restored at link time.
23045 variables_saved_for_relink=$lt_variables_saved_for_relink
23047 # Do we need the "lib" prefix for modules?
23048 need_lib_prefix=$need_lib_prefix
23050 # Do we need a version for libraries?
23051 need_version=$need_version
23053 # Library versioning type.
23054 version_type=$version_type
23056 # Shared library runtime path variable.
23057 runpath_var=$runpath_var
23059 # Shared library path variable.
23060 shlibpath_var=$shlibpath_var
23062 # Is shlibpath searched before the hard-coded library search path?
23063 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23065 # Format of library name prefix.
23066 libname_spec=$lt_libname_spec
23068 # List of archive names. First name is the real one, the rest are links.
23069 # The last name is the one that the linker finds with -lNAME
23070 library_names_spec=$lt_library_names_spec
23072 # The coded name of the library, if different from the real name.
23073 soname_spec=$lt_soname_spec
23075 # Command to use after installation of a shared archive.
23076 postinstall_cmds=$lt_postinstall_cmds
23078 # Command to use after uninstallation of a shared archive.
23079 postuninstall_cmds=$lt_postuninstall_cmds
23081 # Commands used to finish a libtool library installation in a directory.
23082 finish_cmds=$lt_finish_cmds
23084 # As "finish_cmds", except a single script fragment to be evaled but
23085 # not shown.
23086 finish_eval=$lt_finish_eval
23088 # Whether we should hardcode library paths into libraries.
23089 hardcode_into_libs=$hardcode_into_libs
23091 # Compile-time system search path for libraries.
23092 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23094 # Run-time system search path for libraries.
23095 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23097 # Whether dlopen is supported.
23098 dlopen_support=$enable_dlopen
23100 # Whether dlopen of programs is supported.
23101 dlopen_self=$enable_dlopen_self
23103 # Whether dlopen of statically linked programs is supported.
23104 dlopen_self_static=$enable_dlopen_self_static
23106 # Commands to strip libraries.
23107 old_striplib=$lt_old_striplib
23108 striplib=$lt_striplib
23111 # The linker used to build libraries.
23112 LD=$lt_LD
23114 # Commands used to build an old-style archive.
23115 old_archive_cmds=$lt_old_archive_cmds
23117 # A language specific compiler.
23118 CC=$lt_compiler
23120 # Is the compiler the GNU compiler?
23121 with_gcc=$GCC
23123 # Compiler flag to turn off builtin functions.
23124 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23126 # How to pass a linker flag through the compiler.
23127 wl=$lt_lt_prog_compiler_wl
23129 # Additional compiler flags for building library objects.
23130 pic_flag=$lt_lt_prog_compiler_pic
23132 # Compiler flag to prevent dynamic linking.
23133 link_static_flag=$lt_lt_prog_compiler_static
23135 # Does compiler simultaneously support -c and -o options?
23136 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23138 # Whether or not to add -lc for building shared libraries.
23139 build_libtool_need_lc=$archive_cmds_need_lc
23141 # Whether or not to disallow shared libs when runtime libs are static.
23142 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23144 # Compiler flag to allow reflexive dlopens.
23145 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23147 # Compiler flag to generate shared objects directly from archives.
23148 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23150 # Whether the compiler copes with passing no objects directly.
23151 compiler_needs_object=$lt_compiler_needs_object
23153 # Create an old-style archive from a shared archive.
23154 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23156 # Create a temporary old-style archive to link instead of a shared archive.
23157 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23159 # Commands used to build a shared archive.
23160 archive_cmds=$lt_archive_cmds
23161 archive_expsym_cmds=$lt_archive_expsym_cmds
23163 # Commands used to build a loadable module if different from building
23164 # a shared archive.
23165 module_cmds=$lt_module_cmds
23166 module_expsym_cmds=$lt_module_expsym_cmds
23168 # Whether we are building with GNU ld or not.
23169 with_gnu_ld=$lt_with_gnu_ld
23171 # Flag that allows shared libraries with undefined symbols to be built.
23172 allow_undefined_flag=$lt_allow_undefined_flag
23174 # Flag that enforces no undefined symbols.
23175 no_undefined_flag=$lt_no_undefined_flag
23177 # Flag to hardcode \$libdir into a binary during linking.
23178 # This must work even if \$libdir does not exist
23179 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23181 # If ld is used when linking, flag to hardcode \$libdir into a binary
23182 # during linking. This must work even if \$libdir does not exist.
23183 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
23185 # Whether we need a single "-rpath" flag with a separated argument.
23186 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23188 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23189 # DIR into the resulting binary.
23190 hardcode_direct=$hardcode_direct
23192 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23193 # DIR into the resulting binary and the resulting library dependency is
23194 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23195 # library is relocated.
23196 hardcode_direct_absolute=$hardcode_direct_absolute
23198 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23199 # into the resulting binary.
23200 hardcode_minus_L=$hardcode_minus_L
23202 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23203 # into the resulting binary.
23204 hardcode_shlibpath_var=$hardcode_shlibpath_var
23206 # Set to "yes" if building a shared library automatically hardcodes DIR
23207 # into the library and all subsequent libraries and executables linked
23208 # against it.
23209 hardcode_automatic=$hardcode_automatic
23211 # Set to yes if linker adds runtime paths of dependent libraries
23212 # to runtime path list.
23213 inherit_rpath=$inherit_rpath
23215 # Whether libtool must link a program against all its dependency libraries.
23216 link_all_deplibs=$link_all_deplibs
23218 # Fix the shell variable \$srcfile for the compiler.
23219 fix_srcfile_path=$lt_fix_srcfile_path
23221 # Set to "yes" if exported symbols are required.
23222 always_export_symbols=$always_export_symbols
23224 # The commands to list exported symbols.
23225 export_symbols_cmds=$lt_export_symbols_cmds
23227 # Symbols that should not be listed in the preloaded symbols.
23228 exclude_expsyms=$lt_exclude_expsyms
23230 # Symbols that must always be exported.
23231 include_expsyms=$lt_include_expsyms
23233 # Commands necessary for linking programs (against libraries) with templates.
23234 prelink_cmds=$lt_prelink_cmds
23236 # Specify filename containing input files.
23237 file_list_spec=$lt_file_list_spec
23239 # How to hardcode a shared library path into an executable.
23240 hardcode_action=$hardcode_action
23242 # ### END LIBTOOL CONFIG
23244 _LT_EOF
23246 case $host_os in
23247 aix3*)
23248 cat <<\_LT_EOF >> "$cfgfile"
23249 # AIX sometimes has problems with the GCC collect2 program. For some
23250 # reason, if we set the COLLECT_NAMES environment variable, the problems
23251 # vanish in a puff of smoke.
23252 if test "X${COLLECT_NAMES+set}" != Xset; then
23253 COLLECT_NAMES=
23254 export COLLECT_NAMES
23256 _LT_EOF
23258 esac
23261 ltmain="$ac_aux_dir/ltmain.sh"
23264 # We use sed instead of cat because bash on DJGPP gets confused if
23265 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23266 # text mode, it properly converts lines to CR/LF. This bash problem
23267 # is reportedly fixed, but why not run on old versions too?
23268 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
23269 || (rm -f "$cfgfile"; exit 1)
23271 case $xsi_shell in
23272 yes)
23273 cat << \_LT_EOF >> "$cfgfile"
23274 # func_dirname file append nondir_replacement
23275 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
23276 # otherwise set result to NONDIR_REPLACEMENT.
23277 func_dirname ()
23279 case ${1} in
23280 */*) func_dirname_result="${1%/*}${2}" ;;
23281 * ) func_dirname_result="${3}" ;;
23282 esac
23285 # func_basename file
23286 func_basename ()
23288 func_basename_result="${1##*/}"
23291 # func_stripname prefix suffix name
23292 # strip PREFIX and SUFFIX off of NAME.
23293 # PREFIX and SUFFIX must not contain globbing or regex special
23294 # characters, hashes, percent signs, but SUFFIX may contain a leading
23295 # dot (in which case that matches only a dot).
23296 func_stripname ()
23298 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
23299 # positional parameters, so assign one to ordinary parameter first.
23300 func_stripname_result=${3}
23301 func_stripname_result=${func_stripname_result#"${1}"}
23302 func_stripname_result=${func_stripname_result%"${2}"}
23305 # func_opt_split
23306 func_opt_split ()
23308 func_opt_split_opt=${1%%=*}
23309 func_opt_split_arg=${1#*=}
23312 # func_lo2o object
23313 func_lo2o ()
23315 case ${1} in
23316 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
23317 *) func_lo2o_result=${1} ;;
23318 esac
23320 _LT_EOF
23322 *) # Bourne compatible functions.
23323 cat << \_LT_EOF >> "$cfgfile"
23324 # func_dirname file append nondir_replacement
23325 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
23326 # otherwise set result to NONDIR_REPLACEMENT.
23327 func_dirname ()
23329 # Extract subdirectory from the argument.
23330 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
23331 if test "X$func_dirname_result" = "X${1}"; then
23332 func_dirname_result="${3}"
23333 else
23334 func_dirname_result="$func_dirname_result${2}"
23338 # func_basename file
23339 func_basename ()
23341 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
23344 # func_stripname prefix suffix name
23345 # strip PREFIX and SUFFIX off of NAME.
23346 # PREFIX and SUFFIX must not contain globbing or regex special
23347 # characters, hashes, percent signs, but SUFFIX may contain a leading
23348 # dot (in which case that matches only a dot).
23349 # func_strip_suffix prefix name
23350 func_stripname ()
23352 case ${2} in
23353 .*) func_stripname_result=`$ECHO "X${3}" \
23354 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
23355 *) func_stripname_result=`$ECHO "X${3}" \
23356 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
23357 esac
23360 # sed scripts:
23361 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
23362 my_sed_long_arg='1s/^-[^=]*=//'
23364 # func_opt_split
23365 func_opt_split ()
23367 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
23368 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
23371 # func_lo2o object
23372 func_lo2o ()
23374 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
23376 _LT_EOF
23377 esac
23379 case $lt_shell_append in
23380 yes)
23381 cat << \_LT_EOF >> "$cfgfile"
23383 # func_append var value
23384 # Append VALUE to the end of shell variable VAR.
23385 func_append ()
23387 eval "$1+=\$2"
23389 _LT_EOF
23392 cat << \_LT_EOF >> "$cfgfile"
23394 # func_append var value
23395 # Append VALUE to the end of shell variable VAR.
23396 func_append ()
23398 eval "$1=\$$1\$2"
23400 _LT_EOF
23402 esac
23405 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
23406 || (rm -f "$cfgfile"; exit 1)
23408 mv -f "$cfgfile" "$ofile" ||
23409 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23410 chmod +x "$ofile"
23413 default-1 )
23414 for ac_file in $CONFIG_FILES; do
23415 # Support "outfile[:infile[:infile...]]"
23416 case "$ac_file" in
23417 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23418 esac
23419 # PO directories have a Makefile.in generated from Makefile.in.in.
23420 case "$ac_file" in */Makefile.in)
23421 # Adjust a relative srcdir.
23422 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
23423 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
23424 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
23425 # In autoconf-2.13 it is called $ac_given_srcdir.
23426 # In autoconf-2.50 it is called $srcdir.
23427 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
23428 case "$ac_given_srcdir" in
23429 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
23430 /*) top_srcdir="$ac_given_srcdir" ;;
23431 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
23432 esac
23433 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
23434 rm -f "$ac_dir/POTFILES"
23435 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
23436 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
23437 POMAKEFILEDEPS="POTFILES.in"
23438 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
23439 # on $ac_dir but don't depend on user-specified configuration
23440 # parameters.
23441 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
23442 # The LINGUAS file contains the set of available languages.
23443 if test -n "$OBSOLETE_ALL_LINGUAS"; then
23444 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
23446 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
23447 # Hide the ALL_LINGUAS assigment from automake.
23448 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
23449 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
23450 else
23451 # The set of available languages was given in configure.in.
23452 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
23454 case "$ac_given_srcdir" in
23455 .) srcdirpre= ;;
23456 *) srcdirpre='$(srcdir)/' ;;
23457 esac
23458 POFILES=
23459 GMOFILES=
23460 UPDATEPOFILES=
23461 DUMMYPOFILES=
23462 for lang in $ALL_LINGUAS; do
23463 POFILES="$POFILES $srcdirpre$lang.po"
23464 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23465 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
23466 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
23467 done
23468 # CATALOGS depends on both $ac_dir and the user's LINGUAS
23469 # environment variable.
23470 INST_LINGUAS=
23471 if test -n "$ALL_LINGUAS"; then
23472 for presentlang in $ALL_LINGUAS; do
23473 useit=no
23474 if test "%UNSET%" != "$LINGUAS"; then
23475 desiredlanguages="$LINGUAS"
23476 else
23477 desiredlanguages="$ALL_LINGUAS"
23479 for desiredlang in $desiredlanguages; do
23480 # Use the presentlang catalog if desiredlang is
23481 # a. equal to presentlang, or
23482 # b. a variant of presentlang (because in this case,
23483 # presentlang can be used as a fallback for messages
23484 # which are not translated in the desiredlang catalog).
23485 case "$desiredlang" in
23486 "$presentlang"*) useit=yes;;
23487 esac
23488 done
23489 if test $useit = yes; then
23490 INST_LINGUAS="$INST_LINGUAS $presentlang"
23492 done
23494 CATALOGS=
23495 if test -n "$INST_LINGUAS"; then
23496 for lang in $INST_LINGUAS; do
23497 CATALOGS="$CATALOGS $lang.gmo"
23498 done
23500 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
23501 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
23502 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
23503 if test -f "$f"; then
23504 case "$f" in
23505 *.orig | *.bak | *~) ;;
23506 *) cat "$f" >> "$ac_dir/Makefile" ;;
23507 esac
23509 done
23512 esac
23513 done ;;
23514 bfd_stdint.h )
23515 if test "$GCC" = yes; then
23516 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
23517 else
23518 echo "/* generated for $CC */" > tmp-stdint.h
23521 sed 's/^ *//' >> tmp-stdint.h <<EOF
23523 #ifndef GCC_GENERATED_STDINT_H
23524 #define GCC_GENERATED_STDINT_H 1
23526 #include <sys/types.h>
23529 if test "$acx_cv_header_stdint" != stdint.h; then
23530 echo "#include <stddef.h>" >> tmp-stdint.h
23532 if test "$acx_cv_header_stdint" != stddef.h; then
23533 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
23536 sed 's/^ *//' >> tmp-stdint.h <<EOF
23537 /* glibc uses these symbols as guards to prevent redefinitions. */
23538 #ifdef __int8_t_defined
23539 #define _INT8_T
23540 #define _INT16_T
23541 #define _INT32_T
23542 #endif
23543 #ifdef __uint32_t_defined
23544 #define _UINT32_T
23545 #endif
23549 # ----------------- done header, emit basic int types -------------
23550 if test "$acx_cv_header_stdint" = stddef.h; then
23551 sed 's/^ *//' >> tmp-stdint.h <<EOF
23553 #ifndef _UINT8_T
23554 #define _UINT8_T
23555 #ifndef __uint8_t_defined
23556 #define __uint8_t_defined
23557 typedef unsigned $acx_cv_type_int8_t uint8_t;
23558 #endif
23559 #endif
23561 #ifndef _UINT16_T
23562 #define _UINT16_T
23563 #ifndef __uint16_t_defined
23564 #define __uint16_t_defined
23565 typedef unsigned $acx_cv_type_int16_t uint16_t;
23566 #endif
23567 #endif
23569 #ifndef _UINT32_T
23570 #define _UINT32_T
23571 #ifndef __uint32_t_defined
23572 #define __uint32_t_defined
23573 typedef unsigned $acx_cv_type_int32_t uint32_t;
23574 #endif
23575 #endif
23577 #ifndef _INT8_T
23578 #define _INT8_T
23579 #ifndef __int8_t_defined
23580 #define __int8_t_defined
23581 typedef $acx_cv_type_int8_t int8_t;
23582 #endif
23583 #endif
23585 #ifndef _INT16_T
23586 #define _INT16_T
23587 #ifndef __int16_t_defined
23588 #define __int16_t_defined
23589 typedef $acx_cv_type_int16_t int16_t;
23590 #endif
23591 #endif
23593 #ifndef _INT32_T
23594 #define _INT32_T
23595 #ifndef __int32_t_defined
23596 #define __int32_t_defined
23597 typedef $acx_cv_type_int32_t int32_t;
23598 #endif
23599 #endif
23601 elif test "$ac_cv_type_u_int32_t" = yes; then
23602 sed 's/^ *//' >> tmp-stdint.h <<EOF
23604 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
23605 #ifndef _INT8_T
23606 #define _INT8_T
23607 #endif
23608 #ifndef _INT16_T
23609 #define _INT16_T
23610 #endif
23611 #ifndef _INT32_T
23612 #define _INT32_T
23613 #endif
23615 #ifndef _UINT8_T
23616 #define _UINT8_T
23617 #ifndef __uint8_t_defined
23618 #define __uint8_t_defined
23619 typedef u_int8_t uint8_t;
23620 #endif
23621 #endif
23623 #ifndef _UINT16_T
23624 #define _UINT16_T
23625 #ifndef __uint16_t_defined
23626 #define __uint16_t_defined
23627 typedef u_int16_t uint16_t;
23628 #endif
23629 #endif
23631 #ifndef _UINT32_T
23632 #define _UINT32_T
23633 #ifndef __uint32_t_defined
23634 #define __uint32_t_defined
23635 typedef u_int32_t uint32_t;
23636 #endif
23637 #endif
23639 else
23640 sed 's/^ *//' >> tmp-stdint.h <<EOF
23642 /* Some systems have guard macros to prevent redefinitions, define them. */
23643 #ifndef _INT8_T
23644 #define _INT8_T
23645 #endif
23646 #ifndef _INT16_T
23647 #define _INT16_T
23648 #endif
23649 #ifndef _INT32_T
23650 #define _INT32_T
23651 #endif
23652 #ifndef _UINT8_T
23653 #define _UINT8_T
23654 #endif
23655 #ifndef _UINT16_T
23656 #define _UINT16_T
23657 #endif
23658 #ifndef _UINT32_T
23659 #define _UINT32_T
23660 #endif
23664 # ------------- done basic int types, emit int64_t types ------------
23665 if test "$ac_cv_type_uint64_t" = yes; then
23666 sed 's/^ *//' >> tmp-stdint.h <<EOF
23668 /* system headers have good uint64_t and int64_t */
23669 #ifndef _INT64_T
23670 #define _INT64_T
23671 #endif
23672 #ifndef _UINT64_T
23673 #define _UINT64_T
23674 #endif
23676 elif test "$ac_cv_type_u_int64_t" = yes; then
23677 sed 's/^ *//' >> tmp-stdint.h <<EOF
23679 /* system headers have an u_int64_t (and int64_t) */
23680 #ifndef _INT64_T
23681 #define _INT64_T
23682 #endif
23683 #ifndef _UINT64_T
23684 #define _UINT64_T
23685 #ifndef __uint64_t_defined
23686 #define __uint64_t_defined
23687 typedef u_int64_t uint64_t;
23688 #endif
23689 #endif
23691 elif test -n "$acx_cv_type_int64_t"; then
23692 sed 's/^ *//' >> tmp-stdint.h <<EOF
23694 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
23695 #ifndef _INT64_T
23696 #define _INT64_T
23697 typedef $acx_cv_type_int64_t int64_t;
23698 #endif
23699 #ifndef _UINT64_T
23700 #define _UINT64_T
23701 #ifndef __uint64_t_defined
23702 #define __uint64_t_defined
23703 typedef unsigned $acx_cv_type_int64_t uint64_t;
23704 #endif
23705 #endif
23707 else
23708 sed 's/^ *//' >> tmp-stdint.h <<EOF
23710 /* some common heuristics for int64_t, using compiler-specific tests */
23711 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
23712 #ifndef _INT64_T
23713 #define _INT64_T
23714 #ifndef __int64_t_defined
23715 typedef long long int64_t;
23716 #endif
23717 #endif
23718 #ifndef _UINT64_T
23719 #define _UINT64_T
23720 typedef unsigned long long uint64_t;
23721 #endif
23723 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
23724 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
23725 does not implement __extension__. But that compiler doesn't define
23726 __GNUC_MINOR__. */
23727 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
23728 # define __extension__
23729 # endif
23731 # ifndef _INT64_T
23732 # define _INT64_T
23733 __extension__ typedef long long int64_t;
23734 # endif
23735 # ifndef _UINT64_T
23736 # define _UINT64_T
23737 __extension__ typedef unsigned long long uint64_t;
23738 # endif
23740 #elif !defined __STRICT_ANSI__
23741 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
23743 # ifndef _INT64_T
23744 # define _INT64_T
23745 typedef __int64 int64_t;
23746 # endif
23747 # ifndef _UINT64_T
23748 # define _UINT64_T
23749 typedef unsigned __int64 uint64_t;
23750 # endif
23751 # endif /* compiler */
23753 #endif /* ANSI version */
23757 # ------------- done int64_t types, emit intptr types ------------
23758 if test "$ac_cv_type_uintptr_t" != yes; then
23759 sed 's/^ *//' >> tmp-stdint.h <<EOF
23761 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
23762 #ifndef __uintptr_t_defined
23763 typedef u$acx_cv_type_intptr_t uintptr_t;
23764 #endif
23765 #ifndef __intptr_t_defined
23766 typedef $acx_cv_type_intptr_t intptr_t;
23767 #endif
23771 # ------------- done intptr types, emit int_least types ------------
23772 if test "$ac_cv_type_int_least32_t" != yes; then
23773 sed 's/^ *//' >> tmp-stdint.h <<EOF
23775 /* Define int_least types */
23776 typedef int8_t int_least8_t;
23777 typedef int16_t int_least16_t;
23778 typedef int32_t int_least32_t;
23779 #ifdef _INT64_T
23780 typedef int64_t int_least64_t;
23781 #endif
23783 typedef uint8_t uint_least8_t;
23784 typedef uint16_t uint_least16_t;
23785 typedef uint32_t uint_least32_t;
23786 #ifdef _UINT64_T
23787 typedef uint64_t uint_least64_t;
23788 #endif
23792 # ------------- done intptr types, emit int_fast types ------------
23793 if test "$ac_cv_type_int_fast32_t" != yes; then
23794 sed 's/^ *//' >> tmp-stdint.h <<EOF
23796 /* Define int_fast types. short is often slow */
23797 typedef int8_t int_fast8_t;
23798 typedef int int_fast16_t;
23799 typedef int32_t int_fast32_t;
23800 #ifdef _INT64_T
23801 typedef int64_t int_fast64_t;
23802 #endif
23804 typedef uint8_t uint_fast8_t;
23805 typedef unsigned int uint_fast16_t;
23806 typedef uint32_t uint_fast32_t;
23807 #ifdef _UINT64_T
23808 typedef uint64_t uint_fast64_t;
23809 #endif
23813 if test "$ac_cv_type_uintmax_t" != yes; then
23814 sed 's/^ *//' >> tmp-stdint.h <<EOF
23816 /* Define intmax based on what we found */
23817 #ifdef _INT64_T
23818 typedef int64_t intmax_t;
23819 #else
23820 typedef long intmax_t;
23821 #endif
23822 #ifdef _UINT64_T
23823 typedef uint64_t uintmax_t;
23824 #else
23825 typedef unsigned long uintmax_t;
23826 #endif
23830 sed 's/^ *//' >> tmp-stdint.h <<EOF
23832 #endif /* GCC_GENERATED_STDINT_H */
23835 if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
23836 rm -f tmp-stdint.h
23837 else
23838 mv -f tmp-stdint.h bfd_stdint.h
23842 default )
23843 case "$srcdir" in
23844 .) srcdirpre= ;;
23845 *) srcdirpre='$(srcdir)/' ;;
23846 esac
23847 POFILES=
23848 GMOFILES=
23849 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
23850 if test $lang != dummy; then
23851 POFILES="$POFILES $srcdirpre$lang.po"
23852 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23854 done
23855 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
23856 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
23857 -e "s,@POFILES@,$POFILES," \
23858 -e "s,@GMOFILES@,$GMOFILES," \
23859 po/Makefile.in > po/Makefile ;;
23860 esac
23861 done
23862 _ACEOF
23864 cat >>$CONFIG_STATUS <<\_ACEOF
23866 { (exit 0); exit 0; }
23867 _ACEOF
23868 chmod +x $CONFIG_STATUS
23869 ac_clean_files=$ac_clean_files_save
23872 # configure is writing to config.log, and then calls config.status.
23873 # config.status does its own redirection, appending to config.log.
23874 # Unfortunately, on DOS this fails, as config.log is still kept open
23875 # by configure, so config.status won't be able to write to it; its
23876 # output is simply discarded. So we exec the FD to /dev/null,
23877 # effectively closing config.log, so it can be properly (re)opened and
23878 # appended to by config.status. When coming back to configure, we
23879 # need to make the FD available again.
23880 if test "$no_create" != yes; then
23881 ac_cs_success=:
23882 ac_config_status_args=
23883 test "$silent" = yes &&
23884 ac_config_status_args="$ac_config_status_args --quiet"
23885 exec 5>/dev/null
23886 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23887 exec 5>>config.log
23888 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23889 # would make configure fail if this is the last instruction.
23890 $ac_cs_success || { (exit 1); exit 1; }