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"
2002 || test ! -s conftest.err'
2003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007 (exit $ac_status); }; } &&
2008 { ac_try='test -s conftest.$ac_objext'
2009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2013 (exit $ac_status); }; }; then
2016 echo "$as_me: failed program was:" >&5
2017 sed 's/^/| /' conftest.$ac_ext >&5
2021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2022 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2025 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2026 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2027 GCC=`test $ac_compiler_gnu = yes && echo yes`
2028 ac_test_CFLAGS=${CFLAGS+set}
2029 ac_save_CFLAGS=$CFLAGS
2031 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2032 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2033 if test "${ac_cv_prog_cc_g+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
2036 cat >conftest.$ac_ext <<_ACEOF
2039 cat confdefs.h >>conftest.$ac_ext
2040 cat >>conftest.$ac_ext <<_ACEOF
2041 /* end confdefs.h. */
2051 rm -f conftest.$ac_objext
2052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2053 (eval $ac_compile) 2>conftest.er1
2055 grep -v '^ *+' conftest.er1 >conftest.err
2057 cat conftest.err >&5
2058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059 (exit $ac_status); } &&
2060 { ac_try='test -z "$ac_c_werror_flag"
2061 || test ! -s conftest.err'
2062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066 (exit $ac_status); }; } &&
2067 { ac_try='test -s conftest.$ac_objext'
2068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072 (exit $ac_status); }; }; then
2075 echo "$as_me: failed program was:" >&5
2076 sed 's/^/| /' conftest.$ac_ext >&5
2080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2082 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2083 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2084 if test "$ac_test_CFLAGS" = set; then
2085 CFLAGS=$ac_save_CFLAGS
2086 elif test $ac_cv_prog_cc_g = yes; then
2087 if test "$GCC" = yes; then
2093 if test "$GCC" = yes; then
2099 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2100 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2101 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2102 echo $ECHO_N "(cached) $ECHO_C" >&6
2104 ac_cv_prog_cc_stdc=no
2106 cat >conftest.$ac_ext <<_ACEOF
2109 cat confdefs.h >>conftest.$ac_ext
2110 cat >>conftest.$ac_ext <<_ACEOF
2111 /* end confdefs.h. */
2114 #include <sys/types.h>
2115 #include <sys/stat.h>
2116 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2117 struct buf { int x; };
2118 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2119 static char *e (p, i)
2125 static char *f (char * (*g) (char **, int), char **p, ...)
2130 s = g (p, va_arg (v,int));
2135 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2136 function prototypes and stuff, but not '\xHH' hex character constants.
2137 These don't provoke an error unfortunately, instead are silently treated
2138 as 'x'. The following induces an error, until -std1 is added to get
2139 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2140 array size at least. It's necessary to write '\x00'==0 to get something
2141 that's true only with -std1. */
2142 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2144 int test (int i, double x);
2145 struct s1 {int (*f) (int a);};
2146 struct s2 {int (*f) (double a);};
2147 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2153 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2158 # Don't try gcc -ansi; that turns off useful extensions and
2159 # breaks some systems' header files.
2160 # AIX -qlanglvl=ansi
2161 # Ultrix and OSF/1 -std1
2162 # HP-UX 10.20 and later -Ae
2163 # HP-UX older versions -Aa -D_HPUX_SOURCE
2164 # SVR4 -Xc -D__EXTENSIONS__
2165 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2167 CC="$ac_save_CC $ac_arg"
2168 rm -f conftest.$ac_objext
2169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2170 (eval $ac_compile) 2>conftest.er1
2172 grep -v '^ *+' conftest.er1 >conftest.err
2174 cat conftest.err >&5
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); } &&
2177 { ac_try='test -z "$ac_c_werror_flag"
2178 || test ! -s conftest.err'
2179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }; } &&
2184 { ac_try='test -s conftest.$ac_objext'
2185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }; }; then
2190 ac_cv_prog_cc_stdc=$ac_arg
2193 echo "$as_me: failed program was:" >&5
2194 sed 's/^/| /' conftest.$ac_ext >&5
2197 rm -f conftest.err conftest.$ac_objext
2199 rm -f conftest.$ac_ext conftest.$ac_objext
2204 case "x$ac_cv_prog_cc_stdc" in
2206 echo "$as_me:$LINENO: result: none needed" >&5
2207 echo "${ECHO_T}none needed" >&6 ;;
2209 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2210 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2211 CC="$CC $ac_cv_prog_cc_stdc" ;;
2214 # Some people use a C++ compiler to compile C. Since we use `exit',
2215 # in C++ we need to declare it. In case someone uses the same compiler
2216 # for both compiling C and C++ we need to have the C++ compiler decide
2217 # the declaration of exit, since it's the most demanding environment.
2218 cat >conftest.$ac_ext <<_ACEOF
2223 rm -f conftest.$ac_objext
2224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225 (eval $ac_compile) 2>conftest.er1
2227 grep -v '^ *+' conftest.er1 >conftest.err
2229 cat conftest.err >&5
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); } &&
2232 { ac_try='test -z "$ac_c_werror_flag"
2233 || test ! -s conftest.err'
2234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }; } &&
2239 { ac_try='test -s conftest.$ac_objext'
2240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; }; then
2245 for ac_declaration in \
2247 'extern "C" void std::exit (int) throw (); using std::exit;' \
2248 'extern "C" void std::exit (int); using std::exit;' \
2249 'extern "C" void exit (int) throw ();' \
2250 'extern "C" void exit (int);' \
2253 cat >conftest.$ac_ext <<_ACEOF
2256 cat confdefs.h >>conftest.$ac_ext
2257 cat >>conftest.$ac_ext <<_ACEOF
2258 /* end confdefs.h. */
2269 rm -f conftest.$ac_objext
2270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2271 (eval $ac_compile) 2>conftest.er1
2273 grep -v '^ *+' conftest.er1 >conftest.err
2275 cat conftest.err >&5
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); } &&
2278 { ac_try='test -z "$ac_c_werror_flag"
2279 || test ! -s conftest.err'
2280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); }; } &&
2285 { ac_try='test -s conftest.$ac_objext'
2286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); }; }; then
2293 echo "$as_me: failed program was:" >&5
2294 sed 's/^/| /' conftest.$ac_ext >&5
2298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2299 cat >conftest.$ac_ext <<_ACEOF
2302 cat confdefs.h >>conftest.$ac_ext
2303 cat >>conftest.$ac_ext <<_ACEOF
2304 /* end confdefs.h. */
2314 rm -f conftest.$ac_objext
2315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2316 (eval $ac_compile) 2>conftest.er1
2318 grep -v '^ *+' conftest.er1 >conftest.err
2320 cat conftest.err >&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); } &&
2323 { ac_try='test -z "$ac_c_werror_flag"
2324 || test ! -s conftest.err'
2325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); }; } &&
2330 { ac_try='test -s conftest.$ac_objext'
2331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); }; }; then
2338 echo "$as_me: failed program was:" >&5
2339 sed 's/^/| /' conftest.$ac_ext >&5
2342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2345 if test -n "$ac_declaration"; then
2346 echo '#ifdef __cplusplus' >>confdefs.h
2347 echo $ac_declaration >>confdefs.h
2348 echo '#endif' >>confdefs.h
2352 echo "$as_me: failed program was:" >&5
2353 sed 's/^/| /' conftest.$ac_ext >&5
2356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2358 ac_cpp='$CPP $CPPFLAGS'
2359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2364 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2365 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2366 if test "${ac_cv_search_strerror+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 ac_func_search_save_LIBS=$LIBS
2370 ac_cv_search_strerror=no
2371 cat >conftest.$ac_ext <<_ACEOF
2374 cat confdefs.h >>conftest.$ac_ext
2375 cat >>conftest.$ac_ext <<_ACEOF
2376 /* end confdefs.h. */
2378 /* Override any gcc2 internal prototype to avoid an error. */
2382 /* We use char because int might match the return type of a gcc2
2383 builtin and then its argument prototype would still apply. */
2393 rm -f conftest.$ac_objext conftest$ac_exeext
2394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2395 (eval $ac_link) 2>conftest.er1
2397 grep -v '^ *+' conftest.er1 >conftest.err
2399 cat conftest.err >&5
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); } &&
2402 { ac_try='test -z "$ac_c_werror_flag"
2403 || test ! -s conftest.err'
2404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; } &&
2409 { ac_try='test -s conftest$ac_exeext'
2410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; }; then
2415 ac_cv_search_strerror="none required"
2417 echo "$as_me: failed program was:" >&5
2418 sed 's/^/| /' conftest.$ac_ext >&5
2421 rm -f conftest.err conftest.$ac_objext \
2422 conftest$ac_exeext conftest.$ac_ext
2423 if test "$ac_cv_search_strerror" = no; then
2424 for ac_lib in cposix; do
2425 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2426 cat >conftest.$ac_ext <<_ACEOF
2429 cat confdefs.h >>conftest.$ac_ext
2430 cat >>conftest.$ac_ext <<_ACEOF
2431 /* end confdefs.h. */
2433 /* Override any gcc2 internal prototype to avoid an error. */
2437 /* We use char because int might match the return type of a gcc2
2438 builtin and then its argument prototype would still apply. */
2448 rm -f conftest.$ac_objext conftest$ac_exeext
2449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2450 (eval $ac_link) 2>conftest.er1
2452 grep -v '^ *+' conftest.er1 >conftest.err
2454 cat conftest.err >&5
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); } &&
2457 { ac_try='test -z "$ac_c_werror_flag"
2458 || test ! -s conftest.err'
2459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); }; } &&
2464 { ac_try='test -s conftest$ac_exeext'
2465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; }; then
2470 ac_cv_search_strerror="-l$ac_lib"
2473 echo "$as_me: failed program was:" >&5
2474 sed 's/^/| /' conftest.$ac_ext >&5
2477 rm -f conftest.err conftest.$ac_objext \
2478 conftest$ac_exeext conftest.$ac_ext
2481 LIBS=$ac_func_search_save_LIBS
2483 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2484 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2485 if test "$ac_cv_search_strerror" != no; then
2486 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2491 am__api_version="1.9"
2492 # Find a good install program. We prefer a C program (faster),
2493 # so one script is as good as another. But avoid the broken or
2494 # incompatible versions:
2495 # SysV /etc/install, /usr/sbin/install
2496 # SunOS /usr/etc/install
2497 # IRIX /sbin/install
2499 # AmigaOS /C/install, which installs bootblocks on floppy discs
2500 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2501 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2502 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2503 # OS/2's system install, which has a completely different semantic
2504 # ./install, which can be erroneously created by make from ./install.sh.
2505 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2506 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2507 if test -z "$INSTALL"; then
2508 if test "${ac_cv_path_install+set}" = set; then
2509 echo $ECHO_N "(cached) $ECHO_C" >&6
2511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515 test -z "$as_dir" && as_dir=.
2516 # Account for people who put trailing slashes in PATH elements.
2518 ./ | .// | /cC/* | \
2519 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2520 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2523 # OSF1 and SCO ODT 3.0 have their own names for install.
2524 # Don't use installbsd from OSF since it installs stuff as root
2526 for ac_prog in ginstall scoinst install; do
2527 for ac_exec_ext in '' $ac_executable_extensions; do
2528 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2529 if test $ac_prog = install &&
2530 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2531 # AIX install. It has an incompatible calling convention.
2533 elif test $ac_prog = install &&
2534 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2535 # program-specific install script used by HP pwplus--don't use.
2538 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2550 if test "${ac_cv_path_install+set}" = set; then
2551 INSTALL=$ac_cv_path_install
2553 # As a last resort, use the slow shell script. We don't cache a
2554 # path for INSTALL within a source directory, because that will
2555 # break other packages using the cache if that directory is
2556 # removed, or if the path is relative.
2557 INSTALL=$ac_install_sh
2560 echo "$as_me:$LINENO: result: $INSTALL" >&5
2561 echo "${ECHO_T}$INSTALL" >&6
2563 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2564 # It thinks the first close brace ends the variable substitution.
2565 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2567 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2569 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2571 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2572 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2575 echo timestamp > conftest.file
2576 # Do `set' in a subshell so we don't clobber the current shell's
2577 # arguments. Must try -L first in case configure is actually a
2578 # symlink; some systems play weird games with the mod time of symlinks
2579 # (eg FreeBSD returns the mod time of the symlink's containing
2582 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2583 if test "$*" = "X"; then
2585 set X `ls -t $srcdir/configure conftest.file`
2588 if test "$*" != "X $srcdir/configure conftest.file" \
2589 && test "$*" != "X conftest.file $srcdir/configure"; then
2591 # If neither matched, then we have a broken ls. This can happen
2592 # if, for instance, CONFIG_SHELL is bash and it inherits a
2593 # broken ls alias from the environment. This has actually
2594 # happened. Such a system could not be considered "sane".
2595 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2596 alias in your environment" >&5
2597 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2598 alias in your environment" >&2;}
2599 { (exit 1); exit 1; }; }
2602 test "$2" = conftest.file
2608 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2609 Check your system clock" >&5
2610 echo "$as_me: error: newly created file is older than distributed files!
2611 Check your system clock" >&2;}
2612 { (exit 1); exit 1; }; }
2614 echo "$as_me:$LINENO: result: yes" >&5
2615 echo "${ECHO_T}yes" >&6
2616 test "$program_prefix" != NONE &&
2617 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2618 # Use a double $ so make ignores it.
2619 test "$program_suffix" != NONE &&
2620 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2621 # Double any \ or $. echo might interpret backslashes.
2622 # By default was `s,x,x', remove it if useless.
2623 cat <<\_ACEOF >conftest.sed
2624 s/[\\$]/&&/g;s/;s,x,x,$//
2626 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2629 # expand $ac_aux_dir to an absolute path
2630 am_aux_dir=`cd $ac_aux_dir && pwd`
2632 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2633 # Use eval to expand $SHELL
2634 if eval "$MISSING --run true"; then
2635 am_missing_run="$MISSING --run "
2638 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2639 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2642 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2643 # We used to keeping the `.' as first argument, in order to
2644 # allow $(mkdir_p) to be used without argument. As in
2645 # $(mkdir_p) $(somedir)
2646 # where $(somedir) is conditionally defined. However this is wrong
2648 # 1. if the package is installed by a user who cannot write `.'
2649 # make install will fail,
2650 # 2. the above comment should most certainly read
2651 # $(mkdir_p) $(DESTDIR)$(somedir)
2652 # so it does not work when $(somedir) is undefined and
2653 # $(DESTDIR) is not.
2654 # To support the latter case, we have to write
2655 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2656 # so the `.' trick is pointless.
2657 mkdir_p='mkdir -p --'
2659 # On NextStep and OpenStep, the `mkdir' command does not
2660 # recognize any option. It will interpret all options as
2661 # directories to create, and then abort because `.' already
2663 for d in ./-p ./--version;
2665 test -d $d && rmdir $d
2667 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2668 if test -f "$ac_aux_dir/mkinstalldirs"; then
2669 mkdir_p='$(mkinstalldirs)'
2671 mkdir_p='$(install_sh) -d'
2675 for ac_prog in gawk mawk nawk awk
2677 # Extract the first word of "$ac_prog", so it can be a program name with args.
2678 set dummy $ac_prog; ac_word=$2
2679 echo "$as_me:$LINENO: checking for $ac_word" >&5
2680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2681 if test "${ac_cv_prog_AWK+set}" = set; then
2682 echo $ECHO_N "(cached) $ECHO_C" >&6
2684 if test -n "$AWK"; then
2685 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 test -z "$as_dir" && as_dir=.
2692 for ac_exec_ext in '' $ac_executable_extensions; do
2693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2694 ac_cv_prog_AWK="$ac_prog"
2695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2704 if test -n "$AWK"; then
2705 echo "$as_me:$LINENO: result: $AWK" >&5
2706 echo "${ECHO_T}$AWK" >&6
2708 echo "$as_me:$LINENO: result: no" >&5
2709 echo "${ECHO_T}no" >&6
2712 test -n "$AWK" && break
2715 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2716 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2717 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2718 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2719 echo $ECHO_N "(cached) $ECHO_C" >&6
2721 cat >conftest.make <<\_ACEOF
2723 @echo 'ac_maketemp="$(MAKE)"'
2725 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2726 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2727 if test -n "$ac_maketemp"; then
2728 eval ac_cv_prog_make_${ac_make}_set=yes
2730 eval ac_cv_prog_make_${ac_make}_set=no
2734 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2735 echo "$as_me:$LINENO: result: yes" >&5
2736 echo "${ECHO_T}yes" >&6
2739 echo "$as_me:$LINENO: result: no" >&5
2740 echo "${ECHO_T}no" >&6
2741 SET_MAKE="MAKE=${MAKE-make}"
2744 rm -rf .tst 2>/dev/null
2745 mkdir .tst 2>/dev/null
2746 if test -d .tst; then
2751 rmdir .tst 2>/dev/null
2753 DEPDIR="${am__leading_dot}deps"
2755 ac_config_commands="$ac_config_commands depfiles"
2758 am_make=${MAKE-make}
2759 cat > confinc << 'END'
2764 # If we don't find an include directive, just comment out the code.
2765 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2766 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2770 # First try GNU make style include.
2771 echo "include confinc" > confmf
2772 # We grep out `Entering directory' and `Leaving directory'
2773 # messages which can occur if `w' ends up in MAKEFLAGS.
2774 # In particular we don't look at `^make:' because GNU make might
2775 # be invoked under some other name (usually "gmake"), in which
2776 # case it prints its new name instead of `make'.
2777 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2782 # Now try BSD make style include.
2783 if test "$am__include" = "#"; then
2784 echo '.include "confinc"' > confmf
2785 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2786 am__include=.include
2793 echo "$as_me:$LINENO: result: $_am_result" >&5
2794 echo "${ECHO_T}$_am_result" >&6
2795 rm -f confinc confmf
2797 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2798 if test "${enable_dependency_tracking+set}" = set; then
2799 enableval="$enable_dependency_tracking"
2802 if test "x$enable_dependency_tracking" != xno; then
2803 am_depcomp="$ac_aux_dir/depcomp"
2808 if test "x$enable_dependency_tracking" != xno; then
2818 # test to see if srcdir already configured
2819 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2820 test -f $srcdir/config.status; then
2821 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2822 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2823 { (exit 1); exit 1; }; }
2826 # test whether we have cygpath
2827 if test -z "$CYGPATH_W"; then
2828 if (cygpath --version) >/dev/null 2>/dev/null; then
2829 CYGPATH_W='cygpath -w'
2836 # Define the identity of the package.
2841 cat >>confdefs.h <<_ACEOF
2842 #define PACKAGE "$PACKAGE"
2846 cat >>confdefs.h <<_ACEOF
2847 #define VERSION "$VERSION"
2850 # Some tools Automake needs.
2852 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2855 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2858 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2861 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2864 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2866 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2868 # Installed binaries are usually stripped using `strip' when the user
2869 # run `make install-strip'. However `strip' might not be the right
2870 # tool to use in cross-compilation environments, therefore Automake
2871 # will honor the `STRIP' environment variable to overrule this program.
2872 if test "$cross_compiling" != no; then
2873 if test -n "$ac_tool_prefix"; then
2874 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2875 set dummy ${ac_tool_prefix}strip; ac_word=$2
2876 echo "$as_me:$LINENO: checking for $ac_word" >&5
2877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2878 if test "${ac_cv_prog_STRIP+set}" = set; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2881 if test -n "$STRIP"; then
2882 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2891 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2900 STRIP=$ac_cv_prog_STRIP
2901 if test -n "$STRIP"; then
2902 echo "$as_me:$LINENO: result: $STRIP" >&5
2903 echo "${ECHO_T}$STRIP" >&6
2905 echo "$as_me:$LINENO: result: no" >&5
2906 echo "${ECHO_T}no" >&6
2910 if test -z "$ac_cv_prog_STRIP"; then
2912 # Extract the first word of "strip", so it can be a program name with args.
2913 set dummy strip; ac_word=$2
2914 echo "$as_me:$LINENO: checking for $ac_word" >&5
2915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2916 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2919 if test -n "$ac_ct_STRIP"; then
2920 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929 ac_cv_prog_ac_ct_STRIP="strip"
2930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2936 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2939 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2940 if test -n "$ac_ct_STRIP"; then
2941 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2942 echo "${ECHO_T}$ac_ct_STRIP" >&6
2944 echo "$as_me:$LINENO: result: no" >&5
2945 echo "${ECHO_T}no" >&6
2950 STRIP="$ac_cv_prog_STRIP"
2954 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2956 # We need awk for the "check" target. The system "awk" is bad on
2958 # Always define AMTAR for backward compatibility.
2960 AMTAR=${AMTAR-"${am_missing_run}tar"}
2962 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2967 depcc="$CC" am_compiler_list=
2969 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2970 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2971 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2972 echo $ECHO_N "(cached) $ECHO_C" >&6
2974 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2975 # We make a subdir and do the tests there. Otherwise we can end up
2976 # making bogus files that we don't know about and never remove. For
2977 # instance it was reported that on HP-UX the gcc test will end up
2978 # making a dummy file named `D' -- because `-MD' means `put the output
2981 # Copy depcomp to subdir because otherwise we won't find it if we're
2982 # using a relative directory.
2983 cp "$am_depcomp" conftest.dir
2985 # We will build objects and dependencies in a subdirectory because
2986 # it helps to detect inapplicable dependency modes. For instance
2987 # both Tru64's cc and ICC support -MD to output dependencies as a
2988 # side effect of compilation, but ICC will put the dependencies in
2989 # the current directory while Tru64 will put them in the object
2993 am_cv_CC_dependencies_compiler_type=none
2994 if test "$am_compiler_list" = ""; then
2995 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2997 for depmode in $am_compiler_list; do
2998 # Setup a source with many dependencies, because some compilers
2999 # like to wrap large dependency lists on column 80 (with \), and
3000 # we should not choose a depcomp mode which is confused by this.
3002 # We need to recreate these files for each test, as the compiler may
3003 # overwrite some of them when testing with obscure command lines.
3004 # This happens at least with the AIX C compiler.
3006 for i in 1 2 3 4 5 6; do
3007 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3008 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3009 # Solaris 8's {/usr,}/bin/sh.
3010 touch sub/conftst$i.h
3012 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3016 # after this tag, mechanisms are not by side-effect, so they'll
3017 # only be used when explicitly requested
3018 if test "x$enable_dependency_tracking" = xyes; then
3026 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3027 # mode. It turns out that the SunPro C++ compiler does not properly
3028 # handle `-M -o', and we need to detect this.
3029 if depmode=$depmode \
3030 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3031 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3032 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3033 >/dev/null 2>conftest.err &&
3034 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3035 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3036 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3037 # icc doesn't choke on unknown options, it will just issue warnings
3038 # or remarks (even with -Werror). So we grep stderr for any message
3039 # that says an option was ignored or not supported.
3040 # When given -MP, icc 7.0 and 7.1 complain thusly:
3041 # icc: Command line warning: ignoring option '-M'; no argument required
3042 # The diagnosis changed in icc 8.0:
3043 # icc: Command line remark: option '-MP' not supported
3044 if (grep 'ignoring option' conftest.err ||
3045 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3046 am_cv_CC_dependencies_compiler_type=$depmode
3055 am_cv_CC_dependencies_compiler_type=none
3059 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3060 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3061 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3066 test "x$enable_dependency_tracking" != xno \
3067 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3069 am__fastdepCC_FALSE='#'
3071 am__fastdepCC_TRUE='#'
3072 am__fastdepCC_FALSE=
3078 if test -n "$ac_tool_prefix"; then
3079 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3080 set dummy ${ac_tool_prefix}ar; ac_word=$2
3081 echo "$as_me:$LINENO: checking for $ac_word" >&5
3082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3083 if test "${ac_cv_prog_AR+set}" = set; then
3084 echo $ECHO_N "(cached) $ECHO_C" >&6
3086 if test -n "$AR"; then
3087 ac_cv_prog_AR="$AR" # Let the user override the test.
3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093 test -z "$as_dir" && as_dir=.
3094 for ac_exec_ext in '' $ac_executable_extensions; do
3095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3096 ac_cv_prog_AR="${ac_tool_prefix}ar"
3097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3106 if test -n "$AR"; then
3107 echo "$as_me:$LINENO: result: $AR" >&5
3108 echo "${ECHO_T}$AR" >&6
3110 echo "$as_me:$LINENO: result: no" >&5
3111 echo "${ECHO_T}no" >&6
3115 if test -z "$ac_cv_prog_AR"; then
3117 # Extract the first word of "ar", so it can be a program name with args.
3118 set dummy ar; ac_word=$2
3119 echo "$as_me:$LINENO: checking for $ac_word" >&5
3120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3121 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3122 echo $ECHO_N "(cached) $ECHO_C" >&6
3124 if test -n "$ac_ct_AR"; then
3125 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131 test -z "$as_dir" && as_dir=.
3132 for ac_exec_ext in '' $ac_executable_extensions; do
3133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3134 ac_cv_prog_ac_ct_AR="ar"
3135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3143 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3144 if test -n "$ac_ct_AR"; then
3145 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3146 echo "${ECHO_T}$ac_ct_AR" >&6
3148 echo "$as_me:$LINENO: result: no" >&5
3149 echo "${ECHO_T}no" >&6
3157 if test -n "$ac_tool_prefix"; then
3158 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3159 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3160 echo "$as_me:$LINENO: checking for $ac_word" >&5
3161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3162 if test "${ac_cv_prog_RANLIB+set}" = set; then
3163 echo $ECHO_N "(cached) $ECHO_C" >&6
3165 if test -n "$RANLIB"; then
3166 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 test -z "$as_dir" && as_dir=.
3173 for ac_exec_ext in '' $ac_executable_extensions; do
3174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3175 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3184 RANLIB=$ac_cv_prog_RANLIB
3185 if test -n "$RANLIB"; then
3186 echo "$as_me:$LINENO: result: $RANLIB" >&5
3187 echo "${ECHO_T}$RANLIB" >&6
3189 echo "$as_me:$LINENO: result: no" >&5
3190 echo "${ECHO_T}no" >&6
3194 if test -z "$ac_cv_prog_RANLIB"; then
3195 ac_ct_RANLIB=$RANLIB
3196 # Extract the first word of "ranlib", so it can be a program name with args.
3197 set dummy ranlib; ac_word=$2
3198 echo "$as_me:$LINENO: checking for $ac_word" >&5
3199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3200 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
3203 if test -n "$ac_ct_RANLIB"; then
3204 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 test -z "$as_dir" && as_dir=.
3211 for ac_exec_ext in '' $ac_executable_extensions; do
3212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3213 ac_cv_prog_ac_ct_RANLIB="ranlib"
3214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3220 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3223 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3224 if test -n "$ac_ct_RANLIB"; then
3225 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3226 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3228 echo "$as_me:$LINENO: result: no" >&5
3229 echo "${ECHO_T}no" >&6
3232 RANLIB=$ac_ct_RANLIB
3234 RANLIB="$ac_cv_prog_RANLIB"
3238 # Check whether --enable-shared or --disable-shared was given.
3239 if test "${enable_shared+set}" = set; then
3240 enableval="$enable_shared"
3241 p=${PACKAGE-default}
3243 yes) enable_shared=yes ;;
3244 no) enable_shared=no ;;
3247 # Look at the argument we got. We use all the common list separators.
3248 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3249 for pkg in $enableval; do
3250 if test "X$pkg" = "X$p"; then
3261 # Check whether --enable-static or --disable-static was given.
3262 if test "${enable_static+set}" = set; then
3263 enableval="$enable_static"
3264 p=${PACKAGE-default}
3266 yes) enable_static=yes ;;
3267 no) enable_static=no ;;
3270 # Look at the argument we got. We use all the common list separators.
3271 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3272 for pkg in $enableval; do
3273 if test "X$pkg" = "X$p"; then
3283 # Check whether --enable-fast-install or --disable-fast-install was given.
3284 if test "${enable_fast_install+set}" = set; then
3285 enableval="$enable_fast_install"
3286 p=${PACKAGE-default}
3288 yes) enable_fast_install=yes ;;
3289 no) enable_fast_install=no ;;
3291 enable_fast_install=no
3292 # Look at the argument we got. We use all the common list separators.
3293 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3294 for pkg in $enableval; do
3295 if test "X$pkg" = "X$p"; then
3296 enable_fast_install=yes
3303 enable_fast_install=yes
3306 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3307 if test "${with_gnu_ld+set}" = set; then
3308 withval="$with_gnu_ld"
3309 test "$withval" = no || with_gnu_ld=yes
3314 if test "$GCC" = yes; then
3315 # Check if gcc -print-prog-name=ld gives a path.
3316 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3317 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3320 # gcc leaves a trailing carriage return which upsets mingw
3321 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3323 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3326 # Accept absolute paths.
3327 [\\/]* | [A-Za-z]:[\\/]*)
3328 re_direlt='/[^/][^/]*/\.\./'
3329 # Canonicalize the path of ld
3330 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3331 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3332 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3334 test -z "$LD" && LD="$ac_prog"
3337 # If it fails, then pretend we aren't using GCC.
3341 # If it is relative, then search for the first ld in PATH.
3345 elif test "$with_gnu_ld" = yes; then
3346 echo "$as_me:$LINENO: checking for GNU ld" >&5
3347 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3349 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3350 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3352 if test "${lt_cv_path_LD+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3355 if test -z "$LD"; then
3356 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3357 for ac_dir in $PATH; do
3358 test -z "$ac_dir" && ac_dir=.
3359 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3360 lt_cv_path_LD="$ac_dir/$ac_prog"
3361 # Check to see if the program is GNU ld. I'd rather use --version,
3362 # but apparently some GNU ld's only accept -v.
3363 # Break only if it was the GNU/non-GNU ld that we prefer.
3364 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3365 test "$with_gnu_ld" != no && break
3367 test "$with_gnu_ld" != yes && break
3373 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3378 if test -n "$LD"; then
3379 echo "$as_me:$LINENO: result: $LD" >&5
3380 echo "${ECHO_T}$LD" >&6
3382 echo "$as_me:$LINENO: result: no" >&5
3383 echo "${ECHO_T}no" >&6
3385 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3386 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3387 { (exit 1); exit 1; }; }
3388 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3389 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3390 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3391 echo $ECHO_N "(cached) $ECHO_C" >&6
3393 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3394 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3395 lt_cv_prog_gnu_ld=yes
3397 lt_cv_prog_gnu_ld=no
3400 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3401 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3402 with_gnu_ld=$lt_cv_prog_gnu_ld
3405 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3406 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3407 if test "${lt_cv_ld_reload_flag+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 lt_cv_ld_reload_flag='-r'
3412 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3413 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3414 reload_flag=$lt_cv_ld_reload_flag
3415 test -n "$reload_flag" && reload_flag=" $reload_flag"
3417 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3418 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3419 if test "${lt_cv_path_NM+set}" = set; then
3420 echo $ECHO_N "(cached) $ECHO_C" >&6
3422 if test -n "$NM"; then
3423 # Let the user override the test.
3426 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3427 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3428 test -z "$ac_dir" && ac_dir=.
3429 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3430 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3431 # Check to see if the nm accepts a BSD-compat flag.
3432 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3433 # nm: unknown option "B" ignored
3434 # Tru64's nm complains that /dev/null is an invalid object file
3435 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3436 lt_cv_path_NM="$tmp_nm -B"
3438 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3439 lt_cv_path_NM="$tmp_nm -p"
3442 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3443 continue # so that we can try to find one that supports BSD flags
3448 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3453 echo "$as_me:$LINENO: result: $NM" >&5
3454 echo "${ECHO_T}$NM" >&6
3456 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3457 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3459 if test "$LN_S" = "ln -s"; then
3460 echo "$as_me:$LINENO: result: yes" >&5
3461 echo "${ECHO_T}yes" >&6
3463 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3464 echo "${ECHO_T}no, using $LN_S" >&6
3467 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3468 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3469 if test "${lt_cv_deplibs_check_method+set}" = set; then
3470 echo $ECHO_N "(cached) $ECHO_C" >&6
3472 lt_cv_file_magic_cmd='$MAGIC_CMD'
3473 lt_cv_file_magic_test_file=
3474 lt_cv_deplibs_check_method='unknown'
3475 # Need to set the preceding variable on all platforms that support
3476 # interlibrary dependencies.
3477 # 'none' -- dependencies not supported.
3478 # `unknown' -- same as none, but documents that we really don't know.
3479 # 'pass_all' -- all dependencies passed with no checks.
3480 # 'test_compile' -- check by making test program.
3481 # 'file_magic [regex]' -- check by looking for files in library path
3482 # which responds to the $file_magic_cmd with a given egrep regex.
3483 # If you have `file' or equivalent on your system and you're not sure
3484 # whether `pass_all' will *always* work, you probably want this one.
3488 lt_cv_deplibs_check_method=pass_all
3492 lt_cv_deplibs_check_method=pass_all
3496 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3497 lt_cv_file_magic_cmd='/usr/bin/file -L'
3498 lt_cv_file_magic_test_file=/shlib/libc.so
3501 cygwin* | mingw* |pw32*)
3502 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3503 lt_cv_file_magic_cmd='$OBJDUMP -f'
3506 darwin* | rhapsody*)
3507 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3508 lt_cv_file_magic_cmd='/usr/bin/file -L'
3510 rhapsody* | darwin1.012)
3511 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3514 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3519 freebsd* | kfreebsd*-gnu)
3520 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3523 # Not sure whether the presence of OpenBSD here was a mistake.
3524 # Let's accept both of them until this is cleared up.
3525 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3526 lt_cv_file_magic_cmd=/usr/bin/file
3527 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3531 lt_cv_deplibs_check_method=pass_all
3536 lt_cv_deplibs_check_method=pass_all
3542 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3543 lt_cv_file_magic_cmd=/usr/bin/file
3544 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3547 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3548 lt_cv_file_magic_cmd=/usr/bin/file
3549 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3557 # this will be overridden with pass_all, but let us keep it just in case
3558 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3562 *-32|*"-32 ") libmagic=32-bit;;
3563 *-n32|*"-n32 ") libmagic=N32;;
3564 *-64|*"-64 ") libmagic=64-bit;;
3565 *) libmagic=never-match;;
3567 # this will be overridden with pass_all, but let us keep it just in case
3568 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3571 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3572 lt_cv_deplibs_check_method=pass_all
3575 # This must be Linux ELF.
3578 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3579 lt_cv_deplibs_check_method=pass_all ;;
3581 # glibc up to 2.1.1 does not perform some relocations on ARM
3582 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3584 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3587 netbsd* | knetbsd*-gnu)
3588 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3589 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3591 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3596 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3597 lt_cv_file_magic_cmd=/usr/bin/file
3598 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3601 osf3* | osf4* | osf5*)
3602 # this will be overridden with pass_all, but let us keep it just in case
3603 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3604 lt_cv_file_magic_test_file=/shlib/libc.so
3605 lt_cv_deplibs_check_method=pass_all
3609 lt_cv_deplibs_check_method=pass_all
3613 lt_cv_deplibs_check_method=pass_all
3614 lt_cv_file_magic_test_file=/lib/libc.so
3617 sysv5uw[78]* | sysv4*uw2*)
3618 lt_cv_deplibs_check_method=pass_all
3621 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3622 case $host_vendor in
3624 lt_cv_deplibs_check_method=pass_all
3627 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]'
3628 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3635 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3636 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3637 file_magic_cmd=$lt_cv_file_magic_cmd
3638 deplibs_check_method=$lt_cv_deplibs_check_method
3643 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3645 # Only perform the check for file, if the check method requires it
3646 case $deplibs_check_method in
3648 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3649 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3650 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3651 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3652 echo $ECHO_N "(cached) $ECHO_C" >&6
3656 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3659 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3662 ac_save_MAGIC_CMD="$MAGIC_CMD"
3663 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3664 ac_dummy="/usr/bin:$PATH"
3665 for ac_dir in $ac_dummy; do
3666 test -z "$ac_dir" && ac_dir=.
3667 if test -f $ac_dir/${ac_tool_prefix}file; then
3668 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3669 if test -n "$file_magic_test_file"; then
3670 case $deplibs_check_method in
3672 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3673 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3674 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3675 egrep "$file_magic_regex" > /dev/null; then
3680 *** Warning: the command libtool uses to detect shared libraries,
3681 *** $file_magic_cmd, produces output that libtool cannot recognize.
3682 *** The result is that libtool may fail to recognize shared libraries
3683 *** as such. This will affect the creation of libtool libraries that
3684 *** depend on shared libraries, but programs linked with such libtool
3685 *** libraries will work regardless of this problem. Nevertheless, you
3686 *** may want to report the problem to your system manager and/or to
3687 *** bug-libtool@gnu.org
3697 MAGIC_CMD="$ac_save_MAGIC_CMD"
3702 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3703 if test -n "$MAGIC_CMD"; then
3704 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3705 echo "${ECHO_T}$MAGIC_CMD" >&6
3707 echo "$as_me:$LINENO: result: no" >&5
3708 echo "${ECHO_T}no" >&6
3711 if test -z "$lt_cv_path_MAGIC_CMD"; then
3712 if test -n "$ac_tool_prefix"; then
3713 echo "$as_me:$LINENO: checking for file" >&5
3714 echo $ECHO_N "checking for file... $ECHO_C" >&6
3715 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3716 echo $ECHO_N "(cached) $ECHO_C" >&6
3720 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3723 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3726 ac_save_MAGIC_CMD="$MAGIC_CMD"
3727 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3728 ac_dummy="/usr/bin:$PATH"
3729 for ac_dir in $ac_dummy; do
3730 test -z "$ac_dir" && ac_dir=.
3731 if test -f $ac_dir/file; then
3732 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3733 if test -n "$file_magic_test_file"; then
3734 case $deplibs_check_method in
3736 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3737 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3738 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3739 egrep "$file_magic_regex" > /dev/null; then
3744 *** Warning: the command libtool uses to detect shared libraries,
3745 *** $file_magic_cmd, produces output that libtool cannot recognize.
3746 *** The result is that libtool may fail to recognize shared libraries
3747 *** as such. This will affect the creation of libtool libraries that
3748 *** depend on shared libraries, but programs linked with such libtool
3749 *** libraries will work regardless of this problem. Nevertheless, you
3750 *** may want to report the problem to your system manager and/or to
3751 *** bug-libtool@gnu.org
3761 MAGIC_CMD="$ac_save_MAGIC_CMD"
3766 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3767 if test -n "$MAGIC_CMD"; then
3768 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3769 echo "${ECHO_T}$MAGIC_CMD" >&6
3771 echo "$as_me:$LINENO: result: no" >&5
3772 echo "${ECHO_T}no" >&6
3784 if test -n "$ac_tool_prefix"; then
3785 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3786 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3787 echo "$as_me:$LINENO: checking for $ac_word" >&5
3788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3789 if test "${ac_cv_prog_RANLIB+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3792 if test -n "$RANLIB"; then
3793 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3799 test -z "$as_dir" && as_dir=.
3800 for ac_exec_ext in '' $ac_executable_extensions; do
3801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3802 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3811 RANLIB=$ac_cv_prog_RANLIB
3812 if test -n "$RANLIB"; then
3813 echo "$as_me:$LINENO: result: $RANLIB" >&5
3814 echo "${ECHO_T}$RANLIB" >&6
3816 echo "$as_me:$LINENO: result: no" >&5
3817 echo "${ECHO_T}no" >&6
3821 if test -z "$ac_cv_prog_RANLIB"; then
3822 ac_ct_RANLIB=$RANLIB
3823 # Extract the first word of "ranlib", so it can be a program name with args.
3824 set dummy ranlib; ac_word=$2
3825 echo "$as_me:$LINENO: checking for $ac_word" >&5
3826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3827 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3830 if test -n "$ac_ct_RANLIB"; then
3831 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837 test -z "$as_dir" && as_dir=.
3838 for ac_exec_ext in '' $ac_executable_extensions; do
3839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3840 ac_cv_prog_ac_ct_RANLIB="ranlib"
3841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3847 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3850 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3851 if test -n "$ac_ct_RANLIB"; then
3852 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3853 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3855 echo "$as_me:$LINENO: result: no" >&5
3856 echo "${ECHO_T}no" >&6
3859 RANLIB=$ac_ct_RANLIB
3861 RANLIB="$ac_cv_prog_RANLIB"
3864 if test -n "$ac_tool_prefix"; then
3865 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3866 set dummy ${ac_tool_prefix}strip; ac_word=$2
3867 echo "$as_me:$LINENO: checking for $ac_word" >&5
3868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3869 if test "${ac_cv_prog_STRIP+set}" = set; then
3870 echo $ECHO_N "(cached) $ECHO_C" >&6
3872 if test -n "$STRIP"; then
3873 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879 test -z "$as_dir" && as_dir=.
3880 for ac_exec_ext in '' $ac_executable_extensions; do
3881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3882 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3891 STRIP=$ac_cv_prog_STRIP
3892 if test -n "$STRIP"; then
3893 echo "$as_me:$LINENO: result: $STRIP" >&5
3894 echo "${ECHO_T}$STRIP" >&6
3896 echo "$as_me:$LINENO: result: no" >&5
3897 echo "${ECHO_T}no" >&6
3901 if test -z "$ac_cv_prog_STRIP"; then
3903 # Extract the first word of "strip", so it can be a program name with args.
3904 set dummy strip; ac_word=$2
3905 echo "$as_me:$LINENO: checking for $ac_word" >&5
3906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3907 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3908 echo $ECHO_N "(cached) $ECHO_C" >&6
3910 if test -n "$ac_ct_STRIP"; then
3911 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917 test -z "$as_dir" && as_dir=.
3918 for ac_exec_ext in '' $ac_executable_extensions; do
3919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3920 ac_cv_prog_ac_ct_STRIP="strip"
3921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3927 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3930 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3931 if test -n "$ac_ct_STRIP"; then
3932 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3933 echo "${ECHO_T}$ac_ct_STRIP" >&6
3935 echo "$as_me:$LINENO: result: no" >&5
3936 echo "${ECHO_T}no" >&6
3941 STRIP="$ac_cv_prog_STRIP"
3945 # Check for any special flags to pass to ltconfig.
3946 libtool_flags="--cache-file=$cache_file"
3947 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3948 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3949 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3950 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3951 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3954 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3955 if test "${enable_libtool_lock+set}" = set; then
3956 enableval="$enable_libtool_lock"
3959 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3960 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3963 # Check whether --with-pic or --without-pic was given.
3964 if test "${with_pic+set}" = set; then
3970 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3971 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3973 # Some flags need to be propagated to the compiler or linker for good
3977 # Find out which ABI we are using.
3978 echo '#line 3978 "configure"' > conftest.$ac_ext
3979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3980 (eval $ac_compile) 2>&5
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); }; then
3984 if test "$lt_cv_prog_gnu_ld" = yes; then
3985 case `/usr/bin/file conftest.$ac_objext` in
3987 LD="${LD-ld} -melf32bsmip"
3990 LD="${LD-ld} -melf32bmipn32"
3993 LD="${LD-ld} -melf64bmip"
3997 case `/usr/bin/file conftest.$ac_objext` in
4014 # Find out which ABI we are using.
4015 echo 'int i;' > conftest.$ac_ext
4016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4017 (eval $ac_compile) 2>&5
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); }; then
4021 case "`/usr/bin/file conftest.o`" in
4034 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4035 SAVE_CFLAGS="$CFLAGS"
4036 CFLAGS="$CFLAGS -belf"
4037 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4038 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4039 if test "${lt_cv_cc_needs_belf+set}" = set; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
4045 ac_cpp='$CPP $CPPFLAGS'
4046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4050 cat >conftest.$ac_ext <<_ACEOF
4053 cat confdefs.h >>conftest.$ac_ext
4054 cat >>conftest.$ac_ext <<_ACEOF
4055 /* end confdefs.h. */
4065 rm -f conftest.$ac_objext conftest$ac_exeext
4066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4067 (eval $ac_link) 2>conftest.er1
4069 grep -v '^ *+' conftest.er1 >conftest.err
4071 cat conftest.err >&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); } &&
4074 { ac_try='test -z "$ac_c_werror_flag"
4075 || test ! -s conftest.err'
4076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); }; } &&
4081 { ac_try='test -s conftest$ac_exeext'
4082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }; }; then
4087 lt_cv_cc_needs_belf=yes
4089 echo "$as_me: failed program was:" >&5
4090 sed 's/^/| /' conftest.$ac_ext >&5
4092 lt_cv_cc_needs_belf=no
4094 rm -f conftest.err conftest.$ac_objext \
4095 conftest$ac_exeext conftest.$ac_ext
4097 ac_cpp='$CPP $CPPFLAGS'
4098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4103 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4104 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4105 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4106 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4107 CFLAGS="$SAVE_CFLAGS"
4115 # Save cache, so that ltconfig can load it
4116 cat >confcache <<\_ACEOF
4117 # This file is a shell script that caches the results of configure
4118 # tests run on this system so they can be shared between configure
4119 # scripts and configure runs, see configure's option --config-cache.
4120 # It is not useful on other systems. If it contains results you don't
4121 # want to keep, you may remove or edit it.
4123 # config.status only pays attention to the cache file if you give it
4124 # the --recheck option to rerun configure.
4126 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4127 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4132 # The following way of writing the cache mishandles newlines in values,
4133 # but we know of no workaround that is simple, portable, and efficient.
4134 # So, don't put newlines in cache variables' values.
4135 # Ultrix sh set writes to stderr and can't be redirected directly,
4136 # and sets the high bit in the cache file unless we assign to the vars.
4139 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4141 # `set' does not quote correctly, so add quotes (double-quote
4142 # substitution turns \\\\ into \\, and sed turns \\ into \).
4145 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4148 # `set' quotes correctly as required by POSIX, so do not add quotes.
4150 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4157 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4159 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4161 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4162 if test -w $cache_file; then
4163 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4164 cat confcache >$cache_file
4166 echo "not updating unwritable cache $cache_file"
4171 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4172 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4173 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4174 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4175 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4176 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4177 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4178 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4179 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4180 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4181 echo "$as_me: error: libtool configure failed" >&2;}
4182 { (exit 1); exit 1; }; }
4184 # Reload cache, that may have been modified by ltconfig
4185 if test -r "$cache_file"; then
4186 # Some versions of bash will fail to source /dev/null (special
4187 # files actually), so we avoid doing that.
4188 if test -f "$cache_file"; then
4189 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4190 echo "$as_me: loading cache $cache_file" >&6;}
4192 [\\/]* | ?:[\\/]* ) . $cache_file;;
4193 *) . ./$cache_file;;
4197 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4198 echo "$as_me: creating cache $cache_file" >&6;}
4203 # This can be used to rebuild libtool when needed
4204 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4206 # Always use our own libtool.
4207 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4209 # Redirect the config.log output again, so that the ltconfig log is not
4210 # clobbered by the next message.
4211 exec 5>>./config.log
4219 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
4220 if test "${enable_64_bit_bfd+set}" = set; then
4221 enableval="$enable_64_bit_bfd"
4222 case "${enableval}" in
4225 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4226 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
4227 { (exit 1); exit 1; }; } ;;
4231 fi; # Check whether --enable-targets or --disable-targets was given.
4232 if test "${enable_targets+set}" = set; then
4233 enableval="$enable_targets"
4234 case "${enableval}" in
4235 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4236 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4237 { (exit 1); exit 1; }; }
4239 no) enable_targets= ;;
4240 *) enable_targets=$enableval ;;
4242 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
4243 if test "${enable_commonbfdlib+set}" = set; then
4244 enableval="$enable_commonbfdlib"
4245 case "${enableval}" in
4246 yes) commonbfdlib=true ;;
4247 no) commonbfdlib=false ;;
4248 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4249 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4250 { (exit 1); exit 1; }; } ;;
4253 # Check whether --with-mmap or --without-mmap was given.
4254 if test "${with_mmap+set}" = set; then
4255 withval="$with_mmap"
4256 case "${withval}" in
4257 yes) want_mmap=true ;;
4258 no) want_mmap=false ;;
4259 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
4260 echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
4261 { (exit 1); exit 1; }; } ;;
4267 WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4269 # Check whether --enable-werror or --disable-werror was given.
4270 if test "${enable_werror+set}" = set; then
4271 enableval="$enable_werror"
4272 case "${enableval}" in
4273 yes | y) ERROR_ON_WARNING="yes" ;;
4274 no | n) ERROR_ON_WARNING="no" ;;
4275 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4276 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4277 { (exit 1); exit 1; }; } ;;
4281 # Enable -Werror by default when using gcc
4282 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4283 ERROR_ON_WARNING=yes
4287 if test "${ERROR_ON_WARNING}" = yes ; then
4288 WARN_CFLAGS="$WARN_CFLAGS -Werror"
4289 NO_WERROR="-Wno-error"
4292 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4293 if test "${enable_build_warnings+set}" = set; then
4294 enableval="$enable_build_warnings"
4295 case "${enableval}" in
4297 no) WARN_CFLAGS="-w";;
4298 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4299 WARN_CFLAGS="${WARN_CFLAGS} ${t}";;
4300 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4301 WARN_CFLAGS="${t} ${WARN_CFLAGS}";;
4302 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4306 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4307 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4314 ac_config_headers="$ac_config_headers config.h:config.in"
4317 if test -z "$target" ; then
4318 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4319 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4320 { (exit 1); exit 1; }; }
4323 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4324 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4325 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4326 if test "${enable_maintainer_mode+set}" = set; then
4327 enableval="$enable_maintainer_mode"
4328 USE_MAINTAINER_MODE=$enableval
4330 USE_MAINTAINER_MODE=no
4332 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4333 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4336 if test $USE_MAINTAINER_MODE = yes; then
4337 MAINTAINER_MODE_TRUE=
4338 MAINTAINER_MODE_FALSE='#'
4340 MAINTAINER_MODE_TRUE='#'
4341 MAINTAINER_MODE_FALSE=
4344 MAINT=$MAINTAINER_MODE_TRUE
4347 case ${build_alias} in
4348 "") build_noncanonical=${build} ;;
4349 *) build_noncanonical=${build_alias} ;;
4352 case ${host_alias} in
4353 "") host_noncanonical=${build_noncanonical} ;;
4354 *) host_noncanonical=${host_alias} ;;
4357 case ${target_alias} in
4358 "") target_noncanonical=${host_noncanonical} ;;
4359 *) target_noncanonical=${target_alias} ;;
4362 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
4363 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
4364 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
4365 if test "${enable_install_libbfd+set}" = set; then
4366 enableval="$enable_install_libbfd"
4367 install_libbfd_p=$enableval
4369 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
4370 install_libbfd_p=yes
4375 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
4376 echo "${ECHO_T}$install_libbfd_p" >&6
4379 if test $install_libbfd_p = yes; then
4380 INSTALL_LIBBFD_TRUE=
4381 INSTALL_LIBBFD_FALSE='#'
4383 INSTALL_LIBBFD_TRUE='#'
4384 INSTALL_LIBBFD_FALSE=
4387 # Need _noncanonical variables for this.
4392 # libbfd.a is a host library containing target dependent code
4393 bfdlibdir='$(libdir)'
4394 bfdincludedir='$(includedir)'
4395 if test "${host}" != "${target}"; then
4396 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
4397 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
4407 bfd_default_target_size=32
4412 ac_cpp='$CPP $CPPFLAGS'
4413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4416 if test -n "$ac_tool_prefix"; then
4417 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4418 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4419 echo "$as_me:$LINENO: checking for $ac_word" >&5
4420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4421 if test "${ac_cv_prog_CC+set}" = set; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
4424 if test -n "$CC"; then
4425 ac_cv_prog_CC="$CC" # Let the user override the test.
4427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431 test -z "$as_dir" && as_dir=.
4432 for ac_exec_ext in '' $ac_executable_extensions; do
4433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4434 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4444 if test -n "$CC"; then
4445 echo "$as_me:$LINENO: result: $CC" >&5
4446 echo "${ECHO_T}$CC" >&6
4448 echo "$as_me:$LINENO: result: no" >&5
4449 echo "${ECHO_T}no" >&6
4453 if test -z "$ac_cv_prog_CC"; then
4455 # Extract the first word of "gcc", so it can be a program name with args.
4456 set dummy gcc; ac_word=$2
4457 echo "$as_me:$LINENO: checking for $ac_word" >&5
4458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4459 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4462 if test -n "$ac_ct_CC"; then
4463 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 test -z "$as_dir" && as_dir=.
4470 for ac_exec_ext in '' $ac_executable_extensions; do
4471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4472 ac_cv_prog_ac_ct_CC="gcc"
4473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4481 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4482 if test -n "$ac_ct_CC"; then
4483 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4484 echo "${ECHO_T}$ac_ct_CC" >&6
4486 echo "$as_me:$LINENO: result: no" >&5
4487 echo "${ECHO_T}no" >&6
4495 if test -z "$CC"; then
4496 if test -n "$ac_tool_prefix"; then
4497 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4498 set dummy ${ac_tool_prefix}cc; ac_word=$2
4499 echo "$as_me:$LINENO: checking for $ac_word" >&5
4500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4501 if test "${ac_cv_prog_CC+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4504 if test -n "$CC"; then
4505 ac_cv_prog_CC="$CC" # Let the user override the test.
4507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 test -z "$as_dir" && as_dir=.
4512 for ac_exec_ext in '' $ac_executable_extensions; do
4513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4514 ac_cv_prog_CC="${ac_tool_prefix}cc"
4515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4524 if test -n "$CC"; then
4525 echo "$as_me:$LINENO: result: $CC" >&5
4526 echo "${ECHO_T}$CC" >&6
4528 echo "$as_me:$LINENO: result: no" >&5
4529 echo "${ECHO_T}no" >&6
4533 if test -z "$ac_cv_prog_CC"; then
4535 # Extract the first word of "cc", so it can be a program name with args.
4536 set dummy cc; ac_word=$2
4537 echo "$as_me:$LINENO: checking for $ac_word" >&5
4538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4539 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4540 echo $ECHO_N "(cached) $ECHO_C" >&6
4542 if test -n "$ac_ct_CC"; then
4543 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 test -z "$as_dir" && as_dir=.
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4552 ac_cv_prog_ac_ct_CC="cc"
4553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4561 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4562 if test -n "$ac_ct_CC"; then
4563 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4564 echo "${ECHO_T}$ac_ct_CC" >&6
4566 echo "$as_me:$LINENO: result: no" >&5
4567 echo "${ECHO_T}no" >&6
4576 if test -z "$CC"; then
4577 # Extract the first word of "cc", so it can be a program name with args.
4578 set dummy cc; ac_word=$2
4579 echo "$as_me:$LINENO: checking for $ac_word" >&5
4580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4581 if test "${ac_cv_prog_CC+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4584 if test -n "$CC"; then
4585 ac_cv_prog_CC="$CC" # Let the user override the test.
4588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592 test -z "$as_dir" && as_dir=.
4593 for ac_exec_ext in '' $ac_executable_extensions; do
4594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4595 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4596 ac_prog_rejected=yes
4600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4606 if test $ac_prog_rejected = yes; then
4607 # We found a bogon in the path, so make sure we never use it.
4608 set dummy $ac_cv_prog_CC
4610 if test $# != 0; then
4611 # We chose a different compiler from the bogus one.
4612 # However, it has the same basename, so the bogon will be chosen
4613 # first if we set CC to just the basename; use the full file name.
4615 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4621 if test -n "$CC"; then
4622 echo "$as_me:$LINENO: result: $CC" >&5
4623 echo "${ECHO_T}$CC" >&6
4625 echo "$as_me:$LINENO: result: no" >&5
4626 echo "${ECHO_T}no" >&6
4630 if test -z "$CC"; then
4631 if test -n "$ac_tool_prefix"; then
4634 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4635 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4636 echo "$as_me:$LINENO: checking for $ac_word" >&5
4637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4638 if test "${ac_cv_prog_CC+set}" = set; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4641 if test -n "$CC"; then
4642 ac_cv_prog_CC="$CC" # Let the user override the test.
4644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 test -z "$as_dir" && as_dir=.
4649 for ac_exec_ext in '' $ac_executable_extensions; do
4650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4651 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4661 if test -n "$CC"; then
4662 echo "$as_me:$LINENO: result: $CC" >&5
4663 echo "${ECHO_T}$CC" >&6
4665 echo "$as_me:$LINENO: result: no" >&5
4666 echo "${ECHO_T}no" >&6
4669 test -n "$CC" && break
4672 if test -z "$CC"; then
4676 # Extract the first word of "$ac_prog", so it can be a program name with args.
4677 set dummy $ac_prog; ac_word=$2
4678 echo "$as_me:$LINENO: checking for $ac_word" >&5
4679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4680 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
4683 if test -n "$ac_ct_CC"; then
4684 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690 test -z "$as_dir" && as_dir=.
4691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4693 ac_cv_prog_ac_ct_CC="$ac_prog"
4694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4702 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4703 if test -n "$ac_ct_CC"; then
4704 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4705 echo "${ECHO_T}$ac_ct_CC" >&6
4707 echo "$as_me:$LINENO: result: no" >&5
4708 echo "${ECHO_T}no" >&6
4711 test -n "$ac_ct_CC" && break
4720 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4721 See \`config.log' for more details." >&5
4722 echo "$as_me: error: no acceptable C compiler found in \$PATH
4723 See \`config.log' for more details." >&2;}
4724 { (exit 1); exit 1; }; }
4726 # Provide some information about the compiler.
4727 echo "$as_me:$LINENO:" \
4728 "checking for C compiler version" >&5
4729 ac_compiler=`set X $ac_compile; echo $2`
4730 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4731 (eval $ac_compiler --version </dev/null >&5) 2>&5
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); }
4735 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4736 (eval $ac_compiler -v </dev/null >&5) 2>&5
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); }
4740 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4741 (eval $ac_compiler -V </dev/null >&5) 2>&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }
4746 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4747 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4748 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4749 echo $ECHO_N "(cached) $ECHO_C" >&6
4751 cat >conftest.$ac_ext <<_ACEOF
4754 cat confdefs.h >>conftest.$ac_ext
4755 cat >>conftest.$ac_ext <<_ACEOF
4756 /* end confdefs.h. */
4769 rm -f conftest.$ac_objext
4770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4771 (eval $ac_compile) 2>conftest.er1
4773 grep -v '^ *+' conftest.er1 >conftest.err
4775 cat conftest.err >&5
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); } &&
4778 { ac_try='test -z "$ac_c_werror_flag"
4779 || test ! -s conftest.err'
4780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); }; } &&
4785 { ac_try='test -s conftest.$ac_objext'
4786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); }; }; then
4793 echo "$as_me: failed program was:" >&5
4794 sed 's/^/| /' conftest.$ac_ext >&5
4798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4799 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4802 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4803 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4804 GCC=`test $ac_compiler_gnu = yes && echo yes`
4805 ac_test_CFLAGS=${CFLAGS+set}
4806 ac_save_CFLAGS=$CFLAGS
4808 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4809 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4810 if test "${ac_cv_prog_cc_g+set}" = set; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4813 cat >conftest.$ac_ext <<_ACEOF
4816 cat confdefs.h >>conftest.$ac_ext
4817 cat >>conftest.$ac_ext <<_ACEOF
4818 /* end confdefs.h. */
4828 rm -f conftest.$ac_objext
4829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4830 (eval $ac_compile) 2>conftest.er1
4832 grep -v '^ *+' conftest.er1 >conftest.err
4834 cat conftest.err >&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); } &&
4837 { ac_try='test -z "$ac_c_werror_flag"
4838 || test ! -s conftest.err'
4839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; } &&
4844 { ac_try='test -s conftest.$ac_objext'
4845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); }; }; then
4852 echo "$as_me: failed program was:" >&5
4853 sed 's/^/| /' conftest.$ac_ext >&5
4857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4859 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4860 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4861 if test "$ac_test_CFLAGS" = set; then
4862 CFLAGS=$ac_save_CFLAGS
4863 elif test $ac_cv_prog_cc_g = yes; then
4864 if test "$GCC" = yes; then
4870 if test "$GCC" = yes; then
4876 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4877 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4878 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4879 echo $ECHO_N "(cached) $ECHO_C" >&6
4881 ac_cv_prog_cc_stdc=no
4883 cat >conftest.$ac_ext <<_ACEOF
4886 cat confdefs.h >>conftest.$ac_ext
4887 cat >>conftest.$ac_ext <<_ACEOF
4888 /* end confdefs.h. */
4891 #include <sys/types.h>
4892 #include <sys/stat.h>
4893 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4894 struct buf { int x; };
4895 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4896 static char *e (p, i)
4902 static char *f (char * (*g) (char **, int), char **p, ...)
4907 s = g (p, va_arg (v,int));
4912 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4913 function prototypes and stuff, but not '\xHH' hex character constants.
4914 These don't provoke an error unfortunately, instead are silently treated
4915 as 'x'. The following induces an error, until -std1 is added to get
4916 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4917 array size at least. It's necessary to write '\x00'==0 to get something
4918 that's true only with -std1. */
4919 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4921 int test (int i, double x);
4922 struct s1 {int (*f) (int a);};
4923 struct s2 {int (*f) (double a);};
4924 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4930 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4935 # Don't try gcc -ansi; that turns off useful extensions and
4936 # breaks some systems' header files.
4937 # AIX -qlanglvl=ansi
4938 # Ultrix and OSF/1 -std1
4939 # HP-UX 10.20 and later -Ae
4940 # HP-UX older versions -Aa -D_HPUX_SOURCE
4941 # SVR4 -Xc -D__EXTENSIONS__
4942 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4944 CC="$ac_save_CC $ac_arg"
4945 rm -f conftest.$ac_objext
4946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4947 (eval $ac_compile) 2>conftest.er1
4949 grep -v '^ *+' conftest.er1 >conftest.err
4951 cat conftest.err >&5
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); } &&
4954 { ac_try='test -z "$ac_c_werror_flag"
4955 || test ! -s conftest.err'
4956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); }; } &&
4961 { ac_try='test -s conftest.$ac_objext'
4962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); }; }; then
4967 ac_cv_prog_cc_stdc=$ac_arg
4970 echo "$as_me: failed program was:" >&5
4971 sed 's/^/| /' conftest.$ac_ext >&5
4974 rm -f conftest.err conftest.$ac_objext
4976 rm -f conftest.$ac_ext conftest.$ac_objext
4981 case "x$ac_cv_prog_cc_stdc" in
4983 echo "$as_me:$LINENO: result: none needed" >&5
4984 echo "${ECHO_T}none needed" >&6 ;;
4986 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4987 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4988 CC="$CC $ac_cv_prog_cc_stdc" ;;
4991 # Some people use a C++ compiler to compile C. Since we use `exit',
4992 # in C++ we need to declare it. In case someone uses the same compiler
4993 # for both compiling C and C++ we need to have the C++ compiler decide
4994 # the declaration of exit, since it's the most demanding environment.
4995 cat >conftest.$ac_ext <<_ACEOF
5000 rm -f conftest.$ac_objext
5001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5002 (eval $ac_compile) 2>conftest.er1
5004 grep -v '^ *+' conftest.er1 >conftest.err
5006 cat conftest.err >&5
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); } &&
5009 { ac_try='test -z "$ac_c_werror_flag"
5010 || test ! -s conftest.err'
5011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); }; } &&
5016 { ac_try='test -s conftest.$ac_objext'
5017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); }; }; then
5022 for ac_declaration in \
5024 'extern "C" void std::exit (int) throw (); using std::exit;' \
5025 'extern "C" void std::exit (int); using std::exit;' \
5026 'extern "C" void exit (int) throw ();' \
5027 'extern "C" void exit (int);' \
5030 cat >conftest.$ac_ext <<_ACEOF
5033 cat confdefs.h >>conftest.$ac_ext
5034 cat >>conftest.$ac_ext <<_ACEOF
5035 /* end confdefs.h. */
5046 rm -f conftest.$ac_objext
5047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5048 (eval $ac_compile) 2>conftest.er1
5050 grep -v '^ *+' conftest.er1 >conftest.err
5052 cat conftest.err >&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); } &&
5055 { ac_try='test -z "$ac_c_werror_flag"
5056 || test ! -s conftest.err'
5057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); }; } &&
5062 { ac_try='test -s conftest.$ac_objext'
5063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); }; }; then
5070 echo "$as_me: failed program was:" >&5
5071 sed 's/^/| /' conftest.$ac_ext >&5
5075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5076 cat >conftest.$ac_ext <<_ACEOF
5079 cat confdefs.h >>conftest.$ac_ext
5080 cat >>conftest.$ac_ext <<_ACEOF
5081 /* end confdefs.h. */
5091 rm -f conftest.$ac_objext
5092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5093 (eval $ac_compile) 2>conftest.er1
5095 grep -v '^ *+' conftest.er1 >conftest.err
5097 cat conftest.err >&5
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); } &&
5100 { ac_try='test -z "$ac_c_werror_flag"
5101 || test ! -s conftest.err'
5102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); }; } &&
5107 { ac_try='test -s conftest.$ac_objext'
5108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); }; }; then
5115 echo "$as_me: failed program was:" >&5
5116 sed 's/^/| /' conftest.$ac_ext >&5
5119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5122 if test -n "$ac_declaration"; then
5123 echo '#ifdef __cplusplus' >>confdefs.h
5124 echo $ac_declaration >>confdefs.h
5125 echo '#endif' >>confdefs.h
5129 echo "$as_me: failed program was:" >&5
5130 sed 's/^/| /' conftest.$ac_ext >&5
5133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5135 ac_cpp='$CPP $CPPFLAGS'
5136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5141 cat >>confdefs.h <<\_ACEOF
5142 #define _GNU_SOURCE 1
5147 ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw"
5148 if test -n "$ac_tool_prefix"; then
5149 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5150 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5151 echo "$as_me:$LINENO: checking for $ac_word" >&5
5152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5153 if test "${ac_cv_prog_RANLIB+set}" = set; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5156 if test -n "$RANLIB"; then
5157 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163 test -z "$as_dir" && as_dir=.
5164 for ac_exec_ext in '' $ac_executable_extensions; do
5165 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5166 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5175 RANLIB=$ac_cv_prog_RANLIB
5176 if test -n "$RANLIB"; then
5177 echo "$as_me:$LINENO: result: $RANLIB" >&5
5178 echo "${ECHO_T}$RANLIB" >&6
5180 echo "$as_me:$LINENO: result: no" >&5
5181 echo "${ECHO_T}no" >&6
5185 if test -z "$ac_cv_prog_RANLIB"; then
5186 ac_ct_RANLIB=$RANLIB
5187 # Extract the first word of "ranlib", so it can be a program name with args.
5188 set dummy ranlib; ac_word=$2
5189 echo "$as_me:$LINENO: checking for $ac_word" >&5
5190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5191 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5194 if test -n "$ac_ct_RANLIB"; then
5195 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201 test -z "$as_dir" && as_dir=.
5202 for ac_exec_ext in '' $ac_executable_extensions; do
5203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5204 ac_cv_prog_ac_ct_RANLIB="ranlib"
5205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5211 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5214 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5215 if test -n "$ac_ct_RANLIB"; then
5216 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5217 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5219 echo "$as_me:$LINENO: result: no" >&5
5220 echo "${ECHO_T}no" >&6
5223 RANLIB=$ac_ct_RANLIB
5225 RANLIB="$ac_cv_prog_RANLIB"
5229 ac_cpp='$CPP $CPPFLAGS'
5230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5233 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5234 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5235 # On Suns, sometimes $CPP names a directory.
5236 if test -n "$CPP" && test -d "$CPP"; then
5239 if test -z "$CPP"; then
5240 if test "${ac_cv_prog_CPP+set}" = set; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
5243 # Double quotes because CPP needs to be expanded
5244 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5247 for ac_c_preproc_warn_flag in '' yes
5249 # Use a header file that comes with gcc, so configuring glibc
5250 # with a fresh cross-compiler works.
5251 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5252 # <limits.h> exists even on freestanding compilers.
5253 # On the NeXT, cc -E runs the code through the compiler's parser,
5254 # not just through cpp. "Syntax error" is here to catch this case.
5255 cat >conftest.$ac_ext <<_ACEOF
5258 cat confdefs.h >>conftest.$ac_ext
5259 cat >>conftest.$ac_ext <<_ACEOF
5260 /* end confdefs.h. */
5262 # include <limits.h>
5264 # include <assert.h>
5268 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5269 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5271 grep -v '^ *+' conftest.er1 >conftest.err
5273 cat conftest.err >&5
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); } >/dev/null; then
5276 if test -s conftest.err; then
5277 ac_cpp_err=$ac_c_preproc_warn_flag
5278 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5285 if test -z "$ac_cpp_err"; then
5288 echo "$as_me: failed program was:" >&5
5289 sed 's/^/| /' conftest.$ac_ext >&5
5291 # Broken: fails on valid input.
5294 rm -f conftest.err conftest.$ac_ext
5296 # OK, works on sane cases. Now check whether non-existent headers
5297 # can be detected and how.
5298 cat >conftest.$ac_ext <<_ACEOF
5301 cat confdefs.h >>conftest.$ac_ext
5302 cat >>conftest.$ac_ext <<_ACEOF
5303 /* end confdefs.h. */
5304 #include <ac_nonexistent.h>
5306 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5307 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5309 grep -v '^ *+' conftest.er1 >conftest.err
5311 cat conftest.err >&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); } >/dev/null; then
5314 if test -s conftest.err; then
5315 ac_cpp_err=$ac_c_preproc_warn_flag
5316 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5323 if test -z "$ac_cpp_err"; then
5324 # Broken: success on invalid input.
5327 echo "$as_me: failed program was:" >&5
5328 sed 's/^/| /' conftest.$ac_ext >&5
5330 # Passes both tests.
5334 rm -f conftest.err conftest.$ac_ext
5337 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5338 rm -f conftest.err conftest.$ac_ext
5339 if $ac_preproc_ok; then
5351 echo "$as_me:$LINENO: result: $CPP" >&5
5352 echo "${ECHO_T}$CPP" >&6
5354 for ac_c_preproc_warn_flag in '' yes
5356 # Use a header file that comes with gcc, so configuring glibc
5357 # with a fresh cross-compiler works.
5358 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5359 # <limits.h> exists even on freestanding compilers.
5360 # On the NeXT, cc -E runs the code through the compiler's parser,
5361 # not just through cpp. "Syntax error" is here to catch this case.
5362 cat >conftest.$ac_ext <<_ACEOF
5365 cat confdefs.h >>conftest.$ac_ext
5366 cat >>conftest.$ac_ext <<_ACEOF
5367 /* end confdefs.h. */
5369 # include <limits.h>
5371 # include <assert.h>
5375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5376 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5378 grep -v '^ *+' conftest.er1 >conftest.err
5380 cat conftest.err >&5
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); } >/dev/null; then
5383 if test -s conftest.err; then
5384 ac_cpp_err=$ac_c_preproc_warn_flag
5385 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5392 if test -z "$ac_cpp_err"; then
5395 echo "$as_me: failed program was:" >&5
5396 sed 's/^/| /' conftest.$ac_ext >&5
5398 # Broken: fails on valid input.
5401 rm -f conftest.err conftest.$ac_ext
5403 # OK, works on sane cases. Now check whether non-existent headers
5404 # can be detected and how.
5405 cat >conftest.$ac_ext <<_ACEOF
5408 cat confdefs.h >>conftest.$ac_ext
5409 cat >>conftest.$ac_ext <<_ACEOF
5410 /* end confdefs.h. */
5411 #include <ac_nonexistent.h>
5413 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5414 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5416 grep -v '^ *+' conftest.er1 >conftest.err
5418 cat conftest.err >&5
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); } >/dev/null; then
5421 if test -s conftest.err; then
5422 ac_cpp_err=$ac_c_preproc_warn_flag
5423 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5430 if test -z "$ac_cpp_err"; then
5431 # Broken: success on invalid input.
5434 echo "$as_me: failed program was:" >&5
5435 sed 's/^/| /' conftest.$ac_ext >&5
5437 # Passes both tests.
5441 rm -f conftest.err conftest.$ac_ext
5444 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5445 rm -f conftest.err conftest.$ac_ext
5446 if $ac_preproc_ok; then
5449 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5450 See \`config.log' for more details." >&5
5451 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5452 See \`config.log' for more details." >&2;}
5453 { (exit 1); exit 1; }; }
5457 ac_cpp='$CPP $CPPFLAGS'
5458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5463 echo "$as_me:$LINENO: checking for egrep" >&5
5464 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5465 if test "${ac_cv_prog_egrep+set}" = set; then
5466 echo $ECHO_N "(cached) $ECHO_C" >&6
5468 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5469 then ac_cv_prog_egrep='grep -E'
5470 else ac_cv_prog_egrep='egrep'
5473 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5474 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5475 EGREP=$ac_cv_prog_egrep
5478 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5479 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5480 if test "${ac_cv_header_stdc+set}" = set; then
5481 echo $ECHO_N "(cached) $ECHO_C" >&6
5483 cat >conftest.$ac_ext <<_ACEOF
5486 cat confdefs.h >>conftest.$ac_ext
5487 cat >>conftest.$ac_ext <<_ACEOF
5488 /* end confdefs.h. */
5502 rm -f conftest.$ac_objext
5503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5504 (eval $ac_compile) 2>conftest.er1
5506 grep -v '^ *+' conftest.er1 >conftest.err
5508 cat conftest.err >&5
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); } &&
5511 { ac_try='test -z "$ac_c_werror_flag"
5512 || test ! -s conftest.err'
5513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); }; } &&
5518 { ac_try='test -s conftest.$ac_objext'
5519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); }; }; then
5524 ac_cv_header_stdc=yes
5526 echo "$as_me: failed program was:" >&5
5527 sed 's/^/| /' conftest.$ac_ext >&5
5529 ac_cv_header_stdc=no
5531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5533 if test $ac_cv_header_stdc = yes; then
5534 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5535 cat >conftest.$ac_ext <<_ACEOF
5538 cat confdefs.h >>conftest.$ac_ext
5539 cat >>conftest.$ac_ext <<_ACEOF
5540 /* end confdefs.h. */
5544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5545 $EGREP "memchr" >/dev/null 2>&1; then
5548 ac_cv_header_stdc=no
5554 if test $ac_cv_header_stdc = yes; then
5555 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5556 cat >conftest.$ac_ext <<_ACEOF
5559 cat confdefs.h >>conftest.$ac_ext
5560 cat >>conftest.$ac_ext <<_ACEOF
5561 /* end confdefs.h. */
5565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5566 $EGREP "free" >/dev/null 2>&1; then
5569 ac_cv_header_stdc=no
5575 if test $ac_cv_header_stdc = yes; then
5576 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5577 if test "$cross_compiling" = yes; then
5580 cat >conftest.$ac_ext <<_ACEOF
5583 cat confdefs.h >>conftest.$ac_ext
5584 cat >>conftest.$ac_ext <<_ACEOF
5585 /* end confdefs.h. */
5587 #if ((' ' & 0x0FF) == 0x020)
5588 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5589 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5591 # define ISLOWER(c) \
5592 (('a' <= (c) && (c) <= 'i') \
5593 || ('j' <= (c) && (c) <= 'r') \
5594 || ('s' <= (c) && (c) <= 'z'))
5595 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5598 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5603 for (i = 0; i < 256; i++)
5604 if (XOR (islower (i), ISLOWER (i))
5605 || toupper (i) != TOUPPER (i))
5610 rm -f conftest$ac_exeext
5611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5612 (eval $ac_link) 2>&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); }; }; then
5623 echo "$as_me: program exited with status $ac_status" >&5
5624 echo "$as_me: failed program was:" >&5
5625 sed 's/^/| /' conftest.$ac_ext >&5
5628 ac_cv_header_stdc=no
5630 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5634 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5635 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5636 if test $ac_cv_header_stdc = yes; then
5638 cat >>confdefs.h <<\_ACEOF
5639 #define STDC_HEADERS 1
5644 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5645 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5646 if test "${ac_cv_c_const+set}" = set; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
5649 cat >conftest.$ac_ext <<_ACEOF
5652 cat confdefs.h >>conftest.$ac_ext
5653 cat >>conftest.$ac_ext <<_ACEOF
5654 /* end confdefs.h. */
5659 /* FIXME: Include the comments suggested by Paul. */
5661 /* Ultrix mips cc rejects this. */
5662 typedef int charset[2];
5664 /* SunOS 4.1.1 cc rejects this. */
5665 char const *const *ccp;
5667 /* NEC SVR4.0.2 mips cc rejects this. */
5668 struct point {int x, y;};
5669 static struct point const zero = {0,0};
5670 /* AIX XL C 1.02.0.0 rejects this.
5671 It does not let you subtract one const X* pointer from another in
5672 an arm of an if-expression whose if-part is not a constant
5674 const char *g = "string";
5675 ccp = &g + (g ? g-g : 0);
5676 /* HPUX 7.0 cc rejects these. */
5679 ccp = (char const *const *) p;
5680 { /* SCO 3.2v4 cc rejects this. */
5682 char const *s = 0 ? (char *) 0 : (char const *) 0;
5686 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5688 const int *foo = &x[0];
5691 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5692 typedef const int *iptr;
5696 { /* AIX XL C 1.02.0.0 rejects this saying
5697 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5698 struct s { int j; const int *ap[3]; };
5699 struct s *b; b->j = 5;
5701 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5710 rm -f conftest.$ac_objext
5711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5712 (eval $ac_compile) 2>conftest.er1
5714 grep -v '^ *+' conftest.er1 >conftest.err
5716 cat conftest.err >&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); } &&
5719 { ac_try='test -z "$ac_c_werror_flag"
5720 || test ! -s conftest.err'
5721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; } &&
5726 { ac_try='test -s conftest.$ac_objext'
5727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); }; }; then
5734 echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.$ac_ext >&5
5739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5741 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5742 echo "${ECHO_T}$ac_cv_c_const" >&6
5743 if test $ac_cv_c_const = no; then
5745 cat >>confdefs.h <<\_ACEOF
5751 echo "$as_me:$LINENO: checking for inline" >&5
5752 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5753 if test "${ac_cv_c_inline+set}" = set; then
5754 echo $ECHO_N "(cached) $ECHO_C" >&6
5757 for ac_kw in inline __inline__ __inline; do
5758 cat >conftest.$ac_ext <<_ACEOF
5761 cat confdefs.h >>conftest.$ac_ext
5762 cat >>conftest.$ac_ext <<_ACEOF
5763 /* end confdefs.h. */
5766 static $ac_kw foo_t static_foo () {return 0; }
5767 $ac_kw foo_t foo () {return 0; }
5771 rm -f conftest.$ac_objext
5772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5773 (eval $ac_compile) 2>conftest.er1
5775 grep -v '^ *+' conftest.er1 >conftest.err
5777 cat conftest.err >&5
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); } &&
5780 { ac_try='test -z "$ac_c_werror_flag"
5781 || test ! -s conftest.err'
5782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); }; } &&
5787 { ac_try='test -s conftest.$ac_objext'
5788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); }; }; then
5793 ac_cv_c_inline=$ac_kw; break
5795 echo "$as_me: failed program was:" >&5
5796 sed 's/^/| /' conftest.$ac_ext >&5
5799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5803 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5804 echo "${ECHO_T}$ac_cv_c_inline" >&6
5807 case $ac_cv_c_inline in
5810 case $ac_cv_c_inline in
5812 *) ac_val=$ac_cv_c_inline;;
5814 cat >>confdefs.h <<_ACEOF
5816 #define inline $ac_val
5822 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5832 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5833 inttypes.h stdint.h unistd.h
5835 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5836 echo "$as_me:$LINENO: checking for $ac_header" >&5
5837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5839 echo $ECHO_N "(cached) $ECHO_C" >&6
5841 cat >conftest.$ac_ext <<_ACEOF
5844 cat confdefs.h >>conftest.$ac_ext
5845 cat >>conftest.$ac_ext <<_ACEOF
5846 /* end confdefs.h. */
5847 $ac_includes_default
5849 #include <$ac_header>
5851 rm -f conftest.$ac_objext
5852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5853 (eval $ac_compile) 2>conftest.er1
5855 grep -v '^ *+' conftest.er1 >conftest.err
5857 cat conftest.err >&5
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); } &&
5860 { ac_try='test -z "$ac_c_werror_flag"
5861 || test ! -s conftest.err'
5862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); }; } &&
5867 { ac_try='test -s conftest.$ac_objext'
5868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); }; }; then
5873 eval "$as_ac_Header=yes"
5875 echo "$as_me: failed program was:" >&5
5876 sed 's/^/| /' conftest.$ac_ext >&5
5878 eval "$as_ac_Header=no"
5880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5883 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5885 cat >>confdefs.h <<_ACEOF
5886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5894 echo "$as_me:$LINENO: checking for off_t" >&5
5895 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5896 if test "${ac_cv_type_off_t+set}" = set; then
5897 echo $ECHO_N "(cached) $ECHO_C" >&6
5899 cat >conftest.$ac_ext <<_ACEOF
5902 cat confdefs.h >>conftest.$ac_ext
5903 cat >>conftest.$ac_ext <<_ACEOF
5904 /* end confdefs.h. */
5905 $ac_includes_default
5917 rm -f conftest.$ac_objext
5918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5919 (eval $ac_compile) 2>conftest.er1
5921 grep -v '^ *+' conftest.er1 >conftest.err
5923 cat conftest.err >&5
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); } &&
5926 { ac_try='test -z "$ac_c_werror_flag"
5927 || test ! -s conftest.err'
5928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); }; } &&
5933 { ac_try='test -s conftest.$ac_objext'
5934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); }; }; then
5939 ac_cv_type_off_t=yes
5941 echo "$as_me: failed program was:" >&5
5942 sed 's/^/| /' conftest.$ac_ext >&5
5946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5948 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5949 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5950 if test $ac_cv_type_off_t = yes; then
5954 cat >>confdefs.h <<_ACEOF
5960 echo "$as_me:$LINENO: checking for size_t" >&5
5961 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5962 if test "${ac_cv_type_size_t+set}" = set; then
5963 echo $ECHO_N "(cached) $ECHO_C" >&6
5965 cat >conftest.$ac_ext <<_ACEOF
5968 cat confdefs.h >>conftest.$ac_ext
5969 cat >>conftest.$ac_ext <<_ACEOF
5970 /* end confdefs.h. */
5971 $ac_includes_default
5977 if (sizeof (size_t))
5983 rm -f conftest.$ac_objext
5984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5985 (eval $ac_compile) 2>conftest.er1
5987 grep -v '^ *+' conftest.er1 >conftest.err
5989 cat conftest.err >&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } &&
5992 { ac_try='test -z "$ac_c_werror_flag"
5993 || test ! -s conftest.err'
5994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; } &&
5999 { ac_try='test -s conftest.$ac_objext'
6000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; }; then
6005 ac_cv_type_size_t=yes
6007 echo "$as_me: failed program was:" >&5
6008 sed 's/^/| /' conftest.$ac_ext >&5
6010 ac_cv_type_size_t=no
6012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6014 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6015 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6016 if test $ac_cv_type_size_t = yes; then
6020 cat >>confdefs.h <<_ACEOF
6021 #define size_t unsigned
6026 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6027 # for constant arguments. Useless!
6028 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6029 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6030 if test "${ac_cv_working_alloca_h+set}" = set; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
6033 cat >conftest.$ac_ext <<_ACEOF
6036 cat confdefs.h >>conftest.$ac_ext
6037 cat >>conftest.$ac_ext <<_ACEOF
6038 /* end confdefs.h. */
6043 char *p = (char *) alloca (2 * sizeof (int));
6048 rm -f conftest.$ac_objext conftest$ac_exeext
6049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6050 (eval $ac_link) 2>conftest.er1
6052 grep -v '^ *+' conftest.er1 >conftest.err
6054 cat conftest.err >&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); } &&
6057 { ac_try='test -z "$ac_c_werror_flag"
6058 || test ! -s conftest.err'
6059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); }; } &&
6064 { ac_try='test -s conftest$ac_exeext'
6065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); }; }; then
6070 ac_cv_working_alloca_h=yes
6072 echo "$as_me: failed program was:" >&5
6073 sed 's/^/| /' conftest.$ac_ext >&5
6075 ac_cv_working_alloca_h=no
6077 rm -f conftest.err conftest.$ac_objext \
6078 conftest$ac_exeext conftest.$ac_ext
6080 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6081 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6082 if test $ac_cv_working_alloca_h = yes; then
6084 cat >>confdefs.h <<\_ACEOF
6085 #define HAVE_ALLOCA_H 1
6090 echo "$as_me:$LINENO: checking for alloca" >&5
6091 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6092 if test "${ac_cv_func_alloca_works+set}" = set; then
6093 echo $ECHO_N "(cached) $ECHO_C" >&6
6095 cat >conftest.$ac_ext <<_ACEOF
6098 cat confdefs.h >>conftest.$ac_ext
6099 cat >>conftest.$ac_ext <<_ACEOF
6100 /* end confdefs.h. */
6102 # define alloca __builtin_alloca
6105 # include <malloc.h>
6106 # define alloca _alloca
6109 # include <alloca.h>
6114 # ifndef alloca /* predefined by HP cc +Olibcalls */
6125 char *p = (char *) alloca (1);
6130 rm -f conftest.$ac_objext conftest$ac_exeext
6131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6132 (eval $ac_link) 2>conftest.er1
6134 grep -v '^ *+' conftest.er1 >conftest.err
6136 cat conftest.err >&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); } &&
6139 { ac_try='test -z "$ac_c_werror_flag"
6140 || test ! -s conftest.err'
6141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); }; } &&
6146 { ac_try='test -s conftest$ac_exeext'
6147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); }; }; then
6152 ac_cv_func_alloca_works=yes
6154 echo "$as_me: failed program was:" >&5
6155 sed 's/^/| /' conftest.$ac_ext >&5
6157 ac_cv_func_alloca_works=no
6159 rm -f conftest.err conftest.$ac_objext \
6160 conftest$ac_exeext conftest.$ac_ext
6162 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6163 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6165 if test $ac_cv_func_alloca_works = yes; then
6167 cat >>confdefs.h <<\_ACEOF
6168 #define HAVE_ALLOCA 1
6172 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6173 # that cause trouble. Some versions do not even contain alloca or
6174 # contain a buggy version. If you still want to use their alloca,
6175 # use ar to extract alloca.o from them instead of compiling alloca.c.
6177 ALLOCA=alloca.$ac_objext
6179 cat >>confdefs.h <<\_ACEOF
6184 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6185 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6186 if test "${ac_cv_os_cray+set}" = set; then
6187 echo $ECHO_N "(cached) $ECHO_C" >&6
6189 cat >conftest.$ac_ext <<_ACEOF
6192 cat confdefs.h >>conftest.$ac_ext
6193 cat >>conftest.$ac_ext <<_ACEOF
6194 /* end confdefs.h. */
6195 #if defined(CRAY) && ! defined(CRAY2)
6202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6203 $EGREP "webecray" >/dev/null 2>&1; then
6211 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6212 echo "${ECHO_T}$ac_cv_os_cray" >&6
6213 if test $ac_cv_os_cray = yes; then
6214 for ac_func in _getb67 GETB67 getb67; do
6215 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6216 echo "$as_me:$LINENO: checking for $ac_func" >&5
6217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6218 if eval "test \"\${$as_ac_var+set}\" = set"; then
6219 echo $ECHO_N "(cached) $ECHO_C" >&6
6221 cat >conftest.$ac_ext <<_ACEOF
6224 cat confdefs.h >>conftest.$ac_ext
6225 cat >>conftest.$ac_ext <<_ACEOF
6226 /* end confdefs.h. */
6227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6229 #define $ac_func innocuous_$ac_func
6231 /* System header to define __stub macros and hopefully few prototypes,
6232 which can conflict with char $ac_func (); below.
6233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6234 <limits.h> exists even on freestanding compilers. */
6237 # include <limits.h>
6239 # include <assert.h>
6244 /* Override any gcc2 internal prototype to avoid an error. */
6249 /* We use char because int might match the return type of a gcc2
6250 builtin and then its argument prototype would still apply. */
6252 /* The GNU C library defines this for functions which it implements
6253 to always fail with ENOSYS. Some functions are actually named
6254 something starting with __ and the normal name is an alias. */
6255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6258 char (*f) () = $ac_func;
6267 return f != $ac_func;
6272 rm -f conftest.$ac_objext conftest$ac_exeext
6273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6274 (eval $ac_link) 2>conftest.er1
6276 grep -v '^ *+' conftest.er1 >conftest.err
6278 cat conftest.err >&5
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); } &&
6281 { ac_try='test -z "$ac_c_werror_flag"
6282 || test ! -s conftest.err'
6283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); }; } &&
6288 { ac_try='test -s conftest$ac_exeext'
6289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); }; }; then
6294 eval "$as_ac_var=yes"
6296 echo "$as_me: failed program was:" >&5
6297 sed 's/^/| /' conftest.$ac_ext >&5
6299 eval "$as_ac_var=no"
6301 rm -f conftest.err conftest.$ac_objext \
6302 conftest$ac_exeext conftest.$ac_ext
6304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6305 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6306 if test `eval echo '${'$as_ac_var'}'` = yes; then
6308 cat >>confdefs.h <<_ACEOF
6309 #define CRAY_STACKSEG_END $ac_func
6318 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6319 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6320 if test "${ac_cv_c_stack_direction+set}" = set; then
6321 echo $ECHO_N "(cached) $ECHO_C" >&6
6323 if test "$cross_compiling" = yes; then
6324 ac_cv_c_stack_direction=0
6326 cat >conftest.$ac_ext <<_ACEOF
6329 cat confdefs.h >>conftest.$ac_ext
6330 cat >>conftest.$ac_ext <<_ACEOF
6331 /* end confdefs.h. */
6333 find_stack_direction ()
6335 static char *addr = 0;
6340 return find_stack_direction ();
6343 return (&dummy > addr) ? 1 : -1;
6349 exit (find_stack_direction () < 0);
6352 rm -f conftest$ac_exeext
6353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6354 (eval $ac_link) 2>&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); }; }; then
6363 ac_cv_c_stack_direction=1
6365 echo "$as_me: program exited with status $ac_status" >&5
6366 echo "$as_me: failed program was:" >&5
6367 sed 's/^/| /' conftest.$ac_ext >&5
6370 ac_cv_c_stack_direction=-1
6372 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6375 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6376 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6378 cat >>confdefs.h <<_ACEOF
6379 #define STACK_DIRECTION $ac_cv_c_stack_direction
6387 for ac_header in stdlib.h unistd.h
6389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6391 echo "$as_me:$LINENO: checking for $ac_header" >&5
6392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6394 echo $ECHO_N "(cached) $ECHO_C" >&6
6396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6399 # Is the header compilable?
6400 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6401 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6402 cat >conftest.$ac_ext <<_ACEOF
6405 cat confdefs.h >>conftest.$ac_ext
6406 cat >>conftest.$ac_ext <<_ACEOF
6407 /* end confdefs.h. */
6408 $ac_includes_default
6409 #include <$ac_header>
6411 rm -f conftest.$ac_objext
6412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6413 (eval $ac_compile) 2>conftest.er1
6415 grep -v '^ *+' conftest.er1 >conftest.err
6417 cat conftest.err >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } &&
6420 { ac_try='test -z "$ac_c_werror_flag"
6421 || test ! -s conftest.err'
6422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); }; } &&
6427 { ac_try='test -s conftest.$ac_objext'
6428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; }; then
6433 ac_header_compiler=yes
6435 echo "$as_me: failed program was:" >&5
6436 sed 's/^/| /' conftest.$ac_ext >&5
6438 ac_header_compiler=no
6440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6441 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6442 echo "${ECHO_T}$ac_header_compiler" >&6
6444 # Is the header present?
6445 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6446 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6447 cat >conftest.$ac_ext <<_ACEOF
6450 cat confdefs.h >>conftest.$ac_ext
6451 cat >>conftest.$ac_ext <<_ACEOF
6452 /* end confdefs.h. */
6453 #include <$ac_header>
6455 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6456 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6458 grep -v '^ *+' conftest.er1 >conftest.err
6460 cat conftest.err >&5
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); } >/dev/null; then
6463 if test -s conftest.err; then
6464 ac_cpp_err=$ac_c_preproc_warn_flag
6465 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6472 if test -z "$ac_cpp_err"; then
6473 ac_header_preproc=yes
6475 echo "$as_me: failed program was:" >&5
6476 sed 's/^/| /' conftest.$ac_ext >&5
6478 ac_header_preproc=no
6480 rm -f conftest.err conftest.$ac_ext
6481 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6482 echo "${ECHO_T}$ac_header_preproc" >&6
6484 # So? What about this header?
6485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6487 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6491 ac_header_preproc=yes
6494 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6496 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6497 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6498 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6499 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6500 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6501 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6504 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6505 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6508 ## ------------------------------------------ ##
6509 ## Report this to the AC_PACKAGE_NAME lists. ##
6510 ## ------------------------------------------ ##
6513 sed "s/^/$as_me: WARNING: /" >&2
6516 echo "$as_me:$LINENO: checking for $ac_header" >&5
6517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6521 eval "$as_ac_Header=\$ac_header_preproc"
6523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6527 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6528 cat >>confdefs.h <<_ACEOF
6529 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6537 for ac_func in getpagesize
6539 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6540 echo "$as_me:$LINENO: checking for $ac_func" >&5
6541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6542 if eval "test \"\${$as_ac_var+set}\" = set"; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6545 cat >conftest.$ac_ext <<_ACEOF
6548 cat confdefs.h >>conftest.$ac_ext
6549 cat >>conftest.$ac_ext <<_ACEOF
6550 /* end confdefs.h. */
6551 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6553 #define $ac_func innocuous_$ac_func
6555 /* System header to define __stub macros and hopefully few prototypes,
6556 which can conflict with char $ac_func (); below.
6557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6558 <limits.h> exists even on freestanding compilers. */
6561 # include <limits.h>
6563 # include <assert.h>
6568 /* Override any gcc2 internal prototype to avoid an error. */
6573 /* We use char because int might match the return type of a gcc2
6574 builtin and then its argument prototype would still apply. */
6576 /* The GNU C library defines this for functions which it implements
6577 to always fail with ENOSYS. Some functions are actually named
6578 something starting with __ and the normal name is an alias. */
6579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6582 char (*f) () = $ac_func;
6591 return f != $ac_func;
6596 rm -f conftest.$ac_objext conftest$ac_exeext
6597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6598 (eval $ac_link) 2>conftest.er1
6600 grep -v '^ *+' conftest.er1 >conftest.err
6602 cat conftest.err >&5
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); } &&
6605 { ac_try='test -z "$ac_c_werror_flag"
6606 || test ! -s conftest.err'
6607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); }; } &&
6612 { ac_try='test -s conftest$ac_exeext'
6613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); }; }; then
6618 eval "$as_ac_var=yes"
6620 echo "$as_me: failed program was:" >&5
6621 sed 's/^/| /' conftest.$ac_ext >&5
6623 eval "$as_ac_var=no"
6625 rm -f conftest.err conftest.$ac_objext \
6626 conftest$ac_exeext conftest.$ac_ext
6628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6629 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6630 if test `eval echo '${'$as_ac_var'}'` = yes; then
6631 cat >>confdefs.h <<_ACEOF
6632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6638 echo "$as_me:$LINENO: checking for working mmap" >&5
6639 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6640 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6643 if test "$cross_compiling" = yes; then
6644 ac_cv_func_mmap_fixed_mapped=no
6646 cat >conftest.$ac_ext <<_ACEOF
6649 cat confdefs.h >>conftest.$ac_ext
6650 cat >>conftest.$ac_ext <<_ACEOF
6651 /* end confdefs.h. */
6652 $ac_includes_default
6653 /* malloc might have been renamed as rpl_malloc. */
6656 /* Thanks to Mike Haertel and Jim Avera for this test.
6657 Here is a matrix of mmap possibilities:
6658 mmap private not fixed
6659 mmap private fixed at somewhere currently unmapped
6660 mmap private fixed at somewhere already mapped
6661 mmap shared not fixed
6662 mmap shared fixed at somewhere currently unmapped
6663 mmap shared fixed at somewhere already mapped
6664 For private mappings, we should verify that changes cannot be read()
6665 back from the file, nor mmap's back from the file at a different
6666 address. (There have been systems where private was not correctly
6667 implemented like the infamous i386 svr4.0, and systems where the
6668 VM page cache was not coherent with the file system buffer cache
6669 like early versions of FreeBSD and possibly contemporary NetBSD.)
6670 For shared mappings, we should conversely verify that changes get
6671 propagated back to all the places they're supposed to be.
6673 Grep wants private fixed already mapped.
6674 The main things grep needs to know about mmap are:
6675 * does it exist and is it safe to write into the mmap'd area
6676 * how to use it (BSD variants) */
6679 #include <sys/mman.h>
6681 #if !STDC_HEADERS && !HAVE_STDLIB_H
6685 /* This mess was copied from the GNU getpagesize.h. */
6686 #if !HAVE_GETPAGESIZE
6687 /* Assume that all systems that can run configure have sys/param.h. */
6688 # if !HAVE_SYS_PARAM_H
6689 # define HAVE_SYS_PARAM_H 1
6692 # ifdef _SC_PAGESIZE
6693 # define getpagesize() sysconf(_SC_PAGESIZE)
6694 # else /* no _SC_PAGESIZE */
6695 # if HAVE_SYS_PARAM_H
6696 # include <sys/param.h>
6697 # ifdef EXEC_PAGESIZE
6698 # define getpagesize() EXEC_PAGESIZE
6699 # else /* no EXEC_PAGESIZE */
6701 # define getpagesize() NBPG * CLSIZE
6704 # endif /* no CLSIZE */
6705 # else /* no NBPG */
6707 # define getpagesize() NBPC
6708 # else /* no NBPC */
6710 # define getpagesize() PAGESIZE
6711 # endif /* PAGESIZE */
6712 # endif /* no NBPC */
6713 # endif /* no NBPG */
6714 # endif /* no EXEC_PAGESIZE */
6715 # else /* no HAVE_SYS_PARAM_H */
6716 # define getpagesize() 8192 /* punt totally */
6717 # endif /* no HAVE_SYS_PARAM_H */
6718 # endif /* no _SC_PAGESIZE */
6720 #endif /* no HAVE_GETPAGESIZE */
6725 char *data, *data2, *data3;
6729 pagesize = getpagesize ();
6731 /* First, make a file with some known garbage in it. */
6732 data = (char *) malloc (pagesize);
6735 for (i = 0; i < pagesize; ++i)
6736 *(data + i) = rand ();
6738 fd = creat ("conftest.mmap", 0600);
6741 if (write (fd, data, pagesize) != pagesize)
6745 /* Next, try to mmap the file at a fixed address which already has
6746 something else allocated at it. If we can, also make sure that
6747 we see the same garbage. */
6748 fd = open ("conftest.mmap", O_RDWR);
6751 data2 = (char *) malloc (2 * pagesize);
6754 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6755 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6756 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6758 for (i = 0; i < pagesize; ++i)
6759 if (*(data + i) != *(data2 + i))
6762 /* Finally, make sure that changes to the mapped area do not
6763 percolate back to the file as seen by read(). (This is a bug on
6764 some variants of i386 svr4.0.) */
6765 for (i = 0; i < pagesize; ++i)
6766 *(data2 + i) = *(data2 + i) + 1;
6767 data3 = (char *) malloc (pagesize);
6770 if (read (fd, data3, pagesize) != pagesize)
6772 for (i = 0; i < pagesize; ++i)
6773 if (*(data + i) != *(data3 + i))
6779 rm -f conftest$ac_exeext
6780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6781 (eval $ac_link) 2>&5
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 (exit $ac_status); }; }; then
6790 ac_cv_func_mmap_fixed_mapped=yes
6792 echo "$as_me: program exited with status $ac_status" >&5
6793 echo "$as_me: failed program was:" >&5
6794 sed 's/^/| /' conftest.$ac_ext >&5
6797 ac_cv_func_mmap_fixed_mapped=no
6799 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6802 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6803 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6804 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6806 cat >>confdefs.h <<\_ACEOF
6823 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6824 unistd.h values.h sys/param.h
6826 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6828 echo "$as_me:$LINENO: checking for $ac_header" >&5
6829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6831 echo $ECHO_N "(cached) $ECHO_C" >&6
6833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6836 # Is the header compilable?
6837 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6838 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6839 cat >conftest.$ac_ext <<_ACEOF
6842 cat confdefs.h >>conftest.$ac_ext
6843 cat >>conftest.$ac_ext <<_ACEOF
6844 /* end confdefs.h. */
6845 $ac_includes_default
6846 #include <$ac_header>
6848 rm -f conftest.$ac_objext
6849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6850 (eval $ac_compile) 2>conftest.er1
6852 grep -v '^ *+' conftest.er1 >conftest.err
6854 cat conftest.err >&5
6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); } &&
6857 { ac_try='test -z "$ac_c_werror_flag"
6858 || test ! -s conftest.err'
6859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863 (exit $ac_status); }; } &&
6864 { ac_try='test -s conftest.$ac_objext'
6865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); }; }; then
6870 ac_header_compiler=yes
6872 echo "$as_me: failed program was:" >&5
6873 sed 's/^/| /' conftest.$ac_ext >&5
6875 ac_header_compiler=no
6877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6878 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6879 echo "${ECHO_T}$ac_header_compiler" >&6
6881 # Is the header present?
6882 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6883 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6884 cat >conftest.$ac_ext <<_ACEOF
6887 cat confdefs.h >>conftest.$ac_ext
6888 cat >>conftest.$ac_ext <<_ACEOF
6889 /* end confdefs.h. */
6890 #include <$ac_header>
6892 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6893 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6895 grep -v '^ *+' conftest.er1 >conftest.err
6897 cat conftest.err >&5
6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); } >/dev/null; then
6900 if test -s conftest.err; then
6901 ac_cpp_err=$ac_c_preproc_warn_flag
6902 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6909 if test -z "$ac_cpp_err"; then
6910 ac_header_preproc=yes
6912 echo "$as_me: failed program was:" >&5
6913 sed 's/^/| /' conftest.$ac_ext >&5
6915 ac_header_preproc=no
6917 rm -f conftest.err conftest.$ac_ext
6918 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6919 echo "${ECHO_T}$ac_header_preproc" >&6
6921 # So? What about this header?
6922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6924 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6925 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6927 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6928 ac_header_preproc=yes
6931 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6932 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6933 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6934 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6935 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6936 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6937 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6938 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6940 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6941 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6942 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6945 ## ------------------------------------------ ##
6946 ## Report this to the AC_PACKAGE_NAME lists. ##
6947 ## ------------------------------------------ ##
6950 sed "s/^/$as_me: WARNING: /" >&2
6953 echo "$as_me:$LINENO: checking for $ac_header" >&5
6954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6956 echo $ECHO_N "(cached) $ECHO_C" >&6
6958 eval "$as_ac_Header=\$ac_header_preproc"
6960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6961 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6965 cat >>confdefs.h <<_ACEOF
6966 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6983 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
6984 __argz_count __argz_stringify __argz_next
6986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6987 echo "$as_me:$LINENO: checking for $ac_func" >&5
6988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6989 if eval "test \"\${$as_ac_var+set}\" = set"; then
6990 echo $ECHO_N "(cached) $ECHO_C" >&6
6992 cat >conftest.$ac_ext <<_ACEOF
6995 cat confdefs.h >>conftest.$ac_ext
6996 cat >>conftest.$ac_ext <<_ACEOF
6997 /* end confdefs.h. */
6998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7000 #define $ac_func innocuous_$ac_func
7002 /* System header to define __stub macros and hopefully few prototypes,
7003 which can conflict with char $ac_func (); below.
7004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7005 <limits.h> exists even on freestanding compilers. */
7008 # include <limits.h>
7010 # include <assert.h>
7015 /* Override any gcc2 internal prototype to avoid an error. */
7020 /* We use char because int might match the return type of a gcc2
7021 builtin and then its argument prototype would still apply. */
7023 /* The GNU C library defines this for functions which it implements
7024 to always fail with ENOSYS. Some functions are actually named
7025 something starting with __ and the normal name is an alias. */
7026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7029 char (*f) () = $ac_func;
7038 return f != $ac_func;
7043 rm -f conftest.$ac_objext conftest$ac_exeext
7044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7045 (eval $ac_link) 2>conftest.er1
7047 grep -v '^ *+' conftest.er1 >conftest.err
7049 cat conftest.err >&5
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); } &&
7052 { ac_try='test -z "$ac_c_werror_flag"
7053 || test ! -s conftest.err'
7054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058 (exit $ac_status); }; } &&
7059 { ac_try='test -s conftest$ac_exeext'
7060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); }; }; then
7065 eval "$as_ac_var=yes"
7067 echo "$as_me: failed program was:" >&5
7068 sed 's/^/| /' conftest.$ac_ext >&5
7070 eval "$as_ac_var=no"
7072 rm -f conftest.err conftest.$ac_objext \
7073 conftest$ac_exeext conftest.$ac_ext
7075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7076 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7077 if test `eval echo '${'$as_ac_var'}'` = yes; then
7078 cat >>confdefs.h <<_ACEOF
7079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7086 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7088 for ac_func in stpcpy
7090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7091 echo "$as_me:$LINENO: checking for $ac_func" >&5
7092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7093 if eval "test \"\${$as_ac_var+set}\" = set"; then
7094 echo $ECHO_N "(cached) $ECHO_C" >&6
7096 cat >conftest.$ac_ext <<_ACEOF
7099 cat confdefs.h >>conftest.$ac_ext
7100 cat >>conftest.$ac_ext <<_ACEOF
7101 /* end confdefs.h. */
7102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7104 #define $ac_func innocuous_$ac_func
7106 /* System header to define __stub macros and hopefully few prototypes,
7107 which can conflict with char $ac_func (); below.
7108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7109 <limits.h> exists even on freestanding compilers. */
7112 # include <limits.h>
7114 # include <assert.h>
7119 /* Override any gcc2 internal prototype to avoid an error. */
7124 /* We use char because int might match the return type of a gcc2
7125 builtin and then its argument prototype would still apply. */
7127 /* The GNU C library defines this for functions which it implements
7128 to always fail with ENOSYS. Some functions are actually named
7129 something starting with __ and the normal name is an alias. */
7130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7133 char (*f) () = $ac_func;
7142 return f != $ac_func;
7147 rm -f conftest.$ac_objext conftest$ac_exeext
7148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7149 (eval $ac_link) 2>conftest.er1
7151 grep -v '^ *+' conftest.er1 >conftest.err
7153 cat conftest.err >&5
7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); } &&
7156 { ac_try='test -z "$ac_c_werror_flag"
7157 || test ! -s conftest.err'
7158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); }; } &&
7163 { ac_try='test -s conftest$ac_exeext'
7164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); }; }; then
7169 eval "$as_ac_var=yes"
7171 echo "$as_me: failed program was:" >&5
7172 sed 's/^/| /' conftest.$ac_ext >&5
7174 eval "$as_ac_var=no"
7176 rm -f conftest.err conftest.$ac_objext \
7177 conftest$ac_exeext conftest.$ac_ext
7179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7180 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7181 if test `eval echo '${'$as_ac_var'}'` = yes; then
7182 cat >>confdefs.h <<_ACEOF
7183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7190 if test "${ac_cv_func_stpcpy}" = "yes"; then
7192 cat >>confdefs.h <<\_ACEOF
7193 #define HAVE_STPCPY 1
7198 if test $ac_cv_header_locale_h = yes; then
7199 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7200 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7201 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7202 echo $ECHO_N "(cached) $ECHO_C" >&6
7204 cat >conftest.$ac_ext <<_ACEOF
7207 cat confdefs.h >>conftest.$ac_ext
7208 cat >>conftest.$ac_ext <<_ACEOF
7209 /* end confdefs.h. */
7219 rm -f conftest.$ac_objext conftest$ac_exeext
7220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7221 (eval $ac_link) 2>conftest.er1
7223 grep -v '^ *+' conftest.er1 >conftest.err
7225 cat conftest.err >&5
7226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); } &&
7228 { ac_try='test -z "$ac_c_werror_flag"
7229 || test ! -s conftest.err'
7230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); }; } &&
7235 { ac_try='test -s conftest$ac_exeext'
7236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240 (exit $ac_status); }; }; then
7241 am_cv_val_LC_MESSAGES=yes
7243 echo "$as_me: failed program was:" >&5
7244 sed 's/^/| /' conftest.$ac_ext >&5
7246 am_cv_val_LC_MESSAGES=no
7248 rm -f conftest.err conftest.$ac_objext \
7249 conftest$ac_exeext conftest.$ac_ext
7251 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7252 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7253 if test $am_cv_val_LC_MESSAGES = yes; then
7255 cat >>confdefs.h <<\_ACEOF
7256 #define HAVE_LC_MESSAGES 1
7261 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7262 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7263 # Check whether --enable-nls or --disable-nls was given.
7264 if test "${enable_nls+set}" = set; then
7265 enableval="$enable_nls"
7270 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7271 echo "${ECHO_T}$USE_NLS" >&6
7274 USE_INCLUDED_LIBINTL=no
7276 if test "$USE_NLS" = "yes"; then
7277 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7278 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7280 # Check whether --with-included-gettext or --without-included-gettext was given.
7281 if test "${with_included_gettext+set}" = set; then
7282 withval="$with_included_gettext"
7283 nls_cv_force_use_gnu_gettext=$withval
7285 nls_cv_force_use_gnu_gettext=no
7287 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7288 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7290 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7291 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7293 nls_cv_header_libgt=
7296 if test "${ac_cv_header_libintl_h+set}" = set; then
7297 echo "$as_me:$LINENO: checking for libintl.h" >&5
7298 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7299 if test "${ac_cv_header_libintl_h+set}" = set; then
7300 echo $ECHO_N "(cached) $ECHO_C" >&6
7302 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7303 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7305 # Is the header compilable?
7306 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7307 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7308 cat >conftest.$ac_ext <<_ACEOF
7311 cat confdefs.h >>conftest.$ac_ext
7312 cat >>conftest.$ac_ext <<_ACEOF
7313 /* end confdefs.h. */
7314 $ac_includes_default
7315 #include <libintl.h>
7317 rm -f conftest.$ac_objext
7318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7319 (eval $ac_compile) 2>conftest.er1
7321 grep -v '^ *+' conftest.er1 >conftest.err
7323 cat conftest.err >&5
7324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325 (exit $ac_status); } &&
7326 { ac_try='test -z "$ac_c_werror_flag"
7327 || test ! -s conftest.err'
7328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); }; } &&
7333 { ac_try='test -s conftest.$ac_objext'
7334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); }; }; then
7339 ac_header_compiler=yes
7341 echo "$as_me: failed program was:" >&5
7342 sed 's/^/| /' conftest.$ac_ext >&5
7344 ac_header_compiler=no
7346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7347 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7348 echo "${ECHO_T}$ac_header_compiler" >&6
7350 # Is the header present?
7351 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7352 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7353 cat >conftest.$ac_ext <<_ACEOF
7356 cat confdefs.h >>conftest.$ac_ext
7357 cat >>conftest.$ac_ext <<_ACEOF
7358 /* end confdefs.h. */
7359 #include <libintl.h>
7361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7364 grep -v '^ *+' conftest.er1 >conftest.err
7366 cat conftest.err >&5
7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); } >/dev/null; then
7369 if test -s conftest.err; then
7370 ac_cpp_err=$ac_c_preproc_warn_flag
7371 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7378 if test -z "$ac_cpp_err"; then
7379 ac_header_preproc=yes
7381 echo "$as_me: failed program was:" >&5
7382 sed 's/^/| /' conftest.$ac_ext >&5
7384 ac_header_preproc=no
7386 rm -f conftest.err conftest.$ac_ext
7387 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7388 echo "${ECHO_T}$ac_header_preproc" >&6
7390 # So? What about this header?
7391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7393 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7394 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7395 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7396 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7397 ac_header_preproc=yes
7400 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7401 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7402 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7403 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7404 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7405 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7406 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7407 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7408 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7409 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7410 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7411 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7414 ## ------------------------------------------ ##
7415 ## Report this to the AC_PACKAGE_NAME lists. ##
7416 ## ------------------------------------------ ##
7419 sed "s/^/$as_me: WARNING: /" >&2
7422 echo "$as_me:$LINENO: checking for libintl.h" >&5
7423 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7424 if test "${ac_cv_header_libintl_h+set}" = set; then
7425 echo $ECHO_N "(cached) $ECHO_C" >&6
7427 ac_cv_header_libintl_h=$ac_header_preproc
7429 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7430 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7433 if test $ac_cv_header_libintl_h = yes; then
7434 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7435 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7436 if test "${gt_cv_func_gettext_libc+set}" = set; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
7439 cat >conftest.$ac_ext <<_ACEOF
7442 cat confdefs.h >>conftest.$ac_ext
7443 cat >>conftest.$ac_ext <<_ACEOF
7444 /* end confdefs.h. */
7445 #include <libintl.h>
7449 return (int) gettext ("")
7454 rm -f conftest.$ac_objext conftest$ac_exeext
7455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7456 (eval $ac_link) 2>conftest.er1
7458 grep -v '^ *+' conftest.er1 >conftest.err
7460 cat conftest.err >&5
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); } &&
7463 { ac_try='test -z "$ac_c_werror_flag"
7464 || test ! -s conftest.err'
7465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); }; } &&
7470 { ac_try='test -s conftest$ac_exeext'
7471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); }; }; then
7476 gt_cv_func_gettext_libc=yes
7478 echo "$as_me: failed program was:" >&5
7479 sed 's/^/| /' conftest.$ac_ext >&5
7481 gt_cv_func_gettext_libc=no
7483 rm -f conftest.err conftest.$ac_objext \
7484 conftest$ac_exeext conftest.$ac_ext
7486 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7487 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
7489 if test "$gt_cv_func_gettext_libc" != "yes"; then
7490 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7491 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7492 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
7495 ac_check_lib_save_LIBS=$LIBS
7497 cat >conftest.$ac_ext <<_ACEOF
7500 cat confdefs.h >>conftest.$ac_ext
7501 cat >>conftest.$ac_ext <<_ACEOF
7502 /* end confdefs.h. */
7504 /* Override any gcc2 internal prototype to avoid an error. */
7508 /* We use char because int might match the return type of a gcc2
7509 builtin and then its argument prototype would still apply. */
7510 char bindtextdomain ();
7519 rm -f conftest.$ac_objext conftest$ac_exeext
7520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7521 (eval $ac_link) 2>conftest.er1
7523 grep -v '^ *+' conftest.er1 >conftest.err
7525 cat conftest.err >&5
7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); } &&
7528 { ac_try='test -z "$ac_c_werror_flag"
7529 || test ! -s conftest.err'
7530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); }; } &&
7535 { ac_try='test -s conftest$ac_exeext'
7536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); }; }; then
7541 ac_cv_lib_intl_bindtextdomain=yes
7543 echo "$as_me: failed program was:" >&5
7544 sed 's/^/| /' conftest.$ac_ext >&5
7546 ac_cv_lib_intl_bindtextdomain=no
7548 rm -f conftest.err conftest.$ac_objext \
7549 conftest$ac_exeext conftest.$ac_ext
7550 LIBS=$ac_check_lib_save_LIBS
7552 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7553 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7554 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7555 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7556 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7557 if test "${gt_cv_func_gettext_libintl+set}" = set; then
7558 echo $ECHO_N "(cached) $ECHO_C" >&6
7560 cat >conftest.$ac_ext <<_ACEOF
7563 cat confdefs.h >>conftest.$ac_ext
7564 cat >>conftest.$ac_ext <<_ACEOF
7565 /* end confdefs.h. */
7570 return (int) gettext ("")
7575 rm -f conftest.$ac_objext conftest$ac_exeext
7576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7577 (eval $ac_link) 2>conftest.er1
7579 grep -v '^ *+' conftest.er1 >conftest.err
7581 cat conftest.err >&5
7582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583 (exit $ac_status); } &&
7584 { ac_try='test -z "$ac_c_werror_flag"
7585 || test ! -s conftest.err'
7586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 (exit $ac_status); }; } &&
7591 { ac_try='test -s conftest$ac_exeext'
7592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); }; }; then
7597 gt_cv_func_gettext_libintl=yes
7599 echo "$as_me: failed program was:" >&5
7600 sed 's/^/| /' conftest.$ac_ext >&5
7602 gt_cv_func_gettext_libintl=no
7604 rm -f conftest.err conftest.$ac_objext \
7605 conftest$ac_exeext conftest.$ac_ext
7607 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7608 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
7613 if test "$gt_cv_func_gettext_libc" = "yes" \
7614 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7616 cat >>confdefs.h <<\_ACEOF
7617 #define HAVE_GETTEXT 1
7620 # Extract the first word of "msgfmt", so it can be a program name with args.
7621 set dummy msgfmt; ac_word=$2
7622 echo "$as_me:$LINENO: checking for $ac_word" >&5
7623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7624 if test "${ac_cv_path_MSGFMT+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7629 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7632 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7633 for ac_dir in $PATH; do
7634 test -z "$ac_dir" && ac_dir=.
7635 if test -f $ac_dir/$ac_word; then
7636 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7637 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7643 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7647 MSGFMT="$ac_cv_path_MSGFMT"
7648 if test -n "$MSGFMT"; then
7649 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7650 echo "${ECHO_T}$MSGFMT" >&6
7652 echo "$as_me:$LINENO: result: no" >&5
7653 echo "${ECHO_T}no" >&6
7655 if test "$MSGFMT" != "no"; then
7657 for ac_func in dcgettext
7659 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7660 echo "$as_me:$LINENO: checking for $ac_func" >&5
7661 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7662 if eval "test \"\${$as_ac_var+set}\" = set"; then
7663 echo $ECHO_N "(cached) $ECHO_C" >&6
7665 cat >conftest.$ac_ext <<_ACEOF
7668 cat confdefs.h >>conftest.$ac_ext
7669 cat >>conftest.$ac_ext <<_ACEOF
7670 /* end confdefs.h. */
7671 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7673 #define $ac_func innocuous_$ac_func
7675 /* System header to define __stub macros and hopefully few prototypes,
7676 which can conflict with char $ac_func (); below.
7677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7678 <limits.h> exists even on freestanding compilers. */
7681 # include <limits.h>
7683 # include <assert.h>
7688 /* Override any gcc2 internal prototype to avoid an error. */
7693 /* We use char because int might match the return type of a gcc2
7694 builtin and then its argument prototype would still apply. */
7696 /* The GNU C library defines this for functions which it implements
7697 to always fail with ENOSYS. Some functions are actually named
7698 something starting with __ and the normal name is an alias. */
7699 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7702 char (*f) () = $ac_func;
7711 return f != $ac_func;
7716 rm -f conftest.$ac_objext conftest$ac_exeext
7717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7718 (eval $ac_link) 2>conftest.er1
7720 grep -v '^ *+' conftest.er1 >conftest.err
7722 cat conftest.err >&5
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); } &&
7725 { ac_try='test -z "$ac_c_werror_flag"
7726 || test ! -s conftest.err'
7727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); }; } &&
7732 { ac_try='test -s conftest$ac_exeext'
7733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); }; }; then
7738 eval "$as_ac_var=yes"
7740 echo "$as_me: failed program was:" >&5
7741 sed 's/^/| /' conftest.$ac_ext >&5
7743 eval "$as_ac_var=no"
7745 rm -f conftest.err conftest.$ac_objext \
7746 conftest$ac_exeext conftest.$ac_ext
7748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7749 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7750 if test `eval echo '${'$as_ac_var'}'` = yes; then
7751 cat >>confdefs.h <<_ACEOF
7752 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7758 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7759 set dummy gmsgfmt; ac_word=$2
7760 echo "$as_me:$LINENO: checking for $ac_word" >&5
7761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7762 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7763 echo $ECHO_N "(cached) $ECHO_C" >&6
7767 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774 test -z "$as_dir" && as_dir=.
7775 for ac_exec_ext in '' $ac_executable_extensions; do
7776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7777 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7784 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7788 GMSGFMT=$ac_cv_path_GMSGFMT
7790 if test -n "$GMSGFMT"; then
7791 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7792 echo "${ECHO_T}$GMSGFMT" >&6
7794 echo "$as_me:$LINENO: result: no" >&5
7795 echo "${ECHO_T}no" >&6
7798 # Extract the first word of "xgettext", so it can be a program name with args.
7799 set dummy xgettext; ac_word=$2
7800 echo "$as_me:$LINENO: checking for $ac_word" >&5
7801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7802 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7803 echo $ECHO_N "(cached) $ECHO_C" >&6
7807 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7810 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7811 for ac_dir in $PATH; do
7812 test -z "$ac_dir" && ac_dir=.
7813 if test -f $ac_dir/$ac_word; then
7814 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7815 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7821 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7825 XGETTEXT="$ac_cv_path_XGETTEXT"
7826 if test -n "$XGETTEXT"; then
7827 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7828 echo "${ECHO_T}$XGETTEXT" >&6
7830 echo "$as_me:$LINENO: result: no" >&5
7831 echo "${ECHO_T}no" >&6
7834 cat >conftest.$ac_ext <<_ACEOF
7837 cat confdefs.h >>conftest.$ac_ext
7838 cat >>conftest.$ac_ext <<_ACEOF
7839 /* end confdefs.h. */
7844 extern int _nl_msg_cat_cntr;
7845 return _nl_msg_cat_cntr
7850 rm -f conftest.$ac_objext conftest$ac_exeext
7851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7852 (eval $ac_link) 2>conftest.er1
7854 grep -v '^ *+' conftest.er1 >conftest.err
7856 cat conftest.err >&5
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); } &&
7859 { ac_try='test -z "$ac_c_werror_flag"
7860 || test ! -s conftest.err'
7861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); }; } &&
7866 { ac_try='test -s conftest$ac_exeext'
7867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); }; }; then
7875 echo "$as_me: failed program was:" >&5
7876 sed 's/^/| /' conftest.$ac_ext >&5
7881 rm -f conftest.err conftest.$ac_objext \
7882 conftest$ac_exeext conftest.$ac_ext
7892 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
7893 # Neither gettext nor catgets in included in the C library.
7894 # Fall back on GNU gettext library (assuming it is present).
7895 nls_cv_use_gnu_gettext=yes
7899 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7900 INTLOBJS="\$(GETTOBJS)"
7901 # Extract the first word of "msgfmt", so it can be a program name with args.
7902 set dummy msgfmt; 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_MSGFMT+set}" = set; then
7906 echo $ECHO_N "(cached) $ECHO_C" >&6
7910 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7913 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7914 for ac_dir in $PATH; do
7915 test -z "$ac_dir" && ac_dir=.
7916 if test -f $ac_dir/$ac_word; then
7917 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7918 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7924 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7928 MSGFMT="$ac_cv_path_MSGFMT"
7929 if test -n "$MSGFMT"; then
7930 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7931 echo "${ECHO_T}$MSGFMT" >&6
7933 echo "$as_me:$LINENO: result: no" >&5
7934 echo "${ECHO_T}no" >&6
7937 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7938 set dummy gmsgfmt; ac_word=$2
7939 echo "$as_me:$LINENO: checking for $ac_word" >&5
7940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7941 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7942 echo $ECHO_N "(cached) $ECHO_C" >&6
7946 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7953 test -z "$as_dir" && as_dir=.
7954 for ac_exec_ext in '' $ac_executable_extensions; do
7955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7956 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7963 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7967 GMSGFMT=$ac_cv_path_GMSGFMT
7969 if test -n "$GMSGFMT"; then
7970 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7971 echo "${ECHO_T}$GMSGFMT" >&6
7973 echo "$as_me:$LINENO: result: no" >&5
7974 echo "${ECHO_T}no" >&6
7977 # Extract the first word of "xgettext", so it can be a program name with args.
7978 set dummy xgettext; ac_word=$2
7979 echo "$as_me:$LINENO: checking for $ac_word" >&5
7980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7981 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7982 echo $ECHO_N "(cached) $ECHO_C" >&6
7986 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7989 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7990 for ac_dir in $PATH; do
7991 test -z "$ac_dir" && ac_dir=.
7992 if test -f $ac_dir/$ac_word; then
7993 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7994 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8000 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8004 XGETTEXT="$ac_cv_path_XGETTEXT"
8005 if test -n "$XGETTEXT"; then
8006 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8007 echo "${ECHO_T}$XGETTEXT" >&6
8009 echo "$as_me:$LINENO: result: no" >&5
8010 echo "${ECHO_T}no" >&6
8014 USE_INCLUDED_LIBINTL=yes
8018 INTLDEPS='$(top_builddir)/../intl/libintl.a'
8020 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8021 nls_cv_header_intl=libintl.h
8022 nls_cv_header_libgt=libgettext.h
8025 if test "$XGETTEXT" != ":"; then
8026 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8029 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
8030 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
8035 # We need to process the po/ directory.
8039 nls_cv_header_intl=libintl.h
8040 nls_cv_header_libgt=libgettext.h
8043 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8044 # because some of the sources are only built for this goal.
8045 if test "$PACKAGE" = gettext; then
8047 USE_INCLUDED_LIBINTL=yes
8050 for lang in $ALL_LINGUAS; do
8051 GMOFILES="$GMOFILES $lang.gmo"
8052 POFILES="$POFILES $lang.po"
8066 if test "x$CATOBJEXT" != "x"; then
8068 cat >>confdefs.h <<\_ACEOF
8069 #define ENABLE_NLS 1
8075 if test "x$CATOBJEXT" != "x"; then
8076 if test "x$ALL_LINGUAS" = "x"; then
8079 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8080 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8082 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8083 case "$ALL_LINGUAS" in
8084 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8087 LINGUAS=$NEW_LINGUAS
8088 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8089 echo "${ECHO_T}$LINGUAS" >&6
8092 if test -n "$LINGUAS"; then
8093 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8097 if test $ac_cv_header_locale_h = yes; then
8098 INCLUDE_LOCALE_H="#include <locale.h>"
8101 /* The system does not provide the header <locale.h>. Take care yourself. */"
8105 if test -f $srcdir/po2tbl.sed.in; then
8106 if test "$CATOBJEXT" = ".cat"; then
8107 if test "${ac_cv_header_linux_version_h+set}" = set; then
8108 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8109 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8110 if test "${ac_cv_header_linux_version_h+set}" = set; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
8113 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8114 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8116 # Is the header compilable?
8117 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8118 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8119 cat >conftest.$ac_ext <<_ACEOF
8122 cat confdefs.h >>conftest.$ac_ext
8123 cat >>conftest.$ac_ext <<_ACEOF
8124 /* end confdefs.h. */
8125 $ac_includes_default
8126 #include <linux/version.h>
8128 rm -f conftest.$ac_objext
8129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8130 (eval $ac_compile) 2>conftest.er1
8132 grep -v '^ *+' conftest.er1 >conftest.err
8134 cat conftest.err >&5
8135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136 (exit $ac_status); } &&
8137 { ac_try='test -z "$ac_c_werror_flag"
8138 || test ! -s conftest.err'
8139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); }; } &&
8144 { ac_try='test -s conftest.$ac_objext'
8145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); }; }; then
8150 ac_header_compiler=yes
8152 echo "$as_me: failed program was:" >&5
8153 sed 's/^/| /' conftest.$ac_ext >&5
8155 ac_header_compiler=no
8157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8158 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8159 echo "${ECHO_T}$ac_header_compiler" >&6
8161 # Is the header present?
8162 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8163 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8164 cat >conftest.$ac_ext <<_ACEOF
8167 cat confdefs.h >>conftest.$ac_ext
8168 cat >>conftest.$ac_ext <<_ACEOF
8169 /* end confdefs.h. */
8170 #include <linux/version.h>
8172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8173 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8175 grep -v '^ *+' conftest.er1 >conftest.err
8177 cat conftest.err >&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); } >/dev/null; then
8180 if test -s conftest.err; then
8181 ac_cpp_err=$ac_c_preproc_warn_flag
8182 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8189 if test -z "$ac_cpp_err"; then
8190 ac_header_preproc=yes
8192 echo "$as_me: failed program was:" >&5
8193 sed 's/^/| /' conftest.$ac_ext >&5
8195 ac_header_preproc=no
8197 rm -f conftest.err conftest.$ac_ext
8198 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8199 echo "${ECHO_T}$ac_header_preproc" >&6
8201 # So? What about this header?
8202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8204 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8205 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8206 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
8207 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
8208 ac_header_preproc=yes
8211 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8212 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8213 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8214 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8215 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
8216 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
8217 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
8218 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
8219 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8220 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8221 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8222 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8225 ## ------------------------------------------ ##
8226 ## Report this to the AC_PACKAGE_NAME lists. ##
8227 ## ------------------------------------------ ##
8230 sed "s/^/$as_me: WARNING: /" >&2
8233 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8234 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8235 if test "${ac_cv_header_linux_version_h+set}" = set; then
8236 echo $ECHO_N "(cached) $ECHO_C" >&6
8238 ac_cv_header_linux_version_h=$ac_header_preproc
8240 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8241 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8244 if test $ac_cv_header_linux_version_h = yes; then
8252 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8254 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8255 $srcdir/po2tbl.sed.in > po2tbl.sed
8258 if test "$PACKAGE" = "gettext"; then
8268 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
8274 if test -f $srcdir/po/POTFILES.in; then
8275 test -d po || mkdir po
8276 if test "x$srcdir" != "x."; then
8277 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8278 posrcprefix="$srcdir/"
8280 posrcprefix="../$srcdir/"
8286 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8287 < $srcdir/po/POTFILES.in > po/POTFILES
8291 # Permit host specific settings.
8292 . ${srcdir}/configure.host
8295 # Find a good install program. We prefer a C program (faster),
8296 # so one script is as good as another. But avoid the broken or
8297 # incompatible versions:
8298 # SysV /etc/install, /usr/sbin/install
8299 # SunOS /usr/etc/install
8300 # IRIX /sbin/install
8302 # AmigaOS /C/install, which installs bootblocks on floppy discs
8303 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8304 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8305 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8306 # OS/2's system install, which has a completely different semantic
8307 # ./install, which can be erroneously created by make from ./install.sh.
8308 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8309 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8310 if test -z "$INSTALL"; then
8311 if test "${ac_cv_path_install+set}" = set; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
8314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8318 test -z "$as_dir" && as_dir=.
8319 # Account for people who put trailing slashes in PATH elements.
8321 ./ | .// | /cC/* | \
8322 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8323 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8326 # OSF1 and SCO ODT 3.0 have their own names for install.
8327 # Don't use installbsd from OSF since it installs stuff as root
8329 for ac_prog in ginstall scoinst install; do
8330 for ac_exec_ext in '' $ac_executable_extensions; do
8331 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8332 if test $ac_prog = install &&
8333 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8334 # AIX install. It has an incompatible calling convention.
8336 elif test $ac_prog = install &&
8337 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8338 # program-specific install script used by HP pwplus--don't use.
8341 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8353 if test "${ac_cv_path_install+set}" = set; then
8354 INSTALL=$ac_cv_path_install
8356 # As a last resort, use the slow shell script. We don't cache a
8357 # path for INSTALL within a source directory, because that will
8358 # break other packages using the cache if that directory is
8359 # removed, or if the path is relative.
8360 INSTALL=$ac_install_sh
8363 echo "$as_me:$LINENO: result: $INSTALL" >&5
8364 echo "${ECHO_T}$INSTALL" >&6
8366 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8367 # It thinks the first close brace ends the variable substitution.
8368 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8370 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8372 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8375 BFD_HOST_64BIT_LONG=0
8376 BFD_HOST_LONG_LONG=0
8377 BFD_HOST_64_BIT_DEFINED=0
8381 echo "$as_me:$LINENO: checking for long long" >&5
8382 echo $ECHO_N "checking for long long... $ECHO_C" >&6
8383 if test "${bfd_cv_has_long_long+set}" = set; then
8384 echo $ECHO_N "(cached) $ECHO_C" >&6
8386 cat >conftest.$ac_ext <<_ACEOF
8389 cat confdefs.h >>conftest.$ac_ext
8390 cat >>conftest.$ac_ext <<_ACEOF
8391 /* end confdefs.h. */
8396 unsigned long long ll = 18446744073709551615ULL;
8401 rm -f conftest.$ac_objext
8402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8403 (eval $ac_compile) 2>conftest.er1
8405 grep -v '^ *+' conftest.er1 >conftest.err
8407 cat conftest.err >&5
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); } &&
8410 { ac_try='test -z "$ac_c_werror_flag"
8411 || test ! -s conftest.err'
8412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); }; } &&
8417 { ac_try='test -s conftest.$ac_objext'
8418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); }; }; then
8423 bfd_cv_has_long_long=yes
8425 echo "$as_me: failed program was:" >&5
8426 sed 's/^/| /' conftest.$ac_ext >&5
8428 bfd_cv_has_long_long=no
8430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8433 echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
8434 echo "${ECHO_T}$bfd_cv_has_long_long" >&6
8435 if test $bfd_cv_has_long_long = yes; then
8436 BFD_HOST_LONG_LONG=1
8437 echo "$as_me:$LINENO: checking for long long" >&5
8438 echo $ECHO_N "checking for long long... $ECHO_C" >&6
8439 if test "${ac_cv_type_long_long+set}" = set; then
8440 echo $ECHO_N "(cached) $ECHO_C" >&6
8442 cat >conftest.$ac_ext <<_ACEOF
8445 cat confdefs.h >>conftest.$ac_ext
8446 cat >>conftest.$ac_ext <<_ACEOF
8447 /* end confdefs.h. */
8448 $ac_includes_default
8452 if ((long long *) 0)
8454 if (sizeof (long long))
8460 rm -f conftest.$ac_objext
8461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8462 (eval $ac_compile) 2>conftest.er1
8464 grep -v '^ *+' conftest.er1 >conftest.err
8466 cat conftest.err >&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); } &&
8469 { ac_try='test -z "$ac_c_werror_flag"
8470 || test ! -s conftest.err'
8471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); }; } &&
8476 { ac_try='test -s conftest.$ac_objext'
8477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); }; }; then
8482 ac_cv_type_long_long=yes
8484 echo "$as_me: failed program was:" >&5
8485 sed 's/^/| /' conftest.$ac_ext >&5
8487 ac_cv_type_long_long=no
8489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8491 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8492 echo "${ECHO_T}$ac_cv_type_long_long" >&6
8494 echo "$as_me:$LINENO: checking size of long long" >&5
8495 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
8496 if test "${ac_cv_sizeof_long_long+set}" = set; then
8497 echo $ECHO_N "(cached) $ECHO_C" >&6
8499 if test "$ac_cv_type_long_long" = yes; then
8500 # The cast to unsigned long works around a bug in the HP C Compiler
8501 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8502 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8503 # This bug is HP SR number 8606223364.
8504 if test "$cross_compiling" = yes; then
8505 # Depending upon the size, compute the lo and hi bounds.
8506 cat >conftest.$ac_ext <<_ACEOF
8509 cat confdefs.h >>conftest.$ac_ext
8510 cat >>conftest.$ac_ext <<_ACEOF
8511 /* end confdefs.h. */
8512 $ac_includes_default
8516 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
8523 rm -f conftest.$ac_objext
8524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8525 (eval $ac_compile) 2>conftest.er1
8527 grep -v '^ *+' conftest.er1 >conftest.err
8529 cat conftest.err >&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); } &&
8532 { ac_try='test -z "$ac_c_werror_flag"
8533 || test ! -s conftest.err'
8534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); }; } &&
8539 { ac_try='test -s conftest.$ac_objext'
8540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); }; }; then
8547 cat >conftest.$ac_ext <<_ACEOF
8550 cat confdefs.h >>conftest.$ac_ext
8551 cat >>conftest.$ac_ext <<_ACEOF
8552 /* end confdefs.h. */
8553 $ac_includes_default
8557 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8564 rm -f conftest.$ac_objext
8565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8566 (eval $ac_compile) 2>conftest.er1
8568 grep -v '^ *+' conftest.er1 >conftest.err
8570 cat conftest.err >&5
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); } &&
8573 { ac_try='test -z "$ac_c_werror_flag"
8574 || test ! -s conftest.err'
8575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); }; } &&
8580 { ac_try='test -s conftest.$ac_objext'
8581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); }; }; then
8586 ac_hi=$ac_mid; break
8588 echo "$as_me: failed program was:" >&5
8589 sed 's/^/| /' conftest.$ac_ext >&5
8591 ac_lo=`expr $ac_mid + 1`
8592 if test $ac_lo -le $ac_mid; then
8596 ac_mid=`expr 2 '*' $ac_mid + 1`
8598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8601 echo "$as_me: failed program was:" >&5
8602 sed 's/^/| /' conftest.$ac_ext >&5
8604 cat >conftest.$ac_ext <<_ACEOF
8607 cat confdefs.h >>conftest.$ac_ext
8608 cat >>conftest.$ac_ext <<_ACEOF
8609 /* end confdefs.h. */
8610 $ac_includes_default
8614 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
8621 rm -f conftest.$ac_objext
8622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8623 (eval $ac_compile) 2>conftest.er1
8625 grep -v '^ *+' conftest.er1 >conftest.err
8627 cat conftest.err >&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); } &&
8630 { ac_try='test -z "$ac_c_werror_flag"
8631 || test ! -s conftest.err'
8632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); }; } &&
8637 { ac_try='test -s conftest.$ac_objext'
8638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); }; }; then
8645 cat >conftest.$ac_ext <<_ACEOF
8648 cat confdefs.h >>conftest.$ac_ext
8649 cat >>conftest.$ac_ext <<_ACEOF
8650 /* end confdefs.h. */
8651 $ac_includes_default
8655 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
8662 rm -f conftest.$ac_objext
8663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8664 (eval $ac_compile) 2>conftest.er1
8666 grep -v '^ *+' conftest.er1 >conftest.err
8668 cat conftest.err >&5
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); } &&
8671 { ac_try='test -z "$ac_c_werror_flag"
8672 || test ! -s conftest.err'
8673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); }; } &&
8678 { ac_try='test -s conftest.$ac_objext'
8679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); }; }; then
8684 ac_lo=$ac_mid; break
8686 echo "$as_me: failed program was:" >&5
8687 sed 's/^/| /' conftest.$ac_ext >&5
8689 ac_hi=`expr '(' $ac_mid ')' - 1`
8690 if test $ac_mid -le $ac_hi; then
8694 ac_mid=`expr 2 '*' $ac_mid`
8696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8699 echo "$as_me: failed program was:" >&5
8700 sed 's/^/| /' conftest.$ac_ext >&5
8704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8707 # Binary search between lo and hi bounds.
8708 while test "x$ac_lo" != "x$ac_hi"; do
8709 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8710 cat >conftest.$ac_ext <<_ACEOF
8713 cat confdefs.h >>conftest.$ac_ext
8714 cat >>conftest.$ac_ext <<_ACEOF
8715 /* end confdefs.h. */
8716 $ac_includes_default
8720 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8727 rm -f conftest.$ac_objext
8728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8729 (eval $ac_compile) 2>conftest.er1
8731 grep -v '^ *+' conftest.er1 >conftest.err
8733 cat conftest.err >&5
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); } &&
8736 { ac_try='test -z "$ac_c_werror_flag"
8737 || test ! -s conftest.err'
8738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742 (exit $ac_status); }; } &&
8743 { ac_try='test -s conftest.$ac_objext'
8744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); }; }; then
8751 echo "$as_me: failed program was:" >&5
8752 sed 's/^/| /' conftest.$ac_ext >&5
8754 ac_lo=`expr '(' $ac_mid ')' + 1`
8756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8759 ?*) ac_cv_sizeof_long_long=$ac_lo;;
8760 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
8761 See \`config.log' for more details." >&5
8762 echo "$as_me: error: cannot compute sizeof (long long), 77
8763 See \`config.log' for more details." >&2;}
8764 { (exit 1); exit 1; }; } ;;
8767 if test "$cross_compiling" = yes; then
8768 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8769 See \`config.log' for more details." >&5
8770 echo "$as_me: error: cannot run test program while cross compiling
8771 See \`config.log' for more details." >&2;}
8772 { (exit 1); exit 1; }; }
8774 cat >conftest.$ac_ext <<_ACEOF
8777 cat confdefs.h >>conftest.$ac_ext
8778 cat >>conftest.$ac_ext <<_ACEOF
8779 /* end confdefs.h. */
8780 $ac_includes_default
8781 long longval () { return (long) (sizeof (long long)); }
8782 unsigned long ulongval () { return (long) (sizeof (long long)); }
8789 FILE *f = fopen ("conftest.val", "w");
8792 if (((long) (sizeof (long long))) < 0)
8794 long i = longval ();
8795 if (i != ((long) (sizeof (long long))))
8797 fprintf (f, "%ld\n", i);
8801 unsigned long i = ulongval ();
8802 if (i != ((long) (sizeof (long long))))
8804 fprintf (f, "%lu\n", i);
8806 exit (ferror (f) || fclose (f) != 0);
8812 rm -f conftest$ac_exeext
8813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8814 (eval $ac_link) 2>&5
8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); }; }; then
8823 ac_cv_sizeof_long_long=`cat conftest.val`
8825 echo "$as_me: program exited with status $ac_status" >&5
8826 echo "$as_me: failed program was:" >&5
8827 sed 's/^/| /' conftest.$ac_ext >&5
8830 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
8831 See \`config.log' for more details." >&5
8832 echo "$as_me: error: cannot compute sizeof (long long), 77
8833 See \`config.log' for more details." >&2;}
8834 { (exit 1); exit 1; }; }
8836 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8841 ac_cv_sizeof_long_long=0
8844 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8845 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
8846 cat >>confdefs.h <<_ACEOF
8847 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8853 echo "$as_me:$LINENO: checking for long" >&5
8854 echo $ECHO_N "checking for long... $ECHO_C" >&6
8855 if test "${ac_cv_type_long+set}" = set; then
8856 echo $ECHO_N "(cached) $ECHO_C" >&6
8858 cat >conftest.$ac_ext <<_ACEOF
8861 cat confdefs.h >>conftest.$ac_ext
8862 cat >>conftest.$ac_ext <<_ACEOF
8863 /* end confdefs.h. */
8864 $ac_includes_default
8876 rm -f conftest.$ac_objext
8877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8878 (eval $ac_compile) 2>conftest.er1
8880 grep -v '^ *+' conftest.er1 >conftest.err
8882 cat conftest.err >&5
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); } &&
8885 { ac_try='test -z "$ac_c_werror_flag"
8886 || test ! -s conftest.err'
8887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); }; } &&
8892 { ac_try='test -s conftest.$ac_objext'
8893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); }; }; then
8900 echo "$as_me: failed program was:" >&5
8901 sed 's/^/| /' conftest.$ac_ext >&5
8905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8907 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
8908 echo "${ECHO_T}$ac_cv_type_long" >&6
8910 echo "$as_me:$LINENO: checking size of long" >&5
8911 echo $ECHO_N "checking size of long... $ECHO_C" >&6
8912 if test "${ac_cv_sizeof_long+set}" = set; then
8913 echo $ECHO_N "(cached) $ECHO_C" >&6
8915 if test "$ac_cv_type_long" = yes; then
8916 # The cast to unsigned long works around a bug in the HP C Compiler
8917 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8918 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8919 # This bug is HP SR number 8606223364.
8920 if test "$cross_compiling" = yes; then
8921 # Depending upon the size, compute the lo and hi bounds.
8922 cat >conftest.$ac_ext <<_ACEOF
8925 cat confdefs.h >>conftest.$ac_ext
8926 cat >>conftest.$ac_ext <<_ACEOF
8927 /* end confdefs.h. */
8928 $ac_includes_default
8932 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
8939 rm -f conftest.$ac_objext
8940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8941 (eval $ac_compile) 2>conftest.er1
8943 grep -v '^ *+' conftest.er1 >conftest.err
8945 cat conftest.err >&5
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); } &&
8948 { ac_try='test -z "$ac_c_werror_flag"
8949 || test ! -s conftest.err'
8950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); }; } &&
8955 { ac_try='test -s conftest.$ac_objext'
8956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); }; }; then
8963 cat >conftest.$ac_ext <<_ACEOF
8966 cat confdefs.h >>conftest.$ac_ext
8967 cat >>conftest.$ac_ext <<_ACEOF
8968 /* end confdefs.h. */
8969 $ac_includes_default
8973 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
8980 rm -f conftest.$ac_objext
8981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8982 (eval $ac_compile) 2>conftest.er1
8984 grep -v '^ *+' conftest.er1 >conftest.err
8986 cat conftest.err >&5
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); } &&
8989 { ac_try='test -z "$ac_c_werror_flag"
8990 || test ! -s conftest.err'
8991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); }; } &&
8996 { ac_try='test -s conftest.$ac_objext'
8997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); }; }; then
9002 ac_hi=$ac_mid; break
9004 echo "$as_me: failed program was:" >&5
9005 sed 's/^/| /' conftest.$ac_ext >&5
9007 ac_lo=`expr $ac_mid + 1`
9008 if test $ac_lo -le $ac_mid; then
9012 ac_mid=`expr 2 '*' $ac_mid + 1`
9014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9017 echo "$as_me: failed program was:" >&5
9018 sed 's/^/| /' conftest.$ac_ext >&5
9020 cat >conftest.$ac_ext <<_ACEOF
9023 cat confdefs.h >>conftest.$ac_ext
9024 cat >>conftest.$ac_ext <<_ACEOF
9025 /* end confdefs.h. */
9026 $ac_includes_default
9030 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
9037 rm -f conftest.$ac_objext
9038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9039 (eval $ac_compile) 2>conftest.er1
9041 grep -v '^ *+' conftest.er1 >conftest.err
9043 cat conftest.err >&5
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); } &&
9046 { ac_try='test -z "$ac_c_werror_flag"
9047 || test ! -s conftest.err'
9048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); }; } &&
9053 { ac_try='test -s conftest.$ac_objext'
9054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); }; }; then
9061 cat >conftest.$ac_ext <<_ACEOF
9064 cat confdefs.h >>conftest.$ac_ext
9065 cat >>conftest.$ac_ext <<_ACEOF
9066 /* end confdefs.h. */
9067 $ac_includes_default
9071 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
9078 rm -f conftest.$ac_objext
9079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9080 (eval $ac_compile) 2>conftest.er1
9082 grep -v '^ *+' conftest.er1 >conftest.err
9084 cat conftest.err >&5
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); } &&
9087 { ac_try='test -z "$ac_c_werror_flag"
9088 || test ! -s conftest.err'
9089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); }; } &&
9094 { ac_try='test -s conftest.$ac_objext'
9095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); }; }; then
9100 ac_lo=$ac_mid; break
9102 echo "$as_me: failed program was:" >&5
9103 sed 's/^/| /' conftest.$ac_ext >&5
9105 ac_hi=`expr '(' $ac_mid ')' - 1`
9106 if test $ac_mid -le $ac_hi; then
9110 ac_mid=`expr 2 '*' $ac_mid`
9112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9115 echo "$as_me: failed program was:" >&5
9116 sed 's/^/| /' conftest.$ac_ext >&5
9120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9123 # Binary search between lo and hi bounds.
9124 while test "x$ac_lo" != "x$ac_hi"; do
9125 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9126 cat >conftest.$ac_ext <<_ACEOF
9129 cat confdefs.h >>conftest.$ac_ext
9130 cat >>conftest.$ac_ext <<_ACEOF
9131 /* end confdefs.h. */
9132 $ac_includes_default
9136 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
9143 rm -f conftest.$ac_objext
9144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9145 (eval $ac_compile) 2>conftest.er1
9147 grep -v '^ *+' conftest.er1 >conftest.err
9149 cat conftest.err >&5
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); } &&
9152 { ac_try='test -z "$ac_c_werror_flag"
9153 || test ! -s conftest.err'
9154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); }; } &&
9159 { ac_try='test -s conftest.$ac_objext'
9160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 (exit $ac_status); }; }; then
9167 echo "$as_me: failed program was:" >&5
9168 sed 's/^/| /' conftest.$ac_ext >&5
9170 ac_lo=`expr '(' $ac_mid ')' + 1`
9172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9175 ?*) ac_cv_sizeof_long=$ac_lo;;
9176 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
9177 See \`config.log' for more details." >&5
9178 echo "$as_me: error: cannot compute sizeof (long), 77
9179 See \`config.log' for more details." >&2;}
9180 { (exit 1); exit 1; }; } ;;
9183 if test "$cross_compiling" = yes; then
9184 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9185 See \`config.log' for more details." >&5
9186 echo "$as_me: error: cannot run test program while cross compiling
9187 See \`config.log' for more details." >&2;}
9188 { (exit 1); exit 1; }; }
9190 cat >conftest.$ac_ext <<_ACEOF
9193 cat confdefs.h >>conftest.$ac_ext
9194 cat >>conftest.$ac_ext <<_ACEOF
9195 /* end confdefs.h. */
9196 $ac_includes_default
9197 long longval () { return (long) (sizeof (long)); }
9198 unsigned long ulongval () { return (long) (sizeof (long)); }
9205 FILE *f = fopen ("conftest.val", "w");
9208 if (((long) (sizeof (long))) < 0)
9210 long i = longval ();
9211 if (i != ((long) (sizeof (long))))
9213 fprintf (f, "%ld\n", i);
9217 unsigned long i = ulongval ();
9218 if (i != ((long) (sizeof (long))))
9220 fprintf (f, "%lu\n", i);
9222 exit (ferror (f) || fclose (f) != 0);
9228 rm -f conftest$ac_exeext
9229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9230 (eval $ac_link) 2>&5
9232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); }; }; then
9239 ac_cv_sizeof_long=`cat conftest.val`
9241 echo "$as_me: program exited with status $ac_status" >&5
9242 echo "$as_me: failed program was:" >&5
9243 sed 's/^/| /' conftest.$ac_ext >&5
9246 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
9247 See \`config.log' for more details." >&5
9248 echo "$as_me: error: cannot compute sizeof (long), 77
9249 See \`config.log' for more details." >&2;}
9250 { (exit 1); exit 1; }; }
9252 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9260 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
9261 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
9262 cat >>confdefs.h <<_ACEOF
9263 #define SIZEOF_LONG $ac_cv_sizeof_long
9267 if test "x${ac_cv_sizeof_long}" = "x8"; then
9269 BFD_HOST_64BIT_LONG=1
9270 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
9271 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
9272 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
9273 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
9274 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
9277 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
9278 BFD_HOST_64_BIT_DEFINED=1
9279 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
9280 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
9289 # Put a plausible default for CC_FOR_BUILD in Makefile.
9290 if test -z "$CC_FOR_BUILD"; then
9291 if test "x$cross_compiling" = "xno"; then
9292 CC_FOR_BUILD='$(CC)'
9298 # Also set EXEEXT_FOR_BUILD.
9299 if test "x$cross_compiling" = "xno"; then
9300 EXEEXT_FOR_BUILD='$(EXEEXT)'
9302 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
9303 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
9304 if test "${bfd_cv_build_exeext+set}" = set; then
9305 echo $ECHO_N "(cached) $ECHO_C" >&6
9308 echo 'int main () { return 0; }' > conftest.c
9309 bfd_cv_build_exeext=
9310 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
9311 for file in conftest.*; do
9313 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
9314 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
9318 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
9320 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
9321 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
9323 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
9333 for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
9335 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9337 echo "$as_me:$LINENO: checking for $ac_header" >&5
9338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9340 echo $ECHO_N "(cached) $ECHO_C" >&6
9342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9343 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9345 # Is the header compilable?
9346 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9348 cat >conftest.$ac_ext <<_ACEOF
9351 cat confdefs.h >>conftest.$ac_ext
9352 cat >>conftest.$ac_ext <<_ACEOF
9353 /* end confdefs.h. */
9354 $ac_includes_default
9355 #include <$ac_header>
9357 rm -f conftest.$ac_objext
9358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9359 (eval $ac_compile) 2>conftest.er1
9361 grep -v '^ *+' conftest.er1 >conftest.err
9363 cat conftest.err >&5
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); } &&
9366 { ac_try='test -z "$ac_c_werror_flag"
9367 || test ! -s conftest.err'
9368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); }; } &&
9373 { ac_try='test -s conftest.$ac_objext'
9374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); }; }; then
9379 ac_header_compiler=yes
9381 echo "$as_me: failed program was:" >&5
9382 sed 's/^/| /' conftest.$ac_ext >&5
9384 ac_header_compiler=no
9386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9387 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9388 echo "${ECHO_T}$ac_header_compiler" >&6
9390 # Is the header present?
9391 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9393 cat >conftest.$ac_ext <<_ACEOF
9396 cat confdefs.h >>conftest.$ac_ext
9397 cat >>conftest.$ac_ext <<_ACEOF
9398 /* end confdefs.h. */
9399 #include <$ac_header>
9401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9404 grep -v '^ *+' conftest.er1 >conftest.err
9406 cat conftest.err >&5
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 (exit $ac_status); } >/dev/null; then
9409 if test -s conftest.err; then
9410 ac_cpp_err=$ac_c_preproc_warn_flag
9411 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9418 if test -z "$ac_cpp_err"; then
9419 ac_header_preproc=yes
9421 echo "$as_me: failed program was:" >&5
9422 sed 's/^/| /' conftest.$ac_ext >&5
9424 ac_header_preproc=no
9426 rm -f conftest.err conftest.$ac_ext
9427 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9428 echo "${ECHO_T}$ac_header_preproc" >&6
9430 # So? What about this header?
9431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9433 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9434 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9436 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9437 ac_header_preproc=yes
9440 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9441 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9442 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9443 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9444 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9445 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9446 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9447 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9449 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9450 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9451 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9454 ## ------------------------------------------ ##
9455 ## Report this to the AC_PACKAGE_NAME lists. ##
9456 ## ------------------------------------------ ##
9459 sed "s/^/$as_me: WARNING: /" >&2
9462 echo "$as_me:$LINENO: checking for $ac_header" >&5
9463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9465 echo $ECHO_N "(cached) $ECHO_C" >&6
9467 eval "$as_ac_Header=\$ac_header_preproc"
9469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9473 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9474 cat >>confdefs.h <<_ACEOF
9475 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9485 for ac_header in fcntl.h sys/file.h sys/time.h
9487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9489 echo "$as_me:$LINENO: checking for $ac_header" >&5
9490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9492 echo $ECHO_N "(cached) $ECHO_C" >&6
9494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9497 # Is the header compilable?
9498 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9499 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9500 cat >conftest.$ac_ext <<_ACEOF
9503 cat confdefs.h >>conftest.$ac_ext
9504 cat >>conftest.$ac_ext <<_ACEOF
9505 /* end confdefs.h. */
9506 $ac_includes_default
9507 #include <$ac_header>
9509 rm -f conftest.$ac_objext
9510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9511 (eval $ac_compile) 2>conftest.er1
9513 grep -v '^ *+' conftest.er1 >conftest.err
9515 cat conftest.err >&5
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); } &&
9518 { ac_try='test -z "$ac_c_werror_flag"
9519 || test ! -s conftest.err'
9520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524 (exit $ac_status); }; } &&
9525 { ac_try='test -s conftest.$ac_objext'
9526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); }; }; then
9531 ac_header_compiler=yes
9533 echo "$as_me: failed program was:" >&5
9534 sed 's/^/| /' conftest.$ac_ext >&5
9536 ac_header_compiler=no
9538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9539 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9540 echo "${ECHO_T}$ac_header_compiler" >&6
9542 # Is the header present?
9543 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9544 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9545 cat >conftest.$ac_ext <<_ACEOF
9548 cat confdefs.h >>conftest.$ac_ext
9549 cat >>conftest.$ac_ext <<_ACEOF
9550 /* end confdefs.h. */
9551 #include <$ac_header>
9553 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9554 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9556 grep -v '^ *+' conftest.er1 >conftest.err
9558 cat conftest.err >&5
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); } >/dev/null; then
9561 if test -s conftest.err; then
9562 ac_cpp_err=$ac_c_preproc_warn_flag
9563 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9570 if test -z "$ac_cpp_err"; then
9571 ac_header_preproc=yes
9573 echo "$as_me: failed program was:" >&5
9574 sed 's/^/| /' conftest.$ac_ext >&5
9576 ac_header_preproc=no
9578 rm -f conftest.err conftest.$ac_ext
9579 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9580 echo "${ECHO_T}$ac_header_preproc" >&6
9582 # So? What about this header?
9583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9586 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9588 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9589 ac_header_preproc=yes
9592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9595 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9596 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9597 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9598 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9599 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9602 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9603 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9606 ## ------------------------------------------ ##
9607 ## Report this to the AC_PACKAGE_NAME lists. ##
9608 ## ------------------------------------------ ##
9611 sed "s/^/$as_me: WARNING: /" >&2
9614 echo "$as_me:$LINENO: checking for $ac_header" >&5
9615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9617 echo $ECHO_N "(cached) $ECHO_C" >&6
9619 eval "$as_ac_Header=\$ac_header_preproc"
9621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9626 cat >>confdefs.h <<_ACEOF
9627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9634 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9635 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9636 if test "${ac_cv_header_time+set}" = set; then
9637 echo $ECHO_N "(cached) $ECHO_C" >&6
9639 cat >conftest.$ac_ext <<_ACEOF
9642 cat confdefs.h >>conftest.$ac_ext
9643 cat >>conftest.$ac_ext <<_ACEOF
9644 /* end confdefs.h. */
9645 #include <sys/types.h>
9646 #include <sys/time.h>
9652 if ((struct tm *) 0)
9658 rm -f conftest.$ac_objext
9659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9660 (eval $ac_compile) 2>conftest.er1
9662 grep -v '^ *+' conftest.er1 >conftest.err
9664 cat conftest.err >&5
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); } &&
9667 { ac_try='test -z "$ac_c_werror_flag"
9668 || test ! -s conftest.err'
9669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); }; } &&
9674 { ac_try='test -s conftest.$ac_objext'
9675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); }; }; then
9680 ac_cv_header_time=yes
9682 echo "$as_me: failed program was:" >&5
9683 sed 's/^/| /' conftest.$ac_ext >&5
9685 ac_cv_header_time=no
9687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9689 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9690 echo "${ECHO_T}$ac_cv_header_time" >&6
9691 if test $ac_cv_header_time = yes; then
9693 cat >>confdefs.h <<\_ACEOF
9694 #define TIME_WITH_SYS_TIME 1
9705 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9706 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9707 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9708 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9710 echo $ECHO_N "(cached) $ECHO_C" >&6
9712 cat >conftest.$ac_ext <<_ACEOF
9715 cat confdefs.h >>conftest.$ac_ext
9716 cat >>conftest.$ac_ext <<_ACEOF
9717 /* end confdefs.h. */
9718 #include <sys/types.h>
9730 rm -f conftest.$ac_objext
9731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9732 (eval $ac_compile) 2>conftest.er1
9734 grep -v '^ *+' conftest.er1 >conftest.err
9736 cat conftest.err >&5
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); } &&
9739 { ac_try='test -z "$ac_c_werror_flag"
9740 || test ! -s conftest.err'
9741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); }; } &&
9746 { ac_try='test -s conftest.$ac_objext'
9747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); }; }; then
9752 eval "$as_ac_Header=yes"
9754 echo "$as_me: failed program was:" >&5
9755 sed 's/^/| /' conftest.$ac_ext >&5
9757 eval "$as_ac_Header=no"
9759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9762 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9764 cat >>confdefs.h <<_ACEOF
9765 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9768 ac_header_dirent=$ac_hdr; break
9772 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9773 if test $ac_header_dirent = dirent.h; then
9774 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9775 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9776 if test "${ac_cv_search_opendir+set}" = set; then
9777 echo $ECHO_N "(cached) $ECHO_C" >&6
9779 ac_func_search_save_LIBS=$LIBS
9780 ac_cv_search_opendir=no
9781 cat >conftest.$ac_ext <<_ACEOF
9784 cat confdefs.h >>conftest.$ac_ext
9785 cat >>conftest.$ac_ext <<_ACEOF
9786 /* end confdefs.h. */
9788 /* Override any gcc2 internal prototype to avoid an error. */
9792 /* We use char because int might match the return type of a gcc2
9793 builtin and then its argument prototype would still apply. */
9803 rm -f conftest.$ac_objext conftest$ac_exeext
9804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9805 (eval $ac_link) 2>conftest.er1
9807 grep -v '^ *+' conftest.er1 >conftest.err
9809 cat conftest.err >&5
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); } &&
9812 { ac_try='test -z "$ac_c_werror_flag"
9813 || test ! -s conftest.err'
9814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); }; } &&
9819 { ac_try='test -s conftest$ac_exeext'
9820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); }; }; then
9825 ac_cv_search_opendir="none required"
9827 echo "$as_me: failed program was:" >&5
9828 sed 's/^/| /' conftest.$ac_ext >&5
9831 rm -f conftest.err conftest.$ac_objext \
9832 conftest$ac_exeext conftest.$ac_ext
9833 if test "$ac_cv_search_opendir" = no; then
9834 for ac_lib in dir; do
9835 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9836 cat >conftest.$ac_ext <<_ACEOF
9839 cat confdefs.h >>conftest.$ac_ext
9840 cat >>conftest.$ac_ext <<_ACEOF
9841 /* end confdefs.h. */
9843 /* Override any gcc2 internal prototype to avoid an error. */
9847 /* We use char because int might match the return type of a gcc2
9848 builtin and then its argument prototype would still apply. */
9858 rm -f conftest.$ac_objext conftest$ac_exeext
9859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9860 (eval $ac_link) 2>conftest.er1
9862 grep -v '^ *+' conftest.er1 >conftest.err
9864 cat conftest.err >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); } &&
9867 { ac_try='test -z "$ac_c_werror_flag"
9868 || test ! -s conftest.err'
9869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); }; } &&
9874 { ac_try='test -s conftest$ac_exeext'
9875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); }; }; then
9880 ac_cv_search_opendir="-l$ac_lib"
9883 echo "$as_me: failed program was:" >&5
9884 sed 's/^/| /' conftest.$ac_ext >&5
9887 rm -f conftest.err conftest.$ac_objext \
9888 conftest$ac_exeext conftest.$ac_ext
9891 LIBS=$ac_func_search_save_LIBS
9893 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9894 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9895 if test "$ac_cv_search_opendir" != no; then
9896 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9901 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9902 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9903 if test "${ac_cv_search_opendir+set}" = set; then
9904 echo $ECHO_N "(cached) $ECHO_C" >&6
9906 ac_func_search_save_LIBS=$LIBS
9907 ac_cv_search_opendir=no
9908 cat >conftest.$ac_ext <<_ACEOF
9911 cat confdefs.h >>conftest.$ac_ext
9912 cat >>conftest.$ac_ext <<_ACEOF
9913 /* end confdefs.h. */
9915 /* Override any gcc2 internal prototype to avoid an error. */
9919 /* We use char because int might match the return type of a gcc2
9920 builtin and then its argument prototype would still apply. */
9930 rm -f conftest.$ac_objext conftest$ac_exeext
9931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9932 (eval $ac_link) 2>conftest.er1
9934 grep -v '^ *+' conftest.er1 >conftest.err
9936 cat conftest.err >&5
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); } &&
9939 { ac_try='test -z "$ac_c_werror_flag"
9940 || test ! -s conftest.err'
9941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); }; } &&
9946 { ac_try='test -s conftest$ac_exeext'
9947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); }; }; then
9952 ac_cv_search_opendir="none required"
9954 echo "$as_me: failed program was:" >&5
9955 sed 's/^/| /' conftest.$ac_ext >&5
9958 rm -f conftest.err conftest.$ac_objext \
9959 conftest$ac_exeext conftest.$ac_ext
9960 if test "$ac_cv_search_opendir" = no; then
9962 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9963 cat >conftest.$ac_ext <<_ACEOF
9966 cat confdefs.h >>conftest.$ac_ext
9967 cat >>conftest.$ac_ext <<_ACEOF
9968 /* end confdefs.h. */
9970 /* Override any gcc2 internal prototype to avoid an error. */
9974 /* We use char because int might match the return type of a gcc2
9975 builtin and then its argument prototype would still apply. */
9985 rm -f conftest.$ac_objext conftest$ac_exeext
9986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9987 (eval $ac_link) 2>conftest.er1
9989 grep -v '^ *+' conftest.er1 >conftest.err
9991 cat conftest.err >&5
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); } &&
9994 { ac_try='test -z "$ac_c_werror_flag"
9995 || test ! -s conftest.err'
9996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); }; } &&
10001 { ac_try='test -s conftest$ac_exeext'
10002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10003 (eval $ac_try) 2>&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); }; }; then
10007 ac_cv_search_opendir="-l$ac_lib"
10010 echo "$as_me: failed program was:" >&5
10011 sed 's/^/| /' conftest.$ac_ext >&5
10014 rm -f conftest.err conftest.$ac_objext \
10015 conftest$ac_exeext conftest.$ac_ext
10018 LIBS=$ac_func_search_save_LIBS
10020 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10021 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10022 if test "$ac_cv_search_opendir" != no; then
10023 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10029 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
10030 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
10031 if test "${gcc_cv_header_string+set}" = set; then
10032 echo $ECHO_N "(cached) $ECHO_C" >&6
10034 cat >conftest.$ac_ext <<_ACEOF
10037 cat confdefs.h >>conftest.$ac_ext
10038 cat >>conftest.$ac_ext <<_ACEOF
10039 /* end confdefs.h. */
10040 #include <string.h>
10041 #include <strings.h>
10050 rm -f conftest.$ac_objext
10051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10052 (eval $ac_compile) 2>conftest.er1
10054 grep -v '^ *+' conftest.er1 >conftest.err
10056 cat conftest.err >&5
10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); } &&
10059 { ac_try='test -z "$ac_c_werror_flag"
10060 || test ! -s conftest.err'
10061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10062 (eval $ac_try) 2>&5
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); }; } &&
10066 { ac_try='test -s conftest.$ac_objext'
10067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10068 (eval $ac_try) 2>&5
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); }; }; then
10072 gcc_cv_header_string=yes
10074 echo "$as_me: failed program was:" >&5
10075 sed 's/^/| /' conftest.$ac_ext >&5
10077 gcc_cv_header_string=no
10079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10081 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
10082 echo "${ECHO_T}$gcc_cv_header_string" >&6
10083 if test $gcc_cv_header_string = yes; then
10085 cat >>confdefs.h <<\_ACEOF
10086 #define STRING_WITH_STRINGS 1
10098 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
10100 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10101 echo "$as_me:$LINENO: checking for $ac_func" >&5
10102 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10103 if eval "test \"\${$as_ac_var+set}\" = set"; then
10104 echo $ECHO_N "(cached) $ECHO_C" >&6
10106 cat >conftest.$ac_ext <<_ACEOF
10109 cat confdefs.h >>conftest.$ac_ext
10110 cat >>conftest.$ac_ext <<_ACEOF
10111 /* end confdefs.h. */
10112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10114 #define $ac_func innocuous_$ac_func
10116 /* System header to define __stub macros and hopefully few prototypes,
10117 which can conflict with char $ac_func (); below.
10118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10119 <limits.h> exists even on freestanding compilers. */
10122 # include <limits.h>
10124 # include <assert.h>
10129 /* Override any gcc2 internal prototype to avoid an error. */
10134 /* We use char because int might match the return type of a gcc2
10135 builtin and then its argument prototype would still apply. */
10137 /* The GNU C library defines this for functions which it implements
10138 to always fail with ENOSYS. Some functions are actually named
10139 something starting with __ and the normal name is an alias. */
10140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10143 char (*f) () = $ac_func;
10152 return f != $ac_func;
10157 rm -f conftest.$ac_objext conftest$ac_exeext
10158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10159 (eval $ac_link) 2>conftest.er1
10161 grep -v '^ *+' conftest.er1 >conftest.err
10163 cat conftest.err >&5
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); } &&
10166 { ac_try='test -z "$ac_c_werror_flag"
10167 || test ! -s conftest.err'
10168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10169 (eval $ac_try) 2>&5
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); }; } &&
10173 { ac_try='test -s conftest$ac_exeext'
10174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10175 (eval $ac_try) 2>&5
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); }; }; then
10179 eval "$as_ac_var=yes"
10181 echo "$as_me: failed program was:" >&5
10182 sed 's/^/| /' conftest.$ac_ext >&5
10184 eval "$as_ac_var=no"
10186 rm -f conftest.err conftest.$ac_objext \
10187 conftest$ac_exeext conftest.$ac_ext
10189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10190 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10191 if test `eval echo '${'$as_ac_var'}'` = yes; then
10192 cat >>confdefs.h <<_ACEOF
10193 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10200 for ac_func in strtoull
10202 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10203 echo "$as_me:$LINENO: checking for $ac_func" >&5
10204 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10205 if eval "test \"\${$as_ac_var+set}\" = set"; then
10206 echo $ECHO_N "(cached) $ECHO_C" >&6
10208 cat >conftest.$ac_ext <<_ACEOF
10211 cat confdefs.h >>conftest.$ac_ext
10212 cat >>conftest.$ac_ext <<_ACEOF
10213 /* end confdefs.h. */
10214 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10215 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10216 #define $ac_func innocuous_$ac_func
10218 /* System header to define __stub macros and hopefully few prototypes,
10219 which can conflict with char $ac_func (); below.
10220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10221 <limits.h> exists even on freestanding compilers. */
10224 # include <limits.h>
10226 # include <assert.h>
10231 /* Override any gcc2 internal prototype to avoid an error. */
10236 /* We use char because int might match the return type of a gcc2
10237 builtin and then its argument prototype would still apply. */
10239 /* The GNU C library defines this for functions which it implements
10240 to always fail with ENOSYS. Some functions are actually named
10241 something starting with __ and the normal name is an alias. */
10242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10245 char (*f) () = $ac_func;
10254 return f != $ac_func;
10259 rm -f conftest.$ac_objext conftest$ac_exeext
10260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10261 (eval $ac_link) 2>conftest.er1
10263 grep -v '^ *+' conftest.er1 >conftest.err
10265 cat conftest.err >&5
10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 (exit $ac_status); } &&
10268 { ac_try='test -z "$ac_c_werror_flag"
10269 || test ! -s conftest.err'
10270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10271 (eval $ac_try) 2>&5
10273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274 (exit $ac_status); }; } &&
10275 { ac_try='test -s conftest$ac_exeext'
10276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10277 (eval $ac_try) 2>&5
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); }; }; then
10281 eval "$as_ac_var=yes"
10283 echo "$as_me: failed program was:" >&5
10284 sed 's/^/| /' conftest.$ac_ext >&5
10286 eval "$as_ac_var=no"
10288 rm -f conftest.err conftest.$ac_objext \
10289 conftest$ac_exeext conftest.$ac_ext
10291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10292 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10293 if test `eval echo '${'$as_ac_var'}'` = yes; then
10294 cat >>confdefs.h <<_ACEOF
10295 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10302 echo "$as_me:$LINENO: checking whether basename is declared" >&5
10303 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
10304 if test "${ac_cv_have_decl_basename+set}" = set; then
10305 echo $ECHO_N "(cached) $ECHO_C" >&6
10307 cat >conftest.$ac_ext <<_ACEOF
10310 cat confdefs.h >>conftest.$ac_ext
10311 cat >>conftest.$ac_ext <<_ACEOF
10312 /* end confdefs.h. */
10313 $ac_includes_default
10318 char *p = (char *) basename;
10325 rm -f conftest.$ac_objext
10326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10327 (eval $ac_compile) 2>conftest.er1
10329 grep -v '^ *+' conftest.er1 >conftest.err
10331 cat conftest.err >&5
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); } &&
10334 { ac_try='test -z "$ac_c_werror_flag"
10335 || test ! -s conftest.err'
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); }; } &&
10341 { ac_try='test -s conftest.$ac_objext'
10342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10343 (eval $ac_try) 2>&5
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); }; }; then
10347 ac_cv_have_decl_basename=yes
10349 echo "$as_me: failed program was:" >&5
10350 sed 's/^/| /' conftest.$ac_ext >&5
10352 ac_cv_have_decl_basename=no
10354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10356 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
10357 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
10358 if test $ac_cv_have_decl_basename = yes; then
10360 cat >>confdefs.h <<_ACEOF
10361 #define HAVE_DECL_BASENAME 1
10366 cat >>confdefs.h <<_ACEOF
10367 #define HAVE_DECL_BASENAME 0
10374 echo "$as_me:$LINENO: checking whether ftello is declared" >&5
10375 echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
10376 if test "${ac_cv_have_decl_ftello+set}" = set; then
10377 echo $ECHO_N "(cached) $ECHO_C" >&6
10379 cat >conftest.$ac_ext <<_ACEOF
10382 cat confdefs.h >>conftest.$ac_ext
10383 cat >>conftest.$ac_ext <<_ACEOF
10384 /* end confdefs.h. */
10385 $ac_includes_default
10390 char *p = (char *) ftello;
10397 rm -f conftest.$ac_objext
10398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10399 (eval $ac_compile) 2>conftest.er1
10401 grep -v '^ *+' conftest.er1 >conftest.err
10403 cat conftest.err >&5
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); } &&
10406 { ac_try='test -z "$ac_c_werror_flag"
10407 || test ! -s conftest.err'
10408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10409 (eval $ac_try) 2>&5
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); }; } &&
10413 { ac_try='test -s conftest.$ac_objext'
10414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10415 (eval $ac_try) 2>&5
10417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418 (exit $ac_status); }; }; then
10419 ac_cv_have_decl_ftello=yes
10421 echo "$as_me: failed program was:" >&5
10422 sed 's/^/| /' conftest.$ac_ext >&5
10424 ac_cv_have_decl_ftello=no
10426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10428 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
10429 echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
10430 if test $ac_cv_have_decl_ftello = yes; then
10432 cat >>confdefs.h <<_ACEOF
10433 #define HAVE_DECL_FTELLO 1
10438 cat >>confdefs.h <<_ACEOF
10439 #define HAVE_DECL_FTELLO 0
10446 echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
10447 echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
10448 if test "${ac_cv_have_decl_ftello64+set}" = set; then
10449 echo $ECHO_N "(cached) $ECHO_C" >&6
10451 cat >conftest.$ac_ext <<_ACEOF
10454 cat confdefs.h >>conftest.$ac_ext
10455 cat >>conftest.$ac_ext <<_ACEOF
10456 /* end confdefs.h. */
10457 $ac_includes_default
10462 char *p = (char *) ftello64;
10469 rm -f conftest.$ac_objext
10470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10471 (eval $ac_compile) 2>conftest.er1
10473 grep -v '^ *+' conftest.er1 >conftest.err
10475 cat conftest.err >&5
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); } &&
10478 { ac_try='test -z "$ac_c_werror_flag"
10479 || test ! -s conftest.err'
10480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10481 (eval $ac_try) 2>&5
10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); }; } &&
10485 { ac_try='test -s conftest.$ac_objext'
10486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10487 (eval $ac_try) 2>&5
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); }; }; then
10491 ac_cv_have_decl_ftello64=yes
10493 echo "$as_me: failed program was:" >&5
10494 sed 's/^/| /' conftest.$ac_ext >&5
10496 ac_cv_have_decl_ftello64=no
10498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10500 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
10501 echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
10502 if test $ac_cv_have_decl_ftello64 = yes; then
10504 cat >>confdefs.h <<_ACEOF
10505 #define HAVE_DECL_FTELLO64 1
10510 cat >>confdefs.h <<_ACEOF
10511 #define HAVE_DECL_FTELLO64 0
10518 echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
10519 echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
10520 if test "${ac_cv_have_decl_fseeko+set}" = set; then
10521 echo $ECHO_N "(cached) $ECHO_C" >&6
10523 cat >conftest.$ac_ext <<_ACEOF
10526 cat confdefs.h >>conftest.$ac_ext
10527 cat >>conftest.$ac_ext <<_ACEOF
10528 /* end confdefs.h. */
10529 $ac_includes_default
10534 char *p = (char *) fseeko;
10541 rm -f conftest.$ac_objext
10542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10543 (eval $ac_compile) 2>conftest.er1
10545 grep -v '^ *+' conftest.er1 >conftest.err
10547 cat conftest.err >&5
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); } &&
10550 { ac_try='test -z "$ac_c_werror_flag"
10551 || test ! -s conftest.err'
10552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10553 (eval $ac_try) 2>&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); }; } &&
10557 { ac_try='test -s conftest.$ac_objext'
10558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10559 (eval $ac_try) 2>&5
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); }; }; then
10563 ac_cv_have_decl_fseeko=yes
10565 echo "$as_me: failed program was:" >&5
10566 sed 's/^/| /' conftest.$ac_ext >&5
10568 ac_cv_have_decl_fseeko=no
10570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10572 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
10573 echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
10574 if test $ac_cv_have_decl_fseeko = yes; then
10576 cat >>confdefs.h <<_ACEOF
10577 #define HAVE_DECL_FSEEKO 1
10582 cat >>confdefs.h <<_ACEOF
10583 #define HAVE_DECL_FSEEKO 0
10590 echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
10591 echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
10592 if test "${ac_cv_have_decl_fseeko64+set}" = set; then
10593 echo $ECHO_N "(cached) $ECHO_C" >&6
10595 cat >conftest.$ac_ext <<_ACEOF
10598 cat confdefs.h >>conftest.$ac_ext
10599 cat >>conftest.$ac_ext <<_ACEOF
10600 /* end confdefs.h. */
10601 $ac_includes_default
10606 char *p = (char *) fseeko64;
10613 rm -f conftest.$ac_objext
10614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10615 (eval $ac_compile) 2>conftest.er1
10617 grep -v '^ *+' conftest.er1 >conftest.err
10619 cat conftest.err >&5
10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); } &&
10622 { ac_try='test -z "$ac_c_werror_flag"
10623 || test ! -s conftest.err'
10624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10625 (eval $ac_try) 2>&5
10627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628 (exit $ac_status); }; } &&
10629 { ac_try='test -s conftest.$ac_objext'
10630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10631 (eval $ac_try) 2>&5
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); }; }; then
10635 ac_cv_have_decl_fseeko64=yes
10637 echo "$as_me: failed program was:" >&5
10638 sed 's/^/| /' conftest.$ac_ext >&5
10640 ac_cv_have_decl_fseeko64=no
10642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10644 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
10645 echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
10646 if test $ac_cv_have_decl_fseeko64 = yes; then
10648 cat >>confdefs.h <<_ACEOF
10649 #define HAVE_DECL_FSEEKO64 1
10654 cat >>confdefs.h <<_ACEOF
10655 #define HAVE_DECL_FSEEKO64 0
10665 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
10667 cat >>confdefs.h <<\_ACEOF
10668 #define USE_BINARY_FOPEN 1
10673 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
10674 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
10675 if test "${ac_cv_have_decl_ffs+set}" = set; then
10676 echo $ECHO_N "(cached) $ECHO_C" >&6
10678 cat >conftest.$ac_ext <<_ACEOF
10681 cat confdefs.h >>conftest.$ac_ext
10682 cat >>conftest.$ac_ext <<_ACEOF
10683 /* end confdefs.h. */
10684 $ac_includes_default
10689 char *p = (char *) ffs;
10696 rm -f conftest.$ac_objext
10697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10698 (eval $ac_compile) 2>conftest.er1
10700 grep -v '^ *+' conftest.er1 >conftest.err
10702 cat conftest.err >&5
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); } &&
10705 { ac_try='test -z "$ac_c_werror_flag"
10706 || test ! -s conftest.err'
10707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10708 (eval $ac_try) 2>&5
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); }; } &&
10712 { ac_try='test -s conftest.$ac_objext'
10713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10714 (eval $ac_try) 2>&5
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); }; }; then
10718 ac_cv_have_decl_ffs=yes
10720 echo "$as_me: failed program was:" >&5
10721 sed 's/^/| /' conftest.$ac_ext >&5
10723 ac_cv_have_decl_ffs=no
10725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10727 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
10728 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
10729 if test $ac_cv_have_decl_ffs = yes; then
10731 cat >>confdefs.h <<_ACEOF
10732 #define HAVE_DECL_FFS 1
10737 cat >>confdefs.h <<_ACEOF
10738 #define HAVE_DECL_FFS 0
10745 echo "$as_me:$LINENO: checking whether free is declared" >&5
10746 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
10747 if test "${ac_cv_have_decl_free+set}" = set; then
10748 echo $ECHO_N "(cached) $ECHO_C" >&6
10750 cat >conftest.$ac_ext <<_ACEOF
10753 cat confdefs.h >>conftest.$ac_ext
10754 cat >>conftest.$ac_ext <<_ACEOF
10755 /* end confdefs.h. */
10756 $ac_includes_default
10761 char *p = (char *) free;
10768 rm -f conftest.$ac_objext
10769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10770 (eval $ac_compile) 2>conftest.er1
10772 grep -v '^ *+' conftest.er1 >conftest.err
10774 cat conftest.err >&5
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); } &&
10777 { ac_try='test -z "$ac_c_werror_flag"
10778 || test ! -s conftest.err'
10779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10780 (eval $ac_try) 2>&5
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); }; } &&
10784 { ac_try='test -s conftest.$ac_objext'
10785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10786 (eval $ac_try) 2>&5
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); }; }; then
10790 ac_cv_have_decl_free=yes
10792 echo "$as_me: failed program was:" >&5
10793 sed 's/^/| /' conftest.$ac_ext >&5
10795 ac_cv_have_decl_free=no
10797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10799 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
10800 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
10801 if test $ac_cv_have_decl_free = yes; then
10803 cat >>confdefs.h <<_ACEOF
10804 #define HAVE_DECL_FREE 1
10809 cat >>confdefs.h <<_ACEOF
10810 #define HAVE_DECL_FREE 0
10817 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
10818 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
10819 if test "${ac_cv_have_decl_getenv+set}" = set; then
10820 echo $ECHO_N "(cached) $ECHO_C" >&6
10822 cat >conftest.$ac_ext <<_ACEOF
10825 cat confdefs.h >>conftest.$ac_ext
10826 cat >>conftest.$ac_ext <<_ACEOF
10827 /* end confdefs.h. */
10828 $ac_includes_default
10833 char *p = (char *) getenv;
10840 rm -f conftest.$ac_objext
10841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10842 (eval $ac_compile) 2>conftest.er1
10844 grep -v '^ *+' conftest.er1 >conftest.err
10846 cat conftest.err >&5
10847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848 (exit $ac_status); } &&
10849 { ac_try='test -z "$ac_c_werror_flag"
10850 || test ! -s conftest.err'
10851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10852 (eval $ac_try) 2>&5
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); }; } &&
10856 { ac_try='test -s conftest.$ac_objext'
10857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10858 (eval $ac_try) 2>&5
10860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861 (exit $ac_status); }; }; then
10862 ac_cv_have_decl_getenv=yes
10864 echo "$as_me: failed program was:" >&5
10865 sed 's/^/| /' conftest.$ac_ext >&5
10867 ac_cv_have_decl_getenv=no
10869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10871 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
10872 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
10873 if test $ac_cv_have_decl_getenv = yes; then
10875 cat >>confdefs.h <<_ACEOF
10876 #define HAVE_DECL_GETENV 1
10881 cat >>confdefs.h <<_ACEOF
10882 #define HAVE_DECL_GETENV 0
10889 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
10890 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
10891 if test "${ac_cv_have_decl_malloc+set}" = set; then
10892 echo $ECHO_N "(cached) $ECHO_C" >&6
10894 cat >conftest.$ac_ext <<_ACEOF
10897 cat confdefs.h >>conftest.$ac_ext
10898 cat >>conftest.$ac_ext <<_ACEOF
10899 /* end confdefs.h. */
10900 $ac_includes_default
10905 char *p = (char *) malloc;
10912 rm -f conftest.$ac_objext
10913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10914 (eval $ac_compile) 2>conftest.er1
10916 grep -v '^ *+' conftest.er1 >conftest.err
10918 cat conftest.err >&5
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); } &&
10921 { ac_try='test -z "$ac_c_werror_flag"
10922 || test ! -s conftest.err'
10923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10924 (eval $ac_try) 2>&5
10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); }; } &&
10928 { ac_try='test -s conftest.$ac_objext'
10929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10930 (eval $ac_try) 2>&5
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); }; }; then
10934 ac_cv_have_decl_malloc=yes
10936 echo "$as_me: failed program was:" >&5
10937 sed 's/^/| /' conftest.$ac_ext >&5
10939 ac_cv_have_decl_malloc=no
10941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10943 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
10944 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
10945 if test $ac_cv_have_decl_malloc = yes; then
10947 cat >>confdefs.h <<_ACEOF
10948 #define HAVE_DECL_MALLOC 1
10953 cat >>confdefs.h <<_ACEOF
10954 #define HAVE_DECL_MALLOC 0
10961 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
10962 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
10963 if test "${ac_cv_have_decl_realloc+set}" = set; then
10964 echo $ECHO_N "(cached) $ECHO_C" >&6
10966 cat >conftest.$ac_ext <<_ACEOF
10969 cat confdefs.h >>conftest.$ac_ext
10970 cat >>conftest.$ac_ext <<_ACEOF
10971 /* end confdefs.h. */
10972 $ac_includes_default
10977 char *p = (char *) realloc;
10984 rm -f conftest.$ac_objext
10985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10986 (eval $ac_compile) 2>conftest.er1
10988 grep -v '^ *+' conftest.er1 >conftest.err
10990 cat conftest.err >&5
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); } &&
10993 { ac_try='test -z "$ac_c_werror_flag"
10994 || test ! -s conftest.err'
10995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10996 (eval $ac_try) 2>&5
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); }; } &&
11000 { ac_try='test -s conftest.$ac_objext'
11001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11002 (eval $ac_try) 2>&5
11004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005 (exit $ac_status); }; }; then
11006 ac_cv_have_decl_realloc=yes
11008 echo "$as_me: failed program was:" >&5
11009 sed 's/^/| /' conftest.$ac_ext >&5
11011 ac_cv_have_decl_realloc=no
11013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11015 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
11016 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
11017 if test $ac_cv_have_decl_realloc = yes; then
11019 cat >>confdefs.h <<_ACEOF
11020 #define HAVE_DECL_REALLOC 1
11025 cat >>confdefs.h <<_ACEOF
11026 #define HAVE_DECL_REALLOC 0
11033 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
11034 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
11035 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
11036 echo $ECHO_N "(cached) $ECHO_C" >&6
11038 cat >conftest.$ac_ext <<_ACEOF
11041 cat confdefs.h >>conftest.$ac_ext
11042 cat >>conftest.$ac_ext <<_ACEOF
11043 /* end confdefs.h. */
11044 $ac_includes_default
11049 char *p = (char *) stpcpy;
11056 rm -f conftest.$ac_objext
11057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11058 (eval $ac_compile) 2>conftest.er1
11060 grep -v '^ *+' conftest.er1 >conftest.err
11062 cat conftest.err >&5
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); } &&
11065 { ac_try='test -z "$ac_c_werror_flag"
11066 || test ! -s conftest.err'
11067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11068 (eval $ac_try) 2>&5
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); }; } &&
11072 { ac_try='test -s conftest.$ac_objext'
11073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11074 (eval $ac_try) 2>&5
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); }; }; then
11078 ac_cv_have_decl_stpcpy=yes
11080 echo "$as_me: failed program was:" >&5
11081 sed 's/^/| /' conftest.$ac_ext >&5
11083 ac_cv_have_decl_stpcpy=no
11085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11087 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
11088 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
11089 if test $ac_cv_have_decl_stpcpy = yes; then
11091 cat >>confdefs.h <<_ACEOF
11092 #define HAVE_DECL_STPCPY 1
11097 cat >>confdefs.h <<_ACEOF
11098 #define HAVE_DECL_STPCPY 0
11105 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
11106 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
11107 if test "${ac_cv_have_decl_strstr+set}" = set; then
11108 echo $ECHO_N "(cached) $ECHO_C" >&6
11110 cat >conftest.$ac_ext <<_ACEOF
11113 cat confdefs.h >>conftest.$ac_ext
11114 cat >>conftest.$ac_ext <<_ACEOF
11115 /* end confdefs.h. */
11116 $ac_includes_default
11121 char *p = (char *) strstr;
11128 rm -f conftest.$ac_objext
11129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11130 (eval $ac_compile) 2>conftest.er1
11132 grep -v '^ *+' conftest.er1 >conftest.err
11134 cat conftest.err >&5
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); } &&
11137 { ac_try='test -z "$ac_c_werror_flag"
11138 || test ! -s conftest.err'
11139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11140 (eval $ac_try) 2>&5
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); }; } &&
11144 { ac_try='test -s conftest.$ac_objext'
11145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11146 (eval $ac_try) 2>&5
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); }; }; then
11150 ac_cv_have_decl_strstr=yes
11152 echo "$as_me: failed program was:" >&5
11153 sed 's/^/| /' conftest.$ac_ext >&5
11155 ac_cv_have_decl_strstr=no
11157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11159 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
11160 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
11161 if test $ac_cv_have_decl_strstr = yes; then
11163 cat >>confdefs.h <<_ACEOF
11164 #define HAVE_DECL_STRSTR 1
11169 cat >>confdefs.h <<_ACEOF
11170 #define HAVE_DECL_STRSTR 0
11177 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11178 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11179 if test "${ac_cv_have_decl_snprintf+set}" = set; then
11180 echo $ECHO_N "(cached) $ECHO_C" >&6
11182 cat >conftest.$ac_ext <<_ACEOF
11185 cat confdefs.h >>conftest.$ac_ext
11186 cat >>conftest.$ac_ext <<_ACEOF
11187 /* end confdefs.h. */
11188 $ac_includes_default
11193 char *p = (char *) snprintf;
11200 rm -f conftest.$ac_objext
11201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11202 (eval $ac_compile) 2>conftest.er1
11204 grep -v '^ *+' conftest.er1 >conftest.err
11206 cat conftest.err >&5
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); } &&
11209 { ac_try='test -z "$ac_c_werror_flag"
11210 || test ! -s conftest.err'
11211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11212 (eval $ac_try) 2>&5
11214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); }; } &&
11216 { ac_try='test -s conftest.$ac_objext'
11217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11218 (eval $ac_try) 2>&5
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); }; }; then
11222 ac_cv_have_decl_snprintf=yes
11224 echo "$as_me: failed program was:" >&5
11225 sed 's/^/| /' conftest.$ac_ext >&5
11227 ac_cv_have_decl_snprintf=no
11229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11231 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11232 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11233 if test $ac_cv_have_decl_snprintf = yes; then
11235 cat >>confdefs.h <<_ACEOF
11236 #define HAVE_DECL_SNPRINTF 1
11241 cat >>confdefs.h <<_ACEOF
11242 #define HAVE_DECL_SNPRINTF 0
11249 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11250 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11251 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11252 echo $ECHO_N "(cached) $ECHO_C" >&6
11254 cat >conftest.$ac_ext <<_ACEOF
11257 cat confdefs.h >>conftest.$ac_ext
11258 cat >>conftest.$ac_ext <<_ACEOF
11259 /* end confdefs.h. */
11260 $ac_includes_default
11265 char *p = (char *) vsnprintf;
11272 rm -f conftest.$ac_objext
11273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11274 (eval $ac_compile) 2>conftest.er1
11276 grep -v '^ *+' conftest.er1 >conftest.err
11278 cat conftest.err >&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); } &&
11281 { ac_try='test -z "$ac_c_werror_flag"
11282 || test ! -s conftest.err'
11283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11284 (eval $ac_try) 2>&5
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); }; } &&
11288 { ac_try='test -s conftest.$ac_objext'
11289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11290 (eval $ac_try) 2>&5
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); }; }; then
11294 ac_cv_have_decl_vsnprintf=yes
11296 echo "$as_me: failed program was:" >&5
11297 sed 's/^/| /' conftest.$ac_ext >&5
11299 ac_cv_have_decl_vsnprintf=no
11301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11303 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11304 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11305 if test $ac_cv_have_decl_vsnprintf = yes; then
11307 cat >>confdefs.h <<_ACEOF
11308 #define HAVE_DECL_VSNPRINTF 1
11313 cat >>confdefs.h <<_ACEOF
11314 #define HAVE_DECL_VSNPRINTF 0
11322 # If we are configured native, pick a core file support file.
11326 if test "${target}" = "${host}"; then
11328 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
11332 COREFILE=trad-core.lo
11333 TRAD_HEADER='"hosts/alphalinux.h"'
11335 alpha*-*-netbsd* | alpha*-*-openbsd*)
11336 COREFILE=netbsd-core.lo
11338 alpha*-*-*) COREFILE=osf-core.lo ;;
11339 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
11341 arm-*-netbsd*) COREFILE=netbsd-core.lo ;;
11342 arm-*-riscix) COREFILE=trad-core.lo ;;
11343 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
11344 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
11345 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
11346 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
11347 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
11348 hppa*-*-netbsd* | hppa*-*-openbsd*)
11349 COREFILE=netbsd-core.lo
11353 COREFILE=trad-core.lo
11354 TRAD_HEADER='"hosts/i370linux.h"'
11357 i[3-7]86-sequent-bsd*)
11358 COREFILE=trad-core.lo
11359 TRAD_HEADER='"hosts/symmetry.h"'
11361 i[3-7]86-sequent-sysv4*) ;;
11362 i[3-7]86-sequent-sysv*)
11363 COREFILE=trad-core.lo
11364 TRAD_HEADER='"hosts/symmetry.h"'
11369 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*)
11370 COREFILE=trad-core.lo
11371 TRAD_HEADER='"hosts/i386bsd.h"'
11373 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
11375 TRAD_HEADER='"hosts/i386bsd.h"'
11377 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
11378 COREFILE=netbsd-core.lo
11380 i[3-7]86-esix-sysv3*)
11381 COREFILE=trad-core.lo
11382 TRAD_HEADER='"hosts/esix.h"'
11384 i[3-7]86-*-sco3.2v5*)
11385 COREFILE=sco5-core.lo
11387 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
11388 COREFILE=trad-core.lo
11389 TRAD_HEADER='"hosts/i386sco.h"'
11392 COREFILE=trad-core.lo
11393 TRAD_HEADER='"hosts/i386mach3.h"'
11395 i[3-7]86-*-linux-*)
11396 COREFILE=trad-core.lo
11397 TRAD_HEADER='"hosts/i386linux.h"'
11399 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
11400 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
11401 i860-*-mach3* | i860-*-osf1*)
11402 COREFILE=trad-core.lo
11403 TRAD_HEADER='"hosts/i860mach3.h"'
11405 mips-*-netbsd* | mips*-*-openbsd*)
11406 COREFILE=netbsd-core.lo
11409 COREFILE=trad-core.lo
11410 TRAD_HEADER='"hosts/decstation.h"'
11412 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
11413 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
11414 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
11416 mips-*-sysv* | mips-*-riscos*)
11417 COREFILE=trad-core.lo
11418 TRAD_HEADER='"hosts/riscos.h"'
11421 COREFILE=trad-core.lo
11422 TRAD_HEADER='"hosts/news-mips.h"'
11425 COREFILE=trad-core.lo
11426 TRAD_HEADER='"hosts/dpx2.h"'
11428 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
11430 COREFILE=trad-core.lo
11431 TRAD_HEADER='"hosts/hp300bsd.h"'
11434 COREFILE=trad-core.lo
11435 TRAD_HEADER='"hosts/m68klinux.h"'
11437 m68*-motorola-sysv*)
11438 COREFILE=trad-core.lo
11439 TRAD_HEADER='"hosts/delta68.h"'
11442 COREFILE=trad-core.lo
11443 TRAD_HEADER='"hosts/news.h"'
11445 m68*-*-netbsd* | m68*-*-openbsd*)
11446 COREFILE=netbsd-core.lo
11449 COREFILE=trad-core.lo
11450 TRAD_HEADER='"hosts/m68kaux.h"'
11454 m88*-motorola-sysv*)
11455 COREFILE=ptrace-core.lo
11458 COREFILE=trad-core.lo
11459 TRAD_HEADER='"hosts/m88kmach3.h"'
11462 COREFILE=netbsd-core.lo
11465 COREFILE=trad-core.lo
11466 TRAD_HEADER='"hosts/pc532mach.h"'
11468 ns32k-*-netbsd* | ns32k-*-openbsd*)
11469 COREFILE=netbsd-core.lo
11472 COREFILE=lynx-core.lo
11474 rs6000-*-aix5.* | powerpc-*-aix5.*)
11475 COREFILE=rs6000-core.lo
11476 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
11478 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
11479 COREFILE=rs6000-core.lo
11480 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
11481 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
11482 # have c_impl as a member of struct core_dumpx
11483 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
11484 echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
11485 cat >conftest.$ac_ext <<_ACEOF
11488 cat confdefs.h >>conftest.$ac_ext
11489 cat >>conftest.$ac_ext <<_ACEOF
11490 /* end confdefs.h. */
11495 struct core_dumpx c; c.c_impl = 0;
11500 rm -f conftest.$ac_objext
11501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11502 (eval $ac_compile) 2>conftest.er1
11504 grep -v '^ *+' conftest.er1 >conftest.err
11506 cat conftest.err >&5
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); } &&
11509 { ac_try='test -z "$ac_c_werror_flag"
11510 || test ! -s conftest.err'
11511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11512 (eval $ac_try) 2>&5
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); }; } &&
11516 { ac_try='test -s conftest.$ac_objext'
11517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11518 (eval $ac_try) 2>&5
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); }; }; then
11523 cat >>confdefs.h <<\_ACEOF
11524 #define HAVE_ST_C_IMPL 1
11527 echo "$as_me:$LINENO: result: yes" >&5
11528 echo "${ECHO_T}yes" >&6
11530 echo "$as_me: failed program was:" >&5
11531 sed 's/^/| /' conftest.$ac_ext >&5
11533 echo "$as_me:$LINENO: result: no" >&5
11534 echo "${ECHO_T}no" >&6
11536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11538 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
11539 rs6000-*-*) COREFILE=rs6000-core.lo ;;
11540 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
11541 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
11542 powerpc-*-beos*) ;;
11543 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
11545 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
11546 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
11547 s390*-*-*) COREFILE=trad-core.lo ;;
11548 sh*-*-netbsd*) COREFILE=netbsd-core.lo ;;
11549 sparc-*-netbsd* | sparc*-*-openbsd*)
11550 COREFILE=netbsd-core.lo
11553 COREFILE=trad-core.lo
11554 TRAD_HEADER='"hosts/tahoe.h"'
11556 vax-*-netbsd* | vax-*-openbsd*)
11557 COREFILE=netbsd-core.lo
11560 COREFILE=trad-core.lo
11561 TRAD_HEADER='"hosts/vaxult2.h"'
11564 COREFILE=trad-core.lo
11565 TRAD_HEADER='"hosts/vaxult2.h"'
11568 COREFILE=trad-core.lo
11569 TRAD_HEADER='"hosts/vaxlinux.h"'
11572 COREFILE=trad-core.lo
11573 TRAD_HEADER='"hosts/vaxbsd.h"'
11575 x86_64-*-netbsd* | x86_64-*-openbsd*)
11576 COREFILE=netbsd-core.lo
11580 case "$COREFILE" in
11581 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
11582 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
11583 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
11584 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
11585 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
11586 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
11587 osf-core.lo) COREFLAG=-DOSF_CORE ;;
11588 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
11589 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
11590 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
11591 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
11594 # ELF corefile support has several flavors, but all of
11595 # them use something called <sys/procfs.h>
11597 for ac_header in sys/procfs.h
11599 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11601 echo "$as_me:$LINENO: checking for $ac_header" >&5
11602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11604 echo $ECHO_N "(cached) $ECHO_C" >&6
11606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11609 # Is the header compilable?
11610 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11611 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11612 cat >conftest.$ac_ext <<_ACEOF
11615 cat confdefs.h >>conftest.$ac_ext
11616 cat >>conftest.$ac_ext <<_ACEOF
11617 /* end confdefs.h. */
11618 $ac_includes_default
11619 #include <$ac_header>
11621 rm -f conftest.$ac_objext
11622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11623 (eval $ac_compile) 2>conftest.er1
11625 grep -v '^ *+' conftest.er1 >conftest.err
11627 cat conftest.err >&5
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); } &&
11630 { ac_try='test -z "$ac_c_werror_flag"
11631 || test ! -s conftest.err'
11632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633 (eval $ac_try) 2>&5
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; } &&
11637 { ac_try='test -s conftest.$ac_objext'
11638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11639 (eval $ac_try) 2>&5
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); }; }; then
11643 ac_header_compiler=yes
11645 echo "$as_me: failed program was:" >&5
11646 sed 's/^/| /' conftest.$ac_ext >&5
11648 ac_header_compiler=no
11650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11651 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11652 echo "${ECHO_T}$ac_header_compiler" >&6
11654 # Is the header present?
11655 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11656 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11657 cat >conftest.$ac_ext <<_ACEOF
11660 cat confdefs.h >>conftest.$ac_ext
11661 cat >>conftest.$ac_ext <<_ACEOF
11662 /* end confdefs.h. */
11663 #include <$ac_header>
11665 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11666 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11668 grep -v '^ *+' conftest.er1 >conftest.err
11670 cat conftest.err >&5
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); } >/dev/null; then
11673 if test -s conftest.err; then
11674 ac_cpp_err=$ac_c_preproc_warn_flag
11675 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11682 if test -z "$ac_cpp_err"; then
11683 ac_header_preproc=yes
11685 echo "$as_me: failed program was:" >&5
11686 sed 's/^/| /' conftest.$ac_ext >&5
11688 ac_header_preproc=no
11690 rm -f conftest.err conftest.$ac_ext
11691 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11692 echo "${ECHO_T}$ac_header_preproc" >&6
11694 # So? What about this header?
11695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11697 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11698 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11700 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11701 ac_header_preproc=yes
11704 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11705 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11706 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11707 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11708 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11709 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11710 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11711 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11714 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11715 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11718 ## ------------------------------------------ ##
11719 ## Report this to the AC_PACKAGE_NAME lists. ##
11720 ## ------------------------------------------ ##
11723 sed "s/^/$as_me: WARNING: /" >&2
11726 echo "$as_me:$LINENO: checking for $ac_header" >&5
11727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11729 echo $ECHO_N "(cached) $ECHO_C" >&6
11731 eval "$as_ac_Header=\$ac_header_preproc"
11733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11734 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11737 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11738 cat >>confdefs.h <<_ACEOF
11739 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11746 if test "$ac_cv_header_sys_procfs_h" = yes; then
11747 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
11748 echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
11749 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
11750 echo $ECHO_N "(cached) $ECHO_C" >&6
11752 cat >conftest.$ac_ext <<_ACEOF
11755 cat confdefs.h >>conftest.$ac_ext
11756 cat >>conftest.$ac_ext <<_ACEOF
11757 /* end confdefs.h. */
11760 #include <sys/procfs.h>
11769 rm -f conftest.$ac_objext
11770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11771 (eval $ac_compile) 2>conftest.er1
11773 grep -v '^ *+' conftest.er1 >conftest.err
11775 cat conftest.err >&5
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); } &&
11778 { ac_try='test -z "$ac_c_werror_flag"
11779 || test ! -s conftest.err'
11780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11781 (eval $ac_try) 2>&5
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); }; } &&
11785 { ac_try='test -s conftest.$ac_objext'
11786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11787 (eval $ac_try) 2>&5
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); }; }; then
11791 bfd_cv_have_sys_procfs_type_prstatus_t=yes
11793 echo "$as_me: failed program was:" >&5
11794 sed 's/^/| /' conftest.$ac_ext >&5
11796 bfd_cv_have_sys_procfs_type_prstatus_t=no
11799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11802 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
11804 cat >>confdefs.h <<\_ACEOF
11805 #define HAVE_PRSTATUS_T 1
11809 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
11810 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
11812 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
11813 echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
11814 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
11815 echo $ECHO_N "(cached) $ECHO_C" >&6
11817 cat >conftest.$ac_ext <<_ACEOF
11820 cat confdefs.h >>conftest.$ac_ext
11821 cat >>conftest.$ac_ext <<_ACEOF
11822 /* end confdefs.h. */
11825 #include <sys/procfs.h>
11834 rm -f conftest.$ac_objext
11835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11836 (eval $ac_compile) 2>conftest.er1
11838 grep -v '^ *+' conftest.er1 >conftest.err
11840 cat conftest.err >&5
11841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842 (exit $ac_status); } &&
11843 { ac_try='test -z "$ac_c_werror_flag"
11844 || test ! -s conftest.err'
11845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11846 (eval $ac_try) 2>&5
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); }; } &&
11850 { ac_try='test -s conftest.$ac_objext'
11851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11852 (eval $ac_try) 2>&5
11854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); }; }; then
11856 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
11858 echo "$as_me: failed program was:" >&5
11859 sed 's/^/| /' conftest.$ac_ext >&5
11861 bfd_cv_have_sys_procfs_type_prstatus32_t=no
11864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11867 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
11869 cat >>confdefs.h <<\_ACEOF
11870 #define HAVE_PRSTATUS32_T 1
11874 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
11875 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
11877 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
11878 echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
11879 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
11880 echo $ECHO_N "(cached) $ECHO_C" >&6
11882 cat >conftest.$ac_ext <<_ACEOF
11885 cat confdefs.h >>conftest.$ac_ext
11886 cat >>conftest.$ac_ext <<_ACEOF
11887 /* end confdefs.h. */
11890 #include <sys/procfs.h>
11894 prstatus_t avar; void* aref = (void*) &avar.pr_who
11899 rm -f conftest.$ac_objext
11900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11901 (eval $ac_compile) 2>conftest.er1
11903 grep -v '^ *+' conftest.er1 >conftest.err
11905 cat conftest.err >&5
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); } &&
11908 { ac_try='test -z "$ac_c_werror_flag"
11909 || test ! -s conftest.err'
11910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11911 (eval $ac_try) 2>&5
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); }; } &&
11915 { ac_try='test -s conftest.$ac_objext'
11916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11917 (eval $ac_try) 2>&5
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); }; }; then
11921 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
11923 echo "$as_me: failed program was:" >&5
11924 sed 's/^/| /' conftest.$ac_ext >&5
11926 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
11929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11932 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
11934 cat >>confdefs.h <<\_ACEOF
11935 #define HAVE_PRSTATUS_T_PR_WHO 1
11939 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
11940 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
11942 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
11943 echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
11944 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
11945 echo $ECHO_N "(cached) $ECHO_C" >&6
11947 cat >conftest.$ac_ext <<_ACEOF
11950 cat confdefs.h >>conftest.$ac_ext
11951 cat >>conftest.$ac_ext <<_ACEOF
11952 /* end confdefs.h. */
11955 #include <sys/procfs.h>
11959 prstatus32_t avar; void* aref = (void*) &avar.pr_who
11964 rm -f conftest.$ac_objext
11965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11966 (eval $ac_compile) 2>conftest.er1
11968 grep -v '^ *+' conftest.er1 >conftest.err
11970 cat conftest.err >&5
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); } &&
11973 { ac_try='test -z "$ac_c_werror_flag"
11974 || test ! -s conftest.err'
11975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11976 (eval $ac_try) 2>&5
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); }; } &&
11980 { ac_try='test -s conftest.$ac_objext'
11981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982 (eval $ac_try) 2>&5
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); }; }; then
11986 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
11988 echo "$as_me: failed program was:" >&5
11989 sed 's/^/| /' conftest.$ac_ext >&5
11991 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
11994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11997 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
11999 cat >>confdefs.h <<\_ACEOF
12000 #define HAVE_PRSTATUS32_T_PR_WHO 1
12004 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
12005 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
12007 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
12008 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
12009 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
12010 echo $ECHO_N "(cached) $ECHO_C" >&6
12012 cat >conftest.$ac_ext <<_ACEOF
12015 cat confdefs.h >>conftest.$ac_ext
12016 cat >>conftest.$ac_ext <<_ACEOF
12017 /* end confdefs.h. */
12020 #include <sys/procfs.h>
12029 rm -f conftest.$ac_objext
12030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12031 (eval $ac_compile) 2>conftest.er1
12033 grep -v '^ *+' conftest.er1 >conftest.err
12035 cat conftest.err >&5
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); } &&
12038 { ac_try='test -z "$ac_c_werror_flag"
12039 || test ! -s conftest.err'
12040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12041 (eval $ac_try) 2>&5
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); }; } &&
12045 { ac_try='test -s conftest.$ac_objext'
12046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12047 (eval $ac_try) 2>&5
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); }; }; then
12051 bfd_cv_have_sys_procfs_type_pstatus_t=yes
12053 echo "$as_me: failed program was:" >&5
12054 sed 's/^/| /' conftest.$ac_ext >&5
12056 bfd_cv_have_sys_procfs_type_pstatus_t=no
12059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12062 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
12064 cat >>confdefs.h <<\_ACEOF
12065 #define HAVE_PSTATUS_T 1
12069 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
12070 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
12072 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
12073 echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
12074 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
12075 echo $ECHO_N "(cached) $ECHO_C" >&6
12077 cat >conftest.$ac_ext <<_ACEOF
12080 cat confdefs.h >>conftest.$ac_ext
12081 cat >>conftest.$ac_ext <<_ACEOF
12082 /* end confdefs.h. */
12085 #include <sys/procfs.h>
12094 rm -f conftest.$ac_objext
12095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12096 (eval $ac_compile) 2>conftest.er1
12098 grep -v '^ *+' conftest.er1 >conftest.err
12100 cat conftest.err >&5
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); } &&
12103 { ac_try='test -z "$ac_c_werror_flag"
12104 || test ! -s conftest.err'
12105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12106 (eval $ac_try) 2>&5
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); }; } &&
12110 { ac_try='test -s conftest.$ac_objext'
12111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12112 (eval $ac_try) 2>&5
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); }; }; then
12116 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
12118 echo "$as_me: failed program was:" >&5
12119 sed 's/^/| /' conftest.$ac_ext >&5
12121 bfd_cv_have_sys_procfs_type_pxstatus_t=no
12124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12127 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
12129 cat >>confdefs.h <<\_ACEOF
12130 #define HAVE_PXSTATUS_T 1
12134 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
12135 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
12137 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
12138 echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
12139 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
12140 echo $ECHO_N "(cached) $ECHO_C" >&6
12142 cat >conftest.$ac_ext <<_ACEOF
12145 cat confdefs.h >>conftest.$ac_ext
12146 cat >>conftest.$ac_ext <<_ACEOF
12147 /* end confdefs.h. */
12150 #include <sys/procfs.h>
12159 rm -f conftest.$ac_objext
12160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12161 (eval $ac_compile) 2>conftest.er1
12163 grep -v '^ *+' conftest.er1 >conftest.err
12165 cat conftest.err >&5
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); } &&
12168 { ac_try='test -z "$ac_c_werror_flag"
12169 || test ! -s conftest.err'
12170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12171 (eval $ac_try) 2>&5
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); }; } &&
12175 { ac_try='test -s conftest.$ac_objext'
12176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12177 (eval $ac_try) 2>&5
12179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180 (exit $ac_status); }; }; then
12181 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
12183 echo "$as_me: failed program was:" >&5
12184 sed 's/^/| /' conftest.$ac_ext >&5
12186 bfd_cv_have_sys_procfs_type_pstatus32_t=no
12189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12192 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
12194 cat >>confdefs.h <<\_ACEOF
12195 #define HAVE_PSTATUS32_T 1
12199 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
12200 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
12202 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
12203 echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
12204 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
12205 echo $ECHO_N "(cached) $ECHO_C" >&6
12207 cat >conftest.$ac_ext <<_ACEOF
12210 cat confdefs.h >>conftest.$ac_ext
12211 cat >>conftest.$ac_ext <<_ACEOF
12212 /* end confdefs.h. */
12215 #include <sys/procfs.h>
12224 rm -f conftest.$ac_objext
12225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12226 (eval $ac_compile) 2>conftest.er1
12228 grep -v '^ *+' conftest.er1 >conftest.err
12230 cat conftest.err >&5
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); } &&
12233 { ac_try='test -z "$ac_c_werror_flag"
12234 || test ! -s conftest.err'
12235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12236 (eval $ac_try) 2>&5
12238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239 (exit $ac_status); }; } &&
12240 { ac_try='test -s conftest.$ac_objext'
12241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12242 (eval $ac_try) 2>&5
12244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245 (exit $ac_status); }; }; then
12246 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
12248 echo "$as_me: failed program was:" >&5
12249 sed 's/^/| /' conftest.$ac_ext >&5
12251 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
12254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12257 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
12259 cat >>confdefs.h <<\_ACEOF
12260 #define HAVE_PRPSINFO_T 1
12264 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
12265 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
12267 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
12268 echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
12269 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
12270 echo $ECHO_N "(cached) $ECHO_C" >&6
12272 cat >conftest.$ac_ext <<_ACEOF
12275 cat confdefs.h >>conftest.$ac_ext
12276 cat >>conftest.$ac_ext <<_ACEOF
12277 /* end confdefs.h. */
12280 #include <sys/procfs.h>
12289 rm -f conftest.$ac_objext
12290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12291 (eval $ac_compile) 2>conftest.er1
12293 grep -v '^ *+' conftest.er1 >conftest.err
12295 cat conftest.err >&5
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); } &&
12298 { ac_try='test -z "$ac_c_werror_flag"
12299 || test ! -s conftest.err'
12300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12301 (eval $ac_try) 2>&5
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); }; } &&
12305 { ac_try='test -s conftest.$ac_objext'
12306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12307 (eval $ac_try) 2>&5
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); }; }; then
12311 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
12313 echo "$as_me: failed program was:" >&5
12314 sed 's/^/| /' conftest.$ac_ext >&5
12316 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
12319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12322 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
12324 cat >>confdefs.h <<\_ACEOF
12325 #define HAVE_PRPSINFO32_T 1
12329 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
12330 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
12332 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
12333 echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
12334 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
12335 echo $ECHO_N "(cached) $ECHO_C" >&6
12337 cat >conftest.$ac_ext <<_ACEOF
12340 cat confdefs.h >>conftest.$ac_ext
12341 cat >>conftest.$ac_ext <<_ACEOF
12342 /* end confdefs.h. */
12345 #include <sys/procfs.h>
12354 rm -f conftest.$ac_objext
12355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12356 (eval $ac_compile) 2>conftest.er1
12358 grep -v '^ *+' conftest.er1 >conftest.err
12360 cat conftest.err >&5
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); } &&
12363 { ac_try='test -z "$ac_c_werror_flag"
12364 || test ! -s conftest.err'
12365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366 (eval $ac_try) 2>&5
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); }; } &&
12370 { ac_try='test -s conftest.$ac_objext'
12371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12372 (eval $ac_try) 2>&5
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); }; }; then
12376 bfd_cv_have_sys_procfs_type_psinfo_t=yes
12378 echo "$as_me: failed program was:" >&5
12379 sed 's/^/| /' conftest.$ac_ext >&5
12381 bfd_cv_have_sys_procfs_type_psinfo_t=no
12384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12387 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
12389 cat >>confdefs.h <<\_ACEOF
12390 #define HAVE_PSINFO_T 1
12394 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
12395 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
12397 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
12398 echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
12399 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
12400 echo $ECHO_N "(cached) $ECHO_C" >&6
12402 cat >conftest.$ac_ext <<_ACEOF
12405 cat confdefs.h >>conftest.$ac_ext
12406 cat >>conftest.$ac_ext <<_ACEOF
12407 /* end confdefs.h. */
12410 #include <sys/procfs.h>
12419 rm -f conftest.$ac_objext
12420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12421 (eval $ac_compile) 2>conftest.er1
12423 grep -v '^ *+' conftest.er1 >conftest.err
12425 cat conftest.err >&5
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); } &&
12428 { ac_try='test -z "$ac_c_werror_flag"
12429 || test ! -s conftest.err'
12430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12431 (eval $ac_try) 2>&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); }; } &&
12435 { ac_try='test -s conftest.$ac_objext'
12436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12437 (eval $ac_try) 2>&5
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); }; }; then
12441 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
12443 echo "$as_me: failed program was:" >&5
12444 sed 's/^/| /' conftest.$ac_ext >&5
12446 bfd_cv_have_sys_procfs_type_psinfo32_t=no
12449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12452 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
12454 cat >>confdefs.h <<\_ACEOF
12455 #define HAVE_PSINFO32_T 1
12459 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
12460 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
12462 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
12463 echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
12464 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
12465 echo $ECHO_N "(cached) $ECHO_C" >&6
12467 cat >conftest.$ac_ext <<_ACEOF
12470 cat confdefs.h >>conftest.$ac_ext
12471 cat >>conftest.$ac_ext <<_ACEOF
12472 /* end confdefs.h. */
12475 #include <sys/procfs.h>
12484 rm -f conftest.$ac_objext
12485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12486 (eval $ac_compile) 2>conftest.er1
12488 grep -v '^ *+' conftest.er1 >conftest.err
12490 cat conftest.err >&5
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); } &&
12493 { ac_try='test -z "$ac_c_werror_flag"
12494 || test ! -s conftest.err'
12495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12496 (eval $ac_try) 2>&5
12498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); }; } &&
12500 { ac_try='test -s conftest.$ac_objext'
12501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12502 (eval $ac_try) 2>&5
12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505 (exit $ac_status); }; }; then
12506 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
12508 echo "$as_me: failed program was:" >&5
12509 sed 's/^/| /' conftest.$ac_ext >&5
12511 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
12514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12517 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
12519 cat >>confdefs.h <<\_ACEOF
12520 #define HAVE_LWPSTATUS_T 1
12524 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
12525 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
12527 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
12528 echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
12529 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
12530 echo $ECHO_N "(cached) $ECHO_C" >&6
12532 cat >conftest.$ac_ext <<_ACEOF
12535 cat confdefs.h >>conftest.$ac_ext
12536 cat >>conftest.$ac_ext <<_ACEOF
12537 /* end confdefs.h. */
12540 #include <sys/procfs.h>
12549 rm -f conftest.$ac_objext
12550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12551 (eval $ac_compile) 2>conftest.er1
12553 grep -v '^ *+' conftest.er1 >conftest.err
12555 cat conftest.err >&5
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); } &&
12558 { ac_try='test -z "$ac_c_werror_flag"
12559 || test ! -s conftest.err'
12560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12561 (eval $ac_try) 2>&5
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); }; } &&
12565 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
12571 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
12573 echo "$as_me: failed program was:" >&5
12574 sed 's/^/| /' conftest.$ac_ext >&5
12576 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
12579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12582 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
12584 cat >>confdefs.h <<\_ACEOF
12585 #define HAVE_LWPXSTATUS_T 1
12589 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
12590 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
12592 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
12593 echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
12594 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
12595 echo $ECHO_N "(cached) $ECHO_C" >&6
12597 cat >conftest.$ac_ext <<_ACEOF
12600 cat confdefs.h >>conftest.$ac_ext
12601 cat >>conftest.$ac_ext <<_ACEOF
12602 /* end confdefs.h. */
12605 #include <sys/procfs.h>
12609 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
12614 rm -f conftest.$ac_objext
12615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12616 (eval $ac_compile) 2>conftest.er1
12618 grep -v '^ *+' conftest.er1 >conftest.err
12620 cat conftest.err >&5
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); } &&
12623 { ac_try='test -z "$ac_c_werror_flag"
12624 || test ! -s conftest.err'
12625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12626 (eval $ac_try) 2>&5
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); }; } &&
12630 { ac_try='test -s conftest.$ac_objext'
12631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12632 (eval $ac_try) 2>&5
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); }; }; then
12636 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
12638 echo "$as_me: failed program was:" >&5
12639 sed 's/^/| /' conftest.$ac_ext >&5
12641 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
12644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12647 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
12649 cat >>confdefs.h <<\_ACEOF
12650 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
12654 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
12655 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
12657 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
12658 echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
12659 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
12660 echo $ECHO_N "(cached) $ECHO_C" >&6
12662 cat >conftest.$ac_ext <<_ACEOF
12665 cat confdefs.h >>conftest.$ac_ext
12666 cat >>conftest.$ac_ext <<_ACEOF
12667 /* end confdefs.h. */
12670 #include <sys/procfs.h>
12674 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
12679 rm -f conftest.$ac_objext
12680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12681 (eval $ac_compile) 2>conftest.er1
12683 grep -v '^ *+' conftest.er1 >conftest.err
12685 cat conftest.err >&5
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); } &&
12688 { ac_try='test -z "$ac_c_werror_flag"
12689 || test ! -s conftest.err'
12690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12691 (eval $ac_try) 2>&5
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); }; } &&
12695 { ac_try='test -s conftest.$ac_objext'
12696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12697 (eval $ac_try) 2>&5
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); }; }; then
12701 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
12703 echo "$as_me: failed program was:" >&5
12704 sed 's/^/| /' conftest.$ac_ext >&5
12706 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
12709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12712 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
12714 cat >>confdefs.h <<\_ACEOF
12715 #define HAVE_LWPSTATUS_T_PR_REG 1
12719 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
12720 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
12722 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
12723 echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
12724 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
12725 echo $ECHO_N "(cached) $ECHO_C" >&6
12727 cat >conftest.$ac_ext <<_ACEOF
12730 cat confdefs.h >>conftest.$ac_ext
12731 cat >>conftest.$ac_ext <<_ACEOF
12732 /* end confdefs.h. */
12735 #include <sys/procfs.h>
12739 win32_pstatus_t avar
12744 rm -f conftest.$ac_objext
12745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12746 (eval $ac_compile) 2>conftest.er1
12748 grep -v '^ *+' conftest.er1 >conftest.err
12750 cat conftest.err >&5
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); } &&
12753 { ac_try='test -z "$ac_c_werror_flag"
12754 || test ! -s conftest.err'
12755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12756 (eval $ac_try) 2>&5
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); }; } &&
12760 { ac_try='test -s conftest.$ac_objext'
12761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12762 (eval $ac_try) 2>&5
12764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 (exit $ac_status); }; }; then
12766 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
12768 echo "$as_me: failed program was:" >&5
12769 sed 's/^/| /' conftest.$ac_ext >&5
12771 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
12774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12777 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
12779 cat >>confdefs.h <<\_ACEOF
12780 #define HAVE_WIN32_PSTATUS_T 1
12784 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
12785 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
12791 if test -n "$TRAD_HEADER"; then
12793 cat >>confdefs.h <<_ACEOF
12794 #define TRAD_HEADER $TRAD_HEADER
12799 # Horrible hacks to build DLLs on Windows.
12804 if test "$enable_shared" = "yes"; then
12805 WIN32LDFLAGS="-no-undefined"
12806 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
12810 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
12814 # Linux/MIPS uses PIC by default.
12815 if test "$enable_shared" = "yes"; then
12816 WIN32LIBADD="-L../libiberty -liberty"
12820 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
12821 if test -n "$x"; then
12822 WIN32LIBADD="-L../libiberty/pic -liberty"
12833 # Canonicalize the secondary target names.
12834 if test -n "$enable_targets" ; then
12835 for targ in `echo $enable_targets | sed 's/,/ /g'`
12837 result=`$ac_config_sub $targ 2>/dev/null`
12838 if test -n "$result" ; then
12839 canon_targets="$canon_targets $result"
12841 # Allow targets that config.sub doesn't recognize, like "all".
12842 canon_targets="$canon_targets $targ"
12853 for targ in $target $canon_targets
12855 if test "x$targ" = "xall"; then
12857 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
12859 . $srcdir/config.bfd
12860 if test "x$targ" = "x$target"; then
12861 defvec=$targ_defvec
12863 selvecs="$selvecs $targ_defvec $targ_selvecs"
12864 selarchs="$selarchs $targ_archs"
12865 TDEFINES="$TDEFINES $targ_cflags"
12870 # This processing still needs to be done if we're to decide properly whether
12871 # 64-bit support needs to be compiled in. Currently, it will be included if
12872 # the default or any other explicitly requested target requires it; it
12873 # will not be included on a 32-bit host if no 64-bit target is requested, and
12874 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
12877 # uniq the default and selected vectors in all the configured targets.
12879 for i in $selvecs ; do
12888 # uniq the associated vectors in all the configured targets.
12890 for i in $assocvecs ; do
12899 # uniq the architectures in all the configured targets.
12901 for i in $selarchs ; do
12909 # Target backend .o files.
12912 elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
12914 for vec in $selvecs
12918 # This list is alphabetized to make it easy to compare
12919 # with the two vector lists in targets.c. For the same reason,
12920 # use one entry per line, even though this leads to long lines.
12921 a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;;
12922 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
12923 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
12924 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
12925 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
12926 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
12927 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
12928 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
12929 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
12930 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
12931 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
12932 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
12933 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
12934 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
12935 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
12936 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
12937 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
12938 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
12939 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
12940 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
12941 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
12942 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
12943 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
12944 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
12945 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
12946 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
12947 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo $elf" ;;
12948 bfd_elf32_bigarm_symbian_vec)
12949 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
12950 bfd_elf32_bigarm_vxworks_vec)
12951 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
12952 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
12953 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
12954 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
12955 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
12956 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
12957 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
12958 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
12959 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
12960 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
12961 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
12962 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
12963 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
12964 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
12965 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
12966 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
12967 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
12968 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
12969 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
12970 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
12971 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
12972 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
12973 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
12974 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
12975 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
12976 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
12977 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
12978 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
12979 bfd_elf32_littlearm_symbian_vec)
12980 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
12981 bfd_elf32_littlearm_vxworks_vec)
12982 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
12983 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo $elf" ;;
12984 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
12985 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
12986 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
12987 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
12988 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
12989 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
12990 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
12991 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
12992 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
12993 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
12994 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
12995 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
12996 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
12997 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
12998 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12999 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13000 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13001 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13002 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
13003 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
13004 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
13005 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
13006 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
13007 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
13008 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
13009 # FIXME: We include cofflink.lo not because it's needed for
13010 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
13011 # which needs it but does not list it. Should be fixed in right place.
13012 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
13013 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
13014 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
13015 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
13016 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
13017 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
13018 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
13019 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
13020 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
13021 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf32.lo $elf coff-sh.lo" ;;
13022 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
13023 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
13024 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
13025 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf32.lo $elf" ;;
13026 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
13027 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
13028 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
13029 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
13030 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
13031 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
13032 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
13033 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
13034 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
13035 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
13036 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
13037 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13038 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
13039 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
13040 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
13041 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
13042 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
13043 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
13044 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13045 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
13046 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
13047 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
13048 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
13049 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13050 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13051 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13052 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13053 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13054 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13055 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf64.lo $elf"; target_size=64 ;;
13056 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13057 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13058 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
13059 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
13060 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
13061 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
13062 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
13063 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
13064 cris_aout_vec) tb="$tb aout-cris.lo" ;;
13065 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
13066 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
13067 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
13068 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
13069 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
13070 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
13071 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
13072 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
13073 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
13074 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
13075 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
13076 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
13077 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
13078 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
13079 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
13080 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
13081 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
13082 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
13083 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
13084 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
13085 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
13086 i386msdos_vec) tb="$tb i386msdos.lo" ;;
13087 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
13088 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
13089 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
13090 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
13091 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
13092 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
13093 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
13094 ieee_vec) tb="$tb ieee.lo" ;;
13095 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
13096 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
13097 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
13098 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
13099 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
13100 m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
13101 m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
13102 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
13103 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
13104 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
13105 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
13106 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
13107 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
13108 mach_o_be_vec) tb="$tb mach-o.lo" ;;
13109 mach_o_le_vec) tb="$tb mach-o.lo" ;;
13110 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
13111 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
13112 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
13113 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
13114 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
13115 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
13116 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
13117 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
13118 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
13119 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
13120 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
13121 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
13122 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
13123 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
13124 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
13125 pef_vec) tb="$tb pef.lo" ;;
13126 pef_xlib_vec) tb="$tb pef.lo" ;;
13127 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
13128 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
13129 ppcboot_vec) tb="$tb ppcboot.lo" ;;
13130 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
13131 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
13132 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
13133 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
13134 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
13135 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
13136 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
13137 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
13138 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
13139 som_vec) tb="$tb som.lo" ;;
13140 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
13141 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
13142 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
13143 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
13144 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
13145 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
13146 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
13147 sym_vec) tb="$tb xsym.lo" ;;
13148 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
13149 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
13150 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
13151 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
13152 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
13153 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
13154 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
13155 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
13156 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
13157 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
13158 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
13159 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
13160 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
13161 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
13162 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
13163 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
13164 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
13165 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
13166 versados_vec) tb="$tb versados.lo" ;;
13167 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
13168 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
13169 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
13170 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
13171 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;;
13173 # These appear out of order in targets.c
13174 srec_vec) tb="$tb srec.lo" ;;
13175 symbolsrec_vec) tb="$tb srec.lo" ;;
13176 tekhex_vec) tb="$tb tekhex.lo" ;;
13177 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
13178 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
13181 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
13182 echo "$as_me: error: *** unknown target vector $vec" >&2;}
13183 { (exit 1); exit 1; }; } ;;
13186 if test ${target_size} = 64; then
13189 if test x"${vec}" = x"${defvec}"; then
13190 bfd_default_target_size=${target_size}
13194 # Target architecture .o files.
13195 # A couple of CPUs use shorter file names to avoid problems on DOS
13197 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
13199 # Weed out duplicate .o files.
13221 if test x${all_targets} = xtrue ; then
13222 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
13223 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
13227 test -n "$assocvecs" &&
13228 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
13229 else # all_targets is true
13230 # Only set these if they will be nonempty, for the clever echo.
13233 test -n "$selvecs" &&
13234 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
13235 test -n "$selvecs" &&
13236 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
13237 test -n "$selarchs" &&
13238 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
13239 fi # all_targets is true
13241 case ${host64}-${target64}-${want64} in
13244 bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)'
13245 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
13246 if test $BFD_HOST_64_BIT_DEFINED = 0; then
13247 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
13248 echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
13249 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
13250 echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
13252 if test -n "$GCC" ; then
13254 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
13255 echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
13256 # Add more tests for gcc versions with non-working 64-bit support here.
13257 cat >conftest.$ac_ext <<_ACEOF
13260 cat confdefs.h >>conftest.$ac_ext
13261 cat >>conftest.$ac_ext <<_ACEOF
13262 /* end confdefs.h. */
13263 :__GNUC__:__GNUC_MINOR__:__i386__:
13265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13266 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
13268 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
13269 echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
13271 echo "$as_me:$LINENO: result: no" >&5
13272 echo "${ECHO_T}no" >&6
13276 if test $bad_64bit_gcc = yes ; then
13277 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
13278 echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
13279 { (exit 1); exit 1; }; }
13285 bfd_libs='$(BFD32_LIBS)'
13286 all_backends='$(BFD32_BACKENDS)'
13297 # Determine the host dependant file_ptr a.k.a. off_t type. In order
13298 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
13299 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
13300 # Hopefully a reasonable assumption since fseeko et.al. should be
13301 # upward compatible.
13306 for ac_func in ftello ftello64 fseeko fseeko64
13308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13309 echo "$as_me:$LINENO: checking for $ac_func" >&5
13310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13311 if eval "test \"\${$as_ac_var+set}\" = set"; then
13312 echo $ECHO_N "(cached) $ECHO_C" >&6
13314 cat >conftest.$ac_ext <<_ACEOF
13317 cat confdefs.h >>conftest.$ac_ext
13318 cat >>conftest.$ac_ext <<_ACEOF
13319 /* end confdefs.h. */
13320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13322 #define $ac_func innocuous_$ac_func
13324 /* System header to define __stub macros and hopefully few prototypes,
13325 which can conflict with char $ac_func (); below.
13326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13327 <limits.h> exists even on freestanding compilers. */
13330 # include <limits.h>
13332 # include <assert.h>
13337 /* Override any gcc2 internal prototype to avoid an error. */
13342 /* We use char because int might match the return type of a gcc2
13343 builtin and then its argument prototype would still apply. */
13345 /* The GNU C library defines this for functions which it implements
13346 to always fail with ENOSYS. Some functions are actually named
13347 something starting with __ and the normal name is an alias. */
13348 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13351 char (*f) () = $ac_func;
13360 return f != $ac_func;
13365 rm -f conftest.$ac_objext conftest$ac_exeext
13366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13367 (eval $ac_link) 2>conftest.er1
13369 grep -v '^ *+' conftest.er1 >conftest.err
13371 cat conftest.err >&5
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); } &&
13374 { ac_try='test -z "$ac_c_werror_flag"
13375 || test ! -s conftest.err'
13376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13377 (eval $ac_try) 2>&5
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); }; } &&
13381 { ac_try='test -s conftest$ac_exeext'
13382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13383 (eval $ac_try) 2>&5
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); }; }; then
13387 eval "$as_ac_var=yes"
13389 echo "$as_me: failed program was:" >&5
13390 sed 's/^/| /' conftest.$ac_ext >&5
13392 eval "$as_ac_var=no"
13394 rm -f conftest.err conftest.$ac_objext \
13395 conftest$ac_exeext conftest.$ac_ext
13397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13398 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13399 if test `eval echo '${'$as_ac_var'}'` = yes; then
13400 cat >>confdefs.h <<_ACEOF
13401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13407 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
13408 echo "$as_me:$LINENO: checking for off_t" >&5
13409 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13410 if test "${ac_cv_type_off_t+set}" = set; then
13411 echo $ECHO_N "(cached) $ECHO_C" >&6
13413 cat >conftest.$ac_ext <<_ACEOF
13416 cat confdefs.h >>conftest.$ac_ext
13417 cat >>conftest.$ac_ext <<_ACEOF
13418 /* end confdefs.h. */
13419 $ac_includes_default
13425 if (sizeof (off_t))
13431 rm -f conftest.$ac_objext
13432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13433 (eval $ac_compile) 2>conftest.er1
13435 grep -v '^ *+' conftest.er1 >conftest.err
13437 cat conftest.err >&5
13438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 (exit $ac_status); } &&
13440 { ac_try='test -z "$ac_c_werror_flag"
13441 || test ! -s conftest.err'
13442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13443 (eval $ac_try) 2>&5
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); }; } &&
13447 { ac_try='test -s conftest.$ac_objext'
13448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13449 (eval $ac_try) 2>&5
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); }; }; then
13453 ac_cv_type_off_t=yes
13455 echo "$as_me: failed program was:" >&5
13456 sed 's/^/| /' conftest.$ac_ext >&5
13458 ac_cv_type_off_t=no
13460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13462 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13463 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13465 echo "$as_me:$LINENO: checking size of off_t" >&5
13466 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
13467 if test "${ac_cv_sizeof_off_t+set}" = set; then
13468 echo $ECHO_N "(cached) $ECHO_C" >&6
13470 if test "$ac_cv_type_off_t" = yes; then
13471 # The cast to unsigned long works around a bug in the HP C Compiler
13472 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13473 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13474 # This bug is HP SR number 8606223364.
13475 if test "$cross_compiling" = yes; then
13476 # Depending upon the size, compute the lo and hi bounds.
13477 cat >conftest.$ac_ext <<_ACEOF
13480 cat confdefs.h >>conftest.$ac_ext
13481 cat >>conftest.$ac_ext <<_ACEOF
13482 /* end confdefs.h. */
13483 $ac_includes_default
13487 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
13494 rm -f conftest.$ac_objext
13495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13496 (eval $ac_compile) 2>conftest.er1
13498 grep -v '^ *+' conftest.er1 >conftest.err
13500 cat conftest.err >&5
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); } &&
13503 { ac_try='test -z "$ac_c_werror_flag"
13504 || test ! -s conftest.err'
13505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13506 (eval $ac_try) 2>&5
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); }; } &&
13510 { ac_try='test -s conftest.$ac_objext'
13511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13512 (eval $ac_try) 2>&5
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); }; }; then
13518 cat >conftest.$ac_ext <<_ACEOF
13521 cat confdefs.h >>conftest.$ac_ext
13522 cat >>conftest.$ac_ext <<_ACEOF
13523 /* end confdefs.h. */
13524 $ac_includes_default
13528 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
13535 rm -f conftest.$ac_objext
13536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13537 (eval $ac_compile) 2>conftest.er1
13539 grep -v '^ *+' conftest.er1 >conftest.err
13541 cat conftest.err >&5
13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); } &&
13544 { ac_try='test -z "$ac_c_werror_flag"
13545 || test ! -s conftest.err'
13546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13547 (eval $ac_try) 2>&5
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); }; } &&
13551 { ac_try='test -s conftest.$ac_objext'
13552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13553 (eval $ac_try) 2>&5
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); }; }; then
13557 ac_hi=$ac_mid; break
13559 echo "$as_me: failed program was:" >&5
13560 sed 's/^/| /' conftest.$ac_ext >&5
13562 ac_lo=`expr $ac_mid + 1`
13563 if test $ac_lo -le $ac_mid; then
13567 ac_mid=`expr 2 '*' $ac_mid + 1`
13569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13572 echo "$as_me: failed program was:" >&5
13573 sed 's/^/| /' conftest.$ac_ext >&5
13575 cat >conftest.$ac_ext <<_ACEOF
13578 cat confdefs.h >>conftest.$ac_ext
13579 cat >>conftest.$ac_ext <<_ACEOF
13580 /* end confdefs.h. */
13581 $ac_includes_default
13585 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
13592 rm -f conftest.$ac_objext
13593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13594 (eval $ac_compile) 2>conftest.er1
13596 grep -v '^ *+' conftest.er1 >conftest.err
13598 cat conftest.err >&5
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); } &&
13601 { ac_try='test -z "$ac_c_werror_flag"
13602 || test ! -s conftest.err'
13603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13604 (eval $ac_try) 2>&5
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); }; } &&
13608 { ac_try='test -s conftest.$ac_objext'
13609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13610 (eval $ac_try) 2>&5
13612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); }; }; then
13616 cat >conftest.$ac_ext <<_ACEOF
13619 cat confdefs.h >>conftest.$ac_ext
13620 cat >>conftest.$ac_ext <<_ACEOF
13621 /* end confdefs.h. */
13622 $ac_includes_default
13626 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
13633 rm -f conftest.$ac_objext
13634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13635 (eval $ac_compile) 2>conftest.er1
13637 grep -v '^ *+' conftest.er1 >conftest.err
13639 cat conftest.err >&5
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); } &&
13642 { ac_try='test -z "$ac_c_werror_flag"
13643 || test ! -s conftest.err'
13644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13645 (eval $ac_try) 2>&5
13647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648 (exit $ac_status); }; } &&
13649 { ac_try='test -s conftest.$ac_objext'
13650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13651 (eval $ac_try) 2>&5
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); }; }; then
13655 ac_lo=$ac_mid; break
13657 echo "$as_me: failed program was:" >&5
13658 sed 's/^/| /' conftest.$ac_ext >&5
13660 ac_hi=`expr '(' $ac_mid ')' - 1`
13661 if test $ac_mid -le $ac_hi; then
13665 ac_mid=`expr 2 '*' $ac_mid`
13667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13670 echo "$as_me: failed program was:" >&5
13671 sed 's/^/| /' conftest.$ac_ext >&5
13675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13678 # Binary search between lo and hi bounds.
13679 while test "x$ac_lo" != "x$ac_hi"; do
13680 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13681 cat >conftest.$ac_ext <<_ACEOF
13684 cat confdefs.h >>conftest.$ac_ext
13685 cat >>conftest.$ac_ext <<_ACEOF
13686 /* end confdefs.h. */
13687 $ac_includes_default
13691 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
13698 rm -f conftest.$ac_objext
13699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13700 (eval $ac_compile) 2>conftest.er1
13702 grep -v '^ *+' conftest.er1 >conftest.err
13704 cat conftest.err >&5
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); } &&
13707 { ac_try='test -z "$ac_c_werror_flag"
13708 || test ! -s conftest.err'
13709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13710 (eval $ac_try) 2>&5
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); }; } &&
13714 { ac_try='test -s conftest.$ac_objext'
13715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13716 (eval $ac_try) 2>&5
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); }; }; then
13722 echo "$as_me: failed program was:" >&5
13723 sed 's/^/| /' conftest.$ac_ext >&5
13725 ac_lo=`expr '(' $ac_mid ')' + 1`
13727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13730 ?*) ac_cv_sizeof_off_t=$ac_lo;;
13731 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
13732 See \`config.log' for more details." >&5
13733 echo "$as_me: error: cannot compute sizeof (off_t), 77
13734 See \`config.log' for more details." >&2;}
13735 { (exit 1); exit 1; }; } ;;
13738 if test "$cross_compiling" = yes; then
13739 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13740 See \`config.log' for more details." >&5
13741 echo "$as_me: error: cannot run test program while cross compiling
13742 See \`config.log' for more details." >&2;}
13743 { (exit 1); exit 1; }; }
13745 cat >conftest.$ac_ext <<_ACEOF
13748 cat confdefs.h >>conftest.$ac_ext
13749 cat >>conftest.$ac_ext <<_ACEOF
13750 /* end confdefs.h. */
13751 $ac_includes_default
13752 long longval () { return (long) (sizeof (off_t)); }
13753 unsigned long ulongval () { return (long) (sizeof (off_t)); }
13755 #include <stdlib.h>
13760 FILE *f = fopen ("conftest.val", "w");
13763 if (((long) (sizeof (off_t))) < 0)
13765 long i = longval ();
13766 if (i != ((long) (sizeof (off_t))))
13768 fprintf (f, "%ld\n", i);
13772 unsigned long i = ulongval ();
13773 if (i != ((long) (sizeof (off_t))))
13775 fprintf (f, "%lu\n", i);
13777 exit (ferror (f) || fclose (f) != 0);
13783 rm -f conftest$ac_exeext
13784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13785 (eval $ac_link) 2>&5
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13790 (eval $ac_try) 2>&5
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); }; }; then
13794 ac_cv_sizeof_off_t=`cat conftest.val`
13796 echo "$as_me: program exited with status $ac_status" >&5
13797 echo "$as_me: failed program was:" >&5
13798 sed 's/^/| /' conftest.$ac_ext >&5
13800 ( exit $ac_status )
13801 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
13802 See \`config.log' for more details." >&5
13803 echo "$as_me: error: cannot compute sizeof (off_t), 77
13804 See \`config.log' for more details." >&2;}
13805 { (exit 1); exit 1; }; }
13807 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13812 ac_cv_sizeof_off_t=0
13815 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13816 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
13817 cat >>confdefs.h <<_ACEOF
13818 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13823 echo "$as_me:$LINENO: checking file_ptr type" >&5
13824 echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
13825 bfd_file_ptr="long"
13826 bfd_ufile_ptr="unsigned long"
13827 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
13828 -o x"${ac_cv_sizeof_off_t}" = x8; then
13829 bfd_file_ptr=BFD_HOST_64_BIT
13830 bfd_ufile_ptr=BFD_HOST_U_64_BIT
13832 echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
13833 echo "${ECHO_T}$bfd_file_ptr" >&6
13839 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
13840 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
13841 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
13842 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
13843 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
13848 for ac_header in stdlib.h unistd.h
13850 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13852 echo "$as_me:$LINENO: checking for $ac_header" >&5
13853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13855 echo $ECHO_N "(cached) $ECHO_C" >&6
13857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13858 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13860 # Is the header compilable?
13861 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13862 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13863 cat >conftest.$ac_ext <<_ACEOF
13866 cat confdefs.h >>conftest.$ac_ext
13867 cat >>conftest.$ac_ext <<_ACEOF
13868 /* end confdefs.h. */
13869 $ac_includes_default
13870 #include <$ac_header>
13872 rm -f conftest.$ac_objext
13873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13874 (eval $ac_compile) 2>conftest.er1
13876 grep -v '^ *+' conftest.er1 >conftest.err
13878 cat conftest.err >&5
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); } &&
13881 { ac_try='test -z "$ac_c_werror_flag"
13882 || test ! -s conftest.err'
13883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13884 (eval $ac_try) 2>&5
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); }; } &&
13888 { ac_try='test -s conftest.$ac_objext'
13889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13890 (eval $ac_try) 2>&5
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); }; }; then
13894 ac_header_compiler=yes
13896 echo "$as_me: failed program was:" >&5
13897 sed 's/^/| /' conftest.$ac_ext >&5
13899 ac_header_compiler=no
13901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13902 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13903 echo "${ECHO_T}$ac_header_compiler" >&6
13905 # Is the header present?
13906 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13907 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13908 cat >conftest.$ac_ext <<_ACEOF
13911 cat confdefs.h >>conftest.$ac_ext
13912 cat >>conftest.$ac_ext <<_ACEOF
13913 /* end confdefs.h. */
13914 #include <$ac_header>
13916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13919 grep -v '^ *+' conftest.er1 >conftest.err
13921 cat conftest.err >&5
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); } >/dev/null; then
13924 if test -s conftest.err; then
13925 ac_cpp_err=$ac_c_preproc_warn_flag
13926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13933 if test -z "$ac_cpp_err"; then
13934 ac_header_preproc=yes
13936 echo "$as_me: failed program was:" >&5
13937 sed 's/^/| /' conftest.$ac_ext >&5
13939 ac_header_preproc=no
13941 rm -f conftest.err conftest.$ac_ext
13942 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13943 echo "${ECHO_T}$ac_header_preproc" >&6
13945 # So? What about this header?
13946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13948 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13949 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13951 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13952 ac_header_preproc=yes
13955 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13956 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13957 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13958 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13959 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13960 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13961 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13962 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13964 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13965 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13966 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13969 ## ------------------------------------------ ##
13970 ## Report this to the AC_PACKAGE_NAME lists. ##
13971 ## ------------------------------------------ ##
13974 sed "s/^/$as_me: WARNING: /" >&2
13977 echo "$as_me:$LINENO: checking for $ac_header" >&5
13978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13980 echo $ECHO_N "(cached) $ECHO_C" >&6
13982 eval "$as_ac_Header=\$ac_header_preproc"
13984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13985 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13989 cat >>confdefs.h <<_ACEOF
13990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13998 for ac_func in getpagesize
14000 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14001 echo "$as_me:$LINENO: checking for $ac_func" >&5
14002 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14003 if eval "test \"\${$as_ac_var+set}\" = set"; then
14004 echo $ECHO_N "(cached) $ECHO_C" >&6
14006 cat >conftest.$ac_ext <<_ACEOF
14009 cat confdefs.h >>conftest.$ac_ext
14010 cat >>conftest.$ac_ext <<_ACEOF
14011 /* end confdefs.h. */
14012 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14014 #define $ac_func innocuous_$ac_func
14016 /* System header to define __stub macros and hopefully few prototypes,
14017 which can conflict with char $ac_func (); below.
14018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14019 <limits.h> exists even on freestanding compilers. */
14022 # include <limits.h>
14024 # include <assert.h>
14029 /* Override any gcc2 internal prototype to avoid an error. */
14034 /* We use char because int might match the return type of a gcc2
14035 builtin and then its argument prototype would still apply. */
14037 /* The GNU C library defines this for functions which it implements
14038 to always fail with ENOSYS. Some functions are actually named
14039 something starting with __ and the normal name is an alias. */
14040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14043 char (*f) () = $ac_func;
14052 return f != $ac_func;
14057 rm -f conftest.$ac_objext conftest$ac_exeext
14058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14059 (eval $ac_link) 2>conftest.er1
14061 grep -v '^ *+' conftest.er1 >conftest.err
14063 cat conftest.err >&5
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); } &&
14066 { ac_try='test -z "$ac_c_werror_flag"
14067 || test ! -s conftest.err'
14068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14069 (eval $ac_try) 2>&5
14071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072 (exit $ac_status); }; } &&
14073 { ac_try='test -s conftest$ac_exeext'
14074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14075 (eval $ac_try) 2>&5
14077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 (exit $ac_status); }; }; then
14079 eval "$as_ac_var=yes"
14081 echo "$as_me: failed program was:" >&5
14082 sed 's/^/| /' conftest.$ac_ext >&5
14084 eval "$as_ac_var=no"
14086 rm -f conftest.err conftest.$ac_objext \
14087 conftest$ac_exeext conftest.$ac_ext
14089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14090 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14091 if test `eval echo '${'$as_ac_var'}'` = yes; then
14092 cat >>confdefs.h <<_ACEOF
14093 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14099 echo "$as_me:$LINENO: checking for working mmap" >&5
14100 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14101 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14102 echo $ECHO_N "(cached) $ECHO_C" >&6
14104 if test "$cross_compiling" = yes; then
14105 ac_cv_func_mmap_fixed_mapped=no
14107 cat >conftest.$ac_ext <<_ACEOF
14110 cat confdefs.h >>conftest.$ac_ext
14111 cat >>conftest.$ac_ext <<_ACEOF
14112 /* end confdefs.h. */
14113 $ac_includes_default
14114 /* malloc might have been renamed as rpl_malloc. */
14117 /* Thanks to Mike Haertel and Jim Avera for this test.
14118 Here is a matrix of mmap possibilities:
14119 mmap private not fixed
14120 mmap private fixed at somewhere currently unmapped
14121 mmap private fixed at somewhere already mapped
14122 mmap shared not fixed
14123 mmap shared fixed at somewhere currently unmapped
14124 mmap shared fixed at somewhere already mapped
14125 For private mappings, we should verify that changes cannot be read()
14126 back from the file, nor mmap's back from the file at a different
14127 address. (There have been systems where private was not correctly
14128 implemented like the infamous i386 svr4.0, and systems where the
14129 VM page cache was not coherent with the file system buffer cache
14130 like early versions of FreeBSD and possibly contemporary NetBSD.)
14131 For shared mappings, we should conversely verify that changes get
14132 propagated back to all the places they're supposed to be.
14134 Grep wants private fixed already mapped.
14135 The main things grep needs to know about mmap are:
14136 * does it exist and is it safe to write into the mmap'd area
14137 * how to use it (BSD variants) */
14140 #include <sys/mman.h>
14142 #if !STDC_HEADERS && !HAVE_STDLIB_H
14146 /* This mess was copied from the GNU getpagesize.h. */
14147 #if !HAVE_GETPAGESIZE
14148 /* Assume that all systems that can run configure have sys/param.h. */
14149 # if !HAVE_SYS_PARAM_H
14150 # define HAVE_SYS_PARAM_H 1
14153 # ifdef _SC_PAGESIZE
14154 # define getpagesize() sysconf(_SC_PAGESIZE)
14155 # else /* no _SC_PAGESIZE */
14156 # if HAVE_SYS_PARAM_H
14157 # include <sys/param.h>
14158 # ifdef EXEC_PAGESIZE
14159 # define getpagesize() EXEC_PAGESIZE
14160 # else /* no EXEC_PAGESIZE */
14162 # define getpagesize() NBPG * CLSIZE
14165 # endif /* no CLSIZE */
14166 # else /* no NBPG */
14168 # define getpagesize() NBPC
14169 # else /* no NBPC */
14171 # define getpagesize() PAGESIZE
14172 # endif /* PAGESIZE */
14173 # endif /* no NBPC */
14174 # endif /* no NBPG */
14175 # endif /* no EXEC_PAGESIZE */
14176 # else /* no HAVE_SYS_PARAM_H */
14177 # define getpagesize() 8192 /* punt totally */
14178 # endif /* no HAVE_SYS_PARAM_H */
14179 # endif /* no _SC_PAGESIZE */
14181 #endif /* no HAVE_GETPAGESIZE */
14186 char *data, *data2, *data3;
14190 pagesize = getpagesize ();
14192 /* First, make a file with some known garbage in it. */
14193 data = (char *) malloc (pagesize);
14196 for (i = 0; i < pagesize; ++i)
14197 *(data + i) = rand ();
14199 fd = creat ("conftest.mmap", 0600);
14202 if (write (fd, data, pagesize) != pagesize)
14206 /* Next, try to mmap the file at a fixed address which already has
14207 something else allocated at it. If we can, also make sure that
14208 we see the same garbage. */
14209 fd = open ("conftest.mmap", O_RDWR);
14212 data2 = (char *) malloc (2 * pagesize);
14215 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14216 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14217 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14219 for (i = 0; i < pagesize; ++i)
14220 if (*(data + i) != *(data2 + i))
14223 /* Finally, make sure that changes to the mapped area do not
14224 percolate back to the file as seen by read(). (This is a bug on
14225 some variants of i386 svr4.0.) */
14226 for (i = 0; i < pagesize; ++i)
14227 *(data2 + i) = *(data2 + i) + 1;
14228 data3 = (char *) malloc (pagesize);
14231 if (read (fd, data3, pagesize) != pagesize)
14233 for (i = 0; i < pagesize; ++i)
14234 if (*(data + i) != *(data3 + i))
14240 rm -f conftest$ac_exeext
14241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14242 (eval $ac_link) 2>&5
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14247 (eval $ac_try) 2>&5
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); }; }; then
14251 ac_cv_func_mmap_fixed_mapped=yes
14253 echo "$as_me: program exited with status $ac_status" >&5
14254 echo "$as_me: failed program was:" >&5
14255 sed 's/^/| /' conftest.$ac_ext >&5
14257 ( exit $ac_status )
14258 ac_cv_func_mmap_fixed_mapped=no
14260 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14263 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14264 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14265 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14267 cat >>confdefs.h <<\_ACEOF
14268 #define HAVE_MMAP 1
14272 rm -f conftest.mmap
14276 for ac_func in madvise mprotect
14278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14279 echo "$as_me:$LINENO: checking for $ac_func" >&5
14280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14281 if eval "test \"\${$as_ac_var+set}\" = set"; then
14282 echo $ECHO_N "(cached) $ECHO_C" >&6
14284 cat >conftest.$ac_ext <<_ACEOF
14287 cat confdefs.h >>conftest.$ac_ext
14288 cat >>conftest.$ac_ext <<_ACEOF
14289 /* end confdefs.h. */
14290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14292 #define $ac_func innocuous_$ac_func
14294 /* System header to define __stub macros and hopefully few prototypes,
14295 which can conflict with char $ac_func (); below.
14296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14297 <limits.h> exists even on freestanding compilers. */
14300 # include <limits.h>
14302 # include <assert.h>
14307 /* Override any gcc2 internal prototype to avoid an error. */
14312 /* We use char because int might match the return type of a gcc2
14313 builtin and then its argument prototype would still apply. */
14315 /* The GNU C library defines this for functions which it implements
14316 to always fail with ENOSYS. Some functions are actually named
14317 something starting with __ and the normal name is an alias. */
14318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14321 char (*f) () = $ac_func;
14330 return f != $ac_func;
14335 rm -f conftest.$ac_objext conftest$ac_exeext
14336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14337 (eval $ac_link) 2>conftest.er1
14339 grep -v '^ *+' conftest.er1 >conftest.err
14341 cat conftest.err >&5
14342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343 (exit $ac_status); } &&
14344 { ac_try='test -z "$ac_c_werror_flag"
14345 || test ! -s conftest.err'
14346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14347 (eval $ac_try) 2>&5
14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); }; } &&
14351 { ac_try='test -s conftest$ac_exeext'
14352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14353 (eval $ac_try) 2>&5
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); }; }; then
14357 eval "$as_ac_var=yes"
14359 echo "$as_me: failed program was:" >&5
14360 sed 's/^/| /' conftest.$ac_ext >&5
14362 eval "$as_ac_var=no"
14364 rm -f conftest.err conftest.$ac_objext \
14365 conftest$ac_exeext conftest.$ac_ext
14367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14368 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14369 if test `eval echo '${'$as_ac_var'}'` = yes; then
14370 cat >>confdefs.h <<_ACEOF
14371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14377 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
14379 cat >>confdefs.h <<\_ACEOF
14385 rm -f doc/config.status
14386 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
14388 ac_config_commands="$ac_config_commands default"
14390 cat >confcache <<\_ACEOF
14391 # This file is a shell script that caches the results of configure
14392 # tests run on this system so they can be shared between configure
14393 # scripts and configure runs, see configure's option --config-cache.
14394 # It is not useful on other systems. If it contains results you don't
14395 # want to keep, you may remove or edit it.
14397 # config.status only pays attention to the cache file if you give it
14398 # the --recheck option to rerun configure.
14400 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14401 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14402 # following values.
14406 # The following way of writing the cache mishandles newlines in values,
14407 # but we know of no workaround that is simple, portable, and efficient.
14408 # So, don't put newlines in cache variables' values.
14409 # Ultrix sh set writes to stderr and can't be redirected directly,
14410 # and sets the high bit in the cache file unless we assign to the vars.
14413 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14415 # `set' does not quote correctly, so add quotes (double-quote
14416 # substitution turns \\\\ into \\, and sed turns \\ into \).
14419 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14422 # `set' quotes correctly as required by POSIX, so do not add quotes.
14424 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14431 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14433 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14435 if diff $cache_file confcache >/dev/null 2>&1; then :; else
14436 if test -w $cache_file; then
14437 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14438 cat confcache >$cache_file
14440 echo "not updating unwritable cache $cache_file"
14445 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14446 # Let make expand exec_prefix.
14447 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14449 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14450 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14451 # trailing colons and then remove the whole line if VPATH becomes empty
14452 # (actually we leave an empty line to preserve line numbers).
14453 if test "x$srcdir" = x.; then
14454 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14455 s/:*\$(srcdir):*/:/;
14456 s/:*\${srcdir}:*/:/;
14458 s/^\([^=]*=[ ]*\):*/\1/;
14464 DEFS=-DHAVE_CONFIG_H
14468 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14469 # 1. Remove the extension, and $U if already installed.
14470 ac_i=`echo "$ac_i" |
14471 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14473 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14474 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14476 LIBOBJS=$ac_libobjs
14478 LTLIBOBJS=$ac_ltlibobjs
14481 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14482 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14483 Usually this means the macro was only invoked conditionally." >&5
14484 echo "$as_me: error: conditional \"AMDEP\" was never defined.
14485 Usually this means the macro was only invoked conditionally." >&2;}
14486 { (exit 1); exit 1; }; }
14488 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14489 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14490 Usually this means the macro was only invoked conditionally." >&5
14491 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14492 Usually this means the macro was only invoked conditionally." >&2;}
14493 { (exit 1); exit 1; }; }
14495 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14496 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
14497 Usually this means the macro was only invoked conditionally." >&5
14498 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
14499 Usually this means the macro was only invoked conditionally." >&2;}
14500 { (exit 1); exit 1; }; }
14502 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
14503 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
14504 Usually this means the macro was only invoked conditionally." >&5
14505 echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
14506 Usually this means the macro was only invoked conditionally." >&2;}
14507 { (exit 1); exit 1; }; }
14510 : ${CONFIG_STATUS=./config.status}
14511 ac_clean_files_save=$ac_clean_files
14512 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14513 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14514 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14515 cat >$CONFIG_STATUS <<_ACEOF
14517 # Generated by $as_me.
14518 # Run this file to recreate the current configuration.
14519 # Compiler output produced by configure, useful for debugging
14520 # configure, is in config.log if it exists.
14523 ac_cs_recheck=false
14525 SHELL=\${CONFIG_SHELL-$SHELL}
14528 cat >>$CONFIG_STATUS <<\_ACEOF
14529 ## --------------------- ##
14530 ## M4sh Initialization. ##
14531 ## --------------------- ##
14533 # Be Bourne compatible
14534 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14537 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14538 # is contrary to our usage. Disable this feature.
14539 alias -g '${1+"$@"}'='"$@"'
14540 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14543 DUALCASE=1; export DUALCASE # for MKS sh
14545 # Support unset when possible.
14546 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14553 # Work around bugs in pre-3.0 UWIN ksh.
14554 $as_unset ENV MAIL MAILPATH
14561 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14562 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14563 LC_TELEPHONE LC_TIME
14565 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14566 eval $as_var=C; export $as_var
14572 # Required to use basename.
14573 if expr a : '\(a\)' >/dev/null 2>&1; then
14579 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14580 as_basename=basename
14586 # Name of the executable.
14587 as_me=`$as_basename "$0" ||
14588 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14589 X"$0" : 'X\(//\)$' \| \
14590 X"$0" : 'X\(/\)$' \| \
14591 . : '\(.\)' 2>/dev/null ||
14593 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14594 /^X\/\(\/\/\)$/{ s//\1/; q; }
14595 /^X\/\(\/\).*/{ s//\1/; q; }
14599 # PATH needs CR, and LINENO needs CR and PATH.
14600 # Avoid depending upon Character Ranges.
14601 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14602 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14603 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14604 as_cr_digits='0123456789'
14605 as_cr_alnum=$as_cr_Letters$as_cr_digits
14607 # The user is always right.
14608 if test "${PATH_SEPARATOR+set}" != set; then
14609 echo "#! /bin/sh" >conf$$.sh
14610 echo "exit 0" >>conf$$.sh
14612 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14621 as_lineno_1=$LINENO
14622 as_lineno_2=$LINENO
14623 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14624 test "x$as_lineno_1" != "x$as_lineno_2" &&
14625 test "x$as_lineno_3" = "x$as_lineno_2" || {
14626 # Find who we are. Look in the path if we contain no path at all
14629 *[\\/]* ) as_myself=$0 ;;
14630 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14631 for as_dir in $PATH
14634 test -z "$as_dir" && as_dir=.
14635 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14640 # We did not find ourselves, most probably we were run as `sh COMMAND'
14641 # in which case we are not to be found in the path.
14642 if test "x$as_myself" = x; then
14645 if test ! -f "$as_myself"; then
14646 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14647 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14648 { (exit 1); exit 1; }; }
14650 case $CONFIG_SHELL in
14652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14653 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14656 test -z "$as_dir" && as_dir=.
14657 for as_base in sh bash ksh sh5; do
14660 if ("$as_dir/$as_base" -c '
14661 as_lineno_1=$LINENO
14662 as_lineno_2=$LINENO
14663 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14664 test "x$as_lineno_1" != "x$as_lineno_2" &&
14665 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14666 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14667 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14668 CONFIG_SHELL=$as_dir/$as_base
14669 export CONFIG_SHELL
14670 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14678 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14679 # uniformly replaced by the line number. The first 'sed' inserts a
14680 # line-number line before each line; the second 'sed' does the real
14681 # work. The second script uses 'N' to pair each line-number line
14682 # with the numbered line, and appends trailing '-' during
14683 # substitution so that $LINENO is not a special case at line end.
14684 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14685 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14686 sed '=' <$as_myself |
14691 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14694 s,^['$as_cr_digits']*\n,,
14695 ' >$as_me.lineno &&
14696 chmod +x $as_me.lineno ||
14697 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14698 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14699 { (exit 1); exit 1; }; }
14701 # Don't try to exec as it changes $[0], causing all sort of problems
14702 # (the dirname of $[0] is not the place where we might find the
14703 # original and so on. Autoconf is especially sensible to this).
14705 # Exit status is that of the last command.
14710 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14711 *c*,-n*) ECHO_N= ECHO_C='
14713 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14714 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14717 if expr a : '\(a\)' >/dev/null 2>&1; then
14723 rm -f conf$$ conf$$.exe conf$$.file
14725 if ln -s conf$$.file conf$$ 2>/dev/null; then
14726 # We could just check for DJGPP; but this test a) works b) is more generic
14727 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14728 if test -f conf$$.exe; then
14729 # Don't use ln at all; we don't have any links
14734 elif ln conf$$.file conf$$ 2>/dev/null; then
14739 rm -f conf$$ conf$$.exe conf$$.file
14741 if mkdir -p . 2>/dev/null; then
14744 test -d ./-p && rmdir ./-p
14748 as_executable_p="test -f"
14750 # Sed expression to map a string onto a valid CPP name.
14751 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14753 # Sed expression to map a string onto a valid variable name.
14754 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14758 # We need space, tab and new line, in precisely that order.
14768 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14769 # report actual input values of CONFIG_FILES etc. instead of their
14770 # values after options handling. Logging --version etc. is OK.
14774 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14775 ## Running $as_me. ##
14780 This file was extended by $as_me, which was
14781 generated by GNU Autoconf 2.59. Invocation command line was
14783 CONFIG_FILES = $CONFIG_FILES
14784 CONFIG_HEADERS = $CONFIG_HEADERS
14785 CONFIG_LINKS = $CONFIG_LINKS
14786 CONFIG_COMMANDS = $CONFIG_COMMANDS
14790 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14794 # Files that config.status was made for.
14795 if test -n "$ac_config_files"; then
14796 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14799 if test -n "$ac_config_headers"; then
14800 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14803 if test -n "$ac_config_links"; then
14804 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14807 if test -n "$ac_config_commands"; then
14808 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14811 cat >>$CONFIG_STATUS <<\_ACEOF
14814 \`$as_me' instantiates files from templates according to the
14815 current configuration.
14817 Usage: $0 [OPTIONS] [FILE]...
14819 -h, --help print this help, then exit
14820 -V, --version print version number, then exit
14821 -q, --quiet do not print progress messages
14822 -d, --debug don't remove temporary files
14823 --recheck update $as_me by reconfiguring in the same conditions
14824 --file=FILE[:TEMPLATE]
14825 instantiate the configuration file FILE
14826 --header=FILE[:TEMPLATE]
14827 instantiate the configuration header FILE
14829 Configuration files:
14832 Configuration headers:
14835 Configuration commands:
14838 Report bugs to <bug-autoconf@gnu.org>."
14841 cat >>$CONFIG_STATUS <<_ACEOF
14844 configured by $0, generated by GNU Autoconf 2.59,
14845 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14847 Copyright (C) 2003 Free Software Foundation, Inc.
14848 This config.status script is free software; the Free Software Foundation
14849 gives unlimited permission to copy, distribute and modify it."
14854 cat >>$CONFIG_STATUS <<\_ACEOF
14855 # If no file are specified by the user, then we need to provide default
14856 # value. By we need to know if files were specified by the user.
14862 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14863 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14871 *) # This is not an option, so the user has probably given explicit
14874 ac_need_defaults=false;;
14878 # Handling of the options.
14880 cat >>$CONFIG_STATUS <<\_ACEOF
14881 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14883 --version | --vers* | -V )
14884 echo "$ac_cs_version"; exit 0 ;;
14886 # Conflict between --help and --header
14887 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14888 Try \`$0 --help' for more information." >&5
14889 echo "$as_me: error: ambiguous option: $1
14890 Try \`$0 --help' for more information." >&2;}
14891 { (exit 1); exit 1; }; };;
14892 --help | --hel | -h )
14893 echo "$ac_cs_usage"; exit 0 ;;
14894 --debug | --d* | -d )
14896 --file | --fil | --fi | --f )
14898 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14899 ac_need_defaults=false;;
14900 --header | --heade | --head | --hea )
14902 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14903 ac_need_defaults=false;;
14904 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14905 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14908 # This is an error.
14909 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14910 Try \`$0 --help' for more information." >&5
14911 echo "$as_me: error: unrecognized option: $1
14912 Try \`$0 --help' for more information." >&2;}
14913 { (exit 1); exit 1; }; } ;;
14915 *) ac_config_targets="$ac_config_targets $1" ;;
14921 ac_configure_extra_args=
14923 if $ac_cs_silent; then
14925 ac_configure_extra_args="$ac_configure_extra_args --silent"
14929 cat >>$CONFIG_STATUS <<_ACEOF
14930 if \$ac_cs_recheck; then
14931 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14932 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14937 cat >>$CONFIG_STATUS <<_ACEOF
14939 # INIT-COMMANDS section.
14942 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14949 cat >>$CONFIG_STATUS <<\_ACEOF
14950 for ac_config_target in $ac_config_targets
14952 case "$ac_config_target" in
14953 # Handling of arguments.
14954 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14955 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14956 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
14957 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14958 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14959 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14960 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14961 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14962 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14963 { (exit 1); exit 1; }; };;
14967 # If the user did not use the arguments to specify the items to instantiate,
14968 # then the envvar interface is used. Set only those that are not.
14969 # We use the long form for the default assignment because of an extremely
14970 # bizarre bug on SunOS 4.1.3.
14971 if $ac_need_defaults; then
14972 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14973 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14974 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14977 # Have a temporary directory for convenience. Make it in the build tree
14978 # simply because there is no reason to put it here, and in addition,
14979 # creating and moving files from /tmp can sometimes cause problems.
14980 # Create a temporary directory, and hook for its removal unless debugging.
14983 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14984 trap '{ (exit 1); exit 1; }' 1 2 13 15
14987 # Create a (secure) tmp directory for tmp files.
14990 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14991 test -n "$tmp" && test -d "$tmp"
14994 tmp=./confstat$$-$RANDOM
14995 (umask 077 && mkdir $tmp)
14998 echo "$me: cannot create a temporary directory in ." >&2
14999 { (exit 1); exit 1; }
15004 cat >>$CONFIG_STATUS <<_ACEOF
15007 # CONFIG_FILES section.
15010 # No need to generate the scripts if there are no CONFIG_FILES.
15011 # This happens for instance when ./config.status config.h
15012 if test -n "\$CONFIG_FILES"; then
15013 # Protect against being on the right side of a sed subst in config.status.
15014 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15015 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15016 s,@SHELL@,$SHELL,;t t
15017 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15018 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15019 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15020 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15021 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15022 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15023 s,@exec_prefix@,$exec_prefix,;t t
15024 s,@prefix@,$prefix,;t t
15025 s,@program_transform_name@,$program_transform_name,;t t
15026 s,@bindir@,$bindir,;t t
15027 s,@sbindir@,$sbindir,;t t
15028 s,@libexecdir@,$libexecdir,;t t
15029 s,@datadir@,$datadir,;t t
15030 s,@sysconfdir@,$sysconfdir,;t t
15031 s,@sharedstatedir@,$sharedstatedir,;t t
15032 s,@localstatedir@,$localstatedir,;t t
15033 s,@libdir@,$libdir,;t t
15034 s,@includedir@,$includedir,;t t
15035 s,@oldincludedir@,$oldincludedir,;t t
15036 s,@infodir@,$infodir,;t t
15037 s,@mandir@,$mandir,;t t
15038 s,@build_alias@,$build_alias,;t t
15039 s,@host_alias@,$host_alias,;t t
15040 s,@target_alias@,$target_alias,;t t
15041 s,@DEFS@,$DEFS,;t t
15042 s,@ECHO_C@,$ECHO_C,;t t
15043 s,@ECHO_N@,$ECHO_N,;t t
15044 s,@ECHO_T@,$ECHO_T,;t t
15045 s,@LIBS@,$LIBS,;t t
15046 s,@build@,$build,;t t
15047 s,@build_cpu@,$build_cpu,;t t
15048 s,@build_vendor@,$build_vendor,;t t
15049 s,@build_os@,$build_os,;t t
15050 s,@host@,$host,;t t
15051 s,@host_cpu@,$host_cpu,;t t
15052 s,@host_vendor@,$host_vendor,;t t
15053 s,@host_os@,$host_os,;t t
15054 s,@target@,$target,;t t
15055 s,@target_cpu@,$target_cpu,;t t
15056 s,@target_vendor@,$target_vendor,;t t
15057 s,@target_os@,$target_os,;t t
15059 s,@CFLAGS@,$CFLAGS,;t t
15060 s,@LDFLAGS@,$LDFLAGS,;t t
15061 s,@CPPFLAGS@,$CPPFLAGS,;t t
15062 s,@ac_ct_CC@,$ac_ct_CC,;t t
15063 s,@EXEEXT@,$EXEEXT,;t t
15064 s,@OBJEXT@,$OBJEXT,;t t
15065 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15066 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15067 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15068 s,@CYGPATH_W@,$CYGPATH_W,;t t
15069 s,@PACKAGE@,$PACKAGE,;t t
15070 s,@VERSION@,$VERSION,;t t
15071 s,@ACLOCAL@,$ACLOCAL,;t t
15072 s,@AUTOCONF@,$AUTOCONF,;t t
15073 s,@AUTOMAKE@,$AUTOMAKE,;t t
15074 s,@AUTOHEADER@,$AUTOHEADER,;t t
15075 s,@MAKEINFO@,$MAKEINFO,;t t
15076 s,@install_sh@,$install_sh,;t t
15077 s,@STRIP@,$STRIP,;t t
15078 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15079 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
15080 s,@mkdir_p@,$mkdir_p,;t t
15082 s,@SET_MAKE@,$SET_MAKE,;t t
15083 s,@am__leading_dot@,$am__leading_dot,;t t
15084 s,@AMTAR@,$AMTAR,;t t
15085 s,@am__tar@,$am__tar,;t t
15086 s,@am__untar@,$am__untar,;t t
15087 s,@DEPDIR@,$DEPDIR,;t t
15088 s,@am__include@,$am__include,;t t
15089 s,@am__quote@,$am__quote,;t t
15090 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
15091 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
15092 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
15093 s,@CCDEPMODE@,$CCDEPMODE,;t t
15094 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
15095 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
15097 s,@ac_ct_AR@,$ac_ct_AR,;t t
15098 s,@RANLIB@,$RANLIB,;t t
15099 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15100 s,@LN_S@,$LN_S,;t t
15101 s,@LIBTOOL@,$LIBTOOL,;t t
15102 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
15103 s,@NO_WERROR@,$NO_WERROR,;t t
15104 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
15105 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
15106 s,@MAINT@,$MAINT,;t t
15107 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
15108 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
15109 s,@host_noncanonical@,$host_noncanonical,;t t
15110 s,@target_noncanonical@,$target_noncanonical,;t t
15111 s,@bfdlibdir@,$bfdlibdir,;t t
15112 s,@bfdincludedir@,$bfdincludedir,;t t
15114 s,@EGREP@,$EGREP,;t t
15115 s,@ALLOCA@,$ALLOCA,;t t
15116 s,@USE_NLS@,$USE_NLS,;t t
15117 s,@MSGFMT@,$MSGFMT,;t t
15118 s,@GMSGFMT@,$GMSGFMT,;t t
15119 s,@XGETTEXT@,$XGETTEXT,;t t
15120 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
15121 s,@CATALOGS@,$CATALOGS,;t t
15122 s,@CATOBJEXT@,$CATOBJEXT,;t t
15123 s,@DATADIRNAME@,$DATADIRNAME,;t t
15124 s,@GMOFILES@,$GMOFILES,;t t
15125 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
15126 s,@INTLDEPS@,$INTLDEPS,;t t
15127 s,@INTLLIBS@,$INTLLIBS,;t t
15128 s,@INTLOBJS@,$INTLOBJS,;t t
15129 s,@POFILES@,$POFILES,;t t
15130 s,@POSUB@,$POSUB,;t t
15131 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
15132 s,@GT_NO@,$GT_NO,;t t
15133 s,@GT_YES@,$GT_YES,;t t
15134 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
15136 s,@HDEFINES@,$HDEFINES,;t t
15137 s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
15138 s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
15139 s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
15140 s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
15141 s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
15142 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
15143 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
15144 s,@COREFILE@,$COREFILE,;t t
15145 s,@COREFLAG@,$COREFLAG,;t t
15146 s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
15147 s,@WIN32LIBADD@,$WIN32LIBADD,;t t
15148 s,@TDEFINES@,$TDEFINES,;t t
15149 s,@wordsize@,$wordsize,;t t
15150 s,@bfd_libs@,$bfd_libs,;t t
15151 s,@all_backends@,$all_backends,;t t
15152 s,@bfd_backends@,$bfd_backends,;t t
15153 s,@bfd_machines@,$bfd_machines,;t t
15154 s,@bfd_default_target_size@,$bfd_default_target_size,;t t
15155 s,@bfd_file_ptr@,$bfd_file_ptr,;t t
15156 s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
15157 s,@tdefaults@,$tdefaults,;t t
15158 s,@LIBOBJS@,$LIBOBJS,;t t
15159 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15164 cat >>$CONFIG_STATUS <<\_ACEOF
15165 # Split the substitutions into bite-sized pieces for seds with
15166 # small command number limits, like on Digital OSF/1 and HP-UX.
15167 ac_max_sed_lines=48
15168 ac_sed_frag=1 # Number of current file.
15169 ac_beg=1 # First line for current file.
15170 ac_end=$ac_max_sed_lines # Line after last line for current file.
15173 while $ac_more_lines; do
15174 if test $ac_beg -gt 1; then
15175 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15177 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15179 if test ! -s $tmp/subs.frag; then
15180 ac_more_lines=false
15182 # The purpose of the label and of the branching condition is to
15183 # speed up the sed processing (if there are no `@' at all, there
15184 # is no need to browse any of the substitutions).
15185 # These are the two extra sed commands mentioned above.
15187 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15188 if test -z "$ac_sed_cmds"; then
15189 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15191 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15193 ac_sed_frag=`expr $ac_sed_frag + 1`
15195 ac_end=`expr $ac_end + $ac_max_sed_lines`
15198 if test -z "$ac_sed_cmds"; then
15201 fi # test -n "$CONFIG_FILES"
15204 cat >>$CONFIG_STATUS <<\_ACEOF
15205 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15206 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15208 - | *:- | *:-:* ) # input from stdin
15210 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15211 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15212 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15213 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15214 * ) ac_file_in=$ac_file.in ;;
15217 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15218 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15219 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15220 X"$ac_file" : 'X\(//\)[^/]' \| \
15221 X"$ac_file" : 'X\(//\)$' \| \
15222 X"$ac_file" : 'X\(/\)' \| \
15223 . : '\(.\)' 2>/dev/null ||
15225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15226 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15227 /^X\(\/\/\)$/{ s//\1/; q; }
15228 /^X\(\/\).*/{ s//\1/; q; }
15230 { if $as_mkdir_p; then
15235 while test ! -d "$as_dir"; do
15236 as_dirs="$as_dir $as_dirs"
15237 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15238 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15239 X"$as_dir" : 'X\(//\)[^/]' \| \
15240 X"$as_dir" : 'X\(//\)$' \| \
15241 X"$as_dir" : 'X\(/\)' \| \
15242 . : '\(.\)' 2>/dev/null ||
15244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15245 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15246 /^X\(\/\/\)$/{ s//\1/; q; }
15247 /^X\(\/\).*/{ s//\1/; q; }
15250 test ! -n "$as_dirs" || mkdir $as_dirs
15251 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15252 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15253 { (exit 1); exit 1; }; }; }
15257 if test "$ac_dir" != .; then
15258 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15259 # A "../" for each directory in $ac_dir_suffix.
15260 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15262 ac_dir_suffix= ac_top_builddir=
15266 .) # No --srcdir option. We are building in place.
15268 if test -z "$ac_top_builddir"; then
15271 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15273 [\\/]* | ?:[\\/]* ) # Absolute path.
15274 ac_srcdir=$srcdir$ac_dir_suffix;
15275 ac_top_srcdir=$srcdir ;;
15276 *) # Relative path.
15277 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15278 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15281 # Do not use `cd foo && pwd` to compute absolute paths, because
15282 # the directories may not exist.
15284 .) ac_abs_builddir="$ac_dir";;
15287 .) ac_abs_builddir=`pwd`;;
15288 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15289 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15292 case $ac_abs_builddir in
15293 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15295 case ${ac_top_builddir}. in
15296 .) ac_abs_top_builddir=$ac_abs_builddir;;
15297 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15298 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15301 case $ac_abs_builddir in
15302 .) ac_abs_srcdir=$ac_srcdir;;
15305 .) ac_abs_srcdir=$ac_abs_builddir;;
15306 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15307 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15310 case $ac_abs_builddir in
15311 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15313 case $ac_top_srcdir in
15314 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15315 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15316 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15322 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15323 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15326 if test x"$ac_file" != x-; then
15327 { echo "$as_me:$LINENO: creating $ac_file" >&5
15328 echo "$as_me: creating $ac_file" >&6;}
15331 # Let's still pretend it is `configure' which instantiates (i.e., don't
15332 # use $as_me), people would be surprised to read:
15333 # /* config.h. Generated by config.status. */
15334 if test x"$ac_file" = x-; then
15337 configure_input="$ac_file. "
15339 configure_input=$configure_input"Generated from `echo $ac_file_in |
15340 sed 's,.*/,,'` by configure."
15342 # First look for the input files in the build tree, otherwise in the
15344 ac_file_inputs=`IFS=:
15345 for f in $ac_file_in; do
15347 -) echo $tmp/stdin ;;
15349 # Absolute (can't be DOS-style, as IFS=:)
15350 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15351 echo "$as_me: error: cannot find input file: $f" >&2;}
15352 { (exit 1); exit 1; }; }
15355 if test -f "$f"; then
15358 elif test -f "$srcdir/$f"; then
15363 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15364 echo "$as_me: error: cannot find input file: $f" >&2;}
15365 { (exit 1); exit 1; }; }
15368 done` || { (exit 1); exit 1; }
15370 cat >>$CONFIG_STATUS <<_ACEOF
15374 cat >>$CONFIG_STATUS <<\_ACEOF
15376 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15377 s,@configure_input@,$configure_input,;t t
15378 s,@srcdir@,$ac_srcdir,;t t
15379 s,@abs_srcdir@,$ac_abs_srcdir,;t t
15380 s,@top_srcdir@,$ac_top_srcdir,;t t
15381 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15382 s,@builddir@,$ac_builddir,;t t
15383 s,@abs_builddir@,$ac_abs_builddir,;t t
15384 s,@top_builddir@,$ac_top_builddir,;t t
15385 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15386 s,@INSTALL@,$ac_INSTALL,;t t
15387 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15389 if test x"$ac_file" != x-; then
15390 mv $tmp/out $ac_file
15398 cat >>$CONFIG_STATUS <<\_ACEOF
15401 # CONFIG_HEADER section.
15404 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15405 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15407 # ac_d sets the value in "#define NAME VALUE" lines.
15408 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15409 ac_dB='[ ].*$,\1#\2'
15412 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15413 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15414 ac_uB='$,\1#\2define\3'
15418 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15419 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15421 - | *:- | *:-:* ) # input from stdin
15423 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15424 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15425 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15426 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15427 * ) ac_file_in=$ac_file.in ;;
15430 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15431 echo "$as_me: creating $ac_file" >&6;}
15433 # First look for the input files in the build tree, otherwise in the
15435 ac_file_inputs=`IFS=:
15436 for f in $ac_file_in; do
15438 -) echo $tmp/stdin ;;
15440 # Absolute (can't be DOS-style, as IFS=:)
15441 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15442 echo "$as_me: error: cannot find input file: $f" >&2;}
15443 { (exit 1); exit 1; }; }
15444 # Do quote $f, to prevent DOS paths from being IFS'd.
15447 if test -f "$f"; then
15450 elif test -f "$srcdir/$f"; then
15455 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15456 echo "$as_me: error: cannot find input file: $f" >&2;}
15457 { (exit 1); exit 1; }; }
15460 done` || { (exit 1); exit 1; }
15461 # Remove the trailing spaces.
15462 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
15466 # Transform confdefs.h into two sed scripts, `conftest.defines' and
15467 # `conftest.undefs', that substitutes the proper values into
15468 # config.h.in to produce config.h. The first handles `#define'
15469 # templates, and the second `#undef' templates.
15470 # And first: Protect against being on the right side of a sed subst in
15471 # config.status. Protect against being in an unquoted here document
15472 # in config.status.
15473 rm -f conftest.defines conftest.undefs
15474 # Using a here document instead of a string reduces the quoting nightmare.
15475 # Putting comments in sed scripts is not portable.
15477 # `end' is used to avoid that the second main sed command (meant for
15478 # 0-ary CPP macros) applies to n-ary macro definitions.
15479 # See the Autoconf documentation for `clear'.
15480 cat >confdef2sed.sed <<\_ACEOF
15485 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15487 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15490 # If some macros were called several times there might be several times
15491 # the same #defines, which is useless. Nevertheless, we may not want to
15492 # sort them, since we want the *last* AC-DEFINE to be honored.
15493 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15494 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15495 rm -f confdef2sed.sed
15497 # This sed command replaces #undef with comments. This is necessary, for
15498 # example, in the case of _POSIX_SOURCE, which is predefined and required
15499 # on some systems where configure will not decide to define it.
15500 cat >>conftest.undefs <<\_ACEOF
15501 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15504 # Break up conftest.defines because some shells have a limit on the size
15505 # of here documents, and old seds have small limits too (100 cmds).
15506 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15507 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15508 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15509 echo ' :' >>$CONFIG_STATUS
15510 rm -f conftest.tail
15511 while grep . conftest.defines >/dev/null
15513 # Write a limited-size here document to $tmp/defines.sed.
15514 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15515 # Speed up: don't consider the non `#define' lines.
15516 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
15517 # Work around the forget-to-reset-the-flag bug.
15518 echo 't clr' >>$CONFIG_STATUS
15519 echo ': clr' >>$CONFIG_STATUS
15520 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15522 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15524 mv $tmp/out $tmp/in
15526 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15527 rm -f conftest.defines
15528 mv conftest.tail conftest.defines
15530 rm -f conftest.defines
15531 echo ' fi # grep' >>$CONFIG_STATUS
15532 echo >>$CONFIG_STATUS
15534 # Break up conftest.undefs because some shells have a limit on the size
15535 # of here documents, and old seds have small limits too (100 cmds).
15536 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
15537 rm -f conftest.tail
15538 while grep . conftest.undefs >/dev/null
15540 # Write a limited-size here document to $tmp/undefs.sed.
15541 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15542 # Speed up: don't consider the non `#undef'
15543 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
15544 # Work around the forget-to-reset-the-flag bug.
15545 echo 't clr' >>$CONFIG_STATUS
15546 echo ': clr' >>$CONFIG_STATUS
15547 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15549 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15551 mv $tmp/out $tmp/in
15553 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15554 rm -f conftest.undefs
15555 mv conftest.tail conftest.undefs
15557 rm -f conftest.undefs
15559 cat >>$CONFIG_STATUS <<\_ACEOF
15560 # Let's still pretend it is `configure' which instantiates (i.e., don't
15561 # use $as_me), people would be surprised to read:
15562 # /* config.h. Generated by config.status. */
15563 if test x"$ac_file" = x-; then
15564 echo "/* Generated by configure. */" >$tmp/config.h
15566 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
15568 cat $tmp/in >>$tmp/config.h
15570 if test x"$ac_file" != x-; then
15571 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15572 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15573 echo "$as_me: $ac_file is unchanged" >&6;}
15575 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15576 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15577 X"$ac_file" : 'X\(//\)[^/]' \| \
15578 X"$ac_file" : 'X\(//\)$' \| \
15579 X"$ac_file" : 'X\(/\)' \| \
15580 . : '\(.\)' 2>/dev/null ||
15582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15583 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15584 /^X\(\/\/\)$/{ s//\1/; q; }
15585 /^X\(\/\).*/{ s//\1/; q; }
15587 { if $as_mkdir_p; then
15592 while test ! -d "$as_dir"; do
15593 as_dirs="$as_dir $as_dirs"
15594 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15595 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15596 X"$as_dir" : 'X\(//\)[^/]' \| \
15597 X"$as_dir" : 'X\(//\)$' \| \
15598 X"$as_dir" : 'X\(/\)' \| \
15599 . : '\(.\)' 2>/dev/null ||
15601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15602 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15603 /^X\(\/\/\)$/{ s//\1/; q; }
15604 /^X\(\/\).*/{ s//\1/; q; }
15607 test ! -n "$as_dirs" || mkdir $as_dirs
15608 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15609 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15610 { (exit 1); exit 1; }; }; }
15613 mv $tmp/config.h $ac_file
15617 rm -f $tmp/config.h
15619 # Compute $ac_file's index in $config_headers.
15621 for _am_header in $config_headers :; do
15622 case $_am_header in
15623 $ac_file | $ac_file:* )
15626 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15629 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
15630 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15631 X$ac_file : 'X\(//\)[^/]' \| \
15632 X$ac_file : 'X\(//\)$' \| \
15633 X$ac_file : 'X\(/\)' \| \
15634 . : '\(.\)' 2>/dev/null ||
15636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15637 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15638 /^X\(\/\/\)$/{ s//\1/; q; }
15639 /^X\(\/\).*/{ s//\1/; q; }
15640 s/.*/./; q'`/stamp-h$_am_stamp_count
15643 cat >>$CONFIG_STATUS <<\_ACEOF
15646 # CONFIG_COMMANDS section.
15648 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15649 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15650 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15651 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15652 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15653 X"$ac_dest" : 'X\(//\)[^/]' \| \
15654 X"$ac_dest" : 'X\(//\)$' \| \
15655 X"$ac_dest" : 'X\(/\)' \| \
15656 . : '\(.\)' 2>/dev/null ||
15658 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15659 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15660 /^X\(\/\/\)$/{ s//\1/; q; }
15661 /^X\(\/\).*/{ s//\1/; q; }
15663 { if $as_mkdir_p; then
15668 while test ! -d "$as_dir"; do
15669 as_dirs="$as_dir $as_dirs"
15670 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15671 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15672 X"$as_dir" : 'X\(//\)[^/]' \| \
15673 X"$as_dir" : 'X\(//\)$' \| \
15674 X"$as_dir" : 'X\(/\)' \| \
15675 . : '\(.\)' 2>/dev/null ||
15677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15678 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15679 /^X\(\/\/\)$/{ s//\1/; q; }
15680 /^X\(\/\).*/{ s//\1/; q; }
15683 test ! -n "$as_dirs" || mkdir $as_dirs
15684 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15685 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15686 { (exit 1); exit 1; }; }; }
15690 if test "$ac_dir" != .; then
15691 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15692 # A "../" for each directory in $ac_dir_suffix.
15693 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15695 ac_dir_suffix= ac_top_builddir=
15699 .) # No --srcdir option. We are building in place.
15701 if test -z "$ac_top_builddir"; then
15704 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15706 [\\/]* | ?:[\\/]* ) # Absolute path.
15707 ac_srcdir=$srcdir$ac_dir_suffix;
15708 ac_top_srcdir=$srcdir ;;
15709 *) # Relative path.
15710 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15711 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15714 # Do not use `cd foo && pwd` to compute absolute paths, because
15715 # the directories may not exist.
15717 .) ac_abs_builddir="$ac_dir";;
15720 .) ac_abs_builddir=`pwd`;;
15721 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15722 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15725 case $ac_abs_builddir in
15726 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15728 case ${ac_top_builddir}. in
15729 .) ac_abs_top_builddir=$ac_abs_builddir;;
15730 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15731 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15734 case $ac_abs_builddir in
15735 .) ac_abs_srcdir=$ac_srcdir;;
15738 .) ac_abs_srcdir=$ac_abs_builddir;;
15739 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15740 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15743 case $ac_abs_builddir in
15744 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15746 case $ac_top_srcdir in
15747 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15748 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15749 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15754 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15755 echo "$as_me: executing $ac_dest commands" >&6;}
15757 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15758 # Strip MF so we end up with the name of the file.
15759 mf=`echo "$mf" | sed -e 's/:.*$//'`
15760 # Check whether this is an Automake generated Makefile or not.
15761 # We used to match only the files named `Makefile.in', but
15762 # some people rename them; so instead we look at the file content.
15763 # Grep'ing the first line is not enough: some people post-process
15764 # each Makefile.in and add a new line on top of each file to say so.
15765 # So let's grep whole file.
15766 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15767 dirpart=`(dirname "$mf") 2>/dev/null ||
15768 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15769 X"$mf" : 'X\(//\)[^/]' \| \
15770 X"$mf" : 'X\(//\)$' \| \
15771 X"$mf" : 'X\(/\)' \| \
15772 . : '\(.\)' 2>/dev/null ||
15774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15775 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15776 /^X\(\/\/\)$/{ s//\1/; q; }
15777 /^X\(\/\).*/{ s//\1/; q; }
15782 # Extract the definition of DEPDIR, am__include, and am__quote
15783 # from the Makefile without running `make'.
15784 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15785 test -z "$DEPDIR" && continue
15786 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15787 test -z "am__include" && continue
15788 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15789 # When using ansi2knr, U may be empty or an underscore; expand it
15790 U=`sed -n 's/^U = //p' < "$mf"`
15791 # Find all dependency output files, they are included files with
15792 # $(DEPDIR) in their names. We invoke sed twice because it is the
15793 # simplest approach to changing $(DEPDIR) to its actual value in the
15795 for file in `sed -n "
15796 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15797 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15798 # Make sure the directory exists.
15799 test -f "$dirpart/$file" && continue
15800 fdir=`(dirname "$file") 2>/dev/null ||
15801 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15802 X"$file" : 'X\(//\)[^/]' \| \
15803 X"$file" : 'X\(//\)$' \| \
15804 X"$file" : 'X\(/\)' \| \
15805 . : '\(.\)' 2>/dev/null ||
15807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15808 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15809 /^X\(\/\/\)$/{ s//\1/; q; }
15810 /^X\(\/\).*/{ s//\1/; q; }
15812 { if $as_mkdir_p; then
15813 mkdir -p $dirpart/$fdir
15815 as_dir=$dirpart/$fdir
15817 while test ! -d "$as_dir"; do
15818 as_dirs="$as_dir $as_dirs"
15819 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15820 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15821 X"$as_dir" : 'X\(//\)[^/]' \| \
15822 X"$as_dir" : 'X\(//\)$' \| \
15823 X"$as_dir" : 'X\(/\)' \| \
15824 . : '\(.\)' 2>/dev/null ||
15826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15827 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15828 /^X\(\/\/\)$/{ s//\1/; q; }
15829 /^X\(\/\).*/{ s//\1/; q; }
15832 test ! -n "$as_dirs" || mkdir $as_dirs
15833 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
15834 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
15835 { (exit 1); exit 1; }; }; }
15837 # echo "creating $dirpart/$file"
15838 echo '# dummy' > "$dirpart/$file"
15842 default ) sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile ;;
15847 cat >>$CONFIG_STATUS <<\_ACEOF
15849 { (exit 0); exit 0; }
15851 chmod +x $CONFIG_STATUS
15852 ac_clean_files=$ac_clean_files_save
15855 # configure is writing to config.log, and then calls config.status.
15856 # config.status does its own redirection, appending to config.log.
15857 # Unfortunately, on DOS this fails, as config.log is still kept open
15858 # by configure, so config.status won't be able to write to it; its
15859 # output is simply discarded. So we exec the FD to /dev/null,
15860 # effectively closing config.log, so it can be properly (re)opened and
15861 # appended to by config.status. When coming back to configure, we
15862 # need to make the FD available again.
15863 if test "$no_create" != yes; then
15865 ac_config_status_args=
15866 test "$silent" = yes &&
15867 ac_config_status_args="$ac_config_status_args --quiet"
15869 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15871 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15872 # would make configure fail if this is the last instruction.
15873 $ac_cs_success || { (exit 1); exit 1; }