2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="libbfd.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 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 LN_S LIBTOOL WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG WIN32LDFLAGS WIN32LIBADD TDEFINES wordsize bfd_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults LIBOBJS LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
846 if test -n "$ac_init_help"; then
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
855 --enable-shared=PKGS build shared libraries default=no
856 --enable-static=PKGS build static libraries default=yes
857 --enable-fast-install=PKGS optimize for fast installation default=yes
858 --disable-libtool-lock avoid locking (might break parallel builds)
859 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
860 --enable-targets alternative target configurations
861 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
862 --enable-werror treat compile warnings as errors
863 --enable-build-warnings Enable build-time compiler warnings
864 --enable-maintainer-mode enable make rules and dependencies not useful
865 (and sometimes confusing) to the casual installer
866 --enable-install-libbfd controls installation of libbfd and related headers
867 --disable-nls do not use Native Language Support
870 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
871 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
872 --with-gnu-ld assume the C compiler uses GNU ld default=no
873 --with-pic try to use only PIC/non-PIC objects default=use both
874 --with-mmap try using mmap for BFD input files if available
875 --with-included-gettext use the GNU gettext library included here
877 Some influential environment variables:
878 CC C compiler command
879 CFLAGS C compiler flags
880 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
881 nonstandard directory <lib dir>
882 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
883 headers in a nonstandard directory <include dir>
886 Use these variables to override the choices made by `configure' or to help
887 it to find libraries and programs with nonstandard names/locations.
892 if test "$ac_init_help" = "recursive"; then
893 # If there are subdirs, report their specific --help.
895 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
896 test -d $ac_dir || continue
899 if test "$ac_dir" != .; then
900 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
901 # A "../" for each directory in $ac_dir_suffix.
902 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
904 ac_dir_suffix= ac_top_builddir=
908 .) # No --srcdir option. We are building in place.
910 if test -z "$ac_top_builddir"; then
913 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
915 [\\/]* | ?:[\\/]* ) # Absolute path.
916 ac_srcdir=$srcdir$ac_dir_suffix;
917 ac_top_srcdir=$srcdir ;;
919 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
920 ac_top_srcdir=$ac_top_builddir$srcdir ;;
923 # Do not use `cd foo && pwd` to compute absolute paths, because
924 # the directories may not exist.
926 .) ac_abs_builddir="$ac_dir";;
929 .) ac_abs_builddir=`pwd`;;
930 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
931 *) ac_abs_builddir=`pwd`/"$ac_dir";;
934 case $ac_abs_builddir in
935 .) ac_abs_top_builddir=${ac_top_builddir}.;;
937 case ${ac_top_builddir}. in
938 .) ac_abs_top_builddir=$ac_abs_builddir;;
939 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
940 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
943 case $ac_abs_builddir in
944 .) ac_abs_srcdir=$ac_srcdir;;
947 .) ac_abs_srcdir=$ac_abs_builddir;;
948 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
949 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
952 case $ac_abs_builddir in
953 .) ac_abs_top_srcdir=$ac_top_srcdir;;
955 case $ac_top_srcdir in
956 .) ac_abs_top_srcdir=$ac_abs_builddir;;
957 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
958 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
963 # Check for guested configure; otherwise get Cygnus style configure.
964 if test -f $ac_srcdir/configure.gnu; then
966 $SHELL $ac_srcdir/configure.gnu --help=recursive
967 elif test -f $ac_srcdir/configure; then
969 $SHELL $ac_srcdir/configure --help=recursive
970 elif test -f $ac_srcdir/configure.ac ||
971 test -f $ac_srcdir/configure.in; then
975 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
981 test -n "$ac_init_help" && exit 0
982 if $ac_init_version; then
985 Copyright (C) 2003 Free Software Foundation, Inc.
986 This configure script is free software; the Free Software Foundation
987 gives unlimited permission to copy, distribute and modify it.
993 This file contains any messages produced by compilers while
994 running configure, to aid debugging if configure makes a mistake.
996 It was created by $as_me, which was
997 generated by GNU Autoconf 2.59. Invocation command line was
1008 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1009 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1010 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1011 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1012 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1014 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1015 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1017 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1018 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1019 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1020 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1021 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1022 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1023 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1031 test -z "$as_dir" && as_dir=.
1032 echo "PATH: $as_dir"
1047 # Keep a trace of the command line.
1048 # Strip out --no-create and --no-recursion so they do not pile up.
1049 # Strip out --silent because we don't want to record it for future runs.
1050 # Also quote any args containing shell meta-characters.
1051 # Make two passes to allow for proper duplicate-argument suppression.
1056 ac_must_keep_next=false
1062 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064 | -silent | --silent | --silen | --sile | --sil)
1066 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1067 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1070 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1072 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1073 if test $ac_must_keep_next = true; then
1074 ac_must_keep_next=false # Got value, back to normal.
1077 *=* | --config-cache | -C | -disable-* | --disable-* \
1078 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1079 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1080 | -with-* | --with-* | -without-* | --without-* | --x)
1081 case "$ac_configure_args0 " in
1082 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1085 -* ) ac_must_keep_next=true ;;
1088 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1089 # Get rid of the leading space.
1095 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1096 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1098 # When interrupted or exit'd, cleanup temporary files, and complete
1099 # config.log. We remove comments because anyway the quotes in there
1100 # would cause problems or look ugly.
1101 # WARNING: Be sure not to use single quotes in there, as some shells,
1102 # such as our DU 5.0 friend, will then `close' the trap.
1103 trap 'exit_status=$?
1104 # Save into config.log some information that might help in debugging.
1109 ## ---------------- ##
1110 ## Cache variables. ##
1111 ## ---------------- ##
1114 # The following way of writing the cache mishandles newlines in values,
1117 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1120 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1125 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1132 ## ----------------- ##
1133 ## Output variables. ##
1134 ## ----------------- ##
1137 for ac_var in $ac_subst_vars
1139 eval ac_val=$`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1144 if test -n "$ac_subst_files"; then
1151 for ac_var in $ac_subst_files
1153 eval ac_val=$`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1159 if test -s confdefs.h; then
1166 sed "/^$/d" confdefs.h | sort
1169 test "$ac_signal" != 0 &&
1170 echo "$as_me: caught signal $ac_signal"
1171 echo "$as_me: exit $exit_status"
1173 rm -f core *.core &&
1174 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1177 for ac_signal in 1 2 13 15; do
1178 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1183 rm -rf conftest* confdefs.h
1184 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1187 # Predefined preprocessor variables.
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_NAME "$PACKAGE_NAME"
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_STRING "$PACKAGE_STRING"
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1214 # Let the site file select an alternate cache file if it wants to.
1215 # Prefer explicitly selected file to automatically selected ones.
1216 if test -z "$CONFIG_SITE"; then
1217 if test "x$prefix" != xNONE; then
1218 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1220 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1223 for ac_site_file in $CONFIG_SITE; do
1224 if test -r "$ac_site_file"; then
1225 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1226 echo "$as_me: loading site script $ac_site_file" >&6;}
1227 sed 's/^/| /' "$ac_site_file" >&5
1232 if test -r "$cache_file"; then
1233 # Some versions of bash will fail to source /dev/null (special
1234 # files actually), so we avoid doing that.
1235 if test -f "$cache_file"; then
1236 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1237 echo "$as_me: loading cache $cache_file" >&6;}
1239 [\\/]* | ?:[\\/]* ) . $cache_file;;
1240 *) . ./$cache_file;;
1244 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1245 echo "$as_me: creating cache $cache_file" >&6;}
1249 # Check that the precious variables saved in the cache have kept the same
1251 ac_cache_corrupted=false
1252 for ac_var in `(set) 2>&1 |
1253 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1254 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1255 eval ac_new_set=\$ac_env_${ac_var}_set
1256 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1257 eval ac_new_val="\$ac_env_${ac_var}_value"
1258 case $ac_old_set,$ac_new_set in
1260 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1261 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1262 ac_cache_corrupted=: ;;
1264 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1265 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1266 ac_cache_corrupted=: ;;
1269 if test "x$ac_old_val" != "x$ac_new_val"; then
1270 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1271 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1272 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1273 echo "$as_me: former value: $ac_old_val" >&2;}
1274 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1275 echo "$as_me: current value: $ac_new_val" >&2;}
1276 ac_cache_corrupted=:
1279 # Pass precious variables to config.status.
1280 if test "$ac_new_set" = set; then
1282 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1283 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1284 *) ac_arg=$ac_var=$ac_new_val ;;
1286 case " $ac_configure_args " in
1287 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1288 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1292 if $ac_cache_corrupted; then
1293 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1294 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1295 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1296 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1297 { (exit 1); exit 1; }; }
1301 ac_cpp='$CPP $CPPFLAGS'
1302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1327 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1328 if test -f $ac_dir/install-sh; then
1330 ac_install_sh="$ac_aux_dir/install-sh -c"
1332 elif test -f $ac_dir/install.sh; then
1334 ac_install_sh="$ac_aux_dir/install.sh -c"
1336 elif test -f $ac_dir/shtool; then
1338 ac_install_sh="$ac_aux_dir/shtool install -c"
1342 if test -z "$ac_aux_dir"; then
1343 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1344 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1345 { (exit 1); exit 1; }; }
1347 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1348 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1349 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1351 # Make sure we can run config.sub.
1352 $ac_config_sub sun4 >/dev/null 2>&1 ||
1353 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1354 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1355 { (exit 1); exit 1; }; }
1357 echo "$as_me:$LINENO: checking build system type" >&5
1358 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1359 if test "${ac_cv_build+set}" = set; then
1360 echo $ECHO_N "(cached) $ECHO_C" >&6
1362 ac_cv_build_alias=$build_alias
1363 test -z "$ac_cv_build_alias" &&
1364 ac_cv_build_alias=`$ac_config_guess`
1365 test -z "$ac_cv_build_alias" &&
1366 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1367 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1368 { (exit 1); exit 1; }; }
1369 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1370 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1371 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1372 { (exit 1); exit 1; }; }
1375 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1376 echo "${ECHO_T}$ac_cv_build" >&6
1378 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1379 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1380 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1383 echo "$as_me:$LINENO: checking host system type" >&5
1384 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1385 if test "${ac_cv_host+set}" = set; then
1386 echo $ECHO_N "(cached) $ECHO_C" >&6
1388 ac_cv_host_alias=$host_alias
1389 test -z "$ac_cv_host_alias" &&
1390 ac_cv_host_alias=$ac_cv_build_alias
1391 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1392 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1393 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1394 { (exit 1); exit 1; }; }
1397 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1398 echo "${ECHO_T}$ac_cv_host" >&6
1400 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1401 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1402 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1405 echo "$as_me:$LINENO: checking target system type" >&5
1406 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1407 if test "${ac_cv_target+set}" = set; then
1408 echo $ECHO_N "(cached) $ECHO_C" >&6
1410 ac_cv_target_alias=$target_alias
1411 test "x$ac_cv_target_alias" = "x" &&
1412 ac_cv_target_alias=$ac_cv_host_alias
1413 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1414 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1415 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1416 { (exit 1); exit 1; }; }
1419 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1420 echo "${ECHO_T}$ac_cv_target" >&6
1421 target=$ac_cv_target
1422 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1423 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1424 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1427 # The aliases save the names the user supplied, while $host etc.
1428 # will get canonicalized.
1429 test -n "$target_alias" &&
1430 test "$program_prefix$program_suffix$program_transform_name" = \
1432 program_prefix=${target_alias}-
1434 ac_cpp='$CPP $CPPFLAGS'
1435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1438 if test -n "$ac_tool_prefix"; then
1439 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1440 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1441 echo "$as_me:$LINENO: checking for $ac_word" >&5
1442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1443 if test "${ac_cv_prog_CC+set}" = set; then
1444 echo $ECHO_N "(cached) $ECHO_C" >&6
1446 if test -n "$CC"; then
1447 ac_cv_prog_CC="$CC" # Let the user override the test.
1449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1453 test -z "$as_dir" && as_dir=.
1454 for ac_exec_ext in '' $ac_executable_extensions; do
1455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1456 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1466 if test -n "$CC"; then
1467 echo "$as_me:$LINENO: result: $CC" >&5
1468 echo "${ECHO_T}$CC" >&6
1470 echo "$as_me:$LINENO: result: no" >&5
1471 echo "${ECHO_T}no" >&6
1475 if test -z "$ac_cv_prog_CC"; then
1477 # Extract the first word of "gcc", so it can be a program name with args.
1478 set dummy gcc; ac_word=$2
1479 echo "$as_me:$LINENO: checking for $ac_word" >&5
1480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1481 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1482 echo $ECHO_N "(cached) $ECHO_C" >&6
1484 if test -n "$ac_ct_CC"; then
1485 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1491 test -z "$as_dir" && as_dir=.
1492 for ac_exec_ext in '' $ac_executable_extensions; do
1493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1494 ac_cv_prog_ac_ct_CC="gcc"
1495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1503 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1504 if test -n "$ac_ct_CC"; then
1505 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1506 echo "${ECHO_T}$ac_ct_CC" >&6
1508 echo "$as_me:$LINENO: result: no" >&5
1509 echo "${ECHO_T}no" >&6
1517 if test -z "$CC"; then
1518 if test -n "$ac_tool_prefix"; then
1519 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1520 set dummy ${ac_tool_prefix}cc; ac_word=$2
1521 echo "$as_me:$LINENO: checking for $ac_word" >&5
1522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1523 if test "${ac_cv_prog_CC+set}" = set; then
1524 echo $ECHO_N "(cached) $ECHO_C" >&6
1526 if test -n "$CC"; then
1527 ac_cv_prog_CC="$CC" # Let the user override the test.
1529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1533 test -z "$as_dir" && as_dir=.
1534 for ac_exec_ext in '' $ac_executable_extensions; do
1535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1536 ac_cv_prog_CC="${ac_tool_prefix}cc"
1537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1546 if test -n "$CC"; then
1547 echo "$as_me:$LINENO: result: $CC" >&5
1548 echo "${ECHO_T}$CC" >&6
1550 echo "$as_me:$LINENO: result: no" >&5
1551 echo "${ECHO_T}no" >&6
1555 if test -z "$ac_cv_prog_CC"; then
1557 # Extract the first word of "cc", so it can be a program name with args.
1558 set dummy cc; ac_word=$2
1559 echo "$as_me:$LINENO: checking for $ac_word" >&5
1560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1561 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1564 if test -n "$ac_ct_CC"; then
1565 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1571 test -z "$as_dir" && as_dir=.
1572 for ac_exec_ext in '' $ac_executable_extensions; do
1573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1574 ac_cv_prog_ac_ct_CC="cc"
1575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1583 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1584 if test -n "$ac_ct_CC"; then
1585 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1586 echo "${ECHO_T}$ac_ct_CC" >&6
1588 echo "$as_me:$LINENO: result: no" >&5
1589 echo "${ECHO_T}no" >&6
1598 if test -z "$CC"; then
1599 # Extract the first word of "cc", so it can be a program name with args.
1600 set dummy cc; ac_word=$2
1601 echo "$as_me:$LINENO: checking for $ac_word" >&5
1602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1603 if test "${ac_cv_prog_CC+set}" = set; then
1604 echo $ECHO_N "(cached) $ECHO_C" >&6
1606 if test -n "$CC"; then
1607 ac_cv_prog_CC="$CC" # Let the user override the test.
1610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1614 test -z "$as_dir" && as_dir=.
1615 for ac_exec_ext in '' $ac_executable_extensions; do
1616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1617 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1618 ac_prog_rejected=yes
1622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1628 if test $ac_prog_rejected = yes; then
1629 # We found a bogon in the path, so make sure we never use it.
1630 set dummy $ac_cv_prog_CC
1632 if test $# != 0; then
1633 # We chose a different compiler from the bogus one.
1634 # However, it has the same basename, so the bogon will be chosen
1635 # first if we set CC to just the basename; use the full file name.
1637 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1643 if test -n "$CC"; then
1644 echo "$as_me:$LINENO: result: $CC" >&5
1645 echo "${ECHO_T}$CC" >&6
1647 echo "$as_me:$LINENO: result: no" >&5
1648 echo "${ECHO_T}no" >&6
1652 if test -z "$CC"; then
1653 if test -n "$ac_tool_prefix"; then
1656 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1657 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1658 echo "$as_me:$LINENO: checking for $ac_word" >&5
1659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1660 if test "${ac_cv_prog_CC+set}" = set; then
1661 echo $ECHO_N "(cached) $ECHO_C" >&6
1663 if test -n "$CC"; then
1664 ac_cv_prog_CC="$CC" # Let the user override the test.
1666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1670 test -z "$as_dir" && as_dir=.
1671 for ac_exec_ext in '' $ac_executable_extensions; do
1672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1673 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1683 if test -n "$CC"; then
1684 echo "$as_me:$LINENO: result: $CC" >&5
1685 echo "${ECHO_T}$CC" >&6
1687 echo "$as_me:$LINENO: result: no" >&5
1688 echo "${ECHO_T}no" >&6
1691 test -n "$CC" && break
1694 if test -z "$CC"; then
1698 # Extract the first word of "$ac_prog", so it can be a program name with args.
1699 set dummy $ac_prog; ac_word=$2
1700 echo "$as_me:$LINENO: checking for $ac_word" >&5
1701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1702 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1703 echo $ECHO_N "(cached) $ECHO_C" >&6
1705 if test -n "$ac_ct_CC"; then
1706 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712 test -z "$as_dir" && as_dir=.
1713 for ac_exec_ext in '' $ac_executable_extensions; do
1714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1715 ac_cv_prog_ac_ct_CC="$ac_prog"
1716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1724 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1725 if test -n "$ac_ct_CC"; then
1726 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1727 echo "${ECHO_T}$ac_ct_CC" >&6
1729 echo "$as_me:$LINENO: result: no" >&5
1730 echo "${ECHO_T}no" >&6
1733 test -n "$ac_ct_CC" && break
1742 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1743 See \`config.log' for more details." >&5
1744 echo "$as_me: error: no acceptable C compiler found in \$PATH
1745 See \`config.log' for more details." >&2;}
1746 { (exit 1); exit 1; }; }
1748 # Provide some information about the compiler.
1749 echo "$as_me:$LINENO:" \
1750 "checking for C compiler version" >&5
1751 ac_compiler=`set X $ac_compile; echo $2`
1752 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1753 (eval $ac_compiler --version </dev/null >&5) 2>&5
1755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1756 (exit $ac_status); }
1757 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1758 (eval $ac_compiler -v </dev/null >&5) 2>&5
1760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1761 (exit $ac_status); }
1762 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1763 (eval $ac_compiler -V </dev/null >&5) 2>&5
1765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1766 (exit $ac_status); }
1768 cat >conftest.$ac_ext <<_ACEOF
1771 cat confdefs.h >>conftest.$ac_ext
1772 cat >>conftest.$ac_ext <<_ACEOF
1773 /* end confdefs.h. */
1783 ac_clean_files_save=$ac_clean_files
1784 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1785 # Try to create an executable without -o first, disregard a.out.
1786 # It will help us diagnose broken compilers, and finding out an intuition
1788 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1789 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1790 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1791 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1792 (eval $ac_link_default) 2>&5
1794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795 (exit $ac_status); }; then
1796 # Find the output, starting from the most likely. This scheme is
1797 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1800 # Be careful to initialize this variable, since it used to be cached.
1801 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1803 # b.out is created by i960 compilers.
1804 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1806 test -f "$ac_file" || continue
1808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1811 # This is the source file.
1814 # We found the default executable, but exeext='' is most
1818 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1819 # FIXME: I believe we export ac_cv_exeext for Libtool,
1820 # but it would be cool to find out if it's true. Does anybody
1821 # maintain Libtool? --akim.
1829 echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1832 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1833 See \`config.log' for more details." >&5
1834 echo "$as_me: error: C compiler cannot create executables
1835 See \`config.log' for more details." >&2;}
1836 { (exit 77); exit 77; }; }
1839 ac_exeext=$ac_cv_exeext
1840 echo "$as_me:$LINENO: result: $ac_file" >&5
1841 echo "${ECHO_T}$ac_file" >&6
1843 # Check the compiler produces executables we can run. If not, either
1844 # the compiler is broken, or we cross compile.
1845 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1846 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1847 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1848 # If not cross compiling, check that we can run a simple program.
1849 if test "$cross_compiling" != yes; then
1850 if { ac_try='./$ac_file'
1851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1855 (exit $ac_status); }; }; then
1858 if test "$cross_compiling" = maybe; then
1861 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1862 If you meant to cross compile, use \`--host'.
1863 See \`config.log' for more details." >&5
1864 echo "$as_me: error: cannot run C compiled programs.
1865 If you meant to cross compile, use \`--host'.
1866 See \`config.log' for more details." >&2;}
1867 { (exit 1); exit 1; }; }
1871 echo "$as_me:$LINENO: result: yes" >&5
1872 echo "${ECHO_T}yes" >&6
1874 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1875 ac_clean_files=$ac_clean_files_save
1876 # Check the compiler produces executables we can run. If not, either
1877 # the compiler is broken, or we cross compile.
1878 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1879 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1880 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1881 echo "${ECHO_T}$cross_compiling" >&6
1883 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1884 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1886 (eval $ac_link) 2>&5
1888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889 (exit $ac_status); }; then
1890 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1891 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1892 # work properly (i.e., refer to `conftest.exe'), while it won't with
1894 for ac_file in conftest.exe conftest conftest.*; do
1895 test -f "$ac_file" || continue
1897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1898 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1905 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1906 See \`config.log' for more details." >&5
1907 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1908 See \`config.log' for more details." >&2;}
1909 { (exit 1); exit 1; }; }
1912 rm -f conftest$ac_cv_exeext
1913 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1914 echo "${ECHO_T}$ac_cv_exeext" >&6
1916 rm -f conftest.$ac_ext
1917 EXEEXT=$ac_cv_exeext
1919 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1920 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1921 if test "${ac_cv_objext+set}" = set; then
1922 echo $ECHO_N "(cached) $ECHO_C" >&6
1924 cat >conftest.$ac_ext <<_ACEOF
1927 cat confdefs.h >>conftest.$ac_ext
1928 cat >>conftest.$ac_ext <<_ACEOF
1929 /* end confdefs.h. */
1939 rm -f conftest.o conftest.obj
1940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1941 (eval $ac_compile) 2>&5
1943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944 (exit $ac_status); }; then
1945 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1948 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1953 echo "$as_me: failed program was:" >&5
1954 sed 's/^/| /' conftest.$ac_ext >&5
1956 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1957 See \`config.log' for more details." >&5
1958 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1959 See \`config.log' for more details." >&2;}
1960 { (exit 1); exit 1; }; }
1963 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1965 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1966 echo "${ECHO_T}$ac_cv_objext" >&6
1967 OBJEXT=$ac_cv_objext
1969 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1970 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1971 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1974 cat >conftest.$ac_ext <<_ACEOF
1977 cat confdefs.h >>conftest.$ac_ext
1978 cat >>conftest.$ac_ext <<_ACEOF
1979 /* end confdefs.h. */
1992 rm -f conftest.$ac_objext
1993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1994 (eval $ac_compile) 2>conftest.er1
1996 grep -v '^ *+' conftest.er1 >conftest.err
1998 cat conftest.err >&5
1999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2000 (exit $ac_status); } &&
2001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006 (exit $ac_status); }; } &&
2007 { ac_try='test -s conftest.$ac_objext'
2008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2012 (exit $ac_status); }; }; then
2015 echo "$as_me: failed program was:" >&5
2016 sed 's/^/| /' conftest.$ac_ext >&5
2020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2021 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2024 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2025 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2026 GCC=`test $ac_compiler_gnu = yes && echo yes`
2027 ac_test_CFLAGS=${CFLAGS+set}
2028 ac_save_CFLAGS=$CFLAGS
2030 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2031 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2032 if test "${ac_cv_prog_cc_g+set}" = set; then
2033 echo $ECHO_N "(cached) $ECHO_C" >&6
2035 cat >conftest.$ac_ext <<_ACEOF
2038 cat confdefs.h >>conftest.$ac_ext
2039 cat >>conftest.$ac_ext <<_ACEOF
2040 /* end confdefs.h. */
2050 rm -f conftest.$ac_objext
2051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2052 (eval $ac_compile) 2>conftest.er1
2054 grep -v '^ *+' conftest.er1 >conftest.err
2056 cat conftest.err >&5
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); } &&
2059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064 (exit $ac_status); }; } &&
2065 { ac_try='test -s conftest.$ac_objext'
2066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070 (exit $ac_status); }; }; then
2073 echo "$as_me: failed program was:" >&5
2074 sed 's/^/| /' conftest.$ac_ext >&5
2078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2080 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2081 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2082 if test "$ac_test_CFLAGS" = set; then
2083 CFLAGS=$ac_save_CFLAGS
2084 elif test $ac_cv_prog_cc_g = yes; then
2085 if test "$GCC" = yes; then
2091 if test "$GCC" = yes; then
2097 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2098 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2099 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2100 echo $ECHO_N "(cached) $ECHO_C" >&6
2102 ac_cv_prog_cc_stdc=no
2104 cat >conftest.$ac_ext <<_ACEOF
2107 cat confdefs.h >>conftest.$ac_ext
2108 cat >>conftest.$ac_ext <<_ACEOF
2109 /* end confdefs.h. */
2112 #include <sys/types.h>
2113 #include <sys/stat.h>
2114 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2115 struct buf { int x; };
2116 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2117 static char *e (p, i)
2123 static char *f (char * (*g) (char **, int), char **p, ...)
2128 s = g (p, va_arg (v,int));
2133 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2134 function prototypes and stuff, but not '\xHH' hex character constants.
2135 These don't provoke an error unfortunately, instead are silently treated
2136 as 'x'. The following induces an error, until -std1 is added to get
2137 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2138 array size at least. It's necessary to write '\x00'==0 to get something
2139 that's true only with -std1. */
2140 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2142 int test (int i, double x);
2143 struct s1 {int (*f) (int a);};
2144 struct s2 {int (*f) (double a);};
2145 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2151 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2156 # Don't try gcc -ansi; that turns off useful extensions and
2157 # breaks some systems' header files.
2158 # AIX -qlanglvl=ansi
2159 # Ultrix and OSF/1 -std1
2160 # HP-UX 10.20 and later -Ae
2161 # HP-UX older versions -Aa -D_HPUX_SOURCE
2162 # SVR4 -Xc -D__EXTENSIONS__
2163 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2165 CC="$ac_save_CC $ac_arg"
2166 rm -f conftest.$ac_objext
2167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2168 (eval $ac_compile) 2>conftest.er1
2170 grep -v '^ *+' conftest.er1 >conftest.err
2172 cat conftest.err >&5
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); } &&
2175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; } &&
2181 { ac_try='test -s conftest.$ac_objext'
2182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; }; then
2187 ac_cv_prog_cc_stdc=$ac_arg
2190 echo "$as_me: failed program was:" >&5
2191 sed 's/^/| /' conftest.$ac_ext >&5
2194 rm -f conftest.err conftest.$ac_objext
2196 rm -f conftest.$ac_ext conftest.$ac_objext
2201 case "x$ac_cv_prog_cc_stdc" in
2203 echo "$as_me:$LINENO: result: none needed" >&5
2204 echo "${ECHO_T}none needed" >&6 ;;
2206 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2207 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2208 CC="$CC $ac_cv_prog_cc_stdc" ;;
2211 # Some people use a C++ compiler to compile C. Since we use `exit',
2212 # in C++ we need to declare it. In case someone uses the same compiler
2213 # for both compiling C and C++ we need to have the C++ compiler decide
2214 # the declaration of exit, since it's the most demanding environment.
2215 cat >conftest.$ac_ext <<_ACEOF
2220 rm -f conftest.$ac_objext
2221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2222 (eval $ac_compile) 2>conftest.er1
2224 grep -v '^ *+' conftest.er1 >conftest.err
2226 cat conftest.err >&5
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); } &&
2229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }; } &&
2235 { ac_try='test -s conftest.$ac_objext'
2236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); }; }; then
2241 for ac_declaration in \
2243 'extern "C" void std::exit (int) throw (); using std::exit;' \
2244 'extern "C" void std::exit (int); using std::exit;' \
2245 'extern "C" void exit (int) throw ();' \
2246 'extern "C" void exit (int);' \
2249 cat >conftest.$ac_ext <<_ACEOF
2252 cat confdefs.h >>conftest.$ac_ext
2253 cat >>conftest.$ac_ext <<_ACEOF
2254 /* end confdefs.h. */
2265 rm -f conftest.$ac_objext
2266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2267 (eval $ac_compile) 2>conftest.er1
2269 grep -v '^ *+' conftest.er1 >conftest.err
2271 cat conftest.err >&5
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); } &&
2274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); }; } &&
2280 { ac_try='test -s conftest.$ac_objext'
2281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); }; }; then
2288 echo "$as_me: failed program was:" >&5
2289 sed 's/^/| /' conftest.$ac_ext >&5
2293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2294 cat >conftest.$ac_ext <<_ACEOF
2297 cat confdefs.h >>conftest.$ac_ext
2298 cat >>conftest.$ac_ext <<_ACEOF
2299 /* end confdefs.h. */
2309 rm -f conftest.$ac_objext
2310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2311 (eval $ac_compile) 2>conftest.er1
2313 grep -v '^ *+' conftest.er1 >conftest.err
2315 cat conftest.err >&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); } &&
2318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); }; } &&
2324 { ac_try='test -s conftest.$ac_objext'
2325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); }; }; then
2332 echo "$as_me: failed program was:" >&5
2333 sed 's/^/| /' conftest.$ac_ext >&5
2336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2339 if test -n "$ac_declaration"; then
2340 echo '#ifdef __cplusplus' >>confdefs.h
2341 echo $ac_declaration >>confdefs.h
2342 echo '#endif' >>confdefs.h
2346 echo "$as_me: failed program was:" >&5
2347 sed 's/^/| /' conftest.$ac_ext >&5
2350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2352 ac_cpp='$CPP $CPPFLAGS'
2353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2358 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2359 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2360 if test "${ac_cv_search_strerror+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2363 ac_func_search_save_LIBS=$LIBS
2364 ac_cv_search_strerror=no
2365 cat >conftest.$ac_ext <<_ACEOF
2368 cat confdefs.h >>conftest.$ac_ext
2369 cat >>conftest.$ac_ext <<_ACEOF
2370 /* end confdefs.h. */
2372 /* Override any gcc2 internal prototype to avoid an error. */
2376 /* We use char because int might match the return type of a gcc2
2377 builtin and then its argument prototype would still apply. */
2387 rm -f conftest.$ac_objext conftest$ac_exeext
2388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2389 (eval $ac_link) 2>conftest.er1
2391 grep -v '^ *+' conftest.er1 >conftest.err
2393 cat conftest.err >&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); } &&
2396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); }; } &&
2402 { ac_try='test -s conftest$ac_exeext'
2403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); }; }; then
2408 ac_cv_search_strerror="none required"
2410 echo "$as_me: failed program was:" >&5
2411 sed 's/^/| /' conftest.$ac_ext >&5
2414 rm -f conftest.err conftest.$ac_objext \
2415 conftest$ac_exeext conftest.$ac_ext
2416 if test "$ac_cv_search_strerror" = no; then
2417 for ac_lib in cposix; do
2418 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2419 cat >conftest.$ac_ext <<_ACEOF
2422 cat confdefs.h >>conftest.$ac_ext
2423 cat >>conftest.$ac_ext <<_ACEOF
2424 /* end confdefs.h. */
2426 /* Override any gcc2 internal prototype to avoid an error. */
2430 /* We use char because int might match the return type of a gcc2
2431 builtin and then its argument prototype would still apply. */
2441 rm -f conftest.$ac_objext conftest$ac_exeext
2442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2443 (eval $ac_link) 2>conftest.er1
2445 grep -v '^ *+' conftest.er1 >conftest.err
2447 cat conftest.err >&5
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); } &&
2450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; } &&
2456 { ac_try='test -s conftest$ac_exeext'
2457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }; }; then
2462 ac_cv_search_strerror="-l$ac_lib"
2465 echo "$as_me: failed program was:" >&5
2466 sed 's/^/| /' conftest.$ac_ext >&5
2469 rm -f conftest.err conftest.$ac_objext \
2470 conftest$ac_exeext conftest.$ac_ext
2473 LIBS=$ac_func_search_save_LIBS
2475 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2476 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2477 if test "$ac_cv_search_strerror" != no; then
2478 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2483 am__api_version="1.9"
2484 # Find a good install program. We prefer a C program (faster),
2485 # so one script is as good as another. But avoid the broken or
2486 # incompatible versions:
2487 # SysV /etc/install, /usr/sbin/install
2488 # SunOS /usr/etc/install
2489 # IRIX /sbin/install
2491 # AmigaOS /C/install, which installs bootblocks on floppy discs
2492 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2493 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2494 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2495 # OS/2's system install, which has a completely different semantic
2496 # ./install, which can be erroneously created by make from ./install.sh.
2497 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2498 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2499 if test -z "$INSTALL"; then
2500 if test "${ac_cv_path_install+set}" = set; then
2501 echo $ECHO_N "(cached) $ECHO_C" >&6
2503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507 test -z "$as_dir" && as_dir=.
2508 # Account for people who put trailing slashes in PATH elements.
2510 ./ | .// | /cC/* | \
2511 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2512 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2515 # OSF1 and SCO ODT 3.0 have their own names for install.
2516 # Don't use installbsd from OSF since it installs stuff as root
2518 for ac_prog in ginstall scoinst install; do
2519 for ac_exec_ext in '' $ac_executable_extensions; do
2520 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2521 if test $ac_prog = install &&
2522 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2523 # AIX install. It has an incompatible calling convention.
2525 elif test $ac_prog = install &&
2526 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2527 # program-specific install script used by HP pwplus--don't use.
2530 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2542 if test "${ac_cv_path_install+set}" = set; then
2543 INSTALL=$ac_cv_path_install
2545 # As a last resort, use the slow shell script. We don't cache a
2546 # path for INSTALL within a source directory, because that will
2547 # break other packages using the cache if that directory is
2548 # removed, or if the path is relative.
2549 INSTALL=$ac_install_sh
2552 echo "$as_me:$LINENO: result: $INSTALL" >&5
2553 echo "${ECHO_T}$INSTALL" >&6
2555 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2556 # It thinks the first close brace ends the variable substitution.
2557 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2559 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2561 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2563 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2564 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2567 echo timestamp > conftest.file
2568 # Do `set' in a subshell so we don't clobber the current shell's
2569 # arguments. Must try -L first in case configure is actually a
2570 # symlink; some systems play weird games with the mod time of symlinks
2571 # (eg FreeBSD returns the mod time of the symlink's containing
2574 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2575 if test "$*" = "X"; then
2577 set X `ls -t $srcdir/configure conftest.file`
2580 if test "$*" != "X $srcdir/configure conftest.file" \
2581 && test "$*" != "X conftest.file $srcdir/configure"; then
2583 # If neither matched, then we have a broken ls. This can happen
2584 # if, for instance, CONFIG_SHELL is bash and it inherits a
2585 # broken ls alias from the environment. This has actually
2586 # happened. Such a system could not be considered "sane".
2587 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2588 alias in your environment" >&5
2589 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2590 alias in your environment" >&2;}
2591 { (exit 1); exit 1; }; }
2594 test "$2" = conftest.file
2600 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2601 Check your system clock" >&5
2602 echo "$as_me: error: newly created file is older than distributed files!
2603 Check your system clock" >&2;}
2604 { (exit 1); exit 1; }; }
2606 echo "$as_me:$LINENO: result: yes" >&5
2607 echo "${ECHO_T}yes" >&6
2608 test "$program_prefix" != NONE &&
2609 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2610 # Use a double $ so make ignores it.
2611 test "$program_suffix" != NONE &&
2612 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2613 # Double any \ or $. echo might interpret backslashes.
2614 # By default was `s,x,x', remove it if useless.
2615 cat <<\_ACEOF >conftest.sed
2616 s/[\\$]/&&/g;s/;s,x,x,$//
2618 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2621 # expand $ac_aux_dir to an absolute path
2622 am_aux_dir=`cd $ac_aux_dir && pwd`
2624 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2625 # Use eval to expand $SHELL
2626 if eval "$MISSING --run true"; then
2627 am_missing_run="$MISSING --run "
2630 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2631 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2634 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2635 # We used to keeping the `.' as first argument, in order to
2636 # allow $(mkdir_p) to be used without argument. As in
2637 # $(mkdir_p) $(somedir)
2638 # where $(somedir) is conditionally defined. However this is wrong
2640 # 1. if the package is installed by a user who cannot write `.'
2641 # make install will fail,
2642 # 2. the above comment should most certainly read
2643 # $(mkdir_p) $(DESTDIR)$(somedir)
2644 # so it does not work when $(somedir) is undefined and
2645 # $(DESTDIR) is not.
2646 # To support the latter case, we have to write
2647 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2648 # so the `.' trick is pointless.
2649 mkdir_p='mkdir -p --'
2651 # On NextStep and OpenStep, the `mkdir' command does not
2652 # recognize any option. It will interpret all options as
2653 # directories to create, and then abort because `.' already
2655 for d in ./-p ./--version;
2657 test -d $d && rmdir $d
2659 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2660 if test -f "$ac_aux_dir/mkinstalldirs"; then
2661 mkdir_p='$(mkinstalldirs)'
2663 mkdir_p='$(install_sh) -d'
2667 for ac_prog in gawk mawk nawk awk
2669 # Extract the first word of "$ac_prog", so it can be a program name with args.
2670 set dummy $ac_prog; ac_word=$2
2671 echo "$as_me:$LINENO: checking for $ac_word" >&5
2672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2673 if test "${ac_cv_prog_AWK+set}" = set; then
2674 echo $ECHO_N "(cached) $ECHO_C" >&6
2676 if test -n "$AWK"; then
2677 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 test -z "$as_dir" && as_dir=.
2684 for ac_exec_ext in '' $ac_executable_extensions; do
2685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2686 ac_cv_prog_AWK="$ac_prog"
2687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2696 if test -n "$AWK"; then
2697 echo "$as_me:$LINENO: result: $AWK" >&5
2698 echo "${ECHO_T}$AWK" >&6
2700 echo "$as_me:$LINENO: result: no" >&5
2701 echo "${ECHO_T}no" >&6
2704 test -n "$AWK" && break
2707 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2708 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2709 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2710 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2711 echo $ECHO_N "(cached) $ECHO_C" >&6
2713 cat >conftest.make <<\_ACEOF
2715 @echo 'ac_maketemp="$(MAKE)"'
2717 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2718 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2719 if test -n "$ac_maketemp"; then
2720 eval ac_cv_prog_make_${ac_make}_set=yes
2722 eval ac_cv_prog_make_${ac_make}_set=no
2726 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2727 echo "$as_me:$LINENO: result: yes" >&5
2728 echo "${ECHO_T}yes" >&6
2731 echo "$as_me:$LINENO: result: no" >&5
2732 echo "${ECHO_T}no" >&6
2733 SET_MAKE="MAKE=${MAKE-make}"
2736 rm -rf .tst 2>/dev/null
2737 mkdir .tst 2>/dev/null
2738 if test -d .tst; then
2743 rmdir .tst 2>/dev/null
2745 DEPDIR="${am__leading_dot}deps"
2747 ac_config_commands="$ac_config_commands depfiles"
2750 am_make=${MAKE-make}
2751 cat > confinc << 'END'
2756 # If we don't find an include directive, just comment out the code.
2757 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2758 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2762 # First try GNU make style include.
2763 echo "include confinc" > confmf
2764 # We grep out `Entering directory' and `Leaving directory'
2765 # messages which can occur if `w' ends up in MAKEFLAGS.
2766 # In particular we don't look at `^make:' because GNU make might
2767 # be invoked under some other name (usually "gmake"), in which
2768 # case it prints its new name instead of `make'.
2769 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2774 # Now try BSD make style include.
2775 if test "$am__include" = "#"; then
2776 echo '.include "confinc"' > confmf
2777 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2778 am__include=.include
2785 echo "$as_me:$LINENO: result: $_am_result" >&5
2786 echo "${ECHO_T}$_am_result" >&6
2787 rm -f confinc confmf
2789 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2790 if test "${enable_dependency_tracking+set}" = set; then
2791 enableval="$enable_dependency_tracking"
2794 if test "x$enable_dependency_tracking" != xno; then
2795 am_depcomp="$ac_aux_dir/depcomp"
2800 if test "x$enable_dependency_tracking" != xno; then
2810 # test to see if srcdir already configured
2811 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2812 test -f $srcdir/config.status; then
2813 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2814 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2815 { (exit 1); exit 1; }; }
2818 # test whether we have cygpath
2819 if test -z "$CYGPATH_W"; then
2820 if (cygpath --version) >/dev/null 2>/dev/null; then
2821 CYGPATH_W='cygpath -w'
2828 # Define the identity of the package.
2833 cat >>confdefs.h <<_ACEOF
2834 #define PACKAGE "$PACKAGE"
2838 cat >>confdefs.h <<_ACEOF
2839 #define VERSION "$VERSION"
2842 # Some tools Automake needs.
2844 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2847 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2850 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2853 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2856 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2858 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2860 # Installed binaries are usually stripped using `strip' when the user
2861 # run `make install-strip'. However `strip' might not be the right
2862 # tool to use in cross-compilation environments, therefore Automake
2863 # will honor the `STRIP' environment variable to overrule this program.
2864 if test "$cross_compiling" != no; then
2865 if test -n "$ac_tool_prefix"; then
2866 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2867 set dummy ${ac_tool_prefix}strip; ac_word=$2
2868 echo "$as_me:$LINENO: checking for $ac_word" >&5
2869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2870 if test "${ac_cv_prog_STRIP+set}" = set; then
2871 echo $ECHO_N "(cached) $ECHO_C" >&6
2873 if test -n "$STRIP"; then
2874 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 test -z "$as_dir" && as_dir=.
2881 for ac_exec_ext in '' $ac_executable_extensions; do
2882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2883 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2892 STRIP=$ac_cv_prog_STRIP
2893 if test -n "$STRIP"; then
2894 echo "$as_me:$LINENO: result: $STRIP" >&5
2895 echo "${ECHO_T}$STRIP" >&6
2897 echo "$as_me:$LINENO: result: no" >&5
2898 echo "${ECHO_T}no" >&6
2902 if test -z "$ac_cv_prog_STRIP"; then
2904 # Extract the first word of "strip", so it can be a program name with args.
2905 set dummy strip; ac_word=$2
2906 echo "$as_me:$LINENO: checking for $ac_word" >&5
2907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2908 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
2911 if test -n "$ac_ct_STRIP"; then
2912 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918 test -z "$as_dir" && as_dir=.
2919 for ac_exec_ext in '' $ac_executable_extensions; do
2920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2921 ac_cv_prog_ac_ct_STRIP="strip"
2922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2928 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2931 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2932 if test -n "$ac_ct_STRIP"; then
2933 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2934 echo "${ECHO_T}$ac_ct_STRIP" >&6
2936 echo "$as_me:$LINENO: result: no" >&5
2937 echo "${ECHO_T}no" >&6
2942 STRIP="$ac_cv_prog_STRIP"
2946 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2948 # We need awk for the "check" target. The system "awk" is bad on
2950 # Always define AMTAR for backward compatibility.
2952 AMTAR=${AMTAR-"${am_missing_run}tar"}
2954 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2959 depcc="$CC" am_compiler_list=
2961 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2962 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2963 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2964 echo $ECHO_N "(cached) $ECHO_C" >&6
2966 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2967 # We make a subdir and do the tests there. Otherwise we can end up
2968 # making bogus files that we don't know about and never remove. For
2969 # instance it was reported that on HP-UX the gcc test will end up
2970 # making a dummy file named `D' -- because `-MD' means `put the output
2973 # Copy depcomp to subdir because otherwise we won't find it if we're
2974 # using a relative directory.
2975 cp "$am_depcomp" conftest.dir
2977 # We will build objects and dependencies in a subdirectory because
2978 # it helps to detect inapplicable dependency modes. For instance
2979 # both Tru64's cc and ICC support -MD to output dependencies as a
2980 # side effect of compilation, but ICC will put the dependencies in
2981 # the current directory while Tru64 will put them in the object
2985 am_cv_CC_dependencies_compiler_type=none
2986 if test "$am_compiler_list" = ""; then
2987 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2989 for depmode in $am_compiler_list; do
2990 # Setup a source with many dependencies, because some compilers
2991 # like to wrap large dependency lists on column 80 (with \), and
2992 # we should not choose a depcomp mode which is confused by this.
2994 # We need to recreate these files for each test, as the compiler may
2995 # overwrite some of them when testing with obscure command lines.
2996 # This happens at least with the AIX C compiler.
2998 for i in 1 2 3 4 5 6; do
2999 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3000 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3001 # Solaris 8's {/usr,}/bin/sh.
3002 touch sub/conftst$i.h
3004 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3008 # after this tag, mechanisms are not by side-effect, so they'll
3009 # only be used when explicitly requested
3010 if test "x$enable_dependency_tracking" = xyes; then
3018 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3019 # mode. It turns out that the SunPro C++ compiler does not properly
3020 # handle `-M -o', and we need to detect this.
3021 if depmode=$depmode \
3022 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3023 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3024 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3025 >/dev/null 2>conftest.err &&
3026 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3027 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3028 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3029 # icc doesn't choke on unknown options, it will just issue warnings
3030 # or remarks (even with -Werror). So we grep stderr for any message
3031 # that says an option was ignored or not supported.
3032 # When given -MP, icc 7.0 and 7.1 complain thusly:
3033 # icc: Command line warning: ignoring option '-M'; no argument required
3034 # The diagnosis changed in icc 8.0:
3035 # icc: Command line remark: option '-MP' not supported
3036 if (grep 'ignoring option' conftest.err ||
3037 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3038 am_cv_CC_dependencies_compiler_type=$depmode
3047 am_cv_CC_dependencies_compiler_type=none
3051 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3052 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3053 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3058 test "x$enable_dependency_tracking" != xno \
3059 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3061 am__fastdepCC_FALSE='#'
3063 am__fastdepCC_TRUE='#'
3064 am__fastdepCC_FALSE=
3070 if test -n "$ac_tool_prefix"; then
3071 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3072 set dummy ${ac_tool_prefix}ar; 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_AR+set}" = set; then
3076 echo $ECHO_N "(cached) $ECHO_C" >&6
3078 if test -n "$AR"; then
3079 ac_cv_prog_AR="$AR" # Let the user override the test.
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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_AR="${ac_tool_prefix}ar"
3089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3098 if test -n "$AR"; then
3099 echo "$as_me:$LINENO: result: $AR" >&5
3100 echo "${ECHO_T}$AR" >&6
3102 echo "$as_me:$LINENO: result: no" >&5
3103 echo "${ECHO_T}no" >&6
3107 if test -z "$ac_cv_prog_AR"; then
3109 # Extract the first word of "ar", so it can be a program name with args.
3110 set dummy ar; 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_AR+set}" = set; then
3114 echo $ECHO_N "(cached) $ECHO_C" >&6
3116 if test -n "$ac_ct_AR"; then
3117 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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_AR="ar"
3127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3135 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3136 if test -n "$ac_ct_AR"; then
3137 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3138 echo "${ECHO_T}$ac_ct_AR" >&6
3140 echo "$as_me:$LINENO: result: no" >&5
3141 echo "${ECHO_T}no" >&6
3149 if test -n "$ac_tool_prefix"; then
3150 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3151 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3152 echo "$as_me:$LINENO: checking for $ac_word" >&5
3153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3154 if test "${ac_cv_prog_RANLIB+set}" = set; then
3155 echo $ECHO_N "(cached) $ECHO_C" >&6
3157 if test -n "$RANLIB"; then
3158 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164 test -z "$as_dir" && as_dir=.
3165 for ac_exec_ext in '' $ac_executable_extensions; do
3166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3167 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3176 RANLIB=$ac_cv_prog_RANLIB
3177 if test -n "$RANLIB"; then
3178 echo "$as_me:$LINENO: result: $RANLIB" >&5
3179 echo "${ECHO_T}$RANLIB" >&6
3181 echo "$as_me:$LINENO: result: no" >&5
3182 echo "${ECHO_T}no" >&6
3186 if test -z "$ac_cv_prog_RANLIB"; then
3187 ac_ct_RANLIB=$RANLIB
3188 # Extract the first word of "ranlib", so it can be a program name with args.
3189 set dummy ranlib; ac_word=$2
3190 echo "$as_me:$LINENO: checking for $ac_word" >&5
3191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3192 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3193 echo $ECHO_N "(cached) $ECHO_C" >&6
3195 if test -n "$ac_ct_RANLIB"; then
3196 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202 test -z "$as_dir" && as_dir=.
3203 for ac_exec_ext in '' $ac_executable_extensions; do
3204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3205 ac_cv_prog_ac_ct_RANLIB="ranlib"
3206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3212 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3215 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3216 if test -n "$ac_ct_RANLIB"; then
3217 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3218 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3220 echo "$as_me:$LINENO: result: no" >&5
3221 echo "${ECHO_T}no" >&6
3224 RANLIB=$ac_ct_RANLIB
3226 RANLIB="$ac_cv_prog_RANLIB"
3230 # Check whether --enable-shared or --disable-shared was given.
3231 if test "${enable_shared+set}" = set; then
3232 enableval="$enable_shared"
3233 p=${PACKAGE-default}
3235 yes) enable_shared=yes ;;
3236 no) enable_shared=no ;;
3239 # Look at the argument we got. We use all the common list separators.
3240 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3241 for pkg in $enableval; do
3242 if test "X$pkg" = "X$p"; then
3253 # Check whether --enable-static or --disable-static was given.
3254 if test "${enable_static+set}" = set; then
3255 enableval="$enable_static"
3256 p=${PACKAGE-default}
3258 yes) enable_static=yes ;;
3259 no) enable_static=no ;;
3262 # Look at the argument we got. We use all the common list separators.
3263 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3264 for pkg in $enableval; do
3265 if test "X$pkg" = "X$p"; then
3275 # Check whether --enable-fast-install or --disable-fast-install was given.
3276 if test "${enable_fast_install+set}" = set; then
3277 enableval="$enable_fast_install"
3278 p=${PACKAGE-default}
3280 yes) enable_fast_install=yes ;;
3281 no) enable_fast_install=no ;;
3283 enable_fast_install=no
3284 # Look at the argument we got. We use all the common list separators.
3285 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3286 for pkg in $enableval; do
3287 if test "X$pkg" = "X$p"; then
3288 enable_fast_install=yes
3295 enable_fast_install=yes
3298 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3299 if test "${with_gnu_ld+set}" = set; then
3300 withval="$with_gnu_ld"
3301 test "$withval" = no || with_gnu_ld=yes
3306 if test "$GCC" = yes; then
3307 # Check if gcc -print-prog-name=ld gives a path.
3308 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3309 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3312 # gcc leaves a trailing carriage return which upsets mingw
3313 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3315 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3318 # Accept absolute paths.
3319 [\\/]* | [A-Za-z]:[\\/]*)
3320 re_direlt='/[^/][^/]*/\.\./'
3321 # Canonicalize the path of ld
3322 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3323 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3324 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3326 test -z "$LD" && LD="$ac_prog"
3329 # If it fails, then pretend we aren't using GCC.
3333 # If it is relative, then search for the first ld in PATH.
3337 elif test "$with_gnu_ld" = yes; then
3338 echo "$as_me:$LINENO: checking for GNU ld" >&5
3339 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3341 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3342 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3344 if test "${lt_cv_path_LD+set}" = set; then
3345 echo $ECHO_N "(cached) $ECHO_C" >&6
3347 if test -z "$LD"; then
3348 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3349 for ac_dir in $PATH; do
3350 test -z "$ac_dir" && ac_dir=.
3351 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3352 lt_cv_path_LD="$ac_dir/$ac_prog"
3353 # Check to see if the program is GNU ld. I'd rather use --version,
3354 # but apparently some GNU ld's only accept -v.
3355 # Break only if it was the GNU/non-GNU ld that we prefer.
3356 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3357 test "$with_gnu_ld" != no && break
3359 test "$with_gnu_ld" != yes && break
3365 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3370 if test -n "$LD"; then
3371 echo "$as_me:$LINENO: result: $LD" >&5
3372 echo "${ECHO_T}$LD" >&6
3374 echo "$as_me:$LINENO: result: no" >&5
3375 echo "${ECHO_T}no" >&6
3377 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3378 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3379 { (exit 1); exit 1; }; }
3380 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3381 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3382 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3385 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3386 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3387 lt_cv_prog_gnu_ld=yes
3389 lt_cv_prog_gnu_ld=no
3392 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3393 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3394 with_gnu_ld=$lt_cv_prog_gnu_ld
3397 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3398 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3399 if test "${lt_cv_ld_reload_flag+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 lt_cv_ld_reload_flag='-r'
3404 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3405 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3406 reload_flag=$lt_cv_ld_reload_flag
3407 test -n "$reload_flag" && reload_flag=" $reload_flag"
3409 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3410 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3411 if test "${lt_cv_path_NM+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3414 if test -n "$NM"; then
3415 # Let the user override the test.
3418 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3419 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3420 test -z "$ac_dir" && ac_dir=.
3421 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3422 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3423 # Check to see if the nm accepts a BSD-compat flag.
3424 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3425 # nm: unknown option "B" ignored
3426 # Tru64's nm complains that /dev/null is an invalid object file
3427 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3428 lt_cv_path_NM="$tmp_nm -B"
3430 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3431 lt_cv_path_NM="$tmp_nm -p"
3434 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3435 continue # so that we can try to find one that supports BSD flags
3440 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3445 echo "$as_me:$LINENO: result: $NM" >&5
3446 echo "${ECHO_T}$NM" >&6
3448 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3449 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3451 if test "$LN_S" = "ln -s"; then
3452 echo "$as_me:$LINENO: result: yes" >&5
3453 echo "${ECHO_T}yes" >&6
3455 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3456 echo "${ECHO_T}no, using $LN_S" >&6
3459 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3460 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3461 if test "${lt_cv_deplibs_check_method+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3464 lt_cv_file_magic_cmd='$MAGIC_CMD'
3465 lt_cv_file_magic_test_file=
3466 lt_cv_deplibs_check_method='unknown'
3467 # Need to set the preceding variable on all platforms that support
3468 # interlibrary dependencies.
3469 # 'none' -- dependencies not supported.
3470 # `unknown' -- same as none, but documents that we really don't know.
3471 # 'pass_all' -- all dependencies passed with no checks.
3472 # 'test_compile' -- check by making test program.
3473 # 'file_magic [regex]' -- check by looking for files in library path
3474 # which responds to the $file_magic_cmd with a given egrep regex.
3475 # If you have `file' or equivalent on your system and you're not sure
3476 # whether `pass_all' will *always* work, you probably want this one.
3480 lt_cv_deplibs_check_method=pass_all
3484 lt_cv_deplibs_check_method=pass_all
3488 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3489 lt_cv_file_magic_cmd='/usr/bin/file -L'
3490 lt_cv_file_magic_test_file=/shlib/libc.so
3493 cygwin* | mingw* |pw32*)
3494 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3495 lt_cv_file_magic_cmd='$OBJDUMP -f'
3498 darwin* | rhapsody*)
3499 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3500 lt_cv_file_magic_cmd='/usr/bin/file -L'
3502 rhapsody* | darwin1.012)
3503 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3506 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3511 freebsd* | kfreebsd*-gnu)
3512 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3515 # Not sure whether the presence of OpenBSD here was a mistake.
3516 # Let's accept both of them until this is cleared up.
3517 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3518 lt_cv_file_magic_cmd=/usr/bin/file
3519 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3523 lt_cv_deplibs_check_method=pass_all
3528 lt_cv_deplibs_check_method=pass_all
3534 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3535 lt_cv_file_magic_cmd=/usr/bin/file
3536 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3539 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3540 lt_cv_file_magic_cmd=/usr/bin/file
3541 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3549 # this will be overridden with pass_all, but let us keep it just in case
3550 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3554 *-32|*"-32 ") libmagic=32-bit;;
3555 *-n32|*"-n32 ") libmagic=N32;;
3556 *-64|*"-64 ") libmagic=64-bit;;
3557 *) libmagic=never-match;;
3559 # this will be overridden with pass_all, but let us keep it just in case
3560 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3563 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3564 lt_cv_deplibs_check_method=pass_all
3567 # This must be Linux ELF.
3570 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3571 lt_cv_deplibs_check_method=pass_all ;;
3573 # glibc up to 2.1.1 does not perform some relocations on ARM
3574 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3576 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3579 netbsd* | knetbsd*-gnu)
3580 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3581 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3583 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3588 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3589 lt_cv_file_magic_cmd=/usr/bin/file
3590 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3593 osf3* | osf4* | osf5*)
3594 # this will be overridden with pass_all, but let us keep it just in case
3595 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3596 lt_cv_file_magic_test_file=/shlib/libc.so
3597 lt_cv_deplibs_check_method=pass_all
3601 lt_cv_deplibs_check_method=pass_all
3605 lt_cv_deplibs_check_method=pass_all
3606 lt_cv_file_magic_test_file=/lib/libc.so
3609 sysv5uw[78]* | sysv4*uw2*)
3610 lt_cv_deplibs_check_method=pass_all
3613 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3614 case $host_vendor in
3616 lt_cv_deplibs_check_method=pass_all
3619 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]'
3620 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3627 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3628 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3629 file_magic_cmd=$lt_cv_file_magic_cmd
3630 deplibs_check_method=$lt_cv_deplibs_check_method
3635 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3637 # Only perform the check for file, if the check method requires it
3638 case $deplibs_check_method in
3640 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3641 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3642 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3643 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3644 echo $ECHO_N "(cached) $ECHO_C" >&6
3648 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3651 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3654 ac_save_MAGIC_CMD="$MAGIC_CMD"
3655 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3656 ac_dummy="/usr/bin:$PATH"
3657 for ac_dir in $ac_dummy; do
3658 test -z "$ac_dir" && ac_dir=.
3659 if test -f $ac_dir/${ac_tool_prefix}file; then
3660 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3661 if test -n "$file_magic_test_file"; then
3662 case $deplibs_check_method in
3664 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3665 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3666 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3667 egrep "$file_magic_regex" > /dev/null; then
3672 *** Warning: the command libtool uses to detect shared libraries,
3673 *** $file_magic_cmd, produces output that libtool cannot recognize.
3674 *** The result is that libtool may fail to recognize shared libraries
3675 *** as such. This will affect the creation of libtool libraries that
3676 *** depend on shared libraries, but programs linked with such libtool
3677 *** libraries will work regardless of this problem. Nevertheless, you
3678 *** may want to report the problem to your system manager and/or to
3679 *** bug-libtool@gnu.org
3689 MAGIC_CMD="$ac_save_MAGIC_CMD"
3694 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3695 if test -n "$MAGIC_CMD"; then
3696 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3697 echo "${ECHO_T}$MAGIC_CMD" >&6
3699 echo "$as_me:$LINENO: result: no" >&5
3700 echo "${ECHO_T}no" >&6
3703 if test -z "$lt_cv_path_MAGIC_CMD"; then
3704 if test -n "$ac_tool_prefix"; then
3705 echo "$as_me:$LINENO: checking for file" >&5
3706 echo $ECHO_N "checking for file... $ECHO_C" >&6
3707 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3708 echo $ECHO_N "(cached) $ECHO_C" >&6
3712 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3715 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3718 ac_save_MAGIC_CMD="$MAGIC_CMD"
3719 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3720 ac_dummy="/usr/bin:$PATH"
3721 for ac_dir in $ac_dummy; do
3722 test -z "$ac_dir" && ac_dir=.
3723 if test -f $ac_dir/file; then
3724 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3725 if test -n "$file_magic_test_file"; then
3726 case $deplibs_check_method in
3728 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3729 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3730 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3731 egrep "$file_magic_regex" > /dev/null; then
3736 *** Warning: the command libtool uses to detect shared libraries,
3737 *** $file_magic_cmd, produces output that libtool cannot recognize.
3738 *** The result is that libtool may fail to recognize shared libraries
3739 *** as such. This will affect the creation of libtool libraries that
3740 *** depend on shared libraries, but programs linked with such libtool
3741 *** libraries will work regardless of this problem. Nevertheless, you
3742 *** may want to report the problem to your system manager and/or to
3743 *** bug-libtool@gnu.org
3753 MAGIC_CMD="$ac_save_MAGIC_CMD"
3758 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3759 if test -n "$MAGIC_CMD"; then
3760 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3761 echo "${ECHO_T}$MAGIC_CMD" >&6
3763 echo "$as_me:$LINENO: result: no" >&5
3764 echo "${ECHO_T}no" >&6
3776 if test -n "$ac_tool_prefix"; then
3777 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3778 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3779 echo "$as_me:$LINENO: checking for $ac_word" >&5
3780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3781 if test "${ac_cv_prog_RANLIB+set}" = set; then
3782 echo $ECHO_N "(cached) $ECHO_C" >&6
3784 if test -n "$RANLIB"; then
3785 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3791 test -z "$as_dir" && as_dir=.
3792 for ac_exec_ext in '' $ac_executable_extensions; do
3793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3794 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3803 RANLIB=$ac_cv_prog_RANLIB
3804 if test -n "$RANLIB"; then
3805 echo "$as_me:$LINENO: result: $RANLIB" >&5
3806 echo "${ECHO_T}$RANLIB" >&6
3808 echo "$as_me:$LINENO: result: no" >&5
3809 echo "${ECHO_T}no" >&6
3813 if test -z "$ac_cv_prog_RANLIB"; then
3814 ac_ct_RANLIB=$RANLIB
3815 # Extract the first word of "ranlib", so it can be a program name with args.
3816 set dummy ranlib; ac_word=$2
3817 echo "$as_me:$LINENO: checking for $ac_word" >&5
3818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3819 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3820 echo $ECHO_N "(cached) $ECHO_C" >&6
3822 if test -n "$ac_ct_RANLIB"; then
3823 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829 test -z "$as_dir" && as_dir=.
3830 for ac_exec_ext in '' $ac_executable_extensions; do
3831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3832 ac_cv_prog_ac_ct_RANLIB="ranlib"
3833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3839 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3842 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3843 if test -n "$ac_ct_RANLIB"; then
3844 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3845 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3847 echo "$as_me:$LINENO: result: no" >&5
3848 echo "${ECHO_T}no" >&6
3851 RANLIB=$ac_ct_RANLIB
3853 RANLIB="$ac_cv_prog_RANLIB"
3856 if test -n "$ac_tool_prefix"; then
3857 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3858 set dummy ${ac_tool_prefix}strip; ac_word=$2
3859 echo "$as_me:$LINENO: checking for $ac_word" >&5
3860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3861 if test "${ac_cv_prog_STRIP+set}" = set; then
3862 echo $ECHO_N "(cached) $ECHO_C" >&6
3864 if test -n "$STRIP"; then
3865 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871 test -z "$as_dir" && as_dir=.
3872 for ac_exec_ext in '' $ac_executable_extensions; do
3873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3874 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3883 STRIP=$ac_cv_prog_STRIP
3884 if test -n "$STRIP"; then
3885 echo "$as_me:$LINENO: result: $STRIP" >&5
3886 echo "${ECHO_T}$STRIP" >&6
3888 echo "$as_me:$LINENO: result: no" >&5
3889 echo "${ECHO_T}no" >&6
3893 if test -z "$ac_cv_prog_STRIP"; then
3895 # Extract the first word of "strip", so it can be a program name with args.
3896 set dummy strip; ac_word=$2
3897 echo "$as_me:$LINENO: checking for $ac_word" >&5
3898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3899 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3900 echo $ECHO_N "(cached) $ECHO_C" >&6
3902 if test -n "$ac_ct_STRIP"; then
3903 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909 test -z "$as_dir" && as_dir=.
3910 for ac_exec_ext in '' $ac_executable_extensions; do
3911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3912 ac_cv_prog_ac_ct_STRIP="strip"
3913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3919 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3922 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3923 if test -n "$ac_ct_STRIP"; then
3924 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3925 echo "${ECHO_T}$ac_ct_STRIP" >&6
3927 echo "$as_me:$LINENO: result: no" >&5
3928 echo "${ECHO_T}no" >&6
3933 STRIP="$ac_cv_prog_STRIP"
3937 # Check for any special flags to pass to ltconfig.
3938 libtool_flags="--cache-file=$cache_file"
3939 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3940 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3941 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3942 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3943 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3946 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3947 if test "${enable_libtool_lock+set}" = set; then
3948 enableval="$enable_libtool_lock"
3951 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3952 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3955 # Check whether --with-pic or --without-pic was given.
3956 if test "${with_pic+set}" = set; then
3962 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3963 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3965 # Some flags need to be propagated to the compiler or linker for good
3969 # Find out which ABI we are using.
3970 echo '#line 3970 "configure"' > conftest.$ac_ext
3971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3972 (eval $ac_compile) 2>&5
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); }; then
3976 if test "$lt_cv_prog_gnu_ld" = yes; then
3977 case `/usr/bin/file conftest.$ac_objext` in
3979 LD="${LD-ld} -melf32bsmip"
3982 LD="${LD-ld} -melf32bmipn32"
3985 LD="${LD-ld} -melf64bmip"
3989 case `/usr/bin/file conftest.$ac_objext` in
4006 # Find out which ABI we are using.
4007 echo 'int i;' > conftest.$ac_ext
4008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4009 (eval $ac_compile) 2>&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); }; then
4013 case "`/usr/bin/file conftest.o`" in
4026 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4027 SAVE_CFLAGS="$CFLAGS"
4028 CFLAGS="$CFLAGS -belf"
4029 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4030 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4031 if test "${lt_cv_cc_needs_belf+set}" = set; then
4032 echo $ECHO_N "(cached) $ECHO_C" >&6
4037 ac_cpp='$CPP $CPPFLAGS'
4038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4042 cat >conftest.$ac_ext <<_ACEOF
4045 cat confdefs.h >>conftest.$ac_ext
4046 cat >>conftest.$ac_ext <<_ACEOF
4047 /* end confdefs.h. */
4057 rm -f conftest.$ac_objext conftest$ac_exeext
4058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4059 (eval $ac_link) 2>conftest.er1
4061 grep -v '^ *+' conftest.er1 >conftest.err
4063 cat conftest.err >&5
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } &&
4066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); }; } &&
4072 { ac_try='test -s conftest$ac_exeext'
4073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; }; then
4078 lt_cv_cc_needs_belf=yes
4080 echo "$as_me: failed program was:" >&5
4081 sed 's/^/| /' conftest.$ac_ext >&5
4083 lt_cv_cc_needs_belf=no
4085 rm -f conftest.err conftest.$ac_objext \
4086 conftest$ac_exeext conftest.$ac_ext
4088 ac_cpp='$CPP $CPPFLAGS'
4089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4094 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4095 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4096 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4097 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4098 CFLAGS="$SAVE_CFLAGS"
4106 # Save cache, so that ltconfig can load it
4107 cat >confcache <<\_ACEOF
4108 # This file is a shell script that caches the results of configure
4109 # tests run on this system so they can be shared between configure
4110 # scripts and configure runs, see configure's option --config-cache.
4111 # It is not useful on other systems. If it contains results you don't
4112 # want to keep, you may remove or edit it.
4114 # config.status only pays attention to the cache file if you give it
4115 # the --recheck option to rerun configure.
4117 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4118 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4123 # The following way of writing the cache mishandles newlines in values,
4124 # but we know of no workaround that is simple, portable, and efficient.
4125 # So, don't put newlines in cache variables' values.
4126 # Ultrix sh set writes to stderr and can't be redirected directly,
4127 # and sets the high bit in the cache file unless we assign to the vars.
4130 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4132 # `set' does not quote correctly, so add quotes (double-quote
4133 # substitution turns \\\\ into \\, and sed turns \\ into \).
4136 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4139 # `set' quotes correctly as required by POSIX, so do not add quotes.
4141 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4148 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4150 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4152 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4153 if test -w $cache_file; then
4154 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4155 cat confcache >$cache_file
4157 echo "not updating unwritable cache $cache_file"
4162 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4163 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4164 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4165 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4166 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4167 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4168 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4169 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4170 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4171 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4172 echo "$as_me: error: libtool configure failed" >&2;}
4173 { (exit 1); exit 1; }; }
4175 # Reload cache, that may have been modified by ltconfig
4176 if test -r "$cache_file"; then
4177 # Some versions of bash will fail to source /dev/null (special
4178 # files actually), so we avoid doing that.
4179 if test -f "$cache_file"; then
4180 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4181 echo "$as_me: loading cache $cache_file" >&6;}
4183 [\\/]* | ?:[\\/]* ) . $cache_file;;
4184 *) . ./$cache_file;;
4188 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4189 echo "$as_me: creating cache $cache_file" >&6;}
4194 # This can be used to rebuild libtool when needed
4195 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4197 # Always use our own libtool.
4198 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4200 # Redirect the config.log output again, so that the ltconfig log is not
4201 # clobbered by the next message.
4202 exec 5>>./config.log
4210 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
4211 if test "${enable_64_bit_bfd+set}" = set; then
4212 enableval="$enable_64_bit_bfd"
4213 case "${enableval}" in
4216 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4217 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
4218 { (exit 1); exit 1; }; } ;;
4222 fi; # Check whether --enable-targets or --disable-targets was given.
4223 if test "${enable_targets+set}" = set; then
4224 enableval="$enable_targets"
4225 case "${enableval}" in
4226 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4227 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4228 { (exit 1); exit 1; }; }
4230 no) enable_targets= ;;
4231 *) enable_targets=$enableval ;;
4233 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
4234 if test "${enable_commonbfdlib+set}" = set; then
4235 enableval="$enable_commonbfdlib"
4236 case "${enableval}" in
4237 yes) commonbfdlib=true ;;
4238 no) commonbfdlib=false ;;
4239 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4240 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4241 { (exit 1); exit 1; }; } ;;
4244 # Check whether --with-mmap or --without-mmap was given.
4245 if test "${with_mmap+set}" = set; then
4246 withval="$with_mmap"
4247 case "${withval}" in
4248 yes) want_mmap=true ;;
4249 no) want_mmap=false ;;
4250 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
4251 echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
4252 { (exit 1); exit 1; }; } ;;
4258 WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4260 # Check whether --enable-werror or --disable-werror was given.
4261 if test "${enable_werror+set}" = set; then
4262 enableval="$enable_werror"
4263 case "${enableval}" in
4264 yes | y) ERROR_ON_WARNING="yes" ;;
4265 no | n) ERROR_ON_WARNING="no" ;;
4266 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4267 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4268 { (exit 1); exit 1; }; } ;;
4272 # Enable -Werror by default when using gcc
4273 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4274 ERROR_ON_WARNING=yes
4278 if test "${ERROR_ON_WARNING}" = yes ; then
4279 WARN_CFLAGS="$WARN_CFLAGS -Werror"
4280 NO_WERROR="-Wno-error"
4283 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4284 if test "${enable_build_warnings+set}" = set; then
4285 enableval="$enable_build_warnings"
4286 case "${enableval}" in
4288 no) WARN_CFLAGS="-w";;
4289 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4290 WARN_CFLAGS="${WARN_CFLAGS} ${t}";;
4291 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4292 WARN_CFLAGS="${t} ${WARN_CFLAGS}";;
4293 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4297 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4298 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4305 ac_config_headers="$ac_config_headers config.h:config.in"
4308 if test -z "$target" ; then
4309 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4310 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4311 { (exit 1); exit 1; }; }
4314 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4315 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4316 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4317 if test "${enable_maintainer_mode+set}" = set; then
4318 enableval="$enable_maintainer_mode"
4319 USE_MAINTAINER_MODE=$enableval
4321 USE_MAINTAINER_MODE=no
4323 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4324 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4327 if test $USE_MAINTAINER_MODE = yes; then
4328 MAINTAINER_MODE_TRUE=
4329 MAINTAINER_MODE_FALSE='#'
4331 MAINTAINER_MODE_TRUE='#'
4332 MAINTAINER_MODE_FALSE=
4335 MAINT=$MAINTAINER_MODE_TRUE
4338 case ${build_alias} in
4339 "") build_noncanonical=${build} ;;
4340 *) build_noncanonical=${build_alias} ;;
4343 case ${host_alias} in
4344 "") host_noncanonical=${build_noncanonical} ;;
4345 *) host_noncanonical=${host_alias} ;;
4348 case ${target_alias} in
4349 "") target_noncanonical=${host_noncanonical} ;;
4350 *) target_noncanonical=${target_alias} ;;
4353 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
4354 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
4355 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
4356 if test "${enable_install_libbfd+set}" = set; then
4357 enableval="$enable_install_libbfd"
4358 install_libbfd_p=$enableval
4360 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
4361 install_libbfd_p=yes
4366 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
4367 echo "${ECHO_T}$install_libbfd_p" >&6
4370 if test $install_libbfd_p = yes; then
4371 INSTALL_LIBBFD_TRUE=
4372 INSTALL_LIBBFD_FALSE='#'
4374 INSTALL_LIBBFD_TRUE='#'
4375 INSTALL_LIBBFD_FALSE=
4378 # Need _noncanonical variables for this.
4383 # libbfd.a is a host library containing target dependent code
4384 bfdlibdir='$(libdir)'
4385 bfdincludedir='$(includedir)'
4386 if test "${host}" != "${target}"; then
4387 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
4388 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
4398 bfd_default_target_size=32
4403 ac_cpp='$CPP $CPPFLAGS'
4404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4407 if test -n "$ac_tool_prefix"; then
4408 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4409 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4410 echo "$as_me:$LINENO: checking for $ac_word" >&5
4411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4412 if test "${ac_cv_prog_CC+set}" = set; then
4413 echo $ECHO_N "(cached) $ECHO_C" >&6
4415 if test -n "$CC"; then
4416 ac_cv_prog_CC="$CC" # Let the user override the test.
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 test -z "$as_dir" && as_dir=.
4423 for ac_exec_ext in '' $ac_executable_extensions; do
4424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4425 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4435 if test -n "$CC"; then
4436 echo "$as_me:$LINENO: result: $CC" >&5
4437 echo "${ECHO_T}$CC" >&6
4439 echo "$as_me:$LINENO: result: no" >&5
4440 echo "${ECHO_T}no" >&6
4444 if test -z "$ac_cv_prog_CC"; then
4446 # Extract the first word of "gcc", so it can be a program name with args.
4447 set dummy gcc; ac_word=$2
4448 echo "$as_me:$LINENO: checking for $ac_word" >&5
4449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4450 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4451 echo $ECHO_N "(cached) $ECHO_C" >&6
4453 if test -n "$ac_ct_CC"; then
4454 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460 test -z "$as_dir" && as_dir=.
4461 for ac_exec_ext in '' $ac_executable_extensions; do
4462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4463 ac_cv_prog_ac_ct_CC="gcc"
4464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4472 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4473 if test -n "$ac_ct_CC"; then
4474 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4475 echo "${ECHO_T}$ac_ct_CC" >&6
4477 echo "$as_me:$LINENO: result: no" >&5
4478 echo "${ECHO_T}no" >&6
4486 if test -z "$CC"; then
4487 if test -n "$ac_tool_prefix"; then
4488 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4489 set dummy ${ac_tool_prefix}cc; ac_word=$2
4490 echo "$as_me:$LINENO: checking for $ac_word" >&5
4491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4492 if test "${ac_cv_prog_CC+set}" = set; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6
4495 if test -n "$CC"; then
4496 ac_cv_prog_CC="$CC" # Let the user override the test.
4498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502 test -z "$as_dir" && as_dir=.
4503 for ac_exec_ext in '' $ac_executable_extensions; do
4504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4505 ac_cv_prog_CC="${ac_tool_prefix}cc"
4506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4515 if test -n "$CC"; then
4516 echo "$as_me:$LINENO: result: $CC" >&5
4517 echo "${ECHO_T}$CC" >&6
4519 echo "$as_me:$LINENO: result: no" >&5
4520 echo "${ECHO_T}no" >&6
4524 if test -z "$ac_cv_prog_CC"; then
4526 # Extract the first word of "cc", so it can be a program name with args.
4527 set dummy cc; ac_word=$2
4528 echo "$as_me:$LINENO: checking for $ac_word" >&5
4529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4530 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4533 if test -n "$ac_ct_CC"; then
4534 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540 test -z "$as_dir" && as_dir=.
4541 for ac_exec_ext in '' $ac_executable_extensions; do
4542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4543 ac_cv_prog_ac_ct_CC="cc"
4544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4552 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4553 if test -n "$ac_ct_CC"; then
4554 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4555 echo "${ECHO_T}$ac_ct_CC" >&6
4557 echo "$as_me:$LINENO: result: no" >&5
4558 echo "${ECHO_T}no" >&6
4567 if test -z "$CC"; then
4568 # Extract the first word of "cc", so it can be a program name with args.
4569 set dummy cc; ac_word=$2
4570 echo "$as_me:$LINENO: checking for $ac_word" >&5
4571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4572 if test "${ac_cv_prog_CC+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4575 if test -n "$CC"; then
4576 ac_cv_prog_CC="$CC" # Let the user override the test.
4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583 test -z "$as_dir" && as_dir=.
4584 for ac_exec_ext in '' $ac_executable_extensions; do
4585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4586 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4587 ac_prog_rejected=yes
4591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4597 if test $ac_prog_rejected = yes; then
4598 # We found a bogon in the path, so make sure we never use it.
4599 set dummy $ac_cv_prog_CC
4601 if test $# != 0; then
4602 # We chose a different compiler from the bogus one.
4603 # However, it has the same basename, so the bogon will be chosen
4604 # first if we set CC to just the basename; use the full file name.
4606 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4612 if test -n "$CC"; then
4613 echo "$as_me:$LINENO: result: $CC" >&5
4614 echo "${ECHO_T}$CC" >&6
4616 echo "$as_me:$LINENO: result: no" >&5
4617 echo "${ECHO_T}no" >&6
4621 if test -z "$CC"; then
4622 if test -n "$ac_tool_prefix"; then
4625 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4626 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4627 echo "$as_me:$LINENO: checking for $ac_word" >&5
4628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4629 if test "${ac_cv_prog_CC+set}" = set; then
4630 echo $ECHO_N "(cached) $ECHO_C" >&6
4632 if test -n "$CC"; then
4633 ac_cv_prog_CC="$CC" # Let the user override the test.
4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 test -z "$as_dir" && as_dir=.
4640 for ac_exec_ext in '' $ac_executable_extensions; do
4641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4642 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4652 if test -n "$CC"; then
4653 echo "$as_me:$LINENO: result: $CC" >&5
4654 echo "${ECHO_T}$CC" >&6
4656 echo "$as_me:$LINENO: result: no" >&5
4657 echo "${ECHO_T}no" >&6
4660 test -n "$CC" && break
4663 if test -z "$CC"; then
4667 # Extract the first word of "$ac_prog", so it can be a program name with args.
4668 set dummy $ac_prog; ac_word=$2
4669 echo "$as_me:$LINENO: checking for $ac_word" >&5
4670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4671 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4672 echo $ECHO_N "(cached) $ECHO_C" >&6
4674 if test -n "$ac_ct_CC"; then
4675 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681 test -z "$as_dir" && as_dir=.
4682 for ac_exec_ext in '' $ac_executable_extensions; do
4683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4684 ac_cv_prog_ac_ct_CC="$ac_prog"
4685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4693 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4694 if test -n "$ac_ct_CC"; then
4695 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4696 echo "${ECHO_T}$ac_ct_CC" >&6
4698 echo "$as_me:$LINENO: result: no" >&5
4699 echo "${ECHO_T}no" >&6
4702 test -n "$ac_ct_CC" && break
4711 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4712 See \`config.log' for more details." >&5
4713 echo "$as_me: error: no acceptable C compiler found in \$PATH
4714 See \`config.log' for more details." >&2;}
4715 { (exit 1); exit 1; }; }
4717 # Provide some information about the compiler.
4718 echo "$as_me:$LINENO:" \
4719 "checking for C compiler version" >&5
4720 ac_compiler=`set X $ac_compile; echo $2`
4721 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4722 (eval $ac_compiler --version </dev/null >&5) 2>&5
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); }
4726 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4727 (eval $ac_compiler -v </dev/null >&5) 2>&5
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); }
4731 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4732 (eval $ac_compiler -V </dev/null >&5) 2>&5
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); }
4737 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4738 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4739 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4740 echo $ECHO_N "(cached) $ECHO_C" >&6
4742 cat >conftest.$ac_ext <<_ACEOF
4745 cat confdefs.h >>conftest.$ac_ext
4746 cat >>conftest.$ac_ext <<_ACEOF
4747 /* end confdefs.h. */
4760 rm -f conftest.$ac_objext
4761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4762 (eval $ac_compile) 2>conftest.er1
4764 grep -v '^ *+' conftest.er1 >conftest.err
4766 cat conftest.err >&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); } &&
4769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); }; } &&
4775 { ac_try='test -s conftest.$ac_objext'
4776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); }; }; then
4783 echo "$as_me: failed program was:" >&5
4784 sed 's/^/| /' conftest.$ac_ext >&5
4788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4789 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4792 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4793 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4794 GCC=`test $ac_compiler_gnu = yes && echo yes`
4795 ac_test_CFLAGS=${CFLAGS+set}
4796 ac_save_CFLAGS=$CFLAGS
4798 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4799 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4800 if test "${ac_cv_prog_cc_g+set}" = set; then
4801 echo $ECHO_N "(cached) $ECHO_C" >&6
4803 cat >conftest.$ac_ext <<_ACEOF
4806 cat confdefs.h >>conftest.$ac_ext
4807 cat >>conftest.$ac_ext <<_ACEOF
4808 /* end confdefs.h. */
4818 rm -f conftest.$ac_objext
4819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4820 (eval $ac_compile) 2>conftest.er1
4822 grep -v '^ *+' conftest.er1 >conftest.err
4824 cat conftest.err >&5
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); } &&
4827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); }; } &&
4833 { ac_try='test -s conftest.$ac_objext'
4834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); }; }; then
4841 echo "$as_me: failed program was:" >&5
4842 sed 's/^/| /' conftest.$ac_ext >&5
4846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4848 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4849 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4850 if test "$ac_test_CFLAGS" = set; then
4851 CFLAGS=$ac_save_CFLAGS
4852 elif test $ac_cv_prog_cc_g = yes; then
4853 if test "$GCC" = yes; then
4859 if test "$GCC" = yes; then
4865 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4866 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4867 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4868 echo $ECHO_N "(cached) $ECHO_C" >&6
4870 ac_cv_prog_cc_stdc=no
4872 cat >conftest.$ac_ext <<_ACEOF
4875 cat confdefs.h >>conftest.$ac_ext
4876 cat >>conftest.$ac_ext <<_ACEOF
4877 /* end confdefs.h. */
4880 #include <sys/types.h>
4881 #include <sys/stat.h>
4882 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4883 struct buf { int x; };
4884 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4885 static char *e (p, i)
4891 static char *f (char * (*g) (char **, int), char **p, ...)
4896 s = g (p, va_arg (v,int));
4901 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4902 function prototypes and stuff, but not '\xHH' hex character constants.
4903 These don't provoke an error unfortunately, instead are silently treated
4904 as 'x'. The following induces an error, until -std1 is added to get
4905 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4906 array size at least. It's necessary to write '\x00'==0 to get something
4907 that's true only with -std1. */
4908 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4910 int test (int i, double x);
4911 struct s1 {int (*f) (int a);};
4912 struct s2 {int (*f) (double a);};
4913 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4919 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4924 # Don't try gcc -ansi; that turns off useful extensions and
4925 # breaks some systems' header files.
4926 # AIX -qlanglvl=ansi
4927 # Ultrix and OSF/1 -std1
4928 # HP-UX 10.20 and later -Ae
4929 # HP-UX older versions -Aa -D_HPUX_SOURCE
4930 # SVR4 -Xc -D__EXTENSIONS__
4931 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4933 CC="$ac_save_CC $ac_arg"
4934 rm -f conftest.$ac_objext
4935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4936 (eval $ac_compile) 2>conftest.er1
4938 grep -v '^ *+' conftest.er1 >conftest.err
4940 cat conftest.err >&5
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); } &&
4943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); }; } &&
4949 { ac_try='test -s conftest.$ac_objext'
4950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); }; }; then
4955 ac_cv_prog_cc_stdc=$ac_arg
4958 echo "$as_me: failed program was:" >&5
4959 sed 's/^/| /' conftest.$ac_ext >&5
4962 rm -f conftest.err conftest.$ac_objext
4964 rm -f conftest.$ac_ext conftest.$ac_objext
4969 case "x$ac_cv_prog_cc_stdc" in
4971 echo "$as_me:$LINENO: result: none needed" >&5
4972 echo "${ECHO_T}none needed" >&6 ;;
4974 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4975 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4976 CC="$CC $ac_cv_prog_cc_stdc" ;;
4979 # Some people use a C++ compiler to compile C. Since we use `exit',
4980 # in C++ we need to declare it. In case someone uses the same compiler
4981 # for both compiling C and C++ we need to have the C++ compiler decide
4982 # the declaration of exit, since it's the most demanding environment.
4983 cat >conftest.$ac_ext <<_ACEOF
4988 rm -f conftest.$ac_objext
4989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4990 (eval $ac_compile) 2>conftest.er1
4992 grep -v '^ *+' conftest.er1 >conftest.err
4994 cat conftest.err >&5
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); } &&
4997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); }; } &&
5003 { ac_try='test -s conftest.$ac_objext'
5004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); }; }; then
5009 for ac_declaration in \
5011 'extern "C" void std::exit (int) throw (); using std::exit;' \
5012 'extern "C" void std::exit (int); using std::exit;' \
5013 'extern "C" void exit (int) throw ();' \
5014 'extern "C" void exit (int);' \
5017 cat >conftest.$ac_ext <<_ACEOF
5020 cat confdefs.h >>conftest.$ac_ext
5021 cat >>conftest.$ac_ext <<_ACEOF
5022 /* end confdefs.h. */
5033 rm -f conftest.$ac_objext
5034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5035 (eval $ac_compile) 2>conftest.er1
5037 grep -v '^ *+' conftest.er1 >conftest.err
5039 cat conftest.err >&5
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); } &&
5042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); }; } &&
5048 { ac_try='test -s conftest.$ac_objext'
5049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); }; }; then
5056 echo "$as_me: failed program was:" >&5
5057 sed 's/^/| /' conftest.$ac_ext >&5
5061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5062 cat >conftest.$ac_ext <<_ACEOF
5065 cat confdefs.h >>conftest.$ac_ext
5066 cat >>conftest.$ac_ext <<_ACEOF
5067 /* end confdefs.h. */
5077 rm -f conftest.$ac_objext
5078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5079 (eval $ac_compile) 2>conftest.er1
5081 grep -v '^ *+' conftest.er1 >conftest.err
5083 cat conftest.err >&5
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); } &&
5086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); }; } &&
5092 { ac_try='test -s conftest.$ac_objext'
5093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); }; }; then
5100 echo "$as_me: failed program was:" >&5
5101 sed 's/^/| /' conftest.$ac_ext >&5
5104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5107 if test -n "$ac_declaration"; then
5108 echo '#ifdef __cplusplus' >>confdefs.h
5109 echo $ac_declaration >>confdefs.h
5110 echo '#endif' >>confdefs.h
5114 echo "$as_me: failed program was:" >&5
5115 sed 's/^/| /' conftest.$ac_ext >&5
5118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5120 ac_cpp='$CPP $CPPFLAGS'
5121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5126 cat >>confdefs.h <<\_ACEOF
5127 #define _GNU_SOURCE 1
5132 ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw"
5133 if test -n "$ac_tool_prefix"; then
5134 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5135 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5136 echo "$as_me:$LINENO: checking for $ac_word" >&5
5137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5138 if test "${ac_cv_prog_RANLIB+set}" = set; then
5139 echo $ECHO_N "(cached) $ECHO_C" >&6
5141 if test -n "$RANLIB"; then
5142 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148 test -z "$as_dir" && as_dir=.
5149 for ac_exec_ext in '' $ac_executable_extensions; do
5150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5151 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5160 RANLIB=$ac_cv_prog_RANLIB
5161 if test -n "$RANLIB"; then
5162 echo "$as_me:$LINENO: result: $RANLIB" >&5
5163 echo "${ECHO_T}$RANLIB" >&6
5165 echo "$as_me:$LINENO: result: no" >&5
5166 echo "${ECHO_T}no" >&6
5170 if test -z "$ac_cv_prog_RANLIB"; then
5171 ac_ct_RANLIB=$RANLIB
5172 # Extract the first word of "ranlib", so it can be a program name with args.
5173 set dummy ranlib; ac_word=$2
5174 echo "$as_me:$LINENO: checking for $ac_word" >&5
5175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5176 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5177 echo $ECHO_N "(cached) $ECHO_C" >&6
5179 if test -n "$ac_ct_RANLIB"; then
5180 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 test -z "$as_dir" && as_dir=.
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5189 ac_cv_prog_ac_ct_RANLIB="ranlib"
5190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5196 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5199 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5200 if test -n "$ac_ct_RANLIB"; then
5201 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5202 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5204 echo "$as_me:$LINENO: result: no" >&5
5205 echo "${ECHO_T}no" >&6
5208 RANLIB=$ac_ct_RANLIB
5210 RANLIB="$ac_cv_prog_RANLIB"
5214 ac_cpp='$CPP $CPPFLAGS'
5215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5218 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5219 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5220 # On Suns, sometimes $CPP names a directory.
5221 if test -n "$CPP" && test -d "$CPP"; then
5224 if test -z "$CPP"; then
5225 if test "${ac_cv_prog_CPP+set}" = set; then
5226 echo $ECHO_N "(cached) $ECHO_C" >&6
5228 # Double quotes because CPP needs to be expanded
5229 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5232 for ac_c_preproc_warn_flag in '' yes
5234 # Use a header file that comes with gcc, so configuring glibc
5235 # with a fresh cross-compiler works.
5236 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5237 # <limits.h> exists even on freestanding compilers.
5238 # On the NeXT, cc -E runs the code through the compiler's parser,
5239 # not just through cpp. "Syntax error" is here to catch this case.
5240 cat >conftest.$ac_ext <<_ACEOF
5243 cat confdefs.h >>conftest.$ac_ext
5244 cat >>conftest.$ac_ext <<_ACEOF
5245 /* end confdefs.h. */
5247 # include <limits.h>
5249 # include <assert.h>
5253 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5254 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5256 grep -v '^ *+' conftest.er1 >conftest.err
5258 cat conftest.err >&5
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); } >/dev/null; then
5261 if test -s conftest.err; then
5262 ac_cpp_err=$ac_c_preproc_warn_flag
5263 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5270 if test -z "$ac_cpp_err"; then
5273 echo "$as_me: failed program was:" >&5
5274 sed 's/^/| /' conftest.$ac_ext >&5
5276 # Broken: fails on valid input.
5279 rm -f conftest.err conftest.$ac_ext
5281 # OK, works on sane cases. Now check whether non-existent headers
5282 # can be detected and how.
5283 cat >conftest.$ac_ext <<_ACEOF
5286 cat confdefs.h >>conftest.$ac_ext
5287 cat >>conftest.$ac_ext <<_ACEOF
5288 /* end confdefs.h. */
5289 #include <ac_nonexistent.h>
5291 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5292 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5294 grep -v '^ *+' conftest.er1 >conftest.err
5296 cat conftest.err >&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); } >/dev/null; then
5299 if test -s conftest.err; then
5300 ac_cpp_err=$ac_c_preproc_warn_flag
5301 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5308 if test -z "$ac_cpp_err"; then
5309 # Broken: success on invalid input.
5312 echo "$as_me: failed program was:" >&5
5313 sed 's/^/| /' conftest.$ac_ext >&5
5315 # Passes both tests.
5319 rm -f conftest.err conftest.$ac_ext
5322 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5323 rm -f conftest.err conftest.$ac_ext
5324 if $ac_preproc_ok; then
5336 echo "$as_me:$LINENO: result: $CPP" >&5
5337 echo "${ECHO_T}$CPP" >&6
5339 for ac_c_preproc_warn_flag in '' yes
5341 # Use a header file that comes with gcc, so configuring glibc
5342 # with a fresh cross-compiler works.
5343 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5344 # <limits.h> exists even on freestanding compilers.
5345 # On the NeXT, cc -E runs the code through the compiler's parser,
5346 # not just through cpp. "Syntax error" is here to catch this case.
5347 cat >conftest.$ac_ext <<_ACEOF
5350 cat confdefs.h >>conftest.$ac_ext
5351 cat >>conftest.$ac_ext <<_ACEOF
5352 /* end confdefs.h. */
5354 # include <limits.h>
5356 # include <assert.h>
5360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5363 grep -v '^ *+' conftest.er1 >conftest.err
5365 cat conftest.err >&5
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); } >/dev/null; then
5368 if test -s conftest.err; then
5369 ac_cpp_err=$ac_c_preproc_warn_flag
5370 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5377 if test -z "$ac_cpp_err"; then
5380 echo "$as_me: failed program was:" >&5
5381 sed 's/^/| /' conftest.$ac_ext >&5
5383 # Broken: fails on valid input.
5386 rm -f conftest.err conftest.$ac_ext
5388 # OK, works on sane cases. Now check whether non-existent headers
5389 # can be detected and how.
5390 cat >conftest.$ac_ext <<_ACEOF
5393 cat confdefs.h >>conftest.$ac_ext
5394 cat >>conftest.$ac_ext <<_ACEOF
5395 /* end confdefs.h. */
5396 #include <ac_nonexistent.h>
5398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5401 grep -v '^ *+' conftest.er1 >conftest.err
5403 cat conftest.err >&5
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); } >/dev/null; then
5406 if test -s conftest.err; then
5407 ac_cpp_err=$ac_c_preproc_warn_flag
5408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5415 if test -z "$ac_cpp_err"; then
5416 # Broken: success on invalid input.
5419 echo "$as_me: failed program was:" >&5
5420 sed 's/^/| /' conftest.$ac_ext >&5
5422 # Passes both tests.
5426 rm -f conftest.err conftest.$ac_ext
5429 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5430 rm -f conftest.err conftest.$ac_ext
5431 if $ac_preproc_ok; then
5434 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5435 See \`config.log' for more details." >&5
5436 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5437 See \`config.log' for more details." >&2;}
5438 { (exit 1); exit 1; }; }
5442 ac_cpp='$CPP $CPPFLAGS'
5443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5448 echo "$as_me:$LINENO: checking for egrep" >&5
5449 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5450 if test "${ac_cv_prog_egrep+set}" = set; then
5451 echo $ECHO_N "(cached) $ECHO_C" >&6
5453 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5454 then ac_cv_prog_egrep='grep -E'
5455 else ac_cv_prog_egrep='egrep'
5458 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5459 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5460 EGREP=$ac_cv_prog_egrep
5463 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5464 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5465 if test "${ac_cv_header_stdc+set}" = set; then
5466 echo $ECHO_N "(cached) $ECHO_C" >&6
5468 cat >conftest.$ac_ext <<_ACEOF
5471 cat confdefs.h >>conftest.$ac_ext
5472 cat >>conftest.$ac_ext <<_ACEOF
5473 /* end confdefs.h. */
5487 rm -f conftest.$ac_objext
5488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5489 (eval $ac_compile) 2>conftest.er1
5491 grep -v '^ *+' conftest.er1 >conftest.err
5493 cat conftest.err >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); } &&
5496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); }; } &&
5502 { ac_try='test -s conftest.$ac_objext'
5503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); }; }; then
5508 ac_cv_header_stdc=yes
5510 echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5513 ac_cv_header_stdc=no
5515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5517 if test $ac_cv_header_stdc = yes; then
5518 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5519 cat >conftest.$ac_ext <<_ACEOF
5522 cat confdefs.h >>conftest.$ac_ext
5523 cat >>conftest.$ac_ext <<_ACEOF
5524 /* end confdefs.h. */
5528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5529 $EGREP "memchr" >/dev/null 2>&1; then
5532 ac_cv_header_stdc=no
5538 if test $ac_cv_header_stdc = yes; then
5539 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5540 cat >conftest.$ac_ext <<_ACEOF
5543 cat confdefs.h >>conftest.$ac_ext
5544 cat >>conftest.$ac_ext <<_ACEOF
5545 /* end confdefs.h. */
5549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5550 $EGREP "free" >/dev/null 2>&1; then
5553 ac_cv_header_stdc=no
5559 if test $ac_cv_header_stdc = yes; then
5560 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5561 if test "$cross_compiling" = yes; then
5564 cat >conftest.$ac_ext <<_ACEOF
5567 cat confdefs.h >>conftest.$ac_ext
5568 cat >>conftest.$ac_ext <<_ACEOF
5569 /* end confdefs.h. */
5571 #if ((' ' & 0x0FF) == 0x020)
5572 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5573 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5575 # define ISLOWER(c) \
5576 (('a' <= (c) && (c) <= 'i') \
5577 || ('j' <= (c) && (c) <= 'r') \
5578 || ('s' <= (c) && (c) <= 'z'))
5579 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5582 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5587 for (i = 0; i < 256; i++)
5588 if (XOR (islower (i), ISLOWER (i))
5589 || toupper (i) != TOUPPER (i))
5594 rm -f conftest$ac_exeext
5595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5596 (eval $ac_link) 2>&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); }; }; then
5607 echo "$as_me: program exited with status $ac_status" >&5
5608 echo "$as_me: failed program was:" >&5
5609 sed 's/^/| /' conftest.$ac_ext >&5
5612 ac_cv_header_stdc=no
5614 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5618 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5619 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5620 if test $ac_cv_header_stdc = yes; then
5622 cat >>confdefs.h <<\_ACEOF
5623 #define STDC_HEADERS 1
5628 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5629 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5630 if test "${ac_cv_c_const+set}" = set; then
5631 echo $ECHO_N "(cached) $ECHO_C" >&6
5633 cat >conftest.$ac_ext <<_ACEOF
5636 cat confdefs.h >>conftest.$ac_ext
5637 cat >>conftest.$ac_ext <<_ACEOF
5638 /* end confdefs.h. */
5643 /* FIXME: Include the comments suggested by Paul. */
5645 /* Ultrix mips cc rejects this. */
5646 typedef int charset[2];
5648 /* SunOS 4.1.1 cc rejects this. */
5649 char const *const *ccp;
5651 /* NEC SVR4.0.2 mips cc rejects this. */
5652 struct point {int x, y;};
5653 static struct point const zero = {0,0};
5654 /* AIX XL C 1.02.0.0 rejects this.
5655 It does not let you subtract one const X* pointer from another in
5656 an arm of an if-expression whose if-part is not a constant
5658 const char *g = "string";
5659 ccp = &g + (g ? g-g : 0);
5660 /* HPUX 7.0 cc rejects these. */
5663 ccp = (char const *const *) p;
5664 { /* SCO 3.2v4 cc rejects this. */
5666 char const *s = 0 ? (char *) 0 : (char const *) 0;
5670 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5672 const int *foo = &x[0];
5675 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5676 typedef const int *iptr;
5680 { /* AIX XL C 1.02.0.0 rejects this saying
5681 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5682 struct s { int j; const int *ap[3]; };
5683 struct s *b; b->j = 5;
5685 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5694 rm -f conftest.$ac_objext
5695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5696 (eval $ac_compile) 2>conftest.er1
5698 grep -v '^ *+' conftest.er1 >conftest.err
5700 cat conftest.err >&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); } &&
5703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); }; } &&
5709 { ac_try='test -s conftest.$ac_objext'
5710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); }; }; then
5717 echo "$as_me: failed program was:" >&5
5718 sed 's/^/| /' conftest.$ac_ext >&5
5722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5724 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5725 echo "${ECHO_T}$ac_cv_c_const" >&6
5726 if test $ac_cv_c_const = no; then
5728 cat >>confdefs.h <<\_ACEOF
5734 echo "$as_me:$LINENO: checking for inline" >&5
5735 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5736 if test "${ac_cv_c_inline+set}" = set; then
5737 echo $ECHO_N "(cached) $ECHO_C" >&6
5740 for ac_kw in inline __inline__ __inline; do
5741 cat >conftest.$ac_ext <<_ACEOF
5744 cat confdefs.h >>conftest.$ac_ext
5745 cat >>conftest.$ac_ext <<_ACEOF
5746 /* end confdefs.h. */
5749 static $ac_kw foo_t static_foo () {return 0; }
5750 $ac_kw foo_t foo () {return 0; }
5754 rm -f conftest.$ac_objext
5755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5756 (eval $ac_compile) 2>conftest.er1
5758 grep -v '^ *+' conftest.er1 >conftest.err
5760 cat conftest.err >&5
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); } &&
5763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); }; } &&
5769 { ac_try='test -s conftest.$ac_objext'
5770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }; }; then
5775 ac_cv_c_inline=$ac_kw; break
5777 echo "$as_me: failed program was:" >&5
5778 sed 's/^/| /' conftest.$ac_ext >&5
5781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5785 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5786 echo "${ECHO_T}$ac_cv_c_inline" >&6
5789 case $ac_cv_c_inline in
5792 case $ac_cv_c_inline in
5794 *) ac_val=$ac_cv_c_inline;;
5796 cat >>confdefs.h <<_ACEOF
5798 #define inline $ac_val
5804 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5814 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5815 inttypes.h stdint.h unistd.h
5817 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5818 echo "$as_me:$LINENO: checking for $ac_header" >&5
5819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5823 cat >conftest.$ac_ext <<_ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h. */
5829 $ac_includes_default
5831 #include <$ac_header>
5833 rm -f conftest.$ac_objext
5834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5835 (eval $ac_compile) 2>conftest.er1
5837 grep -v '^ *+' conftest.er1 >conftest.err
5839 cat conftest.err >&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); } &&
5842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); }; } &&
5848 { ac_try='test -s conftest.$ac_objext'
5849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); }; }; then
5854 eval "$as_ac_Header=yes"
5856 echo "$as_me: failed program was:" >&5
5857 sed 's/^/| /' conftest.$ac_ext >&5
5859 eval "$as_ac_Header=no"
5861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5864 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5866 cat >>confdefs.h <<_ACEOF
5867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5875 echo "$as_me:$LINENO: checking for off_t" >&5
5876 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5877 if test "${ac_cv_type_off_t+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5880 cat >conftest.$ac_ext <<_ACEOF
5883 cat confdefs.h >>conftest.$ac_ext
5884 cat >>conftest.$ac_ext <<_ACEOF
5885 /* end confdefs.h. */
5886 $ac_includes_default
5898 rm -f conftest.$ac_objext
5899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5900 (eval $ac_compile) 2>conftest.er1
5902 grep -v '^ *+' conftest.er1 >conftest.err
5904 cat conftest.err >&5
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); } &&
5907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); }; } &&
5913 { ac_try='test -s conftest.$ac_objext'
5914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); }; }; then
5919 ac_cv_type_off_t=yes
5921 echo "$as_me: failed program was:" >&5
5922 sed 's/^/| /' conftest.$ac_ext >&5
5926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5928 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5929 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5930 if test $ac_cv_type_off_t = yes; then
5934 cat >>confdefs.h <<_ACEOF
5940 echo "$as_me:$LINENO: checking for size_t" >&5
5941 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5942 if test "${ac_cv_type_size_t+set}" = set; then
5943 echo $ECHO_N "(cached) $ECHO_C" >&6
5945 cat >conftest.$ac_ext <<_ACEOF
5948 cat confdefs.h >>conftest.$ac_ext
5949 cat >>conftest.$ac_ext <<_ACEOF
5950 /* end confdefs.h. */
5951 $ac_includes_default
5957 if (sizeof (size_t))
5963 rm -f conftest.$ac_objext
5964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5965 (eval $ac_compile) 2>conftest.er1
5967 grep -v '^ *+' conftest.er1 >conftest.err
5969 cat conftest.err >&5
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); } &&
5972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); }; } &&
5978 { ac_try='test -s conftest.$ac_objext'
5979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); }; }; then
5984 ac_cv_type_size_t=yes
5986 echo "$as_me: failed program was:" >&5
5987 sed 's/^/| /' conftest.$ac_ext >&5
5989 ac_cv_type_size_t=no
5991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5993 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5994 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5995 if test $ac_cv_type_size_t = yes; then
5999 cat >>confdefs.h <<_ACEOF
6000 #define size_t unsigned
6005 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6006 # for constant arguments. Useless!
6007 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6008 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6009 if test "${ac_cv_working_alloca_h+set}" = set; then
6010 echo $ECHO_N "(cached) $ECHO_C" >&6
6012 cat >conftest.$ac_ext <<_ACEOF
6015 cat confdefs.h >>conftest.$ac_ext
6016 cat >>conftest.$ac_ext <<_ACEOF
6017 /* end confdefs.h. */
6022 char *p = (char *) alloca (2 * sizeof (int));
6027 rm -f conftest.$ac_objext conftest$ac_exeext
6028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6029 (eval $ac_link) 2>conftest.er1
6031 grep -v '^ *+' conftest.er1 >conftest.err
6033 cat conftest.err >&5
6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); } &&
6036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); }; } &&
6042 { ac_try='test -s conftest$ac_exeext'
6043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); }; }; then
6048 ac_cv_working_alloca_h=yes
6050 echo "$as_me: failed program was:" >&5
6051 sed 's/^/| /' conftest.$ac_ext >&5
6053 ac_cv_working_alloca_h=no
6055 rm -f conftest.err conftest.$ac_objext \
6056 conftest$ac_exeext conftest.$ac_ext
6058 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6059 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6060 if test $ac_cv_working_alloca_h = yes; then
6062 cat >>confdefs.h <<\_ACEOF
6063 #define HAVE_ALLOCA_H 1
6068 echo "$as_me:$LINENO: checking for alloca" >&5
6069 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6070 if test "${ac_cv_func_alloca_works+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 cat >conftest.$ac_ext <<_ACEOF
6076 cat confdefs.h >>conftest.$ac_ext
6077 cat >>conftest.$ac_ext <<_ACEOF
6078 /* end confdefs.h. */
6080 # define alloca __builtin_alloca
6083 # include <malloc.h>
6084 # define alloca _alloca
6087 # include <alloca.h>
6092 # ifndef alloca /* predefined by HP cc +Olibcalls */
6103 char *p = (char *) alloca (1);
6108 rm -f conftest.$ac_objext conftest$ac_exeext
6109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6110 (eval $ac_link) 2>conftest.er1
6112 grep -v '^ *+' conftest.er1 >conftest.err
6114 cat conftest.err >&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); } &&
6117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); }; } &&
6123 { ac_try='test -s conftest$ac_exeext'
6124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); }; }; then
6129 ac_cv_func_alloca_works=yes
6131 echo "$as_me: failed program was:" >&5
6132 sed 's/^/| /' conftest.$ac_ext >&5
6134 ac_cv_func_alloca_works=no
6136 rm -f conftest.err conftest.$ac_objext \
6137 conftest$ac_exeext conftest.$ac_ext
6139 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6140 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6142 if test $ac_cv_func_alloca_works = yes; then
6144 cat >>confdefs.h <<\_ACEOF
6145 #define HAVE_ALLOCA 1
6149 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6150 # that cause trouble. Some versions do not even contain alloca or
6151 # contain a buggy version. If you still want to use their alloca,
6152 # use ar to extract alloca.o from them instead of compiling alloca.c.
6154 ALLOCA=alloca.$ac_objext
6156 cat >>confdefs.h <<\_ACEOF
6161 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6162 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6163 if test "${ac_cv_os_cray+set}" = set; then
6164 echo $ECHO_N "(cached) $ECHO_C" >&6
6166 cat >conftest.$ac_ext <<_ACEOF
6169 cat confdefs.h >>conftest.$ac_ext
6170 cat >>conftest.$ac_ext <<_ACEOF
6171 /* end confdefs.h. */
6172 #if defined(CRAY) && ! defined(CRAY2)
6179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6180 $EGREP "webecray" >/dev/null 2>&1; then
6188 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6189 echo "${ECHO_T}$ac_cv_os_cray" >&6
6190 if test $ac_cv_os_cray = yes; then
6191 for ac_func in _getb67 GETB67 getb67; do
6192 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6193 echo "$as_me:$LINENO: checking for $ac_func" >&5
6194 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6195 if eval "test \"\${$as_ac_var+set}\" = set"; then
6196 echo $ECHO_N "(cached) $ECHO_C" >&6
6198 cat >conftest.$ac_ext <<_ACEOF
6201 cat confdefs.h >>conftest.$ac_ext
6202 cat >>conftest.$ac_ext <<_ACEOF
6203 /* end confdefs.h. */
6204 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6206 #define $ac_func innocuous_$ac_func
6208 /* System header to define __stub macros and hopefully few prototypes,
6209 which can conflict with char $ac_func (); below.
6210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6211 <limits.h> exists even on freestanding compilers. */
6214 # include <limits.h>
6216 # include <assert.h>
6221 /* Override any gcc2 internal prototype to avoid an error. */
6226 /* We use char because int might match the return type of a gcc2
6227 builtin and then its argument prototype would still apply. */
6229 /* The GNU C library defines this for functions which it implements
6230 to always fail with ENOSYS. Some functions are actually named
6231 something starting with __ and the normal name is an alias. */
6232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6235 char (*f) () = $ac_func;
6244 return f != $ac_func;
6249 rm -f conftest.$ac_objext conftest$ac_exeext
6250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6251 (eval $ac_link) 2>conftest.er1
6253 grep -v '^ *+' conftest.er1 >conftest.err
6255 cat conftest.err >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } &&
6258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); }; } &&
6264 { ac_try='test -s conftest$ac_exeext'
6265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); }; }; then
6270 eval "$as_ac_var=yes"
6272 echo "$as_me: failed program was:" >&5
6273 sed 's/^/| /' conftest.$ac_ext >&5
6275 eval "$as_ac_var=no"
6277 rm -f conftest.err conftest.$ac_objext \
6278 conftest$ac_exeext conftest.$ac_ext
6280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6281 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6282 if test `eval echo '${'$as_ac_var'}'` = yes; then
6284 cat >>confdefs.h <<_ACEOF
6285 #define CRAY_STACKSEG_END $ac_func
6294 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6295 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6296 if test "${ac_cv_c_stack_direction+set}" = set; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
6299 if test "$cross_compiling" = yes; then
6300 ac_cv_c_stack_direction=0
6302 cat >conftest.$ac_ext <<_ACEOF
6305 cat confdefs.h >>conftest.$ac_ext
6306 cat >>conftest.$ac_ext <<_ACEOF
6307 /* end confdefs.h. */
6309 find_stack_direction ()
6311 static char *addr = 0;
6316 return find_stack_direction ();
6319 return (&dummy > addr) ? 1 : -1;
6325 exit (find_stack_direction () < 0);
6328 rm -f conftest$ac_exeext
6329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6330 (eval $ac_link) 2>&5
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); }; }; then
6339 ac_cv_c_stack_direction=1
6341 echo "$as_me: program exited with status $ac_status" >&5
6342 echo "$as_me: failed program was:" >&5
6343 sed 's/^/| /' conftest.$ac_ext >&5
6346 ac_cv_c_stack_direction=-1
6348 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6351 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6352 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6354 cat >>confdefs.h <<_ACEOF
6355 #define STACK_DIRECTION $ac_cv_c_stack_direction
6363 for ac_header in stdlib.h unistd.h
6365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6367 echo "$as_me:$LINENO: checking for $ac_header" >&5
6368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6370 echo $ECHO_N "(cached) $ECHO_C" >&6
6372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6375 # Is the header compilable?
6376 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6378 cat >conftest.$ac_ext <<_ACEOF
6381 cat confdefs.h >>conftest.$ac_ext
6382 cat >>conftest.$ac_ext <<_ACEOF
6383 /* end confdefs.h. */
6384 $ac_includes_default
6385 #include <$ac_header>
6387 rm -f conftest.$ac_objext
6388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6389 (eval $ac_compile) 2>conftest.er1
6391 grep -v '^ *+' conftest.er1 >conftest.err
6393 cat conftest.err >&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } &&
6396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); }; } &&
6402 { ac_try='test -s conftest.$ac_objext'
6403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); }; }; then
6408 ac_header_compiler=yes
6410 echo "$as_me: failed program was:" >&5
6411 sed 's/^/| /' conftest.$ac_ext >&5
6413 ac_header_compiler=no
6415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6416 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6417 echo "${ECHO_T}$ac_header_compiler" >&6
6419 # Is the header present?
6420 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6422 cat >conftest.$ac_ext <<_ACEOF
6425 cat confdefs.h >>conftest.$ac_ext
6426 cat >>conftest.$ac_ext <<_ACEOF
6427 /* end confdefs.h. */
6428 #include <$ac_header>
6430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6433 grep -v '^ *+' conftest.er1 >conftest.err
6435 cat conftest.err >&5
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); } >/dev/null; then
6438 if test -s conftest.err; then
6439 ac_cpp_err=$ac_c_preproc_warn_flag
6440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6447 if test -z "$ac_cpp_err"; then
6448 ac_header_preproc=yes
6450 echo "$as_me: failed program was:" >&5
6451 sed 's/^/| /' conftest.$ac_ext >&5
6453 ac_header_preproc=no
6455 rm -f conftest.err conftest.$ac_ext
6456 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6457 echo "${ECHO_T}$ac_header_preproc" >&6
6459 # So? What about this header?
6460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6462 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6463 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6465 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6466 ac_header_preproc=yes
6469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6470 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6472 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6473 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6474 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6475 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6476 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6479 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6480 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6483 ## ------------------------------------------ ##
6484 ## Report this to the AC_PACKAGE_NAME lists. ##
6485 ## ------------------------------------------ ##
6488 sed "s/^/$as_me: WARNING: /" >&2
6491 echo "$as_me:$LINENO: checking for $ac_header" >&5
6492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
6496 eval "$as_ac_Header=\$ac_header_preproc"
6498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6503 cat >>confdefs.h <<_ACEOF
6504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6512 for ac_func in getpagesize
6514 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6515 echo "$as_me:$LINENO: checking for $ac_func" >&5
6516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6517 if eval "test \"\${$as_ac_var+set}\" = set"; then
6518 echo $ECHO_N "(cached) $ECHO_C" >&6
6520 cat >conftest.$ac_ext <<_ACEOF
6523 cat confdefs.h >>conftest.$ac_ext
6524 cat >>conftest.$ac_ext <<_ACEOF
6525 /* end confdefs.h. */
6526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6528 #define $ac_func innocuous_$ac_func
6530 /* System header to define __stub macros and hopefully few prototypes,
6531 which can conflict with char $ac_func (); below.
6532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6533 <limits.h> exists even on freestanding compilers. */
6536 # include <limits.h>
6538 # include <assert.h>
6543 /* Override any gcc2 internal prototype to avoid an error. */
6548 /* We use char because int might match the return type of a gcc2
6549 builtin and then its argument prototype would still apply. */
6551 /* The GNU C library defines this for functions which it implements
6552 to always fail with ENOSYS. Some functions are actually named
6553 something starting with __ and the normal name is an alias. */
6554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6557 char (*f) () = $ac_func;
6566 return f != $ac_func;
6571 rm -f conftest.$ac_objext conftest$ac_exeext
6572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6573 (eval $ac_link) 2>conftest.er1
6575 grep -v '^ *+' conftest.er1 >conftest.err
6577 cat conftest.err >&5
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); } &&
6580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); }; } &&
6586 { ac_try='test -s conftest$ac_exeext'
6587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); }; }; then
6592 eval "$as_ac_var=yes"
6594 echo "$as_me: failed program was:" >&5
6595 sed 's/^/| /' conftest.$ac_ext >&5
6597 eval "$as_ac_var=no"
6599 rm -f conftest.err conftest.$ac_objext \
6600 conftest$ac_exeext conftest.$ac_ext
6602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6603 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6604 if test `eval echo '${'$as_ac_var'}'` = yes; then
6605 cat >>confdefs.h <<_ACEOF
6606 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6612 echo "$as_me:$LINENO: checking for working mmap" >&5
6613 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6614 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6615 echo $ECHO_N "(cached) $ECHO_C" >&6
6617 if test "$cross_compiling" = yes; then
6618 ac_cv_func_mmap_fixed_mapped=no
6620 cat >conftest.$ac_ext <<_ACEOF
6623 cat confdefs.h >>conftest.$ac_ext
6624 cat >>conftest.$ac_ext <<_ACEOF
6625 /* end confdefs.h. */
6626 $ac_includes_default
6627 /* malloc might have been renamed as rpl_malloc. */
6630 /* Thanks to Mike Haertel and Jim Avera for this test.
6631 Here is a matrix of mmap possibilities:
6632 mmap private not fixed
6633 mmap private fixed at somewhere currently unmapped
6634 mmap private fixed at somewhere already mapped
6635 mmap shared not fixed
6636 mmap shared fixed at somewhere currently unmapped
6637 mmap shared fixed at somewhere already mapped
6638 For private mappings, we should verify that changes cannot be read()
6639 back from the file, nor mmap's back from the file at a different
6640 address. (There have been systems where private was not correctly
6641 implemented like the infamous i386 svr4.0, and systems where the
6642 VM page cache was not coherent with the file system buffer cache
6643 like early versions of FreeBSD and possibly contemporary NetBSD.)
6644 For shared mappings, we should conversely verify that changes get
6645 propagated back to all the places they're supposed to be.
6647 Grep wants private fixed already mapped.
6648 The main things grep needs to know about mmap are:
6649 * does it exist and is it safe to write into the mmap'd area
6650 * how to use it (BSD variants) */
6653 #include <sys/mman.h>
6655 #if !STDC_HEADERS && !HAVE_STDLIB_H
6659 /* This mess was copied from the GNU getpagesize.h. */
6660 #if !HAVE_GETPAGESIZE
6661 /* Assume that all systems that can run configure have sys/param.h. */
6662 # if !HAVE_SYS_PARAM_H
6663 # define HAVE_SYS_PARAM_H 1
6666 # ifdef _SC_PAGESIZE
6667 # define getpagesize() sysconf(_SC_PAGESIZE)
6668 # else /* no _SC_PAGESIZE */
6669 # if HAVE_SYS_PARAM_H
6670 # include <sys/param.h>
6671 # ifdef EXEC_PAGESIZE
6672 # define getpagesize() EXEC_PAGESIZE
6673 # else /* no EXEC_PAGESIZE */
6675 # define getpagesize() NBPG * CLSIZE
6678 # endif /* no CLSIZE */
6679 # else /* no NBPG */
6681 # define getpagesize() NBPC
6682 # else /* no NBPC */
6684 # define getpagesize() PAGESIZE
6685 # endif /* PAGESIZE */
6686 # endif /* no NBPC */
6687 # endif /* no NBPG */
6688 # endif /* no EXEC_PAGESIZE */
6689 # else /* no HAVE_SYS_PARAM_H */
6690 # define getpagesize() 8192 /* punt totally */
6691 # endif /* no HAVE_SYS_PARAM_H */
6692 # endif /* no _SC_PAGESIZE */
6694 #endif /* no HAVE_GETPAGESIZE */
6699 char *data, *data2, *data3;
6703 pagesize = getpagesize ();
6705 /* First, make a file with some known garbage in it. */
6706 data = (char *) malloc (pagesize);
6709 for (i = 0; i < pagesize; ++i)
6710 *(data + i) = rand ();
6712 fd = creat ("conftest.mmap", 0600);
6715 if (write (fd, data, pagesize) != pagesize)
6719 /* Next, try to mmap the file at a fixed address which already has
6720 something else allocated at it. If we can, also make sure that
6721 we see the same garbage. */
6722 fd = open ("conftest.mmap", O_RDWR);
6725 data2 = (char *) malloc (2 * pagesize);
6728 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6729 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6730 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6732 for (i = 0; i < pagesize; ++i)
6733 if (*(data + i) != *(data2 + i))
6736 /* Finally, make sure that changes to the mapped area do not
6737 percolate back to the file as seen by read(). (This is a bug on
6738 some variants of i386 svr4.0.) */
6739 for (i = 0; i < pagesize; ++i)
6740 *(data2 + i) = *(data2 + i) + 1;
6741 data3 = (char *) malloc (pagesize);
6744 if (read (fd, data3, pagesize) != pagesize)
6746 for (i = 0; i < pagesize; ++i)
6747 if (*(data + i) != *(data3 + i))
6753 rm -f conftest$ac_exeext
6754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6755 (eval $ac_link) 2>&5
6757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); }; }; then
6764 ac_cv_func_mmap_fixed_mapped=yes
6766 echo "$as_me: program exited with status $ac_status" >&5
6767 echo "$as_me: failed program was:" >&5
6768 sed 's/^/| /' conftest.$ac_ext >&5
6771 ac_cv_func_mmap_fixed_mapped=no
6773 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6776 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6777 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6778 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6780 cat >>confdefs.h <<\_ACEOF
6797 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6798 unistd.h values.h sys/param.h
6800 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6802 echo "$as_me:$LINENO: checking for $ac_header" >&5
6803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6805 echo $ECHO_N "(cached) $ECHO_C" >&6
6807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6808 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6810 # Is the header compilable?
6811 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6812 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6813 cat >conftest.$ac_ext <<_ACEOF
6816 cat confdefs.h >>conftest.$ac_ext
6817 cat >>conftest.$ac_ext <<_ACEOF
6818 /* end confdefs.h. */
6819 $ac_includes_default
6820 #include <$ac_header>
6822 rm -f conftest.$ac_objext
6823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6824 (eval $ac_compile) 2>conftest.er1
6826 grep -v '^ *+' conftest.er1 >conftest.err
6828 cat conftest.err >&5
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); } &&
6831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); }; } &&
6837 { ac_try='test -s conftest.$ac_objext'
6838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); }; }; then
6843 ac_header_compiler=yes
6845 echo "$as_me: failed program was:" >&5
6846 sed 's/^/| /' conftest.$ac_ext >&5
6848 ac_header_compiler=no
6850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6851 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6852 echo "${ECHO_T}$ac_header_compiler" >&6
6854 # Is the header present?
6855 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6856 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6857 cat >conftest.$ac_ext <<_ACEOF
6860 cat confdefs.h >>conftest.$ac_ext
6861 cat >>conftest.$ac_ext <<_ACEOF
6862 /* end confdefs.h. */
6863 #include <$ac_header>
6865 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6866 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6868 grep -v '^ *+' conftest.er1 >conftest.err
6870 cat conftest.err >&5
6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); } >/dev/null; then
6873 if test -s conftest.err; then
6874 ac_cpp_err=$ac_c_preproc_warn_flag
6875 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6882 if test -z "$ac_cpp_err"; then
6883 ac_header_preproc=yes
6885 echo "$as_me: failed program was:" >&5
6886 sed 's/^/| /' conftest.$ac_ext >&5
6888 ac_header_preproc=no
6890 rm -f conftest.err conftest.$ac_ext
6891 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6892 echo "${ECHO_T}$ac_header_preproc" >&6
6894 # So? What about this header?
6895 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6897 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6898 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6900 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6901 ac_header_preproc=yes
6904 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6905 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6906 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6907 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6908 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6909 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6910 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6911 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6913 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6914 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6915 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6918 ## ------------------------------------------ ##
6919 ## Report this to the AC_PACKAGE_NAME lists. ##
6920 ## ------------------------------------------ ##
6923 sed "s/^/$as_me: WARNING: /" >&2
6926 echo "$as_me:$LINENO: checking for $ac_header" >&5
6927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6929 echo $ECHO_N "(cached) $ECHO_C" >&6
6931 eval "$as_ac_Header=\$ac_header_preproc"
6933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6937 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6938 cat >>confdefs.h <<_ACEOF
6939 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6956 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
6957 __argz_count __argz_stringify __argz_next
6959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6960 echo "$as_me:$LINENO: checking for $ac_func" >&5
6961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6962 if eval "test \"\${$as_ac_var+set}\" = set"; then
6963 echo $ECHO_N "(cached) $ECHO_C" >&6
6965 cat >conftest.$ac_ext <<_ACEOF
6968 cat confdefs.h >>conftest.$ac_ext
6969 cat >>conftest.$ac_ext <<_ACEOF
6970 /* end confdefs.h. */
6971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6973 #define $ac_func innocuous_$ac_func
6975 /* System header to define __stub macros and hopefully few prototypes,
6976 which can conflict with char $ac_func (); below.
6977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6978 <limits.h> exists even on freestanding compilers. */
6981 # include <limits.h>
6983 # include <assert.h>
6988 /* Override any gcc2 internal prototype to avoid an error. */
6993 /* We use char because int might match the return type of a gcc2
6994 builtin and then its argument prototype would still apply. */
6996 /* The GNU C library defines this for functions which it implements
6997 to always fail with ENOSYS. Some functions are actually named
6998 something starting with __ and the normal name is an alias. */
6999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7002 char (*f) () = $ac_func;
7011 return f != $ac_func;
7016 rm -f conftest.$ac_objext conftest$ac_exeext
7017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7018 (eval $ac_link) 2>conftest.er1
7020 grep -v '^ *+' conftest.er1 >conftest.err
7022 cat conftest.err >&5
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); } &&
7025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); }; } &&
7031 { ac_try='test -s conftest$ac_exeext'
7032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036 (exit $ac_status); }; }; then
7037 eval "$as_ac_var=yes"
7039 echo "$as_me: failed program was:" >&5
7040 sed 's/^/| /' conftest.$ac_ext >&5
7042 eval "$as_ac_var=no"
7044 rm -f conftest.err conftest.$ac_objext \
7045 conftest$ac_exeext conftest.$ac_ext
7047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7048 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7049 if test `eval echo '${'$as_ac_var'}'` = yes; then
7050 cat >>confdefs.h <<_ACEOF
7051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7058 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7060 for ac_func in stpcpy
7062 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7063 echo "$as_me:$LINENO: checking for $ac_func" >&5
7064 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7065 if eval "test \"\${$as_ac_var+set}\" = set"; then
7066 echo $ECHO_N "(cached) $ECHO_C" >&6
7068 cat >conftest.$ac_ext <<_ACEOF
7071 cat confdefs.h >>conftest.$ac_ext
7072 cat >>conftest.$ac_ext <<_ACEOF
7073 /* end confdefs.h. */
7074 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7076 #define $ac_func innocuous_$ac_func
7078 /* System header to define __stub macros and hopefully few prototypes,
7079 which can conflict with char $ac_func (); below.
7080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7081 <limits.h> exists even on freestanding compilers. */
7084 # include <limits.h>
7086 # include <assert.h>
7091 /* Override any gcc2 internal prototype to avoid an error. */
7096 /* We use char because int might match the return type of a gcc2
7097 builtin and then its argument prototype would still apply. */
7099 /* The GNU C library defines this for functions which it implements
7100 to always fail with ENOSYS. Some functions are actually named
7101 something starting with __ and the normal name is an alias. */
7102 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7105 char (*f) () = $ac_func;
7114 return f != $ac_func;
7119 rm -f conftest.$ac_objext conftest$ac_exeext
7120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7121 (eval $ac_link) 2>conftest.er1
7123 grep -v '^ *+' conftest.er1 >conftest.err
7125 cat conftest.err >&5
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); } &&
7128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); }; } &&
7134 { ac_try='test -s conftest$ac_exeext'
7135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139 (exit $ac_status); }; }; then
7140 eval "$as_ac_var=yes"
7142 echo "$as_me: failed program was:" >&5
7143 sed 's/^/| /' conftest.$ac_ext >&5
7145 eval "$as_ac_var=no"
7147 rm -f conftest.err conftest.$ac_objext \
7148 conftest$ac_exeext conftest.$ac_ext
7150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7151 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7152 if test `eval echo '${'$as_ac_var'}'` = yes; then
7153 cat >>confdefs.h <<_ACEOF
7154 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7161 if test "${ac_cv_func_stpcpy}" = "yes"; then
7163 cat >>confdefs.h <<\_ACEOF
7164 #define HAVE_STPCPY 1
7169 if test $ac_cv_header_locale_h = yes; then
7170 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7171 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7172 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7173 echo $ECHO_N "(cached) $ECHO_C" >&6
7175 cat >conftest.$ac_ext <<_ACEOF
7178 cat confdefs.h >>conftest.$ac_ext
7179 cat >>conftest.$ac_ext <<_ACEOF
7180 /* end confdefs.h. */
7190 rm -f conftest.$ac_objext conftest$ac_exeext
7191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7192 (eval $ac_link) 2>conftest.er1
7194 grep -v '^ *+' conftest.er1 >conftest.err
7196 cat conftest.err >&5
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); } &&
7199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); }; } &&
7205 { ac_try='test -s conftest$ac_exeext'
7206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); }; }; then
7211 am_cv_val_LC_MESSAGES=yes
7213 echo "$as_me: failed program was:" >&5
7214 sed 's/^/| /' conftest.$ac_ext >&5
7216 am_cv_val_LC_MESSAGES=no
7218 rm -f conftest.err conftest.$ac_objext \
7219 conftest$ac_exeext conftest.$ac_ext
7221 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7222 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7223 if test $am_cv_val_LC_MESSAGES = yes; then
7225 cat >>confdefs.h <<\_ACEOF
7226 #define HAVE_LC_MESSAGES 1
7231 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7232 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7233 # Check whether --enable-nls or --disable-nls was given.
7234 if test "${enable_nls+set}" = set; then
7235 enableval="$enable_nls"
7240 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7241 echo "${ECHO_T}$USE_NLS" >&6
7244 USE_INCLUDED_LIBINTL=no
7246 if test "$USE_NLS" = "yes"; then
7247 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7248 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7250 # Check whether --with-included-gettext or --without-included-gettext was given.
7251 if test "${with_included_gettext+set}" = set; then
7252 withval="$with_included_gettext"
7253 nls_cv_force_use_gnu_gettext=$withval
7255 nls_cv_force_use_gnu_gettext=no
7257 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7258 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7260 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7261 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7263 nls_cv_header_libgt=
7266 if test "${ac_cv_header_libintl_h+set}" = set; then
7267 echo "$as_me:$LINENO: checking for libintl.h" >&5
7268 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7269 if test "${ac_cv_header_libintl_h+set}" = set; then
7270 echo $ECHO_N "(cached) $ECHO_C" >&6
7272 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7273 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7275 # Is the header compilable?
7276 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7277 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7278 cat >conftest.$ac_ext <<_ACEOF
7281 cat confdefs.h >>conftest.$ac_ext
7282 cat >>conftest.$ac_ext <<_ACEOF
7283 /* end confdefs.h. */
7284 $ac_includes_default
7285 #include <libintl.h>
7287 rm -f conftest.$ac_objext
7288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7289 (eval $ac_compile) 2>conftest.er1
7291 grep -v '^ *+' conftest.er1 >conftest.err
7293 cat conftest.err >&5
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); } &&
7296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); }; } &&
7302 { ac_try='test -s conftest.$ac_objext'
7303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); }; }; then
7308 ac_header_compiler=yes
7310 echo "$as_me: failed program was:" >&5
7311 sed 's/^/| /' conftest.$ac_ext >&5
7313 ac_header_compiler=no
7315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7316 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7317 echo "${ECHO_T}$ac_header_compiler" >&6
7319 # Is the header present?
7320 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7321 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7322 cat >conftest.$ac_ext <<_ACEOF
7325 cat confdefs.h >>conftest.$ac_ext
7326 cat >>conftest.$ac_ext <<_ACEOF
7327 /* end confdefs.h. */
7328 #include <libintl.h>
7330 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7331 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7333 grep -v '^ *+' conftest.er1 >conftest.err
7335 cat conftest.err >&5
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); } >/dev/null; then
7338 if test -s conftest.err; then
7339 ac_cpp_err=$ac_c_preproc_warn_flag
7340 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7347 if test -z "$ac_cpp_err"; then
7348 ac_header_preproc=yes
7350 echo "$as_me: failed program was:" >&5
7351 sed 's/^/| /' conftest.$ac_ext >&5
7353 ac_header_preproc=no
7355 rm -f conftest.err conftest.$ac_ext
7356 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7357 echo "${ECHO_T}$ac_header_preproc" >&6
7359 # So? What about this header?
7360 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7362 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7363 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7364 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7365 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7366 ac_header_preproc=yes
7369 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7370 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7371 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7372 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7373 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7374 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7375 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7376 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7377 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7378 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7379 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7380 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7383 ## ------------------------------------------ ##
7384 ## Report this to the AC_PACKAGE_NAME lists. ##
7385 ## ------------------------------------------ ##
7388 sed "s/^/$as_me: WARNING: /" >&2
7391 echo "$as_me:$LINENO: checking for libintl.h" >&5
7392 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7393 if test "${ac_cv_header_libintl_h+set}" = set; then
7394 echo $ECHO_N "(cached) $ECHO_C" >&6
7396 ac_cv_header_libintl_h=$ac_header_preproc
7398 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7399 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7402 if test $ac_cv_header_libintl_h = yes; then
7403 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7404 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7405 if test "${gt_cv_func_gettext_libc+set}" = set; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
7408 cat >conftest.$ac_ext <<_ACEOF
7411 cat confdefs.h >>conftest.$ac_ext
7412 cat >>conftest.$ac_ext <<_ACEOF
7413 /* end confdefs.h. */
7414 #include <libintl.h>
7418 return (int) gettext ("")
7423 rm -f conftest.$ac_objext conftest$ac_exeext
7424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7425 (eval $ac_link) 2>conftest.er1
7427 grep -v '^ *+' conftest.er1 >conftest.err
7429 cat conftest.err >&5
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); } &&
7432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); }; } &&
7438 { ac_try='test -s conftest$ac_exeext'
7439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); }; }; then
7444 gt_cv_func_gettext_libc=yes
7446 echo "$as_me: failed program was:" >&5
7447 sed 's/^/| /' conftest.$ac_ext >&5
7449 gt_cv_func_gettext_libc=no
7451 rm -f conftest.err conftest.$ac_objext \
7452 conftest$ac_exeext conftest.$ac_ext
7454 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7455 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
7457 if test "$gt_cv_func_gettext_libc" != "yes"; then
7458 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7459 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7460 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7461 echo $ECHO_N "(cached) $ECHO_C" >&6
7463 ac_check_lib_save_LIBS=$LIBS
7465 cat >conftest.$ac_ext <<_ACEOF
7468 cat confdefs.h >>conftest.$ac_ext
7469 cat >>conftest.$ac_ext <<_ACEOF
7470 /* end confdefs.h. */
7472 /* Override any gcc2 internal prototype to avoid an error. */
7476 /* We use char because int might match the return type of a gcc2
7477 builtin and then its argument prototype would still apply. */
7478 char bindtextdomain ();
7487 rm -f conftest.$ac_objext conftest$ac_exeext
7488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7489 (eval $ac_link) 2>conftest.er1
7491 grep -v '^ *+' conftest.er1 >conftest.err
7493 cat conftest.err >&5
7494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495 (exit $ac_status); } &&
7496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); }; } &&
7502 { ac_try='test -s conftest$ac_exeext'
7503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 (exit $ac_status); }; }; then
7508 ac_cv_lib_intl_bindtextdomain=yes
7510 echo "$as_me: failed program was:" >&5
7511 sed 's/^/| /' conftest.$ac_ext >&5
7513 ac_cv_lib_intl_bindtextdomain=no
7515 rm -f conftest.err conftest.$ac_objext \
7516 conftest$ac_exeext conftest.$ac_ext
7517 LIBS=$ac_check_lib_save_LIBS
7519 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7520 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7521 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7522 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7523 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7524 if test "${gt_cv_func_gettext_libintl+set}" = set; then
7525 echo $ECHO_N "(cached) $ECHO_C" >&6
7527 cat >conftest.$ac_ext <<_ACEOF
7530 cat confdefs.h >>conftest.$ac_ext
7531 cat >>conftest.$ac_ext <<_ACEOF
7532 /* end confdefs.h. */
7537 return (int) gettext ("")
7542 rm -f conftest.$ac_objext conftest$ac_exeext
7543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7544 (eval $ac_link) 2>conftest.er1
7546 grep -v '^ *+' conftest.er1 >conftest.err
7548 cat conftest.err >&5
7549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 (exit $ac_status); } &&
7551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); }; } &&
7557 { ac_try='test -s conftest$ac_exeext'
7558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562 (exit $ac_status); }; }; then
7563 gt_cv_func_gettext_libintl=yes
7565 echo "$as_me: failed program was:" >&5
7566 sed 's/^/| /' conftest.$ac_ext >&5
7568 gt_cv_func_gettext_libintl=no
7570 rm -f conftest.err conftest.$ac_objext \
7571 conftest$ac_exeext conftest.$ac_ext
7573 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7574 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
7579 if test "$gt_cv_func_gettext_libc" = "yes" \
7580 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7582 cat >>confdefs.h <<\_ACEOF
7583 #define HAVE_GETTEXT 1
7586 # Extract the first word of "msgfmt", so it can be a program name with args.
7587 set dummy msgfmt; ac_word=$2
7588 echo "$as_me:$LINENO: checking for $ac_word" >&5
7589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7590 if test "${ac_cv_path_MSGFMT+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7595 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7598 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7599 for ac_dir in $PATH; do
7600 test -z "$ac_dir" && ac_dir=.
7601 if test -f $ac_dir/$ac_word; then
7602 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7603 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7609 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7613 MSGFMT="$ac_cv_path_MSGFMT"
7614 if test -n "$MSGFMT"; then
7615 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7616 echo "${ECHO_T}$MSGFMT" >&6
7618 echo "$as_me:$LINENO: result: no" >&5
7619 echo "${ECHO_T}no" >&6
7621 if test "$MSGFMT" != "no"; then
7623 for ac_func in dcgettext
7625 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7626 echo "$as_me:$LINENO: checking for $ac_func" >&5
7627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7628 if eval "test \"\${$as_ac_var+set}\" = set"; then
7629 echo $ECHO_N "(cached) $ECHO_C" >&6
7631 cat >conftest.$ac_ext <<_ACEOF
7634 cat confdefs.h >>conftest.$ac_ext
7635 cat >>conftest.$ac_ext <<_ACEOF
7636 /* end confdefs.h. */
7637 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7639 #define $ac_func innocuous_$ac_func
7641 /* System header to define __stub macros and hopefully few prototypes,
7642 which can conflict with char $ac_func (); below.
7643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7644 <limits.h> exists even on freestanding compilers. */
7647 # include <limits.h>
7649 # include <assert.h>
7654 /* Override any gcc2 internal prototype to avoid an error. */
7659 /* We use char because int might match the return type of a gcc2
7660 builtin and then its argument prototype would still apply. */
7662 /* The GNU C library defines this for functions which it implements
7663 to always fail with ENOSYS. Some functions are actually named
7664 something starting with __ and the normal name is an alias. */
7665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7668 char (*f) () = $ac_func;
7677 return f != $ac_func;
7682 rm -f conftest.$ac_objext conftest$ac_exeext
7683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7684 (eval $ac_link) 2>conftest.er1
7686 grep -v '^ *+' conftest.er1 >conftest.err
7688 cat conftest.err >&5
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); } &&
7691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); }; } &&
7697 { ac_try='test -s conftest$ac_exeext'
7698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); }; }; then
7703 eval "$as_ac_var=yes"
7705 echo "$as_me: failed program was:" >&5
7706 sed 's/^/| /' conftest.$ac_ext >&5
7708 eval "$as_ac_var=no"
7710 rm -f conftest.err conftest.$ac_objext \
7711 conftest$ac_exeext conftest.$ac_ext
7713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7714 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7715 if test `eval echo '${'$as_ac_var'}'` = yes; then
7716 cat >>confdefs.h <<_ACEOF
7717 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7723 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7724 set dummy gmsgfmt; ac_word=$2
7725 echo "$as_me:$LINENO: checking for $ac_word" >&5
7726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7727 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7728 echo $ECHO_N "(cached) $ECHO_C" >&6
7732 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7739 test -z "$as_dir" && as_dir=.
7740 for ac_exec_ext in '' $ac_executable_extensions; do
7741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7742 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7749 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7753 GMSGFMT=$ac_cv_path_GMSGFMT
7755 if test -n "$GMSGFMT"; then
7756 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7757 echo "${ECHO_T}$GMSGFMT" >&6
7759 echo "$as_me:$LINENO: result: no" >&5
7760 echo "${ECHO_T}no" >&6
7763 # Extract the first word of "xgettext", so it can be a program name with args.
7764 set dummy xgettext; ac_word=$2
7765 echo "$as_me:$LINENO: checking for $ac_word" >&5
7766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7767 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7768 echo $ECHO_N "(cached) $ECHO_C" >&6
7772 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7775 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7776 for ac_dir in $PATH; do
7777 test -z "$ac_dir" && ac_dir=.
7778 if test -f $ac_dir/$ac_word; then
7779 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7780 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7786 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7790 XGETTEXT="$ac_cv_path_XGETTEXT"
7791 if test -n "$XGETTEXT"; then
7792 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7793 echo "${ECHO_T}$XGETTEXT" >&6
7795 echo "$as_me:$LINENO: result: no" >&5
7796 echo "${ECHO_T}no" >&6
7799 cat >conftest.$ac_ext <<_ACEOF
7802 cat confdefs.h >>conftest.$ac_ext
7803 cat >>conftest.$ac_ext <<_ACEOF
7804 /* end confdefs.h. */
7809 extern int _nl_msg_cat_cntr;
7810 return _nl_msg_cat_cntr
7815 rm -f conftest.$ac_objext conftest$ac_exeext
7816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7817 (eval $ac_link) 2>conftest.er1
7819 grep -v '^ *+' conftest.er1 >conftest.err
7821 cat conftest.err >&5
7822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823 (exit $ac_status); } &&
7824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); }; } &&
7830 { ac_try='test -s conftest$ac_exeext'
7831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); }; }; then
7839 echo "$as_me: failed program was:" >&5
7840 sed 's/^/| /' conftest.$ac_ext >&5
7845 rm -f conftest.err conftest.$ac_objext \
7846 conftest$ac_exeext conftest.$ac_ext
7856 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
7857 # Neither gettext nor catgets in included in the C library.
7858 # Fall back on GNU gettext library (assuming it is present).
7859 nls_cv_use_gnu_gettext=yes
7863 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7864 INTLOBJS="\$(GETTOBJS)"
7865 # Extract the first word of "msgfmt", so it can be a program name with args.
7866 set dummy msgfmt; ac_word=$2
7867 echo "$as_me:$LINENO: checking for $ac_word" >&5
7868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7869 if test "${ac_cv_path_MSGFMT+set}" = set; then
7870 echo $ECHO_N "(cached) $ECHO_C" >&6
7874 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7877 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7878 for ac_dir in $PATH; do
7879 test -z "$ac_dir" && ac_dir=.
7880 if test -f $ac_dir/$ac_word; then
7881 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7882 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7888 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7892 MSGFMT="$ac_cv_path_MSGFMT"
7893 if test -n "$MSGFMT"; then
7894 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7895 echo "${ECHO_T}$MSGFMT" >&6
7897 echo "$as_me:$LINENO: result: no" >&5
7898 echo "${ECHO_T}no" >&6
7901 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7902 set dummy gmsgfmt; ac_word=$2
7903 echo "$as_me:$LINENO: checking for $ac_word" >&5
7904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7905 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7906 echo $ECHO_N "(cached) $ECHO_C" >&6
7910 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917 test -z "$as_dir" && as_dir=.
7918 for ac_exec_ext in '' $ac_executable_extensions; do
7919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7920 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7927 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7931 GMSGFMT=$ac_cv_path_GMSGFMT
7933 if test -n "$GMSGFMT"; then
7934 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7935 echo "${ECHO_T}$GMSGFMT" >&6
7937 echo "$as_me:$LINENO: result: no" >&5
7938 echo "${ECHO_T}no" >&6
7941 # Extract the first word of "xgettext", so it can be a program name with args.
7942 set dummy xgettext; ac_word=$2
7943 echo "$as_me:$LINENO: checking for $ac_word" >&5
7944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7945 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7946 echo $ECHO_N "(cached) $ECHO_C" >&6
7950 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7953 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7954 for ac_dir in $PATH; do
7955 test -z "$ac_dir" && ac_dir=.
7956 if test -f $ac_dir/$ac_word; then
7957 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7958 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7964 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7968 XGETTEXT="$ac_cv_path_XGETTEXT"
7969 if test -n "$XGETTEXT"; then
7970 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7971 echo "${ECHO_T}$XGETTEXT" >&6
7973 echo "$as_me:$LINENO: result: no" >&5
7974 echo "${ECHO_T}no" >&6
7978 USE_INCLUDED_LIBINTL=yes
7982 INTLDEPS='$(top_builddir)/../intl/libintl.a'
7984 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7985 nls_cv_header_intl=libintl.h
7986 nls_cv_header_libgt=libgettext.h
7989 if test "$XGETTEXT" != ":"; then
7990 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7993 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
7994 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
7999 # We need to process the po/ directory.
8003 nls_cv_header_intl=libintl.h
8004 nls_cv_header_libgt=libgettext.h
8007 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8008 # because some of the sources are only built for this goal.
8009 if test "$PACKAGE" = gettext; then
8011 USE_INCLUDED_LIBINTL=yes
8014 for lang in $ALL_LINGUAS; do
8015 GMOFILES="$GMOFILES $lang.gmo"
8016 POFILES="$POFILES $lang.po"
8030 if test "x$CATOBJEXT" != "x"; then
8032 cat >>confdefs.h <<\_ACEOF
8033 #define ENABLE_NLS 1
8039 if test "x$CATOBJEXT" != "x"; then
8040 if test "x$ALL_LINGUAS" = "x"; then
8043 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8044 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8046 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8047 case "$ALL_LINGUAS" in
8048 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8051 LINGUAS=$NEW_LINGUAS
8052 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8053 echo "${ECHO_T}$LINGUAS" >&6
8056 if test -n "$LINGUAS"; then
8057 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8061 if test $ac_cv_header_locale_h = yes; then
8062 INCLUDE_LOCALE_H="#include <locale.h>"
8065 /* The system does not provide the header <locale.h>. Take care yourself. */"
8069 if test -f $srcdir/po2tbl.sed.in; then
8070 if test "$CATOBJEXT" = ".cat"; then
8071 if test "${ac_cv_header_linux_version_h+set}" = set; then
8072 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8073 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8074 if test "${ac_cv_header_linux_version_h+set}" = set; then
8075 echo $ECHO_N "(cached) $ECHO_C" >&6
8077 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8078 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8080 # Is the header compilable?
8081 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8082 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8083 cat >conftest.$ac_ext <<_ACEOF
8086 cat confdefs.h >>conftest.$ac_ext
8087 cat >>conftest.$ac_ext <<_ACEOF
8088 /* end confdefs.h. */
8089 $ac_includes_default
8090 #include <linux/version.h>
8092 rm -f conftest.$ac_objext
8093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8094 (eval $ac_compile) 2>conftest.er1
8096 grep -v '^ *+' conftest.er1 >conftest.err
8098 cat conftest.err >&5
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); } &&
8101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); }; } &&
8107 { ac_try='test -s conftest.$ac_objext'
8108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); }; }; then
8113 ac_header_compiler=yes
8115 echo "$as_me: failed program was:" >&5
8116 sed 's/^/| /' conftest.$ac_ext >&5
8118 ac_header_compiler=no
8120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8121 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8122 echo "${ECHO_T}$ac_header_compiler" >&6
8124 # Is the header present?
8125 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8126 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8127 cat >conftest.$ac_ext <<_ACEOF
8130 cat confdefs.h >>conftest.$ac_ext
8131 cat >>conftest.$ac_ext <<_ACEOF
8132 /* end confdefs.h. */
8133 #include <linux/version.h>
8135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8138 grep -v '^ *+' conftest.er1 >conftest.err
8140 cat conftest.err >&5
8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 (exit $ac_status); } >/dev/null; then
8143 if test -s conftest.err; then
8144 ac_cpp_err=$ac_c_preproc_warn_flag
8145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8152 if test -z "$ac_cpp_err"; then
8153 ac_header_preproc=yes
8155 echo "$as_me: failed program was:" >&5
8156 sed 's/^/| /' conftest.$ac_ext >&5
8158 ac_header_preproc=no
8160 rm -f conftest.err conftest.$ac_ext
8161 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8162 echo "${ECHO_T}$ac_header_preproc" >&6
8164 # So? What about this header?
8165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8167 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8168 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8169 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
8170 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
8171 ac_header_preproc=yes
8174 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8175 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8176 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8177 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8178 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
8179 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
8180 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
8181 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
8182 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8183 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8184 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8185 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8188 ## ------------------------------------------ ##
8189 ## Report this to the AC_PACKAGE_NAME lists. ##
8190 ## ------------------------------------------ ##
8193 sed "s/^/$as_me: WARNING: /" >&2
8196 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8197 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8198 if test "${ac_cv_header_linux_version_h+set}" = set; then
8199 echo $ECHO_N "(cached) $ECHO_C" >&6
8201 ac_cv_header_linux_version_h=$ac_header_preproc
8203 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8204 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8207 if test $ac_cv_header_linux_version_h = yes; then
8215 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8217 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8218 $srcdir/po2tbl.sed.in > po2tbl.sed
8221 if test "$PACKAGE" = "gettext"; then
8231 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
8237 if test -f $srcdir/po/POTFILES.in; then
8238 test -d po || mkdir po
8239 if test "x$srcdir" != "x."; then
8240 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8241 posrcprefix="$srcdir/"
8243 posrcprefix="../$srcdir/"
8249 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8250 < $srcdir/po/POTFILES.in > po/POTFILES
8254 # Permit host specific settings.
8255 . ${srcdir}/configure.host
8258 # Find a good install program. We prefer a C program (faster),
8259 # so one script is as good as another. But avoid the broken or
8260 # incompatible versions:
8261 # SysV /etc/install, /usr/sbin/install
8262 # SunOS /usr/etc/install
8263 # IRIX /sbin/install
8265 # AmigaOS /C/install, which installs bootblocks on floppy discs
8266 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8267 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8268 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8269 # OS/2's system install, which has a completely different semantic
8270 # ./install, which can be erroneously created by make from ./install.sh.
8271 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8272 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8273 if test -z "$INSTALL"; then
8274 if test "${ac_cv_path_install+set}" = set; then
8275 echo $ECHO_N "(cached) $ECHO_C" >&6
8277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8281 test -z "$as_dir" && as_dir=.
8282 # Account for people who put trailing slashes in PATH elements.
8284 ./ | .// | /cC/* | \
8285 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8286 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8289 # OSF1 and SCO ODT 3.0 have their own names for install.
8290 # Don't use installbsd from OSF since it installs stuff as root
8292 for ac_prog in ginstall scoinst install; do
8293 for ac_exec_ext in '' $ac_executable_extensions; do
8294 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8295 if test $ac_prog = install &&
8296 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8297 # AIX install. It has an incompatible calling convention.
8299 elif test $ac_prog = install &&
8300 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8301 # program-specific install script used by HP pwplus--don't use.
8304 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8316 if test "${ac_cv_path_install+set}" = set; then
8317 INSTALL=$ac_cv_path_install
8319 # As a last resort, use the slow shell script. We don't cache a
8320 # path for INSTALL within a source directory, because that will
8321 # break other packages using the cache if that directory is
8322 # removed, or if the path is relative.
8323 INSTALL=$ac_install_sh
8326 echo "$as_me:$LINENO: result: $INSTALL" >&5
8327 echo "${ECHO_T}$INSTALL" >&6
8329 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8330 # It thinks the first close brace ends the variable substitution.
8331 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8333 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8335 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8338 BFD_HOST_64BIT_LONG=0
8339 BFD_HOST_LONG_LONG=0
8340 BFD_HOST_64_BIT_DEFINED=0
8344 echo "$as_me:$LINENO: checking for long long" >&5
8345 echo $ECHO_N "checking for long long... $ECHO_C" >&6
8346 if test "${bfd_cv_has_long_long+set}" = set; then
8347 echo $ECHO_N "(cached) $ECHO_C" >&6
8349 cat >conftest.$ac_ext <<_ACEOF
8352 cat confdefs.h >>conftest.$ac_ext
8353 cat >>conftest.$ac_ext <<_ACEOF
8354 /* end confdefs.h. */
8359 unsigned long long ll = 18446744073709551615ULL;
8364 rm -f conftest.$ac_objext
8365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8366 (eval $ac_compile) 2>conftest.er1
8368 grep -v '^ *+' conftest.er1 >conftest.err
8370 cat conftest.err >&5
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); } &&
8373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); }; } &&
8379 { ac_try='test -s conftest.$ac_objext'
8380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); }; }; then
8385 bfd_cv_has_long_long=yes
8387 echo "$as_me: failed program was:" >&5
8388 sed 's/^/| /' conftest.$ac_ext >&5
8390 bfd_cv_has_long_long=no
8392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8395 echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
8396 echo "${ECHO_T}$bfd_cv_has_long_long" >&6
8397 if test $bfd_cv_has_long_long = yes; then
8398 BFD_HOST_LONG_LONG=1
8399 echo "$as_me:$LINENO: checking size of long long" >&5
8400 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
8401 if test "${ac_cv_sizeof_long_long+set}" = set; then
8402 echo $ECHO_N "(cached) $ECHO_C" >&6
8404 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
8405 cat >conftest.$ac_ext <<_ACEOF
8408 cat confdefs.h >>conftest.$ac_ext
8409 cat >>conftest.$ac_ext <<_ACEOF
8410 /* end confdefs.h. */
8411 #include "confdefs.h"
8412 #include <sys/types.h>
8418 switch (0) case 0: case (sizeof (long long) == $ac_size):;
8423 rm -f conftest.$ac_objext
8424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8425 (eval $ac_compile) 2>conftest.er1
8427 grep -v '^ *+' conftest.er1 >conftest.err
8429 cat conftest.err >&5
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); } &&
8432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); }; } &&
8438 { ac_try='test -s conftest.$ac_objext'
8439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); }; }; then
8444 ac_cv_sizeof_long_long=$ac_size
8446 echo "$as_me: failed program was:" >&5
8447 sed 's/^/| /' conftest.$ac_ext >&5
8450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8451 if test x$ac_cv_sizeof_long_long != x ; then break; fi
8456 if test x$ac_cv_sizeof_long_long = x ; then
8457 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
8458 echo "$as_me: error: cannot determine a size for long long" >&2;}
8459 { (exit 1); exit 1; }; }
8461 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8462 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
8464 cat >>confdefs.h <<_ACEOF
8465 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8471 echo "$as_me:$LINENO: checking size of long" >&5
8472 echo $ECHO_N "checking size of long... $ECHO_C" >&6
8473 if test "${ac_cv_sizeof_long+set}" = set; then
8474 echo $ECHO_N "(cached) $ECHO_C" >&6
8476 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
8477 cat >conftest.$ac_ext <<_ACEOF
8480 cat confdefs.h >>conftest.$ac_ext
8481 cat >>conftest.$ac_ext <<_ACEOF
8482 /* end confdefs.h. */
8483 #include "confdefs.h"
8484 #include <sys/types.h>
8490 switch (0) case 0: case (sizeof (long) == $ac_size):;
8495 rm -f conftest.$ac_objext
8496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8497 (eval $ac_compile) 2>conftest.er1
8499 grep -v '^ *+' conftest.er1 >conftest.err
8501 cat conftest.err >&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); } &&
8504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); }; } &&
8510 { ac_try='test -s conftest.$ac_objext'
8511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); }; }; then
8516 ac_cv_sizeof_long=$ac_size
8518 echo "$as_me: failed program was:" >&5
8519 sed 's/^/| /' conftest.$ac_ext >&5
8522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8523 if test x$ac_cv_sizeof_long != x ; then break; fi
8528 if test x$ac_cv_sizeof_long = x ; then
8529 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
8530 echo "$as_me: error: cannot determine a size for long" >&2;}
8531 { (exit 1); exit 1; }; }
8533 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8534 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
8536 cat >>confdefs.h <<_ACEOF
8537 #define SIZEOF_LONG $ac_cv_sizeof_long
8541 if test "x${ac_cv_sizeof_long}" = "x8"; then
8543 BFD_HOST_64BIT_LONG=1
8544 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
8545 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
8546 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
8547 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
8548 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
8551 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
8552 BFD_HOST_64_BIT_DEFINED=1
8553 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
8554 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
8563 # Put a plausible default for CC_FOR_BUILD in Makefile.
8564 if test -z "$CC_FOR_BUILD"; then
8565 if test "x$cross_compiling" = "xno"; then
8566 CC_FOR_BUILD='$(CC)'
8572 # Also set EXEEXT_FOR_BUILD.
8573 if test "x$cross_compiling" = "xno"; then
8574 EXEEXT_FOR_BUILD='$(EXEEXT)'
8576 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
8577 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
8578 if test "${bfd_cv_build_exeext+set}" = set; then
8579 echo $ECHO_N "(cached) $ECHO_C" >&6
8582 echo 'int main () { return 0; }' > conftest.c
8583 bfd_cv_build_exeext=
8584 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
8585 for file in conftest.*; do
8587 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
8588 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
8592 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
8594 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
8595 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
8597 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
8607 for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
8609 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8611 echo "$as_me:$LINENO: checking for $ac_header" >&5
8612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8614 echo $ECHO_N "(cached) $ECHO_C" >&6
8616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8617 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8619 # Is the header compilable?
8620 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8621 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8622 cat >conftest.$ac_ext <<_ACEOF
8625 cat confdefs.h >>conftest.$ac_ext
8626 cat >>conftest.$ac_ext <<_ACEOF
8627 /* end confdefs.h. */
8628 $ac_includes_default
8629 #include <$ac_header>
8631 rm -f conftest.$ac_objext
8632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8633 (eval $ac_compile) 2>conftest.er1
8635 grep -v '^ *+' conftest.er1 >conftest.err
8637 cat conftest.err >&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); } &&
8640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); }; } &&
8646 { ac_try='test -s conftest.$ac_objext'
8647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); }; }; then
8652 ac_header_compiler=yes
8654 echo "$as_me: failed program was:" >&5
8655 sed 's/^/| /' conftest.$ac_ext >&5
8657 ac_header_compiler=no
8659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8660 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8661 echo "${ECHO_T}$ac_header_compiler" >&6
8663 # Is the header present?
8664 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8665 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8666 cat >conftest.$ac_ext <<_ACEOF
8669 cat confdefs.h >>conftest.$ac_ext
8670 cat >>conftest.$ac_ext <<_ACEOF
8671 /* end confdefs.h. */
8672 #include <$ac_header>
8674 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8675 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8677 grep -v '^ *+' conftest.er1 >conftest.err
8679 cat conftest.err >&5
8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); } >/dev/null; then
8682 if test -s conftest.err; then
8683 ac_cpp_err=$ac_c_preproc_warn_flag
8684 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8691 if test -z "$ac_cpp_err"; then
8692 ac_header_preproc=yes
8694 echo "$as_me: failed program was:" >&5
8695 sed 's/^/| /' conftest.$ac_ext >&5
8697 ac_header_preproc=no
8699 rm -f conftest.err conftest.$ac_ext
8700 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8701 echo "${ECHO_T}$ac_header_preproc" >&6
8703 # So? What about this header?
8704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8706 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8707 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8709 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8710 ac_header_preproc=yes
8713 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8714 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8715 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8716 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8717 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8718 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8719 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8720 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8722 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8723 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8724 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8727 ## ------------------------------------------ ##
8728 ## Report this to the AC_PACKAGE_NAME lists. ##
8729 ## ------------------------------------------ ##
8732 sed "s/^/$as_me: WARNING: /" >&2
8735 echo "$as_me:$LINENO: checking for $ac_header" >&5
8736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8738 echo $ECHO_N "(cached) $ECHO_C" >&6
8740 eval "$as_ac_Header=\$ac_header_preproc"
8742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8747 cat >>confdefs.h <<_ACEOF
8748 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8758 for ac_header in fcntl.h sys/file.h sys/time.h
8760 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8762 echo "$as_me:$LINENO: checking for $ac_header" >&5
8763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8765 echo $ECHO_N "(cached) $ECHO_C" >&6
8767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8770 # Is the header compilable?
8771 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8772 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8773 cat >conftest.$ac_ext <<_ACEOF
8776 cat confdefs.h >>conftest.$ac_ext
8777 cat >>conftest.$ac_ext <<_ACEOF
8778 /* end confdefs.h. */
8779 $ac_includes_default
8780 #include <$ac_header>
8782 rm -f conftest.$ac_objext
8783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8784 (eval $ac_compile) 2>conftest.er1
8786 grep -v '^ *+' conftest.er1 >conftest.err
8788 cat conftest.err >&5
8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 (exit $ac_status); } &&
8791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); }; } &&
8797 { ac_try='test -s conftest.$ac_objext'
8798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802 (exit $ac_status); }; }; then
8803 ac_header_compiler=yes
8805 echo "$as_me: failed program was:" >&5
8806 sed 's/^/| /' conftest.$ac_ext >&5
8808 ac_header_compiler=no
8810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8811 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8812 echo "${ECHO_T}$ac_header_compiler" >&6
8814 # Is the header present?
8815 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8816 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8817 cat >conftest.$ac_ext <<_ACEOF
8820 cat confdefs.h >>conftest.$ac_ext
8821 cat >>conftest.$ac_ext <<_ACEOF
8822 /* end confdefs.h. */
8823 #include <$ac_header>
8825 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8826 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8828 grep -v '^ *+' conftest.er1 >conftest.err
8830 cat conftest.err >&5
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); } >/dev/null; then
8833 if test -s conftest.err; then
8834 ac_cpp_err=$ac_c_preproc_warn_flag
8835 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8842 if test -z "$ac_cpp_err"; then
8843 ac_header_preproc=yes
8845 echo "$as_me: failed program was:" >&5
8846 sed 's/^/| /' conftest.$ac_ext >&5
8848 ac_header_preproc=no
8850 rm -f conftest.err conftest.$ac_ext
8851 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8852 echo "${ECHO_T}$ac_header_preproc" >&6
8854 # So? What about this header?
8855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8857 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8858 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8860 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8861 ac_header_preproc=yes
8864 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8865 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8866 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8867 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8868 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8869 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8870 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8871 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8873 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8874 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8875 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8878 ## ------------------------------------------ ##
8879 ## Report this to the AC_PACKAGE_NAME lists. ##
8880 ## ------------------------------------------ ##
8883 sed "s/^/$as_me: WARNING: /" >&2
8886 echo "$as_me:$LINENO: checking for $ac_header" >&5
8887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8889 echo $ECHO_N "(cached) $ECHO_C" >&6
8891 eval "$as_ac_Header=\$ac_header_preproc"
8893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8898 cat >>confdefs.h <<_ACEOF
8899 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8906 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8907 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8908 if test "${ac_cv_header_time+set}" = set; then
8909 echo $ECHO_N "(cached) $ECHO_C" >&6
8911 cat >conftest.$ac_ext <<_ACEOF
8914 cat confdefs.h >>conftest.$ac_ext
8915 cat >>conftest.$ac_ext <<_ACEOF
8916 /* end confdefs.h. */
8917 #include <sys/types.h>
8918 #include <sys/time.h>
8924 if ((struct tm *) 0)
8930 rm -f conftest.$ac_objext
8931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8932 (eval $ac_compile) 2>conftest.er1
8934 grep -v '^ *+' conftest.er1 >conftest.err
8936 cat conftest.err >&5
8937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938 (exit $ac_status); } &&
8939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); }; } &&
8945 { ac_try='test -s conftest.$ac_objext'
8946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); }; }; then
8951 ac_cv_header_time=yes
8953 echo "$as_me: failed program was:" >&5
8954 sed 's/^/| /' conftest.$ac_ext >&5
8956 ac_cv_header_time=no
8958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8960 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8961 echo "${ECHO_T}$ac_cv_header_time" >&6
8962 if test $ac_cv_header_time = yes; then
8964 cat >>confdefs.h <<\_ACEOF
8965 #define TIME_WITH_SYS_TIME 1
8976 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8977 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8978 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8979 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8981 echo $ECHO_N "(cached) $ECHO_C" >&6
8983 cat >conftest.$ac_ext <<_ACEOF
8986 cat confdefs.h >>conftest.$ac_ext
8987 cat >>conftest.$ac_ext <<_ACEOF
8988 /* end confdefs.h. */
8989 #include <sys/types.h>
9001 rm -f conftest.$ac_objext
9002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9003 (eval $ac_compile) 2>conftest.er1
9005 grep -v '^ *+' conftest.er1 >conftest.err
9007 cat conftest.err >&5
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); } &&
9010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015 (exit $ac_status); }; } &&
9016 { ac_try='test -s conftest.$ac_objext'
9017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); }; }; then
9022 eval "$as_ac_Header=yes"
9024 echo "$as_me: failed program was:" >&5
9025 sed 's/^/| /' conftest.$ac_ext >&5
9027 eval "$as_ac_Header=no"
9029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9032 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9034 cat >>confdefs.h <<_ACEOF
9035 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9038 ac_header_dirent=$ac_hdr; break
9042 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9043 if test $ac_header_dirent = dirent.h; then
9044 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9045 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9046 if test "${ac_cv_search_opendir+set}" = set; then
9047 echo $ECHO_N "(cached) $ECHO_C" >&6
9049 ac_func_search_save_LIBS=$LIBS
9050 ac_cv_search_opendir=no
9051 cat >conftest.$ac_ext <<_ACEOF
9054 cat confdefs.h >>conftest.$ac_ext
9055 cat >>conftest.$ac_ext <<_ACEOF
9056 /* end confdefs.h. */
9058 /* Override any gcc2 internal prototype to avoid an error. */
9062 /* We use char because int might match the return type of a gcc2
9063 builtin and then its argument prototype would still apply. */
9073 rm -f conftest.$ac_objext conftest$ac_exeext
9074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9075 (eval $ac_link) 2>conftest.er1
9077 grep -v '^ *+' conftest.er1 >conftest.err
9079 cat conftest.err >&5
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 (exit $ac_status); } &&
9082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); }; } &&
9088 { ac_try='test -s conftest$ac_exeext'
9089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); }; }; then
9094 ac_cv_search_opendir="none required"
9096 echo "$as_me: failed program was:" >&5
9097 sed 's/^/| /' conftest.$ac_ext >&5
9100 rm -f conftest.err conftest.$ac_objext \
9101 conftest$ac_exeext conftest.$ac_ext
9102 if test "$ac_cv_search_opendir" = no; then
9103 for ac_lib in dir; do
9104 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9105 cat >conftest.$ac_ext <<_ACEOF
9108 cat confdefs.h >>conftest.$ac_ext
9109 cat >>conftest.$ac_ext <<_ACEOF
9110 /* end confdefs.h. */
9112 /* Override any gcc2 internal prototype to avoid an error. */
9116 /* We use char because int might match the return type of a gcc2
9117 builtin and then its argument prototype would still apply. */
9127 rm -f conftest.$ac_objext conftest$ac_exeext
9128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9129 (eval $ac_link) 2>conftest.er1
9131 grep -v '^ *+' conftest.er1 >conftest.err
9133 cat conftest.err >&5
9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 (exit $ac_status); } &&
9136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); }; } &&
9142 { ac_try='test -s conftest$ac_exeext'
9143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); }; }; then
9148 ac_cv_search_opendir="-l$ac_lib"
9151 echo "$as_me: failed program was:" >&5
9152 sed 's/^/| /' conftest.$ac_ext >&5
9155 rm -f conftest.err conftest.$ac_objext \
9156 conftest$ac_exeext conftest.$ac_ext
9159 LIBS=$ac_func_search_save_LIBS
9161 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9162 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9163 if test "$ac_cv_search_opendir" != no; then
9164 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9169 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9170 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9171 if test "${ac_cv_search_opendir+set}" = set; then
9172 echo $ECHO_N "(cached) $ECHO_C" >&6
9174 ac_func_search_save_LIBS=$LIBS
9175 ac_cv_search_opendir=no
9176 cat >conftest.$ac_ext <<_ACEOF
9179 cat confdefs.h >>conftest.$ac_ext
9180 cat >>conftest.$ac_ext <<_ACEOF
9181 /* end confdefs.h. */
9183 /* Override any gcc2 internal prototype to avoid an error. */
9187 /* We use char because int might match the return type of a gcc2
9188 builtin and then its argument prototype would still apply. */
9198 rm -f conftest.$ac_objext conftest$ac_exeext
9199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9200 (eval $ac_link) 2>conftest.er1
9202 grep -v '^ *+' conftest.er1 >conftest.err
9204 cat conftest.err >&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); } &&
9207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212 (exit $ac_status); }; } &&
9213 { ac_try='test -s conftest$ac_exeext'
9214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); }; }; then
9219 ac_cv_search_opendir="none required"
9221 echo "$as_me: failed program was:" >&5
9222 sed 's/^/| /' conftest.$ac_ext >&5
9225 rm -f conftest.err conftest.$ac_objext \
9226 conftest$ac_exeext conftest.$ac_ext
9227 if test "$ac_cv_search_opendir" = no; then
9229 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9230 cat >conftest.$ac_ext <<_ACEOF
9233 cat confdefs.h >>conftest.$ac_ext
9234 cat >>conftest.$ac_ext <<_ACEOF
9235 /* end confdefs.h. */
9237 /* Override any gcc2 internal prototype to avoid an error. */
9241 /* We use char because int might match the return type of a gcc2
9242 builtin and then its argument prototype would still apply. */
9252 rm -f conftest.$ac_objext conftest$ac_exeext
9253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9254 (eval $ac_link) 2>conftest.er1
9256 grep -v '^ *+' conftest.er1 >conftest.err
9258 cat conftest.err >&5
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); } &&
9261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266 (exit $ac_status); }; } &&
9267 { ac_try='test -s conftest$ac_exeext'
9268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); }; }; then
9273 ac_cv_search_opendir="-l$ac_lib"
9276 echo "$as_me: failed program was:" >&5
9277 sed 's/^/| /' conftest.$ac_ext >&5
9280 rm -f conftest.err conftest.$ac_objext \
9281 conftest$ac_exeext conftest.$ac_ext
9284 LIBS=$ac_func_search_save_LIBS
9286 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9287 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9288 if test "$ac_cv_search_opendir" != no; then
9289 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9302 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
9304 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9305 echo "$as_me:$LINENO: checking for $ac_func" >&5
9306 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9307 if eval "test \"\${$as_ac_var+set}\" = set"; then
9308 echo $ECHO_N "(cached) $ECHO_C" >&6
9310 cat >conftest.$ac_ext <<_ACEOF
9313 cat confdefs.h >>conftest.$ac_ext
9314 cat >>conftest.$ac_ext <<_ACEOF
9315 /* end confdefs.h. */
9316 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9318 #define $ac_func innocuous_$ac_func
9320 /* System header to define __stub macros and hopefully few prototypes,
9321 which can conflict with char $ac_func (); below.
9322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9323 <limits.h> exists even on freestanding compilers. */
9326 # include <limits.h>
9328 # include <assert.h>
9333 /* Override any gcc2 internal prototype to avoid an error. */
9338 /* We use char because int might match the return type of a gcc2
9339 builtin and then its argument prototype would still apply. */
9341 /* The GNU C library defines this for functions which it implements
9342 to always fail with ENOSYS. Some functions are actually named
9343 something starting with __ and the normal name is an alias. */
9344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9347 char (*f) () = $ac_func;
9356 return f != $ac_func;
9361 rm -f conftest.$ac_objext conftest$ac_exeext
9362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9363 (eval $ac_link) 2>conftest.er1
9365 grep -v '^ *+' conftest.er1 >conftest.err
9367 cat conftest.err >&5
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); } &&
9370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); }; } &&
9376 { ac_try='test -s conftest$ac_exeext'
9377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); }; }; then
9382 eval "$as_ac_var=yes"
9384 echo "$as_me: failed program was:" >&5
9385 sed 's/^/| /' conftest.$ac_ext >&5
9387 eval "$as_ac_var=no"
9389 rm -f conftest.err conftest.$ac_objext \
9390 conftest$ac_exeext conftest.$ac_ext
9392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9393 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9394 if test `eval echo '${'$as_ac_var'}'` = yes; then
9395 cat >>confdefs.h <<_ACEOF
9396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9403 for ac_func in strtoull
9405 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9406 echo "$as_me:$LINENO: checking for $ac_func" >&5
9407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9408 if eval "test \"\${$as_ac_var+set}\" = set"; then
9409 echo $ECHO_N "(cached) $ECHO_C" >&6
9411 cat >conftest.$ac_ext <<_ACEOF
9414 cat confdefs.h >>conftest.$ac_ext
9415 cat >>conftest.$ac_ext <<_ACEOF
9416 /* end confdefs.h. */
9417 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9419 #define $ac_func innocuous_$ac_func
9421 /* System header to define __stub macros and hopefully few prototypes,
9422 which can conflict with char $ac_func (); below.
9423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9424 <limits.h> exists even on freestanding compilers. */
9427 # include <limits.h>
9429 # include <assert.h>
9434 /* Override any gcc2 internal prototype to avoid an error. */
9439 /* We use char because int might match the return type of a gcc2
9440 builtin and then its argument prototype would still apply. */
9442 /* The GNU C library defines this for functions which it implements
9443 to always fail with ENOSYS. Some functions are actually named
9444 something starting with __ and the normal name is an alias. */
9445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9448 char (*f) () = $ac_func;
9457 return f != $ac_func;
9462 rm -f conftest.$ac_objext conftest$ac_exeext
9463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9464 (eval $ac_link) 2>conftest.er1
9466 grep -v '^ *+' conftest.er1 >conftest.err
9468 cat conftest.err >&5
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); } &&
9471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); }; } &&
9477 { ac_try='test -s conftest$ac_exeext'
9478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); }; }; then
9483 eval "$as_ac_var=yes"
9485 echo "$as_me: failed program was:" >&5
9486 sed 's/^/| /' conftest.$ac_ext >&5
9488 eval "$as_ac_var=no"
9490 rm -f conftest.err conftest.$ac_objext \
9491 conftest$ac_exeext conftest.$ac_ext
9493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9494 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9495 if test `eval echo '${'$as_ac_var'}'` = yes; then
9496 cat >>confdefs.h <<_ACEOF
9497 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9504 echo "$as_me:$LINENO: checking whether basename is declared" >&5
9505 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
9506 if test "${ac_cv_have_decl_basename+set}" = set; then
9507 echo $ECHO_N "(cached) $ECHO_C" >&6
9509 cat >conftest.$ac_ext <<_ACEOF
9512 cat confdefs.h >>conftest.$ac_ext
9513 cat >>conftest.$ac_ext <<_ACEOF
9514 /* end confdefs.h. */
9515 $ac_includes_default
9520 char *p = (char *) basename;
9527 rm -f conftest.$ac_objext
9528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9529 (eval $ac_compile) 2>conftest.er1
9531 grep -v '^ *+' conftest.er1 >conftest.err
9533 cat conftest.err >&5
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); } &&
9536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); }; } &&
9542 { ac_try='test -s conftest.$ac_objext'
9543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); }; }; then
9548 ac_cv_have_decl_basename=yes
9550 echo "$as_me: failed program was:" >&5
9551 sed 's/^/| /' conftest.$ac_ext >&5
9553 ac_cv_have_decl_basename=no
9555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9557 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
9558 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
9559 if test $ac_cv_have_decl_basename = yes; then
9561 cat >>confdefs.h <<_ACEOF
9562 #define HAVE_DECL_BASENAME 1
9567 cat >>confdefs.h <<_ACEOF
9568 #define HAVE_DECL_BASENAME 0
9575 echo "$as_me:$LINENO: checking whether ftello is declared" >&5
9576 echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
9577 if test "${ac_cv_have_decl_ftello+set}" = set; then
9578 echo $ECHO_N "(cached) $ECHO_C" >&6
9580 cat >conftest.$ac_ext <<_ACEOF
9583 cat confdefs.h >>conftest.$ac_ext
9584 cat >>conftest.$ac_ext <<_ACEOF
9585 /* end confdefs.h. */
9586 $ac_includes_default
9591 char *p = (char *) ftello;
9598 rm -f conftest.$ac_objext
9599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9600 (eval $ac_compile) 2>conftest.er1
9602 grep -v '^ *+' conftest.er1 >conftest.err
9604 cat conftest.err >&5
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); } &&
9607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); }; } &&
9613 { ac_try='test -s conftest.$ac_objext'
9614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); }; }; then
9619 ac_cv_have_decl_ftello=yes
9621 echo "$as_me: failed program was:" >&5
9622 sed 's/^/| /' conftest.$ac_ext >&5
9624 ac_cv_have_decl_ftello=no
9626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9628 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
9629 echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
9630 if test $ac_cv_have_decl_ftello = yes; then
9632 cat >>confdefs.h <<_ACEOF
9633 #define HAVE_DECL_FTELLO 1
9638 cat >>confdefs.h <<_ACEOF
9639 #define HAVE_DECL_FTELLO 0
9646 echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
9647 echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
9648 if test "${ac_cv_have_decl_ftello64+set}" = set; then
9649 echo $ECHO_N "(cached) $ECHO_C" >&6
9651 cat >conftest.$ac_ext <<_ACEOF
9654 cat confdefs.h >>conftest.$ac_ext
9655 cat >>conftest.$ac_ext <<_ACEOF
9656 /* end confdefs.h. */
9657 $ac_includes_default
9662 char *p = (char *) ftello64;
9669 rm -f conftest.$ac_objext
9670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9671 (eval $ac_compile) 2>conftest.er1
9673 grep -v '^ *+' conftest.er1 >conftest.err
9675 cat conftest.err >&5
9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677 (exit $ac_status); } &&
9678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); }; } &&
9684 { ac_try='test -s conftest.$ac_objext'
9685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); }; }; then
9690 ac_cv_have_decl_ftello64=yes
9692 echo "$as_me: failed program was:" >&5
9693 sed 's/^/| /' conftest.$ac_ext >&5
9695 ac_cv_have_decl_ftello64=no
9697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9699 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
9700 echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
9701 if test $ac_cv_have_decl_ftello64 = yes; then
9703 cat >>confdefs.h <<_ACEOF
9704 #define HAVE_DECL_FTELLO64 1
9709 cat >>confdefs.h <<_ACEOF
9710 #define HAVE_DECL_FTELLO64 0
9717 echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
9718 echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
9719 if test "${ac_cv_have_decl_fseeko+set}" = set; then
9720 echo $ECHO_N "(cached) $ECHO_C" >&6
9722 cat >conftest.$ac_ext <<_ACEOF
9725 cat confdefs.h >>conftest.$ac_ext
9726 cat >>conftest.$ac_ext <<_ACEOF
9727 /* end confdefs.h. */
9728 $ac_includes_default
9733 char *p = (char *) fseeko;
9740 rm -f conftest.$ac_objext
9741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9742 (eval $ac_compile) 2>conftest.er1
9744 grep -v '^ *+' conftest.er1 >conftest.err
9746 cat conftest.err >&5
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); } &&
9749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); }; } &&
9755 { ac_try='test -s conftest.$ac_objext'
9756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); }; }; then
9761 ac_cv_have_decl_fseeko=yes
9763 echo "$as_me: failed program was:" >&5
9764 sed 's/^/| /' conftest.$ac_ext >&5
9766 ac_cv_have_decl_fseeko=no
9768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9770 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
9771 echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
9772 if test $ac_cv_have_decl_fseeko = yes; then
9774 cat >>confdefs.h <<_ACEOF
9775 #define HAVE_DECL_FSEEKO 1
9780 cat >>confdefs.h <<_ACEOF
9781 #define HAVE_DECL_FSEEKO 0
9788 echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
9789 echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
9790 if test "${ac_cv_have_decl_fseeko64+set}" = set; then
9791 echo $ECHO_N "(cached) $ECHO_C" >&6
9793 cat >conftest.$ac_ext <<_ACEOF
9796 cat confdefs.h >>conftest.$ac_ext
9797 cat >>conftest.$ac_ext <<_ACEOF
9798 /* end confdefs.h. */
9799 $ac_includes_default
9804 char *p = (char *) fseeko64;
9811 rm -f conftest.$ac_objext
9812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9813 (eval $ac_compile) 2>conftest.er1
9815 grep -v '^ *+' conftest.er1 >conftest.err
9817 cat conftest.err >&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); } &&
9820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); }; } &&
9826 { ac_try='test -s conftest.$ac_objext'
9827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; }; then
9832 ac_cv_have_decl_fseeko64=yes
9834 echo "$as_me: failed program was:" >&5
9835 sed 's/^/| /' conftest.$ac_ext >&5
9837 ac_cv_have_decl_fseeko64=no
9839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9841 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
9842 echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
9843 if test $ac_cv_have_decl_fseeko64 = yes; then
9845 cat >>confdefs.h <<_ACEOF
9846 #define HAVE_DECL_FSEEKO64 1
9851 cat >>confdefs.h <<_ACEOF
9852 #define HAVE_DECL_FSEEKO64 0
9862 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
9864 cat >>confdefs.h <<\_ACEOF
9865 #define USE_BINARY_FOPEN 1
9870 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
9871 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
9872 if test "${ac_cv_have_decl_ffs+set}" = set; then
9873 echo $ECHO_N "(cached) $ECHO_C" >&6
9875 cat >conftest.$ac_ext <<_ACEOF
9878 cat confdefs.h >>conftest.$ac_ext
9879 cat >>conftest.$ac_ext <<_ACEOF
9880 /* end confdefs.h. */
9881 $ac_includes_default
9886 char *p = (char *) ffs;
9893 rm -f conftest.$ac_objext
9894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9895 (eval $ac_compile) 2>conftest.er1
9897 grep -v '^ *+' conftest.er1 >conftest.err
9899 cat conftest.err >&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); } &&
9902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); }; } &&
9908 { ac_try='test -s conftest.$ac_objext'
9909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); }; }; then
9914 ac_cv_have_decl_ffs=yes
9916 echo "$as_me: failed program was:" >&5
9917 sed 's/^/| /' conftest.$ac_ext >&5
9919 ac_cv_have_decl_ffs=no
9921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9923 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
9924 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
9925 if test $ac_cv_have_decl_ffs = yes; then
9927 cat >>confdefs.h <<_ACEOF
9928 #define HAVE_DECL_FFS 1
9933 cat >>confdefs.h <<_ACEOF
9934 #define HAVE_DECL_FFS 0
9941 echo "$as_me:$LINENO: checking whether free is declared" >&5
9942 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
9943 if test "${ac_cv_have_decl_free+set}" = set; then
9944 echo $ECHO_N "(cached) $ECHO_C" >&6
9946 cat >conftest.$ac_ext <<_ACEOF
9949 cat confdefs.h >>conftest.$ac_ext
9950 cat >>conftest.$ac_ext <<_ACEOF
9951 /* end confdefs.h. */
9952 $ac_includes_default
9957 char *p = (char *) free;
9964 rm -f conftest.$ac_objext
9965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9966 (eval $ac_compile) 2>conftest.er1
9968 grep -v '^ *+' conftest.er1 >conftest.err
9970 cat conftest.err >&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); } &&
9973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); }; } &&
9979 { ac_try='test -s conftest.$ac_objext'
9980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); }; }; then
9985 ac_cv_have_decl_free=yes
9987 echo "$as_me: failed program was:" >&5
9988 sed 's/^/| /' conftest.$ac_ext >&5
9990 ac_cv_have_decl_free=no
9992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9994 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
9995 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
9996 if test $ac_cv_have_decl_free = yes; then
9998 cat >>confdefs.h <<_ACEOF
9999 #define HAVE_DECL_FREE 1
10004 cat >>confdefs.h <<_ACEOF
10005 #define HAVE_DECL_FREE 0
10012 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
10013 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
10014 if test "${ac_cv_have_decl_getenv+set}" = set; then
10015 echo $ECHO_N "(cached) $ECHO_C" >&6
10017 cat >conftest.$ac_ext <<_ACEOF
10020 cat confdefs.h >>conftest.$ac_ext
10021 cat >>conftest.$ac_ext <<_ACEOF
10022 /* end confdefs.h. */
10023 $ac_includes_default
10028 char *p = (char *) getenv;
10035 rm -f conftest.$ac_objext
10036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10037 (eval $ac_compile) 2>conftest.er1
10039 grep -v '^ *+' conftest.er1 >conftest.err
10041 cat conftest.err >&5
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); } &&
10044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10046 (eval $ac_try) 2>&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); }; } &&
10050 { ac_try='test -s conftest.$ac_objext'
10051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10052 (eval $ac_try) 2>&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); }; }; then
10056 ac_cv_have_decl_getenv=yes
10058 echo "$as_me: failed program was:" >&5
10059 sed 's/^/| /' conftest.$ac_ext >&5
10061 ac_cv_have_decl_getenv=no
10063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10065 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
10066 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
10067 if test $ac_cv_have_decl_getenv = yes; then
10069 cat >>confdefs.h <<_ACEOF
10070 #define HAVE_DECL_GETENV 1
10075 cat >>confdefs.h <<_ACEOF
10076 #define HAVE_DECL_GETENV 0
10083 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
10084 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
10085 if test "${ac_cv_have_decl_malloc+set}" = set; then
10086 echo $ECHO_N "(cached) $ECHO_C" >&6
10088 cat >conftest.$ac_ext <<_ACEOF
10091 cat confdefs.h >>conftest.$ac_ext
10092 cat >>conftest.$ac_ext <<_ACEOF
10093 /* end confdefs.h. */
10094 $ac_includes_default
10099 char *p = (char *) malloc;
10106 rm -f conftest.$ac_objext
10107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10108 (eval $ac_compile) 2>conftest.er1
10110 grep -v '^ *+' conftest.er1 >conftest.err
10112 cat conftest.err >&5
10113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 (exit $ac_status); } &&
10115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10117 (eval $ac_try) 2>&5
10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 (exit $ac_status); }; } &&
10121 { ac_try='test -s conftest.$ac_objext'
10122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10123 (eval $ac_try) 2>&5
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); }; }; then
10127 ac_cv_have_decl_malloc=yes
10129 echo "$as_me: failed program was:" >&5
10130 sed 's/^/| /' conftest.$ac_ext >&5
10132 ac_cv_have_decl_malloc=no
10134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10136 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
10137 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
10138 if test $ac_cv_have_decl_malloc = yes; then
10140 cat >>confdefs.h <<_ACEOF
10141 #define HAVE_DECL_MALLOC 1
10146 cat >>confdefs.h <<_ACEOF
10147 #define HAVE_DECL_MALLOC 0
10154 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
10155 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
10156 if test "${ac_cv_have_decl_realloc+set}" = set; then
10157 echo $ECHO_N "(cached) $ECHO_C" >&6
10159 cat >conftest.$ac_ext <<_ACEOF
10162 cat confdefs.h >>conftest.$ac_ext
10163 cat >>conftest.$ac_ext <<_ACEOF
10164 /* end confdefs.h. */
10165 $ac_includes_default
10170 char *p = (char *) realloc;
10177 rm -f conftest.$ac_objext
10178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10179 (eval $ac_compile) 2>conftest.er1
10181 grep -v '^ *+' conftest.er1 >conftest.err
10183 cat conftest.err >&5
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); } &&
10186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10188 (eval $ac_try) 2>&5
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); }; } &&
10192 { ac_try='test -s conftest.$ac_objext'
10193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10194 (eval $ac_try) 2>&5
10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 (exit $ac_status); }; }; then
10198 ac_cv_have_decl_realloc=yes
10200 echo "$as_me: failed program was:" >&5
10201 sed 's/^/| /' conftest.$ac_ext >&5
10203 ac_cv_have_decl_realloc=no
10205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10207 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
10208 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
10209 if test $ac_cv_have_decl_realloc = yes; then
10211 cat >>confdefs.h <<_ACEOF
10212 #define HAVE_DECL_REALLOC 1
10217 cat >>confdefs.h <<_ACEOF
10218 #define HAVE_DECL_REALLOC 0
10225 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
10226 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
10227 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
10228 echo $ECHO_N "(cached) $ECHO_C" >&6
10230 cat >conftest.$ac_ext <<_ACEOF
10233 cat confdefs.h >>conftest.$ac_ext
10234 cat >>conftest.$ac_ext <<_ACEOF
10235 /* end confdefs.h. */
10236 $ac_includes_default
10241 char *p = (char *) stpcpy;
10248 rm -f conftest.$ac_objext
10249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10250 (eval $ac_compile) 2>conftest.er1
10252 grep -v '^ *+' conftest.er1 >conftest.err
10254 cat conftest.err >&5
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); } &&
10257 { ac_try='test -z "$ac_c_werror_flag"
10258 || test ! -s conftest.err'
10259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10260 (eval $ac_try) 2>&5
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); }; } &&
10264 { ac_try='test -s conftest.$ac_objext'
10265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10266 (eval $ac_try) 2>&5
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); }; }; then
10270 ac_cv_have_decl_stpcpy=yes
10272 echo "$as_me: failed program was:" >&5
10273 sed 's/^/| /' conftest.$ac_ext >&5
10275 ac_cv_have_decl_stpcpy=no
10277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10279 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
10280 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
10281 if test $ac_cv_have_decl_stpcpy = yes; then
10283 cat >>confdefs.h <<_ACEOF
10284 #define HAVE_DECL_STPCPY 1
10289 cat >>confdefs.h <<_ACEOF
10290 #define HAVE_DECL_STPCPY 0
10297 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
10298 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
10299 if test "${ac_cv_have_decl_strstr+set}" = set; then
10300 echo $ECHO_N "(cached) $ECHO_C" >&6
10302 cat >conftest.$ac_ext <<_ACEOF
10305 cat confdefs.h >>conftest.$ac_ext
10306 cat >>conftest.$ac_ext <<_ACEOF
10307 /* end confdefs.h. */
10308 $ac_includes_default
10313 char *p = (char *) strstr;
10320 rm -f conftest.$ac_objext
10321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10322 (eval $ac_compile) 2>conftest.er1
10324 grep -v '^ *+' conftest.er1 >conftest.err
10326 cat conftest.err >&5
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); } &&
10329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10331 (eval $ac_try) 2>&5
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); }; } &&
10335 { ac_try='test -s conftest.$ac_objext'
10336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10337 (eval $ac_try) 2>&5
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); }; }; then
10341 ac_cv_have_decl_strstr=yes
10343 echo "$as_me: failed program was:" >&5
10344 sed 's/^/| /' conftest.$ac_ext >&5
10346 ac_cv_have_decl_strstr=no
10348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10350 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
10351 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
10352 if test $ac_cv_have_decl_strstr = yes; then
10354 cat >>confdefs.h <<_ACEOF
10355 #define HAVE_DECL_STRSTR 1
10360 cat >>confdefs.h <<_ACEOF
10361 #define HAVE_DECL_STRSTR 0
10369 # If we are configured native, pick a core file support file.
10373 if test "${target}" = "${host}"; then
10375 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
10379 COREFILE=trad-core.lo
10380 TRAD_HEADER='"hosts/alphalinux.h"'
10382 alpha*-*-netbsd* | alpha*-*-openbsd*)
10383 COREFILE=netbsd-core.lo
10385 alpha*-*-*) COREFILE=osf-core.lo ;;
10386 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
10388 arm-*-netbsd*) COREFILE=netbsd-core.lo ;;
10389 arm-*-riscix) COREFILE=trad-core.lo ;;
10390 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
10391 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
10392 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
10393 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
10394 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
10395 hppa*-*-netbsd* | hppa*-*-openbsd*)
10396 COREFILE=netbsd-core.lo
10400 COREFILE=trad-core.lo
10401 TRAD_HEADER='"hosts/i370linux.h"'
10404 i[3-7]86-sequent-bsd*)
10405 COREFILE=trad-core.lo
10406 TRAD_HEADER='"hosts/symmetry.h"'
10408 i[3-7]86-sequent-sysv4*) ;;
10409 i[3-7]86-sequent-sysv*)
10410 COREFILE=trad-core.lo
10411 TRAD_HEADER='"hosts/symmetry.h"'
10416 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*)
10417 COREFILE=trad-core.lo
10418 TRAD_HEADER='"hosts/i386bsd.h"'
10420 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
10422 TRAD_HEADER='"hosts/i386bsd.h"'
10424 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
10425 COREFILE=netbsd-core.lo
10427 i[3-7]86-esix-sysv3*)
10428 COREFILE=trad-core.lo
10429 TRAD_HEADER='"hosts/esix.h"'
10431 i[3-7]86-*-sco3.2v5*)
10432 COREFILE=sco5-core.lo
10434 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
10435 COREFILE=trad-core.lo
10436 TRAD_HEADER='"hosts/i386sco.h"'
10439 COREFILE=trad-core.lo
10440 TRAD_HEADER='"hosts/i386mach3.h"'
10442 i[3-7]86-*-linux-*)
10443 COREFILE=trad-core.lo
10444 TRAD_HEADER='"hosts/i386linux.h"'
10446 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
10447 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
10448 i860-*-mach3* | i860-*-osf1*)
10449 COREFILE=trad-core.lo
10450 TRAD_HEADER='"hosts/i860mach3.h"'
10452 mips-*-netbsd* | mips*-*-openbsd*)
10453 COREFILE=netbsd-core.lo
10456 COREFILE=trad-core.lo
10457 TRAD_HEADER='"hosts/decstation.h"'
10459 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
10460 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
10461 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
10463 mips-*-sysv* | mips-*-riscos*)
10464 COREFILE=trad-core.lo
10465 TRAD_HEADER='"hosts/riscos.h"'
10468 COREFILE=trad-core.lo
10469 TRAD_HEADER='"hosts/news-mips.h"'
10472 COREFILE=trad-core.lo
10473 TRAD_HEADER='"hosts/dpx2.h"'
10475 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
10477 COREFILE=trad-core.lo
10478 TRAD_HEADER='"hosts/hp300bsd.h"'
10481 COREFILE=trad-core.lo
10482 TRAD_HEADER='"hosts/m68klinux.h"'
10484 m68*-motorola-sysv*)
10485 COREFILE=trad-core.lo
10486 TRAD_HEADER='"hosts/delta68.h"'
10489 COREFILE=trad-core.lo
10490 TRAD_HEADER='"hosts/news.h"'
10492 m68*-*-netbsd* | m68*-*-openbsd*)
10493 COREFILE=netbsd-core.lo
10496 COREFILE=trad-core.lo
10497 TRAD_HEADER='"hosts/m68kaux.h"'
10501 m88*-motorola-sysv*)
10502 COREFILE=ptrace-core.lo
10505 COREFILE=trad-core.lo
10506 TRAD_HEADER='"hosts/m88kmach3.h"'
10509 COREFILE=netbsd-core.lo
10512 COREFILE=trad-core.lo
10513 TRAD_HEADER='"hosts/pc532mach.h"'
10515 ns32k-*-netbsd* | ns32k-*-openbsd*)
10516 COREFILE=netbsd-core.lo
10519 COREFILE=lynx-core.lo
10521 rs6000-*-aix5.* | powerpc-*-aix5.*)
10522 COREFILE=rs6000-core.lo
10523 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
10525 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
10526 COREFILE=rs6000-core.lo
10527 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
10528 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
10529 # have c_impl as a member of struct core_dumpx
10530 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
10531 echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
10532 cat >conftest.$ac_ext <<_ACEOF
10535 cat confdefs.h >>conftest.$ac_ext
10536 cat >>conftest.$ac_ext <<_ACEOF
10537 /* end confdefs.h. */
10542 struct core_dumpx c; c.c_impl = 0;
10547 rm -f conftest.$ac_objext
10548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10549 (eval $ac_compile) 2>conftest.er1
10551 grep -v '^ *+' conftest.er1 >conftest.err
10553 cat conftest.err >&5
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); } &&
10556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10558 (eval $ac_try) 2>&5
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); }; } &&
10562 { ac_try='test -s conftest.$ac_objext'
10563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10564 (eval $ac_try) 2>&5
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); }; }; then
10569 cat >>confdefs.h <<\_ACEOF
10570 #define HAVE_ST_C_IMPL 1
10573 echo "$as_me:$LINENO: result: yes" >&5
10574 echo "${ECHO_T}yes" >&6
10576 echo "$as_me: failed program was:" >&5
10577 sed 's/^/| /' conftest.$ac_ext >&5
10579 echo "$as_me:$LINENO: result: no" >&5
10580 echo "${ECHO_T}no" >&6
10582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10584 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
10585 rs6000-*-*) COREFILE=rs6000-core.lo ;;
10586 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
10587 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
10588 powerpc-*-beos*) ;;
10589 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
10591 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
10592 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
10593 s390*-*-*) COREFILE=trad-core.lo ;;
10594 sh*-*-netbsd*) COREFILE=netbsd-core.lo ;;
10595 sparc-*-netbsd* | sparc*-*-openbsd*)
10596 COREFILE=netbsd-core.lo
10599 COREFILE=trad-core.lo
10600 TRAD_HEADER='"hosts/tahoe.h"'
10602 vax-*-netbsd* | vax-*-openbsd*)
10603 COREFILE=netbsd-core.lo
10606 COREFILE=trad-core.lo
10607 TRAD_HEADER='"hosts/vaxult2.h"'
10610 COREFILE=trad-core.lo
10611 TRAD_HEADER='"hosts/vaxult2.h"'
10614 COREFILE=trad-core.lo
10615 TRAD_HEADER='"hosts/vaxlinux.h"'
10618 COREFILE=trad-core.lo
10619 TRAD_HEADER='"hosts/vaxbsd.h"'
10621 x86_64-*-netbsd* | x86_64-*-openbsd*)
10622 COREFILE=netbsd-core.lo
10626 case "$COREFILE" in
10627 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
10628 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
10629 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
10630 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
10631 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
10632 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
10633 osf-core.lo) COREFLAG=-DOSF_CORE ;;
10634 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
10635 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
10636 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
10637 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
10640 # ELF corefile support has several flavors, but all of
10641 # them use something called <sys/procfs.h>
10643 for ac_header in sys/procfs.h
10645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10647 echo "$as_me:$LINENO: checking for $ac_header" >&5
10648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10650 echo $ECHO_N "(cached) $ECHO_C" >&6
10652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10655 # Is the header compilable?
10656 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10658 cat >conftest.$ac_ext <<_ACEOF
10661 cat confdefs.h >>conftest.$ac_ext
10662 cat >>conftest.$ac_ext <<_ACEOF
10663 /* end confdefs.h. */
10664 $ac_includes_default
10665 #include <$ac_header>
10667 rm -f conftest.$ac_objext
10668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10669 (eval $ac_compile) 2>conftest.er1
10671 grep -v '^ *+' conftest.er1 >conftest.err
10673 cat conftest.err >&5
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); } &&
10676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10678 (eval $ac_try) 2>&5
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); }; } &&
10682 { ac_try='test -s conftest.$ac_objext'
10683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10684 (eval $ac_try) 2>&5
10686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687 (exit $ac_status); }; }; then
10688 ac_header_compiler=yes
10690 echo "$as_me: failed program was:" >&5
10691 sed 's/^/| /' conftest.$ac_ext >&5
10693 ac_header_compiler=no
10695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10696 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10697 echo "${ECHO_T}$ac_header_compiler" >&6
10699 # Is the header present?
10700 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10701 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10702 cat >conftest.$ac_ext <<_ACEOF
10705 cat confdefs.h >>conftest.$ac_ext
10706 cat >>conftest.$ac_ext <<_ACEOF
10707 /* end confdefs.h. */
10708 #include <$ac_header>
10710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10711 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10713 grep -v '^ *+' conftest.er1 >conftest.err
10715 cat conftest.err >&5
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); } >/dev/null; then
10718 if test -s conftest.err; then
10719 ac_cpp_err=$ac_c_preproc_warn_flag
10720 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10727 if test -z "$ac_cpp_err"; then
10728 ac_header_preproc=yes
10730 echo "$as_me: failed program was:" >&5
10731 sed 's/^/| /' conftest.$ac_ext >&5
10733 ac_header_preproc=no
10735 rm -f conftest.err conftest.$ac_ext
10736 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10737 echo "${ECHO_T}$ac_header_preproc" >&6
10739 # So? What about this header?
10740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10742 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10743 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10745 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10746 ac_header_preproc=yes
10749 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10750 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10751 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10752 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10753 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10754 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10755 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10756 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10758 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10759 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10760 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10763 ## ------------------------------------------ ##
10764 ## Report this to the AC_PACKAGE_NAME lists. ##
10765 ## ------------------------------------------ ##
10768 sed "s/^/$as_me: WARNING: /" >&2
10771 echo "$as_me:$LINENO: checking for $ac_header" >&5
10772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10774 echo $ECHO_N "(cached) $ECHO_C" >&6
10776 eval "$as_ac_Header=\$ac_header_preproc"
10778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10779 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10783 cat >>confdefs.h <<_ACEOF
10784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10791 if test "$ac_cv_header_sys_procfs_h" = yes; then
10792 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
10793 echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
10794 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
10795 echo $ECHO_N "(cached) $ECHO_C" >&6
10797 cat >conftest.$ac_ext <<_ACEOF
10800 cat confdefs.h >>conftest.$ac_ext
10801 cat >>conftest.$ac_ext <<_ACEOF
10802 /* end confdefs.h. */
10805 #include <sys/procfs.h>
10814 rm -f conftest.$ac_objext
10815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10816 (eval $ac_compile) 2>conftest.er1
10818 grep -v '^ *+' conftest.er1 >conftest.err
10820 cat conftest.err >&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); } &&
10823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10825 (eval $ac_try) 2>&5
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); }; } &&
10829 { ac_try='test -s conftest.$ac_objext'
10830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10831 (eval $ac_try) 2>&5
10833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834 (exit $ac_status); }; }; then
10835 bfd_cv_have_sys_procfs_type_prstatus_t=yes
10837 echo "$as_me: failed program was:" >&5
10838 sed 's/^/| /' conftest.$ac_ext >&5
10840 bfd_cv_have_sys_procfs_type_prstatus_t=no
10843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10846 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
10848 cat >>confdefs.h <<\_ACEOF
10849 #define HAVE_PRSTATUS_T 1
10853 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
10854 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
10856 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
10857 echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
10858 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
10859 echo $ECHO_N "(cached) $ECHO_C" >&6
10861 cat >conftest.$ac_ext <<_ACEOF
10864 cat confdefs.h >>conftest.$ac_ext
10865 cat >>conftest.$ac_ext <<_ACEOF
10866 /* end confdefs.h. */
10869 #include <sys/procfs.h>
10878 rm -f conftest.$ac_objext
10879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10880 (eval $ac_compile) 2>conftest.er1
10882 grep -v '^ *+' conftest.er1 >conftest.err
10884 cat conftest.err >&5
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); } &&
10887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10889 (eval $ac_try) 2>&5
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); }; } &&
10893 { ac_try='test -s conftest.$ac_objext'
10894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10895 (eval $ac_try) 2>&5
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); }; }; then
10899 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
10901 echo "$as_me: failed program was:" >&5
10902 sed 's/^/| /' conftest.$ac_ext >&5
10904 bfd_cv_have_sys_procfs_type_prstatus32_t=no
10907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10910 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
10912 cat >>confdefs.h <<\_ACEOF
10913 #define HAVE_PRSTATUS32_T 1
10917 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
10918 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
10920 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
10921 echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
10922 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
10923 echo $ECHO_N "(cached) $ECHO_C" >&6
10925 cat >conftest.$ac_ext <<_ACEOF
10928 cat confdefs.h >>conftest.$ac_ext
10929 cat >>conftest.$ac_ext <<_ACEOF
10930 /* end confdefs.h. */
10933 #include <sys/procfs.h>
10937 prstatus_t avar; void* aref = (void*) &avar.pr_who
10942 rm -f conftest.$ac_objext
10943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10944 (eval $ac_compile) 2>conftest.er1
10946 grep -v '^ *+' conftest.er1 >conftest.err
10948 cat conftest.err >&5
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); } &&
10951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10953 (eval $ac_try) 2>&5
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); }; } &&
10957 { ac_try='test -s conftest.$ac_objext'
10958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10959 (eval $ac_try) 2>&5
10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); }; }; then
10963 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
10965 echo "$as_me: failed program was:" >&5
10966 sed 's/^/| /' conftest.$ac_ext >&5
10968 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
10971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10974 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
10976 cat >>confdefs.h <<\_ACEOF
10977 #define HAVE_PRSTATUS_T_PR_WHO 1
10981 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
10982 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
10984 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
10985 echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
10986 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
10987 echo $ECHO_N "(cached) $ECHO_C" >&6
10989 cat >conftest.$ac_ext <<_ACEOF
10992 cat confdefs.h >>conftest.$ac_ext
10993 cat >>conftest.$ac_ext <<_ACEOF
10994 /* end confdefs.h. */
10997 #include <sys/procfs.h>
11001 prstatus32_t avar; void* aref = (void*) &avar.pr_who
11006 rm -f conftest.$ac_objext
11007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11008 (eval $ac_compile) 2>conftest.er1
11010 grep -v '^ *+' conftest.er1 >conftest.err
11012 cat conftest.err >&5
11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); } &&
11015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11017 (eval $ac_try) 2>&5
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); }; } &&
11021 { ac_try='test -s conftest.$ac_objext'
11022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11023 (eval $ac_try) 2>&5
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); }; }; then
11027 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
11029 echo "$as_me: failed program was:" >&5
11030 sed 's/^/| /' conftest.$ac_ext >&5
11032 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
11035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11038 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
11040 cat >>confdefs.h <<\_ACEOF
11041 #define HAVE_PRSTATUS32_T_PR_WHO 1
11045 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
11046 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
11048 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
11049 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
11050 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
11051 echo $ECHO_N "(cached) $ECHO_C" >&6
11053 cat >conftest.$ac_ext <<_ACEOF
11056 cat confdefs.h >>conftest.$ac_ext
11057 cat >>conftest.$ac_ext <<_ACEOF
11058 /* end confdefs.h. */
11061 #include <sys/procfs.h>
11070 rm -f conftest.$ac_objext
11071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11072 (eval $ac_compile) 2>conftest.er1
11074 grep -v '^ *+' conftest.er1 >conftest.err
11076 cat conftest.err >&5
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); } &&
11079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11081 (eval $ac_try) 2>&5
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); }; } &&
11085 { ac_try='test -s conftest.$ac_objext'
11086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11087 (eval $ac_try) 2>&5
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); }; }; then
11091 bfd_cv_have_sys_procfs_type_pstatus_t=yes
11093 echo "$as_me: failed program was:" >&5
11094 sed 's/^/| /' conftest.$ac_ext >&5
11096 bfd_cv_have_sys_procfs_type_pstatus_t=no
11099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11102 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
11104 cat >>confdefs.h <<\_ACEOF
11105 #define HAVE_PSTATUS_T 1
11109 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
11110 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
11112 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
11113 echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
11114 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
11115 echo $ECHO_N "(cached) $ECHO_C" >&6
11117 cat >conftest.$ac_ext <<_ACEOF
11120 cat confdefs.h >>conftest.$ac_ext
11121 cat >>conftest.$ac_ext <<_ACEOF
11122 /* end confdefs.h. */
11125 #include <sys/procfs.h>
11134 rm -f conftest.$ac_objext
11135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11136 (eval $ac_compile) 2>conftest.er1
11138 grep -v '^ *+' conftest.er1 >conftest.err
11140 cat conftest.err >&5
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); } &&
11143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11145 (eval $ac_try) 2>&5
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); }; } &&
11149 { ac_try='test -s conftest.$ac_objext'
11150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11151 (eval $ac_try) 2>&5
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); }; }; then
11155 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
11157 echo "$as_me: failed program was:" >&5
11158 sed 's/^/| /' conftest.$ac_ext >&5
11160 bfd_cv_have_sys_procfs_type_pxstatus_t=no
11163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11166 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
11168 cat >>confdefs.h <<\_ACEOF
11169 #define HAVE_PXSTATUS_T 1
11173 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
11174 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
11176 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
11177 echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
11178 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
11179 echo $ECHO_N "(cached) $ECHO_C" >&6
11181 cat >conftest.$ac_ext <<_ACEOF
11184 cat confdefs.h >>conftest.$ac_ext
11185 cat >>conftest.$ac_ext <<_ACEOF
11186 /* end confdefs.h. */
11189 #include <sys/procfs.h>
11198 rm -f conftest.$ac_objext
11199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11200 (eval $ac_compile) 2>conftest.er1
11202 grep -v '^ *+' conftest.er1 >conftest.err
11204 cat conftest.err >&5
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); } &&
11207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11209 (eval $ac_try) 2>&5
11211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212 (exit $ac_status); }; } &&
11213 { ac_try='test -s conftest.$ac_objext'
11214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11215 (eval $ac_try) 2>&5
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); }; }; then
11219 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
11221 echo "$as_me: failed program was:" >&5
11222 sed 's/^/| /' conftest.$ac_ext >&5
11224 bfd_cv_have_sys_procfs_type_pstatus32_t=no
11227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11230 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
11232 cat >>confdefs.h <<\_ACEOF
11233 #define HAVE_PSTATUS32_T 1
11237 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
11238 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
11240 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
11241 echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
11242 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
11243 echo $ECHO_N "(cached) $ECHO_C" >&6
11245 cat >conftest.$ac_ext <<_ACEOF
11248 cat confdefs.h >>conftest.$ac_ext
11249 cat >>conftest.$ac_ext <<_ACEOF
11250 /* end confdefs.h. */
11253 #include <sys/procfs.h>
11262 rm -f conftest.$ac_objext
11263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11264 (eval $ac_compile) 2>conftest.er1
11266 grep -v '^ *+' conftest.er1 >conftest.err
11268 cat conftest.err >&5
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); } &&
11271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11273 (eval $ac_try) 2>&5
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); }; } &&
11277 { ac_try='test -s conftest.$ac_objext'
11278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11279 (eval $ac_try) 2>&5
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); }; }; then
11283 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
11285 echo "$as_me: failed program was:" >&5
11286 sed 's/^/| /' conftest.$ac_ext >&5
11288 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
11291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11294 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
11296 cat >>confdefs.h <<\_ACEOF
11297 #define HAVE_PRPSINFO_T 1
11301 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
11302 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
11304 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
11305 echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
11306 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
11307 echo $ECHO_N "(cached) $ECHO_C" >&6
11309 cat >conftest.$ac_ext <<_ACEOF
11312 cat confdefs.h >>conftest.$ac_ext
11313 cat >>conftest.$ac_ext <<_ACEOF
11314 /* end confdefs.h. */
11317 #include <sys/procfs.h>
11326 rm -f conftest.$ac_objext
11327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11328 (eval $ac_compile) 2>conftest.er1
11330 grep -v '^ *+' conftest.er1 >conftest.err
11332 cat conftest.err >&5
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); } &&
11335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11337 (eval $ac_try) 2>&5
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); }; } &&
11341 { ac_try='test -s conftest.$ac_objext'
11342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11343 (eval $ac_try) 2>&5
11345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346 (exit $ac_status); }; }; then
11347 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
11349 echo "$as_me: failed program was:" >&5
11350 sed 's/^/| /' conftest.$ac_ext >&5
11352 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
11355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11358 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
11360 cat >>confdefs.h <<\_ACEOF
11361 #define HAVE_PRPSINFO32_T 1
11365 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
11366 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
11368 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
11369 echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
11370 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
11371 echo $ECHO_N "(cached) $ECHO_C" >&6
11373 cat >conftest.$ac_ext <<_ACEOF
11376 cat confdefs.h >>conftest.$ac_ext
11377 cat >>conftest.$ac_ext <<_ACEOF
11378 /* end confdefs.h. */
11381 #include <sys/procfs.h>
11390 rm -f conftest.$ac_objext
11391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11392 (eval $ac_compile) 2>conftest.er1
11394 grep -v '^ *+' conftest.er1 >conftest.err
11396 cat conftest.err >&5
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); } &&
11399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11401 (eval $ac_try) 2>&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); }; } &&
11405 { ac_try='test -s conftest.$ac_objext'
11406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11407 (eval $ac_try) 2>&5
11409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); }; }; then
11411 bfd_cv_have_sys_procfs_type_psinfo_t=yes
11413 echo "$as_me: failed program was:" >&5
11414 sed 's/^/| /' conftest.$ac_ext >&5
11416 bfd_cv_have_sys_procfs_type_psinfo_t=no
11419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11422 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
11424 cat >>confdefs.h <<\_ACEOF
11425 #define HAVE_PSINFO_T 1
11429 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
11430 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
11432 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
11433 echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
11434 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
11435 echo $ECHO_N "(cached) $ECHO_C" >&6
11437 cat >conftest.$ac_ext <<_ACEOF
11440 cat confdefs.h >>conftest.$ac_ext
11441 cat >>conftest.$ac_ext <<_ACEOF
11442 /* end confdefs.h. */
11445 #include <sys/procfs.h>
11454 rm -f conftest.$ac_objext
11455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11456 (eval $ac_compile) 2>conftest.er1
11458 grep -v '^ *+' conftest.er1 >conftest.err
11460 cat conftest.err >&5
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); } &&
11463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11465 (eval $ac_try) 2>&5
11467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); }; } &&
11469 { ac_try='test -s conftest.$ac_objext'
11470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11471 (eval $ac_try) 2>&5
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); }; }; then
11475 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
11477 echo "$as_me: failed program was:" >&5
11478 sed 's/^/| /' conftest.$ac_ext >&5
11480 bfd_cv_have_sys_procfs_type_psinfo32_t=no
11483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11486 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
11488 cat >>confdefs.h <<\_ACEOF
11489 #define HAVE_PSINFO32_T 1
11493 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
11494 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
11496 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
11497 echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
11498 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
11499 echo $ECHO_N "(cached) $ECHO_C" >&6
11501 cat >conftest.$ac_ext <<_ACEOF
11504 cat confdefs.h >>conftest.$ac_ext
11505 cat >>conftest.$ac_ext <<_ACEOF
11506 /* end confdefs.h. */
11509 #include <sys/procfs.h>
11518 rm -f conftest.$ac_objext
11519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11520 (eval $ac_compile) 2>conftest.er1
11522 grep -v '^ *+' conftest.er1 >conftest.err
11524 cat conftest.err >&5
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); } &&
11527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11529 (eval $ac_try) 2>&5
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); }; } &&
11533 { ac_try='test -s conftest.$ac_objext'
11534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11535 (eval $ac_try) 2>&5
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); }; }; then
11539 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
11541 echo "$as_me: failed program was:" >&5
11542 sed 's/^/| /' conftest.$ac_ext >&5
11544 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
11547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11550 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
11552 cat >>confdefs.h <<\_ACEOF
11553 #define HAVE_LWPSTATUS_T 1
11557 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
11558 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
11560 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
11561 echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
11562 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
11563 echo $ECHO_N "(cached) $ECHO_C" >&6
11565 cat >conftest.$ac_ext <<_ACEOF
11568 cat confdefs.h >>conftest.$ac_ext
11569 cat >>conftest.$ac_ext <<_ACEOF
11570 /* end confdefs.h. */
11573 #include <sys/procfs.h>
11582 rm -f conftest.$ac_objext
11583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11584 (eval $ac_compile) 2>conftest.er1
11586 grep -v '^ *+' conftest.er1 >conftest.err
11588 cat conftest.err >&5
11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590 (exit $ac_status); } &&
11591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11593 (eval $ac_try) 2>&5
11595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596 (exit $ac_status); }; } &&
11597 { ac_try='test -s conftest.$ac_objext'
11598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11599 (eval $ac_try) 2>&5
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); }; }; then
11603 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
11605 echo "$as_me: failed program was:" >&5
11606 sed 's/^/| /' conftest.$ac_ext >&5
11608 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
11611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11614 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
11616 cat >>confdefs.h <<\_ACEOF
11617 #define HAVE_LWPXSTATUS_T 1
11621 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
11622 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
11624 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
11625 echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
11626 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
11627 echo $ECHO_N "(cached) $ECHO_C" >&6
11629 cat >conftest.$ac_ext <<_ACEOF
11632 cat confdefs.h >>conftest.$ac_ext
11633 cat >>conftest.$ac_ext <<_ACEOF
11634 /* end confdefs.h. */
11637 #include <sys/procfs.h>
11641 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
11646 rm -f conftest.$ac_objext
11647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11648 (eval $ac_compile) 2>conftest.er1
11650 grep -v '^ *+' conftest.er1 >conftest.err
11652 cat conftest.err >&5
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); } &&
11655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11657 (eval $ac_try) 2>&5
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); }; } &&
11661 { ac_try='test -s conftest.$ac_objext'
11662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11663 (eval $ac_try) 2>&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); }; }; then
11667 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
11669 echo "$as_me: failed program was:" >&5
11670 sed 's/^/| /' conftest.$ac_ext >&5
11672 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
11675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11678 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
11680 cat >>confdefs.h <<\_ACEOF
11681 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
11685 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
11686 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
11688 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
11689 echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
11690 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
11691 echo $ECHO_N "(cached) $ECHO_C" >&6
11693 cat >conftest.$ac_ext <<_ACEOF
11696 cat confdefs.h >>conftest.$ac_ext
11697 cat >>conftest.$ac_ext <<_ACEOF
11698 /* end confdefs.h. */
11701 #include <sys/procfs.h>
11705 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
11710 rm -f conftest.$ac_objext
11711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11712 (eval $ac_compile) 2>conftest.er1
11714 grep -v '^ *+' conftest.er1 >conftest.err
11716 cat conftest.err >&5
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); } &&
11719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11721 (eval $ac_try) 2>&5
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); }; } &&
11725 { ac_try='test -s conftest.$ac_objext'
11726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11727 (eval $ac_try) 2>&5
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); }; }; then
11731 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
11733 echo "$as_me: failed program was:" >&5
11734 sed 's/^/| /' conftest.$ac_ext >&5
11736 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
11739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11742 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
11744 cat >>confdefs.h <<\_ACEOF
11745 #define HAVE_LWPSTATUS_T_PR_REG 1
11749 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
11750 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
11752 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
11753 echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
11754 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
11755 echo $ECHO_N "(cached) $ECHO_C" >&6
11757 cat >conftest.$ac_ext <<_ACEOF
11760 cat confdefs.h >>conftest.$ac_ext
11761 cat >>conftest.$ac_ext <<_ACEOF
11762 /* end confdefs.h. */
11765 #include <sys/procfs.h>
11769 win32_pstatus_t avar
11774 rm -f conftest.$ac_objext
11775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11776 (eval $ac_compile) 2>conftest.er1
11778 grep -v '^ *+' conftest.er1 >conftest.err
11780 cat conftest.err >&5
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); } &&
11783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11785 (eval $ac_try) 2>&5
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); }; } &&
11789 { ac_try='test -s conftest.$ac_objext'
11790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11791 (eval $ac_try) 2>&5
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); }; }; then
11795 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
11797 echo "$as_me: failed program was:" >&5
11798 sed 's/^/| /' conftest.$ac_ext >&5
11800 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
11803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11806 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
11808 cat >>confdefs.h <<\_ACEOF
11809 #define HAVE_WIN32_PSTATUS_T 1
11813 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
11814 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
11820 if test -n "$TRAD_HEADER"; then
11822 cat >>confdefs.h <<_ACEOF
11823 #define TRAD_HEADER $TRAD_HEADER
11828 # Horrible hacks to build DLLs on Windows.
11833 if test "$enable_shared" = "yes"; then
11834 WIN32LDFLAGS="-no-undefined"
11835 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
11839 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
11843 # Linux/MIPS uses PIC by default.
11844 if test "$enable_shared" = "yes"; then
11845 WIN32LIBADD="-L../libiberty -liberty"
11849 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
11850 if test -n "$x"; then
11851 WIN32LIBADD="-L../libiberty/pic -liberty"
11862 # Canonicalize the secondary target names.
11863 if test -n "$enable_targets" ; then
11864 for targ in `echo $enable_targets | sed 's/,/ /g'`
11866 result=`$ac_config_sub $targ 2>/dev/null`
11867 if test -n "$result" ; then
11868 canon_targets="$canon_targets $result"
11870 # Allow targets that config.sub doesn't recognize, like "all".
11871 canon_targets="$canon_targets $targ"
11882 for targ in $target $canon_targets
11884 if test "x$targ" = "xall"; then
11886 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
11888 . $srcdir/config.bfd
11889 if test "x$targ" = "x$target"; then
11890 defvec=$targ_defvec
11892 selvecs="$selvecs $targ_defvec $targ_selvecs"
11893 selarchs="$selarchs $targ_archs"
11894 TDEFINES="$TDEFINES $targ_cflags"
11899 # This processing still needs to be done if we're to decide properly whether
11900 # 64-bit support needs to be compiled in. Currently, it will be included if
11901 # the default or any other explicitly requested target requires it; it
11902 # will not be included on a 32-bit host if no 64-bit target is requested, and
11903 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
11906 # uniq the default and selected vectors in all the configured targets.
11908 for i in $selvecs ; do
11917 # uniq the associated vectors in all the configured targets.
11919 for i in $assocvecs ; do
11928 # uniq the architectures in all the configured targets.
11930 for i in $selarchs ; do
11938 # Target backend .o files.
11941 elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
11943 for vec in $selvecs
11947 # This list is alphabetized to make it easy to compare
11948 # with the two vector lists in targets.c. For the same reason,
11949 # use one entry per line, even though this leads to long lines.
11950 a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;;
11951 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
11952 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
11953 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
11954 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
11955 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
11956 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
11957 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
11958 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
11959 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
11960 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
11961 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
11962 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
11963 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
11964 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
11965 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
11966 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
11967 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
11968 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
11969 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
11970 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
11971 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
11972 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
11973 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
11974 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
11975 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
11976 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo $elf" ;;
11977 bfd_elf32_bigarm_symbian_vec)
11978 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
11979 bfd_elf32_bigarm_vxworks_vec)
11980 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
11981 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
11982 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
11983 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
11984 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
11985 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
11986 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
11987 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
11988 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
11989 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
11990 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
11991 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
11992 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
11993 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
11994 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
11995 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
11996 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
11997 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
11998 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
11999 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
12000 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
12001 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
12002 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
12003 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
12004 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
12005 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
12006 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
12007 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
12008 bfd_elf32_littlearm_symbian_vec)
12009 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
12010 bfd_elf32_littlearm_vxworks_vec)
12011 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
12012 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo $elf" ;;
12013 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
12014 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
12015 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
12016 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
12017 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
12018 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
12019 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
12020 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
12021 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
12022 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
12023 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
12024 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
12025 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
12026 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
12027 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12028 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12029 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12030 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12031 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
12032 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
12033 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
12034 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
12035 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
12036 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
12037 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
12038 # FIXME: We include cofflink.lo not because it's needed for
12039 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
12040 # which needs it but does not list it. Should be fixed in right place.
12041 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
12042 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
12043 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
12044 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
12045 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
12046 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
12047 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
12048 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
12049 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
12050 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf32.lo $elf coff-sh.lo" ;;
12051 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
12052 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
12053 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
12054 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf32.lo $elf" ;;
12055 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
12056 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
12057 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
12058 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
12059 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
12060 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
12061 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
12062 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
12063 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
12064 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
12065 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
12066 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12067 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
12068 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
12069 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
12070 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
12071 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
12072 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
12073 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12074 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
12075 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
12076 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
12077 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
12078 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
12079 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
12080 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
12081 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
12082 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
12083 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
12084 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf64.lo $elf"; target_size=64 ;;
12085 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12086 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12087 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
12088 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
12089 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
12090 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
12091 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
12092 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
12093 cris_aout_vec) tb="$tb aout-cris.lo" ;;
12094 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
12095 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
12096 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
12097 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
12098 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
12099 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
12100 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
12101 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
12102 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
12103 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
12104 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
12105 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
12106 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
12107 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
12108 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
12109 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
12110 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
12111 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
12112 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
12113 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
12114 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
12115 i386msdos_vec) tb="$tb i386msdos.lo" ;;
12116 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
12117 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
12118 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
12119 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
12120 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
12121 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
12122 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
12123 ieee_vec) tb="$tb ieee.lo" ;;
12124 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
12125 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
12126 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
12127 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
12128 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
12129 m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
12130 m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
12131 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
12132 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
12133 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
12134 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
12135 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
12136 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
12137 mach_o_be_vec) tb="$tb mach-o.lo" ;;
12138 mach_o_le_vec) tb="$tb mach-o.lo" ;;
12139 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
12140 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
12141 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
12142 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
12143 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
12144 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
12145 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
12146 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
12147 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
12148 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
12149 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
12150 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
12151 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
12152 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
12153 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
12154 pef_vec) tb="$tb pef.lo" ;;
12155 pef_xlib_vec) tb="$tb pef.lo" ;;
12156 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
12157 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
12158 ppcboot_vec) tb="$tb ppcboot.lo" ;;
12159 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
12160 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
12161 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
12162 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
12163 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
12164 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
12165 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
12166 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
12167 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
12168 som_vec) tb="$tb som.lo" ;;
12169 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
12170 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
12171 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
12172 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
12173 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
12174 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
12175 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
12176 sym_vec) tb="$tb xsym.lo" ;;
12177 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
12178 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
12179 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
12180 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
12181 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
12182 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
12183 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
12184 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
12185 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
12186 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
12187 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
12188 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
12189 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
12190 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
12191 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
12192 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
12193 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
12194 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
12195 versados_vec) tb="$tb versados.lo" ;;
12196 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
12197 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
12198 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
12199 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
12200 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;;
12202 # These appear out of order in targets.c
12203 srec_vec) tb="$tb srec.lo" ;;
12204 symbolsrec_vec) tb="$tb srec.lo" ;;
12205 tekhex_vec) tb="$tb tekhex.lo" ;;
12206 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
12207 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
12210 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
12211 echo "$as_me: error: *** unknown target vector $vec" >&2;}
12212 { (exit 1); exit 1; }; } ;;
12215 if test ${target_size} = 64; then
12218 if test x"${vec}" = x"${defvec}"; then
12219 bfd_default_target_size=${target_size}
12223 # Target architecture .o files.
12224 # A couple of CPUs use shorter file names to avoid problems on DOS
12226 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
12228 # Weed out duplicate .o files.
12250 if test x${all_targets} = xtrue ; then
12251 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
12252 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
12256 test -n "$assocvecs" &&
12257 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
12258 else # all_targets is true
12259 # Only set these if they will be nonempty, for the clever echo.
12262 test -n "$selvecs" &&
12263 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
12264 test -n "$selvecs" &&
12265 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
12266 test -n "$selarchs" &&
12267 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
12268 fi # all_targets is true
12270 case ${host64}-${target64}-${want64} in
12273 bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)'
12274 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
12275 if test $BFD_HOST_64_BIT_DEFINED = 0; then
12276 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
12277 echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
12278 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
12279 echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
12281 if test -n "$GCC" ; then
12283 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
12284 echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
12285 # Add more tests for gcc versions with non-working 64-bit support here.
12286 cat >conftest.$ac_ext <<_ACEOF
12289 cat confdefs.h >>conftest.$ac_ext
12290 cat >>conftest.$ac_ext <<_ACEOF
12291 /* end confdefs.h. */
12292 :__GNUC__:__GNUC_MINOR__:__i386__:
12294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12295 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
12297 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
12298 echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
12300 echo "$as_me:$LINENO: result: no" >&5
12301 echo "${ECHO_T}no" >&6
12305 if test $bad_64bit_gcc = yes ; then
12306 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
12307 echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
12308 { (exit 1); exit 1; }; }
12314 bfd_libs='$(BFD32_LIBS)'
12315 all_backends='$(BFD32_BACKENDS)'
12326 # Determine the host dependant file_ptr a.k.a. off_t type. In order
12327 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
12328 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
12329 # Hopefully a reasonable assumption since fseeko et.al. should be
12330 # upward compatible.
12335 for ac_func in ftello ftello64 fseeko fseeko64
12337 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12338 echo "$as_me:$LINENO: checking for $ac_func" >&5
12339 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12340 if eval "test \"\${$as_ac_var+set}\" = set"; then
12341 echo $ECHO_N "(cached) $ECHO_C" >&6
12343 cat >conftest.$ac_ext <<_ACEOF
12346 cat confdefs.h >>conftest.$ac_ext
12347 cat >>conftest.$ac_ext <<_ACEOF
12348 /* end confdefs.h. */
12349 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12351 #define $ac_func innocuous_$ac_func
12353 /* System header to define __stub macros and hopefully few prototypes,
12354 which can conflict with char $ac_func (); below.
12355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12356 <limits.h> exists even on freestanding compilers. */
12359 # include <limits.h>
12361 # include <assert.h>
12366 /* Override any gcc2 internal prototype to avoid an error. */
12371 /* We use char because int might match the return type of a gcc2
12372 builtin and then its argument prototype would still apply. */
12374 /* The GNU C library defines this for functions which it implements
12375 to always fail with ENOSYS. Some functions are actually named
12376 something starting with __ and the normal name is an alias. */
12377 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12380 char (*f) () = $ac_func;
12389 return f != $ac_func;
12394 rm -f conftest.$ac_objext conftest$ac_exeext
12395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12396 (eval $ac_link) 2>conftest.er1
12398 grep -v '^ *+' conftest.er1 >conftest.err
12400 cat conftest.err >&5
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); } &&
12403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12405 (eval $ac_try) 2>&5
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); }; } &&
12409 { ac_try='test -s conftest$ac_exeext'
12410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12411 (eval $ac_try) 2>&5
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); }; }; then
12415 eval "$as_ac_var=yes"
12417 echo "$as_me: failed program was:" >&5
12418 sed 's/^/| /' conftest.$ac_ext >&5
12420 eval "$as_ac_var=no"
12422 rm -f conftest.err conftest.$ac_objext \
12423 conftest$ac_exeext conftest.$ac_ext
12425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12426 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12427 if test `eval echo '${'$as_ac_var'}'` = yes; then
12428 cat >>confdefs.h <<_ACEOF
12429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12435 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
12436 echo "$as_me:$LINENO: checking size of off_t" >&5
12437 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
12438 if test "${ac_cv_sizeof_off_t+set}" = set; then
12439 echo $ECHO_N "(cached) $ECHO_C" >&6
12441 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
12442 cat >conftest.$ac_ext <<_ACEOF
12445 cat confdefs.h >>conftest.$ac_ext
12446 cat >>conftest.$ac_ext <<_ACEOF
12447 /* end confdefs.h. */
12448 #include "confdefs.h"
12449 #include <sys/types.h>
12455 switch (0) case 0: case (sizeof (off_t) == $ac_size):;
12460 rm -f conftest.$ac_objext
12461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12462 (eval $ac_compile) 2>conftest.er1
12464 grep -v '^ *+' conftest.er1 >conftest.err
12466 cat conftest.err >&5
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); } &&
12469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12471 (eval $ac_try) 2>&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); }; } &&
12475 { ac_try='test -s conftest.$ac_objext'
12476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12477 (eval $ac_try) 2>&5
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); }; }; then
12481 ac_cv_sizeof_off_t=$ac_size
12483 echo "$as_me: failed program was:" >&5
12484 sed 's/^/| /' conftest.$ac_ext >&5
12487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12488 if test x$ac_cv_sizeof_off_t != x ; then break; fi
12493 if test x$ac_cv_sizeof_off_t = x ; then
12494 { { echo "$as_me:$LINENO: error: cannot determine a size for off_t" >&5
12495 echo "$as_me: error: cannot determine a size for off_t" >&2;}
12496 { (exit 1); exit 1; }; }
12498 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
12499 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
12501 cat >>confdefs.h <<_ACEOF
12502 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12507 echo "$as_me:$LINENO: checking file_ptr type" >&5
12508 echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
12509 bfd_file_ptr="long"
12510 bfd_ufile_ptr="unsigned long"
12511 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
12512 -o x"${ac_cv_sizeof_off_t}" = x8; then
12513 bfd_file_ptr=BFD_HOST_64_BIT
12514 bfd_ufile_ptr=BFD_HOST_U_64_BIT
12516 echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
12517 echo "${ECHO_T}$bfd_file_ptr" >&6
12523 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
12524 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
12525 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
12526 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
12527 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
12532 for ac_header in stdlib.h unistd.h
12534 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12536 echo "$as_me:$LINENO: checking for $ac_header" >&5
12537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12539 echo $ECHO_N "(cached) $ECHO_C" >&6
12541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12542 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12544 # Is the header compilable?
12545 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12546 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12547 cat >conftest.$ac_ext <<_ACEOF
12550 cat confdefs.h >>conftest.$ac_ext
12551 cat >>conftest.$ac_ext <<_ACEOF
12552 /* end confdefs.h. */
12553 $ac_includes_default
12554 #include <$ac_header>
12556 rm -f conftest.$ac_objext
12557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12558 (eval $ac_compile) 2>conftest.er1
12560 grep -v '^ *+' conftest.er1 >conftest.err
12562 cat conftest.err >&5
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); } &&
12565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12567 (eval $ac_try) 2>&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); }; } &&
12571 { ac_try='test -s conftest.$ac_objext'
12572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12573 (eval $ac_try) 2>&5
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); }; }; then
12577 ac_header_compiler=yes
12579 echo "$as_me: failed program was:" >&5
12580 sed 's/^/| /' conftest.$ac_ext >&5
12582 ac_header_compiler=no
12584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12585 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12586 echo "${ECHO_T}$ac_header_compiler" >&6
12588 # Is the header present?
12589 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12590 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12591 cat >conftest.$ac_ext <<_ACEOF
12594 cat confdefs.h >>conftest.$ac_ext
12595 cat >>conftest.$ac_ext <<_ACEOF
12596 /* end confdefs.h. */
12597 #include <$ac_header>
12599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12600 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12602 grep -v '^ *+' conftest.er1 >conftest.err
12604 cat conftest.err >&5
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); } >/dev/null; then
12607 if test -s conftest.err; then
12608 ac_cpp_err=$ac_c_preproc_warn_flag
12609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12616 if test -z "$ac_cpp_err"; then
12617 ac_header_preproc=yes
12619 echo "$as_me: failed program was:" >&5
12620 sed 's/^/| /' conftest.$ac_ext >&5
12622 ac_header_preproc=no
12624 rm -f conftest.err conftest.$ac_ext
12625 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12626 echo "${ECHO_T}$ac_header_preproc" >&6
12628 # So? What about this header?
12629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12631 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12632 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12634 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12635 ac_header_preproc=yes
12638 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12640 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12641 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12642 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12643 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12644 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12645 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12648 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12649 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12652 ## ------------------------------------------ ##
12653 ## Report this to the AC_PACKAGE_NAME lists. ##
12654 ## ------------------------------------------ ##
12657 sed "s/^/$as_me: WARNING: /" >&2
12660 echo "$as_me:$LINENO: checking for $ac_header" >&5
12661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12663 echo $ECHO_N "(cached) $ECHO_C" >&6
12665 eval "$as_ac_Header=\$ac_header_preproc"
12667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12672 cat >>confdefs.h <<_ACEOF
12673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12681 for ac_func in getpagesize
12683 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12684 echo "$as_me:$LINENO: checking for $ac_func" >&5
12685 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12686 if eval "test \"\${$as_ac_var+set}\" = set"; then
12687 echo $ECHO_N "(cached) $ECHO_C" >&6
12689 cat >conftest.$ac_ext <<_ACEOF
12692 cat confdefs.h >>conftest.$ac_ext
12693 cat >>conftest.$ac_ext <<_ACEOF
12694 /* end confdefs.h. */
12695 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12697 #define $ac_func innocuous_$ac_func
12699 /* System header to define __stub macros and hopefully few prototypes,
12700 which can conflict with char $ac_func (); below.
12701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12702 <limits.h> exists even on freestanding compilers. */
12705 # include <limits.h>
12707 # include <assert.h>
12712 /* Override any gcc2 internal prototype to avoid an error. */
12717 /* We use char because int might match the return type of a gcc2
12718 builtin and then its argument prototype would still apply. */
12720 /* The GNU C library defines this for functions which it implements
12721 to always fail with ENOSYS. Some functions are actually named
12722 something starting with __ and the normal name is an alias. */
12723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12726 char (*f) () = $ac_func;
12735 return f != $ac_func;
12740 rm -f conftest.$ac_objext conftest$ac_exeext
12741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12742 (eval $ac_link) 2>conftest.er1
12744 grep -v '^ *+' conftest.er1 >conftest.err
12746 cat conftest.err >&5
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); } &&
12749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12751 (eval $ac_try) 2>&5
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); }; } &&
12755 { ac_try='test -s conftest$ac_exeext'
12756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12757 (eval $ac_try) 2>&5
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); }; }; then
12761 eval "$as_ac_var=yes"
12763 echo "$as_me: failed program was:" >&5
12764 sed 's/^/| /' conftest.$ac_ext >&5
12766 eval "$as_ac_var=no"
12768 rm -f conftest.err conftest.$ac_objext \
12769 conftest$ac_exeext conftest.$ac_ext
12771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12772 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12773 if test `eval echo '${'$as_ac_var'}'` = yes; then
12774 cat >>confdefs.h <<_ACEOF
12775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12781 echo "$as_me:$LINENO: checking for working mmap" >&5
12782 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12783 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12784 echo $ECHO_N "(cached) $ECHO_C" >&6
12786 if test "$cross_compiling" = yes; then
12787 ac_cv_func_mmap_fixed_mapped=no
12789 cat >conftest.$ac_ext <<_ACEOF
12792 cat confdefs.h >>conftest.$ac_ext
12793 cat >>conftest.$ac_ext <<_ACEOF
12794 /* end confdefs.h. */
12795 $ac_includes_default
12796 /* malloc might have been renamed as rpl_malloc. */
12799 /* Thanks to Mike Haertel and Jim Avera for this test.
12800 Here is a matrix of mmap possibilities:
12801 mmap private not fixed
12802 mmap private fixed at somewhere currently unmapped
12803 mmap private fixed at somewhere already mapped
12804 mmap shared not fixed
12805 mmap shared fixed at somewhere currently unmapped
12806 mmap shared fixed at somewhere already mapped
12807 For private mappings, we should verify that changes cannot be read()
12808 back from the file, nor mmap's back from the file at a different
12809 address. (There have been systems where private was not correctly
12810 implemented like the infamous i386 svr4.0, and systems where the
12811 VM page cache was not coherent with the file system buffer cache
12812 like early versions of FreeBSD and possibly contemporary NetBSD.)
12813 For shared mappings, we should conversely verify that changes get
12814 propagated back to all the places they're supposed to be.
12816 Grep wants private fixed already mapped.
12817 The main things grep needs to know about mmap are:
12818 * does it exist and is it safe to write into the mmap'd area
12819 * how to use it (BSD variants) */
12822 #include <sys/mman.h>
12824 #if !STDC_HEADERS && !HAVE_STDLIB_H
12828 /* This mess was copied from the GNU getpagesize.h. */
12829 #if !HAVE_GETPAGESIZE
12830 /* Assume that all systems that can run configure have sys/param.h. */
12831 # if !HAVE_SYS_PARAM_H
12832 # define HAVE_SYS_PARAM_H 1
12835 # ifdef _SC_PAGESIZE
12836 # define getpagesize() sysconf(_SC_PAGESIZE)
12837 # else /* no _SC_PAGESIZE */
12838 # if HAVE_SYS_PARAM_H
12839 # include <sys/param.h>
12840 # ifdef EXEC_PAGESIZE
12841 # define getpagesize() EXEC_PAGESIZE
12842 # else /* no EXEC_PAGESIZE */
12844 # define getpagesize() NBPG * CLSIZE
12847 # endif /* no CLSIZE */
12848 # else /* no NBPG */
12850 # define getpagesize() NBPC
12851 # else /* no NBPC */
12853 # define getpagesize() PAGESIZE
12854 # endif /* PAGESIZE */
12855 # endif /* no NBPC */
12856 # endif /* no NBPG */
12857 # endif /* no EXEC_PAGESIZE */
12858 # else /* no HAVE_SYS_PARAM_H */
12859 # define getpagesize() 8192 /* punt totally */
12860 # endif /* no HAVE_SYS_PARAM_H */
12861 # endif /* no _SC_PAGESIZE */
12863 #endif /* no HAVE_GETPAGESIZE */
12868 char *data, *data2, *data3;
12872 pagesize = getpagesize ();
12874 /* First, make a file with some known garbage in it. */
12875 data = (char *) malloc (pagesize);
12878 for (i = 0; i < pagesize; ++i)
12879 *(data + i) = rand ();
12881 fd = creat ("conftest.mmap", 0600);
12884 if (write (fd, data, pagesize) != pagesize)
12888 /* Next, try to mmap the file at a fixed address which already has
12889 something else allocated at it. If we can, also make sure that
12890 we see the same garbage. */
12891 fd = open ("conftest.mmap", O_RDWR);
12894 data2 = (char *) malloc (2 * pagesize);
12897 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
12898 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12899 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12901 for (i = 0; i < pagesize; ++i)
12902 if (*(data + i) != *(data2 + i))
12905 /* Finally, make sure that changes to the mapped area do not
12906 percolate back to the file as seen by read(). (This is a bug on
12907 some variants of i386 svr4.0.) */
12908 for (i = 0; i < pagesize; ++i)
12909 *(data2 + i) = *(data2 + i) + 1;
12910 data3 = (char *) malloc (pagesize);
12913 if (read (fd, data3, pagesize) != pagesize)
12915 for (i = 0; i < pagesize; ++i)
12916 if (*(data + i) != *(data3 + i))
12922 rm -f conftest$ac_exeext
12923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12924 (eval $ac_link) 2>&5
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12929 (eval $ac_try) 2>&5
12931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 (exit $ac_status); }; }; then
12933 ac_cv_func_mmap_fixed_mapped=yes
12935 echo "$as_me: program exited with status $ac_status" >&5
12936 echo "$as_me: failed program was:" >&5
12937 sed 's/^/| /' conftest.$ac_ext >&5
12939 ( exit $ac_status )
12940 ac_cv_func_mmap_fixed_mapped=no
12942 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12945 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12946 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12947 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12949 cat >>confdefs.h <<\_ACEOF
12950 #define HAVE_MMAP 1
12954 rm -f conftest.mmap
12958 for ac_func in madvise mprotect
12960 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12961 echo "$as_me:$LINENO: checking for $ac_func" >&5
12962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12963 if eval "test \"\${$as_ac_var+set}\" = set"; then
12964 echo $ECHO_N "(cached) $ECHO_C" >&6
12966 cat >conftest.$ac_ext <<_ACEOF
12969 cat confdefs.h >>conftest.$ac_ext
12970 cat >>conftest.$ac_ext <<_ACEOF
12971 /* end confdefs.h. */
12972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12974 #define $ac_func innocuous_$ac_func
12976 /* System header to define __stub macros and hopefully few prototypes,
12977 which can conflict with char $ac_func (); below.
12978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12979 <limits.h> exists even on freestanding compilers. */
12982 # include <limits.h>
12984 # include <assert.h>
12989 /* Override any gcc2 internal prototype to avoid an error. */
12994 /* We use char because int might match the return type of a gcc2
12995 builtin and then its argument prototype would still apply. */
12997 /* The GNU C library defines this for functions which it implements
12998 to always fail with ENOSYS. Some functions are actually named
12999 something starting with __ and the normal name is an alias. */
13000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13003 char (*f) () = $ac_func;
13012 return f != $ac_func;
13017 rm -f conftest.$ac_objext conftest$ac_exeext
13018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13019 (eval $ac_link) 2>conftest.er1
13021 grep -v '^ *+' conftest.er1 >conftest.err
13023 cat conftest.err >&5
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); } &&
13026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13028 (eval $ac_try) 2>&5
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); }; } &&
13032 { ac_try='test -s conftest$ac_exeext'
13033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13034 (eval $ac_try) 2>&5
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); }; }; then
13038 eval "$as_ac_var=yes"
13040 echo "$as_me: failed program was:" >&5
13041 sed 's/^/| /' conftest.$ac_ext >&5
13043 eval "$as_ac_var=no"
13045 rm -f conftest.err conftest.$ac_objext \
13046 conftest$ac_exeext conftest.$ac_ext
13048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13049 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13050 if test `eval echo '${'$as_ac_var'}'` = yes; then
13051 cat >>confdefs.h <<_ACEOF
13052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13058 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
13060 cat >>confdefs.h <<\_ACEOF
13066 rm -f doc/config.status
13067 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
13069 ac_config_commands="$ac_config_commands default"
13071 cat >confcache <<\_ACEOF
13072 # This file is a shell script that caches the results of configure
13073 # tests run on this system so they can be shared between configure
13074 # scripts and configure runs, see configure's option --config-cache.
13075 # It is not useful on other systems. If it contains results you don't
13076 # want to keep, you may remove or edit it.
13078 # config.status only pays attention to the cache file if you give it
13079 # the --recheck option to rerun configure.
13081 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13082 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13083 # following values.
13087 # The following way of writing the cache mishandles newlines in values,
13088 # but we know of no workaround that is simple, portable, and efficient.
13089 # So, don't put newlines in cache variables' values.
13090 # Ultrix sh set writes to stderr and can't be redirected directly,
13091 # and sets the high bit in the cache file unless we assign to the vars.
13094 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13096 # `set' does not quote correctly, so add quotes (double-quote
13097 # substitution turns \\\\ into \\, and sed turns \\ into \).
13100 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13103 # `set' quotes correctly as required by POSIX, so do not add quotes.
13105 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13112 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13114 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13116 if diff $cache_file confcache >/dev/null 2>&1; then :; else
13117 if test -w $cache_file; then
13118 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13119 cat confcache >$cache_file
13121 echo "not updating unwritable cache $cache_file"
13126 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13127 # Let make expand exec_prefix.
13128 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13130 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13131 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13132 # trailing colons and then remove the whole line if VPATH becomes empty
13133 # (actually we leave an empty line to preserve line numbers).
13134 if test "x$srcdir" = x.; then
13135 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13136 s/:*\$(srcdir):*/:/;
13137 s/:*\${srcdir}:*/:/;
13139 s/^\([^=]*=[ ]*\):*/\1/;
13145 DEFS=-DHAVE_CONFIG_H
13149 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13150 # 1. Remove the extension, and $U if already installed.
13151 ac_i=`echo "$ac_i" |
13152 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13154 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13155 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13157 LIBOBJS=$ac_libobjs
13159 LTLIBOBJS=$ac_ltlibobjs
13162 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13163 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13164 Usually this means the macro was only invoked conditionally." >&5
13165 echo "$as_me: error: conditional \"AMDEP\" was never defined.
13166 Usually this means the macro was only invoked conditionally." >&2;}
13167 { (exit 1); exit 1; }; }
13169 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13170 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13171 Usually this means the macro was only invoked conditionally." >&5
13172 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13173 Usually this means the macro was only invoked conditionally." >&2;}
13174 { (exit 1); exit 1; }; }
13176 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13177 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13178 Usually this means the macro was only invoked conditionally." >&5
13179 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13180 Usually this means the macro was only invoked conditionally." >&2;}
13181 { (exit 1); exit 1; }; }
13183 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
13184 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
13185 Usually this means the macro was only invoked conditionally." >&5
13186 echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
13187 Usually this means the macro was only invoked conditionally." >&2;}
13188 { (exit 1); exit 1; }; }
13191 : ${CONFIG_STATUS=./config.status}
13192 ac_clean_files_save=$ac_clean_files
13193 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13194 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13195 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13196 cat >$CONFIG_STATUS <<_ACEOF
13198 # Generated by $as_me.
13199 # Run this file to recreate the current configuration.
13200 # Compiler output produced by configure, useful for debugging
13201 # configure, is in config.log if it exists.
13204 ac_cs_recheck=false
13206 SHELL=\${CONFIG_SHELL-$SHELL}
13209 cat >>$CONFIG_STATUS <<\_ACEOF
13210 ## --------------------- ##
13211 ## M4sh Initialization. ##
13212 ## --------------------- ##
13214 # Be Bourne compatible
13215 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13218 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13219 # is contrary to our usage. Disable this feature.
13220 alias -g '${1+"$@"}'='"$@"'
13221 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13224 DUALCASE=1; export DUALCASE # for MKS sh
13226 # Support unset when possible.
13227 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13234 # Work around bugs in pre-3.0 UWIN ksh.
13235 $as_unset ENV MAIL MAILPATH
13242 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13243 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13244 LC_TELEPHONE LC_TIME
13246 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13247 eval $as_var=C; export $as_var
13253 # Required to use basename.
13254 if expr a : '\(a\)' >/dev/null 2>&1; then
13260 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13261 as_basename=basename
13267 # Name of the executable.
13268 as_me=`$as_basename "$0" ||
13269 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13270 X"$0" : 'X\(//\)$' \| \
13271 X"$0" : 'X\(/\)$' \| \
13272 . : '\(.\)' 2>/dev/null ||
13274 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13275 /^X\/\(\/\/\)$/{ s//\1/; q; }
13276 /^X\/\(\/\).*/{ s//\1/; q; }
13280 # PATH needs CR, and LINENO needs CR and PATH.
13281 # Avoid depending upon Character Ranges.
13282 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13283 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13284 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13285 as_cr_digits='0123456789'
13286 as_cr_alnum=$as_cr_Letters$as_cr_digits
13288 # The user is always right.
13289 if test "${PATH_SEPARATOR+set}" != set; then
13290 echo "#! /bin/sh" >conf$$.sh
13291 echo "exit 0" >>conf$$.sh
13293 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13302 as_lineno_1=$LINENO
13303 as_lineno_2=$LINENO
13304 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13305 test "x$as_lineno_1" != "x$as_lineno_2" &&
13306 test "x$as_lineno_3" = "x$as_lineno_2" || {
13307 # Find who we are. Look in the path if we contain no path at all
13310 *[\\/]* ) as_myself=$0 ;;
13311 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13312 for as_dir in $PATH
13315 test -z "$as_dir" && as_dir=.
13316 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13321 # We did not find ourselves, most probably we were run as `sh COMMAND'
13322 # in which case we are not to be found in the path.
13323 if test "x$as_myself" = x; then
13326 if test ! -f "$as_myself"; then
13327 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13328 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13329 { (exit 1); exit 1; }; }
13331 case $CONFIG_SHELL in
13333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13334 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13337 test -z "$as_dir" && as_dir=.
13338 for as_base in sh bash ksh sh5; do
13341 if ("$as_dir/$as_base" -c '
13342 as_lineno_1=$LINENO
13343 as_lineno_2=$LINENO
13344 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13345 test "x$as_lineno_1" != "x$as_lineno_2" &&
13346 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13347 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13348 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13349 CONFIG_SHELL=$as_dir/$as_base
13350 export CONFIG_SHELL
13351 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13359 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13360 # uniformly replaced by the line number. The first 'sed' inserts a
13361 # line-number line before each line; the second 'sed' does the real
13362 # work. The second script uses 'N' to pair each line-number line
13363 # with the numbered line, and appends trailing '-' during
13364 # substitution so that $LINENO is not a special case at line end.
13365 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13366 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13367 sed '=' <$as_myself |
13372 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13375 s,^['$as_cr_digits']*\n,,
13376 ' >$as_me.lineno &&
13377 chmod +x $as_me.lineno ||
13378 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13379 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13380 { (exit 1); exit 1; }; }
13382 # Don't try to exec as it changes $[0], causing all sort of problems
13383 # (the dirname of $[0] is not the place where we might find the
13384 # original and so on. Autoconf is especially sensible to this).
13386 # Exit status is that of the last command.
13391 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13392 *c*,-n*) ECHO_N= ECHO_C='
13394 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13395 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13398 if expr a : '\(a\)' >/dev/null 2>&1; then
13404 rm -f conf$$ conf$$.exe conf$$.file
13406 if ln -s conf$$.file conf$$ 2>/dev/null; then
13407 # We could just check for DJGPP; but this test a) works b) is more generic
13408 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13409 if test -f conf$$.exe; then
13410 # Don't use ln at all; we don't have any links
13415 elif ln conf$$.file conf$$ 2>/dev/null; then
13420 rm -f conf$$ conf$$.exe conf$$.file
13422 if mkdir -p . 2>/dev/null; then
13425 test -d ./-p && rmdir ./-p
13429 as_executable_p="test -f"
13431 # Sed expression to map a string onto a valid CPP name.
13432 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13434 # Sed expression to map a string onto a valid variable name.
13435 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13439 # We need space, tab and new line, in precisely that order.
13449 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13450 # report actual input values of CONFIG_FILES etc. instead of their
13451 # values after options handling. Logging --version etc. is OK.
13455 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13456 ## Running $as_me. ##
13461 This file was extended by $as_me, which was
13462 generated by GNU Autoconf 2.59. Invocation command line was
13464 CONFIG_FILES = $CONFIG_FILES
13465 CONFIG_HEADERS = $CONFIG_HEADERS
13466 CONFIG_LINKS = $CONFIG_LINKS
13467 CONFIG_COMMANDS = $CONFIG_COMMANDS
13471 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13475 # Files that config.status was made for.
13476 if test -n "$ac_config_files"; then
13477 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13480 if test -n "$ac_config_headers"; then
13481 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13484 if test -n "$ac_config_links"; then
13485 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13488 if test -n "$ac_config_commands"; then
13489 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13492 cat >>$CONFIG_STATUS <<\_ACEOF
13495 \`$as_me' instantiates files from templates according to the
13496 current configuration.
13498 Usage: $0 [OPTIONS] [FILE]...
13500 -h, --help print this help, then exit
13501 -V, --version print version number, then exit
13502 -q, --quiet do not print progress messages
13503 -d, --debug don't remove temporary files
13504 --recheck update $as_me by reconfiguring in the same conditions
13505 --file=FILE[:TEMPLATE]
13506 instantiate the configuration file FILE
13507 --header=FILE[:TEMPLATE]
13508 instantiate the configuration header FILE
13510 Configuration files:
13513 Configuration headers:
13516 Configuration commands:
13519 Report bugs to <bug-autoconf@gnu.org>."
13522 cat >>$CONFIG_STATUS <<_ACEOF
13525 configured by $0, generated by GNU Autoconf 2.59,
13526 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13528 Copyright (C) 2003 Free Software Foundation, Inc.
13529 This config.status script is free software; the Free Software Foundation
13530 gives unlimited permission to copy, distribute and modify it."
13535 cat >>$CONFIG_STATUS <<\_ACEOF
13536 # If no file are specified by the user, then we need to provide default
13537 # value. By we need to know if files were specified by the user.
13543 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13544 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13552 *) # This is not an option, so the user has probably given explicit
13555 ac_need_defaults=false;;
13559 # Handling of the options.
13561 cat >>$CONFIG_STATUS <<\_ACEOF
13562 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13564 --version | --vers* | -V )
13565 echo "$ac_cs_version"; exit 0 ;;
13567 # Conflict between --help and --header
13568 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13569 Try \`$0 --help' for more information." >&5
13570 echo "$as_me: error: ambiguous option: $1
13571 Try \`$0 --help' for more information." >&2;}
13572 { (exit 1); exit 1; }; };;
13573 --help | --hel | -h )
13574 echo "$ac_cs_usage"; exit 0 ;;
13575 --debug | --d* | -d )
13577 --file | --fil | --fi | --f )
13579 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13580 ac_need_defaults=false;;
13581 --header | --heade | --head | --hea )
13583 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13584 ac_need_defaults=false;;
13585 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13586 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13589 # This is an error.
13590 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13591 Try \`$0 --help' for more information." >&5
13592 echo "$as_me: error: unrecognized option: $1
13593 Try \`$0 --help' for more information." >&2;}
13594 { (exit 1); exit 1; }; } ;;
13596 *) ac_config_targets="$ac_config_targets $1" ;;
13602 ac_configure_extra_args=
13604 if $ac_cs_silent; then
13606 ac_configure_extra_args="$ac_configure_extra_args --silent"
13610 cat >>$CONFIG_STATUS <<_ACEOF
13611 if \$ac_cs_recheck; then
13612 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13613 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13618 cat >>$CONFIG_STATUS <<_ACEOF
13620 # INIT-COMMANDS section.
13623 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13630 cat >>$CONFIG_STATUS <<\_ACEOF
13631 for ac_config_target in $ac_config_targets
13633 case "$ac_config_target" in
13634 # Handling of arguments.
13635 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13636 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13637 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
13638 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
13639 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13640 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
13641 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
13642 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13643 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13644 { (exit 1); exit 1; }; };;
13648 # If the user did not use the arguments to specify the items to instantiate,
13649 # then the envvar interface is used. Set only those that are not.
13650 # We use the long form for the default assignment because of an extremely
13651 # bizarre bug on SunOS 4.1.3.
13652 if $ac_need_defaults; then
13653 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13654 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13655 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13658 # Have a temporary directory for convenience. Make it in the build tree
13659 # simply because there is no reason to put it here, and in addition,
13660 # creating and moving files from /tmp can sometimes cause problems.
13661 # Create a temporary directory, and hook for its removal unless debugging.
13664 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13665 trap '{ (exit 1); exit 1; }' 1 2 13 15
13668 # Create a (secure) tmp directory for tmp files.
13671 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13672 test -n "$tmp" && test -d "$tmp"
13675 tmp=./confstat$$-$RANDOM
13676 (umask 077 && mkdir $tmp)
13679 echo "$me: cannot create a temporary directory in ." >&2
13680 { (exit 1); exit 1; }
13685 cat >>$CONFIG_STATUS <<_ACEOF
13688 # CONFIG_FILES section.
13691 # No need to generate the scripts if there are no CONFIG_FILES.
13692 # This happens for instance when ./config.status config.h
13693 if test -n "\$CONFIG_FILES"; then
13694 # Protect against being on the right side of a sed subst in config.status.
13695 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13696 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13697 s,@SHELL@,$SHELL,;t t
13698 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13699 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13700 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13701 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13702 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13703 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13704 s,@exec_prefix@,$exec_prefix,;t t
13705 s,@prefix@,$prefix,;t t
13706 s,@program_transform_name@,$program_transform_name,;t t
13707 s,@bindir@,$bindir,;t t
13708 s,@sbindir@,$sbindir,;t t
13709 s,@libexecdir@,$libexecdir,;t t
13710 s,@datadir@,$datadir,;t t
13711 s,@sysconfdir@,$sysconfdir,;t t
13712 s,@sharedstatedir@,$sharedstatedir,;t t
13713 s,@localstatedir@,$localstatedir,;t t
13714 s,@libdir@,$libdir,;t t
13715 s,@includedir@,$includedir,;t t
13716 s,@oldincludedir@,$oldincludedir,;t t
13717 s,@infodir@,$infodir,;t t
13718 s,@mandir@,$mandir,;t t
13719 s,@build_alias@,$build_alias,;t t
13720 s,@host_alias@,$host_alias,;t t
13721 s,@target_alias@,$target_alias,;t t
13722 s,@DEFS@,$DEFS,;t t
13723 s,@ECHO_C@,$ECHO_C,;t t
13724 s,@ECHO_N@,$ECHO_N,;t t
13725 s,@ECHO_T@,$ECHO_T,;t t
13726 s,@LIBS@,$LIBS,;t t
13727 s,@build@,$build,;t t
13728 s,@build_cpu@,$build_cpu,;t t
13729 s,@build_vendor@,$build_vendor,;t t
13730 s,@build_os@,$build_os,;t t
13731 s,@host@,$host,;t t
13732 s,@host_cpu@,$host_cpu,;t t
13733 s,@host_vendor@,$host_vendor,;t t
13734 s,@host_os@,$host_os,;t t
13735 s,@target@,$target,;t t
13736 s,@target_cpu@,$target_cpu,;t t
13737 s,@target_vendor@,$target_vendor,;t t
13738 s,@target_os@,$target_os,;t t
13740 s,@CFLAGS@,$CFLAGS,;t t
13741 s,@LDFLAGS@,$LDFLAGS,;t t
13742 s,@CPPFLAGS@,$CPPFLAGS,;t t
13743 s,@ac_ct_CC@,$ac_ct_CC,;t t
13744 s,@EXEEXT@,$EXEEXT,;t t
13745 s,@OBJEXT@,$OBJEXT,;t t
13746 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13747 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13748 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13749 s,@CYGPATH_W@,$CYGPATH_W,;t t
13750 s,@PACKAGE@,$PACKAGE,;t t
13751 s,@VERSION@,$VERSION,;t t
13752 s,@ACLOCAL@,$ACLOCAL,;t t
13753 s,@AUTOCONF@,$AUTOCONF,;t t
13754 s,@AUTOMAKE@,$AUTOMAKE,;t t
13755 s,@AUTOHEADER@,$AUTOHEADER,;t t
13756 s,@MAKEINFO@,$MAKEINFO,;t t
13757 s,@install_sh@,$install_sh,;t t
13758 s,@STRIP@,$STRIP,;t t
13759 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13760 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13761 s,@mkdir_p@,$mkdir_p,;t t
13763 s,@SET_MAKE@,$SET_MAKE,;t t
13764 s,@am__leading_dot@,$am__leading_dot,;t t
13765 s,@AMTAR@,$AMTAR,;t t
13766 s,@am__tar@,$am__tar,;t t
13767 s,@am__untar@,$am__untar,;t t
13768 s,@DEPDIR@,$DEPDIR,;t t
13769 s,@am__include@,$am__include,;t t
13770 s,@am__quote@,$am__quote,;t t
13771 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13772 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13773 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13774 s,@CCDEPMODE@,$CCDEPMODE,;t t
13775 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13776 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
13778 s,@ac_ct_AR@,$ac_ct_AR,;t t
13779 s,@RANLIB@,$RANLIB,;t t
13780 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13781 s,@LN_S@,$LN_S,;t t
13782 s,@LIBTOOL@,$LIBTOOL,;t t
13783 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
13784 s,@NO_WERROR@,$NO_WERROR,;t t
13785 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13786 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13787 s,@MAINT@,$MAINT,;t t
13788 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
13789 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
13790 s,@host_noncanonical@,$host_noncanonical,;t t
13791 s,@target_noncanonical@,$target_noncanonical,;t t
13792 s,@bfdlibdir@,$bfdlibdir,;t t
13793 s,@bfdincludedir@,$bfdincludedir,;t t
13795 s,@EGREP@,$EGREP,;t t
13796 s,@ALLOCA@,$ALLOCA,;t t
13797 s,@USE_NLS@,$USE_NLS,;t t
13798 s,@MSGFMT@,$MSGFMT,;t t
13799 s,@GMSGFMT@,$GMSGFMT,;t t
13800 s,@XGETTEXT@,$XGETTEXT,;t t
13801 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
13802 s,@CATALOGS@,$CATALOGS,;t t
13803 s,@CATOBJEXT@,$CATOBJEXT,;t t
13804 s,@DATADIRNAME@,$DATADIRNAME,;t t
13805 s,@GMOFILES@,$GMOFILES,;t t
13806 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
13807 s,@INTLDEPS@,$INTLDEPS,;t t
13808 s,@INTLLIBS@,$INTLLIBS,;t t
13809 s,@INTLOBJS@,$INTLOBJS,;t t
13810 s,@POFILES@,$POFILES,;t t
13811 s,@POSUB@,$POSUB,;t t
13812 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
13813 s,@GT_NO@,$GT_NO,;t t
13814 s,@GT_YES@,$GT_YES,;t t
13815 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
13817 s,@HDEFINES@,$HDEFINES,;t t
13818 s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
13819 s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
13820 s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
13821 s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
13822 s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
13823 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13824 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
13825 s,@COREFILE@,$COREFILE,;t t
13826 s,@COREFLAG@,$COREFLAG,;t t
13827 s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
13828 s,@WIN32LIBADD@,$WIN32LIBADD,;t t
13829 s,@TDEFINES@,$TDEFINES,;t t
13830 s,@wordsize@,$wordsize,;t t
13831 s,@bfd_libs@,$bfd_libs,;t t
13832 s,@all_backends@,$all_backends,;t t
13833 s,@bfd_backends@,$bfd_backends,;t t
13834 s,@bfd_machines@,$bfd_machines,;t t
13835 s,@bfd_default_target_size@,$bfd_default_target_size,;t t
13836 s,@bfd_file_ptr@,$bfd_file_ptr,;t t
13837 s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
13838 s,@tdefaults@,$tdefaults,;t t
13839 s,@LIBOBJS@,$LIBOBJS,;t t
13840 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13845 cat >>$CONFIG_STATUS <<\_ACEOF
13846 # Split the substitutions into bite-sized pieces for seds with
13847 # small command number limits, like on Digital OSF/1 and HP-UX.
13848 ac_max_sed_lines=48
13849 ac_sed_frag=1 # Number of current file.
13850 ac_beg=1 # First line for current file.
13851 ac_end=$ac_max_sed_lines # Line after last line for current file.
13854 while $ac_more_lines; do
13855 if test $ac_beg -gt 1; then
13856 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13858 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13860 if test ! -s $tmp/subs.frag; then
13861 ac_more_lines=false
13863 # The purpose of the label and of the branching condition is to
13864 # speed up the sed processing (if there are no `@' at all, there
13865 # is no need to browse any of the substitutions).
13866 # These are the two extra sed commands mentioned above.
13868 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13869 if test -z "$ac_sed_cmds"; then
13870 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13872 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13874 ac_sed_frag=`expr $ac_sed_frag + 1`
13876 ac_end=`expr $ac_end + $ac_max_sed_lines`
13879 if test -z "$ac_sed_cmds"; then
13882 fi # test -n "$CONFIG_FILES"
13885 cat >>$CONFIG_STATUS <<\_ACEOF
13886 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13887 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13889 - | *:- | *:-:* ) # input from stdin
13891 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13892 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13893 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13894 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13895 * ) ac_file_in=$ac_file.in ;;
13898 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13899 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13900 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13901 X"$ac_file" : 'X\(//\)[^/]' \| \
13902 X"$ac_file" : 'X\(//\)$' \| \
13903 X"$ac_file" : 'X\(/\)' \| \
13904 . : '\(.\)' 2>/dev/null ||
13906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13907 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13908 /^X\(\/\/\)$/{ s//\1/; q; }
13909 /^X\(\/\).*/{ s//\1/; q; }
13911 { if $as_mkdir_p; then
13916 while test ! -d "$as_dir"; do
13917 as_dirs="$as_dir $as_dirs"
13918 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13919 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13920 X"$as_dir" : 'X\(//\)[^/]' \| \
13921 X"$as_dir" : 'X\(//\)$' \| \
13922 X"$as_dir" : 'X\(/\)' \| \
13923 . : '\(.\)' 2>/dev/null ||
13925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13926 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13927 /^X\(\/\/\)$/{ s//\1/; q; }
13928 /^X\(\/\).*/{ s//\1/; q; }
13931 test ! -n "$as_dirs" || mkdir $as_dirs
13932 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13933 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13934 { (exit 1); exit 1; }; }; }
13938 if test "$ac_dir" != .; then
13939 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13940 # A "../" for each directory in $ac_dir_suffix.
13941 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13943 ac_dir_suffix= ac_top_builddir=
13947 .) # No --srcdir option. We are building in place.
13949 if test -z "$ac_top_builddir"; then
13952 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13954 [\\/]* | ?:[\\/]* ) # Absolute path.
13955 ac_srcdir=$srcdir$ac_dir_suffix;
13956 ac_top_srcdir=$srcdir ;;
13957 *) # Relative path.
13958 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13959 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13962 # Do not use `cd foo && pwd` to compute absolute paths, because
13963 # the directories may not exist.
13965 .) ac_abs_builddir="$ac_dir";;
13968 .) ac_abs_builddir=`pwd`;;
13969 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13970 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13973 case $ac_abs_builddir in
13974 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13976 case ${ac_top_builddir}. in
13977 .) ac_abs_top_builddir=$ac_abs_builddir;;
13978 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13979 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13982 case $ac_abs_builddir in
13983 .) ac_abs_srcdir=$ac_srcdir;;
13986 .) ac_abs_srcdir=$ac_abs_builddir;;
13987 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13988 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13991 case $ac_abs_builddir in
13992 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13994 case $ac_top_srcdir in
13995 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13996 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13997 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14003 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14004 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14007 # Let's still pretend it is `configure' which instantiates (i.e., don't
14008 # use $as_me), people would be surprised to read:
14009 # /* config.h. Generated by config.status. */
14010 if test x"$ac_file" = x-; then
14013 configure_input="$ac_file. "
14015 configure_input=$configure_input"Generated from `echo $ac_file_in |
14016 sed 's,.*/,,'` by configure."
14018 # First look for the input files in the build tree, otherwise in the
14020 ac_file_inputs=`IFS=:
14021 for f in $ac_file_in; do
14023 -) echo $tmp/stdin ;;
14025 # Absolute (can't be DOS-style, as IFS=:)
14026 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14027 echo "$as_me: error: cannot find input file: $f" >&2;}
14028 { (exit 1); exit 1; }; }
14031 if test -f "$f"; then
14034 elif test -f "$srcdir/$f"; then
14039 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14040 echo "$as_me: error: cannot find input file: $f" >&2;}
14041 { (exit 1); exit 1; }; }
14044 done` || { (exit 1); exit 1; }
14046 if test x"$ac_file" != x-; then
14047 { echo "$as_me:$LINENO: creating $ac_file" >&5
14048 echo "$as_me: creating $ac_file" >&6;}
14052 cat >>$CONFIG_STATUS <<_ACEOF
14056 cat >>$CONFIG_STATUS <<\_ACEOF
14058 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14059 s,@configure_input@,$configure_input,;t t
14060 s,@srcdir@,$ac_srcdir,;t t
14061 s,@abs_srcdir@,$ac_abs_srcdir,;t t
14062 s,@top_srcdir@,$ac_top_srcdir,;t t
14063 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14064 s,@builddir@,$ac_builddir,;t t
14065 s,@abs_builddir@,$ac_abs_builddir,;t t
14066 s,@top_builddir@,$ac_top_builddir,;t t
14067 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14068 s,@INSTALL@,$ac_INSTALL,;t t
14069 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14071 if test x"$ac_file" != x-; then
14072 mv $tmp/out $ac_file
14080 cat >>$CONFIG_STATUS <<\_ACEOF
14083 # CONFIG_HEADER section.
14086 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14087 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14089 # ac_d sets the value in "#define NAME VALUE" lines.
14090 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14091 ac_dB='[ ].*$,\1#\2'
14094 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14095 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14096 ac_uB='$,\1#\2define\3'
14100 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14101 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14103 - | *:- | *:-:* ) # input from stdin
14105 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14106 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14107 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14108 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14109 * ) ac_file_in=$ac_file.in ;;
14112 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14113 echo "$as_me: creating $ac_file" >&6;}
14115 # First look for the input files in the build tree, otherwise in the
14117 ac_file_inputs=`IFS=:
14118 for f in $ac_file_in; do
14120 -) echo $tmp/stdin ;;
14122 # Absolute (can't be DOS-style, as IFS=:)
14123 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14124 echo "$as_me: error: cannot find input file: $f" >&2;}
14125 { (exit 1); exit 1; }; }
14126 # Do quote $f, to prevent DOS paths from being IFS'd.
14129 if test -f "$f"; then
14132 elif test -f "$srcdir/$f"; then
14137 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14138 echo "$as_me: error: cannot find input file: $f" >&2;}
14139 { (exit 1); exit 1; }; }
14142 done` || { (exit 1); exit 1; }
14143 # Remove the trailing spaces.
14144 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14148 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14149 # `conftest.undefs', that substitutes the proper values into
14150 # config.h.in to produce config.h. The first handles `#define'
14151 # templates, and the second `#undef' templates.
14152 # And first: Protect against being on the right side of a sed subst in
14153 # config.status. Protect against being in an unquoted here document
14154 # in config.status.
14155 rm -f conftest.defines conftest.undefs
14156 # Using a here document instead of a string reduces the quoting nightmare.
14157 # Putting comments in sed scripts is not portable.
14159 # `end' is used to avoid that the second main sed command (meant for
14160 # 0-ary CPP macros) applies to n-ary macro definitions.
14161 # See the Autoconf documentation for `clear'.
14162 cat >confdef2sed.sed <<\_ACEOF
14167 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14169 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14172 # If some macros were called several times there might be several times
14173 # the same #defines, which is useless. Nevertheless, we may not want to
14174 # sort them, since we want the *last* AC-DEFINE to be honored.
14175 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14176 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14177 rm -f confdef2sed.sed
14179 # This sed command replaces #undef with comments. This is necessary, for
14180 # example, in the case of _POSIX_SOURCE, which is predefined and required
14181 # on some systems where configure will not decide to define it.
14182 cat >>conftest.undefs <<\_ACEOF
14183 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14186 # Break up conftest.defines because some shells have a limit on the size
14187 # of here documents, and old seds have small limits too (100 cmds).
14188 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14189 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14190 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14191 echo ' :' >>$CONFIG_STATUS
14192 rm -f conftest.tail
14193 while grep . conftest.defines >/dev/null
14195 # Write a limited-size here document to $tmp/defines.sed.
14196 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14197 # Speed up: don't consider the non `#define' lines.
14198 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14199 # Work around the forget-to-reset-the-flag bug.
14200 echo 't clr' >>$CONFIG_STATUS
14201 echo ': clr' >>$CONFIG_STATUS
14202 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14204 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14206 mv $tmp/out $tmp/in
14208 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14209 rm -f conftest.defines
14210 mv conftest.tail conftest.defines
14212 rm -f conftest.defines
14213 echo ' fi # grep' >>$CONFIG_STATUS
14214 echo >>$CONFIG_STATUS
14216 # Break up conftest.undefs because some shells have a limit on the size
14217 # of here documents, and old seds have small limits too (100 cmds).
14218 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14219 rm -f conftest.tail
14220 while grep . conftest.undefs >/dev/null
14222 # Write a limited-size here document to $tmp/undefs.sed.
14223 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14224 # Speed up: don't consider the non `#undef'
14225 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14226 # Work around the forget-to-reset-the-flag bug.
14227 echo 't clr' >>$CONFIG_STATUS
14228 echo ': clr' >>$CONFIG_STATUS
14229 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14231 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14233 mv $tmp/out $tmp/in
14235 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14236 rm -f conftest.undefs
14237 mv conftest.tail conftest.undefs
14239 rm -f conftest.undefs
14241 cat >>$CONFIG_STATUS <<\_ACEOF
14242 # Let's still pretend it is `configure' which instantiates (i.e., don't
14243 # use $as_me), people would be surprised to read:
14244 # /* config.h. Generated by config.status. */
14245 if test x"$ac_file" = x-; then
14246 echo "/* Generated by configure. */" >$tmp/config.h
14248 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14250 cat $tmp/in >>$tmp/config.h
14252 if test x"$ac_file" != x-; then
14253 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14254 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14255 echo "$as_me: $ac_file is unchanged" >&6;}
14257 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14258 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14259 X"$ac_file" : 'X\(//\)[^/]' \| \
14260 X"$ac_file" : 'X\(//\)$' \| \
14261 X"$ac_file" : 'X\(/\)' \| \
14262 . : '\(.\)' 2>/dev/null ||
14264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14265 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14266 /^X\(\/\/\)$/{ s//\1/; q; }
14267 /^X\(\/\).*/{ s//\1/; q; }
14269 { if $as_mkdir_p; then
14274 while test ! -d "$as_dir"; do
14275 as_dirs="$as_dir $as_dirs"
14276 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14277 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14278 X"$as_dir" : 'X\(//\)[^/]' \| \
14279 X"$as_dir" : 'X\(//\)$' \| \
14280 X"$as_dir" : 'X\(/\)' \| \
14281 . : '\(.\)' 2>/dev/null ||
14283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14284 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14285 /^X\(\/\/\)$/{ s//\1/; q; }
14286 /^X\(\/\).*/{ s//\1/; q; }
14289 test ! -n "$as_dirs" || mkdir $as_dirs
14290 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14291 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14292 { (exit 1); exit 1; }; }; }
14295 mv $tmp/config.h $ac_file
14299 rm -f $tmp/config.h
14301 # Compute $ac_file's index in $config_headers.
14303 for _am_header in $config_headers :; do
14304 case $_am_header in
14305 $ac_file | $ac_file:* )
14308 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14311 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
14312 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14313 X$ac_file : 'X\(//\)[^/]' \| \
14314 X$ac_file : 'X\(//\)$' \| \
14315 X$ac_file : 'X\(/\)' \| \
14316 . : '\(.\)' 2>/dev/null ||
14318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14319 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14320 /^X\(\/\/\)$/{ s//\1/; q; }
14321 /^X\(\/\).*/{ s//\1/; q; }
14322 s/.*/./; q'`/stamp-h$_am_stamp_count
14325 cat >>$CONFIG_STATUS <<\_ACEOF
14328 # CONFIG_COMMANDS section.
14330 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14331 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14332 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14333 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14334 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14335 X"$ac_dest" : 'X\(//\)[^/]' \| \
14336 X"$ac_dest" : 'X\(//\)$' \| \
14337 X"$ac_dest" : 'X\(/\)' \| \
14338 . : '\(.\)' 2>/dev/null ||
14340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14341 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14342 /^X\(\/\/\)$/{ s//\1/; q; }
14343 /^X\(\/\).*/{ s//\1/; q; }
14345 { if $as_mkdir_p; then
14350 while test ! -d "$as_dir"; do
14351 as_dirs="$as_dir $as_dirs"
14352 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14353 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14354 X"$as_dir" : 'X\(//\)[^/]' \| \
14355 X"$as_dir" : 'X\(//\)$' \| \
14356 X"$as_dir" : 'X\(/\)' \| \
14357 . : '\(.\)' 2>/dev/null ||
14359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14360 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14361 /^X\(\/\/\)$/{ s//\1/; q; }
14362 /^X\(\/\).*/{ s//\1/; q; }
14365 test ! -n "$as_dirs" || mkdir $as_dirs
14366 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14367 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14368 { (exit 1); exit 1; }; }; }
14372 if test "$ac_dir" != .; then
14373 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14374 # A "../" for each directory in $ac_dir_suffix.
14375 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14377 ac_dir_suffix= ac_top_builddir=
14381 .) # No --srcdir option. We are building in place.
14383 if test -z "$ac_top_builddir"; then
14386 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14388 [\\/]* | ?:[\\/]* ) # Absolute path.
14389 ac_srcdir=$srcdir$ac_dir_suffix;
14390 ac_top_srcdir=$srcdir ;;
14391 *) # Relative path.
14392 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14393 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14396 # Do not use `cd foo && pwd` to compute absolute paths, because
14397 # the directories may not exist.
14399 .) ac_abs_builddir="$ac_dir";;
14402 .) ac_abs_builddir=`pwd`;;
14403 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14404 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14407 case $ac_abs_builddir in
14408 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14410 case ${ac_top_builddir}. in
14411 .) ac_abs_top_builddir=$ac_abs_builddir;;
14412 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14413 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14416 case $ac_abs_builddir in
14417 .) ac_abs_srcdir=$ac_srcdir;;
14420 .) ac_abs_srcdir=$ac_abs_builddir;;
14421 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14422 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14425 case $ac_abs_builddir in
14426 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14428 case $ac_top_srcdir in
14429 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14430 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14431 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14436 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14437 echo "$as_me: executing $ac_dest commands" >&6;}
14439 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14440 # Strip MF so we end up with the name of the file.
14441 mf=`echo "$mf" | sed -e 's/:.*$//'`
14442 # Check whether this is an Automake generated Makefile or not.
14443 # We used to match only the files named `Makefile.in', but
14444 # some people rename them; so instead we look at the file content.
14445 # Grep'ing the first line is not enough: some people post-process
14446 # each Makefile.in and add a new line on top of each file to say so.
14447 # So let's grep whole file.
14448 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14449 dirpart=`(dirname "$mf") 2>/dev/null ||
14450 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14451 X"$mf" : 'X\(//\)[^/]' \| \
14452 X"$mf" : 'X\(//\)$' \| \
14453 X"$mf" : 'X\(/\)' \| \
14454 . : '\(.\)' 2>/dev/null ||
14456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14457 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14458 /^X\(\/\/\)$/{ s//\1/; q; }
14459 /^X\(\/\).*/{ s//\1/; q; }
14464 # Extract the definition of DEPDIR, am__include, and am__quote
14465 # from the Makefile without running `make'.
14466 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14467 test -z "$DEPDIR" && continue
14468 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14469 test -z "am__include" && continue
14470 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14471 # When using ansi2knr, U may be empty or an underscore; expand it
14472 U=`sed -n 's/^U = //p' < "$mf"`
14473 # Find all dependency output files, they are included files with
14474 # $(DEPDIR) in their names. We invoke sed twice because it is the
14475 # simplest approach to changing $(DEPDIR) to its actual value in the
14477 for file in `sed -n "
14478 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14479 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14480 # Make sure the directory exists.
14481 test -f "$dirpart/$file" && continue
14482 fdir=`(dirname "$file") 2>/dev/null ||
14483 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14484 X"$file" : 'X\(//\)[^/]' \| \
14485 X"$file" : 'X\(//\)$' \| \
14486 X"$file" : 'X\(/\)' \| \
14487 . : '\(.\)' 2>/dev/null ||
14489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14490 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14491 /^X\(\/\/\)$/{ s//\1/; q; }
14492 /^X\(\/\).*/{ s//\1/; q; }
14494 { if $as_mkdir_p; then
14495 mkdir -p $dirpart/$fdir
14497 as_dir=$dirpart/$fdir
14499 while test ! -d "$as_dir"; do
14500 as_dirs="$as_dir $as_dirs"
14501 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14502 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14503 X"$as_dir" : 'X\(//\)[^/]' \| \
14504 X"$as_dir" : 'X\(//\)$' \| \
14505 X"$as_dir" : 'X\(/\)' \| \
14506 . : '\(.\)' 2>/dev/null ||
14508 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14509 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14510 /^X\(\/\/\)$/{ s//\1/; q; }
14511 /^X\(\/\).*/{ s//\1/; q; }
14514 test ! -n "$as_dirs" || mkdir $as_dirs
14515 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14516 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14517 { (exit 1); exit 1; }; }; }
14519 # echo "creating $dirpart/$file"
14520 echo '# dummy' > "$dirpart/$file"
14524 default ) sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile ;;
14529 cat >>$CONFIG_STATUS <<\_ACEOF
14531 { (exit 0); exit 0; }
14533 chmod +x $CONFIG_STATUS
14534 ac_clean_files=$ac_clean_files_save
14537 # configure is writing to config.log, and then calls config.status.
14538 # config.status does its own redirection, appending to config.log.
14539 # Unfortunately, on DOS this fails, as config.log is still kept open
14540 # by configure, so config.status won't be able to write to it; its
14541 # output is simply discarded. So we exec the FD to /dev/null,
14542 # effectively closing config.log, so it can be properly (re)opened and
14543 # appended to by config.status. When coming back to configure, we
14544 # need to make the FD available again.
14545 if test "$no_create" != yes; then
14547 ac_config_status_args=
14548 test "$silent" = yes &&
14549 ac_config_status_args="$ac_config_status_args --quiet"
14551 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14553 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14554 # would make configure fail if this is the last instruction.
14555 $ac_cs_success || { (exit 1); exit 1; }