2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir=.
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
277 CONFIG_SHELL=$as_shell
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
305 as_func_ret_success () {
308 as_func_ret_failure () {
313 if as_func_success; then
317 echo as_func_success failed.
320 if as_func_failure; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
492 ECHO_C= ECHO_N= ECHO_T=
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
525 elif ln conf$$.file conf$$ 2>/dev/null; then
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
539 test -d ./-p && rmdir ./-p
543 if test -x / >/dev/null 2>&1; then
546 if ls -dL / >/dev/null 2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix=/usr/local
586 ac_config_libobj_dir=.
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
601 ac_unique_file="elf2flt.c"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
638 ac_subst_vars='LTLIBOBJS
645 use_ld_elf2flt_binary
646 binutils_ldscript_dir
702 program_transform_name
714 enable_option_checking
719 with_binutils_include_dir
720 with_binutils_ldscript_dir
721 with_binutils_build_dir
722 enable_ld_elf2flt_binary
725 enable_emit_ctor_dtor
726 enable_always_reloc_text
728 ac_precious_vars='build_alias
739 # Initialize some variables set by options.
741 ac_init_version=false
742 ac_unrecognized_opts=
744 # The variables have the same names as the options, with
745 # dashes changed to underlines.
753 program_transform_name=s,x,x,
761 # Installation directory options.
762 # These are left unexpanded so users can "make install exec_prefix=/foo"
763 # and all the variables that are supposed to be based on exec_prefix
764 # by default will actually change.
765 # Use braces instead of parens because sh, perl, etc. also accept them.
766 # (The list follows the same order as the GNU Coding Standards.)
767 bindir='${exec_prefix}/bin'
768 sbindir='${exec_prefix}/sbin'
769 libexecdir='${exec_prefix}/libexec'
770 datarootdir='${prefix}/share'
771 datadir='${datarootdir}'
772 sysconfdir='${prefix}/etc'
773 sharedstatedir='${prefix}/com'
774 localstatedir='${prefix}/var'
775 includedir='${prefix}/include'
776 oldincludedir='/usr/include'
777 docdir='${datarootdir}/doc/${PACKAGE}'
778 infodir='${datarootdir}/info'
783 libdir='${exec_prefix}/lib'
784 localedir='${datarootdir}/locale'
785 mandir='${datarootdir}/man'
791 # If the previous option needs an argument, assign it.
792 if test -n "$ac_prev"; then
793 eval $ac_prev=\$ac_option
799 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
803 # Accept the important Cygnus configure options, so we can diagnose typos.
805 case $ac_dashdash$ac_option in
809 -bindir | --bindir | --bindi | --bind | --bin | --bi)
811 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
814 -build | --build | --buil | --bui | --bu)
815 ac_prev=build_alias ;;
816 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
817 build_alias=$ac_optarg ;;
819 -cache-file | --cache-file | --cache-fil | --cache-fi \
820 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
821 ac_prev=cache_file ;;
822 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
823 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
824 cache_file=$ac_optarg ;;
827 cache_file=config.cache ;;
829 -datadir | --datadir | --datadi | --datad)
831 -datadir=* | --datadir=* | --datadi=* | --datad=*)
832 datadir=$ac_optarg ;;
834 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
835 | --dataroo | --dataro | --datar)
836 ac_prev=datarootdir ;;
837 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
838 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
839 datarootdir=$ac_optarg ;;
841 -disable-* | --disable-*)
842 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
843 # Reject names that are not valid shell variable names.
844 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
845 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
846 { (exit 1); exit 1; }; }
847 ac_useropt_orig=$ac_useropt
848 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
849 case $ac_user_opts in
853 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
854 ac_unrecognized_sep=', ';;
856 eval enable_$ac_useropt=no ;;
858 -docdir | --docdir | --docdi | --doc | --do)
860 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
863 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
865 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
868 -enable-* | --enable-*)
869 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
870 # Reject names that are not valid shell variable names.
871 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
872 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
873 { (exit 1); exit 1; }; }
874 ac_useropt_orig=$ac_useropt
875 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
876 case $ac_user_opts in
880 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
881 ac_unrecognized_sep=', ';;
883 eval enable_$ac_useropt=\$ac_optarg ;;
885 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
886 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
887 | --exec | --exe | --ex)
888 ac_prev=exec_prefix ;;
889 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
890 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
891 | --exec=* | --exe=* | --ex=*)
892 exec_prefix=$ac_optarg ;;
894 -gas | --gas | --ga | --g)
895 # Obsolete; use --with-gas.
898 -help | --help | --hel | --he | -h)
900 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
901 ac_init_help=recursive ;;
902 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
903 ac_init_help=short ;;
905 -host | --host | --hos | --ho)
906 ac_prev=host_alias ;;
907 -host=* | --host=* | --hos=* | --ho=*)
908 host_alias=$ac_optarg ;;
910 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
912 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
914 htmldir=$ac_optarg ;;
916 -includedir | --includedir | --includedi | --included | --include \
917 | --includ | --inclu | --incl | --inc)
918 ac_prev=includedir ;;
919 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
920 | --includ=* | --inclu=* | --incl=* | --inc=*)
921 includedir=$ac_optarg ;;
923 -infodir | --infodir | --infodi | --infod | --info | --inf)
925 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
926 infodir=$ac_optarg ;;
928 -libdir | --libdir | --libdi | --libd)
930 -libdir=* | --libdir=* | --libdi=* | --libd=*)
933 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
934 | --libexe | --libex | --libe)
935 ac_prev=libexecdir ;;
936 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
937 | --libexe=* | --libex=* | --libe=*)
938 libexecdir=$ac_optarg ;;
940 -localedir | --localedir | --localedi | --localed | --locale)
942 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
943 localedir=$ac_optarg ;;
945 -localstatedir | --localstatedir | --localstatedi | --localstated \
946 | --localstate | --localstat | --localsta | --localst | --locals)
947 ac_prev=localstatedir ;;
948 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
949 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
950 localstatedir=$ac_optarg ;;
952 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
954 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
958 # Obsolete; use --without-fp.
961 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
962 | --no-cr | --no-c | -n)
965 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
966 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
969 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
970 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
971 | --oldin | --oldi | --old | --ol | --o)
972 ac_prev=oldincludedir ;;
973 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
974 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
975 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
976 oldincludedir=$ac_optarg ;;
978 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
980 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
983 -program-prefix | --program-prefix | --program-prefi | --program-pref \
984 | --program-pre | --program-pr | --program-p)
985 ac_prev=program_prefix ;;
986 -program-prefix=* | --program-prefix=* | --program-prefi=* \
987 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
988 program_prefix=$ac_optarg ;;
990 -program-suffix | --program-suffix | --program-suffi | --program-suff \
991 | --program-suf | --program-su | --program-s)
992 ac_prev=program_suffix ;;
993 -program-suffix=* | --program-suffix=* | --program-suffi=* \
994 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
995 program_suffix=$ac_optarg ;;
997 -program-transform-name | --program-transform-name \
998 | --program-transform-nam | --program-transform-na \
999 | --program-transform-n | --program-transform- \
1000 | --program-transform | --program-transfor \
1001 | --program-transfo | --program-transf \
1002 | --program-trans | --program-tran \
1003 | --progr-tra | --program-tr | --program-t)
1004 ac_prev=program_transform_name ;;
1005 -program-transform-name=* | --program-transform-name=* \
1006 | --program-transform-nam=* | --program-transform-na=* \
1007 | --program-transform-n=* | --program-transform-=* \
1008 | --program-transform=* | --program-transfor=* \
1009 | --program-transfo=* | --program-transf=* \
1010 | --program-trans=* | --program-tran=* \
1011 | --progr-tra=* | --program-tr=* | --program-t=*)
1012 program_transform_name=$ac_optarg ;;
1014 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1016 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1017 pdfdir=$ac_optarg ;;
1019 -psdir | --psdir | --psdi | --psd | --ps)
1021 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1024 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1025 | -silent | --silent | --silen | --sile | --sil)
1028 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1030 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1032 sbindir=$ac_optarg ;;
1034 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1035 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1036 | --sharedst | --shareds | --shared | --share | --shar \
1038 ac_prev=sharedstatedir ;;
1039 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1040 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1041 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1043 sharedstatedir=$ac_optarg ;;
1045 -site | --site | --sit)
1047 -site=* | --site=* | --sit=*)
1050 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1052 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1053 srcdir=$ac_optarg ;;
1055 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1056 | --syscon | --sysco | --sysc | --sys | --sy)
1057 ac_prev=sysconfdir ;;
1058 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1059 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1060 sysconfdir=$ac_optarg ;;
1062 -target | --target | --targe | --targ | --tar | --ta | --t)
1063 ac_prev=target_alias ;;
1064 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1065 target_alias=$ac_optarg ;;
1067 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1070 -version | --version | --versio | --versi | --vers | -V)
1071 ac_init_version=: ;;
1074 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1077 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1078 { (exit 1); exit 1; }; }
1079 ac_useropt_orig=$ac_useropt
1080 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1081 case $ac_user_opts in
1085 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1086 ac_unrecognized_sep=', ';;
1088 eval with_$ac_useropt=\$ac_optarg ;;
1090 -without-* | --without-*)
1091 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1092 # Reject names that are not valid shell variable names.
1093 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1095 { (exit 1); exit 1; }; }
1096 ac_useropt_orig=$ac_useropt
1097 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098 case $ac_user_opts in
1102 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1103 ac_unrecognized_sep=', ';;
1105 eval with_$ac_useropt=no ;;
1108 # Obsolete; use --with-x.
1111 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1112 | --x-incl | --x-inc | --x-in | --x-i)
1113 ac_prev=x_includes ;;
1114 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1115 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1116 x_includes=$ac_optarg ;;
1118 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1119 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1120 ac_prev=x_libraries ;;
1121 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1122 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1123 x_libraries=$ac_optarg ;;
1125 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1126 Try \`$0 --help' for more information." >&2
1127 { (exit 1); exit 1; }; }
1131 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1132 # Reject names that are not valid shell variable names.
1133 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1134 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1135 { (exit 1); exit 1; }; }
1136 eval $ac_envvar=\$ac_optarg
1137 export $ac_envvar ;;
1140 # FIXME: should be removed in autoconf 3.0.
1141 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1142 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1143 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1144 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1150 if test -n "$ac_prev"; then
1151 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1152 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1153 { (exit 1); exit 1; }; }
1156 if test -n "$ac_unrecognized_opts"; then
1157 case $enable_option_checking in
1159 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1160 { (exit 1); exit 1; }; } ;;
1161 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1165 # Check all directory arguments for consistency.
1166 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1167 datadir sysconfdir sharedstatedir localstatedir includedir \
1168 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1169 libdir localedir mandir
1171 eval ac_val=\$$ac_var
1172 # Remove trailing slashes.
1175 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1176 eval $ac_var=\$ac_val;;
1178 # Be sure to have absolute directory names.
1180 [\\/$]* | ?:[\\/]* ) continue;;
1181 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1183 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1184 { (exit 1); exit 1; }; }
1187 # There might be people who depend on the old broken behavior: `$host'
1188 # used to hold the argument of --host etc.
1189 # FIXME: To remove some day.
1192 target=$target_alias
1194 # FIXME: To remove some day.
1195 if test "x$host_alias" != x; then
1196 if test "x$build_alias" = x; then
1197 cross_compiling=maybe
1198 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1199 If a cross compiler is detected then cross compile mode will be used." >&2
1200 elif test "x$build_alias" != "x$host_alias"; then
1206 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1208 test "$silent" = yes && exec 6>/dev/null
1211 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1212 ac_ls_di=`ls -di .` &&
1213 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1214 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1215 { (exit 1); exit 1; }; }
1216 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1217 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1218 { (exit 1); exit 1; }; }
1221 # Find the source files, if location was not specified.
1222 if test -z "$srcdir"; then
1223 ac_srcdir_defaulted=yes
1224 # Try the directory containing this script, then the parent directory.
1225 ac_confdir=`$as_dirname -- "$as_myself" ||
1226 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1227 X"$as_myself" : 'X\(//\)[^/]' \| \
1228 X"$as_myself" : 'X\(//\)$' \| \
1229 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1230 $as_echo X"$as_myself" |
1231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1249 if test ! -r "$srcdir/$ac_unique_file"; then
1253 ac_srcdir_defaulted=no
1255 if test ! -r "$srcdir/$ac_unique_file"; then
1256 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1257 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1258 { (exit 1); exit 1; }; }
1260 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1262 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1263 { (exit 1); exit 1; }; }
1265 # When building in place, set srcdir=.
1266 if test "$ac_abs_confdir" = "$ac_pwd"; then
1269 # Remove unnecessary trailing slashes from srcdir.
1270 # Double slashes in file names in object file debugging info
1271 # mess up M-x gdb in Emacs.
1273 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1275 for ac_var in $ac_precious_vars; do
1276 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1277 eval ac_env_${ac_var}_value=\$${ac_var}
1278 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1279 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1283 # Report the --help message.
1285 if test "$ac_init_help" = "long"; then
1286 # Omit some internal or obsolete options to make the list less imposing.
1287 # This message is too long to be a string in the A/UX 3.1 sh.
1289 \`configure' configures this package to adapt to many kinds of systems.
1291 Usage: $0 [OPTION]... [VAR=VALUE]...
1293 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1294 VAR=VALUE. See below for descriptions of some of the useful variables.
1296 Defaults for the options are specified in brackets.
1299 -h, --help display this help and exit
1300 --help=short display options specific to this package
1301 --help=recursive display the short help of all the included packages
1302 -V, --version display version information and exit
1303 -q, --quiet, --silent do not print \`checking...' messages
1304 --cache-file=FILE cache test results in FILE [disabled]
1305 -C, --config-cache alias for \`--cache-file=config.cache'
1306 -n, --no-create do not create output files
1307 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1309 Installation directories:
1310 --prefix=PREFIX install architecture-independent files in PREFIX
1311 [$ac_default_prefix]
1312 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1315 By default, \`make install' will install all the files in
1316 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1317 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1318 for instance \`--prefix=\$HOME'.
1320 For better control, use the options below.
1322 Fine tuning of the installation directories:
1323 --bindir=DIR user executables [EPREFIX/bin]
1324 --sbindir=DIR system admin executables [EPREFIX/sbin]
1325 --libexecdir=DIR program executables [EPREFIX/libexec]
1326 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1327 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1328 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1329 --libdir=DIR object code libraries [EPREFIX/lib]
1330 --includedir=DIR C header files [PREFIX/include]
1331 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1332 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1333 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1334 --infodir=DIR info documentation [DATAROOTDIR/info]
1335 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1336 --mandir=DIR man documentation [DATAROOTDIR/man]
1337 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1338 --htmldir=DIR html documentation [DOCDIR]
1339 --dvidir=DIR dvi documentation [DOCDIR]
1340 --pdfdir=DIR pdf documentation [DOCDIR]
1341 --psdir=DIR ps documentation [DOCDIR]
1347 --build=BUILD configure for building on BUILD [guessed]
1348 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1349 --target=TARGET configure for building compilers for TARGET [HOST]
1353 if test -n "$ac_init_help"; then
1358 --disable-option-checking ignore unrecognized --enable/--with options
1359 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1360 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1361 --disable-ld-elf2flt-binary
1362 use ld-elf2flt shell script
1363 --disable-got-check disable check for GOT (needed on H8)
1364 --disable-emit-relocs don't use the --emit-relocs (-q) linker option
1365 --enable-emit-ctor-dtor manually create ctor/dtor list
1366 --enable-always-reloc-text
1367 always process text relocs ignoring pic/got (needed
1371 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1372 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1373 --with-zlib-prefix=<dir>
1374 path to installed zlib
1375 --with-libbfd=<file> path to libbfd.a library to use
1376 --with-libiberty=<file> path to libiberty.a library to use
1377 --with-bfd-include-dir=<dir>
1378 include path for correct bfd.h
1379 --with-binutils-include-dir=<dir>
1380 include path for binutils headers
1381 --with-binutils-ldscript-dir=<dir>
1382 path to install elf2flt.ld
1383 --with-binutils-build-dir=<dir>
1384 path to compiled binutils tree
1386 Some influential environment variables:
1387 CC C compiler command
1388 CFLAGS C compiler flags
1389 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1390 nonstandard directory <lib dir>
1391 LIBS libraries to pass to the linker, e.g. -l<library>
1392 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1393 you have headers in a nonstandard directory <include dir>
1396 Use these variables to override the choices made by `configure' or to help
1397 it to find libraries and programs with nonstandard names/locations.
1403 if test "$ac_init_help" = "recursive"; then
1404 # If there are subdirs, report their specific --help.
1405 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1406 test -d "$ac_dir" ||
1407 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1412 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1414 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1415 # A ".." for each directory in $ac_dir_suffix.
1416 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1417 case $ac_top_builddir_sub in
1418 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1419 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1422 ac_abs_top_builddir=$ac_pwd
1423 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1424 # for backward compatibility:
1425 ac_top_builddir=$ac_top_build_prefix
1428 .) # We are building in place.
1430 ac_top_srcdir=$ac_top_builddir_sub
1431 ac_abs_top_srcdir=$ac_pwd ;;
1432 [\\/]* | ?:[\\/]* ) # Absolute name.
1433 ac_srcdir=$srcdir$ac_dir_suffix;
1434 ac_top_srcdir=$srcdir
1435 ac_abs_top_srcdir=$srcdir ;;
1437 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1438 ac_top_srcdir=$ac_top_build_prefix$srcdir
1439 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1441 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1443 cd "$ac_dir" || { ac_status=$?; continue; }
1444 # Check for guested configure.
1445 if test -f "$ac_srcdir/configure.gnu"; then
1447 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1448 elif test -f "$ac_srcdir/configure"; then
1450 $SHELL "$ac_srcdir/configure" --help=recursive
1452 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1454 cd "$ac_pwd" || { ac_status=$?; break; }
1458 test -n "$ac_init_help" && exit $ac_status
1459 if $ac_init_version; then
1462 generated by GNU Autoconf 2.63
1464 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1465 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1466 This configure script is free software; the Free Software Foundation
1467 gives unlimited permission to copy, distribute and modify it.
1471 cat >config.log <<_ACEOF
1472 This file contains any messages produced by compilers while
1473 running configure, to aid debugging if configure makes a mistake.
1475 It was created by $as_me, which was
1476 generated by GNU Autoconf 2.63. Invocation command line was
1488 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1489 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1490 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1491 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1492 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1494 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1495 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1497 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1498 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1499 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1500 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1501 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1502 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1503 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1511 test -z "$as_dir" && as_dir=.
1512 $as_echo "PATH: $as_dir"
1528 # Keep a trace of the command line.
1529 # Strip out --no-create and --no-recursion so they do not pile up.
1530 # Strip out --silent because we don't want to record it for future runs.
1531 # Also quote any args containing shell meta-characters.
1532 # Make two passes to allow for proper duplicate-argument suppression.
1536 ac_must_keep_next=false
1542 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1543 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1544 | -silent | --silent | --silen | --sile | --sil)
1547 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1550 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1552 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1553 if test $ac_must_keep_next = true; then
1554 ac_must_keep_next=false # Got value, back to normal.
1557 *=* | --config-cache | -C | -disable-* | --disable-* \
1558 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1559 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1560 | -with-* | --with-* | -without-* | --without-* | --x)
1561 case "$ac_configure_args0 " in
1562 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1565 -* ) ac_must_keep_next=true ;;
1568 ac_configure_args="$ac_configure_args '$ac_arg'"
1573 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1574 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1576 # When interrupted or exit'd, cleanup temporary files, and complete
1577 # config.log. We remove comments because anyway the quotes in there
1578 # would cause problems or look ugly.
1579 # WARNING: Use '\'' to represent an apostrophe within the trap.
1580 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1581 trap 'exit_status=$?
1582 # Save into config.log some information that might help in debugging.
1587 ## ---------------- ##
1588 ## Cache variables. ##
1589 ## ---------------- ##
1592 # The following way of writing the cache mishandles newlines in values,
1594 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1595 eval ac_val=\$$ac_var
1599 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1600 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1603 _ | IFS | as_nl) ;; #(
1604 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1605 *) $as_unset $ac_var ;;
1610 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1611 *${as_nl}ac_space=\ *)
1613 "s/'\''/'\''\\\\'\'''\''/g;
1614 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1617 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1625 ## ----------------- ##
1626 ## Output variables. ##
1627 ## ----------------- ##
1630 for ac_var in $ac_subst_vars
1632 eval ac_val=\$$ac_var
1634 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1636 $as_echo "$ac_var='\''$ac_val'\''"
1640 if test -n "$ac_subst_files"; then
1642 ## ------------------- ##
1643 ## File substitutions. ##
1644 ## ------------------- ##
1647 for ac_var in $ac_subst_files
1649 eval ac_val=\$$ac_var
1651 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1653 $as_echo "$ac_var='\''$ac_val'\''"
1658 if test -s confdefs.h; then
1668 test "$ac_signal" != 0 &&
1669 $as_echo "$as_me: caught signal $ac_signal"
1670 $as_echo "$as_me: exit $exit_status"
1672 rm -f core *.core core.conftest.* &&
1673 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1676 for ac_signal in 1 2 13 15; do
1677 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1681 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1682 rm -f -r conftest* confdefs.h
1684 # Predefined preprocessor variables.
1686 cat >>confdefs.h <<_ACEOF
1687 #define PACKAGE_NAME "$PACKAGE_NAME"
1691 cat >>confdefs.h <<_ACEOF
1692 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1696 cat >>confdefs.h <<_ACEOF
1697 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1701 cat >>confdefs.h <<_ACEOF
1702 #define PACKAGE_STRING "$PACKAGE_STRING"
1706 cat >>confdefs.h <<_ACEOF
1707 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1711 # Let the site file select an alternate cache file if it wants to.
1712 # Prefer an explicitly selected file to automatically selected ones.
1715 if test -n "$CONFIG_SITE"; then
1716 ac_site_file1=$CONFIG_SITE
1717 elif test "x$prefix" != xNONE; then
1718 ac_site_file1=$prefix/share/config.site
1719 ac_site_file2=$prefix/etc/config.site
1721 ac_site_file1=$ac_default_prefix/share/config.site
1722 ac_site_file2=$ac_default_prefix/etc/config.site
1724 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1726 test "x$ac_site_file" = xNONE && continue
1727 if test -r "$ac_site_file"; then
1728 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1729 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1730 sed 's/^/| /' "$ac_site_file" >&5
1735 if test -r "$cache_file"; then
1736 # Some versions of bash will fail to source /dev/null (special
1737 # files actually), so we avoid doing that.
1738 if test -f "$cache_file"; then
1739 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1740 $as_echo "$as_me: loading cache $cache_file" >&6;}
1742 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1743 *) . "./$cache_file";;
1747 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1748 $as_echo "$as_me: creating cache $cache_file" >&6;}
1752 # Check that the precious variables saved in the cache have kept the same
1754 ac_cache_corrupted=false
1755 for ac_var in $ac_precious_vars; do
1756 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1757 eval ac_new_set=\$ac_env_${ac_var}_set
1758 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1759 eval ac_new_val=\$ac_env_${ac_var}_value
1760 case $ac_old_set,$ac_new_set in
1762 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1763 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1764 ac_cache_corrupted=: ;;
1766 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1767 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1768 ac_cache_corrupted=: ;;
1771 if test "x$ac_old_val" != "x$ac_new_val"; then
1772 # differences in whitespace do not lead to failure.
1773 ac_old_val_w=`echo x $ac_old_val`
1774 ac_new_val_w=`echo x $ac_new_val`
1775 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1776 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1777 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1778 ac_cache_corrupted=:
1780 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1781 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1782 eval $ac_var=\$ac_old_val
1784 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1785 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1786 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1787 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1790 # Pass precious variables to config.status.
1791 if test "$ac_new_set" = set; then
1793 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1794 *) ac_arg=$ac_var=$ac_new_val ;;
1796 case " $ac_configure_args " in
1797 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1798 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1802 if $ac_cache_corrupted; then
1803 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1804 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1805 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1806 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1807 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1808 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1809 { (exit 1); exit 1; }; }
1829 ac_cpp='$CPP $CPPFLAGS'
1830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1837 # Check whether --with-zlib-prefix was given.
1838 if test "${with_zlib_prefix+set}" = set; then
1839 withval=$with_zlib_prefix; ac_zlib_prefix=$withval
1847 # Check whether --with-libbfd was given.
1848 if test "${with_libbfd+set}" = set; then
1849 withval=$with_libbfd; ac_libbfd=$withval
1857 # Check whether --with-libiberty was given.
1858 if test "${with_libiberty+set}" = set; then
1859 withval=$with_libiberty; ac_libiberty=$withval
1867 # Check whether --with-bfd-include-dir was given.
1868 if test "${with_bfd_include_dir+set}" = set; then
1869 withval=$with_bfd_include_dir; ac_bfd_include_dir=$withval
1871 ac_bfd_include_dir=NONE
1877 # Check whether --with-binutils-include-dir was given.
1878 if test "${with_binutils_include_dir+set}" = set; then
1879 withval=$with_binutils_include_dir; ac_binutils_include_dir=$withval
1881 ac_binutils_include_dir=NONE
1887 # Check whether --with-binutils-ldscript-dir was given.
1888 if test "${with_binutils_ldscript_dir+set}" = set; then
1889 withval=$with_binutils_ldscript_dir; ac_binutils_ldscript_dir=$withval
1891 ac_binutils_ldscript_dir=NONE
1897 # Check whether --with-binutils-build-dir was given.
1898 if test "${with_binutils_build_dir+set}" = set; then
1899 withval=$with_binutils_build_dir; ac_binutils_build_dir=$withval
1901 ac_binutils_build_dir=NONE
1906 # Check whether --enable-ld-elf2flt-binary was given.
1907 if test "${enable_ld_elf2flt_binary+set}" = set; then
1908 enableval=$enable_ld_elf2flt_binary; use_ld_elf2flt_binary=$enableval
1910 use_ld_elf2flt_binary=yes
1916 if eval test \"\$$1\" = yes ; then
1923 # Check whether --enable-got-check was given.
1924 if test "${enable_got_check+set}" = set; then
1925 enableval=$enable_got_check; got_check=$enableval
1931 var_yn_to_10 got_check
1933 # Check whether --enable-emit-relocs was given.
1934 if test "${enable_emit_relocs+set}" = set; then
1935 enableval=$enable_emit_relocs; emit_relocs=$enableval
1941 var_yn_to_10 emit_relocs
1943 # Check whether --enable-emit-ctor-dtor was given.
1944 if test "${enable_emit_ctor_dtor+set}" = set; then
1945 enableval=$enable_emit_ctor_dtor; emit_ctor_dtor=$enableval
1951 var_yn_to_10 emit_ctor_dtor
1953 # Check whether --enable-always-reloc-text was given.
1954 if test "${enable_always_reloc_text+set}" = set; then
1955 enableval=$enable_always_reloc_text; always_reloc_text=$enableval
1959 bfin*) always_reloc_text=yes;;
1960 *) always_reloc_text=no;;
1966 var_yn_to_10 always_reloc_text
1969 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1970 if test -f "$ac_dir/install-sh"; then
1972 ac_install_sh="$ac_aux_dir/install-sh -c"
1974 elif test -f "$ac_dir/install.sh"; then
1976 ac_install_sh="$ac_aux_dir/install.sh -c"
1978 elif test -f "$ac_dir/shtool"; then
1980 ac_install_sh="$ac_aux_dir/shtool install -c"
1984 if test -z "$ac_aux_dir"; then
1985 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1986 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1987 { (exit 1); exit 1; }; }
1990 # These three variables are undocumented and unsupported,
1991 # and are intended to be withdrawn in a future Autoconf release.
1992 # They can cause serious problems if a builder's source tree is in a directory
1993 # whose full name contains unusual characters.
1994 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1995 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1996 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1999 # Make sure we can run config.sub.
2000 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2001 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2002 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2003 { (exit 1); exit 1; }; }
2005 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2006 $as_echo_n "checking build system type... " >&6; }
2007 if test "${ac_cv_build+set}" = set; then
2008 $as_echo_n "(cached) " >&6
2010 ac_build_alias=$build_alias
2011 test "x$ac_build_alias" = x &&
2012 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2013 test "x$ac_build_alias" = x &&
2014 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2015 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2016 { (exit 1); exit 1; }; }
2017 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2018 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2019 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2020 { (exit 1); exit 1; }; }
2023 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2024 $as_echo "$ac_cv_build" >&6; }
2025 case $ac_cv_build in
2027 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2028 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2029 { (exit 1); exit 1; }; };;
2032 ac_save_IFS=$IFS; IFS='-'
2038 # Remember, the first character of IFS is used to create $*,
2039 # except with old shells:
2042 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2045 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2046 $as_echo_n "checking host system type... " >&6; }
2047 if test "${ac_cv_host+set}" = set; then
2048 $as_echo_n "(cached) " >&6
2050 if test "x$host_alias" = x; then
2051 ac_cv_host=$ac_cv_build
2053 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2054 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2055 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2056 { (exit 1); exit 1; }; }
2060 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2061 $as_echo "$ac_cv_host" >&6; }
2064 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2065 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2066 { (exit 1); exit 1; }; };;
2069 ac_save_IFS=$IFS; IFS='-'
2075 # Remember, the first character of IFS is used to create $*,
2076 # except with old shells:
2079 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2082 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2083 $as_echo_n "checking target system type... " >&6; }
2084 if test "${ac_cv_target+set}" = set; then
2085 $as_echo_n "(cached) " >&6
2087 if test "x$target_alias" = x; then
2088 ac_cv_target=$ac_cv_host
2090 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2091 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2092 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2093 { (exit 1); exit 1; }; }
2097 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2098 $as_echo "$ac_cv_target" >&6; }
2099 case $ac_cv_target in
2101 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2102 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2103 { (exit 1); exit 1; }; };;
2105 target=$ac_cv_target
2106 ac_save_IFS=$IFS; IFS='-'
2112 # Remember, the first character of IFS is used to create $*,
2113 # except with old shells:
2116 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2119 # The aliases save the names the user supplied, while $host etc.
2120 # will get canonicalized.
2121 test -n "$target_alias" &&
2122 test "$program_prefix$program_suffix$program_transform_name" = \
2124 program_prefix=${target_alias}-
2127 ac_cpp='$CPP $CPPFLAGS'
2128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2131 if test -n "$ac_tool_prefix"; then
2132 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2133 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2134 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2135 $as_echo_n "checking for $ac_word... " >&6; }
2136 if test "${ac_cv_prog_CC+set}" = set; then
2137 $as_echo_n "(cached) " >&6
2139 if test -n "$CC"; then
2140 ac_cv_prog_CC="$CC" # Let the user override the test.
2142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2146 test -z "$as_dir" && as_dir=.
2147 for ac_exec_ext in '' $ac_executable_extensions; do
2148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2149 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2150 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2160 if test -n "$CC"; then
2161 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2162 $as_echo "$CC" >&6; }
2164 { $as_echo "$as_me:$LINENO: result: no" >&5
2165 $as_echo "no" >&6; }
2170 if test -z "$ac_cv_prog_CC"; then
2172 # Extract the first word of "gcc", so it can be a program name with args.
2173 set dummy gcc; ac_word=$2
2174 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2175 $as_echo_n "checking for $ac_word... " >&6; }
2176 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2177 $as_echo_n "(cached) " >&6
2179 if test -n "$ac_ct_CC"; then
2180 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2186 test -z "$as_dir" && as_dir=.
2187 for ac_exec_ext in '' $ac_executable_extensions; do
2188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2189 ac_cv_prog_ac_ct_CC="gcc"
2190 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2199 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2200 if test -n "$ac_ct_CC"; then
2201 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2202 $as_echo "$ac_ct_CC" >&6; }
2204 { $as_echo "$as_me:$LINENO: result: no" >&5
2205 $as_echo "no" >&6; }
2208 if test "x$ac_ct_CC" = x; then
2211 case $cross_compiling:$ac_tool_warned in
2213 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2215 ac_tool_warned=yes ;;
2223 if test -z "$CC"; then
2224 if test -n "$ac_tool_prefix"; then
2225 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2226 set dummy ${ac_tool_prefix}cc; ac_word=$2
2227 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2228 $as_echo_n "checking for $ac_word... " >&6; }
2229 if test "${ac_cv_prog_CC+set}" = set; then
2230 $as_echo_n "(cached) " >&6
2232 if test -n "$CC"; then
2233 ac_cv_prog_CC="$CC" # Let the user override the test.
2235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2239 test -z "$as_dir" && as_dir=.
2240 for ac_exec_ext in '' $ac_executable_extensions; do
2241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2242 ac_cv_prog_CC="${ac_tool_prefix}cc"
2243 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2253 if test -n "$CC"; then
2254 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2255 $as_echo "$CC" >&6; }
2257 { $as_echo "$as_me:$LINENO: result: no" >&5
2258 $as_echo "no" >&6; }
2264 if test -z "$CC"; then
2265 # Extract the first word of "cc", so it can be a program name with args.
2266 set dummy cc; ac_word=$2
2267 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2268 $as_echo_n "checking for $ac_word... " >&6; }
2269 if test "${ac_cv_prog_CC+set}" = set; then
2270 $as_echo_n "(cached) " >&6
2272 if test -n "$CC"; then
2273 ac_cv_prog_CC="$CC" # Let the user override the test.
2276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280 test -z "$as_dir" && as_dir=.
2281 for ac_exec_ext in '' $ac_executable_extensions; do
2282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2283 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2284 ac_prog_rejected=yes
2288 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2295 if test $ac_prog_rejected = yes; then
2296 # We found a bogon in the path, so make sure we never use it.
2297 set dummy $ac_cv_prog_CC
2299 if test $# != 0; then
2300 # We chose a different compiler from the bogus one.
2301 # However, it has the same basename, so the bogon will be chosen
2302 # first if we set CC to just the basename; use the full file name.
2304 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2310 if test -n "$CC"; then
2311 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2312 $as_echo "$CC" >&6; }
2314 { $as_echo "$as_me:$LINENO: result: no" >&5
2315 $as_echo "no" >&6; }
2320 if test -z "$CC"; then
2321 if test -n "$ac_tool_prefix"; then
2322 for ac_prog in cl.exe
2324 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2325 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2326 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2327 $as_echo_n "checking for $ac_word... " >&6; }
2328 if test "${ac_cv_prog_CC+set}" = set; then
2329 $as_echo_n "(cached) " >&6
2331 if test -n "$CC"; then
2332 ac_cv_prog_CC="$CC" # Let the user override the test.
2334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338 test -z "$as_dir" && as_dir=.
2339 for ac_exec_ext in '' $ac_executable_extensions; do
2340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2341 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2342 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2352 if test -n "$CC"; then
2353 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2354 $as_echo "$CC" >&6; }
2356 { $as_echo "$as_me:$LINENO: result: no" >&5
2357 $as_echo "no" >&6; }
2361 test -n "$CC" && break
2364 if test -z "$CC"; then
2366 for ac_prog in cl.exe
2368 # Extract the first word of "$ac_prog", so it can be a program name with args.
2369 set dummy $ac_prog; ac_word=$2
2370 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2371 $as_echo_n "checking for $ac_word... " >&6; }
2372 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2373 $as_echo_n "(cached) " >&6
2375 if test -n "$ac_ct_CC"; then
2376 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2382 test -z "$as_dir" && as_dir=.
2383 for ac_exec_ext in '' $ac_executable_extensions; do
2384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2385 ac_cv_prog_ac_ct_CC="$ac_prog"
2386 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2395 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2396 if test -n "$ac_ct_CC"; then
2397 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2398 $as_echo "$ac_ct_CC" >&6; }
2400 { $as_echo "$as_me:$LINENO: result: no" >&5
2401 $as_echo "no" >&6; }
2405 test -n "$ac_ct_CC" && break
2408 if test "x$ac_ct_CC" = x; then
2411 case $cross_compiling:$ac_tool_warned in
2413 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2415 ac_tool_warned=yes ;;
2424 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2426 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2427 See \`config.log' for more details." >&5
2428 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2429 See \`config.log' for more details." >&2;}
2430 { (exit 1); exit 1; }; }; }
2432 # Provide some information about the compiler.
2433 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2436 { (ac_try="$ac_compiler --version >&5"
2438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2439 *) ac_try_echo=$ac_try;;
2441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2442 $as_echo "$ac_try_echo") >&5
2443 (eval "$ac_compiler --version >&5") 2>&5
2445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); }
2447 { (ac_try="$ac_compiler -v >&5"
2449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2450 *) ac_try_echo=$ac_try;;
2452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2453 $as_echo "$ac_try_echo") >&5
2454 (eval "$ac_compiler -v >&5") 2>&5
2456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); }
2458 { (ac_try="$ac_compiler -V >&5"
2460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2461 *) ac_try_echo=$ac_try;;
2463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2464 $as_echo "$ac_try_echo") >&5
2465 (eval "$ac_compiler -V >&5") 2>&5
2467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }
2470 cat >conftest.$ac_ext <<_ACEOF
2473 cat confdefs.h >>conftest.$ac_ext
2474 cat >>conftest.$ac_ext <<_ACEOF
2475 /* end confdefs.h. */
2485 ac_clean_files_save=$ac_clean_files
2486 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2487 # Try to create an executable without -o first, disregard a.out.
2488 # It will help us diagnose broken compilers, and finding out an intuition
2490 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2491 $as_echo_n "checking for C compiler default output file name... " >&6; }
2492 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2494 # The possible output files:
2495 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2498 for ac_file in $ac_files
2501 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2502 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2507 if { (ac_try="$ac_link_default"
2509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2510 *) ac_try_echo=$ac_try;;
2512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2513 $as_echo "$ac_try_echo") >&5
2514 (eval "$ac_link_default") 2>&5
2516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); }; then
2518 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2519 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2520 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2521 # so that the user can short-circuit this test for compilers unknown to
2523 for ac_file in $ac_files ''
2525 test -f "$ac_file" || continue
2527 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2530 # We found the default executable, but exeext='' is most
2534 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2536 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2538 # We set ac_cv_exeext here because the later test for it is not
2539 # safe: cross compilers may not add the suffix if given an `-o'
2540 # argument, so we may need to know it at that point already.
2541 # Even if this section looks crufty: it has the advantage of
2548 test "$ac_cv_exeext" = no && ac_cv_exeext=
2554 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2555 $as_echo "$ac_file" >&6; }
2556 if test -z "$ac_file"; then
2557 $as_echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2560 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2562 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2563 See \`config.log' for more details." >&5
2564 $as_echo "$as_me: error: C compiler cannot create executables
2565 See \`config.log' for more details." >&2;}
2566 { (exit 77); exit 77; }; }; }
2569 ac_exeext=$ac_cv_exeext
2571 # Check that the compiler produces executables we can run. If not, either
2572 # the compiler is broken, or we cross compile.
2573 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2574 $as_echo_n "checking whether the C compiler works... " >&6; }
2575 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2576 # If not cross compiling, check that we can run a simple program.
2577 if test "$cross_compiling" != yes; then
2578 if { ac_try='./$ac_file'
2579 { (case "(($ac_try" in
2580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581 *) ac_try_echo=$ac_try;;
2583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2584 $as_echo "$ac_try_echo") >&5
2585 (eval "$ac_try") 2>&5
2587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }; }; then
2591 if test "$cross_compiling" = maybe; then
2594 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2596 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2597 If you meant to cross compile, use \`--host'.
2598 See \`config.log' for more details." >&5
2599 $as_echo "$as_me: error: cannot run C compiled programs.
2600 If you meant to cross compile, use \`--host'.
2601 See \`config.log' for more details." >&2;}
2602 { (exit 1); exit 1; }; }; }
2606 { $as_echo "$as_me:$LINENO: result: yes" >&5
2607 $as_echo "yes" >&6; }
2609 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2610 ac_clean_files=$ac_clean_files_save
2611 # Check that the compiler produces executables we can run. If not, either
2612 # the compiler is broken, or we cross compile.
2613 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2614 $as_echo_n "checking whether we are cross compiling... " >&6; }
2615 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2616 $as_echo "$cross_compiling" >&6; }
2618 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2619 $as_echo_n "checking for suffix of executables... " >&6; }
2620 if { (ac_try="$ac_link"
2622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2623 *) ac_try_echo=$ac_try;;
2625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2626 $as_echo "$ac_try_echo") >&5
2627 (eval "$ac_link") 2>&5
2629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); }; then
2631 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2632 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2633 # work properly (i.e., refer to `conftest.exe'), while it won't with
2635 for ac_file in conftest.exe conftest conftest.*; do
2636 test -f "$ac_file" || continue
2638 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2639 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2645 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2647 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2648 See \`config.log' for more details." >&5
2649 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2650 See \`config.log' for more details." >&2;}
2651 { (exit 1); exit 1; }; }; }
2654 rm -f conftest$ac_cv_exeext
2655 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2656 $as_echo "$ac_cv_exeext" >&6; }
2658 rm -f conftest.$ac_ext
2659 EXEEXT=$ac_cv_exeext
2661 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2662 $as_echo_n "checking for suffix of object files... " >&6; }
2663 if test "${ac_cv_objext+set}" = set; then
2664 $as_echo_n "(cached) " >&6
2666 cat >conftest.$ac_ext <<_ACEOF
2669 cat confdefs.h >>conftest.$ac_ext
2670 cat >>conftest.$ac_ext <<_ACEOF
2671 /* end confdefs.h. */
2681 rm -f conftest.o conftest.obj
2682 if { (ac_try="$ac_compile"
2684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2685 *) ac_try_echo=$ac_try;;
2687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2688 $as_echo "$ac_try_echo") >&5
2689 (eval "$ac_compile") 2>&5
2691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); }; then
2693 for ac_file in conftest.o conftest.obj conftest.*; do
2694 test -f "$ac_file" || continue;
2696 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2697 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2702 $as_echo "$as_me: failed program was:" >&5
2703 sed 's/^/| /' conftest.$ac_ext >&5
2705 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2707 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2708 See \`config.log' for more details." >&5
2709 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2710 See \`config.log' for more details." >&2;}
2711 { (exit 1); exit 1; }; }; }
2714 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2716 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2717 $as_echo "$ac_cv_objext" >&6; }
2718 OBJEXT=$ac_cv_objext
2720 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2721 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2722 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2723 $as_echo_n "(cached) " >&6
2725 cat >conftest.$ac_ext <<_ACEOF
2728 cat confdefs.h >>conftest.$ac_ext
2729 cat >>conftest.$ac_ext <<_ACEOF
2730 /* end confdefs.h. */
2743 rm -f conftest.$ac_objext
2744 if { (ac_try="$ac_compile"
2746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747 *) ac_try_echo=$ac_try;;
2749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2750 $as_echo "$ac_try_echo") >&5
2751 (eval "$ac_compile") 2>conftest.er1
2753 grep -v '^ *+' conftest.er1 >conftest.err
2755 cat conftest.err >&5
2756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); } && {
2758 test -z "$ac_c_werror_flag" ||
2759 test ! -s conftest.err
2760 } && test -s conftest.$ac_objext; then
2763 $as_echo "$as_me: failed program was:" >&5
2764 sed 's/^/| /' conftest.$ac_ext >&5
2769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2770 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2773 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2774 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2775 if test $ac_compiler_gnu = yes; then
2780 ac_test_CFLAGS=${CFLAGS+set}
2781 ac_save_CFLAGS=$CFLAGS
2782 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2783 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2784 if test "${ac_cv_prog_cc_g+set}" = set; then
2785 $as_echo_n "(cached) " >&6
2787 ac_save_c_werror_flag=$ac_c_werror_flag
2788 ac_c_werror_flag=yes
2791 cat >conftest.$ac_ext <<_ACEOF
2794 cat confdefs.h >>conftest.$ac_ext
2795 cat >>conftest.$ac_ext <<_ACEOF
2796 /* end confdefs.h. */
2806 rm -f conftest.$ac_objext
2807 if { (ac_try="$ac_compile"
2809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2810 *) ac_try_echo=$ac_try;;
2812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2813 $as_echo "$ac_try_echo") >&5
2814 (eval "$ac_compile") 2>conftest.er1
2816 grep -v '^ *+' conftest.er1 >conftest.err
2818 cat conftest.err >&5
2819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); } && {
2821 test -z "$ac_c_werror_flag" ||
2822 test ! -s conftest.err
2823 } && test -s conftest.$ac_objext; then
2826 $as_echo "$as_me: failed program was:" >&5
2827 sed 's/^/| /' conftest.$ac_ext >&5
2830 cat >conftest.$ac_ext <<_ACEOF
2833 cat confdefs.h >>conftest.$ac_ext
2834 cat >>conftest.$ac_ext <<_ACEOF
2835 /* end confdefs.h. */
2845 rm -f conftest.$ac_objext
2846 if { (ac_try="$ac_compile"
2848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2849 *) ac_try_echo=$ac_try;;
2851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2852 $as_echo "$ac_try_echo") >&5
2853 (eval "$ac_compile") 2>conftest.er1
2855 grep -v '^ *+' conftest.er1 >conftest.err
2857 cat conftest.err >&5
2858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); } && {
2860 test -z "$ac_c_werror_flag" ||
2861 test ! -s conftest.err
2862 } && test -s conftest.$ac_objext; then
2865 $as_echo "$as_me: failed program was:" >&5
2866 sed 's/^/| /' conftest.$ac_ext >&5
2868 ac_c_werror_flag=$ac_save_c_werror_flag
2870 cat >conftest.$ac_ext <<_ACEOF
2873 cat confdefs.h >>conftest.$ac_ext
2874 cat >>conftest.$ac_ext <<_ACEOF
2875 /* end confdefs.h. */
2885 rm -f conftest.$ac_objext
2886 if { (ac_try="$ac_compile"
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2892 $as_echo "$ac_try_echo") >&5
2893 (eval "$ac_compile") 2>conftest.er1
2895 grep -v '^ *+' conftest.er1 >conftest.err
2897 cat conftest.err >&5
2898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); } && {
2900 test -z "$ac_c_werror_flag" ||
2901 test ! -s conftest.err
2902 } && test -s conftest.$ac_objext; then
2905 $as_echo "$as_me: failed program was:" >&5
2906 sed 's/^/| /' conftest.$ac_ext >&5
2911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2918 ac_c_werror_flag=$ac_save_c_werror_flag
2920 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2921 $as_echo "$ac_cv_prog_cc_g" >&6; }
2922 if test "$ac_test_CFLAGS" = set; then
2923 CFLAGS=$ac_save_CFLAGS
2924 elif test $ac_cv_prog_cc_g = yes; then
2925 if test "$GCC" = yes; then
2931 if test "$GCC" = yes; then
2937 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2938 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2939 if test "${ac_cv_prog_cc_c89+set}" = set; then
2940 $as_echo_n "(cached) " >&6
2942 ac_cv_prog_cc_c89=no
2944 cat >conftest.$ac_ext <<_ACEOF
2947 cat confdefs.h >>conftest.$ac_ext
2948 cat >>conftest.$ac_ext <<_ACEOF
2949 /* end confdefs.h. */
2952 #include <sys/types.h>
2953 #include <sys/stat.h>
2954 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2955 struct buf { int x; };
2956 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2957 static char *e (p, i)
2963 static char *f (char * (*g) (char **, int), char **p, ...)
2968 s = g (p, va_arg (v,int));
2973 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2974 function prototypes and stuff, but not '\xHH' hex character constants.
2975 These don't provoke an error unfortunately, instead are silently treated
2976 as 'x'. The following induces an error, until -std is added to get
2977 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2978 array size at least. It's necessary to write '\x00'==0 to get something
2979 that's true only with -std. */
2980 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2982 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2983 inside strings and character constants. */
2985 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2987 int test (int i, double x);
2988 struct s1 {int (*f) (int a);};
2989 struct s2 {int (*f) (double a);};
2990 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2996 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3001 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3002 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3004 CC="$ac_save_CC $ac_arg"
3005 rm -f conftest.$ac_objext
3006 if { (ac_try="$ac_compile"
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3012 $as_echo "$ac_try_echo") >&5
3013 (eval "$ac_compile") 2>conftest.er1
3015 grep -v '^ *+' conftest.er1 >conftest.err
3017 cat conftest.err >&5
3018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); } && {
3020 test -z "$ac_c_werror_flag" ||
3021 test ! -s conftest.err
3022 } && test -s conftest.$ac_objext; then
3023 ac_cv_prog_cc_c89=$ac_arg
3025 $as_echo "$as_me: failed program was:" >&5
3026 sed 's/^/| /' conftest.$ac_ext >&5
3031 rm -f core conftest.err conftest.$ac_objext
3032 test "x$ac_cv_prog_cc_c89" != "xno" && break
3034 rm -f conftest.$ac_ext
3039 case "x$ac_cv_prog_cc_c89" in
3041 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3042 $as_echo "none needed" >&6; } ;;
3044 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3045 $as_echo "unsupported" >&6; } ;;
3047 CC="$CC $ac_cv_prog_cc_c89"
3048 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3049 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3054 ac_cpp='$CPP $CPPFLAGS'
3055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3061 ac_cpp='$CPP $CPPFLAGS'
3062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3065 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3066 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3067 # On Suns, sometimes $CPP names a directory.
3068 if test -n "$CPP" && test -d "$CPP"; then
3071 if test -z "$CPP"; then
3072 if test "${ac_cv_prog_CPP+set}" = set; then
3073 $as_echo_n "(cached) " >&6
3075 # Double quotes because CPP needs to be expanded
3076 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3079 for ac_c_preproc_warn_flag in '' yes
3081 # Use a header file that comes with gcc, so configuring glibc
3082 # with a fresh cross-compiler works.
3083 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3084 # <limits.h> exists even on freestanding compilers.
3085 # On the NeXT, cc -E runs the code through the compiler's parser,
3086 # not just through cpp. "Syntax error" is here to catch this case.
3087 cat >conftest.$ac_ext <<_ACEOF
3090 cat confdefs.h >>conftest.$ac_ext
3091 cat >>conftest.$ac_ext <<_ACEOF
3092 /* end confdefs.h. */
3094 # include <limits.h>
3096 # include <assert.h>
3100 if { (ac_try="$ac_cpp conftest.$ac_ext"
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3106 $as_echo "$ac_try_echo") >&5
3107 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3109 grep -v '^ *+' conftest.er1 >conftest.err
3111 cat conftest.err >&5
3112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); } >/dev/null && {
3114 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3115 test ! -s conftest.err
3119 $as_echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.$ac_ext >&5
3122 # Broken: fails on valid input.
3126 rm -f conftest.err conftest.$ac_ext
3128 # OK, works on sane cases. Now check whether nonexistent headers
3129 # can be detected and how.
3130 cat >conftest.$ac_ext <<_ACEOF
3133 cat confdefs.h >>conftest.$ac_ext
3134 cat >>conftest.$ac_ext <<_ACEOF
3135 /* end confdefs.h. */
3136 #include <ac_nonexistent.h>
3138 if { (ac_try="$ac_cpp conftest.$ac_ext"
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3144 $as_echo "$ac_try_echo") >&5
3145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3147 grep -v '^ *+' conftest.er1 >conftest.err
3149 cat conftest.err >&5
3150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); } >/dev/null && {
3152 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3153 test ! -s conftest.err
3155 # Broken: success on invalid input.
3158 $as_echo "$as_me: failed program was:" >&5
3159 sed 's/^/| /' conftest.$ac_ext >&5
3161 # Passes both tests.
3166 rm -f conftest.err conftest.$ac_ext
3169 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3170 rm -f conftest.err conftest.$ac_ext
3171 if $ac_preproc_ok; then
3183 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3184 $as_echo "$CPP" >&6; }
3186 for ac_c_preproc_warn_flag in '' yes
3188 # Use a header file that comes with gcc, so configuring glibc
3189 # with a fresh cross-compiler works.
3190 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3191 # <limits.h> exists even on freestanding compilers.
3192 # On the NeXT, cc -E runs the code through the compiler's parser,
3193 # not just through cpp. "Syntax error" is here to catch this case.
3194 cat >conftest.$ac_ext <<_ACEOF
3197 cat confdefs.h >>conftest.$ac_ext
3198 cat >>conftest.$ac_ext <<_ACEOF
3199 /* end confdefs.h. */
3201 # include <limits.h>
3203 # include <assert.h>
3207 if { (ac_try="$ac_cpp conftest.$ac_ext"
3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3213 $as_echo "$ac_try_echo") >&5
3214 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3216 grep -v '^ *+' conftest.er1 >conftest.err
3218 cat conftest.err >&5
3219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); } >/dev/null && {
3221 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3222 test ! -s conftest.err
3226 $as_echo "$as_me: failed program was:" >&5
3227 sed 's/^/| /' conftest.$ac_ext >&5
3229 # Broken: fails on valid input.
3233 rm -f conftest.err conftest.$ac_ext
3235 # OK, works on sane cases. Now check whether nonexistent headers
3236 # can be detected and how.
3237 cat >conftest.$ac_ext <<_ACEOF
3240 cat confdefs.h >>conftest.$ac_ext
3241 cat >>conftest.$ac_ext <<_ACEOF
3242 /* end confdefs.h. */
3243 #include <ac_nonexistent.h>
3245 if { (ac_try="$ac_cpp conftest.$ac_ext"
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3251 $as_echo "$ac_try_echo") >&5
3252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3254 grep -v '^ *+' conftest.er1 >conftest.err
3256 cat conftest.err >&5
3257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); } >/dev/null && {
3259 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3260 test ! -s conftest.err
3262 # Broken: success on invalid input.
3265 $as_echo "$as_me: failed program was:" >&5
3266 sed 's/^/| /' conftest.$ac_ext >&5
3268 # Passes both tests.
3273 rm -f conftest.err conftest.$ac_ext
3276 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3277 rm -f conftest.err conftest.$ac_ext
3278 if $ac_preproc_ok; then
3281 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3283 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3284 See \`config.log' for more details." >&5
3285 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3286 See \`config.log' for more details." >&2;}
3287 { (exit 1); exit 1; }; }; }
3291 ac_cpp='$CPP $CPPFLAGS'
3292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3297 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3298 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3299 if test "${ac_cv_path_GREP+set}" = set; then
3300 $as_echo_n "(cached) " >&6
3302 if test -z "$GREP"; then
3303 ac_path_GREP_found=false
3304 # Loop through the user's path and test for each of PROGNAME-LIST
3305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3309 test -z "$as_dir" && as_dir=.
3310 for ac_prog in grep ggrep; do
3311 for ac_exec_ext in '' $ac_executable_extensions; do
3312 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3313 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3314 # Check for GNU ac_path_GREP and select it if it is found.
3315 # Check for GNU $ac_path_GREP
3316 case `"$ac_path_GREP" --version 2>&1` in
3318 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3321 $as_echo_n 0123456789 >"conftest.in"
3324 cat "conftest.in" "conftest.in" >"conftest.tmp"
3325 mv "conftest.tmp" "conftest.in"
3326 cp "conftest.in" "conftest.nl"
3327 $as_echo 'GREP' >> "conftest.nl"
3328 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3329 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3330 ac_count=`expr $ac_count + 1`
3331 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3332 # Best one so far, save it but keep looking for a better one
3333 ac_cv_path_GREP="$ac_path_GREP"
3334 ac_path_GREP_max=$ac_count
3336 # 10*(2^10) chars as input seems more than enough
3337 test $ac_count -gt 10 && break
3339 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3342 $ac_path_GREP_found && break 3
3347 if test -z "$ac_cv_path_GREP"; then
3348 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3349 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3350 { (exit 1); exit 1; }; }
3353 ac_cv_path_GREP=$GREP
3357 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3358 $as_echo "$ac_cv_path_GREP" >&6; }
3359 GREP="$ac_cv_path_GREP"
3362 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3363 $as_echo_n "checking for egrep... " >&6; }
3364 if test "${ac_cv_path_EGREP+set}" = set; then
3365 $as_echo_n "(cached) " >&6
3367 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3368 then ac_cv_path_EGREP="$GREP -E"
3370 if test -z "$EGREP"; then
3371 ac_path_EGREP_found=false
3372 # Loop through the user's path and test for each of PROGNAME-LIST
3373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3377 test -z "$as_dir" && as_dir=.
3378 for ac_prog in egrep; do
3379 for ac_exec_ext in '' $ac_executable_extensions; do
3380 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3381 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3382 # Check for GNU ac_path_EGREP and select it if it is found.
3383 # Check for GNU $ac_path_EGREP
3384 case `"$ac_path_EGREP" --version 2>&1` in
3386 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3389 $as_echo_n 0123456789 >"conftest.in"
3392 cat "conftest.in" "conftest.in" >"conftest.tmp"
3393 mv "conftest.tmp" "conftest.in"
3394 cp "conftest.in" "conftest.nl"
3395 $as_echo 'EGREP' >> "conftest.nl"
3396 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3397 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3398 ac_count=`expr $ac_count + 1`
3399 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3400 # Best one so far, save it but keep looking for a better one
3401 ac_cv_path_EGREP="$ac_path_EGREP"
3402 ac_path_EGREP_max=$ac_count
3404 # 10*(2^10) chars as input seems more than enough
3405 test $ac_count -gt 10 && break
3407 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3410 $ac_path_EGREP_found && break 3
3415 if test -z "$ac_cv_path_EGREP"; then
3416 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3417 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3418 { (exit 1); exit 1; }; }
3421 ac_cv_path_EGREP=$EGREP
3426 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3427 $as_echo "$ac_cv_path_EGREP" >&6; }
3428 EGREP="$ac_cv_path_EGREP"
3431 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3432 $as_echo_n "checking for ANSI C header files... " >&6; }
3433 if test "${ac_cv_header_stdc+set}" = set; then
3434 $as_echo_n "(cached) " >&6
3436 cat >conftest.$ac_ext <<_ACEOF
3439 cat confdefs.h >>conftest.$ac_ext
3440 cat >>conftest.$ac_ext <<_ACEOF
3441 /* end confdefs.h. */
3455 rm -f conftest.$ac_objext
3456 if { (ac_try="$ac_compile"
3458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459 *) ac_try_echo=$ac_try;;
3461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3462 $as_echo "$ac_try_echo") >&5
3463 (eval "$ac_compile") 2>conftest.er1
3465 grep -v '^ *+' conftest.er1 >conftest.err
3467 cat conftest.err >&5
3468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); } && {
3470 test -z "$ac_c_werror_flag" ||
3471 test ! -s conftest.err
3472 } && test -s conftest.$ac_objext; then
3473 ac_cv_header_stdc=yes
3475 $as_echo "$as_me: failed program was:" >&5
3476 sed 's/^/| /' conftest.$ac_ext >&5
3478 ac_cv_header_stdc=no
3481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3483 if test $ac_cv_header_stdc = yes; then
3484 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3485 cat >conftest.$ac_ext <<_ACEOF
3488 cat confdefs.h >>conftest.$ac_ext
3489 cat >>conftest.$ac_ext <<_ACEOF
3490 /* end confdefs.h. */
3494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3495 $EGREP "memchr" >/dev/null 2>&1; then
3498 ac_cv_header_stdc=no
3504 if test $ac_cv_header_stdc = yes; then
3505 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3506 cat >conftest.$ac_ext <<_ACEOF
3509 cat confdefs.h >>conftest.$ac_ext
3510 cat >>conftest.$ac_ext <<_ACEOF
3511 /* end confdefs.h. */
3515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3516 $EGREP "free" >/dev/null 2>&1; then
3519 ac_cv_header_stdc=no
3525 if test $ac_cv_header_stdc = yes; then
3526 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3527 if test "$cross_compiling" = yes; then
3530 cat >conftest.$ac_ext <<_ACEOF
3533 cat confdefs.h >>conftest.$ac_ext
3534 cat >>conftest.$ac_ext <<_ACEOF
3535 /* end confdefs.h. */
3538 #if ((' ' & 0x0FF) == 0x020)
3539 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3540 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3542 # define ISLOWER(c) \
3543 (('a' <= (c) && (c) <= 'i') \
3544 || ('j' <= (c) && (c) <= 'r') \
3545 || ('s' <= (c) && (c) <= 'z'))
3546 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3549 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3554 for (i = 0; i < 256; i++)
3555 if (XOR (islower (i), ISLOWER (i))
3556 || toupper (i) != TOUPPER (i))
3561 rm -f conftest$ac_exeext
3562 if { (ac_try="$ac_link"
3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565 *) ac_try_echo=$ac_try;;
3567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3568 $as_echo "$ac_try_echo") >&5
3569 (eval "$ac_link") 2>&5
3571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3573 { (case "(($ac_try" in
3574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575 *) ac_try_echo=$ac_try;;
3577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3578 $as_echo "$ac_try_echo") >&5
3579 (eval "$ac_try") 2>&5
3581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); }; }; then
3585 $as_echo "$as_me: program exited with status $ac_status" >&5
3586 $as_echo "$as_me: failed program was:" >&5
3587 sed 's/^/| /' conftest.$ac_ext >&5
3590 ac_cv_header_stdc=no
3592 rm -rf conftest.dSYM
3593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3599 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3600 $as_echo "$ac_cv_header_stdc" >&6; }
3601 if test $ac_cv_header_stdc = yes; then
3603 cat >>confdefs.h <<\_ACEOF
3604 #define STDC_HEADERS 1
3609 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3619 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3620 inttypes.h stdint.h unistd.h
3622 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3623 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3624 $as_echo_n "checking for $ac_header... " >&6; }
3625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3626 $as_echo_n "(cached) " >&6
3628 cat >conftest.$ac_ext <<_ACEOF
3631 cat confdefs.h >>conftest.$ac_ext
3632 cat >>conftest.$ac_ext <<_ACEOF
3633 /* end confdefs.h. */
3634 $ac_includes_default
3636 #include <$ac_header>
3638 rm -f conftest.$ac_objext
3639 if { (ac_try="$ac_compile"
3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642 *) ac_try_echo=$ac_try;;
3644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3645 $as_echo "$ac_try_echo") >&5
3646 (eval "$ac_compile") 2>conftest.er1
3648 grep -v '^ *+' conftest.er1 >conftest.err
3650 cat conftest.err >&5
3651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); } && {
3653 test -z "$ac_c_werror_flag" ||
3654 test ! -s conftest.err
3655 } && test -s conftest.$ac_objext; then
3656 eval "$as_ac_Header=yes"
3658 $as_echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3661 eval "$as_ac_Header=no"
3664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3666 ac_res=`eval 'as_val=${'$as_ac_Header'}
3667 $as_echo "$as_val"'`
3668 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3669 $as_echo "$ac_res" >&6; }
3670 as_val=`eval 'as_val=${'$as_ac_Header'}
3671 $as_echo "$as_val"'`
3672 if test "x$as_val" = x""yes; then
3673 cat >>confdefs.h <<_ACEOF
3674 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3683 if test "${ac_cv_header_minix_config_h+set}" = set; then
3684 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3685 $as_echo_n "checking for minix/config.h... " >&6; }
3686 if test "${ac_cv_header_minix_config_h+set}" = set; then
3687 $as_echo_n "(cached) " >&6
3689 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3690 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3692 # Is the header compilable?
3693 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3694 $as_echo_n "checking minix/config.h usability... " >&6; }
3695 cat >conftest.$ac_ext <<_ACEOF
3698 cat confdefs.h >>conftest.$ac_ext
3699 cat >>conftest.$ac_ext <<_ACEOF
3700 /* end confdefs.h. */
3701 $ac_includes_default
3702 #include <minix/config.h>
3704 rm -f conftest.$ac_objext
3705 if { (ac_try="$ac_compile"
3707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708 *) ac_try_echo=$ac_try;;
3710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3711 $as_echo "$ac_try_echo") >&5
3712 (eval "$ac_compile") 2>conftest.er1
3714 grep -v '^ *+' conftest.er1 >conftest.err
3716 cat conftest.err >&5
3717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); } && {
3719 test -z "$ac_c_werror_flag" ||
3720 test ! -s conftest.err
3721 } && test -s conftest.$ac_objext; then
3722 ac_header_compiler=yes
3724 $as_echo "$as_me: failed program was:" >&5
3725 sed 's/^/| /' conftest.$ac_ext >&5
3727 ac_header_compiler=no
3730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3731 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3732 $as_echo "$ac_header_compiler" >&6; }
3734 # Is the header present?
3735 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3736 $as_echo_n "checking minix/config.h presence... " >&6; }
3737 cat >conftest.$ac_ext <<_ACEOF
3740 cat confdefs.h >>conftest.$ac_ext
3741 cat >>conftest.$ac_ext <<_ACEOF
3742 /* end confdefs.h. */
3743 #include <minix/config.h>
3745 if { (ac_try="$ac_cpp conftest.$ac_ext"
3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748 *) ac_try_echo=$ac_try;;
3750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3751 $as_echo "$ac_try_echo") >&5
3752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3754 grep -v '^ *+' conftest.er1 >conftest.err
3756 cat conftest.err >&5
3757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); } >/dev/null && {
3759 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3760 test ! -s conftest.err
3762 ac_header_preproc=yes
3764 $as_echo "$as_me: failed program was:" >&5
3765 sed 's/^/| /' conftest.$ac_ext >&5
3767 ac_header_preproc=no
3770 rm -f conftest.err conftest.$ac_ext
3771 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3772 $as_echo "$ac_header_preproc" >&6; }
3774 # So? What about this header?
3775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3777 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3778 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3779 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3780 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3781 ac_header_preproc=yes
3784 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3785 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3786 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3787 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3788 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3789 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3790 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3791 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3792 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3793 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3794 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3795 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3799 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3800 $as_echo_n "checking for minix/config.h... " >&6; }
3801 if test "${ac_cv_header_minix_config_h+set}" = set; then
3802 $as_echo_n "(cached) " >&6
3804 ac_cv_header_minix_config_h=$ac_header_preproc
3806 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3807 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3810 if test "x$ac_cv_header_minix_config_h" = x""yes; then
3817 if test "$MINIX" = yes; then
3819 cat >>confdefs.h <<\_ACEOF
3820 #define _POSIX_SOURCE 1
3824 cat >>confdefs.h <<\_ACEOF
3825 #define _POSIX_1_SOURCE 2
3829 cat >>confdefs.h <<\_ACEOF
3837 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3838 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3839 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3840 $as_echo_n "(cached) " >&6
3842 cat >conftest.$ac_ext <<_ACEOF
3845 cat confdefs.h >>conftest.$ac_ext
3846 cat >>conftest.$ac_ext <<_ACEOF
3847 /* end confdefs.h. */
3849 # define __EXTENSIONS__ 1
3850 $ac_includes_default
3859 rm -f conftest.$ac_objext
3860 if { (ac_try="$ac_compile"
3862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3863 *) ac_try_echo=$ac_try;;
3865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3866 $as_echo "$ac_try_echo") >&5
3867 (eval "$ac_compile") 2>conftest.er1
3869 grep -v '^ *+' conftest.er1 >conftest.err
3871 cat conftest.err >&5
3872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); } && {
3874 test -z "$ac_c_werror_flag" ||
3875 test ! -s conftest.err
3876 } && test -s conftest.$ac_objext; then
3877 ac_cv_safe_to_define___extensions__=yes
3879 $as_echo "$as_me: failed program was:" >&5
3880 sed 's/^/| /' conftest.$ac_ext >&5
3882 ac_cv_safe_to_define___extensions__=no
3885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3887 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3888 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3889 test $ac_cv_safe_to_define___extensions__ = yes &&
3890 cat >>confdefs.h <<\_ACEOF
3891 #define __EXTENSIONS__ 1
3894 cat >>confdefs.h <<\_ACEOF
3895 #define _ALL_SOURCE 1
3898 cat >>confdefs.h <<\_ACEOF
3899 #define _GNU_SOURCE 1
3902 cat >>confdefs.h <<\_ACEOF
3903 #define _POSIX_PTHREAD_SEMANTICS 1
3906 cat >>confdefs.h <<\_ACEOF
3907 #define _TANDEM_SOURCE 1
3911 # Find a good install program. We prefer a C program (faster),
3912 # so one script is as good as another. But avoid the broken or
3913 # incompatible versions:
3914 # SysV /etc/install, /usr/sbin/install
3915 # SunOS /usr/etc/install
3916 # IRIX /sbin/install
3918 # AmigaOS /C/install, which installs bootblocks on floppy discs
3919 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3920 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3921 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3922 # OS/2's system install, which has a completely different semantic
3923 # ./install, which can be erroneously created by make from ./install.sh.
3924 # Reject install programs that cannot install multiple files.
3925 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3926 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3927 if test -z "$INSTALL"; then
3928 if test "${ac_cv_path_install+set}" = set; then
3929 $as_echo_n "(cached) " >&6
3931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3935 test -z "$as_dir" && as_dir=.
3936 # Account for people who put trailing slashes in PATH elements.
3938 ./ | .// | /cC/* | \
3939 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3940 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3943 # OSF1 and SCO ODT 3.0 have their own names for install.
3944 # Don't use installbsd from OSF since it installs stuff as root
3946 for ac_prog in ginstall scoinst install; do
3947 for ac_exec_ext in '' $ac_executable_extensions; do
3948 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3949 if test $ac_prog = install &&
3950 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3951 # AIX install. It has an incompatible calling convention.
3953 elif test $ac_prog = install &&
3954 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3955 # program-specific install script used by HP pwplus--don't use.
3958 rm -rf conftest.one conftest.two conftest.dir
3959 echo one > conftest.one
3960 echo two > conftest.two
3962 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3963 test -s conftest.one && test -s conftest.two &&
3964 test -s conftest.dir/conftest.one &&
3965 test -s conftest.dir/conftest.two
3967 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3980 rm -rf conftest.one conftest.two conftest.dir
3983 if test "${ac_cv_path_install+set}" = set; then
3984 INSTALL=$ac_cv_path_install
3986 # As a last resort, use the slow shell script. Don't cache a
3987 # value for INSTALL within a source directory, because that will
3988 # break other packages using the cache if that directory is
3989 # removed, or if the value is a relative name.
3990 INSTALL=$ac_install_sh
3993 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3994 $as_echo "$INSTALL" >&6; }
3996 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3997 # It thinks the first close brace ends the variable substitution.
3998 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4000 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4002 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4005 if test "$ac_binutils_build_dir" != "NONE"; then
4006 test "$ac_libbfd" = "NONE" && ac_libbfd="$ac_binutils_build_dir/bfd/libbfd.a"
4007 test "$ac_libiberty" = "NONE" && ac_libiberty="$ac_binutils_build_dir/libiberty/libiberty.a"
4008 test "$ac_bfd_include_dir" = "NONE" && ac_bfd_include_dir="$ac_binutils_build_dir/bfd"
4009 test "$ac_binutils_include_dir" = "NONE" && ac_binutils_include_dir="$ac_binutils_build_dir/include"
4012 if test "$ac_libiberty" = "NONE"; then
4014 { $as_echo "$as_me:$LINENO: checking for objalloc_create in -liberty" >&5
4015 $as_echo_n "checking for objalloc_create in -liberty... " >&6; }
4016 if test "${ac_cv_lib_iberty_objalloc_create+set}" = set; then
4017 $as_echo_n "(cached) " >&6
4019 ac_check_lib_save_LIBS=$LIBS
4020 LIBS="-liberty $LIBS"
4021 cat >conftest.$ac_ext <<_ACEOF
4024 cat confdefs.h >>conftest.$ac_ext
4025 cat >>conftest.$ac_ext <<_ACEOF
4026 /* end confdefs.h. */
4028 /* Override any GCC internal prototype to avoid an error.
4029 Use char because int might match the return type of a GCC
4030 builtin and then its argument prototype would still apply. */
4034 char objalloc_create ();
4038 return objalloc_create ();
4043 rm -f conftest.$ac_objext conftest$ac_exeext
4044 if { (ac_try="$ac_link"
4046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4047 *) ac_try_echo=$ac_try;;
4049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4050 $as_echo "$ac_try_echo") >&5
4051 (eval "$ac_link") 2>conftest.er1
4053 grep -v '^ *+' conftest.er1 >conftest.err
4055 cat conftest.err >&5
4056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); } && {
4058 test -z "$ac_c_werror_flag" ||
4059 test ! -s conftest.err
4060 } && test -s conftest$ac_exeext && {
4061 test "$cross_compiling" = yes ||
4062 $as_test_x conftest$ac_exeext
4064 ac_cv_lib_iberty_objalloc_create=yes
4066 $as_echo "$as_me: failed program was:" >&5
4067 sed 's/^/| /' conftest.$ac_ext >&5
4069 ac_cv_lib_iberty_objalloc_create=no
4072 rm -rf conftest.dSYM
4073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4074 conftest$ac_exeext conftest.$ac_ext
4075 LIBS=$ac_check_lib_save_LIBS
4077 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_iberty_objalloc_create" >&5
4078 $as_echo "$ac_cv_lib_iberty_objalloc_create" >&6; }
4079 if test "x$ac_cv_lib_iberty_objalloc_create" = x""yes; then
4080 cat >>confdefs.h <<_ACEOF
4081 #define HAVE_LIBIBERTY 1
4084 LIBS="-liberty $LIBS"
4090 LIBS="$ac_libiberty $LIBS"
4092 if test "$ac_libbfd" = "NONE"; then
4094 { $as_echo "$as_me:$LINENO: checking for bfd_openr in -lbfd" >&5
4095 $as_echo_n "checking for bfd_openr in -lbfd... " >&6; }
4096 if test "${ac_cv_lib_bfd_bfd_openr+set}" = set; then
4097 $as_echo_n "(cached) " >&6
4099 ac_check_lib_save_LIBS=$LIBS
4101 cat >conftest.$ac_ext <<_ACEOF
4104 cat confdefs.h >>conftest.$ac_ext
4105 cat >>conftest.$ac_ext <<_ACEOF
4106 /* end confdefs.h. */
4108 /* Override any GCC internal prototype to avoid an error.
4109 Use char because int might match the return type of a GCC
4110 builtin and then its argument prototype would still apply. */
4118 return bfd_openr ();
4123 rm -f conftest.$ac_objext conftest$ac_exeext
4124 if { (ac_try="$ac_link"
4126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4127 *) ac_try_echo=$ac_try;;
4129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4130 $as_echo "$ac_try_echo") >&5
4131 (eval "$ac_link") 2>conftest.er1
4133 grep -v '^ *+' conftest.er1 >conftest.err
4135 cat conftest.err >&5
4136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); } && {
4138 test -z "$ac_c_werror_flag" ||
4139 test ! -s conftest.err
4140 } && test -s conftest$ac_exeext && {
4141 test "$cross_compiling" = yes ||
4142 $as_test_x conftest$ac_exeext
4144 ac_cv_lib_bfd_bfd_openr=yes
4146 $as_echo "$as_me: failed program was:" >&5
4147 sed 's/^/| /' conftest.$ac_ext >&5
4149 ac_cv_lib_bfd_bfd_openr=no
4152 rm -rf conftest.dSYM
4153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4154 conftest$ac_exeext conftest.$ac_ext
4155 LIBS=$ac_check_lib_save_LIBS
4157 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bfd_bfd_openr" >&5
4158 $as_echo "$ac_cv_lib_bfd_bfd_openr" >&6; }
4159 if test "x$ac_cv_lib_bfd_bfd_openr" = x""yes; then
4160 cat >>confdefs.h <<_ACEOF
4161 #define HAVE_LIBBFD 1
4170 LIBS="$ac_libbfd $LIBS"
4172 if test "$ac_zlib_prefix" = "NONE"; then
4174 { $as_echo "$as_me:$LINENO: checking for deflate in -lz" >&5
4175 $as_echo_n "checking for deflate in -lz... " >&6; }
4176 if test "${ac_cv_lib_z_deflate+set}" = set; then
4177 $as_echo_n "(cached) " >&6
4179 ac_check_lib_save_LIBS=$LIBS
4181 cat >conftest.$ac_ext <<_ACEOF
4184 cat confdefs.h >>conftest.$ac_ext
4185 cat >>conftest.$ac_ext <<_ACEOF
4186 /* end confdefs.h. */
4188 /* Override any GCC internal prototype to avoid an error.
4189 Use char because int might match the return type of a GCC
4190 builtin and then its argument prototype would still apply. */
4203 rm -f conftest.$ac_objext conftest$ac_exeext
4204 if { (ac_try="$ac_link"
4206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4207 *) ac_try_echo=$ac_try;;
4209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4210 $as_echo "$ac_try_echo") >&5
4211 (eval "$ac_link") 2>conftest.er1
4213 grep -v '^ *+' conftest.er1 >conftest.err
4215 cat conftest.err >&5
4216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); } && {
4218 test -z "$ac_c_werror_flag" ||
4219 test ! -s conftest.err
4220 } && test -s conftest$ac_exeext && {
4221 test "$cross_compiling" = yes ||
4222 $as_test_x conftest$ac_exeext
4224 ac_cv_lib_z_deflate=yes
4226 $as_echo "$as_me: failed program was:" >&5
4227 sed 's/^/| /' conftest.$ac_ext >&5
4229 ac_cv_lib_z_deflate=no
4232 rm -rf conftest.dSYM
4233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4234 conftest$ac_exeext conftest.$ac_ext
4235 LIBS=$ac_check_lib_save_LIBS
4237 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
4238 $as_echo "$ac_cv_lib_z_deflate" >&6; }
4239 if test "x$ac_cv_lib_z_deflate" = x""yes; then
4240 cat >>confdefs.h <<_ACEOF
4249 LIBS="-L$ac_zlib_prefix/lib -lz $LIBS"
4253 if test "$ac_bfd_include_dir" != "NONE"; then
4254 bfd_include_dir="-I$ac_bfd_include_dir"
4257 binutils_include_dir=
4258 if test "$ac_binutils_include_dir" != "NONE"; then
4259 binutils_include_dir="-I$ac_binutils_include_dir"
4263 if test "$ac_zlib_prefix" != "NONE"; then
4264 zlib_include_dir="-I$ac_zlib_prefix/include"
4267 binutils_ldscript_dir=
4268 if test "$ac_binutils_ldscript_dir" = "NONE"; then
4269 ac_binutils_ldscript_dir="\${TOOLDIR}/../${target_alias}/lib"
4271 binutils_ldscript_dir="$ac_binutils_ldscript_dir"
4273 if test "$ac_libbfd" = "NONE" -o "$ac_libiberty" = "NONE" ; then
4274 { { $as_echo "$as_me:$LINENO: error:
4276 You need to specify the location of the libfd.a and libiberty.a
4277 host libraries from the binutils package.
4279 Run configure again specifying these options:
4281 ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>
4283 $as_echo "$as_me: error:
4285 You need to specify the location of the libfd.a and libiberty.a
4286 host libraries from the binutils package.
4288 Run configure again specifying these options:
4290 ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>
4292 { (exit 1); exit 1; }; }
4295 if test "$ac_bfd_include_dir" = "NONE" ; then
4296 { { $as_echo "$as_me:$LINENO: error:
4298 You need to specify the location of the bfd.h header from a
4299 configured/compiled version of the binutils package for your target.
4300 Without this your elf2flt may crash as it will try to use the
4301 systems bfd.h which may be from a different binutils package.
4303 Run configure again specifying these options:
4305 ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>
4307 $as_echo "$as_me: error:
4309 You need to specify the location of the bfd.h header from a
4310 configured/compiled version of the binutils package for your target.
4311 Without this your elf2flt may crash as it will try to use the
4312 systems bfd.h which may be from a different binutils package.
4314 Run configure again specifying these options:
4316 ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>
4318 { (exit 1); exit 1; }; }
4328 { $as_echo "$as_me:$LINENO: checking for malloc in -lc" >&5
4329 $as_echo_n "checking for malloc in -lc... " >&6; }
4330 if test "${ac_cv_lib_c_malloc+set}" = set; then
4331 $as_echo_n "(cached) " >&6
4333 ac_check_lib_save_LIBS=$LIBS
4335 cat >conftest.$ac_ext <<_ACEOF
4338 cat confdefs.h >>conftest.$ac_ext
4339 cat >>conftest.$ac_ext <<_ACEOF
4340 /* end confdefs.h. */
4342 /* Override any GCC internal prototype to avoid an error.
4343 Use char because int might match the return type of a GCC
4344 builtin and then its argument prototype would still apply. */
4357 rm -f conftest.$ac_objext conftest$ac_exeext
4358 if { (ac_try="$ac_link"
4360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4361 *) ac_try_echo=$ac_try;;
4363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4364 $as_echo "$ac_try_echo") >&5
4365 (eval "$ac_link") 2>conftest.er1
4367 grep -v '^ *+' conftest.er1 >conftest.err
4369 cat conftest.err >&5
4370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); } && {
4372 test -z "$ac_c_werror_flag" ||
4373 test ! -s conftest.err
4374 } && test -s conftest$ac_exeext && {
4375 test "$cross_compiling" = yes ||
4376 $as_test_x conftest$ac_exeext
4378 ac_cv_lib_c_malloc=yes
4380 $as_echo "$as_me: failed program was:" >&5
4381 sed 's/^/| /' conftest.$ac_ext >&5
4383 ac_cv_lib_c_malloc=no
4386 rm -rf conftest.dSYM
4387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4388 conftest$ac_exeext conftest.$ac_ext
4389 LIBS=$ac_check_lib_save_LIBS
4391 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_malloc" >&5
4392 $as_echo "$ac_cv_lib_c_malloc" >&6; }
4393 if test "x$ac_cv_lib_c_malloc" = x""yes; then
4398 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4399 $as_echo_n "checking for ANSI C header files... " >&6; }
4400 if test "${ac_cv_header_stdc+set}" = set; then
4401 $as_echo_n "(cached) " >&6
4403 cat >conftest.$ac_ext <<_ACEOF
4406 cat confdefs.h >>conftest.$ac_ext
4407 cat >>conftest.$ac_ext <<_ACEOF
4408 /* end confdefs.h. */
4422 rm -f conftest.$ac_objext
4423 if { (ac_try="$ac_compile"
4425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426 *) ac_try_echo=$ac_try;;
4428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4429 $as_echo "$ac_try_echo") >&5
4430 (eval "$ac_compile") 2>conftest.er1
4432 grep -v '^ *+' conftest.er1 >conftest.err
4434 cat conftest.err >&5
4435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); } && {
4437 test -z "$ac_c_werror_flag" ||
4438 test ! -s conftest.err
4439 } && test -s conftest.$ac_objext; then
4440 ac_cv_header_stdc=yes
4442 $as_echo "$as_me: failed program was:" >&5
4443 sed 's/^/| /' conftest.$ac_ext >&5
4445 ac_cv_header_stdc=no
4448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4450 if test $ac_cv_header_stdc = yes; then
4451 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4452 cat >conftest.$ac_ext <<_ACEOF
4455 cat confdefs.h >>conftest.$ac_ext
4456 cat >>conftest.$ac_ext <<_ACEOF
4457 /* end confdefs.h. */
4461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4462 $EGREP "memchr" >/dev/null 2>&1; then
4465 ac_cv_header_stdc=no
4471 if test $ac_cv_header_stdc = yes; then
4472 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4473 cat >conftest.$ac_ext <<_ACEOF
4476 cat confdefs.h >>conftest.$ac_ext
4477 cat >>conftest.$ac_ext <<_ACEOF
4478 /* end confdefs.h. */
4482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4483 $EGREP "free" >/dev/null 2>&1; then
4486 ac_cv_header_stdc=no
4492 if test $ac_cv_header_stdc = yes; then
4493 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4494 if test "$cross_compiling" = yes; then
4497 cat >conftest.$ac_ext <<_ACEOF
4500 cat confdefs.h >>conftest.$ac_ext
4501 cat >>conftest.$ac_ext <<_ACEOF
4502 /* end confdefs.h. */
4505 #if ((' ' & 0x0FF) == 0x020)
4506 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4507 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4509 # define ISLOWER(c) \
4510 (('a' <= (c) && (c) <= 'i') \
4511 || ('j' <= (c) && (c) <= 'r') \
4512 || ('s' <= (c) && (c) <= 'z'))
4513 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4516 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4521 for (i = 0; i < 256; i++)
4522 if (XOR (islower (i), ISLOWER (i))
4523 || toupper (i) != TOUPPER (i))
4528 rm -f conftest$ac_exeext
4529 if { (ac_try="$ac_link"
4531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4532 *) ac_try_echo=$ac_try;;
4534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4535 $as_echo "$ac_try_echo") >&5
4536 (eval "$ac_link") 2>&5
4538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4540 { (case "(($ac_try" in
4541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4542 *) ac_try_echo=$ac_try;;
4544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4545 $as_echo "$ac_try_echo") >&5
4546 (eval "$ac_try") 2>&5
4548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); }; }; then
4552 $as_echo "$as_me: program exited with status $ac_status" >&5
4553 $as_echo "$as_me: failed program was:" >&5
4554 sed 's/^/| /' conftest.$ac_ext >&5
4557 ac_cv_header_stdc=no
4559 rm -rf conftest.dSYM
4560 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4566 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4567 $as_echo "$ac_cv_header_stdc" >&6; }
4568 if test $ac_cv_header_stdc = yes; then
4570 cat >>confdefs.h <<\_ACEOF
4571 #define STDC_HEADERS 1
4579 for ac_header in fcntl.h unistd.h bfd.h
4581 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4583 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4584 $as_echo_n "checking for $ac_header... " >&6; }
4585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4586 $as_echo_n "(cached) " >&6
4588 ac_res=`eval 'as_val=${'$as_ac_Header'}
4589 $as_echo "$as_val"'`
4590 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4591 $as_echo "$ac_res" >&6; }
4593 # Is the header compilable?
4594 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4595 $as_echo_n "checking $ac_header usability... " >&6; }
4596 cat >conftest.$ac_ext <<_ACEOF
4599 cat confdefs.h >>conftest.$ac_ext
4600 cat >>conftest.$ac_ext <<_ACEOF
4601 /* end confdefs.h. */
4602 $ac_includes_default
4603 #include <$ac_header>
4605 rm -f conftest.$ac_objext
4606 if { (ac_try="$ac_compile"
4608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4609 *) ac_try_echo=$ac_try;;
4611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4612 $as_echo "$ac_try_echo") >&5
4613 (eval "$ac_compile") 2>conftest.er1
4615 grep -v '^ *+' conftest.er1 >conftest.err
4617 cat conftest.err >&5
4618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); } && {
4620 test -z "$ac_c_werror_flag" ||
4621 test ! -s conftest.err
4622 } && test -s conftest.$ac_objext; then
4623 ac_header_compiler=yes
4625 $as_echo "$as_me: failed program was:" >&5
4626 sed 's/^/| /' conftest.$ac_ext >&5
4628 ac_header_compiler=no
4631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4632 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4633 $as_echo "$ac_header_compiler" >&6; }
4635 # Is the header present?
4636 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4637 $as_echo_n "checking $ac_header presence... " >&6; }
4638 cat >conftest.$ac_ext <<_ACEOF
4641 cat confdefs.h >>conftest.$ac_ext
4642 cat >>conftest.$ac_ext <<_ACEOF
4643 /* end confdefs.h. */
4644 #include <$ac_header>
4646 if { (ac_try="$ac_cpp conftest.$ac_ext"
4648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4649 *) ac_try_echo=$ac_try;;
4651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4652 $as_echo "$ac_try_echo") >&5
4653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4655 grep -v '^ *+' conftest.er1 >conftest.err
4657 cat conftest.err >&5
4658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); } >/dev/null && {
4660 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4661 test ! -s conftest.err
4663 ac_header_preproc=yes
4665 $as_echo "$as_me: failed program was:" >&5
4666 sed 's/^/| /' conftest.$ac_ext >&5
4668 ac_header_preproc=no
4671 rm -f conftest.err conftest.$ac_ext
4672 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4673 $as_echo "$ac_header_preproc" >&6; }
4675 # So? What about this header?
4676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4678 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4679 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4681 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4682 ac_header_preproc=yes
4685 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4686 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4688 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4690 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4692 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4694 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4696 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4700 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4701 $as_echo_n "checking for $ac_header... " >&6; }
4702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4703 $as_echo_n "(cached) " >&6
4705 eval "$as_ac_Header=\$ac_header_preproc"
4707 ac_res=`eval 'as_val=${'$as_ac_Header'}
4708 $as_echo "$as_val"'`
4709 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4710 $as_echo "$ac_res" >&6; }
4713 as_val=`eval 'as_val=${'$as_ac_Header'}
4714 $as_echo "$as_val"'`
4715 if test "x$as_val" = x""yes; then
4716 cat >>confdefs.h <<_ACEOF
4717 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4725 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4726 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4727 if test "${ac_cv_c_const+set}" = set; then
4728 $as_echo_n "(cached) " >&6
4730 cat >conftest.$ac_ext <<_ACEOF
4733 cat confdefs.h >>conftest.$ac_ext
4734 cat >>conftest.$ac_ext <<_ACEOF
4735 /* end confdefs.h. */
4740 /* FIXME: Include the comments suggested by Paul. */
4742 /* Ultrix mips cc rejects this. */
4743 typedef int charset[2];
4745 /* SunOS 4.1.1 cc rejects this. */
4746 char const *const *pcpcc;
4748 /* NEC SVR4.0.2 mips cc rejects this. */
4749 struct point {int x, y;};
4750 static struct point const zero = {0,0};
4751 /* AIX XL C 1.02.0.0 rejects this.
4752 It does not let you subtract one const X* pointer from another in
4753 an arm of an if-expression whose if-part is not a constant
4755 const char *g = "string";
4756 pcpcc = &g + (g ? g-g : 0);
4757 /* HPUX 7.0 cc rejects these. */
4759 ppc = (char**) pcpcc;
4760 pcpcc = (char const *const *) ppc;
4761 { /* SCO 3.2v4 cc rejects this. */
4763 char const *s = 0 ? (char *) 0 : (char const *) 0;
4768 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4770 const int *foo = &x[0];
4773 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4774 typedef const int *iptr;
4778 { /* AIX XL C 1.02.0.0 rejects this saying
4779 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4780 struct s { int j; const int *ap[3]; };
4781 struct s *b; b->j = 5;
4783 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4787 return !cs[0] && !zero.x;
4794 rm -f conftest.$ac_objext
4795 if { (ac_try="$ac_compile"
4797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4798 *) ac_try_echo=$ac_try;;
4800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4801 $as_echo "$ac_try_echo") >&5
4802 (eval "$ac_compile") 2>conftest.er1
4804 grep -v '^ *+' conftest.er1 >conftest.err
4806 cat conftest.err >&5
4807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); } && {
4809 test -z "$ac_c_werror_flag" ||
4810 test ! -s conftest.err
4811 } && test -s conftest.$ac_objext; then
4814 $as_echo "$as_me: failed program was:" >&5
4815 sed 's/^/| /' conftest.$ac_ext >&5
4820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4822 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4823 $as_echo "$ac_cv_c_const" >&6; }
4824 if test $ac_cv_c_const = no; then
4826 cat >>confdefs.h <<\_ACEOF
4834 for ac_func in vprintf
4836 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4837 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
4838 $as_echo_n "checking for $ac_func... " >&6; }
4839 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4840 $as_echo_n "(cached) " >&6
4842 cat >conftest.$ac_ext <<_ACEOF
4845 cat confdefs.h >>conftest.$ac_ext
4846 cat >>conftest.$ac_ext <<_ACEOF
4847 /* end confdefs.h. */
4848 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4850 #define $ac_func innocuous_$ac_func
4852 /* System header to define __stub macros and hopefully few prototypes,
4853 which can conflict with char $ac_func (); below.
4854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4855 <limits.h> exists even on freestanding compilers. */
4858 # include <limits.h>
4860 # include <assert.h>
4865 /* Override any GCC internal prototype to avoid an error.
4866 Use char because int might match the return type of a GCC
4867 builtin and then its argument prototype would still apply. */
4872 /* The GNU C library defines this for functions which it implements
4873 to always fail with ENOSYS. Some functions are actually named
4874 something starting with __ and the normal name is an alias. */
4875 #if defined __stub_$ac_func || defined __stub___$ac_func
4887 rm -f conftest.$ac_objext conftest$ac_exeext
4888 if { (ac_try="$ac_link"
4890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4891 *) ac_try_echo=$ac_try;;
4893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4894 $as_echo "$ac_try_echo") >&5
4895 (eval "$ac_link") 2>conftest.er1
4897 grep -v '^ *+' conftest.er1 >conftest.err
4899 cat conftest.err >&5
4900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); } && {
4902 test -z "$ac_c_werror_flag" ||
4903 test ! -s conftest.err
4904 } && test -s conftest$ac_exeext && {
4905 test "$cross_compiling" = yes ||
4906 $as_test_x conftest$ac_exeext
4908 eval "$as_ac_var=yes"
4910 $as_echo "$as_me: failed program was:" >&5
4911 sed 's/^/| /' conftest.$ac_ext >&5
4913 eval "$as_ac_var=no"
4916 rm -rf conftest.dSYM
4917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4918 conftest$ac_exeext conftest.$ac_ext
4920 ac_res=`eval 'as_val=${'$as_ac_var'}
4921 $as_echo "$as_val"'`
4922 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4923 $as_echo "$ac_res" >&6; }
4924 as_val=`eval 'as_val=${'$as_ac_var'}
4925 $as_echo "$as_val"'`
4926 if test "x$as_val" = x""yes; then
4927 cat >>confdefs.h <<_ACEOF
4928 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4931 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
4932 $as_echo_n "checking for _doprnt... " >&6; }
4933 if test "${ac_cv_func__doprnt+set}" = set; then
4934 $as_echo_n "(cached) " >&6
4936 cat >conftest.$ac_ext <<_ACEOF
4939 cat confdefs.h >>conftest.$ac_ext
4940 cat >>conftest.$ac_ext <<_ACEOF
4941 /* end confdefs.h. */
4942 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
4943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4944 #define _doprnt innocuous__doprnt
4946 /* System header to define __stub macros and hopefully few prototypes,
4947 which can conflict with char _doprnt (); below.
4948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4949 <limits.h> exists even on freestanding compilers. */
4952 # include <limits.h>
4954 # include <assert.h>
4959 /* Override any GCC internal prototype to avoid an error.
4960 Use char because int might match the return type of a GCC
4961 builtin and then its argument prototype would still apply. */
4966 /* The GNU C library defines this for functions which it implements
4967 to always fail with ENOSYS. Some functions are actually named
4968 something starting with __ and the normal name is an alias. */
4969 #if defined __stub__doprnt || defined __stub____doprnt
4981 rm -f conftest.$ac_objext conftest$ac_exeext
4982 if { (ac_try="$ac_link"
4984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4985 *) ac_try_echo=$ac_try;;
4987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4988 $as_echo "$ac_try_echo") >&5
4989 (eval "$ac_link") 2>conftest.er1
4991 grep -v '^ *+' conftest.er1 >conftest.err
4993 cat conftest.err >&5
4994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); } && {
4996 test -z "$ac_c_werror_flag" ||
4997 test ! -s conftest.err
4998 } && test -s conftest$ac_exeext && {
4999 test "$cross_compiling" = yes ||
5000 $as_test_x conftest$ac_exeext
5002 ac_cv_func__doprnt=yes
5004 $as_echo "$as_me: failed program was:" >&5
5005 sed 's/^/| /' conftest.$ac_ext >&5
5007 ac_cv_func__doprnt=no
5010 rm -rf conftest.dSYM
5011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5012 conftest$ac_exeext conftest.$ac_ext
5014 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
5015 $as_echo "$ac_cv_func__doprnt" >&6; }
5016 if test "x$ac_cv_func__doprnt" = x""yes; then
5018 cat >>confdefs.h <<\_ACEOF
5019 #define HAVE_DOPRNT 1
5040 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5041 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5042 $as_echo_n "checking for $ac_func... " >&6; }
5043 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5044 $as_echo_n "(cached) " >&6
5046 cat >conftest.$ac_ext <<_ACEOF
5049 cat confdefs.h >>conftest.$ac_ext
5050 cat >>conftest.$ac_ext <<_ACEOF
5051 /* end confdefs.h. */
5052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5054 #define $ac_func innocuous_$ac_func
5056 /* System header to define __stub macros and hopefully few prototypes,
5057 which can conflict with char $ac_func (); below.
5058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5059 <limits.h> exists even on freestanding compilers. */
5062 # include <limits.h>
5064 # include <assert.h>
5069 /* Override any GCC internal prototype to avoid an error.
5070 Use char because int might match the return type of a GCC
5071 builtin and then its argument prototype would still apply. */
5076 /* The GNU C library defines this for functions which it implements
5077 to always fail with ENOSYS. Some functions are actually named
5078 something starting with __ and the normal name is an alias. */
5079 #if defined __stub_$ac_func || defined __stub___$ac_func
5091 rm -f conftest.$ac_objext conftest$ac_exeext
5092 if { (ac_try="$ac_link"
5094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5095 *) ac_try_echo=$ac_try;;
5097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5098 $as_echo "$ac_try_echo") >&5
5099 (eval "$ac_link") 2>conftest.er1
5101 grep -v '^ *+' conftest.er1 >conftest.err
5103 cat conftest.err >&5
5104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); } && {
5106 test -z "$ac_c_werror_flag" ||
5107 test ! -s conftest.err
5108 } && test -s conftest$ac_exeext && {
5109 test "$cross_compiling" = yes ||
5110 $as_test_x conftest$ac_exeext
5112 eval "$as_ac_var=yes"
5114 $as_echo "$as_me: failed program was:" >&5
5115 sed 's/^/| /' conftest.$ac_ext >&5
5117 eval "$as_ac_var=no"
5120 rm -rf conftest.dSYM
5121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5122 conftest$ac_exeext conftest.$ac_ext
5124 ac_res=`eval 'as_val=${'$as_ac_var'}
5125 $as_echo "$as_val"'`
5126 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5127 $as_echo "$ac_res" >&6; }
5128 as_val=`eval 'as_val=${'$as_ac_var'}
5129 $as_echo "$as_val"'`
5130 if test "x$as_val" = x""yes; then
5131 cat >>confdefs.h <<_ACEOF
5132 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5139 test "$GCC" = yes && CFLAGS="-Wall $CFLAGS"
5157 ac_config_files="$ac_config_files ld-elf2flt.sh:ld-elf2flt.in Makefile elf2flt.ld"
5159 cat >confcache <<\_ACEOF
5160 # This file is a shell script that caches the results of configure
5161 # tests run on this system so they can be shared between configure
5162 # scripts and configure runs, see configure's option --config-cache.
5163 # It is not useful on other systems. If it contains results you don't
5164 # want to keep, you may remove or edit it.
5166 # config.status only pays attention to the cache file if you give it
5167 # the --recheck option to rerun configure.
5169 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5170 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5175 # The following way of writing the cache mishandles newlines in values,
5176 # but we know of no workaround that is simple, portable, and efficient.
5177 # So, we kill variables containing newlines.
5178 # Ultrix sh set writes to stderr and can't be redirected directly,
5179 # and sets the high bit in the cache file unless we assign to the vars.
5181 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5182 eval ac_val=\$$ac_var
5186 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
5187 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5190 _ | IFS | as_nl) ;; #(
5191 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5192 *) $as_unset $ac_var ;;
5198 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5199 *${as_nl}ac_space=\ *)
5200 # `set' does not quote correctly, so add quotes (double-quote
5201 # substitution turns \\\\ into \\, and sed turns \\ into \).
5204 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5207 # `set' quotes correctly as required by POSIX, so do not add quotes.
5208 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5217 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5219 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5221 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5222 if test -w "$cache_file"; then
5223 test "x$cache_file" != "x/dev/null" &&
5224 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
5225 $as_echo "$as_me: updating cache $cache_file" >&6;}
5226 cat confcache >$cache_file
5228 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5229 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5234 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5235 # Let make expand exec_prefix.
5236 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5238 # Transform confdefs.h into DEFS.
5239 # Protect against shell expansion while executing Makefile rules.
5240 # Protect against Makefile macro expansion.
5242 # If the first sed substitution is executed (which looks for macros that
5243 # take arguments), then branch to the quote section. Otherwise,
5244 # look for a macro that doesn't take arguments.
5254 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
5256 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
5260 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
5273 DEFS=`sed -n "$ac_script" confdefs.h`
5278 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5279 # 1. Remove the extension, and $U if already installed.
5280 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5281 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5282 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5283 # will be set to the directory where LIBOBJS objects are built.
5284 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5285 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
5289 LTLIBOBJS=$ac_ltlibobjs
5293 : ${CONFIG_STATUS=./config.status}
5295 ac_clean_files_save=$ac_clean_files
5296 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5297 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5298 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5299 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5301 # Generated by $as_me.
5302 # Run this file to recreate the current configuration.
5303 # Compiler output produced by configure, useful for debugging
5304 # configure, is in config.log if it exists.
5309 SHELL=\${CONFIG_SHELL-$SHELL}
5312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5313 ## --------------------- ##
5314 ## M4sh Initialization. ##
5315 ## --------------------- ##
5317 # Be more Bourne compatible
5318 DUALCASE=1; export DUALCASE # for MKS sh
5319 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5322 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5323 # is contrary to our usage. Disable this feature.
5324 alias -g '${1+"$@"}'='"$@"'
5325 setopt NO_GLOB_SUBST
5327 case `(set -o) 2>/dev/null` in
5328 *posix*) set -o posix ;;
5337 # Avoid depending upon Character Ranges.
5338 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5339 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5340 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5341 as_cr_digits='0123456789'
5342 as_cr_alnum=$as_cr_Letters$as_cr_digits
5347 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5348 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5349 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5350 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5351 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5352 as_echo='printf %s\n'
5353 as_echo_n='printf %s'
5355 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5356 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5357 as_echo_n='/usr/ucb/echo -n'
5359 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5360 as_echo_n_body='eval
5364 expr "X$arg" : "X\\(.*\\)$as_nl";
5365 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5367 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5369 export as_echo_n_body
5370 as_echo_n='sh -c $as_echo_n_body as_echo'
5373 as_echo='sh -c $as_echo_body as_echo'
5376 # The user is always right.
5377 if test "${PATH_SEPARATOR+set}" != set; then
5379 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5380 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5385 # Support unset when possible.
5386 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5394 # We need space, tab and new line, in precisely that order. Quoting is
5395 # there to prevent editors from complaining about space-tab.
5396 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5397 # splitting by setting IFS to empty value.)
5400 # Find who we are. Look in the path if we contain no directory separator.
5402 *[\\/]* ) as_myself=$0 ;;
5403 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407 test -z "$as_dir" && as_dir=.
5408 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5414 # We did not find ourselves, most probably we were run as `sh COMMAND'
5415 # in which case we are not to be found in the path.
5416 if test "x$as_myself" = x; then
5419 if test ! -f "$as_myself"; then
5420 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5421 { (exit 1); exit 1; }
5424 # Work around bugs in pre-3.0 UWIN ksh.
5425 for as_var in ENV MAIL MAILPATH
5426 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5438 # Required to use basename.
5439 if expr a : '\(a\)' >/dev/null 2>&1 &&
5440 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5446 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5447 as_basename=basename
5453 # Name of the executable.
5454 as_me=`$as_basename -- "$0" ||
5455 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5456 X"$0" : 'X\(//\)$' \| \
5457 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5459 sed '/^.*\/\([^/][^/]*\)\/*$/{
5480 test "x$as_lineno_1" != "x$as_lineno_2" &&
5481 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
5483 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5484 # uniformly replaced by the line number. The first 'sed' inserts a
5485 # line-number line after each line using $LINENO; the second 'sed'
5486 # does the real work. The second script uses 'N' to pair each
5487 # line-number line with the line containing $LINENO, and appends
5488 # trailing '-' during substitution so that $LINENO is not a special
5490 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5491 # scripts with optimization help from Paolo Bonzini. Blame Lee
5492 # E. McMahon (1931-1989) for sed's syntax. :-)
5504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5508 chmod +x "$as_me.lineno" ||
5509 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
5510 { (exit 1); exit 1; }; }
5512 # Don't try to exec as it changes $[0], causing all sort of problems
5513 # (the dirname of $[0] is not the place where we might find the
5514 # original and so on. Autoconf is especially sensitive to this).
5516 # Exit status is that of the last command.
5521 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5527 ECHO_C= ECHO_N= ECHO_T=
5530 case `echo 'x\c'` in
5531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5537 if expr a : '\(a\)' >/dev/null 2>&1 &&
5538 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5544 rm -f conf$$ conf$$.exe conf$$.file
5545 if test -d conf$$.dir; then
5546 rm -f conf$$.dir/conf$$.file
5549 mkdir conf$$.dir 2>/dev/null
5551 if (echo >conf$$.file) 2>/dev/null; then
5552 if ln -s conf$$.file conf$$ 2>/dev/null; then
5554 # ... but there are two gotchas:
5555 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5556 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5557 # In both cases, we have to default to `cp -p'.
5558 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5560 elif ln conf$$.file conf$$ 2>/dev/null; then
5568 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5569 rmdir conf$$.dir 2>/dev/null
5571 if mkdir -p . 2>/dev/null; then
5574 test -d ./-p && rmdir ./-p
5578 if test -x / >/dev/null 2>&1; then
5581 if ls -dL / >/dev/null 2>&1; then
5588 if test -d "$1"; then
5594 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
5595 ???[sx]*):;;*)false;;esac;fi
5599 as_executable_p=$as_test_x
5601 # Sed expression to map a string onto a valid CPP name.
5602 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5604 # Sed expression to map a string onto a valid variable name.
5605 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5610 # Save the log message, to keep $[0] and so on meaningful, and to
5611 # report actual input values of CONFIG_FILES etc. instead of their
5612 # values after options handling.
5614 This file was extended by $as_me, which was
5615 generated by GNU Autoconf 2.63. Invocation command line was
5617 CONFIG_FILES = $CONFIG_FILES
5618 CONFIG_HEADERS = $CONFIG_HEADERS
5619 CONFIG_LINKS = $CONFIG_LINKS
5620 CONFIG_COMMANDS = $CONFIG_COMMANDS
5623 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5628 case $ac_config_files in *"
5629 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5634 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5635 # Files that config.status was made for.
5636 config_files="$ac_config_files"
5640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5642 \`$as_me' instantiates files from templates according to the
5643 current configuration.
5645 Usage: $0 [OPTION]... [FILE]...
5647 -h, --help print this help, then exit
5648 -V, --version print version number and configuration settings, then exit
5649 -q, --quiet, --silent
5650 do not print progress messages
5651 -d, --debug don't remove temporary files
5652 --recheck update $as_me by reconfiguring in the same conditions
5653 --file=FILE[:TEMPLATE]
5654 instantiate the configuration file FILE
5656 Configuration files:
5659 Report bugs to <bug-autoconf@gnu.org>."
5662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5665 configured by $0, generated by GNU Autoconf 2.63,
5666 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5668 Copyright (C) 2008 Free Software Foundation, Inc.
5669 This config.status script is free software; the Free Software Foundation
5670 gives unlimited permission to copy, distribute and modify it."
5675 test -n "\$AWK" || AWK=awk
5678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5679 # The default lists apply if the user does not specify any file.
5685 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5686 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5697 # Handling of the options.
5698 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5700 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5701 $as_echo "$ac_cs_version"; exit ;;
5702 --debug | --debu | --deb | --de | --d | -d )
5704 --file | --fil | --fi | --f )
5707 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5709 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
5710 ac_need_defaults=false;;
5711 --he | --h | --help | --hel | -h )
5712 $as_echo "$ac_cs_usage"; exit ;;
5713 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5714 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5718 -*) { $as_echo "$as_me: error: unrecognized option: $1
5719 Try \`$0 --help' for more information." >&2
5720 { (exit 1); exit 1; }; } ;;
5722 *) ac_config_targets="$ac_config_targets $1"
5723 ac_need_defaults=false ;;
5729 ac_configure_extra_args=
5731 if $ac_cs_silent; then
5733 ac_configure_extra_args="$ac_configure_extra_args --silent"
5737 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5738 if \$ac_cs_recheck; then
5739 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5741 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5742 CONFIG_SHELL='$SHELL'
5748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5752 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5753 ## Running $as_me. ##
5759 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5764 # Handling of arguments.
5765 for ac_config_target in $ac_config_targets
5767 case $ac_config_target in
5768 "ld-elf2flt.sh") CONFIG_FILES="$CONFIG_FILES ld-elf2flt.sh:ld-elf2flt.in" ;;
5769 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5770 "elf2flt.ld") CONFIG_FILES="$CONFIG_FILES elf2flt.ld" ;;
5772 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5773 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5774 { (exit 1); exit 1; }; };;
5779 # If the user did not use the arguments to specify the items to instantiate,
5780 # then the envvar interface is used. Set only those that are not.
5781 # We use the long form for the default assignment because of an extremely
5782 # bizarre bug on SunOS 4.1.3.
5783 if $ac_need_defaults; then
5784 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5787 # Have a temporary directory for convenience. Make it in the build tree
5788 # simply because there is no reason against having it here, and in addition,
5789 # creating and moving files from /tmp can sometimes cause problems.
5790 # Hook for its removal unless debugging.
5791 # Note that there is a small window in which the directory will not be cleaned:
5792 # after its creation but before its name has been assigned to `$tmp'.
5796 trap 'exit_status=$?
5797 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5799 trap '{ (exit 1); exit 1; }' 1 2 13 15
5801 # Create a (secure) tmp directory for tmp files.
5804 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5805 test -n "$tmp" && test -d "$tmp"
5808 tmp=./conf$$-$RANDOM
5809 (umask 077 && mkdir "$tmp")
5812 $as_echo "$as_me: cannot create a temporary directory in ." >&2
5813 { (exit 1); exit 1; }
5816 # Set up the scripts for CONFIG_FILES section.
5817 # No need to generate them if there are no CONFIG_FILES.
5818 # This happens for instance with `./config.status config.h'.
5819 if test -n "$CONFIG_FILES"; then
5823 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5824 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5830 echo 'BEGIN {' >"$tmp/subs1.awk" &&
5835 echo "cat >conf$$subs.awk <<_ACEOF" &&
5836 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5839 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5840 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5841 { (exit 1); exit 1; }; }
5842 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5844 for ac_last_try in false false false false false :; do
5845 . ./conf$$subs.sh ||
5846 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5847 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5848 { (exit 1); exit 1; }; }
5850 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5851 if test $ac_delim_n = $ac_delim_num; then
5853 elif $ac_last_try; then
5854 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5855 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5856 { (exit 1); exit 1; }; }
5858 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5863 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5864 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5868 s/^/S["/; s/!.*/"]=/
5878 s/\(.\{148\}\).*/\1/
5880 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5885 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5892 s/\(.\{148\}\).*/\1/
5894 s/["\\]/\\&/g; s/^/"/; s/$/"/
5898 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5903 ' <conf$$subs.awk | sed '
5908 ' >>$CONFIG_STATUS || ac_write_fail=1
5909 rm -f conf$$subs.awk
5910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5912 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
5913 for (key in S) S_is_set[key] = 1
5919 nfields = split(line, field, "@")
5921 len = length(field[1])
5922 for (i = 2; i < nfields; i++) {
5924 keylen = length(key)
5925 if (S_is_set[key]) {
5927 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5928 len += length(value) + length(field[++i])
5939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5940 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5941 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5944 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
5945 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
5946 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
5947 { (exit 1); exit 1; }; }
5950 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5951 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5952 # trailing colons and then remove the whole line if VPATH becomes empty
5953 # (actually we leave an empty line to preserve line numbers).
5954 if test "x$srcdir" = x.; then
5955 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5959 s/^\([^=]*=[ ]*\):*/\1/
5965 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5966 fi # test -n "$CONFIG_FILES"
5969 eval set X " :F $CONFIG_FILES "
5974 :[FHLC]) ac_mode=$ac_tag; continue;;
5976 case $ac_mode$ac_tag in
5978 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
5979 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
5980 { (exit 1); exit 1; }; };;
5981 :[FH]-) ac_tag=-:-;;
5982 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5999 -) ac_f="$tmp/stdin";;
6000 *) # Look for the file first in the build tree, then in the source tree
6001 # (if the path is not absolute). The absolute path cannot be DOS-style,
6002 # because $ac_f cannot contain `:'.
6006 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6008 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6009 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6010 { (exit 1); exit 1; }; };;
6012 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6013 ac_file_inputs="$ac_file_inputs '$ac_f'"
6016 # Let's still pretend it is `configure' which instantiates (i.e., don't
6017 # use $as_me), people would be surprised to read:
6018 # /* config.h. Generated by config.status. */
6019 configure_input='Generated from '`
6020 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6022 if test x"$ac_file" != x-; then
6023 configure_input="$ac_file. $configure_input"
6024 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
6025 $as_echo "$as_me: creating $ac_file" >&6;}
6027 # Neutralize special characters interpreted by sed in replacement strings.
6028 case $configure_input in #(
6029 *\&* | *\|* | *\\* )
6030 ac_sed_conf_input=`$as_echo "$configure_input" |
6031 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6032 *) ac_sed_conf_input=$configure_input;;
6036 *:-:* | *:-) cat >"$tmp/stdin" \
6037 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6038 $as_echo "$as_me: error: could not create $ac_file" >&2;}
6039 { (exit 1); exit 1; }; } ;;
6044 ac_dir=`$as_dirname -- "$ac_file" ||
6045 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6046 X"$ac_file" : 'X\(//\)[^/]' \| \
6047 X"$ac_file" : 'X\(//\)$' \| \
6048 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6049 $as_echo X"$ac_file" |
6050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6069 -*) as_dir=./$as_dir;;
6071 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6075 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6076 *) as_qdir=$as_dir;;
6078 as_dirs="'$as_qdir' $as_dirs"
6079 as_dir=`$as_dirname -- "$as_dir" ||
6080 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6081 X"$as_dir" : 'X\(//\)[^/]' \| \
6082 X"$as_dir" : 'X\(//\)$' \| \
6083 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6084 $as_echo X"$as_dir" |
6085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6102 test -d "$as_dir" && break
6104 test -z "$as_dirs" || eval "mkdir $as_dirs"
6105 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6106 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
6107 { (exit 1); exit 1; }; }; }
6111 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6113 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6114 # A ".." for each directory in $ac_dir_suffix.
6115 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6116 case $ac_top_builddir_sub in
6117 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6118 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6121 ac_abs_top_builddir=$ac_pwd
6122 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6123 # for backward compatibility:
6124 ac_top_builddir=$ac_top_build_prefix
6127 .) # We are building in place.
6129 ac_top_srcdir=$ac_top_builddir_sub
6130 ac_abs_top_srcdir=$ac_pwd ;;
6131 [\\/]* | ?:[\\/]* ) # Absolute name.
6132 ac_srcdir=$srcdir$ac_dir_suffix;
6133 ac_top_srcdir=$srcdir
6134 ac_abs_top_srcdir=$srcdir ;;
6136 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6137 ac_top_srcdir=$ac_top_build_prefix$srcdir
6138 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6140 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6150 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6151 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6156 # If the template does not know about datarootdir, expand it.
6157 # FIXME: This hack should be removed a few years after 2.60.
6158 ac_datarootdir_hack=; ac_datarootdir_seen=
6171 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6172 *datarootdir*) ac_datarootdir_seen=yes;;
6173 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6174 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6175 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6177 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6178 ac_datarootdir_hack='
6179 s&@datadir@&$datadir&g
6180 s&@docdir@&$docdir&g
6181 s&@infodir@&$infodir&g
6182 s&@localedir@&$localedir&g
6183 s&@mandir@&$mandir&g
6184 s&\\\${datarootdir}&$datarootdir&g' ;;
6188 # Neutralize VPATH when `$srcdir' = `.'.
6189 # Shell code in configure.ac might set extrasub.
6190 # FIXME: do we really want to maintain this feature?
6191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6192 ac_sed_extra="$ac_vpsub
6195 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6197 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6198 s|@configure_input@|$ac_sed_conf_input|;t t
6199 s&@top_builddir@&$ac_top_builddir_sub&;t t
6200 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6201 s&@srcdir@&$ac_srcdir&;t t
6202 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6203 s&@top_srcdir@&$ac_top_srcdir&;t t
6204 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6205 s&@builddir@&$ac_builddir&;t t
6206 s&@abs_builddir@&$ac_abs_builddir&;t t
6207 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6208 s&@INSTALL@&$ac_INSTALL&;t t
6209 $ac_datarootdir_hack
6211 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6212 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6213 $as_echo "$as_me: error: could not create $ac_file" >&2;}
6214 { (exit 1); exit 1; }; }
6216 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6217 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6218 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6219 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6220 which seems to be undefined. Please make sure it is defined." >&5
6221 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6222 which seems to be undefined. Please make sure it is defined." >&2;}
6226 -) cat "$tmp/out" && rm -f "$tmp/out";;
6227 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6229 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6230 $as_echo "$as_me: error: could not create $ac_file" >&2;}
6231 { (exit 1); exit 1; }; }
6241 { (exit 0); exit 0; }
6243 chmod +x $CONFIG_STATUS
6244 ac_clean_files=$ac_clean_files_save
6246 test $ac_write_fail = 0 ||
6247 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
6248 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
6249 { (exit 1); exit 1; }; }
6252 # configure is writing to config.log, and then calls config.status.
6253 # config.status does its own redirection, appending to config.log.
6254 # Unfortunately, on DOS this fails, as config.log is still kept open
6255 # by configure, so config.status won't be able to write to it; its
6256 # output is simply discarded. So we exec the FD to /dev/null,
6257 # effectively closing config.log, so it can be properly (re)opened and
6258 # appended to by config.status. When coming back to configure, we
6259 # need to make the FD available again.
6260 if test "$no_create" != yes; then
6262 ac_config_status_args=
6263 test "$silent" = yes &&
6264 ac_config_status_args="$ac_config_status_args --quiet"
6266 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6268 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6269 # would make configure fail if this is the last instruction.
6270 $ac_cs_success || { (exit 1); exit 1; }
6272 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6273 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6274 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}