2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/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 -n "`(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
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
273 ac_unique_file="elf2flt.c"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 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 CPP EGREP bfd_include_dir binutils_include_dir got_check LIBOBJS LTLIBOBJS'
314 # Initialize some variables set by options.
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name=s,x,x,
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
429 -help | --help | --hel | --he | -h)
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 # Obsolete; use --without-fp.
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
559 -site=* | --site=* | --sit=*)
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 -version | --version | --versio | --versi | --vers | -V)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
608 # Obsolete; use --with-x.
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
774 # Report the --help message.
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
780 \`configure' configures this package to adapt to many kinds of systems.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
787 Defaults for the options are specified in brackets.
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
814 For better control, use the options below.
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
834 --build=BUILD configure for building on BUILD [guessed]
835 --host=HOST cross-compile to build programs to run on HOST [BUILD]
836 --target=TARGET configure for building compilers for TARGET [HOST]
840 if test -n "$ac_init_help"; then
845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
847 --disable-got-check - disable check for GOT (needed on H8)
850 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
851 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
852 --with-libbfd=<file> path to libbfd.a library to use
853 --with-libiberty=<file> path to libiberty.a library to use
854 --with-bfd-include-dir=<dir> include path for correct bfd.h
855 --with-binutils-include-dir=<dir> include path for binutils headers
857 Some influential environment variables:
858 CC C compiler command
859 CFLAGS C compiler flags
860 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
861 nonstandard directory <lib dir>
862 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
863 headers in a nonstandard directory <include dir>
866 Use these variables to override the choices made by `configure' or to help
867 it to find libraries and programs with nonstandard names/locations.
872 if test "$ac_init_help" = "recursive"; then
873 # If there are subdirs, report their specific --help.
875 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
876 test -d $ac_dir || continue
879 if test "$ac_dir" != .; then
880 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
881 # A "../" for each directory in $ac_dir_suffix.
882 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
884 ac_dir_suffix= ac_top_builddir=
888 .) # No --srcdir option. We are building in place.
890 if test -z "$ac_top_builddir"; then
893 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
895 [\\/]* | ?:[\\/]* ) # Absolute path.
896 ac_srcdir=$srcdir$ac_dir_suffix;
897 ac_top_srcdir=$srcdir ;;
899 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
900 ac_top_srcdir=$ac_top_builddir$srcdir ;;
902 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
904 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
905 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
906 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
907 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
910 # Check for guested configure; otherwise get Cygnus style configure.
911 if test -f $ac_srcdir/configure.gnu; then
913 $SHELL $ac_srcdir/configure.gnu --help=recursive
914 elif test -f $ac_srcdir/configure; then
916 $SHELL $ac_srcdir/configure --help=recursive
917 elif test -f $ac_srcdir/configure.ac ||
918 test -f $ac_srcdir/configure.in; then
922 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
928 test -n "$ac_init_help" && exit 0
929 if $ac_init_version; then
932 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
933 Free Software Foundation, Inc.
934 This configure script is free software; the Free Software Foundation
935 gives unlimited permission to copy, distribute and modify it.
941 This file contains any messages produced by compilers while
942 running configure, to aid debugging if configure makes a mistake.
944 It was created by $as_me, which was
945 generated by GNU Autoconf 2.57. Invocation command line was
956 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
957 uname -m = `(uname -m) 2>/dev/null || echo unknown`
958 uname -r = `(uname -r) 2>/dev/null || echo unknown`
959 uname -s = `(uname -s) 2>/dev/null || echo unknown`
960 uname -v = `(uname -v) 2>/dev/null || echo unknown`
962 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
963 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
965 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
966 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
967 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
968 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
969 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
970 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
971 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
979 test -z "$as_dir" && as_dir=.
995 # Keep a trace of the command line.
996 # Strip out --no-create and --no-recursion so they do not pile up.
997 # Strip out --silent because we don't want to record it for future runs.
998 # Also quote any args containing shell meta-characters.
999 # Make two passes to allow for proper duplicate-argument suppression.
1004 ac_must_keep_next=false
1010 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1011 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1012 | -silent | --silent | --silen | --sile | --sil)
1014 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1015 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1018 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1020 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1021 if test $ac_must_keep_next = true; then
1022 ac_must_keep_next=false # Got value, back to normal.
1025 *=* | --config-cache | -C | -disable-* | --disable-* \
1026 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1027 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1028 | -with-* | --with-* | -without-* | --without-* | --x)
1029 case "$ac_configure_args0 " in
1030 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1033 -* ) ac_must_keep_next=true ;;
1036 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1037 # Get rid of the leading space.
1043 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1044 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1046 # When interrupted or exit'd, cleanup temporary files, and complete
1047 # config.log. We remove comments because anyway the quotes in there
1048 # would cause problems or look ugly.
1049 # WARNING: Be sure not to use single quotes in there, as some shells,
1050 # such as our DU 5.0 friend, will then `close' the trap.
1051 trap 'exit_status=$?
1052 # Save into config.log some information that might help in debugging.
1057 ## ---------------- ##
1058 ## Cache variables. ##
1059 ## ---------------- ##
1062 # The following way of writing the cache mishandles newlines in values,
1065 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1068 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1069 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1073 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1080 ## ----------------- ##
1081 ## Output variables. ##
1082 ## ----------------- ##
1085 for ac_var in $ac_subst_vars
1087 eval ac_val=$`echo $ac_var`
1088 echo "$ac_var='"'"'$ac_val'"'"'"
1092 if test -n "$ac_subst_files"; then
1099 for ac_var in $ac_subst_files
1101 eval ac_val=$`echo $ac_var`
1102 echo "$ac_var='"'"'$ac_val'"'"'"
1107 if test -s confdefs.h; then
1114 sed "/^$/d" confdefs.h | sort
1117 test "$ac_signal" != 0 &&
1118 echo "$as_me: caught signal $ac_signal"
1119 echo "$as_me: exit $exit_status"
1121 rm -f core core.* *.core &&
1122 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1125 for ac_signal in 1 2 13 15; do
1126 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1130 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1131 rm -rf conftest* confdefs.h
1132 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1135 # Predefined preprocessor variables.
1137 cat >>confdefs.h <<_ACEOF
1138 #define PACKAGE_NAME "$PACKAGE_NAME"
1142 cat >>confdefs.h <<_ACEOF
1143 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1147 cat >>confdefs.h <<_ACEOF
1148 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_STRING "$PACKAGE_STRING"
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1162 # Let the site file select an alternate cache file if it wants to.
1163 # Prefer explicitly selected file to automatically selected ones.
1164 if test -z "$CONFIG_SITE"; then
1165 if test "x$prefix" != xNONE; then
1166 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1168 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1171 for ac_site_file in $CONFIG_SITE; do
1172 if test -r "$ac_site_file"; then
1173 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1174 echo "$as_me: loading site script $ac_site_file" >&6;}
1175 sed 's/^/| /' "$ac_site_file" >&5
1180 if test -r "$cache_file"; then
1181 # Some versions of bash will fail to source /dev/null (special
1182 # files actually), so we avoid doing that.
1183 if test -f "$cache_file"; then
1184 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1185 echo "$as_me: loading cache $cache_file" >&6;}
1187 [\\/]* | ?:[\\/]* ) . $cache_file;;
1188 *) . ./$cache_file;;
1192 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1193 echo "$as_me: creating cache $cache_file" >&6;}
1197 # Check that the precious variables saved in the cache have kept the same
1199 ac_cache_corrupted=false
1200 for ac_var in `(set) 2>&1 |
1201 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1202 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1203 eval ac_new_set=\$ac_env_${ac_var}_set
1204 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1205 eval ac_new_val="\$ac_env_${ac_var}_value"
1206 case $ac_old_set,$ac_new_set in
1208 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1209 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1210 ac_cache_corrupted=: ;;
1212 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1213 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1214 ac_cache_corrupted=: ;;
1217 if test "x$ac_old_val" != "x$ac_new_val"; then
1218 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1219 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1220 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1221 echo "$as_me: former value: $ac_old_val" >&2;}
1222 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1223 echo "$as_me: current value: $ac_new_val" >&2;}
1224 ac_cache_corrupted=:
1227 # Pass precious variables to config.status.
1228 if test "$ac_new_set" = set; then
1230 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1231 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1232 *) ac_arg=$ac_var=$ac_new_val ;;
1234 case " $ac_configure_args " in
1235 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1236 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1240 if $ac_cache_corrupted; then
1241 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1242 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1243 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1244 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1245 { (exit 1); exit 1; }; }
1249 ac_cpp='$CPP $CPPFLAGS'
1250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1274 # Check whether --with-libbfd or --without-libbfd was given.
1275 if test "${with_libbfd+set}" = set; then
1276 withval="$with_libbfd"
1284 # Check whether --with-libiberty or --without-libiberty was given.
1285 if test "${with_libiberty+set}" = set; then
1286 withval="$with_libiberty"
1287 ac_libiberty=$withval
1294 # Check whether --with-bfd-include-dir or --without-bfd-include-dir was given.
1295 if test "${with_bfd_include_dir+set}" = set; then
1296 withval="$with_bfd_include_dir"
1297 ac_bfd_include_dir=$withval
1299 ac_bfd_include_dir=NONE
1304 # Check whether --with-binutils-include-dir or --without-binutils-include-dir was given.
1305 if test "${with_binutils_include_dir+set}" = set; then
1306 withval="$with_binutils_include_dir"
1307 ac_binutils_include_dir=$withval
1309 ac_binutils_include_dir=NONE
1313 # Check whether --enable-got-check or --disable-got-check was given.
1314 if test "${enable_got_check+set}" = set; then
1315 enableval="$enable_got_check"
1316 got_check=$enableval
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}-
1431 ac_cpp='$CPP $CPPFLAGS'
1432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1435 if test -n "$ac_tool_prefix"; then
1436 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1437 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1438 echo "$as_me:$LINENO: checking for $ac_word" >&5
1439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1440 if test "${ac_cv_prog_CC+set}" = set; then
1441 echo $ECHO_N "(cached) $ECHO_C" >&6
1443 if test -n "$CC"; then
1444 ac_cv_prog_CC="$CC" # Let the user override the test.
1446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1450 test -z "$as_dir" && as_dir=.
1451 for ac_exec_ext in '' $ac_executable_extensions; do
1452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1453 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1463 if test -n "$CC"; then
1464 echo "$as_me:$LINENO: result: $CC" >&5
1465 echo "${ECHO_T}$CC" >&6
1467 echo "$as_me:$LINENO: result: no" >&5
1468 echo "${ECHO_T}no" >&6
1472 if test -z "$ac_cv_prog_CC"; then
1474 # Extract the first word of "gcc", so it can be a program name with args.
1475 set dummy gcc; ac_word=$2
1476 echo "$as_me:$LINENO: checking for $ac_word" >&5
1477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1478 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1479 echo $ECHO_N "(cached) $ECHO_C" >&6
1481 if test -n "$ac_ct_CC"; then
1482 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1488 test -z "$as_dir" && as_dir=.
1489 for ac_exec_ext in '' $ac_executable_extensions; do
1490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1491 ac_cv_prog_ac_ct_CC="gcc"
1492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1500 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1501 if test -n "$ac_ct_CC"; then
1502 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1503 echo "${ECHO_T}$ac_ct_CC" >&6
1505 echo "$as_me:$LINENO: result: no" >&5
1506 echo "${ECHO_T}no" >&6
1514 if test -z "$CC"; then
1515 if test -n "$ac_tool_prefix"; then
1516 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1517 set dummy ${ac_tool_prefix}cc; ac_word=$2
1518 echo "$as_me:$LINENO: checking for $ac_word" >&5
1519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520 if test "${ac_cv_prog_CC+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1523 if test -n "$CC"; then
1524 ac_cv_prog_CC="$CC" # Let the user override the test.
1526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1530 test -z "$as_dir" && as_dir=.
1531 for ac_exec_ext in '' $ac_executable_extensions; do
1532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533 ac_cv_prog_CC="${ac_tool_prefix}cc"
1534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1543 if test -n "$CC"; then
1544 echo "$as_me:$LINENO: result: $CC" >&5
1545 echo "${ECHO_T}$CC" >&6
1547 echo "$as_me:$LINENO: result: no" >&5
1548 echo "${ECHO_T}no" >&6
1552 if test -z "$ac_cv_prog_CC"; then
1554 # Extract the first word of "cc", so it can be a program name with args.
1555 set dummy cc; ac_word=$2
1556 echo "$as_me:$LINENO: checking for $ac_word" >&5
1557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1561 if test -n "$ac_ct_CC"; then
1562 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1568 test -z "$as_dir" && as_dir=.
1569 for ac_exec_ext in '' $ac_executable_extensions; do
1570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1571 ac_cv_prog_ac_ct_CC="cc"
1572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1580 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1581 if test -n "$ac_ct_CC"; then
1582 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1583 echo "${ECHO_T}$ac_ct_CC" >&6
1585 echo "$as_me:$LINENO: result: no" >&5
1586 echo "${ECHO_T}no" >&6
1595 if test -z "$CC"; then
1596 # Extract the first word of "cc", so it can be a program name with args.
1597 set dummy cc; ac_word=$2
1598 echo "$as_me:$LINENO: checking for $ac_word" >&5
1599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1600 if test "${ac_cv_prog_CC+set}" = set; then
1601 echo $ECHO_N "(cached) $ECHO_C" >&6
1603 if test -n "$CC"; then
1604 ac_cv_prog_CC="$CC" # Let the user override the test.
1607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1611 test -z "$as_dir" && as_dir=.
1612 for ac_exec_ext in '' $ac_executable_extensions; do
1613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1614 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1615 ac_prog_rejected=yes
1619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1625 if test $ac_prog_rejected = yes; then
1626 # We found a bogon in the path, so make sure we never use it.
1627 set dummy $ac_cv_prog_CC
1629 if test $# != 0; then
1630 # We chose a different compiler from the bogus one.
1631 # However, it has the same basename, so the bogon will be chosen
1632 # first if we set CC to just the basename; use the full file name.
1634 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1640 if test -n "$CC"; then
1641 echo "$as_me:$LINENO: result: $CC" >&5
1642 echo "${ECHO_T}$CC" >&6
1644 echo "$as_me:$LINENO: result: no" >&5
1645 echo "${ECHO_T}no" >&6
1649 if test -z "$CC"; then
1650 if test -n "$ac_tool_prefix"; then
1653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1654 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1655 echo "$as_me:$LINENO: checking for $ac_word" >&5
1656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1657 if test "${ac_cv_prog_CC+set}" = set; then
1658 echo $ECHO_N "(cached) $ECHO_C" >&6
1660 if test -n "$CC"; then
1661 ac_cv_prog_CC="$CC" # Let the user override the test.
1663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1667 test -z "$as_dir" && as_dir=.
1668 for ac_exec_ext in '' $ac_executable_extensions; do
1669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1670 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1680 if test -n "$CC"; then
1681 echo "$as_me:$LINENO: result: $CC" >&5
1682 echo "${ECHO_T}$CC" >&6
1684 echo "$as_me:$LINENO: result: no" >&5
1685 echo "${ECHO_T}no" >&6
1688 test -n "$CC" && break
1691 if test -z "$CC"; then
1695 # Extract the first word of "$ac_prog", so it can be a program name with args.
1696 set dummy $ac_prog; ac_word=$2
1697 echo "$as_me:$LINENO: checking for $ac_word" >&5
1698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1702 if test -n "$ac_ct_CC"; then
1703 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1709 test -z "$as_dir" && as_dir=.
1710 for ac_exec_ext in '' $ac_executable_extensions; do
1711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712 ac_cv_prog_ac_ct_CC="$ac_prog"
1713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1721 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1722 if test -n "$ac_ct_CC"; then
1723 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1724 echo "${ECHO_T}$ac_ct_CC" >&6
1726 echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1730 test -n "$ac_ct_CC" && break
1739 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1740 See \`config.log' for more details." >&5
1741 echo "$as_me: error: no acceptable C compiler found in \$PATH
1742 See \`config.log' for more details." >&2;}
1743 { (exit 1); exit 1; }; }
1745 # Provide some information about the compiler.
1746 echo "$as_me:$LINENO:" \
1747 "checking for C compiler version" >&5
1748 ac_compiler=`set X $ac_compile; echo $2`
1749 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1750 (eval $ac_compiler --version </dev/null >&5) 2>&5
1752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1753 (exit $ac_status); }
1754 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1755 (eval $ac_compiler -v </dev/null >&5) 2>&5
1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758 (exit $ac_status); }
1759 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1760 (eval $ac_compiler -V </dev/null >&5) 2>&5
1762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1763 (exit $ac_status); }
1765 cat >conftest.$ac_ext <<_ACEOF
1766 #line $LINENO "configure"
1769 cat confdefs.h >>conftest.$ac_ext
1770 cat >>conftest.$ac_ext <<_ACEOF
1771 /* end confdefs.h. */
1781 ac_clean_files_save=$ac_clean_files
1782 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1783 # Try to create an executable without -o first, disregard a.out.
1784 # It will help us diagnose broken compilers, and finding out an intuition
1786 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1787 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1788 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1789 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1790 (eval $ac_link_default) 2>&5
1792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1793 (exit $ac_status); }; then
1794 # Find the output, starting from the most likely. This scheme is
1795 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1798 # Be careful to initialize this variable, since it used to be cached.
1799 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1801 # b.out is created by i960 compilers.
1802 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1804 test -f "$ac_file" || continue
1806 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1809 # This is the source file.
1812 # We found the default executable, but exeext='' is most
1816 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1817 # FIXME: I believe we export ac_cv_exeext for Libtool,
1818 # but it would be cool to find out if it's true. Does anybody
1819 # maintain Libtool? --akim.
1827 echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1830 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1831 See \`config.log' for more details." >&5
1832 echo "$as_me: error: C compiler cannot create executables
1833 See \`config.log' for more details." >&2;}
1834 { (exit 77); exit 77; }; }
1837 ac_exeext=$ac_cv_exeext
1838 echo "$as_me:$LINENO: result: $ac_file" >&5
1839 echo "${ECHO_T}$ac_file" >&6
1841 # Check the compiler produces executables we can run. If not, either
1842 # the compiler is broken, or we cross compile.
1843 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1844 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1845 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1846 # If not cross compiling, check that we can run a simple program.
1847 if test "$cross_compiling" != yes; then
1848 if { ac_try='./$ac_file'
1849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1853 (exit $ac_status); }; }; then
1856 if test "$cross_compiling" = maybe; then
1859 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1860 If you meant to cross compile, use \`--host'.
1861 See \`config.log' for more details." >&5
1862 echo "$as_me: error: cannot run C compiled programs.
1863 If you meant to cross compile, use \`--host'.
1864 See \`config.log' for more details." >&2;}
1865 { (exit 1); exit 1; }; }
1869 echo "$as_me:$LINENO: result: yes" >&5
1870 echo "${ECHO_T}yes" >&6
1872 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1873 ac_clean_files=$ac_clean_files_save
1874 # Check the compiler produces executables we can run. If not, either
1875 # the compiler is broken, or we cross compile.
1876 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1877 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1878 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1879 echo "${ECHO_T}$cross_compiling" >&6
1881 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1882 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1884 (eval $ac_link) 2>&5
1886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1887 (exit $ac_status); }; then
1888 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1889 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1890 # work properly (i.e., refer to `conftest.exe'), while it won't with
1892 for ac_file in conftest.exe conftest conftest.*; do
1893 test -f "$ac_file" || continue
1895 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1896 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1903 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1904 See \`config.log' for more details." >&5
1905 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1906 See \`config.log' for more details." >&2;}
1907 { (exit 1); exit 1; }; }
1910 rm -f conftest$ac_cv_exeext
1911 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1912 echo "${ECHO_T}$ac_cv_exeext" >&6
1914 rm -f conftest.$ac_ext
1915 EXEEXT=$ac_cv_exeext
1917 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1918 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1919 if test "${ac_cv_objext+set}" = set; then
1920 echo $ECHO_N "(cached) $ECHO_C" >&6
1922 cat >conftest.$ac_ext <<_ACEOF
1923 #line $LINENO "configure"
1926 cat confdefs.h >>conftest.$ac_ext
1927 cat >>conftest.$ac_ext <<_ACEOF
1928 /* end confdefs.h. */
1938 rm -f conftest.o conftest.obj
1939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1940 (eval $ac_compile) 2>&5
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); }; then
1944 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1946 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1947 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1952 echo "$as_me: failed program was:" >&5
1953 sed 's/^/| /' conftest.$ac_ext >&5
1955 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1956 See \`config.log' for more details." >&5
1957 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1958 See \`config.log' for more details." >&2;}
1959 { (exit 1); exit 1; }; }
1962 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1964 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1965 echo "${ECHO_T}$ac_cv_objext" >&6
1966 OBJEXT=$ac_cv_objext
1968 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1969 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1970 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1973 cat >conftest.$ac_ext <<_ACEOF
1974 #line $LINENO "configure"
1977 cat confdefs.h >>conftest.$ac_ext
1978 cat >>conftest.$ac_ext <<_ACEOF
1979 /* end confdefs.h. */
1992 rm -f conftest.$ac_objext
1993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1994 (eval $ac_compile) 2>&5
1996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997 (exit $ac_status); } &&
1998 { ac_try='test -s conftest.$ac_objext'
1999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003 (exit $ac_status); }; }; then
2006 echo "$as_me: failed program was:" >&5
2007 sed 's/^/| /' conftest.$ac_ext >&5
2011 rm -f conftest.$ac_objext conftest.$ac_ext
2012 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2015 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2016 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2017 GCC=`test $ac_compiler_gnu = yes && echo yes`
2018 ac_test_CFLAGS=${CFLAGS+set}
2019 ac_save_CFLAGS=$CFLAGS
2021 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2022 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2023 if test "${ac_cv_prog_cc_g+set}" = set; then
2024 echo $ECHO_N "(cached) $ECHO_C" >&6
2026 cat >conftest.$ac_ext <<_ACEOF
2027 #line $LINENO "configure"
2030 cat confdefs.h >>conftest.$ac_ext
2031 cat >>conftest.$ac_ext <<_ACEOF
2032 /* end confdefs.h. */
2042 rm -f conftest.$ac_objext
2043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2044 (eval $ac_compile) 2>&5
2046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2047 (exit $ac_status); } &&
2048 { ac_try='test -s conftest.$ac_objext'
2049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053 (exit $ac_status); }; }; then
2056 echo "$as_me: failed program was:" >&5
2057 sed 's/^/| /' conftest.$ac_ext >&5
2061 rm -f conftest.$ac_objext conftest.$ac_ext
2063 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2064 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2065 if test "$ac_test_CFLAGS" = set; then
2066 CFLAGS=$ac_save_CFLAGS
2067 elif test $ac_cv_prog_cc_g = yes; then
2068 if test "$GCC" = yes; then
2074 if test "$GCC" = yes; then
2080 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2081 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2082 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2083 echo $ECHO_N "(cached) $ECHO_C" >&6
2085 ac_cv_prog_cc_stdc=no
2087 cat >conftest.$ac_ext <<_ACEOF
2088 #line $LINENO "configure"
2091 cat confdefs.h >>conftest.$ac_ext
2092 cat >>conftest.$ac_ext <<_ACEOF
2093 /* end confdefs.h. */
2096 #include <sys/types.h>
2097 #include <sys/stat.h>
2098 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2099 struct buf { int x; };
2100 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2101 static char *e (p, i)
2107 static char *f (char * (*g) (char **, int), char **p, ...)
2112 s = g (p, va_arg (v,int));
2116 int test (int i, double x);
2117 struct s1 {int (*f) (int a);};
2118 struct s2 {int (*f) (double a);};
2119 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2125 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2130 # Don't try gcc -ansi; that turns off useful extensions and
2131 # breaks some systems' header files.
2132 # AIX -qlanglvl=ansi
2133 # Ultrix and OSF/1 -std1
2134 # HP-UX 10.20 and later -Ae
2135 # HP-UX older versions -Aa -D_HPUX_SOURCE
2136 # SVR4 -Xc -D__EXTENSIONS__
2137 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2139 CC="$ac_save_CC $ac_arg"
2140 rm -f conftest.$ac_objext
2141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2142 (eval $ac_compile) 2>&5
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); } &&
2146 { ac_try='test -s conftest.$ac_objext'
2147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151 (exit $ac_status); }; }; then
2152 ac_cv_prog_cc_stdc=$ac_arg
2155 echo "$as_me: failed program was:" >&5
2156 sed 's/^/| /' conftest.$ac_ext >&5
2159 rm -f conftest.$ac_objext
2161 rm -f conftest.$ac_ext conftest.$ac_objext
2166 case "x$ac_cv_prog_cc_stdc" in
2168 echo "$as_me:$LINENO: result: none needed" >&5
2169 echo "${ECHO_T}none needed" >&6 ;;
2171 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2172 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2173 CC="$CC $ac_cv_prog_cc_stdc" ;;
2176 # Some people use a C++ compiler to compile C. Since we use `exit',
2177 # in C++ we need to declare it. In case someone uses the same compiler
2178 # for both compiling C and C++ we need to have the C++ compiler decide
2179 # the declaration of exit, since it's the most demanding environment.
2180 cat >conftest.$ac_ext <<_ACEOF
2185 rm -f conftest.$ac_objext
2186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2187 (eval $ac_compile) 2>&5
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); } &&
2191 { ac_try='test -s conftest.$ac_objext'
2192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196 (exit $ac_status); }; }; then
2197 for ac_declaration in \
2199 'extern "C" void std::exit (int) throw (); using std::exit;' \
2200 'extern "C" void std::exit (int); using std::exit;' \
2201 'extern "C" void exit (int) throw ();' \
2202 'extern "C" void exit (int);' \
2203 'void exit (int);' \
2204 '#include <stdlib.h>'
2206 cat >conftest.$ac_ext <<_ACEOF
2207 #line $LINENO "configure"
2210 cat confdefs.h >>conftest.$ac_ext
2211 cat >>conftest.$ac_ext <<_ACEOF
2212 /* end confdefs.h. */
2223 rm -f conftest.$ac_objext
2224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225 (eval $ac_compile) 2>&5
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); } &&
2229 { ac_try='test -s conftest.$ac_objext'
2230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }; }; then
2237 echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.$ac_ext >&5
2242 rm -f conftest.$ac_objext conftest.$ac_ext
2243 cat >conftest.$ac_ext <<_ACEOF
2244 #line $LINENO "configure"
2247 cat confdefs.h >>conftest.$ac_ext
2248 cat >>conftest.$ac_ext <<_ACEOF
2249 /* end confdefs.h. */
2259 rm -f conftest.$ac_objext
2260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2261 (eval $ac_compile) 2>&5
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); } &&
2265 { ac_try='test -s conftest.$ac_objext'
2266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; }; then
2273 echo "$as_me: failed program was:" >&5
2274 sed 's/^/| /' conftest.$ac_ext >&5
2277 rm -f conftest.$ac_objext conftest.$ac_ext
2280 if test -n "$ac_declaration"; then
2281 echo '#ifdef __cplusplus' >>confdefs.h
2282 echo $ac_declaration >>confdefs.h
2283 echo '#endif' >>confdefs.h
2287 echo "$as_me: failed program was:" >&5
2288 sed 's/^/| /' conftest.$ac_ext >&5
2291 rm -f conftest.$ac_objext conftest.$ac_ext
2293 ac_cpp='$CPP $CPPFLAGS'
2294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2298 # Find a good install program. We prefer a C program (faster),
2299 # so one script is as good as another. But avoid the broken or
2300 # incompatible versions:
2301 # SysV /etc/install, /usr/sbin/install
2302 # SunOS /usr/etc/install
2303 # IRIX /sbin/install
2305 # AmigaOS /C/install, which installs bootblocks on floppy discs
2306 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2307 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2308 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2309 # ./install, which can be erroneously created by make from ./install.sh.
2310 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2311 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2312 if test -z "$INSTALL"; then
2313 if test "${ac_cv_path_install+set}" = set; then
2314 echo $ECHO_N "(cached) $ECHO_C" >&6
2316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320 test -z "$as_dir" && as_dir=.
2321 # Account for people who put trailing slashes in PATH elements.
2323 ./ | .// | /cC/* | \
2324 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2327 # OSF1 and SCO ODT 3.0 have their own names for install.
2328 # Don't use installbsd from OSF since it installs stuff as root
2330 for ac_prog in ginstall scoinst install; do
2331 for ac_exec_ext in '' $ac_executable_extensions; do
2332 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2333 if test $ac_prog = install &&
2334 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2335 # AIX install. It has an incompatible calling convention.
2337 elif test $ac_prog = install &&
2338 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2339 # program-specific install script used by HP pwplus--don't use.
2342 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2354 if test "${ac_cv_path_install+set}" = set; then
2355 INSTALL=$ac_cv_path_install
2357 # As a last resort, use the slow shell script. We don't cache a
2358 # path for INSTALL within a source directory, because that will
2359 # break other packages using the cache if that directory is
2360 # removed, or if the path is relative.
2361 INSTALL=$ac_install_sh
2364 echo "$as_me:$LINENO: result: $INSTALL" >&5
2365 echo "${ECHO_T}$INSTALL" >&6
2367 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2368 # It thinks the first close brace ends the variable substitution.
2369 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2371 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2373 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2376 if test "$ac_libiberty" = "NONE"; then
2379 echo "$as_me:$LINENO: checking for objalloc_create in -liberty" >&5
2380 echo $ECHO_N "checking for objalloc_create in -liberty... $ECHO_C" >&6
2381 if test "${ac_cv_lib_iberty_objalloc_create+set}" = set; then
2382 echo $ECHO_N "(cached) $ECHO_C" >&6
2384 ac_check_lib_save_LIBS=$LIBS
2385 LIBS="-liberty $LIBS"
2386 cat >conftest.$ac_ext <<_ACEOF
2387 #line $LINENO "configure"
2390 cat confdefs.h >>conftest.$ac_ext
2391 cat >>conftest.$ac_ext <<_ACEOF
2392 /* end confdefs.h. */
2394 /* Override any gcc2 internal prototype to avoid an error. */
2398 /* We use char because int might match the return type of a gcc2
2399 builtin and then its argument prototype would still apply. */
2400 char objalloc_create ();
2409 rm -f conftest.$ac_objext conftest$ac_exeext
2410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2411 (eval $ac_link) 2>&5
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); } &&
2415 { ac_try='test -s conftest$ac_exeext'
2416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; }; then
2421 ac_cv_lib_iberty_objalloc_create=yes
2423 echo "$as_me: failed program was:" >&5
2424 sed 's/^/| /' conftest.$ac_ext >&5
2426 ac_cv_lib_iberty_objalloc_create=no
2428 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2429 LIBS=$ac_check_lib_save_LIBS
2431 echo "$as_me:$LINENO: result: $ac_cv_lib_iberty_objalloc_create" >&5
2432 echo "${ECHO_T}$ac_cv_lib_iberty_objalloc_create" >&6
2433 if test $ac_cv_lib_iberty_objalloc_create = yes; then
2434 cat >>confdefs.h <<_ACEOF
2435 #define HAVE_LIBIBERTY 1
2438 LIBS="-liberty $LIBS"
2444 LIBS="$ac_libiberty $LIBS"
2446 if test "$ac_libbfd" = "NONE"; then
2448 echo "$as_me:$LINENO: checking for bfd_openr in -lbfd" >&5
2449 echo $ECHO_N "checking for bfd_openr in -lbfd... $ECHO_C" >&6
2450 if test "${ac_cv_lib_bfd_bfd_openr+set}" = set; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
2453 ac_check_lib_save_LIBS=$LIBS
2455 cat >conftest.$ac_ext <<_ACEOF
2456 #line $LINENO "configure"
2459 cat confdefs.h >>conftest.$ac_ext
2460 cat >>conftest.$ac_ext <<_ACEOF
2461 /* end confdefs.h. */
2463 /* Override any gcc2 internal prototype to avoid an error. */
2467 /* We use char because int might match the return type of a gcc2
2468 builtin and then its argument prototype would still apply. */
2478 rm -f conftest.$ac_objext conftest$ac_exeext
2479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2480 (eval $ac_link) 2>&5
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); } &&
2484 { ac_try='test -s conftest$ac_exeext'
2485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }; }; then
2490 ac_cv_lib_bfd_bfd_openr=yes
2492 echo "$as_me: failed program was:" >&5
2493 sed 's/^/| /' conftest.$ac_ext >&5
2495 ac_cv_lib_bfd_bfd_openr=no
2497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2498 LIBS=$ac_check_lib_save_LIBS
2500 echo "$as_me:$LINENO: result: $ac_cv_lib_bfd_bfd_openr" >&5
2501 echo "${ECHO_T}$ac_cv_lib_bfd_bfd_openr" >&6
2502 if test $ac_cv_lib_bfd_bfd_openr = yes; then
2503 cat >>confdefs.h <<_ACEOF
2504 #define HAVE_LIBBFD 1
2513 LIBS="$ac_libbfd $LIBS"
2517 if test "$ac_bfd_include_dir" != "NONE"; then
2518 bfd_include_dir="-I$ac_bfd_include_dir"
2521 binutils_include_dir=
2522 if test "$ac_binutils_include_dir" != "NONE"; then
2523 binutils_include_dir="-I$ac_binutils_include_dir"
2526 if test "$ac_libbfd" = "NONE" -o "$ac_libiberty" = "NONE" ; then
2528 echo "You need to specify the location of the libfd.a and libiberty.a"
2529 echo "host libraries from the binutils package."
2531 echo "Run configure again specifying these options:"
2533 echo " ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>"
2538 if test "$ac_bfd_include_dir" = "NONE" ; then
2540 echo "You need to specify the location of the bfd.h header from a"
2541 echo "configured/compiled version of the binutils package for your target."
2542 echo "Without this your elf2flt may crash as it will try to use the"
2543 echo "systems bfd.h which may be from a different binutils package."
2545 echo "Run configure again specifying these options:"
2547 echo " ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>"
2553 ac_cpp='$CPP $CPPFLAGS'
2554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2557 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2558 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2559 # On Suns, sometimes $CPP names a directory.
2560 if test -n "$CPP" && test -d "$CPP"; then
2563 if test -z "$CPP"; then
2564 if test "${ac_cv_prog_CPP+set}" = set; then
2565 echo $ECHO_N "(cached) $ECHO_C" >&6
2567 # Double quotes because CPP needs to be expanded
2568 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2571 for ac_c_preproc_warn_flag in '' yes
2573 # Use a header file that comes with gcc, so configuring glibc
2574 # with a fresh cross-compiler works.
2575 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2576 # <limits.h> exists even on freestanding compilers.
2577 # On the NeXT, cc -E runs the code through the compiler's parser,
2578 # not just through cpp. "Syntax error" is here to catch this case.
2579 cat >conftest.$ac_ext <<_ACEOF
2580 #line $LINENO "configure"
2583 cat confdefs.h >>conftest.$ac_ext
2584 cat >>conftest.$ac_ext <<_ACEOF
2585 /* end confdefs.h. */
2587 # include <limits.h>
2589 # include <assert.h>
2593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2594 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2596 grep -v '^ *+' conftest.er1 >conftest.err
2598 cat conftest.err >&5
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); } >/dev/null; then
2601 if test -s conftest.err; then
2602 ac_cpp_err=$ac_c_preproc_warn_flag
2609 if test -z "$ac_cpp_err"; then
2612 echo "$as_me: failed program was:" >&5
2613 sed 's/^/| /' conftest.$ac_ext >&5
2615 # Broken: fails on valid input.
2618 rm -f conftest.err conftest.$ac_ext
2620 # OK, works on sane cases. Now check whether non-existent headers
2621 # can be detected and how.
2622 cat >conftest.$ac_ext <<_ACEOF
2623 #line $LINENO "configure"
2626 cat confdefs.h >>conftest.$ac_ext
2627 cat >>conftest.$ac_ext <<_ACEOF
2628 /* end confdefs.h. */
2629 #include <ac_nonexistent.h>
2631 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2632 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2634 grep -v '^ *+' conftest.er1 >conftest.err
2636 cat conftest.err >&5
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); } >/dev/null; then
2639 if test -s conftest.err; then
2640 ac_cpp_err=$ac_c_preproc_warn_flag
2647 if test -z "$ac_cpp_err"; then
2648 # Broken: success on invalid input.
2651 echo "$as_me: failed program was:" >&5
2652 sed 's/^/| /' conftest.$ac_ext >&5
2654 # Passes both tests.
2658 rm -f conftest.err conftest.$ac_ext
2661 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2662 rm -f conftest.err conftest.$ac_ext
2663 if $ac_preproc_ok; then
2675 echo "$as_me:$LINENO: result: $CPP" >&5
2676 echo "${ECHO_T}$CPP" >&6
2678 for ac_c_preproc_warn_flag in '' yes
2680 # Use a header file that comes with gcc, so configuring glibc
2681 # with a fresh cross-compiler works.
2682 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2683 # <limits.h> exists even on freestanding compilers.
2684 # On the NeXT, cc -E runs the code through the compiler's parser,
2685 # not just through cpp. "Syntax error" is here to catch this case.
2686 cat >conftest.$ac_ext <<_ACEOF
2687 #line $LINENO "configure"
2690 cat confdefs.h >>conftest.$ac_ext
2691 cat >>conftest.$ac_ext <<_ACEOF
2692 /* end confdefs.h. */
2694 # include <limits.h>
2696 # include <assert.h>
2700 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2701 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2703 grep -v '^ *+' conftest.er1 >conftest.err
2705 cat conftest.err >&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); } >/dev/null; then
2708 if test -s conftest.err; then
2709 ac_cpp_err=$ac_c_preproc_warn_flag
2716 if test -z "$ac_cpp_err"; then
2719 echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2722 # Broken: fails on valid input.
2725 rm -f conftest.err conftest.$ac_ext
2727 # OK, works on sane cases. Now check whether non-existent headers
2728 # can be detected and how.
2729 cat >conftest.$ac_ext <<_ACEOF
2730 #line $LINENO "configure"
2733 cat confdefs.h >>conftest.$ac_ext
2734 cat >>conftest.$ac_ext <<_ACEOF
2735 /* end confdefs.h. */
2736 #include <ac_nonexistent.h>
2738 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2739 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2741 grep -v '^ *+' conftest.er1 >conftest.err
2743 cat conftest.err >&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); } >/dev/null; then
2746 if test -s conftest.err; then
2747 ac_cpp_err=$ac_c_preproc_warn_flag
2754 if test -z "$ac_cpp_err"; then
2755 # Broken: success on invalid input.
2758 echo "$as_me: failed program was:" >&5
2759 sed 's/^/| /' conftest.$ac_ext >&5
2761 # Passes both tests.
2765 rm -f conftest.err conftest.$ac_ext
2768 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2769 rm -f conftest.err conftest.$ac_ext
2770 if $ac_preproc_ok; then
2773 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2774 See \`config.log' for more details." >&5
2775 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2776 See \`config.log' for more details." >&2;}
2777 { (exit 1); exit 1; }; }
2781 ac_cpp='$CPP $CPPFLAGS'
2782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2787 echo "$as_me:$LINENO: checking for egrep" >&5
2788 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2789 if test "${ac_cv_prog_egrep+set}" = set; then
2790 echo $ECHO_N "(cached) $ECHO_C" >&6
2792 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2793 then ac_cv_prog_egrep='grep -E'
2794 else ac_cv_prog_egrep='egrep'
2797 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2798 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2799 EGREP=$ac_cv_prog_egrep
2802 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2803 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2804 if test "${ac_cv_header_stdc+set}" = set; then
2805 echo $ECHO_N "(cached) $ECHO_C" >&6
2807 cat >conftest.$ac_ext <<_ACEOF
2808 #line $LINENO "configure"
2811 cat confdefs.h >>conftest.$ac_ext
2812 cat >>conftest.$ac_ext <<_ACEOF
2813 /* end confdefs.h. */
2827 rm -f conftest.$ac_objext
2828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2829 (eval $ac_compile) 2>&5
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); } &&
2833 { ac_try='test -s conftest.$ac_objext'
2834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); }; }; then
2839 ac_cv_header_stdc=yes
2841 echo "$as_me: failed program was:" >&5
2842 sed 's/^/| /' conftest.$ac_ext >&5
2844 ac_cv_header_stdc=no
2846 rm -f conftest.$ac_objext conftest.$ac_ext
2848 if test $ac_cv_header_stdc = yes; then
2849 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2850 cat >conftest.$ac_ext <<_ACEOF
2851 #line $LINENO "configure"
2854 cat confdefs.h >>conftest.$ac_ext
2855 cat >>conftest.$ac_ext <<_ACEOF
2856 /* end confdefs.h. */
2860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2861 $EGREP "memchr" >/dev/null 2>&1; then
2864 ac_cv_header_stdc=no
2870 if test $ac_cv_header_stdc = yes; then
2871 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2872 cat >conftest.$ac_ext <<_ACEOF
2873 #line $LINENO "configure"
2876 cat confdefs.h >>conftest.$ac_ext
2877 cat >>conftest.$ac_ext <<_ACEOF
2878 /* end confdefs.h. */
2882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2883 $EGREP "free" >/dev/null 2>&1; then
2886 ac_cv_header_stdc=no
2892 if test $ac_cv_header_stdc = yes; then
2893 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2894 if test "$cross_compiling" = yes; then
2897 cat >conftest.$ac_ext <<_ACEOF
2898 #line $LINENO "configure"
2901 cat confdefs.h >>conftest.$ac_ext
2902 cat >>conftest.$ac_ext <<_ACEOF
2903 /* end confdefs.h. */
2905 #if ((' ' & 0x0FF) == 0x020)
2906 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2907 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2909 # define ISLOWER(c) \
2910 (('a' <= (c) && (c) <= 'i') \
2911 || ('j' <= (c) && (c) <= 'r') \
2912 || ('s' <= (c) && (c) <= 'z'))
2913 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2916 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2921 for (i = 0; i < 256; i++)
2922 if (XOR (islower (i), ISLOWER (i))
2923 || toupper (i) != TOUPPER (i))
2928 rm -f conftest$ac_exeext
2929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2930 (eval $ac_link) 2>&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); }; }; then
2941 echo "$as_me: program exited with status $ac_status" >&5
2942 echo "$as_me: failed program was:" >&5
2943 sed 's/^/| /' conftest.$ac_ext >&5
2946 ac_cv_header_stdc=no
2948 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2952 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2953 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2954 if test $ac_cv_header_stdc = yes; then
2956 cat >>confdefs.h <<\_ACEOF
2957 #define STDC_HEADERS 1
2962 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2972 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2973 inttypes.h stdint.h unistd.h
2975 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2976 echo "$as_me:$LINENO: checking for $ac_header" >&5
2977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2979 echo $ECHO_N "(cached) $ECHO_C" >&6
2981 cat >conftest.$ac_ext <<_ACEOF
2982 #line $LINENO "configure"
2985 cat confdefs.h >>conftest.$ac_ext
2986 cat >>conftest.$ac_ext <<_ACEOF
2987 /* end confdefs.h. */
2988 $ac_includes_default
2990 #include <$ac_header>
2992 rm -f conftest.$ac_objext
2993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2994 (eval $ac_compile) 2>&5
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); } &&
2998 { ac_try='test -s conftest.$ac_objext'
2999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); }; }; then
3004 eval "$as_ac_Header=yes"
3006 echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3009 eval "$as_ac_Header=no"
3011 rm -f conftest.$ac_objext conftest.$ac_ext
3013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3016 cat >>confdefs.h <<_ACEOF
3017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3028 for ac_header in fcntl.h unistd.h bfd.h
3030 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3032 echo "$as_me:$LINENO: checking for $ac_header" >&5
3033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3035 echo $ECHO_N "(cached) $ECHO_C" >&6
3037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3040 # Is the header compilable?
3041 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3042 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3043 cat >conftest.$ac_ext <<_ACEOF
3044 #line $LINENO "configure"
3047 cat confdefs.h >>conftest.$ac_ext
3048 cat >>conftest.$ac_ext <<_ACEOF
3049 /* end confdefs.h. */
3050 $ac_includes_default
3051 #include <$ac_header>
3053 rm -f conftest.$ac_objext
3054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3055 (eval $ac_compile) 2>&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); } &&
3059 { ac_try='test -s conftest.$ac_objext'
3060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }; }; then
3065 ac_header_compiler=yes
3067 echo "$as_me: failed program was:" >&5
3068 sed 's/^/| /' conftest.$ac_ext >&5
3070 ac_header_compiler=no
3072 rm -f conftest.$ac_objext conftest.$ac_ext
3073 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3074 echo "${ECHO_T}$ac_header_compiler" >&6
3076 # Is the header present?
3077 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3078 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3079 cat >conftest.$ac_ext <<_ACEOF
3080 #line $LINENO "configure"
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h. */
3086 #include <$ac_header>
3088 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3089 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3091 grep -v '^ *+' conftest.er1 >conftest.err
3093 cat conftest.err >&5
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); } >/dev/null; then
3096 if test -s conftest.err; then
3097 ac_cpp_err=$ac_c_preproc_warn_flag
3104 if test -z "$ac_cpp_err"; then
3105 ac_header_preproc=yes
3107 echo "$as_me: failed program was:" >&5
3108 sed 's/^/| /' conftest.$ac_ext >&5
3110 ac_header_preproc=no
3112 rm -f conftest.err conftest.$ac_ext
3113 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3114 echo "${ECHO_T}$ac_header_preproc" >&6
3116 # So? What about this header?
3117 case $ac_header_compiler:$ac_header_preproc in
3119 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3120 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3122 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3125 ## ------------------------------------ ##
3126 ## Report this to bug-autoconf@gnu.org. ##
3127 ## ------------------------------------ ##
3130 sed "s/^/$as_me: WARNING: /" >&2
3133 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3134 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3135 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3136 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3138 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3141 ## ------------------------------------ ##
3142 ## Report this to bug-autoconf@gnu.org. ##
3143 ## ------------------------------------ ##
3146 sed "s/^/$as_me: WARNING: /" >&2
3149 echo "$as_me:$LINENO: checking for $ac_header" >&5
3150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3152 echo $ECHO_N "(cached) $ECHO_C" >&6
3154 eval "$as_ac_Header=$ac_header_preproc"
3156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3157 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3160 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3161 cat >>confdefs.h <<_ACEOF
3162 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3170 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3171 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3172 if test "${ac_cv_c_const+set}" = set; then
3173 echo $ECHO_N "(cached) $ECHO_C" >&6
3175 cat >conftest.$ac_ext <<_ACEOF
3176 #line $LINENO "configure"
3179 cat confdefs.h >>conftest.$ac_ext
3180 cat >>conftest.$ac_ext <<_ACEOF
3181 /* end confdefs.h. */
3186 /* FIXME: Include the comments suggested by Paul. */
3188 /* Ultrix mips cc rejects this. */
3189 typedef int charset[2];
3191 /* SunOS 4.1.1 cc rejects this. */
3192 char const *const *ccp;
3194 /* NEC SVR4.0.2 mips cc rejects this. */
3195 struct point {int x, y;};
3196 static struct point const zero = {0,0};
3197 /* AIX XL C 1.02.0.0 rejects this.
3198 It does not let you subtract one const X* pointer from another in
3199 an arm of an if-expression whose if-part is not a constant
3201 const char *g = "string";
3202 ccp = &g + (g ? g-g : 0);
3203 /* HPUX 7.0 cc rejects these. */
3206 ccp = (char const *const *) p;
3207 { /* SCO 3.2v4 cc rejects this. */
3209 char const *s = 0 ? (char *) 0 : (char const *) 0;
3213 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3215 const int *foo = &x[0];
3218 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3219 typedef const int *iptr;
3223 { /* AIX XL C 1.02.0.0 rejects this saying
3224 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3225 struct s { int j; const int *ap[3]; };
3226 struct s *b; b->j = 5;
3228 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3237 rm -f conftest.$ac_objext
3238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3239 (eval $ac_compile) 2>&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } &&
3243 { ac_try='test -s conftest.$ac_objext'
3244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); }; }; then
3251 echo "$as_me: failed program was:" >&5
3252 sed 's/^/| /' conftest.$ac_ext >&5
3256 rm -f conftest.$ac_objext conftest.$ac_ext
3258 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3259 echo "${ECHO_T}$ac_cv_c_const" >&6
3260 if test $ac_cv_c_const = no; then
3262 cat >>confdefs.h <<\_ACEOF
3270 for ac_func in vprintf
3272 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3273 echo "$as_me:$LINENO: checking for $ac_func" >&5
3274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3275 if eval "test \"\${$as_ac_var+set}\" = set"; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3278 cat >conftest.$ac_ext <<_ACEOF
3279 #line $LINENO "configure"
3282 cat confdefs.h >>conftest.$ac_ext
3283 cat >>conftest.$ac_ext <<_ACEOF
3284 /* end confdefs.h. */
3285 /* System header to define __stub macros and hopefully few prototypes,
3286 which can conflict with char $ac_func (); below.
3287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3288 <limits.h> exists even on freestanding compilers. */
3290 # include <limits.h>
3292 # include <assert.h>
3294 /* Override any gcc2 internal prototype to avoid an error. */
3299 /* We use char because int might match the return type of a gcc2
3300 builtin and then its argument prototype would still apply. */
3302 /* The GNU C library defines this for functions which it implements
3303 to always fail with ENOSYS. Some functions are actually named
3304 something starting with __ and the normal name is an alias. */
3305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3308 char (*f) () = $ac_func;
3317 return f != $ac_func;
3322 rm -f conftest.$ac_objext conftest$ac_exeext
3323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3324 (eval $ac_link) 2>&5
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); } &&
3328 { ac_try='test -s conftest$ac_exeext'
3329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }; }; then
3334 eval "$as_ac_var=yes"
3336 echo "$as_me: failed program was:" >&5
3337 sed 's/^/| /' conftest.$ac_ext >&5
3339 eval "$as_ac_var=no"
3341 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3344 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3345 if test `eval echo '${'$as_ac_var'}'` = yes; then
3346 cat >>confdefs.h <<_ACEOF
3347 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3350 echo "$as_me:$LINENO: checking for _doprnt" >&5
3351 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
3352 if test "${ac_cv_func__doprnt+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3355 cat >conftest.$ac_ext <<_ACEOF
3356 #line $LINENO "configure"
3359 cat confdefs.h >>conftest.$ac_ext
3360 cat >>conftest.$ac_ext <<_ACEOF
3361 /* end confdefs.h. */
3362 /* System header to define __stub macros and hopefully few prototypes,
3363 which can conflict with char _doprnt (); below.
3364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3365 <limits.h> exists even on freestanding compilers. */
3367 # include <limits.h>
3369 # include <assert.h>
3371 /* Override any gcc2 internal prototype to avoid an error. */
3376 /* We use char because int might match the return type of a gcc2
3377 builtin and then its argument prototype would still apply. */
3379 /* The GNU C library defines this for functions which it implements
3380 to always fail with ENOSYS. Some functions are actually named
3381 something starting with __ and the normal name is an alias. */
3382 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3385 char (*f) () = _doprnt;
3394 return f != _doprnt;
3399 rm -f conftest.$ac_objext conftest$ac_exeext
3400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3401 (eval $ac_link) 2>&5
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); } &&
3405 { ac_try='test -s conftest$ac_exeext'
3406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; }; then
3411 ac_cv_func__doprnt=yes
3413 echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3416 ac_cv_func__doprnt=no
3418 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3420 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
3421 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
3422 if test $ac_cv_func__doprnt = yes; then
3424 cat >>confdefs.h <<\_ACEOF
3425 #define HAVE_DOPRNT 1
3436 for ac_func in dcgettext
3438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3439 echo "$as_me:$LINENO: checking for $ac_func" >&5
3440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3441 if eval "test \"\${$as_ac_var+set}\" = set"; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3444 cat >conftest.$ac_ext <<_ACEOF
3445 #line $LINENO "configure"
3448 cat confdefs.h >>conftest.$ac_ext
3449 cat >>conftest.$ac_ext <<_ACEOF
3450 /* end confdefs.h. */
3451 /* System header to define __stub macros and hopefully few prototypes,
3452 which can conflict with char $ac_func (); below.
3453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3454 <limits.h> exists even on freestanding compilers. */
3456 # include <limits.h>
3458 # include <assert.h>
3460 /* Override any gcc2 internal prototype to avoid an error. */
3465 /* We use char because int might match the return type of a gcc2
3466 builtin and then its argument prototype would still apply. */
3468 /* The GNU C library defines this for functions which it implements
3469 to always fail with ENOSYS. Some functions are actually named
3470 something starting with __ and the normal name is an alias. */
3471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3474 char (*f) () = $ac_func;
3483 return f != $ac_func;
3488 rm -f conftest.$ac_objext conftest$ac_exeext
3489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3490 (eval $ac_link) 2>&5
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); } &&
3494 { ac_try='test -s conftest$ac_exeext'
3495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); }; }; then
3500 eval "$as_ac_var=yes"
3502 echo "$as_me: failed program was:" >&5
3503 sed 's/^/| /' conftest.$ac_ext >&5
3505 eval "$as_ac_var=no"
3507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3510 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3511 if test `eval echo '${'$as_ac_var'}'` = yes; then
3512 cat >>confdefs.h <<_ACEOF
3513 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3529 ac_config_files="$ac_config_files Makefile ld-elf2flt"
3530 cat >confcache <<\_ACEOF
3531 # This file is a shell script that caches the results of configure
3532 # tests run on this system so they can be shared between configure
3533 # scripts and configure runs, see configure's option --config-cache.
3534 # It is not useful on other systems. If it contains results you don't
3535 # want to keep, you may remove or edit it.
3537 # config.status only pays attention to the cache file if you give it
3538 # the --recheck option to rerun configure.
3540 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3541 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3546 # The following way of writing the cache mishandles newlines in values,
3547 # but we know of no workaround that is simple, portable, and efficient.
3548 # So, don't put newlines in cache variables' values.
3549 # Ultrix sh set writes to stderr and can't be redirected directly,
3550 # and sets the high bit in the cache file unless we assign to the vars.
3553 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3555 # `set' does not quote correctly, so add quotes (double-quote
3556 # substitution turns \\\\ into \\, and sed turns \\ into \).
3559 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3562 # `set' quotes correctly as required by POSIX, so do not add quotes.
3564 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3571 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3573 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3575 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3576 if test -w $cache_file; then
3577 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3578 cat confcache >$cache_file
3580 echo "not updating unwritable cache $cache_file"
3585 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3586 # Let make expand exec_prefix.
3587 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3589 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3590 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3591 # trailing colons and then remove the whole line if VPATH becomes empty
3592 # (actually we leave an empty line to preserve line numbers).
3593 if test "x$srcdir" = x.; then
3594 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3595 s/:*\$(srcdir):*/:/;
3596 s/:*\${srcdir}:*/:/;
3598 s/^\([^=]*=[ ]*\):*/\1/;
3604 # Transform confdefs.h into DEFS.
3605 # Protect against shell expansion while executing Makefile rules.
3606 # Protect against Makefile macro expansion.
3608 # If the first sed substitution is executed (which looks for macros that
3609 # take arguments), then we branch to the quote section. Otherwise,
3610 # look for a macro that doesn't take arguments.
3611 cat >confdef2opt.sed <<\_ACEOF
3614 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
3616 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
3620 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
3626 # We use echo to avoid assuming a particular line-breaking character.
3627 # The extra dot is to prevent the shell from consuming trailing
3628 # line-breaks from the sub-command output. A line-break within
3629 # single-quotes doesn't work because, if this script is created in a
3630 # platform that uses two characters for line-breaks (e.g., DOS), tr
3632 ac_LF_and_DOT=`echo; echo .`
3633 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3634 rm -f confdef2opt.sed
3639 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3640 # 1. Remove the extension, and $U if already installed.
3641 ac_i=`echo "$ac_i" |
3642 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3644 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3645 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3649 LTLIBOBJS=$ac_ltlibobjs
3653 : ${CONFIG_STATUS=./config.status}
3654 ac_clean_files_save=$ac_clean_files
3655 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3656 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3657 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3658 cat >$CONFIG_STATUS <<_ACEOF
3660 # Generated by $as_me.
3661 # Run this file to recreate the current configuration.
3662 # Compiler output produced by configure, useful for debugging
3663 # configure, is in config.log if it exists.
3668 SHELL=\${CONFIG_SHELL-$SHELL}
3671 cat >>$CONFIG_STATUS <<\_ACEOF
3672 ## --------------------- ##
3673 ## M4sh Initialization. ##
3674 ## --------------------- ##
3676 # Be Bourne compatible
3677 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3680 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3681 # is contrary to our usage. Disable this feature.
3682 alias -g '${1+"$@"}'='"$@"'
3683 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3687 # Support unset when possible.
3688 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3695 # Work around bugs in pre-3.0 UWIN ksh.
3696 $as_unset ENV MAIL MAILPATH
3703 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3704 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3705 LC_TELEPHONE LC_TIME
3707 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
3708 eval $as_var=C; export $as_var
3714 # Required to use basename.
3715 if expr a : '\(a\)' >/dev/null 2>&1; then
3721 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3722 as_basename=basename
3728 # Name of the executable.
3729 as_me=`$as_basename "$0" ||
3730 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3731 X"$0" : 'X\(//\)$' \| \
3732 X"$0" : 'X\(/\)$' \| \
3733 . : '\(.\)' 2>/dev/null ||
3735 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3736 /^X\/\(\/\/\)$/{ s//\1/; q; }
3737 /^X\/\(\/\).*/{ s//\1/; q; }
3741 # PATH needs CR, and LINENO needs CR and PATH.
3742 # Avoid depending upon Character Ranges.
3743 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3744 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3745 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3746 as_cr_digits='0123456789'
3747 as_cr_alnum=$as_cr_Letters$as_cr_digits
3749 # The user is always right.
3750 if test "${PATH_SEPARATOR+set}" != set; then
3751 echo "#! /bin/sh" >conf$$.sh
3752 echo "exit 0" >>conf$$.sh
3754 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3765 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3766 test "x$as_lineno_1" != "x$as_lineno_2" &&
3767 test "x$as_lineno_3" = "x$as_lineno_2" || {
3768 # Find who we are. Look in the path if we contain no path at all
3771 *[\\/]* ) as_myself=$0 ;;
3772 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3776 test -z "$as_dir" && as_dir=.
3777 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3782 # We did not find ourselves, most probably we were run as `sh COMMAND'
3783 # in which case we are not to be found in the path.
3784 if test "x$as_myself" = x; then
3787 if test ! -f "$as_myself"; then
3788 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3789 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3790 { (exit 1); exit 1; }; }
3792 case $CONFIG_SHELL in
3794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3798 test -z "$as_dir" && as_dir=.
3799 for as_base in sh bash ksh sh5; do
3802 if ("$as_dir/$as_base" -c '
3805 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3806 test "x$as_lineno_1" != "x$as_lineno_2" &&
3807 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3808 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3809 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3810 CONFIG_SHELL=$as_dir/$as_base
3812 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3820 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3821 # uniformly replaced by the line number. The first 'sed' inserts a
3822 # line-number line before each line; the second 'sed' does the real
3823 # work. The second script uses 'N' to pair each line-number line
3824 # with the numbered line, and appends trailing '-' during
3825 # substitution so that $LINENO is not a special case at line end.
3826 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3827 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3828 sed '=' <$as_myself |
3833 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3836 s,^['$as_cr_digits']*\n,,
3838 chmod +x $as_me.lineno ||
3839 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3840 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3841 { (exit 1); exit 1; }; }
3843 # Don't try to exec as it changes $[0], causing all sort of problems
3844 # (the dirname of $[0] is not the place where we might find the
3845 # original and so on. Autoconf is especially sensible to this).
3847 # Exit status is that of the last command.
3852 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3853 *c*,-n*) ECHO_N= ECHO_C='
3855 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3856 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3859 if expr a : '\(a\)' >/dev/null 2>&1; then
3865 rm -f conf$$ conf$$.exe conf$$.file
3867 if ln -s conf$$.file conf$$ 2>/dev/null; then
3868 # We could just check for DJGPP; but this test a) works b) is more generic
3869 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3870 if test -f conf$$.exe; then
3871 # Don't use ln at all; we don't have any links
3876 elif ln conf$$.file conf$$ 2>/dev/null; then
3881 rm -f conf$$ conf$$.exe conf$$.file
3883 if mkdir -p . 2>/dev/null; then
3889 as_executable_p="test -f"
3891 # Sed expression to map a string onto a valid CPP name.
3892 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
3894 # Sed expression to map a string onto a valid variable name.
3895 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
3899 # We need space, tab and new line, in precisely that order.
3909 # Open the log real soon, to keep \$[0] and so on meaningful, and to
3910 # report actual input values of CONFIG_FILES etc. instead of their
3911 # values after options handling. Logging --version etc. is OK.
3915 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3916 ## Running $as_me. ##
3921 This file was extended by $as_me, which was
3922 generated by GNU Autoconf 2.57. Invocation command line was
3924 CONFIG_FILES = $CONFIG_FILES
3925 CONFIG_HEADERS = $CONFIG_HEADERS
3926 CONFIG_LINKS = $CONFIG_LINKS
3927 CONFIG_COMMANDS = $CONFIG_COMMANDS
3931 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3935 # Files that config.status was made for.
3936 if test -n "$ac_config_files"; then
3937 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3940 if test -n "$ac_config_headers"; then
3941 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3944 if test -n "$ac_config_links"; then
3945 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3948 if test -n "$ac_config_commands"; then
3949 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3952 cat >>$CONFIG_STATUS <<\_ACEOF
3955 \`$as_me' instantiates files from templates according to the
3956 current configuration.
3958 Usage: $0 [OPTIONS] [FILE]...
3960 -h, --help print this help, then exit
3961 -V, --version print version number, then exit
3962 -q, --quiet do not print progress messages
3963 -d, --debug don't remove temporary files
3964 --recheck update $as_me by reconfiguring in the same conditions
3965 --file=FILE[:TEMPLATE]
3966 instantiate the configuration file FILE
3968 Configuration files:
3971 Report bugs to <bug-autoconf@gnu.org>."
3974 cat >>$CONFIG_STATUS <<_ACEOF
3977 configured by $0, generated by GNU Autoconf 2.57,
3978 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3980 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
3981 Free Software Foundation, Inc.
3982 This config.status script is free software; the Free Software Foundation
3983 gives unlimited permission to copy, distribute and modify it."
3988 cat >>$CONFIG_STATUS <<\_ACEOF
3989 # If no file are specified by the user, then we need to provide default
3990 # value. By we need to know if files were specified by the user.
3996 ac_option=`expr "x$1" : 'x\([^=]*\)='`
3997 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4005 *) # This is not an option, so the user has probably given explicit
4008 ac_need_defaults=false;;
4012 # Handling of the options.
4014 cat >>$CONFIG_STATUS <<\_ACEOF
4015 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4017 --version | --vers* | -V )
4018 echo "$ac_cs_version"; exit 0 ;;
4020 # Conflict between --help and --header
4021 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4022 Try \`$0 --help' for more information." >&5
4023 echo "$as_me: error: ambiguous option: $1
4024 Try \`$0 --help' for more information." >&2;}
4025 { (exit 1); exit 1; }; };;
4026 --help | --hel | -h )
4027 echo "$ac_cs_usage"; exit 0 ;;
4028 --debug | --d* | -d )
4030 --file | --fil | --fi | --f )
4032 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4033 ac_need_defaults=false;;
4034 --header | --heade | --head | --hea )
4036 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4037 ac_need_defaults=false;;
4038 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4039 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4043 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4044 Try \`$0 --help' for more information." >&5
4045 echo "$as_me: error: unrecognized option: $1
4046 Try \`$0 --help' for more information." >&2;}
4047 { (exit 1); exit 1; }; } ;;
4049 *) ac_config_targets="$ac_config_targets $1" ;;
4055 ac_configure_extra_args=
4057 if $ac_cs_silent; then
4059 ac_configure_extra_args="$ac_configure_extra_args --silent"
4063 cat >>$CONFIG_STATUS <<_ACEOF
4064 if \$ac_cs_recheck; then
4065 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4066 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4075 cat >>$CONFIG_STATUS <<\_ACEOF
4076 for ac_config_target in $ac_config_targets
4078 case "$ac_config_target" in
4079 # Handling of arguments.
4080 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4081 "ld-elf2flt" ) CONFIG_FILES="$CONFIG_FILES ld-elf2flt" ;;
4082 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4083 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4084 { (exit 1); exit 1; }; };;
4088 # If the user did not use the arguments to specify the items to instantiate,
4089 # then the envvar interface is used. Set only those that are not.
4090 # We use the long form for the default assignment because of an extremely
4091 # bizarre bug on SunOS 4.1.3.
4092 if $ac_need_defaults; then
4093 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4096 # Have a temporary directory for convenience. Make it in the build tree
4097 # simply because there is no reason to put it here, and in addition,
4098 # creating and moving files from /tmp can sometimes cause problems.
4099 # Create a temporary directory, and hook for its removal unless debugging.
4102 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4103 trap '{ (exit 1); exit 1; }' 1 2 13 15
4106 # Create a (secure) tmp directory for tmp files.
4109 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4110 test -n "$tmp" && test -d "$tmp"
4113 tmp=./confstat$$-$RANDOM
4114 (umask 077 && mkdir $tmp)
4117 echo "$me: cannot create a temporary directory in ." >&2
4118 { (exit 1); exit 1; }
4123 cat >>$CONFIG_STATUS <<_ACEOF
4126 # CONFIG_FILES section.
4129 # No need to generate the scripts if there are no CONFIG_FILES.
4130 # This happens for instance when ./config.status config.h
4131 if test -n "\$CONFIG_FILES"; then
4132 # Protect against being on the right side of a sed subst in config.status.
4133 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4134 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4135 s,@SHELL@,$SHELL,;t t
4136 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4137 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4138 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4139 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4140 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4141 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4142 s,@exec_prefix@,$exec_prefix,;t t
4143 s,@prefix@,$prefix,;t t
4144 s,@program_transform_name@,$program_transform_name,;t t
4145 s,@bindir@,$bindir,;t t
4146 s,@sbindir@,$sbindir,;t t
4147 s,@libexecdir@,$libexecdir,;t t
4148 s,@datadir@,$datadir,;t t
4149 s,@sysconfdir@,$sysconfdir,;t t
4150 s,@sharedstatedir@,$sharedstatedir,;t t
4151 s,@localstatedir@,$localstatedir,;t t
4152 s,@libdir@,$libdir,;t t
4153 s,@includedir@,$includedir,;t t
4154 s,@oldincludedir@,$oldincludedir,;t t
4155 s,@infodir@,$infodir,;t t
4156 s,@mandir@,$mandir,;t t
4157 s,@build_alias@,$build_alias,;t t
4158 s,@host_alias@,$host_alias,;t t
4159 s,@target_alias@,$target_alias,;t t
4161 s,@ECHO_C@,$ECHO_C,;t t
4162 s,@ECHO_N@,$ECHO_N,;t t
4163 s,@ECHO_T@,$ECHO_T,;t t
4165 s,@build@,$build,;t t
4166 s,@build_cpu@,$build_cpu,;t t
4167 s,@build_vendor@,$build_vendor,;t t
4168 s,@build_os@,$build_os,;t t
4170 s,@host_cpu@,$host_cpu,;t t
4171 s,@host_vendor@,$host_vendor,;t t
4172 s,@host_os@,$host_os,;t t
4173 s,@target@,$target,;t t
4174 s,@target_cpu@,$target_cpu,;t t
4175 s,@target_vendor@,$target_vendor,;t t
4176 s,@target_os@,$target_os,;t t
4178 s,@CFLAGS@,$CFLAGS,;t t
4179 s,@LDFLAGS@,$LDFLAGS,;t t
4180 s,@CPPFLAGS@,$CPPFLAGS,;t t
4181 s,@ac_ct_CC@,$ac_ct_CC,;t t
4182 s,@EXEEXT@,$EXEEXT,;t t
4183 s,@OBJEXT@,$OBJEXT,;t t
4184 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4185 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4186 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4188 s,@EGREP@,$EGREP,;t t
4189 s,@bfd_include_dir@,$bfd_include_dir,;t t
4190 s,@binutils_include_dir@,$binutils_include_dir,;t t
4191 s,@got_check@,$got_check,;t t
4192 s,@LIBOBJS@,$LIBOBJS,;t t
4193 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4198 cat >>$CONFIG_STATUS <<\_ACEOF
4199 # Split the substitutions into bite-sized pieces for seds with
4200 # small command number limits, like on Digital OSF/1 and HP-UX.
4202 ac_sed_frag=1 # Number of current file.
4203 ac_beg=1 # First line for current file.
4204 ac_end=$ac_max_sed_lines # Line after last line for current file.
4207 while $ac_more_lines; do
4208 if test $ac_beg -gt 1; then
4209 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4211 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4213 if test ! -s $tmp/subs.frag; then
4216 # The purpose of the label and of the branching condition is to
4217 # speed up the sed processing (if there are no `@' at all, there
4218 # is no need to browse any of the substitutions).
4219 # These are the two extra sed commands mentioned above.
4221 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4222 if test -z "$ac_sed_cmds"; then
4223 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4225 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4227 ac_sed_frag=`expr $ac_sed_frag + 1`
4229 ac_end=`expr $ac_end + $ac_max_sed_lines`
4232 if test -z "$ac_sed_cmds"; then
4235 fi # test -n "$CONFIG_FILES"
4238 cat >>$CONFIG_STATUS <<\_ACEOF
4239 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4240 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4242 - | *:- | *:-:* ) # input from stdin
4244 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4245 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4246 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4247 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4248 * ) ac_file_in=$ac_file.in ;;
4251 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4252 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4253 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4254 X"$ac_file" : 'X\(//\)[^/]' \| \
4255 X"$ac_file" : 'X\(//\)$' \| \
4256 X"$ac_file" : 'X\(/\)' \| \
4257 . : '\(.\)' 2>/dev/null ||
4259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4260 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4261 /^X\(\/\/\)$/{ s//\1/; q; }
4262 /^X\(\/\).*/{ s//\1/; q; }
4264 { if $as_mkdir_p; then
4269 while test ! -d "$as_dir"; do
4270 as_dirs="$as_dir $as_dirs"
4271 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4272 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4273 X"$as_dir" : 'X\(//\)[^/]' \| \
4274 X"$as_dir" : 'X\(//\)$' \| \
4275 X"$as_dir" : 'X\(/\)' \| \
4276 . : '\(.\)' 2>/dev/null ||
4278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4279 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4280 /^X\(\/\/\)$/{ s//\1/; q; }
4281 /^X\(\/\).*/{ s//\1/; q; }
4284 test ! -n "$as_dirs" || mkdir $as_dirs
4285 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4286 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4287 { (exit 1); exit 1; }; }; }
4291 if test "$ac_dir" != .; then
4292 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4293 # A "../" for each directory in $ac_dir_suffix.
4294 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4296 ac_dir_suffix= ac_top_builddir=
4300 .) # No --srcdir option. We are building in place.
4302 if test -z "$ac_top_builddir"; then
4305 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4307 [\\/]* | ?:[\\/]* ) # Absolute path.
4308 ac_srcdir=$srcdir$ac_dir_suffix;
4309 ac_top_srcdir=$srcdir ;;
4311 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4312 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4314 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4316 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
4317 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
4318 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
4319 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
4323 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4324 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4327 if test x"$ac_file" != x-; then
4328 { echo "$as_me:$LINENO: creating $ac_file" >&5
4329 echo "$as_me: creating $ac_file" >&6;}
4332 # Let's still pretend it is `configure' which instantiates (i.e., don't
4333 # use $as_me), people would be surprised to read:
4334 # /* config.h. Generated by config.status. */
4335 if test x"$ac_file" = x-; then
4338 configure_input="$ac_file. "
4340 configure_input=$configure_input"Generated from `echo $ac_file_in |
4341 sed 's,.*/,,'` by configure."
4343 # First look for the input files in the build tree, otherwise in the
4345 ac_file_inputs=`IFS=:
4346 for f in $ac_file_in; do
4348 -) echo $tmp/stdin ;;
4350 # Absolute (can't be DOS-style, as IFS=:)
4351 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4352 echo "$as_me: error: cannot find input file: $f" >&2;}
4353 { (exit 1); exit 1; }; }
4356 if test -f "$f"; then
4359 elif test -f "$srcdir/$f"; then
4364 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4365 echo "$as_me: error: cannot find input file: $f" >&2;}
4366 { (exit 1); exit 1; }; }
4369 done` || { (exit 1); exit 1; }
4371 cat >>$CONFIG_STATUS <<_ACEOF
4375 cat >>$CONFIG_STATUS <<\_ACEOF
4377 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4378 s,@configure_input@,$configure_input,;t t
4379 s,@srcdir@,$ac_srcdir,;t t
4380 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4381 s,@top_srcdir@,$ac_top_srcdir,;t t
4382 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4383 s,@builddir@,$ac_builddir,;t t
4384 s,@abs_builddir@,$ac_abs_builddir,;t t
4385 s,@top_builddir@,$ac_top_builddir,;t t
4386 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4387 s,@INSTALL@,$ac_INSTALL,;t t
4388 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4390 if test x"$ac_file" != x-; then
4391 mv $tmp/out $ac_file
4400 cat >>$CONFIG_STATUS <<\_ACEOF
4402 { (exit 0); exit 0; }
4404 chmod +x $CONFIG_STATUS
4405 ac_clean_files=$ac_clean_files_save
4408 # configure is writing to config.log, and then calls config.status.
4409 # config.status does its own redirection, appending to config.log.
4410 # Unfortunately, on DOS this fails, as config.log is still kept open
4411 # by configure, so config.status won't be able to write to it; its
4412 # output is simply discarded. So we exec the FD to /dev/null,
4413 # effectively closing config.log, so it can be properly (re)opened and
4414 # appended to by config.status. When coming back to configure, we
4415 # need to make the FD available again.
4416 if test "$no_create" != yes; then
4418 ac_config_status_args=
4419 test "$silent" = yes &&
4420 ac_config_status_args="$ac_config_status_args --quiet"
4422 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4424 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4425 # would make configure fail if this is the last instruction.
4426 $ac_cs_success || { (exit 1); exit 1; }