2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="elf2flt.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CPP EGREP bfd_include_dir binutils_include_dir binutils_ldscript_dir got_check emit_relocs LIBOBJS LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --build=BUILD configure for building on BUILD [guessed]
836 --host=HOST cross-compile to build programs to run on HOST [BUILD]
837 --target=TARGET configure for building compilers for TARGET [HOST]
841 if test -n "$ac_init_help"; then
846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
848 --disable-got-check - disable check for GOT (needed on H8)
849 --disable-emit-relocs - don't use the --emit-relocs (-q) linker option
852 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
853 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
854 --with-libbfd=<file> path to libbfd.a library to use
855 --with-libiberty=<file> path to libiberty.a library to use
856 --with-bfd-include-dir=<dir> include path for correct bfd.h
857 --with-binutils-include-dir=<dir> include path for binutils headers
858 --with-binutils-ldscript-dir=<dir> path to install elf2flt.ld
860 Some influential environment variables:
861 CC C compiler command
862 CFLAGS C compiler flags
863 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
864 nonstandard directory <lib dir>
865 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
866 headers in a nonstandard directory <include dir>
869 Use these variables to override the choices made by `configure' or to help
870 it to find libraries and programs with nonstandard names/locations.
875 if test "$ac_init_help" = "recursive"; then
876 # If there are subdirs, report their specific --help.
878 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
879 test -d $ac_dir || continue
882 if test "$ac_dir" != .; then
883 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
884 # A "../" for each directory in $ac_dir_suffix.
885 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
887 ac_dir_suffix= ac_top_builddir=
891 .) # No --srcdir option. We are building in place.
893 if test -z "$ac_top_builddir"; then
896 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
898 [\\/]* | ?:[\\/]* ) # Absolute path.
899 ac_srcdir=$srcdir$ac_dir_suffix;
900 ac_top_srcdir=$srcdir ;;
902 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
903 ac_top_srcdir=$ac_top_builddir$srcdir ;;
906 # Do not use `cd foo && pwd` to compute absolute paths, because
907 # the directories may not exist.
909 .) ac_abs_builddir="$ac_dir";;
912 .) ac_abs_builddir=`pwd`;;
913 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
914 *) ac_abs_builddir=`pwd`/"$ac_dir";;
917 case $ac_abs_builddir in
918 .) ac_abs_top_builddir=${ac_top_builddir}.;;
920 case ${ac_top_builddir}. in
921 .) ac_abs_top_builddir=$ac_abs_builddir;;
922 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
923 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
926 case $ac_abs_builddir in
927 .) ac_abs_srcdir=$ac_srcdir;;
930 .) ac_abs_srcdir=$ac_abs_builddir;;
931 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
932 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
935 case $ac_abs_builddir in
936 .) ac_abs_top_srcdir=$ac_top_srcdir;;
938 case $ac_top_srcdir in
939 .) ac_abs_top_srcdir=$ac_abs_builddir;;
940 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
941 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
946 # Check for guested configure; otherwise get Cygnus style configure.
947 if test -f $ac_srcdir/configure.gnu; then
949 $SHELL $ac_srcdir/configure.gnu --help=recursive
950 elif test -f $ac_srcdir/configure; then
952 $SHELL $ac_srcdir/configure --help=recursive
953 elif test -f $ac_srcdir/configure.ac ||
954 test -f $ac_srcdir/configure.in; then
958 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
964 test -n "$ac_init_help" && exit 0
965 if $ac_init_version; then
968 Copyright (C) 2003 Free Software Foundation, Inc.
969 This configure script is free software; the Free Software Foundation
970 gives unlimited permission to copy, distribute and modify it.
976 This file contains any messages produced by compilers while
977 running configure, to aid debugging if configure makes a mistake.
979 It was created by $as_me, which was
980 generated by GNU Autoconf 2.59. Invocation command line was
991 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
992 uname -m = `(uname -m) 2>/dev/null || echo unknown`
993 uname -r = `(uname -r) 2>/dev/null || echo unknown`
994 uname -s = `(uname -s) 2>/dev/null || echo unknown`
995 uname -v = `(uname -v) 2>/dev/null || echo unknown`
997 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
998 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1000 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1001 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1002 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1003 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1004 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1005 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1006 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1014 test -z "$as_dir" && as_dir=.
1015 echo "PATH: $as_dir"
1030 # Keep a trace of the command line.
1031 # Strip out --no-create and --no-recursion so they do not pile up.
1032 # Strip out --silent because we don't want to record it for future runs.
1033 # Also quote any args containing shell meta-characters.
1034 # Make two passes to allow for proper duplicate-argument suppression.
1039 ac_must_keep_next=false
1045 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1047 | -silent | --silent | --silen | --sile | --sil)
1049 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1050 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1053 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1055 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1056 if test $ac_must_keep_next = true; then
1057 ac_must_keep_next=false # Got value, back to normal.
1060 *=* | --config-cache | -C | -disable-* | --disable-* \
1061 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1062 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1063 | -with-* | --with-* | -without-* | --without-* | --x)
1064 case "$ac_configure_args0 " in
1065 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1068 -* ) ac_must_keep_next=true ;;
1071 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1072 # Get rid of the leading space.
1078 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1079 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1081 # When interrupted or exit'd, cleanup temporary files, and complete
1082 # config.log. We remove comments because anyway the quotes in there
1083 # would cause problems or look ugly.
1084 # WARNING: Be sure not to use single quotes in there, as some shells,
1085 # such as our DU 5.0 friend, will then `close' the trap.
1086 trap 'exit_status=$?
1087 # Save into config.log some information that might help in debugging.
1092 ## ---------------- ##
1093 ## Cache variables. ##
1094 ## ---------------- ##
1097 # The following way of writing the cache mishandles newlines in values,
1100 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1103 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1104 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1108 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1115 ## ----------------- ##
1116 ## Output variables. ##
1117 ## ----------------- ##
1120 for ac_var in $ac_subst_vars
1122 eval ac_val=$`echo $ac_var`
1123 echo "$ac_var='"'"'$ac_val'"'"'"
1127 if test -n "$ac_subst_files"; then
1134 for ac_var in $ac_subst_files
1136 eval ac_val=$`echo $ac_var`
1137 echo "$ac_var='"'"'$ac_val'"'"'"
1142 if test -s confdefs.h; then
1149 sed "/^$/d" confdefs.h | sort
1152 test "$ac_signal" != 0 &&
1153 echo "$as_me: caught signal $ac_signal"
1154 echo "$as_me: exit $exit_status"
1156 rm -f core *.core &&
1157 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1160 for ac_signal in 1 2 13 15; do
1161 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1165 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1166 rm -rf conftest* confdefs.h
1167 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1170 # Predefined preprocessor variables.
1172 cat >>confdefs.h <<_ACEOF
1173 #define PACKAGE_NAME "$PACKAGE_NAME"
1177 cat >>confdefs.h <<_ACEOF
1178 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1182 cat >>confdefs.h <<_ACEOF
1183 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_STRING "$PACKAGE_STRING"
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1197 # Let the site file select an alternate cache file if it wants to.
1198 # Prefer explicitly selected file to automatically selected ones.
1199 if test -z "$CONFIG_SITE"; then
1200 if test "x$prefix" != xNONE; then
1201 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1203 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1206 for ac_site_file in $CONFIG_SITE; do
1207 if test -r "$ac_site_file"; then
1208 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1209 echo "$as_me: loading site script $ac_site_file" >&6;}
1210 sed 's/^/| /' "$ac_site_file" >&5
1215 if test -r "$cache_file"; then
1216 # Some versions of bash will fail to source /dev/null (special
1217 # files actually), so we avoid doing that.
1218 if test -f "$cache_file"; then
1219 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1220 echo "$as_me: loading cache $cache_file" >&6;}
1222 [\\/]* | ?:[\\/]* ) . $cache_file;;
1223 *) . ./$cache_file;;
1227 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1228 echo "$as_me: creating cache $cache_file" >&6;}
1232 # Check that the precious variables saved in the cache have kept the same
1234 ac_cache_corrupted=false
1235 for ac_var in `(set) 2>&1 |
1236 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1237 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1238 eval ac_new_set=\$ac_env_${ac_var}_set
1239 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1240 eval ac_new_val="\$ac_env_${ac_var}_value"
1241 case $ac_old_set,$ac_new_set in
1243 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1244 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1245 ac_cache_corrupted=: ;;
1247 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1248 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1249 ac_cache_corrupted=: ;;
1252 if test "x$ac_old_val" != "x$ac_new_val"; then
1253 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1254 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1255 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1256 echo "$as_me: former value: $ac_old_val" >&2;}
1257 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1258 echo "$as_me: current value: $ac_new_val" >&2;}
1259 ac_cache_corrupted=:
1262 # Pass precious variables to config.status.
1263 if test "$ac_new_set" = set; then
1265 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1266 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1267 *) ac_arg=$ac_var=$ac_new_val ;;
1269 case " $ac_configure_args " in
1270 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1271 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1275 if $ac_cache_corrupted; then
1276 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1277 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1278 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1279 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1280 { (exit 1); exit 1; }; }
1284 ac_cpp='$CPP $CPPFLAGS'
1285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1309 # Check whether --with-libbfd or --without-libbfd was given.
1310 if test "${with_libbfd+set}" = set; then
1311 withval="$with_libbfd"
1319 # Check whether --with-libiberty or --without-libiberty was given.
1320 if test "${with_libiberty+set}" = set; then
1321 withval="$with_libiberty"
1322 ac_libiberty=$withval
1329 # Check whether --with-bfd-include-dir or --without-bfd-include-dir was given.
1330 if test "${with_bfd_include_dir+set}" = set; then
1331 withval="$with_bfd_include_dir"
1332 ac_bfd_include_dir=$withval
1334 ac_bfd_include_dir=NONE
1339 # Check whether --with-binutils-include-dir or --without-binutils-include-dir was given.
1340 if test "${with_binutils_include_dir+set}" = set; then
1341 withval="$with_binutils_include_dir"
1342 ac_binutils_include_dir=$withval
1344 ac_binutils_include_dir=NONE
1349 # Check whether --with-binutils-ldscript-dir or --without-binutils-ldscript-dir was given.
1350 if test "${with_binutils_ldscript_dir+set}" = set; then
1351 withval="$with_binutils_ldscript_dir"
1352 ac_binutils_ldscript_dir=$withval
1354 ac_binutils_ldscript_dir=NONE
1358 # Check whether --enable-got-check or --disable-got-check was given.
1359 if test "${enable_got_check+set}" = set; then
1360 enableval="$enable_got_check"
1361 got_check=$enableval
1367 # Check whether --enable-emit_relocs or --disable-emit_relocs was given.
1368 if test "${enable_emit_relocs+set}" = set; then
1369 enableval="$enable_emit_relocs"
1370 emit_relocs=$enableval
1377 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1378 if test -f $ac_dir/install-sh; then
1380 ac_install_sh="$ac_aux_dir/install-sh -c"
1382 elif test -f $ac_dir/install.sh; then
1384 ac_install_sh="$ac_aux_dir/install.sh -c"
1386 elif test -f $ac_dir/shtool; then
1388 ac_install_sh="$ac_aux_dir/shtool install -c"
1392 if test -z "$ac_aux_dir"; then
1393 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1394 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1395 { (exit 1); exit 1; }; }
1397 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1398 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1399 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1401 # Make sure we can run config.sub.
1402 $ac_config_sub sun4 >/dev/null 2>&1 ||
1403 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1404 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1405 { (exit 1); exit 1; }; }
1407 echo "$as_me:$LINENO: checking build system type" >&5
1408 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1409 if test "${ac_cv_build+set}" = set; then
1410 echo $ECHO_N "(cached) $ECHO_C" >&6
1412 ac_cv_build_alias=$build_alias
1413 test -z "$ac_cv_build_alias" &&
1414 ac_cv_build_alias=`$ac_config_guess`
1415 test -z "$ac_cv_build_alias" &&
1416 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1417 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1418 { (exit 1); exit 1; }; }
1419 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1420 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1421 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1422 { (exit 1); exit 1; }; }
1425 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1426 echo "${ECHO_T}$ac_cv_build" >&6
1428 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1429 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1430 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1433 echo "$as_me:$LINENO: checking host system type" >&5
1434 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1435 if test "${ac_cv_host+set}" = set; then
1436 echo $ECHO_N "(cached) $ECHO_C" >&6
1438 ac_cv_host_alias=$host_alias
1439 test -z "$ac_cv_host_alias" &&
1440 ac_cv_host_alias=$ac_cv_build_alias
1441 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1442 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1443 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1444 { (exit 1); exit 1; }; }
1447 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1448 echo "${ECHO_T}$ac_cv_host" >&6
1450 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1451 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1452 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1455 echo "$as_me:$LINENO: checking target system type" >&5
1456 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1457 if test "${ac_cv_target+set}" = set; then
1458 echo $ECHO_N "(cached) $ECHO_C" >&6
1460 ac_cv_target_alias=$target_alias
1461 test "x$ac_cv_target_alias" = "x" &&
1462 ac_cv_target_alias=$ac_cv_host_alias
1463 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1464 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1465 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1466 { (exit 1); exit 1; }; }
1469 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1470 echo "${ECHO_T}$ac_cv_target" >&6
1471 target=$ac_cv_target
1472 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1473 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1474 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1477 # The aliases save the names the user supplied, while $host etc.
1478 # will get canonicalized.
1479 test -n "$target_alias" &&
1480 test "$program_prefix$program_suffix$program_transform_name" = \
1482 program_prefix=${target_alias}-
1485 ac_cpp='$CPP $CPPFLAGS'
1486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1489 if test -n "$ac_tool_prefix"; then
1490 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1491 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1492 echo "$as_me:$LINENO: checking for $ac_word" >&5
1493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1494 if test "${ac_cv_prog_CC+set}" = set; then
1495 echo $ECHO_N "(cached) $ECHO_C" >&6
1497 if test -n "$CC"; then
1498 ac_cv_prog_CC="$CC" # Let the user override the test.
1500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1504 test -z "$as_dir" && as_dir=.
1505 for ac_exec_ext in '' $ac_executable_extensions; do
1506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1507 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1517 if test -n "$CC"; then
1518 echo "$as_me:$LINENO: result: $CC" >&5
1519 echo "${ECHO_T}$CC" >&6
1521 echo "$as_me:$LINENO: result: no" >&5
1522 echo "${ECHO_T}no" >&6
1526 if test -z "$ac_cv_prog_CC"; then
1528 # Extract the first word of "gcc", so it can be a program name with args.
1529 set dummy gcc; ac_word=$2
1530 echo "$as_me:$LINENO: checking for $ac_word" >&5
1531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1532 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1533 echo $ECHO_N "(cached) $ECHO_C" >&6
1535 if test -n "$ac_ct_CC"; then
1536 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1542 test -z "$as_dir" && as_dir=.
1543 for ac_exec_ext in '' $ac_executable_extensions; do
1544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1545 ac_cv_prog_ac_ct_CC="gcc"
1546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1554 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1555 if test -n "$ac_ct_CC"; then
1556 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1557 echo "${ECHO_T}$ac_ct_CC" >&6
1559 echo "$as_me:$LINENO: result: no" >&5
1560 echo "${ECHO_T}no" >&6
1568 if test -z "$CC"; then
1569 if test -n "$ac_tool_prefix"; then
1570 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1571 set dummy ${ac_tool_prefix}cc; ac_word=$2
1572 echo "$as_me:$LINENO: checking for $ac_word" >&5
1573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1574 if test "${ac_cv_prog_CC+set}" = set; then
1575 echo $ECHO_N "(cached) $ECHO_C" >&6
1577 if test -n "$CC"; then
1578 ac_cv_prog_CC="$CC" # Let the user override the test.
1580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1584 test -z "$as_dir" && as_dir=.
1585 for ac_exec_ext in '' $ac_executable_extensions; do
1586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1587 ac_cv_prog_CC="${ac_tool_prefix}cc"
1588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1597 if test -n "$CC"; then
1598 echo "$as_me:$LINENO: result: $CC" >&5
1599 echo "${ECHO_T}$CC" >&6
1601 echo "$as_me:$LINENO: result: no" >&5
1602 echo "${ECHO_T}no" >&6
1606 if test -z "$ac_cv_prog_CC"; then
1608 # Extract the first word of "cc", so it can be a program name with args.
1609 set dummy cc; ac_word=$2
1610 echo "$as_me:$LINENO: checking for $ac_word" >&5
1611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1612 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1613 echo $ECHO_N "(cached) $ECHO_C" >&6
1615 if test -n "$ac_ct_CC"; then
1616 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1622 test -z "$as_dir" && as_dir=.
1623 for ac_exec_ext in '' $ac_executable_extensions; do
1624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1625 ac_cv_prog_ac_ct_CC="cc"
1626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1634 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1635 if test -n "$ac_ct_CC"; then
1636 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1637 echo "${ECHO_T}$ac_ct_CC" >&6
1639 echo "$as_me:$LINENO: result: no" >&5
1640 echo "${ECHO_T}no" >&6
1649 if test -z "$CC"; then
1650 # Extract the first word of "cc", so it can be a program name with args.
1651 set dummy cc; ac_word=$2
1652 echo "$as_me:$LINENO: checking for $ac_word" >&5
1653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1654 if test "${ac_cv_prog_CC+set}" = set; then
1655 echo $ECHO_N "(cached) $ECHO_C" >&6
1657 if test -n "$CC"; then
1658 ac_cv_prog_CC="$CC" # Let the user override the test.
1661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1665 test -z "$as_dir" && as_dir=.
1666 for ac_exec_ext in '' $ac_executable_extensions; do
1667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1668 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1669 ac_prog_rejected=yes
1673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1679 if test $ac_prog_rejected = yes; then
1680 # We found a bogon in the path, so make sure we never use it.
1681 set dummy $ac_cv_prog_CC
1683 if test $# != 0; then
1684 # We chose a different compiler from the bogus one.
1685 # However, it has the same basename, so the bogon will be chosen
1686 # first if we set CC to just the basename; use the full file name.
1688 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1694 if test -n "$CC"; then
1695 echo "$as_me:$LINENO: result: $CC" >&5
1696 echo "${ECHO_T}$CC" >&6
1698 echo "$as_me:$LINENO: result: no" >&5
1699 echo "${ECHO_T}no" >&6
1703 if test -z "$CC"; then
1704 if test -n "$ac_tool_prefix"; then
1707 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1708 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1709 echo "$as_me:$LINENO: checking for $ac_word" >&5
1710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1711 if test "${ac_cv_prog_CC+set}" = set; then
1712 echo $ECHO_N "(cached) $ECHO_C" >&6
1714 if test -n "$CC"; then
1715 ac_cv_prog_CC="$CC" # Let the user override the test.
1717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1721 test -z "$as_dir" && as_dir=.
1722 for ac_exec_ext in '' $ac_executable_extensions; do
1723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1724 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1734 if test -n "$CC"; then
1735 echo "$as_me:$LINENO: result: $CC" >&5
1736 echo "${ECHO_T}$CC" >&6
1738 echo "$as_me:$LINENO: result: no" >&5
1739 echo "${ECHO_T}no" >&6
1742 test -n "$CC" && break
1745 if test -z "$CC"; then
1749 # Extract the first word of "$ac_prog", so it can be a program name with args.
1750 set dummy $ac_prog; ac_word=$2
1751 echo "$as_me:$LINENO: checking for $ac_word" >&5
1752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1753 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1754 echo $ECHO_N "(cached) $ECHO_C" >&6
1756 if test -n "$ac_ct_CC"; then
1757 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1763 test -z "$as_dir" && as_dir=.
1764 for ac_exec_ext in '' $ac_executable_extensions; do
1765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1766 ac_cv_prog_ac_ct_CC="$ac_prog"
1767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1775 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1776 if test -n "$ac_ct_CC"; then
1777 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1778 echo "${ECHO_T}$ac_ct_CC" >&6
1780 echo "$as_me:$LINENO: result: no" >&5
1781 echo "${ECHO_T}no" >&6
1784 test -n "$ac_ct_CC" && break
1793 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1794 See \`config.log' for more details." >&5
1795 echo "$as_me: error: no acceptable C compiler found in \$PATH
1796 See \`config.log' for more details." >&2;}
1797 { (exit 1); exit 1; }; }
1799 # Provide some information about the compiler.
1800 echo "$as_me:$LINENO:" \
1801 "checking for C compiler version" >&5
1802 ac_compiler=`set X $ac_compile; echo $2`
1803 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1804 (eval $ac_compiler --version </dev/null >&5) 2>&5
1806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1807 (exit $ac_status); }
1808 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1809 (eval $ac_compiler -v </dev/null >&5) 2>&5
1811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1812 (exit $ac_status); }
1813 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1814 (eval $ac_compiler -V </dev/null >&5) 2>&5
1816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1817 (exit $ac_status); }
1819 cat >conftest.$ac_ext <<_ACEOF
1822 cat confdefs.h >>conftest.$ac_ext
1823 cat >>conftest.$ac_ext <<_ACEOF
1824 /* end confdefs.h. */
1834 ac_clean_files_save=$ac_clean_files
1835 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1836 # Try to create an executable without -o first, disregard a.out.
1837 # It will help us diagnose broken compilers, and finding out an intuition
1839 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1840 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1841 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1842 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1843 (eval $ac_link_default) 2>&5
1845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846 (exit $ac_status); }; then
1847 # Find the output, starting from the most likely. This scheme is
1848 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1851 # Be careful to initialize this variable, since it used to be cached.
1852 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1854 # b.out is created by i960 compilers.
1855 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1857 test -f "$ac_file" || continue
1859 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1862 # This is the source file.
1865 # We found the default executable, but exeext='' is most
1869 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1870 # FIXME: I believe we export ac_cv_exeext for Libtool,
1871 # but it would be cool to find out if it's true. Does anybody
1872 # maintain Libtool? --akim.
1880 echo "$as_me: failed program was:" >&5
1881 sed 's/^/| /' conftest.$ac_ext >&5
1883 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1884 See \`config.log' for more details." >&5
1885 echo "$as_me: error: C compiler cannot create executables
1886 See \`config.log' for more details." >&2;}
1887 { (exit 77); exit 77; }; }
1890 ac_exeext=$ac_cv_exeext
1891 echo "$as_me:$LINENO: result: $ac_file" >&5
1892 echo "${ECHO_T}$ac_file" >&6
1894 # Check the compiler produces executables we can run. If not, either
1895 # the compiler is broken, or we cross compile.
1896 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1897 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1898 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1899 # If not cross compiling, check that we can run a simple program.
1900 if test "$cross_compiling" != yes; then
1901 if { ac_try='./$ac_file'
1902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1906 (exit $ac_status); }; }; then
1909 if test "$cross_compiling" = maybe; then
1912 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1913 If you meant to cross compile, use \`--host'.
1914 See \`config.log' for more details." >&5
1915 echo "$as_me: error: cannot run C compiled programs.
1916 If you meant to cross compile, use \`--host'.
1917 See \`config.log' for more details." >&2;}
1918 { (exit 1); exit 1; }; }
1922 echo "$as_me:$LINENO: result: yes" >&5
1923 echo "${ECHO_T}yes" >&6
1925 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1926 ac_clean_files=$ac_clean_files_save
1927 # Check the compiler produces executables we can run. If not, either
1928 # the compiler is broken, or we cross compile.
1929 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1930 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1931 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1932 echo "${ECHO_T}$cross_compiling" >&6
1934 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1935 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1937 (eval $ac_link) 2>&5
1939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940 (exit $ac_status); }; then
1941 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1942 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1943 # work properly (i.e., refer to `conftest.exe'), while it won't with
1945 for ac_file in conftest.exe conftest conftest.*; do
1946 test -f "$ac_file" || continue
1948 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1949 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1956 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1957 See \`config.log' for more details." >&5
1958 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1959 See \`config.log' for more details." >&2;}
1960 { (exit 1); exit 1; }; }
1963 rm -f conftest$ac_cv_exeext
1964 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1965 echo "${ECHO_T}$ac_cv_exeext" >&6
1967 rm -f conftest.$ac_ext
1968 EXEEXT=$ac_cv_exeext
1970 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1971 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1972 if test "${ac_cv_objext+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1975 cat >conftest.$ac_ext <<_ACEOF
1978 cat confdefs.h >>conftest.$ac_ext
1979 cat >>conftest.$ac_ext <<_ACEOF
1980 /* end confdefs.h. */
1990 rm -f conftest.o conftest.obj
1991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1992 (eval $ac_compile) 2>&5
1994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995 (exit $ac_status); }; then
1996 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1998 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1999 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2004 echo "$as_me: failed program was:" >&5
2005 sed 's/^/| /' conftest.$ac_ext >&5
2007 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2008 See \`config.log' for more details." >&5
2009 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2010 See \`config.log' for more details." >&2;}
2011 { (exit 1); exit 1; }; }
2014 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2016 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2017 echo "${ECHO_T}$ac_cv_objext" >&6
2018 OBJEXT=$ac_cv_objext
2020 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2021 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2022 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2023 echo $ECHO_N "(cached) $ECHO_C" >&6
2025 cat >conftest.$ac_ext <<_ACEOF
2028 cat confdefs.h >>conftest.$ac_ext
2029 cat >>conftest.$ac_ext <<_ACEOF
2030 /* end confdefs.h. */
2043 rm -f conftest.$ac_objext
2044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2045 (eval $ac_compile) 2>conftest.er1
2047 grep -v '^ *+' conftest.er1 >conftest.err
2049 cat conftest.err >&5
2050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051 (exit $ac_status); } &&
2052 { ac_try='test -z "$ac_c_werror_flag"
2053 || test ! -s conftest.err'
2054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); }; } &&
2059 { ac_try='test -s conftest.$ac_objext'
2060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064 (exit $ac_status); }; }; then
2067 echo "$as_me: failed program was:" >&5
2068 sed 's/^/| /' conftest.$ac_ext >&5
2072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2073 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2076 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2077 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2078 GCC=`test $ac_compiler_gnu = yes && echo yes`
2079 ac_test_CFLAGS=${CFLAGS+set}
2080 ac_save_CFLAGS=$CFLAGS
2082 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2083 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2084 if test "${ac_cv_prog_cc_g+set}" = set; then
2085 echo $ECHO_N "(cached) $ECHO_C" >&6
2087 cat >conftest.$ac_ext <<_ACEOF
2090 cat confdefs.h >>conftest.$ac_ext
2091 cat >>conftest.$ac_ext <<_ACEOF
2092 /* end confdefs.h. */
2102 rm -f conftest.$ac_objext
2103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2104 (eval $ac_compile) 2>conftest.er1
2106 grep -v '^ *+' conftest.er1 >conftest.err
2108 cat conftest.err >&5
2109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110 (exit $ac_status); } &&
2111 { ac_try='test -z "$ac_c_werror_flag"
2112 || test ! -s conftest.err'
2113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); }; } &&
2118 { ac_try='test -s conftest.$ac_objext'
2119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123 (exit $ac_status); }; }; then
2126 echo "$as_me: failed program was:" >&5
2127 sed 's/^/| /' conftest.$ac_ext >&5
2131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2133 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2134 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2135 if test "$ac_test_CFLAGS" = set; then
2136 CFLAGS=$ac_save_CFLAGS
2137 elif test $ac_cv_prog_cc_g = yes; then
2138 if test "$GCC" = yes; then
2144 if test "$GCC" = yes; then
2150 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2151 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2152 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2153 echo $ECHO_N "(cached) $ECHO_C" >&6
2155 ac_cv_prog_cc_stdc=no
2157 cat >conftest.$ac_ext <<_ACEOF
2160 cat confdefs.h >>conftest.$ac_ext
2161 cat >>conftest.$ac_ext <<_ACEOF
2162 /* end confdefs.h. */
2165 #include <sys/types.h>
2166 #include <sys/stat.h>
2167 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2168 struct buf { int x; };
2169 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2170 static char *e (p, i)
2176 static char *f (char * (*g) (char **, int), char **p, ...)
2181 s = g (p, va_arg (v,int));
2186 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2187 function prototypes and stuff, but not '\xHH' hex character constants.
2188 These don't provoke an error unfortunately, instead are silently treated
2189 as 'x'. The following induces an error, until -std1 is added to get
2190 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2191 array size at least. It's necessary to write '\x00'==0 to get something
2192 that's true only with -std1. */
2193 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2195 int test (int i, double x);
2196 struct s1 {int (*f) (int a);};
2197 struct s2 {int (*f) (double a);};
2198 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2204 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2209 # Don't try gcc -ansi; that turns off useful extensions and
2210 # breaks some systems' header files.
2211 # AIX -qlanglvl=ansi
2212 # Ultrix and OSF/1 -std1
2213 # HP-UX 10.20 and later -Ae
2214 # HP-UX older versions -Aa -D_HPUX_SOURCE
2215 # SVR4 -Xc -D__EXTENSIONS__
2216 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2218 CC="$ac_save_CC $ac_arg"
2219 rm -f conftest.$ac_objext
2220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2221 (eval $ac_compile) 2>conftest.er1
2223 grep -v '^ *+' conftest.er1 >conftest.err
2225 cat conftest.err >&5
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); } &&
2228 { ac_try='test -z "$ac_c_werror_flag"
2229 || test ! -s conftest.err'
2230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }; } &&
2235 { ac_try='test -s conftest.$ac_objext'
2236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); }; }; then
2241 ac_cv_prog_cc_stdc=$ac_arg
2244 echo "$as_me: failed program was:" >&5
2245 sed 's/^/| /' conftest.$ac_ext >&5
2248 rm -f conftest.err conftest.$ac_objext
2250 rm -f conftest.$ac_ext conftest.$ac_objext
2255 case "x$ac_cv_prog_cc_stdc" in
2257 echo "$as_me:$LINENO: result: none needed" >&5
2258 echo "${ECHO_T}none needed" >&6 ;;
2260 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2261 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2262 CC="$CC $ac_cv_prog_cc_stdc" ;;
2265 # Some people use a C++ compiler to compile C. Since we use `exit',
2266 # in C++ we need to declare it. In case someone uses the same compiler
2267 # for both compiling C and C++ we need to have the C++ compiler decide
2268 # the declaration of exit, since it's the most demanding environment.
2269 cat >conftest.$ac_ext <<_ACEOF
2274 rm -f conftest.$ac_objext
2275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2276 (eval $ac_compile) 2>conftest.er1
2278 grep -v '^ *+' conftest.er1 >conftest.err
2280 cat conftest.err >&5
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); } &&
2283 { ac_try='test -z "$ac_c_werror_flag"
2284 || test ! -s conftest.err'
2285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289 (exit $ac_status); }; } &&
2290 { ac_try='test -s conftest.$ac_objext'
2291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295 (exit $ac_status); }; }; then
2296 for ac_declaration in \
2298 'extern "C" void std::exit (int) throw (); using std::exit;' \
2299 'extern "C" void std::exit (int); using std::exit;' \
2300 'extern "C" void exit (int) throw ();' \
2301 'extern "C" void exit (int);' \
2304 cat >conftest.$ac_ext <<_ACEOF
2307 cat confdefs.h >>conftest.$ac_ext
2308 cat >>conftest.$ac_ext <<_ACEOF
2309 /* end confdefs.h. */
2320 rm -f conftest.$ac_objext
2321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322 (eval $ac_compile) 2>conftest.er1
2324 grep -v '^ *+' conftest.er1 >conftest.err
2326 cat conftest.err >&5
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); } &&
2329 { ac_try='test -z "$ac_c_werror_flag"
2330 || test ! -s conftest.err'
2331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); }; } &&
2336 { ac_try='test -s conftest.$ac_objext'
2337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341 (exit $ac_status); }; }; then
2344 echo "$as_me: failed program was:" >&5
2345 sed 's/^/| /' conftest.$ac_ext >&5
2349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2350 cat >conftest.$ac_ext <<_ACEOF
2353 cat confdefs.h >>conftest.$ac_ext
2354 cat >>conftest.$ac_ext <<_ACEOF
2355 /* end confdefs.h. */
2365 rm -f conftest.$ac_objext
2366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2367 (eval $ac_compile) 2>conftest.er1
2369 grep -v '^ *+' conftest.er1 >conftest.err
2371 cat conftest.err >&5
2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373 (exit $ac_status); } &&
2374 { ac_try='test -z "$ac_c_werror_flag"
2375 || test ! -s conftest.err'
2376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); }; } &&
2381 { ac_try='test -s conftest.$ac_objext'
2382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); }; }; then
2389 echo "$as_me: failed program was:" >&5
2390 sed 's/^/| /' conftest.$ac_ext >&5
2393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2396 if test -n "$ac_declaration"; then
2397 echo '#ifdef __cplusplus' >>confdefs.h
2398 echo $ac_declaration >>confdefs.h
2399 echo '#endif' >>confdefs.h
2403 echo "$as_me: failed program was:" >&5
2404 sed 's/^/| /' conftest.$ac_ext >&5
2407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2409 ac_cpp='$CPP $CPPFLAGS'
2410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2414 # Find a good install program. We prefer a C program (faster),
2415 # so one script is as good as another. But avoid the broken or
2416 # incompatible versions:
2417 # SysV /etc/install, /usr/sbin/install
2418 # SunOS /usr/etc/install
2419 # IRIX /sbin/install
2421 # AmigaOS /C/install, which installs bootblocks on floppy discs
2422 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2423 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2424 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2425 # OS/2's system install, which has a completely different semantic
2426 # ./install, which can be erroneously created by make from ./install.sh.
2427 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2428 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2429 if test -z "$INSTALL"; then
2430 if test "${ac_cv_path_install+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437 test -z "$as_dir" && as_dir=.
2438 # Account for people who put trailing slashes in PATH elements.
2440 ./ | .// | /cC/* | \
2441 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2442 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2445 # OSF1 and SCO ODT 3.0 have their own names for install.
2446 # Don't use installbsd from OSF since it installs stuff as root
2448 for ac_prog in ginstall scoinst install; do
2449 for ac_exec_ext in '' $ac_executable_extensions; do
2450 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2451 if test $ac_prog = install &&
2452 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2453 # AIX install. It has an incompatible calling convention.
2455 elif test $ac_prog = install &&
2456 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2457 # program-specific install script used by HP pwplus--don't use.
2460 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2472 if test "${ac_cv_path_install+set}" = set; then
2473 INSTALL=$ac_cv_path_install
2475 # As a last resort, use the slow shell script. We don't cache a
2476 # path for INSTALL within a source directory, because that will
2477 # break other packages using the cache if that directory is
2478 # removed, or if the path is relative.
2479 INSTALL=$ac_install_sh
2482 echo "$as_me:$LINENO: result: $INSTALL" >&5
2483 echo "${ECHO_T}$INSTALL" >&6
2485 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2486 # It thinks the first close brace ends the variable substitution.
2487 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2489 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2491 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2494 if test "$ac_libiberty" = "NONE"; then
2497 echo "$as_me:$LINENO: checking for objalloc_create in -liberty" >&5
2498 echo $ECHO_N "checking for objalloc_create in -liberty... $ECHO_C" >&6
2499 if test "${ac_cv_lib_iberty_objalloc_create+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2502 ac_check_lib_save_LIBS=$LIBS
2503 LIBS="-liberty $LIBS"
2504 cat >conftest.$ac_ext <<_ACEOF
2507 cat confdefs.h >>conftest.$ac_ext
2508 cat >>conftest.$ac_ext <<_ACEOF
2509 /* end confdefs.h. */
2511 /* Override any gcc2 internal prototype to avoid an error. */
2515 /* We use char because int might match the return type of a gcc2
2516 builtin and then its argument prototype would still apply. */
2517 char objalloc_create ();
2526 rm -f conftest.$ac_objext conftest$ac_exeext
2527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2528 (eval $ac_link) 2>conftest.er1
2530 grep -v '^ *+' conftest.er1 >conftest.err
2532 cat conftest.err >&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); } &&
2535 { ac_try='test -z "$ac_c_werror_flag"
2536 || test ! -s conftest.err'
2537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; } &&
2542 { ac_try='test -s conftest$ac_exeext'
2543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }; }; then
2548 ac_cv_lib_iberty_objalloc_create=yes
2550 echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2553 ac_cv_lib_iberty_objalloc_create=no
2555 rm -f conftest.err conftest.$ac_objext \
2556 conftest$ac_exeext conftest.$ac_ext
2557 LIBS=$ac_check_lib_save_LIBS
2559 echo "$as_me:$LINENO: result: $ac_cv_lib_iberty_objalloc_create" >&5
2560 echo "${ECHO_T}$ac_cv_lib_iberty_objalloc_create" >&6
2561 if test $ac_cv_lib_iberty_objalloc_create = yes; then
2562 cat >>confdefs.h <<_ACEOF
2563 #define HAVE_LIBIBERTY 1
2566 LIBS="-liberty $LIBS"
2572 LIBS="$ac_libiberty $LIBS"
2574 if test "$ac_libbfd" = "NONE"; then
2576 echo "$as_me:$LINENO: checking for bfd_openr in -lbfd" >&5
2577 echo $ECHO_N "checking for bfd_openr in -lbfd... $ECHO_C" >&6
2578 if test "${ac_cv_lib_bfd_bfd_openr+set}" = set; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
2581 ac_check_lib_save_LIBS=$LIBS
2583 cat >conftest.$ac_ext <<_ACEOF
2586 cat confdefs.h >>conftest.$ac_ext
2587 cat >>conftest.$ac_ext <<_ACEOF
2588 /* end confdefs.h. */
2590 /* Override any gcc2 internal prototype to avoid an error. */
2594 /* We use char because int might match the return type of a gcc2
2595 builtin and then its argument prototype would still apply. */
2605 rm -f conftest.$ac_objext conftest$ac_exeext
2606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2607 (eval $ac_link) 2>conftest.er1
2609 grep -v '^ *+' conftest.er1 >conftest.err
2611 cat conftest.err >&5
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); } &&
2614 { ac_try='test -z "$ac_c_werror_flag"
2615 || test ! -s conftest.err'
2616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; } &&
2621 { ac_try='test -s conftest$ac_exeext'
2622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; }; then
2627 ac_cv_lib_bfd_bfd_openr=yes
2629 echo "$as_me: failed program was:" >&5
2630 sed 's/^/| /' conftest.$ac_ext >&5
2632 ac_cv_lib_bfd_bfd_openr=no
2634 rm -f conftest.err conftest.$ac_objext \
2635 conftest$ac_exeext conftest.$ac_ext
2636 LIBS=$ac_check_lib_save_LIBS
2638 echo "$as_me:$LINENO: result: $ac_cv_lib_bfd_bfd_openr" >&5
2639 echo "${ECHO_T}$ac_cv_lib_bfd_bfd_openr" >&6
2640 if test $ac_cv_lib_bfd_bfd_openr = yes; then
2641 cat >>confdefs.h <<_ACEOF
2642 #define HAVE_LIBBFD 1
2651 LIBS="$ac_libbfd $LIBS"
2655 if test "$ac_bfd_include_dir" != "NONE"; then
2656 bfd_include_dir="-I$ac_bfd_include_dir"
2659 binutils_include_dir=
2660 if test "$ac_binutils_include_dir" != "NONE"; then
2661 binutils_include_dir="-I$ac_binutils_include_dir"
2664 binutils_ldscript_dir=
2665 if test "$ac_binutils_ldscript_dir" = "NONE"; then
2666 ac_binutils_ldscript_dir="\${TOOLDIR}/../${target_alias}/lib"
2668 binutils_ldscript_dir="$ac_binutils_ldscript_dir"
2670 if test "$ac_libbfd" = "NONE" -o "$ac_libiberty" = "NONE" ; then
2672 echo "You need to specify the location of the libfd.a and libiberty.a"
2673 echo "host libraries from the binutils package."
2675 echo "Run configure again specifying these options:"
2677 echo " ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>"
2682 if test "$ac_bfd_include_dir" = "NONE" ; then
2684 echo "You need to specify the location of the bfd.h header from a"
2685 echo "configured/compiled version of the binutils package for your target."
2686 echo "Without this your elf2flt may crash as it will try to use the"
2687 echo "systems bfd.h which may be from a different binutils package."
2689 echo "Run configure again specifying these options:"
2691 echo " ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>"
2697 ac_cpp='$CPP $CPPFLAGS'
2698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2701 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2702 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2703 # On Suns, sometimes $CPP names a directory.
2704 if test -n "$CPP" && test -d "$CPP"; then
2707 if test -z "$CPP"; then
2708 if test "${ac_cv_prog_CPP+set}" = set; then
2709 echo $ECHO_N "(cached) $ECHO_C" >&6
2711 # Double quotes because CPP needs to be expanded
2712 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2715 for ac_c_preproc_warn_flag in '' yes
2717 # Use a header file that comes with gcc, so configuring glibc
2718 # with a fresh cross-compiler works.
2719 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2720 # <limits.h> exists even on freestanding compilers.
2721 # On the NeXT, cc -E runs the code through the compiler's parser,
2722 # not just through cpp. "Syntax error" is here to catch this case.
2723 cat >conftest.$ac_ext <<_ACEOF
2726 cat confdefs.h >>conftest.$ac_ext
2727 cat >>conftest.$ac_ext <<_ACEOF
2728 /* end confdefs.h. */
2730 # include <limits.h>
2732 # include <assert.h>
2736 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2737 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2739 grep -v '^ *+' conftest.er1 >conftest.err
2741 cat conftest.err >&5
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); } >/dev/null; then
2744 if test -s conftest.err; then
2745 ac_cpp_err=$ac_c_preproc_warn_flag
2746 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2753 if test -z "$ac_cpp_err"; then
2756 echo "$as_me: failed program was:" >&5
2757 sed 's/^/| /' conftest.$ac_ext >&5
2759 # Broken: fails on valid input.
2762 rm -f conftest.err conftest.$ac_ext
2764 # OK, works on sane cases. Now check whether non-existent headers
2765 # can be detected and how.
2766 cat >conftest.$ac_ext <<_ACEOF
2769 cat confdefs.h >>conftest.$ac_ext
2770 cat >>conftest.$ac_ext <<_ACEOF
2771 /* end confdefs.h. */
2772 #include <ac_nonexistent.h>
2774 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2775 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2777 grep -v '^ *+' conftest.er1 >conftest.err
2779 cat conftest.err >&5
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); } >/dev/null; then
2782 if test -s conftest.err; then
2783 ac_cpp_err=$ac_c_preproc_warn_flag
2784 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2791 if test -z "$ac_cpp_err"; then
2792 # Broken: success on invalid input.
2795 echo "$as_me: failed program was:" >&5
2796 sed 's/^/| /' conftest.$ac_ext >&5
2798 # Passes both tests.
2802 rm -f conftest.err conftest.$ac_ext
2805 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2806 rm -f conftest.err conftest.$ac_ext
2807 if $ac_preproc_ok; then
2819 echo "$as_me:$LINENO: result: $CPP" >&5
2820 echo "${ECHO_T}$CPP" >&6
2822 for ac_c_preproc_warn_flag in '' yes
2824 # Use a header file that comes with gcc, so configuring glibc
2825 # with a fresh cross-compiler works.
2826 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2827 # <limits.h> exists even on freestanding compilers.
2828 # On the NeXT, cc -E runs the code through the compiler's parser,
2829 # not just through cpp. "Syntax error" is here to catch this case.
2830 cat >conftest.$ac_ext <<_ACEOF
2833 cat confdefs.h >>conftest.$ac_ext
2834 cat >>conftest.$ac_ext <<_ACEOF
2835 /* end confdefs.h. */
2837 # include <limits.h>
2839 # include <assert.h>
2843 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2844 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2846 grep -v '^ *+' conftest.er1 >conftest.err
2848 cat conftest.err >&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); } >/dev/null; then
2851 if test -s conftest.err; then
2852 ac_cpp_err=$ac_c_preproc_warn_flag
2853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2860 if test -z "$ac_cpp_err"; then
2863 echo "$as_me: failed program was:" >&5
2864 sed 's/^/| /' conftest.$ac_ext >&5
2866 # Broken: fails on valid input.
2869 rm -f conftest.err conftest.$ac_ext
2871 # OK, works on sane cases. Now check whether non-existent headers
2872 # can be detected and how.
2873 cat >conftest.$ac_ext <<_ACEOF
2876 cat confdefs.h >>conftest.$ac_ext
2877 cat >>conftest.$ac_ext <<_ACEOF
2878 /* end confdefs.h. */
2879 #include <ac_nonexistent.h>
2881 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2882 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2884 grep -v '^ *+' conftest.er1 >conftest.err
2886 cat conftest.err >&5
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); } >/dev/null; then
2889 if test -s conftest.err; then
2890 ac_cpp_err=$ac_c_preproc_warn_flag
2891 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2898 if test -z "$ac_cpp_err"; then
2899 # Broken: success on invalid input.
2902 echo "$as_me: failed program was:" >&5
2903 sed 's/^/| /' conftest.$ac_ext >&5
2905 # Passes both tests.
2909 rm -f conftest.err conftest.$ac_ext
2912 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2913 rm -f conftest.err conftest.$ac_ext
2914 if $ac_preproc_ok; then
2917 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2918 See \`config.log' for more details." >&5
2919 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2920 See \`config.log' for more details." >&2;}
2921 { (exit 1); exit 1; }; }
2925 ac_cpp='$CPP $CPPFLAGS'
2926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2931 echo "$as_me:$LINENO: checking for egrep" >&5
2932 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2933 if test "${ac_cv_prog_egrep+set}" = set; then
2934 echo $ECHO_N "(cached) $ECHO_C" >&6
2936 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2937 then ac_cv_prog_egrep='grep -E'
2938 else ac_cv_prog_egrep='egrep'
2941 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2942 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2943 EGREP=$ac_cv_prog_egrep
2946 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2947 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2948 if test "${ac_cv_header_stdc+set}" = set; then
2949 echo $ECHO_N "(cached) $ECHO_C" >&6
2951 cat >conftest.$ac_ext <<_ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h. */
2970 rm -f conftest.$ac_objext
2971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2972 (eval $ac_compile) 2>conftest.er1
2974 grep -v '^ *+' conftest.er1 >conftest.err
2976 cat conftest.err >&5
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); } &&
2979 { ac_try='test -z "$ac_c_werror_flag"
2980 || test ! -s conftest.err'
2981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); }; } &&
2986 { ac_try='test -s conftest.$ac_objext'
2987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); }; }; then
2992 ac_cv_header_stdc=yes
2994 echo "$as_me: failed program was:" >&5
2995 sed 's/^/| /' conftest.$ac_ext >&5
2997 ac_cv_header_stdc=no
2999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3001 if test $ac_cv_header_stdc = yes; then
3002 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3003 cat >conftest.$ac_ext <<_ACEOF
3006 cat confdefs.h >>conftest.$ac_ext
3007 cat >>conftest.$ac_ext <<_ACEOF
3008 /* end confdefs.h. */
3012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3013 $EGREP "memchr" >/dev/null 2>&1; then
3016 ac_cv_header_stdc=no
3022 if test $ac_cv_header_stdc = yes; then
3023 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3024 cat >conftest.$ac_ext <<_ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h. */
3033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3034 $EGREP "free" >/dev/null 2>&1; then
3037 ac_cv_header_stdc=no
3043 if test $ac_cv_header_stdc = yes; then
3044 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3045 if test "$cross_compiling" = yes; then
3048 cat >conftest.$ac_ext <<_ACEOF
3051 cat confdefs.h >>conftest.$ac_ext
3052 cat >>conftest.$ac_ext <<_ACEOF
3053 /* end confdefs.h. */
3055 #if ((' ' & 0x0FF) == 0x020)
3056 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3057 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3059 # define ISLOWER(c) \
3060 (('a' <= (c) && (c) <= 'i') \
3061 || ('j' <= (c) && (c) <= 'r') \
3062 || ('s' <= (c) && (c) <= 'z'))
3063 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3066 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3071 for (i = 0; i < 256; i++)
3072 if (XOR (islower (i), ISLOWER (i))
3073 || toupper (i) != TOUPPER (i))
3078 rm -f conftest$ac_exeext
3079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3080 (eval $ac_link) 2>&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); }; }; then
3091 echo "$as_me: program exited with status $ac_status" >&5
3092 echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3096 ac_cv_header_stdc=no
3098 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3102 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3103 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3104 if test $ac_cv_header_stdc = yes; then
3106 cat >>confdefs.h <<\_ACEOF
3107 #define STDC_HEADERS 1
3112 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3122 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3123 inttypes.h stdint.h unistd.h
3125 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3126 echo "$as_me:$LINENO: checking for $ac_header" >&5
3127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3129 echo $ECHO_N "(cached) $ECHO_C" >&6
3131 cat >conftest.$ac_ext <<_ACEOF
3134 cat confdefs.h >>conftest.$ac_ext
3135 cat >>conftest.$ac_ext <<_ACEOF
3136 /* end confdefs.h. */
3137 $ac_includes_default
3139 #include <$ac_header>
3141 rm -f conftest.$ac_objext
3142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3143 (eval $ac_compile) 2>conftest.er1
3145 grep -v '^ *+' conftest.er1 >conftest.err
3147 cat conftest.err >&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); } &&
3150 { ac_try='test -z "$ac_c_werror_flag"
3151 || test ! -s conftest.err'
3152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); }; } &&
3157 { ac_try='test -s conftest.$ac_objext'
3158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); }; }; then
3163 eval "$as_ac_Header=yes"
3165 echo "$as_me: failed program was:" >&5
3166 sed 's/^/| /' conftest.$ac_ext >&5
3168 eval "$as_ac_Header=no"
3170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3173 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3175 cat >>confdefs.h <<_ACEOF
3176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3187 for ac_header in fcntl.h unistd.h bfd.h
3189 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3191 echo "$as_me:$LINENO: checking for $ac_header" >&5
3192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3194 echo $ECHO_N "(cached) $ECHO_C" >&6
3196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3199 # Is the header compilable?
3200 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3202 cat >conftest.$ac_ext <<_ACEOF
3205 cat confdefs.h >>conftest.$ac_ext
3206 cat >>conftest.$ac_ext <<_ACEOF
3207 /* end confdefs.h. */
3208 $ac_includes_default
3209 #include <$ac_header>
3211 rm -f conftest.$ac_objext
3212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3213 (eval $ac_compile) 2>conftest.er1
3215 grep -v '^ *+' conftest.er1 >conftest.err
3217 cat conftest.err >&5
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); } &&
3220 { ac_try='test -z "$ac_c_werror_flag"
3221 || test ! -s conftest.err'
3222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); }; } &&
3227 { ac_try='test -s conftest.$ac_objext'
3228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); }; }; then
3233 ac_header_compiler=yes
3235 echo "$as_me: failed program was:" >&5
3236 sed 's/^/| /' conftest.$ac_ext >&5
3238 ac_header_compiler=no
3240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3241 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3242 echo "${ECHO_T}$ac_header_compiler" >&6
3244 # Is the header present?
3245 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3246 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3247 cat >conftest.$ac_ext <<_ACEOF
3250 cat confdefs.h >>conftest.$ac_ext
3251 cat >>conftest.$ac_ext <<_ACEOF
3252 /* end confdefs.h. */
3253 #include <$ac_header>
3255 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3256 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3258 grep -v '^ *+' conftest.er1 >conftest.err
3260 cat conftest.err >&5
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); } >/dev/null; then
3263 if test -s conftest.err; then
3264 ac_cpp_err=$ac_c_preproc_warn_flag
3265 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3272 if test -z "$ac_cpp_err"; then
3273 ac_header_preproc=yes
3275 echo "$as_me: failed program was:" >&5
3276 sed 's/^/| /' conftest.$ac_ext >&5
3278 ac_header_preproc=no
3280 rm -f conftest.err conftest.$ac_ext
3281 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3282 echo "${ECHO_T}$ac_header_preproc" >&6
3284 # So? What about this header?
3285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3287 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3288 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3290 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3291 ac_header_preproc=yes
3294 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3296 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3297 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3298 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3299 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3300 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3301 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3304 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3305 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3308 ## ------------------------------------------ ##
3309 ## Report this to the AC_PACKAGE_NAME lists. ##
3310 ## ------------------------------------------ ##
3313 sed "s/^/$as_me: WARNING: /" >&2
3316 echo "$as_me:$LINENO: checking for $ac_header" >&5
3317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 eval "$as_ac_Header=\$ac_header_preproc"
3323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3324 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3328 cat >>confdefs.h <<_ACEOF
3329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3337 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3338 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3339 if test "${ac_cv_c_const+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3342 cat >conftest.$ac_ext <<_ACEOF
3345 cat confdefs.h >>conftest.$ac_ext
3346 cat >>conftest.$ac_ext <<_ACEOF
3347 /* end confdefs.h. */
3352 /* FIXME: Include the comments suggested by Paul. */
3354 /* Ultrix mips cc rejects this. */
3355 typedef int charset[2];
3357 /* SunOS 4.1.1 cc rejects this. */
3358 char const *const *ccp;
3360 /* NEC SVR4.0.2 mips cc rejects this. */
3361 struct point {int x, y;};
3362 static struct point const zero = {0,0};
3363 /* AIX XL C 1.02.0.0 rejects this.
3364 It does not let you subtract one const X* pointer from another in
3365 an arm of an if-expression whose if-part is not a constant
3367 const char *g = "string";
3368 ccp = &g + (g ? g-g : 0);
3369 /* HPUX 7.0 cc rejects these. */
3372 ccp = (char const *const *) p;
3373 { /* SCO 3.2v4 cc rejects this. */
3375 char const *s = 0 ? (char *) 0 : (char const *) 0;
3379 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3381 const int *foo = &x[0];
3384 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3385 typedef const int *iptr;
3389 { /* AIX XL C 1.02.0.0 rejects this saying
3390 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3391 struct s { int j; const int *ap[3]; };
3392 struct s *b; b->j = 5;
3394 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3403 rm -f conftest.$ac_objext
3404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3405 (eval $ac_compile) 2>conftest.er1
3407 grep -v '^ *+' conftest.er1 >conftest.err
3409 cat conftest.err >&5
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); } &&
3412 { ac_try='test -z "$ac_c_werror_flag"
3413 || test ! -s conftest.err'
3414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); }; } &&
3419 { ac_try='test -s conftest.$ac_objext'
3420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); }; }; then
3427 echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3434 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3435 echo "${ECHO_T}$ac_cv_c_const" >&6
3436 if test $ac_cv_c_const = no; then
3438 cat >>confdefs.h <<\_ACEOF
3446 for ac_func in vprintf
3448 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3449 echo "$as_me:$LINENO: checking for $ac_func" >&5
3450 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3451 if eval "test \"\${$as_ac_var+set}\" = set"; then
3452 echo $ECHO_N "(cached) $ECHO_C" >&6
3454 cat >conftest.$ac_ext <<_ACEOF
3457 cat confdefs.h >>conftest.$ac_ext
3458 cat >>conftest.$ac_ext <<_ACEOF
3459 /* end confdefs.h. */
3460 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3462 #define $ac_func innocuous_$ac_func
3464 /* System header to define __stub macros and hopefully few prototypes,
3465 which can conflict with char $ac_func (); below.
3466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3467 <limits.h> exists even on freestanding compilers. */
3470 # include <limits.h>
3472 # include <assert.h>
3477 /* Override any gcc2 internal prototype to avoid an error. */
3482 /* We use char because int might match the return type of a gcc2
3483 builtin and then its argument prototype would still apply. */
3485 /* The GNU C library defines this for functions which it implements
3486 to always fail with ENOSYS. Some functions are actually named
3487 something starting with __ and the normal name is an alias. */
3488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3491 char (*f) () = $ac_func;
3500 return f != $ac_func;
3505 rm -f conftest.$ac_objext conftest$ac_exeext
3506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3507 (eval $ac_link) 2>conftest.er1
3509 grep -v '^ *+' conftest.er1 >conftest.err
3511 cat conftest.err >&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); } &&
3514 { ac_try='test -z "$ac_c_werror_flag"
3515 || test ! -s conftest.err'
3516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); }; } &&
3521 { ac_try='test -s conftest$ac_exeext'
3522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }; }; then
3527 eval "$as_ac_var=yes"
3529 echo "$as_me: failed program was:" >&5
3530 sed 's/^/| /' conftest.$ac_ext >&5
3532 eval "$as_ac_var=no"
3534 rm -f conftest.err conftest.$ac_objext \
3535 conftest$ac_exeext conftest.$ac_ext
3537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3538 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3539 if test `eval echo '${'$as_ac_var'}'` = yes; then
3540 cat >>confdefs.h <<_ACEOF
3541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3544 echo "$as_me:$LINENO: checking for _doprnt" >&5
3545 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
3546 if test "${ac_cv_func__doprnt+set}" = set; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
3549 cat >conftest.$ac_ext <<_ACEOF
3552 cat confdefs.h >>conftest.$ac_ext
3553 cat >>conftest.$ac_ext <<_ACEOF
3554 /* end confdefs.h. */
3555 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
3556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3557 #define _doprnt innocuous__doprnt
3559 /* System header to define __stub macros and hopefully few prototypes,
3560 which can conflict with char _doprnt (); below.
3561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3562 <limits.h> exists even on freestanding compilers. */
3565 # include <limits.h>
3567 # include <assert.h>
3572 /* Override any gcc2 internal prototype to avoid an error. */
3577 /* We use char because int might match the return type of a gcc2
3578 builtin and then its argument prototype would still apply. */
3580 /* The GNU C library defines this for functions which it implements
3581 to always fail with ENOSYS. Some functions are actually named
3582 something starting with __ and the normal name is an alias. */
3583 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3586 char (*f) () = _doprnt;
3595 return f != _doprnt;
3600 rm -f conftest.$ac_objext conftest$ac_exeext
3601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3602 (eval $ac_link) 2>conftest.er1
3604 grep -v '^ *+' conftest.er1 >conftest.err
3606 cat conftest.err >&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); } &&
3609 { ac_try='test -z "$ac_c_werror_flag"
3610 || test ! -s conftest.err'
3611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); }; } &&
3616 { ac_try='test -s conftest$ac_exeext'
3617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); }; }; then
3622 ac_cv_func__doprnt=yes
3624 echo "$as_me: failed program was:" >&5
3625 sed 's/^/| /' conftest.$ac_ext >&5
3627 ac_cv_func__doprnt=no
3629 rm -f conftest.err conftest.$ac_objext \
3630 conftest$ac_exeext conftest.$ac_ext
3632 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
3633 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
3634 if test $ac_cv_func__doprnt = yes; then
3636 cat >>confdefs.h <<\_ACEOF
3637 #define HAVE_DOPRNT 1
3648 for ac_func in dcgettext
3650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3651 echo "$as_me:$LINENO: checking for $ac_func" >&5
3652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3653 if eval "test \"\${$as_ac_var+set}\" = set"; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3656 cat >conftest.$ac_ext <<_ACEOF
3659 cat confdefs.h >>conftest.$ac_ext
3660 cat >>conftest.$ac_ext <<_ACEOF
3661 /* end confdefs.h. */
3662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3664 #define $ac_func innocuous_$ac_func
3666 /* System header to define __stub macros and hopefully few prototypes,
3667 which can conflict with char $ac_func (); below.
3668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3669 <limits.h> exists even on freestanding compilers. */
3672 # include <limits.h>
3674 # include <assert.h>
3679 /* Override any gcc2 internal prototype to avoid an error. */
3684 /* We use char because int might match the return type of a gcc2
3685 builtin and then its argument prototype would still apply. */
3687 /* The GNU C library defines this for functions which it implements
3688 to always fail with ENOSYS. Some functions are actually named
3689 something starting with __ and the normal name is an alias. */
3690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3693 char (*f) () = $ac_func;
3702 return f != $ac_func;
3707 rm -f conftest.$ac_objext conftest$ac_exeext
3708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3709 (eval $ac_link) 2>conftest.er1
3711 grep -v '^ *+' conftest.er1 >conftest.err
3713 cat conftest.err >&5
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); } &&
3716 { ac_try='test -z "$ac_c_werror_flag"
3717 || test ! -s conftest.err'
3718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); }; } &&
3723 { ac_try='test -s conftest$ac_exeext'
3724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); }; }; then
3729 eval "$as_ac_var=yes"
3731 echo "$as_me: failed program was:" >&5
3732 sed 's/^/| /' conftest.$ac_ext >&5
3734 eval "$as_ac_var=no"
3736 rm -f conftest.err conftest.$ac_objext \
3737 conftest$ac_exeext conftest.$ac_ext
3739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3740 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3741 if test `eval echo '${'$as_ac_var'}'` = yes; then
3742 cat >>confdefs.h <<_ACEOF
3743 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3761 ac_config_files="$ac_config_files Makefile ld-elf2flt"
3762 cat >confcache <<\_ACEOF
3763 # This file is a shell script that caches the results of configure
3764 # tests run on this system so they can be shared between configure
3765 # scripts and configure runs, see configure's option --config-cache.
3766 # It is not useful on other systems. If it contains results you don't
3767 # want to keep, you may remove or edit it.
3769 # config.status only pays attention to the cache file if you give it
3770 # the --recheck option to rerun configure.
3772 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3773 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3778 # The following way of writing the cache mishandles newlines in values,
3779 # but we know of no workaround that is simple, portable, and efficient.
3780 # So, don't put newlines in cache variables' values.
3781 # Ultrix sh set writes to stderr and can't be redirected directly,
3782 # and sets the high bit in the cache file unless we assign to the vars.
3785 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3787 # `set' does not quote correctly, so add quotes (double-quote
3788 # substitution turns \\\\ into \\, and sed turns \\ into \).
3791 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3794 # `set' quotes correctly as required by POSIX, so do not add quotes.
3796 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3803 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3805 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3807 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3808 if test -w $cache_file; then
3809 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3810 cat confcache >$cache_file
3812 echo "not updating unwritable cache $cache_file"
3817 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3818 # Let make expand exec_prefix.
3819 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3821 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3822 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3823 # trailing colons and then remove the whole line if VPATH becomes empty
3824 # (actually we leave an empty line to preserve line numbers).
3825 if test "x$srcdir" = x.; then
3826 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3827 s/:*\$(srcdir):*/:/;
3828 s/:*\${srcdir}:*/:/;
3830 s/^\([^=]*=[ ]*\):*/\1/;
3836 # Transform confdefs.h into DEFS.
3837 # Protect against shell expansion while executing Makefile rules.
3838 # Protect against Makefile macro expansion.
3840 # If the first sed substitution is executed (which looks for macros that
3841 # take arguments), then we branch to the quote section. Otherwise,
3842 # look for a macro that doesn't take arguments.
3843 cat >confdef2opt.sed <<\_ACEOF
3846 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
3848 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
3852 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
3858 # We use echo to avoid assuming a particular line-breaking character.
3859 # The extra dot is to prevent the shell from consuming trailing
3860 # line-breaks from the sub-command output. A line-break within
3861 # single-quotes doesn't work because, if this script is created in a
3862 # platform that uses two characters for line-breaks (e.g., DOS), tr
3864 ac_LF_and_DOT=`echo; echo .`
3865 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3866 rm -f confdef2opt.sed
3871 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3872 # 1. Remove the extension, and $U if already installed.
3873 ac_i=`echo "$ac_i" |
3874 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3876 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3877 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3881 LTLIBOBJS=$ac_ltlibobjs
3885 : ${CONFIG_STATUS=./config.status}
3886 ac_clean_files_save=$ac_clean_files
3887 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3888 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3889 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3890 cat >$CONFIG_STATUS <<_ACEOF
3892 # Generated by $as_me.
3893 # Run this file to recreate the current configuration.
3894 # Compiler output produced by configure, useful for debugging
3895 # configure, is in config.log if it exists.
3900 SHELL=\${CONFIG_SHELL-$SHELL}
3903 cat >>$CONFIG_STATUS <<\_ACEOF
3904 ## --------------------- ##
3905 ## M4sh Initialization. ##
3906 ## --------------------- ##
3908 # Be Bourne compatible
3909 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3912 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3913 # is contrary to our usage. Disable this feature.
3914 alias -g '${1+"$@"}'='"$@"'
3915 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3918 DUALCASE=1; export DUALCASE # for MKS sh
3920 # Support unset when possible.
3921 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3928 # Work around bugs in pre-3.0 UWIN ksh.
3929 $as_unset ENV MAIL MAILPATH
3936 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3937 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3938 LC_TELEPHONE LC_TIME
3940 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3941 eval $as_var=C; export $as_var
3947 # Required to use basename.
3948 if expr a : '\(a\)' >/dev/null 2>&1; then
3954 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3955 as_basename=basename
3961 # Name of the executable.
3962 as_me=`$as_basename "$0" ||
3963 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3964 X"$0" : 'X\(//\)$' \| \
3965 X"$0" : 'X\(/\)$' \| \
3966 . : '\(.\)' 2>/dev/null ||
3968 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3969 /^X\/\(\/\/\)$/{ s//\1/; q; }
3970 /^X\/\(\/\).*/{ s//\1/; q; }
3974 # PATH needs CR, and LINENO needs CR and PATH.
3975 # Avoid depending upon Character Ranges.
3976 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3977 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3978 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3979 as_cr_digits='0123456789'
3980 as_cr_alnum=$as_cr_Letters$as_cr_digits
3982 # The user is always right.
3983 if test "${PATH_SEPARATOR+set}" != set; then
3984 echo "#! /bin/sh" >conf$$.sh
3985 echo "exit 0" >>conf$$.sh
3987 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3998 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3999 test "x$as_lineno_1" != "x$as_lineno_2" &&
4000 test "x$as_lineno_3" = "x$as_lineno_2" || {
4001 # Find who we are. Look in the path if we contain no path at all
4004 *[\\/]* ) as_myself=$0 ;;
4005 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009 test -z "$as_dir" && as_dir=.
4010 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4015 # We did not find ourselves, most probably we were run as `sh COMMAND'
4016 # in which case we are not to be found in the path.
4017 if test "x$as_myself" = x; then
4020 if test ! -f "$as_myself"; then
4021 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4022 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4023 { (exit 1); exit 1; }; }
4025 case $CONFIG_SHELL in
4027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4028 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4031 test -z "$as_dir" && as_dir=.
4032 for as_base in sh bash ksh sh5; do
4035 if ("$as_dir/$as_base" -c '
4038 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4039 test "x$as_lineno_1" != "x$as_lineno_2" &&
4040 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4041 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4042 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4043 CONFIG_SHELL=$as_dir/$as_base
4045 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4053 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4054 # uniformly replaced by the line number. The first 'sed' inserts a
4055 # line-number line before each line; the second 'sed' does the real
4056 # work. The second script uses 'N' to pair each line-number line
4057 # with the numbered line, and appends trailing '-' during
4058 # substitution so that $LINENO is not a special case at line end.
4059 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4060 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4061 sed '=' <$as_myself |
4066 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4069 s,^['$as_cr_digits']*\n,,
4071 chmod +x $as_me.lineno ||
4072 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4073 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4074 { (exit 1); exit 1; }; }
4076 # Don't try to exec as it changes $[0], causing all sort of problems
4077 # (the dirname of $[0] is not the place where we might find the
4078 # original and so on. Autoconf is especially sensible to this).
4080 # Exit status is that of the last command.
4085 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4086 *c*,-n*) ECHO_N= ECHO_C='
4088 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4089 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4092 if expr a : '\(a\)' >/dev/null 2>&1; then
4098 rm -f conf$$ conf$$.exe conf$$.file
4100 if ln -s conf$$.file conf$$ 2>/dev/null; then
4101 # We could just check for DJGPP; but this test a) works b) is more generic
4102 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4103 if test -f conf$$.exe; then
4104 # Don't use ln at all; we don't have any links
4109 elif ln conf$$.file conf$$ 2>/dev/null; then
4114 rm -f conf$$ conf$$.exe conf$$.file
4116 if mkdir -p . 2>/dev/null; then
4119 test -d ./-p && rmdir ./-p
4123 as_executable_p="test -f"
4125 # Sed expression to map a string onto a valid CPP name.
4126 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4128 # Sed expression to map a string onto a valid variable name.
4129 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4133 # We need space, tab and new line, in precisely that order.
4143 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4144 # report actual input values of CONFIG_FILES etc. instead of their
4145 # values after options handling. Logging --version etc. is OK.
4149 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4150 ## Running $as_me. ##
4155 This file was extended by $as_me, which was
4156 generated by GNU Autoconf 2.59. Invocation command line was
4158 CONFIG_FILES = $CONFIG_FILES
4159 CONFIG_HEADERS = $CONFIG_HEADERS
4160 CONFIG_LINKS = $CONFIG_LINKS
4161 CONFIG_COMMANDS = $CONFIG_COMMANDS
4165 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4169 # Files that config.status was made for.
4170 if test -n "$ac_config_files"; then
4171 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4174 if test -n "$ac_config_headers"; then
4175 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4178 if test -n "$ac_config_links"; then
4179 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4182 if test -n "$ac_config_commands"; then
4183 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4186 cat >>$CONFIG_STATUS <<\_ACEOF
4189 \`$as_me' instantiates files from templates according to the
4190 current configuration.
4192 Usage: $0 [OPTIONS] [FILE]...
4194 -h, --help print this help, then exit
4195 -V, --version print version number, then exit
4196 -q, --quiet do not print progress messages
4197 -d, --debug don't remove temporary files
4198 --recheck update $as_me by reconfiguring in the same conditions
4199 --file=FILE[:TEMPLATE]
4200 instantiate the configuration file FILE
4202 Configuration files:
4205 Report bugs to <bug-autoconf@gnu.org>."
4208 cat >>$CONFIG_STATUS <<_ACEOF
4211 configured by $0, generated by GNU Autoconf 2.59,
4212 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4214 Copyright (C) 2003 Free Software Foundation, Inc.
4215 This config.status script is free software; the Free Software Foundation
4216 gives unlimited permission to copy, distribute and modify it."
4221 cat >>$CONFIG_STATUS <<\_ACEOF
4222 # If no file are specified by the user, then we need to provide default
4223 # value. By we need to know if files were specified by the user.
4229 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4230 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4238 *) # This is not an option, so the user has probably given explicit
4241 ac_need_defaults=false;;
4245 # Handling of the options.
4247 cat >>$CONFIG_STATUS <<\_ACEOF
4248 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4250 --version | --vers* | -V )
4251 echo "$ac_cs_version"; exit 0 ;;
4253 # Conflict between --help and --header
4254 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4255 Try \`$0 --help' for more information." >&5
4256 echo "$as_me: error: ambiguous option: $1
4257 Try \`$0 --help' for more information." >&2;}
4258 { (exit 1); exit 1; }; };;
4259 --help | --hel | -h )
4260 echo "$ac_cs_usage"; exit 0 ;;
4261 --debug | --d* | -d )
4263 --file | --fil | --fi | --f )
4265 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4266 ac_need_defaults=false;;
4267 --header | --heade | --head | --hea )
4269 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4270 ac_need_defaults=false;;
4271 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4272 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4276 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4277 Try \`$0 --help' for more information." >&5
4278 echo "$as_me: error: unrecognized option: $1
4279 Try \`$0 --help' for more information." >&2;}
4280 { (exit 1); exit 1; }; } ;;
4282 *) ac_config_targets="$ac_config_targets $1" ;;
4288 ac_configure_extra_args=
4290 if $ac_cs_silent; then
4292 ac_configure_extra_args="$ac_configure_extra_args --silent"
4296 cat >>$CONFIG_STATUS <<_ACEOF
4297 if \$ac_cs_recheck; then
4298 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4299 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4308 cat >>$CONFIG_STATUS <<\_ACEOF
4309 for ac_config_target in $ac_config_targets
4311 case "$ac_config_target" in
4312 # Handling of arguments.
4313 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4314 "ld-elf2flt" ) CONFIG_FILES="$CONFIG_FILES ld-elf2flt" ;;
4315 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4316 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4317 { (exit 1); exit 1; }; };;
4321 # If the user did not use the arguments to specify the items to instantiate,
4322 # then the envvar interface is used. Set only those that are not.
4323 # We use the long form for the default assignment because of an extremely
4324 # bizarre bug on SunOS 4.1.3.
4325 if $ac_need_defaults; then
4326 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4329 # Have a temporary directory for convenience. Make it in the build tree
4330 # simply because there is no reason to put it here, and in addition,
4331 # creating and moving files from /tmp can sometimes cause problems.
4332 # Create a temporary directory, and hook for its removal unless debugging.
4335 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4336 trap '{ (exit 1); exit 1; }' 1 2 13 15
4339 # Create a (secure) tmp directory for tmp files.
4342 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4343 test -n "$tmp" && test -d "$tmp"
4346 tmp=./confstat$$-$RANDOM
4347 (umask 077 && mkdir $tmp)
4350 echo "$me: cannot create a temporary directory in ." >&2
4351 { (exit 1); exit 1; }
4356 cat >>$CONFIG_STATUS <<_ACEOF
4359 # CONFIG_FILES section.
4362 # No need to generate the scripts if there are no CONFIG_FILES.
4363 # This happens for instance when ./config.status config.h
4364 if test -n "\$CONFIG_FILES"; then
4365 # Protect against being on the right side of a sed subst in config.status.
4366 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4367 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4368 s,@SHELL@,$SHELL,;t t
4369 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4370 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4371 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4372 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4373 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4374 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4375 s,@exec_prefix@,$exec_prefix,;t t
4376 s,@prefix@,$prefix,;t t
4377 s,@program_transform_name@,$program_transform_name,;t t
4378 s,@bindir@,$bindir,;t t
4379 s,@sbindir@,$sbindir,;t t
4380 s,@libexecdir@,$libexecdir,;t t
4381 s,@datadir@,$datadir,;t t
4382 s,@sysconfdir@,$sysconfdir,;t t
4383 s,@sharedstatedir@,$sharedstatedir,;t t
4384 s,@localstatedir@,$localstatedir,;t t
4385 s,@libdir@,$libdir,;t t
4386 s,@includedir@,$includedir,;t t
4387 s,@oldincludedir@,$oldincludedir,;t t
4388 s,@infodir@,$infodir,;t t
4389 s,@mandir@,$mandir,;t t
4390 s,@build_alias@,$build_alias,;t t
4391 s,@host_alias@,$host_alias,;t t
4392 s,@target_alias@,$target_alias,;t t
4394 s,@ECHO_C@,$ECHO_C,;t t
4395 s,@ECHO_N@,$ECHO_N,;t t
4396 s,@ECHO_T@,$ECHO_T,;t t
4398 s,@build@,$build,;t t
4399 s,@build_cpu@,$build_cpu,;t t
4400 s,@build_vendor@,$build_vendor,;t t
4401 s,@build_os@,$build_os,;t t
4403 s,@host_cpu@,$host_cpu,;t t
4404 s,@host_vendor@,$host_vendor,;t t
4405 s,@host_os@,$host_os,;t t
4406 s,@target@,$target,;t t
4407 s,@target_cpu@,$target_cpu,;t t
4408 s,@target_vendor@,$target_vendor,;t t
4409 s,@target_os@,$target_os,;t t
4411 s,@CFLAGS@,$CFLAGS,;t t
4412 s,@LDFLAGS@,$LDFLAGS,;t t
4413 s,@CPPFLAGS@,$CPPFLAGS,;t t
4414 s,@ac_ct_CC@,$ac_ct_CC,;t t
4415 s,@EXEEXT@,$EXEEXT,;t t
4416 s,@OBJEXT@,$OBJEXT,;t t
4417 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4418 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4419 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4421 s,@EGREP@,$EGREP,;t t
4422 s,@bfd_include_dir@,$bfd_include_dir,;t t
4423 s,@binutils_include_dir@,$binutils_include_dir,;t t
4424 s,@binutils_ldscript_dir@,$binutils_ldscript_dir,;t t
4425 s,@got_check@,$got_check,;t t
4426 s,@emit_relocs@,$emit_relocs,;t t
4427 s,@LIBOBJS@,$LIBOBJS,;t t
4428 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4433 cat >>$CONFIG_STATUS <<\_ACEOF
4434 # Split the substitutions into bite-sized pieces for seds with
4435 # small command number limits, like on Digital OSF/1 and HP-UX.
4437 ac_sed_frag=1 # Number of current file.
4438 ac_beg=1 # First line for current file.
4439 ac_end=$ac_max_sed_lines # Line after last line for current file.
4442 while $ac_more_lines; do
4443 if test $ac_beg -gt 1; then
4444 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4446 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4448 if test ! -s $tmp/subs.frag; then
4451 # The purpose of the label and of the branching condition is to
4452 # speed up the sed processing (if there are no `@' at all, there
4453 # is no need to browse any of the substitutions).
4454 # These are the two extra sed commands mentioned above.
4456 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4457 if test -z "$ac_sed_cmds"; then
4458 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4460 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4462 ac_sed_frag=`expr $ac_sed_frag + 1`
4464 ac_end=`expr $ac_end + $ac_max_sed_lines`
4467 if test -z "$ac_sed_cmds"; then
4470 fi # test -n "$CONFIG_FILES"
4473 cat >>$CONFIG_STATUS <<\_ACEOF
4474 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4475 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4477 - | *:- | *:-:* ) # input from stdin
4479 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4480 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4481 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4482 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4483 * ) ac_file_in=$ac_file.in ;;
4486 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4487 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4488 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4489 X"$ac_file" : 'X\(//\)[^/]' \| \
4490 X"$ac_file" : 'X\(//\)$' \| \
4491 X"$ac_file" : 'X\(/\)' \| \
4492 . : '\(.\)' 2>/dev/null ||
4494 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4495 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4496 /^X\(\/\/\)$/{ s//\1/; q; }
4497 /^X\(\/\).*/{ s//\1/; q; }
4499 { if $as_mkdir_p; then
4504 while test ! -d "$as_dir"; do
4505 as_dirs="$as_dir $as_dirs"
4506 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4507 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4508 X"$as_dir" : 'X\(//\)[^/]' \| \
4509 X"$as_dir" : 'X\(//\)$' \| \
4510 X"$as_dir" : 'X\(/\)' \| \
4511 . : '\(.\)' 2>/dev/null ||
4513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4514 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4515 /^X\(\/\/\)$/{ s//\1/; q; }
4516 /^X\(\/\).*/{ s//\1/; q; }
4519 test ! -n "$as_dirs" || mkdir $as_dirs
4520 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4521 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4522 { (exit 1); exit 1; }; }; }
4526 if test "$ac_dir" != .; then
4527 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4528 # A "../" for each directory in $ac_dir_suffix.
4529 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4531 ac_dir_suffix= ac_top_builddir=
4535 .) # No --srcdir option. We are building in place.
4537 if test -z "$ac_top_builddir"; then
4540 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4542 [\\/]* | ?:[\\/]* ) # Absolute path.
4543 ac_srcdir=$srcdir$ac_dir_suffix;
4544 ac_top_srcdir=$srcdir ;;
4546 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4547 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4550 # Do not use `cd foo && pwd` to compute absolute paths, because
4551 # the directories may not exist.
4553 .) ac_abs_builddir="$ac_dir";;
4556 .) ac_abs_builddir=`pwd`;;
4557 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4558 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4561 case $ac_abs_builddir in
4562 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4564 case ${ac_top_builddir}. in
4565 .) ac_abs_top_builddir=$ac_abs_builddir;;
4566 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4567 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4570 case $ac_abs_builddir in
4571 .) ac_abs_srcdir=$ac_srcdir;;
4574 .) ac_abs_srcdir=$ac_abs_builddir;;
4575 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4576 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4579 case $ac_abs_builddir in
4580 .) ac_abs_top_srcdir=$ac_top_srcdir;;
4582 case $ac_top_srcdir in
4583 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4584 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4585 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4591 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4592 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4595 if test x"$ac_file" != x-; then
4596 { echo "$as_me:$LINENO: creating $ac_file" >&5
4597 echo "$as_me: creating $ac_file" >&6;}
4600 # Let's still pretend it is `configure' which instantiates (i.e., don't
4601 # use $as_me), people would be surprised to read:
4602 # /* config.h. Generated by config.status. */
4603 if test x"$ac_file" = x-; then
4606 configure_input="$ac_file. "
4608 configure_input=$configure_input"Generated from `echo $ac_file_in |
4609 sed 's,.*/,,'` by configure."
4611 # First look for the input files in the build tree, otherwise in the
4613 ac_file_inputs=`IFS=:
4614 for f in $ac_file_in; do
4616 -) echo $tmp/stdin ;;
4618 # Absolute (can't be DOS-style, as IFS=:)
4619 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4620 echo "$as_me: error: cannot find input file: $f" >&2;}
4621 { (exit 1); exit 1; }; }
4624 if test -f "$f"; then
4627 elif test -f "$srcdir/$f"; then
4632 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4633 echo "$as_me: error: cannot find input file: $f" >&2;}
4634 { (exit 1); exit 1; }; }
4637 done` || { (exit 1); exit 1; }
4639 cat >>$CONFIG_STATUS <<_ACEOF
4643 cat >>$CONFIG_STATUS <<\_ACEOF
4645 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4646 s,@configure_input@,$configure_input,;t t
4647 s,@srcdir@,$ac_srcdir,;t t
4648 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4649 s,@top_srcdir@,$ac_top_srcdir,;t t
4650 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4651 s,@builddir@,$ac_builddir,;t t
4652 s,@abs_builddir@,$ac_abs_builddir,;t t
4653 s,@top_builddir@,$ac_top_builddir,;t t
4654 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4655 s,@INSTALL@,$ac_INSTALL,;t t
4656 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4658 if test x"$ac_file" != x-; then
4659 mv $tmp/out $ac_file
4668 cat >>$CONFIG_STATUS <<\_ACEOF
4670 { (exit 0); exit 0; }
4672 chmod +x $CONFIG_STATUS
4673 ac_clean_files=$ac_clean_files_save
4676 # configure is writing to config.log, and then calls config.status.
4677 # config.status does its own redirection, appending to config.log.
4678 # Unfortunately, on DOS this fails, as config.log is still kept open
4679 # by configure, so config.status won't be able to write to it; its
4680 # output is simply discarded. So we exec the FD to /dev/null,
4681 # effectively closing config.log, so it can be properly (re)opened and
4682 # appended to by config.status. When coming back to configure, we
4683 # need to make the FD available again.
4684 if test "$no_create" != yes; then
4686 ac_config_status_args=
4687 test "$silent" = yes &&
4688 ac_config_status_args="$ac_config_status_args --quiet"
4690 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4692 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4693 # would make configure fail if this is the last instruction.
4694 $ac_cs_success || { (exit 1); exit 1; }