2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 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 # Zsh 3.x and 4.x performs 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
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file="Makefile.in"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
625 program_transform_name
673 sdccconf_h_dir_separator
678 ac_precious_vars='build_alias
687 sdccconf_h_dir_separator
691 # Initialize some variables set by options.
693 ac_init_version=false
694 # The variables have the same names as the options, with
695 # dashes changed to underlines.
703 program_transform_name=s,x,x,
711 # Installation directory options.
712 # These are left unexpanded so users can "make install exec_prefix=/foo"
713 # and all the variables that are supposed to be based on exec_prefix
714 # by default will actually change.
715 # Use braces instead of parens because sh, perl, etc. also accept them.
716 # (The list follows the same order as the GNU Coding Standards.)
717 bindir='${exec_prefix}/bin'
718 sbindir='${exec_prefix}/sbin'
719 libexecdir='${exec_prefix}/libexec'
720 datarootdir='${prefix}/share'
721 datadir='${datarootdir}'
722 sysconfdir='${prefix}/etc'
723 sharedstatedir='${prefix}/com'
724 localstatedir='${prefix}/var'
725 includedir='${prefix}/include'
726 oldincludedir='/usr/include'
727 docdir='${datarootdir}/doc/${PACKAGE}'
728 infodir='${datarootdir}/info'
733 libdir='${exec_prefix}/lib'
734 localedir='${datarootdir}/locale'
735 mandir='${datarootdir}/man'
741 # If the previous option needs an argument, assign it.
742 if test -n "$ac_prev"; then
743 eval $ac_prev=\$ac_option
749 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
753 # Accept the important Cygnus configure options, so we can diagnose typos.
755 case $ac_dashdash$ac_option in
759 -bindir | --bindir | --bindi | --bind | --bin | --bi)
761 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
764 -build | --build | --buil | --bui | --bu)
765 ac_prev=build_alias ;;
766 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
767 build_alias=$ac_optarg ;;
769 -cache-file | --cache-file | --cache-fil | --cache-fi \
770 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
771 ac_prev=cache_file ;;
772 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
773 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
774 cache_file=$ac_optarg ;;
777 cache_file=config.cache ;;
779 -datadir | --datadir | --datadi | --datad)
781 -datadir=* | --datadir=* | --datadi=* | --datad=*)
782 datadir=$ac_optarg ;;
784 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
785 | --dataroo | --dataro | --datar)
786 ac_prev=datarootdir ;;
787 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
788 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
789 datarootdir=$ac_optarg ;;
791 -disable-* | --disable-*)
792 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
793 # Reject names that are not valid shell variable names.
794 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
796 { (exit 1); exit 1; }; }
797 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
798 eval enable_$ac_feature=no ;;
800 -docdir | --docdir | --docdi | --doc | --do)
802 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
805 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
807 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
810 -enable-* | --enable-*)
811 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
812 # Reject names that are not valid shell variable names.
813 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
814 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
815 { (exit 1); exit 1; }; }
816 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
817 eval enable_$ac_feature=\$ac_optarg ;;
819 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
820 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
821 | --exec | --exe | --ex)
822 ac_prev=exec_prefix ;;
823 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
824 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
825 | --exec=* | --exe=* | --ex=*)
826 exec_prefix=$ac_optarg ;;
828 -gas | --gas | --ga | --g)
829 # Obsolete; use --with-gas.
832 -help | --help | --hel | --he | -h)
834 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
835 ac_init_help=recursive ;;
836 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
837 ac_init_help=short ;;
839 -host | --host | --hos | --ho)
840 ac_prev=host_alias ;;
841 -host=* | --host=* | --hos=* | --ho=*)
842 host_alias=$ac_optarg ;;
844 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
846 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
848 htmldir=$ac_optarg ;;
850 -includedir | --includedir | --includedi | --included | --include \
851 | --includ | --inclu | --incl | --inc)
852 ac_prev=includedir ;;
853 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
854 | --includ=* | --inclu=* | --incl=* | --inc=*)
855 includedir=$ac_optarg ;;
857 -infodir | --infodir | --infodi | --infod | --info | --inf)
859 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
860 infodir=$ac_optarg ;;
862 -libdir | --libdir | --libdi | --libd)
864 -libdir=* | --libdir=* | --libdi=* | --libd=*)
867 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
868 | --libexe | --libex | --libe)
869 ac_prev=libexecdir ;;
870 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
871 | --libexe=* | --libex=* | --libe=*)
872 libexecdir=$ac_optarg ;;
874 -localedir | --localedir | --localedi | --localed | --locale)
876 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
877 localedir=$ac_optarg ;;
879 -localstatedir | --localstatedir | --localstatedi | --localstated \
880 | --localstate | --localstat | --localsta | --localst | --locals)
881 ac_prev=localstatedir ;;
882 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
883 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
884 localstatedir=$ac_optarg ;;
886 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
888 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
892 # Obsolete; use --without-fp.
895 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
896 | --no-cr | --no-c | -n)
899 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
900 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
903 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
904 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
905 | --oldin | --oldi | --old | --ol | --o)
906 ac_prev=oldincludedir ;;
907 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
908 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
909 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
910 oldincludedir=$ac_optarg ;;
912 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
914 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
917 -program-prefix | --program-prefix | --program-prefi | --program-pref \
918 | --program-pre | --program-pr | --program-p)
919 ac_prev=program_prefix ;;
920 -program-prefix=* | --program-prefix=* | --program-prefi=* \
921 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
922 program_prefix=$ac_optarg ;;
924 -program-suffix | --program-suffix | --program-suffi | --program-suff \
925 | --program-suf | --program-su | --program-s)
926 ac_prev=program_suffix ;;
927 -program-suffix=* | --program-suffix=* | --program-suffi=* \
928 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
929 program_suffix=$ac_optarg ;;
931 -program-transform-name | --program-transform-name \
932 | --program-transform-nam | --program-transform-na \
933 | --program-transform-n | --program-transform- \
934 | --program-transform | --program-transfor \
935 | --program-transfo | --program-transf \
936 | --program-trans | --program-tran \
937 | --progr-tra | --program-tr | --program-t)
938 ac_prev=program_transform_name ;;
939 -program-transform-name=* | --program-transform-name=* \
940 | --program-transform-nam=* | --program-transform-na=* \
941 | --program-transform-n=* | --program-transform-=* \
942 | --program-transform=* | --program-transfor=* \
943 | --program-transfo=* | --program-transf=* \
944 | --program-trans=* | --program-tran=* \
945 | --progr-tra=* | --program-tr=* | --program-t=*)
946 program_transform_name=$ac_optarg ;;
948 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
950 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
953 -psdir | --psdir | --psdi | --psd | --ps)
955 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
958 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
959 | -silent | --silent | --silen | --sile | --sil)
962 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
964 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
966 sbindir=$ac_optarg ;;
968 -sharedstatedir | --sharedstatedir | --sharedstatedi \
969 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
970 | --sharedst | --shareds | --shared | --share | --shar \
972 ac_prev=sharedstatedir ;;
973 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
974 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
975 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
977 sharedstatedir=$ac_optarg ;;
979 -site | --site | --sit)
981 -site=* | --site=* | --sit=*)
984 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
986 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
989 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
990 | --syscon | --sysco | --sysc | --sys | --sy)
991 ac_prev=sysconfdir ;;
992 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
993 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
994 sysconfdir=$ac_optarg ;;
996 -target | --target | --targe | --targ | --tar | --ta | --t)
997 ac_prev=target_alias ;;
998 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
999 target_alias=$ac_optarg ;;
1001 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1004 -version | --version | --versio | --versi | --vers | -V)
1005 ac_init_version=: ;;
1008 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1009 # Reject names that are not valid shell variable names.
1010 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1011 { echo "$as_me: error: invalid package name: $ac_package" >&2
1012 { (exit 1); exit 1; }; }
1013 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1014 eval with_$ac_package=\$ac_optarg ;;
1016 -without-* | --without-*)
1017 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1018 # Reject names that are not valid shell variable names.
1019 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1020 { echo "$as_me: error: invalid package name: $ac_package" >&2
1021 { (exit 1); exit 1; }; }
1022 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1023 eval with_$ac_package=no ;;
1026 # Obsolete; use --with-x.
1029 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1030 | --x-incl | --x-inc | --x-in | --x-i)
1031 ac_prev=x_includes ;;
1032 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1033 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1034 x_includes=$ac_optarg ;;
1036 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1037 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1038 ac_prev=x_libraries ;;
1039 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1040 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1041 x_libraries=$ac_optarg ;;
1043 -*) { echo "$as_me: error: unrecognized option: $ac_option
1044 Try \`$0 --help' for more information." >&2
1045 { (exit 1); exit 1; }; }
1049 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1050 # Reject names that are not valid shell variable names.
1051 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1052 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1053 { (exit 1); exit 1; }; }
1054 eval $ac_envvar=\$ac_optarg
1055 export $ac_envvar ;;
1058 # FIXME: should be removed in autoconf 3.0.
1059 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1060 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1061 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1062 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1068 if test -n "$ac_prev"; then
1069 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1070 { echo "$as_me: error: missing argument to $ac_option" >&2
1071 { (exit 1); exit 1; }; }
1074 # Be sure to have absolute directory names.
1075 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1076 datadir sysconfdir sharedstatedir localstatedir includedir \
1077 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1078 libdir localedir mandir
1080 eval ac_val=\$$ac_var
1082 [\\/$]* | ?:[\\/]* ) continue;;
1083 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1085 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1086 { (exit 1); exit 1; }; }
1089 # There might be people who depend on the old broken behavior: `$host'
1090 # used to hold the argument of --host etc.
1091 # FIXME: To remove some day.
1094 target=$target_alias
1096 # FIXME: To remove some day.
1097 if test "x$host_alias" != x; then
1098 if test "x$build_alias" = x; then
1099 cross_compiling=maybe
1100 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1101 If a cross compiler is detected then cross compile mode will be used." >&2
1102 elif test "x$build_alias" != "x$host_alias"; then
1108 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1110 test "$silent" = yes && exec 6>/dev/null
1113 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1114 ac_ls_di=`ls -di .` &&
1115 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1116 { echo "$as_me: error: Working directory cannot be determined" >&2
1117 { (exit 1); exit 1; }; }
1118 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1119 { echo "$as_me: error: pwd does not report name of working directory" >&2
1120 { (exit 1); exit 1; }; }
1123 # Find the source files, if location was not specified.
1124 if test -z "$srcdir"; then
1125 ac_srcdir_defaulted=yes
1126 # Try the directory containing this script, then the parent directory.
1127 ac_confdir=`$as_dirname -- "$0" ||
1128 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1129 X"$0" : 'X\(//\)[^/]' \| \
1130 X"$0" : 'X\(//\)$' \| \
1131 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1151 if test ! -r "$srcdir/$ac_unique_file"; then
1155 ac_srcdir_defaulted=no
1157 if test ! -r "$srcdir/$ac_unique_file"; then
1158 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1159 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1160 { (exit 1); exit 1; }; }
1162 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1164 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1165 { (exit 1); exit 1; }; }
1167 # When building in place, set srcdir=.
1168 if test "$ac_abs_confdir" = "$ac_pwd"; then
1171 # Remove unnecessary trailing slashes from srcdir.
1172 # Double slashes in file names in object file debugging info
1173 # mess up M-x gdb in Emacs.
1175 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1177 for ac_var in $ac_precious_vars; do
1178 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1179 eval ac_env_${ac_var}_value=\$${ac_var}
1180 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1181 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1185 # Report the --help message.
1187 if test "$ac_init_help" = "long"; then
1188 # Omit some internal or obsolete options to make the list less imposing.
1189 # This message is too long to be a string in the A/UX 3.1 sh.
1191 \`configure' configures this package to adapt to many kinds of systems.
1193 Usage: $0 [OPTION]... [VAR=VALUE]...
1195 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1196 VAR=VALUE. See below for descriptions of some of the useful variables.
1198 Defaults for the options are specified in brackets.
1201 -h, --help display this help and exit
1202 --help=short display options specific to this package
1203 --help=recursive display the short help of all the included packages
1204 -V, --version display version information and exit
1205 -q, --quiet, --silent do not print \`checking...' messages
1206 --cache-file=FILE cache test results in FILE [disabled]
1207 -C, --config-cache alias for \`--cache-file=config.cache'
1208 -n, --no-create do not create output files
1209 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1211 Installation directories:
1212 --prefix=PREFIX install architecture-independent files in PREFIX
1213 [$ac_default_prefix]
1214 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1217 By default, \`make install' will install all the files in
1218 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1219 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1220 for instance \`--prefix=\$HOME'.
1222 For better control, use the options below.
1224 Fine tuning of the installation directories:
1225 --bindir=DIR user executables [EPREFIX/bin]
1226 --sbindir=DIR system admin executables [EPREFIX/sbin]
1227 --libexecdir=DIR program executables [EPREFIX/libexec]
1228 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1229 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1230 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1231 --libdir=DIR object code libraries [EPREFIX/lib]
1232 --includedir=DIR C header files [PREFIX/include]
1233 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1234 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1235 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1236 --infodir=DIR info documentation [DATAROOTDIR/info]
1237 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1238 --mandir=DIR man documentation [DATAROOTDIR/man]
1239 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1240 --htmldir=DIR html documentation [DOCDIR]
1241 --dvidir=DIR dvi documentation [DOCDIR]
1242 --pdfdir=DIR pdf documentation [DOCDIR]
1243 --psdir=DIR ps documentation [DOCDIR]
1250 if test -n "$ac_init_help"; then
1254 Some influential environment variables:
1255 CC C compiler command
1256 CFLAGS C compiler flags
1257 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1258 nonstandard directory <lib dir>
1259 LIBS libraries to pass to the linker, e.g. -l<library>
1260 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1261 you have headers in a nonstandard directory <include dir>
1263 sdccconf_h_dir_separator
1264 needed in sdccconf.h: either "/" (default) or "\\"
1266 appended to datadir to define SDCC's library root directory
1268 Use these variables to override the choices made by `configure' or to help
1269 it to find libraries and programs with nonstandard names/locations.
1275 if test "$ac_init_help" = "recursive"; then
1276 # If there are subdirs, report their specific --help.
1277 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1278 test -d "$ac_dir" || continue
1282 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1284 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1285 # A ".." for each directory in $ac_dir_suffix.
1286 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1287 case $ac_top_builddir_sub in
1288 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1289 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1292 ac_abs_top_builddir=$ac_pwd
1293 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1294 # for backward compatibility:
1295 ac_top_builddir=$ac_top_build_prefix
1298 .) # We are building in place.
1300 ac_top_srcdir=$ac_top_builddir_sub
1301 ac_abs_top_srcdir=$ac_pwd ;;
1302 [\\/]* | ?:[\\/]* ) # Absolute name.
1303 ac_srcdir=$srcdir$ac_dir_suffix;
1304 ac_top_srcdir=$srcdir
1305 ac_abs_top_srcdir=$srcdir ;;
1307 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1308 ac_top_srcdir=$ac_top_build_prefix$srcdir
1309 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1311 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1313 cd "$ac_dir" || { ac_status=$?; continue; }
1314 # Check for guested configure.
1315 if test -f "$ac_srcdir/configure.gnu"; then
1317 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1318 elif test -f "$ac_srcdir/configure"; then
1320 $SHELL "$ac_srcdir/configure" --help=recursive
1322 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1324 cd "$ac_pwd" || { ac_status=$?; break; }
1328 test -n "$ac_init_help" && exit $ac_status
1329 if $ac_init_version; then
1332 generated by GNU Autoconf 2.61
1334 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1335 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1336 This configure script is free software; the Free Software Foundation
1337 gives unlimited permission to copy, distribute and modify it.
1341 cat >config.log <<_ACEOF
1342 This file contains any messages produced by compilers while
1343 running configure, to aid debugging if configure makes a mistake.
1345 It was created by $as_me, which was
1346 generated by GNU Autoconf 2.61. Invocation command line was
1358 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1359 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1360 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1361 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1362 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1364 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1365 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1367 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1368 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1369 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1370 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1371 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1372 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1373 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1381 test -z "$as_dir" && as_dir=.
1382 echo "PATH: $as_dir"
1398 # Keep a trace of the command line.
1399 # Strip out --no-create and --no-recursion so they do not pile up.
1400 # Strip out --silent because we don't want to record it for future runs.
1401 # Also quote any args containing shell meta-characters.
1402 # Make two passes to allow for proper duplicate-argument suppression.
1406 ac_must_keep_next=false
1412 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1413 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1414 | -silent | --silent | --silen | --sile | --sil)
1417 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1420 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1422 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1423 if test $ac_must_keep_next = true; then
1424 ac_must_keep_next=false # Got value, back to normal.
1427 *=* | --config-cache | -C | -disable-* | --disable-* \
1428 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1429 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1430 | -with-* | --with-* | -without-* | --without-* | --x)
1431 case "$ac_configure_args0 " in
1432 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1435 -* ) ac_must_keep_next=true ;;
1438 ac_configure_args="$ac_configure_args '$ac_arg'"
1443 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1444 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1446 # When interrupted or exit'd, cleanup temporary files, and complete
1447 # config.log. We remove comments because anyway the quotes in there
1448 # would cause problems or look ugly.
1449 # WARNING: Use '\'' to represent an apostrophe within the trap.
1450 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1451 trap 'exit_status=$?
1452 # Save into config.log some information that might help in debugging.
1457 ## ---------------- ##
1458 ## Cache variables. ##
1459 ## ---------------- ##
1462 # The following way of writing the cache mishandles newlines in values,
1464 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1465 eval ac_val=\$$ac_var
1469 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1470 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1473 _ | IFS | as_nl) ;; #(
1474 *) $as_unset $ac_var ;;
1479 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1480 *${as_nl}ac_space=\ *)
1482 "s/'\''/'\''\\\\'\'''\''/g;
1483 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1486 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1494 ## ----------------- ##
1495 ## Output variables. ##
1496 ## ----------------- ##
1499 for ac_var in $ac_subst_vars
1501 eval ac_val=\$$ac_var
1503 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1505 echo "$ac_var='\''$ac_val'\''"
1509 if test -n "$ac_subst_files"; then
1511 ## ------------------- ##
1512 ## File substitutions. ##
1513 ## ------------------- ##
1516 for ac_var in $ac_subst_files
1518 eval ac_val=\$$ac_var
1520 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1522 echo "$ac_var='\''$ac_val'\''"
1527 if test -s confdefs.h; then
1537 test "$ac_signal" != 0 &&
1538 echo "$as_me: caught signal $ac_signal"
1539 echo "$as_me: exit $exit_status"
1541 rm -f core *.core core.conftest.* &&
1542 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1545 for ac_signal in 1 2 13 15; do
1546 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1550 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1551 rm -f -r conftest* confdefs.h
1553 # Predefined preprocessor variables.
1555 cat >>confdefs.h <<_ACEOF
1556 #define PACKAGE_NAME "$PACKAGE_NAME"
1560 cat >>confdefs.h <<_ACEOF
1561 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1565 cat >>confdefs.h <<_ACEOF
1566 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1570 cat >>confdefs.h <<_ACEOF
1571 #define PACKAGE_STRING "$PACKAGE_STRING"
1575 cat >>confdefs.h <<_ACEOF
1576 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1580 # Let the site file select an alternate cache file if it wants to.
1581 # Prefer explicitly selected file to automatically selected ones.
1582 if test -n "$CONFIG_SITE"; then
1583 set x "$CONFIG_SITE"
1584 elif test "x$prefix" != xNONE; then
1585 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1587 set x "$ac_default_prefix/share/config.site" \
1588 "$ac_default_prefix/etc/config.site"
1593 if test -r "$ac_site_file"; then
1594 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1595 echo "$as_me: loading site script $ac_site_file" >&6;}
1596 sed 's/^/| /' "$ac_site_file" >&5
1601 if test -r "$cache_file"; then
1602 # Some versions of bash will fail to source /dev/null (special
1603 # files actually), so we avoid doing that.
1604 if test -f "$cache_file"; then
1605 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1606 echo "$as_me: loading cache $cache_file" >&6;}
1608 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1609 *) . "./$cache_file";;
1613 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1614 echo "$as_me: creating cache $cache_file" >&6;}
1618 # Check that the precious variables saved in the cache have kept the same
1620 ac_cache_corrupted=false
1621 for ac_var in $ac_precious_vars; do
1622 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1623 eval ac_new_set=\$ac_env_${ac_var}_set
1624 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1625 eval ac_new_val=\$ac_env_${ac_var}_value
1626 case $ac_old_set,$ac_new_set in
1628 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1629 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1630 ac_cache_corrupted=: ;;
1632 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1633 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1634 ac_cache_corrupted=: ;;
1637 if test "x$ac_old_val" != "x$ac_new_val"; then
1638 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1639 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1640 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1641 echo "$as_me: former value: $ac_old_val" >&2;}
1642 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1643 echo "$as_me: current value: $ac_new_val" >&2;}
1644 ac_cache_corrupted=:
1647 # Pass precious variables to config.status.
1648 if test "$ac_new_set" = set; then
1650 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1651 *) ac_arg=$ac_var=$ac_new_val ;;
1653 case " $ac_configure_args " in
1654 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1655 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1659 if $ac_cache_corrupted; then
1660 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1661 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1662 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1663 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1664 { (exit 1); exit 1; }; }
1684 ac_cpp='$CPP $CPPFLAGS'
1685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1691 ac_config_headers="$ac_config_headers config.h"
1696 ac_cpp='$CPP $CPPFLAGS'
1697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1700 if test -n "$ac_tool_prefix"; then
1701 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1702 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1705 if test "${ac_cv_prog_CC+set}" = set; then
1706 echo $ECHO_N "(cached) $ECHO_C" >&6
1708 if test -n "$CC"; then
1709 ac_cv_prog_CC="$CC" # Let the user override the test.
1711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715 test -z "$as_dir" && as_dir=.
1716 for ac_exec_ext in '' $ac_executable_extensions; do
1717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1718 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1729 if test -n "$CC"; then
1730 { echo "$as_me:$LINENO: result: $CC" >&5
1731 echo "${ECHO_T}$CC" >&6; }
1733 { echo "$as_me:$LINENO: result: no" >&5
1734 echo "${ECHO_T}no" >&6; }
1739 if test -z "$ac_cv_prog_CC"; then
1741 # Extract the first word of "gcc", so it can be a program name with args.
1742 set dummy gcc; ac_word=$2
1743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1745 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1746 echo $ECHO_N "(cached) $ECHO_C" >&6
1748 if test -n "$ac_ct_CC"; then
1749 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1755 test -z "$as_dir" && as_dir=.
1756 for ac_exec_ext in '' $ac_executable_extensions; do
1757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1758 ac_cv_prog_ac_ct_CC="gcc"
1759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1768 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1769 if test -n "$ac_ct_CC"; then
1770 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1771 echo "${ECHO_T}$ac_ct_CC" >&6; }
1773 { echo "$as_me:$LINENO: result: no" >&5
1774 echo "${ECHO_T}no" >&6; }
1777 if test "x$ac_ct_CC" = x; then
1780 case $cross_compiling:$ac_tool_warned in
1782 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1783 whose name does not start with the host triplet. If you think this
1784 configuration is useful to you, please write to autoconf@gnu.org." >&5
1785 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1786 whose name does not start with the host triplet. If you think this
1787 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1788 ac_tool_warned=yes ;;
1796 if test -z "$CC"; then
1797 if test -n "$ac_tool_prefix"; then
1798 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1799 set dummy ${ac_tool_prefix}cc; ac_word=$2
1800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1802 if test "${ac_cv_prog_CC+set}" = set; then
1803 echo $ECHO_N "(cached) $ECHO_C" >&6
1805 if test -n "$CC"; then
1806 ac_cv_prog_CC="$CC" # Let the user override the test.
1808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1812 test -z "$as_dir" && as_dir=.
1813 for ac_exec_ext in '' $ac_executable_extensions; do
1814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1815 ac_cv_prog_CC="${ac_tool_prefix}cc"
1816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1826 if test -n "$CC"; then
1827 { echo "$as_me:$LINENO: result: $CC" >&5
1828 echo "${ECHO_T}$CC" >&6; }
1830 { echo "$as_me:$LINENO: result: no" >&5
1831 echo "${ECHO_T}no" >&6; }
1837 if test -z "$CC"; then
1838 # Extract the first word of "cc", so it can be a program name with args.
1839 set dummy cc; ac_word=$2
1840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1842 if test "${ac_cv_prog_CC+set}" = set; then
1843 echo $ECHO_N "(cached) $ECHO_C" >&6
1845 if test -n "$CC"; then
1846 ac_cv_prog_CC="$CC" # Let the user override the test.
1849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1853 test -z "$as_dir" && as_dir=.
1854 for ac_exec_ext in '' $ac_executable_extensions; do
1855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1856 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1857 ac_prog_rejected=yes
1861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1868 if test $ac_prog_rejected = yes; then
1869 # We found a bogon in the path, so make sure we never use it.
1870 set dummy $ac_cv_prog_CC
1872 if test $# != 0; then
1873 # We chose a different compiler from the bogus one.
1874 # However, it has the same basename, so the bogon will be chosen
1875 # first if we set CC to just the basename; use the full file name.
1877 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1883 if test -n "$CC"; then
1884 { echo "$as_me:$LINENO: result: $CC" >&5
1885 echo "${ECHO_T}$CC" >&6; }
1887 { echo "$as_me:$LINENO: result: no" >&5
1888 echo "${ECHO_T}no" >&6; }
1893 if test -z "$CC"; then
1894 if test -n "$ac_tool_prefix"; then
1895 for ac_prog in cl.exe
1897 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1898 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1901 if test "${ac_cv_prog_CC+set}" = set; then
1902 echo $ECHO_N "(cached) $ECHO_C" >&6
1904 if test -n "$CC"; then
1905 ac_cv_prog_CC="$CC" # Let the user override the test.
1907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911 test -z "$as_dir" && as_dir=.
1912 for ac_exec_ext in '' $ac_executable_extensions; do
1913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1914 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1925 if test -n "$CC"; then
1926 { echo "$as_me:$LINENO: result: $CC" >&5
1927 echo "${ECHO_T}$CC" >&6; }
1929 { echo "$as_me:$LINENO: result: no" >&5
1930 echo "${ECHO_T}no" >&6; }
1934 test -n "$CC" && break
1937 if test -z "$CC"; then
1939 for ac_prog in cl.exe
1941 # Extract the first word of "$ac_prog", so it can be a program name with args.
1942 set dummy $ac_prog; ac_word=$2
1943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1945 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1946 echo $ECHO_N "(cached) $ECHO_C" >&6
1948 if test -n "$ac_ct_CC"; then
1949 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1955 test -z "$as_dir" && as_dir=.
1956 for ac_exec_ext in '' $ac_executable_extensions; do
1957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1958 ac_cv_prog_ac_ct_CC="$ac_prog"
1959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1968 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1969 if test -n "$ac_ct_CC"; then
1970 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1971 echo "${ECHO_T}$ac_ct_CC" >&6; }
1973 { echo "$as_me:$LINENO: result: no" >&5
1974 echo "${ECHO_T}no" >&6; }
1978 test -n "$ac_ct_CC" && break
1981 if test "x$ac_ct_CC" = x; then
1984 case $cross_compiling:$ac_tool_warned in
1986 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1987 whose name does not start with the host triplet. If you think this
1988 configuration is useful to you, please write to autoconf@gnu.org." >&5
1989 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1990 whose name does not start with the host triplet. If you think this
1991 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1992 ac_tool_warned=yes ;;
2001 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2002 See \`config.log' for more details." >&5
2003 echo "$as_me: error: no acceptable C compiler found in \$PATH
2004 See \`config.log' for more details." >&2;}
2005 { (exit 1); exit 1; }; }
2007 # Provide some information about the compiler.
2008 echo "$as_me:$LINENO: checking for C compiler version" >&5
2009 ac_compiler=`set X $ac_compile; echo $2`
2010 { (ac_try="$ac_compiler --version >&5"
2012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2013 *) ac_try_echo=$ac_try;;
2015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2016 (eval "$ac_compiler --version >&5") 2>&5
2018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2019 (exit $ac_status); }
2020 { (ac_try="$ac_compiler -v >&5"
2022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2023 *) ac_try_echo=$ac_try;;
2025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2026 (eval "$ac_compiler -v >&5") 2>&5
2028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2029 (exit $ac_status); }
2030 { (ac_try="$ac_compiler -V >&5"
2032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2033 *) ac_try_echo=$ac_try;;
2035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2036 (eval "$ac_compiler -V >&5") 2>&5
2038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2039 (exit $ac_status); }
2041 cat >conftest.$ac_ext <<_ACEOF
2044 cat confdefs.h >>conftest.$ac_ext
2045 cat >>conftest.$ac_ext <<_ACEOF
2046 /* end confdefs.h. */
2056 ac_clean_files_save=$ac_clean_files
2057 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2058 # Try to create an executable without -o first, disregard a.out.
2059 # It will help us diagnose broken compilers, and finding out an intuition
2061 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2062 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2063 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2065 # List of possible output files, starting from the most likely.
2066 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2067 # only as a last resort. b.out is created by i960 compilers.
2068 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2070 # The IRIX 6 linker writes into existing files which may not be
2071 # executable, retaining their permissions. Remove them first so a
2072 # subsequent execution test works.
2074 for ac_file in $ac_files
2077 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2078 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2083 if { (ac_try="$ac_link_default"
2085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2086 *) ac_try_echo=$ac_try;;
2088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2089 (eval "$ac_link_default") 2>&5
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }; then
2093 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2094 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2095 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2096 # so that the user can short-circuit this test for compilers unknown to
2098 for ac_file in $ac_files ''
2100 test -f "$ac_file" || continue
2102 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2105 # We found the default executable, but exeext='' is most
2109 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2111 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2113 # We set ac_cv_exeext here because the later test for it is not
2114 # safe: cross compilers may not add the suffix if given an `-o'
2115 # argument, so we may need to know it at that point already.
2116 # Even if this section looks crufty: it has the advantage of
2123 test "$ac_cv_exeext" = no && ac_cv_exeext=
2129 { echo "$as_me:$LINENO: result: $ac_file" >&5
2130 echo "${ECHO_T}$ac_file" >&6; }
2131 if test -z "$ac_file"; then
2132 echo "$as_me: failed program was:" >&5
2133 sed 's/^/| /' conftest.$ac_ext >&5
2135 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2136 See \`config.log' for more details." >&5
2137 echo "$as_me: error: C compiler cannot create executables
2138 See \`config.log' for more details." >&2;}
2139 { (exit 77); exit 77; }; }
2142 ac_exeext=$ac_cv_exeext
2144 # Check that the compiler produces executables we can run. If not, either
2145 # the compiler is broken, or we cross compile.
2146 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2147 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2148 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2149 # If not cross compiling, check that we can run a simple program.
2150 if test "$cross_compiling" != yes; then
2151 if { ac_try='./$ac_file'
2152 { (case "(($ac_try" in
2153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2154 *) ac_try_echo=$ac_try;;
2156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2157 (eval "$ac_try") 2>&5
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }; }; then
2163 if test "$cross_compiling" = maybe; then
2166 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2167 If you meant to cross compile, use \`--host'.
2168 See \`config.log' for more details." >&5
2169 echo "$as_me: error: cannot run C compiled programs.
2170 If you meant to cross compile, use \`--host'.
2171 See \`config.log' for more details." >&2;}
2172 { (exit 1); exit 1; }; }
2176 { echo "$as_me:$LINENO: result: yes" >&5
2177 echo "${ECHO_T}yes" >&6; }
2179 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2180 ac_clean_files=$ac_clean_files_save
2181 # Check that the compiler produces executables we can run. If not, either
2182 # the compiler is broken, or we cross compile.
2183 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2184 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2185 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2186 echo "${ECHO_T}$cross_compiling" >&6; }
2188 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2189 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2190 if { (ac_try="$ac_link"
2192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2193 *) ac_try_echo=$ac_try;;
2195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2196 (eval "$ac_link") 2>&5
2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); }; then
2200 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2201 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2202 # work properly (i.e., refer to `conftest.exe'), while it won't with
2204 for ac_file in conftest.exe conftest conftest.*; do
2205 test -f "$ac_file" || continue
2207 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2208 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2214 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2215 See \`config.log' for more details." >&5
2216 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2217 See \`config.log' for more details." >&2;}
2218 { (exit 1); exit 1; }; }
2221 rm -f conftest$ac_cv_exeext
2222 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2223 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2225 rm -f conftest.$ac_ext
2226 EXEEXT=$ac_cv_exeext
2228 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2229 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2230 if test "${ac_cv_objext+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2233 cat >conftest.$ac_ext <<_ACEOF
2236 cat confdefs.h >>conftest.$ac_ext
2237 cat >>conftest.$ac_ext <<_ACEOF
2238 /* end confdefs.h. */
2248 rm -f conftest.o conftest.obj
2249 if { (ac_try="$ac_compile"
2251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2252 *) ac_try_echo=$ac_try;;
2254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2255 (eval "$ac_compile") 2>&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; then
2259 for ac_file in conftest.o conftest.obj conftest.*; do
2260 test -f "$ac_file" || continue;
2262 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2263 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2268 echo "$as_me: failed program was:" >&5
2269 sed 's/^/| /' conftest.$ac_ext >&5
2271 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2272 See \`config.log' for more details." >&5
2273 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2274 See \`config.log' for more details." >&2;}
2275 { (exit 1); exit 1; }; }
2278 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2280 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2281 echo "${ECHO_T}$ac_cv_objext" >&6; }
2282 OBJEXT=$ac_cv_objext
2284 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2285 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2286 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
2289 cat >conftest.$ac_ext <<_ACEOF
2292 cat confdefs.h >>conftest.$ac_ext
2293 cat >>conftest.$ac_ext <<_ACEOF
2294 /* end confdefs.h. */
2307 rm -f conftest.$ac_objext
2308 if { (ac_try="$ac_compile"
2310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2311 *) ac_try_echo=$ac_try;;
2313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2314 (eval "$ac_compile") 2>conftest.er1
2316 grep -v '^ *+' conftest.er1 >conftest.err
2318 cat conftest.err >&5
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); } && {
2321 test -z "$ac_c_werror_flag" ||
2322 test ! -s conftest.err
2323 } && test -s conftest.$ac_objext; then
2326 echo "$as_me: failed program was:" >&5
2327 sed 's/^/| /' conftest.$ac_ext >&5
2332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2333 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2336 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2337 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2338 GCC=`test $ac_compiler_gnu = yes && echo yes`
2339 ac_test_CFLAGS=${CFLAGS+set}
2340 ac_save_CFLAGS=$CFLAGS
2341 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2342 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2343 if test "${ac_cv_prog_cc_g+set}" = set; then
2344 echo $ECHO_N "(cached) $ECHO_C" >&6
2346 ac_save_c_werror_flag=$ac_c_werror_flag
2347 ac_c_werror_flag=yes
2350 cat >conftest.$ac_ext <<_ACEOF
2353 cat confdefs.h >>conftest.$ac_ext
2354 cat >>conftest.$ac_ext <<_ACEOF
2355 /* end confdefs.h. */
2365 rm -f conftest.$ac_objext
2366 if { (ac_try="$ac_compile"
2368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2369 *) ac_try_echo=$ac_try;;
2371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2372 (eval "$ac_compile") 2>conftest.er1
2374 grep -v '^ *+' conftest.er1 >conftest.err
2376 cat conftest.err >&5
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); } && {
2379 test -z "$ac_c_werror_flag" ||
2380 test ! -s conftest.err
2381 } && test -s conftest.$ac_objext; then
2384 echo "$as_me: failed program was:" >&5
2385 sed 's/^/| /' conftest.$ac_ext >&5
2388 cat >conftest.$ac_ext <<_ACEOF
2391 cat confdefs.h >>conftest.$ac_ext
2392 cat >>conftest.$ac_ext <<_ACEOF
2393 /* end confdefs.h. */
2403 rm -f conftest.$ac_objext
2404 if { (ac_try="$ac_compile"
2406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2407 *) ac_try_echo=$ac_try;;
2409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2410 (eval "$ac_compile") 2>conftest.er1
2412 grep -v '^ *+' conftest.er1 >conftest.err
2414 cat conftest.err >&5
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); } && {
2417 test -z "$ac_c_werror_flag" ||
2418 test ! -s conftest.err
2419 } && test -s conftest.$ac_objext; then
2422 echo "$as_me: failed program was:" >&5
2423 sed 's/^/| /' conftest.$ac_ext >&5
2425 ac_c_werror_flag=$ac_save_c_werror_flag
2427 cat >conftest.$ac_ext <<_ACEOF
2430 cat confdefs.h >>conftest.$ac_ext
2431 cat >>conftest.$ac_ext <<_ACEOF
2432 /* end confdefs.h. */
2442 rm -f conftest.$ac_objext
2443 if { (ac_try="$ac_compile"
2445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2446 *) ac_try_echo=$ac_try;;
2448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2449 (eval "$ac_compile") 2>conftest.er1
2451 grep -v '^ *+' conftest.er1 >conftest.err
2453 cat conftest.err >&5
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); } && {
2456 test -z "$ac_c_werror_flag" ||
2457 test ! -s conftest.err
2458 } && test -s conftest.$ac_objext; then
2461 echo "$as_me: failed program was:" >&5
2462 sed 's/^/| /' conftest.$ac_ext >&5
2467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2474 ac_c_werror_flag=$ac_save_c_werror_flag
2476 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2477 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2478 if test "$ac_test_CFLAGS" = set; then
2479 CFLAGS=$ac_save_CFLAGS
2480 elif test $ac_cv_prog_cc_g = yes; then
2481 if test "$GCC" = yes; then
2487 if test "$GCC" = yes; then
2493 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2494 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2495 if test "${ac_cv_prog_cc_c89+set}" = set; then
2496 echo $ECHO_N "(cached) $ECHO_C" >&6
2498 ac_cv_prog_cc_c89=no
2500 cat >conftest.$ac_ext <<_ACEOF
2503 cat confdefs.h >>conftest.$ac_ext
2504 cat >>conftest.$ac_ext <<_ACEOF
2505 /* end confdefs.h. */
2508 #include <sys/types.h>
2509 #include <sys/stat.h>
2510 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2511 struct buf { int x; };
2512 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2513 static char *e (p, i)
2519 static char *f (char * (*g) (char **, int), char **p, ...)
2524 s = g (p, va_arg (v,int));
2529 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2530 function prototypes and stuff, but not '\xHH' hex character constants.
2531 These don't provoke an error unfortunately, instead are silently treated
2532 as 'x'. The following induces an error, until -std is added to get
2533 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2534 array size at least. It's necessary to write '\x00'==0 to get something
2535 that's true only with -std. */
2536 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2538 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2539 inside strings and character constants. */
2541 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2543 int test (int i, double x);
2544 struct s1 {int (*f) (int a);};
2545 struct s2 {int (*f) (double a);};
2546 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2552 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2557 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2558 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2560 CC="$ac_save_CC $ac_arg"
2561 rm -f conftest.$ac_objext
2562 if { (ac_try="$ac_compile"
2564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2565 *) ac_try_echo=$ac_try;;
2567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2568 (eval "$ac_compile") 2>conftest.er1
2570 grep -v '^ *+' conftest.er1 >conftest.err
2572 cat conftest.err >&5
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); } && {
2575 test -z "$ac_c_werror_flag" ||
2576 test ! -s conftest.err
2577 } && test -s conftest.$ac_objext; then
2578 ac_cv_prog_cc_c89=$ac_arg
2580 echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2586 rm -f core conftest.err conftest.$ac_objext
2587 test "x$ac_cv_prog_cc_c89" != "xno" && break
2589 rm -f conftest.$ac_ext
2594 case "x$ac_cv_prog_cc_c89" in
2596 { echo "$as_me:$LINENO: result: none needed" >&5
2597 echo "${ECHO_T}none needed" >&6; } ;;
2599 { echo "$as_me:$LINENO: result: unsupported" >&5
2600 echo "${ECHO_T}unsupported" >&6; } ;;
2602 CC="$CC $ac_cv_prog_cc_c89"
2603 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2604 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2609 ac_cpp='$CPP $CPPFLAGS'
2610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2616 ac_cpp='$CPP $CPPFLAGS'
2617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2620 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2621 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2622 # On Suns, sometimes $CPP names a directory.
2623 if test -n "$CPP" && test -d "$CPP"; then
2626 if test -z "$CPP"; then
2627 if test "${ac_cv_prog_CPP+set}" = set; then
2628 echo $ECHO_N "(cached) $ECHO_C" >&6
2630 # Double quotes because CPP needs to be expanded
2631 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2634 for ac_c_preproc_warn_flag in '' yes
2636 # Use a header file that comes with gcc, so configuring glibc
2637 # with a fresh cross-compiler works.
2638 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2639 # <limits.h> exists even on freestanding compilers.
2640 # On the NeXT, cc -E runs the code through the compiler's parser,
2641 # not just through cpp. "Syntax error" is here to catch this case.
2642 cat >conftest.$ac_ext <<_ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h. */
2649 # include <limits.h>
2651 # include <assert.h>
2655 if { (ac_try="$ac_cpp conftest.$ac_ext"
2657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2658 *) ac_try_echo=$ac_try;;
2660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2663 grep -v '^ *+' conftest.er1 >conftest.err
2665 cat conftest.err >&5
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); } >/dev/null && {
2668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2669 test ! -s conftest.err
2673 echo "$as_me: failed program was:" >&5
2674 sed 's/^/| /' conftest.$ac_ext >&5
2676 # Broken: fails on valid input.
2680 rm -f conftest.err conftest.$ac_ext
2682 # OK, works on sane cases. Now check whether nonexistent headers
2683 # can be detected and how.
2684 cat >conftest.$ac_ext <<_ACEOF
2687 cat confdefs.h >>conftest.$ac_ext
2688 cat >>conftest.$ac_ext <<_ACEOF
2689 /* end confdefs.h. */
2690 #include <ac_nonexistent.h>
2692 if { (ac_try="$ac_cpp conftest.$ac_ext"
2694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2695 *) ac_try_echo=$ac_try;;
2697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2700 grep -v '^ *+' conftest.er1 >conftest.err
2702 cat conftest.err >&5
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); } >/dev/null && {
2705 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2706 test ! -s conftest.err
2708 # Broken: success on invalid input.
2711 echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.$ac_ext >&5
2714 # Passes both tests.
2719 rm -f conftest.err conftest.$ac_ext
2722 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2723 rm -f conftest.err conftest.$ac_ext
2724 if $ac_preproc_ok; then
2736 { echo "$as_me:$LINENO: result: $CPP" >&5
2737 echo "${ECHO_T}$CPP" >&6; }
2739 for ac_c_preproc_warn_flag in '' yes
2741 # Use a header file that comes with gcc, so configuring glibc
2742 # with a fresh cross-compiler works.
2743 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2744 # <limits.h> exists even on freestanding compilers.
2745 # On the NeXT, cc -E runs the code through the compiler's parser,
2746 # not just through cpp. "Syntax error" is here to catch this case.
2747 cat >conftest.$ac_ext <<_ACEOF
2750 cat confdefs.h >>conftest.$ac_ext
2751 cat >>conftest.$ac_ext <<_ACEOF
2752 /* end confdefs.h. */
2754 # include <limits.h>
2756 # include <assert.h>
2760 if { (ac_try="$ac_cpp conftest.$ac_ext"
2762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2763 *) ac_try_echo=$ac_try;;
2765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2768 grep -v '^ *+' conftest.er1 >conftest.err
2770 cat conftest.err >&5
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); } >/dev/null && {
2773 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2774 test ! -s conftest.err
2778 echo "$as_me: failed program was:" >&5
2779 sed 's/^/| /' conftest.$ac_ext >&5
2781 # Broken: fails on valid input.
2785 rm -f conftest.err conftest.$ac_ext
2787 # OK, works on sane cases. Now check whether nonexistent headers
2788 # can be detected and how.
2789 cat >conftest.$ac_ext <<_ACEOF
2792 cat confdefs.h >>conftest.$ac_ext
2793 cat >>conftest.$ac_ext <<_ACEOF
2794 /* end confdefs.h. */
2795 #include <ac_nonexistent.h>
2797 if { (ac_try="$ac_cpp conftest.$ac_ext"
2799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2800 *) ac_try_echo=$ac_try;;
2802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2803 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2805 grep -v '^ *+' conftest.er1 >conftest.err
2807 cat conftest.err >&5
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); } >/dev/null && {
2810 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2811 test ! -s conftest.err
2813 # Broken: success on invalid input.
2816 echo "$as_me: failed program was:" >&5
2817 sed 's/^/| /' conftest.$ac_ext >&5
2819 # Passes both tests.
2824 rm -f conftest.err conftest.$ac_ext
2827 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2828 rm -f conftest.err conftest.$ac_ext
2829 if $ac_preproc_ok; then
2832 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2833 See \`config.log' for more details." >&5
2834 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2835 See \`config.log' for more details." >&2;}
2836 { (exit 1); exit 1; }; }
2840 ac_cpp='$CPP $CPPFLAGS'
2841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2846 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
2847 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
2848 if test "${ac_cv_path_GREP+set}" = set; then
2849 echo $ECHO_N "(cached) $ECHO_C" >&6
2851 # Extract the first word of "grep ggrep" to use in msg output
2852 if test -z "$GREP"; then
2853 set dummy grep ggrep; ac_prog_name=$2
2854 if test "${ac_cv_path_GREP+set}" = set; then
2855 echo $ECHO_N "(cached) $ECHO_C" >&6
2857 ac_path_GREP_found=false
2858 # Loop through the user's path and test for each of PROGNAME-LIST
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2863 test -z "$as_dir" && as_dir=.
2864 for ac_prog in grep ggrep; do
2865 for ac_exec_ext in '' $ac_executable_extensions; do
2866 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
2867 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
2868 # Check for GNU ac_path_GREP and select it if it is found.
2869 # Check for GNU $ac_path_GREP
2870 case `"$ac_path_GREP" --version 2>&1` in
2872 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
2875 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
2878 cat "conftest.in" "conftest.in" >"conftest.tmp"
2879 mv "conftest.tmp" "conftest.in"
2880 cp "conftest.in" "conftest.nl"
2881 echo 'GREP' >> "conftest.nl"
2882 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2883 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2884 ac_count=`expr $ac_count + 1`
2885 if test $ac_count -gt ${ac_path_GREP_max-0}; then
2886 # Best one so far, save it but keep looking for a better one
2887 ac_cv_path_GREP="$ac_path_GREP"
2888 ac_path_GREP_max=$ac_count
2890 # 10*(2^10) chars as input seems more than enough
2891 test $ac_count -gt 10 && break
2893 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2897 $ac_path_GREP_found && break 3
2907 GREP="$ac_cv_path_GREP"
2908 if test -z "$GREP"; then
2909 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
2910 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
2911 { (exit 1); exit 1; }; }
2915 ac_cv_path_GREP=$GREP
2920 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
2921 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
2922 GREP="$ac_cv_path_GREP"
2925 { echo "$as_me:$LINENO: checking for egrep" >&5
2926 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
2927 if test "${ac_cv_path_EGREP+set}" = set; then
2928 echo $ECHO_N "(cached) $ECHO_C" >&6
2930 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
2931 then ac_cv_path_EGREP="$GREP -E"
2933 # Extract the first word of "egrep" to use in msg output
2934 if test -z "$EGREP"; then
2935 set dummy egrep; ac_prog_name=$2
2936 if test "${ac_cv_path_EGREP+set}" = set; then
2937 echo $ECHO_N "(cached) $ECHO_C" >&6
2939 ac_path_EGREP_found=false
2940 # Loop through the user's path and test for each of PROGNAME-LIST
2941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2945 test -z "$as_dir" && as_dir=.
2946 for ac_prog in egrep; do
2947 for ac_exec_ext in '' $ac_executable_extensions; do
2948 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
2949 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
2950 # Check for GNU ac_path_EGREP and select it if it is found.
2951 # Check for GNU $ac_path_EGREP
2952 case `"$ac_path_EGREP" --version 2>&1` in
2954 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
2957 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
2960 cat "conftest.in" "conftest.in" >"conftest.tmp"
2961 mv "conftest.tmp" "conftest.in"
2962 cp "conftest.in" "conftest.nl"
2963 echo 'EGREP' >> "conftest.nl"
2964 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2965 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2966 ac_count=`expr $ac_count + 1`
2967 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
2968 # Best one so far, save it but keep looking for a better one
2969 ac_cv_path_EGREP="$ac_path_EGREP"
2970 ac_path_EGREP_max=$ac_count
2972 # 10*(2^10) chars as input seems more than enough
2973 test $ac_count -gt 10 && break
2975 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2979 $ac_path_EGREP_found && break 3
2989 EGREP="$ac_cv_path_EGREP"
2990 if test -z "$EGREP"; then
2991 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
2992 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
2993 { (exit 1); exit 1; }; }
2997 ac_cv_path_EGREP=$EGREP
3003 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3004 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3005 EGREP="$ac_cv_path_EGREP"
3008 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3009 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3010 if test "${ac_cv_header_stdc+set}" = set; then
3011 echo $ECHO_N "(cached) $ECHO_C" >&6
3013 cat >conftest.$ac_ext <<_ACEOF
3016 cat confdefs.h >>conftest.$ac_ext
3017 cat >>conftest.$ac_ext <<_ACEOF
3018 /* end confdefs.h. */
3032 rm -f conftest.$ac_objext
3033 if { (ac_try="$ac_compile"
3035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036 *) ac_try_echo=$ac_try;;
3038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3039 (eval "$ac_compile") 2>conftest.er1
3041 grep -v '^ *+' conftest.er1 >conftest.err
3043 cat conftest.err >&5
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); } && {
3046 test -z "$ac_c_werror_flag" ||
3047 test ! -s conftest.err
3048 } && test -s conftest.$ac_objext; then
3049 ac_cv_header_stdc=yes
3051 echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.$ac_ext >&5
3054 ac_cv_header_stdc=no
3057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3059 if test $ac_cv_header_stdc = yes; then
3060 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3061 cat >conftest.$ac_ext <<_ACEOF
3064 cat confdefs.h >>conftest.$ac_ext
3065 cat >>conftest.$ac_ext <<_ACEOF
3066 /* end confdefs.h. */
3070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3071 $EGREP "memchr" >/dev/null 2>&1; then
3074 ac_cv_header_stdc=no
3080 if test $ac_cv_header_stdc = yes; then
3081 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3082 cat >conftest.$ac_ext <<_ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h. */
3091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3092 $EGREP "free" >/dev/null 2>&1; then
3095 ac_cv_header_stdc=no
3101 if test $ac_cv_header_stdc = yes; then
3102 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3103 if test "$cross_compiling" = yes; then
3106 cat >conftest.$ac_ext <<_ACEOF
3109 cat confdefs.h >>conftest.$ac_ext
3110 cat >>conftest.$ac_ext <<_ACEOF
3111 /* end confdefs.h. */
3114 #if ((' ' & 0x0FF) == 0x020)
3115 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3116 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3118 # define ISLOWER(c) \
3119 (('a' <= (c) && (c) <= 'i') \
3120 || ('j' <= (c) && (c) <= 'r') \
3121 || ('s' <= (c) && (c) <= 'z'))
3122 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3125 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3130 for (i = 0; i < 256; i++)
3131 if (XOR (islower (i), ISLOWER (i))
3132 || toupper (i) != TOUPPER (i))
3137 rm -f conftest$ac_exeext
3138 if { (ac_try="$ac_link"
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144 (eval "$ac_link") 2>&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3148 { (case "(($ac_try" in
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3153 (eval "$ac_try") 2>&5
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); }; }; then
3159 echo "$as_me: program exited with status $ac_status" >&5
3160 echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3164 ac_cv_header_stdc=no
3166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3172 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3173 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3174 if test $ac_cv_header_stdc = yes; then
3176 cat >>confdefs.h <<\_ACEOF
3177 #define STDC_HEADERS 1
3182 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3192 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3193 inttypes.h stdint.h unistd.h
3195 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3196 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3199 echo $ECHO_N "(cached) $ECHO_C" >&6
3201 cat >conftest.$ac_ext <<_ACEOF
3204 cat confdefs.h >>conftest.$ac_ext
3205 cat >>conftest.$ac_ext <<_ACEOF
3206 /* end confdefs.h. */
3207 $ac_includes_default
3209 #include <$ac_header>
3211 rm -f conftest.$ac_objext
3212 if { (ac_try="$ac_compile"
3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3218 (eval "$ac_compile") 2>conftest.er1
3220 grep -v '^ *+' conftest.er1 >conftest.err
3222 cat conftest.err >&5
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); } && {
3225 test -z "$ac_c_werror_flag" ||
3226 test ! -s conftest.err
3227 } && test -s conftest.$ac_objext; then
3228 eval "$as_ac_Header=yes"
3230 echo "$as_me: failed program was:" >&5
3231 sed 's/^/| /' conftest.$ac_ext >&5
3233 eval "$as_ac_Header=no"
3236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3238 ac_res=`eval echo '${'$as_ac_Header'}'`
3239 { echo "$as_me:$LINENO: result: $ac_res" >&5
3240 echo "${ECHO_T}$ac_res" >&6; }
3241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3242 cat >>confdefs.h <<_ACEOF
3243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3253 if test "${ac_cv_header_readline_readline_h+set}" = set; then
3254 { echo "$as_me:$LINENO: checking for readline/readline.h" >&5
3255 echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6; }
3256 if test "${ac_cv_header_readline_readline_h+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3259 { echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
3260 echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6; }
3262 # Is the header compilable?
3263 { echo "$as_me:$LINENO: checking readline/readline.h usability" >&5
3264 echo $ECHO_N "checking readline/readline.h usability... $ECHO_C" >&6; }
3265 cat >conftest.$ac_ext <<_ACEOF
3268 cat confdefs.h >>conftest.$ac_ext
3269 cat >>conftest.$ac_ext <<_ACEOF
3270 /* end confdefs.h. */
3271 $ac_includes_default
3272 #include <readline/readline.h>
3274 rm -f conftest.$ac_objext
3275 if { (ac_try="$ac_compile"
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3281 (eval "$ac_compile") 2>conftest.er1
3283 grep -v '^ *+' conftest.er1 >conftest.err
3285 cat conftest.err >&5
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); } && {
3288 test -z "$ac_c_werror_flag" ||
3289 test ! -s conftest.err
3290 } && test -s conftest.$ac_objext; then
3291 ac_header_compiler=yes
3293 echo "$as_me: failed program was:" >&5
3294 sed 's/^/| /' conftest.$ac_ext >&5
3296 ac_header_compiler=no
3299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3300 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3301 echo "${ECHO_T}$ac_header_compiler" >&6; }
3303 # Is the header present?
3304 { echo "$as_me:$LINENO: checking readline/readline.h presence" >&5
3305 echo $ECHO_N "checking readline/readline.h presence... $ECHO_C" >&6; }
3306 cat >conftest.$ac_ext <<_ACEOF
3309 cat confdefs.h >>conftest.$ac_ext
3310 cat >>conftest.$ac_ext <<_ACEOF
3311 /* end confdefs.h. */
3312 #include <readline/readline.h>
3314 if { (ac_try="$ac_cpp conftest.$ac_ext"
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3320 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3322 grep -v '^ *+' conftest.er1 >conftest.err
3324 cat conftest.err >&5
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); } >/dev/null && {
3327 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3328 test ! -s conftest.err
3330 ac_header_preproc=yes
3332 echo "$as_me: failed program was:" >&5
3333 sed 's/^/| /' conftest.$ac_ext >&5
3335 ac_header_preproc=no
3338 rm -f conftest.err conftest.$ac_ext
3339 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3340 echo "${ECHO_T}$ac_header_preproc" >&6; }
3342 # So? What about this header?
3343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3345 { echo "$as_me:$LINENO: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
3346 echo "$as_me: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3347 { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the compiler's result" >&5
3348 echo "$as_me: WARNING: readline/readline.h: proceeding with the compiler's result" >&2;}
3349 ac_header_preproc=yes
3352 { echo "$as_me:$LINENO: WARNING: readline/readline.h: present but cannot be compiled" >&5
3353 echo "$as_me: WARNING: readline/readline.h: present but cannot be compiled" >&2;}
3354 { echo "$as_me:$LINENO: WARNING: readline/readline.h: check for missing prerequisite headers?" >&5
3355 echo "$as_me: WARNING: readline/readline.h: check for missing prerequisite headers?" >&2;}
3356 { echo "$as_me:$LINENO: WARNING: readline/readline.h: see the Autoconf documentation" >&5
3357 echo "$as_me: WARNING: readline/readline.h: see the Autoconf documentation" >&2;}
3358 { echo "$as_me:$LINENO: WARNING: readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
3359 echo "$as_me: WARNING: readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
3360 { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&5
3361 echo "$as_me: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&2;}
3362 { echo "$as_me:$LINENO: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&5
3363 echo "$as_me: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&2;}
3367 { echo "$as_me:$LINENO: checking for readline/readline.h" >&5
3368 echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6; }
3369 if test "${ac_cv_header_readline_readline_h+set}" = set; then
3370 echo $ECHO_N "(cached) $ECHO_C" >&6
3372 ac_cv_header_readline_readline_h=$ac_header_preproc
3374 { echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
3375 echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6; }
3381 if test "$ac_cv_header_readline_readline_h" = yes; then
3383 cat > conftest.$ac_ext <<EOF
3385 #include <readline/readline.h>
3386 wi_LIB_READLINE_VERSION RL_VERSION_MAJOR RL_VERSION_MINOR
3389 wi_READLINE_VERSION=$($CPP $CPPFLAGS conftest.$ac_ext | sed -n -e "s/^wi_LIB_READLINE_VERSION *\([0-9\][0-9\]*\) *\([0-9\][0-9\]*\)$/\1.\2/p")
3392 if test -n "$wi_READLINE_VERSION"; then
3393 wi_MAJOR=$(expr $wi_READLINE_VERSION : '\([0-9][0-9]*\)\.')
3394 wi_MINOR=$(expr $wi_READLINE_VERSION : '[0-9][0-9]*\.\([0-9][0-9]*$\)')
3395 if test $wi_MINOR -lt 10; then
3396 wi_MINOR=$(expr $wi_MINOR \* 10)
3398 wi_READLINE_VERSION=$(expr $wi_MAJOR \* 100 + $wi_MINOR)
3400 wi_READLINE_VERSION=-1
3404 ac_save_LIBS="$LIBS"
3405 # Note: $LIBCURSES is permitted to be empty.
3407 for LIBREADLINE in "-lreadline.dll" "-lreadline" "-lreadline $LIBCURSES" "-lreadline -ltermcap" "-lreadline -lncurses" "-lreadline -lcurses"
3409 { echo "$as_me:$LINENO: checking for GNU Readline library $LIBREADLINE" >&5
3410 echo $ECHO_N "checking for GNU Readline library $LIBREADLINE... $ECHO_C" >&6; }
3412 LIBS="$ac_save_LIBS $LIBREADLINE"
3414 cat >conftest.$ac_ext <<_ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h. */
3423 #include <readline/readline.h>
3430 int dummy = rl_completion_append_character; /* rl_completion_append_character appeared in version 2.1 */
3437 rm -f conftest.$ac_objext conftest$ac_exeext
3438 if { (ac_try="$ac_link"
3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441 *) ac_try_echo=$ac_try;;
3443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3444 (eval "$ac_link") 2>conftest.er1
3446 grep -v '^ *+' conftest.er1 >conftest.err
3448 cat conftest.err >&5
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); } && {
3451 test -z "$ac_c_werror_flag" ||
3452 test ! -s conftest.err
3453 } && test -s conftest$ac_exeext &&
3454 $as_test_x conftest$ac_exeext; then
3456 wi_cv_lib_readline=yes
3457 { echo "$as_me:$LINENO: result: yes" >&5
3458 echo "${ECHO_T}yes" >&6; }
3461 echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3465 wi_cv_lib_readline=no
3466 { echo "$as_me:$LINENO: result: no" >&5
3467 echo "${ECHO_T}no" >&6; }
3471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3472 conftest$ac_exeext conftest.$ac_ext
3474 if test "$wi_cv_lib_readline" = yes; then
3477 cat >>confdefs.h <<_ACEOF
3478 #define HAVE_LIBREADLINE $wi_READLINE_VERSION
3485 LIBS="$ac_save_LIBS"
3490 # ===========================================================================
3492 ac_cpp='$CPP $CPPFLAGS'
3493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3496 if test -n "$ac_tool_prefix"; then
3497 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3498 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3501 if test "${ac_cv_prog_CC+set}" = set; then
3502 echo $ECHO_N "(cached) $ECHO_C" >&6
3504 if test -n "$CC"; then
3505 ac_cv_prog_CC="$CC" # Let the user override the test.
3507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511 test -z "$as_dir" && as_dir=.
3512 for ac_exec_ext in '' $ac_executable_extensions; do
3513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3514 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3525 if test -n "$CC"; then
3526 { echo "$as_me:$LINENO: result: $CC" >&5
3527 echo "${ECHO_T}$CC" >&6; }
3529 { echo "$as_me:$LINENO: result: no" >&5
3530 echo "${ECHO_T}no" >&6; }
3535 if test -z "$ac_cv_prog_CC"; then
3537 # Extract the first word of "gcc", so it can be a program name with args.
3538 set dummy gcc; ac_word=$2
3539 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3541 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3544 if test -n "$ac_ct_CC"; then
3545 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 test -z "$as_dir" && as_dir=.
3552 for ac_exec_ext in '' $ac_executable_extensions; do
3553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3554 ac_cv_prog_ac_ct_CC="gcc"
3555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3564 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3565 if test -n "$ac_ct_CC"; then
3566 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3567 echo "${ECHO_T}$ac_ct_CC" >&6; }
3569 { echo "$as_me:$LINENO: result: no" >&5
3570 echo "${ECHO_T}no" >&6; }
3573 if test "x$ac_ct_CC" = x; then
3576 case $cross_compiling:$ac_tool_warned in
3578 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3579 whose name does not start with the host triplet. If you think this
3580 configuration is useful to you, please write to autoconf@gnu.org." >&5
3581 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3582 whose name does not start with the host triplet. If you think this
3583 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3584 ac_tool_warned=yes ;;
3592 if test -z "$CC"; then
3593 if test -n "$ac_tool_prefix"; then
3594 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3595 set dummy ${ac_tool_prefix}cc; ac_word=$2
3596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3598 if test "${ac_cv_prog_CC+set}" = set; then
3599 echo $ECHO_N "(cached) $ECHO_C" >&6
3601 if test -n "$CC"; then
3602 ac_cv_prog_CC="$CC" # Let the user override the test.
3604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3608 test -z "$as_dir" && as_dir=.
3609 for ac_exec_ext in '' $ac_executable_extensions; do
3610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3611 ac_cv_prog_CC="${ac_tool_prefix}cc"
3612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3622 if test -n "$CC"; then
3623 { echo "$as_me:$LINENO: result: $CC" >&5
3624 echo "${ECHO_T}$CC" >&6; }
3626 { echo "$as_me:$LINENO: result: no" >&5
3627 echo "${ECHO_T}no" >&6; }
3633 if test -z "$CC"; then
3634 # Extract the first word of "cc", so it can be a program name with args.
3635 set dummy cc; ac_word=$2
3636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3638 if test "${ac_cv_prog_CC+set}" = set; then
3639 echo $ECHO_N "(cached) $ECHO_C" >&6
3641 if test -n "$CC"; then
3642 ac_cv_prog_CC="$CC" # Let the user override the test.
3645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3649 test -z "$as_dir" && as_dir=.
3650 for ac_exec_ext in '' $ac_executable_extensions; do
3651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3652 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3653 ac_prog_rejected=yes
3657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3664 if test $ac_prog_rejected = yes; then
3665 # We found a bogon in the path, so make sure we never use it.
3666 set dummy $ac_cv_prog_CC
3668 if test $# != 0; then
3669 # We chose a different compiler from the bogus one.
3670 # However, it has the same basename, so the bogon will be chosen
3671 # first if we set CC to just the basename; use the full file name.
3673 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3679 if test -n "$CC"; then
3680 { echo "$as_me:$LINENO: result: $CC" >&5
3681 echo "${ECHO_T}$CC" >&6; }
3683 { echo "$as_me:$LINENO: result: no" >&5
3684 echo "${ECHO_T}no" >&6; }
3689 if test -z "$CC"; then
3690 if test -n "$ac_tool_prefix"; then
3691 for ac_prog in cl.exe
3693 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3694 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3697 if test "${ac_cv_prog_CC+set}" = set; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6
3700 if test -n "$CC"; then
3701 ac_cv_prog_CC="$CC" # Let the user override the test.
3703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707 test -z "$as_dir" && as_dir=.
3708 for ac_exec_ext in '' $ac_executable_extensions; do
3709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3710 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3721 if test -n "$CC"; then
3722 { echo "$as_me:$LINENO: result: $CC" >&5
3723 echo "${ECHO_T}$CC" >&6; }
3725 { echo "$as_me:$LINENO: result: no" >&5
3726 echo "${ECHO_T}no" >&6; }
3730 test -n "$CC" && break
3733 if test -z "$CC"; then
3735 for ac_prog in cl.exe
3737 # Extract the first word of "$ac_prog", so it can be a program name with args.
3738 set dummy $ac_prog; ac_word=$2
3739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3741 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3742 echo $ECHO_N "(cached) $ECHO_C" >&6
3744 if test -n "$ac_ct_CC"; then
3745 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 test -z "$as_dir" && as_dir=.
3752 for ac_exec_ext in '' $ac_executable_extensions; do
3753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3754 ac_cv_prog_ac_ct_CC="$ac_prog"
3755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3764 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3765 if test -n "$ac_ct_CC"; then
3766 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3767 echo "${ECHO_T}$ac_ct_CC" >&6; }
3769 { echo "$as_me:$LINENO: result: no" >&5
3770 echo "${ECHO_T}no" >&6; }
3774 test -n "$ac_ct_CC" && break
3777 if test "x$ac_ct_CC" = x; then
3780 case $cross_compiling:$ac_tool_warned in
3782 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3783 whose name does not start with the host triplet. If you think this
3784 configuration is useful to you, please write to autoconf@gnu.org." >&5
3785 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3786 whose name does not start with the host triplet. If you think this
3787 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3788 ac_tool_warned=yes ;;
3797 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3798 See \`config.log' for more details." >&5
3799 echo "$as_me: error: no acceptable C compiler found in \$PATH
3800 See \`config.log' for more details." >&2;}
3801 { (exit 1); exit 1; }; }
3803 # Provide some information about the compiler.
3804 echo "$as_me:$LINENO: checking for C compiler version" >&5
3805 ac_compiler=`set X $ac_compile; echo $2`
3806 { (ac_try="$ac_compiler --version >&5"
3808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3809 *) ac_try_echo=$ac_try;;
3811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3812 (eval "$ac_compiler --version >&5") 2>&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); }
3816 { (ac_try="$ac_compiler -v >&5"
3818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819 *) ac_try_echo=$ac_try;;
3821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3822 (eval "$ac_compiler -v >&5") 2>&5
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); }
3826 { (ac_try="$ac_compiler -V >&5"
3828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829 *) ac_try_echo=$ac_try;;
3831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3832 (eval "$ac_compiler -V >&5") 2>&5
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); }
3837 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3838 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3839 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3840 echo $ECHO_N "(cached) $ECHO_C" >&6
3842 cat >conftest.$ac_ext <<_ACEOF
3845 cat confdefs.h >>conftest.$ac_ext
3846 cat >>conftest.$ac_ext <<_ACEOF
3847 /* end confdefs.h. */
3860 rm -f conftest.$ac_objext
3861 if { (ac_try="$ac_compile"
3863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864 *) ac_try_echo=$ac_try;;
3866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3867 (eval "$ac_compile") 2>conftest.er1
3869 grep -v '^ *+' conftest.er1 >conftest.err
3871 cat conftest.err >&5
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); } && {
3874 test -z "$ac_c_werror_flag" ||
3875 test ! -s conftest.err
3876 } && test -s conftest.$ac_objext; then
3879 echo "$as_me: failed program was:" >&5
3880 sed 's/^/| /' conftest.$ac_ext >&5
3885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3886 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3889 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3890 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3891 GCC=`test $ac_compiler_gnu = yes && echo yes`
3892 ac_test_CFLAGS=${CFLAGS+set}
3893 ac_save_CFLAGS=$CFLAGS
3894 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3895 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3896 if test "${ac_cv_prog_cc_g+set}" = set; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3899 ac_save_c_werror_flag=$ac_c_werror_flag
3900 ac_c_werror_flag=yes
3903 cat >conftest.$ac_ext <<_ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h. */
3918 rm -f conftest.$ac_objext
3919 if { (ac_try="$ac_compile"
3921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922 *) ac_try_echo=$ac_try;;
3924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3925 (eval "$ac_compile") 2>conftest.er1
3927 grep -v '^ *+' conftest.er1 >conftest.err
3929 cat conftest.err >&5
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); } && {
3932 test -z "$ac_c_werror_flag" ||
3933 test ! -s conftest.err
3934 } && test -s conftest.$ac_objext; then
3937 echo "$as_me: failed program was:" >&5
3938 sed 's/^/| /' conftest.$ac_ext >&5
3941 cat >conftest.$ac_ext <<_ACEOF
3944 cat confdefs.h >>conftest.$ac_ext
3945 cat >>conftest.$ac_ext <<_ACEOF
3946 /* end confdefs.h. */
3956 rm -f conftest.$ac_objext
3957 if { (ac_try="$ac_compile"
3959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960 *) ac_try_echo=$ac_try;;
3962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3963 (eval "$ac_compile") 2>conftest.er1
3965 grep -v '^ *+' conftest.er1 >conftest.err
3967 cat conftest.err >&5
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); } && {
3970 test -z "$ac_c_werror_flag" ||
3971 test ! -s conftest.err
3972 } && test -s conftest.$ac_objext; then
3975 echo "$as_me: failed program was:" >&5
3976 sed 's/^/| /' conftest.$ac_ext >&5
3978 ac_c_werror_flag=$ac_save_c_werror_flag
3980 cat >conftest.$ac_ext <<_ACEOF
3983 cat confdefs.h >>conftest.$ac_ext
3984 cat >>conftest.$ac_ext <<_ACEOF
3985 /* end confdefs.h. */
3995 rm -f conftest.$ac_objext
3996 if { (ac_try="$ac_compile"
3998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3999 *) ac_try_echo=$ac_try;;
4001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4002 (eval "$ac_compile") 2>conftest.er1
4004 grep -v '^ *+' conftest.er1 >conftest.err
4006 cat conftest.err >&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } && {
4009 test -z "$ac_c_werror_flag" ||
4010 test ! -s conftest.err
4011 } && test -s conftest.$ac_objext; then
4014 echo "$as_me: failed program was:" >&5
4015 sed 's/^/| /' conftest.$ac_ext >&5
4020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4027 ac_c_werror_flag=$ac_save_c_werror_flag
4029 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4030 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4031 if test "$ac_test_CFLAGS" = set; then
4032 CFLAGS=$ac_save_CFLAGS
4033 elif test $ac_cv_prog_cc_g = yes; then
4034 if test "$GCC" = yes; then
4040 if test "$GCC" = yes; then
4046 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4047 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4048 if test "${ac_cv_prog_cc_c89+set}" = set; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 ac_cv_prog_cc_c89=no
4053 cat >conftest.$ac_ext <<_ACEOF
4056 cat confdefs.h >>conftest.$ac_ext
4057 cat >>conftest.$ac_ext <<_ACEOF
4058 /* end confdefs.h. */
4061 #include <sys/types.h>
4062 #include <sys/stat.h>
4063 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4064 struct buf { int x; };
4065 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4066 static char *e (p, i)
4072 static char *f (char * (*g) (char **, int), char **p, ...)
4077 s = g (p, va_arg (v,int));
4082 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4083 function prototypes and stuff, but not '\xHH' hex character constants.
4084 These don't provoke an error unfortunately, instead are silently treated
4085 as 'x'. The following induces an error, until -std is added to get
4086 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4087 array size at least. It's necessary to write '\x00'==0 to get something
4088 that's true only with -std. */
4089 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4091 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4092 inside strings and character constants. */
4094 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4096 int test (int i, double x);
4097 struct s1 {int (*f) (int a);};
4098 struct s2 {int (*f) (double a);};
4099 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4105 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4110 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4111 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4113 CC="$ac_save_CC $ac_arg"
4114 rm -f conftest.$ac_objext
4115 if { (ac_try="$ac_compile"
4117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4118 *) ac_try_echo=$ac_try;;
4120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4121 (eval "$ac_compile") 2>conftest.er1
4123 grep -v '^ *+' conftest.er1 >conftest.err
4125 cat conftest.err >&5
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); } && {
4128 test -z "$ac_c_werror_flag" ||
4129 test ! -s conftest.err
4130 } && test -s conftest.$ac_objext; then
4131 ac_cv_prog_cc_c89=$ac_arg
4133 echo "$as_me: failed program was:" >&5
4134 sed 's/^/| /' conftest.$ac_ext >&5
4139 rm -f core conftest.err conftest.$ac_objext
4140 test "x$ac_cv_prog_cc_c89" != "xno" && break
4142 rm -f conftest.$ac_ext
4147 case "x$ac_cv_prog_cc_c89" in
4149 { echo "$as_me:$LINENO: result: none needed" >&5
4150 echo "${ECHO_T}none needed" >&6; } ;;
4152 { echo "$as_me:$LINENO: result: unsupported" >&5
4153 echo "${ECHO_T}unsupported" >&6; } ;;
4155 CC="$CC $ac_cv_prog_cc_c89"
4156 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4157 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4162 ac_cpp='$CPP $CPPFLAGS'
4163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4168 ac_cpp='$CPP $CPPFLAGS'
4169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4172 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4173 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4174 # On Suns, sometimes $CPP names a directory.
4175 if test -n "$CPP" && test -d "$CPP"; then
4178 if test -z "$CPP"; then
4179 if test "${ac_cv_prog_CPP+set}" = set; then
4180 echo $ECHO_N "(cached) $ECHO_C" >&6
4182 # Double quotes because CPP needs to be expanded
4183 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4186 for ac_c_preproc_warn_flag in '' yes
4188 # Use a header file that comes with gcc, so configuring glibc
4189 # with a fresh cross-compiler works.
4190 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4191 # <limits.h> exists even on freestanding compilers.
4192 # On the NeXT, cc -E runs the code through the compiler's parser,
4193 # not just through cpp. "Syntax error" is here to catch this case.
4194 cat >conftest.$ac_ext <<_ACEOF
4197 cat confdefs.h >>conftest.$ac_ext
4198 cat >>conftest.$ac_ext <<_ACEOF
4199 /* end confdefs.h. */
4201 # include <limits.h>
4203 # include <assert.h>
4207 if { (ac_try="$ac_cpp conftest.$ac_ext"
4209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210 *) ac_try_echo=$ac_try;;
4212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4213 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4215 grep -v '^ *+' conftest.er1 >conftest.err
4217 cat conftest.err >&5
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); } >/dev/null && {
4220 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4221 test ! -s conftest.err
4225 echo "$as_me: failed program was:" >&5
4226 sed 's/^/| /' conftest.$ac_ext >&5
4228 # Broken: fails on valid input.
4232 rm -f conftest.err conftest.$ac_ext
4234 # OK, works on sane cases. Now check whether nonexistent headers
4235 # can be detected and how.
4236 cat >conftest.$ac_ext <<_ACEOF
4239 cat confdefs.h >>conftest.$ac_ext
4240 cat >>conftest.$ac_ext <<_ACEOF
4241 /* end confdefs.h. */
4242 #include <ac_nonexistent.h>
4244 if { (ac_try="$ac_cpp conftest.$ac_ext"
4246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247 *) ac_try_echo=$ac_try;;
4249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4252 grep -v '^ *+' conftest.er1 >conftest.err
4254 cat conftest.err >&5
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); } >/dev/null && {
4257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4258 test ! -s conftest.err
4260 # Broken: success on invalid input.
4263 echo "$as_me: failed program was:" >&5
4264 sed 's/^/| /' conftest.$ac_ext >&5
4266 # Passes both tests.
4271 rm -f conftest.err conftest.$ac_ext
4274 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4275 rm -f conftest.err conftest.$ac_ext
4276 if $ac_preproc_ok; then
4288 { echo "$as_me:$LINENO: result: $CPP" >&5
4289 echo "${ECHO_T}$CPP" >&6; }
4291 for ac_c_preproc_warn_flag in '' yes
4293 # Use a header file that comes with gcc, so configuring glibc
4294 # with a fresh cross-compiler works.
4295 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4296 # <limits.h> exists even on freestanding compilers.
4297 # On the NeXT, cc -E runs the code through the compiler's parser,
4298 # not just through cpp. "Syntax error" is here to catch this case.
4299 cat >conftest.$ac_ext <<_ACEOF
4302 cat confdefs.h >>conftest.$ac_ext
4303 cat >>conftest.$ac_ext <<_ACEOF
4304 /* end confdefs.h. */
4306 # include <limits.h>
4308 # include <assert.h>
4312 if { (ac_try="$ac_cpp conftest.$ac_ext"
4314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4315 *) ac_try_echo=$ac_try;;
4317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4318 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4320 grep -v '^ *+' conftest.er1 >conftest.err
4322 cat conftest.err >&5
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); } >/dev/null && {
4325 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4326 test ! -s conftest.err
4330 echo "$as_me: failed program was:" >&5
4331 sed 's/^/| /' conftest.$ac_ext >&5
4333 # Broken: fails on valid input.
4337 rm -f conftest.err conftest.$ac_ext
4339 # OK, works on sane cases. Now check whether nonexistent headers
4340 # can be detected and how.
4341 cat >conftest.$ac_ext <<_ACEOF
4344 cat confdefs.h >>conftest.$ac_ext
4345 cat >>conftest.$ac_ext <<_ACEOF
4346 /* end confdefs.h. */
4347 #include <ac_nonexistent.h>
4349 if { (ac_try="$ac_cpp conftest.$ac_ext"
4351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4352 *) ac_try_echo=$ac_try;;
4354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4355 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4357 grep -v '^ *+' conftest.er1 >conftest.err
4359 cat conftest.err >&5
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); } >/dev/null && {
4362 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4363 test ! -s conftest.err
4365 # Broken: success on invalid input.
4368 echo "$as_me: failed program was:" >&5
4369 sed 's/^/| /' conftest.$ac_ext >&5
4371 # Passes both tests.
4376 rm -f conftest.err conftest.$ac_ext
4379 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4380 rm -f conftest.err conftest.$ac_ext
4381 if $ac_preproc_ok; then
4384 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4385 See \`config.log' for more details." >&5
4386 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4387 See \`config.log' for more details." >&2;}
4388 { (exit 1); exit 1; }; }
4392 ac_cpp='$CPP $CPPFLAGS'
4393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4398 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4399 if test -f "$ac_dir/install-sh"; then
4401 ac_install_sh="$ac_aux_dir/install-sh -c"
4403 elif test -f "$ac_dir/install.sh"; then
4405 ac_install_sh="$ac_aux_dir/install.sh -c"
4407 elif test -f "$ac_dir/shtool"; then
4409 ac_install_sh="$ac_aux_dir/shtool install -c"
4413 if test -z "$ac_aux_dir"; then
4414 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4415 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4416 { (exit 1); exit 1; }; }
4419 # These three variables are undocumented and unsupported,
4420 # and are intended to be withdrawn in a future Autoconf release.
4421 # They can cause serious problems if a builder's source tree is in a directory
4422 # whose full name contains unusual characters.
4423 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4424 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4425 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4428 # Find a good install program. We prefer a C program (faster),
4429 # so one script is as good as another. But avoid the broken or
4430 # incompatible versions:
4431 # SysV /etc/install, /usr/sbin/install
4432 # SunOS /usr/etc/install
4433 # IRIX /sbin/install
4435 # AmigaOS /C/install, which installs bootblocks on floppy discs
4436 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4437 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4438 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4439 # OS/2's system install, which has a completely different semantic
4440 # ./install, which can be erroneously created by make from ./install.sh.
4441 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4442 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4443 if test -z "$INSTALL"; then
4444 if test "${ac_cv_path_install+set}" = set; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451 test -z "$as_dir" && as_dir=.
4452 # Account for people who put trailing slashes in PATH elements.
4454 ./ | .// | /cC/* | \
4455 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4456 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4459 # OSF1 and SCO ODT 3.0 have their own names for install.
4460 # Don't use installbsd from OSF since it installs stuff as root
4462 for ac_prog in ginstall scoinst install; do
4463 for ac_exec_ext in '' $ac_executable_extensions; do
4464 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4465 if test $ac_prog = install &&
4466 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4467 # AIX install. It has an incompatible calling convention.
4469 elif test $ac_prog = install &&
4470 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4471 # program-specific install script used by HP pwplus--don't use.
4474 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4487 if test "${ac_cv_path_install+set}" = set; then
4488 INSTALL=$ac_cv_path_install
4490 # As a last resort, use the slow shell script. Don't cache a
4491 # value for INSTALL within a source directory, because that will
4492 # break other packages using the cache if that directory is
4493 # removed, or if the value is a relative name.
4494 INSTALL=$ac_install_sh
4497 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4498 echo "${ECHO_T}$INSTALL" >&6; }
4500 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4501 # It thinks the first close brace ends the variable substitution.
4502 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4504 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4506 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4508 if test -n "$ac_tool_prefix"; then
4509 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4510 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4513 if test "${ac_cv_prog_RANLIB+set}" = set; then
4514 echo $ECHO_N "(cached) $ECHO_C" >&6
4516 if test -n "$RANLIB"; then
4517 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523 test -z "$as_dir" && as_dir=.
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4526 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4536 RANLIB=$ac_cv_prog_RANLIB
4537 if test -n "$RANLIB"; then
4538 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4539 echo "${ECHO_T}$RANLIB" >&6; }
4541 { echo "$as_me:$LINENO: result: no" >&5
4542 echo "${ECHO_T}no" >&6; }
4547 if test -z "$ac_cv_prog_RANLIB"; then
4548 ac_ct_RANLIB=$RANLIB
4549 # Extract the first word of "ranlib", so it can be a program name with args.
4550 set dummy ranlib; ac_word=$2
4551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4553 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4554 echo $ECHO_N "(cached) $ECHO_C" >&6
4556 if test -n "$ac_ct_RANLIB"; then
4557 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 test -z "$as_dir" && as_dir=.
4564 for ac_exec_ext in '' $ac_executable_extensions; do
4565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4566 ac_cv_prog_ac_ct_RANLIB="ranlib"
4567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4576 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4577 if test -n "$ac_ct_RANLIB"; then
4578 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4579 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4581 { echo "$as_me:$LINENO: result: no" >&5
4582 echo "${ECHO_T}no" >&6; }
4585 if test "x$ac_ct_RANLIB" = x; then
4588 case $cross_compiling:$ac_tool_warned in
4590 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4591 whose name does not start with the host triplet. If you think this
4592 configuration is useful to you, please write to autoconf@gnu.org." >&5
4593 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4594 whose name does not start with the host triplet. If you think this
4595 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4596 ac_tool_warned=yes ;;
4598 RANLIB=$ac_ct_RANLIB
4601 RANLIB="$ac_cv_prog_RANLIB"
4604 # Extract the first word of "autoconf", so it can be a program name with args.
4605 set dummy autoconf; ac_word=$2
4606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4608 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
4611 if test -n "$AUTOCONF"; then
4612 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 test -z "$as_dir" && as_dir=.
4619 for ac_exec_ext in '' $ac_executable_extensions; do
4620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4621 ac_cv_prog_AUTOCONF="autoconf"
4622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4629 test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF=":"
4632 AUTOCONF=$ac_cv_prog_AUTOCONF
4633 if test -n "$AUTOCONF"; then
4634 { echo "$as_me:$LINENO: result: $AUTOCONF" >&5
4635 echo "${ECHO_T}$AUTOCONF" >&6; }
4637 { echo "$as_me:$LINENO: result: no" >&5
4638 echo "${ECHO_T}no" >&6; }
4642 # Extract the first word of "strip", so it can be a program name with args.
4643 set dummy strip; ac_word=$2
4644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4646 if test "${ac_cv_prog_STRIP+set}" = set; then
4647 echo $ECHO_N "(cached) $ECHO_C" >&6
4649 if test -n "$STRIP"; then
4650 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 test -z "$as_dir" && as_dir=.
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4659 ac_cv_prog_STRIP="strip"
4660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4667 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4670 STRIP=$ac_cv_prog_STRIP
4671 if test -n "$STRIP"; then
4672 { echo "$as_me:$LINENO: result: $STRIP" >&5
4673 echo "${ECHO_T}$STRIP" >&6; }
4675 { echo "$as_me:$LINENO: result: no" >&5
4676 echo "${ECHO_T}no" >&6; }
4680 # Extract the first word of "as", so it can be a program name with args.
4681 set dummy as; ac_word=$2
4682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4684 if test "${ac_cv_prog_AS+set}" = set; then
4685 echo $ECHO_N "(cached) $ECHO_C" >&6
4687 if test -n "$AS"; then
4688 ac_cv_prog_AS="$AS" # Let the user override the test.
4690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 test -z "$as_dir" && as_dir=.
4695 for ac_exec_ext in '' $ac_executable_extensions; do
4696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4705 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS=":"
4709 if test -n "$AS"; then
4710 { echo "$as_me:$LINENO: result: $AS" >&5
4711 echo "${ECHO_T}$AS" >&6; }
4713 { echo "$as_me:$LINENO: result: no" >&5
4714 echo "${ECHO_T}no" >&6; }
4718 # Extract the first word of "cp", so it can be a program name with args.
4719 set dummy cp; ac_word=$2
4720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4722 if test "${ac_cv_prog_CP+set}" = set; then
4723 echo $ECHO_N "(cached) $ECHO_C" >&6
4725 if test -n "$CP"; then
4726 ac_cv_prog_CP="$CP" # Let the user override the test.
4728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732 test -z "$as_dir" && as_dir=.
4733 for ac_exec_ext in '' $ac_executable_extensions; do
4734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4743 test -z "$ac_cv_prog_CP" && ac_cv_prog_CP=":"
4747 if test -n "$CP"; then
4748 { echo "$as_me:$LINENO: result: $CP" >&5
4749 echo "${ECHO_T}$CP" >&6; }
4751 { echo "$as_me:$LINENO: result: no" >&5
4752 echo "${ECHO_T}no" >&6; }
4758 ac_cpp='$CPP $CPPFLAGS'
4759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4765 # Checking for header files.
4766 # ===========================================================================
4769 for ac_header in sys/socket.h
4771 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4773 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4776 echo $ECHO_N "(cached) $ECHO_C" >&6
4778 ac_res=`eval echo '${'$as_ac_Header'}'`
4779 { echo "$as_me:$LINENO: result: $ac_res" >&5
4780 echo "${ECHO_T}$ac_res" >&6; }
4782 # Is the header compilable?
4783 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4784 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4785 cat >conftest.$ac_ext <<_ACEOF
4788 cat confdefs.h >>conftest.$ac_ext
4789 cat >>conftest.$ac_ext <<_ACEOF
4790 /* end confdefs.h. */
4791 $ac_includes_default
4792 #include <$ac_header>
4794 rm -f conftest.$ac_objext
4795 if { (ac_try="$ac_compile"
4797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4798 *) ac_try_echo=$ac_try;;
4800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4801 (eval "$ac_compile") 2>conftest.er1
4803 grep -v '^ *+' conftest.er1 >conftest.err
4805 cat conftest.err >&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); } && {
4808 test -z "$ac_c_werror_flag" ||
4809 test ! -s conftest.err
4810 } && test -s conftest.$ac_objext; then
4811 ac_header_compiler=yes
4813 echo "$as_me: failed program was:" >&5
4814 sed 's/^/| /' conftest.$ac_ext >&5
4816 ac_header_compiler=no
4819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4820 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4821 echo "${ECHO_T}$ac_header_compiler" >&6; }
4823 # Is the header present?
4824 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4825 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4826 cat >conftest.$ac_ext <<_ACEOF
4829 cat confdefs.h >>conftest.$ac_ext
4830 cat >>conftest.$ac_ext <<_ACEOF
4831 /* end confdefs.h. */
4832 #include <$ac_header>
4834 if { (ac_try="$ac_cpp conftest.$ac_ext"
4836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4837 *) ac_try_echo=$ac_try;;
4839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4842 grep -v '^ *+' conftest.er1 >conftest.err
4844 cat conftest.err >&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); } >/dev/null && {
4847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4848 test ! -s conftest.err
4850 ac_header_preproc=yes
4852 echo "$as_me: failed program was:" >&5
4853 sed 's/^/| /' conftest.$ac_ext >&5
4855 ac_header_preproc=no
4858 rm -f conftest.err conftest.$ac_ext
4859 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4860 echo "${ECHO_T}$ac_header_preproc" >&6; }
4862 # So? What about this header?
4863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4865 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4866 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4868 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4869 ac_header_preproc=yes
4872 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4873 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4874 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4875 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4876 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4877 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4878 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4879 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4882 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4883 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4887 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4890 echo $ECHO_N "(cached) $ECHO_C" >&6
4892 eval "$as_ac_Header=\$ac_header_preproc"
4894 ac_res=`eval echo '${'$as_ac_Header'}'`
4895 { echo "$as_me:$LINENO: result: $ac_res" >&5
4896 echo "${ECHO_T}$ac_res" >&6; }
4899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4900 cat >>confdefs.h <<_ACEOF
4901 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4903 socket_type=sys_socket_h
4908 if test $socket_type = unknown; then
4910 for ac_header in winsock2.h
4912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4914 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4917 echo $ECHO_N "(cached) $ECHO_C" >&6
4919 ac_res=`eval echo '${'$as_ac_Header'}'`
4920 { echo "$as_me:$LINENO: result: $ac_res" >&5
4921 echo "${ECHO_T}$ac_res" >&6; }
4923 # Is the header compilable?
4924 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4925 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4926 cat >conftest.$ac_ext <<_ACEOF
4929 cat confdefs.h >>conftest.$ac_ext
4930 cat >>conftest.$ac_ext <<_ACEOF
4931 /* end confdefs.h. */
4932 $ac_includes_default
4933 #include <$ac_header>
4935 rm -f conftest.$ac_objext
4936 if { (ac_try="$ac_compile"
4938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4939 *) ac_try_echo=$ac_try;;
4941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4942 (eval "$ac_compile") 2>conftest.er1
4944 grep -v '^ *+' conftest.er1 >conftest.err
4946 cat conftest.err >&5
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); } && {
4949 test -z "$ac_c_werror_flag" ||
4950 test ! -s conftest.err
4951 } && test -s conftest.$ac_objext; then
4952 ac_header_compiler=yes
4954 echo "$as_me: failed program was:" >&5
4955 sed 's/^/| /' conftest.$ac_ext >&5
4957 ac_header_compiler=no
4960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4961 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4962 echo "${ECHO_T}$ac_header_compiler" >&6; }
4964 # Is the header present?
4965 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4966 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4967 cat >conftest.$ac_ext <<_ACEOF
4970 cat confdefs.h >>conftest.$ac_ext
4971 cat >>conftest.$ac_ext <<_ACEOF
4972 /* end confdefs.h. */
4973 #include <$ac_header>
4975 if { (ac_try="$ac_cpp conftest.$ac_ext"
4977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4978 *) ac_try_echo=$ac_try;;
4980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4983 grep -v '^ *+' conftest.er1 >conftest.err
4985 cat conftest.err >&5
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); } >/dev/null && {
4988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4989 test ! -s conftest.err
4991 ac_header_preproc=yes
4993 echo "$as_me: failed program was:" >&5
4994 sed 's/^/| /' conftest.$ac_ext >&5
4996 ac_header_preproc=no
4999 rm -f conftest.err conftest.$ac_ext
5000 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5001 echo "${ECHO_T}$ac_header_preproc" >&6; }
5003 # So? What about this header?
5004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5006 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5007 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5009 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5010 ac_header_preproc=yes
5013 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5014 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5015 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5016 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5017 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5018 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5019 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5020 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5022 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5023 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5024 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5028 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5031 echo $ECHO_N "(cached) $ECHO_C" >&6
5033 eval "$as_ac_Header=\$ac_header_preproc"
5035 ac_res=`eval echo '${'$as_ac_Header'}'`
5036 { echo "$as_me:$LINENO: result: $ac_res" >&5
5037 echo "${ECHO_T}$ac_res" >&6; }
5040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5041 cat >>confdefs.h <<_ACEOF
5042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5044 socket_type=winsock2_h
5052 # Checking for functions/libs
5053 # ===========================================================================
5054 if test $socket_type = winsock2_h; then
5055 LIBS="-lws2_32 $LIBS"
5058 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5059 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
5060 if test "${ac_cv_lib_socket_socket+set}" = set; then
5061 echo $ECHO_N "(cached) $ECHO_C" >&6
5063 ac_check_lib_save_LIBS=$LIBS
5064 LIBS="-lsocket $LIBS"
5065 cat >conftest.$ac_ext <<_ACEOF
5068 cat confdefs.h >>conftest.$ac_ext
5069 cat >>conftest.$ac_ext <<_ACEOF
5070 /* end confdefs.h. */
5072 /* Override any GCC internal prototype to avoid an error.
5073 Use char because int might match the return type of a GCC
5074 builtin and then its argument prototype would still apply. */
5087 rm -f conftest.$ac_objext conftest$ac_exeext
5088 if { (ac_try="$ac_link"
5090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5091 *) ac_try_echo=$ac_try;;
5093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5094 (eval "$ac_link") 2>conftest.er1
5096 grep -v '^ *+' conftest.er1 >conftest.err
5098 cat conftest.err >&5
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); } && {
5101 test -z "$ac_c_werror_flag" ||
5102 test ! -s conftest.err
5103 } && test -s conftest$ac_exeext &&
5104 $as_test_x conftest$ac_exeext; then
5105 ac_cv_lib_socket_socket=yes
5107 echo "$as_me: failed program was:" >&5
5108 sed 's/^/| /' conftest.$ac_ext >&5
5110 ac_cv_lib_socket_socket=no
5113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5114 conftest$ac_exeext conftest.$ac_ext
5115 LIBS=$ac_check_lib_save_LIBS
5117 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5118 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
5119 if test $ac_cv_lib_socket_socket = yes; then
5120 cat >>confdefs.h <<_ACEOF
5121 #define HAVE_LIBSOCKET 1
5124 LIBS="-lsocket $LIBS"
5129 { echo "$as_me:$LINENO: checking for xdr_short in -lnsl" >&5
5130 echo $ECHO_N "checking for xdr_short in -lnsl... $ECHO_C" >&6; }
5131 if test "${ac_cv_lib_nsl_xdr_short+set}" = set; then
5132 echo $ECHO_N "(cached) $ECHO_C" >&6
5134 ac_check_lib_save_LIBS=$LIBS
5136 cat >conftest.$ac_ext <<_ACEOF
5139 cat confdefs.h >>conftest.$ac_ext
5140 cat >>conftest.$ac_ext <<_ACEOF
5141 /* end confdefs.h. */
5143 /* Override any GCC internal prototype to avoid an error.
5144 Use char because int might match the return type of a GCC
5145 builtin and then its argument prototype would still apply. */
5153 return xdr_short ();
5158 rm -f conftest.$ac_objext conftest$ac_exeext
5159 if { (ac_try="$ac_link"
5161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5162 *) ac_try_echo=$ac_try;;
5164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5165 (eval "$ac_link") 2>conftest.er1
5167 grep -v '^ *+' conftest.er1 >conftest.err
5169 cat conftest.err >&5
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); } && {
5172 test -z "$ac_c_werror_flag" ||
5173 test ! -s conftest.err
5174 } && test -s conftest$ac_exeext &&
5175 $as_test_x conftest$ac_exeext; then
5176 ac_cv_lib_nsl_xdr_short=yes
5178 echo "$as_me: failed program was:" >&5
5179 sed 's/^/| /' conftest.$ac_ext >&5
5181 ac_cv_lib_nsl_xdr_short=no
5184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5185 conftest$ac_exeext conftest.$ac_ext
5186 LIBS=$ac_check_lib_save_LIBS
5188 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_xdr_short" >&5
5189 echo "${ECHO_T}$ac_cv_lib_nsl_xdr_short" >&6; }
5190 if test $ac_cv_lib_nsl_xdr_short = yes; then
5191 cat >>confdefs.h <<_ACEOF
5192 #define HAVE_LIBNSL 1
5203 # ===========================================================================
5205 # adl_DD_COPT macro checks if the compiler specified as the 1st parameter
5206 # supports option specified as the 2nd parameter
5207 # For example: DD_CPORT(CXX, fPIC)
5211 # This macro expands DIR and assigns it to RET.
5212 # If DIR is NONE, then it's replaced by DEFAULT.
5214 # Based on AC_DEFINE_DIR
5218 # adl_EXPAND(prefix, "/usr/local", expanded_prefix)
5222 # adl_NORMALIZE_PATH
5224 # - empty paths are changed to '.'
5225 # - trailing slashes are removed
5226 # - repeated slashes are squeezed except a leading doubled slash '//'
5227 # (which might indicate a networked disk on some OS).
5230 # REFERENCE_STRING is used to turn '/' into '\' and vice-versa: if
5231 # REFERENCE_STRING contains some backslashes, all slashes and backslashes
5232 # are turned into backslashes, otherwise they are all turned into slashes.
5234 # This makes processing of DOS filenames quite easier, because you can turn a
5235 # filename to the Unix notation, make your processing, and turn it back to
5236 # original notation.
5244 # Checking characteristics of compilers and other programs
5245 # ===========================================================================
5246 { echo "$as_me:$LINENO: checking whether preprocessor accepts -MM or -M" >&5
5247 echo $ECHO_N "checking whether preprocessor accepts -MM or -M... $ECHO_C" >&6; }
5248 if test "${sdcc_cv_MM+set}" = set; then
5249 echo $ECHO_N "(cached) $ECHO_C" >&6
5251 echo "#include <stdio.h>" >_test_.c
5253 $CPP -v -MM _test_.c 1>&5 2>&5
5254 if test "$?" = "0"; then
5261 { echo "$as_me:$LINENO: result: $sdcc_cv_MM" >&5
5262 echo "${ECHO_T}$sdcc_cv_MM" >&6; }
5266 # This is the first time when CFLAGS are set/modified!!
5268 { echo "$as_me:$LINENO: checking whether $CC accepts -ggdb" >&5
5269 echo $ECHO_N "checking whether $CC accepts -ggdb... $ECHO_C" >&6; }
5270 if test "${sdcc_cv_CCggdb+set}" = set; then
5271 echo $ECHO_N "(cached) $ECHO_C" >&6
5277 $CC -v -ggdb -c _test_.c 1>&5 2>&5
5278 if test "$?" = "0"; then
5279 sdcc_cv_CCggdb="yes"
5283 rm -f _test_.* a.out
5285 { echo "$as_me:$LINENO: result: $sdcc_cv_CCggdb" >&5
5286 echo "${ECHO_T}$sdcc_cv_CCggdb" >&6; }
5288 if test "$sdcc_cv_CCggdb" = "yes"; then
5289 CFLAGS="-ggdb ${CFLAGS}"
5293 { echo "$as_me:$LINENO: checking whether $CC accepts -pipe" >&5
5294 echo $ECHO_N "checking whether $CC accepts -pipe... $ECHO_C" >&6; }
5295 if test "${sdcc_cv_CCpipe+set}" = set; then
5296 echo $ECHO_N "(cached) $ECHO_C" >&6
5302 $CC -v -pipe -c _test_.c 1>&5 2>&5
5303 if test "$?" = "0"; then
5304 sdcc_cv_CCpipe="yes"
5308 rm -f _test_.* a.out
5310 { echo "$as_me:$LINENO: result: $sdcc_cv_CCpipe" >&5
5311 echo "${ECHO_T}$sdcc_cv_CCpipe" >&6; }
5313 if test "$sdcc_cv_CCpipe" = "yes"; then
5314 CFLAGS="-pipe $CFLAGS"
5318 # Set standard installation paths
5319 # ===========================================================================
5321 # In the Makefiles we need paths with '/' as directory separator, even if
5322 # crosscompiling for Win32.
5323 # And we want to preserve the macros (e.g. ${prefix}) in the Makefiles.
5324 # The variables in the Makefiles are replaced by AC_SUBST()
5326 # In sdccconf.h the '/' in paths can be replaced by "\\" (normalized), if
5328 # The macros are expanded for the header.
5329 # The variables in the header are replaced by AC_*DEFINE*()
5330 # sdccconf_h_dir_separator contains a backslash.
5332 if test "x${sdccconf_h_dir_separator}" = "x"; then
5333 sdccconf_h_dir_separator="/"
5340 # *nix default: "sdcc/lib"
5342 if test "${lib_dir_suffix}" = ""; then
5343 lib_dir_suffix="sdcc/lib"
5352 cat >>confdefs.h <<_ACEOF
5353 #define DIR_SEPARATOR_STRING "${sdccconf_h_dir_separator}"
5358 # default: "${prefix}/share"
5360 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5361 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5363 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
5364 ac_expand=`eval echo $ac_expand`
5365 expanded_datadir=`eval echo $ac_expand`
5368 ac_ndu=$expanded_datadir
5371 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
5374 case $sdccconf_h_dir_separator in
5376 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
5377 s,^[\\/],\\\\\\\\,'` ;;
5379 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
5381 cat >>confdefs.h <<_ACEOF
5382 #define DATADIR "${ac_ndu}"
5388 norm_lib_dir_suffix=${lib_dir_suffix}
5389 case ":$norm_lib_dir_suffix:" in
5390 ::) norm_lib_dir_suffix='.' ;;
5391 :*[\\/]:) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,[\\/]*$,,'` ;;
5394 case $sdccconf_h_dir_separator in
5396 *\\*) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
5397 s,^[\\/],\\\\\\\\,'` ;;
5399 *) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
5401 cat >>confdefs.h <<_ACEOF
5402 #define LIB_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_lib_dir_suffix}"
5407 # Generating output files
5408 # ===========================================================================
5409 ac_config_files="$ac_config_files Makefile"
5411 cat >confcache <<\_ACEOF
5412 # This file is a shell script that caches the results of configure
5413 # tests run on this system so they can be shared between configure
5414 # scripts and configure runs, see configure's option --config-cache.
5415 # It is not useful on other systems. If it contains results you don't
5416 # want to keep, you may remove or edit it.
5418 # config.status only pays attention to the cache file if you give it
5419 # the --recheck option to rerun configure.
5421 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5422 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5427 # The following way of writing the cache mishandles newlines in values,
5428 # but we know of no workaround that is simple, portable, and efficient.
5429 # So, we kill variables containing newlines.
5430 # Ultrix sh set writes to stderr and can't be redirected directly,
5431 # and sets the high bit in the cache file unless we assign to the vars.
5433 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5434 eval ac_val=\$$ac_var
5438 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
5439 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
5442 _ | IFS | as_nl) ;; #(
5443 *) $as_unset $ac_var ;;
5449 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5450 *${as_nl}ac_space=\ *)
5451 # `set' does not quote correctly, so add quotes (double-quote
5452 # substitution turns \\\\ into \\, and sed turns \\ into \).
5455 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5458 # `set' quotes correctly as required by POSIX, so do not add quotes.
5459 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5468 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5470 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5472 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5473 if test -w "$cache_file"; then
5474 test "x$cache_file" != "x/dev/null" &&
5475 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
5476 echo "$as_me: updating cache $cache_file" >&6;}
5477 cat confcache >$cache_file
5479 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5480 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5485 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5486 # Let make expand exec_prefix.
5487 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5489 DEFS=-DHAVE_CONFIG_H
5493 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5494 # 1. Remove the extension, and $U if already installed.
5495 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5496 ac_i=`echo "$ac_i" | sed "$ac_script"`
5497 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5498 # will be set to the directory where LIBOBJS objects are built.
5499 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5500 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
5504 LTLIBOBJS=$ac_ltlibobjs
5508 : ${CONFIG_STATUS=./config.status}
5509 ac_clean_files_save=$ac_clean_files
5510 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5511 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5512 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5513 cat >$CONFIG_STATUS <<_ACEOF
5515 # Generated by $as_me.
5516 # Run this file to recreate the current configuration.
5517 # Compiler output produced by configure, useful for debugging
5518 # configure, is in config.log if it exists.
5523 SHELL=\${CONFIG_SHELL-$SHELL}
5526 cat >>$CONFIG_STATUS <<\_ACEOF
5527 ## --------------------- ##
5528 ## M4sh Initialization. ##
5529 ## --------------------- ##
5531 # Be more Bourne compatible
5532 DUALCASE=1; export DUALCASE # for MKS sh
5533 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5536 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5537 # is contrary to our usage. Disable this feature.
5538 alias -g '${1+"$@"}'='"$@"'
5539 setopt NO_GLOB_SUBST
5541 case `(set -o) 2>/dev/null` in
5542 *posix*) set -o posix ;;
5551 # Avoid depending upon Character Ranges.
5552 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5553 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5554 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5555 as_cr_digits='0123456789'
5556 as_cr_alnum=$as_cr_Letters$as_cr_digits
5558 # The user is always right.
5559 if test "${PATH_SEPARATOR+set}" != set; then
5560 echo "#! /bin/sh" >conf$$.sh
5561 echo "exit 0" >>conf$$.sh
5563 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5571 # Support unset when possible.
5572 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5580 # We need space, tab and new line, in precisely that order. Quoting is
5581 # there to prevent editors from complaining about space-tab.
5582 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5583 # splitting by setting IFS to empty value.)
5588 # Find who we are. Look in the path if we contain no directory separator.
5590 *[\\/]* ) as_myself=$0 ;;
5591 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5595 test -z "$as_dir" && as_dir=.
5596 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5602 # We did not find ourselves, most probably we were run as `sh COMMAND'
5603 # in which case we are not to be found in the path.
5604 if test "x$as_myself" = x; then
5607 if test ! -f "$as_myself"; then
5608 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5609 { (exit 1); exit 1; }
5612 # Work around bugs in pre-3.0 UWIN ksh.
5613 for as_var in ENV MAIL MAILPATH
5614 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5622 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5623 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5624 LC_TELEPHONE LC_TIME
5626 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5627 eval $as_var=C; export $as_var
5629 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5633 # Required to use basename.
5634 if expr a : '\(a\)' >/dev/null 2>&1 &&
5635 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5641 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5642 as_basename=basename
5648 # Name of the executable.
5649 as_me=`$as_basename -- "$0" ||
5650 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5651 X"$0" : 'X\(//\)$' \| \
5652 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5654 sed '/^.*\/\([^/][^/]*\)\/*$/{
5675 test "x$as_lineno_1" != "x$as_lineno_2" &&
5676 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
5678 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5679 # uniformly replaced by the line number. The first 'sed' inserts a
5680 # line-number line after each line using $LINENO; the second 'sed'
5681 # does the real work. The second script uses 'N' to pair each
5682 # line-number line with the line containing $LINENO, and appends
5683 # trailing '-' during substitution so that $LINENO is not a special
5685 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5686 # scripts with optimization help from Paolo Bonzini. Blame Lee
5687 # E. McMahon (1931-1989) for sed's syntax. :-)
5699 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5703 chmod +x "$as_me.lineno" ||
5704 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
5705 { (exit 1); exit 1; }; }
5707 # Don't try to exec as it changes $[0], causing all sort of problems
5708 # (the dirname of $[0] is not the place where we might find the
5709 # original and so on. Autoconf is especially sensitive to this).
5711 # Exit status is that of the last command.
5716 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5722 ECHO_C= ECHO_N= ECHO_T=
5725 case `echo 'x\c'` in
5726 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5733 if expr a : '\(a\)' >/dev/null 2>&1 &&
5734 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5740 rm -f conf$$ conf$$.exe conf$$.file
5741 if test -d conf$$.dir; then
5742 rm -f conf$$.dir/conf$$.file
5748 if ln -s conf$$.file conf$$ 2>/dev/null; then
5750 # ... but there are two gotchas:
5751 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5752 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5753 # In both cases, we have to default to `cp -p'.
5754 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5756 elif ln conf$$.file conf$$ 2>/dev/null; then
5761 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5762 rmdir conf$$.dir 2>/dev/null
5764 if mkdir -p . 2>/dev/null; then
5767 test -d ./-p && rmdir ./-p
5771 if test -x / >/dev/null 2>&1; then
5774 if ls -dL / >/dev/null 2>&1; then
5781 if test -d "$1"; then
5787 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
5788 ???[sx]*):;;*)false;;esac;fi
5792 as_executable_p=$as_test_x
5794 # Sed expression to map a string onto a valid CPP name.
5795 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5797 # Sed expression to map a string onto a valid variable name.
5798 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5803 # Save the log message, to keep $[0] and so on meaningful, and to
5804 # report actual input values of CONFIG_FILES etc. instead of their
5805 # values after options handling.
5807 This file was extended by $as_me, which was
5808 generated by GNU Autoconf 2.61. Invocation command line was
5810 CONFIG_FILES = $CONFIG_FILES
5811 CONFIG_HEADERS = $CONFIG_HEADERS
5812 CONFIG_LINKS = $CONFIG_LINKS
5813 CONFIG_COMMANDS = $CONFIG_COMMANDS
5816 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5821 cat >>$CONFIG_STATUS <<_ACEOF
5822 # Files that config.status was made for.
5823 config_files="$ac_config_files"
5824 config_headers="$ac_config_headers"
5828 cat >>$CONFIG_STATUS <<\_ACEOF
5830 \`$as_me' instantiates files from templates according to the
5831 current configuration.
5833 Usage: $0 [OPTIONS] [FILE]...
5835 -h, --help print this help, then exit
5836 -V, --version print version number and configuration settings, then exit
5837 -q, --quiet do not print progress messages
5838 -d, --debug don't remove temporary files
5839 --recheck update $as_me by reconfiguring in the same conditions
5840 --file=FILE[:TEMPLATE]
5841 instantiate the configuration file FILE
5842 --header=FILE[:TEMPLATE]
5843 instantiate the configuration header FILE
5845 Configuration files:
5848 Configuration headers:
5851 Report bugs to <bug-autoconf@gnu.org>."
5854 cat >>$CONFIG_STATUS <<_ACEOF
5857 configured by $0, generated by GNU Autoconf 2.61,
5858 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5860 Copyright (C) 2006 Free Software Foundation, Inc.
5861 This config.status script is free software; the Free Software Foundation
5862 gives unlimited permission to copy, distribute and modify it."
5869 cat >>$CONFIG_STATUS <<\_ACEOF
5870 # If no file are specified by the user, then we need to provide default
5871 # value. By we need to know if files were specified by the user.
5877 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5878 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5889 # Handling of the options.
5890 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5892 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5893 echo "$ac_cs_version"; exit ;;
5894 --debug | --debu | --deb | --de | --d | -d )
5896 --file | --fil | --fi | --f )
5898 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5899 ac_need_defaults=false;;
5900 --header | --heade | --head | --hea )
5902 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5903 ac_need_defaults=false;;
5905 # Conflict between --help and --header
5906 { echo "$as_me: error: ambiguous option: $1
5907 Try \`$0 --help' for more information." >&2
5908 { (exit 1); exit 1; }; };;
5909 --help | --hel | -h )
5910 echo "$ac_cs_usage"; exit ;;
5911 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5912 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5916 -*) { echo "$as_me: error: unrecognized option: $1
5917 Try \`$0 --help' for more information." >&2
5918 { (exit 1); exit 1; }; } ;;
5920 *) ac_config_targets="$ac_config_targets $1"
5921 ac_need_defaults=false ;;
5927 ac_configure_extra_args=
5929 if $ac_cs_silent; then
5931 ac_configure_extra_args="$ac_configure_extra_args --silent"
5935 cat >>$CONFIG_STATUS <<_ACEOF
5936 if \$ac_cs_recheck; then
5937 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5940 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5944 cat >>$CONFIG_STATUS <<\_ACEOF
5948 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5949 ## Running $as_me. ##
5955 cat >>$CONFIG_STATUS <<_ACEOF
5958 cat >>$CONFIG_STATUS <<\_ACEOF
5960 # Handling of arguments.
5961 for ac_config_target in $ac_config_targets
5963 case $ac_config_target in
5964 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5965 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5967 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5968 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5969 { (exit 1); exit 1; }; };;
5974 # If the user did not use the arguments to specify the items to instantiate,
5975 # then the envvar interface is used. Set only those that are not.
5976 # We use the long form for the default assignment because of an extremely
5977 # bizarre bug on SunOS 4.1.3.
5978 if $ac_need_defaults; then
5979 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5980 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5983 # Have a temporary directory for convenience. Make it in the build tree
5984 # simply because there is no reason against having it here, and in addition,
5985 # creating and moving files from /tmp can sometimes cause problems.
5986 # Hook for its removal unless debugging.
5987 # Note that there is a small window in which the directory will not be cleaned:
5988 # after its creation but before its name has been assigned to `$tmp'.
5992 trap 'exit_status=$?
5993 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5995 trap '{ (exit 1); exit 1; }' 1 2 13 15
5997 # Create a (secure) tmp directory for tmp files.
6000 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6001 test -n "$tmp" && test -d "$tmp"
6004 tmp=./conf$$-$RANDOM
6005 (umask 077 && mkdir "$tmp")
6008 echo "$me: cannot create a temporary directory in ." >&2
6009 { (exit 1); exit 1; }
6013 # Set up the sed scripts for CONFIG_FILES section.
6016 # No need to generate the scripts if there are no CONFIG_FILES.
6017 # This happens for instance when ./config.status config.h
6018 if test -n "$CONFIG_FILES"; then
6025 for ac_last_try in false false false false false :; do
6026 cat >conf$$subs.sed <<_ACEOF
6027 SHELL!$SHELL$ac_delim
6028 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
6029 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
6030 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
6031 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
6032 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
6033 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
6034 exec_prefix!$exec_prefix$ac_delim
6035 prefix!$prefix$ac_delim
6036 program_transform_name!$program_transform_name$ac_delim
6037 bindir!$bindir$ac_delim
6038 sbindir!$sbindir$ac_delim
6039 libexecdir!$libexecdir$ac_delim
6040 datarootdir!$datarootdir$ac_delim
6041 datadir!$datadir$ac_delim
6042 sysconfdir!$sysconfdir$ac_delim
6043 sharedstatedir!$sharedstatedir$ac_delim
6044 localstatedir!$localstatedir$ac_delim
6045 includedir!$includedir$ac_delim
6046 oldincludedir!$oldincludedir$ac_delim
6047 docdir!$docdir$ac_delim
6048 infodir!$infodir$ac_delim
6049 htmldir!$htmldir$ac_delim
6050 dvidir!$dvidir$ac_delim
6051 pdfdir!$pdfdir$ac_delim
6052 psdir!$psdir$ac_delim
6053 libdir!$libdir$ac_delim
6054 localedir!$localedir$ac_delim
6055 mandir!$mandir$ac_delim
6057 ECHO_C!$ECHO_C$ac_delim
6058 ECHO_N!$ECHO_N$ac_delim
6059 ECHO_T!$ECHO_T$ac_delim
6061 build_alias!$build_alias$ac_delim
6062 host_alias!$host_alias$ac_delim
6063 target_alias!$target_alias$ac_delim
6065 CFLAGS!$CFLAGS$ac_delim
6066 LDFLAGS!$LDFLAGS$ac_delim
6067 CPPFLAGS!$CPPFLAGS$ac_delim
6068 ac_ct_CC!$ac_ct_CC$ac_delim
6069 EXEEXT!$EXEEXT$ac_delim
6070 OBJEXT!$OBJEXT$ac_delim
6073 EGREP!$EGREP$ac_delim
6074 LIBREADLINE!$LIBREADLINE$ac_delim
6075 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
6076 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
6077 INSTALL_DATA!$INSTALL_DATA$ac_delim
6078 RANLIB!$RANLIB$ac_delim
6079 AUTOCONF!$AUTOCONF$ac_delim
6080 STRIP!$STRIP$ac_delim
6083 M_OR_MM!$M_OR_MM$ac_delim
6084 sdccconf_h_dir_separator!$sdccconf_h_dir_separator$ac_delim
6085 lib_dir_suffix!$lib_dir_suffix$ac_delim
6086 LIBOBJS!$LIBOBJS$ac_delim
6087 LTLIBOBJS!$LTLIBOBJS$ac_delim
6090 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 61; then
6092 elif $ac_last_try; then
6093 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6094 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6095 { (exit 1); exit 1; }; }
6097 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6101 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
6102 if test -n "$ac_eof"; then
6103 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
6104 ac_eof=`expr $ac_eof + 1`
6107 cat >>$CONFIG_STATUS <<_ACEOF
6108 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
6109 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
6112 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
6113 s/^/s,@/; s/!/@,|#_!!_#|/
6116 s/'"$ac_delim"'$/,g/; t
6118 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
6119 ' >>$CONFIG_STATUS <conf$$subs.sed
6120 rm -f conf$$subs.sed
6121 cat >>$CONFIG_STATUS <<_ACEOF
6128 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6129 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6130 # trailing colons and then remove the whole line if VPATH becomes empty
6131 # (actually we leave an empty line to preserve line numbers).
6132 if test "x$srcdir" = x.; then
6133 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6137 s/^\([^=]*=[ ]*\):*/\1/
6143 cat >>$CONFIG_STATUS <<\_ACEOF
6144 fi # test -n "$CONFIG_FILES"
6147 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
6150 :[FHLC]) ac_mode=$ac_tag; continue;;
6152 case $ac_mode$ac_tag in
6154 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
6155 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
6156 { (exit 1); exit 1; }; };;
6157 :[FH]-) ac_tag=-:-;;
6158 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6175 -) ac_f="$tmp/stdin";;
6176 *) # Look for the file first in the build tree, then in the source tree
6177 # (if the path is not absolute). The absolute path cannot be DOS-style,
6178 # because $ac_f cannot contain `:'.
6182 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6184 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6185 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6186 { (exit 1); exit 1; }; };;
6188 ac_file_inputs="$ac_file_inputs $ac_f"
6191 # Let's still pretend it is `configure' which instantiates (i.e., don't
6192 # use $as_me), people would be surprised to read:
6193 # /* config.h. Generated by config.status. */
6194 configure_input="Generated from "`IFS=:
6195 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
6196 if test x"$ac_file" != x-; then
6197 configure_input="$ac_file. $configure_input"
6198 { echo "$as_me:$LINENO: creating $ac_file" >&5
6199 echo "$as_me: creating $ac_file" >&6;}
6203 *:-:* | *:-) cat >"$tmp/stdin";;
6208 ac_dir=`$as_dirname -- "$ac_file" ||
6209 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6210 X"$ac_file" : 'X\(//\)[^/]' \| \
6211 X"$ac_file" : 'X\(//\)$' \| \
6212 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6233 -*) as_dir=./$as_dir;;
6235 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6239 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
6240 *) as_qdir=$as_dir;;
6242 as_dirs="'$as_qdir' $as_dirs"
6243 as_dir=`$as_dirname -- "$as_dir" ||
6244 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6245 X"$as_dir" : 'X\(//\)[^/]' \| \
6246 X"$as_dir" : 'X\(//\)$' \| \
6247 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6266 test -d "$as_dir" && break
6268 test -z "$as_dirs" || eval "mkdir $as_dirs"
6269 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6270 echo "$as_me: error: cannot create directory $as_dir" >&2;}
6271 { (exit 1); exit 1; }; }; }
6275 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6277 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6278 # A ".." for each directory in $ac_dir_suffix.
6279 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
6280 case $ac_top_builddir_sub in
6281 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6282 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6285 ac_abs_top_builddir=$ac_pwd
6286 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6287 # for backward compatibility:
6288 ac_top_builddir=$ac_top_build_prefix
6291 .) # We are building in place.
6293 ac_top_srcdir=$ac_top_builddir_sub
6294 ac_abs_top_srcdir=$ac_pwd ;;
6295 [\\/]* | ?:[\\/]* ) # Absolute name.
6296 ac_srcdir=$srcdir$ac_dir_suffix;
6297 ac_top_srcdir=$srcdir
6298 ac_abs_top_srcdir=$srcdir ;;
6300 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6301 ac_top_srcdir=$ac_top_build_prefix$srcdir
6302 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6304 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6314 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6315 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6319 cat >>$CONFIG_STATUS <<\_ACEOF
6320 # If the template does not know about datarootdir, expand it.
6321 # FIXME: This hack should be removed a few years after 2.60.
6322 ac_datarootdir_hack=; ac_datarootdir_seen=
6324 case `sed -n '/datarootdir/ {
6333 ' $ac_file_inputs` in
6334 *datarootdir*) ac_datarootdir_seen=yes;;
6335 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6336 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6337 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6339 cat >>$CONFIG_STATUS <<_ACEOF
6340 ac_datarootdir_hack='
6341 s&@datadir@&$datadir&g
6342 s&@docdir@&$docdir&g
6343 s&@infodir@&$infodir&g
6344 s&@localedir@&$localedir&g
6345 s&@mandir@&$mandir&g
6346 s&\\\${datarootdir}&$datarootdir&g' ;;
6350 # Neutralize VPATH when `$srcdir' = `.'.
6351 # Shell code in configure.ac might set extrasub.
6352 # FIXME: do we really want to maintain this feature?
6353 cat >>$CONFIG_STATUS <<_ACEOF
6357 cat >>$CONFIG_STATUS <<\_ACEOF
6359 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6360 s&@configure_input@&$configure_input&;t t
6361 s&@top_builddir@&$ac_top_builddir_sub&;t t
6362 s&@srcdir@&$ac_srcdir&;t t
6363 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6364 s&@top_srcdir@&$ac_top_srcdir&;t t
6365 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6366 s&@builddir@&$ac_builddir&;t t
6367 s&@abs_builddir@&$ac_abs_builddir&;t t
6368 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6369 s&@INSTALL@&$ac_INSTALL&;t t
6370 $ac_datarootdir_hack
6371 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
6373 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6374 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6375 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6376 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6377 which seems to be undefined. Please make sure it is defined." >&5
6378 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6379 which seems to be undefined. Please make sure it is defined." >&2;}
6383 -) cat "$tmp/out"; rm -f "$tmp/out";;
6384 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
6393 # Transform confdefs.h into a sed script `conftest.defines', that
6394 # substitutes the proper values into config.h.in to produce config.h.
6395 rm -f conftest.defines conftest.tail
6396 # First, append a space to every undef/define line, to ease matching.
6397 echo 's/$/ /' >conftest.defines
6398 # Then, protect against being on the right side of a sed subst, or in
6399 # an unquoted here document, in config.status. If some macros were
6400 # called several times there might be several #defines for the same
6401 # symbol, which is useless. But do not sort them, since the last
6402 # AC_DEFINE must be honored.
6403 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6404 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
6405 # NAME is the cpp macro being defined, VALUE is the value it is being given.
6406 # PARAMS is the parameter list in the macro definition--in most cases, it's
6407 # just an empty string.
6408 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
6409 ac_dB='\\)[ (].*,\\1define\\2'
6417 s/^[ ]*#[ ]*define[ ][ ]*//
6422 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
6423 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
6424 ' >>conftest.defines
6426 # Remove the space that was appended to ease matching.
6427 # Then replace #undef with comments. This is necessary, for
6428 # example, in the case of _POSIX_SOURCE, which is predefined and required
6429 # on some systems where configure will not decide to define it.
6430 # (The regexp can be short, since the line contains either #define or #undef.)
6432 s,^[ #]*u.*,/* & */,' >>conftest.defines
6434 # Break up conftest.defines:
6437 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
6438 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
6439 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
6441 ac_in='$ac_file_inputs'
6442 ac_out='"$tmp/out1"'
6443 ac_nxt='"$tmp/out2"'
6447 # Write a here document:
6448 cat >>$CONFIG_STATUS <<_ACEOF
6449 # First, check the format of the line:
6450 cat >"\$tmp/defines.sed" <<\\CEOF
6451 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
6452 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
6456 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
6458 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
6459 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
6460 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
6461 grep . conftest.tail >/dev/null || break
6462 rm -f conftest.defines
6463 mv conftest.tail conftest.defines
6465 rm -f conftest.defines conftest.tail
6467 echo "ac_result=$ac_in" >>$CONFIG_STATUS
6468 cat >>$CONFIG_STATUS <<\_ACEOF
6469 if test x"$ac_file" != x-; then
6470 echo "/* $configure_input */" >"$tmp/config.h"
6471 cat "$ac_result" >>"$tmp/config.h"
6472 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
6473 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6474 echo "$as_me: $ac_file is unchanged" >&6;}
6477 mv "$tmp/config.h" $ac_file
6480 echo "/* $configure_input */"
6492 { (exit 0); exit 0; }
6494 chmod +x $CONFIG_STATUS
6495 ac_clean_files=$ac_clean_files_save
6498 # configure is writing to config.log, and then calls config.status.
6499 # config.status does its own redirection, appending to config.log.
6500 # Unfortunately, on DOS this fails, as config.log is still kept open
6501 # by configure, so config.status won't be able to write to it; its
6502 # output is simply discarded. So we exec the FD to /dev/null,
6503 # effectively closing config.log, so it can be properly (re)opened and
6504 # appended to by config.status. When coming back to configure, we
6505 # need to make the FD available again.
6506 if test "$no_create" != yes; then
6508 ac_config_status_args=
6509 test "$silent" = yes &&
6510 ac_config_status_args="$ac_config_status_args --quiet"
6512 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6514 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6515 # would make configure fail if this is the last instruction.
6516 $ac_cs_success || { (exit 1); exit 1; }
6520 # End of configure/configure.in