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="ar.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 LN_S RANLIB ac_ct_RANLIB LIBTOOL WARN_CFLAGS NO_WERROR YACC LEX LEXLIB LEX_OUTPUT_ROOT 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT HDEFINES AR CC_FOR_BUILD EXEEXT_FOR_BUILD DEMANGLER_NAME NLMCONV_DEFS BUILD_NLMCONV BUILD_SRCONV BUILD_DLLTOOL DLLTOOL_DEFS BUILD_WINDRES BUILD_DLLWRAP BUILD_MISC OBJDUMP_DEFS EMULATION EMULATION_VECTOR 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=yes
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-targets alternative target configurations
860 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
861 --enable-werror treat compile warnings as errors
862 --enable-build-warnings Enable build-time compiler warnings
863 --disable-nls do not use Native Language Support
864 --enable-maintainer-mode enable make rules and dependencies not useful
865 (and sometimes confusing) to the casual installer
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --with-gnu-ld assume the C compiler uses GNU ld default=no
871 --with-pic try to use only PIC/non-PIC objects default=use both
872 --with-included-gettext use the GNU gettext library included here
874 Some influential environment variables:
875 CC C compiler command
876 CFLAGS C compiler flags
877 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
878 nonstandard directory <lib dir>
879 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
880 headers in a nonstandard directory <include dir>
883 Use these variables to override the choices made by `configure' or to help
884 it to find libraries and programs with nonstandard names/locations.
889 if test "$ac_init_help" = "recursive"; then
890 # If there are subdirs, report their specific --help.
892 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
893 test -d $ac_dir || continue
896 if test "$ac_dir" != .; then
897 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
898 # A "../" for each directory in $ac_dir_suffix.
899 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
901 ac_dir_suffix= ac_top_builddir=
905 .) # No --srcdir option. We are building in place.
907 if test -z "$ac_top_builddir"; then
910 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
912 [\\/]* | ?:[\\/]* ) # Absolute path.
913 ac_srcdir=$srcdir$ac_dir_suffix;
914 ac_top_srcdir=$srcdir ;;
916 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
917 ac_top_srcdir=$ac_top_builddir$srcdir ;;
920 # Do not use `cd foo && pwd` to compute absolute paths, because
921 # the directories may not exist.
923 .) ac_abs_builddir="$ac_dir";;
926 .) ac_abs_builddir=`pwd`;;
927 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
928 *) ac_abs_builddir=`pwd`/"$ac_dir";;
931 case $ac_abs_builddir in
932 .) ac_abs_top_builddir=${ac_top_builddir}.;;
934 case ${ac_top_builddir}. in
935 .) ac_abs_top_builddir=$ac_abs_builddir;;
936 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
937 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
940 case $ac_abs_builddir in
941 .) ac_abs_srcdir=$ac_srcdir;;
944 .) ac_abs_srcdir=$ac_abs_builddir;;
945 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
946 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
949 case $ac_abs_builddir in
950 .) ac_abs_top_srcdir=$ac_top_srcdir;;
952 case $ac_top_srcdir in
953 .) ac_abs_top_srcdir=$ac_abs_builddir;;
954 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
955 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
960 # Check for guested configure; otherwise get Cygnus style configure.
961 if test -f $ac_srcdir/configure.gnu; then
963 $SHELL $ac_srcdir/configure.gnu --help=recursive
964 elif test -f $ac_srcdir/configure; then
966 $SHELL $ac_srcdir/configure --help=recursive
967 elif test -f $ac_srcdir/configure.ac ||
968 test -f $ac_srcdir/configure.in; then
972 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
978 test -n "$ac_init_help" && exit 0
979 if $ac_init_version; then
982 Copyright (C) 2003 Free Software Foundation, Inc.
983 This configure script is free software; the Free Software Foundation
984 gives unlimited permission to copy, distribute and modify it.
990 This file contains any messages produced by compilers while
991 running configure, to aid debugging if configure makes a mistake.
993 It was created by $as_me, which was
994 generated by GNU Autoconf 2.59. Invocation command line was
1005 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1006 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1007 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1008 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1009 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1011 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1012 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1014 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1015 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1016 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1017 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1018 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1019 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1020 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1028 test -z "$as_dir" && as_dir=.
1029 echo "PATH: $as_dir"
1044 # Keep a trace of the command line.
1045 # Strip out --no-create and --no-recursion so they do not pile up.
1046 # Strip out --silent because we don't want to record it for future runs.
1047 # Also quote any args containing shell meta-characters.
1048 # Make two passes to allow for proper duplicate-argument suppression.
1053 ac_must_keep_next=false
1059 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061 | -silent | --silent | --silen | --sile | --sil)
1063 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1064 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1067 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1069 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1070 if test $ac_must_keep_next = true; then
1071 ac_must_keep_next=false # Got value, back to normal.
1074 *=* | --config-cache | -C | -disable-* | --disable-* \
1075 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1076 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1077 | -with-* | --with-* | -without-* | --without-* | --x)
1078 case "$ac_configure_args0 " in
1079 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1082 -* ) ac_must_keep_next=true ;;
1085 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1086 # Get rid of the leading space.
1092 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1093 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1095 # When interrupted or exit'd, cleanup temporary files, and complete
1096 # config.log. We remove comments because anyway the quotes in there
1097 # would cause problems or look ugly.
1098 # WARNING: Be sure not to use single quotes in there, as some shells,
1099 # such as our DU 5.0 friend, will then `close' the trap.
1100 trap 'exit_status=$?
1101 # Save into config.log some information that might help in debugging.
1106 ## ---------------- ##
1107 ## Cache variables. ##
1108 ## ---------------- ##
1111 # The following way of writing the cache mishandles newlines in values,
1114 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1117 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1118 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1122 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1129 ## ----------------- ##
1130 ## Output variables. ##
1131 ## ----------------- ##
1134 for ac_var in $ac_subst_vars
1136 eval ac_val=$`echo $ac_var`
1137 echo "$ac_var='"'"'$ac_val'"'"'"
1141 if test -n "$ac_subst_files"; then
1148 for ac_var in $ac_subst_files
1150 eval ac_val=$`echo $ac_var`
1151 echo "$ac_var='"'"'$ac_val'"'"'"
1156 if test -s confdefs.h; then
1163 sed "/^$/d" confdefs.h | sort
1166 test "$ac_signal" != 0 &&
1167 echo "$as_me: caught signal $ac_signal"
1168 echo "$as_me: exit $exit_status"
1170 rm -f core *.core &&
1171 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1174 for ac_signal in 1 2 13 15; do
1175 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1179 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1180 rm -rf conftest* confdefs.h
1181 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1184 # Predefined preprocessor variables.
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_NAME "$PACKAGE_NAME"
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_STRING "$PACKAGE_STRING"
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1211 # Let the site file select an alternate cache file if it wants to.
1212 # Prefer explicitly selected file to automatically selected ones.
1213 if test -z "$CONFIG_SITE"; then
1214 if test "x$prefix" != xNONE; then
1215 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1217 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1220 for ac_site_file in $CONFIG_SITE; do
1221 if test -r "$ac_site_file"; then
1222 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1223 echo "$as_me: loading site script $ac_site_file" >&6;}
1224 sed 's/^/| /' "$ac_site_file" >&5
1229 if test -r "$cache_file"; then
1230 # Some versions of bash will fail to source /dev/null (special
1231 # files actually), so we avoid doing that.
1232 if test -f "$cache_file"; then
1233 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1234 echo "$as_me: loading cache $cache_file" >&6;}
1236 [\\/]* | ?:[\\/]* ) . $cache_file;;
1237 *) . ./$cache_file;;
1241 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1242 echo "$as_me: creating cache $cache_file" >&6;}
1246 # Check that the precious variables saved in the cache have kept the same
1248 ac_cache_corrupted=false
1249 for ac_var in `(set) 2>&1 |
1250 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1251 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1252 eval ac_new_set=\$ac_env_${ac_var}_set
1253 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1254 eval ac_new_val="\$ac_env_${ac_var}_value"
1255 case $ac_old_set,$ac_new_set in
1257 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1258 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1259 ac_cache_corrupted=: ;;
1261 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1262 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1263 ac_cache_corrupted=: ;;
1266 if test "x$ac_old_val" != "x$ac_new_val"; then
1267 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1268 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1269 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1270 echo "$as_me: former value: $ac_old_val" >&2;}
1271 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1272 echo "$as_me: current value: $ac_new_val" >&2;}
1273 ac_cache_corrupted=:
1276 # Pass precious variables to config.status.
1277 if test "$ac_new_set" = set; then
1279 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1280 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1281 *) ac_arg=$ac_var=$ac_new_val ;;
1283 case " $ac_configure_args " in
1284 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1285 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1289 if $ac_cache_corrupted; then
1290 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1291 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1292 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1293 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1294 { (exit 1); exit 1; }; }
1298 ac_cpp='$CPP $CPPFLAGS'
1299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1323 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1324 if test -f $ac_dir/install-sh; then
1326 ac_install_sh="$ac_aux_dir/install-sh -c"
1328 elif test -f $ac_dir/install.sh; then
1330 ac_install_sh="$ac_aux_dir/install.sh -c"
1332 elif test -f $ac_dir/shtool; then
1334 ac_install_sh="$ac_aux_dir/shtool install -c"
1338 if test -z "$ac_aux_dir"; then
1339 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1340 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1341 { (exit 1); exit 1; }; }
1343 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1344 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1345 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1347 # Make sure we can run config.sub.
1348 $ac_config_sub sun4 >/dev/null 2>&1 ||
1349 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1350 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1351 { (exit 1); exit 1; }; }
1353 echo "$as_me:$LINENO: checking build system type" >&5
1354 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1355 if test "${ac_cv_build+set}" = set; then
1356 echo $ECHO_N "(cached) $ECHO_C" >&6
1358 ac_cv_build_alias=$build_alias
1359 test -z "$ac_cv_build_alias" &&
1360 ac_cv_build_alias=`$ac_config_guess`
1361 test -z "$ac_cv_build_alias" &&
1362 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1363 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1364 { (exit 1); exit 1; }; }
1365 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1366 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1367 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1368 { (exit 1); exit 1; }; }
1371 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1372 echo "${ECHO_T}$ac_cv_build" >&6
1374 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1375 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1376 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1379 echo "$as_me:$LINENO: checking host system type" >&5
1380 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1381 if test "${ac_cv_host+set}" = set; then
1382 echo $ECHO_N "(cached) $ECHO_C" >&6
1384 ac_cv_host_alias=$host_alias
1385 test -z "$ac_cv_host_alias" &&
1386 ac_cv_host_alias=$ac_cv_build_alias
1387 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1388 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1389 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1390 { (exit 1); exit 1; }; }
1393 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1394 echo "${ECHO_T}$ac_cv_host" >&6
1396 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1397 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1398 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1401 echo "$as_me:$LINENO: checking target system type" >&5
1402 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1403 if test "${ac_cv_target+set}" = set; then
1404 echo $ECHO_N "(cached) $ECHO_C" >&6
1406 ac_cv_target_alias=$target_alias
1407 test "x$ac_cv_target_alias" = "x" &&
1408 ac_cv_target_alias=$ac_cv_host_alias
1409 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1410 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1411 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1412 { (exit 1); exit 1; }; }
1415 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1416 echo "${ECHO_T}$ac_cv_target" >&6
1417 target=$ac_cv_target
1418 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1419 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1420 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1423 # The aliases save the names the user supplied, while $host etc.
1424 # will get canonicalized.
1425 test -n "$target_alias" &&
1426 test "$program_prefix$program_suffix$program_transform_name" = \
1428 program_prefix=${target_alias}-
1430 ac_cpp='$CPP $CPPFLAGS'
1431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1434 if test -n "$ac_tool_prefix"; then
1435 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1436 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1437 echo "$as_me:$LINENO: checking for $ac_word" >&5
1438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1439 if test "${ac_cv_prog_CC+set}" = set; then
1440 echo $ECHO_N "(cached) $ECHO_C" >&6
1442 if test -n "$CC"; then
1443 ac_cv_prog_CC="$CC" # Let the user override the test.
1445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449 test -z "$as_dir" && as_dir=.
1450 for ac_exec_ext in '' $ac_executable_extensions; do
1451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1452 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1462 if test -n "$CC"; then
1463 echo "$as_me:$LINENO: result: $CC" >&5
1464 echo "${ECHO_T}$CC" >&6
1466 echo "$as_me:$LINENO: result: no" >&5
1467 echo "${ECHO_T}no" >&6
1471 if test -z "$ac_cv_prog_CC"; then
1473 # Extract the first word of "gcc", so it can be a program name with args.
1474 set dummy gcc; ac_word=$2
1475 echo "$as_me:$LINENO: checking for $ac_word" >&5
1476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1477 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1478 echo $ECHO_N "(cached) $ECHO_C" >&6
1480 if test -n "$ac_ct_CC"; then
1481 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1487 test -z "$as_dir" && as_dir=.
1488 for ac_exec_ext in '' $ac_executable_extensions; do
1489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1490 ac_cv_prog_ac_ct_CC="gcc"
1491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1499 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1500 if test -n "$ac_ct_CC"; then
1501 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1502 echo "${ECHO_T}$ac_ct_CC" >&6
1504 echo "$as_me:$LINENO: result: no" >&5
1505 echo "${ECHO_T}no" >&6
1513 if test -z "$CC"; then
1514 if test -n "$ac_tool_prefix"; then
1515 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1516 set dummy ${ac_tool_prefix}cc; ac_word=$2
1517 echo "$as_me:$LINENO: checking for $ac_word" >&5
1518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1519 if test "${ac_cv_prog_CC+set}" = set; then
1520 echo $ECHO_N "(cached) $ECHO_C" >&6
1522 if test -n "$CC"; then
1523 ac_cv_prog_CC="$CC" # Let the user override the test.
1525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529 test -z "$as_dir" && as_dir=.
1530 for ac_exec_ext in '' $ac_executable_extensions; do
1531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1532 ac_cv_prog_CC="${ac_tool_prefix}cc"
1533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1542 if test -n "$CC"; then
1543 echo "$as_me:$LINENO: result: $CC" >&5
1544 echo "${ECHO_T}$CC" >&6
1546 echo "$as_me:$LINENO: result: no" >&5
1547 echo "${ECHO_T}no" >&6
1551 if test -z "$ac_cv_prog_CC"; then
1553 # Extract the first word of "cc", so it can be a program name with args.
1554 set dummy cc; ac_word=$2
1555 echo "$as_me:$LINENO: checking for $ac_word" >&5
1556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1557 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1558 echo $ECHO_N "(cached) $ECHO_C" >&6
1560 if test -n "$ac_ct_CC"; then
1561 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567 test -z "$as_dir" && as_dir=.
1568 for ac_exec_ext in '' $ac_executable_extensions; do
1569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1570 ac_cv_prog_ac_ct_CC="cc"
1571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1579 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1580 if test -n "$ac_ct_CC"; then
1581 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1582 echo "${ECHO_T}$ac_ct_CC" >&6
1584 echo "$as_me:$LINENO: result: no" >&5
1585 echo "${ECHO_T}no" >&6
1594 if test -z "$CC"; then
1595 # Extract the first word of "cc", so it can be a program name with args.
1596 set dummy cc; ac_word=$2
1597 echo "$as_me:$LINENO: checking for $ac_word" >&5
1598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1599 if test "${ac_cv_prog_CC+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1602 if test -n "$CC"; then
1603 ac_cv_prog_CC="$CC" # Let the user override the test.
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610 test -z "$as_dir" && as_dir=.
1611 for ac_exec_ext in '' $ac_executable_extensions; do
1612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1613 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1614 ac_prog_rejected=yes
1618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1624 if test $ac_prog_rejected = yes; then
1625 # We found a bogon in the path, so make sure we never use it.
1626 set dummy $ac_cv_prog_CC
1628 if test $# != 0; then
1629 # We chose a different compiler from the bogus one.
1630 # However, it has the same basename, so the bogon will be chosen
1631 # first if we set CC to just the basename; use the full file name.
1633 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1639 if test -n "$CC"; then
1640 echo "$as_me:$LINENO: result: $CC" >&5
1641 echo "${ECHO_T}$CC" >&6
1643 echo "$as_me:$LINENO: result: no" >&5
1644 echo "${ECHO_T}no" >&6
1648 if test -z "$CC"; then
1649 if test -n "$ac_tool_prefix"; then
1652 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1653 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1654 echo "$as_me:$LINENO: checking for $ac_word" >&5
1655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1656 if test "${ac_cv_prog_CC+set}" = set; then
1657 echo $ECHO_N "(cached) $ECHO_C" >&6
1659 if test -n "$CC"; then
1660 ac_cv_prog_CC="$CC" # Let the user override the test.
1662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666 test -z "$as_dir" && as_dir=.
1667 for ac_exec_ext in '' $ac_executable_extensions; do
1668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1669 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1679 if test -n "$CC"; then
1680 echo "$as_me:$LINENO: result: $CC" >&5
1681 echo "${ECHO_T}$CC" >&6
1683 echo "$as_me:$LINENO: result: no" >&5
1684 echo "${ECHO_T}no" >&6
1687 test -n "$CC" && break
1690 if test -z "$CC"; then
1694 # Extract the first word of "$ac_prog", so it can be a program name with args.
1695 set dummy $ac_prog; ac_word=$2
1696 echo "$as_me:$LINENO: checking for $ac_word" >&5
1697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1699 echo $ECHO_N "(cached) $ECHO_C" >&6
1701 if test -n "$ac_ct_CC"; then
1702 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708 test -z "$as_dir" && as_dir=.
1709 for ac_exec_ext in '' $ac_executable_extensions; do
1710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711 ac_cv_prog_ac_ct_CC="$ac_prog"
1712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1720 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1721 if test -n "$ac_ct_CC"; then
1722 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1723 echo "${ECHO_T}$ac_ct_CC" >&6
1725 echo "$as_me:$LINENO: result: no" >&5
1726 echo "${ECHO_T}no" >&6
1729 test -n "$ac_ct_CC" && break
1738 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1739 See \`config.log' for more details." >&5
1740 echo "$as_me: error: no acceptable C compiler found in \$PATH
1741 See \`config.log' for more details." >&2;}
1742 { (exit 1); exit 1; }; }
1744 # Provide some information about the compiler.
1745 echo "$as_me:$LINENO:" \
1746 "checking for C compiler version" >&5
1747 ac_compiler=`set X $ac_compile; echo $2`
1748 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1749 (eval $ac_compiler --version </dev/null >&5) 2>&5
1751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1752 (exit $ac_status); }
1753 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1754 (eval $ac_compiler -v </dev/null >&5) 2>&5
1756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1757 (exit $ac_status); }
1758 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1759 (eval $ac_compiler -V </dev/null >&5) 2>&5
1761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1762 (exit $ac_status); }
1764 cat >conftest.$ac_ext <<_ACEOF
1767 cat confdefs.h >>conftest.$ac_ext
1768 cat >>conftest.$ac_ext <<_ACEOF
1769 /* end confdefs.h. */
1779 ac_clean_files_save=$ac_clean_files
1780 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1781 # Try to create an executable without -o first, disregard a.out.
1782 # It will help us diagnose broken compilers, and finding out an intuition
1784 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1785 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1786 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1787 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1788 (eval $ac_link_default) 2>&5
1790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791 (exit $ac_status); }; then
1792 # Find the output, starting from the most likely. This scheme is
1793 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1796 # Be careful to initialize this variable, since it used to be cached.
1797 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1799 # b.out is created by i960 compilers.
1800 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1802 test -f "$ac_file" || continue
1804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1807 # This is the source file.
1810 # We found the default executable, but exeext='' is most
1814 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1815 # FIXME: I believe we export ac_cv_exeext for Libtool,
1816 # but it would be cool to find out if it's true. Does anybody
1817 # maintain Libtool? --akim.
1825 echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1828 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1829 See \`config.log' for more details." >&5
1830 echo "$as_me: error: C compiler cannot create executables
1831 See \`config.log' for more details." >&2;}
1832 { (exit 77); exit 77; }; }
1835 ac_exeext=$ac_cv_exeext
1836 echo "$as_me:$LINENO: result: $ac_file" >&5
1837 echo "${ECHO_T}$ac_file" >&6
1839 # Check the compiler produces executables we can run. If not, either
1840 # the compiler is broken, or we cross compile.
1841 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1842 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1843 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1844 # If not cross compiling, check that we can run a simple program.
1845 if test "$cross_compiling" != yes; then
1846 if { ac_try='./$ac_file'
1847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851 (exit $ac_status); }; }; then
1854 if test "$cross_compiling" = maybe; then
1857 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1858 If you meant to cross compile, use \`--host'.
1859 See \`config.log' for more details." >&5
1860 echo "$as_me: error: cannot run C compiled programs.
1861 If you meant to cross compile, use \`--host'.
1862 See \`config.log' for more details." >&2;}
1863 { (exit 1); exit 1; }; }
1867 echo "$as_me:$LINENO: result: yes" >&5
1868 echo "${ECHO_T}yes" >&6
1870 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1871 ac_clean_files=$ac_clean_files_save
1872 # Check the compiler produces executables we can run. If not, either
1873 # the compiler is broken, or we cross compile.
1874 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1875 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1876 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1877 echo "${ECHO_T}$cross_compiling" >&6
1879 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1880 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1882 (eval $ac_link) 2>&5
1884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885 (exit $ac_status); }; then
1886 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1887 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1888 # work properly (i.e., refer to `conftest.exe'), while it won't with
1890 for ac_file in conftest.exe conftest conftest.*; do
1891 test -f "$ac_file" || continue
1893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1894 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1901 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1902 See \`config.log' for more details." >&5
1903 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1904 See \`config.log' for more details." >&2;}
1905 { (exit 1); exit 1; }; }
1908 rm -f conftest$ac_cv_exeext
1909 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1910 echo "${ECHO_T}$ac_cv_exeext" >&6
1912 rm -f conftest.$ac_ext
1913 EXEEXT=$ac_cv_exeext
1915 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1916 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1917 if test "${ac_cv_objext+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 cat >conftest.$ac_ext <<_ACEOF
1923 cat confdefs.h >>conftest.$ac_ext
1924 cat >>conftest.$ac_ext <<_ACEOF
1925 /* end confdefs.h. */
1935 rm -f conftest.o conftest.obj
1936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1937 (eval $ac_compile) 2>&5
1939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940 (exit $ac_status); }; then
1941 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1943 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1944 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1949 echo "$as_me: failed program was:" >&5
1950 sed 's/^/| /' conftest.$ac_ext >&5
1952 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1953 See \`config.log' for more details." >&5
1954 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1955 See \`config.log' for more details." >&2;}
1956 { (exit 1); exit 1; }; }
1959 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1961 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1962 echo "${ECHO_T}$ac_cv_objext" >&6
1963 OBJEXT=$ac_cv_objext
1965 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1966 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1967 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1970 cat >conftest.$ac_ext <<_ACEOF
1973 cat confdefs.h >>conftest.$ac_ext
1974 cat >>conftest.$ac_ext <<_ACEOF
1975 /* end confdefs.h. */
1988 rm -f conftest.$ac_objext
1989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1990 (eval $ac_compile) 2>conftest.er1
1992 grep -v '^ *+' conftest.er1 >conftest.err
1994 cat conftest.err >&5
1995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996 (exit $ac_status); } &&
1997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }; } &&
2003 { ac_try='test -s conftest.$ac_objext'
2004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); }; }; then
2011 echo "$as_me: failed program was:" >&5
2012 sed 's/^/| /' conftest.$ac_ext >&5
2016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2017 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2020 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2021 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2022 GCC=`test $ac_compiler_gnu = yes && echo yes`
2023 ac_test_CFLAGS=${CFLAGS+set}
2024 ac_save_CFLAGS=$CFLAGS
2026 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2027 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2028 if test "${ac_cv_prog_cc_g+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2031 cat >conftest.$ac_ext <<_ACEOF
2034 cat confdefs.h >>conftest.$ac_ext
2035 cat >>conftest.$ac_ext <<_ACEOF
2036 /* end confdefs.h. */
2046 rm -f conftest.$ac_objext
2047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2048 (eval $ac_compile) 2>conftest.er1
2050 grep -v '^ *+' conftest.er1 >conftest.err
2052 cat conftest.err >&5
2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 (exit $ac_status); } &&
2055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); }; } &&
2061 { ac_try='test -s conftest.$ac_objext'
2062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066 (exit $ac_status); }; }; then
2069 echo "$as_me: failed program was:" >&5
2070 sed 's/^/| /' conftest.$ac_ext >&5
2074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2076 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2077 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2078 if test "$ac_test_CFLAGS" = set; then
2079 CFLAGS=$ac_save_CFLAGS
2080 elif test $ac_cv_prog_cc_g = yes; then
2081 if test "$GCC" = yes; then
2087 if test "$GCC" = yes; then
2093 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2094 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2095 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2096 echo $ECHO_N "(cached) $ECHO_C" >&6
2098 ac_cv_prog_cc_stdc=no
2100 cat >conftest.$ac_ext <<_ACEOF
2103 cat confdefs.h >>conftest.$ac_ext
2104 cat >>conftest.$ac_ext <<_ACEOF
2105 /* end confdefs.h. */
2108 #include <sys/types.h>
2109 #include <sys/stat.h>
2110 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2111 struct buf { int x; };
2112 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2113 static char *e (p, i)
2119 static char *f (char * (*g) (char **, int), char **p, ...)
2124 s = g (p, va_arg (v,int));
2129 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2130 function prototypes and stuff, but not '\xHH' hex character constants.
2131 These don't provoke an error unfortunately, instead are silently treated
2132 as 'x'. The following induces an error, until -std1 is added to get
2133 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2134 array size at least. It's necessary to write '\x00'==0 to get something
2135 that's true only with -std1. */
2136 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2138 int test (int i, double x);
2139 struct s1 {int (*f) (int a);};
2140 struct s2 {int (*f) (double a);};
2141 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2147 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2152 # Don't try gcc -ansi; that turns off useful extensions and
2153 # breaks some systems' header files.
2154 # AIX -qlanglvl=ansi
2155 # Ultrix and OSF/1 -std1
2156 # HP-UX 10.20 and later -Ae
2157 # HP-UX older versions -Aa -D_HPUX_SOURCE
2158 # SVR4 -Xc -D__EXTENSIONS__
2159 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2161 CC="$ac_save_CC $ac_arg"
2162 rm -f conftest.$ac_objext
2163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2164 (eval $ac_compile) 2>conftest.er1
2166 grep -v '^ *+' conftest.er1 >conftest.err
2168 cat conftest.err >&5
2169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170 (exit $ac_status); } &&
2171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); }; } &&
2177 { ac_try='test -s conftest.$ac_objext'
2178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; }; then
2183 ac_cv_prog_cc_stdc=$ac_arg
2186 echo "$as_me: failed program was:" >&5
2187 sed 's/^/| /' conftest.$ac_ext >&5
2190 rm -f conftest.err conftest.$ac_objext
2192 rm -f conftest.$ac_ext conftest.$ac_objext
2197 case "x$ac_cv_prog_cc_stdc" in
2199 echo "$as_me:$LINENO: result: none needed" >&5
2200 echo "${ECHO_T}none needed" >&6 ;;
2202 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2203 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2204 CC="$CC $ac_cv_prog_cc_stdc" ;;
2207 # Some people use a C++ compiler to compile C. Since we use `exit',
2208 # in C++ we need to declare it. In case someone uses the same compiler
2209 # for both compiling C and C++ we need to have the C++ compiler decide
2210 # the declaration of exit, since it's the most demanding environment.
2211 cat >conftest.$ac_ext <<_ACEOF
2216 rm -f conftest.$ac_objext
2217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2218 (eval $ac_compile) 2>conftest.er1
2220 grep -v '^ *+' conftest.er1 >conftest.err
2222 cat conftest.err >&5
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); } &&
2225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); }; } &&
2231 { ac_try='test -s conftest.$ac_objext'
2232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); }; }; then
2237 for ac_declaration in \
2239 'extern "C" void std::exit (int) throw (); using std::exit;' \
2240 'extern "C" void std::exit (int); using std::exit;' \
2241 'extern "C" void exit (int) throw ();' \
2242 'extern "C" void exit (int);' \
2245 cat >conftest.$ac_ext <<_ACEOF
2248 cat confdefs.h >>conftest.$ac_ext
2249 cat >>conftest.$ac_ext <<_ACEOF
2250 /* end confdefs.h. */
2261 rm -f conftest.$ac_objext
2262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2263 (eval $ac_compile) 2>conftest.er1
2265 grep -v '^ *+' conftest.er1 >conftest.err
2267 cat conftest.err >&5
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); } &&
2270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }; } &&
2276 { ac_try='test -s conftest.$ac_objext'
2277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); }; }; then
2284 echo "$as_me: failed program was:" >&5
2285 sed 's/^/| /' conftest.$ac_ext >&5
2289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2290 cat >conftest.$ac_ext <<_ACEOF
2293 cat confdefs.h >>conftest.$ac_ext
2294 cat >>conftest.$ac_ext <<_ACEOF
2295 /* end confdefs.h. */
2305 rm -f conftest.$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307 (eval $ac_compile) 2>conftest.er1
2309 grep -v '^ *+' conftest.er1 >conftest.err
2311 cat conftest.err >&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); } &&
2314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; } &&
2320 { ac_try='test -s conftest.$ac_objext'
2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; }; then
2328 echo "$as_me: failed program was:" >&5
2329 sed 's/^/| /' conftest.$ac_ext >&5
2332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2335 if test -n "$ac_declaration"; then
2336 echo '#ifdef __cplusplus' >>confdefs.h
2337 echo $ac_declaration >>confdefs.h
2338 echo '#endif' >>confdefs.h
2342 echo "$as_me: failed program was:" >&5
2343 sed 's/^/| /' conftest.$ac_ext >&5
2346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2348 ac_cpp='$CPP $CPPFLAGS'
2349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2354 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2355 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2356 if test "${ac_cv_search_strerror+set}" = set; then
2357 echo $ECHO_N "(cached) $ECHO_C" >&6
2359 ac_func_search_save_LIBS=$LIBS
2360 ac_cv_search_strerror=no
2361 cat >conftest.$ac_ext <<_ACEOF
2364 cat confdefs.h >>conftest.$ac_ext
2365 cat >>conftest.$ac_ext <<_ACEOF
2366 /* end confdefs.h. */
2368 /* Override any gcc2 internal prototype to avoid an error. */
2372 /* We use char because int might match the return type of a gcc2
2373 builtin and then its argument prototype would still apply. */
2383 rm -f conftest.$ac_objext conftest$ac_exeext
2384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2385 (eval $ac_link) 2>conftest.er1
2387 grep -v '^ *+' conftest.er1 >conftest.err
2389 cat conftest.err >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); } &&
2392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; } &&
2398 { ac_try='test -s conftest$ac_exeext'
2399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }; }; then
2404 ac_cv_search_strerror="none required"
2406 echo "$as_me: failed program was:" >&5
2407 sed 's/^/| /' conftest.$ac_ext >&5
2410 rm -f conftest.err conftest.$ac_objext \
2411 conftest$ac_exeext conftest.$ac_ext
2412 if test "$ac_cv_search_strerror" = no; then
2413 for ac_lib in cposix; do
2414 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2415 cat >conftest.$ac_ext <<_ACEOF
2418 cat confdefs.h >>conftest.$ac_ext
2419 cat >>conftest.$ac_ext <<_ACEOF
2420 /* end confdefs.h. */
2422 /* Override any gcc2 internal prototype to avoid an error. */
2426 /* We use char because int might match the return type of a gcc2
2427 builtin and then its argument prototype would still apply. */
2437 rm -f conftest.$ac_objext conftest$ac_exeext
2438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2439 (eval $ac_link) 2>conftest.er1
2441 grep -v '^ *+' conftest.er1 >conftest.err
2443 cat conftest.err >&5
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); } &&
2446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); }; } &&
2452 { ac_try='test -s conftest$ac_exeext'
2453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); }; }; then
2458 ac_cv_search_strerror="-l$ac_lib"
2461 echo "$as_me: failed program was:" >&5
2462 sed 's/^/| /' conftest.$ac_ext >&5
2465 rm -f conftest.err conftest.$ac_objext \
2466 conftest$ac_exeext conftest.$ac_ext
2469 LIBS=$ac_func_search_save_LIBS
2471 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2472 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2473 if test "$ac_cv_search_strerror" != no; then
2474 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2479 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2480 am__api_version="1.9"
2481 # Find a good install program. We prefer a C program (faster),
2482 # so one script is as good as another. But avoid the broken or
2483 # incompatible versions:
2484 # SysV /etc/install, /usr/sbin/install
2485 # SunOS /usr/etc/install
2486 # IRIX /sbin/install
2488 # AmigaOS /C/install, which installs bootblocks on floppy discs
2489 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2490 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2491 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2492 # OS/2's system install, which has a completely different semantic
2493 # ./install, which can be erroneously created by make from ./install.sh.
2494 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2495 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2496 if test -z "$INSTALL"; then
2497 if test "${ac_cv_path_install+set}" = set; then
2498 echo $ECHO_N "(cached) $ECHO_C" >&6
2500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2504 test -z "$as_dir" && as_dir=.
2505 # Account for people who put trailing slashes in PATH elements.
2507 ./ | .// | /cC/* | \
2508 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2509 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2512 # OSF1 and SCO ODT 3.0 have their own names for install.
2513 # Don't use installbsd from OSF since it installs stuff as root
2515 for ac_prog in ginstall scoinst install; do
2516 for ac_exec_ext in '' $ac_executable_extensions; do
2517 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2518 if test $ac_prog = install &&
2519 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2520 # AIX install. It has an incompatible calling convention.
2522 elif test $ac_prog = install &&
2523 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2524 # program-specific install script used by HP pwplus--don't use.
2527 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2539 if test "${ac_cv_path_install+set}" = set; then
2540 INSTALL=$ac_cv_path_install
2542 # As a last resort, use the slow shell script. We don't cache a
2543 # path for INSTALL within a source directory, because that will
2544 # break other packages using the cache if that directory is
2545 # removed, or if the path is relative.
2546 INSTALL=$ac_install_sh
2549 echo "$as_me:$LINENO: result: $INSTALL" >&5
2550 echo "${ECHO_T}$INSTALL" >&6
2552 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2553 # It thinks the first close brace ends the variable substitution.
2554 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2556 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2558 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2560 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2561 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2564 echo timestamp > conftest.file
2565 # Do `set' in a subshell so we don't clobber the current shell's
2566 # arguments. Must try -L first in case configure is actually a
2567 # symlink; some systems play weird games with the mod time of symlinks
2568 # (eg FreeBSD returns the mod time of the symlink's containing
2571 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2572 if test "$*" = "X"; then
2574 set X `ls -t $srcdir/configure conftest.file`
2577 if test "$*" != "X $srcdir/configure conftest.file" \
2578 && test "$*" != "X conftest.file $srcdir/configure"; then
2580 # If neither matched, then we have a broken ls. This can happen
2581 # if, for instance, CONFIG_SHELL is bash and it inherits a
2582 # broken ls alias from the environment. This has actually
2583 # happened. Such a system could not be considered "sane".
2584 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2585 alias in your environment" >&5
2586 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2587 alias in your environment" >&2;}
2588 { (exit 1); exit 1; }; }
2591 test "$2" = conftest.file
2597 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2598 Check your system clock" >&5
2599 echo "$as_me: error: newly created file is older than distributed files!
2600 Check your system clock" >&2;}
2601 { (exit 1); exit 1; }; }
2603 echo "$as_me:$LINENO: result: yes" >&5
2604 echo "${ECHO_T}yes" >&6
2605 test "$program_prefix" != NONE &&
2606 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2607 # Use a double $ so make ignores it.
2608 test "$program_suffix" != NONE &&
2609 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2610 # Double any \ or $. echo might interpret backslashes.
2611 # By default was `s,x,x', remove it if useless.
2612 cat <<\_ACEOF >conftest.sed
2613 s/[\\$]/&&/g;s/;s,x,x,$//
2615 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2618 # expand $ac_aux_dir to an absolute path
2619 am_aux_dir=`cd $ac_aux_dir && pwd`
2621 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2622 # Use eval to expand $SHELL
2623 if eval "$MISSING --run true"; then
2624 am_missing_run="$MISSING --run "
2627 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2628 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2631 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2632 # We used to keeping the `.' as first argument, in order to
2633 # allow $(mkdir_p) to be used without argument. As in
2634 # $(mkdir_p) $(somedir)
2635 # where $(somedir) is conditionally defined. However this is wrong
2637 # 1. if the package is installed by a user who cannot write `.'
2638 # make install will fail,
2639 # 2. the above comment should most certainly read
2640 # $(mkdir_p) $(DESTDIR)$(somedir)
2641 # so it does not work when $(somedir) is undefined and
2642 # $(DESTDIR) is not.
2643 # To support the latter case, we have to write
2644 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2645 # so the `.' trick is pointless.
2646 mkdir_p='mkdir -p --'
2648 # On NextStep and OpenStep, the `mkdir' command does not
2649 # recognize any option. It will interpret all options as
2650 # directories to create, and then abort because `.' already
2652 for d in ./-p ./--version;
2654 test -d $d && rmdir $d
2656 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2657 if test -f "$ac_aux_dir/mkinstalldirs"; then
2658 mkdir_p='$(mkinstalldirs)'
2660 mkdir_p='$(install_sh) -d'
2664 for ac_prog in gawk mawk nawk awk
2666 # Extract the first word of "$ac_prog", so it can be a program name with args.
2667 set dummy $ac_prog; ac_word=$2
2668 echo "$as_me:$LINENO: checking for $ac_word" >&5
2669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2670 if test "${ac_cv_prog_AWK+set}" = set; then
2671 echo $ECHO_N "(cached) $ECHO_C" >&6
2673 if test -n "$AWK"; then
2674 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680 test -z "$as_dir" && as_dir=.
2681 for ac_exec_ext in '' $ac_executable_extensions; do
2682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2683 ac_cv_prog_AWK="$ac_prog"
2684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 if test -n "$AWK"; then
2694 echo "$as_me:$LINENO: result: $AWK" >&5
2695 echo "${ECHO_T}$AWK" >&6
2697 echo "$as_me:$LINENO: result: no" >&5
2698 echo "${ECHO_T}no" >&6
2701 test -n "$AWK" && break
2704 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2705 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2706 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2707 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2708 echo $ECHO_N "(cached) $ECHO_C" >&6
2710 cat >conftest.make <<\_ACEOF
2712 @echo 'ac_maketemp="$(MAKE)"'
2714 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2715 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2716 if test -n "$ac_maketemp"; then
2717 eval ac_cv_prog_make_${ac_make}_set=yes
2719 eval ac_cv_prog_make_${ac_make}_set=no
2723 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2724 echo "$as_me:$LINENO: result: yes" >&5
2725 echo "${ECHO_T}yes" >&6
2728 echo "$as_me:$LINENO: result: no" >&5
2729 echo "${ECHO_T}no" >&6
2730 SET_MAKE="MAKE=${MAKE-make}"
2733 rm -rf .tst 2>/dev/null
2734 mkdir .tst 2>/dev/null
2735 if test -d .tst; then
2740 rmdir .tst 2>/dev/null
2742 DEPDIR="${am__leading_dot}deps"
2744 ac_config_commands="$ac_config_commands depfiles"
2747 am_make=${MAKE-make}
2748 cat > confinc << 'END'
2753 # If we don't find an include directive, just comment out the code.
2754 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2755 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2759 # First try GNU make style include.
2760 echo "include confinc" > confmf
2761 # We grep out `Entering directory' and `Leaving directory'
2762 # messages which can occur if `w' ends up in MAKEFLAGS.
2763 # In particular we don't look at `^make:' because GNU make might
2764 # be invoked under some other name (usually "gmake"), in which
2765 # case it prints its new name instead of `make'.
2766 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2771 # Now try BSD make style include.
2772 if test "$am__include" = "#"; then
2773 echo '.include "confinc"' > confmf
2774 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2775 am__include=.include
2782 echo "$as_me:$LINENO: result: $_am_result" >&5
2783 echo "${ECHO_T}$_am_result" >&6
2784 rm -f confinc confmf
2786 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2787 if test "${enable_dependency_tracking+set}" = set; then
2788 enableval="$enable_dependency_tracking"
2791 if test "x$enable_dependency_tracking" != xno; then
2792 am_depcomp="$ac_aux_dir/depcomp"
2797 if test "x$enable_dependency_tracking" != xno; then
2807 # test to see if srcdir already configured
2808 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2809 test -f $srcdir/config.status; then
2810 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2811 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2812 { (exit 1); exit 1; }; }
2815 # test whether we have cygpath
2816 if test -z "$CYGPATH_W"; then
2817 if (cygpath --version) >/dev/null 2>/dev/null; then
2818 CYGPATH_W='cygpath -w'
2825 # Define the identity of the package.
2827 VERSION=${BFD_VERSION}
2830 cat >>confdefs.h <<_ACEOF
2831 #define PACKAGE "$PACKAGE"
2835 cat >>confdefs.h <<_ACEOF
2836 #define VERSION "$VERSION"
2839 # Some tools Automake needs.
2841 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2844 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2847 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2850 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2853 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2855 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2857 # Installed binaries are usually stripped using `strip' when the user
2858 # run `make install-strip'. However `strip' might not be the right
2859 # tool to use in cross-compilation environments, therefore Automake
2860 # will honor the `STRIP' environment variable to overrule this program.
2861 if test "$cross_compiling" != no; then
2862 if test -n "$ac_tool_prefix"; then
2863 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2864 set dummy ${ac_tool_prefix}strip; ac_word=$2
2865 echo "$as_me:$LINENO: checking for $ac_word" >&5
2866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2867 if test "${ac_cv_prog_STRIP+set}" = set; then
2868 echo $ECHO_N "(cached) $ECHO_C" >&6
2870 if test -n "$STRIP"; then
2871 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 test -z "$as_dir" && as_dir=.
2878 for ac_exec_ext in '' $ac_executable_extensions; do
2879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2880 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 STRIP=$ac_cv_prog_STRIP
2890 if test -n "$STRIP"; then
2891 echo "$as_me:$LINENO: result: $STRIP" >&5
2892 echo "${ECHO_T}$STRIP" >&6
2894 echo "$as_me:$LINENO: result: no" >&5
2895 echo "${ECHO_T}no" >&6
2899 if test -z "$ac_cv_prog_STRIP"; then
2901 # Extract the first word of "strip", so it can be a program name with args.
2902 set dummy strip; ac_word=$2
2903 echo "$as_me:$LINENO: checking for $ac_word" >&5
2904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2905 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
2908 if test -n "$ac_ct_STRIP"; then
2909 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915 test -z "$as_dir" && as_dir=.
2916 for ac_exec_ext in '' $ac_executable_extensions; do
2917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2918 ac_cv_prog_ac_ct_STRIP="strip"
2919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2925 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2928 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2929 if test -n "$ac_ct_STRIP"; then
2930 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2931 echo "${ECHO_T}$ac_ct_STRIP" >&6
2933 echo "$as_me:$LINENO: result: no" >&5
2934 echo "${ECHO_T}no" >&6
2939 STRIP="$ac_cv_prog_STRIP"
2943 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2945 # We need awk for the "check" target. The system "awk" is bad on
2947 # Always define AMTAR for backward compatibility.
2949 AMTAR=${AMTAR-"${am_missing_run}tar"}
2951 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2956 depcc="$CC" am_compiler_list=
2958 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2959 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2960 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2961 echo $ECHO_N "(cached) $ECHO_C" >&6
2963 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2964 # We make a subdir and do the tests there. Otherwise we can end up
2965 # making bogus files that we don't know about and never remove. For
2966 # instance it was reported that on HP-UX the gcc test will end up
2967 # making a dummy file named `D' -- because `-MD' means `put the output
2970 # Copy depcomp to subdir because otherwise we won't find it if we're
2971 # using a relative directory.
2972 cp "$am_depcomp" conftest.dir
2974 # We will build objects and dependencies in a subdirectory because
2975 # it helps to detect inapplicable dependency modes. For instance
2976 # both Tru64's cc and ICC support -MD to output dependencies as a
2977 # side effect of compilation, but ICC will put the dependencies in
2978 # the current directory while Tru64 will put them in the object
2982 am_cv_CC_dependencies_compiler_type=none
2983 if test "$am_compiler_list" = ""; then
2984 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2986 for depmode in $am_compiler_list; do
2987 # Setup a source with many dependencies, because some compilers
2988 # like to wrap large dependency lists on column 80 (with \), and
2989 # we should not choose a depcomp mode which is confused by this.
2991 # We need to recreate these files for each test, as the compiler may
2992 # overwrite some of them when testing with obscure command lines.
2993 # This happens at least with the AIX C compiler.
2995 for i in 1 2 3 4 5 6; do
2996 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2997 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2998 # Solaris 8's {/usr,}/bin/sh.
2999 touch sub/conftst$i.h
3001 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3005 # after this tag, mechanisms are not by side-effect, so they'll
3006 # only be used when explicitly requested
3007 if test "x$enable_dependency_tracking" = xyes; then
3015 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3016 # mode. It turns out that the SunPro C++ compiler does not properly
3017 # handle `-M -o', and we need to detect this.
3018 if depmode=$depmode \
3019 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3020 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3021 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3022 >/dev/null 2>conftest.err &&
3023 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3024 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3025 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3026 # icc doesn't choke on unknown options, it will just issue warnings
3027 # or remarks (even with -Werror). So we grep stderr for any message
3028 # that says an option was ignored or not supported.
3029 # When given -MP, icc 7.0 and 7.1 complain thusly:
3030 # icc: Command line warning: ignoring option '-M'; no argument required
3031 # The diagnosis changed in icc 8.0:
3032 # icc: Command line remark: option '-MP' not supported
3033 if (grep 'ignoring option' conftest.err ||
3034 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3035 am_cv_CC_dependencies_compiler_type=$depmode
3044 am_cv_CC_dependencies_compiler_type=none
3048 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3049 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3050 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3055 test "x$enable_dependency_tracking" != xno \
3056 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3058 am__fastdepCC_FALSE='#'
3060 am__fastdepCC_TRUE='#'
3061 am__fastdepCC_FALSE=
3067 # Check whether --enable-shared or --disable-shared was given.
3068 if test "${enable_shared+set}" = set; then
3069 enableval="$enable_shared"
3070 p=${PACKAGE-default}
3072 yes) enable_shared=yes ;;
3073 no) enable_shared=no ;;
3076 # Look at the argument we got. We use all the common list separators.
3077 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3078 for pkg in $enableval; do
3079 if test "X$pkg" = "X$p"; then
3089 # Check whether --enable-static or --disable-static was given.
3090 if test "${enable_static+set}" = set; then
3091 enableval="$enable_static"
3092 p=${PACKAGE-default}
3094 yes) enable_static=yes ;;
3095 no) enable_static=no ;;
3098 # Look at the argument we got. We use all the common list separators.
3099 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3100 for pkg in $enableval; do
3101 if test "X$pkg" = "X$p"; then
3111 # Check whether --enable-fast-install or --disable-fast-install was given.
3112 if test "${enable_fast_install+set}" = set; then
3113 enableval="$enable_fast_install"
3114 p=${PACKAGE-default}
3116 yes) enable_fast_install=yes ;;
3117 no) enable_fast_install=no ;;
3119 enable_fast_install=no
3120 # Look at the argument we got. We use all the common list separators.
3121 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3122 for pkg in $enableval; do
3123 if test "X$pkg" = "X$p"; then
3124 enable_fast_install=yes
3131 enable_fast_install=yes
3134 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3135 if test "${with_gnu_ld+set}" = set; then
3136 withval="$with_gnu_ld"
3137 test "$withval" = no || with_gnu_ld=yes
3142 if test "$GCC" = yes; then
3143 # Check if gcc -print-prog-name=ld gives a path.
3144 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3145 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3148 # gcc leaves a trailing carriage return which upsets mingw
3149 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3151 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3154 # Accept absolute paths.
3155 [\\/]* | [A-Za-z]:[\\/]*)
3156 re_direlt='/[^/][^/]*/\.\./'
3157 # Canonicalize the path of ld
3158 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3159 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3160 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3162 test -z "$LD" && LD="$ac_prog"
3165 # If it fails, then pretend we aren't using GCC.
3169 # If it is relative, then search for the first ld in PATH.
3173 elif test "$with_gnu_ld" = yes; then
3174 echo "$as_me:$LINENO: checking for GNU ld" >&5
3175 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3177 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3178 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3180 if test "${lt_cv_path_LD+set}" = set; then
3181 echo $ECHO_N "(cached) $ECHO_C" >&6
3183 if test -z "$LD"; then
3184 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3185 for ac_dir in $PATH; do
3186 test -z "$ac_dir" && ac_dir=.
3187 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3188 lt_cv_path_LD="$ac_dir/$ac_prog"
3189 # Check to see if the program is GNU ld. I'd rather use --version,
3190 # but apparently some GNU ld's only accept -v.
3191 # Break only if it was the GNU/non-GNU ld that we prefer.
3192 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3193 test "$with_gnu_ld" != no && break
3195 test "$with_gnu_ld" != yes && break
3201 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3206 if test -n "$LD"; then
3207 echo "$as_me:$LINENO: result: $LD" >&5
3208 echo "${ECHO_T}$LD" >&6
3210 echo "$as_me:$LINENO: result: no" >&5
3211 echo "${ECHO_T}no" >&6
3213 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3214 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3215 { (exit 1); exit 1; }; }
3216 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3217 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3218 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3221 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3222 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3223 lt_cv_prog_gnu_ld=yes
3225 lt_cv_prog_gnu_ld=no
3228 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3229 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3230 with_gnu_ld=$lt_cv_prog_gnu_ld
3233 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3234 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3235 if test "${lt_cv_ld_reload_flag+set}" = set; then
3236 echo $ECHO_N "(cached) $ECHO_C" >&6
3238 lt_cv_ld_reload_flag='-r'
3240 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3241 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3242 reload_flag=$lt_cv_ld_reload_flag
3243 test -n "$reload_flag" && reload_flag=" $reload_flag"
3245 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3246 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3247 if test "${lt_cv_path_NM+set}" = set; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 if test -n "$NM"; then
3251 # Let the user override the test.
3254 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3255 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3256 test -z "$ac_dir" && ac_dir=.
3257 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3258 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3259 # Check to see if the nm accepts a BSD-compat flag.
3260 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3261 # nm: unknown option "B" ignored
3262 # Tru64's nm complains that /dev/null is an invalid object file
3263 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3264 lt_cv_path_NM="$tmp_nm -B"
3266 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3267 lt_cv_path_NM="$tmp_nm -p"
3270 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3271 continue # so that we can try to find one that supports BSD flags
3276 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3281 echo "$as_me:$LINENO: result: $NM" >&5
3282 echo "${ECHO_T}$NM" >&6
3284 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3285 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3287 if test "$LN_S" = "ln -s"; then
3288 echo "$as_me:$LINENO: result: yes" >&5
3289 echo "${ECHO_T}yes" >&6
3291 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3292 echo "${ECHO_T}no, using $LN_S" >&6
3295 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3296 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3297 if test "${lt_cv_deplibs_check_method+set}" = set; then
3298 echo $ECHO_N "(cached) $ECHO_C" >&6
3300 lt_cv_file_magic_cmd='$MAGIC_CMD'
3301 lt_cv_file_magic_test_file=
3302 lt_cv_deplibs_check_method='unknown'
3303 # Need to set the preceding variable on all platforms that support
3304 # interlibrary dependencies.
3305 # 'none' -- dependencies not supported.
3306 # `unknown' -- same as none, but documents that we really don't know.
3307 # 'pass_all' -- all dependencies passed with no checks.
3308 # 'test_compile' -- check by making test program.
3309 # 'file_magic [regex]' -- check by looking for files in library path
3310 # which responds to the $file_magic_cmd with a given egrep regex.
3311 # If you have `file' or equivalent on your system and you're not sure
3312 # whether `pass_all' will *always* work, you probably want this one.
3316 lt_cv_deplibs_check_method=pass_all
3320 lt_cv_deplibs_check_method=pass_all
3324 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3325 lt_cv_file_magic_cmd='/usr/bin/file -L'
3326 lt_cv_file_magic_test_file=/shlib/libc.so
3329 cygwin* | mingw* |pw32*)
3330 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3331 lt_cv_file_magic_cmd='$OBJDUMP -f'
3334 darwin* | rhapsody*)
3335 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3336 lt_cv_file_magic_cmd='/usr/bin/file -L'
3338 rhapsody* | darwin1.012)
3339 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3342 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3347 freebsd* | kfreebsd*-gnu)
3348 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3351 # Not sure whether the presence of OpenBSD here was a mistake.
3352 # Let's accept both of them until this is cleared up.
3353 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3354 lt_cv_file_magic_cmd=/usr/bin/file
3355 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3359 lt_cv_deplibs_check_method=pass_all
3364 lt_cv_deplibs_check_method=pass_all
3370 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3371 lt_cv_file_magic_cmd=/usr/bin/file
3372 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3375 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3376 lt_cv_file_magic_cmd=/usr/bin/file
3377 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3385 # this will be overridden with pass_all, but let us keep it just in case
3386 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3390 *-32|*"-32 ") libmagic=32-bit;;
3391 *-n32|*"-n32 ") libmagic=N32;;
3392 *-64|*"-64 ") libmagic=64-bit;;
3393 *) libmagic=never-match;;
3395 # this will be overridden with pass_all, but let us keep it just in case
3396 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3399 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3400 lt_cv_deplibs_check_method=pass_all
3403 # This must be Linux ELF.
3406 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3407 lt_cv_deplibs_check_method=pass_all ;;
3409 # glibc up to 2.1.1 does not perform some relocations on ARM
3410 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3412 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3415 netbsd* | knetbsd*-gnu)
3416 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3417 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3419 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3424 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3425 lt_cv_file_magic_cmd=/usr/bin/file
3426 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3429 osf3* | osf4* | osf5*)
3430 # this will be overridden with pass_all, but let us keep it just in case
3431 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3432 lt_cv_file_magic_test_file=/shlib/libc.so
3433 lt_cv_deplibs_check_method=pass_all
3437 lt_cv_deplibs_check_method=pass_all
3441 lt_cv_deplibs_check_method=pass_all
3442 lt_cv_file_magic_test_file=/lib/libc.so
3445 sysv5uw[78]* | sysv4*uw2*)
3446 lt_cv_deplibs_check_method=pass_all
3449 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3450 case $host_vendor in
3452 lt_cv_deplibs_check_method=pass_all
3455 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]'
3456 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3463 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3464 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3465 file_magic_cmd=$lt_cv_file_magic_cmd
3466 deplibs_check_method=$lt_cv_deplibs_check_method
3471 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3473 # Only perform the check for file, if the check method requires it
3474 case $deplibs_check_method in
3476 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3477 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3478 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3479 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3480 echo $ECHO_N "(cached) $ECHO_C" >&6
3484 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3487 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3490 ac_save_MAGIC_CMD="$MAGIC_CMD"
3491 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3492 ac_dummy="/usr/bin:$PATH"
3493 for ac_dir in $ac_dummy; do
3494 test -z "$ac_dir" && ac_dir=.
3495 if test -f $ac_dir/${ac_tool_prefix}file; then
3496 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3497 if test -n "$file_magic_test_file"; then
3498 case $deplibs_check_method in
3500 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3501 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3502 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3503 egrep "$file_magic_regex" > /dev/null; then
3508 *** Warning: the command libtool uses to detect shared libraries,
3509 *** $file_magic_cmd, produces output that libtool cannot recognize.
3510 *** The result is that libtool may fail to recognize shared libraries
3511 *** as such. This will affect the creation of libtool libraries that
3512 *** depend on shared libraries, but programs linked with such libtool
3513 *** libraries will work regardless of this problem. Nevertheless, you
3514 *** may want to report the problem to your system manager and/or to
3515 *** bug-libtool@gnu.org
3525 MAGIC_CMD="$ac_save_MAGIC_CMD"
3530 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3531 if test -n "$MAGIC_CMD"; then
3532 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3533 echo "${ECHO_T}$MAGIC_CMD" >&6
3535 echo "$as_me:$LINENO: result: no" >&5
3536 echo "${ECHO_T}no" >&6
3539 if test -z "$lt_cv_path_MAGIC_CMD"; then
3540 if test -n "$ac_tool_prefix"; then
3541 echo "$as_me:$LINENO: checking for file" >&5
3542 echo $ECHO_N "checking for file... $ECHO_C" >&6
3543 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3548 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3551 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3554 ac_save_MAGIC_CMD="$MAGIC_CMD"
3555 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3556 ac_dummy="/usr/bin:$PATH"
3557 for ac_dir in $ac_dummy; do
3558 test -z "$ac_dir" && ac_dir=.
3559 if test -f $ac_dir/file; then
3560 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3561 if test -n "$file_magic_test_file"; then
3562 case $deplibs_check_method in
3564 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3565 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3566 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3567 egrep "$file_magic_regex" > /dev/null; then
3572 *** Warning: the command libtool uses to detect shared libraries,
3573 *** $file_magic_cmd, produces output that libtool cannot recognize.
3574 *** The result is that libtool may fail to recognize shared libraries
3575 *** as such. This will affect the creation of libtool libraries that
3576 *** depend on shared libraries, but programs linked with such libtool
3577 *** libraries will work regardless of this problem. Nevertheless, you
3578 *** may want to report the problem to your system manager and/or to
3579 *** bug-libtool@gnu.org
3589 MAGIC_CMD="$ac_save_MAGIC_CMD"
3594 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3595 if test -n "$MAGIC_CMD"; then
3596 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3597 echo "${ECHO_T}$MAGIC_CMD" >&6
3599 echo "$as_me:$LINENO: result: no" >&5
3600 echo "${ECHO_T}no" >&6
3612 if test -n "$ac_tool_prefix"; then
3613 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3614 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3615 echo "$as_me:$LINENO: checking for $ac_word" >&5
3616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3617 if test "${ac_cv_prog_RANLIB+set}" = set; then
3618 echo $ECHO_N "(cached) $ECHO_C" >&6
3620 if test -n "$RANLIB"; then
3621 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627 test -z "$as_dir" && as_dir=.
3628 for ac_exec_ext in '' $ac_executable_extensions; do
3629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3630 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3639 RANLIB=$ac_cv_prog_RANLIB
3640 if test -n "$RANLIB"; then
3641 echo "$as_me:$LINENO: result: $RANLIB" >&5
3642 echo "${ECHO_T}$RANLIB" >&6
3644 echo "$as_me:$LINENO: result: no" >&5
3645 echo "${ECHO_T}no" >&6
3649 if test -z "$ac_cv_prog_RANLIB"; then
3650 ac_ct_RANLIB=$RANLIB
3651 # Extract the first word of "ranlib", so it can be a program name with args.
3652 set dummy ranlib; ac_word=$2
3653 echo "$as_me:$LINENO: checking for $ac_word" >&5
3654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3655 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3658 if test -n "$ac_ct_RANLIB"; then
3659 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665 test -z "$as_dir" && as_dir=.
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3668 ac_cv_prog_ac_ct_RANLIB="ranlib"
3669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3675 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3678 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3679 if test -n "$ac_ct_RANLIB"; then
3680 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3681 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3683 echo "$as_me:$LINENO: result: no" >&5
3684 echo "${ECHO_T}no" >&6
3687 RANLIB=$ac_ct_RANLIB
3689 RANLIB="$ac_cv_prog_RANLIB"
3692 if test -n "$ac_tool_prefix"; then
3693 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3694 set dummy ${ac_tool_prefix}strip; ac_word=$2
3695 echo "$as_me:$LINENO: checking for $ac_word" >&5
3696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3697 if test "${ac_cv_prog_STRIP+set}" = set; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6
3700 if test -n "$STRIP"; then
3701 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707 test -z "$as_dir" && as_dir=.
3708 for ac_exec_ext in '' $ac_executable_extensions; do
3709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3710 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3719 STRIP=$ac_cv_prog_STRIP
3720 if test -n "$STRIP"; then
3721 echo "$as_me:$LINENO: result: $STRIP" >&5
3722 echo "${ECHO_T}$STRIP" >&6
3724 echo "$as_me:$LINENO: result: no" >&5
3725 echo "${ECHO_T}no" >&6
3729 if test -z "$ac_cv_prog_STRIP"; then
3731 # Extract the first word of "strip", so it can be a program name with args.
3732 set dummy strip; ac_word=$2
3733 echo "$as_me:$LINENO: checking for $ac_word" >&5
3734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3735 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3738 if test -n "$ac_ct_STRIP"; then
3739 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 test -z "$as_dir" && as_dir=.
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3748 ac_cv_prog_ac_ct_STRIP="strip"
3749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3755 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3758 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3759 if test -n "$ac_ct_STRIP"; then
3760 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3761 echo "${ECHO_T}$ac_ct_STRIP" >&6
3763 echo "$as_me:$LINENO: result: no" >&5
3764 echo "${ECHO_T}no" >&6
3769 STRIP="$ac_cv_prog_STRIP"
3773 # Check for any special flags to pass to ltconfig.
3774 libtool_flags="--cache-file=$cache_file"
3775 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3776 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3777 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3778 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3779 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3782 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3783 if test "${enable_libtool_lock+set}" = set; then
3784 enableval="$enable_libtool_lock"
3787 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3788 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3791 # Check whether --with-pic or --without-pic was given.
3792 if test "${with_pic+set}" = set; then
3798 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3799 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3801 # Some flags need to be propagated to the compiler or linker for good
3805 # Find out which ABI we are using.
3806 echo '#line 3806 "configure"' > conftest.$ac_ext
3807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3808 (eval $ac_compile) 2>&5
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); }; then
3812 if test "$lt_cv_prog_gnu_ld" = yes; then
3813 case `/usr/bin/file conftest.$ac_objext` in
3815 LD="${LD-ld} -melf32bsmip"
3818 LD="${LD-ld} -melf32bmipn32"
3821 LD="${LD-ld} -melf64bmip"
3825 case `/usr/bin/file conftest.$ac_objext` in
3842 # Find out which ABI we are using.
3843 echo 'int i;' > conftest.$ac_ext
3844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3845 (eval $ac_compile) 2>&5
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); }; then
3849 case "`/usr/bin/file conftest.o`" in
3862 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3863 SAVE_CFLAGS="$CFLAGS"
3864 CFLAGS="$CFLAGS -belf"
3865 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3866 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3867 if test "${lt_cv_cc_needs_belf+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3873 ac_cpp='$CPP $CPPFLAGS'
3874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3878 cat >conftest.$ac_ext <<_ACEOF
3881 cat confdefs.h >>conftest.$ac_ext
3882 cat >>conftest.$ac_ext <<_ACEOF
3883 /* end confdefs.h. */
3893 rm -f conftest.$ac_objext conftest$ac_exeext
3894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3895 (eval $ac_link) 2>conftest.er1
3897 grep -v '^ *+' conftest.er1 >conftest.err
3899 cat conftest.err >&5
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); } &&
3902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); }; } &&
3908 { ac_try='test -s conftest$ac_exeext'
3909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); }; }; then
3914 lt_cv_cc_needs_belf=yes
3916 echo "$as_me: failed program was:" >&5
3917 sed 's/^/| /' conftest.$ac_ext >&5
3919 lt_cv_cc_needs_belf=no
3921 rm -f conftest.err conftest.$ac_objext \
3922 conftest$ac_exeext conftest.$ac_ext
3924 ac_cpp='$CPP $CPPFLAGS'
3925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3930 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3931 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3932 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3933 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3934 CFLAGS="$SAVE_CFLAGS"
3942 # Save cache, so that ltconfig can load it
3943 cat >confcache <<\_ACEOF
3944 # This file is a shell script that caches the results of configure
3945 # tests run on this system so they can be shared between configure
3946 # scripts and configure runs, see configure's option --config-cache.
3947 # It is not useful on other systems. If it contains results you don't
3948 # want to keep, you may remove or edit it.
3950 # config.status only pays attention to the cache file if you give it
3951 # the --recheck option to rerun configure.
3953 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3954 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3959 # The following way of writing the cache mishandles newlines in values,
3960 # but we know of no workaround that is simple, portable, and efficient.
3961 # So, don't put newlines in cache variables' values.
3962 # Ultrix sh set writes to stderr and can't be redirected directly,
3963 # and sets the high bit in the cache file unless we assign to the vars.
3966 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3968 # `set' does not quote correctly, so add quotes (double-quote
3969 # substitution turns \\\\ into \\, and sed turns \\ into \).
3972 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3975 # `set' quotes correctly as required by POSIX, so do not add quotes.
3977 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3984 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3986 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3988 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3989 if test -w $cache_file; then
3990 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3991 cat confcache >$cache_file
3993 echo "not updating unwritable cache $cache_file"
3998 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3999 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4000 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4001 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4002 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4003 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4004 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4005 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4006 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4007 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4008 echo "$as_me: error: libtool configure failed" >&2;}
4009 { (exit 1); exit 1; }; }
4011 # Reload cache, that may have been modified by ltconfig
4012 if test -r "$cache_file"; then
4013 # Some versions of bash will fail to source /dev/null (special
4014 # files actually), so we avoid doing that.
4015 if test -f "$cache_file"; then
4016 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4017 echo "$as_me: loading cache $cache_file" >&6;}
4019 [\\/]* | ?:[\\/]* ) . $cache_file;;
4020 *) . ./$cache_file;;
4024 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4025 echo "$as_me: creating cache $cache_file" >&6;}
4030 # This can be used to rebuild libtool when needed
4031 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4033 # Always use our own libtool.
4034 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4036 # Redirect the config.log output again, so that the ltconfig log is not
4037 # clobbered by the next message.
4038 exec 5>>./config.log
4046 # Check whether --enable-targets or --disable-targets was given.
4047 if test "${enable_targets+set}" = set; then
4048 enableval="$enable_targets"
4049 case "${enableval}" in
4050 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4051 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4052 { (exit 1); exit 1; }; }
4054 no) enable_targets= ;;
4055 *) enable_targets=$enableval ;;
4057 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
4058 if test "${enable_commonbfdlib+set}" = set; then
4059 enableval="$enable_commonbfdlib"
4060 case "${enableval}" in
4061 yes) commonbfdlib=true ;;
4062 no) commonbfdlib=false ;;
4063 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4064 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4065 { (exit 1); exit 1; }; } ;;
4068 WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4070 # Check whether --enable-werror or --disable-werror was given.
4071 if test "${enable_werror+set}" = set; then
4072 enableval="$enable_werror"
4073 case "${enableval}" in
4074 yes | y) ERROR_ON_WARNING="yes" ;;
4075 no | n) ERROR_ON_WARNING="no" ;;
4076 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4077 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4078 { (exit 1); exit 1; }; } ;;
4082 # Enable -Werror by default when using gcc
4083 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4084 ERROR_ON_WARNING=yes
4088 if test "${ERROR_ON_WARNING}" = yes ; then
4089 WARN_CFLAGS="$WARN_CFLAGS -Werror"
4090 NO_WERROR="-Wno-error"
4093 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4094 if test "${enable_build_warnings+set}" = set; then
4095 enableval="$enable_build_warnings"
4096 case "${enableval}" in
4098 no) WARN_CFLAGS="-w";;
4099 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4100 WARN_CFLAGS="${WARN_CFLAGS} ${t}";;
4101 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4102 WARN_CFLAGS="${t} ${WARN_CFLAGS}";;
4103 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4107 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4108 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4114 ac_config_headers="$ac_config_headers config.h:config.in"
4117 if test -z "$target" ; then
4118 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4119 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4120 { (exit 1); exit 1; }; }
4122 if test -z "$host" ; then
4123 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
4124 echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
4125 { (exit 1); exit 1; }; }
4129 ac_cpp='$CPP $CPPFLAGS'
4130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4133 if test -n "$ac_tool_prefix"; then
4134 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4135 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4136 echo "$as_me:$LINENO: checking for $ac_word" >&5
4137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4138 if test "${ac_cv_prog_CC+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4141 if test -n "$CC"; then
4142 ac_cv_prog_CC="$CC" # Let the user override the test.
4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148 test -z "$as_dir" && as_dir=.
4149 for ac_exec_ext in '' $ac_executable_extensions; do
4150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4151 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4161 if test -n "$CC"; then
4162 echo "$as_me:$LINENO: result: $CC" >&5
4163 echo "${ECHO_T}$CC" >&6
4165 echo "$as_me:$LINENO: result: no" >&5
4166 echo "${ECHO_T}no" >&6
4170 if test -z "$ac_cv_prog_CC"; then
4172 # Extract the first word of "gcc", so it can be a program name with args.
4173 set dummy gcc; ac_word=$2
4174 echo "$as_me:$LINENO: checking for $ac_word" >&5
4175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4176 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4177 echo $ECHO_N "(cached) $ECHO_C" >&6
4179 if test -n "$ac_ct_CC"; then
4180 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186 test -z "$as_dir" && as_dir=.
4187 for ac_exec_ext in '' $ac_executable_extensions; do
4188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4189 ac_cv_prog_ac_ct_CC="gcc"
4190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4198 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4199 if test -n "$ac_ct_CC"; then
4200 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4201 echo "${ECHO_T}$ac_ct_CC" >&6
4203 echo "$as_me:$LINENO: result: no" >&5
4204 echo "${ECHO_T}no" >&6
4212 if test -z "$CC"; then
4213 if test -n "$ac_tool_prefix"; then
4214 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4215 set dummy ${ac_tool_prefix}cc; ac_word=$2
4216 echo "$as_me:$LINENO: checking for $ac_word" >&5
4217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4218 if test "${ac_cv_prog_CC+set}" = set; then
4219 echo $ECHO_N "(cached) $ECHO_C" >&6
4221 if test -n "$CC"; then
4222 ac_cv_prog_CC="$CC" # Let the user override the test.
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228 test -z "$as_dir" && as_dir=.
4229 for ac_exec_ext in '' $ac_executable_extensions; do
4230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4231 ac_cv_prog_CC="${ac_tool_prefix}cc"
4232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4241 if test -n "$CC"; then
4242 echo "$as_me:$LINENO: result: $CC" >&5
4243 echo "${ECHO_T}$CC" >&6
4245 echo "$as_me:$LINENO: result: no" >&5
4246 echo "${ECHO_T}no" >&6
4250 if test -z "$ac_cv_prog_CC"; then
4252 # Extract the first word of "cc", so it can be a program name with args.
4253 set dummy cc; ac_word=$2
4254 echo "$as_me:$LINENO: checking for $ac_word" >&5
4255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4256 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4257 echo $ECHO_N "(cached) $ECHO_C" >&6
4259 if test -n "$ac_ct_CC"; then
4260 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266 test -z "$as_dir" && as_dir=.
4267 for ac_exec_ext in '' $ac_executable_extensions; do
4268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4269 ac_cv_prog_ac_ct_CC="cc"
4270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4278 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4279 if test -n "$ac_ct_CC"; then
4280 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4281 echo "${ECHO_T}$ac_ct_CC" >&6
4283 echo "$as_me:$LINENO: result: no" >&5
4284 echo "${ECHO_T}no" >&6
4293 if test -z "$CC"; then
4294 # Extract the first word of "cc", so it can be a program name with args.
4295 set dummy cc; ac_word=$2
4296 echo "$as_me:$LINENO: checking for $ac_word" >&5
4297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4298 if test "${ac_cv_prog_CC+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4301 if test -n "$CC"; then
4302 ac_cv_prog_CC="$CC" # Let the user override the test.
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309 test -z "$as_dir" && as_dir=.
4310 for ac_exec_ext in '' $ac_executable_extensions; do
4311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4312 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4313 ac_prog_rejected=yes
4317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4323 if test $ac_prog_rejected = yes; then
4324 # We found a bogon in the path, so make sure we never use it.
4325 set dummy $ac_cv_prog_CC
4327 if test $# != 0; then
4328 # We chose a different compiler from the bogus one.
4329 # However, it has the same basename, so the bogon will be chosen
4330 # first if we set CC to just the basename; use the full file name.
4332 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4338 if test -n "$CC"; then
4339 echo "$as_me:$LINENO: result: $CC" >&5
4340 echo "${ECHO_T}$CC" >&6
4342 echo "$as_me:$LINENO: result: no" >&5
4343 echo "${ECHO_T}no" >&6
4347 if test -z "$CC"; then
4348 if test -n "$ac_tool_prefix"; then
4351 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4352 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4353 echo "$as_me:$LINENO: checking for $ac_word" >&5
4354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4355 if test "${ac_cv_prog_CC+set}" = set; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4358 if test -n "$CC"; then
4359 ac_cv_prog_CC="$CC" # Let the user override the test.
4361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365 test -z "$as_dir" && as_dir=.
4366 for ac_exec_ext in '' $ac_executable_extensions; do
4367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4368 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4378 if test -n "$CC"; then
4379 echo "$as_me:$LINENO: result: $CC" >&5
4380 echo "${ECHO_T}$CC" >&6
4382 echo "$as_me:$LINENO: result: no" >&5
4383 echo "${ECHO_T}no" >&6
4386 test -n "$CC" && break
4389 if test -z "$CC"; then
4393 # Extract the first word of "$ac_prog", so it can be a program name with args.
4394 set dummy $ac_prog; ac_word=$2
4395 echo "$as_me:$LINENO: checking for $ac_word" >&5
4396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4397 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4398 echo $ECHO_N "(cached) $ECHO_C" >&6
4400 if test -n "$ac_ct_CC"; then
4401 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407 test -z "$as_dir" && as_dir=.
4408 for ac_exec_ext in '' $ac_executable_extensions; do
4409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4410 ac_cv_prog_ac_ct_CC="$ac_prog"
4411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4419 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4420 if test -n "$ac_ct_CC"; then
4421 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4422 echo "${ECHO_T}$ac_ct_CC" >&6
4424 echo "$as_me:$LINENO: result: no" >&5
4425 echo "${ECHO_T}no" >&6
4428 test -n "$ac_ct_CC" && break
4437 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4438 See \`config.log' for more details." >&5
4439 echo "$as_me: error: no acceptable C compiler found in \$PATH
4440 See \`config.log' for more details." >&2;}
4441 { (exit 1); exit 1; }; }
4443 # Provide some information about the compiler.
4444 echo "$as_me:$LINENO:" \
4445 "checking for C compiler version" >&5
4446 ac_compiler=`set X $ac_compile; echo $2`
4447 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4448 (eval $ac_compiler --version </dev/null >&5) 2>&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); }
4452 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4453 (eval $ac_compiler -v </dev/null >&5) 2>&5
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); }
4457 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4458 (eval $ac_compiler -V </dev/null >&5) 2>&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); }
4463 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4464 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4465 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4468 cat >conftest.$ac_ext <<_ACEOF
4471 cat confdefs.h >>conftest.$ac_ext
4472 cat >>conftest.$ac_ext <<_ACEOF
4473 /* end confdefs.h. */
4486 rm -f conftest.$ac_objext
4487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4488 (eval $ac_compile) 2>conftest.er1
4490 grep -v '^ *+' conftest.er1 >conftest.err
4492 cat conftest.err >&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); } &&
4495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); }; } &&
4501 { ac_try='test -s conftest.$ac_objext'
4502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506 (exit $ac_status); }; }; then
4509 echo "$as_me: failed program was:" >&5
4510 sed 's/^/| /' conftest.$ac_ext >&5
4514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4515 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4518 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4519 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4520 GCC=`test $ac_compiler_gnu = yes && echo yes`
4521 ac_test_CFLAGS=${CFLAGS+set}
4522 ac_save_CFLAGS=$CFLAGS
4524 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4525 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4526 if test "${ac_cv_prog_cc_g+set}" = set; then
4527 echo $ECHO_N "(cached) $ECHO_C" >&6
4529 cat >conftest.$ac_ext <<_ACEOF
4532 cat confdefs.h >>conftest.$ac_ext
4533 cat >>conftest.$ac_ext <<_ACEOF
4534 /* end confdefs.h. */
4544 rm -f conftest.$ac_objext
4545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4546 (eval $ac_compile) 2>conftest.er1
4548 grep -v '^ *+' conftest.er1 >conftest.err
4550 cat conftest.err >&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); } &&
4553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); }; } &&
4559 { ac_try='test -s conftest.$ac_objext'
4560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); }; }; then
4567 echo "$as_me: failed program was:" >&5
4568 sed 's/^/| /' conftest.$ac_ext >&5
4572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4574 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4575 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4576 if test "$ac_test_CFLAGS" = set; then
4577 CFLAGS=$ac_save_CFLAGS
4578 elif test $ac_cv_prog_cc_g = yes; then
4579 if test "$GCC" = yes; then
4585 if test "$GCC" = yes; then
4591 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4592 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4593 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4596 ac_cv_prog_cc_stdc=no
4598 cat >conftest.$ac_ext <<_ACEOF
4601 cat confdefs.h >>conftest.$ac_ext
4602 cat >>conftest.$ac_ext <<_ACEOF
4603 /* end confdefs.h. */
4606 #include <sys/types.h>
4607 #include <sys/stat.h>
4608 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4609 struct buf { int x; };
4610 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4611 static char *e (p, i)
4617 static char *f (char * (*g) (char **, int), char **p, ...)
4622 s = g (p, va_arg (v,int));
4627 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4628 function prototypes and stuff, but not '\xHH' hex character constants.
4629 These don't provoke an error unfortunately, instead are silently treated
4630 as 'x'. The following induces an error, until -std1 is added to get
4631 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4632 array size at least. It's necessary to write '\x00'==0 to get something
4633 that's true only with -std1. */
4634 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4636 int test (int i, double x);
4637 struct s1 {int (*f) (int a);};
4638 struct s2 {int (*f) (double a);};
4639 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4645 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4650 # Don't try gcc -ansi; that turns off useful extensions and
4651 # breaks some systems' header files.
4652 # AIX -qlanglvl=ansi
4653 # Ultrix and OSF/1 -std1
4654 # HP-UX 10.20 and later -Ae
4655 # HP-UX older versions -Aa -D_HPUX_SOURCE
4656 # SVR4 -Xc -D__EXTENSIONS__
4657 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4659 CC="$ac_save_CC $ac_arg"
4660 rm -f conftest.$ac_objext
4661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4662 (eval $ac_compile) 2>conftest.er1
4664 grep -v '^ *+' conftest.er1 >conftest.err
4666 cat conftest.err >&5
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); } &&
4669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); }; } &&
4675 { ac_try='test -s conftest.$ac_objext'
4676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); }; }; then
4681 ac_cv_prog_cc_stdc=$ac_arg
4684 echo "$as_me: failed program was:" >&5
4685 sed 's/^/| /' conftest.$ac_ext >&5
4688 rm -f conftest.err conftest.$ac_objext
4690 rm -f conftest.$ac_ext conftest.$ac_objext
4695 case "x$ac_cv_prog_cc_stdc" in
4697 echo "$as_me:$LINENO: result: none needed" >&5
4698 echo "${ECHO_T}none needed" >&6 ;;
4700 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4701 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4702 CC="$CC $ac_cv_prog_cc_stdc" ;;
4705 # Some people use a C++ compiler to compile C. Since we use `exit',
4706 # in C++ we need to declare it. In case someone uses the same compiler
4707 # for both compiling C and C++ we need to have the C++ compiler decide
4708 # the declaration of exit, since it's the most demanding environment.
4709 cat >conftest.$ac_ext <<_ACEOF
4714 rm -f conftest.$ac_objext
4715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4716 (eval $ac_compile) 2>conftest.er1
4718 grep -v '^ *+' conftest.er1 >conftest.err
4720 cat conftest.err >&5
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); } &&
4723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); }; } &&
4729 { ac_try='test -s conftest.$ac_objext'
4730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); }; }; then
4735 for ac_declaration in \
4737 'extern "C" void std::exit (int) throw (); using std::exit;' \
4738 'extern "C" void std::exit (int); using std::exit;' \
4739 'extern "C" void exit (int) throw ();' \
4740 'extern "C" void exit (int);' \
4743 cat >conftest.$ac_ext <<_ACEOF
4746 cat confdefs.h >>conftest.$ac_ext
4747 cat >>conftest.$ac_ext <<_ACEOF
4748 /* end confdefs.h. */
4759 rm -f conftest.$ac_objext
4760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4761 (eval $ac_compile) 2>conftest.er1
4763 grep -v '^ *+' conftest.er1 >conftest.err
4765 cat conftest.err >&5
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); } &&
4768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); }; } &&
4774 { ac_try='test -s conftest.$ac_objext'
4775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); }; }; then
4782 echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4788 cat >conftest.$ac_ext <<_ACEOF
4791 cat confdefs.h >>conftest.$ac_ext
4792 cat >>conftest.$ac_ext <<_ACEOF
4793 /* end confdefs.h. */
4803 rm -f conftest.$ac_objext
4804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4805 (eval $ac_compile) 2>conftest.er1
4807 grep -v '^ *+' conftest.er1 >conftest.err
4809 cat conftest.err >&5
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); } &&
4812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }; } &&
4818 { ac_try='test -s conftest.$ac_objext'
4819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); }; }; then
4826 echo "$as_me: failed program was:" >&5
4827 sed 's/^/| /' conftest.$ac_ext >&5
4830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4833 if test -n "$ac_declaration"; then
4834 echo '#ifdef __cplusplus' >>confdefs.h
4835 echo $ac_declaration >>confdefs.h
4836 echo '#endif' >>confdefs.h
4840 echo "$as_me: failed program was:" >&5
4841 sed 's/^/| /' conftest.$ac_ext >&5
4844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4846 ac_cpp='$CPP $CPPFLAGS'
4847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4852 for ac_prog in 'bison -y' byacc
4854 # Extract the first word of "$ac_prog", so it can be a program name with args.
4855 set dummy $ac_prog; ac_word=$2
4856 echo "$as_me:$LINENO: checking for $ac_word" >&5
4857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4858 if test "${ac_cv_prog_YACC+set}" = set; then
4859 echo $ECHO_N "(cached) $ECHO_C" >&6
4861 if test -n "$YACC"; then
4862 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 test -z "$as_dir" && as_dir=.
4869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4871 ac_cv_prog_YACC="$ac_prog"
4872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4880 YACC=$ac_cv_prog_YACC
4881 if test -n "$YACC"; then
4882 echo "$as_me:$LINENO: result: $YACC" >&5
4883 echo "${ECHO_T}$YACC" >&6
4885 echo "$as_me:$LINENO: result: no" >&5
4886 echo "${ECHO_T}no" >&6
4889 test -n "$YACC" && break
4891 test -n "$YACC" || YACC="yacc"
4893 for ac_prog in flex lex
4895 # Extract the first word of "$ac_prog", so it can be a program name with args.
4896 set dummy $ac_prog; ac_word=$2
4897 echo "$as_me:$LINENO: checking for $ac_word" >&5
4898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4899 if test "${ac_cv_prog_LEX+set}" = set; then
4900 echo $ECHO_N "(cached) $ECHO_C" >&6
4902 if test -n "$LEX"; then
4903 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909 test -z "$as_dir" && as_dir=.
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4912 ac_cv_prog_LEX="$ac_prog"
4913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4922 if test -n "$LEX"; then
4923 echo "$as_me:$LINENO: result: $LEX" >&5
4924 echo "${ECHO_T}$LEX" >&6
4926 echo "$as_me:$LINENO: result: no" >&5
4927 echo "${ECHO_T}no" >&6
4930 test -n "$LEX" && break
4932 test -n "$LEX" || LEX=":"
4934 if test -z "$LEXLIB"
4936 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4937 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4938 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4941 ac_check_lib_save_LIBS=$LIBS
4943 cat >conftest.$ac_ext <<_ACEOF
4946 cat confdefs.h >>conftest.$ac_ext
4947 cat >>conftest.$ac_ext <<_ACEOF
4948 /* end confdefs.h. */
4950 /* Override any gcc2 internal prototype to avoid an error. */
4954 /* We use char because int might match the return type of a gcc2
4955 builtin and then its argument prototype would still apply. */
4965 rm -f conftest.$ac_objext conftest$ac_exeext
4966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4967 (eval $ac_link) 2>conftest.er1
4969 grep -v '^ *+' conftest.er1 >conftest.err
4971 cat conftest.err >&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); } &&
4974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); }; } &&
4980 { ac_try='test -s conftest$ac_exeext'
4981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); }; }; then
4986 ac_cv_lib_fl_yywrap=yes
4988 echo "$as_me: failed program was:" >&5
4989 sed 's/^/| /' conftest.$ac_ext >&5
4991 ac_cv_lib_fl_yywrap=no
4993 rm -f conftest.err conftest.$ac_objext \
4994 conftest$ac_exeext conftest.$ac_ext
4995 LIBS=$ac_check_lib_save_LIBS
4997 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4998 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4999 if test $ac_cv_lib_fl_yywrap = yes; then
5002 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5003 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
5004 if test "${ac_cv_lib_l_yywrap+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5007 ac_check_lib_save_LIBS=$LIBS
5009 cat >conftest.$ac_ext <<_ACEOF
5012 cat confdefs.h >>conftest.$ac_ext
5013 cat >>conftest.$ac_ext <<_ACEOF
5014 /* end confdefs.h. */
5016 /* Override any gcc2 internal prototype to avoid an error. */
5020 /* We use char because int might match the return type of a gcc2
5021 builtin and then its argument prototype would still apply. */
5031 rm -f conftest.$ac_objext conftest$ac_exeext
5032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5033 (eval $ac_link) 2>conftest.er1
5035 grep -v '^ *+' conftest.er1 >conftest.err
5037 cat conftest.err >&5
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); } &&
5040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); }; } &&
5046 { ac_try='test -s conftest$ac_exeext'
5047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); }; }; then
5052 ac_cv_lib_l_yywrap=yes
5054 echo "$as_me: failed program was:" >&5
5055 sed 's/^/| /' conftest.$ac_ext >&5
5057 ac_cv_lib_l_yywrap=no
5059 rm -f conftest.err conftest.$ac_objext \
5060 conftest$ac_exeext conftest.$ac_ext
5061 LIBS=$ac_check_lib_save_LIBS
5063 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5064 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
5065 if test $ac_cv_lib_l_yywrap = yes; then
5073 if test "x$LEX" != "x:"; then
5074 echo "$as_me:$LINENO: checking lex output file root" >&5
5075 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
5076 if test "${ac_cv_prog_lex_root+set}" = set; then
5077 echo $ECHO_N "(cached) $ECHO_C" >&6
5079 # The minimal lex program is just a single line: %%. But some broken lexes
5080 # (Solaris, I think it was) want two %% lines, so accommodate them.
5081 cat >conftest.l <<_ACEOF
5085 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
5086 (eval $LEX conftest.l) 2>&5
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); }
5090 if test -f lex.yy.c; then
5091 ac_cv_prog_lex_root=lex.yy
5092 elif test -f lexyy.c; then
5093 ac_cv_prog_lex_root=lexyy
5095 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5096 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5097 { (exit 1); exit 1; }; }
5100 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5101 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
5103 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5105 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5106 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
5107 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5108 echo $ECHO_N "(cached) $ECHO_C" >&6
5110 # POSIX says lex can declare yytext either as a pointer or an array; the
5111 # default is implementation-dependent. Figure out which it is, since
5112 # not all implementations provide the %pointer and %array declarations.
5113 ac_cv_prog_lex_yytext_pointer=no
5114 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5116 LIBS="$LIBS $LEXLIB"
5117 cat >conftest.$ac_ext <<_ACEOF
5118 `cat $LEX_OUTPUT_ROOT.c`
5120 rm -f conftest.$ac_objext conftest$ac_exeext
5121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5122 (eval $ac_link) 2>conftest.er1
5124 grep -v '^ *+' conftest.er1 >conftest.err
5126 cat conftest.err >&5
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); } &&
5129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); }; } &&
5135 { ac_try='test -s conftest$ac_exeext'
5136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); }; }; then
5141 ac_cv_prog_lex_yytext_pointer=yes
5143 echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.$ac_ext >&5
5147 rm -f conftest.err conftest.$ac_objext \
5148 conftest$ac_exeext conftest.$ac_ext
5150 rm -f "${LEX_OUTPUT_ROOT}.c"
5153 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5154 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
5155 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5157 cat >>confdefs.h <<\_ACEOF
5158 #define YYTEXT_POINTER 1
5164 if test "$LEX" = :; then
5165 LEX=${am_missing_run}flex
5168 ALL_LINGUAS="fr tr ja es sv da zh_CN ru ro rw zh_TW"
5169 if test -n "$ac_tool_prefix"; then
5170 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5171 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5172 echo "$as_me:$LINENO: checking for $ac_word" >&5
5173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5174 if test "${ac_cv_prog_RANLIB+set}" = set; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
5177 if test -n "$RANLIB"; then
5178 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184 test -z "$as_dir" && as_dir=.
5185 for ac_exec_ext in '' $ac_executable_extensions; do
5186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5187 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5196 RANLIB=$ac_cv_prog_RANLIB
5197 if test -n "$RANLIB"; then
5198 echo "$as_me:$LINENO: result: $RANLIB" >&5
5199 echo "${ECHO_T}$RANLIB" >&6
5201 echo "$as_me:$LINENO: result: no" >&5
5202 echo "${ECHO_T}no" >&6
5206 if test -z "$ac_cv_prog_RANLIB"; then
5207 ac_ct_RANLIB=$RANLIB
5208 # Extract the first word of "ranlib", so it can be a program name with args.
5209 set dummy ranlib; ac_word=$2
5210 echo "$as_me:$LINENO: checking for $ac_word" >&5
5211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5212 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5213 echo $ECHO_N "(cached) $ECHO_C" >&6
5215 if test -n "$ac_ct_RANLIB"; then
5216 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 test -z "$as_dir" && as_dir=.
5223 for ac_exec_ext in '' $ac_executable_extensions; do
5224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5225 ac_cv_prog_ac_ct_RANLIB="ranlib"
5226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5232 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5235 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5236 if test -n "$ac_ct_RANLIB"; then
5237 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5238 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5240 echo "$as_me:$LINENO: result: no" >&5
5241 echo "${ECHO_T}no" >&6
5244 RANLIB=$ac_ct_RANLIB
5246 RANLIB="$ac_cv_prog_RANLIB"
5250 ac_cpp='$CPP $CPPFLAGS'
5251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5254 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5255 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5256 # On Suns, sometimes $CPP names a directory.
5257 if test -n "$CPP" && test -d "$CPP"; then
5260 if test -z "$CPP"; then
5261 if test "${ac_cv_prog_CPP+set}" = set; then
5262 echo $ECHO_N "(cached) $ECHO_C" >&6
5264 # Double quotes because CPP needs to be expanded
5265 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5268 for ac_c_preproc_warn_flag in '' yes
5270 # Use a header file that comes with gcc, so configuring glibc
5271 # with a fresh cross-compiler works.
5272 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5273 # <limits.h> exists even on freestanding compilers.
5274 # On the NeXT, cc -E runs the code through the compiler's parser,
5275 # not just through cpp. "Syntax error" is here to catch this case.
5276 cat >conftest.$ac_ext <<_ACEOF
5279 cat confdefs.h >>conftest.$ac_ext
5280 cat >>conftest.$ac_ext <<_ACEOF
5281 /* end confdefs.h. */
5283 # include <limits.h>
5285 # include <assert.h>
5289 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5292 grep -v '^ *+' conftest.er1 >conftest.err
5294 cat conftest.err >&5
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); } >/dev/null; then
5297 if test -s conftest.err; then
5298 ac_cpp_err=$ac_c_preproc_warn_flag
5299 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5306 if test -z "$ac_cpp_err"; then
5309 echo "$as_me: failed program was:" >&5
5310 sed 's/^/| /' conftest.$ac_ext >&5
5312 # Broken: fails on valid input.
5315 rm -f conftest.err conftest.$ac_ext
5317 # OK, works on sane cases. Now check whether non-existent headers
5318 # can be detected and how.
5319 cat >conftest.$ac_ext <<_ACEOF
5322 cat confdefs.h >>conftest.$ac_ext
5323 cat >>conftest.$ac_ext <<_ACEOF
5324 /* end confdefs.h. */
5325 #include <ac_nonexistent.h>
5327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5330 grep -v '^ *+' conftest.er1 >conftest.err
5332 cat conftest.err >&5
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); } >/dev/null; then
5335 if test -s conftest.err; then
5336 ac_cpp_err=$ac_c_preproc_warn_flag
5337 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5344 if test -z "$ac_cpp_err"; then
5345 # Broken: success on invalid input.
5348 echo "$as_me: failed program was:" >&5
5349 sed 's/^/| /' conftest.$ac_ext >&5
5351 # Passes both tests.
5355 rm -f conftest.err conftest.$ac_ext
5358 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5359 rm -f conftest.err conftest.$ac_ext
5360 if $ac_preproc_ok; then
5372 echo "$as_me:$LINENO: result: $CPP" >&5
5373 echo "${ECHO_T}$CPP" >&6
5375 for ac_c_preproc_warn_flag in '' yes
5377 # Use a header file that comes with gcc, so configuring glibc
5378 # with a fresh cross-compiler works.
5379 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5380 # <limits.h> exists even on freestanding compilers.
5381 # On the NeXT, cc -E runs the code through the compiler's parser,
5382 # not just through cpp. "Syntax error" is here to catch this case.
5383 cat >conftest.$ac_ext <<_ACEOF
5386 cat confdefs.h >>conftest.$ac_ext
5387 cat >>conftest.$ac_ext <<_ACEOF
5388 /* end confdefs.h. */
5390 # include <limits.h>
5392 # include <assert.h>
5396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5399 grep -v '^ *+' conftest.er1 >conftest.err
5401 cat conftest.err >&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); } >/dev/null; then
5404 if test -s conftest.err; then
5405 ac_cpp_err=$ac_c_preproc_warn_flag
5406 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5413 if test -z "$ac_cpp_err"; then
5416 echo "$as_me: failed program was:" >&5
5417 sed 's/^/| /' conftest.$ac_ext >&5
5419 # Broken: fails on valid input.
5422 rm -f conftest.err conftest.$ac_ext
5424 # OK, works on sane cases. Now check whether non-existent headers
5425 # can be detected and how.
5426 cat >conftest.$ac_ext <<_ACEOF
5429 cat confdefs.h >>conftest.$ac_ext
5430 cat >>conftest.$ac_ext <<_ACEOF
5431 /* end confdefs.h. */
5432 #include <ac_nonexistent.h>
5434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5437 grep -v '^ *+' conftest.er1 >conftest.err
5439 cat conftest.err >&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); } >/dev/null; then
5442 if test -s conftest.err; then
5443 ac_cpp_err=$ac_c_preproc_warn_flag
5444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5451 if test -z "$ac_cpp_err"; then
5452 # Broken: success on invalid input.
5455 echo "$as_me: failed program was:" >&5
5456 sed 's/^/| /' conftest.$ac_ext >&5
5458 # Passes both tests.
5462 rm -f conftest.err conftest.$ac_ext
5465 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5466 rm -f conftest.err conftest.$ac_ext
5467 if $ac_preproc_ok; then
5470 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5471 See \`config.log' for more details." >&5
5472 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5473 See \`config.log' for more details." >&2;}
5474 { (exit 1); exit 1; }; }
5478 ac_cpp='$CPP $CPPFLAGS'
5479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5484 echo "$as_me:$LINENO: checking for egrep" >&5
5485 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5486 if test "${ac_cv_prog_egrep+set}" = set; then
5487 echo $ECHO_N "(cached) $ECHO_C" >&6
5489 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5490 then ac_cv_prog_egrep='grep -E'
5491 else ac_cv_prog_egrep='egrep'
5494 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5495 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5496 EGREP=$ac_cv_prog_egrep
5499 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5500 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5501 if test "${ac_cv_header_stdc+set}" = set; then
5502 echo $ECHO_N "(cached) $ECHO_C" >&6
5504 cat >conftest.$ac_ext <<_ACEOF
5507 cat confdefs.h >>conftest.$ac_ext
5508 cat >>conftest.$ac_ext <<_ACEOF
5509 /* end confdefs.h. */
5523 rm -f conftest.$ac_objext
5524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5525 (eval $ac_compile) 2>conftest.er1
5527 grep -v '^ *+' conftest.er1 >conftest.err
5529 cat conftest.err >&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); } &&
5532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }; } &&
5538 { ac_try='test -s conftest.$ac_objext'
5539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); }; }; then
5544 ac_cv_header_stdc=yes
5546 echo "$as_me: failed program was:" >&5
5547 sed 's/^/| /' conftest.$ac_ext >&5
5549 ac_cv_header_stdc=no
5551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5553 if test $ac_cv_header_stdc = yes; then
5554 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5555 cat >conftest.$ac_ext <<_ACEOF
5558 cat confdefs.h >>conftest.$ac_ext
5559 cat >>conftest.$ac_ext <<_ACEOF
5560 /* end confdefs.h. */
5564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5565 $EGREP "memchr" >/dev/null 2>&1; then
5568 ac_cv_header_stdc=no
5574 if test $ac_cv_header_stdc = yes; then
5575 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5576 cat >conftest.$ac_ext <<_ACEOF
5579 cat confdefs.h >>conftest.$ac_ext
5580 cat >>conftest.$ac_ext <<_ACEOF
5581 /* end confdefs.h. */
5585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5586 $EGREP "free" >/dev/null 2>&1; then
5589 ac_cv_header_stdc=no
5595 if test $ac_cv_header_stdc = yes; then
5596 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5597 if test "$cross_compiling" = yes; then
5600 cat >conftest.$ac_ext <<_ACEOF
5603 cat confdefs.h >>conftest.$ac_ext
5604 cat >>conftest.$ac_ext <<_ACEOF
5605 /* end confdefs.h. */
5607 #if ((' ' & 0x0FF) == 0x020)
5608 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5609 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5611 # define ISLOWER(c) \
5612 (('a' <= (c) && (c) <= 'i') \
5613 || ('j' <= (c) && (c) <= 'r') \
5614 || ('s' <= (c) && (c) <= 'z'))
5615 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5618 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5623 for (i = 0; i < 256; i++)
5624 if (XOR (islower (i), ISLOWER (i))
5625 || toupper (i) != TOUPPER (i))
5630 rm -f conftest$ac_exeext
5631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5632 (eval $ac_link) 2>&5
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); }; }; then
5643 echo "$as_me: program exited with status $ac_status" >&5
5644 echo "$as_me: failed program was:" >&5
5645 sed 's/^/| /' conftest.$ac_ext >&5
5648 ac_cv_header_stdc=no
5650 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5654 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5655 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5656 if test $ac_cv_header_stdc = yes; then
5658 cat >>confdefs.h <<\_ACEOF
5659 #define STDC_HEADERS 1
5664 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5665 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5666 if test "${ac_cv_c_const+set}" = set; then
5667 echo $ECHO_N "(cached) $ECHO_C" >&6
5669 cat >conftest.$ac_ext <<_ACEOF
5672 cat confdefs.h >>conftest.$ac_ext
5673 cat >>conftest.$ac_ext <<_ACEOF
5674 /* end confdefs.h. */
5679 /* FIXME: Include the comments suggested by Paul. */
5681 /* Ultrix mips cc rejects this. */
5682 typedef int charset[2];
5684 /* SunOS 4.1.1 cc rejects this. */
5685 char const *const *ccp;
5687 /* NEC SVR4.0.2 mips cc rejects this. */
5688 struct point {int x, y;};
5689 static struct point const zero = {0,0};
5690 /* AIX XL C 1.02.0.0 rejects this.
5691 It does not let you subtract one const X* pointer from another in
5692 an arm of an if-expression whose if-part is not a constant
5694 const char *g = "string";
5695 ccp = &g + (g ? g-g : 0);
5696 /* HPUX 7.0 cc rejects these. */
5699 ccp = (char const *const *) p;
5700 { /* SCO 3.2v4 cc rejects this. */
5702 char const *s = 0 ? (char *) 0 : (char const *) 0;
5706 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5708 const int *foo = &x[0];
5711 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5712 typedef const int *iptr;
5716 { /* AIX XL C 1.02.0.0 rejects this saying
5717 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5718 struct s { int j; const int *ap[3]; };
5719 struct s *b; b->j = 5;
5721 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5730 rm -f conftest.$ac_objext
5731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5732 (eval $ac_compile) 2>conftest.er1
5734 grep -v '^ *+' conftest.er1 >conftest.err
5736 cat conftest.err >&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); } &&
5739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); }; } &&
5745 { ac_try='test -s conftest.$ac_objext'
5746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); }; }; then
5753 echo "$as_me: failed program was:" >&5
5754 sed 's/^/| /' conftest.$ac_ext >&5
5758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5760 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5761 echo "${ECHO_T}$ac_cv_c_const" >&6
5762 if test $ac_cv_c_const = no; then
5764 cat >>confdefs.h <<\_ACEOF
5770 echo "$as_me:$LINENO: checking for inline" >&5
5771 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5772 if test "${ac_cv_c_inline+set}" = set; then
5773 echo $ECHO_N "(cached) $ECHO_C" >&6
5776 for ac_kw in inline __inline__ __inline; do
5777 cat >conftest.$ac_ext <<_ACEOF
5780 cat confdefs.h >>conftest.$ac_ext
5781 cat >>conftest.$ac_ext <<_ACEOF
5782 /* end confdefs.h. */
5785 static $ac_kw foo_t static_foo () {return 0; }
5786 $ac_kw foo_t foo () {return 0; }
5790 rm -f conftest.$ac_objext
5791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5792 (eval $ac_compile) 2>conftest.er1
5794 grep -v '^ *+' conftest.er1 >conftest.err
5796 cat conftest.err >&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); } &&
5799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); }; } &&
5805 { ac_try='test -s conftest.$ac_objext'
5806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); }; }; then
5811 ac_cv_c_inline=$ac_kw; break
5813 echo "$as_me: failed program was:" >&5
5814 sed 's/^/| /' conftest.$ac_ext >&5
5817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5821 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5822 echo "${ECHO_T}$ac_cv_c_inline" >&6
5825 case $ac_cv_c_inline in
5828 case $ac_cv_c_inline in
5830 *) ac_val=$ac_cv_c_inline;;
5832 cat >>confdefs.h <<_ACEOF
5834 #define inline $ac_val
5840 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5850 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5851 inttypes.h stdint.h unistd.h
5853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5854 echo "$as_me:$LINENO: checking for $ac_header" >&5
5855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5857 echo $ECHO_N "(cached) $ECHO_C" >&6
5859 cat >conftest.$ac_ext <<_ACEOF
5862 cat confdefs.h >>conftest.$ac_ext
5863 cat >>conftest.$ac_ext <<_ACEOF
5864 /* end confdefs.h. */
5865 $ac_includes_default
5867 #include <$ac_header>
5869 rm -f conftest.$ac_objext
5870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5871 (eval $ac_compile) 2>conftest.er1
5873 grep -v '^ *+' conftest.er1 >conftest.err
5875 cat conftest.err >&5
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); } &&
5878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); }; } &&
5884 { ac_try='test -s conftest.$ac_objext'
5885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); }; }; then
5890 eval "$as_ac_Header=yes"
5892 echo "$as_me: failed program was:" >&5
5893 sed 's/^/| /' conftest.$ac_ext >&5
5895 eval "$as_ac_Header=no"
5897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5900 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5901 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5902 cat >>confdefs.h <<_ACEOF
5903 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5911 echo "$as_me:$LINENO: checking for off_t" >&5
5912 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5913 if test "${ac_cv_type_off_t+set}" = set; then
5914 echo $ECHO_N "(cached) $ECHO_C" >&6
5916 cat >conftest.$ac_ext <<_ACEOF
5919 cat confdefs.h >>conftest.$ac_ext
5920 cat >>conftest.$ac_ext <<_ACEOF
5921 /* end confdefs.h. */
5922 $ac_includes_default
5934 rm -f conftest.$ac_objext
5935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5936 (eval $ac_compile) 2>conftest.er1
5938 grep -v '^ *+' conftest.er1 >conftest.err
5940 cat conftest.err >&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); } &&
5943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); }; } &&
5949 { ac_try='test -s conftest.$ac_objext'
5950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); }; }; then
5955 ac_cv_type_off_t=yes
5957 echo "$as_me: failed program was:" >&5
5958 sed 's/^/| /' conftest.$ac_ext >&5
5962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5964 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5965 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5966 if test $ac_cv_type_off_t = yes; then
5970 cat >>confdefs.h <<_ACEOF
5976 echo "$as_me:$LINENO: checking for size_t" >&5
5977 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5978 if test "${ac_cv_type_size_t+set}" = set; then
5979 echo $ECHO_N "(cached) $ECHO_C" >&6
5981 cat >conftest.$ac_ext <<_ACEOF
5984 cat confdefs.h >>conftest.$ac_ext
5985 cat >>conftest.$ac_ext <<_ACEOF
5986 /* end confdefs.h. */
5987 $ac_includes_default
5993 if (sizeof (size_t))
5999 rm -f conftest.$ac_objext
6000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6001 (eval $ac_compile) 2>conftest.er1
6003 grep -v '^ *+' conftest.er1 >conftest.err
6005 cat conftest.err >&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); } &&
6008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); }; } &&
6014 { ac_try='test -s conftest.$ac_objext'
6015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); }; }; then
6020 ac_cv_type_size_t=yes
6022 echo "$as_me: failed program was:" >&5
6023 sed 's/^/| /' conftest.$ac_ext >&5
6025 ac_cv_type_size_t=no
6027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6029 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6030 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6031 if test $ac_cv_type_size_t = yes; then
6035 cat >>confdefs.h <<_ACEOF
6036 #define size_t unsigned
6041 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6042 # for constant arguments. Useless!
6043 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6044 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6045 if test "${ac_cv_working_alloca_h+set}" = set; then
6046 echo $ECHO_N "(cached) $ECHO_C" >&6
6048 cat >conftest.$ac_ext <<_ACEOF
6051 cat confdefs.h >>conftest.$ac_ext
6052 cat >>conftest.$ac_ext <<_ACEOF
6053 /* end confdefs.h. */
6058 char *p = (char *) alloca (2 * sizeof (int));
6063 rm -f conftest.$ac_objext conftest$ac_exeext
6064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6065 (eval $ac_link) 2>conftest.er1
6067 grep -v '^ *+' conftest.er1 >conftest.err
6069 cat conftest.err >&5
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); } &&
6072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); }; } &&
6078 { ac_try='test -s conftest$ac_exeext'
6079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); }; }; then
6084 ac_cv_working_alloca_h=yes
6086 echo "$as_me: failed program was:" >&5
6087 sed 's/^/| /' conftest.$ac_ext >&5
6089 ac_cv_working_alloca_h=no
6091 rm -f conftest.err conftest.$ac_objext \
6092 conftest$ac_exeext conftest.$ac_ext
6094 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6095 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6096 if test $ac_cv_working_alloca_h = yes; then
6098 cat >>confdefs.h <<\_ACEOF
6099 #define HAVE_ALLOCA_H 1
6104 echo "$as_me:$LINENO: checking for alloca" >&5
6105 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6106 if test "${ac_cv_func_alloca_works+set}" = set; then
6107 echo $ECHO_N "(cached) $ECHO_C" >&6
6109 cat >conftest.$ac_ext <<_ACEOF
6112 cat confdefs.h >>conftest.$ac_ext
6113 cat >>conftest.$ac_ext <<_ACEOF
6114 /* end confdefs.h. */
6116 # define alloca __builtin_alloca
6119 # include <malloc.h>
6120 # define alloca _alloca
6123 # include <alloca.h>
6128 # ifndef alloca /* predefined by HP cc +Olibcalls */
6139 char *p = (char *) alloca (1);
6144 rm -f conftest.$ac_objext conftest$ac_exeext
6145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6146 (eval $ac_link) 2>conftest.er1
6148 grep -v '^ *+' conftest.er1 >conftest.err
6150 cat conftest.err >&5
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); } &&
6153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); }; } &&
6159 { ac_try='test -s conftest$ac_exeext'
6160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); }; }; then
6165 ac_cv_func_alloca_works=yes
6167 echo "$as_me: failed program was:" >&5
6168 sed 's/^/| /' conftest.$ac_ext >&5
6170 ac_cv_func_alloca_works=no
6172 rm -f conftest.err conftest.$ac_objext \
6173 conftest$ac_exeext conftest.$ac_ext
6175 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6176 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6178 if test $ac_cv_func_alloca_works = yes; then
6180 cat >>confdefs.h <<\_ACEOF
6181 #define HAVE_ALLOCA 1
6185 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6186 # that cause trouble. Some versions do not even contain alloca or
6187 # contain a buggy version. If you still want to use their alloca,
6188 # use ar to extract alloca.o from them instead of compiling alloca.c.
6190 ALLOCA=alloca.$ac_objext
6192 cat >>confdefs.h <<\_ACEOF
6197 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6198 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6199 if test "${ac_cv_os_cray+set}" = set; then
6200 echo $ECHO_N "(cached) $ECHO_C" >&6
6202 cat >conftest.$ac_ext <<_ACEOF
6205 cat confdefs.h >>conftest.$ac_ext
6206 cat >>conftest.$ac_ext <<_ACEOF
6207 /* end confdefs.h. */
6208 #if defined(CRAY) && ! defined(CRAY2)
6215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6216 $EGREP "webecray" >/dev/null 2>&1; then
6224 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6225 echo "${ECHO_T}$ac_cv_os_cray" >&6
6226 if test $ac_cv_os_cray = yes; then
6227 for ac_func in _getb67 GETB67 getb67; do
6228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6229 echo "$as_me:$LINENO: checking for $ac_func" >&5
6230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6231 if eval "test \"\${$as_ac_var+set}\" = set"; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 cat >conftest.$ac_ext <<_ACEOF
6237 cat confdefs.h >>conftest.$ac_ext
6238 cat >>conftest.$ac_ext <<_ACEOF
6239 /* end confdefs.h. */
6240 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6242 #define $ac_func innocuous_$ac_func
6244 /* System header to define __stub macros and hopefully few prototypes,
6245 which can conflict with char $ac_func (); below.
6246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6247 <limits.h> exists even on freestanding compilers. */
6250 # include <limits.h>
6252 # include <assert.h>
6257 /* Override any gcc2 internal prototype to avoid an error. */
6262 /* We use char because int might match the return type of a gcc2
6263 builtin and then its argument prototype would still apply. */
6265 /* The GNU C library defines this for functions which it implements
6266 to always fail with ENOSYS. Some functions are actually named
6267 something starting with __ and the normal name is an alias. */
6268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6271 char (*f) () = $ac_func;
6280 return f != $ac_func;
6285 rm -f conftest.$ac_objext conftest$ac_exeext
6286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6287 (eval $ac_link) 2>conftest.er1
6289 grep -v '^ *+' conftest.er1 >conftest.err
6291 cat conftest.err >&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); } &&
6294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); }; } &&
6300 { ac_try='test -s conftest$ac_exeext'
6301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); }; }; then
6306 eval "$as_ac_var=yes"
6308 echo "$as_me: failed program was:" >&5
6309 sed 's/^/| /' conftest.$ac_ext >&5
6311 eval "$as_ac_var=no"
6313 rm -f conftest.err conftest.$ac_objext \
6314 conftest$ac_exeext conftest.$ac_ext
6316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6317 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6318 if test `eval echo '${'$as_ac_var'}'` = yes; then
6320 cat >>confdefs.h <<_ACEOF
6321 #define CRAY_STACKSEG_END $ac_func
6330 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6331 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6332 if test "${ac_cv_c_stack_direction+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6335 if test "$cross_compiling" = yes; then
6336 ac_cv_c_stack_direction=0
6338 cat >conftest.$ac_ext <<_ACEOF
6341 cat confdefs.h >>conftest.$ac_ext
6342 cat >>conftest.$ac_ext <<_ACEOF
6343 /* end confdefs.h. */
6345 find_stack_direction ()
6347 static char *addr = 0;
6352 return find_stack_direction ();
6355 return (&dummy > addr) ? 1 : -1;
6361 exit (find_stack_direction () < 0);
6364 rm -f conftest$ac_exeext
6365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6366 (eval $ac_link) 2>&5
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); }; }; then
6375 ac_cv_c_stack_direction=1
6377 echo "$as_me: program exited with status $ac_status" >&5
6378 echo "$as_me: failed program was:" >&5
6379 sed 's/^/| /' conftest.$ac_ext >&5
6382 ac_cv_c_stack_direction=-1
6384 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6387 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6388 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6390 cat >>confdefs.h <<_ACEOF
6391 #define STACK_DIRECTION $ac_cv_c_stack_direction
6399 for ac_header in stdlib.h unistd.h
6401 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6403 echo "$as_me:$LINENO: checking for $ac_header" >&5
6404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6406 echo $ECHO_N "(cached) $ECHO_C" >&6
6408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6411 # Is the header compilable?
6412 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6413 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6414 cat >conftest.$ac_ext <<_ACEOF
6417 cat confdefs.h >>conftest.$ac_ext
6418 cat >>conftest.$ac_ext <<_ACEOF
6419 /* end confdefs.h. */
6420 $ac_includes_default
6421 #include <$ac_header>
6423 rm -f conftest.$ac_objext
6424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6425 (eval $ac_compile) 2>conftest.er1
6427 grep -v '^ *+' conftest.er1 >conftest.err
6429 cat conftest.err >&5
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); } &&
6432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); }; } &&
6438 { ac_try='test -s conftest.$ac_objext'
6439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); }; }; then
6444 ac_header_compiler=yes
6446 echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.$ac_ext >&5
6449 ac_header_compiler=no
6451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6452 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6453 echo "${ECHO_T}$ac_header_compiler" >&6
6455 # Is the header present?
6456 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6457 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6458 cat >conftest.$ac_ext <<_ACEOF
6461 cat confdefs.h >>conftest.$ac_ext
6462 cat >>conftest.$ac_ext <<_ACEOF
6463 /* end confdefs.h. */
6464 #include <$ac_header>
6466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6469 grep -v '^ *+' conftest.er1 >conftest.err
6471 cat conftest.err >&5
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); } >/dev/null; then
6474 if test -s conftest.err; then
6475 ac_cpp_err=$ac_c_preproc_warn_flag
6476 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6483 if test -z "$ac_cpp_err"; then
6484 ac_header_preproc=yes
6486 echo "$as_me: failed program was:" >&5
6487 sed 's/^/| /' conftest.$ac_ext >&5
6489 ac_header_preproc=no
6491 rm -f conftest.err conftest.$ac_ext
6492 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6493 echo "${ECHO_T}$ac_header_preproc" >&6
6495 # So? What about this header?
6496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6498 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6499 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6501 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6502 ac_header_preproc=yes
6505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6506 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6508 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6509 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6510 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6511 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6512 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6515 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6516 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6519 ## ------------------------------------------ ##
6520 ## Report this to the AC_PACKAGE_NAME lists. ##
6521 ## ------------------------------------------ ##
6524 sed "s/^/$as_me: WARNING: /" >&2
6527 echo "$as_me:$LINENO: checking for $ac_header" >&5
6528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6530 echo $ECHO_N "(cached) $ECHO_C" >&6
6532 eval "$as_ac_Header=\$ac_header_preproc"
6534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6539 cat >>confdefs.h <<_ACEOF
6540 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6548 for ac_func in getpagesize
6550 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6551 echo "$as_me:$LINENO: checking for $ac_func" >&5
6552 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6553 if eval "test \"\${$as_ac_var+set}\" = set"; then
6554 echo $ECHO_N "(cached) $ECHO_C" >&6
6556 cat >conftest.$ac_ext <<_ACEOF
6559 cat confdefs.h >>conftest.$ac_ext
6560 cat >>conftest.$ac_ext <<_ACEOF
6561 /* end confdefs.h. */
6562 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6564 #define $ac_func innocuous_$ac_func
6566 /* System header to define __stub macros and hopefully few prototypes,
6567 which can conflict with char $ac_func (); below.
6568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6569 <limits.h> exists even on freestanding compilers. */
6572 # include <limits.h>
6574 # include <assert.h>
6579 /* Override any gcc2 internal prototype to avoid an error. */
6584 /* We use char because int might match the return type of a gcc2
6585 builtin and then its argument prototype would still apply. */
6587 /* The GNU C library defines this for functions which it implements
6588 to always fail with ENOSYS. Some functions are actually named
6589 something starting with __ and the normal name is an alias. */
6590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6593 char (*f) () = $ac_func;
6602 return f != $ac_func;
6607 rm -f conftest.$ac_objext conftest$ac_exeext
6608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6609 (eval $ac_link) 2>conftest.er1
6611 grep -v '^ *+' conftest.er1 >conftest.err
6613 cat conftest.err >&5
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); } &&
6616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); }; } &&
6622 { ac_try='test -s conftest$ac_exeext'
6623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); }; }; then
6628 eval "$as_ac_var=yes"
6630 echo "$as_me: failed program was:" >&5
6631 sed 's/^/| /' conftest.$ac_ext >&5
6633 eval "$as_ac_var=no"
6635 rm -f conftest.err conftest.$ac_objext \
6636 conftest$ac_exeext conftest.$ac_ext
6638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6639 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6640 if test `eval echo '${'$as_ac_var'}'` = yes; then
6641 cat >>confdefs.h <<_ACEOF
6642 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6648 echo "$as_me:$LINENO: checking for working mmap" >&5
6649 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6650 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6651 echo $ECHO_N "(cached) $ECHO_C" >&6
6653 if test "$cross_compiling" = yes; then
6654 ac_cv_func_mmap_fixed_mapped=no
6656 cat >conftest.$ac_ext <<_ACEOF
6659 cat confdefs.h >>conftest.$ac_ext
6660 cat >>conftest.$ac_ext <<_ACEOF
6661 /* end confdefs.h. */
6662 $ac_includes_default
6663 /* malloc might have been renamed as rpl_malloc. */
6666 /* Thanks to Mike Haertel and Jim Avera for this test.
6667 Here is a matrix of mmap possibilities:
6668 mmap private not fixed
6669 mmap private fixed at somewhere currently unmapped
6670 mmap private fixed at somewhere already mapped
6671 mmap shared not fixed
6672 mmap shared fixed at somewhere currently unmapped
6673 mmap shared fixed at somewhere already mapped
6674 For private mappings, we should verify that changes cannot be read()
6675 back from the file, nor mmap's back from the file at a different
6676 address. (There have been systems where private was not correctly
6677 implemented like the infamous i386 svr4.0, and systems where the
6678 VM page cache was not coherent with the file system buffer cache
6679 like early versions of FreeBSD and possibly contemporary NetBSD.)
6680 For shared mappings, we should conversely verify that changes get
6681 propagated back to all the places they're supposed to be.
6683 Grep wants private fixed already mapped.
6684 The main things grep needs to know about mmap are:
6685 * does it exist and is it safe to write into the mmap'd area
6686 * how to use it (BSD variants) */
6689 #include <sys/mman.h>
6691 #if !STDC_HEADERS && !HAVE_STDLIB_H
6695 /* This mess was copied from the GNU getpagesize.h. */
6696 #if !HAVE_GETPAGESIZE
6697 /* Assume that all systems that can run configure have sys/param.h. */
6698 # if !HAVE_SYS_PARAM_H
6699 # define HAVE_SYS_PARAM_H 1
6702 # ifdef _SC_PAGESIZE
6703 # define getpagesize() sysconf(_SC_PAGESIZE)
6704 # else /* no _SC_PAGESIZE */
6705 # if HAVE_SYS_PARAM_H
6706 # include <sys/param.h>
6707 # ifdef EXEC_PAGESIZE
6708 # define getpagesize() EXEC_PAGESIZE
6709 # else /* no EXEC_PAGESIZE */
6711 # define getpagesize() NBPG * CLSIZE
6714 # endif /* no CLSIZE */
6715 # else /* no NBPG */
6717 # define getpagesize() NBPC
6718 # else /* no NBPC */
6720 # define getpagesize() PAGESIZE
6721 # endif /* PAGESIZE */
6722 # endif /* no NBPC */
6723 # endif /* no NBPG */
6724 # endif /* no EXEC_PAGESIZE */
6725 # else /* no HAVE_SYS_PARAM_H */
6726 # define getpagesize() 8192 /* punt totally */
6727 # endif /* no HAVE_SYS_PARAM_H */
6728 # endif /* no _SC_PAGESIZE */
6730 #endif /* no HAVE_GETPAGESIZE */
6735 char *data, *data2, *data3;
6739 pagesize = getpagesize ();
6741 /* First, make a file with some known garbage in it. */
6742 data = (char *) malloc (pagesize);
6745 for (i = 0; i < pagesize; ++i)
6746 *(data + i) = rand ();
6748 fd = creat ("conftest.mmap", 0600);
6751 if (write (fd, data, pagesize) != pagesize)
6755 /* Next, try to mmap the file at a fixed address which already has
6756 something else allocated at it. If we can, also make sure that
6757 we see the same garbage. */
6758 fd = open ("conftest.mmap", O_RDWR);
6761 data2 = (char *) malloc (2 * pagesize);
6764 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6765 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6766 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6768 for (i = 0; i < pagesize; ++i)
6769 if (*(data + i) != *(data2 + i))
6772 /* Finally, make sure that changes to the mapped area do not
6773 percolate back to the file as seen by read(). (This is a bug on
6774 some variants of i386 svr4.0.) */
6775 for (i = 0; i < pagesize; ++i)
6776 *(data2 + i) = *(data2 + i) + 1;
6777 data3 = (char *) malloc (pagesize);
6780 if (read (fd, data3, pagesize) != pagesize)
6782 for (i = 0; i < pagesize; ++i)
6783 if (*(data + i) != *(data3 + i))
6789 rm -f conftest$ac_exeext
6790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6791 (eval $ac_link) 2>&5
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799 (exit $ac_status); }; }; then
6800 ac_cv_func_mmap_fixed_mapped=yes
6802 echo "$as_me: program exited with status $ac_status" >&5
6803 echo "$as_me: failed program was:" >&5
6804 sed 's/^/| /' conftest.$ac_ext >&5
6807 ac_cv_func_mmap_fixed_mapped=no
6809 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6812 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6813 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6814 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6816 cat >>confdefs.h <<\_ACEOF
6833 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6834 unistd.h values.h sys/param.h
6836 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6838 echo "$as_me:$LINENO: checking for $ac_header" >&5
6839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6841 echo $ECHO_N "(cached) $ECHO_C" >&6
6843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6844 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6846 # Is the header compilable?
6847 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6848 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6849 cat >conftest.$ac_ext <<_ACEOF
6852 cat confdefs.h >>conftest.$ac_ext
6853 cat >>conftest.$ac_ext <<_ACEOF
6854 /* end confdefs.h. */
6855 $ac_includes_default
6856 #include <$ac_header>
6858 rm -f conftest.$ac_objext
6859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6860 (eval $ac_compile) 2>conftest.er1
6862 grep -v '^ *+' conftest.er1 >conftest.err
6864 cat conftest.err >&5
6865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866 (exit $ac_status); } &&
6867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); }; } &&
6873 { ac_try='test -s conftest.$ac_objext'
6874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878 (exit $ac_status); }; }; then
6879 ac_header_compiler=yes
6881 echo "$as_me: failed program was:" >&5
6882 sed 's/^/| /' conftest.$ac_ext >&5
6884 ac_header_compiler=no
6886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6887 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6888 echo "${ECHO_T}$ac_header_compiler" >&6
6890 # Is the header present?
6891 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6892 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6893 cat >conftest.$ac_ext <<_ACEOF
6896 cat confdefs.h >>conftest.$ac_ext
6897 cat >>conftest.$ac_ext <<_ACEOF
6898 /* end confdefs.h. */
6899 #include <$ac_header>
6901 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6902 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6904 grep -v '^ *+' conftest.er1 >conftest.err
6906 cat conftest.err >&5
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); } >/dev/null; then
6909 if test -s conftest.err; then
6910 ac_cpp_err=$ac_c_preproc_warn_flag
6911 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6918 if test -z "$ac_cpp_err"; then
6919 ac_header_preproc=yes
6921 echo "$as_me: failed program was:" >&5
6922 sed 's/^/| /' conftest.$ac_ext >&5
6924 ac_header_preproc=no
6926 rm -f conftest.err conftest.$ac_ext
6927 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6928 echo "${ECHO_T}$ac_header_preproc" >&6
6930 # So? What about this header?
6931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6933 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6934 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6936 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6937 ac_header_preproc=yes
6940 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6941 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6942 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6943 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6944 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6945 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6946 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6947 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6949 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6950 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6951 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6954 ## ------------------------------------------ ##
6955 ## Report this to the AC_PACKAGE_NAME lists. ##
6956 ## ------------------------------------------ ##
6959 sed "s/^/$as_me: WARNING: /" >&2
6962 echo "$as_me:$LINENO: checking for $ac_header" >&5
6963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
6967 eval "$as_ac_Header=\$ac_header_preproc"
6969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6973 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6974 cat >>confdefs.h <<_ACEOF
6975 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6992 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
6993 __argz_count __argz_stringify __argz_next
6995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6996 echo "$as_me:$LINENO: checking for $ac_func" >&5
6997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6998 if eval "test \"\${$as_ac_var+set}\" = set"; then
6999 echo $ECHO_N "(cached) $ECHO_C" >&6
7001 cat >conftest.$ac_ext <<_ACEOF
7004 cat confdefs.h >>conftest.$ac_ext
7005 cat >>conftest.$ac_ext <<_ACEOF
7006 /* end confdefs.h. */
7007 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7009 #define $ac_func innocuous_$ac_func
7011 /* System header to define __stub macros and hopefully few prototypes,
7012 which can conflict with char $ac_func (); below.
7013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7014 <limits.h> exists even on freestanding compilers. */
7017 # include <limits.h>
7019 # include <assert.h>
7024 /* Override any gcc2 internal prototype to avoid an error. */
7029 /* We use char because int might match the return type of a gcc2
7030 builtin and then its argument prototype would still apply. */
7032 /* The GNU C library defines this for functions which it implements
7033 to always fail with ENOSYS. Some functions are actually named
7034 something starting with __ and the normal name is an alias. */
7035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7038 char (*f) () = $ac_func;
7047 return f != $ac_func;
7052 rm -f conftest.$ac_objext conftest$ac_exeext
7053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7054 (eval $ac_link) 2>conftest.er1
7056 grep -v '^ *+' conftest.er1 >conftest.err
7058 cat conftest.err >&5
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); } &&
7061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066 (exit $ac_status); }; } &&
7067 { ac_try='test -s conftest$ac_exeext'
7068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); }; }; then
7073 eval "$as_ac_var=yes"
7075 echo "$as_me: failed program was:" >&5
7076 sed 's/^/| /' conftest.$ac_ext >&5
7078 eval "$as_ac_var=no"
7080 rm -f conftest.err conftest.$ac_objext \
7081 conftest$ac_exeext conftest.$ac_ext
7083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7084 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7085 if test `eval echo '${'$as_ac_var'}'` = yes; then
7086 cat >>confdefs.h <<_ACEOF
7087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7094 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7096 for ac_func in stpcpy
7098 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7099 echo "$as_me:$LINENO: checking for $ac_func" >&5
7100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7101 if eval "test \"\${$as_ac_var+set}\" = set"; then
7102 echo $ECHO_N "(cached) $ECHO_C" >&6
7104 cat >conftest.$ac_ext <<_ACEOF
7107 cat confdefs.h >>conftest.$ac_ext
7108 cat >>conftest.$ac_ext <<_ACEOF
7109 /* end confdefs.h. */
7110 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7112 #define $ac_func innocuous_$ac_func
7114 /* System header to define __stub macros and hopefully few prototypes,
7115 which can conflict with char $ac_func (); below.
7116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7117 <limits.h> exists even on freestanding compilers. */
7120 # include <limits.h>
7122 # include <assert.h>
7127 /* Override any gcc2 internal prototype to avoid an error. */
7132 /* We use char because int might match the return type of a gcc2
7133 builtin and then its argument prototype would still apply. */
7135 /* The GNU C library defines this for functions which it implements
7136 to always fail with ENOSYS. Some functions are actually named
7137 something starting with __ and the normal name is an alias. */
7138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7141 char (*f) () = $ac_func;
7150 return f != $ac_func;
7155 rm -f conftest.$ac_objext conftest$ac_exeext
7156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7157 (eval $ac_link) 2>conftest.er1
7159 grep -v '^ *+' conftest.er1 >conftest.err
7161 cat conftest.err >&5
7162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); } &&
7164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169 (exit $ac_status); }; } &&
7170 { ac_try='test -s conftest$ac_exeext'
7171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175 (exit $ac_status); }; }; then
7176 eval "$as_ac_var=yes"
7178 echo "$as_me: failed program was:" >&5
7179 sed 's/^/| /' conftest.$ac_ext >&5
7181 eval "$as_ac_var=no"
7183 rm -f conftest.err conftest.$ac_objext \
7184 conftest$ac_exeext conftest.$ac_ext
7186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7187 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7188 if test `eval echo '${'$as_ac_var'}'` = yes; then
7189 cat >>confdefs.h <<_ACEOF
7190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7197 if test "${ac_cv_func_stpcpy}" = "yes"; then
7199 cat >>confdefs.h <<\_ACEOF
7200 #define HAVE_STPCPY 1
7205 if test $ac_cv_header_locale_h = yes; then
7206 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7207 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7208 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7209 echo $ECHO_N "(cached) $ECHO_C" >&6
7211 cat >conftest.$ac_ext <<_ACEOF
7214 cat confdefs.h >>conftest.$ac_ext
7215 cat >>conftest.$ac_ext <<_ACEOF
7216 /* end confdefs.h. */
7226 rm -f conftest.$ac_objext conftest$ac_exeext
7227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7228 (eval $ac_link) 2>conftest.er1
7230 grep -v '^ *+' conftest.er1 >conftest.err
7232 cat conftest.err >&5
7233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); } &&
7235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240 (exit $ac_status); }; } &&
7241 { ac_try='test -s conftest$ac_exeext'
7242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); }; }; then
7247 am_cv_val_LC_MESSAGES=yes
7249 echo "$as_me: failed program was:" >&5
7250 sed 's/^/| /' conftest.$ac_ext >&5
7252 am_cv_val_LC_MESSAGES=no
7254 rm -f conftest.err conftest.$ac_objext \
7255 conftest$ac_exeext conftest.$ac_ext
7257 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7258 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7259 if test $am_cv_val_LC_MESSAGES = yes; then
7261 cat >>confdefs.h <<\_ACEOF
7262 #define HAVE_LC_MESSAGES 1
7267 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7268 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7269 # Check whether --enable-nls or --disable-nls was given.
7270 if test "${enable_nls+set}" = set; then
7271 enableval="$enable_nls"
7276 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7277 echo "${ECHO_T}$USE_NLS" >&6
7280 USE_INCLUDED_LIBINTL=no
7282 if test "$USE_NLS" = "yes"; then
7283 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7284 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7286 # Check whether --with-included-gettext or --without-included-gettext was given.
7287 if test "${with_included_gettext+set}" = set; then
7288 withval="$with_included_gettext"
7289 nls_cv_force_use_gnu_gettext=$withval
7291 nls_cv_force_use_gnu_gettext=no
7293 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7294 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7296 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7297 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7299 nls_cv_header_libgt=
7302 if test "${ac_cv_header_libintl_h+set}" = set; then
7303 echo "$as_me:$LINENO: checking for libintl.h" >&5
7304 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7305 if test "${ac_cv_header_libintl_h+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7308 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7309 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7311 # Is the header compilable?
7312 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7313 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7314 cat >conftest.$ac_ext <<_ACEOF
7317 cat confdefs.h >>conftest.$ac_ext
7318 cat >>conftest.$ac_ext <<_ACEOF
7319 /* end confdefs.h. */
7320 $ac_includes_default
7321 #include <libintl.h>
7323 rm -f conftest.$ac_objext
7324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7325 (eval $ac_compile) 2>conftest.er1
7327 grep -v '^ *+' conftest.er1 >conftest.err
7329 cat conftest.err >&5
7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); } &&
7332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); }; } &&
7338 { ac_try='test -s conftest.$ac_objext'
7339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); }; }; then
7344 ac_header_compiler=yes
7346 echo "$as_me: failed program was:" >&5
7347 sed 's/^/| /' conftest.$ac_ext >&5
7349 ac_header_compiler=no
7351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7352 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7353 echo "${ECHO_T}$ac_header_compiler" >&6
7355 # Is the header present?
7356 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7357 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7358 cat >conftest.$ac_ext <<_ACEOF
7361 cat confdefs.h >>conftest.$ac_ext
7362 cat >>conftest.$ac_ext <<_ACEOF
7363 /* end confdefs.h. */
7364 #include <libintl.h>
7366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7369 grep -v '^ *+' conftest.er1 >conftest.err
7371 cat conftest.err >&5
7372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373 (exit $ac_status); } >/dev/null; then
7374 if test -s conftest.err; then
7375 ac_cpp_err=$ac_c_preproc_warn_flag
7376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7383 if test -z "$ac_cpp_err"; then
7384 ac_header_preproc=yes
7386 echo "$as_me: failed program was:" >&5
7387 sed 's/^/| /' conftest.$ac_ext >&5
7389 ac_header_preproc=no
7391 rm -f conftest.err conftest.$ac_ext
7392 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7393 echo "${ECHO_T}$ac_header_preproc" >&6
7395 # So? What about this header?
7396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7398 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7399 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7400 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7401 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7402 ac_header_preproc=yes
7405 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7406 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7407 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7408 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7409 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7410 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7411 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7412 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7413 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7414 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7415 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7416 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7419 ## ------------------------------------------ ##
7420 ## Report this to the AC_PACKAGE_NAME lists. ##
7421 ## ------------------------------------------ ##
7424 sed "s/^/$as_me: WARNING: /" >&2
7427 echo "$as_me:$LINENO: checking for libintl.h" >&5
7428 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7429 if test "${ac_cv_header_libintl_h+set}" = set; then
7430 echo $ECHO_N "(cached) $ECHO_C" >&6
7432 ac_cv_header_libintl_h=$ac_header_preproc
7434 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7435 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7438 if test $ac_cv_header_libintl_h = yes; then
7439 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7440 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7441 if test "${gt_cv_func_gettext_libc+set}" = set; then
7442 echo $ECHO_N "(cached) $ECHO_C" >&6
7444 cat >conftest.$ac_ext <<_ACEOF
7447 cat confdefs.h >>conftest.$ac_ext
7448 cat >>conftest.$ac_ext <<_ACEOF
7449 /* end confdefs.h. */
7450 #include <libintl.h>
7454 return (int) gettext ("")
7459 rm -f conftest.$ac_objext conftest$ac_exeext
7460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7461 (eval $ac_link) 2>conftest.er1
7463 grep -v '^ *+' conftest.er1 >conftest.err
7465 cat conftest.err >&5
7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); } &&
7468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473 (exit $ac_status); }; } &&
7474 { ac_try='test -s conftest$ac_exeext'
7475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); }; }; then
7480 gt_cv_func_gettext_libc=yes
7482 echo "$as_me: failed program was:" >&5
7483 sed 's/^/| /' conftest.$ac_ext >&5
7485 gt_cv_func_gettext_libc=no
7487 rm -f conftest.err conftest.$ac_objext \
7488 conftest$ac_exeext conftest.$ac_ext
7490 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7491 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
7493 if test "$gt_cv_func_gettext_libc" != "yes"; then
7494 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7495 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7496 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7497 echo $ECHO_N "(cached) $ECHO_C" >&6
7499 ac_check_lib_save_LIBS=$LIBS
7501 cat >conftest.$ac_ext <<_ACEOF
7504 cat confdefs.h >>conftest.$ac_ext
7505 cat >>conftest.$ac_ext <<_ACEOF
7506 /* end confdefs.h. */
7508 /* Override any gcc2 internal prototype to avoid an error. */
7512 /* We use char because int might match the return type of a gcc2
7513 builtin and then its argument prototype would still apply. */
7514 char bindtextdomain ();
7523 rm -f conftest.$ac_objext conftest$ac_exeext
7524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7525 (eval $ac_link) 2>conftest.er1
7527 grep -v '^ *+' conftest.er1 >conftest.err
7529 cat conftest.err >&5
7530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 (exit $ac_status); } &&
7532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537 (exit $ac_status); }; } &&
7538 { ac_try='test -s conftest$ac_exeext'
7539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543 (exit $ac_status); }; }; then
7544 ac_cv_lib_intl_bindtextdomain=yes
7546 echo "$as_me: failed program was:" >&5
7547 sed 's/^/| /' conftest.$ac_ext >&5
7549 ac_cv_lib_intl_bindtextdomain=no
7551 rm -f conftest.err conftest.$ac_objext \
7552 conftest$ac_exeext conftest.$ac_ext
7553 LIBS=$ac_check_lib_save_LIBS
7555 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7556 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7557 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7558 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7559 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7560 if test "${gt_cv_func_gettext_libintl+set}" = set; then
7561 echo $ECHO_N "(cached) $ECHO_C" >&6
7563 cat >conftest.$ac_ext <<_ACEOF
7566 cat confdefs.h >>conftest.$ac_ext
7567 cat >>conftest.$ac_ext <<_ACEOF
7568 /* end confdefs.h. */
7573 return (int) gettext ("")
7578 rm -f conftest.$ac_objext conftest$ac_exeext
7579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7580 (eval $ac_link) 2>conftest.er1
7582 grep -v '^ *+' conftest.er1 >conftest.err
7584 cat conftest.err >&5
7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); } &&
7587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592 (exit $ac_status); }; } &&
7593 { ac_try='test -s conftest$ac_exeext'
7594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598 (exit $ac_status); }; }; then
7599 gt_cv_func_gettext_libintl=yes
7601 echo "$as_me: failed program was:" >&5
7602 sed 's/^/| /' conftest.$ac_ext >&5
7604 gt_cv_func_gettext_libintl=no
7606 rm -f conftest.err conftest.$ac_objext \
7607 conftest$ac_exeext conftest.$ac_ext
7609 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7610 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
7615 if test "$gt_cv_func_gettext_libc" = "yes" \
7616 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7618 cat >>confdefs.h <<\_ACEOF
7619 #define HAVE_GETTEXT 1
7622 # Extract the first word of "msgfmt", so it can be a program name with args.
7623 set dummy msgfmt; ac_word=$2
7624 echo "$as_me:$LINENO: checking for $ac_word" >&5
7625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7626 if test "${ac_cv_path_MSGFMT+set}" = set; then
7627 echo $ECHO_N "(cached) $ECHO_C" >&6
7631 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7634 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7635 for ac_dir in $PATH; do
7636 test -z "$ac_dir" && ac_dir=.
7637 if test -f $ac_dir/$ac_word; then
7638 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7639 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7645 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7649 MSGFMT="$ac_cv_path_MSGFMT"
7650 if test -n "$MSGFMT"; then
7651 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7652 echo "${ECHO_T}$MSGFMT" >&6
7654 echo "$as_me:$LINENO: result: no" >&5
7655 echo "${ECHO_T}no" >&6
7657 if test "$MSGFMT" != "no"; then
7659 for ac_func in dcgettext
7661 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7662 echo "$as_me:$LINENO: checking for $ac_func" >&5
7663 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7664 if eval "test \"\${$as_ac_var+set}\" = set"; then
7665 echo $ECHO_N "(cached) $ECHO_C" >&6
7667 cat >conftest.$ac_ext <<_ACEOF
7670 cat confdefs.h >>conftest.$ac_ext
7671 cat >>conftest.$ac_ext <<_ACEOF
7672 /* end confdefs.h. */
7673 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7675 #define $ac_func innocuous_$ac_func
7677 /* System header to define __stub macros and hopefully few prototypes,
7678 which can conflict with char $ac_func (); below.
7679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7680 <limits.h> exists even on freestanding compilers. */
7683 # include <limits.h>
7685 # include <assert.h>
7690 /* Override any gcc2 internal prototype to avoid an error. */
7695 /* We use char because int might match the return type of a gcc2
7696 builtin and then its argument prototype would still apply. */
7698 /* The GNU C library defines this for functions which it implements
7699 to always fail with ENOSYS. Some functions are actually named
7700 something starting with __ and the normal name is an alias. */
7701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7704 char (*f) () = $ac_func;
7713 return f != $ac_func;
7718 rm -f conftest.$ac_objext conftest$ac_exeext
7719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7720 (eval $ac_link) 2>conftest.er1
7722 grep -v '^ *+' conftest.er1 >conftest.err
7724 cat conftest.err >&5
7725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726 (exit $ac_status); } &&
7727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); }; } &&
7733 { ac_try='test -s conftest$ac_exeext'
7734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); }; }; then
7739 eval "$as_ac_var=yes"
7741 echo "$as_me: failed program was:" >&5
7742 sed 's/^/| /' conftest.$ac_ext >&5
7744 eval "$as_ac_var=no"
7746 rm -f conftest.err conftest.$ac_objext \
7747 conftest$ac_exeext conftest.$ac_ext
7749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7750 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7751 if test `eval echo '${'$as_ac_var'}'` = yes; then
7752 cat >>confdefs.h <<_ACEOF
7753 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7759 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7760 set dummy gmsgfmt; ac_word=$2
7761 echo "$as_me:$LINENO: checking for $ac_word" >&5
7762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7763 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7764 echo $ECHO_N "(cached) $ECHO_C" >&6
7768 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7775 test -z "$as_dir" && as_dir=.
7776 for ac_exec_ext in '' $ac_executable_extensions; do
7777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7778 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7785 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7789 GMSGFMT=$ac_cv_path_GMSGFMT
7791 if test -n "$GMSGFMT"; then
7792 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7793 echo "${ECHO_T}$GMSGFMT" >&6
7795 echo "$as_me:$LINENO: result: no" >&5
7796 echo "${ECHO_T}no" >&6
7799 # Extract the first word of "xgettext", so it can be a program name with args.
7800 set dummy xgettext; ac_word=$2
7801 echo "$as_me:$LINENO: checking for $ac_word" >&5
7802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7803 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7804 echo $ECHO_N "(cached) $ECHO_C" >&6
7808 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7811 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7812 for ac_dir in $PATH; do
7813 test -z "$ac_dir" && ac_dir=.
7814 if test -f $ac_dir/$ac_word; then
7815 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7816 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7822 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7826 XGETTEXT="$ac_cv_path_XGETTEXT"
7827 if test -n "$XGETTEXT"; then
7828 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7829 echo "${ECHO_T}$XGETTEXT" >&6
7831 echo "$as_me:$LINENO: result: no" >&5
7832 echo "${ECHO_T}no" >&6
7835 cat >conftest.$ac_ext <<_ACEOF
7838 cat confdefs.h >>conftest.$ac_ext
7839 cat >>conftest.$ac_ext <<_ACEOF
7840 /* end confdefs.h. */
7845 extern int _nl_msg_cat_cntr;
7846 return _nl_msg_cat_cntr
7851 rm -f conftest.$ac_objext conftest$ac_exeext
7852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7853 (eval $ac_link) 2>conftest.er1
7855 grep -v '^ *+' conftest.er1 >conftest.err
7857 cat conftest.err >&5
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); } &&
7860 { ac_try='test -z "$ac_c_werror_flag" || 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" || test ! -s conftest.err'
8138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 (exit $ac_status); }; } &&
8143 { ac_try='test -s conftest.$ac_objext'
8144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); }; }; then
8149 ac_header_compiler=yes
8151 echo "$as_me: failed program was:" >&5
8152 sed 's/^/| /' conftest.$ac_ext >&5
8154 ac_header_compiler=no
8156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8157 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8158 echo "${ECHO_T}$ac_header_compiler" >&6
8160 # Is the header present?
8161 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8162 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8163 cat >conftest.$ac_ext <<_ACEOF
8166 cat confdefs.h >>conftest.$ac_ext
8167 cat >>conftest.$ac_ext <<_ACEOF
8168 /* end confdefs.h. */
8169 #include <linux/version.h>
8171 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8172 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8174 grep -v '^ *+' conftest.er1 >conftest.err
8176 cat conftest.err >&5
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); } >/dev/null; then
8179 if test -s conftest.err; then
8180 ac_cpp_err=$ac_c_preproc_warn_flag
8181 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8188 if test -z "$ac_cpp_err"; then
8189 ac_header_preproc=yes
8191 echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8194 ac_header_preproc=no
8196 rm -f conftest.err conftest.$ac_ext
8197 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8198 echo "${ECHO_T}$ac_header_preproc" >&6
8200 # So? What about this header?
8201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8203 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8204 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8205 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
8206 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
8207 ac_header_preproc=yes
8210 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8211 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8212 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8213 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8214 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
8215 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
8216 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
8217 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
8218 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8219 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8220 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8221 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8224 ## ------------------------------------------ ##
8225 ## Report this to the AC_PACKAGE_NAME lists. ##
8226 ## ------------------------------------------ ##
8229 sed "s/^/$as_me: WARNING: /" >&2
8232 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8233 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8234 if test "${ac_cv_header_linux_version_h+set}" = set; then
8235 echo $ECHO_N "(cached) $ECHO_C" >&6
8237 ac_cv_header_linux_version_h=$ac_header_preproc
8239 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8240 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8243 if test $ac_cv_header_linux_version_h = yes; then
8251 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8253 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8254 $srcdir/po2tbl.sed.in > po2tbl.sed
8257 if test "$PACKAGE" = "gettext"; then
8267 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
8273 if test -f $srcdir/po/POTFILES.in; then
8274 test -d po || mkdir po
8275 if test "x$srcdir" != "x."; then
8276 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8277 posrcprefix="$srcdir/"
8279 posrcprefix="../$srcdir/"
8285 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8286 < $srcdir/po/POTFILES.in > po/POTFILES
8290 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
8291 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
8292 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
8293 if test "${enable_maintainer_mode+set}" = set; then
8294 enableval="$enable_maintainer_mode"
8295 USE_MAINTAINER_MODE=$enableval
8297 USE_MAINTAINER_MODE=no
8299 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
8300 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
8303 if test $USE_MAINTAINER_MODE = yes; then
8304 MAINTAINER_MODE_TRUE=
8305 MAINTAINER_MODE_FALSE='#'
8307 MAINTAINER_MODE_TRUE='#'
8308 MAINTAINER_MODE_FALSE=
8311 MAINT=$MAINTAINER_MODE_TRUE
8315 if test -n "$EXEEXT"; then
8317 cat >>confdefs.h <<\_ACEOF
8318 #define HAVE_EXECUTABLE_SUFFIX 1
8323 cat >>confdefs.h <<_ACEOF
8324 #define EXECUTABLE_SUFFIX "${EXEEXT}"
8328 # host-specific stuff:
8332 . ${srcdir}/../bfd/configure.host
8337 if test -n "$ac_tool_prefix"; then
8338 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8339 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8340 echo "$as_me:$LINENO: checking for $ac_word" >&5
8341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8342 if test "${ac_cv_prog_RANLIB+set}" = set; then
8343 echo $ECHO_N "(cached) $ECHO_C" >&6
8345 if test -n "$RANLIB"; then
8346 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8352 test -z "$as_dir" && as_dir=.
8353 for ac_exec_ext in '' $ac_executable_extensions; do
8354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8355 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8364 RANLIB=$ac_cv_prog_RANLIB
8365 if test -n "$RANLIB"; then
8366 echo "$as_me:$LINENO: result: $RANLIB" >&5
8367 echo "${ECHO_T}$RANLIB" >&6
8369 echo "$as_me:$LINENO: result: no" >&5
8370 echo "${ECHO_T}no" >&6
8374 if test -z "$ac_cv_prog_RANLIB"; then
8375 ac_ct_RANLIB=$RANLIB
8376 # Extract the first word of "ranlib", so it can be a program name with args.
8377 set dummy ranlib; ac_word=$2
8378 echo "$as_me:$LINENO: checking for $ac_word" >&5
8379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8380 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8381 echo $ECHO_N "(cached) $ECHO_C" >&6
8383 if test -n "$ac_ct_RANLIB"; then
8384 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8390 test -z "$as_dir" && as_dir=.
8391 for ac_exec_ext in '' $ac_executable_extensions; do
8392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8393 ac_cv_prog_ac_ct_RANLIB="ranlib"
8394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8400 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8403 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8404 if test -n "$ac_ct_RANLIB"; then
8405 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8406 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8408 echo "$as_me:$LINENO: result: no" >&5
8409 echo "${ECHO_T}no" >&6
8412 RANLIB=$ac_ct_RANLIB
8414 RANLIB="$ac_cv_prog_RANLIB"
8417 # Find a good install program. We prefer a C program (faster),
8418 # so one script is as good as another. But avoid the broken or
8419 # incompatible versions:
8420 # SysV /etc/install, /usr/sbin/install
8421 # SunOS /usr/etc/install
8422 # IRIX /sbin/install
8424 # AmigaOS /C/install, which installs bootblocks on floppy discs
8425 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8426 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8427 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8428 # OS/2's system install, which has a completely different semantic
8429 # ./install, which can be erroneously created by make from ./install.sh.
8430 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8431 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8432 if test -z "$INSTALL"; then
8433 if test "${ac_cv_path_install+set}" = set; then
8434 echo $ECHO_N "(cached) $ECHO_C" >&6
8436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8440 test -z "$as_dir" && as_dir=.
8441 # Account for people who put trailing slashes in PATH elements.
8443 ./ | .// | /cC/* | \
8444 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8445 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8448 # OSF1 and SCO ODT 3.0 have their own names for install.
8449 # Don't use installbsd from OSF since it installs stuff as root
8451 for ac_prog in ginstall scoinst install; do
8452 for ac_exec_ext in '' $ac_executable_extensions; do
8453 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8454 if test $ac_prog = install &&
8455 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8456 # AIX install. It has an incompatible calling convention.
8458 elif test $ac_prog = install &&
8459 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8460 # program-specific install script used by HP pwplus--don't use.
8463 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8475 if test "${ac_cv_path_install+set}" = set; then
8476 INSTALL=$ac_cv_path_install
8478 # As a last resort, use the slow shell script. We don't cache a
8479 # path for INSTALL within a source directory, because that will
8480 # break other packages using the cache if that directory is
8481 # removed, or if the path is relative.
8482 INSTALL=$ac_install_sh
8485 echo "$as_me:$LINENO: result: $INSTALL" >&5
8486 echo "${ECHO_T}$INSTALL" >&6
8488 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8489 # It thinks the first close brace ends the variable substitution.
8490 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8492 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8494 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8497 # Put a plausible default for CC_FOR_BUILD in Makefile.
8498 if test -z "$CC_FOR_BUILD"; then
8499 if test "x$cross_compiling" = "xno"; then
8500 CC_FOR_BUILD='$(CC)'
8506 # Also set EXEEXT_FOR_BUILD.
8507 if test "x$cross_compiling" = "xno"; then
8508 EXEEXT_FOR_BUILD='$(EXEEXT)'
8510 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
8511 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
8512 if test "${bfd_cv_build_exeext+set}" = set; then
8513 echo $ECHO_N "(cached) $ECHO_C" >&6
8516 echo 'int main () { return 0; }' > conftest.c
8517 bfd_cv_build_exeext=
8518 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
8519 for file in conftest.*; do
8521 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
8522 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
8526 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
8528 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
8529 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
8531 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
8535 DEMANGLER_NAME=c++filt
8537 *-*-go32* | *-*-msdos*)
8538 DEMANGLER_NAME=cxxfilt
8548 for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h
8550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8552 echo "$as_me:$LINENO: checking for $ac_header" >&5
8553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8555 echo $ECHO_N "(cached) $ECHO_C" >&6
8557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8560 # Is the header compilable?
8561 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8562 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8563 cat >conftest.$ac_ext <<_ACEOF
8566 cat confdefs.h >>conftest.$ac_ext
8567 cat >>conftest.$ac_ext <<_ACEOF
8568 /* end confdefs.h. */
8569 $ac_includes_default
8570 #include <$ac_header>
8572 rm -f conftest.$ac_objext
8573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8574 (eval $ac_compile) 2>conftest.er1
8576 grep -v '^ *+' conftest.er1 >conftest.err
8578 cat conftest.err >&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); } &&
8581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); }; } &&
8587 { ac_try='test -s conftest.$ac_objext'
8588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); }; }; then
8593 ac_header_compiler=yes
8595 echo "$as_me: failed program was:" >&5
8596 sed 's/^/| /' conftest.$ac_ext >&5
8598 ac_header_compiler=no
8600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8601 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8602 echo "${ECHO_T}$ac_header_compiler" >&6
8604 # Is the header present?
8605 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8606 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8607 cat >conftest.$ac_ext <<_ACEOF
8610 cat confdefs.h >>conftest.$ac_ext
8611 cat >>conftest.$ac_ext <<_ACEOF
8612 /* end confdefs.h. */
8613 #include <$ac_header>
8615 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8616 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8618 grep -v '^ *+' conftest.er1 >conftest.err
8620 cat conftest.err >&5
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); } >/dev/null; then
8623 if test -s conftest.err; then
8624 ac_cpp_err=$ac_c_preproc_warn_flag
8625 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8632 if test -z "$ac_cpp_err"; then
8633 ac_header_preproc=yes
8635 echo "$as_me: failed program was:" >&5
8636 sed 's/^/| /' conftest.$ac_ext >&5
8638 ac_header_preproc=no
8640 rm -f conftest.err conftest.$ac_ext
8641 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8642 echo "${ECHO_T}$ac_header_preproc" >&6
8644 # So? What about this header?
8645 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8647 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8648 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8650 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8651 ac_header_preproc=yes
8654 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8655 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8656 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8657 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8658 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8659 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8660 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8661 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8663 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8664 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8665 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8668 ## ------------------------------------------ ##
8669 ## Report this to the AC_PACKAGE_NAME lists. ##
8670 ## ------------------------------------------ ##
8673 sed "s/^/$as_me: WARNING: /" >&2
8676 echo "$as_me:$LINENO: checking for $ac_header" >&5
8677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8678 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8679 echo $ECHO_N "(cached) $ECHO_C" >&6
8681 eval "$as_ac_Header=\$ac_header_preproc"
8683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8687 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8688 cat >>confdefs.h <<_ACEOF
8689 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8696 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8697 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8698 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8699 echo $ECHO_N "(cached) $ECHO_C" >&6
8701 cat >conftest.$ac_ext <<_ACEOF
8704 cat confdefs.h >>conftest.$ac_ext
8705 cat >>conftest.$ac_ext <<_ACEOF
8706 /* end confdefs.h. */
8707 #include <sys/types.h>
8708 #include <sys/wait.h>
8710 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8713 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8721 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8726 rm -f conftest.$ac_objext
8727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8728 (eval $ac_compile) 2>conftest.er1
8730 grep -v '^ *+' conftest.er1 >conftest.err
8732 cat conftest.err >&5
8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 (exit $ac_status); } &&
8735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 (exit $ac_status); }; } &&
8741 { ac_try='test -s conftest.$ac_objext'
8742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); }; }; then
8747 ac_cv_header_sys_wait_h=yes
8749 echo "$as_me: failed program was:" >&5
8750 sed 's/^/| /' conftest.$ac_ext >&5
8752 ac_cv_header_sys_wait_h=no
8754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8756 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8757 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8758 if test $ac_cv_header_sys_wait_h = yes; then
8760 cat >>confdefs.h <<\_ACEOF
8761 #define HAVE_SYS_WAIT_H 1
8766 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8767 # for constant arguments. Useless!
8768 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8769 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8770 if test "${ac_cv_working_alloca_h+set}" = set; then
8771 echo $ECHO_N "(cached) $ECHO_C" >&6
8773 cat >conftest.$ac_ext <<_ACEOF
8776 cat confdefs.h >>conftest.$ac_ext
8777 cat >>conftest.$ac_ext <<_ACEOF
8778 /* end confdefs.h. */
8783 char *p = (char *) alloca (2 * sizeof (int));
8788 rm -f conftest.$ac_objext conftest$ac_exeext
8789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8790 (eval $ac_link) 2>conftest.er1
8792 grep -v '^ *+' conftest.er1 >conftest.err
8794 cat conftest.err >&5
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); } &&
8797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802 (exit $ac_status); }; } &&
8803 { ac_try='test -s conftest$ac_exeext'
8804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); }; }; then
8809 ac_cv_working_alloca_h=yes
8811 echo "$as_me: failed program was:" >&5
8812 sed 's/^/| /' conftest.$ac_ext >&5
8814 ac_cv_working_alloca_h=no
8816 rm -f conftest.err conftest.$ac_objext \
8817 conftest$ac_exeext conftest.$ac_ext
8819 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8820 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8821 if test $ac_cv_working_alloca_h = yes; then
8823 cat >>confdefs.h <<\_ACEOF
8824 #define HAVE_ALLOCA_H 1
8829 echo "$as_me:$LINENO: checking for alloca" >&5
8830 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8831 if test "${ac_cv_func_alloca_works+set}" = set; then
8832 echo $ECHO_N "(cached) $ECHO_C" >&6
8834 cat >conftest.$ac_ext <<_ACEOF
8837 cat confdefs.h >>conftest.$ac_ext
8838 cat >>conftest.$ac_ext <<_ACEOF
8839 /* end confdefs.h. */
8841 # define alloca __builtin_alloca
8844 # include <malloc.h>
8845 # define alloca _alloca
8848 # include <alloca.h>
8853 # ifndef alloca /* predefined by HP cc +Olibcalls */
8864 char *p = (char *) alloca (1);
8869 rm -f conftest.$ac_objext conftest$ac_exeext
8870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8871 (eval $ac_link) 2>conftest.er1
8873 grep -v '^ *+' conftest.er1 >conftest.err
8875 cat conftest.err >&5
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); } &&
8878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); }; } &&
8884 { ac_try='test -s conftest$ac_exeext'
8885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); }; }; then
8890 ac_cv_func_alloca_works=yes
8892 echo "$as_me: failed program was:" >&5
8893 sed 's/^/| /' conftest.$ac_ext >&5
8895 ac_cv_func_alloca_works=no
8897 rm -f conftest.err conftest.$ac_objext \
8898 conftest$ac_exeext conftest.$ac_ext
8900 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8901 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8903 if test $ac_cv_func_alloca_works = yes; then
8905 cat >>confdefs.h <<\_ACEOF
8906 #define HAVE_ALLOCA 1
8910 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8911 # that cause trouble. Some versions do not even contain alloca or
8912 # contain a buggy version. If you still want to use their alloca,
8913 # use ar to extract alloca.o from them instead of compiling alloca.c.
8915 ALLOCA=alloca.$ac_objext
8917 cat >>confdefs.h <<\_ACEOF
8922 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8923 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8924 if test "${ac_cv_os_cray+set}" = set; then
8925 echo $ECHO_N "(cached) $ECHO_C" >&6
8927 cat >conftest.$ac_ext <<_ACEOF
8930 cat confdefs.h >>conftest.$ac_ext
8931 cat >>conftest.$ac_ext <<_ACEOF
8932 /* end confdefs.h. */
8933 #if defined(CRAY) && ! defined(CRAY2)
8940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8941 $EGREP "webecray" >/dev/null 2>&1; then
8949 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8950 echo "${ECHO_T}$ac_cv_os_cray" >&6
8951 if test $ac_cv_os_cray = yes; then
8952 for ac_func in _getb67 GETB67 getb67; do
8953 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8954 echo "$as_me:$LINENO: checking for $ac_func" >&5
8955 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8956 if eval "test \"\${$as_ac_var+set}\" = set"; then
8957 echo $ECHO_N "(cached) $ECHO_C" >&6
8959 cat >conftest.$ac_ext <<_ACEOF
8962 cat confdefs.h >>conftest.$ac_ext
8963 cat >>conftest.$ac_ext <<_ACEOF
8964 /* end confdefs.h. */
8965 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8967 #define $ac_func innocuous_$ac_func
8969 /* System header to define __stub macros and hopefully few prototypes,
8970 which can conflict with char $ac_func (); below.
8971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8972 <limits.h> exists even on freestanding compilers. */
8975 # include <limits.h>
8977 # include <assert.h>
8982 /* Override any gcc2 internal prototype to avoid an error. */
8987 /* We use char because int might match the return type of a gcc2
8988 builtin and then its argument prototype would still apply. */
8990 /* The GNU C library defines this for functions which it implements
8991 to always fail with ENOSYS. Some functions are actually named
8992 something starting with __ and the normal name is an alias. */
8993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8996 char (*f) () = $ac_func;
9005 return f != $ac_func;
9010 rm -f conftest.$ac_objext conftest$ac_exeext
9011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9012 (eval $ac_link) 2>conftest.er1
9014 grep -v '^ *+' conftest.er1 >conftest.err
9016 cat conftest.err >&5
9017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 (exit $ac_status); } &&
9019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); }; } &&
9025 { ac_try='test -s conftest$ac_exeext'
9026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); }; }; then
9031 eval "$as_ac_var=yes"
9033 echo "$as_me: failed program was:" >&5
9034 sed 's/^/| /' conftest.$ac_ext >&5
9036 eval "$as_ac_var=no"
9038 rm -f conftest.err conftest.$ac_objext \
9039 conftest$ac_exeext conftest.$ac_ext
9041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9042 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9043 if test `eval echo '${'$as_ac_var'}'` = yes; then
9045 cat >>confdefs.h <<_ACEOF
9046 #define CRAY_STACKSEG_END $ac_func
9055 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9056 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9057 if test "${ac_cv_c_stack_direction+set}" = set; then
9058 echo $ECHO_N "(cached) $ECHO_C" >&6
9060 if test "$cross_compiling" = yes; then
9061 ac_cv_c_stack_direction=0
9063 cat >conftest.$ac_ext <<_ACEOF
9066 cat confdefs.h >>conftest.$ac_ext
9067 cat >>conftest.$ac_ext <<_ACEOF
9068 /* end confdefs.h. */
9070 find_stack_direction ()
9072 static char *addr = 0;
9077 return find_stack_direction ();
9080 return (&dummy > addr) ? 1 : -1;
9086 exit (find_stack_direction () < 0);
9089 rm -f conftest$ac_exeext
9090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9091 (eval $ac_link) 2>&5
9093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); }; }; then
9100 ac_cv_c_stack_direction=1
9102 echo "$as_me: program exited with status $ac_status" >&5
9103 echo "$as_me: failed program was:" >&5
9104 sed 's/^/| /' conftest.$ac_ext >&5
9107 ac_cv_c_stack_direction=-1
9109 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9112 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9113 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9115 cat >>confdefs.h <<_ACEOF
9116 #define STACK_DIRECTION $ac_cv_c_stack_direction
9127 for ac_func in sbrk utimes setmode getc_unlocked strcoll
9129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9130 echo "$as_me:$LINENO: checking for $ac_func" >&5
9131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9132 if eval "test \"\${$as_ac_var+set}\" = set"; then
9133 echo $ECHO_N "(cached) $ECHO_C" >&6
9135 cat >conftest.$ac_ext <<_ACEOF
9138 cat confdefs.h >>conftest.$ac_ext
9139 cat >>conftest.$ac_ext <<_ACEOF
9140 /* end confdefs.h. */
9141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9143 #define $ac_func innocuous_$ac_func
9145 /* System header to define __stub macros and hopefully few prototypes,
9146 which can conflict with char $ac_func (); below.
9147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9148 <limits.h> exists even on freestanding compilers. */
9151 # include <limits.h>
9153 # include <assert.h>
9158 /* Override any gcc2 internal prototype to avoid an error. */
9163 /* We use char because int might match the return type of a gcc2
9164 builtin and then its argument prototype would still apply. */
9166 /* The GNU C library defines this for functions which it implements
9167 to always fail with ENOSYS. Some functions are actually named
9168 something starting with __ and the normal name is an alias. */
9169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9172 char (*f) () = $ac_func;
9181 return f != $ac_func;
9186 rm -f conftest.$ac_objext conftest$ac_exeext
9187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9188 (eval $ac_link) 2>conftest.er1
9190 grep -v '^ *+' conftest.er1 >conftest.err
9192 cat conftest.err >&5
9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194 (exit $ac_status); } &&
9195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); }; } &&
9201 { ac_try='test -s conftest$ac_exeext'
9202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); }; }; then
9207 eval "$as_ac_var=yes"
9209 echo "$as_me: failed program was:" >&5
9210 sed 's/^/| /' conftest.$ac_ext >&5
9212 eval "$as_ac_var=no"
9214 rm -f conftest.err conftest.$ac_objext \
9215 conftest$ac_exeext conftest.$ac_ext
9217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9218 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9219 if test `eval echo '${'$as_ac_var'}'` = yes; then
9220 cat >>confdefs.h <<_ACEOF
9221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9228 # Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
9229 # needs to be defined for it
9230 echo "$as_me:$LINENO: checking for fopen64" >&5
9231 echo $ECHO_N "checking for fopen64... $ECHO_C" >&6
9232 if test "${bu_cv_have_fopen64+set}" = set; then
9233 echo $ECHO_N "(cached) $ECHO_C" >&6
9235 cat >conftest.$ac_ext <<_ACEOF
9238 cat confdefs.h >>conftest.$ac_ext
9239 cat >>conftest.$ac_ext <<_ACEOF
9240 /* end confdefs.h. */
9245 FILE *f = fopen64 ("/tmp/foo","r");
9250 rm -f conftest.$ac_objext conftest$ac_exeext
9251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9252 (eval $ac_link) 2>conftest.er1
9254 grep -v '^ *+' conftest.er1 >conftest.err
9256 cat conftest.err >&5
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); } &&
9259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); }; } &&
9265 { ac_try='test -s conftest$ac_exeext'
9266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); }; }; then
9271 bu_cv_have_fopen64=yes
9273 echo "$as_me: failed program was:" >&5
9274 sed 's/^/| /' conftest.$ac_ext >&5
9276 saved_CPPFLAGS=$CPPFLAGS
9277 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
9278 cat >conftest.$ac_ext <<_ACEOF
9281 cat confdefs.h >>conftest.$ac_ext
9282 cat >>conftest.$ac_ext <<_ACEOF
9283 /* end confdefs.h. */
9288 FILE *f = fopen64 ("/tmp/foo","r");
9293 rm -f conftest.$ac_objext conftest$ac_exeext
9294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9295 (eval $ac_link) 2>conftest.er1
9297 grep -v '^ *+' conftest.er1 >conftest.err
9299 cat conftest.err >&5
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); } &&
9302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); }; } &&
9308 { ac_try='test -s conftest$ac_exeext'
9309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 (exit $ac_status); }; }; then
9314 bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
9316 echo "$as_me: failed program was:" >&5
9317 sed 's/^/| /' conftest.$ac_ext >&5
9319 bu_cv_have_fopen64=no
9321 rm -f conftest.err conftest.$ac_objext \
9322 conftest$ac_exeext conftest.$ac_ext
9323 CPPFLAGS=$saved_CPPFLAGS
9325 rm -f conftest.err conftest.$ac_objext \
9326 conftest$ac_exeext conftest.$ac_ext
9329 echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5
9330 echo "${ECHO_T}$bu_cv_have_fopen64" >&6
9331 if test "$bu_cv_have_fopen64" != no; then
9333 cat >>confdefs.h <<\_ACEOF
9334 #define HAVE_FOPEN64 1
9338 echo "$as_me:$LINENO: checking for stat64" >&5
9339 echo $ECHO_N "checking for stat64... $ECHO_C" >&6
9340 if test "${bu_cv_have_stat64+set}" = set; then
9341 echo $ECHO_N "(cached) $ECHO_C" >&6
9343 cat >conftest.$ac_ext <<_ACEOF
9346 cat confdefs.h >>conftest.$ac_ext
9347 cat >>conftest.$ac_ext <<_ACEOF
9348 /* end confdefs.h. */
9349 #include <sys/stat.h>
9353 struct stat64 st; stat64 ("/tmp/foo", &st);
9358 rm -f conftest.$ac_objext conftest$ac_exeext
9359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9360 (eval $ac_link) 2>conftest.er1
9362 grep -v '^ *+' conftest.er1 >conftest.err
9364 cat conftest.err >&5
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); } &&
9367 { ac_try='test -z "$ac_c_werror_flag" || 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_exeext'
9374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); }; }; then
9379 bu_cv_have_stat64=yes
9381 echo "$as_me: failed program was:" >&5
9382 sed 's/^/| /' conftest.$ac_ext >&5
9384 saved_CPPFLAGS=$CPPFLAGS
9385 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
9386 cat >conftest.$ac_ext <<_ACEOF
9389 cat confdefs.h >>conftest.$ac_ext
9390 cat >>conftest.$ac_ext <<_ACEOF
9391 /* end confdefs.h. */
9392 #include <sys/stat.h>
9396 struct stat64 st; stat64 ("/tmp/foo", &st);
9401 rm -f conftest.$ac_objext conftest$ac_exeext
9402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9403 (eval $ac_link) 2>conftest.er1
9405 grep -v '^ *+' conftest.er1 >conftest.err
9407 cat conftest.err >&5
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); } &&
9410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); }; } &&
9416 { ac_try='test -s conftest$ac_exeext'
9417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 (exit $ac_status); }; }; then
9422 bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE"
9424 echo "$as_me: failed program was:" >&5
9425 sed 's/^/| /' conftest.$ac_ext >&5
9427 bu_cv_have_stat64=no
9429 rm -f conftest.err conftest.$ac_objext \
9430 conftest$ac_exeext conftest.$ac_ext
9431 CPPFLAGS=$saved_CPPFLAGS
9433 rm -f conftest.err conftest.$ac_objext \
9434 conftest$ac_exeext conftest.$ac_ext
9437 echo "$as_me:$LINENO: result: $bu_cv_have_stat64" >&5
9438 echo "${ECHO_T}$bu_cv_have_stat64" >&6
9439 if test "$bu_cv_have_stat64" != no; then
9441 cat >>confdefs.h <<\_ACEOF
9442 #define HAVE_STAT64 1
9446 if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
9447 || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
9449 cat >>confdefs.h <<\_ACEOF
9450 #define _LARGEFILE64_SOURCE 1
9453 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
9456 # Some systems have frexp only in -lm, not in -lc.
9457 echo "$as_me:$LINENO: checking for library containing frexp" >&5
9458 echo $ECHO_N "checking for library containing frexp... $ECHO_C" >&6
9459 if test "${ac_cv_search_frexp+set}" = set; then
9460 echo $ECHO_N "(cached) $ECHO_C" >&6
9462 ac_func_search_save_LIBS=$LIBS
9463 ac_cv_search_frexp=no
9464 cat >conftest.$ac_ext <<_ACEOF
9467 cat confdefs.h >>conftest.$ac_ext
9468 cat >>conftest.$ac_ext <<_ACEOF
9469 /* end confdefs.h. */
9471 /* Override any gcc2 internal prototype to avoid an error. */
9475 /* We use char because int might match the return type of a gcc2
9476 builtin and then its argument prototype would still apply. */
9486 rm -f conftest.$ac_objext conftest$ac_exeext
9487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9488 (eval $ac_link) 2>conftest.er1
9490 grep -v '^ *+' conftest.er1 >conftest.err
9492 cat conftest.err >&5
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); } &&
9495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); }; } &&
9501 { ac_try='test -s conftest$ac_exeext'
9502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); }; }; then
9507 ac_cv_search_frexp="none required"
9509 echo "$as_me: failed program was:" >&5
9510 sed 's/^/| /' conftest.$ac_ext >&5
9513 rm -f conftest.err conftest.$ac_objext \
9514 conftest$ac_exeext conftest.$ac_ext
9515 if test "$ac_cv_search_frexp" = no; then
9517 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9518 cat >conftest.$ac_ext <<_ACEOF
9521 cat confdefs.h >>conftest.$ac_ext
9522 cat >>conftest.$ac_ext <<_ACEOF
9523 /* end confdefs.h. */
9525 /* Override any gcc2 internal prototype to avoid an error. */
9529 /* We use char because int might match the return type of a gcc2
9530 builtin and then its argument prototype would still apply. */
9540 rm -f conftest.$ac_objext conftest$ac_exeext
9541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9542 (eval $ac_link) 2>conftest.er1
9544 grep -v '^ *+' conftest.er1 >conftest.err
9546 cat conftest.err >&5
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); } &&
9549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); }; } &&
9555 { ac_try='test -s conftest$ac_exeext'
9556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); }; }; then
9561 ac_cv_search_frexp="-l$ac_lib"
9564 echo "$as_me: failed program was:" >&5
9565 sed 's/^/| /' conftest.$ac_ext >&5
9568 rm -f conftest.err conftest.$ac_objext \
9569 conftest$ac_exeext conftest.$ac_ext
9572 LIBS=$ac_func_search_save_LIBS
9574 echo "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5
9575 echo "${ECHO_T}$ac_cv_search_frexp" >&6
9576 if test "$ac_cv_search_frexp" != no; then
9577 test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
9582 echo "$as_me:$LINENO: checking for time_t in time.h" >&5
9583 echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6
9584 if test "${bu_cv_decl_time_t_time_h+set}" = set; then
9585 echo $ECHO_N "(cached) $ECHO_C" >&6
9587 cat >conftest.$ac_ext <<_ACEOF
9590 cat confdefs.h >>conftest.$ac_ext
9591 cat >>conftest.$ac_ext <<_ACEOF
9592 /* end confdefs.h. */
9602 rm -f conftest.$ac_objext
9603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9604 (eval $ac_compile) 2>conftest.er1
9606 grep -v '^ *+' conftest.er1 >conftest.err
9608 cat conftest.err >&5
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); } &&
9611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616 (exit $ac_status); }; } &&
9617 { ac_try='test -s conftest.$ac_objext'
9618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); }; }; then
9623 bu_cv_decl_time_t_time_h=yes
9625 echo "$as_me: failed program was:" >&5
9626 sed 's/^/| /' conftest.$ac_ext >&5
9628 bu_cv_decl_time_t_time_h=no
9630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9633 echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5
9634 echo "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6
9635 if test $bu_cv_decl_time_t_time_h = yes; then
9637 cat >>confdefs.h <<\_ACEOF
9638 #define HAVE_TIME_T_IN_TIME_H 1
9643 echo "$as_me:$LINENO: checking for time_t in sys/types.h" >&5
9644 echo $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6
9645 if test "${bu_cv_decl_time_t_types_h+set}" = set; then
9646 echo $ECHO_N "(cached) $ECHO_C" >&6
9648 cat >conftest.$ac_ext <<_ACEOF
9651 cat confdefs.h >>conftest.$ac_ext
9652 cat >>conftest.$ac_ext <<_ACEOF
9653 /* end confdefs.h. */
9654 #include <sys/types.h>
9663 rm -f conftest.$ac_objext
9664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9665 (eval $ac_compile) 2>conftest.er1
9667 grep -v '^ *+' conftest.er1 >conftest.err
9669 cat conftest.err >&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); } &&
9672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677 (exit $ac_status); }; } &&
9678 { ac_try='test -s conftest.$ac_objext'
9679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); }; }; then
9684 bu_cv_decl_time_t_types_h=yes
9686 echo "$as_me: failed program was:" >&5
9687 sed 's/^/| /' conftest.$ac_ext >&5
9689 bu_cv_decl_time_t_types_h=no
9691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9694 echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5
9695 echo "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6
9696 if test $bu_cv_decl_time_t_types_h = yes; then
9698 cat >>confdefs.h <<\_ACEOF
9699 #define HAVE_TIME_T_IN_TYPES_H 1
9704 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
9705 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
9706 if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then
9707 echo $ECHO_N "(cached) $ECHO_C" >&6
9709 cat >conftest.$ac_ext <<_ACEOF
9712 cat confdefs.h >>conftest.$ac_ext
9713 cat >>conftest.$ac_ext <<_ACEOF
9714 /* end confdefs.h. */
9719 extern int getopt (int, char *const*, const char *);
9724 rm -f conftest.$ac_objext
9725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9726 (eval $ac_compile) 2>conftest.er1
9728 grep -v '^ *+' conftest.er1 >conftest.err
9730 cat conftest.err >&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); } &&
9733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); }; } &&
9739 { ac_try='test -s conftest.$ac_objext'
9740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); }; }; then
9745 bu_cv_decl_getopt_unistd_h=yes
9747 echo "$as_me: failed program was:" >&5
9748 sed 's/^/| /' conftest.$ac_ext >&5
9750 bu_cv_decl_getopt_unistd_h=no
9752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9755 echo "$as_me:$LINENO: result: $bu_cv_decl_getopt_unistd_h" >&5
9756 echo "${ECHO_T}$bu_cv_decl_getopt_unistd_h" >&6
9757 if test $bu_cv_decl_getopt_unistd_h = yes; then
9759 cat >>confdefs.h <<\_ACEOF
9760 #define HAVE_DECL_GETOPT 1
9765 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
9767 echo "$as_me:$LINENO: checking for utime.h" >&5
9768 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
9769 if test "${bu_cv_header_utime_h+set}" = set; then
9770 echo $ECHO_N "(cached) $ECHO_C" >&6
9772 cat >conftest.$ac_ext <<_ACEOF
9775 cat confdefs.h >>conftest.$ac_ext
9776 cat >>conftest.$ac_ext <<_ACEOF
9777 /* end confdefs.h. */
9778 #include <sys/types.h>
9791 rm -f conftest.$ac_objext
9792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9793 (eval $ac_compile) 2>conftest.er1
9795 grep -v '^ *+' conftest.er1 >conftest.err
9797 cat conftest.err >&5
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); } &&
9800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); }; } &&
9806 { ac_try='test -s conftest.$ac_objext'
9807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); }; }; then
9812 bu_cv_header_utime_h=yes
9814 echo "$as_me: failed program was:" >&5
9815 sed 's/^/| /' conftest.$ac_ext >&5
9817 bu_cv_header_utime_h=no
9819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9822 echo "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5
9823 echo "${ECHO_T}$bu_cv_header_utime_h" >&6
9824 if test $bu_cv_header_utime_h = yes; then
9826 cat >>confdefs.h <<\_ACEOF
9827 #define HAVE_GOOD_UTIME_H 1
9832 echo "$as_me:$LINENO: checking whether fprintf must be declared" >&5
9833 echo $ECHO_N "checking whether fprintf must be declared... $ECHO_C" >&6
9834 if test "${bfd_cv_decl_needed_fprintf+set}" = set; then
9835 echo $ECHO_N "(cached) $ECHO_C" >&6
9837 cat >conftest.$ac_ext <<_ACEOF
9840 cat confdefs.h >>conftest.$ac_ext
9841 cat >>conftest.$ac_ext <<_ACEOF
9842 /* end confdefs.h. */
9845 #ifdef HAVE_STRING_H
9848 #ifdef HAVE_STRINGS_H
9849 #include <strings.h>
9852 #ifdef HAVE_STDLIB_H
9855 #ifdef HAVE_UNISTD_H
9861 char *(*pfn) = (char *(*)) fprintf
9866 rm -f conftest.$ac_objext
9867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9868 (eval $ac_compile) 2>conftest.er1
9870 grep -v '^ *+' conftest.er1 >conftest.err
9872 cat conftest.err >&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); } &&
9875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); }; } &&
9881 { ac_try='test -s conftest.$ac_objext'
9882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); }; }; then
9887 bfd_cv_decl_needed_fprintf=no
9889 echo "$as_me: failed program was:" >&5
9890 sed 's/^/| /' conftest.$ac_ext >&5
9892 bfd_cv_decl_needed_fprintf=yes
9894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9897 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_fprintf" >&5
9898 echo "${ECHO_T}$bfd_cv_decl_needed_fprintf" >&6
9899 if test $bfd_cv_decl_needed_fprintf = yes; then
9901 cat >>confdefs.h <<\_ACEOF
9902 #define NEED_DECLARATION_FPRINTF 1
9907 echo "$as_me:$LINENO: checking whether strstr must be declared" >&5
9908 echo $ECHO_N "checking whether strstr must be declared... $ECHO_C" >&6
9909 if test "${bfd_cv_decl_needed_strstr+set}" = set; then
9910 echo $ECHO_N "(cached) $ECHO_C" >&6
9912 cat >conftest.$ac_ext <<_ACEOF
9915 cat confdefs.h >>conftest.$ac_ext
9916 cat >>conftest.$ac_ext <<_ACEOF
9917 /* end confdefs.h. */
9920 #ifdef HAVE_STRING_H
9923 #ifdef HAVE_STRINGS_H
9924 #include <strings.h>
9927 #ifdef HAVE_STDLIB_H
9930 #ifdef HAVE_UNISTD_H
9936 char *(*pfn) = (char *(*)) strstr
9941 rm -f conftest.$ac_objext
9942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9943 (eval $ac_compile) 2>conftest.er1
9945 grep -v '^ *+' conftest.er1 >conftest.err
9947 cat conftest.err >&5
9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 (exit $ac_status); } &&
9950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); }; } &&
9956 { ac_try='test -s conftest.$ac_objext'
9957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); }; }; then
9962 bfd_cv_decl_needed_strstr=no
9964 echo "$as_me: failed program was:" >&5
9965 sed 's/^/| /' conftest.$ac_ext >&5
9967 bfd_cv_decl_needed_strstr=yes
9969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9972 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strstr" >&5
9973 echo "${ECHO_T}$bfd_cv_decl_needed_strstr" >&6
9974 if test $bfd_cv_decl_needed_strstr = yes; then
9976 cat >>confdefs.h <<\_ACEOF
9977 #define NEED_DECLARATION_STRSTR 1
9982 echo "$as_me:$LINENO: checking whether sbrk must be declared" >&5
9983 echo $ECHO_N "checking whether sbrk must be declared... $ECHO_C" >&6
9984 if test "${bfd_cv_decl_needed_sbrk+set}" = set; then
9985 echo $ECHO_N "(cached) $ECHO_C" >&6
9987 cat >conftest.$ac_ext <<_ACEOF
9990 cat confdefs.h >>conftest.$ac_ext
9991 cat >>conftest.$ac_ext <<_ACEOF
9992 /* end confdefs.h. */
9995 #ifdef HAVE_STRING_H
9998 #ifdef HAVE_STRINGS_H
9999 #include <strings.h>
10002 #ifdef HAVE_STDLIB_H
10003 #include <stdlib.h>
10005 #ifdef HAVE_UNISTD_H
10006 #include <unistd.h>
10011 char *(*pfn) = (char *(*)) sbrk
10016 rm -f conftest.$ac_objext
10017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10018 (eval $ac_compile) 2>conftest.er1
10020 grep -v '^ *+' conftest.er1 >conftest.err
10022 cat conftest.err >&5
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); } &&
10025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10027 (eval $ac_try) 2>&5
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); }; } &&
10031 { ac_try='test -s conftest.$ac_objext'
10032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10033 (eval $ac_try) 2>&5
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); }; }; then
10037 bfd_cv_decl_needed_sbrk=no
10039 echo "$as_me: failed program was:" >&5
10040 sed 's/^/| /' conftest.$ac_ext >&5
10042 bfd_cv_decl_needed_sbrk=yes
10044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10047 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_sbrk" >&5
10048 echo "${ECHO_T}$bfd_cv_decl_needed_sbrk" >&6
10049 if test $bfd_cv_decl_needed_sbrk = yes; then
10051 cat >>confdefs.h <<\_ACEOF
10052 #define NEED_DECLARATION_SBRK 1
10057 echo "$as_me:$LINENO: checking whether getenv must be declared" >&5
10058 echo $ECHO_N "checking whether getenv must be declared... $ECHO_C" >&6
10059 if test "${bfd_cv_decl_needed_getenv+set}" = set; then
10060 echo $ECHO_N "(cached) $ECHO_C" >&6
10062 cat >conftest.$ac_ext <<_ACEOF
10065 cat confdefs.h >>conftest.$ac_ext
10066 cat >>conftest.$ac_ext <<_ACEOF
10067 /* end confdefs.h. */
10070 #ifdef HAVE_STRING_H
10071 #include <string.h>
10073 #ifdef HAVE_STRINGS_H
10074 #include <strings.h>
10077 #ifdef HAVE_STDLIB_H
10078 #include <stdlib.h>
10080 #ifdef HAVE_UNISTD_H
10081 #include <unistd.h>
10086 char *(*pfn) = (char *(*)) getenv
10091 rm -f conftest.$ac_objext
10092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10093 (eval $ac_compile) 2>conftest.er1
10095 grep -v '^ *+' conftest.er1 >conftest.err
10097 cat conftest.err >&5
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); } &&
10100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10102 (eval $ac_try) 2>&5
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); }; } &&
10106 { ac_try='test -s conftest.$ac_objext'
10107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10108 (eval $ac_try) 2>&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); }; }; then
10112 bfd_cv_decl_needed_getenv=no
10114 echo "$as_me: failed program was:" >&5
10115 sed 's/^/| /' conftest.$ac_ext >&5
10117 bfd_cv_decl_needed_getenv=yes
10119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10122 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_getenv" >&5
10123 echo "${ECHO_T}$bfd_cv_decl_needed_getenv" >&6
10124 if test $bfd_cv_decl_needed_getenv = yes; then
10126 cat >>confdefs.h <<\_ACEOF
10127 #define NEED_DECLARATION_GETENV 1
10132 echo "$as_me:$LINENO: checking whether environ must be declared" >&5
10133 echo $ECHO_N "checking whether environ must be declared... $ECHO_C" >&6
10134 if test "${bfd_cv_decl_needed_environ+set}" = set; then
10135 echo $ECHO_N "(cached) $ECHO_C" >&6
10137 cat >conftest.$ac_ext <<_ACEOF
10140 cat confdefs.h >>conftest.$ac_ext
10141 cat >>conftest.$ac_ext <<_ACEOF
10142 /* end confdefs.h. */
10145 #ifdef HAVE_STRING_H
10146 #include <string.h>
10148 #ifdef HAVE_STRINGS_H
10149 #include <strings.h>
10152 #ifdef HAVE_STDLIB_H
10153 #include <stdlib.h>
10155 #ifdef HAVE_UNISTD_H
10156 #include <unistd.h>
10161 char *(*pfn) = (char *(*)) environ
10166 rm -f conftest.$ac_objext
10167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10168 (eval $ac_compile) 2>conftest.er1
10170 grep -v '^ *+' conftest.er1 >conftest.err
10172 cat conftest.err >&5
10173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 (exit $ac_status); } &&
10175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10177 (eval $ac_try) 2>&5
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); }; } &&
10181 { ac_try='test -s conftest.$ac_objext'
10182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10183 (eval $ac_try) 2>&5
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); }; }; then
10187 bfd_cv_decl_needed_environ=no
10189 echo "$as_me: failed program was:" >&5
10190 sed 's/^/| /' conftest.$ac_ext >&5
10192 bfd_cv_decl_needed_environ=yes
10194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10197 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_environ" >&5
10198 echo "${ECHO_T}$bfd_cv_decl_needed_environ" >&6
10199 if test $bfd_cv_decl_needed_environ = yes; then
10201 cat >>confdefs.h <<\_ACEOF
10202 #define NEED_DECLARATION_ENVIRON 1
10210 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
10212 cat >>confdefs.h <<\_ACEOF
10213 #define USE_BINARY_FOPEN 1
10218 # target-specific stuff:
10220 # Canonicalize the secondary target names.
10221 if test -n "$enable_targets"; then
10222 for targ in `echo $enable_targets | sed 's/,/ /g'`
10224 result=`$ac_config_sub $targ 2>/dev/null`
10225 if test -n "$result"; then
10226 canon_targets="$canon_targets $result"
10228 # Allow targets that config.sub doesn't recognize, like "all".
10229 canon_targets="$canon_targets $targ"
10245 for targ in $target $canon_targets
10247 if test "x$targ" = "xall"; then
10249 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
10250 BUILD_SRCONV='$(SRCONV_PROG)'
10251 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
10254 i[3-7]86*-*-netware*)
10255 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
10256 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
10259 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
10260 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
10262 powerpc*-*-netware*)
10263 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
10264 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
10267 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
10268 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
10272 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
10276 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10277 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
10278 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10280 arm-*-pe* | arm-*-wince)
10281 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10282 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
10283 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10286 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10287 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
10288 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10290 arm*-* | xscale-* | strongarm-* | d10v-*)
10291 OBJDUMP_DEFS="-DDISASSEMBLER_NEEDS_RELOCS"
10293 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
10294 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10295 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
10296 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10297 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
10299 i[3-7]86-*-interix)
10300 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
10301 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
10303 powerpc*-aix5.[01])
10306 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
10308 powerpc*-*-pe* | powerpc*-*-cygwin*)
10309 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10310 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
10311 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10314 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10315 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
10316 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10319 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10320 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
10321 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10324 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10325 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
10326 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10329 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10330 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
10336 if test "${with_windres+set}" = set; then
10337 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10351 cat >>confdefs.h <<_ACEOF
10352 #define TARGET "${target}"
10357 . $srcdir/../bfd/config.bfd
10358 if test "x$targ_underscore" = "xyes"; then
10364 cat >>confdefs.h <<_ACEOF
10365 #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
10370 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
10372 # Canonicalize the secondary target names.
10373 result=`$ac_config_sub $targ_alias 2>/dev/null`
10374 if test -n "$result"; then
10380 . ${srcdir}/configure.tgt
10382 EMULATION=$targ_emul
10383 EMULATION_VECTOR=$targ_emul_vector
10389 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
10390 ac_config_commands="$ac_config_commands default"
10391 cat >confcache <<\_ACEOF
10392 # This file is a shell script that caches the results of configure
10393 # tests run on this system so they can be shared between configure
10394 # scripts and configure runs, see configure's option --config-cache.
10395 # It is not useful on other systems. If it contains results you don't
10396 # want to keep, you may remove or edit it.
10398 # config.status only pays attention to the cache file if you give it
10399 # the --recheck option to rerun configure.
10401 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10402 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10403 # following values.
10407 # The following way of writing the cache mishandles newlines in values,
10408 # but we know of no workaround that is simple, portable, and efficient.
10409 # So, don't put newlines in cache variables' values.
10410 # Ultrix sh set writes to stderr and can't be redirected directly,
10411 # and sets the high bit in the cache file unless we assign to the vars.
10414 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10416 # `set' does not quote correctly, so add quotes (double-quote
10417 # substitution turns \\\\ into \\, and sed turns \\ into \).
10420 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10423 # `set' quotes correctly as required by POSIX, so do not add quotes.
10425 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10432 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10434 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10436 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10437 if test -w $cache_file; then
10438 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10439 cat confcache >$cache_file
10441 echo "not updating unwritable cache $cache_file"
10446 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10447 # Let make expand exec_prefix.
10448 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10450 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10451 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10452 # trailing colons and then remove the whole line if VPATH becomes empty
10453 # (actually we leave an empty line to preserve line numbers).
10454 if test "x$srcdir" = x.; then
10455 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10456 s/:*\$(srcdir):*/:/;
10457 s/:*\${srcdir}:*/:/;
10459 s/^\([^=]*=[ ]*\):*/\1/;
10465 DEFS=-DHAVE_CONFIG_H
10469 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10470 # 1. Remove the extension, and $U if already installed.
10471 ac_i=`echo "$ac_i" |
10472 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10474 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10475 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10477 LIBOBJS=$ac_libobjs
10479 LTLIBOBJS=$ac_ltlibobjs
10482 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10483 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10484 Usually this means the macro was only invoked conditionally." >&5
10485 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10486 Usually this means the macro was only invoked conditionally." >&2;}
10487 { (exit 1); exit 1; }; }
10489 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10490 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10491 Usually this means the macro was only invoked conditionally." >&5
10492 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10493 Usually this means the macro was only invoked conditionally." >&2;}
10494 { (exit 1); exit 1; }; }
10496 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10497 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10498 Usually this means the macro was only invoked conditionally." >&5
10499 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10500 Usually this means the macro was only invoked conditionally." >&2;}
10501 { (exit 1); exit 1; }; }
10504 : ${CONFIG_STATUS=./config.status}
10505 ac_clean_files_save=$ac_clean_files
10506 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10507 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10508 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10509 cat >$CONFIG_STATUS <<_ACEOF
10511 # Generated by $as_me.
10512 # Run this file to recreate the current configuration.
10513 # Compiler output produced by configure, useful for debugging
10514 # configure, is in config.log if it exists.
10517 ac_cs_recheck=false
10519 SHELL=\${CONFIG_SHELL-$SHELL}
10522 cat >>$CONFIG_STATUS <<\_ACEOF
10523 ## --------------------- ##
10524 ## M4sh Initialization. ##
10525 ## --------------------- ##
10527 # Be Bourne compatible
10528 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10531 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10532 # is contrary to our usage. Disable this feature.
10533 alias -g '${1+"$@"}'='"$@"'
10534 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10537 DUALCASE=1; export DUALCASE # for MKS sh
10539 # Support unset when possible.
10540 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10547 # Work around bugs in pre-3.0 UWIN ksh.
10548 $as_unset ENV MAIL MAILPATH
10555 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10556 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10557 LC_TELEPHONE LC_TIME
10559 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10560 eval $as_var=C; export $as_var
10566 # Required to use basename.
10567 if expr a : '\(a\)' >/dev/null 2>&1; then
10573 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10574 as_basename=basename
10580 # Name of the executable.
10581 as_me=`$as_basename "$0" ||
10582 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10583 X"$0" : 'X\(//\)$' \| \
10584 X"$0" : 'X\(/\)$' \| \
10585 . : '\(.\)' 2>/dev/null ||
10587 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10588 /^X\/\(\/\/\)$/{ s//\1/; q; }
10589 /^X\/\(\/\).*/{ s//\1/; q; }
10593 # PATH needs CR, and LINENO needs CR and PATH.
10594 # Avoid depending upon Character Ranges.
10595 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10596 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10597 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10598 as_cr_digits='0123456789'
10599 as_cr_alnum=$as_cr_Letters$as_cr_digits
10601 # The user is always right.
10602 if test "${PATH_SEPARATOR+set}" != set; then
10603 echo "#! /bin/sh" >conf$$.sh
10604 echo "exit 0" >>conf$$.sh
10606 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10615 as_lineno_1=$LINENO
10616 as_lineno_2=$LINENO
10617 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10618 test "x$as_lineno_1" != "x$as_lineno_2" &&
10619 test "x$as_lineno_3" = "x$as_lineno_2" || {
10620 # Find who we are. Look in the path if we contain no path at all
10623 *[\\/]* ) as_myself=$0 ;;
10624 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10625 for as_dir in $PATH
10628 test -z "$as_dir" && as_dir=.
10629 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10634 # We did not find ourselves, most probably we were run as `sh COMMAND'
10635 # in which case we are not to be found in the path.
10636 if test "x$as_myself" = x; then
10639 if test ! -f "$as_myself"; then
10640 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10641 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10642 { (exit 1); exit 1; }; }
10644 case $CONFIG_SHELL in
10646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10647 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10650 test -z "$as_dir" && as_dir=.
10651 for as_base in sh bash ksh sh5; do
10654 if ("$as_dir/$as_base" -c '
10655 as_lineno_1=$LINENO
10656 as_lineno_2=$LINENO
10657 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10658 test "x$as_lineno_1" != "x$as_lineno_2" &&
10659 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10660 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10661 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10662 CONFIG_SHELL=$as_dir/$as_base
10663 export CONFIG_SHELL
10664 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10672 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10673 # uniformly replaced by the line number. The first 'sed' inserts a
10674 # line-number line before each line; the second 'sed' does the real
10675 # work. The second script uses 'N' to pair each line-number line
10676 # with the numbered line, and appends trailing '-' during
10677 # substitution so that $LINENO is not a special case at line end.
10678 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10679 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10680 sed '=' <$as_myself |
10685 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10688 s,^['$as_cr_digits']*\n,,
10689 ' >$as_me.lineno &&
10690 chmod +x $as_me.lineno ||
10691 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10692 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10693 { (exit 1); exit 1; }; }
10695 # Don't try to exec as it changes $[0], causing all sort of problems
10696 # (the dirname of $[0] is not the place where we might find the
10697 # original and so on. Autoconf is especially sensible to this).
10699 # Exit status is that of the last command.
10704 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10705 *c*,-n*) ECHO_N= ECHO_C='
10707 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10708 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10711 if expr a : '\(a\)' >/dev/null 2>&1; then
10717 rm -f conf$$ conf$$.exe conf$$.file
10719 if ln -s conf$$.file conf$$ 2>/dev/null; then
10720 # We could just check for DJGPP; but this test a) works b) is more generic
10721 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10722 if test -f conf$$.exe; then
10723 # Don't use ln at all; we don't have any links
10728 elif ln conf$$.file conf$$ 2>/dev/null; then
10733 rm -f conf$$ conf$$.exe conf$$.file
10735 if mkdir -p . 2>/dev/null; then
10738 test -d ./-p && rmdir ./-p
10742 as_executable_p="test -f"
10744 # Sed expression to map a string onto a valid CPP name.
10745 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10747 # Sed expression to map a string onto a valid variable name.
10748 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10752 # We need space, tab and new line, in precisely that order.
10762 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10763 # report actual input values of CONFIG_FILES etc. instead of their
10764 # values after options handling. Logging --version etc. is OK.
10768 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10769 ## Running $as_me. ##
10774 This file was extended by $as_me, which was
10775 generated by GNU Autoconf 2.59. Invocation command line was
10777 CONFIG_FILES = $CONFIG_FILES
10778 CONFIG_HEADERS = $CONFIG_HEADERS
10779 CONFIG_LINKS = $CONFIG_LINKS
10780 CONFIG_COMMANDS = $CONFIG_COMMANDS
10784 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10788 # Files that config.status was made for.
10789 if test -n "$ac_config_files"; then
10790 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10793 if test -n "$ac_config_headers"; then
10794 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10797 if test -n "$ac_config_links"; then
10798 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10801 if test -n "$ac_config_commands"; then
10802 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10805 cat >>$CONFIG_STATUS <<\_ACEOF
10808 \`$as_me' instantiates files from templates according to the
10809 current configuration.
10811 Usage: $0 [OPTIONS] [FILE]...
10813 -h, --help print this help, then exit
10814 -V, --version print version number, then exit
10815 -q, --quiet do not print progress messages
10816 -d, --debug don't remove temporary files
10817 --recheck update $as_me by reconfiguring in the same conditions
10818 --file=FILE[:TEMPLATE]
10819 instantiate the configuration file FILE
10820 --header=FILE[:TEMPLATE]
10821 instantiate the configuration header FILE
10823 Configuration files:
10826 Configuration headers:
10829 Configuration commands:
10832 Report bugs to <bug-autoconf@gnu.org>."
10835 cat >>$CONFIG_STATUS <<_ACEOF
10838 configured by $0, generated by GNU Autoconf 2.59,
10839 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10841 Copyright (C) 2003 Free Software Foundation, Inc.
10842 This config.status script is free software; the Free Software Foundation
10843 gives unlimited permission to copy, distribute and modify it."
10848 cat >>$CONFIG_STATUS <<\_ACEOF
10849 # If no file are specified by the user, then we need to provide default
10850 # value. By we need to know if files were specified by the user.
10856 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10857 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10865 *) # This is not an option, so the user has probably given explicit
10868 ac_need_defaults=false;;
10872 # Handling of the options.
10874 cat >>$CONFIG_STATUS <<\_ACEOF
10875 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10877 --version | --vers* | -V )
10878 echo "$ac_cs_version"; exit 0 ;;
10880 # Conflict between --help and --header
10881 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10882 Try \`$0 --help' for more information." >&5
10883 echo "$as_me: error: ambiguous option: $1
10884 Try \`$0 --help' for more information." >&2;}
10885 { (exit 1); exit 1; }; };;
10886 --help | --hel | -h )
10887 echo "$ac_cs_usage"; exit 0 ;;
10888 --debug | --d* | -d )
10890 --file | --fil | --fi | --f )
10892 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10893 ac_need_defaults=false;;
10894 --header | --heade | --head | --hea )
10896 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10897 ac_need_defaults=false;;
10898 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10899 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10902 # This is an error.
10903 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10904 Try \`$0 --help' for more information." >&5
10905 echo "$as_me: error: unrecognized option: $1
10906 Try \`$0 --help' for more information." >&2;}
10907 { (exit 1); exit 1; }; } ;;
10909 *) ac_config_targets="$ac_config_targets $1" ;;
10915 ac_configure_extra_args=
10917 if $ac_cs_silent; then
10919 ac_configure_extra_args="$ac_configure_extra_args --silent"
10923 cat >>$CONFIG_STATUS <<_ACEOF
10924 if \$ac_cs_recheck; then
10925 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10926 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10931 cat >>$CONFIG_STATUS <<_ACEOF
10933 # INIT-COMMANDS section.
10936 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10942 cat >>$CONFIG_STATUS <<\_ACEOF
10943 for ac_config_target in $ac_config_targets
10945 case "$ac_config_target" in
10946 # Handling of arguments.
10947 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10948 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10949 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
10950 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10951 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
10952 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
10953 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10954 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10955 { (exit 1); exit 1; }; };;
10959 # If the user did not use the arguments to specify the items to instantiate,
10960 # then the envvar interface is used. Set only those that are not.
10961 # We use the long form for the default assignment because of an extremely
10962 # bizarre bug on SunOS 4.1.3.
10963 if $ac_need_defaults; then
10964 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10965 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10966 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10969 # Have a temporary directory for convenience. Make it in the build tree
10970 # simply because there is no reason to put it here, and in addition,
10971 # creating and moving files from /tmp can sometimes cause problems.
10972 # Create a temporary directory, and hook for its removal unless debugging.
10975 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10976 trap '{ (exit 1); exit 1; }' 1 2 13 15
10979 # Create a (secure) tmp directory for tmp files.
10982 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10983 test -n "$tmp" && test -d "$tmp"
10986 tmp=./confstat$$-$RANDOM
10987 (umask 077 && mkdir $tmp)
10990 echo "$me: cannot create a temporary directory in ." >&2
10991 { (exit 1); exit 1; }
10996 cat >>$CONFIG_STATUS <<_ACEOF
10999 # CONFIG_FILES section.
11002 # No need to generate the scripts if there are no CONFIG_FILES.
11003 # This happens for instance when ./config.status config.h
11004 if test -n "\$CONFIG_FILES"; then
11005 # Protect against being on the right side of a sed subst in config.status.
11006 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11007 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11008 s,@SHELL@,$SHELL,;t t
11009 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11010 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11011 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11012 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11013 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11014 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11015 s,@exec_prefix@,$exec_prefix,;t t
11016 s,@prefix@,$prefix,;t t
11017 s,@program_transform_name@,$program_transform_name,;t t
11018 s,@bindir@,$bindir,;t t
11019 s,@sbindir@,$sbindir,;t t
11020 s,@libexecdir@,$libexecdir,;t t
11021 s,@datadir@,$datadir,;t t
11022 s,@sysconfdir@,$sysconfdir,;t t
11023 s,@sharedstatedir@,$sharedstatedir,;t t
11024 s,@localstatedir@,$localstatedir,;t t
11025 s,@libdir@,$libdir,;t t
11026 s,@includedir@,$includedir,;t t
11027 s,@oldincludedir@,$oldincludedir,;t t
11028 s,@infodir@,$infodir,;t t
11029 s,@mandir@,$mandir,;t t
11030 s,@build_alias@,$build_alias,;t t
11031 s,@host_alias@,$host_alias,;t t
11032 s,@target_alias@,$target_alias,;t t
11033 s,@DEFS@,$DEFS,;t t
11034 s,@ECHO_C@,$ECHO_C,;t t
11035 s,@ECHO_N@,$ECHO_N,;t t
11036 s,@ECHO_T@,$ECHO_T,;t t
11037 s,@LIBS@,$LIBS,;t t
11038 s,@build@,$build,;t t
11039 s,@build_cpu@,$build_cpu,;t t
11040 s,@build_vendor@,$build_vendor,;t t
11041 s,@build_os@,$build_os,;t t
11042 s,@host@,$host,;t t
11043 s,@host_cpu@,$host_cpu,;t t
11044 s,@host_vendor@,$host_vendor,;t t
11045 s,@host_os@,$host_os,;t t
11046 s,@target@,$target,;t t
11047 s,@target_cpu@,$target_cpu,;t t
11048 s,@target_vendor@,$target_vendor,;t t
11049 s,@target_os@,$target_os,;t t
11051 s,@CFLAGS@,$CFLAGS,;t t
11052 s,@LDFLAGS@,$LDFLAGS,;t t
11053 s,@CPPFLAGS@,$CPPFLAGS,;t t
11054 s,@ac_ct_CC@,$ac_ct_CC,;t t
11055 s,@EXEEXT@,$EXEEXT,;t t
11056 s,@OBJEXT@,$OBJEXT,;t t
11057 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11058 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11059 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11060 s,@CYGPATH_W@,$CYGPATH_W,;t t
11061 s,@PACKAGE@,$PACKAGE,;t t
11062 s,@VERSION@,$VERSION,;t t
11063 s,@ACLOCAL@,$ACLOCAL,;t t
11064 s,@AUTOCONF@,$AUTOCONF,;t t
11065 s,@AUTOMAKE@,$AUTOMAKE,;t t
11066 s,@AUTOHEADER@,$AUTOHEADER,;t t
11067 s,@MAKEINFO@,$MAKEINFO,;t t
11068 s,@install_sh@,$install_sh,;t t
11069 s,@STRIP@,$STRIP,;t t
11070 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11071 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11072 s,@mkdir_p@,$mkdir_p,;t t
11074 s,@SET_MAKE@,$SET_MAKE,;t t
11075 s,@am__leading_dot@,$am__leading_dot,;t t
11076 s,@AMTAR@,$AMTAR,;t t
11077 s,@am__tar@,$am__tar,;t t
11078 s,@am__untar@,$am__untar,;t t
11079 s,@DEPDIR@,$DEPDIR,;t t
11080 s,@am__include@,$am__include,;t t
11081 s,@am__quote@,$am__quote,;t t
11082 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11083 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11084 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11085 s,@CCDEPMODE@,$CCDEPMODE,;t t
11086 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11087 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11088 s,@LN_S@,$LN_S,;t t
11089 s,@RANLIB@,$RANLIB,;t t
11090 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11091 s,@LIBTOOL@,$LIBTOOL,;t t
11092 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
11093 s,@NO_WERROR@,$NO_WERROR,;t t
11094 s,@YACC@,$YACC,;t t
11096 s,@LEXLIB@,$LEXLIB,;t t
11097 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
11099 s,@EGREP@,$EGREP,;t t
11100 s,@ALLOCA@,$ALLOCA,;t t
11101 s,@USE_NLS@,$USE_NLS,;t t
11102 s,@MSGFMT@,$MSGFMT,;t t
11103 s,@GMSGFMT@,$GMSGFMT,;t t
11104 s,@XGETTEXT@,$XGETTEXT,;t t
11105 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
11106 s,@CATALOGS@,$CATALOGS,;t t
11107 s,@CATOBJEXT@,$CATOBJEXT,;t t
11108 s,@DATADIRNAME@,$DATADIRNAME,;t t
11109 s,@GMOFILES@,$GMOFILES,;t t
11110 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
11111 s,@INTLDEPS@,$INTLDEPS,;t t
11112 s,@INTLLIBS@,$INTLLIBS,;t t
11113 s,@INTLOBJS@,$INTLOBJS,;t t
11114 s,@POFILES@,$POFILES,;t t
11115 s,@POSUB@,$POSUB,;t t
11116 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
11117 s,@GT_NO@,$GT_NO,;t t
11118 s,@GT_YES@,$GT_YES,;t t
11119 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
11121 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11122 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11123 s,@MAINT@,$MAINT,;t t
11124 s,@HDEFINES@,$HDEFINES,;t t
11126 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
11127 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
11128 s,@DEMANGLER_NAME@,$DEMANGLER_NAME,;t t
11129 s,@NLMCONV_DEFS@,$NLMCONV_DEFS,;t t
11130 s,@BUILD_NLMCONV@,$BUILD_NLMCONV,;t t
11131 s,@BUILD_SRCONV@,$BUILD_SRCONV,;t t
11132 s,@BUILD_DLLTOOL@,$BUILD_DLLTOOL,;t t
11133 s,@DLLTOOL_DEFS@,$DLLTOOL_DEFS,;t t
11134 s,@BUILD_WINDRES@,$BUILD_WINDRES,;t t
11135 s,@BUILD_DLLWRAP@,$BUILD_DLLWRAP,;t t
11136 s,@BUILD_MISC@,$BUILD_MISC,;t t
11137 s,@OBJDUMP_DEFS@,$OBJDUMP_DEFS,;t t
11138 s,@EMULATION@,$EMULATION,;t t
11139 s,@EMULATION_VECTOR@,$EMULATION_VECTOR,;t t
11140 s,@LIBOBJS@,$LIBOBJS,;t t
11141 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11146 cat >>$CONFIG_STATUS <<\_ACEOF
11147 # Split the substitutions into bite-sized pieces for seds with
11148 # small command number limits, like on Digital OSF/1 and HP-UX.
11149 ac_max_sed_lines=48
11150 ac_sed_frag=1 # Number of current file.
11151 ac_beg=1 # First line for current file.
11152 ac_end=$ac_max_sed_lines # Line after last line for current file.
11155 while $ac_more_lines; do
11156 if test $ac_beg -gt 1; then
11157 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11159 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11161 if test ! -s $tmp/subs.frag; then
11162 ac_more_lines=false
11164 # The purpose of the label and of the branching condition is to
11165 # speed up the sed processing (if there are no `@' at all, there
11166 # is no need to browse any of the substitutions).
11167 # These are the two extra sed commands mentioned above.
11169 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11170 if test -z "$ac_sed_cmds"; then
11171 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11173 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11175 ac_sed_frag=`expr $ac_sed_frag + 1`
11177 ac_end=`expr $ac_end + $ac_max_sed_lines`
11180 if test -z "$ac_sed_cmds"; then
11183 fi # test -n "$CONFIG_FILES"
11186 cat >>$CONFIG_STATUS <<\_ACEOF
11187 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11188 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11190 - | *:- | *:-:* ) # input from stdin
11192 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11193 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11194 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11195 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11196 * ) ac_file_in=$ac_file.in ;;
11199 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11200 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11201 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11202 X"$ac_file" : 'X\(//\)[^/]' \| \
11203 X"$ac_file" : 'X\(//\)$' \| \
11204 X"$ac_file" : 'X\(/\)' \| \
11205 . : '\(.\)' 2>/dev/null ||
11207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11208 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11209 /^X\(\/\/\)$/{ s//\1/; q; }
11210 /^X\(\/\).*/{ s//\1/; q; }
11212 { if $as_mkdir_p; then
11217 while test ! -d "$as_dir"; do
11218 as_dirs="$as_dir $as_dirs"
11219 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11220 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11221 X"$as_dir" : 'X\(//\)[^/]' \| \
11222 X"$as_dir" : 'X\(//\)$' \| \
11223 X"$as_dir" : 'X\(/\)' \| \
11224 . : '\(.\)' 2>/dev/null ||
11226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11227 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11228 /^X\(\/\/\)$/{ s//\1/; q; }
11229 /^X\(\/\).*/{ s//\1/; q; }
11232 test ! -n "$as_dirs" || mkdir $as_dirs
11233 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11234 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11235 { (exit 1); exit 1; }; }; }
11239 if test "$ac_dir" != .; then
11240 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11241 # A "../" for each directory in $ac_dir_suffix.
11242 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11244 ac_dir_suffix= ac_top_builddir=
11248 .) # No --srcdir option. We are building in place.
11250 if test -z "$ac_top_builddir"; then
11253 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11255 [\\/]* | ?:[\\/]* ) # Absolute path.
11256 ac_srcdir=$srcdir$ac_dir_suffix;
11257 ac_top_srcdir=$srcdir ;;
11258 *) # Relative path.
11259 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11260 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11263 # Do not use `cd foo && pwd` to compute absolute paths, because
11264 # the directories may not exist.
11266 .) ac_abs_builddir="$ac_dir";;
11269 .) ac_abs_builddir=`pwd`;;
11270 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11271 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11274 case $ac_abs_builddir in
11275 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11277 case ${ac_top_builddir}. in
11278 .) ac_abs_top_builddir=$ac_abs_builddir;;
11279 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11280 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11283 case $ac_abs_builddir in
11284 .) ac_abs_srcdir=$ac_srcdir;;
11287 .) ac_abs_srcdir=$ac_abs_builddir;;
11288 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11289 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11292 case $ac_abs_builddir in
11293 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11295 case $ac_top_srcdir in
11296 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11297 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11298 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11304 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11305 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11308 # Let's still pretend it is `configure' which instantiates (i.e., don't
11309 # use $as_me), people would be surprised to read:
11310 # /* config.h. Generated by config.status. */
11311 if test x"$ac_file" = x-; then
11314 configure_input="$ac_file. "
11316 configure_input=$configure_input"Generated from `echo $ac_file_in |
11317 sed 's,.*/,,'` by configure."
11319 # First look for the input files in the build tree, otherwise in the
11321 ac_file_inputs=`IFS=:
11322 for f in $ac_file_in; do
11324 -) echo $tmp/stdin ;;
11326 # Absolute (can't be DOS-style, as IFS=:)
11327 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11328 echo "$as_me: error: cannot find input file: $f" >&2;}
11329 { (exit 1); exit 1; }; }
11332 if test -f "$f"; then
11335 elif test -f "$srcdir/$f"; then
11340 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11341 echo "$as_me: error: cannot find input file: $f" >&2;}
11342 { (exit 1); exit 1; }; }
11345 done` || { (exit 1); exit 1; }
11347 if test x"$ac_file" != x-; then
11348 { echo "$as_me:$LINENO: creating $ac_file" >&5
11349 echo "$as_me: creating $ac_file" >&6;}
11353 cat >>$CONFIG_STATUS <<_ACEOF
11357 cat >>$CONFIG_STATUS <<\_ACEOF
11359 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11360 s,@configure_input@,$configure_input,;t t
11361 s,@srcdir@,$ac_srcdir,;t t
11362 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11363 s,@top_srcdir@,$ac_top_srcdir,;t t
11364 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11365 s,@builddir@,$ac_builddir,;t t
11366 s,@abs_builddir@,$ac_abs_builddir,;t t
11367 s,@top_builddir@,$ac_top_builddir,;t t
11368 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11369 s,@INSTALL@,$ac_INSTALL,;t t
11370 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11372 if test x"$ac_file" != x-; then
11373 mv $tmp/out $ac_file
11381 cat >>$CONFIG_STATUS <<\_ACEOF
11384 # CONFIG_HEADER section.
11387 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11388 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11390 # ac_d sets the value in "#define NAME VALUE" lines.
11391 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11392 ac_dB='[ ].*$,\1#\2'
11395 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11396 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11397 ac_uB='$,\1#\2define\3'
11401 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11402 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11404 - | *:- | *:-:* ) # input from stdin
11406 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11407 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11408 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11409 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11410 * ) ac_file_in=$ac_file.in ;;
11413 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11414 echo "$as_me: creating $ac_file" >&6;}
11416 # First look for the input files in the build tree, otherwise in the
11418 ac_file_inputs=`IFS=:
11419 for f in $ac_file_in; do
11421 -) echo $tmp/stdin ;;
11423 # Absolute (can't be DOS-style, as IFS=:)
11424 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11425 echo "$as_me: error: cannot find input file: $f" >&2;}
11426 { (exit 1); exit 1; }; }
11427 # Do quote $f, to prevent DOS paths from being IFS'd.
11430 if test -f "$f"; then
11433 elif test -f "$srcdir/$f"; then
11438 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11439 echo "$as_me: error: cannot find input file: $f" >&2;}
11440 { (exit 1); exit 1; }; }
11443 done` || { (exit 1); exit 1; }
11444 # Remove the trailing spaces.
11445 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11449 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11450 # `conftest.undefs', that substitutes the proper values into
11451 # config.h.in to produce config.h. The first handles `#define'
11452 # templates, and the second `#undef' templates.
11453 # And first: Protect against being on the right side of a sed subst in
11454 # config.status. Protect against being in an unquoted here document
11455 # in config.status.
11456 rm -f conftest.defines conftest.undefs
11457 # Using a here document instead of a string reduces the quoting nightmare.
11458 # Putting comments in sed scripts is not portable.
11460 # `end' is used to avoid that the second main sed command (meant for
11461 # 0-ary CPP macros) applies to n-ary macro definitions.
11462 # See the Autoconf documentation for `clear'.
11463 cat >confdef2sed.sed <<\_ACEOF
11468 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11470 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11473 # If some macros were called several times there might be several times
11474 # the same #defines, which is useless. Nevertheless, we may not want to
11475 # sort them, since we want the *last* AC-DEFINE to be honored.
11476 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11477 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11478 rm -f confdef2sed.sed
11480 # This sed command replaces #undef with comments. This is necessary, for
11481 # example, in the case of _POSIX_SOURCE, which is predefined and required
11482 # on some systems where configure will not decide to define it.
11483 cat >>conftest.undefs <<\_ACEOF
11484 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11487 # Break up conftest.defines because some shells have a limit on the size
11488 # of here documents, and old seds have small limits too (100 cmds).
11489 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11490 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11491 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11492 echo ' :' >>$CONFIG_STATUS
11493 rm -f conftest.tail
11494 while grep . conftest.defines >/dev/null
11496 # Write a limited-size here document to $tmp/defines.sed.
11497 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11498 # Speed up: don't consider the non `#define' lines.
11499 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11500 # Work around the forget-to-reset-the-flag bug.
11501 echo 't clr' >>$CONFIG_STATUS
11502 echo ': clr' >>$CONFIG_STATUS
11503 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11505 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11507 mv $tmp/out $tmp/in
11509 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11510 rm -f conftest.defines
11511 mv conftest.tail conftest.defines
11513 rm -f conftest.defines
11514 echo ' fi # grep' >>$CONFIG_STATUS
11515 echo >>$CONFIG_STATUS
11517 # Break up conftest.undefs because some shells have a limit on the size
11518 # of here documents, and old seds have small limits too (100 cmds).
11519 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11520 rm -f conftest.tail
11521 while grep . conftest.undefs >/dev/null
11523 # Write a limited-size here document to $tmp/undefs.sed.
11524 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11525 # Speed up: don't consider the non `#undef'
11526 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11527 # Work around the forget-to-reset-the-flag bug.
11528 echo 't clr' >>$CONFIG_STATUS
11529 echo ': clr' >>$CONFIG_STATUS
11530 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11532 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11534 mv $tmp/out $tmp/in
11536 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11537 rm -f conftest.undefs
11538 mv conftest.tail conftest.undefs
11540 rm -f conftest.undefs
11542 cat >>$CONFIG_STATUS <<\_ACEOF
11543 # Let's still pretend it is `configure' which instantiates (i.e., don't
11544 # use $as_me), people would be surprised to read:
11545 # /* config.h. Generated by config.status. */
11546 if test x"$ac_file" = x-; then
11547 echo "/* Generated by configure. */" >$tmp/config.h
11549 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11551 cat $tmp/in >>$tmp/config.h
11553 if test x"$ac_file" != x-; then
11554 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11555 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11556 echo "$as_me: $ac_file is unchanged" >&6;}
11558 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11559 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11560 X"$ac_file" : 'X\(//\)[^/]' \| \
11561 X"$ac_file" : 'X\(//\)$' \| \
11562 X"$ac_file" : 'X\(/\)' \| \
11563 . : '\(.\)' 2>/dev/null ||
11565 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11566 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11567 /^X\(\/\/\)$/{ s//\1/; q; }
11568 /^X\(\/\).*/{ s//\1/; q; }
11570 { if $as_mkdir_p; then
11575 while test ! -d "$as_dir"; do
11576 as_dirs="$as_dir $as_dirs"
11577 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11578 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11579 X"$as_dir" : 'X\(//\)[^/]' \| \
11580 X"$as_dir" : 'X\(//\)$' \| \
11581 X"$as_dir" : 'X\(/\)' \| \
11582 . : '\(.\)' 2>/dev/null ||
11584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11585 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11586 /^X\(\/\/\)$/{ s//\1/; q; }
11587 /^X\(\/\).*/{ s//\1/; q; }
11590 test ! -n "$as_dirs" || mkdir $as_dirs
11591 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11592 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11593 { (exit 1); exit 1; }; }; }
11596 mv $tmp/config.h $ac_file
11600 rm -f $tmp/config.h
11602 # Compute $ac_file's index in $config_headers.
11604 for _am_header in $config_headers :; do
11605 case $_am_header in
11606 $ac_file | $ac_file:* )
11609 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11612 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
11613 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11614 X$ac_file : 'X\(//\)[^/]' \| \
11615 X$ac_file : 'X\(//\)$' \| \
11616 X$ac_file : 'X\(/\)' \| \
11617 . : '\(.\)' 2>/dev/null ||
11619 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11620 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11621 /^X\(\/\/\)$/{ s//\1/; q; }
11622 /^X\(\/\).*/{ s//\1/; q; }
11623 s/.*/./; q'`/stamp-h$_am_stamp_count
11626 cat >>$CONFIG_STATUS <<\_ACEOF
11629 # CONFIG_COMMANDS section.
11631 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11632 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11633 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11634 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11635 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11636 X"$ac_dest" : 'X\(//\)[^/]' \| \
11637 X"$ac_dest" : 'X\(//\)$' \| \
11638 X"$ac_dest" : 'X\(/\)' \| \
11639 . : '\(.\)' 2>/dev/null ||
11641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11642 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11643 /^X\(\/\/\)$/{ s//\1/; q; }
11644 /^X\(\/\).*/{ s//\1/; q; }
11646 { if $as_mkdir_p; then
11651 while test ! -d "$as_dir"; do
11652 as_dirs="$as_dir $as_dirs"
11653 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11654 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11655 X"$as_dir" : 'X\(//\)[^/]' \| \
11656 X"$as_dir" : 'X\(//\)$' \| \
11657 X"$as_dir" : 'X\(/\)' \| \
11658 . : '\(.\)' 2>/dev/null ||
11660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11661 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11662 /^X\(\/\/\)$/{ s//\1/; q; }
11663 /^X\(\/\).*/{ s//\1/; q; }
11666 test ! -n "$as_dirs" || mkdir $as_dirs
11667 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11668 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11669 { (exit 1); exit 1; }; }; }
11673 if test "$ac_dir" != .; then
11674 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11675 # A "../" for each directory in $ac_dir_suffix.
11676 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11678 ac_dir_suffix= ac_top_builddir=
11682 .) # No --srcdir option. We are building in place.
11684 if test -z "$ac_top_builddir"; then
11687 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11689 [\\/]* | ?:[\\/]* ) # Absolute path.
11690 ac_srcdir=$srcdir$ac_dir_suffix;
11691 ac_top_srcdir=$srcdir ;;
11692 *) # Relative path.
11693 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11694 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11697 # Do not use `cd foo && pwd` to compute absolute paths, because
11698 # the directories may not exist.
11700 .) ac_abs_builddir="$ac_dir";;
11703 .) ac_abs_builddir=`pwd`;;
11704 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11705 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11708 case $ac_abs_builddir in
11709 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11711 case ${ac_top_builddir}. in
11712 .) ac_abs_top_builddir=$ac_abs_builddir;;
11713 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11714 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11717 case $ac_abs_builddir in
11718 .) ac_abs_srcdir=$ac_srcdir;;
11721 .) ac_abs_srcdir=$ac_abs_builddir;;
11722 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11723 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11726 case $ac_abs_builddir in
11727 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11729 case $ac_top_srcdir in
11730 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11731 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11732 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11737 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11738 echo "$as_me: executing $ac_dest commands" >&6;}
11740 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11741 # Strip MF so we end up with the name of the file.
11742 mf=`echo "$mf" | sed -e 's/:.*$//'`
11743 # Check whether this is an Automake generated Makefile or not.
11744 # We used to match only the files named `Makefile.in', but
11745 # some people rename them; so instead we look at the file content.
11746 # Grep'ing the first line is not enough: some people post-process
11747 # each Makefile.in and add a new line on top of each file to say so.
11748 # So let's grep whole file.
11749 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11750 dirpart=`(dirname "$mf") 2>/dev/null ||
11751 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11752 X"$mf" : 'X\(//\)[^/]' \| \
11753 X"$mf" : 'X\(//\)$' \| \
11754 X"$mf" : 'X\(/\)' \| \
11755 . : '\(.\)' 2>/dev/null ||
11757 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11758 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11759 /^X\(\/\/\)$/{ s//\1/; q; }
11760 /^X\(\/\).*/{ s//\1/; q; }
11765 # Extract the definition of DEPDIR, am__include, and am__quote
11766 # from the Makefile without running `make'.
11767 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11768 test -z "$DEPDIR" && continue
11769 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11770 test -z "am__include" && continue
11771 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11772 # When using ansi2knr, U may be empty or an underscore; expand it
11773 U=`sed -n 's/^U = //p' < "$mf"`
11774 # Find all dependency output files, they are included files with
11775 # $(DEPDIR) in their names. We invoke sed twice because it is the
11776 # simplest approach to changing $(DEPDIR) to its actual value in the
11778 for file in `sed -n "
11779 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11780 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11781 # Make sure the directory exists.
11782 test -f "$dirpart/$file" && continue
11783 fdir=`(dirname "$file") 2>/dev/null ||
11784 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11785 X"$file" : 'X\(//\)[^/]' \| \
11786 X"$file" : 'X\(//\)$' \| \
11787 X"$file" : 'X\(/\)' \| \
11788 . : '\(.\)' 2>/dev/null ||
11790 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11791 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11792 /^X\(\/\/\)$/{ s//\1/; q; }
11793 /^X\(\/\).*/{ s//\1/; q; }
11795 { if $as_mkdir_p; then
11796 mkdir -p $dirpart/$fdir
11798 as_dir=$dirpart/$fdir
11800 while test ! -d "$as_dir"; do
11801 as_dirs="$as_dir $as_dirs"
11802 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11803 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11804 X"$as_dir" : 'X\(//\)[^/]' \| \
11805 X"$as_dir" : 'X\(//\)$' \| \
11806 X"$as_dir" : 'X\(/\)' \| \
11807 . : '\(.\)' 2>/dev/null ||
11809 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11810 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11811 /^X\(\/\/\)$/{ s//\1/; q; }
11812 /^X\(\/\).*/{ s//\1/; q; }
11815 test ! -n "$as_dirs" || mkdir $as_dirs
11816 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11817 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11818 { (exit 1); exit 1; }; }; }
11820 # echo "creating $dirpart/$file"
11821 echo '# dummy' > "$dirpart/$file"
11826 case "x$CONFIG_FILES" in
11827 *) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
11834 cat >>$CONFIG_STATUS <<\_ACEOF
11836 { (exit 0); exit 0; }
11838 chmod +x $CONFIG_STATUS
11839 ac_clean_files=$ac_clean_files_save
11842 # configure is writing to config.log, and then calls config.status.
11843 # config.status does its own redirection, appending to config.log.
11844 # Unfortunately, on DOS this fails, as config.log is still kept open
11845 # by configure, so config.status won't be able to write to it; its
11846 # output is simply discarded. So we exec the FD to /dev/null,
11847 # effectively closing config.log, so it can be properly (re)opened and
11848 # appended to by config.status. When coming back to configure, we
11849 # need to make the FD available again.
11850 if test "$no_create" != yes; then
11852 ac_config_status_args=
11853 test "$silent" = yes &&
11854 ac_config_status_args="$ac_config_status_args --quiet"
11856 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11858 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11859 # would make configure fail if this is the last instruction.
11860 $ac_cs_success || { (exit 1); exit 1; }