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="z8k-dis.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 PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S STRIP ac_ct_STRIP LIBTOOL WARN_CFLAGS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE bfdlibdir bfdincludedir CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l CC_FOR_BUILD EXEEXT_FOR_BUILD HDEFINES CGEN_MAINT_TRUE CGEN_MAINT_FALSE cgendir WIN32LDFLAGS WIN32LIBADD archdefs BFD_MACHINES 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 --enable-shared=PKGS build shared libraries default=no
854 --enable-static=PKGS build static libraries default=yes
855 --enable-fast-install=PKGS optimize for fast installation default=yes
856 --disable-libtool-lock avoid locking (might break parallel builds)
857 --enable-targets alternative target configurations
858 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
859 --enable-build-warnings Enable build-time compiler warnings if gcc is used
860 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing) to the casual installer
862 --enable-install-libbfd controls installation of libbfd and related headers
863 --disable-nls do not use Native Language Support
864 --enable-cgen-maint=dir build cgen generated files
867 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
868 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
869 --with-gnu-ld assume the C compiler uses GNU ld default=no
870 --with-pic try to use only PIC/non-PIC objects default=use both
871 --with-included-gettext use the GNU gettext library included here
873 Some influential environment variables:
874 CC C compiler command
875 CFLAGS C compiler flags
876 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
877 nonstandard directory <lib dir>
878 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
879 headers in a nonstandard directory <include dir>
882 Use these variables to override the choices made by `configure' or to help
883 it to find libraries and programs with nonstandard names/locations.
888 if test "$ac_init_help" = "recursive"; then
889 # If there are subdirs, report their specific --help.
891 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
892 test -d $ac_dir || continue
895 if test "$ac_dir" != .; then
896 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
897 # A "../" for each directory in $ac_dir_suffix.
898 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
900 ac_dir_suffix= ac_top_builddir=
904 .) # No --srcdir option. We are building in place.
906 if test -z "$ac_top_builddir"; then
909 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
911 [\\/]* | ?:[\\/]* ) # Absolute path.
912 ac_srcdir=$srcdir$ac_dir_suffix;
913 ac_top_srcdir=$srcdir ;;
915 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
916 ac_top_srcdir=$ac_top_builddir$srcdir ;;
919 # Do not use `cd foo && pwd` to compute absolute paths, because
920 # the directories may not exist.
922 .) ac_abs_builddir="$ac_dir";;
925 .) ac_abs_builddir=`pwd`;;
926 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
927 *) ac_abs_builddir=`pwd`/"$ac_dir";;
930 case $ac_abs_builddir in
931 .) ac_abs_top_builddir=${ac_top_builddir}.;;
933 case ${ac_top_builddir}. in
934 .) ac_abs_top_builddir=$ac_abs_builddir;;
935 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
936 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
939 case $ac_abs_builddir in
940 .) ac_abs_srcdir=$ac_srcdir;;
943 .) ac_abs_srcdir=$ac_abs_builddir;;
944 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
945 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
948 case $ac_abs_builddir in
949 .) ac_abs_top_srcdir=$ac_top_srcdir;;
951 case $ac_top_srcdir in
952 .) ac_abs_top_srcdir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
954 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
959 # Check for guested configure; otherwise get Cygnus style configure.
960 if test -f $ac_srcdir/configure.gnu; then
962 $SHELL $ac_srcdir/configure.gnu --help=recursive
963 elif test -f $ac_srcdir/configure; then
965 $SHELL $ac_srcdir/configure --help=recursive
966 elif test -f $ac_srcdir/configure.ac ||
967 test -f $ac_srcdir/configure.in; then
971 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
977 test -n "$ac_init_help" && exit 0
978 if $ac_init_version; then
981 Copyright (C) 2003 Free Software Foundation, Inc.
982 This configure script is free software; the Free Software Foundation
983 gives unlimited permission to copy, distribute and modify it.
989 This file contains any messages produced by compilers while
990 running configure, to aid debugging if configure makes a mistake.
992 It was created by $as_me, which was
993 generated by GNU Autoconf 2.59. Invocation command line was
1004 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1005 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1006 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1007 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1008 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1010 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1011 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1013 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1014 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1015 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1016 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1017 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1018 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1019 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1027 test -z "$as_dir" && as_dir=.
1028 echo "PATH: $as_dir"
1043 # Keep a trace of the command line.
1044 # Strip out --no-create and --no-recursion so they do not pile up.
1045 # Strip out --silent because we don't want to record it for future runs.
1046 # Also quote any args containing shell meta-characters.
1047 # Make two passes to allow for proper duplicate-argument suppression.
1052 ac_must_keep_next=false
1058 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1059 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1060 | -silent | --silent | --silen | --sile | --sil)
1062 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1063 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1066 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1068 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1069 if test $ac_must_keep_next = true; then
1070 ac_must_keep_next=false # Got value, back to normal.
1073 *=* | --config-cache | -C | -disable-* | --disable-* \
1074 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1075 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1076 | -with-* | --with-* | -without-* | --without-* | --x)
1077 case "$ac_configure_args0 " in
1078 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1081 -* ) ac_must_keep_next=true ;;
1084 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1085 # Get rid of the leading space.
1091 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1092 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1094 # When interrupted or exit'd, cleanup temporary files, and complete
1095 # config.log. We remove comments because anyway the quotes in there
1096 # would cause problems or look ugly.
1097 # WARNING: Be sure not to use single quotes in there, as some shells,
1098 # such as our DU 5.0 friend, will then `close' the trap.
1099 trap 'exit_status=$?
1100 # Save into config.log some information that might help in debugging.
1105 ## ---------------- ##
1106 ## Cache variables. ##
1107 ## ---------------- ##
1110 # The following way of writing the cache mishandles newlines in values,
1113 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1116 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1117 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1121 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1128 ## ----------------- ##
1129 ## Output variables. ##
1130 ## ----------------- ##
1133 for ac_var in $ac_subst_vars
1135 eval ac_val=$`echo $ac_var`
1136 echo "$ac_var='"'"'$ac_val'"'"'"
1140 if test -n "$ac_subst_files"; then
1147 for ac_var in $ac_subst_files
1149 eval ac_val=$`echo $ac_var`
1150 echo "$ac_var='"'"'$ac_val'"'"'"
1155 if test -s confdefs.h; then
1162 sed "/^$/d" confdefs.h | sort
1165 test "$ac_signal" != 0 &&
1166 echo "$as_me: caught signal $ac_signal"
1167 echo "$as_me: exit $exit_status"
1169 rm -f core *.core &&
1170 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1173 for ac_signal in 1 2 13 15; do
1174 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1178 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1179 rm -rf conftest* confdefs.h
1180 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1183 # Predefined preprocessor variables.
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_NAME "$PACKAGE_NAME"
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_STRING "$PACKAGE_STRING"
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1210 # Let the site file select an alternate cache file if it wants to.
1211 # Prefer explicitly selected file to automatically selected ones.
1212 if test -z "$CONFIG_SITE"; then
1213 if test "x$prefix" != xNONE; then
1214 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1216 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1219 for ac_site_file in $CONFIG_SITE; do
1220 if test -r "$ac_site_file"; then
1221 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1222 echo "$as_me: loading site script $ac_site_file" >&6;}
1223 sed 's/^/| /' "$ac_site_file" >&5
1228 if test -r "$cache_file"; then
1229 # Some versions of bash will fail to source /dev/null (special
1230 # files actually), so we avoid doing that.
1231 if test -f "$cache_file"; then
1232 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1233 echo "$as_me: loading cache $cache_file" >&6;}
1235 [\\/]* | ?:[\\/]* ) . $cache_file;;
1236 *) . ./$cache_file;;
1240 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1241 echo "$as_me: creating cache $cache_file" >&6;}
1245 # Check that the precious variables saved in the cache have kept the same
1247 ac_cache_corrupted=false
1248 for ac_var in `(set) 2>&1 |
1249 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1250 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1251 eval ac_new_set=\$ac_env_${ac_var}_set
1252 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1253 eval ac_new_val="\$ac_env_${ac_var}_value"
1254 case $ac_old_set,$ac_new_set in
1256 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1257 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1258 ac_cache_corrupted=: ;;
1260 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1261 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1262 ac_cache_corrupted=: ;;
1265 if test "x$ac_old_val" != "x$ac_new_val"; then
1266 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1267 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1268 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1269 echo "$as_me: former value: $ac_old_val" >&2;}
1270 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1271 echo "$as_me: current value: $ac_new_val" >&2;}
1272 ac_cache_corrupted=:
1275 # Pass precious variables to config.status.
1276 if test "$ac_new_set" = set; then
1278 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1279 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1280 *) ac_arg=$ac_var=$ac_new_val ;;
1282 case " $ac_configure_args " in
1283 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1284 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1288 if $ac_cache_corrupted; then
1289 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1290 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1291 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1292 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1293 { (exit 1); exit 1; }; }
1297 ac_cpp='$CPP $CPPFLAGS'
1298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1300 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
2355 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2356 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2357 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2358 echo $ECHO_N "(cached) $ECHO_C" >&6
2360 ac_check_lib_save_LIBS=$LIBS
2361 LIBS="-lcposix $LIBS"
2362 cat >conftest.$ac_ext <<_ACEOF
2365 cat confdefs.h >>conftest.$ac_ext
2366 cat >>conftest.$ac_ext <<_ACEOF
2367 /* end confdefs.h. */
2369 /* Override any gcc2 internal prototype to avoid an error. */
2373 /* We use char because int might match the return type of a gcc2
2374 builtin and then its argument prototype would still apply. */
2384 rm -f conftest.$ac_objext conftest$ac_exeext
2385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2386 (eval $ac_link) 2>conftest.er1
2388 grep -v '^ *+' conftest.er1 >conftest.err
2390 cat conftest.err >&5
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); } &&
2393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; } &&
2399 { ac_try='test -s conftest$ac_exeext'
2400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; }; then
2405 ac_cv_lib_cposix_strerror=yes
2407 echo "$as_me: failed program was:" >&5
2408 sed 's/^/| /' conftest.$ac_ext >&5
2410 ac_cv_lib_cposix_strerror=no
2412 rm -f conftest.err conftest.$ac_objext \
2413 conftest$ac_exeext conftest.$ac_ext
2414 LIBS=$ac_check_lib_save_LIBS
2416 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2417 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2418 if test $ac_cv_lib_cposix_strerror = yes; then
2419 LIBS="$LIBS -lcposix"
2425 # We currently only use the version number for the name of any shared
2426 # library. For user convenience, we always use the same version
2427 # number that BFD is using.
2428 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2430 am__api_version="1.4"
2431 # Find a good install program. We prefer a C program (faster),
2432 # so one script is as good as another. But avoid the broken or
2433 # incompatible versions:
2434 # SysV /etc/install, /usr/sbin/install
2435 # SunOS /usr/etc/install
2436 # IRIX /sbin/install
2438 # AmigaOS /C/install, which installs bootblocks on floppy discs
2439 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2440 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2441 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2442 # OS/2's system install, which has a completely different semantic
2443 # ./install, which can be erroneously created by make from ./install.sh.
2444 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2445 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2446 if test -z "$INSTALL"; then
2447 if test "${ac_cv_path_install+set}" = set; then
2448 echo $ECHO_N "(cached) $ECHO_C" >&6
2450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454 test -z "$as_dir" && as_dir=.
2455 # Account for people who put trailing slashes in PATH elements.
2457 ./ | .// | /cC/* | \
2458 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2459 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2462 # OSF1 and SCO ODT 3.0 have their own names for install.
2463 # Don't use installbsd from OSF since it installs stuff as root
2465 for ac_prog in ginstall scoinst install; do
2466 for ac_exec_ext in '' $ac_executable_extensions; do
2467 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2468 if test $ac_prog = install &&
2469 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2470 # AIX install. It has an incompatible calling convention.
2472 elif test $ac_prog = install &&
2473 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2474 # program-specific install script used by HP pwplus--don't use.
2477 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2489 if test "${ac_cv_path_install+set}" = set; then
2490 INSTALL=$ac_cv_path_install
2492 # As a last resort, use the slow shell script. We don't cache a
2493 # path for INSTALL within a source directory, because that will
2494 # break other packages using the cache if that directory is
2495 # removed, or if the path is relative.
2496 INSTALL=$ac_install_sh
2499 echo "$as_me:$LINENO: result: $INSTALL" >&5
2500 echo "${ECHO_T}$INSTALL" >&6
2502 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2503 # It thinks the first close brace ends the variable substitution.
2504 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2506 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2508 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2510 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2511 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2514 echo timestamp > conftestfile
2515 # Do `set' in a subshell so we don't clobber the current shell's
2516 # arguments. Must try -L first in case configure is actually a
2517 # symlink; some systems play weird games with the mod time of symlinks
2518 # (eg FreeBSD returns the mod time of the symlink's containing
2521 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
2522 if test "$*" = "X"; then
2524 set X `ls -t $srcdir/configure conftestfile`
2526 if test "$*" != "X $srcdir/configure conftestfile" \
2527 && test "$*" != "X conftestfile $srcdir/configure"; then
2529 # If neither matched, then we have a broken ls. This can happen
2530 # if, for instance, CONFIG_SHELL is bash and it inherits a
2531 # broken ls alias from the environment. This has actually
2532 # happened. Such a system could not be considered "sane".
2533 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2534 alias in your environment" >&5
2535 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2536 alias in your environment" >&2;}
2537 { (exit 1); exit 1; }; }
2540 test "$2" = conftestfile
2546 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2547 Check your system clock" >&5
2548 echo "$as_me: error: newly created file is older than distributed files!
2549 Check your system clock" >&2;}
2550 { (exit 1); exit 1; }; }
2553 echo "$as_me:$LINENO: result: yes" >&5
2554 echo "${ECHO_T}yes" >&6
2555 test "$program_prefix" != NONE &&
2556 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2557 # Use a double $ so make ignores it.
2558 test "$program_suffix" != NONE &&
2559 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2560 # Double any \ or $. echo might interpret backslashes.
2561 # By default was `s,x,x', remove it if useless.
2562 cat <<\_ACEOF >conftest.sed
2563 s/[\\$]/&&/g;s/;s,x,x,$//
2565 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2568 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2569 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2570 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2571 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2572 echo $ECHO_N "(cached) $ECHO_C" >&6
2574 cat >conftest.make <<\_ACEOF
2576 @echo 'ac_maketemp="$(MAKE)"'
2578 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2579 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2580 if test -n "$ac_maketemp"; then
2581 eval ac_cv_prog_make_${ac_make}_set=yes
2583 eval ac_cv_prog_make_${ac_make}_set=no
2587 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2588 echo "$as_me:$LINENO: result: yes" >&5
2589 echo "${ECHO_T}yes" >&6
2592 echo "$as_me:$LINENO: result: no" >&5
2593 echo "${ECHO_T}no" >&6
2594 SET_MAKE="MAKE=${MAKE-make}"
2600 VERSION=${BFD_VERSION}
2602 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
2603 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2604 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2605 { (exit 1); exit 1; }; }
2608 cat >>confdefs.h <<_ACEOF
2609 #define PACKAGE "$PACKAGE"
2613 cat >>confdefs.h <<_ACEOF
2614 #define VERSION "$VERSION"
2619 missing_dir=`cd $ac_aux_dir && pwd`
2620 echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
2621 echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
2622 # Run test in a subshell; some versions of sh will print an error if
2623 # an executable is not found, even if stderr is redirected.
2624 # Redirect stdin to placate older versions of autoconf. Sigh.
2625 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
2626 ACLOCAL=aclocal-${am__api_version}
2627 echo "$as_me:$LINENO: result: found" >&5
2628 echo "${ECHO_T}found" >&6
2630 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
2631 echo "$as_me:$LINENO: result: missing" >&5
2632 echo "${ECHO_T}missing" >&6
2635 echo "$as_me:$LINENO: checking for working autoconf" >&5
2636 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
2637 # Run test in a subshell; some versions of sh will print an error if
2638 # an executable is not found, even if stderr is redirected.
2639 # Redirect stdin to placate older versions of autoconf. Sigh.
2640 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
2642 echo "$as_me:$LINENO: result: found" >&5
2643 echo "${ECHO_T}found" >&6
2645 AUTOCONF="$missing_dir/missing autoconf"
2646 echo "$as_me:$LINENO: result: missing" >&5
2647 echo "${ECHO_T}missing" >&6
2650 echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
2651 echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
2652 # Run test in a subshell; some versions of sh will print an error if
2653 # an executable is not found, even if stderr is redirected.
2654 # Redirect stdin to placate older versions of autoconf. Sigh.
2655 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
2656 AUTOMAKE=automake-${am__api_version}
2657 echo "$as_me:$LINENO: result: found" >&5
2658 echo "${ECHO_T}found" >&6
2660 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
2661 echo "$as_me:$LINENO: result: missing" >&5
2662 echo "${ECHO_T}missing" >&6
2665 echo "$as_me:$LINENO: checking for working autoheader" >&5
2666 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
2667 # Run test in a subshell; some versions of sh will print an error if
2668 # an executable is not found, even if stderr is redirected.
2669 # Redirect stdin to placate older versions of autoconf. Sigh.
2670 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
2671 AUTOHEADER=autoheader
2672 echo "$as_me:$LINENO: result: found" >&5
2673 echo "${ECHO_T}found" >&6
2675 AUTOHEADER="$missing_dir/missing autoheader"
2676 echo "$as_me:$LINENO: result: missing" >&5
2677 echo "${ECHO_T}missing" >&6
2680 echo "$as_me:$LINENO: checking for working makeinfo" >&5
2681 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
2682 # Run test in a subshell; some versions of sh will print an error if
2683 # an executable is not found, even if stderr is redirected.
2684 # Redirect stdin to placate older versions of autoconf. Sigh.
2685 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
2687 echo "$as_me:$LINENO: result: found" >&5
2688 echo "${ECHO_T}found" >&6
2690 MAKEINFO="$missing_dir/missing makeinfo"
2691 echo "$as_me:$LINENO: result: missing" >&5
2692 echo "${ECHO_T}missing" >&6
2697 if test -n "$ac_tool_prefix"; then
2698 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2699 set dummy ${ac_tool_prefix}ar; ac_word=$2
2700 echo "$as_me:$LINENO: checking for $ac_word" >&5
2701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2702 if test "${ac_cv_prog_AR+set}" = set; then
2703 echo $ECHO_N "(cached) $ECHO_C" >&6
2705 if test -n "$AR"; then
2706 ac_cv_prog_AR="$AR" # Let the user override the test.
2708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712 test -z "$as_dir" && as_dir=.
2713 for ac_exec_ext in '' $ac_executable_extensions; do
2714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2715 ac_cv_prog_AR="${ac_tool_prefix}ar"
2716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2725 if test -n "$AR"; then
2726 echo "$as_me:$LINENO: result: $AR" >&5
2727 echo "${ECHO_T}$AR" >&6
2729 echo "$as_me:$LINENO: result: no" >&5
2730 echo "${ECHO_T}no" >&6
2734 if test -z "$ac_cv_prog_AR"; then
2736 # Extract the first word of "ar", so it can be a program name with args.
2737 set dummy ar; ac_word=$2
2738 echo "$as_me:$LINENO: checking for $ac_word" >&5
2739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2740 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2741 echo $ECHO_N "(cached) $ECHO_C" >&6
2743 if test -n "$ac_ct_AR"; then
2744 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 test -z "$as_dir" && as_dir=.
2751 for ac_exec_ext in '' $ac_executable_extensions; do
2752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2753 ac_cv_prog_ac_ct_AR="ar"
2754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2762 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2763 if test -n "$ac_ct_AR"; then
2764 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2765 echo "${ECHO_T}$ac_ct_AR" >&6
2767 echo "$as_me:$LINENO: result: no" >&5
2768 echo "${ECHO_T}no" >&6
2776 if test -n "$ac_tool_prefix"; then
2777 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2778 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2779 echo "$as_me:$LINENO: checking for $ac_word" >&5
2780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2781 if test "${ac_cv_prog_RANLIB+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2784 if test -n "$RANLIB"; then
2785 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 test -z "$as_dir" && as_dir=.
2792 for ac_exec_ext in '' $ac_executable_extensions; do
2793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2794 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2803 RANLIB=$ac_cv_prog_RANLIB
2804 if test -n "$RANLIB"; then
2805 echo "$as_me:$LINENO: result: $RANLIB" >&5
2806 echo "${ECHO_T}$RANLIB" >&6
2808 echo "$as_me:$LINENO: result: no" >&5
2809 echo "${ECHO_T}no" >&6
2813 if test -z "$ac_cv_prog_RANLIB"; then
2814 ac_ct_RANLIB=$RANLIB
2815 # Extract the first word of "ranlib", so it can be a program name with args.
2816 set dummy ranlib; ac_word=$2
2817 echo "$as_me:$LINENO: checking for $ac_word" >&5
2818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2819 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2820 echo $ECHO_N "(cached) $ECHO_C" >&6
2822 if test -n "$ac_ct_RANLIB"; then
2823 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 test -z "$as_dir" && as_dir=.
2830 for ac_exec_ext in '' $ac_executable_extensions; do
2831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2832 ac_cv_prog_ac_ct_RANLIB="ranlib"
2833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2839 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2842 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2843 if test -n "$ac_ct_RANLIB"; then
2844 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2845 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2847 echo "$as_me:$LINENO: result: no" >&5
2848 echo "${ECHO_T}no" >&6
2851 RANLIB=$ac_ct_RANLIB
2853 RANLIB="$ac_cv_prog_RANLIB"
2857 # Check whether --enable-shared or --disable-shared was given.
2858 if test "${enable_shared+set}" = set; then
2859 enableval="$enable_shared"
2860 p=${PACKAGE-default}
2862 yes) enable_shared=yes ;;
2863 no) enable_shared=no ;;
2866 # Look at the argument we got. We use all the common list separators.
2867 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2868 for pkg in $enableval; do
2869 if test "X$pkg" = "X$p"; then
2880 # Check whether --enable-static or --disable-static was given.
2881 if test "${enable_static+set}" = set; then
2882 enableval="$enable_static"
2883 p=${PACKAGE-default}
2885 yes) enable_static=yes ;;
2886 no) enable_static=no ;;
2889 # Look at the argument we got. We use all the common list separators.
2890 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2891 for pkg in $enableval; do
2892 if test "X$pkg" = "X$p"; then
2902 # Check whether --enable-fast-install or --disable-fast-install was given.
2903 if test "${enable_fast_install+set}" = set; then
2904 enableval="$enable_fast_install"
2905 p=${PACKAGE-default}
2907 yes) enable_fast_install=yes ;;
2908 no) enable_fast_install=no ;;
2910 enable_fast_install=no
2911 # Look at the argument we got. We use all the common list separators.
2912 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2913 for pkg in $enableval; do
2914 if test "X$pkg" = "X$p"; then
2915 enable_fast_install=yes
2922 enable_fast_install=yes
2925 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2926 if test "${with_gnu_ld+set}" = set; then
2927 withval="$with_gnu_ld"
2928 test "$withval" = no || with_gnu_ld=yes
2933 if test "$GCC" = yes; then
2934 # Check if gcc -print-prog-name=ld gives a path.
2935 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2936 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2939 # gcc leaves a trailing carriage return which upsets mingw
2940 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2942 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2945 # Accept absolute paths.
2946 [\\/]* | [A-Za-z]:[\\/]*)
2947 re_direlt='/[^/][^/]*/\.\./'
2948 # Canonicalize the path of ld
2949 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2950 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2951 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2953 test -z "$LD" && LD="$ac_prog"
2956 # If it fails, then pretend we aren't using GCC.
2960 # If it is relative, then search for the first ld in PATH.
2964 elif test "$with_gnu_ld" = yes; then
2965 echo "$as_me:$LINENO: checking for GNU ld" >&5
2966 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2968 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2969 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2971 if test "${lt_cv_path_LD+set}" = set; then
2972 echo $ECHO_N "(cached) $ECHO_C" >&6
2974 if test -z "$LD"; then
2975 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2976 for ac_dir in $PATH; do
2977 test -z "$ac_dir" && ac_dir=.
2978 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2979 lt_cv_path_LD="$ac_dir/$ac_prog"
2980 # Check to see if the program is GNU ld. I'd rather use --version,
2981 # but apparently some GNU ld's only accept -v.
2982 # Break only if it was the GNU/non-GNU ld that we prefer.
2983 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2984 test "$with_gnu_ld" != no && break
2986 test "$with_gnu_ld" != yes && break
2992 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2997 if test -n "$LD"; then
2998 echo "$as_me:$LINENO: result: $LD" >&5
2999 echo "${ECHO_T}$LD" >&6
3001 echo "$as_me:$LINENO: result: no" >&5
3002 echo "${ECHO_T}no" >&6
3004 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3005 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3006 { (exit 1); exit 1; }; }
3007 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3008 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3009 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3010 echo $ECHO_N "(cached) $ECHO_C" >&6
3012 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3013 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3014 lt_cv_prog_gnu_ld=yes
3016 lt_cv_prog_gnu_ld=no
3019 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3020 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3021 with_gnu_ld=$lt_cv_prog_gnu_ld
3024 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3025 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3026 if test "${lt_cv_ld_reload_flag+set}" = set; then
3027 echo $ECHO_N "(cached) $ECHO_C" >&6
3029 lt_cv_ld_reload_flag='-r'
3031 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3032 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3033 reload_flag=$lt_cv_ld_reload_flag
3034 test -n "$reload_flag" && reload_flag=" $reload_flag"
3036 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3037 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3038 if test "${lt_cv_path_NM+set}" = set; then
3039 echo $ECHO_N "(cached) $ECHO_C" >&6
3041 if test -n "$NM"; then
3042 # Let the user override the test.
3045 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3046 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3047 test -z "$ac_dir" && ac_dir=.
3048 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3049 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3050 # Check to see if the nm accepts a BSD-compat flag.
3051 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3052 # nm: unknown option "B" ignored
3053 # Tru64's nm complains that /dev/null is an invalid object file
3054 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3055 lt_cv_path_NM="$tmp_nm -B"
3057 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3058 lt_cv_path_NM="$tmp_nm -p"
3061 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3062 continue # so that we can try to find one that supports BSD flags
3067 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3072 echo "$as_me:$LINENO: result: $NM" >&5
3073 echo "${ECHO_T}$NM" >&6
3075 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3076 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3078 if test "$LN_S" = "ln -s"; then
3079 echo "$as_me:$LINENO: result: yes" >&5
3080 echo "${ECHO_T}yes" >&6
3082 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3083 echo "${ECHO_T}no, using $LN_S" >&6
3086 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3087 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3088 if test "${lt_cv_deplibs_check_method+set}" = set; then
3089 echo $ECHO_N "(cached) $ECHO_C" >&6
3091 lt_cv_file_magic_cmd='$MAGIC_CMD'
3092 lt_cv_file_magic_test_file=
3093 lt_cv_deplibs_check_method='unknown'
3094 # Need to set the preceding variable on all platforms that support
3095 # interlibrary dependencies.
3096 # 'none' -- dependencies not supported.
3097 # `unknown' -- same as none, but documents that we really don't know.
3098 # 'pass_all' -- all dependencies passed with no checks.
3099 # 'test_compile' -- check by making test program.
3100 # 'file_magic [regex]' -- check by looking for files in library path
3101 # which responds to the $file_magic_cmd with a given egrep regex.
3102 # If you have `file' or equivalent on your system and you're not sure
3103 # whether `pass_all' will *always* work, you probably want this one.
3107 lt_cv_deplibs_check_method=pass_all
3111 lt_cv_deplibs_check_method=pass_all
3115 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3116 lt_cv_file_magic_cmd='/usr/bin/file -L'
3117 lt_cv_file_magic_test_file=/shlib/libc.so
3120 cygwin* | mingw* |pw32*)
3121 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3122 lt_cv_file_magic_cmd='$OBJDUMP -f'
3125 darwin* | rhapsody*)
3126 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3127 lt_cv_file_magic_cmd='/usr/bin/file -L'
3129 rhapsody* | darwin1.012)
3130 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3133 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3138 freebsd* | kfreebsd*-gnu)
3139 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3142 # Not sure whether the presence of OpenBSD here was a mistake.
3143 # Let's accept both of them until this is cleared up.
3144 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3145 lt_cv_file_magic_cmd=/usr/bin/file
3146 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3150 lt_cv_deplibs_check_method=pass_all
3155 lt_cv_deplibs_check_method=pass_all
3161 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3162 lt_cv_file_magic_cmd=/usr/bin/file
3163 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3166 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3167 lt_cv_file_magic_cmd=/usr/bin/file
3168 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3176 # this will be overridden with pass_all, but let us keep it just in case
3177 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3181 *-32|*"-32 ") libmagic=32-bit;;
3182 *-n32|*"-n32 ") libmagic=N32;;
3183 *-64|*"-64 ") libmagic=64-bit;;
3184 *) libmagic=never-match;;
3186 # this will be overridden with pass_all, but let us keep it just in case
3187 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3190 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3191 lt_cv_deplibs_check_method=pass_all
3194 # This must be Linux ELF.
3197 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3198 lt_cv_deplibs_check_method=pass_all ;;
3200 # glibc up to 2.1.1 does not perform some relocations on ARM
3201 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3203 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3206 netbsd* | knetbsd*-gnu)
3207 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3208 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3210 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3215 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3216 lt_cv_file_magic_cmd=/usr/bin/file
3217 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3220 osf3* | osf4* | osf5*)
3221 # this will be overridden with pass_all, but let us keep it just in case
3222 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3223 lt_cv_file_magic_test_file=/shlib/libc.so
3224 lt_cv_deplibs_check_method=pass_all
3228 lt_cv_deplibs_check_method=pass_all
3232 lt_cv_deplibs_check_method=pass_all
3233 lt_cv_file_magic_test_file=/lib/libc.so
3236 sysv5uw[78]* | sysv4*uw2*)
3237 lt_cv_deplibs_check_method=pass_all
3240 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3241 case $host_vendor in
3243 lt_cv_deplibs_check_method=pass_all
3246 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]'
3247 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3254 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3255 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3256 file_magic_cmd=$lt_cv_file_magic_cmd
3257 deplibs_check_method=$lt_cv_deplibs_check_method
3262 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3264 # Only perform the check for file, if the check method requires it
3265 case $deplibs_check_method in
3267 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3268 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3269 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3270 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3271 echo $ECHO_N "(cached) $ECHO_C" >&6
3275 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3278 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3281 ac_save_MAGIC_CMD="$MAGIC_CMD"
3282 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3283 ac_dummy="/usr/bin:$PATH"
3284 for ac_dir in $ac_dummy; do
3285 test -z "$ac_dir" && ac_dir=.
3286 if test -f $ac_dir/${ac_tool_prefix}file; then
3287 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3288 if test -n "$file_magic_test_file"; then
3289 case $deplibs_check_method in
3291 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3292 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3293 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3294 egrep "$file_magic_regex" > /dev/null; then
3299 *** Warning: the command libtool uses to detect shared libraries,
3300 *** $file_magic_cmd, produces output that libtool cannot recognize.
3301 *** The result is that libtool may fail to recognize shared libraries
3302 *** as such. This will affect the creation of libtool libraries that
3303 *** depend on shared libraries, but programs linked with such libtool
3304 *** libraries will work regardless of this problem. Nevertheless, you
3305 *** may want to report the problem to your system manager and/or to
3306 *** bug-libtool@gnu.org
3316 MAGIC_CMD="$ac_save_MAGIC_CMD"
3321 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3322 if test -n "$MAGIC_CMD"; then
3323 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3324 echo "${ECHO_T}$MAGIC_CMD" >&6
3326 echo "$as_me:$LINENO: result: no" >&5
3327 echo "${ECHO_T}no" >&6
3330 if test -z "$lt_cv_path_MAGIC_CMD"; then
3331 if test -n "$ac_tool_prefix"; then
3332 echo "$as_me:$LINENO: checking for file" >&5
3333 echo $ECHO_N "checking for file... $ECHO_C" >&6
3334 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3335 echo $ECHO_N "(cached) $ECHO_C" >&6
3339 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3342 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3345 ac_save_MAGIC_CMD="$MAGIC_CMD"
3346 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3347 ac_dummy="/usr/bin:$PATH"
3348 for ac_dir in $ac_dummy; do
3349 test -z "$ac_dir" && ac_dir=.
3350 if test -f $ac_dir/file; then
3351 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3352 if test -n "$file_magic_test_file"; then
3353 case $deplibs_check_method in
3355 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3356 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3357 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3358 egrep "$file_magic_regex" > /dev/null; then
3363 *** Warning: the command libtool uses to detect shared libraries,
3364 *** $file_magic_cmd, produces output that libtool cannot recognize.
3365 *** The result is that libtool may fail to recognize shared libraries
3366 *** as such. This will affect the creation of libtool libraries that
3367 *** depend on shared libraries, but programs linked with such libtool
3368 *** libraries will work regardless of this problem. Nevertheless, you
3369 *** may want to report the problem to your system manager and/or to
3370 *** bug-libtool@gnu.org
3380 MAGIC_CMD="$ac_save_MAGIC_CMD"
3385 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3386 if test -n "$MAGIC_CMD"; then
3387 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3388 echo "${ECHO_T}$MAGIC_CMD" >&6
3390 echo "$as_me:$LINENO: result: no" >&5
3391 echo "${ECHO_T}no" >&6
3403 if test -n "$ac_tool_prefix"; then
3404 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3405 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3406 echo "$as_me:$LINENO: checking for $ac_word" >&5
3407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3408 if test "${ac_cv_prog_RANLIB+set}" = set; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
3411 if test -n "$RANLIB"; then
3412 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418 test -z "$as_dir" && as_dir=.
3419 for ac_exec_ext in '' $ac_executable_extensions; do
3420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3421 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3430 RANLIB=$ac_cv_prog_RANLIB
3431 if test -n "$RANLIB"; then
3432 echo "$as_me:$LINENO: result: $RANLIB" >&5
3433 echo "${ECHO_T}$RANLIB" >&6
3435 echo "$as_me:$LINENO: result: no" >&5
3436 echo "${ECHO_T}no" >&6
3440 if test -z "$ac_cv_prog_RANLIB"; then
3441 ac_ct_RANLIB=$RANLIB
3442 # Extract the first word of "ranlib", so it can be a program name with args.
3443 set dummy ranlib; ac_word=$2
3444 echo "$as_me:$LINENO: checking for $ac_word" >&5
3445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3446 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3447 echo $ECHO_N "(cached) $ECHO_C" >&6
3449 if test -n "$ac_ct_RANLIB"; then
3450 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456 test -z "$as_dir" && as_dir=.
3457 for ac_exec_ext in '' $ac_executable_extensions; do
3458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3459 ac_cv_prog_ac_ct_RANLIB="ranlib"
3460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3466 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3469 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3470 if test -n "$ac_ct_RANLIB"; then
3471 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3472 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3474 echo "$as_me:$LINENO: result: no" >&5
3475 echo "${ECHO_T}no" >&6
3478 RANLIB=$ac_ct_RANLIB
3480 RANLIB="$ac_cv_prog_RANLIB"
3483 if test -n "$ac_tool_prefix"; then
3484 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3485 set dummy ${ac_tool_prefix}strip; ac_word=$2
3486 echo "$as_me:$LINENO: checking for $ac_word" >&5
3487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3488 if test "${ac_cv_prog_STRIP+set}" = set; then
3489 echo $ECHO_N "(cached) $ECHO_C" >&6
3491 if test -n "$STRIP"; then
3492 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3498 test -z "$as_dir" && as_dir=.
3499 for ac_exec_ext in '' $ac_executable_extensions; do
3500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3501 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3510 STRIP=$ac_cv_prog_STRIP
3511 if test -n "$STRIP"; then
3512 echo "$as_me:$LINENO: result: $STRIP" >&5
3513 echo "${ECHO_T}$STRIP" >&6
3515 echo "$as_me:$LINENO: result: no" >&5
3516 echo "${ECHO_T}no" >&6
3520 if test -z "$ac_cv_prog_STRIP"; then
3522 # Extract the first word of "strip", so it can be a program name with args.
3523 set dummy strip; ac_word=$2
3524 echo "$as_me:$LINENO: checking for $ac_word" >&5
3525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3526 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3527 echo $ECHO_N "(cached) $ECHO_C" >&6
3529 if test -n "$ac_ct_STRIP"; then
3530 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3536 test -z "$as_dir" && as_dir=.
3537 for ac_exec_ext in '' $ac_executable_extensions; do
3538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3539 ac_cv_prog_ac_ct_STRIP="strip"
3540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3546 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3549 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3550 if test -n "$ac_ct_STRIP"; then
3551 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3552 echo "${ECHO_T}$ac_ct_STRIP" >&6
3554 echo "$as_me:$LINENO: result: no" >&5
3555 echo "${ECHO_T}no" >&6
3560 STRIP="$ac_cv_prog_STRIP"
3564 # Check for any special flags to pass to ltconfig.
3565 libtool_flags="--cache-file=$cache_file"
3566 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3567 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3568 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3569 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3570 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3573 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3574 if test "${enable_libtool_lock+set}" = set; then
3575 enableval="$enable_libtool_lock"
3578 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3579 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3582 # Check whether --with-pic or --without-pic was given.
3583 if test "${with_pic+set}" = set; then
3589 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3590 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3592 # Some flags need to be propagated to the compiler or linker for good
3596 # Find out which ABI we are using.
3597 echo '#line 3597 "configure"' > conftest.$ac_ext
3598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3599 (eval $ac_compile) 2>&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); }; then
3603 if test "$lt_cv_prog_gnu_ld" = yes; then
3604 case `/usr/bin/file conftest.$ac_objext` in
3606 LD="${LD-ld} -melf32bsmip"
3609 LD="${LD-ld} -melf32bmipn32"
3612 LD="${LD-ld} -melf64bmip"
3616 case `/usr/bin/file conftest.$ac_objext` in
3633 # Find out which ABI we are using.
3634 echo 'int i;' > conftest.$ac_ext
3635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3636 (eval $ac_compile) 2>&5
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); }; then
3640 case "`/usr/bin/file conftest.o`" in
3653 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3654 SAVE_CFLAGS="$CFLAGS"
3655 CFLAGS="$CFLAGS -belf"
3656 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3657 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3658 if test "${lt_cv_cc_needs_belf+set}" = set; then
3659 echo $ECHO_N "(cached) $ECHO_C" >&6
3664 ac_cpp='$CPP $CPPFLAGS'
3665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3669 cat >conftest.$ac_ext <<_ACEOF
3672 cat confdefs.h >>conftest.$ac_ext
3673 cat >>conftest.$ac_ext <<_ACEOF
3674 /* end confdefs.h. */
3684 rm -f conftest.$ac_objext conftest$ac_exeext
3685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3686 (eval $ac_link) 2>conftest.er1
3688 grep -v '^ *+' conftest.er1 >conftest.err
3690 cat conftest.err >&5
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); } &&
3693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698 (exit $ac_status); }; } &&
3699 { ac_try='test -s conftest$ac_exeext'
3700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); }; }; then
3705 lt_cv_cc_needs_belf=yes
3707 echo "$as_me: failed program was:" >&5
3708 sed 's/^/| /' conftest.$ac_ext >&5
3710 lt_cv_cc_needs_belf=no
3712 rm -f conftest.err conftest.$ac_objext \
3713 conftest$ac_exeext conftest.$ac_ext
3715 ac_cpp='$CPP $CPPFLAGS'
3716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3721 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3722 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3723 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3724 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3725 CFLAGS="$SAVE_CFLAGS"
3733 # Save cache, so that ltconfig can load it
3734 cat >confcache <<\_ACEOF
3735 # This file is a shell script that caches the results of configure
3736 # tests run on this system so they can be shared between configure
3737 # scripts and configure runs, see configure's option --config-cache.
3738 # It is not useful on other systems. If it contains results you don't
3739 # want to keep, you may remove or edit it.
3741 # config.status only pays attention to the cache file if you give it
3742 # the --recheck option to rerun configure.
3744 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3745 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3750 # The following way of writing the cache mishandles newlines in values,
3751 # but we know of no workaround that is simple, portable, and efficient.
3752 # So, don't put newlines in cache variables' values.
3753 # Ultrix sh set writes to stderr and can't be redirected directly,
3754 # and sets the high bit in the cache file unless we assign to the vars.
3757 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3759 # `set' does not quote correctly, so add quotes (double-quote
3760 # substitution turns \\\\ into \\, and sed turns \\ into \).
3763 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3766 # `set' quotes correctly as required by POSIX, so do not add quotes.
3768 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3775 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3777 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3779 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3780 if test -w $cache_file; then
3781 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3782 cat confcache >$cache_file
3784 echo "not updating unwritable cache $cache_file"
3789 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3790 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3791 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3792 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
3793 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
3794 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
3795 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
3796 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3797 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
3798 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
3799 echo "$as_me: error: libtool configure failed" >&2;}
3800 { (exit 1); exit 1; }; }
3802 # Reload cache, that may have been modified by ltconfig
3803 if test -r "$cache_file"; then
3804 # Some versions of bash will fail to source /dev/null (special
3805 # files actually), so we avoid doing that.
3806 if test -f "$cache_file"; then
3807 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
3808 echo "$as_me: loading cache $cache_file" >&6;}
3810 [\\/]* | ?:[\\/]* ) . $cache_file;;
3811 *) . ./$cache_file;;
3815 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
3816 echo "$as_me: creating cache $cache_file" >&6;}
3821 # This can be used to rebuild libtool when needed
3822 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
3824 # Always use our own libtool.
3825 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3827 # Redirect the config.log output again, so that the ltconfig log is not
3828 # clobbered by the next message.
3829 exec 5>>./config.log
3837 # Check whether --enable-targets or --disable-targets was given.
3838 if test "${enable_targets+set}" = set; then
3839 enableval="$enable_targets"
3840 case "${enableval}" in
3841 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
3842 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
3843 { (exit 1); exit 1; }; }
3845 no) enable_targets= ;;
3846 *) enable_targets=$enableval ;;
3848 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
3849 if test "${enable_commonbfdlib+set}" = set; then
3850 enableval="$enable_commonbfdlib"
3851 case "${enableval}" in
3852 yes) commonbfdlib=true ;;
3853 no) commonbfdlib=false ;;
3854 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for opcodes commonbfdlib option" >&5
3855 echo "$as_me: error: bad value ${enableval} for opcodes commonbfdlib option" >&2;}
3856 { (exit 1); exit 1; }; } ;;
3859 build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
3860 # Check whether --enable-build-warnings or --disable-build-warnings was given.
3861 if test "${enable_build_warnings+set}" = set; then
3862 enableval="$enable_build_warnings"
3863 case "${enableval}" in
3865 no) build_warnings="-w";;
3866 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3867 build_warnings="${build_warnings} ${t}";;
3868 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3869 build_warnings="${t} ${build_warnings}";;
3870 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3872 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
3873 echo "Setting warning flags = $build_warnings" 6>&1
3876 if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
3877 WARN_CFLAGS="${build_warnings}"
3882 ac_config_headers="$ac_config_headers config.h:config.in"
3884 ac_config_commands="$ac_config_commands default-1"
3887 if test -z "$target" ; then
3888 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
3889 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
3890 { (exit 1); exit 1; }; }
3893 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3894 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3895 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3896 if test "${enable_maintainer_mode+set}" = set; then
3897 enableval="$enable_maintainer_mode"
3898 USE_MAINTAINER_MODE=$enableval
3900 USE_MAINTAINER_MODE=no
3902 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3903 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3906 if test $USE_MAINTAINER_MODE = yes; then
3907 MAINTAINER_MODE_TRUE=
3908 MAINTAINER_MODE_FALSE='#'
3910 MAINTAINER_MODE_TRUE='#'
3911 MAINTAINER_MODE_FALSE=
3913 MAINT=$MAINTAINER_MODE_TRUE
3916 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
3917 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
3918 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
3919 if test "${enable_install_libbfd+set}" = set; then
3920 enableval="$enable_install_libbfd"
3921 install_libbfd_p=$enableval
3923 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
3924 install_libbfd_p=yes
3929 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
3930 echo "${ECHO_T}$install_libbfd_p" >&6
3933 if test $install_libbfd_p = yes; then
3934 INSTALL_LIBBFD_TRUE=
3935 INSTALL_LIBBFD_FALSE='#'
3937 INSTALL_LIBBFD_TRUE='#'
3938 INSTALL_LIBBFD_FALSE=
3940 # Need _noncanonical variables for this.
3941 ACX_HOST_NONCANONICAL
3942 ACX_TARGET_NONCANONICAL
3943 # libbfd.a is a host library containing target dependent code
3944 bfdlibdir='$(libdir)'
3945 bfdincludedir='$(includedir)'
3946 if test "${host}" != "${target}"; then
3947 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
3948 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
3956 # host-specific stuff:
3959 ac_cpp='$CPP $CPPFLAGS'
3960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3963 if test -n "$ac_tool_prefix"; then
3964 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3965 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3966 echo "$as_me:$LINENO: checking for $ac_word" >&5
3967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3968 if test "${ac_cv_prog_CC+set}" = set; then
3969 echo $ECHO_N "(cached) $ECHO_C" >&6
3971 if test -n "$CC"; then
3972 ac_cv_prog_CC="$CC" # Let the user override the test.
3974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3978 test -z "$as_dir" && as_dir=.
3979 for ac_exec_ext in '' $ac_executable_extensions; do
3980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3981 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3991 if test -n "$CC"; then
3992 echo "$as_me:$LINENO: result: $CC" >&5
3993 echo "${ECHO_T}$CC" >&6
3995 echo "$as_me:$LINENO: result: no" >&5
3996 echo "${ECHO_T}no" >&6
4000 if test -z "$ac_cv_prog_CC"; then
4002 # Extract the first word of "gcc", so it can be a program name with args.
4003 set dummy gcc; ac_word=$2
4004 echo "$as_me:$LINENO: checking for $ac_word" >&5
4005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4006 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4009 if test -n "$ac_ct_CC"; then
4010 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4016 test -z "$as_dir" && as_dir=.
4017 for ac_exec_ext in '' $ac_executable_extensions; do
4018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4019 ac_cv_prog_ac_ct_CC="gcc"
4020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4028 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4029 if test -n "$ac_ct_CC"; then
4030 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4031 echo "${ECHO_T}$ac_ct_CC" >&6
4033 echo "$as_me:$LINENO: result: no" >&5
4034 echo "${ECHO_T}no" >&6
4042 if test -z "$CC"; then
4043 if test -n "$ac_tool_prefix"; then
4044 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4045 set dummy ${ac_tool_prefix}cc; ac_word=$2
4046 echo "$as_me:$LINENO: checking for $ac_word" >&5
4047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4048 if test "${ac_cv_prog_CC+set}" = set; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 if test -n "$CC"; then
4052 ac_cv_prog_CC="$CC" # Let the user override the test.
4054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058 test -z "$as_dir" && as_dir=.
4059 for ac_exec_ext in '' $ac_executable_extensions; do
4060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4061 ac_cv_prog_CC="${ac_tool_prefix}cc"
4062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4071 if test -n "$CC"; then
4072 echo "$as_me:$LINENO: result: $CC" >&5
4073 echo "${ECHO_T}$CC" >&6
4075 echo "$as_me:$LINENO: result: no" >&5
4076 echo "${ECHO_T}no" >&6
4080 if test -z "$ac_cv_prog_CC"; then
4082 # Extract the first word of "cc", so it can be a program name with args.
4083 set dummy cc; ac_word=$2
4084 echo "$as_me:$LINENO: checking for $ac_word" >&5
4085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4086 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4089 if test -n "$ac_ct_CC"; then
4090 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096 test -z "$as_dir" && as_dir=.
4097 for ac_exec_ext in '' $ac_executable_extensions; do
4098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4099 ac_cv_prog_ac_ct_CC="cc"
4100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4108 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4109 if test -n "$ac_ct_CC"; then
4110 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4111 echo "${ECHO_T}$ac_ct_CC" >&6
4113 echo "$as_me:$LINENO: result: no" >&5
4114 echo "${ECHO_T}no" >&6
4123 if test -z "$CC"; then
4124 # Extract the first word of "cc", so it can be a program name with args.
4125 set dummy cc; ac_word=$2
4126 echo "$as_me:$LINENO: checking for $ac_word" >&5
4127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4128 if test "${ac_cv_prog_CC+set}" = set; then
4129 echo $ECHO_N "(cached) $ECHO_C" >&6
4131 if test -n "$CC"; then
4132 ac_cv_prog_CC="$CC" # Let the user override the test.
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 test -z "$as_dir" && as_dir=.
4140 for ac_exec_ext in '' $ac_executable_extensions; do
4141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4142 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4143 ac_prog_rejected=yes
4147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4153 if test $ac_prog_rejected = yes; then
4154 # We found a bogon in the path, so make sure we never use it.
4155 set dummy $ac_cv_prog_CC
4157 if test $# != 0; then
4158 # We chose a different compiler from the bogus one.
4159 # However, it has the same basename, so the bogon will be chosen
4160 # first if we set CC to just the basename; use the full file name.
4162 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4168 if test -n "$CC"; then
4169 echo "$as_me:$LINENO: result: $CC" >&5
4170 echo "${ECHO_T}$CC" >&6
4172 echo "$as_me:$LINENO: result: no" >&5
4173 echo "${ECHO_T}no" >&6
4177 if test -z "$CC"; then
4178 if test -n "$ac_tool_prefix"; then
4181 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4182 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4183 echo "$as_me:$LINENO: checking for $ac_word" >&5
4184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4185 if test "${ac_cv_prog_CC+set}" = set; then
4186 echo $ECHO_N "(cached) $ECHO_C" >&6
4188 if test -n "$CC"; then
4189 ac_cv_prog_CC="$CC" # Let the user override the test.
4191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195 test -z "$as_dir" && as_dir=.
4196 for ac_exec_ext in '' $ac_executable_extensions; do
4197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4198 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4208 if test -n "$CC"; then
4209 echo "$as_me:$LINENO: result: $CC" >&5
4210 echo "${ECHO_T}$CC" >&6
4212 echo "$as_me:$LINENO: result: no" >&5
4213 echo "${ECHO_T}no" >&6
4216 test -n "$CC" && break
4219 if test -z "$CC"; then
4223 # Extract the first word of "$ac_prog", so it can be a program name with args.
4224 set dummy $ac_prog; ac_word=$2
4225 echo "$as_me:$LINENO: checking for $ac_word" >&5
4226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4227 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
4230 if test -n "$ac_ct_CC"; then
4231 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237 test -z "$as_dir" && as_dir=.
4238 for ac_exec_ext in '' $ac_executable_extensions; do
4239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4240 ac_cv_prog_ac_ct_CC="$ac_prog"
4241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4249 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4250 if test -n "$ac_ct_CC"; then
4251 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4252 echo "${ECHO_T}$ac_ct_CC" >&6
4254 echo "$as_me:$LINENO: result: no" >&5
4255 echo "${ECHO_T}no" >&6
4258 test -n "$ac_ct_CC" && break
4267 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4268 See \`config.log' for more details." >&5
4269 echo "$as_me: error: no acceptable C compiler found in \$PATH
4270 See \`config.log' for more details." >&2;}
4271 { (exit 1); exit 1; }; }
4273 # Provide some information about the compiler.
4274 echo "$as_me:$LINENO:" \
4275 "checking for C compiler version" >&5
4276 ac_compiler=`set X $ac_compile; echo $2`
4277 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4278 (eval $ac_compiler --version </dev/null >&5) 2>&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); }
4282 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4283 (eval $ac_compiler -v </dev/null >&5) 2>&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); }
4287 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4288 (eval $ac_compiler -V </dev/null >&5) 2>&5
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); }
4293 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4294 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4295 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4298 cat >conftest.$ac_ext <<_ACEOF
4301 cat confdefs.h >>conftest.$ac_ext
4302 cat >>conftest.$ac_ext <<_ACEOF
4303 /* end confdefs.h. */
4316 rm -f conftest.$ac_objext
4317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4318 (eval $ac_compile) 2>conftest.er1
4320 grep -v '^ *+' conftest.er1 >conftest.err
4322 cat conftest.err >&5
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); } &&
4325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); }; } &&
4331 { ac_try='test -s conftest.$ac_objext'
4332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); }; }; then
4339 echo "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.$ac_ext >&5
4344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4345 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4348 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4349 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4350 GCC=`test $ac_compiler_gnu = yes && echo yes`
4351 ac_test_CFLAGS=${CFLAGS+set}
4352 ac_save_CFLAGS=$CFLAGS
4354 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4355 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4356 if test "${ac_cv_prog_cc_g+set}" = set; then
4357 echo $ECHO_N "(cached) $ECHO_C" >&6
4359 cat >conftest.$ac_ext <<_ACEOF
4362 cat confdefs.h >>conftest.$ac_ext
4363 cat >>conftest.$ac_ext <<_ACEOF
4364 /* end confdefs.h. */
4374 rm -f conftest.$ac_objext
4375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4376 (eval $ac_compile) 2>conftest.er1
4378 grep -v '^ *+' conftest.er1 >conftest.err
4380 cat conftest.err >&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); } &&
4383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); }; } &&
4389 { ac_try='test -s conftest.$ac_objext'
4390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); }; }; then
4397 echo "$as_me: failed program was:" >&5
4398 sed 's/^/| /' conftest.$ac_ext >&5
4402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4404 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4405 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4406 if test "$ac_test_CFLAGS" = set; then
4407 CFLAGS=$ac_save_CFLAGS
4408 elif test $ac_cv_prog_cc_g = yes; then
4409 if test "$GCC" = yes; then
4415 if test "$GCC" = yes; then
4421 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4422 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4423 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4424 echo $ECHO_N "(cached) $ECHO_C" >&6
4426 ac_cv_prog_cc_stdc=no
4428 cat >conftest.$ac_ext <<_ACEOF
4431 cat confdefs.h >>conftest.$ac_ext
4432 cat >>conftest.$ac_ext <<_ACEOF
4433 /* end confdefs.h. */
4436 #include <sys/types.h>
4437 #include <sys/stat.h>
4438 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4439 struct buf { int x; };
4440 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4441 static char *e (p, i)
4447 static char *f (char * (*g) (char **, int), char **p, ...)
4452 s = g (p, va_arg (v,int));
4457 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4458 function prototypes and stuff, but not '\xHH' hex character constants.
4459 These don't provoke an error unfortunately, instead are silently treated
4460 as 'x'. The following induces an error, until -std1 is added to get
4461 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4462 array size at least. It's necessary to write '\x00'==0 to get something
4463 that's true only with -std1. */
4464 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4466 int test (int i, double x);
4467 struct s1 {int (*f) (int a);};
4468 struct s2 {int (*f) (double a);};
4469 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4475 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4480 # Don't try gcc -ansi; that turns off useful extensions and
4481 # breaks some systems' header files.
4482 # AIX -qlanglvl=ansi
4483 # Ultrix and OSF/1 -std1
4484 # HP-UX 10.20 and later -Ae
4485 # HP-UX older versions -Aa -D_HPUX_SOURCE
4486 # SVR4 -Xc -D__EXTENSIONS__
4487 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4489 CC="$ac_save_CC $ac_arg"
4490 rm -f conftest.$ac_objext
4491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4492 (eval $ac_compile) 2>conftest.er1
4494 grep -v '^ *+' conftest.er1 >conftest.err
4496 cat conftest.err >&5
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); } &&
4499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); }; } &&
4505 { ac_try='test -s conftest.$ac_objext'
4506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); }; }; then
4511 ac_cv_prog_cc_stdc=$ac_arg
4514 echo "$as_me: failed program was:" >&5
4515 sed 's/^/| /' conftest.$ac_ext >&5
4518 rm -f conftest.err conftest.$ac_objext
4520 rm -f conftest.$ac_ext conftest.$ac_objext
4525 case "x$ac_cv_prog_cc_stdc" in
4527 echo "$as_me:$LINENO: result: none needed" >&5
4528 echo "${ECHO_T}none needed" >&6 ;;
4530 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4531 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4532 CC="$CC $ac_cv_prog_cc_stdc" ;;
4535 # Some people use a C++ compiler to compile C. Since we use `exit',
4536 # in C++ we need to declare it. In case someone uses the same compiler
4537 # for both compiling C and C++ we need to have the C++ compiler decide
4538 # the declaration of exit, since it's the most demanding environment.
4539 cat >conftest.$ac_ext <<_ACEOF
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
4565 for ac_declaration in \
4567 'extern "C" void std::exit (int) throw (); using std::exit;' \
4568 'extern "C" void std::exit (int); using std::exit;' \
4569 'extern "C" void exit (int) throw ();' \
4570 'extern "C" void exit (int);' \
4573 cat >conftest.$ac_ext <<_ACEOF
4576 cat confdefs.h >>conftest.$ac_ext
4577 cat >>conftest.$ac_ext <<_ACEOF
4578 /* end confdefs.h. */
4589 rm -f conftest.$ac_objext
4590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4591 (eval $ac_compile) 2>conftest.er1
4593 grep -v '^ *+' conftest.er1 >conftest.err
4595 cat conftest.err >&5
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); } &&
4598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); }; } &&
4604 { ac_try='test -s conftest.$ac_objext'
4605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); }; }; then
4612 echo "$as_me: failed program was:" >&5
4613 sed 's/^/| /' conftest.$ac_ext >&5
4617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4618 cat >conftest.$ac_ext <<_ACEOF
4621 cat confdefs.h >>conftest.$ac_ext
4622 cat >>conftest.$ac_ext <<_ACEOF
4623 /* end confdefs.h. */
4633 rm -f conftest.$ac_objext
4634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4635 (eval $ac_compile) 2>conftest.er1
4637 grep -v '^ *+' conftest.er1 >conftest.err
4639 cat conftest.err >&5
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); } &&
4642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); }; } &&
4648 { ac_try='test -s conftest.$ac_objext'
4649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); }; }; then
4656 echo "$as_me: failed program was:" >&5
4657 sed 's/^/| /' conftest.$ac_ext >&5
4660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4663 if test -n "$ac_declaration"; then
4664 echo '#ifdef __cplusplus' >>confdefs.h
4665 echo $ac_declaration >>confdefs.h
4666 echo '#endif' >>confdefs.h
4670 echo "$as_me: failed program was:" >&5
4671 sed 's/^/| /' conftest.$ac_ext >&5
4674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4676 ac_cpp='$CPP $CPPFLAGS'
4677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4682 ALL_LINGUAS="fr sv tr es da de id pt_BR ro nl"
4683 if test -n "$ac_tool_prefix"; then
4684 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4685 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4686 echo "$as_me:$LINENO: checking for $ac_word" >&5
4687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4688 if test "${ac_cv_prog_RANLIB+set}" = set; then
4689 echo $ECHO_N "(cached) $ECHO_C" >&6
4691 if test -n "$RANLIB"; then
4692 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 test -z "$as_dir" && as_dir=.
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4701 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4710 RANLIB=$ac_cv_prog_RANLIB
4711 if test -n "$RANLIB"; then
4712 echo "$as_me:$LINENO: result: $RANLIB" >&5
4713 echo "${ECHO_T}$RANLIB" >&6
4715 echo "$as_me:$LINENO: result: no" >&5
4716 echo "${ECHO_T}no" >&6
4720 if test -z "$ac_cv_prog_RANLIB"; then
4721 ac_ct_RANLIB=$RANLIB
4722 # Extract the first word of "ranlib", so it can be a program name with args.
4723 set dummy ranlib; ac_word=$2
4724 echo "$as_me:$LINENO: checking for $ac_word" >&5
4725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4726 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4727 echo $ECHO_N "(cached) $ECHO_C" >&6
4729 if test -n "$ac_ct_RANLIB"; then
4730 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736 test -z "$as_dir" && as_dir=.
4737 for ac_exec_ext in '' $ac_executable_extensions; do
4738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4739 ac_cv_prog_ac_ct_RANLIB="ranlib"
4740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4746 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4749 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4750 if test -n "$ac_ct_RANLIB"; then
4751 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4752 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4754 echo "$as_me:$LINENO: result: no" >&5
4755 echo "${ECHO_T}no" >&6
4758 RANLIB=$ac_ct_RANLIB
4760 RANLIB="$ac_cv_prog_RANLIB"
4764 ac_cpp='$CPP $CPPFLAGS'
4765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4768 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4769 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4770 # On Suns, sometimes $CPP names a directory.
4771 if test -n "$CPP" && test -d "$CPP"; then
4774 if test -z "$CPP"; then
4775 if test "${ac_cv_prog_CPP+set}" = set; then
4776 echo $ECHO_N "(cached) $ECHO_C" >&6
4778 # Double quotes because CPP needs to be expanded
4779 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4782 for ac_c_preproc_warn_flag in '' yes
4784 # Use a header file that comes with gcc, so configuring glibc
4785 # with a fresh cross-compiler works.
4786 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4787 # <limits.h> exists even on freestanding compilers.
4788 # On the NeXT, cc -E runs the code through the compiler's parser,
4789 # not just through cpp. "Syntax error" is here to catch this case.
4790 cat >conftest.$ac_ext <<_ACEOF
4793 cat confdefs.h >>conftest.$ac_ext
4794 cat >>conftest.$ac_ext <<_ACEOF
4795 /* end confdefs.h. */
4797 # include <limits.h>
4799 # include <assert.h>
4803 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4804 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4806 grep -v '^ *+' conftest.er1 >conftest.err
4808 cat conftest.err >&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); } >/dev/null; then
4811 if test -s conftest.err; then
4812 ac_cpp_err=$ac_c_preproc_warn_flag
4813 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4820 if test -z "$ac_cpp_err"; then
4823 echo "$as_me: failed program was:" >&5
4824 sed 's/^/| /' conftest.$ac_ext >&5
4826 # Broken: fails on valid input.
4829 rm -f conftest.err conftest.$ac_ext
4831 # OK, works on sane cases. Now check whether non-existent headers
4832 # can be detected and how.
4833 cat >conftest.$ac_ext <<_ACEOF
4836 cat confdefs.h >>conftest.$ac_ext
4837 cat >>conftest.$ac_ext <<_ACEOF
4838 /* end confdefs.h. */
4839 #include <ac_nonexistent.h>
4841 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4842 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4844 grep -v '^ *+' conftest.er1 >conftest.err
4846 cat conftest.err >&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); } >/dev/null; then
4849 if test -s conftest.err; then
4850 ac_cpp_err=$ac_c_preproc_warn_flag
4851 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4858 if test -z "$ac_cpp_err"; then
4859 # Broken: success on invalid input.
4862 echo "$as_me: failed program was:" >&5
4863 sed 's/^/| /' conftest.$ac_ext >&5
4865 # Passes both tests.
4869 rm -f conftest.err conftest.$ac_ext
4872 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4873 rm -f conftest.err conftest.$ac_ext
4874 if $ac_preproc_ok; then
4886 echo "$as_me:$LINENO: result: $CPP" >&5
4887 echo "${ECHO_T}$CPP" >&6
4889 for ac_c_preproc_warn_flag in '' yes
4891 # Use a header file that comes with gcc, so configuring glibc
4892 # with a fresh cross-compiler works.
4893 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4894 # <limits.h> exists even on freestanding compilers.
4895 # On the NeXT, cc -E runs the code through the compiler's parser,
4896 # not just through cpp. "Syntax error" is here to catch this case.
4897 cat >conftest.$ac_ext <<_ACEOF
4900 cat confdefs.h >>conftest.$ac_ext
4901 cat >>conftest.$ac_ext <<_ACEOF
4902 /* end confdefs.h. */
4904 # include <limits.h>
4906 # include <assert.h>
4910 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4911 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4913 grep -v '^ *+' conftest.er1 >conftest.err
4915 cat conftest.err >&5
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); } >/dev/null; then
4918 if test -s conftest.err; then
4919 ac_cpp_err=$ac_c_preproc_warn_flag
4920 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4927 if test -z "$ac_cpp_err"; then
4930 echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.$ac_ext >&5
4933 # Broken: fails on valid input.
4936 rm -f conftest.err conftest.$ac_ext
4938 # OK, works on sane cases. Now check whether non-existent headers
4939 # can be detected and how.
4940 cat >conftest.$ac_ext <<_ACEOF
4943 cat confdefs.h >>conftest.$ac_ext
4944 cat >>conftest.$ac_ext <<_ACEOF
4945 /* end confdefs.h. */
4946 #include <ac_nonexistent.h>
4948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4949 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4951 grep -v '^ *+' conftest.er1 >conftest.err
4953 cat conftest.err >&5
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); } >/dev/null; then
4956 if test -s conftest.err; then
4957 ac_cpp_err=$ac_c_preproc_warn_flag
4958 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4965 if test -z "$ac_cpp_err"; then
4966 # Broken: success on invalid input.
4969 echo "$as_me: failed program was:" >&5
4970 sed 's/^/| /' conftest.$ac_ext >&5
4972 # Passes both tests.
4976 rm -f conftest.err conftest.$ac_ext
4979 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4980 rm -f conftest.err conftest.$ac_ext
4981 if $ac_preproc_ok; then
4984 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4985 See \`config.log' for more details." >&5
4986 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4987 See \`config.log' for more details." >&2;}
4988 { (exit 1); exit 1; }; }
4992 ac_cpp='$CPP $CPPFLAGS'
4993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4998 echo "$as_me:$LINENO: checking for egrep" >&5
4999 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5000 if test "${ac_cv_prog_egrep+set}" = set; then
5001 echo $ECHO_N "(cached) $ECHO_C" >&6
5003 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5004 then ac_cv_prog_egrep='grep -E'
5005 else ac_cv_prog_egrep='egrep'
5008 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5009 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5010 EGREP=$ac_cv_prog_egrep
5013 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5014 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5015 if test "${ac_cv_header_stdc+set}" = set; then
5016 echo $ECHO_N "(cached) $ECHO_C" >&6
5018 cat >conftest.$ac_ext <<_ACEOF
5021 cat confdefs.h >>conftest.$ac_ext
5022 cat >>conftest.$ac_ext <<_ACEOF
5023 /* end confdefs.h. */
5037 rm -f conftest.$ac_objext
5038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5039 (eval $ac_compile) 2>conftest.er1
5041 grep -v '^ *+' conftest.er1 >conftest.err
5043 cat conftest.err >&5
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); } &&
5046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); }; } &&
5052 { ac_try='test -s conftest.$ac_objext'
5053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057 (exit $ac_status); }; }; then
5058 ac_cv_header_stdc=yes
5060 echo "$as_me: failed program was:" >&5
5061 sed 's/^/| /' conftest.$ac_ext >&5
5063 ac_cv_header_stdc=no
5065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5067 if test $ac_cv_header_stdc = yes; then
5068 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5069 cat >conftest.$ac_ext <<_ACEOF
5072 cat confdefs.h >>conftest.$ac_ext
5073 cat >>conftest.$ac_ext <<_ACEOF
5074 /* end confdefs.h. */
5078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5079 $EGREP "memchr" >/dev/null 2>&1; then
5082 ac_cv_header_stdc=no
5088 if test $ac_cv_header_stdc = yes; then
5089 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5090 cat >conftest.$ac_ext <<_ACEOF
5093 cat confdefs.h >>conftest.$ac_ext
5094 cat >>conftest.$ac_ext <<_ACEOF
5095 /* end confdefs.h. */
5099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5100 $EGREP "free" >/dev/null 2>&1; then
5103 ac_cv_header_stdc=no
5109 if test $ac_cv_header_stdc = yes; then
5110 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5111 if test "$cross_compiling" = yes; then
5114 cat >conftest.$ac_ext <<_ACEOF
5117 cat confdefs.h >>conftest.$ac_ext
5118 cat >>conftest.$ac_ext <<_ACEOF
5119 /* end confdefs.h. */
5121 #if ((' ' & 0x0FF) == 0x020)
5122 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5123 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5125 # define ISLOWER(c) \
5126 (('a' <= (c) && (c) <= 'i') \
5127 || ('j' <= (c) && (c) <= 'r') \
5128 || ('s' <= (c) && (c) <= 'z'))
5129 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5132 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5137 for (i = 0; i < 256; i++)
5138 if (XOR (islower (i), ISLOWER (i))
5139 || toupper (i) != TOUPPER (i))
5144 rm -f conftest$ac_exeext
5145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5146 (eval $ac_link) 2>&5
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); }; }; then
5157 echo "$as_me: program exited with status $ac_status" >&5
5158 echo "$as_me: failed program was:" >&5
5159 sed 's/^/| /' conftest.$ac_ext >&5
5162 ac_cv_header_stdc=no
5164 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5168 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5169 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5170 if test $ac_cv_header_stdc = yes; then
5172 cat >>confdefs.h <<\_ACEOF
5173 #define STDC_HEADERS 1
5178 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5179 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5180 if test "${ac_cv_c_const+set}" = set; then
5181 echo $ECHO_N "(cached) $ECHO_C" >&6
5183 cat >conftest.$ac_ext <<_ACEOF
5186 cat confdefs.h >>conftest.$ac_ext
5187 cat >>conftest.$ac_ext <<_ACEOF
5188 /* end confdefs.h. */
5193 /* FIXME: Include the comments suggested by Paul. */
5195 /* Ultrix mips cc rejects this. */
5196 typedef int charset[2];
5198 /* SunOS 4.1.1 cc rejects this. */
5199 char const *const *ccp;
5201 /* NEC SVR4.0.2 mips cc rejects this. */
5202 struct point {int x, y;};
5203 static struct point const zero = {0,0};
5204 /* AIX XL C 1.02.0.0 rejects this.
5205 It does not let you subtract one const X* pointer from another in
5206 an arm of an if-expression whose if-part is not a constant
5208 const char *g = "string";
5209 ccp = &g + (g ? g-g : 0);
5210 /* HPUX 7.0 cc rejects these. */
5213 ccp = (char const *const *) p;
5214 { /* SCO 3.2v4 cc rejects this. */
5216 char const *s = 0 ? (char *) 0 : (char const *) 0;
5220 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5222 const int *foo = &x[0];
5225 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5226 typedef const int *iptr;
5230 { /* AIX XL C 1.02.0.0 rejects this saying
5231 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5232 struct s { int j; const int *ap[3]; };
5233 struct s *b; b->j = 5;
5235 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5244 rm -f conftest.$ac_objext
5245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5246 (eval $ac_compile) 2>conftest.er1
5248 grep -v '^ *+' conftest.er1 >conftest.err
5250 cat conftest.err >&5
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); } &&
5253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); }; } &&
5259 { ac_try='test -s conftest.$ac_objext'
5260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); }; }; then
5267 echo "$as_me: failed program was:" >&5
5268 sed 's/^/| /' conftest.$ac_ext >&5
5272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5274 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5275 echo "${ECHO_T}$ac_cv_c_const" >&6
5276 if test $ac_cv_c_const = no; then
5278 cat >>confdefs.h <<\_ACEOF
5284 echo "$as_me:$LINENO: checking for inline" >&5
5285 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5286 if test "${ac_cv_c_inline+set}" = set; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5290 for ac_kw in inline __inline__ __inline; do
5291 cat >conftest.$ac_ext <<_ACEOF
5294 cat confdefs.h >>conftest.$ac_ext
5295 cat >>conftest.$ac_ext <<_ACEOF
5296 /* end confdefs.h. */
5299 static $ac_kw foo_t static_foo () {return 0; }
5300 $ac_kw foo_t foo () {return 0; }
5304 rm -f conftest.$ac_objext
5305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5306 (eval $ac_compile) 2>conftest.er1
5308 grep -v '^ *+' conftest.er1 >conftest.err
5310 cat conftest.err >&5
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); } &&
5313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); }; } &&
5319 { ac_try='test -s conftest.$ac_objext'
5320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); }; }; then
5325 ac_cv_c_inline=$ac_kw; break
5327 echo "$as_me: failed program was:" >&5
5328 sed 's/^/| /' conftest.$ac_ext >&5
5331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5335 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5336 echo "${ECHO_T}$ac_cv_c_inline" >&6
5339 case $ac_cv_c_inline in
5342 case $ac_cv_c_inline in
5344 *) ac_val=$ac_cv_c_inline;;
5346 cat >>confdefs.h <<_ACEOF
5348 #define inline $ac_val
5354 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5364 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5365 inttypes.h stdint.h unistd.h
5367 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5368 echo "$as_me:$LINENO: checking for $ac_header" >&5
5369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5371 echo $ECHO_N "(cached) $ECHO_C" >&6
5373 cat >conftest.$ac_ext <<_ACEOF
5376 cat confdefs.h >>conftest.$ac_ext
5377 cat >>conftest.$ac_ext <<_ACEOF
5378 /* end confdefs.h. */
5379 $ac_includes_default
5381 #include <$ac_header>
5383 rm -f conftest.$ac_objext
5384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5385 (eval $ac_compile) 2>conftest.er1
5387 grep -v '^ *+' conftest.er1 >conftest.err
5389 cat conftest.err >&5
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); } &&
5392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); }; } &&
5398 { ac_try='test -s conftest.$ac_objext'
5399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); }; }; then
5404 eval "$as_ac_Header=yes"
5406 echo "$as_me: failed program was:" >&5
5407 sed 's/^/| /' conftest.$ac_ext >&5
5409 eval "$as_ac_Header=no"
5411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5414 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5416 cat >>confdefs.h <<_ACEOF
5417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5425 echo "$as_me:$LINENO: checking for off_t" >&5
5426 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5427 if test "${ac_cv_type_off_t+set}" = set; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
5430 cat >conftest.$ac_ext <<_ACEOF
5433 cat confdefs.h >>conftest.$ac_ext
5434 cat >>conftest.$ac_ext <<_ACEOF
5435 /* end confdefs.h. */
5436 $ac_includes_default
5448 rm -f conftest.$ac_objext
5449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5450 (eval $ac_compile) 2>conftest.er1
5452 grep -v '^ *+' conftest.er1 >conftest.err
5454 cat conftest.err >&5
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); } &&
5457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); }; } &&
5463 { ac_try='test -s conftest.$ac_objext'
5464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); }; }; then
5469 ac_cv_type_off_t=yes
5471 echo "$as_me: failed program was:" >&5
5472 sed 's/^/| /' conftest.$ac_ext >&5
5476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5478 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5479 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5480 if test $ac_cv_type_off_t = yes; then
5484 cat >>confdefs.h <<_ACEOF
5490 echo "$as_me:$LINENO: checking for size_t" >&5
5491 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5492 if test "${ac_cv_type_size_t+set}" = set; then
5493 echo $ECHO_N "(cached) $ECHO_C" >&6
5495 cat >conftest.$ac_ext <<_ACEOF
5498 cat confdefs.h >>conftest.$ac_ext
5499 cat >>conftest.$ac_ext <<_ACEOF
5500 /* end confdefs.h. */
5501 $ac_includes_default
5507 if (sizeof (size_t))
5513 rm -f conftest.$ac_objext
5514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5515 (eval $ac_compile) 2>conftest.er1
5517 grep -v '^ *+' conftest.er1 >conftest.err
5519 cat conftest.err >&5
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); } &&
5522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); }; } &&
5528 { ac_try='test -s conftest.$ac_objext'
5529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); }; }; then
5534 ac_cv_type_size_t=yes
5536 echo "$as_me: failed program was:" >&5
5537 sed 's/^/| /' conftest.$ac_ext >&5
5539 ac_cv_type_size_t=no
5541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5543 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5544 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5545 if test $ac_cv_type_size_t = yes; then
5549 cat >>confdefs.h <<_ACEOF
5550 #define size_t unsigned
5555 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5556 # for constant arguments. Useless!
5557 echo "$as_me:$LINENO: checking for working alloca.h" >&5
5558 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5559 if test "${ac_cv_working_alloca_h+set}" = set; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5562 cat >conftest.$ac_ext <<_ACEOF
5565 cat confdefs.h >>conftest.$ac_ext
5566 cat >>conftest.$ac_ext <<_ACEOF
5567 /* end confdefs.h. */
5572 char *p = (char *) alloca (2 * sizeof (int));
5577 rm -f conftest.$ac_objext conftest$ac_exeext
5578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5579 (eval $ac_link) 2>conftest.er1
5581 grep -v '^ *+' conftest.er1 >conftest.err
5583 cat conftest.err >&5
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); } &&
5586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); }; } &&
5592 { ac_try='test -s conftest$ac_exeext'
5593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); }; }; then
5598 ac_cv_working_alloca_h=yes
5600 echo "$as_me: failed program was:" >&5
5601 sed 's/^/| /' conftest.$ac_ext >&5
5603 ac_cv_working_alloca_h=no
5605 rm -f conftest.err conftest.$ac_objext \
5606 conftest$ac_exeext conftest.$ac_ext
5608 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5609 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5610 if test $ac_cv_working_alloca_h = yes; then
5612 cat >>confdefs.h <<\_ACEOF
5613 #define HAVE_ALLOCA_H 1
5618 echo "$as_me:$LINENO: checking for alloca" >&5
5619 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5620 if test "${ac_cv_func_alloca_works+set}" = set; then
5621 echo $ECHO_N "(cached) $ECHO_C" >&6
5623 cat >conftest.$ac_ext <<_ACEOF
5626 cat confdefs.h >>conftest.$ac_ext
5627 cat >>conftest.$ac_ext <<_ACEOF
5628 /* end confdefs.h. */
5630 # define alloca __builtin_alloca
5633 # include <malloc.h>
5634 # define alloca _alloca
5637 # include <alloca.h>
5642 # ifndef alloca /* predefined by HP cc +Olibcalls */
5653 char *p = (char *) alloca (1);
5658 rm -f conftest.$ac_objext conftest$ac_exeext
5659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5660 (eval $ac_link) 2>conftest.er1
5662 grep -v '^ *+' conftest.er1 >conftest.err
5664 cat conftest.err >&5
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); } &&
5667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); }; } &&
5673 { ac_try='test -s conftest$ac_exeext'
5674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); }; }; then
5679 ac_cv_func_alloca_works=yes
5681 echo "$as_me: failed program was:" >&5
5682 sed 's/^/| /' conftest.$ac_ext >&5
5684 ac_cv_func_alloca_works=no
5686 rm -f conftest.err conftest.$ac_objext \
5687 conftest$ac_exeext conftest.$ac_ext
5689 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5690 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5692 if test $ac_cv_func_alloca_works = yes; then
5694 cat >>confdefs.h <<\_ACEOF
5695 #define HAVE_ALLOCA 1
5699 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5700 # that cause trouble. Some versions do not even contain alloca or
5701 # contain a buggy version. If you still want to use their alloca,
5702 # use ar to extract alloca.o from them instead of compiling alloca.c.
5704 ALLOCA=alloca.$ac_objext
5706 cat >>confdefs.h <<\_ACEOF
5711 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5712 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5713 if test "${ac_cv_os_cray+set}" = set; then
5714 echo $ECHO_N "(cached) $ECHO_C" >&6
5716 cat >conftest.$ac_ext <<_ACEOF
5719 cat confdefs.h >>conftest.$ac_ext
5720 cat >>conftest.$ac_ext <<_ACEOF
5721 /* end confdefs.h. */
5722 #if defined(CRAY) && ! defined(CRAY2)
5729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5730 $EGREP "webecray" >/dev/null 2>&1; then
5738 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5739 echo "${ECHO_T}$ac_cv_os_cray" >&6
5740 if test $ac_cv_os_cray = yes; then
5741 for ac_func in _getb67 GETB67 getb67; do
5742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5743 echo "$as_me:$LINENO: checking for $ac_func" >&5
5744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5745 if eval "test \"\${$as_ac_var+set}\" = set"; then
5746 echo $ECHO_N "(cached) $ECHO_C" >&6
5748 cat >conftest.$ac_ext <<_ACEOF
5751 cat confdefs.h >>conftest.$ac_ext
5752 cat >>conftest.$ac_ext <<_ACEOF
5753 /* end confdefs.h. */
5754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5756 #define $ac_func innocuous_$ac_func
5758 /* System header to define __stub macros and hopefully few prototypes,
5759 which can conflict with char $ac_func (); below.
5760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5761 <limits.h> exists even on freestanding compilers. */
5764 # include <limits.h>
5766 # include <assert.h>
5771 /* Override any gcc2 internal prototype to avoid an error. */
5776 /* We use char because int might match the return type of a gcc2
5777 builtin and then its argument prototype would still apply. */
5779 /* The GNU C library defines this for functions which it implements
5780 to always fail with ENOSYS. Some functions are actually named
5781 something starting with __ and the normal name is an alias. */
5782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5785 char (*f) () = $ac_func;
5794 return f != $ac_func;
5799 rm -f conftest.$ac_objext conftest$ac_exeext
5800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5801 (eval $ac_link) 2>conftest.er1
5803 grep -v '^ *+' conftest.er1 >conftest.err
5805 cat conftest.err >&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); } &&
5808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); }; } &&
5814 { ac_try='test -s conftest$ac_exeext'
5815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); }; }; then
5820 eval "$as_ac_var=yes"
5822 echo "$as_me: failed program was:" >&5
5823 sed 's/^/| /' conftest.$ac_ext >&5
5825 eval "$as_ac_var=no"
5827 rm -f conftest.err conftest.$ac_objext \
5828 conftest$ac_exeext conftest.$ac_ext
5830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5831 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5832 if test `eval echo '${'$as_ac_var'}'` = yes; then
5834 cat >>confdefs.h <<_ACEOF
5835 #define CRAY_STACKSEG_END $ac_func
5844 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5845 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5846 if test "${ac_cv_c_stack_direction+set}" = set; then
5847 echo $ECHO_N "(cached) $ECHO_C" >&6
5849 if test "$cross_compiling" = yes; then
5850 ac_cv_c_stack_direction=0
5852 cat >conftest.$ac_ext <<_ACEOF
5855 cat confdefs.h >>conftest.$ac_ext
5856 cat >>conftest.$ac_ext <<_ACEOF
5857 /* end confdefs.h. */
5859 find_stack_direction ()
5861 static char *addr = 0;
5866 return find_stack_direction ();
5869 return (&dummy > addr) ? 1 : -1;
5875 exit (find_stack_direction () < 0);
5878 rm -f conftest$ac_exeext
5879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5880 (eval $ac_link) 2>&5
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); }; }; then
5889 ac_cv_c_stack_direction=1
5891 echo "$as_me: program exited with status $ac_status" >&5
5892 echo "$as_me: failed program was:" >&5
5893 sed 's/^/| /' conftest.$ac_ext >&5
5896 ac_cv_c_stack_direction=-1
5898 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5901 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5902 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5904 cat >>confdefs.h <<_ACEOF
5905 #define STACK_DIRECTION $ac_cv_c_stack_direction
5913 for ac_header in stdlib.h unistd.h
5915 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5917 echo "$as_me:$LINENO: checking for $ac_header" >&5
5918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
5922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5925 # Is the header compilable?
5926 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5927 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5928 cat >conftest.$ac_ext <<_ACEOF
5931 cat confdefs.h >>conftest.$ac_ext
5932 cat >>conftest.$ac_ext <<_ACEOF
5933 /* end confdefs.h. */
5934 $ac_includes_default
5935 #include <$ac_header>
5937 rm -f conftest.$ac_objext
5938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5939 (eval $ac_compile) 2>conftest.er1
5941 grep -v '^ *+' conftest.er1 >conftest.err
5943 cat conftest.err >&5
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); } &&
5946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); }; } &&
5952 { ac_try='test -s conftest.$ac_objext'
5953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); }; }; then
5958 ac_header_compiler=yes
5960 echo "$as_me: failed program was:" >&5
5961 sed 's/^/| /' conftest.$ac_ext >&5
5963 ac_header_compiler=no
5965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5966 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5967 echo "${ECHO_T}$ac_header_compiler" >&6
5969 # Is the header present?
5970 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5971 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5972 cat >conftest.$ac_ext <<_ACEOF
5975 cat confdefs.h >>conftest.$ac_ext
5976 cat >>conftest.$ac_ext <<_ACEOF
5977 /* end confdefs.h. */
5978 #include <$ac_header>
5980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5981 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5983 grep -v '^ *+' conftest.er1 >conftest.err
5985 cat conftest.err >&5
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); } >/dev/null; then
5988 if test -s conftest.err; then
5989 ac_cpp_err=$ac_c_preproc_warn_flag
5990 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5997 if test -z "$ac_cpp_err"; then
5998 ac_header_preproc=yes
6000 echo "$as_me: failed program was:" >&5
6001 sed 's/^/| /' conftest.$ac_ext >&5
6003 ac_header_preproc=no
6005 rm -f conftest.err conftest.$ac_ext
6006 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6007 echo "${ECHO_T}$ac_header_preproc" >&6
6009 # So? What about this header?
6010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6012 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6013 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6015 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6016 ac_header_preproc=yes
6019 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6020 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6021 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6022 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6023 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6024 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6025 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6026 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6029 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6030 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6033 ## ------------------------------------------ ##
6034 ## Report this to the AC_PACKAGE_NAME lists. ##
6035 ## ------------------------------------------ ##
6038 sed "s/^/$as_me: WARNING: /" >&2
6041 echo "$as_me:$LINENO: checking for $ac_header" >&5
6042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
6046 eval "$as_ac_Header=\$ac_header_preproc"
6048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6053 cat >>confdefs.h <<_ACEOF
6054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6062 for ac_func in getpagesize
6064 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6065 echo "$as_me:$LINENO: checking for $ac_func" >&5
6066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6067 if eval "test \"\${$as_ac_var+set}\" = set"; then
6068 echo $ECHO_N "(cached) $ECHO_C" >&6
6070 cat >conftest.$ac_ext <<_ACEOF
6073 cat confdefs.h >>conftest.$ac_ext
6074 cat >>conftest.$ac_ext <<_ACEOF
6075 /* end confdefs.h. */
6076 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6078 #define $ac_func innocuous_$ac_func
6080 /* System header to define __stub macros and hopefully few prototypes,
6081 which can conflict with char $ac_func (); below.
6082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6083 <limits.h> exists even on freestanding compilers. */
6086 # include <limits.h>
6088 # include <assert.h>
6093 /* Override any gcc2 internal prototype to avoid an error. */
6098 /* We use char because int might match the return type of a gcc2
6099 builtin and then its argument prototype would still apply. */
6101 /* The GNU C library defines this for functions which it implements
6102 to always fail with ENOSYS. Some functions are actually named
6103 something starting with __ and the normal name is an alias. */
6104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6107 char (*f) () = $ac_func;
6116 return f != $ac_func;
6121 rm -f conftest.$ac_objext conftest$ac_exeext
6122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6123 (eval $ac_link) 2>conftest.er1
6125 grep -v '^ *+' conftest.er1 >conftest.err
6127 cat conftest.err >&5
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); } &&
6130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); }; } &&
6136 { ac_try='test -s conftest$ac_exeext'
6137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); }; }; then
6142 eval "$as_ac_var=yes"
6144 echo "$as_me: failed program was:" >&5
6145 sed 's/^/| /' conftest.$ac_ext >&5
6147 eval "$as_ac_var=no"
6149 rm -f conftest.err conftest.$ac_objext \
6150 conftest$ac_exeext conftest.$ac_ext
6152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6153 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6154 if test `eval echo '${'$as_ac_var'}'` = yes; then
6155 cat >>confdefs.h <<_ACEOF
6156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6162 echo "$as_me:$LINENO: checking for working mmap" >&5
6163 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6164 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6165 echo $ECHO_N "(cached) $ECHO_C" >&6
6167 if test "$cross_compiling" = yes; then
6168 ac_cv_func_mmap_fixed_mapped=no
6170 cat >conftest.$ac_ext <<_ACEOF
6173 cat confdefs.h >>conftest.$ac_ext
6174 cat >>conftest.$ac_ext <<_ACEOF
6175 /* end confdefs.h. */
6176 $ac_includes_default
6177 /* malloc might have been renamed as rpl_malloc. */
6180 /* Thanks to Mike Haertel and Jim Avera for this test.
6181 Here is a matrix of mmap possibilities:
6182 mmap private not fixed
6183 mmap private fixed at somewhere currently unmapped
6184 mmap private fixed at somewhere already mapped
6185 mmap shared not fixed
6186 mmap shared fixed at somewhere currently unmapped
6187 mmap shared fixed at somewhere already mapped
6188 For private mappings, we should verify that changes cannot be read()
6189 back from the file, nor mmap's back from the file at a different
6190 address. (There have been systems where private was not correctly
6191 implemented like the infamous i386 svr4.0, and systems where the
6192 VM page cache was not coherent with the file system buffer cache
6193 like early versions of FreeBSD and possibly contemporary NetBSD.)
6194 For shared mappings, we should conversely verify that changes get
6195 propagated back to all the places they're supposed to be.
6197 Grep wants private fixed already mapped.
6198 The main things grep needs to know about mmap are:
6199 * does it exist and is it safe to write into the mmap'd area
6200 * how to use it (BSD variants) */
6203 #include <sys/mman.h>
6205 #if !STDC_HEADERS && !HAVE_STDLIB_H
6209 /* This mess was copied from the GNU getpagesize.h. */
6210 #if !HAVE_GETPAGESIZE
6211 /* Assume that all systems that can run configure have sys/param.h. */
6212 # if !HAVE_SYS_PARAM_H
6213 # define HAVE_SYS_PARAM_H 1
6216 # ifdef _SC_PAGESIZE
6217 # define getpagesize() sysconf(_SC_PAGESIZE)
6218 # else /* no _SC_PAGESIZE */
6219 # if HAVE_SYS_PARAM_H
6220 # include <sys/param.h>
6221 # ifdef EXEC_PAGESIZE
6222 # define getpagesize() EXEC_PAGESIZE
6223 # else /* no EXEC_PAGESIZE */
6225 # define getpagesize() NBPG * CLSIZE
6228 # endif /* no CLSIZE */
6229 # else /* no NBPG */
6231 # define getpagesize() NBPC
6232 # else /* no NBPC */
6234 # define getpagesize() PAGESIZE
6235 # endif /* PAGESIZE */
6236 # endif /* no NBPC */
6237 # endif /* no NBPG */
6238 # endif /* no EXEC_PAGESIZE */
6239 # else /* no HAVE_SYS_PARAM_H */
6240 # define getpagesize() 8192 /* punt totally */
6241 # endif /* no HAVE_SYS_PARAM_H */
6242 # endif /* no _SC_PAGESIZE */
6244 #endif /* no HAVE_GETPAGESIZE */
6249 char *data, *data2, *data3;
6253 pagesize = getpagesize ();
6255 /* First, make a file with some known garbage in it. */
6256 data = (char *) malloc (pagesize);
6259 for (i = 0; i < pagesize; ++i)
6260 *(data + i) = rand ();
6262 fd = creat ("conftest.mmap", 0600);
6265 if (write (fd, data, pagesize) != pagesize)
6269 /* Next, try to mmap the file at a fixed address which already has
6270 something else allocated at it. If we can, also make sure that
6271 we see the same garbage. */
6272 fd = open ("conftest.mmap", O_RDWR);
6275 data2 = (char *) malloc (2 * pagesize);
6278 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6279 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6280 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6282 for (i = 0; i < pagesize; ++i)
6283 if (*(data + i) != *(data2 + i))
6286 /* Finally, make sure that changes to the mapped area do not
6287 percolate back to the file as seen by read(). (This is a bug on
6288 some variants of i386 svr4.0.) */
6289 for (i = 0; i < pagesize; ++i)
6290 *(data2 + i) = *(data2 + i) + 1;
6291 data3 = (char *) malloc (pagesize);
6294 if (read (fd, data3, pagesize) != pagesize)
6296 for (i = 0; i < pagesize; ++i)
6297 if (*(data + i) != *(data3 + i))
6303 rm -f conftest$ac_exeext
6304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6305 (eval $ac_link) 2>&5
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); }; }; then
6314 ac_cv_func_mmap_fixed_mapped=yes
6316 echo "$as_me: program exited with status $ac_status" >&5
6317 echo "$as_me: failed program was:" >&5
6318 sed 's/^/| /' conftest.$ac_ext >&5
6321 ac_cv_func_mmap_fixed_mapped=no
6323 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6326 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6327 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6328 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6330 cat >>confdefs.h <<\_ACEOF
6347 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6348 unistd.h values.h sys/param.h
6350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6352 echo "$as_me:$LINENO: checking for $ac_header" >&5
6353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6355 echo $ECHO_N "(cached) $ECHO_C" >&6
6357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6360 # Is the header compilable?
6361 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6362 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6363 cat >conftest.$ac_ext <<_ACEOF
6366 cat confdefs.h >>conftest.$ac_ext
6367 cat >>conftest.$ac_ext <<_ACEOF
6368 /* end confdefs.h. */
6369 $ac_includes_default
6370 #include <$ac_header>
6372 rm -f conftest.$ac_objext
6373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6374 (eval $ac_compile) 2>conftest.er1
6376 grep -v '^ *+' conftest.er1 >conftest.err
6378 cat conftest.err >&5
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); } &&
6381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); }; } &&
6387 { ac_try='test -s conftest.$ac_objext'
6388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); }; }; then
6393 ac_header_compiler=yes
6395 echo "$as_me: failed program was:" >&5
6396 sed 's/^/| /' conftest.$ac_ext >&5
6398 ac_header_compiler=no
6400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6401 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6402 echo "${ECHO_T}$ac_header_compiler" >&6
6404 # Is the header present?
6405 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6406 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6407 cat >conftest.$ac_ext <<_ACEOF
6410 cat confdefs.h >>conftest.$ac_ext
6411 cat >>conftest.$ac_ext <<_ACEOF
6412 /* end confdefs.h. */
6413 #include <$ac_header>
6415 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6416 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6418 grep -v '^ *+' conftest.er1 >conftest.err
6420 cat conftest.err >&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); } >/dev/null; then
6423 if test -s conftest.err; then
6424 ac_cpp_err=$ac_c_preproc_warn_flag
6425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6432 if test -z "$ac_cpp_err"; then
6433 ac_header_preproc=yes
6435 echo "$as_me: failed program was:" >&5
6436 sed 's/^/| /' conftest.$ac_ext >&5
6438 ac_header_preproc=no
6440 rm -f conftest.err conftest.$ac_ext
6441 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6442 echo "${ECHO_T}$ac_header_preproc" >&6
6444 # So? What about this header?
6445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6447 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6448 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6450 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6451 ac_header_preproc=yes
6454 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6455 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6456 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6457 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6458 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6459 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6460 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6461 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6463 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6464 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6465 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6468 ## ------------------------------------------ ##
6469 ## Report this to the AC_PACKAGE_NAME lists. ##
6470 ## ------------------------------------------ ##
6473 sed "s/^/$as_me: WARNING: /" >&2
6476 echo "$as_me:$LINENO: checking for $ac_header" >&5
6477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6479 echo $ECHO_N "(cached) $ECHO_C" >&6
6481 eval "$as_ac_Header=\$ac_header_preproc"
6483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6488 cat >>confdefs.h <<_ACEOF
6489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6506 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
6507 __argz_count __argz_stringify __argz_next
6509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6510 echo "$as_me:$LINENO: checking for $ac_func" >&5
6511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6512 if eval "test \"\${$as_ac_var+set}\" = set"; then
6513 echo $ECHO_N "(cached) $ECHO_C" >&6
6515 cat >conftest.$ac_ext <<_ACEOF
6518 cat confdefs.h >>conftest.$ac_ext
6519 cat >>conftest.$ac_ext <<_ACEOF
6520 /* end confdefs.h. */
6521 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6523 #define $ac_func innocuous_$ac_func
6525 /* System header to define __stub macros and hopefully few prototypes,
6526 which can conflict with char $ac_func (); below.
6527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6528 <limits.h> exists even on freestanding compilers. */
6531 # include <limits.h>
6533 # include <assert.h>
6538 /* Override any gcc2 internal prototype to avoid an error. */
6543 /* We use char because int might match the return type of a gcc2
6544 builtin and then its argument prototype would still apply. */
6546 /* The GNU C library defines this for functions which it implements
6547 to always fail with ENOSYS. Some functions are actually named
6548 something starting with __ and the normal name is an alias. */
6549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6552 char (*f) () = $ac_func;
6561 return f != $ac_func;
6566 rm -f conftest.$ac_objext conftest$ac_exeext
6567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6568 (eval $ac_link) 2>conftest.er1
6570 grep -v '^ *+' conftest.er1 >conftest.err
6572 cat conftest.err >&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); } &&
6575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); }; } &&
6581 { ac_try='test -s conftest$ac_exeext'
6582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); }; }; then
6587 eval "$as_ac_var=yes"
6589 echo "$as_me: failed program was:" >&5
6590 sed 's/^/| /' conftest.$ac_ext >&5
6592 eval "$as_ac_var=no"
6594 rm -f conftest.err conftest.$ac_objext \
6595 conftest$ac_exeext conftest.$ac_ext
6597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6598 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6599 if test `eval echo '${'$as_ac_var'}'` = yes; then
6600 cat >>confdefs.h <<_ACEOF
6601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6608 if test "${ac_cv_func_stpcpy+set}" != "set"; then
6610 for ac_func in stpcpy
6612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6613 echo "$as_me:$LINENO: checking for $ac_func" >&5
6614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6615 if eval "test \"\${$as_ac_var+set}\" = set"; then
6616 echo $ECHO_N "(cached) $ECHO_C" >&6
6618 cat >conftest.$ac_ext <<_ACEOF
6621 cat confdefs.h >>conftest.$ac_ext
6622 cat >>conftest.$ac_ext <<_ACEOF
6623 /* end confdefs.h. */
6624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6626 #define $ac_func innocuous_$ac_func
6628 /* System header to define __stub macros and hopefully few prototypes,
6629 which can conflict with char $ac_func (); below.
6630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6631 <limits.h> exists even on freestanding compilers. */
6634 # include <limits.h>
6636 # include <assert.h>
6641 /* Override any gcc2 internal prototype to avoid an error. */
6646 /* We use char because int might match the return type of a gcc2
6647 builtin and then its argument prototype would still apply. */
6649 /* The GNU C library defines this for functions which it implements
6650 to always fail with ENOSYS. Some functions are actually named
6651 something starting with __ and the normal name is an alias. */
6652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6655 char (*f) () = $ac_func;
6664 return f != $ac_func;
6669 rm -f conftest.$ac_objext conftest$ac_exeext
6670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6671 (eval $ac_link) 2>conftest.er1
6673 grep -v '^ *+' conftest.er1 >conftest.err
6675 cat conftest.err >&5
6676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677 (exit $ac_status); } &&
6678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); }; } &&
6684 { ac_try='test -s conftest$ac_exeext'
6685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); }; }; then
6690 eval "$as_ac_var=yes"
6692 echo "$as_me: failed program was:" >&5
6693 sed 's/^/| /' conftest.$ac_ext >&5
6695 eval "$as_ac_var=no"
6697 rm -f conftest.err conftest.$ac_objext \
6698 conftest$ac_exeext conftest.$ac_ext
6700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6701 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6702 if test `eval echo '${'$as_ac_var'}'` = yes; then
6703 cat >>confdefs.h <<_ACEOF
6704 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6711 if test "${ac_cv_func_stpcpy}" = "yes"; then
6713 cat >>confdefs.h <<\_ACEOF
6714 #define HAVE_STPCPY 1
6719 if test $ac_cv_header_locale_h = yes; then
6720 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
6721 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
6722 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 cat >conftest.$ac_ext <<_ACEOF
6728 cat confdefs.h >>conftest.$ac_ext
6729 cat >>conftest.$ac_ext <<_ACEOF
6730 /* end confdefs.h. */
6740 rm -f conftest.$ac_objext conftest$ac_exeext
6741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6742 (eval $ac_link) 2>conftest.er1
6744 grep -v '^ *+' conftest.er1 >conftest.err
6746 cat conftest.err >&5
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); } &&
6749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); }; } &&
6755 { ac_try='test -s conftest$ac_exeext'
6756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); }; }; then
6761 am_cv_val_LC_MESSAGES=yes
6763 echo "$as_me: failed program was:" >&5
6764 sed 's/^/| /' conftest.$ac_ext >&5
6766 am_cv_val_LC_MESSAGES=no
6768 rm -f conftest.err conftest.$ac_objext \
6769 conftest$ac_exeext conftest.$ac_ext
6771 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
6772 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
6773 if test $am_cv_val_LC_MESSAGES = yes; then
6775 cat >>confdefs.h <<\_ACEOF
6776 #define HAVE_LC_MESSAGES 1
6781 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6782 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
6783 # Check whether --enable-nls or --disable-nls was given.
6784 if test "${enable_nls+set}" = set; then
6785 enableval="$enable_nls"
6790 echo "$as_me:$LINENO: result: $USE_NLS" >&5
6791 echo "${ECHO_T}$USE_NLS" >&6
6794 USE_INCLUDED_LIBINTL=no
6796 if test "$USE_NLS" = "yes"; then
6798 cat >>confdefs.h <<\_ACEOF
6799 #define ENABLE_NLS 1
6802 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
6803 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
6805 # Check whether --with-included-gettext or --without-included-gettext was given.
6806 if test "${with_included_gettext+set}" = set; then
6807 withval="$with_included_gettext"
6808 nls_cv_force_use_gnu_gettext=$withval
6810 nls_cv_force_use_gnu_gettext=no
6812 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
6813 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
6815 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
6816 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
6818 nls_cv_header_libgt=
6821 if test "${ac_cv_header_libintl_h+set}" = set; then
6822 echo "$as_me:$LINENO: checking for libintl.h" >&5
6823 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
6824 if test "${ac_cv_header_libintl_h+set}" = set; then
6825 echo $ECHO_N "(cached) $ECHO_C" >&6
6827 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6828 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
6830 # Is the header compilable?
6831 echo "$as_me:$LINENO: checking libintl.h usability" >&5
6832 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
6833 cat >conftest.$ac_ext <<_ACEOF
6836 cat confdefs.h >>conftest.$ac_ext
6837 cat >>conftest.$ac_ext <<_ACEOF
6838 /* end confdefs.h. */
6839 $ac_includes_default
6840 #include <libintl.h>
6842 rm -f conftest.$ac_objext
6843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6844 (eval $ac_compile) 2>conftest.er1
6846 grep -v '^ *+' conftest.er1 >conftest.err
6848 cat conftest.err >&5
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); } &&
6851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); }; } &&
6857 { ac_try='test -s conftest.$ac_objext'
6858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862 (exit $ac_status); }; }; then
6863 ac_header_compiler=yes
6865 echo "$as_me: failed program was:" >&5
6866 sed 's/^/| /' conftest.$ac_ext >&5
6868 ac_header_compiler=no
6870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6871 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6872 echo "${ECHO_T}$ac_header_compiler" >&6
6874 # Is the header present?
6875 echo "$as_me:$LINENO: checking libintl.h presence" >&5
6876 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
6877 cat >conftest.$ac_ext <<_ACEOF
6880 cat confdefs.h >>conftest.$ac_ext
6881 cat >>conftest.$ac_ext <<_ACEOF
6882 /* end confdefs.h. */
6883 #include <libintl.h>
6885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6888 grep -v '^ *+' conftest.er1 >conftest.err
6890 cat conftest.err >&5
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); } >/dev/null; then
6893 if test -s conftest.err; then
6894 ac_cpp_err=$ac_c_preproc_warn_flag
6895 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6902 if test -z "$ac_cpp_err"; then
6903 ac_header_preproc=yes
6905 echo "$as_me: failed program was:" >&5
6906 sed 's/^/| /' conftest.$ac_ext >&5
6908 ac_header_preproc=no
6910 rm -f conftest.err conftest.$ac_ext
6911 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6912 echo "${ECHO_T}$ac_header_preproc" >&6
6914 # So? What about this header?
6915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6917 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
6918 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6919 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
6920 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
6921 ac_header_preproc=yes
6924 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
6925 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
6926 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
6927 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
6928 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
6929 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
6930 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
6931 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
6932 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
6933 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
6934 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
6935 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
6938 ## ------------------------------------------ ##
6939 ## Report this to the AC_PACKAGE_NAME lists. ##
6940 ## ------------------------------------------ ##
6943 sed "s/^/$as_me: WARNING: /" >&2
6946 echo "$as_me:$LINENO: checking for libintl.h" >&5
6947 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
6948 if test "${ac_cv_header_libintl_h+set}" = set; then
6949 echo $ECHO_N "(cached) $ECHO_C" >&6
6951 ac_cv_header_libintl_h=$ac_header_preproc
6953 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6954 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
6957 if test $ac_cv_header_libintl_h = yes; then
6958 echo "$as_me:$LINENO: checking for gettext in libc" >&5
6959 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
6960 if test "${gt_cv_func_gettext_libc+set}" = set; then
6961 echo $ECHO_N "(cached) $ECHO_C" >&6
6963 cat >conftest.$ac_ext <<_ACEOF
6966 cat confdefs.h >>conftest.$ac_ext
6967 cat >>conftest.$ac_ext <<_ACEOF
6968 /* end confdefs.h. */
6969 #include <libintl.h>
6973 return (int) gettext ("")
6978 rm -f conftest.$ac_objext conftest$ac_exeext
6979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6980 (eval $ac_link) 2>conftest.er1
6982 grep -v '^ *+' conftest.er1 >conftest.err
6984 cat conftest.err >&5
6985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986 (exit $ac_status); } &&
6987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); }; } &&
6993 { ac_try='test -s conftest$ac_exeext'
6994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); }; }; then
6999 gt_cv_func_gettext_libc=yes
7001 echo "$as_me: failed program was:" >&5
7002 sed 's/^/| /' conftest.$ac_ext >&5
7004 gt_cv_func_gettext_libc=no
7006 rm -f conftest.err conftest.$ac_objext \
7007 conftest$ac_exeext conftest.$ac_ext
7009 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7010 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
7012 if test "$gt_cv_func_gettext_libc" != "yes"; then
7013 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7014 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7015 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7016 echo $ECHO_N "(cached) $ECHO_C" >&6
7018 ac_check_lib_save_LIBS=$LIBS
7020 cat >conftest.$ac_ext <<_ACEOF
7023 cat confdefs.h >>conftest.$ac_ext
7024 cat >>conftest.$ac_ext <<_ACEOF
7025 /* end confdefs.h. */
7027 /* Override any gcc2 internal prototype to avoid an error. */
7031 /* We use char because int might match the return type of a gcc2
7032 builtin and then its argument prototype would still apply. */
7033 char bindtextdomain ();
7042 rm -f conftest.$ac_objext conftest$ac_exeext
7043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7044 (eval $ac_link) 2>conftest.er1
7046 grep -v '^ *+' conftest.er1 >conftest.err
7048 cat conftest.err >&5
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); } &&
7051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); }; } &&
7057 { ac_try='test -s conftest$ac_exeext'
7058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); }; }; then
7063 ac_cv_lib_intl_bindtextdomain=yes
7065 echo "$as_me: failed program was:" >&5
7066 sed 's/^/| /' conftest.$ac_ext >&5
7068 ac_cv_lib_intl_bindtextdomain=no
7070 rm -f conftest.err conftest.$ac_objext \
7071 conftest$ac_exeext conftest.$ac_ext
7072 LIBS=$ac_check_lib_save_LIBS
7074 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7075 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7076 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7077 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7078 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7079 if test "${gt_cv_func_gettext_libintl+set}" = set; then
7080 echo $ECHO_N "(cached) $ECHO_C" >&6
7082 cat >conftest.$ac_ext <<_ACEOF
7085 cat confdefs.h >>conftest.$ac_ext
7086 cat >>conftest.$ac_ext <<_ACEOF
7087 /* end confdefs.h. */
7092 return (int) gettext ("")
7097 rm -f conftest.$ac_objext conftest$ac_exeext
7098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7099 (eval $ac_link) 2>conftest.er1
7101 grep -v '^ *+' conftest.er1 >conftest.err
7103 cat conftest.err >&5
7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 (exit $ac_status); } &&
7106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111 (exit $ac_status); }; } &&
7112 { ac_try='test -s conftest$ac_exeext'
7113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); }; }; then
7118 gt_cv_func_gettext_libintl=yes
7120 echo "$as_me: failed program was:" >&5
7121 sed 's/^/| /' conftest.$ac_ext >&5
7123 gt_cv_func_gettext_libintl=no
7125 rm -f conftest.err conftest.$ac_objext \
7126 conftest$ac_exeext conftest.$ac_ext
7128 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7129 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
7134 if test "$gt_cv_func_gettext_libc" = "yes" \
7135 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7137 cat >>confdefs.h <<\_ACEOF
7138 #define HAVE_GETTEXT 1
7141 # Extract the first word of "msgfmt", so it can be a program name with args.
7142 set dummy msgfmt; ac_word=$2
7143 echo "$as_me:$LINENO: checking for $ac_word" >&5
7144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7145 if test "${ac_cv_path_MSGFMT+set}" = set; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
7150 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7153 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7154 for ac_dir in $PATH; do
7155 test -z "$ac_dir" && ac_dir=.
7156 if test -f $ac_dir/$ac_word; then
7157 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7158 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7164 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7168 MSGFMT="$ac_cv_path_MSGFMT"
7169 if test -n "$MSGFMT"; then
7170 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7171 echo "${ECHO_T}$MSGFMT" >&6
7173 echo "$as_me:$LINENO: result: no" >&5
7174 echo "${ECHO_T}no" >&6
7176 if test "$MSGFMT" != "no"; then
7178 for ac_func in dcgettext
7180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7181 echo "$as_me:$LINENO: checking for $ac_func" >&5
7182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7183 if eval "test \"\${$as_ac_var+set}\" = set"; then
7184 echo $ECHO_N "(cached) $ECHO_C" >&6
7186 cat >conftest.$ac_ext <<_ACEOF
7189 cat confdefs.h >>conftest.$ac_ext
7190 cat >>conftest.$ac_ext <<_ACEOF
7191 /* end confdefs.h. */
7192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7194 #define $ac_func innocuous_$ac_func
7196 /* System header to define __stub macros and hopefully few prototypes,
7197 which can conflict with char $ac_func (); below.
7198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7199 <limits.h> exists even on freestanding compilers. */
7202 # include <limits.h>
7204 # include <assert.h>
7209 /* Override any gcc2 internal prototype to avoid an error. */
7214 /* We use char because int might match the return type of a gcc2
7215 builtin and then its argument prototype would still apply. */
7217 /* The GNU C library defines this for functions which it implements
7218 to always fail with ENOSYS. Some functions are actually named
7219 something starting with __ and the normal name is an alias. */
7220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7223 char (*f) () = $ac_func;
7232 return f != $ac_func;
7237 rm -f conftest.$ac_objext conftest$ac_exeext
7238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7239 (eval $ac_link) 2>conftest.er1
7241 grep -v '^ *+' conftest.er1 >conftest.err
7243 cat conftest.err >&5
7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); } &&
7246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); }; } &&
7252 { ac_try='test -s conftest$ac_exeext'
7253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257 (exit $ac_status); }; }; then
7258 eval "$as_ac_var=yes"
7260 echo "$as_me: failed program was:" >&5
7261 sed 's/^/| /' conftest.$ac_ext >&5
7263 eval "$as_ac_var=no"
7265 rm -f conftest.err conftest.$ac_objext \
7266 conftest$ac_exeext conftest.$ac_ext
7268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7269 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7270 if test `eval echo '${'$as_ac_var'}'` = yes; then
7271 cat >>confdefs.h <<_ACEOF
7272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7278 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7279 set dummy gmsgfmt; ac_word=$2
7280 echo "$as_me:$LINENO: checking for $ac_word" >&5
7281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7282 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7283 echo $ECHO_N "(cached) $ECHO_C" >&6
7287 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294 test -z "$as_dir" && as_dir=.
7295 for ac_exec_ext in '' $ac_executable_extensions; do
7296 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7297 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7304 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7308 GMSGFMT=$ac_cv_path_GMSGFMT
7310 if test -n "$GMSGFMT"; then
7311 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7312 echo "${ECHO_T}$GMSGFMT" >&6
7314 echo "$as_me:$LINENO: result: no" >&5
7315 echo "${ECHO_T}no" >&6
7318 # Extract the first word of "xgettext", so it can be a program name with args.
7319 set dummy xgettext; ac_word=$2
7320 echo "$as_me:$LINENO: checking for $ac_word" >&5
7321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7322 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
7327 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7330 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7331 for ac_dir in $PATH; do
7332 test -z "$ac_dir" && ac_dir=.
7333 if test -f $ac_dir/$ac_word; then
7334 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7335 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7341 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7345 XGETTEXT="$ac_cv_path_XGETTEXT"
7346 if test -n "$XGETTEXT"; then
7347 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7348 echo "${ECHO_T}$XGETTEXT" >&6
7350 echo "$as_me:$LINENO: result: no" >&5
7351 echo "${ECHO_T}no" >&6
7354 cat >conftest.$ac_ext <<_ACEOF
7357 cat confdefs.h >>conftest.$ac_ext
7358 cat >>conftest.$ac_ext <<_ACEOF
7359 /* end confdefs.h. */
7364 extern int _nl_msg_cat_cntr;
7365 return _nl_msg_cat_cntr
7370 rm -f conftest.$ac_objext conftest$ac_exeext
7371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7372 (eval $ac_link) 2>conftest.er1
7374 grep -v '^ *+' conftest.er1 >conftest.err
7376 cat conftest.err >&5
7377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378 (exit $ac_status); } &&
7379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384 (exit $ac_status); }; } &&
7385 { ac_try='test -s conftest$ac_exeext'
7386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); }; }; then
7394 echo "$as_me: failed program was:" >&5
7395 sed 's/^/| /' conftest.$ac_ext >&5
7400 rm -f conftest.err conftest.$ac_objext \
7401 conftest$ac_exeext conftest.$ac_ext
7411 if test "$CATOBJEXT" = "NONE"; then
7412 nls_cv_use_gnu_gettext=yes
7416 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7417 INTLOBJS="\$(GETTOBJS)"
7418 # Extract the first word of "msgfmt", so it can be a program name with args.
7419 set dummy msgfmt; ac_word=$2
7420 echo "$as_me:$LINENO: checking for $ac_word" >&5
7421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7422 if test "${ac_cv_path_MSGFMT+set}" = set; then
7423 echo $ECHO_N "(cached) $ECHO_C" >&6
7427 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7430 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7431 for ac_dir in $PATH; do
7432 test -z "$ac_dir" && ac_dir=.
7433 if test -f $ac_dir/$ac_word; then
7434 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7435 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7441 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7445 MSGFMT="$ac_cv_path_MSGFMT"
7446 if test -n "$MSGFMT"; then
7447 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7448 echo "${ECHO_T}$MSGFMT" >&6
7450 echo "$as_me:$LINENO: result: no" >&5
7451 echo "${ECHO_T}no" >&6
7454 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7455 set dummy gmsgfmt; ac_word=$2
7456 echo "$as_me:$LINENO: checking for $ac_word" >&5
7457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7458 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7459 echo $ECHO_N "(cached) $ECHO_C" >&6
7463 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470 test -z "$as_dir" && as_dir=.
7471 for ac_exec_ext in '' $ac_executable_extensions; do
7472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7473 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7480 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7484 GMSGFMT=$ac_cv_path_GMSGFMT
7486 if test -n "$GMSGFMT"; then
7487 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7488 echo "${ECHO_T}$GMSGFMT" >&6
7490 echo "$as_me:$LINENO: result: no" >&5
7491 echo "${ECHO_T}no" >&6
7494 # Extract the first word of "xgettext", so it can be a program name with args.
7495 set dummy xgettext; ac_word=$2
7496 echo "$as_me:$LINENO: checking for $ac_word" >&5
7497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7498 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7499 echo $ECHO_N "(cached) $ECHO_C" >&6
7503 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7506 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7507 for ac_dir in $PATH; do
7508 test -z "$ac_dir" && ac_dir=.
7509 if test -f $ac_dir/$ac_word; then
7510 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7511 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7517 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7521 XGETTEXT="$ac_cv_path_XGETTEXT"
7522 if test -n "$XGETTEXT"; then
7523 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7524 echo "${ECHO_T}$XGETTEXT" >&6
7526 echo "$as_me:$LINENO: result: no" >&5
7527 echo "${ECHO_T}no" >&6
7531 USE_INCLUDED_LIBINTL=yes
7535 INTLDEPS='$(top_builddir)/../intl/libintl.a'
7537 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7538 nls_cv_header_intl=libintl.h
7539 nls_cv_header_libgt=libgettext.h
7542 if test "$XGETTEXT" != ":"; then
7543 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7546 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
7547 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
7552 # We need to process the po/ directory.
7556 nls_cv_header_intl=libintl.h
7557 nls_cv_header_libgt=libgettext.h
7560 # If this is used in GNU gettext we have to set USE_NLS to `yes'
7561 # because some of the sources are only built for this goal.
7562 if test "$PACKAGE" = gettext; then
7564 USE_INCLUDED_LIBINTL=yes
7567 for lang in $ALL_LINGUAS; do
7568 GMOFILES="$GMOFILES $lang.gmo"
7569 POFILES="$POFILES $lang.po"
7585 if test "x$CATOBJEXT" != "x"; then
7586 if test "x$ALL_LINGUAS" = "x"; then
7589 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
7590 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
7592 for lang in ${LINGUAS=$ALL_LINGUAS}; do
7593 case "$ALL_LINGUAS" in
7594 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
7597 LINGUAS=$NEW_LINGUAS
7598 echo "$as_me:$LINENO: result: $LINGUAS" >&5
7599 echo "${ECHO_T}$LINGUAS" >&6
7602 if test -n "$LINGUAS"; then
7603 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7607 if test $ac_cv_header_locale_h = yes; then
7608 INCLUDE_LOCALE_H="#include <locale.h>"
7611 /* The system does not provide the header <locale.h>. Take care yourself. */"
7615 if test -f $srcdir/po2tbl.sed.in; then
7616 if test "$CATOBJEXT" = ".cat"; then
7617 if test "${ac_cv_header_linux_version_h+set}" = set; then
7618 echo "$as_me:$LINENO: checking for linux/version.h" >&5
7619 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
7620 if test "${ac_cv_header_linux_version_h+set}" = set; then
7621 echo $ECHO_N "(cached) $ECHO_C" >&6
7623 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
7624 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
7626 # Is the header compilable?
7627 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
7628 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
7629 cat >conftest.$ac_ext <<_ACEOF
7632 cat confdefs.h >>conftest.$ac_ext
7633 cat >>conftest.$ac_ext <<_ACEOF
7634 /* end confdefs.h. */
7635 $ac_includes_default
7636 #include <linux/version.h>
7638 rm -f conftest.$ac_objext
7639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7640 (eval $ac_compile) 2>conftest.er1
7642 grep -v '^ *+' conftest.er1 >conftest.err
7644 cat conftest.err >&5
7645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646 (exit $ac_status); } &&
7647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); }; } &&
7653 { ac_try='test -s conftest.$ac_objext'
7654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); }; }; then
7659 ac_header_compiler=yes
7661 echo "$as_me: failed program was:" >&5
7662 sed 's/^/| /' conftest.$ac_ext >&5
7664 ac_header_compiler=no
7666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7667 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7668 echo "${ECHO_T}$ac_header_compiler" >&6
7670 # Is the header present?
7671 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
7672 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
7673 cat >conftest.$ac_ext <<_ACEOF
7676 cat confdefs.h >>conftest.$ac_ext
7677 cat >>conftest.$ac_ext <<_ACEOF
7678 /* end confdefs.h. */
7679 #include <linux/version.h>
7681 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7682 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7684 grep -v '^ *+' conftest.er1 >conftest.err
7686 cat conftest.err >&5
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); } >/dev/null; then
7689 if test -s conftest.err; then
7690 ac_cpp_err=$ac_c_preproc_warn_flag
7691 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7698 if test -z "$ac_cpp_err"; then
7699 ac_header_preproc=yes
7701 echo "$as_me: failed program was:" >&5
7702 sed 's/^/| /' conftest.$ac_ext >&5
7704 ac_header_preproc=no
7706 rm -f conftest.err conftest.$ac_ext
7707 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7708 echo "${ECHO_T}$ac_header_preproc" >&6
7710 # So? What about this header?
7711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7713 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
7714 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7715 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
7716 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
7717 ac_header_preproc=yes
7720 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
7721 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
7722 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
7723 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
7724 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
7725 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
7726 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
7727 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
7728 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
7729 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
7730 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
7731 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
7734 ## ------------------------------------------ ##
7735 ## Report this to the AC_PACKAGE_NAME lists. ##
7736 ## ------------------------------------------ ##
7739 sed "s/^/$as_me: WARNING: /" >&2
7742 echo "$as_me:$LINENO: checking for linux/version.h" >&5
7743 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
7744 if test "${ac_cv_header_linux_version_h+set}" = set; then
7745 echo $ECHO_N "(cached) $ECHO_C" >&6
7747 ac_cv_header_linux_version_h=$ac_header_preproc
7749 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
7750 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
7753 if test $ac_cv_header_linux_version_h = yes; then
7761 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
7763 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
7764 $srcdir/po2tbl.sed.in > po2tbl.sed
7767 if test "$PACKAGE" = "gettext"; then
7777 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
7783 if test -f $srcdir/po/POTFILES.in; then
7784 test -d po || mkdir po
7785 if test "x$srcdir" != "x."; then
7786 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
7787 posrcprefix="$srcdir/"
7789 posrcprefix="../$srcdir/"
7795 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
7796 < $srcdir/po/POTFILES.in > po/POTFILES
7800 . ${srcdir}/../bfd/configure.host
7802 # Put a plausible default for CC_FOR_BUILD in Makefile.
7803 if test -z "$CC_FOR_BUILD"; then
7804 if test "x$cross_compiling" = "xno"; then
7805 CC_FOR_BUILD='$(CC)'
7811 # Also set EXEEXT_FOR_BUILD.
7812 if test "x$cross_compiling" = "xno"; then
7813 EXEEXT_FOR_BUILD='$(EXEEXT)'
7815 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
7816 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
7817 if test "${bfd_cv_build_exeext+set}" = set; then
7818 echo $ECHO_N "(cached) $ECHO_C" >&6
7821 echo 'int main () { return 0; }' > conftest.c
7822 bfd_cv_build_exeext=
7823 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
7824 for file in conftest.*; do
7826 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
7827 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
7831 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
7833 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
7834 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
7836 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
7841 # Find a good install program. We prefer a C program (faster),
7842 # so one script is as good as another. But avoid the broken or
7843 # incompatible versions:
7844 # SysV /etc/install, /usr/sbin/install
7845 # SunOS /usr/etc/install
7846 # IRIX /sbin/install
7848 # AmigaOS /C/install, which installs bootblocks on floppy discs
7849 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7850 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7851 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7852 # OS/2's system install, which has a completely different semantic
7853 # ./install, which can be erroneously created by make from ./install.sh.
7854 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7855 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7856 if test -z "$INSTALL"; then
7857 if test "${ac_cv_path_install+set}" = set; then
7858 echo $ECHO_N "(cached) $ECHO_C" >&6
7860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7864 test -z "$as_dir" && as_dir=.
7865 # Account for people who put trailing slashes in PATH elements.
7867 ./ | .// | /cC/* | \
7868 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7869 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7872 # OSF1 and SCO ODT 3.0 have their own names for install.
7873 # Don't use installbsd from OSF since it installs stuff as root
7875 for ac_prog in ginstall scoinst install; do
7876 for ac_exec_ext in '' $ac_executable_extensions; do
7877 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7878 if test $ac_prog = install &&
7879 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7880 # AIX install. It has an incompatible calling convention.
7882 elif test $ac_prog = install &&
7883 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7884 # program-specific install script used by HP pwplus--don't use.
7887 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7899 if test "${ac_cv_path_install+set}" = set; then
7900 INSTALL=$ac_cv_path_install
7902 # As a last resort, use the slow shell script. We don't cache a
7903 # path for INSTALL within a source directory, because that will
7904 # break other packages using the cache if that directory is
7905 # removed, or if the path is relative.
7906 INSTALL=$ac_install_sh
7909 echo "$as_me:$LINENO: result: $INSTALL" >&5
7910 echo "${ECHO_T}$INSTALL" >&6
7912 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7913 # It thinks the first close brace ends the variable substitution.
7914 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7916 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7918 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7924 for ac_header in string.h strings.h stdlib.h
7926 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7928 echo "$as_me:$LINENO: checking for $ac_header" >&5
7929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7931 echo $ECHO_N "(cached) $ECHO_C" >&6
7933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7936 # Is the header compilable?
7937 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7938 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7939 cat >conftest.$ac_ext <<_ACEOF
7942 cat confdefs.h >>conftest.$ac_ext
7943 cat >>conftest.$ac_ext <<_ACEOF
7944 /* end confdefs.h. */
7945 $ac_includes_default
7946 #include <$ac_header>
7948 rm -f conftest.$ac_objext
7949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7950 (eval $ac_compile) 2>conftest.er1
7952 grep -v '^ *+' conftest.er1 >conftest.err
7954 cat conftest.err >&5
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); } &&
7957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962 (exit $ac_status); }; } &&
7963 { ac_try='test -s conftest.$ac_objext'
7964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); }; }; then
7969 ac_header_compiler=yes
7971 echo "$as_me: failed program was:" >&5
7972 sed 's/^/| /' conftest.$ac_ext >&5
7974 ac_header_compiler=no
7976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7977 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7978 echo "${ECHO_T}$ac_header_compiler" >&6
7980 # Is the header present?
7981 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7983 cat >conftest.$ac_ext <<_ACEOF
7986 cat confdefs.h >>conftest.$ac_ext
7987 cat >>conftest.$ac_ext <<_ACEOF
7988 /* end confdefs.h. */
7989 #include <$ac_header>
7991 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7992 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7994 grep -v '^ *+' conftest.er1 >conftest.err
7996 cat conftest.err >&5
7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); } >/dev/null; then
7999 if test -s conftest.err; then
8000 ac_cpp_err=$ac_c_preproc_warn_flag
8001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8008 if test -z "$ac_cpp_err"; then
8009 ac_header_preproc=yes
8011 echo "$as_me: failed program was:" >&5
8012 sed 's/^/| /' conftest.$ac_ext >&5
8014 ac_header_preproc=no
8016 rm -f conftest.err conftest.$ac_ext
8017 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8018 echo "${ECHO_T}$ac_header_preproc" >&6
8020 # So? What about this header?
8021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8023 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8024 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8026 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8027 ac_header_preproc=yes
8030 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8031 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8032 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8033 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8034 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8035 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8036 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8037 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8039 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8040 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8041 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8044 ## ------------------------------------------ ##
8045 ## Report this to the AC_PACKAGE_NAME lists. ##
8046 ## ------------------------------------------ ##
8049 sed "s/^/$as_me: WARNING: /" >&2
8052 echo "$as_me:$LINENO: checking for $ac_header" >&5
8053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8055 echo $ECHO_N "(cached) $ECHO_C" >&6
8057 eval "$as_ac_Header=\$ac_header_preproc"
8059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8064 cat >>confdefs.h <<_ACEOF
8065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8074 cgendir='$(srcdir)/../cgen'
8076 # Check whether --enable-cgen-maint or --disable-cgen-maint was given.
8077 if test "${enable_cgen_maint+set}" = set; then
8078 enableval="$enable_cgen_maint"
8079 case "${enableval}" in
8080 yes) cgen_maint=yes ;;
8081 no) cgen_maint=no ;;
8083 # argument is cgen install directory (not implemented yet).
8084 # Having a `share' directory might be more appropriate for the .scm,
8087 cgendir=${cgen_maint}/lib/cgen
8092 if test x${cgen_maint} = xyes; then
8094 CGEN_MAINT_FALSE='#'
8103 # Horrible hacks to build DLLs on Windows.
8108 if test "$enable_shared" = "yes"; then
8109 WIN32LDFLAGS="-no-undefined"
8110 WIN32LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
8117 # target-specific stuff:
8119 # Canonicalize the secondary target names.
8120 if test -n "$enable_targets" ; then
8121 for targ in `echo $enable_targets | sed 's/,/ /g'`
8123 result=`$ac_config_sub $targ 2>/dev/null`
8124 if test -n "$result" ; then
8125 canon_targets="$canon_targets $result"
8127 # Allow targets that config.sub doesn't recognize, like "all".
8128 canon_targets="$canon_targets $targ"
8135 for targ in $target $canon_targets
8137 if test "x$targ" = "xall" ; then
8140 . $srcdir/../bfd/config.bfd
8141 selarchs="$selarchs $targ_archs"
8145 # Utility var, documents generic cgen support files.
8147 cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo"
8149 # We don't do any links based on the target system, just makefile config.
8151 if test x${all_targets} = xfalse ; then
8153 # Target architecture .o files.
8156 for arch in $selarchs
8158 ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
8159 archdefs="$archdefs -DARCH_$ad"
8161 bfd_a29k_arch) ta="$ta a29k-dis.lo" ;;
8162 bfd_alliant_arch) ;;
8163 bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;;
8164 bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;;
8165 bfd_arm_arch) ta="$ta arm-dis.lo" ;;
8166 bfd_avr_arch) ta="$ta avr-dis.lo" ;;
8168 bfd_cris_arch) ta="$ta cris-dis.lo cris-opc.lo" ;;
8169 bfd_crx_arch) ta="$ta crx-dis.lo crx-opc.lo" ;;
8170 bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;;
8171 bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;;
8172 bfd_dlx_arch) ta="$ta dlx-dis.lo" ;;
8173 bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;;
8174 bfd_h8300_arch) ta="$ta h8300-dis.lo" ;;
8175 bfd_h8500_arch) ta="$ta h8500-dis.lo" ;;
8176 bfd_hppa_arch) ta="$ta hppa-dis.lo" ;;
8177 bfd_i370_arch) ta="$ta i370-dis.lo i370-opc.lo" ;;
8178 bfd_i386_arch) ta="$ta i386-dis.lo" ;;
8179 bfd_i860_arch) ta="$ta i860-dis.lo" ;;
8180 bfd_i960_arch) ta="$ta i960-dis.lo" ;;
8181 bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;;
8182 bfd_ip2k_arch) ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;;
8183 bfd_iq2000_arch) ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;;
8184 bfd_m32r_arch) ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;;
8185 bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
8186 bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
8187 bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;;
8188 bfd_m88k_arch) ta="$ta m88k-dis.lo" ;;
8189 bfd_mcore_arch) ta="$ta mcore-dis.lo" ;;
8190 bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
8191 bfd_mmix_arch) ta="$ta mmix-dis.lo mmix-opc.lo" ;;
8192 bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;;
8193 bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;;
8194 bfd_msp430_arch) ta="$ta msp430-dis.lo" ;;
8195 bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;;
8196 bfd_openrisc_arch) ta="$ta openrisc-asm.lo openrisc-desc.lo openrisc-dis.lo openrisc-ibld.lo openrisc-opc.lo" using_cgen=yes ;;
8197 bfd_or32_arch) ta="$ta or32-dis.lo or32-opc.lo" using_cgen=yes ;;
8198 bfd_pdp11_arch) ta="$ta pdp11-dis.lo pdp11-opc.lo" ;;
8199 bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;;
8200 bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
8201 bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
8202 bfd_pyramid_arch) ;;
8204 bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
8205 bfd_s390_arch) ta="$ta s390-dis.lo s390-opc.lo" ;;
8207 # We can't decide what we want just from the CPU family.
8208 # We want SH5 support unless a specific version of sh is
8209 # specified, as in sh3-elf, sh3b-linux-gnu, etc.
8210 # Include it just for ELF targets, since the SH5 bfd:s are ELF only.
8211 for t in $target $canon_targets; do
8213 all | sh5*-* | sh64*-* | sh-*-*elf* | shl*-*-*elf* | \
8214 sh-*-linux* | shl-*-linux*)
8215 ta="$ta sh64-dis.lo sh64-opc.lo"
8216 archdefs="$archdefs -DINCLUDE_SHMEDIA"
8220 ta="$ta sh-dis.lo" ;;
8221 bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;;
8223 bfd_tic30_arch) ta="$ta tic30-dis.lo" ;;
8224 bfd_tic4x_arch) ta="$ta tic4x-dis.lo" ;;
8225 bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;;
8226 bfd_tic80_arch) ta="$ta tic80-dis.lo tic80-opc.lo" ;;
8227 bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
8228 bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
8229 bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
8230 bfd_vax_arch) ta="$ta vax-dis.lo" ;;
8231 bfd_w65_arch) ta="$ta w65-dis.lo" ;;
8233 bfd_xstormy16_arch) ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;;
8234 bfd_xtensa_arch) ta="$ta xtensa-dis.lo" ;;
8235 bfd_z8k_arch) ta="$ta z8k-dis.lo" ;;
8236 bfd_frv_arch) ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;;
8239 *) { { echo "$as_me:$LINENO: error: *** unknown target architecture $arch" >&5
8240 echo "$as_me: error: *** unknown target architecture $arch" >&2;}
8241 { (exit 1); exit 1; }; } ;;
8245 if test $using_cgen = yes ; then
8246 ta="$ta $cgen_files"
8249 # Weed out duplicate .o files.
8259 # And duplicate -D flags.
8261 for i in $archdefs ; do
8271 else # all_targets is true
8273 BFD_MACHINES='$(ALL_MACHINES)'
8279 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
8281 ac_config_commands="$ac_config_commands default"
8283 cat >confcache <<\_ACEOF
8284 # This file is a shell script that caches the results of configure
8285 # tests run on this system so they can be shared between configure
8286 # scripts and configure runs, see configure's option --config-cache.
8287 # It is not useful on other systems. If it contains results you don't
8288 # want to keep, you may remove or edit it.
8290 # config.status only pays attention to the cache file if you give it
8291 # the --recheck option to rerun configure.
8293 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8294 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8299 # The following way of writing the cache mishandles newlines in values,
8300 # but we know of no workaround that is simple, portable, and efficient.
8301 # So, don't put newlines in cache variables' values.
8302 # Ultrix sh set writes to stderr and can't be redirected directly,
8303 # and sets the high bit in the cache file unless we assign to the vars.
8306 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8308 # `set' does not quote correctly, so add quotes (double-quote
8309 # substitution turns \\\\ into \\, and sed turns \\ into \).
8312 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8315 # `set' quotes correctly as required by POSIX, so do not add quotes.
8317 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8324 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8326 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8328 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8329 if test -w $cache_file; then
8330 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8331 cat confcache >$cache_file
8333 echo "not updating unwritable cache $cache_file"
8338 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8339 # Let make expand exec_prefix.
8340 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8342 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8343 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8344 # trailing colons and then remove the whole line if VPATH becomes empty
8345 # (actually we leave an empty line to preserve line numbers).
8346 if test "x$srcdir" = x.; then
8347 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8348 s/:*\$(srcdir):*/:/;
8349 s/:*\${srcdir}:*/:/;
8351 s/^\([^=]*=[ ]*\):*/\1/;
8357 DEFS=-DHAVE_CONFIG_H
8361 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8362 # 1. Remove the extension, and $U if already installed.
8363 ac_i=`echo "$ac_i" |
8364 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8366 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8367 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8371 LTLIBOBJS=$ac_ltlibobjs
8375 : ${CONFIG_STATUS=./config.status}
8376 ac_clean_files_save=$ac_clean_files
8377 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8378 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8379 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8380 cat >$CONFIG_STATUS <<_ACEOF
8382 # Generated by $as_me.
8383 # Run this file to recreate the current configuration.
8384 # Compiler output produced by configure, useful for debugging
8385 # configure, is in config.log if it exists.
8390 SHELL=\${CONFIG_SHELL-$SHELL}
8393 cat >>$CONFIG_STATUS <<\_ACEOF
8394 ## --------------------- ##
8395 ## M4sh Initialization. ##
8396 ## --------------------- ##
8398 # Be Bourne compatible
8399 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8402 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8403 # is contrary to our usage. Disable this feature.
8404 alias -g '${1+"$@"}'='"$@"'
8405 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8408 DUALCASE=1; export DUALCASE # for MKS sh
8410 # Support unset when possible.
8411 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8418 # Work around bugs in pre-3.0 UWIN ksh.
8419 $as_unset ENV MAIL MAILPATH
8426 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8427 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8428 LC_TELEPHONE LC_TIME
8430 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8431 eval $as_var=C; export $as_var
8437 # Required to use basename.
8438 if expr a : '\(a\)' >/dev/null 2>&1; then
8444 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8445 as_basename=basename
8451 # Name of the executable.
8452 as_me=`$as_basename "$0" ||
8453 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8454 X"$0" : 'X\(//\)$' \| \
8455 X"$0" : 'X\(/\)$' \| \
8456 . : '\(.\)' 2>/dev/null ||
8458 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8459 /^X\/\(\/\/\)$/{ s//\1/; q; }
8460 /^X\/\(\/\).*/{ s//\1/; q; }
8464 # PATH needs CR, and LINENO needs CR and PATH.
8465 # Avoid depending upon Character Ranges.
8466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8469 as_cr_digits='0123456789'
8470 as_cr_alnum=$as_cr_Letters$as_cr_digits
8472 # The user is always right.
8473 if test "${PATH_SEPARATOR+set}" != set; then
8474 echo "#! /bin/sh" >conf$$.sh
8475 echo "exit 0" >>conf$$.sh
8477 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8488 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8489 test "x$as_lineno_1" != "x$as_lineno_2" &&
8490 test "x$as_lineno_3" = "x$as_lineno_2" || {
8491 # Find who we are. Look in the path if we contain no path at all
8494 *[\\/]* ) as_myself=$0 ;;
8495 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8499 test -z "$as_dir" && as_dir=.
8500 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8505 # We did not find ourselves, most probably we were run as `sh COMMAND'
8506 # in which case we are not to be found in the path.
8507 if test "x$as_myself" = x; then
8510 if test ! -f "$as_myself"; then
8511 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8512 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8513 { (exit 1); exit 1; }; }
8515 case $CONFIG_SHELL in
8517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8518 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8521 test -z "$as_dir" && as_dir=.
8522 for as_base in sh bash ksh sh5; do
8525 if ("$as_dir/$as_base" -c '
8528 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8529 test "x$as_lineno_1" != "x$as_lineno_2" &&
8530 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8531 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8532 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8533 CONFIG_SHELL=$as_dir/$as_base
8535 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8543 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8544 # uniformly replaced by the line number. The first 'sed' inserts a
8545 # line-number line before each line; the second 'sed' does the real
8546 # work. The second script uses 'N' to pair each line-number line
8547 # with the numbered line, and appends trailing '-' during
8548 # substitution so that $LINENO is not a special case at line end.
8549 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8550 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8551 sed '=' <$as_myself |
8556 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8559 s,^['$as_cr_digits']*\n,,
8561 chmod +x $as_me.lineno ||
8562 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8563 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8564 { (exit 1); exit 1; }; }
8566 # Don't try to exec as it changes $[0], causing all sort of problems
8567 # (the dirname of $[0] is not the place where we might find the
8568 # original and so on. Autoconf is especially sensible to this).
8570 # Exit status is that of the last command.
8575 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8576 *c*,-n*) ECHO_N= ECHO_C='
8578 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8579 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8582 if expr a : '\(a\)' >/dev/null 2>&1; then
8588 rm -f conf$$ conf$$.exe conf$$.file
8590 if ln -s conf$$.file conf$$ 2>/dev/null; then
8591 # We could just check for DJGPP; but this test a) works b) is more generic
8592 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8593 if test -f conf$$.exe; then
8594 # Don't use ln at all; we don't have any links
8599 elif ln conf$$.file conf$$ 2>/dev/null; then
8604 rm -f conf$$ conf$$.exe conf$$.file
8606 if mkdir -p . 2>/dev/null; then
8609 test -d ./-p && rmdir ./-p
8613 as_executable_p="test -f"
8615 # Sed expression to map a string onto a valid CPP name.
8616 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8618 # Sed expression to map a string onto a valid variable name.
8619 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8623 # We need space, tab and new line, in precisely that order.
8633 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8634 # report actual input values of CONFIG_FILES etc. instead of their
8635 # values after options handling. Logging --version etc. is OK.
8639 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8640 ## Running $as_me. ##
8645 This file was extended by $as_me, which was
8646 generated by GNU Autoconf 2.59. Invocation command line was
8648 CONFIG_FILES = $CONFIG_FILES
8649 CONFIG_HEADERS = $CONFIG_HEADERS
8650 CONFIG_LINKS = $CONFIG_LINKS
8651 CONFIG_COMMANDS = $CONFIG_COMMANDS
8655 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8659 # Files that config.status was made for.
8660 if test -n "$ac_config_files"; then
8661 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8664 if test -n "$ac_config_headers"; then
8665 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8668 if test -n "$ac_config_links"; then
8669 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8672 if test -n "$ac_config_commands"; then
8673 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8676 cat >>$CONFIG_STATUS <<\_ACEOF
8679 \`$as_me' instantiates files from templates according to the
8680 current configuration.
8682 Usage: $0 [OPTIONS] [FILE]...
8684 -h, --help print this help, then exit
8685 -V, --version print version number, then exit
8686 -q, --quiet do not print progress messages
8687 -d, --debug don't remove temporary files
8688 --recheck update $as_me by reconfiguring in the same conditions
8689 --file=FILE[:TEMPLATE]
8690 instantiate the configuration file FILE
8691 --header=FILE[:TEMPLATE]
8692 instantiate the configuration header FILE
8694 Configuration files:
8697 Configuration headers:
8700 Configuration commands:
8703 Report bugs to <bug-autoconf@gnu.org>."
8706 cat >>$CONFIG_STATUS <<_ACEOF
8709 configured by $0, generated by GNU Autoconf 2.59,
8710 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8712 Copyright (C) 2003 Free Software Foundation, Inc.
8713 This config.status script is free software; the Free Software Foundation
8714 gives unlimited permission to copy, distribute and modify it."
8719 cat >>$CONFIG_STATUS <<\_ACEOF
8720 # If no file are specified by the user, then we need to provide default
8721 # value. By we need to know if files were specified by the user.
8727 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8728 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8736 *) # This is not an option, so the user has probably given explicit
8739 ac_need_defaults=false;;
8743 # Handling of the options.
8745 cat >>$CONFIG_STATUS <<\_ACEOF
8746 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8748 --version | --vers* | -V )
8749 echo "$ac_cs_version"; exit 0 ;;
8751 # Conflict between --help and --header
8752 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8753 Try \`$0 --help' for more information." >&5
8754 echo "$as_me: error: ambiguous option: $1
8755 Try \`$0 --help' for more information." >&2;}
8756 { (exit 1); exit 1; }; };;
8757 --help | --hel | -h )
8758 echo "$ac_cs_usage"; exit 0 ;;
8759 --debug | --d* | -d )
8761 --file | --fil | --fi | --f )
8763 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8764 ac_need_defaults=false;;
8765 --header | --heade | --head | --hea )
8767 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8768 ac_need_defaults=false;;
8769 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8770 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8774 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8775 Try \`$0 --help' for more information." >&5
8776 echo "$as_me: error: unrecognized option: $1
8777 Try \`$0 --help' for more information." >&2;}
8778 { (exit 1); exit 1; }; } ;;
8780 *) ac_config_targets="$ac_config_targets $1" ;;
8786 ac_configure_extra_args=
8788 if $ac_cs_silent; then
8790 ac_configure_extra_args="$ac_configure_extra_args --silent"
8794 cat >>$CONFIG_STATUS <<_ACEOF
8795 if \$ac_cs_recheck; then
8796 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8797 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8802 cat >>$CONFIG_STATUS <<_ACEOF
8804 # INIT-COMMANDS section.
8814 cat >>$CONFIG_STATUS <<\_ACEOF
8815 for ac_config_target in $ac_config_targets
8817 case "$ac_config_target" in
8818 # Handling of arguments.
8819 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8820 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
8821 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
8822 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
8823 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
8824 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8825 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8826 { (exit 1); exit 1; }; };;
8830 # If the user did not use the arguments to specify the items to instantiate,
8831 # then the envvar interface is used. Set only those that are not.
8832 # We use the long form for the default assignment because of an extremely
8833 # bizarre bug on SunOS 4.1.3.
8834 if $ac_need_defaults; then
8835 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8836 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8837 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8840 # Have a temporary directory for convenience. Make it in the build tree
8841 # simply because there is no reason to put it here, and in addition,
8842 # creating and moving files from /tmp can sometimes cause problems.
8843 # Create a temporary directory, and hook for its removal unless debugging.
8846 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8847 trap '{ (exit 1); exit 1; }' 1 2 13 15
8850 # Create a (secure) tmp directory for tmp files.
8853 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8854 test -n "$tmp" && test -d "$tmp"
8857 tmp=./confstat$$-$RANDOM
8858 (umask 077 && mkdir $tmp)
8861 echo "$me: cannot create a temporary directory in ." >&2
8862 { (exit 1); exit 1; }
8867 cat >>$CONFIG_STATUS <<_ACEOF
8870 # CONFIG_FILES section.
8873 # No need to generate the scripts if there are no CONFIG_FILES.
8874 # This happens for instance when ./config.status config.h
8875 if test -n "\$CONFIG_FILES"; then
8876 # Protect against being on the right side of a sed subst in config.status.
8877 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8878 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8879 s,@SHELL@,$SHELL,;t t
8880 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8881 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8882 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8883 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8884 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8885 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8886 s,@exec_prefix@,$exec_prefix,;t t
8887 s,@prefix@,$prefix,;t t
8888 s,@program_transform_name@,$program_transform_name,;t t
8889 s,@bindir@,$bindir,;t t
8890 s,@sbindir@,$sbindir,;t t
8891 s,@libexecdir@,$libexecdir,;t t
8892 s,@datadir@,$datadir,;t t
8893 s,@sysconfdir@,$sysconfdir,;t t
8894 s,@sharedstatedir@,$sharedstatedir,;t t
8895 s,@localstatedir@,$localstatedir,;t t
8896 s,@libdir@,$libdir,;t t
8897 s,@includedir@,$includedir,;t t
8898 s,@oldincludedir@,$oldincludedir,;t t
8899 s,@infodir@,$infodir,;t t
8900 s,@mandir@,$mandir,;t t
8901 s,@build_alias@,$build_alias,;t t
8902 s,@host_alias@,$host_alias,;t t
8903 s,@target_alias@,$target_alias,;t t
8905 s,@ECHO_C@,$ECHO_C,;t t
8906 s,@ECHO_N@,$ECHO_N,;t t
8907 s,@ECHO_T@,$ECHO_T,;t t
8909 s,@build@,$build,;t t
8910 s,@build_cpu@,$build_cpu,;t t
8911 s,@build_vendor@,$build_vendor,;t t
8912 s,@build_os@,$build_os,;t t
8914 s,@host_cpu@,$host_cpu,;t t
8915 s,@host_vendor@,$host_vendor,;t t
8916 s,@host_os@,$host_os,;t t
8917 s,@target@,$target,;t t
8918 s,@target_cpu@,$target_cpu,;t t
8919 s,@target_vendor@,$target_vendor,;t t
8920 s,@target_os@,$target_os,;t t
8922 s,@CFLAGS@,$CFLAGS,;t t
8923 s,@LDFLAGS@,$LDFLAGS,;t t
8924 s,@CPPFLAGS@,$CPPFLAGS,;t t
8925 s,@ac_ct_CC@,$ac_ct_CC,;t t
8926 s,@EXEEXT@,$EXEEXT,;t t
8927 s,@OBJEXT@,$OBJEXT,;t t
8928 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8929 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8930 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8931 s,@PACKAGE@,$PACKAGE,;t t
8932 s,@VERSION@,$VERSION,;t t
8933 s,@ACLOCAL@,$ACLOCAL,;t t
8934 s,@AUTOCONF@,$AUTOCONF,;t t
8935 s,@AUTOMAKE@,$AUTOMAKE,;t t
8936 s,@AUTOHEADER@,$AUTOHEADER,;t t
8937 s,@MAKEINFO@,$MAKEINFO,;t t
8938 s,@SET_MAKE@,$SET_MAKE,;t t
8940 s,@ac_ct_AR@,$ac_ct_AR,;t t
8941 s,@RANLIB@,$RANLIB,;t t
8942 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8944 s,@STRIP@,$STRIP,;t t
8945 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8946 s,@LIBTOOL@,$LIBTOOL,;t t
8947 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
8948 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
8949 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
8950 s,@MAINT@,$MAINT,;t t
8951 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
8952 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
8953 s,@bfdlibdir@,$bfdlibdir,;t t
8954 s,@bfdincludedir@,$bfdincludedir,;t t
8956 s,@EGREP@,$EGREP,;t t
8957 s,@ALLOCA@,$ALLOCA,;t t
8958 s,@USE_NLS@,$USE_NLS,;t t
8959 s,@MSGFMT@,$MSGFMT,;t t
8960 s,@GMSGFMT@,$GMSGFMT,;t t
8961 s,@XGETTEXT@,$XGETTEXT,;t t
8962 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
8963 s,@CATALOGS@,$CATALOGS,;t t
8964 s,@CATOBJEXT@,$CATOBJEXT,;t t
8965 s,@DATADIRNAME@,$DATADIRNAME,;t t
8966 s,@GMOFILES@,$GMOFILES,;t t
8967 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
8968 s,@INTLDEPS@,$INTLDEPS,;t t
8969 s,@INTLLIBS@,$INTLLIBS,;t t
8970 s,@INTLOBJS@,$INTLOBJS,;t t
8971 s,@POFILES@,$POFILES,;t t
8972 s,@POSUB@,$POSUB,;t t
8973 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
8974 s,@GT_NO@,$GT_NO,;t t
8975 s,@GT_YES@,$GT_YES,;t t
8976 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
8978 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
8979 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
8980 s,@HDEFINES@,$HDEFINES,;t t
8981 s,@CGEN_MAINT_TRUE@,$CGEN_MAINT_TRUE,;t t
8982 s,@CGEN_MAINT_FALSE@,$CGEN_MAINT_FALSE,;t t
8983 s,@cgendir@,$cgendir,;t t
8984 s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
8985 s,@WIN32LIBADD@,$WIN32LIBADD,;t t
8986 s,@archdefs@,$archdefs,;t t
8987 s,@BFD_MACHINES@,$BFD_MACHINES,;t t
8988 s,@LIBOBJS@,$LIBOBJS,;t t
8989 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8994 cat >>$CONFIG_STATUS <<\_ACEOF
8995 # Split the substitutions into bite-sized pieces for seds with
8996 # small command number limits, like on Digital OSF/1 and HP-UX.
8998 ac_sed_frag=1 # Number of current file.
8999 ac_beg=1 # First line for current file.
9000 ac_end=$ac_max_sed_lines # Line after last line for current file.
9003 while $ac_more_lines; do
9004 if test $ac_beg -gt 1; then
9005 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9007 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9009 if test ! -s $tmp/subs.frag; then
9012 # The purpose of the label and of the branching condition is to
9013 # speed up the sed processing (if there are no `@' at all, there
9014 # is no need to browse any of the substitutions).
9015 # These are the two extra sed commands mentioned above.
9017 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9018 if test -z "$ac_sed_cmds"; then
9019 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9021 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9023 ac_sed_frag=`expr $ac_sed_frag + 1`
9025 ac_end=`expr $ac_end + $ac_max_sed_lines`
9028 if test -z "$ac_sed_cmds"; then
9031 fi # test -n "$CONFIG_FILES"
9034 cat >>$CONFIG_STATUS <<\_ACEOF
9035 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9036 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9038 - | *:- | *:-:* ) # input from stdin
9040 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9041 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9042 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9043 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9044 * ) ac_file_in=$ac_file.in ;;
9047 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9048 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9049 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9050 X"$ac_file" : 'X\(//\)[^/]' \| \
9051 X"$ac_file" : 'X\(//\)$' \| \
9052 X"$ac_file" : 'X\(/\)' \| \
9053 . : '\(.\)' 2>/dev/null ||
9055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9056 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9057 /^X\(\/\/\)$/{ s//\1/; q; }
9058 /^X\(\/\).*/{ s//\1/; q; }
9060 { if $as_mkdir_p; then
9065 while test ! -d "$as_dir"; do
9066 as_dirs="$as_dir $as_dirs"
9067 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9068 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9069 X"$as_dir" : 'X\(//\)[^/]' \| \
9070 X"$as_dir" : 'X\(//\)$' \| \
9071 X"$as_dir" : 'X\(/\)' \| \
9072 . : '\(.\)' 2>/dev/null ||
9074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9075 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9076 /^X\(\/\/\)$/{ s//\1/; q; }
9077 /^X\(\/\).*/{ s//\1/; q; }
9080 test ! -n "$as_dirs" || mkdir $as_dirs
9081 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9082 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9083 { (exit 1); exit 1; }; }; }
9087 if test "$ac_dir" != .; then
9088 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9089 # A "../" for each directory in $ac_dir_suffix.
9090 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9092 ac_dir_suffix= ac_top_builddir=
9096 .) # No --srcdir option. We are building in place.
9098 if test -z "$ac_top_builddir"; then
9101 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9103 [\\/]* | ?:[\\/]* ) # Absolute path.
9104 ac_srcdir=$srcdir$ac_dir_suffix;
9105 ac_top_srcdir=$srcdir ;;
9107 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9108 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9111 # Do not use `cd foo && pwd` to compute absolute paths, because
9112 # the directories may not exist.
9114 .) ac_abs_builddir="$ac_dir";;
9117 .) ac_abs_builddir=`pwd`;;
9118 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9119 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9122 case $ac_abs_builddir in
9123 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9125 case ${ac_top_builddir}. in
9126 .) ac_abs_top_builddir=$ac_abs_builddir;;
9127 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9128 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9131 case $ac_abs_builddir in
9132 .) ac_abs_srcdir=$ac_srcdir;;
9135 .) ac_abs_srcdir=$ac_abs_builddir;;
9136 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9137 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9140 case $ac_abs_builddir in
9141 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9143 case $ac_top_srcdir in
9144 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9145 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9146 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9152 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9153 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9156 # Let's still pretend it is `configure' which instantiates (i.e., don't
9157 # use $as_me), people would be surprised to read:
9158 # /* config.h. Generated by config.status. */
9159 if test x"$ac_file" = x-; then
9162 configure_input="$ac_file. "
9164 configure_input=$configure_input"Generated from `echo $ac_file_in |
9165 sed 's,.*/,,'` by configure."
9167 # First look for the input files in the build tree, otherwise in the
9169 ac_file_inputs=`IFS=:
9170 for f in $ac_file_in; do
9172 -) echo $tmp/stdin ;;
9174 # Absolute (can't be DOS-style, as IFS=:)
9175 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9176 echo "$as_me: error: cannot find input file: $f" >&2;}
9177 { (exit 1); exit 1; }; }
9180 if test -f "$f"; then
9183 elif test -f "$srcdir/$f"; then
9188 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9189 echo "$as_me: error: cannot find input file: $f" >&2;}
9190 { (exit 1); exit 1; }; }
9193 done` || { (exit 1); exit 1; }
9195 if test x"$ac_file" != x-; then
9196 { echo "$as_me:$LINENO: creating $ac_file" >&5
9197 echo "$as_me: creating $ac_file" >&6;}
9201 cat >>$CONFIG_STATUS <<_ACEOF
9205 cat >>$CONFIG_STATUS <<\_ACEOF
9207 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9208 s,@configure_input@,$configure_input,;t t
9209 s,@srcdir@,$ac_srcdir,;t t
9210 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9211 s,@top_srcdir@,$ac_top_srcdir,;t t
9212 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9213 s,@builddir@,$ac_builddir,;t t
9214 s,@abs_builddir@,$ac_abs_builddir,;t t
9215 s,@top_builddir@,$ac_top_builddir,;t t
9216 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9217 s,@INSTALL@,$ac_INSTALL,;t t
9218 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9220 if test x"$ac_file" != x-; then
9221 mv $tmp/out $ac_file
9229 cat >>$CONFIG_STATUS <<\_ACEOF
9232 # CONFIG_HEADER section.
9235 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9236 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9238 # ac_d sets the value in "#define NAME VALUE" lines.
9239 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9240 ac_dB='[ ].*$,\1#\2'
9243 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9244 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9245 ac_uB='$,\1#\2define\3'
9249 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9250 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9252 - | *:- | *:-:* ) # input from stdin
9254 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9255 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9256 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9257 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9258 * ) ac_file_in=$ac_file.in ;;
9261 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9262 echo "$as_me: creating $ac_file" >&6;}
9264 # First look for the input files in the build tree, otherwise in the
9266 ac_file_inputs=`IFS=:
9267 for f in $ac_file_in; do
9269 -) echo $tmp/stdin ;;
9271 # Absolute (can't be DOS-style, as IFS=:)
9272 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9273 echo "$as_me: error: cannot find input file: $f" >&2;}
9274 { (exit 1); exit 1; }; }
9275 # Do quote $f, to prevent DOS paths from being IFS'd.
9278 if test -f "$f"; then
9281 elif test -f "$srcdir/$f"; then
9286 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9287 echo "$as_me: error: cannot find input file: $f" >&2;}
9288 { (exit 1); exit 1; }; }
9291 done` || { (exit 1); exit 1; }
9292 # Remove the trailing spaces.
9293 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9297 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9298 # `conftest.undefs', that substitutes the proper values into
9299 # config.h.in to produce config.h. The first handles `#define'
9300 # templates, and the second `#undef' templates.
9301 # And first: Protect against being on the right side of a sed subst in
9302 # config.status. Protect against being in an unquoted here document
9304 rm -f conftest.defines conftest.undefs
9305 # Using a here document instead of a string reduces the quoting nightmare.
9306 # Putting comments in sed scripts is not portable.
9308 # `end' is used to avoid that the second main sed command (meant for
9309 # 0-ary CPP macros) applies to n-ary macro definitions.
9310 # See the Autoconf documentation for `clear'.
9311 cat >confdef2sed.sed <<\_ACEOF
9316 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9318 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9321 # If some macros were called several times there might be several times
9322 # the same #defines, which is useless. Nevertheless, we may not want to
9323 # sort them, since we want the *last* AC-DEFINE to be honored.
9324 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9325 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9326 rm -f confdef2sed.sed
9328 # This sed command replaces #undef with comments. This is necessary, for
9329 # example, in the case of _POSIX_SOURCE, which is predefined and required
9330 # on some systems where configure will not decide to define it.
9331 cat >>conftest.undefs <<\_ACEOF
9332 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9335 # Break up conftest.defines because some shells have a limit on the size
9336 # of here documents, and old seds have small limits too (100 cmds).
9337 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9338 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9339 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9340 echo ' :' >>$CONFIG_STATUS
9342 while grep . conftest.defines >/dev/null
9344 # Write a limited-size here document to $tmp/defines.sed.
9345 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9346 # Speed up: don't consider the non `#define' lines.
9347 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9348 # Work around the forget-to-reset-the-flag bug.
9349 echo 't clr' >>$CONFIG_STATUS
9350 echo ': clr' >>$CONFIG_STATUS
9351 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9353 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9357 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9358 rm -f conftest.defines
9359 mv conftest.tail conftest.defines
9361 rm -f conftest.defines
9362 echo ' fi # grep' >>$CONFIG_STATUS
9363 echo >>$CONFIG_STATUS
9365 # Break up conftest.undefs because some shells have a limit on the size
9366 # of here documents, and old seds have small limits too (100 cmds).
9367 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9369 while grep . conftest.undefs >/dev/null
9371 # Write a limited-size here document to $tmp/undefs.sed.
9372 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9373 # Speed up: don't consider the non `#undef'
9374 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9375 # Work around the forget-to-reset-the-flag bug.
9376 echo 't clr' >>$CONFIG_STATUS
9377 echo ': clr' >>$CONFIG_STATUS
9378 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9380 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9384 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9385 rm -f conftest.undefs
9386 mv conftest.tail conftest.undefs
9388 rm -f conftest.undefs
9390 cat >>$CONFIG_STATUS <<\_ACEOF
9391 # Let's still pretend it is `configure' which instantiates (i.e., don't
9392 # use $as_me), people would be surprised to read:
9393 # /* config.h. Generated by config.status. */
9394 if test x"$ac_file" = x-; then
9395 echo "/* Generated by configure. */" >$tmp/config.h
9397 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9399 cat $tmp/in >>$tmp/config.h
9401 if test x"$ac_file" != x-; then
9402 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9403 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9404 echo "$as_me: $ac_file is unchanged" >&6;}
9406 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9407 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9408 X"$ac_file" : 'X\(//\)[^/]' \| \
9409 X"$ac_file" : 'X\(//\)$' \| \
9410 X"$ac_file" : 'X\(/\)' \| \
9411 . : '\(.\)' 2>/dev/null ||
9413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9414 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9415 /^X\(\/\/\)$/{ s//\1/; q; }
9416 /^X\(\/\).*/{ s//\1/; q; }
9418 { if $as_mkdir_p; then
9423 while test ! -d "$as_dir"; do
9424 as_dirs="$as_dir $as_dirs"
9425 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9426 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9427 X"$as_dir" : 'X\(//\)[^/]' \| \
9428 X"$as_dir" : 'X\(//\)$' \| \
9429 X"$as_dir" : 'X\(/\)' \| \
9430 . : '\(.\)' 2>/dev/null ||
9432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9433 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9434 /^X\(\/\/\)$/{ s//\1/; q; }
9435 /^X\(\/\).*/{ s//\1/; q; }
9438 test ! -n "$as_dirs" || mkdir $as_dirs
9439 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9440 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9441 { (exit 1); exit 1; }; }; }
9444 mv $tmp/config.h $ac_file
9452 cat >>$CONFIG_STATUS <<\_ACEOF
9455 # CONFIG_COMMANDS section.
9457 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9458 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9459 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9460 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9461 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9462 X"$ac_dest" : 'X\(//\)[^/]' \| \
9463 X"$ac_dest" : 'X\(//\)$' \| \
9464 X"$ac_dest" : 'X\(/\)' \| \
9465 . : '\(.\)' 2>/dev/null ||
9467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9468 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9469 /^X\(\/\/\)$/{ s//\1/; q; }
9470 /^X\(\/\).*/{ s//\1/; q; }
9472 { if $as_mkdir_p; then
9477 while test ! -d "$as_dir"; do
9478 as_dirs="$as_dir $as_dirs"
9479 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9480 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9481 X"$as_dir" : 'X\(//\)[^/]' \| \
9482 X"$as_dir" : 'X\(//\)$' \| \
9483 X"$as_dir" : 'X\(/\)' \| \
9484 . : '\(.\)' 2>/dev/null ||
9486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9487 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9488 /^X\(\/\/\)$/{ s//\1/; q; }
9489 /^X\(\/\).*/{ s//\1/; q; }
9492 test ! -n "$as_dirs" || mkdir $as_dirs
9493 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9494 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9495 { (exit 1); exit 1; }; }; }
9499 if test "$ac_dir" != .; then
9500 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9501 # A "../" for each directory in $ac_dir_suffix.
9502 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9504 ac_dir_suffix= ac_top_builddir=
9508 .) # No --srcdir option. We are building in place.
9510 if test -z "$ac_top_builddir"; then
9513 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9515 [\\/]* | ?:[\\/]* ) # Absolute path.
9516 ac_srcdir=$srcdir$ac_dir_suffix;
9517 ac_top_srcdir=$srcdir ;;
9519 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9520 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9523 # Do not use `cd foo && pwd` to compute absolute paths, because
9524 # the directories may not exist.
9526 .) ac_abs_builddir="$ac_dir";;
9529 .) ac_abs_builddir=`pwd`;;
9530 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9531 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9534 case $ac_abs_builddir in
9535 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9537 case ${ac_top_builddir}. in
9538 .) ac_abs_top_builddir=$ac_abs_builddir;;
9539 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9540 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9543 case $ac_abs_builddir in
9544 .) ac_abs_srcdir=$ac_srcdir;;
9547 .) ac_abs_srcdir=$ac_abs_builddir;;
9548 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9549 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9552 case $ac_abs_builddir in
9553 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9555 case $ac_top_srcdir in
9556 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9557 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9558 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9563 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9564 echo "$as_me: executing $ac_dest commands" >&6;}
9566 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
9567 default ) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
9572 cat >>$CONFIG_STATUS <<\_ACEOF
9574 { (exit 0); exit 0; }
9576 chmod +x $CONFIG_STATUS
9577 ac_clean_files=$ac_clean_files_save
9580 # configure is writing to config.log, and then calls config.status.
9581 # config.status does its own redirection, appending to config.log.
9582 # Unfortunately, on DOS this fails, as config.log is still kept open
9583 # by configure, so config.status won't be able to write to it; its
9584 # output is simply discarded. So we exec the FD to /dev/null,
9585 # effectively closing config.log, so it can be properly (re)opened and
9586 # appended to by config.status. When coming back to configure, we
9587 # need to make the FD available again.
9588 if test "$no_create" != yes; then
9590 ac_config_status_args=
9591 test "$silent" = yes &&
9592 ac_config_status_args="$ac_config_status_args --quiet"
9594 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9596 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9597 # would make configure fail if this is the last instruction.
9598 $ac_cs_success || { (exit 1); exit 1; }