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
2671 { { echo "$as_me:$LINENO: error:
2673 You need to specify the location of the libfd.a and libiberty.a
2674 host libraries from the binutils package.
2676 Run configure again specifying these options:
2678 ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>
2680 echo "$as_me: error:
2682 You need to specify the location of the libfd.a and libiberty.a
2683 host libraries from the binutils package.
2685 Run configure again specifying these options:
2687 ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>
2689 { (exit 1); exit 1; }; }
2692 if test "$ac_bfd_include_dir" = "NONE" ; then
2693 { { echo "$as_me:$LINENO: error:
2695 You need to specify the location of the bfd.h header from a
2696 configured/compiled version of the binutils package for your target.
2697 Without this your elf2flt may crash as it will try to use the
2698 systems bfd.h which may be from a different binutils package.
2700 Run configure again specifying these options:
2702 ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>
2704 echo "$as_me: error:
2706 You need to specify the location of the bfd.h header from a
2707 configured/compiled version of the binutils package for your target.
2708 Without this your elf2flt may crash as it will try to use the
2709 systems bfd.h which may be from a different binutils package.
2711 Run configure again specifying these options:
2713 ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>
2715 { (exit 1); exit 1; }; }
2719 ac_cpp='$CPP $CPPFLAGS'
2720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2723 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2724 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2725 # On Suns, sometimes $CPP names a directory.
2726 if test -n "$CPP" && test -d "$CPP"; then
2729 if test -z "$CPP"; then
2730 if test "${ac_cv_prog_CPP+set}" = set; then
2731 echo $ECHO_N "(cached) $ECHO_C" >&6
2733 # Double quotes because CPP needs to be expanded
2734 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2737 for ac_c_preproc_warn_flag in '' yes
2739 # Use a header file that comes with gcc, so configuring glibc
2740 # with a fresh cross-compiler works.
2741 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2742 # <limits.h> exists even on freestanding compilers.
2743 # On the NeXT, cc -E runs the code through the compiler's parser,
2744 # not just through cpp. "Syntax error" is here to catch this case.
2745 cat >conftest.$ac_ext <<_ACEOF
2748 cat confdefs.h >>conftest.$ac_ext
2749 cat >>conftest.$ac_ext <<_ACEOF
2750 /* end confdefs.h. */
2752 # include <limits.h>
2754 # include <assert.h>
2758 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2759 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2761 grep -v '^ *+' conftest.er1 >conftest.err
2763 cat conftest.err >&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); } >/dev/null; then
2766 if test -s conftest.err; then
2767 ac_cpp_err=$ac_c_preproc_warn_flag
2768 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2775 if test -z "$ac_cpp_err"; then
2778 echo "$as_me: failed program was:" >&5
2779 sed 's/^/| /' conftest.$ac_ext >&5
2781 # Broken: fails on valid input.
2784 rm -f conftest.err conftest.$ac_ext
2786 # OK, works on sane cases. Now check whether non-existent headers
2787 # can be detected and how.
2788 cat >conftest.$ac_ext <<_ACEOF
2791 cat confdefs.h >>conftest.$ac_ext
2792 cat >>conftest.$ac_ext <<_ACEOF
2793 /* end confdefs.h. */
2794 #include <ac_nonexistent.h>
2796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2799 grep -v '^ *+' conftest.er1 >conftest.err
2801 cat conftest.err >&5
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); } >/dev/null; then
2804 if test -s conftest.err; then
2805 ac_cpp_err=$ac_c_preproc_warn_flag
2806 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2813 if test -z "$ac_cpp_err"; then
2814 # Broken: success on invalid input.
2817 echo "$as_me: failed program was:" >&5
2818 sed 's/^/| /' conftest.$ac_ext >&5
2820 # Passes both tests.
2824 rm -f conftest.err conftest.$ac_ext
2827 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2828 rm -f conftest.err conftest.$ac_ext
2829 if $ac_preproc_ok; then
2841 echo "$as_me:$LINENO: result: $CPP" >&5
2842 echo "${ECHO_T}$CPP" >&6
2844 for ac_c_preproc_warn_flag in '' yes
2846 # Use a header file that comes with gcc, so configuring glibc
2847 # with a fresh cross-compiler works.
2848 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2849 # <limits.h> exists even on freestanding compilers.
2850 # On the NeXT, cc -E runs the code through the compiler's parser,
2851 # not just through cpp. "Syntax error" is here to catch this case.
2852 cat >conftest.$ac_ext <<_ACEOF
2855 cat confdefs.h >>conftest.$ac_ext
2856 cat >>conftest.$ac_ext <<_ACEOF
2857 /* end confdefs.h. */
2859 # include <limits.h>
2861 # include <assert.h>
2865 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2866 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2868 grep -v '^ *+' conftest.er1 >conftest.err
2870 cat conftest.err >&5
2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); } >/dev/null; then
2873 if test -s conftest.err; then
2874 ac_cpp_err=$ac_c_preproc_warn_flag
2875 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2882 if test -z "$ac_cpp_err"; then
2885 echo "$as_me: failed program was:" >&5
2886 sed 's/^/| /' conftest.$ac_ext >&5
2888 # Broken: fails on valid input.
2891 rm -f conftest.err conftest.$ac_ext
2893 # OK, works on sane cases. Now check whether non-existent headers
2894 # can be detected and how.
2895 cat >conftest.$ac_ext <<_ACEOF
2898 cat confdefs.h >>conftest.$ac_ext
2899 cat >>conftest.$ac_ext <<_ACEOF
2900 /* end confdefs.h. */
2901 #include <ac_nonexistent.h>
2903 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2904 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2906 grep -v '^ *+' conftest.er1 >conftest.err
2908 cat conftest.err >&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); } >/dev/null; then
2911 if test -s conftest.err; then
2912 ac_cpp_err=$ac_c_preproc_warn_flag
2913 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2920 if test -z "$ac_cpp_err"; then
2921 # Broken: success on invalid input.
2924 echo "$as_me: failed program was:" >&5
2925 sed 's/^/| /' conftest.$ac_ext >&5
2927 # Passes both tests.
2931 rm -f conftest.err conftest.$ac_ext
2934 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2935 rm -f conftest.err conftest.$ac_ext
2936 if $ac_preproc_ok; then
2939 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2940 See \`config.log' for more details." >&5
2941 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2942 See \`config.log' for more details." >&2;}
2943 { (exit 1); exit 1; }; }
2947 ac_cpp='$CPP $CPPFLAGS'
2948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2953 echo "$as_me:$LINENO: checking for egrep" >&5
2954 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2955 if test "${ac_cv_prog_egrep+set}" = set; then
2956 echo $ECHO_N "(cached) $ECHO_C" >&6
2958 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2959 then ac_cv_prog_egrep='grep -E'
2960 else ac_cv_prog_egrep='egrep'
2963 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2964 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2965 EGREP=$ac_cv_prog_egrep
2968 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2969 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2970 if test "${ac_cv_header_stdc+set}" = set; then
2971 echo $ECHO_N "(cached) $ECHO_C" >&6
2973 cat >conftest.$ac_ext <<_ACEOF
2976 cat confdefs.h >>conftest.$ac_ext
2977 cat >>conftest.$ac_ext <<_ACEOF
2978 /* end confdefs.h. */
2992 rm -f conftest.$ac_objext
2993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2994 (eval $ac_compile) 2>conftest.er1
2996 grep -v '^ *+' conftest.er1 >conftest.err
2998 cat conftest.err >&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); } &&
3001 { ac_try='test -z "$ac_c_werror_flag"
3002 || test ! -s conftest.err'
3003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); }; } &&
3008 { ac_try='test -s conftest.$ac_objext'
3009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); }; }; then
3014 ac_cv_header_stdc=yes
3016 echo "$as_me: failed program was:" >&5
3017 sed 's/^/| /' conftest.$ac_ext >&5
3019 ac_cv_header_stdc=no
3021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3023 if test $ac_cv_header_stdc = yes; then
3024 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3025 cat >conftest.$ac_ext <<_ACEOF
3028 cat confdefs.h >>conftest.$ac_ext
3029 cat >>conftest.$ac_ext <<_ACEOF
3030 /* end confdefs.h. */
3034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3035 $EGREP "memchr" >/dev/null 2>&1; then
3038 ac_cv_header_stdc=no
3044 if test $ac_cv_header_stdc = yes; then
3045 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3046 cat >conftest.$ac_ext <<_ACEOF
3049 cat confdefs.h >>conftest.$ac_ext
3050 cat >>conftest.$ac_ext <<_ACEOF
3051 /* end confdefs.h. */
3055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3056 $EGREP "free" >/dev/null 2>&1; then
3059 ac_cv_header_stdc=no
3065 if test $ac_cv_header_stdc = yes; then
3066 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3067 if test "$cross_compiling" = yes; then
3070 cat >conftest.$ac_ext <<_ACEOF
3073 cat confdefs.h >>conftest.$ac_ext
3074 cat >>conftest.$ac_ext <<_ACEOF
3075 /* end confdefs.h. */
3077 #if ((' ' & 0x0FF) == 0x020)
3078 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3079 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3081 # define ISLOWER(c) \
3082 (('a' <= (c) && (c) <= 'i') \
3083 || ('j' <= (c) && (c) <= 'r') \
3084 || ('s' <= (c) && (c) <= 'z'))
3085 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3088 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3093 for (i = 0; i < 256; i++)
3094 if (XOR (islower (i), ISLOWER (i))
3095 || toupper (i) != TOUPPER (i))
3100 rm -f conftest$ac_exeext
3101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3102 (eval $ac_link) 2>&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); }; }; then
3113 echo "$as_me: program exited with status $ac_status" >&5
3114 echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3118 ac_cv_header_stdc=no
3120 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3124 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3125 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3126 if test $ac_cv_header_stdc = yes; then
3128 cat >>confdefs.h <<\_ACEOF
3129 #define STDC_HEADERS 1
3134 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3144 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3145 inttypes.h stdint.h unistd.h
3147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3148 echo "$as_me:$LINENO: checking for $ac_header" >&5
3149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3151 echo $ECHO_N "(cached) $ECHO_C" >&6
3153 cat >conftest.$ac_ext <<_ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h. */
3159 $ac_includes_default
3161 #include <$ac_header>
3163 rm -f conftest.$ac_objext
3164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3165 (eval $ac_compile) 2>conftest.er1
3167 grep -v '^ *+' conftest.er1 >conftest.err
3169 cat conftest.err >&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); } &&
3172 { ac_try='test -z "$ac_c_werror_flag"
3173 || test ! -s conftest.err'
3174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); }; } &&
3179 { ac_try='test -s conftest.$ac_objext'
3180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); }; }; then
3185 eval "$as_ac_Header=yes"
3187 echo "$as_me: failed program was:" >&5
3188 sed 's/^/| /' conftest.$ac_ext >&5
3190 eval "$as_ac_Header=no"
3192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3195 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3197 cat >>confdefs.h <<_ACEOF
3198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3209 for ac_header in fcntl.h unistd.h bfd.h
3211 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3213 echo "$as_me:$LINENO: checking for $ac_header" >&5
3214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3216 echo $ECHO_N "(cached) $ECHO_C" >&6
3218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3221 # Is the header compilable?
3222 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3223 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3224 cat >conftest.$ac_ext <<_ACEOF
3227 cat confdefs.h >>conftest.$ac_ext
3228 cat >>conftest.$ac_ext <<_ACEOF
3229 /* end confdefs.h. */
3230 $ac_includes_default
3231 #include <$ac_header>
3233 rm -f conftest.$ac_objext
3234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3235 (eval $ac_compile) 2>conftest.er1
3237 grep -v '^ *+' conftest.er1 >conftest.err
3239 cat conftest.err >&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); } &&
3242 { ac_try='test -z "$ac_c_werror_flag"
3243 || test ! -s conftest.err'
3244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); }; } &&
3249 { ac_try='test -s conftest.$ac_objext'
3250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); }; }; then
3255 ac_header_compiler=yes
3257 echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3260 ac_header_compiler=no
3262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3263 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3264 echo "${ECHO_T}$ac_header_compiler" >&6
3266 # Is the header present?
3267 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3268 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3269 cat >conftest.$ac_ext <<_ACEOF
3272 cat confdefs.h >>conftest.$ac_ext
3273 cat >>conftest.$ac_ext <<_ACEOF
3274 /* end confdefs.h. */
3275 #include <$ac_header>
3277 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3278 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3280 grep -v '^ *+' conftest.er1 >conftest.err
3282 cat conftest.err >&5
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); } >/dev/null; then
3285 if test -s conftest.err; then
3286 ac_cpp_err=$ac_c_preproc_warn_flag
3287 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3294 if test -z "$ac_cpp_err"; then
3295 ac_header_preproc=yes
3297 echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.$ac_ext >&5
3300 ac_header_preproc=no
3302 rm -f conftest.err conftest.$ac_ext
3303 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3304 echo "${ECHO_T}$ac_header_preproc" >&6
3306 # So? What about this header?
3307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3309 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3310 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3312 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3313 ac_header_preproc=yes
3316 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3317 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3318 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3319 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3320 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3321 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3322 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3323 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3325 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3326 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3327 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3330 ## ------------------------------------------ ##
3331 ## Report this to the AC_PACKAGE_NAME lists. ##
3332 ## ------------------------------------------ ##
3335 sed "s/^/$as_me: WARNING: /" >&2
3338 echo "$as_me:$LINENO: checking for $ac_header" >&5
3339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3341 echo $ECHO_N "(cached) $ECHO_C" >&6
3343 eval "$as_ac_Header=\$ac_header_preproc"
3345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3349 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3350 cat >>confdefs.h <<_ACEOF
3351 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3359 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3360 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3361 if test "${ac_cv_c_const+set}" = set; then
3362 echo $ECHO_N "(cached) $ECHO_C" >&6
3364 cat >conftest.$ac_ext <<_ACEOF
3367 cat confdefs.h >>conftest.$ac_ext
3368 cat >>conftest.$ac_ext <<_ACEOF
3369 /* end confdefs.h. */
3374 /* FIXME: Include the comments suggested by Paul. */
3376 /* Ultrix mips cc rejects this. */
3377 typedef int charset[2];
3379 /* SunOS 4.1.1 cc rejects this. */
3380 char const *const *ccp;
3382 /* NEC SVR4.0.2 mips cc rejects this. */
3383 struct point {int x, y;};
3384 static struct point const zero = {0,0};
3385 /* AIX XL C 1.02.0.0 rejects this.
3386 It does not let you subtract one const X* pointer from another in
3387 an arm of an if-expression whose if-part is not a constant
3389 const char *g = "string";
3390 ccp = &g + (g ? g-g : 0);
3391 /* HPUX 7.0 cc rejects these. */
3394 ccp = (char const *const *) p;
3395 { /* SCO 3.2v4 cc rejects this. */
3397 char const *s = 0 ? (char *) 0 : (char const *) 0;
3401 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3403 const int *foo = &x[0];
3406 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3407 typedef const int *iptr;
3411 { /* AIX XL C 1.02.0.0 rejects this saying
3412 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3413 struct s { int j; const int *ap[3]; };
3414 struct s *b; b->j = 5;
3416 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3425 rm -f conftest.$ac_objext
3426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3427 (eval $ac_compile) 2>conftest.er1
3429 grep -v '^ *+' conftest.er1 >conftest.err
3431 cat conftest.err >&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); } &&
3434 { ac_try='test -z "$ac_c_werror_flag"
3435 || test ! -s conftest.err'
3436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); }; } &&
3441 { ac_try='test -s conftest.$ac_objext'
3442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); }; }; then
3449 echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3456 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3457 echo "${ECHO_T}$ac_cv_c_const" >&6
3458 if test $ac_cv_c_const = no; then
3460 cat >>confdefs.h <<\_ACEOF
3468 for ac_func in vprintf
3470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3471 echo "$as_me:$LINENO: checking for $ac_func" >&5
3472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3473 if eval "test \"\${$as_ac_var+set}\" = set"; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3476 cat >conftest.$ac_ext <<_ACEOF
3479 cat confdefs.h >>conftest.$ac_ext
3480 cat >>conftest.$ac_ext <<_ACEOF
3481 /* end confdefs.h. */
3482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3484 #define $ac_func innocuous_$ac_func
3486 /* System header to define __stub macros and hopefully few prototypes,
3487 which can conflict with char $ac_func (); below.
3488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3489 <limits.h> exists even on freestanding compilers. */
3492 # include <limits.h>
3494 # include <assert.h>
3499 /* Override any gcc2 internal prototype to avoid an error. */
3504 /* We use char because int might match the return type of a gcc2
3505 builtin and then its argument prototype would still apply. */
3507 /* The GNU C library defines this for functions which it implements
3508 to always fail with ENOSYS. Some functions are actually named
3509 something starting with __ and the normal name is an alias. */
3510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3513 char (*f) () = $ac_func;
3522 return f != $ac_func;
3527 rm -f conftest.$ac_objext conftest$ac_exeext
3528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3529 (eval $ac_link) 2>conftest.er1
3531 grep -v '^ *+' conftest.er1 >conftest.err
3533 cat conftest.err >&5
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); } &&
3536 { ac_try='test -z "$ac_c_werror_flag"
3537 || test ! -s conftest.err'
3538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); }; } &&
3543 { ac_try='test -s conftest$ac_exeext'
3544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); }; }; then
3549 eval "$as_ac_var=yes"
3551 echo "$as_me: failed program was:" >&5
3552 sed 's/^/| /' conftest.$ac_ext >&5
3554 eval "$as_ac_var=no"
3556 rm -f conftest.err conftest.$ac_objext \
3557 conftest$ac_exeext conftest.$ac_ext
3559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3560 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3561 if test `eval echo '${'$as_ac_var'}'` = yes; then
3562 cat >>confdefs.h <<_ACEOF
3563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3566 echo "$as_me:$LINENO: checking for _doprnt" >&5
3567 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
3568 if test "${ac_cv_func__doprnt+set}" = set; then
3569 echo $ECHO_N "(cached) $ECHO_C" >&6
3571 cat >conftest.$ac_ext <<_ACEOF
3574 cat confdefs.h >>conftest.$ac_ext
3575 cat >>conftest.$ac_ext <<_ACEOF
3576 /* end confdefs.h. */
3577 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
3578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3579 #define _doprnt innocuous__doprnt
3581 /* System header to define __stub macros and hopefully few prototypes,
3582 which can conflict with char _doprnt (); below.
3583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3584 <limits.h> exists even on freestanding compilers. */
3587 # include <limits.h>
3589 # include <assert.h>
3594 /* Override any gcc2 internal prototype to avoid an error. */
3599 /* We use char because int might match the return type of a gcc2
3600 builtin and then its argument prototype would still apply. */
3602 /* The GNU C library defines this for functions which it implements
3603 to always fail with ENOSYS. Some functions are actually named
3604 something starting with __ and the normal name is an alias. */
3605 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3608 char (*f) () = _doprnt;
3617 return f != _doprnt;
3622 rm -f conftest.$ac_objext conftest$ac_exeext
3623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3624 (eval $ac_link) 2>conftest.er1
3626 grep -v '^ *+' conftest.er1 >conftest.err
3628 cat conftest.err >&5
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); } &&
3631 { ac_try='test -z "$ac_c_werror_flag"
3632 || test ! -s conftest.err'
3633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); }; } &&
3638 { ac_try='test -s conftest$ac_exeext'
3639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; }; then
3644 ac_cv_func__doprnt=yes
3646 echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3649 ac_cv_func__doprnt=no
3651 rm -f conftest.err conftest.$ac_objext \
3652 conftest$ac_exeext conftest.$ac_ext
3654 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
3655 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
3656 if test $ac_cv_func__doprnt = yes; then
3658 cat >>confdefs.h <<\_ACEOF
3659 #define HAVE_DOPRNT 1
3670 for ac_func in dcgettext
3672 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3673 echo "$as_me:$LINENO: checking for $ac_func" >&5
3674 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3675 if eval "test \"\${$as_ac_var+set}\" = set"; then
3676 echo $ECHO_N "(cached) $ECHO_C" >&6
3678 cat >conftest.$ac_ext <<_ACEOF
3681 cat confdefs.h >>conftest.$ac_ext
3682 cat >>conftest.$ac_ext <<_ACEOF
3683 /* end confdefs.h. */
3684 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3686 #define $ac_func innocuous_$ac_func
3688 /* System header to define __stub macros and hopefully few prototypes,
3689 which can conflict with char $ac_func (); below.
3690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3691 <limits.h> exists even on freestanding compilers. */
3694 # include <limits.h>
3696 # include <assert.h>
3701 /* Override any gcc2 internal prototype to avoid an error. */
3706 /* We use char because int might match the return type of a gcc2
3707 builtin and then its argument prototype would still apply. */
3709 /* The GNU C library defines this for functions which it implements
3710 to always fail with ENOSYS. Some functions are actually named
3711 something starting with __ and the normal name is an alias. */
3712 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3715 char (*f) () = $ac_func;
3724 return f != $ac_func;
3729 rm -f conftest.$ac_objext conftest$ac_exeext
3730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3731 (eval $ac_link) 2>conftest.er1
3733 grep -v '^ *+' conftest.er1 >conftest.err
3735 cat conftest.err >&5
3736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737 (exit $ac_status); } &&
3738 { ac_try='test -z "$ac_c_werror_flag"
3739 || test ! -s conftest.err'
3740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744 (exit $ac_status); }; } &&
3745 { ac_try='test -s conftest$ac_exeext'
3746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); }; }; then
3751 eval "$as_ac_var=yes"
3753 echo "$as_me: failed program was:" >&5
3754 sed 's/^/| /' conftest.$ac_ext >&5
3756 eval "$as_ac_var=no"
3758 rm -f conftest.err conftest.$ac_objext \
3759 conftest$ac_exeext conftest.$ac_ext
3761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3762 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3763 if test `eval echo '${'$as_ac_var'}'` = yes; then
3764 cat >>confdefs.h <<_ACEOF
3765 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3783 ac_config_files="$ac_config_files Makefile ld-elf2flt"
3784 cat >confcache <<\_ACEOF
3785 # This file is a shell script that caches the results of configure
3786 # tests run on this system so they can be shared between configure
3787 # scripts and configure runs, see configure's option --config-cache.
3788 # It is not useful on other systems. If it contains results you don't
3789 # want to keep, you may remove or edit it.
3791 # config.status only pays attention to the cache file if you give it
3792 # the --recheck option to rerun configure.
3794 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3795 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3800 # The following way of writing the cache mishandles newlines in values,
3801 # but we know of no workaround that is simple, portable, and efficient.
3802 # So, don't put newlines in cache variables' values.
3803 # Ultrix sh set writes to stderr and can't be redirected directly,
3804 # and sets the high bit in the cache file unless we assign to the vars.
3807 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3809 # `set' does not quote correctly, so add quotes (double-quote
3810 # substitution turns \\\\ into \\, and sed turns \\ into \).
3813 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3816 # `set' quotes correctly as required by POSIX, so do not add quotes.
3818 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3825 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3827 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3829 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3830 if test -w $cache_file; then
3831 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3832 cat confcache >$cache_file
3834 echo "not updating unwritable cache $cache_file"
3839 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3840 # Let make expand exec_prefix.
3841 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3843 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3844 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3845 # trailing colons and then remove the whole line if VPATH becomes empty
3846 # (actually we leave an empty line to preserve line numbers).
3847 if test "x$srcdir" = x.; then
3848 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3849 s/:*\$(srcdir):*/:/;
3850 s/:*\${srcdir}:*/:/;
3852 s/^\([^=]*=[ ]*\):*/\1/;
3858 # Transform confdefs.h into DEFS.
3859 # Protect against shell expansion while executing Makefile rules.
3860 # Protect against Makefile macro expansion.
3862 # If the first sed substitution is executed (which looks for macros that
3863 # take arguments), then we branch to the quote section. Otherwise,
3864 # look for a macro that doesn't take arguments.
3865 cat >confdef2opt.sed <<\_ACEOF
3868 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
3870 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
3874 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
3880 # We use echo to avoid assuming a particular line-breaking character.
3881 # The extra dot is to prevent the shell from consuming trailing
3882 # line-breaks from the sub-command output. A line-break within
3883 # single-quotes doesn't work because, if this script is created in a
3884 # platform that uses two characters for line-breaks (e.g., DOS), tr
3886 ac_LF_and_DOT=`echo; echo .`
3887 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3888 rm -f confdef2opt.sed
3893 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3894 # 1. Remove the extension, and $U if already installed.
3895 ac_i=`echo "$ac_i" |
3896 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3898 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3899 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3903 LTLIBOBJS=$ac_ltlibobjs
3907 : ${CONFIG_STATUS=./config.status}
3908 ac_clean_files_save=$ac_clean_files
3909 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3910 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3911 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3912 cat >$CONFIG_STATUS <<_ACEOF
3914 # Generated by $as_me.
3915 # Run this file to recreate the current configuration.
3916 # Compiler output produced by configure, useful for debugging
3917 # configure, is in config.log if it exists.
3922 SHELL=\${CONFIG_SHELL-$SHELL}
3925 cat >>$CONFIG_STATUS <<\_ACEOF
3926 ## --------------------- ##
3927 ## M4sh Initialization. ##
3928 ## --------------------- ##
3930 # Be Bourne compatible
3931 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3934 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3935 # is contrary to our usage. Disable this feature.
3936 alias -g '${1+"$@"}'='"$@"'
3937 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3940 DUALCASE=1; export DUALCASE # for MKS sh
3942 # Support unset when possible.
3943 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3950 # Work around bugs in pre-3.0 UWIN ksh.
3951 $as_unset ENV MAIL MAILPATH
3958 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3959 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3960 LC_TELEPHONE LC_TIME
3962 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3963 eval $as_var=C; export $as_var
3969 # Required to use basename.
3970 if expr a : '\(a\)' >/dev/null 2>&1; then
3976 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3977 as_basename=basename
3983 # Name of the executable.
3984 as_me=`$as_basename "$0" ||
3985 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3986 X"$0" : 'X\(//\)$' \| \
3987 X"$0" : 'X\(/\)$' \| \
3988 . : '\(.\)' 2>/dev/null ||
3990 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3991 /^X\/\(\/\/\)$/{ s//\1/; q; }
3992 /^X\/\(\/\).*/{ s//\1/; q; }
3996 # PATH needs CR, and LINENO needs CR and PATH.
3997 # Avoid depending upon Character Ranges.
3998 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3999 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4000 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4001 as_cr_digits='0123456789'
4002 as_cr_alnum=$as_cr_Letters$as_cr_digits
4004 # The user is always right.
4005 if test "${PATH_SEPARATOR+set}" != set; then
4006 echo "#! /bin/sh" >conf$$.sh
4007 echo "exit 0" >>conf$$.sh
4009 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4020 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4021 test "x$as_lineno_1" != "x$as_lineno_2" &&
4022 test "x$as_lineno_3" = "x$as_lineno_2" || {
4023 # Find who we are. Look in the path if we contain no path at all
4026 *[\\/]* ) as_myself=$0 ;;
4027 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4031 test -z "$as_dir" && as_dir=.
4032 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4037 # We did not find ourselves, most probably we were run as `sh COMMAND'
4038 # in which case we are not to be found in the path.
4039 if test "x$as_myself" = x; then
4042 if test ! -f "$as_myself"; then
4043 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4044 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4045 { (exit 1); exit 1; }; }
4047 case $CONFIG_SHELL in
4049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4053 test -z "$as_dir" && as_dir=.
4054 for as_base in sh bash ksh sh5; do
4057 if ("$as_dir/$as_base" -c '
4060 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4061 test "x$as_lineno_1" != "x$as_lineno_2" &&
4062 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4063 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4064 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4065 CONFIG_SHELL=$as_dir/$as_base
4067 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4075 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4076 # uniformly replaced by the line number. The first 'sed' inserts a
4077 # line-number line before each line; the second 'sed' does the real
4078 # work. The second script uses 'N' to pair each line-number line
4079 # with the numbered line, and appends trailing '-' during
4080 # substitution so that $LINENO is not a special case at line end.
4081 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4082 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4083 sed '=' <$as_myself |
4088 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4091 s,^['$as_cr_digits']*\n,,
4093 chmod +x $as_me.lineno ||
4094 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4095 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4096 { (exit 1); exit 1; }; }
4098 # Don't try to exec as it changes $[0], causing all sort of problems
4099 # (the dirname of $[0] is not the place where we might find the
4100 # original and so on. Autoconf is especially sensible to this).
4102 # Exit status is that of the last command.
4107 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4108 *c*,-n*) ECHO_N= ECHO_C='
4110 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4111 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4114 if expr a : '\(a\)' >/dev/null 2>&1; then
4120 rm -f conf$$ conf$$.exe conf$$.file
4122 if ln -s conf$$.file conf$$ 2>/dev/null; then
4123 # We could just check for DJGPP; but this test a) works b) is more generic
4124 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4125 if test -f conf$$.exe; then
4126 # Don't use ln at all; we don't have any links
4131 elif ln conf$$.file conf$$ 2>/dev/null; then
4136 rm -f conf$$ conf$$.exe conf$$.file
4138 if mkdir -p . 2>/dev/null; then
4141 test -d ./-p && rmdir ./-p
4145 as_executable_p="test -f"
4147 # Sed expression to map a string onto a valid CPP name.
4148 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4150 # Sed expression to map a string onto a valid variable name.
4151 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4155 # We need space, tab and new line, in precisely that order.
4165 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4166 # report actual input values of CONFIG_FILES etc. instead of their
4167 # values after options handling. Logging --version etc. is OK.
4171 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4172 ## Running $as_me. ##
4177 This file was extended by $as_me, which was
4178 generated by GNU Autoconf 2.59. Invocation command line was
4180 CONFIG_FILES = $CONFIG_FILES
4181 CONFIG_HEADERS = $CONFIG_HEADERS
4182 CONFIG_LINKS = $CONFIG_LINKS
4183 CONFIG_COMMANDS = $CONFIG_COMMANDS
4187 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4191 # Files that config.status was made for.
4192 if test -n "$ac_config_files"; then
4193 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4196 if test -n "$ac_config_headers"; then
4197 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4200 if test -n "$ac_config_links"; then
4201 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4204 if test -n "$ac_config_commands"; then
4205 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4208 cat >>$CONFIG_STATUS <<\_ACEOF
4211 \`$as_me' instantiates files from templates according to the
4212 current configuration.
4214 Usage: $0 [OPTIONS] [FILE]...
4216 -h, --help print this help, then exit
4217 -V, --version print version number, then exit
4218 -q, --quiet do not print progress messages
4219 -d, --debug don't remove temporary files
4220 --recheck update $as_me by reconfiguring in the same conditions
4221 --file=FILE[:TEMPLATE]
4222 instantiate the configuration file FILE
4224 Configuration files:
4227 Report bugs to <bug-autoconf@gnu.org>."
4230 cat >>$CONFIG_STATUS <<_ACEOF
4233 configured by $0, generated by GNU Autoconf 2.59,
4234 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4236 Copyright (C) 2003 Free Software Foundation, Inc.
4237 This config.status script is free software; the Free Software Foundation
4238 gives unlimited permission to copy, distribute and modify it."
4243 cat >>$CONFIG_STATUS <<\_ACEOF
4244 # If no file are specified by the user, then we need to provide default
4245 # value. By we need to know if files were specified by the user.
4251 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4252 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4260 *) # This is not an option, so the user has probably given explicit
4263 ac_need_defaults=false;;
4267 # Handling of the options.
4269 cat >>$CONFIG_STATUS <<\_ACEOF
4270 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4272 --version | --vers* | -V )
4273 echo "$ac_cs_version"; exit 0 ;;
4275 # Conflict between --help and --header
4276 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4277 Try \`$0 --help' for more information." >&5
4278 echo "$as_me: error: ambiguous option: $1
4279 Try \`$0 --help' for more information." >&2;}
4280 { (exit 1); exit 1; }; };;
4281 --help | --hel | -h )
4282 echo "$ac_cs_usage"; exit 0 ;;
4283 --debug | --d* | -d )
4285 --file | --fil | --fi | --f )
4287 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4288 ac_need_defaults=false;;
4289 --header | --heade | --head | --hea )
4291 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4292 ac_need_defaults=false;;
4293 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4294 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4298 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4299 Try \`$0 --help' for more information." >&5
4300 echo "$as_me: error: unrecognized option: $1
4301 Try \`$0 --help' for more information." >&2;}
4302 { (exit 1); exit 1; }; } ;;
4304 *) ac_config_targets="$ac_config_targets $1" ;;
4310 ac_configure_extra_args=
4312 if $ac_cs_silent; then
4314 ac_configure_extra_args="$ac_configure_extra_args --silent"
4318 cat >>$CONFIG_STATUS <<_ACEOF
4319 if \$ac_cs_recheck; then
4320 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4321 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4330 cat >>$CONFIG_STATUS <<\_ACEOF
4331 for ac_config_target in $ac_config_targets
4333 case "$ac_config_target" in
4334 # Handling of arguments.
4335 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4336 "ld-elf2flt" ) CONFIG_FILES="$CONFIG_FILES ld-elf2flt" ;;
4337 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4338 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4339 { (exit 1); exit 1; }; };;
4343 # If the user did not use the arguments to specify the items to instantiate,
4344 # then the envvar interface is used. Set only those that are not.
4345 # We use the long form for the default assignment because of an extremely
4346 # bizarre bug on SunOS 4.1.3.
4347 if $ac_need_defaults; then
4348 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4351 # Have a temporary directory for convenience. Make it in the build tree
4352 # simply because there is no reason to put it here, and in addition,
4353 # creating and moving files from /tmp can sometimes cause problems.
4354 # Create a temporary directory, and hook for its removal unless debugging.
4357 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4358 trap '{ (exit 1); exit 1; }' 1 2 13 15
4361 # Create a (secure) tmp directory for tmp files.
4364 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4365 test -n "$tmp" && test -d "$tmp"
4368 tmp=./confstat$$-$RANDOM
4369 (umask 077 && mkdir $tmp)
4372 echo "$me: cannot create a temporary directory in ." >&2
4373 { (exit 1); exit 1; }
4378 cat >>$CONFIG_STATUS <<_ACEOF
4381 # CONFIG_FILES section.
4384 # No need to generate the scripts if there are no CONFIG_FILES.
4385 # This happens for instance when ./config.status config.h
4386 if test -n "\$CONFIG_FILES"; then
4387 # Protect against being on the right side of a sed subst in config.status.
4388 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4389 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4390 s,@SHELL@,$SHELL,;t t
4391 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4392 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4393 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4394 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4395 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4396 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4397 s,@exec_prefix@,$exec_prefix,;t t
4398 s,@prefix@,$prefix,;t t
4399 s,@program_transform_name@,$program_transform_name,;t t
4400 s,@bindir@,$bindir,;t t
4401 s,@sbindir@,$sbindir,;t t
4402 s,@libexecdir@,$libexecdir,;t t
4403 s,@datadir@,$datadir,;t t
4404 s,@sysconfdir@,$sysconfdir,;t t
4405 s,@sharedstatedir@,$sharedstatedir,;t t
4406 s,@localstatedir@,$localstatedir,;t t
4407 s,@libdir@,$libdir,;t t
4408 s,@includedir@,$includedir,;t t
4409 s,@oldincludedir@,$oldincludedir,;t t
4410 s,@infodir@,$infodir,;t t
4411 s,@mandir@,$mandir,;t t
4412 s,@build_alias@,$build_alias,;t t
4413 s,@host_alias@,$host_alias,;t t
4414 s,@target_alias@,$target_alias,;t t
4416 s,@ECHO_C@,$ECHO_C,;t t
4417 s,@ECHO_N@,$ECHO_N,;t t
4418 s,@ECHO_T@,$ECHO_T,;t t
4420 s,@build@,$build,;t t
4421 s,@build_cpu@,$build_cpu,;t t
4422 s,@build_vendor@,$build_vendor,;t t
4423 s,@build_os@,$build_os,;t t
4425 s,@host_cpu@,$host_cpu,;t t
4426 s,@host_vendor@,$host_vendor,;t t
4427 s,@host_os@,$host_os,;t t
4428 s,@target@,$target,;t t
4429 s,@target_cpu@,$target_cpu,;t t
4430 s,@target_vendor@,$target_vendor,;t t
4431 s,@target_os@,$target_os,;t t
4433 s,@CFLAGS@,$CFLAGS,;t t
4434 s,@LDFLAGS@,$LDFLAGS,;t t
4435 s,@CPPFLAGS@,$CPPFLAGS,;t t
4436 s,@ac_ct_CC@,$ac_ct_CC,;t t
4437 s,@EXEEXT@,$EXEEXT,;t t
4438 s,@OBJEXT@,$OBJEXT,;t t
4439 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4440 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4441 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4443 s,@EGREP@,$EGREP,;t t
4444 s,@bfd_include_dir@,$bfd_include_dir,;t t
4445 s,@binutils_include_dir@,$binutils_include_dir,;t t
4446 s,@binutils_ldscript_dir@,$binutils_ldscript_dir,;t t
4447 s,@got_check@,$got_check,;t t
4448 s,@emit_relocs@,$emit_relocs,;t t
4449 s,@LIBOBJS@,$LIBOBJS,;t t
4450 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4455 cat >>$CONFIG_STATUS <<\_ACEOF
4456 # Split the substitutions into bite-sized pieces for seds with
4457 # small command number limits, like on Digital OSF/1 and HP-UX.
4459 ac_sed_frag=1 # Number of current file.
4460 ac_beg=1 # First line for current file.
4461 ac_end=$ac_max_sed_lines # Line after last line for current file.
4464 while $ac_more_lines; do
4465 if test $ac_beg -gt 1; then
4466 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4468 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4470 if test ! -s $tmp/subs.frag; then
4473 # The purpose of the label and of the branching condition is to
4474 # speed up the sed processing (if there are no `@' at all, there
4475 # is no need to browse any of the substitutions).
4476 # These are the two extra sed commands mentioned above.
4478 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4479 if test -z "$ac_sed_cmds"; then
4480 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4482 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4484 ac_sed_frag=`expr $ac_sed_frag + 1`
4486 ac_end=`expr $ac_end + $ac_max_sed_lines`
4489 if test -z "$ac_sed_cmds"; then
4492 fi # test -n "$CONFIG_FILES"
4495 cat >>$CONFIG_STATUS <<\_ACEOF
4496 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4497 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4499 - | *:- | *:-:* ) # input from stdin
4501 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4502 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4503 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4504 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4505 * ) ac_file_in=$ac_file.in ;;
4508 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4509 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4510 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4511 X"$ac_file" : 'X\(//\)[^/]' \| \
4512 X"$ac_file" : 'X\(//\)$' \| \
4513 X"$ac_file" : 'X\(/\)' \| \
4514 . : '\(.\)' 2>/dev/null ||
4516 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4517 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4518 /^X\(\/\/\)$/{ s//\1/; q; }
4519 /^X\(\/\).*/{ s//\1/; q; }
4521 { if $as_mkdir_p; then
4526 while test ! -d "$as_dir"; do
4527 as_dirs="$as_dir $as_dirs"
4528 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4529 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4530 X"$as_dir" : 'X\(//\)[^/]' \| \
4531 X"$as_dir" : 'X\(//\)$' \| \
4532 X"$as_dir" : 'X\(/\)' \| \
4533 . : '\(.\)' 2>/dev/null ||
4535 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4536 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4537 /^X\(\/\/\)$/{ s//\1/; q; }
4538 /^X\(\/\).*/{ s//\1/; q; }
4541 test ! -n "$as_dirs" || mkdir $as_dirs
4542 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4543 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4544 { (exit 1); exit 1; }; }; }
4548 if test "$ac_dir" != .; then
4549 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4550 # A "../" for each directory in $ac_dir_suffix.
4551 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4553 ac_dir_suffix= ac_top_builddir=
4557 .) # No --srcdir option. We are building in place.
4559 if test -z "$ac_top_builddir"; then
4562 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4564 [\\/]* | ?:[\\/]* ) # Absolute path.
4565 ac_srcdir=$srcdir$ac_dir_suffix;
4566 ac_top_srcdir=$srcdir ;;
4568 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4569 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4572 # Do not use `cd foo && pwd` to compute absolute paths, because
4573 # the directories may not exist.
4575 .) ac_abs_builddir="$ac_dir";;
4578 .) ac_abs_builddir=`pwd`;;
4579 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4580 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4583 case $ac_abs_builddir in
4584 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4586 case ${ac_top_builddir}. in
4587 .) ac_abs_top_builddir=$ac_abs_builddir;;
4588 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4589 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4592 case $ac_abs_builddir in
4593 .) ac_abs_srcdir=$ac_srcdir;;
4596 .) ac_abs_srcdir=$ac_abs_builddir;;
4597 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4598 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4601 case $ac_abs_builddir in
4602 .) ac_abs_top_srcdir=$ac_top_srcdir;;
4604 case $ac_top_srcdir in
4605 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4606 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4607 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4613 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4614 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4617 if test x"$ac_file" != x-; then
4618 { echo "$as_me:$LINENO: creating $ac_file" >&5
4619 echo "$as_me: creating $ac_file" >&6;}
4622 # Let's still pretend it is `configure' which instantiates (i.e., don't
4623 # use $as_me), people would be surprised to read:
4624 # /* config.h. Generated by config.status. */
4625 if test x"$ac_file" = x-; then
4628 configure_input="$ac_file. "
4630 configure_input=$configure_input"Generated from `echo $ac_file_in |
4631 sed 's,.*/,,'` by configure."
4633 # First look for the input files in the build tree, otherwise in the
4635 ac_file_inputs=`IFS=:
4636 for f in $ac_file_in; do
4638 -) echo $tmp/stdin ;;
4640 # Absolute (can't be DOS-style, as IFS=:)
4641 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4642 echo "$as_me: error: cannot find input file: $f" >&2;}
4643 { (exit 1); exit 1; }; }
4646 if test -f "$f"; then
4649 elif test -f "$srcdir/$f"; then
4654 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4655 echo "$as_me: error: cannot find input file: $f" >&2;}
4656 { (exit 1); exit 1; }; }
4659 done` || { (exit 1); exit 1; }
4661 cat >>$CONFIG_STATUS <<_ACEOF
4665 cat >>$CONFIG_STATUS <<\_ACEOF
4667 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4668 s,@configure_input@,$configure_input,;t t
4669 s,@srcdir@,$ac_srcdir,;t t
4670 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4671 s,@top_srcdir@,$ac_top_srcdir,;t t
4672 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4673 s,@builddir@,$ac_builddir,;t t
4674 s,@abs_builddir@,$ac_abs_builddir,;t t
4675 s,@top_builddir@,$ac_top_builddir,;t t
4676 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4677 s,@INSTALL@,$ac_INSTALL,;t t
4678 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4680 if test x"$ac_file" != x-; then
4681 mv $tmp/out $ac_file
4690 cat >>$CONFIG_STATUS <<\_ACEOF
4692 { (exit 0); exit 0; }
4694 chmod +x $CONFIG_STATUS
4695 ac_clean_files=$ac_clean_files_save
4698 # configure is writing to config.log, and then calls config.status.
4699 # config.status does its own redirection, appending to config.log.
4700 # Unfortunately, on DOS this fails, as config.log is still kept open
4701 # by configure, so config.status won't be able to write to it; its
4702 # output is simply discarded. So we exec the FD to /dev/null,
4703 # effectively closing config.log, so it can be properly (re)opened and
4704 # appended to by config.status. When coming back to configure, we
4705 # need to make the FD available again.
4706 if test "$no_create" != yes; then
4708 ac_config_status_args=
4709 test "$silent" = yes &&
4710 ac_config_status_args="$ac_config_status_args --quiet"
4712 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4714 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4715 # would make configure fail if this is the last instruction.
4716 $ac_cs_success || { (exit 1); exit 1; }