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
644 binutils_ldscript_dir
700 program_transform_name
712 enable_option_checking
717 with_binutils_include_dir
718 with_binutils_ldscript_dir
719 with_binutils_build_dir
722 enable_emit_ctor_dtor
724 ac_precious_vars='build_alias
735 # Initialize some variables set by options.
737 ac_init_version=false
738 ac_unrecognized_opts=
740 # The variables have the same names as the options, with
741 # dashes changed to underlines.
749 program_transform_name=s,x,x,
757 # Installation directory options.
758 # These are left unexpanded so users can "make install exec_prefix=/foo"
759 # and all the variables that are supposed to be based on exec_prefix
760 # by default will actually change.
761 # Use braces instead of parens because sh, perl, etc. also accept them.
762 # (The list follows the same order as the GNU Coding Standards.)
763 bindir='${exec_prefix}/bin'
764 sbindir='${exec_prefix}/sbin'
765 libexecdir='${exec_prefix}/libexec'
766 datarootdir='${prefix}/share'
767 datadir='${datarootdir}'
768 sysconfdir='${prefix}/etc'
769 sharedstatedir='${prefix}/com'
770 localstatedir='${prefix}/var'
771 includedir='${prefix}/include'
772 oldincludedir='/usr/include'
773 docdir='${datarootdir}/doc/${PACKAGE}'
774 infodir='${datarootdir}/info'
779 libdir='${exec_prefix}/lib'
780 localedir='${datarootdir}/locale'
781 mandir='${datarootdir}/man'
787 # If the previous option needs an argument, assign it.
788 if test -n "$ac_prev"; then
789 eval $ac_prev=\$ac_option
795 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
799 # Accept the important Cygnus configure options, so we can diagnose typos.
801 case $ac_dashdash$ac_option in
805 -bindir | --bindir | --bindi | --bind | --bin | --bi)
807 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
810 -build | --build | --buil | --bui | --bu)
811 ac_prev=build_alias ;;
812 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
813 build_alias=$ac_optarg ;;
815 -cache-file | --cache-file | --cache-fil | --cache-fi \
816 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
817 ac_prev=cache_file ;;
818 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
819 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
820 cache_file=$ac_optarg ;;
823 cache_file=config.cache ;;
825 -datadir | --datadir | --datadi | --datad)
827 -datadir=* | --datadir=* | --datadi=* | --datad=*)
828 datadir=$ac_optarg ;;
830 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
831 | --dataroo | --dataro | --datar)
832 ac_prev=datarootdir ;;
833 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
834 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
835 datarootdir=$ac_optarg ;;
837 -disable-* | --disable-*)
838 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
839 # Reject names that are not valid shell variable names.
840 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
841 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
842 { (exit 1); exit 1; }; }
843 ac_useropt_orig=$ac_useropt
844 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
845 case $ac_user_opts in
849 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
850 ac_unrecognized_sep=', ';;
852 eval enable_$ac_useropt=no ;;
854 -docdir | --docdir | --docdi | --doc | --do)
856 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
859 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
861 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
864 -enable-* | --enable-*)
865 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
866 # Reject names that are not valid shell variable names.
867 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
868 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
869 { (exit 1); exit 1; }; }
870 ac_useropt_orig=$ac_useropt
871 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
872 case $ac_user_opts in
876 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
877 ac_unrecognized_sep=', ';;
879 eval enable_$ac_useropt=\$ac_optarg ;;
881 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
882 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
883 | --exec | --exe | --ex)
884 ac_prev=exec_prefix ;;
885 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
886 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
887 | --exec=* | --exe=* | --ex=*)
888 exec_prefix=$ac_optarg ;;
890 -gas | --gas | --ga | --g)
891 # Obsolete; use --with-gas.
894 -help | --help | --hel | --he | -h)
896 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
897 ac_init_help=recursive ;;
898 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
899 ac_init_help=short ;;
901 -host | --host | --hos | --ho)
902 ac_prev=host_alias ;;
903 -host=* | --host=* | --hos=* | --ho=*)
904 host_alias=$ac_optarg ;;
906 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
908 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
910 htmldir=$ac_optarg ;;
912 -includedir | --includedir | --includedi | --included | --include \
913 | --includ | --inclu | --incl | --inc)
914 ac_prev=includedir ;;
915 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
916 | --includ=* | --inclu=* | --incl=* | --inc=*)
917 includedir=$ac_optarg ;;
919 -infodir | --infodir | --infodi | --infod | --info | --inf)
921 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
922 infodir=$ac_optarg ;;
924 -libdir | --libdir | --libdi | --libd)
926 -libdir=* | --libdir=* | --libdi=* | --libd=*)
929 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
930 | --libexe | --libex | --libe)
931 ac_prev=libexecdir ;;
932 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
933 | --libexe=* | --libex=* | --libe=*)
934 libexecdir=$ac_optarg ;;
936 -localedir | --localedir | --localedi | --localed | --locale)
938 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
939 localedir=$ac_optarg ;;
941 -localstatedir | --localstatedir | --localstatedi | --localstated \
942 | --localstate | --localstat | --localsta | --localst | --locals)
943 ac_prev=localstatedir ;;
944 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
945 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
946 localstatedir=$ac_optarg ;;
948 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
950 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
954 # Obsolete; use --without-fp.
957 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
958 | --no-cr | --no-c | -n)
961 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
962 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
965 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
966 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
967 | --oldin | --oldi | --old | --ol | --o)
968 ac_prev=oldincludedir ;;
969 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
970 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
971 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
972 oldincludedir=$ac_optarg ;;
974 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
976 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
979 -program-prefix | --program-prefix | --program-prefi | --program-pref \
980 | --program-pre | --program-pr | --program-p)
981 ac_prev=program_prefix ;;
982 -program-prefix=* | --program-prefix=* | --program-prefi=* \
983 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
984 program_prefix=$ac_optarg ;;
986 -program-suffix | --program-suffix | --program-suffi | --program-suff \
987 | --program-suf | --program-su | --program-s)
988 ac_prev=program_suffix ;;
989 -program-suffix=* | --program-suffix=* | --program-suffi=* \
990 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
991 program_suffix=$ac_optarg ;;
993 -program-transform-name | --program-transform-name \
994 | --program-transform-nam | --program-transform-na \
995 | --program-transform-n | --program-transform- \
996 | --program-transform | --program-transfor \
997 | --program-transfo | --program-transf \
998 | --program-trans | --program-tran \
999 | --progr-tra | --program-tr | --program-t)
1000 ac_prev=program_transform_name ;;
1001 -program-transform-name=* | --program-transform-name=* \
1002 | --program-transform-nam=* | --program-transform-na=* \
1003 | --program-transform-n=* | --program-transform-=* \
1004 | --program-transform=* | --program-transfor=* \
1005 | --program-transfo=* | --program-transf=* \
1006 | --program-trans=* | --program-tran=* \
1007 | --progr-tra=* | --program-tr=* | --program-t=*)
1008 program_transform_name=$ac_optarg ;;
1010 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1012 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1013 pdfdir=$ac_optarg ;;
1015 -psdir | --psdir | --psdi | --psd | --ps)
1017 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1020 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1021 | -silent | --silent | --silen | --sile | --sil)
1024 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1026 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1028 sbindir=$ac_optarg ;;
1030 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1031 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1032 | --sharedst | --shareds | --shared | --share | --shar \
1034 ac_prev=sharedstatedir ;;
1035 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1036 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1037 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1039 sharedstatedir=$ac_optarg ;;
1041 -site | --site | --sit)
1043 -site=* | --site=* | --sit=*)
1046 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1048 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1049 srcdir=$ac_optarg ;;
1051 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1052 | --syscon | --sysco | --sysc | --sys | --sy)
1053 ac_prev=sysconfdir ;;
1054 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1055 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1056 sysconfdir=$ac_optarg ;;
1058 -target | --target | --targe | --targ | --tar | --ta | --t)
1059 ac_prev=target_alias ;;
1060 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1061 target_alias=$ac_optarg ;;
1063 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1066 -version | --version | --versio | --versi | --vers | -V)
1067 ac_init_version=: ;;
1070 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1074 { (exit 1); exit 1; }; }
1075 ac_useropt_orig=$ac_useropt
1076 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077 case $ac_user_opts in
1081 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1082 ac_unrecognized_sep=', ';;
1084 eval with_$ac_useropt=\$ac_optarg ;;
1086 -without-* | --without-*)
1087 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1088 # Reject names that are not valid shell variable names.
1089 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1090 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1091 { (exit 1); exit 1; }; }
1092 ac_useropt_orig=$ac_useropt
1093 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1094 case $ac_user_opts in
1098 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1099 ac_unrecognized_sep=', ';;
1101 eval with_$ac_useropt=no ;;
1104 # Obsolete; use --with-x.
1107 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1108 | --x-incl | --x-inc | --x-in | --x-i)
1109 ac_prev=x_includes ;;
1110 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1111 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1112 x_includes=$ac_optarg ;;
1114 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1115 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1116 ac_prev=x_libraries ;;
1117 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1118 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1119 x_libraries=$ac_optarg ;;
1121 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1122 Try \`$0 --help' for more information." >&2
1123 { (exit 1); exit 1; }; }
1127 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1128 # Reject names that are not valid shell variable names.
1129 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1130 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1131 { (exit 1); exit 1; }; }
1132 eval $ac_envvar=\$ac_optarg
1133 export $ac_envvar ;;
1136 # FIXME: should be removed in autoconf 3.0.
1137 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1138 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1139 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1140 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1146 if test -n "$ac_prev"; then
1147 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1148 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1149 { (exit 1); exit 1; }; }
1152 if test -n "$ac_unrecognized_opts"; then
1153 case $enable_option_checking in
1155 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1156 { (exit 1); exit 1; }; } ;;
1157 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1161 # Check all directory arguments for consistency.
1162 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1163 datadir sysconfdir sharedstatedir localstatedir includedir \
1164 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1165 libdir localedir mandir
1167 eval ac_val=\$$ac_var
1168 # Remove trailing slashes.
1171 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1172 eval $ac_var=\$ac_val;;
1174 # Be sure to have absolute directory names.
1176 [\\/$]* | ?:[\\/]* ) continue;;
1177 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1179 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1180 { (exit 1); exit 1; }; }
1183 # There might be people who depend on the old broken behavior: `$host'
1184 # used to hold the argument of --host etc.
1185 # FIXME: To remove some day.
1188 target=$target_alias
1190 # FIXME: To remove some day.
1191 if test "x$host_alias" != x; then
1192 if test "x$build_alias" = x; then
1193 cross_compiling=maybe
1194 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1195 If a cross compiler is detected then cross compile mode will be used." >&2
1196 elif test "x$build_alias" != "x$host_alias"; then
1202 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1204 test "$silent" = yes && exec 6>/dev/null
1207 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1208 ac_ls_di=`ls -di .` &&
1209 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1210 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1211 { (exit 1); exit 1; }; }
1212 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1213 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1214 { (exit 1); exit 1; }; }
1217 # Find the source files, if location was not specified.
1218 if test -z "$srcdir"; then
1219 ac_srcdir_defaulted=yes
1220 # Try the directory containing this script, then the parent directory.
1221 ac_confdir=`$as_dirname -- "$as_myself" ||
1222 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1223 X"$as_myself" : 'X\(//\)[^/]' \| \
1224 X"$as_myself" : 'X\(//\)$' \| \
1225 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1226 $as_echo X"$as_myself" |
1227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1245 if test ! -r "$srcdir/$ac_unique_file"; then
1249 ac_srcdir_defaulted=no
1251 if test ! -r "$srcdir/$ac_unique_file"; then
1252 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1253 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1254 { (exit 1); exit 1; }; }
1256 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1258 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1259 { (exit 1); exit 1; }; }
1261 # When building in place, set srcdir=.
1262 if test "$ac_abs_confdir" = "$ac_pwd"; then
1265 # Remove unnecessary trailing slashes from srcdir.
1266 # Double slashes in file names in object file debugging info
1267 # mess up M-x gdb in Emacs.
1269 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1271 for ac_var in $ac_precious_vars; do
1272 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1273 eval ac_env_${ac_var}_value=\$${ac_var}
1274 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1275 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1279 # Report the --help message.
1281 if test "$ac_init_help" = "long"; then
1282 # Omit some internal or obsolete options to make the list less imposing.
1283 # This message is too long to be a string in the A/UX 3.1 sh.
1285 \`configure' configures this package to adapt to many kinds of systems.
1287 Usage: $0 [OPTION]... [VAR=VALUE]...
1289 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1290 VAR=VALUE. See below for descriptions of some of the useful variables.
1292 Defaults for the options are specified in brackets.
1295 -h, --help display this help and exit
1296 --help=short display options specific to this package
1297 --help=recursive display the short help of all the included packages
1298 -V, --version display version information and exit
1299 -q, --quiet, --silent do not print \`checking...' messages
1300 --cache-file=FILE cache test results in FILE [disabled]
1301 -C, --config-cache alias for \`--cache-file=config.cache'
1302 -n, --no-create do not create output files
1303 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1305 Installation directories:
1306 --prefix=PREFIX install architecture-independent files in PREFIX
1307 [$ac_default_prefix]
1308 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1311 By default, \`make install' will install all the files in
1312 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1313 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1314 for instance \`--prefix=\$HOME'.
1316 For better control, use the options below.
1318 Fine tuning of the installation directories:
1319 --bindir=DIR user executables [EPREFIX/bin]
1320 --sbindir=DIR system admin executables [EPREFIX/sbin]
1321 --libexecdir=DIR program executables [EPREFIX/libexec]
1322 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1323 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1324 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1325 --libdir=DIR object code libraries [EPREFIX/lib]
1326 --includedir=DIR C header files [PREFIX/include]
1327 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1328 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1329 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1330 --infodir=DIR info documentation [DATAROOTDIR/info]
1331 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1332 --mandir=DIR man documentation [DATAROOTDIR/man]
1333 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1334 --htmldir=DIR html documentation [DOCDIR]
1335 --dvidir=DIR dvi documentation [DOCDIR]
1336 --pdfdir=DIR pdf documentation [DOCDIR]
1337 --psdir=DIR ps documentation [DOCDIR]
1343 --build=BUILD configure for building on BUILD [guessed]
1344 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1345 --target=TARGET configure for building compilers for TARGET [HOST]
1349 if test -n "$ac_init_help"; then
1354 --disable-option-checking ignore unrecognized --enable/--with options
1355 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1356 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1357 --disable-got-check - disable check for GOT (needed on H8)
1358 --disable-emit-relocs - don't use the --emit-relocs (-q) linker option
1359 --enable-emit-ctor-dtor manually create ctor/dtor list
1362 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1363 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1364 --with-zlib-prefix=<dir> path to installed zlib
1365 --with-libbfd=<file> path to libbfd.a library to use
1366 --with-libiberty=<file> path to libiberty.a library to use
1367 --with-bfd-include-dir=<dir> include path for correct bfd.h
1368 --with-binutils-include-dir=<dir> include path for binutils headers
1369 --with-binutils-ldscript-dir=<dir> path to install elf2flt.ld
1370 --with-binutils-build-dir=<dir> path to compiled binutils tree
1372 Some influential environment variables:
1373 CC C compiler command
1374 CFLAGS C compiler flags
1375 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1376 nonstandard directory <lib dir>
1377 LIBS libraries to pass to the linker, e.g. -l<library>
1378 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1379 you have headers in a nonstandard directory <include dir>
1382 Use these variables to override the choices made by `configure' or to help
1383 it to find libraries and programs with nonstandard names/locations.
1389 if test "$ac_init_help" = "recursive"; then
1390 # If there are subdirs, report their specific --help.
1391 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1392 test -d "$ac_dir" ||
1393 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1398 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1400 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1401 # A ".." for each directory in $ac_dir_suffix.
1402 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1403 case $ac_top_builddir_sub in
1404 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1405 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1408 ac_abs_top_builddir=$ac_pwd
1409 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1410 # for backward compatibility:
1411 ac_top_builddir=$ac_top_build_prefix
1414 .) # We are building in place.
1416 ac_top_srcdir=$ac_top_builddir_sub
1417 ac_abs_top_srcdir=$ac_pwd ;;
1418 [\\/]* | ?:[\\/]* ) # Absolute name.
1419 ac_srcdir=$srcdir$ac_dir_suffix;
1420 ac_top_srcdir=$srcdir
1421 ac_abs_top_srcdir=$srcdir ;;
1423 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1424 ac_top_srcdir=$ac_top_build_prefix$srcdir
1425 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1427 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1429 cd "$ac_dir" || { ac_status=$?; continue; }
1430 # Check for guested configure.
1431 if test -f "$ac_srcdir/configure.gnu"; then
1433 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1434 elif test -f "$ac_srcdir/configure"; then
1436 $SHELL "$ac_srcdir/configure" --help=recursive
1438 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1440 cd "$ac_pwd" || { ac_status=$?; break; }
1444 test -n "$ac_init_help" && exit $ac_status
1445 if $ac_init_version; then
1448 generated by GNU Autoconf 2.63
1450 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1451 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1452 This configure script is free software; the Free Software Foundation
1453 gives unlimited permission to copy, distribute and modify it.
1457 cat >config.log <<_ACEOF
1458 This file contains any messages produced by compilers while
1459 running configure, to aid debugging if configure makes a mistake.
1461 It was created by $as_me, which was
1462 generated by GNU Autoconf 2.63. Invocation command line was
1474 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1475 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1476 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1477 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1478 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1480 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1481 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1483 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1484 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1485 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1486 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1487 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1488 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1489 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1497 test -z "$as_dir" && as_dir=.
1498 $as_echo "PATH: $as_dir"
1514 # Keep a trace of the command line.
1515 # Strip out --no-create and --no-recursion so they do not pile up.
1516 # Strip out --silent because we don't want to record it for future runs.
1517 # Also quote any args containing shell meta-characters.
1518 # Make two passes to allow for proper duplicate-argument suppression.
1522 ac_must_keep_next=false
1528 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1529 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1530 | -silent | --silent | --silen | --sile | --sil)
1533 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1536 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1538 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1539 if test $ac_must_keep_next = true; then
1540 ac_must_keep_next=false # Got value, back to normal.
1543 *=* | --config-cache | -C | -disable-* | --disable-* \
1544 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1545 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1546 | -with-* | --with-* | -without-* | --without-* | --x)
1547 case "$ac_configure_args0 " in
1548 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1551 -* ) ac_must_keep_next=true ;;
1554 ac_configure_args="$ac_configure_args '$ac_arg'"
1559 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1560 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1562 # When interrupted or exit'd, cleanup temporary files, and complete
1563 # config.log. We remove comments because anyway the quotes in there
1564 # would cause problems or look ugly.
1565 # WARNING: Use '\'' to represent an apostrophe within the trap.
1566 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1567 trap 'exit_status=$?
1568 # Save into config.log some information that might help in debugging.
1573 ## ---------------- ##
1574 ## Cache variables. ##
1575 ## ---------------- ##
1578 # The following way of writing the cache mishandles newlines in values,
1580 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1581 eval ac_val=\$$ac_var
1585 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1586 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1589 _ | IFS | as_nl) ;; #(
1590 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1591 *) $as_unset $ac_var ;;
1596 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1597 *${as_nl}ac_space=\ *)
1599 "s/'\''/'\''\\\\'\'''\''/g;
1600 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1603 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1611 ## ----------------- ##
1612 ## Output variables. ##
1613 ## ----------------- ##
1616 for ac_var in $ac_subst_vars
1618 eval ac_val=\$$ac_var
1620 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1622 $as_echo "$ac_var='\''$ac_val'\''"
1626 if test -n "$ac_subst_files"; then
1628 ## ------------------- ##
1629 ## File substitutions. ##
1630 ## ------------------- ##
1633 for ac_var in $ac_subst_files
1635 eval ac_val=\$$ac_var
1637 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1639 $as_echo "$ac_var='\''$ac_val'\''"
1644 if test -s confdefs.h; then
1654 test "$ac_signal" != 0 &&
1655 $as_echo "$as_me: caught signal $ac_signal"
1656 $as_echo "$as_me: exit $exit_status"
1658 rm -f core *.core core.conftest.* &&
1659 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1662 for ac_signal in 1 2 13 15; do
1663 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1667 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1668 rm -f -r conftest* confdefs.h
1670 # Predefined preprocessor variables.
1672 cat >>confdefs.h <<_ACEOF
1673 #define PACKAGE_NAME "$PACKAGE_NAME"
1677 cat >>confdefs.h <<_ACEOF
1678 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1682 cat >>confdefs.h <<_ACEOF
1683 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1687 cat >>confdefs.h <<_ACEOF
1688 #define PACKAGE_STRING "$PACKAGE_STRING"
1692 cat >>confdefs.h <<_ACEOF
1693 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1697 # Let the site file select an alternate cache file if it wants to.
1698 # Prefer an explicitly selected file to automatically selected ones.
1701 if test -n "$CONFIG_SITE"; then
1702 ac_site_file1=$CONFIG_SITE
1703 elif test "x$prefix" != xNONE; then
1704 ac_site_file1=$prefix/share/config.site
1705 ac_site_file2=$prefix/etc/config.site
1707 ac_site_file1=$ac_default_prefix/share/config.site
1708 ac_site_file2=$ac_default_prefix/etc/config.site
1710 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1712 test "x$ac_site_file" = xNONE && continue
1713 if test -r "$ac_site_file"; then
1714 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1715 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1716 sed 's/^/| /' "$ac_site_file" >&5
1721 if test -r "$cache_file"; then
1722 # Some versions of bash will fail to source /dev/null (special
1723 # files actually), so we avoid doing that.
1724 if test -f "$cache_file"; then
1725 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1726 $as_echo "$as_me: loading cache $cache_file" >&6;}
1728 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1729 *) . "./$cache_file";;
1733 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1734 $as_echo "$as_me: creating cache $cache_file" >&6;}
1738 # Check that the precious variables saved in the cache have kept the same
1740 ac_cache_corrupted=false
1741 for ac_var in $ac_precious_vars; do
1742 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1743 eval ac_new_set=\$ac_env_${ac_var}_set
1744 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1745 eval ac_new_val=\$ac_env_${ac_var}_value
1746 case $ac_old_set,$ac_new_set in
1748 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1749 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1750 ac_cache_corrupted=: ;;
1752 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1753 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1754 ac_cache_corrupted=: ;;
1757 if test "x$ac_old_val" != "x$ac_new_val"; then
1758 # differences in whitespace do not lead to failure.
1759 ac_old_val_w=`echo x $ac_old_val`
1760 ac_new_val_w=`echo x $ac_new_val`
1761 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1762 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1763 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1764 ac_cache_corrupted=:
1766 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1767 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1768 eval $ac_var=\$ac_old_val
1770 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1771 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1772 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1773 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1776 # Pass precious variables to config.status.
1777 if test "$ac_new_set" = set; then
1779 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1780 *) ac_arg=$ac_var=$ac_new_val ;;
1782 case " $ac_configure_args " in
1783 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1784 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1788 if $ac_cache_corrupted; then
1789 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1790 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1791 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1792 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1793 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1794 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1795 { (exit 1); exit 1; }; }
1815 ac_cpp='$CPP $CPPFLAGS'
1816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1823 # Check whether --with-zlib-prefix was given.
1824 if test "${with_zlib_prefix+set}" = set; then
1825 withval=$with_zlib_prefix; ac_zlib_prefix=$withval
1833 # Check whether --with-libbfd was given.
1834 if test "${with_libbfd+set}" = set; then
1835 withval=$with_libbfd; ac_libbfd=$withval
1843 # Check whether --with-libiberty was given.
1844 if test "${with_libiberty+set}" = set; then
1845 withval=$with_libiberty; ac_libiberty=$withval
1853 # Check whether --with-bfd-include-dir was given.
1854 if test "${with_bfd_include_dir+set}" = set; then
1855 withval=$with_bfd_include_dir; ac_bfd_include_dir=$withval
1857 ac_bfd_include_dir=NONE
1863 # Check whether --with-binutils-include-dir was given.
1864 if test "${with_binutils_include_dir+set}" = set; then
1865 withval=$with_binutils_include_dir; ac_binutils_include_dir=$withval
1867 ac_binutils_include_dir=NONE
1873 # Check whether --with-binutils-ldscript-dir was given.
1874 if test "${with_binutils_ldscript_dir+set}" = set; then
1875 withval=$with_binutils_ldscript_dir; ac_binutils_ldscript_dir=$withval
1877 ac_binutils_ldscript_dir=NONE
1883 # Check whether --with-binutils-build-dir was given.
1884 if test "${with_binutils_build_dir+set}" = set; then
1885 withval=$with_binutils_build_dir; ac_binutils_build_dir=$withval
1887 ac_binutils_build_dir=NONE
1892 # Check whether --enable-got-check was given.
1893 if test "${enable_got_check+set}" = set; then
1894 enableval=$enable_got_check; got_check=$enableval
1901 # Check whether --enable-emit-relocs was given.
1902 if test "${enable_emit_relocs+set}" = set; then
1903 enableval=$enable_emit_relocs; emit_relocs=$enableval
1910 # Check whether --enable-emit-ctor-dtor was given.
1911 if test "${enable_emit_ctor_dtor+set}" = set; then
1912 enableval=$enable_emit_ctor_dtor; emit_ctor_dtor=$enableval
1920 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1921 if test -f "$ac_dir/install-sh"; then
1923 ac_install_sh="$ac_aux_dir/install-sh -c"
1925 elif test -f "$ac_dir/install.sh"; then
1927 ac_install_sh="$ac_aux_dir/install.sh -c"
1929 elif test -f "$ac_dir/shtool"; then
1931 ac_install_sh="$ac_aux_dir/shtool install -c"
1935 if test -z "$ac_aux_dir"; then
1936 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1937 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1938 { (exit 1); exit 1; }; }
1941 # These three variables are undocumented and unsupported,
1942 # and are intended to be withdrawn in a future Autoconf release.
1943 # They can cause serious problems if a builder's source tree is in a directory
1944 # whose full name contains unusual characters.
1945 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1946 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1947 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1950 # Make sure we can run config.sub.
1951 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1952 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1953 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1954 { (exit 1); exit 1; }; }
1956 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1957 $as_echo_n "checking build system type... " >&6; }
1958 if test "${ac_cv_build+set}" = set; then
1959 $as_echo_n "(cached) " >&6
1961 ac_build_alias=$build_alias
1962 test "x$ac_build_alias" = x &&
1963 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1964 test "x$ac_build_alias" = x &&
1965 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1966 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1967 { (exit 1); exit 1; }; }
1968 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1969 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1970 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1971 { (exit 1); exit 1; }; }
1974 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1975 $as_echo "$ac_cv_build" >&6; }
1976 case $ac_cv_build in
1978 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1979 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
1980 { (exit 1); exit 1; }; };;
1983 ac_save_IFS=$IFS; IFS='-'
1989 # Remember, the first character of IFS is used to create $*,
1990 # except with old shells:
1993 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1996 { $as_echo "$as_me:$LINENO: checking host system type" >&5
1997 $as_echo_n "checking host system type... " >&6; }
1998 if test "${ac_cv_host+set}" = set; then
1999 $as_echo_n "(cached) " >&6
2001 if test "x$host_alias" = x; then
2002 ac_cv_host=$ac_cv_build
2004 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2005 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2006 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2007 { (exit 1); exit 1; }; }
2011 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2012 $as_echo "$ac_cv_host" >&6; }
2015 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2016 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2017 { (exit 1); exit 1; }; };;
2020 ac_save_IFS=$IFS; IFS='-'
2026 # Remember, the first character of IFS is used to create $*,
2027 # except with old shells:
2030 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2033 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2034 $as_echo_n "checking target system type... " >&6; }
2035 if test "${ac_cv_target+set}" = set; then
2036 $as_echo_n "(cached) " >&6
2038 if test "x$target_alias" = x; then
2039 ac_cv_target=$ac_cv_host
2041 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2042 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2043 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2044 { (exit 1); exit 1; }; }
2048 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2049 $as_echo "$ac_cv_target" >&6; }
2050 case $ac_cv_target in
2052 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2053 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2054 { (exit 1); exit 1; }; };;
2056 target=$ac_cv_target
2057 ac_save_IFS=$IFS; IFS='-'
2063 # Remember, the first character of IFS is used to create $*,
2064 # except with old shells:
2067 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2070 # The aliases save the names the user supplied, while $host etc.
2071 # will get canonicalized.
2072 test -n "$target_alias" &&
2073 test "$program_prefix$program_suffix$program_transform_name" = \
2075 program_prefix=${target_alias}-
2078 ac_cpp='$CPP $CPPFLAGS'
2079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2082 if test -n "$ac_tool_prefix"; then
2083 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2084 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2085 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2086 $as_echo_n "checking for $ac_word... " >&6; }
2087 if test "${ac_cv_prog_CC+set}" = set; then
2088 $as_echo_n "(cached) " >&6
2090 if test -n "$CC"; then
2091 ac_cv_prog_CC="$CC" # Let the user override the test.
2093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097 test -z "$as_dir" && as_dir=.
2098 for ac_exec_ext in '' $ac_executable_extensions; do
2099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2100 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2101 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2111 if test -n "$CC"; then
2112 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2113 $as_echo "$CC" >&6; }
2115 { $as_echo "$as_me:$LINENO: result: no" >&5
2116 $as_echo "no" >&6; }
2121 if test -z "$ac_cv_prog_CC"; then
2123 # Extract the first word of "gcc", so it can be a program name with args.
2124 set dummy gcc; ac_word=$2
2125 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2126 $as_echo_n "checking for $ac_word... " >&6; }
2127 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2128 $as_echo_n "(cached) " >&6
2130 if test -n "$ac_ct_CC"; then
2131 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137 test -z "$as_dir" && as_dir=.
2138 for ac_exec_ext in '' $ac_executable_extensions; do
2139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2140 ac_cv_prog_ac_ct_CC="gcc"
2141 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2151 if test -n "$ac_ct_CC"; then
2152 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2153 $as_echo "$ac_ct_CC" >&6; }
2155 { $as_echo "$as_me:$LINENO: result: no" >&5
2156 $as_echo "no" >&6; }
2159 if test "x$ac_ct_CC" = x; then
2162 case $cross_compiling:$ac_tool_warned in
2164 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2166 ac_tool_warned=yes ;;
2174 if test -z "$CC"; then
2175 if test -n "$ac_tool_prefix"; then
2176 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2177 set dummy ${ac_tool_prefix}cc; ac_word=$2
2178 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2179 $as_echo_n "checking for $ac_word... " >&6; }
2180 if test "${ac_cv_prog_CC+set}" = set; then
2181 $as_echo_n "(cached) " >&6
2183 if test -n "$CC"; then
2184 ac_cv_prog_CC="$CC" # Let the user override the test.
2186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190 test -z "$as_dir" && as_dir=.
2191 for ac_exec_ext in '' $ac_executable_extensions; do
2192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2193 ac_cv_prog_CC="${ac_tool_prefix}cc"
2194 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2204 if test -n "$CC"; then
2205 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2206 $as_echo "$CC" >&6; }
2208 { $as_echo "$as_me:$LINENO: result: no" >&5
2209 $as_echo "no" >&6; }
2215 if test -z "$CC"; then
2216 # Extract the first word of "cc", so it can be a program name with args.
2217 set dummy cc; ac_word=$2
2218 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2219 $as_echo_n "checking for $ac_word... " >&6; }
2220 if test "${ac_cv_prog_CC+set}" = set; then
2221 $as_echo_n "(cached) " >&6
2223 if test -n "$CC"; then
2224 ac_cv_prog_CC="$CC" # Let the user override the test.
2227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2231 test -z "$as_dir" && as_dir=.
2232 for ac_exec_ext in '' $ac_executable_extensions; do
2233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2234 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2235 ac_prog_rejected=yes
2239 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2246 if test $ac_prog_rejected = yes; then
2247 # We found a bogon in the path, so make sure we never use it.
2248 set dummy $ac_cv_prog_CC
2250 if test $# != 0; then
2251 # We chose a different compiler from the bogus one.
2252 # However, it has the same basename, so the bogon will be chosen
2253 # first if we set CC to just the basename; use the full file name.
2255 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2261 if test -n "$CC"; then
2262 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2263 $as_echo "$CC" >&6; }
2265 { $as_echo "$as_me:$LINENO: result: no" >&5
2266 $as_echo "no" >&6; }
2271 if test -z "$CC"; then
2272 if test -n "$ac_tool_prefix"; then
2273 for ac_prog in cl.exe
2275 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2276 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2277 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2278 $as_echo_n "checking for $ac_word... " >&6; }
2279 if test "${ac_cv_prog_CC+set}" = set; then
2280 $as_echo_n "(cached) " >&6
2282 if test -n "$CC"; then
2283 ac_cv_prog_CC="$CC" # Let the user override the test.
2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 test -z "$as_dir" && as_dir=.
2290 for ac_exec_ext in '' $ac_executable_extensions; do
2291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2292 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2293 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2303 if test -n "$CC"; then
2304 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2305 $as_echo "$CC" >&6; }
2307 { $as_echo "$as_me:$LINENO: result: no" >&5
2308 $as_echo "no" >&6; }
2312 test -n "$CC" && break
2315 if test -z "$CC"; then
2317 for ac_prog in cl.exe
2319 # Extract the first word of "$ac_prog", so it can be a program name with args.
2320 set dummy $ac_prog; ac_word=$2
2321 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2322 $as_echo_n "checking for $ac_word... " >&6; }
2323 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2324 $as_echo_n "(cached) " >&6
2326 if test -n "$ac_ct_CC"; then
2327 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333 test -z "$as_dir" && as_dir=.
2334 for ac_exec_ext in '' $ac_executable_extensions; do
2335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2336 ac_cv_prog_ac_ct_CC="$ac_prog"
2337 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2346 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2347 if test -n "$ac_ct_CC"; then
2348 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2349 $as_echo "$ac_ct_CC" >&6; }
2351 { $as_echo "$as_me:$LINENO: result: no" >&5
2352 $as_echo "no" >&6; }
2356 test -n "$ac_ct_CC" && break
2359 if test "x$ac_ct_CC" = x; then
2362 case $cross_compiling:$ac_tool_warned in
2364 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2366 ac_tool_warned=yes ;;
2375 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2377 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2378 See \`config.log' for more details." >&5
2379 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2380 See \`config.log' for more details." >&2;}
2381 { (exit 1); exit 1; }; }; }
2383 # Provide some information about the compiler.
2384 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2387 { (ac_try="$ac_compiler --version >&5"
2389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390 *) ac_try_echo=$ac_try;;
2392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2393 $as_echo "$ac_try_echo") >&5
2394 (eval "$ac_compiler --version >&5") 2>&5
2396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }
2398 { (ac_try="$ac_compiler -v >&5"
2400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2401 *) ac_try_echo=$ac_try;;
2403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2404 $as_echo "$ac_try_echo") >&5
2405 (eval "$ac_compiler -v >&5") 2>&5
2407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }
2409 { (ac_try="$ac_compiler -V >&5"
2411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2412 *) ac_try_echo=$ac_try;;
2414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2415 $as_echo "$ac_try_echo") >&5
2416 (eval "$ac_compiler -V >&5") 2>&5
2418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }
2421 cat >conftest.$ac_ext <<_ACEOF
2424 cat confdefs.h >>conftest.$ac_ext
2425 cat >>conftest.$ac_ext <<_ACEOF
2426 /* end confdefs.h. */
2436 ac_clean_files_save=$ac_clean_files
2437 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2438 # Try to create an executable without -o first, disregard a.out.
2439 # It will help us diagnose broken compilers, and finding out an intuition
2441 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2442 $as_echo_n "checking for C compiler default output file name... " >&6; }
2443 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2445 # The possible output files:
2446 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2449 for ac_file in $ac_files
2452 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2453 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2458 if { (ac_try="$ac_link_default"
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_link_default") 2>&5
2467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; then
2469 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2470 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2471 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2472 # so that the user can short-circuit this test for compilers unknown to
2474 for ac_file in $ac_files ''
2476 test -f "$ac_file" || continue
2478 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2481 # We found the default executable, but exeext='' is most
2485 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2487 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2489 # We set ac_cv_exeext here because the later test for it is not
2490 # safe: cross compilers may not add the suffix if given an `-o'
2491 # argument, so we may need to know it at that point already.
2492 # Even if this section looks crufty: it has the advantage of
2499 test "$ac_cv_exeext" = no && ac_cv_exeext=
2505 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2506 $as_echo "$ac_file" >&6; }
2507 if test -z "$ac_file"; then
2508 $as_echo "$as_me: failed program was:" >&5
2509 sed 's/^/| /' conftest.$ac_ext >&5
2511 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2512 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2513 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2514 See \`config.log' for more details." >&5
2515 $as_echo "$as_me: error: C compiler cannot create executables
2516 See \`config.log' for more details." >&2;}
2517 { (exit 77); exit 77; }; }; }
2520 ac_exeext=$ac_cv_exeext
2522 # Check that the compiler produces executables we can run. If not, either
2523 # the compiler is broken, or we cross compile.
2524 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2525 $as_echo_n "checking whether the C compiler works... " >&6; }
2526 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2527 # If not cross compiling, check that we can run a simple program.
2528 if test "$cross_compiling" != yes; then
2529 if { ac_try='./$ac_file'
2530 { (case "(($ac_try" in
2531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2532 *) ac_try_echo=$ac_try;;
2534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2535 $as_echo "$ac_try_echo") >&5
2536 (eval "$ac_try") 2>&5
2538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; }; then
2542 if test "$cross_compiling" = maybe; then
2545 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2547 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2548 If you meant to cross compile, use \`--host'.
2549 See \`config.log' for more details." >&5
2550 $as_echo "$as_me: error: cannot run C compiled programs.
2551 If you meant to cross compile, use \`--host'.
2552 See \`config.log' for more details." >&2;}
2553 { (exit 1); exit 1; }; }; }
2557 { $as_echo "$as_me:$LINENO: result: yes" >&5
2558 $as_echo "yes" >&6; }
2560 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2561 ac_clean_files=$ac_clean_files_save
2562 # Check that the compiler produces executables we can run. If not, either
2563 # the compiler is broken, or we cross compile.
2564 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2565 $as_echo_n "checking whether we are cross compiling... " >&6; }
2566 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2567 $as_echo "$cross_compiling" >&6; }
2569 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2570 $as_echo_n "checking for suffix of executables... " >&6; }
2571 if { (ac_try="$ac_link"
2573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2574 *) ac_try_echo=$ac_try;;
2576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2577 $as_echo "$ac_try_echo") >&5
2578 (eval "$ac_link") 2>&5
2580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); }; then
2582 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2583 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2584 # work properly (i.e., refer to `conftest.exe'), while it won't with
2586 for ac_file in conftest.exe conftest conftest.*; do
2587 test -f "$ac_file" || continue
2589 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2590 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2596 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2598 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2599 See \`config.log' for more details." >&5
2600 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2601 See \`config.log' for more details." >&2;}
2602 { (exit 1); exit 1; }; }; }
2605 rm -f conftest$ac_cv_exeext
2606 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2607 $as_echo "$ac_cv_exeext" >&6; }
2609 rm -f conftest.$ac_ext
2610 EXEEXT=$ac_cv_exeext
2612 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2613 $as_echo_n "checking for suffix of object files... " >&6; }
2614 if test "${ac_cv_objext+set}" = set; then
2615 $as_echo_n "(cached) " >&6
2617 cat >conftest.$ac_ext <<_ACEOF
2620 cat confdefs.h >>conftest.$ac_ext
2621 cat >>conftest.$ac_ext <<_ACEOF
2622 /* end confdefs.h. */
2632 rm -f conftest.o conftest.obj
2633 if { (ac_try="$ac_compile"
2635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2636 *) ac_try_echo=$ac_try;;
2638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2639 $as_echo "$ac_try_echo") >&5
2640 (eval "$ac_compile") 2>&5
2642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); }; then
2644 for ac_file in conftest.o conftest.obj conftest.*; do
2645 test -f "$ac_file" || continue;
2647 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2648 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2653 $as_echo "$as_me: failed program was:" >&5
2654 sed 's/^/| /' conftest.$ac_ext >&5
2656 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2657 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2658 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2659 See \`config.log' for more details." >&5
2660 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2661 See \`config.log' for more details." >&2;}
2662 { (exit 1); exit 1; }; }; }
2665 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2667 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2668 $as_echo "$ac_cv_objext" >&6; }
2669 OBJEXT=$ac_cv_objext
2671 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2672 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2673 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2674 $as_echo_n "(cached) " >&6
2676 cat >conftest.$ac_ext <<_ACEOF
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h. */
2694 rm -f conftest.$ac_objext
2695 if { (ac_try="$ac_compile"
2697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698 *) ac_try_echo=$ac_try;;
2700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2701 $as_echo "$ac_try_echo") >&5
2702 (eval "$ac_compile") 2>conftest.er1
2704 grep -v '^ *+' conftest.er1 >conftest.err
2706 cat conftest.err >&5
2707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); } && {
2709 test -z "$ac_c_werror_flag" ||
2710 test ! -s conftest.err
2711 } && test -s conftest.$ac_objext; then
2714 $as_echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.$ac_ext >&5
2720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2721 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2724 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2725 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2726 if test $ac_compiler_gnu = yes; then
2731 ac_test_CFLAGS=${CFLAGS+set}
2732 ac_save_CFLAGS=$CFLAGS
2733 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2734 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2735 if test "${ac_cv_prog_cc_g+set}" = set; then
2736 $as_echo_n "(cached) " >&6
2738 ac_save_c_werror_flag=$ac_c_werror_flag
2739 ac_c_werror_flag=yes
2742 cat >conftest.$ac_ext <<_ACEOF
2745 cat confdefs.h >>conftest.$ac_ext
2746 cat >>conftest.$ac_ext <<_ACEOF
2747 /* end confdefs.h. */
2757 rm -f conftest.$ac_objext
2758 if { (ac_try="$ac_compile"
2760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761 *) ac_try_echo=$ac_try;;
2763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2764 $as_echo "$ac_try_echo") >&5
2765 (eval "$ac_compile") 2>conftest.er1
2767 grep -v '^ *+' conftest.er1 >conftest.err
2769 cat conftest.err >&5
2770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); } && {
2772 test -z "$ac_c_werror_flag" ||
2773 test ! -s conftest.err
2774 } && test -s conftest.$ac_objext; then
2777 $as_echo "$as_me: failed program was:" >&5
2778 sed 's/^/| /' conftest.$ac_ext >&5
2781 cat >conftest.$ac_ext <<_ACEOF
2784 cat confdefs.h >>conftest.$ac_ext
2785 cat >>conftest.$ac_ext <<_ACEOF
2786 /* end confdefs.h. */
2796 rm -f conftest.$ac_objext
2797 if { (ac_try="$ac_compile"
2799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2800 *) ac_try_echo=$ac_try;;
2802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2803 $as_echo "$ac_try_echo") >&5
2804 (eval "$ac_compile") 2>conftest.er1
2806 grep -v '^ *+' conftest.er1 >conftest.err
2808 cat conftest.err >&5
2809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); } && {
2811 test -z "$ac_c_werror_flag" ||
2812 test ! -s conftest.err
2813 } && test -s conftest.$ac_objext; then
2816 $as_echo "$as_me: failed program was:" >&5
2817 sed 's/^/| /' conftest.$ac_ext >&5
2819 ac_c_werror_flag=$ac_save_c_werror_flag
2821 cat >conftest.$ac_ext <<_ACEOF
2824 cat confdefs.h >>conftest.$ac_ext
2825 cat >>conftest.$ac_ext <<_ACEOF
2826 /* end confdefs.h. */
2836 rm -f conftest.$ac_objext
2837 if { (ac_try="$ac_compile"
2839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2840 *) ac_try_echo=$ac_try;;
2842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2843 $as_echo "$ac_try_echo") >&5
2844 (eval "$ac_compile") 2>conftest.er1
2846 grep -v '^ *+' conftest.er1 >conftest.err
2848 cat conftest.err >&5
2849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); } && {
2851 test -z "$ac_c_werror_flag" ||
2852 test ! -s conftest.err
2853 } && test -s conftest.$ac_objext; then
2856 $as_echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2869 ac_c_werror_flag=$ac_save_c_werror_flag
2871 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2872 $as_echo "$ac_cv_prog_cc_g" >&6; }
2873 if test "$ac_test_CFLAGS" = set; then
2874 CFLAGS=$ac_save_CFLAGS
2875 elif test $ac_cv_prog_cc_g = yes; then
2876 if test "$GCC" = yes; then
2882 if test "$GCC" = yes; then
2888 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2889 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2890 if test "${ac_cv_prog_cc_c89+set}" = set; then
2891 $as_echo_n "(cached) " >&6
2893 ac_cv_prog_cc_c89=no
2895 cat >conftest.$ac_ext <<_ACEOF
2898 cat confdefs.h >>conftest.$ac_ext
2899 cat >>conftest.$ac_ext <<_ACEOF
2900 /* end confdefs.h. */
2903 #include <sys/types.h>
2904 #include <sys/stat.h>
2905 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2906 struct buf { int x; };
2907 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2908 static char *e (p, i)
2914 static char *f (char * (*g) (char **, int), char **p, ...)
2919 s = g (p, va_arg (v,int));
2924 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2925 function prototypes and stuff, but not '\xHH' hex character constants.
2926 These don't provoke an error unfortunately, instead are silently treated
2927 as 'x'. The following induces an error, until -std is added to get
2928 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2929 array size at least. It's necessary to write '\x00'==0 to get something
2930 that's true only with -std. */
2931 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2933 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2934 inside strings and character constants. */
2936 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2938 int test (int i, double x);
2939 struct s1 {int (*f) (int a);};
2940 struct s2 {int (*f) (double a);};
2941 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2947 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2952 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2953 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2955 CC="$ac_save_CC $ac_arg"
2956 rm -f conftest.$ac_objext
2957 if { (ac_try="$ac_compile"
2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960 *) ac_try_echo=$ac_try;;
2962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2963 $as_echo "$ac_try_echo") >&5
2964 (eval "$ac_compile") 2>conftest.er1
2966 grep -v '^ *+' conftest.er1 >conftest.err
2968 cat conftest.err >&5
2969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); } && {
2971 test -z "$ac_c_werror_flag" ||
2972 test ! -s conftest.err
2973 } && test -s conftest.$ac_objext; then
2974 ac_cv_prog_cc_c89=$ac_arg
2976 $as_echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.$ac_ext >&5
2982 rm -f core conftest.err conftest.$ac_objext
2983 test "x$ac_cv_prog_cc_c89" != "xno" && break
2985 rm -f conftest.$ac_ext
2990 case "x$ac_cv_prog_cc_c89" in
2992 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2993 $as_echo "none needed" >&6; } ;;
2995 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2996 $as_echo "unsupported" >&6; } ;;
2998 CC="$CC $ac_cv_prog_cc_c89"
2999 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3000 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3005 ac_cpp='$CPP $CPPFLAGS'
3006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3010 # Find a good install program. We prefer a C program (faster),
3011 # so one script is as good as another. But avoid the broken or
3012 # incompatible versions:
3013 # SysV /etc/install, /usr/sbin/install
3014 # SunOS /usr/etc/install
3015 # IRIX /sbin/install
3017 # AmigaOS /C/install, which installs bootblocks on floppy discs
3018 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3019 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3020 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3021 # OS/2's system install, which has a completely different semantic
3022 # ./install, which can be erroneously created by make from ./install.sh.
3023 # Reject install programs that cannot install multiple files.
3024 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3025 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3026 if test -z "$INSTALL"; then
3027 if test "${ac_cv_path_install+set}" = set; then
3028 $as_echo_n "(cached) " >&6
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 test -z "$as_dir" && as_dir=.
3035 # Account for people who put trailing slashes in PATH elements.
3037 ./ | .// | /cC/* | \
3038 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3039 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3042 # OSF1 and SCO ODT 3.0 have their own names for install.
3043 # Don't use installbsd from OSF since it installs stuff as root
3045 for ac_prog in ginstall scoinst install; do
3046 for ac_exec_ext in '' $ac_executable_extensions; do
3047 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3048 if test $ac_prog = install &&
3049 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3050 # AIX install. It has an incompatible calling convention.
3052 elif test $ac_prog = install &&
3053 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3054 # program-specific install script used by HP pwplus--don't use.
3057 rm -rf conftest.one conftest.two conftest.dir
3058 echo one > conftest.one
3059 echo two > conftest.two
3061 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3062 test -s conftest.one && test -s conftest.two &&
3063 test -s conftest.dir/conftest.one &&
3064 test -s conftest.dir/conftest.two
3066 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3079 rm -rf conftest.one conftest.two conftest.dir
3082 if test "${ac_cv_path_install+set}" = set; then
3083 INSTALL=$ac_cv_path_install
3085 # As a last resort, use the slow shell script. Don't cache a
3086 # value for INSTALL within a source directory, because that will
3087 # break other packages using the cache if that directory is
3088 # removed, or if the value is a relative name.
3089 INSTALL=$ac_install_sh
3092 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3093 $as_echo "$INSTALL" >&6; }
3095 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3096 # It thinks the first close brace ends the variable substitution.
3097 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3099 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3101 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3104 if test "$ac_binutils_build_dir" != "NONE"; then
3105 test "$ac_libbfd" = "NONE" && ac_libbfd="$ac_binutils_build_dir/bfd/libbfd.a"
3106 test "$ac_libiberty" = "NONE" && ac_libiberty="$ac_binutils_build_dir/libiberty/libiberty.a"
3107 test "$ac_bfd_include_dir" = "NONE" && ac_bfd_include_dir="$ac_binutils_build_dir/bfd"
3108 test "$ac_binutils_include_dir" = "NONE" && ac_binutils_include_dir="$ac_binutils_build_dir/include"
3111 if test "$ac_libiberty" = "NONE"; then
3114 { $as_echo "$as_me:$LINENO: checking for objalloc_create in -liberty" >&5
3115 $as_echo_n "checking for objalloc_create in -liberty... " >&6; }
3116 if test "${ac_cv_lib_iberty_objalloc_create+set}" = set; then
3117 $as_echo_n "(cached) " >&6
3119 ac_check_lib_save_LIBS=$LIBS
3120 LIBS="-liberty $LIBS"
3121 cat >conftest.$ac_ext <<_ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3128 /* Override any GCC internal prototype to avoid an error.
3129 Use char because int might match the return type of a GCC
3130 builtin and then its argument prototype would still apply. */
3134 char objalloc_create ();
3138 return objalloc_create ();
3143 rm -f conftest.$ac_objext conftest$ac_exeext
3144 if { (ac_try="$ac_link"
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3150 $as_echo "$ac_try_echo") >&5
3151 (eval "$ac_link") 2>conftest.er1
3153 grep -v '^ *+' conftest.er1 >conftest.err
3155 cat conftest.err >&5
3156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); } && {
3158 test -z "$ac_c_werror_flag" ||
3159 test ! -s conftest.err
3160 } && test -s conftest$ac_exeext && {
3161 test "$cross_compiling" = yes ||
3162 $as_test_x conftest$ac_exeext
3164 ac_cv_lib_iberty_objalloc_create=yes
3166 $as_echo "$as_me: failed program was:" >&5
3167 sed 's/^/| /' conftest.$ac_ext >&5
3169 ac_cv_lib_iberty_objalloc_create=no
3172 rm -rf conftest.dSYM
3173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3174 conftest$ac_exeext conftest.$ac_ext
3175 LIBS=$ac_check_lib_save_LIBS
3177 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_iberty_objalloc_create" >&5
3178 $as_echo "$ac_cv_lib_iberty_objalloc_create" >&6; }
3179 if test "x$ac_cv_lib_iberty_objalloc_create" = x""yes; then
3180 cat >>confdefs.h <<_ACEOF
3181 #define HAVE_LIBIBERTY 1
3184 LIBS="-liberty $LIBS"
3190 LIBS="$ac_libiberty $LIBS"
3192 if test "$ac_libbfd" = "NONE"; then
3194 { $as_echo "$as_me:$LINENO: checking for bfd_openr in -lbfd" >&5
3195 $as_echo_n "checking for bfd_openr in -lbfd... " >&6; }
3196 if test "${ac_cv_lib_bfd_bfd_openr+set}" = set; then
3197 $as_echo_n "(cached) " >&6
3199 ac_check_lib_save_LIBS=$LIBS
3201 cat >conftest.$ac_ext <<_ACEOF
3204 cat confdefs.h >>conftest.$ac_ext
3205 cat >>conftest.$ac_ext <<_ACEOF
3206 /* end confdefs.h. */
3208 /* Override any GCC internal prototype to avoid an error.
3209 Use char because int might match the return type of a GCC
3210 builtin and then its argument prototype would still apply. */
3218 return bfd_openr ();
3223 rm -f conftest.$ac_objext conftest$ac_exeext
3224 if { (ac_try="$ac_link"
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3230 $as_echo "$ac_try_echo") >&5
3231 (eval "$ac_link") 2>conftest.er1
3233 grep -v '^ *+' conftest.er1 >conftest.err
3235 cat conftest.err >&5
3236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); } && {
3238 test -z "$ac_c_werror_flag" ||
3239 test ! -s conftest.err
3240 } && test -s conftest$ac_exeext && {
3241 test "$cross_compiling" = yes ||
3242 $as_test_x conftest$ac_exeext
3244 ac_cv_lib_bfd_bfd_openr=yes
3246 $as_echo "$as_me: failed program was:" >&5
3247 sed 's/^/| /' conftest.$ac_ext >&5
3249 ac_cv_lib_bfd_bfd_openr=no
3252 rm -rf conftest.dSYM
3253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3254 conftest$ac_exeext conftest.$ac_ext
3255 LIBS=$ac_check_lib_save_LIBS
3257 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bfd_bfd_openr" >&5
3258 $as_echo "$ac_cv_lib_bfd_bfd_openr" >&6; }
3259 if test "x$ac_cv_lib_bfd_bfd_openr" = x""yes; then
3260 cat >>confdefs.h <<_ACEOF
3261 #define HAVE_LIBBFD 1
3270 LIBS="$ac_libbfd $LIBS"
3272 if test "$ac_zlib_prefix" = "NONE"; then
3274 { $as_echo "$as_me:$LINENO: checking for deflate in -lz" >&5
3275 $as_echo_n "checking for deflate in -lz... " >&6; }
3276 if test "${ac_cv_lib_z_deflate+set}" = set; then
3277 $as_echo_n "(cached) " >&6
3279 ac_check_lib_save_LIBS=$LIBS
3281 cat >conftest.$ac_ext <<_ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h. */
3288 /* Override any GCC internal prototype to avoid an error.
3289 Use char because int might match the return type of a GCC
3290 builtin and then its argument prototype would still apply. */
3303 rm -f conftest.$ac_objext conftest$ac_exeext
3304 if { (ac_try="$ac_link"
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3310 $as_echo "$ac_try_echo") >&5
3311 (eval "$ac_link") 2>conftest.er1
3313 grep -v '^ *+' conftest.er1 >conftest.err
3315 cat conftest.err >&5
3316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317 (exit $ac_status); } && {
3318 test -z "$ac_c_werror_flag" ||
3319 test ! -s conftest.err
3320 } && test -s conftest$ac_exeext && {
3321 test "$cross_compiling" = yes ||
3322 $as_test_x conftest$ac_exeext
3324 ac_cv_lib_z_deflate=yes
3326 $as_echo "$as_me: failed program was:" >&5
3327 sed 's/^/| /' conftest.$ac_ext >&5
3329 ac_cv_lib_z_deflate=no
3332 rm -rf conftest.dSYM
3333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3334 conftest$ac_exeext conftest.$ac_ext
3335 LIBS=$ac_check_lib_save_LIBS
3337 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
3338 $as_echo "$ac_cv_lib_z_deflate" >&6; }
3339 if test "x$ac_cv_lib_z_deflate" = x""yes; then
3340 cat >>confdefs.h <<_ACEOF
3349 LIBS="-L$ac_zlib_prefix/lib -lz $LIBS"
3353 if test "$ac_bfd_include_dir" != "NONE"; then
3354 bfd_include_dir="-I$ac_bfd_include_dir"
3357 binutils_include_dir=
3358 if test "$ac_binutils_include_dir" != "NONE"; then
3359 binutils_include_dir="-I$ac_binutils_include_dir"
3363 if test "$ac_zlib_prefix" != "NONE"; then
3364 zlib_include_dir="-I$ac_zlib_prefix/include"
3367 binutils_ldscript_dir=
3368 if test "$ac_binutils_ldscript_dir" = "NONE"; then
3369 ac_binutils_ldscript_dir="\${TOOLDIR}/../${target_alias}/lib"
3371 binutils_ldscript_dir="$ac_binutils_ldscript_dir"
3373 if test "$ac_libbfd" = "NONE" -o "$ac_libiberty" = "NONE" ; then
3374 { { $as_echo "$as_me:$LINENO: error:
3376 You need to specify the location of the libfd.a and libiberty.a
3377 host libraries from the binutils package.
3379 Run configure again specifying these options:
3381 ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>
3383 $as_echo "$as_me: error:
3385 You need to specify the location of the libfd.a and libiberty.a
3386 host libraries from the binutils package.
3388 Run configure again specifying these options:
3390 ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>
3392 { (exit 1); exit 1; }; }
3395 if test "$ac_bfd_include_dir" = "NONE" ; then
3396 { { $as_echo "$as_me:$LINENO: error:
3398 You need to specify the location of the bfd.h header from a
3399 configured/compiled version of the binutils package for your target.
3400 Without this your elf2flt may crash as it will try to use the
3401 systems bfd.h which may be from a different binutils package.
3403 Run configure again specifying these options:
3405 ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>
3407 $as_echo "$as_me: error:
3409 You need to specify the location of the bfd.h header from a
3410 configured/compiled version of the binutils package for your target.
3411 Without this your elf2flt may crash as it will try to use the
3412 systems bfd.h which may be from a different binutils package.
3414 Run configure again specifying these options:
3416 ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>
3418 { (exit 1); exit 1; }; }
3428 { $as_echo "$as_me:$LINENO: checking for malloc in -lc" >&5
3429 $as_echo_n "checking for malloc in -lc... " >&6; }
3430 if test "${ac_cv_lib_c_malloc+set}" = set; then
3431 $as_echo_n "(cached) " >&6
3433 ac_check_lib_save_LIBS=$LIBS
3435 cat >conftest.$ac_ext <<_ACEOF
3438 cat confdefs.h >>conftest.$ac_ext
3439 cat >>conftest.$ac_ext <<_ACEOF
3440 /* end confdefs.h. */
3442 /* Override any GCC internal prototype to avoid an error.
3443 Use char because int might match the return type of a GCC
3444 builtin and then its argument prototype would still apply. */
3457 rm -f conftest.$ac_objext conftest$ac_exeext
3458 if { (ac_try="$ac_link"
3460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461 *) ac_try_echo=$ac_try;;
3463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3464 $as_echo "$ac_try_echo") >&5
3465 (eval "$ac_link") 2>conftest.er1
3467 grep -v '^ *+' conftest.er1 >conftest.err
3469 cat conftest.err >&5
3470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); } && {
3472 test -z "$ac_c_werror_flag" ||
3473 test ! -s conftest.err
3474 } && test -s conftest$ac_exeext && {
3475 test "$cross_compiling" = yes ||
3476 $as_test_x conftest$ac_exeext
3478 ac_cv_lib_c_malloc=yes
3480 $as_echo "$as_me: failed program was:" >&5
3481 sed 's/^/| /' conftest.$ac_ext >&5
3483 ac_cv_lib_c_malloc=no
3486 rm -rf conftest.dSYM
3487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3488 conftest$ac_exeext conftest.$ac_ext
3489 LIBS=$ac_check_lib_save_LIBS
3491 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_malloc" >&5
3492 $as_echo "$ac_cv_lib_c_malloc" >&6; }
3493 if test "x$ac_cv_lib_c_malloc" = x""yes; then
3499 ac_cpp='$CPP $CPPFLAGS'
3500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3503 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3504 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3505 # On Suns, sometimes $CPP names a directory.
3506 if test -n "$CPP" && test -d "$CPP"; then
3509 if test -z "$CPP"; then
3510 if test "${ac_cv_prog_CPP+set}" = set; then
3511 $as_echo_n "(cached) " >&6
3513 # Double quotes because CPP needs to be expanded
3514 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3517 for ac_c_preproc_warn_flag in '' yes
3519 # Use a header file that comes with gcc, so configuring glibc
3520 # with a fresh cross-compiler works.
3521 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3522 # <limits.h> exists even on freestanding compilers.
3523 # On the NeXT, cc -E runs the code through the compiler's parser,
3524 # not just through cpp. "Syntax error" is here to catch this case.
3525 cat >conftest.$ac_ext <<_ACEOF
3528 cat confdefs.h >>conftest.$ac_ext
3529 cat >>conftest.$ac_ext <<_ACEOF
3530 /* end confdefs.h. */
3532 # include <limits.h>
3534 # include <assert.h>
3538 if { (ac_try="$ac_cpp conftest.$ac_ext"
3540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541 *) ac_try_echo=$ac_try;;
3543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3544 $as_echo "$ac_try_echo") >&5
3545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3547 grep -v '^ *+' conftest.er1 >conftest.err
3549 cat conftest.err >&5
3550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); } >/dev/null && {
3552 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3553 test ! -s conftest.err
3557 $as_echo "$as_me: failed program was:" >&5
3558 sed 's/^/| /' conftest.$ac_ext >&5
3560 # Broken: fails on valid input.
3564 rm -f conftest.err conftest.$ac_ext
3566 # OK, works on sane cases. Now check whether nonexistent headers
3567 # can be detected and how.
3568 cat >conftest.$ac_ext <<_ACEOF
3571 cat confdefs.h >>conftest.$ac_ext
3572 cat >>conftest.$ac_ext <<_ACEOF
3573 /* end confdefs.h. */
3574 #include <ac_nonexistent.h>
3576 if { (ac_try="$ac_cpp conftest.$ac_ext"
3578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579 *) ac_try_echo=$ac_try;;
3581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3582 $as_echo "$ac_try_echo") >&5
3583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3585 grep -v '^ *+' conftest.er1 >conftest.err
3587 cat conftest.err >&5
3588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } >/dev/null && {
3590 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3591 test ! -s conftest.err
3593 # Broken: success on invalid input.
3596 $as_echo "$as_me: failed program was:" >&5
3597 sed 's/^/| /' conftest.$ac_ext >&5
3599 # Passes both tests.
3604 rm -f conftest.err conftest.$ac_ext
3607 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3608 rm -f conftest.err conftest.$ac_ext
3609 if $ac_preproc_ok; then
3621 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3622 $as_echo "$CPP" >&6; }
3624 for ac_c_preproc_warn_flag in '' yes
3626 # Use a header file that comes with gcc, so configuring glibc
3627 # with a fresh cross-compiler works.
3628 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3629 # <limits.h> exists even on freestanding compilers.
3630 # On the NeXT, cc -E runs the code through the compiler's parser,
3631 # not just through cpp. "Syntax error" is here to catch this case.
3632 cat >conftest.$ac_ext <<_ACEOF
3635 cat confdefs.h >>conftest.$ac_ext
3636 cat >>conftest.$ac_ext <<_ACEOF
3637 /* end confdefs.h. */
3639 # include <limits.h>
3641 # include <assert.h>
3645 if { (ac_try="$ac_cpp conftest.$ac_ext"
3647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3648 *) ac_try_echo=$ac_try;;
3650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3651 $as_echo "$ac_try_echo") >&5
3652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3654 grep -v '^ *+' conftest.er1 >conftest.err
3656 cat conftest.err >&5
3657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); } >/dev/null && {
3659 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3660 test ! -s conftest.err
3664 $as_echo "$as_me: failed program was:" >&5
3665 sed 's/^/| /' conftest.$ac_ext >&5
3667 # Broken: fails on valid input.
3671 rm -f conftest.err conftest.$ac_ext
3673 # OK, works on sane cases. Now check whether nonexistent headers
3674 # can be detected and how.
3675 cat >conftest.$ac_ext <<_ACEOF
3678 cat confdefs.h >>conftest.$ac_ext
3679 cat >>conftest.$ac_ext <<_ACEOF
3680 /* end confdefs.h. */
3681 #include <ac_nonexistent.h>
3683 if { (ac_try="$ac_cpp conftest.$ac_ext"
3685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3686 *) ac_try_echo=$ac_try;;
3688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3689 $as_echo "$ac_try_echo") >&5
3690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3692 grep -v '^ *+' conftest.er1 >conftest.err
3694 cat conftest.err >&5
3695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); } >/dev/null && {
3697 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3698 test ! -s conftest.err
3700 # Broken: success on invalid input.
3703 $as_echo "$as_me: failed program was:" >&5
3704 sed 's/^/| /' conftest.$ac_ext >&5
3706 # Passes both tests.
3711 rm -f conftest.err conftest.$ac_ext
3714 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3715 rm -f conftest.err conftest.$ac_ext
3716 if $ac_preproc_ok; then
3719 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3721 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3722 See \`config.log' for more details." >&5
3723 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3724 See \`config.log' for more details." >&2;}
3725 { (exit 1); exit 1; }; }; }
3729 ac_cpp='$CPP $CPPFLAGS'
3730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3735 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3736 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3737 if test "${ac_cv_path_GREP+set}" = set; then
3738 $as_echo_n "(cached) " >&6
3740 if test -z "$GREP"; then
3741 ac_path_GREP_found=false
3742 # Loop through the user's path and test for each of PROGNAME-LIST
3743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3747 test -z "$as_dir" && as_dir=.
3748 for ac_prog in grep ggrep; do
3749 for ac_exec_ext in '' $ac_executable_extensions; do
3750 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3751 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3752 # Check for GNU ac_path_GREP and select it if it is found.
3753 # Check for GNU $ac_path_GREP
3754 case `"$ac_path_GREP" --version 2>&1` in
3756 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3759 $as_echo_n 0123456789 >"conftest.in"
3762 cat "conftest.in" "conftest.in" >"conftest.tmp"
3763 mv "conftest.tmp" "conftest.in"
3764 cp "conftest.in" "conftest.nl"
3765 $as_echo 'GREP' >> "conftest.nl"
3766 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3767 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3768 ac_count=`expr $ac_count + 1`
3769 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3770 # Best one so far, save it but keep looking for a better one
3771 ac_cv_path_GREP="$ac_path_GREP"
3772 ac_path_GREP_max=$ac_count
3774 # 10*(2^10) chars as input seems more than enough
3775 test $ac_count -gt 10 && break
3777 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3780 $ac_path_GREP_found && break 3
3785 if test -z "$ac_cv_path_GREP"; then
3786 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3787 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3788 { (exit 1); exit 1; }; }
3791 ac_cv_path_GREP=$GREP
3795 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3796 $as_echo "$ac_cv_path_GREP" >&6; }
3797 GREP="$ac_cv_path_GREP"
3800 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3801 $as_echo_n "checking for egrep... " >&6; }
3802 if test "${ac_cv_path_EGREP+set}" = set; then
3803 $as_echo_n "(cached) " >&6
3805 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3806 then ac_cv_path_EGREP="$GREP -E"
3808 if test -z "$EGREP"; then
3809 ac_path_EGREP_found=false
3810 # Loop through the user's path and test for each of PROGNAME-LIST
3811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3812 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3815 test -z "$as_dir" && as_dir=.
3816 for ac_prog in egrep; do
3817 for ac_exec_ext in '' $ac_executable_extensions; do
3818 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3819 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3820 # Check for GNU ac_path_EGREP and select it if it is found.
3821 # Check for GNU $ac_path_EGREP
3822 case `"$ac_path_EGREP" --version 2>&1` in
3824 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3827 $as_echo_n 0123456789 >"conftest.in"
3830 cat "conftest.in" "conftest.in" >"conftest.tmp"
3831 mv "conftest.tmp" "conftest.in"
3832 cp "conftest.in" "conftest.nl"
3833 $as_echo 'EGREP' >> "conftest.nl"
3834 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3835 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3836 ac_count=`expr $ac_count + 1`
3837 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3838 # Best one so far, save it but keep looking for a better one
3839 ac_cv_path_EGREP="$ac_path_EGREP"
3840 ac_path_EGREP_max=$ac_count
3842 # 10*(2^10) chars as input seems more than enough
3843 test $ac_count -gt 10 && break
3845 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3848 $ac_path_EGREP_found && break 3
3853 if test -z "$ac_cv_path_EGREP"; then
3854 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3855 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3856 { (exit 1); exit 1; }; }
3859 ac_cv_path_EGREP=$EGREP
3864 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3865 $as_echo "$ac_cv_path_EGREP" >&6; }
3866 EGREP="$ac_cv_path_EGREP"
3869 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3870 $as_echo_n "checking for ANSI C header files... " >&6; }
3871 if test "${ac_cv_header_stdc+set}" = set; then
3872 $as_echo_n "(cached) " >&6
3874 cat >conftest.$ac_ext <<_ACEOF
3877 cat confdefs.h >>conftest.$ac_ext
3878 cat >>conftest.$ac_ext <<_ACEOF
3879 /* end confdefs.h. */
3893 rm -f conftest.$ac_objext
3894 if { (ac_try="$ac_compile"
3896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3897 *) ac_try_echo=$ac_try;;
3899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3900 $as_echo "$ac_try_echo") >&5
3901 (eval "$ac_compile") 2>conftest.er1
3903 grep -v '^ *+' conftest.er1 >conftest.err
3905 cat conftest.err >&5
3906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); } && {
3908 test -z "$ac_c_werror_flag" ||
3909 test ! -s conftest.err
3910 } && test -s conftest.$ac_objext; then
3911 ac_cv_header_stdc=yes
3913 $as_echo "$as_me: failed program was:" >&5
3914 sed 's/^/| /' conftest.$ac_ext >&5
3916 ac_cv_header_stdc=no
3919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3921 if test $ac_cv_header_stdc = yes; then
3922 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3923 cat >conftest.$ac_ext <<_ACEOF
3926 cat confdefs.h >>conftest.$ac_ext
3927 cat >>conftest.$ac_ext <<_ACEOF
3928 /* end confdefs.h. */
3932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3933 $EGREP "memchr" >/dev/null 2>&1; then
3936 ac_cv_header_stdc=no
3942 if test $ac_cv_header_stdc = yes; then
3943 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3944 cat >conftest.$ac_ext <<_ACEOF
3947 cat confdefs.h >>conftest.$ac_ext
3948 cat >>conftest.$ac_ext <<_ACEOF
3949 /* end confdefs.h. */
3953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3954 $EGREP "free" >/dev/null 2>&1; then
3957 ac_cv_header_stdc=no
3963 if test $ac_cv_header_stdc = yes; then
3964 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3965 if test "$cross_compiling" = yes; then
3968 cat >conftest.$ac_ext <<_ACEOF
3971 cat confdefs.h >>conftest.$ac_ext
3972 cat >>conftest.$ac_ext <<_ACEOF
3973 /* end confdefs.h. */
3976 #if ((' ' & 0x0FF) == 0x020)
3977 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3978 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3980 # define ISLOWER(c) \
3981 (('a' <= (c) && (c) <= 'i') \
3982 || ('j' <= (c) && (c) <= 'r') \
3983 || ('s' <= (c) && (c) <= 'z'))
3984 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3987 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3992 for (i = 0; i < 256; i++)
3993 if (XOR (islower (i), ISLOWER (i))
3994 || toupper (i) != TOUPPER (i))
3999 rm -f conftest$ac_exeext
4000 if { (ac_try="$ac_link"
4002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003 *) ac_try_echo=$ac_try;;
4005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4006 $as_echo "$ac_try_echo") >&5
4007 (eval "$ac_link") 2>&5
4009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4011 { (case "(($ac_try" in
4012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013 *) ac_try_echo=$ac_try;;
4015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4016 $as_echo "$ac_try_echo") >&5
4017 (eval "$ac_try") 2>&5
4019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); }; }; then
4023 $as_echo "$as_me: program exited with status $ac_status" >&5
4024 $as_echo "$as_me: failed program was:" >&5
4025 sed 's/^/| /' conftest.$ac_ext >&5
4028 ac_cv_header_stdc=no
4030 rm -rf conftest.dSYM
4031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4037 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4038 $as_echo "$ac_cv_header_stdc" >&6; }
4039 if test $ac_cv_header_stdc = yes; then
4041 cat >>confdefs.h <<\_ACEOF
4042 #define STDC_HEADERS 1
4047 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4057 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4058 inttypes.h stdint.h unistd.h
4060 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4061 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4062 $as_echo_n "checking for $ac_header... " >&6; }
4063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4064 $as_echo_n "(cached) " >&6
4066 cat >conftest.$ac_ext <<_ACEOF
4069 cat confdefs.h >>conftest.$ac_ext
4070 cat >>conftest.$ac_ext <<_ACEOF
4071 /* end confdefs.h. */
4072 $ac_includes_default
4074 #include <$ac_header>
4076 rm -f conftest.$ac_objext
4077 if { (ac_try="$ac_compile"
4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4083 $as_echo "$ac_try_echo") >&5
4084 (eval "$ac_compile") 2>conftest.er1
4086 grep -v '^ *+' conftest.er1 >conftest.err
4088 cat conftest.err >&5
4089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); } && {
4091 test -z "$ac_c_werror_flag" ||
4092 test ! -s conftest.err
4093 } && test -s conftest.$ac_objext; then
4094 eval "$as_ac_Header=yes"
4096 $as_echo "$as_me: failed program was:" >&5
4097 sed 's/^/| /' conftest.$ac_ext >&5
4099 eval "$as_ac_Header=no"
4102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4104 ac_res=`eval 'as_val=${'$as_ac_Header'}
4105 $as_echo "$as_val"'`
4106 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4107 $as_echo "$ac_res" >&6; }
4108 as_val=`eval 'as_val=${'$as_ac_Header'}
4109 $as_echo "$as_val"'`
4110 if test "x$as_val" = x""yes; then
4111 cat >>confdefs.h <<_ACEOF
4112 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4123 for ac_header in fcntl.h unistd.h bfd.h
4125 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4127 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4128 $as_echo_n "checking for $ac_header... " >&6; }
4129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4130 $as_echo_n "(cached) " >&6
4132 ac_res=`eval 'as_val=${'$as_ac_Header'}
4133 $as_echo "$as_val"'`
4134 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4135 $as_echo "$ac_res" >&6; }
4137 # Is the header compilable?
4138 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4139 $as_echo_n "checking $ac_header usability... " >&6; }
4140 cat >conftest.$ac_ext <<_ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h. */
4146 $ac_includes_default
4147 #include <$ac_header>
4149 rm -f conftest.$ac_objext
4150 if { (ac_try="$ac_compile"
4152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4153 *) ac_try_echo=$ac_try;;
4155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4156 $as_echo "$ac_try_echo") >&5
4157 (eval "$ac_compile") 2>conftest.er1
4159 grep -v '^ *+' conftest.er1 >conftest.err
4161 cat conftest.err >&5
4162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); } && {
4164 test -z "$ac_c_werror_flag" ||
4165 test ! -s conftest.err
4166 } && test -s conftest.$ac_objext; then
4167 ac_header_compiler=yes
4169 $as_echo "$as_me: failed program was:" >&5
4170 sed 's/^/| /' conftest.$ac_ext >&5
4172 ac_header_compiler=no
4175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4176 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4177 $as_echo "$ac_header_compiler" >&6; }
4179 # Is the header present?
4180 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4181 $as_echo_n "checking $ac_header presence... " >&6; }
4182 cat >conftest.$ac_ext <<_ACEOF
4185 cat confdefs.h >>conftest.$ac_ext
4186 cat >>conftest.$ac_ext <<_ACEOF
4187 /* end confdefs.h. */
4188 #include <$ac_header>
4190 if { (ac_try="$ac_cpp conftest.$ac_ext"
4192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4193 *) ac_try_echo=$ac_try;;
4195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4196 $as_echo "$ac_try_echo") >&5
4197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4199 grep -v '^ *+' conftest.er1 >conftest.err
4201 cat conftest.err >&5
4202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); } >/dev/null && {
4204 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4205 test ! -s conftest.err
4207 ac_header_preproc=yes
4209 $as_echo "$as_me: failed program was:" >&5
4210 sed 's/^/| /' conftest.$ac_ext >&5
4212 ac_header_preproc=no
4215 rm -f conftest.err conftest.$ac_ext
4216 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4217 $as_echo "$ac_header_preproc" >&6; }
4219 # So? What about this header?
4220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4223 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4225 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4226 ac_header_preproc=yes
4229 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4230 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4231 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4232 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4233 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4234 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4235 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4236 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4237 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4238 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4239 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4240 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4244 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4245 $as_echo_n "checking for $ac_header... " >&6; }
4246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4247 $as_echo_n "(cached) " >&6
4249 eval "$as_ac_Header=\$ac_header_preproc"
4251 ac_res=`eval 'as_val=${'$as_ac_Header'}
4252 $as_echo "$as_val"'`
4253 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4254 $as_echo "$ac_res" >&6; }
4257 as_val=`eval 'as_val=${'$as_ac_Header'}
4258 $as_echo "$as_val"'`
4259 if test "x$as_val" = x""yes; then
4260 cat >>confdefs.h <<_ACEOF
4261 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4269 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4270 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4271 if test "${ac_cv_c_const+set}" = set; then
4272 $as_echo_n "(cached) " >&6
4274 cat >conftest.$ac_ext <<_ACEOF
4277 cat confdefs.h >>conftest.$ac_ext
4278 cat >>conftest.$ac_ext <<_ACEOF
4279 /* end confdefs.h. */
4284 /* FIXME: Include the comments suggested by Paul. */
4286 /* Ultrix mips cc rejects this. */
4287 typedef int charset[2];
4289 /* SunOS 4.1.1 cc rejects this. */
4290 char const *const *pcpcc;
4292 /* NEC SVR4.0.2 mips cc rejects this. */
4293 struct point {int x, y;};
4294 static struct point const zero = {0,0};
4295 /* AIX XL C 1.02.0.0 rejects this.
4296 It does not let you subtract one const X* pointer from another in
4297 an arm of an if-expression whose if-part is not a constant
4299 const char *g = "string";
4300 pcpcc = &g + (g ? g-g : 0);
4301 /* HPUX 7.0 cc rejects these. */
4303 ppc = (char**) pcpcc;
4304 pcpcc = (char const *const *) ppc;
4305 { /* SCO 3.2v4 cc rejects this. */
4307 char const *s = 0 ? (char *) 0 : (char const *) 0;
4312 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4314 const int *foo = &x[0];
4317 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4318 typedef const int *iptr;
4322 { /* AIX XL C 1.02.0.0 rejects this saying
4323 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4324 struct s { int j; const int *ap[3]; };
4325 struct s *b; b->j = 5;
4327 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4331 return !cs[0] && !zero.x;
4338 rm -f conftest.$ac_objext
4339 if { (ac_try="$ac_compile"
4341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4342 *) ac_try_echo=$ac_try;;
4344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4345 $as_echo "$ac_try_echo") >&5
4346 (eval "$ac_compile") 2>conftest.er1
4348 grep -v '^ *+' conftest.er1 >conftest.err
4350 cat conftest.err >&5
4351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } && {
4353 test -z "$ac_c_werror_flag" ||
4354 test ! -s conftest.err
4355 } && test -s conftest.$ac_objext; then
4358 $as_echo "$as_me: failed program was:" >&5
4359 sed 's/^/| /' conftest.$ac_ext >&5
4364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4366 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4367 $as_echo "$ac_cv_c_const" >&6; }
4368 if test $ac_cv_c_const = no; then
4370 cat >>confdefs.h <<\_ACEOF
4378 for ac_func in vprintf
4380 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4381 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
4382 $as_echo_n "checking for $ac_func... " >&6; }
4383 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4384 $as_echo_n "(cached) " >&6
4386 cat >conftest.$ac_ext <<_ACEOF
4389 cat confdefs.h >>conftest.$ac_ext
4390 cat >>conftest.$ac_ext <<_ACEOF
4391 /* end confdefs.h. */
4392 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4394 #define $ac_func innocuous_$ac_func
4396 /* System header to define __stub macros and hopefully few prototypes,
4397 which can conflict with char $ac_func (); below.
4398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4399 <limits.h> exists even on freestanding compilers. */
4402 # include <limits.h>
4404 # include <assert.h>
4409 /* Override any GCC internal prototype to avoid an error.
4410 Use char because int might match the return type of a GCC
4411 builtin and then its argument prototype would still apply. */
4416 /* The GNU C library defines this for functions which it implements
4417 to always fail with ENOSYS. Some functions are actually named
4418 something starting with __ and the normal name is an alias. */
4419 #if defined __stub_$ac_func || defined __stub___$ac_func
4431 rm -f conftest.$ac_objext conftest$ac_exeext
4432 if { (ac_try="$ac_link"
4434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4435 *) ac_try_echo=$ac_try;;
4437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4438 $as_echo "$ac_try_echo") >&5
4439 (eval "$ac_link") 2>conftest.er1
4441 grep -v '^ *+' conftest.er1 >conftest.err
4443 cat conftest.err >&5
4444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); } && {
4446 test -z "$ac_c_werror_flag" ||
4447 test ! -s conftest.err
4448 } && test -s conftest$ac_exeext && {
4449 test "$cross_compiling" = yes ||
4450 $as_test_x conftest$ac_exeext
4452 eval "$as_ac_var=yes"
4454 $as_echo "$as_me: failed program was:" >&5
4455 sed 's/^/| /' conftest.$ac_ext >&5
4457 eval "$as_ac_var=no"
4460 rm -rf conftest.dSYM
4461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4462 conftest$ac_exeext conftest.$ac_ext
4464 ac_res=`eval 'as_val=${'$as_ac_var'}
4465 $as_echo "$as_val"'`
4466 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4467 $as_echo "$ac_res" >&6; }
4468 as_val=`eval 'as_val=${'$as_ac_var'}
4469 $as_echo "$as_val"'`
4470 if test "x$as_val" = x""yes; then
4471 cat >>confdefs.h <<_ACEOF
4472 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4475 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
4476 $as_echo_n "checking for _doprnt... " >&6; }
4477 if test "${ac_cv_func__doprnt+set}" = set; then
4478 $as_echo_n "(cached) " >&6
4480 cat >conftest.$ac_ext <<_ACEOF
4483 cat confdefs.h >>conftest.$ac_ext
4484 cat >>conftest.$ac_ext <<_ACEOF
4485 /* end confdefs.h. */
4486 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
4487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4488 #define _doprnt innocuous__doprnt
4490 /* System header to define __stub macros and hopefully few prototypes,
4491 which can conflict with char _doprnt (); below.
4492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4493 <limits.h> exists even on freestanding compilers. */
4496 # include <limits.h>
4498 # include <assert.h>
4503 /* Override any GCC internal prototype to avoid an error.
4504 Use char because int might match the return type of a GCC
4505 builtin and then its argument prototype would still apply. */
4510 /* The GNU C library defines this for functions which it implements
4511 to always fail with ENOSYS. Some functions are actually named
4512 something starting with __ and the normal name is an alias. */
4513 #if defined __stub__doprnt || defined __stub____doprnt
4525 rm -f conftest.$ac_objext conftest$ac_exeext
4526 if { (ac_try="$ac_link"
4528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4529 *) ac_try_echo=$ac_try;;
4531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4532 $as_echo "$ac_try_echo") >&5
4533 (eval "$ac_link") 2>conftest.er1
4535 grep -v '^ *+' conftest.er1 >conftest.err
4537 cat conftest.err >&5
4538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); } && {
4540 test -z "$ac_c_werror_flag" ||
4541 test ! -s conftest.err
4542 } && test -s conftest$ac_exeext && {
4543 test "$cross_compiling" = yes ||
4544 $as_test_x conftest$ac_exeext
4546 ac_cv_func__doprnt=yes
4548 $as_echo "$as_me: failed program was:" >&5
4549 sed 's/^/| /' conftest.$ac_ext >&5
4551 ac_cv_func__doprnt=no
4554 rm -rf conftest.dSYM
4555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4556 conftest$ac_exeext conftest.$ac_ext
4558 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
4559 $as_echo "$ac_cv_func__doprnt" >&6; }
4560 if test "x$ac_cv_func__doprnt" = x""yes; then
4562 cat >>confdefs.h <<\_ACEOF
4563 #define HAVE_DOPRNT 1
4575 for ac_func in dcgettext libintl_dgettext
4577 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4578 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
4579 $as_echo_n "checking for $ac_func... " >&6; }
4580 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4581 $as_echo_n "(cached) " >&6
4583 cat >conftest.$ac_ext <<_ACEOF
4586 cat confdefs.h >>conftest.$ac_ext
4587 cat >>conftest.$ac_ext <<_ACEOF
4588 /* end confdefs.h. */
4589 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4591 #define $ac_func innocuous_$ac_func
4593 /* System header to define __stub macros and hopefully few prototypes,
4594 which can conflict with char $ac_func (); below.
4595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4596 <limits.h> exists even on freestanding compilers. */
4599 # include <limits.h>
4601 # include <assert.h>
4606 /* Override any GCC internal prototype to avoid an error.
4607 Use char because int might match the return type of a GCC
4608 builtin and then its argument prototype would still apply. */
4613 /* The GNU C library defines this for functions which it implements
4614 to always fail with ENOSYS. Some functions are actually named
4615 something starting with __ and the normal name is an alias. */
4616 #if defined __stub_$ac_func || defined __stub___$ac_func
4628 rm -f conftest.$ac_objext conftest$ac_exeext
4629 if { (ac_try="$ac_link"
4631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4632 *) ac_try_echo=$ac_try;;
4634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4635 $as_echo "$ac_try_echo") >&5
4636 (eval "$ac_link") 2>conftest.er1
4638 grep -v '^ *+' conftest.er1 >conftest.err
4640 cat conftest.err >&5
4641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); } && {
4643 test -z "$ac_c_werror_flag" ||
4644 test ! -s conftest.err
4645 } && test -s conftest$ac_exeext && {
4646 test "$cross_compiling" = yes ||
4647 $as_test_x conftest$ac_exeext
4649 eval "$as_ac_var=yes"
4651 $as_echo "$as_me: failed program was:" >&5
4652 sed 's/^/| /' conftest.$ac_ext >&5
4654 eval "$as_ac_var=no"
4657 rm -rf conftest.dSYM
4658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4659 conftest$ac_exeext conftest.$ac_ext
4661 ac_res=`eval 'as_val=${'$as_ac_var'}
4662 $as_echo "$as_val"'`
4663 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4664 $as_echo "$ac_res" >&6; }
4665 as_val=`eval 'as_val=${'$as_ac_var'}
4666 $as_echo "$as_val"'`
4667 if test "x$as_val" = x""yes; then
4668 cat >>confdefs.h <<_ACEOF
4669 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4690 ac_config_files="$ac_config_files Makefile ld-elf2flt elf2flt.ld"
4692 cat >confcache <<\_ACEOF
4693 # This file is a shell script that caches the results of configure
4694 # tests run on this system so they can be shared between configure
4695 # scripts and configure runs, see configure's option --config-cache.
4696 # It is not useful on other systems. If it contains results you don't
4697 # want to keep, you may remove or edit it.
4699 # config.status only pays attention to the cache file if you give it
4700 # the --recheck option to rerun configure.
4702 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4703 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4708 # The following way of writing the cache mishandles newlines in values,
4709 # but we know of no workaround that is simple, portable, and efficient.
4710 # So, we kill variables containing newlines.
4711 # Ultrix sh set writes to stderr and can't be redirected directly,
4712 # and sets the high bit in the cache file unless we assign to the vars.
4714 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4715 eval ac_val=\$$ac_var
4719 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
4720 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4723 _ | IFS | as_nl) ;; #(
4724 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4725 *) $as_unset $ac_var ;;
4731 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4732 *${as_nl}ac_space=\ *)
4733 # `set' does not quote correctly, so add quotes (double-quote
4734 # substitution turns \\\\ into \\, and sed turns \\ into \).
4737 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4740 # `set' quotes correctly as required by POSIX, so do not add quotes.
4741 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4750 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4752 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4754 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4755 if test -w "$cache_file"; then
4756 test "x$cache_file" != "x/dev/null" &&
4757 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
4758 $as_echo "$as_me: updating cache $cache_file" >&6;}
4759 cat confcache >$cache_file
4761 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
4762 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4767 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4768 # Let make expand exec_prefix.
4769 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4771 # Transform confdefs.h into DEFS.
4772 # Protect against shell expansion while executing Makefile rules.
4773 # Protect against Makefile macro expansion.
4775 # If the first sed substitution is executed (which looks for macros that
4776 # take arguments), then branch to the quote section. Otherwise,
4777 # look for a macro that doesn't take arguments.
4787 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
4789 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
4793 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
4806 DEFS=`sed -n "$ac_script" confdefs.h`
4811 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4812 # 1. Remove the extension, and $U if already installed.
4813 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4814 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4815 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4816 # will be set to the directory where LIBOBJS objects are built.
4817 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4818 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
4822 LTLIBOBJS=$ac_ltlibobjs
4826 : ${CONFIG_STATUS=./config.status}
4828 ac_clean_files_save=$ac_clean_files
4829 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4830 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4831 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4832 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4834 # Generated by $as_me.
4835 # Run this file to recreate the current configuration.
4836 # Compiler output produced by configure, useful for debugging
4837 # configure, is in config.log if it exists.
4842 SHELL=\${CONFIG_SHELL-$SHELL}
4845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4846 ## --------------------- ##
4847 ## M4sh Initialization. ##
4848 ## --------------------- ##
4850 # Be more Bourne compatible
4851 DUALCASE=1; export DUALCASE # for MKS sh
4852 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4855 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4856 # is contrary to our usage. Disable this feature.
4857 alias -g '${1+"$@"}'='"$@"'
4858 setopt NO_GLOB_SUBST
4860 case `(set -o) 2>/dev/null` in
4861 *posix*) set -o posix ;;
4870 # Avoid depending upon Character Ranges.
4871 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4872 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4873 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4874 as_cr_digits='0123456789'
4875 as_cr_alnum=$as_cr_Letters$as_cr_digits
4880 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4881 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4882 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4883 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4884 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4885 as_echo='printf %s\n'
4886 as_echo_n='printf %s'
4888 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4889 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4890 as_echo_n='/usr/ucb/echo -n'
4892 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4893 as_echo_n_body='eval
4897 expr "X$arg" : "X\\(.*\\)$as_nl";
4898 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4900 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4902 export as_echo_n_body
4903 as_echo_n='sh -c $as_echo_n_body as_echo'
4906 as_echo='sh -c $as_echo_body as_echo'
4909 # The user is always right.
4910 if test "${PATH_SEPARATOR+set}" != set; then
4912 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4913 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4918 # Support unset when possible.
4919 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4927 # We need space, tab and new line, in precisely that order. Quoting is
4928 # there to prevent editors from complaining about space-tab.
4929 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4930 # splitting by setting IFS to empty value.)
4933 # Find who we are. Look in the path if we contain no directory separator.
4935 *[\\/]* ) as_myself=$0 ;;
4936 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940 test -z "$as_dir" && as_dir=.
4941 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4947 # We did not find ourselves, most probably we were run as `sh COMMAND'
4948 # in which case we are not to be found in the path.
4949 if test "x$as_myself" = x; then
4952 if test ! -f "$as_myself"; then
4953 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4954 { (exit 1); exit 1; }
4957 # Work around bugs in pre-3.0 UWIN ksh.
4958 for as_var in ENV MAIL MAILPATH
4959 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
4971 # Required to use basename.
4972 if expr a : '\(a\)' >/dev/null 2>&1 &&
4973 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4979 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4980 as_basename=basename
4986 # Name of the executable.
4987 as_me=`$as_basename -- "$0" ||
4988 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4989 X"$0" : 'X\(//\)$' \| \
4990 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4992 sed '/^.*\/\([^/][^/]*\)\/*$/{
5013 test "x$as_lineno_1" != "x$as_lineno_2" &&
5014 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
5016 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5017 # uniformly replaced by the line number. The first 'sed' inserts a
5018 # line-number line after each line using $LINENO; the second 'sed'
5019 # does the real work. The second script uses 'N' to pair each
5020 # line-number line with the line containing $LINENO, and appends
5021 # trailing '-' during substitution so that $LINENO is not a special
5023 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5024 # scripts with optimization help from Paolo Bonzini. Blame Lee
5025 # E. McMahon (1931-1989) for sed's syntax. :-)
5037 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5041 chmod +x "$as_me.lineno" ||
5042 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
5043 { (exit 1); exit 1; }; }
5045 # Don't try to exec as it changes $[0], causing all sort of problems
5046 # (the dirname of $[0] is not the place where we might find the
5047 # original and so on. Autoconf is especially sensitive to this).
5049 # Exit status is that of the last command.
5054 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5060 ECHO_C= ECHO_N= ECHO_T=
5063 case `echo 'x\c'` in
5064 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5070 if expr a : '\(a\)' >/dev/null 2>&1 &&
5071 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5077 rm -f conf$$ conf$$.exe conf$$.file
5078 if test -d conf$$.dir; then
5079 rm -f conf$$.dir/conf$$.file
5082 mkdir conf$$.dir 2>/dev/null
5084 if (echo >conf$$.file) 2>/dev/null; then
5085 if ln -s conf$$.file conf$$ 2>/dev/null; then
5087 # ... but there are two gotchas:
5088 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5089 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5090 # In both cases, we have to default to `cp -p'.
5091 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5093 elif ln conf$$.file conf$$ 2>/dev/null; then
5101 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5102 rmdir conf$$.dir 2>/dev/null
5104 if mkdir -p . 2>/dev/null; then
5107 test -d ./-p && rmdir ./-p
5111 if test -x / >/dev/null 2>&1; then
5114 if ls -dL / >/dev/null 2>&1; then
5121 if test -d "$1"; then
5127 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
5128 ???[sx]*):;;*)false;;esac;fi
5132 as_executable_p=$as_test_x
5134 # Sed expression to map a string onto a valid CPP name.
5135 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5137 # Sed expression to map a string onto a valid variable name.
5138 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5143 # Save the log message, to keep $[0] and so on meaningful, and to
5144 # report actual input values of CONFIG_FILES etc. instead of their
5145 # values after options handling.
5147 This file was extended by $as_me, which was
5148 generated by GNU Autoconf 2.63. Invocation command line was
5150 CONFIG_FILES = $CONFIG_FILES
5151 CONFIG_HEADERS = $CONFIG_HEADERS
5152 CONFIG_LINKS = $CONFIG_LINKS
5153 CONFIG_COMMANDS = $CONFIG_COMMANDS
5156 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5161 case $ac_config_files in *"
5162 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5168 # Files that config.status was made for.
5169 config_files="$ac_config_files"
5173 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5175 \`$as_me' instantiates files from templates according to the
5176 current configuration.
5178 Usage: $0 [OPTION]... [FILE]...
5180 -h, --help print this help, then exit
5181 -V, --version print version number and configuration settings, then exit
5182 -q, --quiet, --silent
5183 do not print progress messages
5184 -d, --debug don't remove temporary files
5185 --recheck update $as_me by reconfiguring in the same conditions
5186 --file=FILE[:TEMPLATE]
5187 instantiate the configuration file FILE
5189 Configuration files:
5192 Report bugs to <bug-autoconf@gnu.org>."
5195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5198 configured by $0, generated by GNU Autoconf 2.63,
5199 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5201 Copyright (C) 2008 Free Software Foundation, Inc.
5202 This config.status script is free software; the Free Software Foundation
5203 gives unlimited permission to copy, distribute and modify it."
5208 test -n "\$AWK" || AWK=awk
5211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5212 # The default lists apply if the user does not specify any file.
5218 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5219 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5230 # Handling of the options.
5231 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5233 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5234 $as_echo "$ac_cs_version"; exit ;;
5235 --debug | --debu | --deb | --de | --d | -d )
5237 --file | --fil | --fi | --f )
5240 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5242 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
5243 ac_need_defaults=false;;
5244 --he | --h | --help | --hel | -h )
5245 $as_echo "$ac_cs_usage"; exit ;;
5246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5247 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5251 -*) { $as_echo "$as_me: error: unrecognized option: $1
5252 Try \`$0 --help' for more information." >&2
5253 { (exit 1); exit 1; }; } ;;
5255 *) ac_config_targets="$ac_config_targets $1"
5256 ac_need_defaults=false ;;
5262 ac_configure_extra_args=
5264 if $ac_cs_silent; then
5266 ac_configure_extra_args="$ac_configure_extra_args --silent"
5270 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5271 if \$ac_cs_recheck; then
5272 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5274 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5275 CONFIG_SHELL='$SHELL'
5281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5285 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5286 ## Running $as_me. ##
5292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5297 # Handling of arguments.
5298 for ac_config_target in $ac_config_targets
5300 case $ac_config_target in
5301 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5302 "ld-elf2flt") CONFIG_FILES="$CONFIG_FILES ld-elf2flt" ;;
5303 "elf2flt.ld") CONFIG_FILES="$CONFIG_FILES elf2flt.ld" ;;
5305 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5306 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5307 { (exit 1); exit 1; }; };;
5312 # If the user did not use the arguments to specify the items to instantiate,
5313 # then the envvar interface is used. Set only those that are not.
5314 # We use the long form for the default assignment because of an extremely
5315 # bizarre bug on SunOS 4.1.3.
5316 if $ac_need_defaults; then
5317 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5320 # Have a temporary directory for convenience. Make it in the build tree
5321 # simply because there is no reason against having it here, and in addition,
5322 # creating and moving files from /tmp can sometimes cause problems.
5323 # Hook for its removal unless debugging.
5324 # Note that there is a small window in which the directory will not be cleaned:
5325 # after its creation but before its name has been assigned to `$tmp'.
5329 trap 'exit_status=$?
5330 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5332 trap '{ (exit 1); exit 1; }' 1 2 13 15
5334 # Create a (secure) tmp directory for tmp files.
5337 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5338 test -n "$tmp" && test -d "$tmp"
5341 tmp=./conf$$-$RANDOM
5342 (umask 077 && mkdir "$tmp")
5345 $as_echo "$as_me: cannot create a temporary directory in ." >&2
5346 { (exit 1); exit 1; }
5349 # Set up the scripts for CONFIG_FILES section.
5350 # No need to generate them if there are no CONFIG_FILES.
5351 # This happens for instance with `./config.status config.h'.
5352 if test -n "$CONFIG_FILES"; then
5356 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5357 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5363 echo 'BEGIN {' >"$tmp/subs1.awk" &&
5368 echo "cat >conf$$subs.awk <<_ACEOF" &&
5369 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5372 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5373 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5374 { (exit 1); exit 1; }; }
5375 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5377 for ac_last_try in false false false false false :; do
5378 . ./conf$$subs.sh ||
5379 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5380 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5381 { (exit 1); exit 1; }; }
5383 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5384 if test $ac_delim_n = $ac_delim_num; then
5386 elif $ac_last_try; then
5387 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5388 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5389 { (exit 1); exit 1; }; }
5391 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5396 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5397 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5401 s/^/S["/; s/!.*/"]=/
5411 s/\(.\{148\}\).*/\1/
5413 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5418 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5425 s/\(.\{148\}\).*/\1/
5427 s/["\\]/\\&/g; s/^/"/; s/$/"/
5431 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5436 ' <conf$$subs.awk | sed '
5441 ' >>$CONFIG_STATUS || ac_write_fail=1
5442 rm -f conf$$subs.awk
5443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5445 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
5446 for (key in S) S_is_set[key] = 1
5452 nfields = split(line, field, "@")
5454 len = length(field[1])
5455 for (i = 2; i < nfields; i++) {
5457 keylen = length(key)
5458 if (S_is_set[key]) {
5460 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5461 len += length(value) + length(field[++i])
5472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5473 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5474 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5477 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
5478 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
5479 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
5480 { (exit 1); exit 1; }; }
5483 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5484 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5485 # trailing colons and then remove the whole line if VPATH becomes empty
5486 # (actually we leave an empty line to preserve line numbers).
5487 if test "x$srcdir" = x.; then
5488 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5492 s/^\([^=]*=[ ]*\):*/\1/
5498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5499 fi # test -n "$CONFIG_FILES"
5502 eval set X " :F $CONFIG_FILES "
5507 :[FHLC]) ac_mode=$ac_tag; continue;;
5509 case $ac_mode$ac_tag in
5511 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
5512 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
5513 { (exit 1); exit 1; }; };;
5514 :[FH]-) ac_tag=-:-;;
5515 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5532 -) ac_f="$tmp/stdin";;
5533 *) # Look for the file first in the build tree, then in the source tree
5534 # (if the path is not absolute). The absolute path cannot be DOS-style,
5535 # because $ac_f cannot contain `:'.
5539 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5541 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
5542 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
5543 { (exit 1); exit 1; }; };;
5545 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5546 ac_file_inputs="$ac_file_inputs '$ac_f'"
5549 # Let's still pretend it is `configure' which instantiates (i.e., don't
5550 # use $as_me), people would be surprised to read:
5551 # /* config.h. Generated by config.status. */
5552 configure_input='Generated from '`
5553 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5555 if test x"$ac_file" != x-; then
5556 configure_input="$ac_file. $configure_input"
5557 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
5558 $as_echo "$as_me: creating $ac_file" >&6;}
5560 # Neutralize special characters interpreted by sed in replacement strings.
5561 case $configure_input in #(
5562 *\&* | *\|* | *\\* )
5563 ac_sed_conf_input=`$as_echo "$configure_input" |
5564 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5565 *) ac_sed_conf_input=$configure_input;;
5569 *:-:* | *:-) cat >"$tmp/stdin" \
5570 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
5571 $as_echo "$as_me: error: could not create $ac_file" >&2;}
5572 { (exit 1); exit 1; }; } ;;
5577 ac_dir=`$as_dirname -- "$ac_file" ||
5578 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5579 X"$ac_file" : 'X\(//\)[^/]' \| \
5580 X"$ac_file" : 'X\(//\)$' \| \
5581 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5582 $as_echo X"$ac_file" |
5583 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5602 -*) as_dir=./$as_dir;;
5604 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
5608 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5609 *) as_qdir=$as_dir;;
5611 as_dirs="'$as_qdir' $as_dirs"
5612 as_dir=`$as_dirname -- "$as_dir" ||
5613 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5614 X"$as_dir" : 'X\(//\)[^/]' \| \
5615 X"$as_dir" : 'X\(//\)$' \| \
5616 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5617 $as_echo X"$as_dir" |
5618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5635 test -d "$as_dir" && break
5637 test -z "$as_dirs" || eval "mkdir $as_dirs"
5638 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
5639 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
5640 { (exit 1); exit 1; }; }; }
5644 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5646 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5647 # A ".." for each directory in $ac_dir_suffix.
5648 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5649 case $ac_top_builddir_sub in
5650 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5651 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5654 ac_abs_top_builddir=$ac_pwd
5655 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5656 # for backward compatibility:
5657 ac_top_builddir=$ac_top_build_prefix
5660 .) # We are building in place.
5662 ac_top_srcdir=$ac_top_builddir_sub
5663 ac_abs_top_srcdir=$ac_pwd ;;
5664 [\\/]* | ?:[\\/]* ) # Absolute name.
5665 ac_srcdir=$srcdir$ac_dir_suffix;
5666 ac_top_srcdir=$srcdir
5667 ac_abs_top_srcdir=$srcdir ;;
5669 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5670 ac_top_srcdir=$ac_top_build_prefix$srcdir
5671 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5673 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5683 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5684 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5689 # If the template does not know about datarootdir, expand it.
5690 # FIXME: This hack should be removed a few years after 2.60.
5691 ac_datarootdir_hack=; ac_datarootdir_seen=
5704 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5705 *datarootdir*) ac_datarootdir_seen=yes;;
5706 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5707 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5708 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5710 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5711 ac_datarootdir_hack='
5712 s&@datadir@&$datadir&g
5713 s&@docdir@&$docdir&g
5714 s&@infodir@&$infodir&g
5715 s&@localedir@&$localedir&g
5716 s&@mandir@&$mandir&g
5717 s&\\\${datarootdir}&$datarootdir&g' ;;
5721 # Neutralize VPATH when `$srcdir' = `.'.
5722 # Shell code in configure.ac might set extrasub.
5723 # FIXME: do we really want to maintain this feature?
5724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5725 ac_sed_extra="$ac_vpsub
5728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5730 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5731 s|@configure_input@|$ac_sed_conf_input|;t t
5732 s&@top_builddir@&$ac_top_builddir_sub&;t t
5733 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5734 s&@srcdir@&$ac_srcdir&;t t
5735 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5736 s&@top_srcdir@&$ac_top_srcdir&;t t
5737 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5738 s&@builddir@&$ac_builddir&;t t
5739 s&@abs_builddir@&$ac_abs_builddir&;t t
5740 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5741 s&@INSTALL@&$ac_INSTALL&;t t
5742 $ac_datarootdir_hack
5744 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
5745 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
5746 $as_echo "$as_me: error: could not create $ac_file" >&2;}
5747 { (exit 1); exit 1; }; }
5749 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5750 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
5751 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
5752 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5753 which seems to be undefined. Please make sure it is defined." >&5
5754 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5755 which seems to be undefined. Please make sure it is defined." >&2;}
5759 -) cat "$tmp/out" && rm -f "$tmp/out";;
5760 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
5762 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
5763 $as_echo "$as_me: error: could not create $ac_file" >&2;}
5764 { (exit 1); exit 1; }; }
5774 { (exit 0); exit 0; }
5776 chmod +x $CONFIG_STATUS
5777 ac_clean_files=$ac_clean_files_save
5779 test $ac_write_fail = 0 ||
5780 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
5781 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
5782 { (exit 1); exit 1; }; }
5785 # configure is writing to config.log, and then calls config.status.
5786 # config.status does its own redirection, appending to config.log.
5787 # Unfortunately, on DOS this fails, as config.log is still kept open
5788 # by configure, so config.status won't be able to write to it; its
5789 # output is simply discarded. So we exec the FD to /dev/null,
5790 # effectively closing config.log, so it can be properly (re)opened and
5791 # appended to by config.status. When coming back to configure, we
5792 # need to make the FD available again.
5793 if test "$no_create" != yes; then
5795 ac_config_status_args=
5796 test "$silent" = yes &&
5797 ac_config_status_args="$ac_config_status_args --quiet"
5799 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5801 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5802 # would make configure fail if this is the last instruction.
5803 $ac_cs_success || { (exit 1); exit 1; }
5805 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5806 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5807 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}