2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60.
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 Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
22 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
24 BIN_SH=xpg4; export BIN_SH # for Tru64
25 DUALCASE=1; export DUALCASE # for MKS sh
29 # Avoid depending upon Character Ranges.
30 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits='0123456789'
34 as_cr_alnum=$as_cr_Letters$as_cr_digits
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38 echo "#! /bin/sh" >conf$$.sh
39 echo "exit 0" >>conf$$.sh
41 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 # Support unset when possible.
50 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 # We need space, tab and new line, in precisely that order. Quoting is
59 # there to prevent editors from complaining about space-tab.
60 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
61 # splitting by setting IFS to empty value.)
66 # Find who we are. Look in the path if we contain no directory separator.
68 *[\\/]* ) as_myself=$0 ;;
69 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73 test -z "$as_dir" && as_dir=.
74 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80 # We did not find ourselves, most probably we were run as `sh COMMAND'
81 # in which case we are not to be found in the path.
82 if test "x$as_myself" = x; then
85 if test ! -f "$as_myself"; then
86 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
90 # Work around bugs in pre-3.0 UWIN ksh.
91 for as_var in ENV MAIL MAILPATH
92 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105 eval $as_var=C; export $as_var
107 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
111 # Required to use basename.
112 if expr a : '\(a\)' >/dev/null 2>&1 &&
113 test "X`expr 00001 : '.*\(...\)'`" = X001; then
119 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 # Name of the executable.
127 as_me=`$as_basename -- "$0" ||
128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129 X"$0" : 'X\(//\)$' \| \
130 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
132 sed '/^.*\/\([^/][^/]*\)\/*$/{
150 if test "x$CONFIG_SHELL" = x; then
151 if (eval ":") 2>/dev/null; then
157 if test $as_have_required = yes && (eval ":
167 as_func_ret_success () {
170 as_func_ret_failure () {
175 if as_func_success; then
179 echo as_func_success failed.
182 if as_func_failure; then
184 echo as_func_failure succeeded.
187 if as_func_ret_success; then
191 echo as_func_ret_success failed.
194 if as_func_ret_failure; then
196 echo as_func_ret_failure succeeded.
199 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203 echo positional parameters were not saved.
206 test \$exitcode = 0) || { (exit 1); exit 1; }
211 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213 ") 2> /dev/null; then
217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
224 for as_base in sh bash ksh sh5; do
225 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 for as_shell in $as_candidate_shells $SHELL; do
233 # Try only shells that exist, to save several forks.
234 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235 { ("$as_shell") 2> /dev/null <<\_ASEOF
236 # Be Bourne compatible
237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241 # is contrary to our usage. Disable this feature.
242 alias -g '${1+"$@"}'='"$@"'
245 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
247 BIN_SH=xpg4; export BIN_SH # for Tru64
248 DUALCASE=1; export DUALCASE # for MKS sh
253 CONFIG_SHELL=$as_shell
255 if { "$as_shell" 2> /dev/null <<\_ASEOF
256 # Be Bourne compatible
257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261 # is contrary to our usage. Disable this feature.
262 alias -g '${1+"$@"}'='"$@"'
265 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
267 BIN_SH=xpg4; export BIN_SH # for Tru64
268 DUALCASE=1; export DUALCASE # for MKS sh
280 as_func_ret_success () {
283 as_func_ret_failure () {
288 if as_func_success; then
292 echo as_func_success failed.
295 if as_func_failure; then
297 echo as_func_failure succeeded.
300 if as_func_ret_success; then
304 echo as_func_ret_success failed.
307 if as_func_ret_failure; then
309 echo as_func_ret_failure succeeded.
312 if ( set x; as_func_ret_success y && test x = "$1" ); then
316 echo positional parameters were not saved.
319 test $exitcode = 0) || { (exit 1); exit 1; }
324 test "x$as_lineno_1" != "x$as_lineno_2" &&
325 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336 if test "x$CONFIG_SHELL" != x; then
337 for as_var in BASH_ENV ENV
338 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
345 if test $as_have_required = no; then
346 echo This script requires a shell more modern than all the
347 echo shells that I found on your system. Please install a
348 echo modern shell, or manually run the script under such a
349 echo shell if you do have one.
350 { (exit 1); exit 1; }
360 (eval "as_func_return () {
369 as_func_ret_success () {
372 as_func_ret_failure () {
377 if as_func_success; then
381 echo as_func_success failed.
384 if as_func_failure; then
386 echo as_func_failure succeeded.
389 if as_func_ret_success; then
393 echo as_func_ret_success failed.
396 if as_func_ret_failure; then
398 echo as_func_ret_failure succeeded.
401 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
405 echo positional parameters were not saved.
408 test \$exitcode = 0") || {
409 echo No shell found that supports shell functions.
410 echo Please tell autoconf@gnu.org about your system,
411 echo including any error possibly output before this
419 test "x$as_lineno_1" != "x$as_lineno_2" &&
420 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
422 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423 # uniformly replaced by the line number. The first 'sed' inserts a
424 # line-number line after each line using $LINENO; the second 'sed'
425 # does the real work. The second script uses 'N' to pair each
426 # line-number line with the line containing $LINENO, and appends
427 # trailing '-' during substitution so that $LINENO is not a special
429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430 # scripts with optimization help from Paolo Bonzini. Blame Lee
431 # E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x "$as_me.lineno" ||
448 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449 { (exit 1); exit 1; }; }
451 # Don't try to exec as it changes $[0], causing all sort of problems
452 # (the dirname of $[0] is not the place where we might find the
453 # original and so on. Autoconf is especially sensitive to this).
455 # Exit status is that of the last command.
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
466 ECHO_C= ECHO_N= ECHO_T=
470 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 if expr a : '\(a\)' >/dev/null 2>&1 &&
478 test "X`expr 00001 : '.*\(...\)'`" = X001; then
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
511 test -d ./-p && rmdir ./-p
515 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
516 # systems may use methods other than mode bits to determine executability.
517 cat >conf$$.file <<_ASEOF
522 if test -x conf$$.file >/dev/null 2>&1; then
523 as_executable_p="test -x"
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 exec 7<&0 </dev/null 6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix=/usr/local
549 ac_config_libobj_dir=.
555 SHELL=${CONFIG_SHELL-/bin/sh}
557 # Identity of this package.
564 ac_unique_file="Makefile.in"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
569 # include <sys/types.h>
572 # include <sys/stat.h>
583 # if !STDC_HEADERS && HAVE_MEMORY_H
589 # include <strings.h>
592 # include <inttypes.h>
610 program_transform_name
658 sdccconf_h_dir_separator
663 ac_precious_vars='build_alias
671 sdccconf_h_dir_separator
675 # Initialize some variables set by options.
677 ac_init_version=false
678 # The variables have the same names as the options, with
679 # dashes changed to underlines.
687 program_transform_name=s,x,x,
695 # Installation directory options.
696 # These are left unexpanded so users can "make install exec_prefix=/foo"
697 # and all the variables that are supposed to be based on exec_prefix
698 # by default will actually change.
699 # Use braces instead of parens because sh, perl, etc. also accept them.
700 # (The list follows the same order as the GNU Coding Standards.)
701 bindir='${exec_prefix}/bin'
702 sbindir='${exec_prefix}/sbin'
703 libexecdir='${exec_prefix}/libexec'
704 datarootdir='${prefix}/share'
705 datadir='${datarootdir}'
706 sysconfdir='${prefix}/etc'
707 sharedstatedir='${prefix}/com'
708 localstatedir='${prefix}/var'
709 includedir='${prefix}/include'
710 oldincludedir='/usr/include'
711 docdir='${datarootdir}/doc/${PACKAGE}'
712 infodir='${datarootdir}/info'
717 libdir='${exec_prefix}/lib'
718 localedir='${datarootdir}/locale'
719 mandir='${datarootdir}/man'
725 # If the previous option needs an argument, assign it.
726 if test -n "$ac_prev"; then
727 eval $ac_prev=\$ac_option
733 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
737 # Accept the important Cygnus configure options, so we can diagnose typos.
739 case $ac_dashdash$ac_option in
743 -bindir | --bindir | --bindi | --bind | --bin | --bi)
745 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
748 -build | --build | --buil | --bui | --bu)
749 ac_prev=build_alias ;;
750 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
751 build_alias=$ac_optarg ;;
753 -cache-file | --cache-file | --cache-fil | --cache-fi \
754 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
755 ac_prev=cache_file ;;
756 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
757 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
758 cache_file=$ac_optarg ;;
761 cache_file=config.cache ;;
763 -datadir | --datadir | --datadi | --datad)
765 -datadir=* | --datadir=* | --datadi=* | --datad=*)
766 datadir=$ac_optarg ;;
768 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
769 | --dataroo | --dataro | --datar)
770 ac_prev=datarootdir ;;
771 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
772 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
773 datarootdir=$ac_optarg ;;
775 -disable-* | --disable-*)
776 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
777 # Reject names that are not valid shell variable names.
778 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
779 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
780 { (exit 1); exit 1; }; }
781 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
782 eval enable_$ac_feature=no ;;
784 -docdir | --docdir | --docdi | --doc | --do)
786 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
789 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
791 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
794 -enable-* | --enable-*)
795 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
796 # Reject names that are not valid shell variable names.
797 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
798 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
799 { (exit 1); exit 1; }; }
800 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
801 eval enable_$ac_feature=\$ac_optarg ;;
803 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
804 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
805 | --exec | --exe | --ex)
806 ac_prev=exec_prefix ;;
807 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
808 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
809 | --exec=* | --exe=* | --ex=*)
810 exec_prefix=$ac_optarg ;;
812 -gas | --gas | --ga | --g)
813 # Obsolete; use --with-gas.
816 -help | --help | --hel | --he | -h)
818 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
819 ac_init_help=recursive ;;
820 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
821 ac_init_help=short ;;
823 -host | --host | --hos | --ho)
824 ac_prev=host_alias ;;
825 -host=* | --host=* | --hos=* | --ho=*)
826 host_alias=$ac_optarg ;;
828 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
830 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
832 htmldir=$ac_optarg ;;
834 -includedir | --includedir | --includedi | --included | --include \
835 | --includ | --inclu | --incl | --inc)
836 ac_prev=includedir ;;
837 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
838 | --includ=* | --inclu=* | --incl=* | --inc=*)
839 includedir=$ac_optarg ;;
841 -infodir | --infodir | --infodi | --infod | --info | --inf)
843 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
844 infodir=$ac_optarg ;;
846 -libdir | --libdir | --libdi | --libd)
848 -libdir=* | --libdir=* | --libdi=* | --libd=*)
851 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
852 | --libexe | --libex | --libe)
853 ac_prev=libexecdir ;;
854 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
855 | --libexe=* | --libex=* | --libe=*)
856 libexecdir=$ac_optarg ;;
858 -localedir | --localedir | --localedi | --localed | --locale)
860 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
861 localedir=$ac_optarg ;;
863 -localstatedir | --localstatedir | --localstatedi | --localstated \
864 | --localstate | --localstat | --localsta | --localst | --locals)
865 ac_prev=localstatedir ;;
866 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
867 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
868 localstatedir=$ac_optarg ;;
870 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
872 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
876 # Obsolete; use --without-fp.
879 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
880 | --no-cr | --no-c | -n)
883 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
884 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
887 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
888 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
889 | --oldin | --oldi | --old | --ol | --o)
890 ac_prev=oldincludedir ;;
891 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
892 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
893 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
894 oldincludedir=$ac_optarg ;;
896 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
898 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
901 -program-prefix | --program-prefix | --program-prefi | --program-pref \
902 | --program-pre | --program-pr | --program-p)
903 ac_prev=program_prefix ;;
904 -program-prefix=* | --program-prefix=* | --program-prefi=* \
905 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
906 program_prefix=$ac_optarg ;;
908 -program-suffix | --program-suffix | --program-suffi | --program-suff \
909 | --program-suf | --program-su | --program-s)
910 ac_prev=program_suffix ;;
911 -program-suffix=* | --program-suffix=* | --program-suffi=* \
912 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
913 program_suffix=$ac_optarg ;;
915 -program-transform-name | --program-transform-name \
916 | --program-transform-nam | --program-transform-na \
917 | --program-transform-n | --program-transform- \
918 | --program-transform | --program-transfor \
919 | --program-transfo | --program-transf \
920 | --program-trans | --program-tran \
921 | --progr-tra | --program-tr | --program-t)
922 ac_prev=program_transform_name ;;
923 -program-transform-name=* | --program-transform-name=* \
924 | --program-transform-nam=* | --program-transform-na=* \
925 | --program-transform-n=* | --program-transform-=* \
926 | --program-transform=* | --program-transfor=* \
927 | --program-transfo=* | --program-transf=* \
928 | --program-trans=* | --program-tran=* \
929 | --progr-tra=* | --program-tr=* | --program-t=*)
930 program_transform_name=$ac_optarg ;;
932 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
934 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
937 -psdir | --psdir | --psdi | --psd | --ps)
939 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
942 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
943 | -silent | --silent | --silen | --sile | --sil)
946 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
948 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
950 sbindir=$ac_optarg ;;
952 -sharedstatedir | --sharedstatedir | --sharedstatedi \
953 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
954 | --sharedst | --shareds | --shared | --share | --shar \
956 ac_prev=sharedstatedir ;;
957 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
958 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
959 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
961 sharedstatedir=$ac_optarg ;;
963 -site | --site | --sit)
965 -site=* | --site=* | --sit=*)
968 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
970 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
973 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
974 | --syscon | --sysco | --sysc | --sys | --sy)
975 ac_prev=sysconfdir ;;
976 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
977 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
978 sysconfdir=$ac_optarg ;;
980 -target | --target | --targe | --targ | --tar | --ta | --t)
981 ac_prev=target_alias ;;
982 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
983 target_alias=$ac_optarg ;;
985 -v | -verbose | --verbose | --verbos | --verbo | --verb)
988 -version | --version | --versio | --versi | --vers | -V)
992 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
995 { echo "$as_me: error: invalid package name: $ac_package" >&2
996 { (exit 1); exit 1; }; }
997 ac_package=`echo $ac_package| sed 's/-/_/g'`
998 eval with_$ac_package=\$ac_optarg ;;
1000 -without-* | --without-*)
1001 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1002 # Reject names that are not valid shell variable names.
1003 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1004 { echo "$as_me: error: invalid package name: $ac_package" >&2
1005 { (exit 1); exit 1; }; }
1006 ac_package=`echo $ac_package | sed 's/-/_/g'`
1007 eval with_$ac_package=no ;;
1010 # Obsolete; use --with-x.
1013 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1014 | --x-incl | --x-inc | --x-in | --x-i)
1015 ac_prev=x_includes ;;
1016 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1017 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1018 x_includes=$ac_optarg ;;
1020 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1021 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1022 ac_prev=x_libraries ;;
1023 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1024 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1025 x_libraries=$ac_optarg ;;
1027 -*) { echo "$as_me: error: unrecognized option: $ac_option
1028 Try \`$0 --help' for more information." >&2
1029 { (exit 1); exit 1; }; }
1033 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1034 # Reject names that are not valid shell variable names.
1035 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1036 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1037 { (exit 1); exit 1; }; }
1038 eval $ac_envvar=\$ac_optarg
1039 export $ac_envvar ;;
1042 # FIXME: should be removed in autoconf 3.0.
1043 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1044 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1045 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1046 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1052 if test -n "$ac_prev"; then
1053 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1054 { echo "$as_me: error: missing argument to $ac_option" >&2
1055 { (exit 1); exit 1; }; }
1058 # Be sure to have absolute directory names.
1059 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1060 datadir sysconfdir sharedstatedir localstatedir includedir \
1061 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1062 libdir localedir mandir
1064 eval ac_val=\$$ac_var
1066 [\\/$]* | ?:[\\/]* ) continue;;
1067 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1069 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1070 { (exit 1); exit 1; }; }
1073 # There might be people who depend on the old broken behavior: `$host'
1074 # used to hold the argument of --host etc.
1075 # FIXME: To remove some day.
1078 target=$target_alias
1080 # FIXME: To remove some day.
1081 if test "x$host_alias" != x; then
1082 if test "x$build_alias" = x; then
1083 cross_compiling=maybe
1084 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1085 If a cross compiler is detected then cross compile mode will be used." >&2
1086 elif test "x$build_alias" != "x$host_alias"; then
1092 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1094 test "$silent" = yes && exec 6>/dev/null
1097 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1098 ac_ls_di=`ls -di .` &&
1099 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1100 { echo "$as_me: error: Working directory cannot be determined" >&2
1101 { (exit 1); exit 1; }; }
1102 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1103 { echo "$as_me: error: pwd does not report name of working directory" >&2
1104 { (exit 1); exit 1; }; }
1107 # Find the source files, if location was not specified.
1108 if test -z "$srcdir"; then
1109 ac_srcdir_defaulted=yes
1110 # Try the directory containing this script, then the parent directory.
1111 ac_confdir=`$as_dirname -- "$0" ||
1112 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1113 X"$0" : 'X\(//\)[^/]' \| \
1114 X"$0" : 'X\(//\)$' \| \
1115 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1135 if test ! -r "$srcdir/$ac_unique_file"; then
1139 ac_srcdir_defaulted=no
1141 if test ! -r "$srcdir/$ac_unique_file"; then
1142 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1143 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1144 { (exit 1); exit 1; }; }
1146 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1148 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1149 { (exit 1); exit 1; }; }
1151 # When building in place, set srcdir=.
1152 if test "$ac_abs_confdir" = "$ac_pwd"; then
1155 # Remove unnecessary trailing slashes from srcdir.
1156 # Double slashes in file names in object file debugging info
1157 # mess up M-x gdb in Emacs.
1159 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1161 for ac_var in $ac_precious_vars; do
1162 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1163 eval ac_env_${ac_var}_value=\$${ac_var}
1164 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1165 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1169 # Report the --help message.
1171 if test "$ac_init_help" = "long"; then
1172 # Omit some internal or obsolete options to make the list less imposing.
1173 # This message is too long to be a string in the A/UX 3.1 sh.
1175 \`configure' configures this package to adapt to many kinds of systems.
1177 Usage: $0 [OPTION]... [VAR=VALUE]...
1179 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1180 VAR=VALUE. See below for descriptions of some of the useful variables.
1182 Defaults for the options are specified in brackets.
1185 -h, --help display this help and exit
1186 --help=short display options specific to this package
1187 --help=recursive display the short help of all the included packages
1188 -V, --version display version information and exit
1189 -q, --quiet, --silent do not print \`checking...' messages
1190 --cache-file=FILE cache test results in FILE [disabled]
1191 -C, --config-cache alias for \`--cache-file=config.cache'
1192 -n, --no-create do not create output files
1193 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1195 Installation directories:
1196 --prefix=PREFIX install architecture-independent files in PREFIX
1197 [$ac_default_prefix]
1198 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1201 By default, \`make install' will install all the files in
1202 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1203 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1204 for instance \`--prefix=\$HOME'.
1206 For better control, use the options below.
1208 Fine tuning of the installation directories:
1209 --bindir=DIR user executables [EPREFIX/bin]
1210 --sbindir=DIR system admin executables [EPREFIX/sbin]
1211 --libexecdir=DIR program executables [EPREFIX/libexec]
1212 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1213 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1214 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1215 --libdir=DIR object code libraries [EPREFIX/lib]
1216 --includedir=DIR C header files [PREFIX/include]
1217 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1218 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1219 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1220 --infodir=DIR info documentation [DATAROOTDIR/info]
1221 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1222 --mandir=DIR man documentation [DATAROOTDIR/man]
1223 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1224 --htmldir=DIR html documentation [DOCDIR]
1225 --dvidir=DIR dvi documentation [DOCDIR]
1226 --pdfdir=DIR pdf documentation [DOCDIR]
1227 --psdir=DIR ps documentation [DOCDIR]
1234 if test -n "$ac_init_help"; then
1238 Some influential environment variables:
1239 CC C compiler command
1240 CFLAGS C compiler flags
1241 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1242 nonstandard directory <lib dir>
1243 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1244 you have headers in a nonstandard directory <include dir>
1246 sdccconf_h_dir_separator
1247 needed in sdccconf.h: either "/" (default) or "\\"
1249 appended to datadir to define SDCC's library root directory
1251 Use these variables to override the choices made by `configure' or to help
1252 it to find libraries and programs with nonstandard names/locations.
1258 if test "$ac_init_help" = "recursive"; then
1259 # If there are subdirs, report their specific --help.
1260 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1261 test -d "$ac_dir" || continue
1265 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1267 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1268 # A ".." for each directory in $ac_dir_suffix.
1269 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1270 case $ac_top_builddir_sub in
1271 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1272 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1275 ac_abs_top_builddir=$ac_pwd
1276 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1277 # for backward compatibility:
1278 ac_top_builddir=$ac_top_build_prefix
1281 .) # We are building in place.
1283 ac_top_srcdir=$ac_top_builddir_sub
1284 ac_abs_top_srcdir=$ac_pwd ;;
1285 [\\/]* | ?:[\\/]* ) # Absolute name.
1286 ac_srcdir=$srcdir$ac_dir_suffix;
1287 ac_top_srcdir=$srcdir
1288 ac_abs_top_srcdir=$srcdir ;;
1290 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1291 ac_top_srcdir=$ac_top_build_prefix$srcdir
1292 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1294 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1296 cd "$ac_dir" || { ac_status=$?; continue; }
1297 # Check for guested configure.
1298 if test -f "$ac_srcdir/configure.gnu"; then
1300 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1301 elif test -f "$ac_srcdir/configure"; then
1303 $SHELL "$ac_srcdir/configure" --help=recursive
1305 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1307 cd "$ac_pwd" || { ac_status=$?; break; }
1311 test -n "$ac_init_help" && exit $ac_status
1312 if $ac_init_version; then
1315 generated by GNU Autoconf 2.60
1317 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1318 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1319 This configure script is free software; the Free Software Foundation
1320 gives unlimited permission to copy, distribute and modify it.
1324 cat >config.log <<_ACEOF
1325 This file contains any messages produced by compilers while
1326 running configure, to aid debugging if configure makes a mistake.
1328 It was created by $as_me, which was
1329 generated by GNU Autoconf 2.60. Invocation command line was
1341 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1342 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1343 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1344 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1345 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1347 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1348 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1350 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1351 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1352 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1353 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1354 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1355 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1356 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1364 test -z "$as_dir" && as_dir=.
1365 echo "PATH: $as_dir"
1381 # Keep a trace of the command line.
1382 # Strip out --no-create and --no-recursion so they do not pile up.
1383 # Strip out --silent because we don't want to record it for future runs.
1384 # Also quote any args containing shell meta-characters.
1385 # Make two passes to allow for proper duplicate-argument suppression.
1389 ac_must_keep_next=false
1395 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1396 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1397 | -silent | --silent | --silen | --sile | --sil)
1400 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1403 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1405 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1406 if test $ac_must_keep_next = true; then
1407 ac_must_keep_next=false # Got value, back to normal.
1410 *=* | --config-cache | -C | -disable-* | --disable-* \
1411 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1412 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1413 | -with-* | --with-* | -without-* | --without-* | --x)
1414 case "$ac_configure_args0 " in
1415 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1418 -* ) ac_must_keep_next=true ;;
1421 ac_configure_args="$ac_configure_args '$ac_arg'"
1426 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1427 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1429 # When interrupted or exit'd, cleanup temporary files, and complete
1430 # config.log. We remove comments because anyway the quotes in there
1431 # would cause problems or look ugly.
1432 # WARNING: Use '\'' to represent an apostrophe within the trap.
1433 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1434 trap 'exit_status=$?
1435 # Save into config.log some information that might help in debugging.
1440 ## ---------------- ##
1441 ## Cache variables. ##
1442 ## ---------------- ##
1445 # The following way of writing the cache mishandles newlines in values,
1447 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1448 eval ac_val=\$$ac_var
1452 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1453 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1456 _ | IFS | as_nl) ;; #(
1457 *) $as_unset $ac_var ;;
1462 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1463 *${as_nl}ac_space=\ *)
1465 "s/'\''/'\''\\\\'\'''\''/g;
1466 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1469 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1477 ## ----------------- ##
1478 ## Output variables. ##
1479 ## ----------------- ##
1482 for ac_var in $ac_subst_vars
1484 eval ac_val=\$$ac_var
1486 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1488 echo "$ac_var='\''$ac_val'\''"
1492 if test -n "$ac_subst_files"; then
1494 ## ------------------- ##
1495 ## File substitutions. ##
1496 ## ------------------- ##
1499 for ac_var in $ac_subst_files
1501 eval ac_val=\$$ac_var
1503 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1505 echo "$ac_var='\''$ac_val'\''"
1510 if test -s confdefs.h; then
1520 test "$ac_signal" != 0 &&
1521 echo "$as_me: caught signal $ac_signal"
1522 echo "$as_me: exit $exit_status"
1524 rm -f core *.core core.conftest.* &&
1525 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1528 for ac_signal in 1 2 13 15; do
1529 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1533 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1534 rm -f -r conftest* confdefs.h
1536 # Predefined preprocessor variables.
1538 cat >>confdefs.h <<_ACEOF
1539 #define PACKAGE_NAME "$PACKAGE_NAME"
1543 cat >>confdefs.h <<_ACEOF
1544 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1548 cat >>confdefs.h <<_ACEOF
1549 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1553 cat >>confdefs.h <<_ACEOF
1554 #define PACKAGE_STRING "$PACKAGE_STRING"
1558 cat >>confdefs.h <<_ACEOF
1559 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1563 # Let the site file select an alternate cache file if it wants to.
1564 # Prefer explicitly selected file to automatically selected ones.
1565 if test -n "$CONFIG_SITE"; then
1566 set x "$CONFIG_SITE"
1567 elif test "x$prefix" != xNONE; then
1568 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1570 set x "$ac_default_prefix/share/config.site" \
1571 "$ac_default_prefix/etc/config.site"
1576 if test -r "$ac_site_file"; then
1577 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1578 echo "$as_me: loading site script $ac_site_file" >&6;}
1579 sed 's/^/| /' "$ac_site_file" >&5
1584 if test -r "$cache_file"; then
1585 # Some versions of bash will fail to source /dev/null (special
1586 # files actually), so we avoid doing that.
1587 if test -f "$cache_file"; then
1588 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1589 echo "$as_me: loading cache $cache_file" >&6;}
1591 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1592 *) . "./$cache_file";;
1596 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1597 echo "$as_me: creating cache $cache_file" >&6;}
1601 # Check that the precious variables saved in the cache have kept the same
1603 ac_cache_corrupted=false
1604 for ac_var in $ac_precious_vars; do
1605 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1606 eval ac_new_set=\$ac_env_${ac_var}_set
1607 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1608 eval ac_new_val=\$ac_env_${ac_var}_value
1609 case $ac_old_set,$ac_new_set in
1611 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1612 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1613 ac_cache_corrupted=: ;;
1615 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1616 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1617 ac_cache_corrupted=: ;;
1620 if test "x$ac_old_val" != "x$ac_new_val"; then
1621 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1622 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1623 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1624 echo "$as_me: former value: $ac_old_val" >&2;}
1625 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1626 echo "$as_me: current value: $ac_new_val" >&2;}
1627 ac_cache_corrupted=:
1630 # Pass precious variables to config.status.
1631 if test "$ac_new_set" = set; then
1633 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1634 *) ac_arg=$ac_var=$ac_new_val ;;
1636 case " $ac_configure_args " in
1637 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1638 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1642 if $ac_cache_corrupted; then
1643 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1644 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1645 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1646 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1647 { (exit 1); exit 1; }; }
1667 ac_cpp='$CPP $CPPFLAGS'
1668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1674 ac_config_headers="$ac_config_headers config.h"
1679 ac_cpp='$CPP $CPPFLAGS'
1680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1683 if test -n "$ac_tool_prefix"; then
1684 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1685 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1688 if test "${ac_cv_prog_CC+set}" = set; then
1689 echo $ECHO_N "(cached) $ECHO_C" >&6
1691 if test -n "$CC"; then
1692 ac_cv_prog_CC="$CC" # Let the user override the test.
1694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1698 test -z "$as_dir" && as_dir=.
1699 for ac_exec_ext in '' $ac_executable_extensions; do
1700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1701 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1712 if test -n "$CC"; then
1713 { echo "$as_me:$LINENO: result: $CC" >&5
1714 echo "${ECHO_T}$CC" >&6; }
1716 { echo "$as_me:$LINENO: result: no" >&5
1717 echo "${ECHO_T}no" >&6; }
1722 if test -z "$ac_cv_prog_CC"; then
1724 # Extract the first word of "gcc", so it can be a program name with args.
1725 set dummy gcc; ac_word=$2
1726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1728 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1729 echo $ECHO_N "(cached) $ECHO_C" >&6
1731 if test -n "$ac_ct_CC"; then
1732 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1738 test -z "$as_dir" && as_dir=.
1739 for ac_exec_ext in '' $ac_executable_extensions; do
1740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1741 ac_cv_prog_ac_ct_CC="gcc"
1742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1751 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1752 if test -n "$ac_ct_CC"; then
1753 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1754 echo "${ECHO_T}$ac_ct_CC" >&6; }
1756 { echo "$as_me:$LINENO: result: no" >&5
1757 echo "${ECHO_T}no" >&6; }
1760 if test "x$ac_ct_CC" = x; then
1763 case $cross_compiling:$ac_tool_warned in
1765 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1766 whose name does not start with the host triplet. If you think this
1767 configuration is useful to you, please write to autoconf@gnu.org." >&5
1768 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1769 whose name does not start with the host triplet. If you think this
1770 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1771 ac_tool_warned=yes ;;
1779 if test -z "$CC"; then
1780 if test -n "$ac_tool_prefix"; then
1781 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1782 set dummy ${ac_tool_prefix}cc; ac_word=$2
1783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1785 if test "${ac_cv_prog_CC+set}" = set; then
1786 echo $ECHO_N "(cached) $ECHO_C" >&6
1788 if test -n "$CC"; then
1789 ac_cv_prog_CC="$CC" # Let the user override the test.
1791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1795 test -z "$as_dir" && as_dir=.
1796 for ac_exec_ext in '' $ac_executable_extensions; do
1797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1798 ac_cv_prog_CC="${ac_tool_prefix}cc"
1799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1809 if test -n "$CC"; then
1810 { echo "$as_me:$LINENO: result: $CC" >&5
1811 echo "${ECHO_T}$CC" >&6; }
1813 { echo "$as_me:$LINENO: result: no" >&5
1814 echo "${ECHO_T}no" >&6; }
1820 if test -z "$CC"; then
1821 # Extract the first word of "cc", so it can be a program name with args.
1822 set dummy cc; ac_word=$2
1823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1825 if test "${ac_cv_prog_CC+set}" = set; then
1826 echo $ECHO_N "(cached) $ECHO_C" >&6
1828 if test -n "$CC"; then
1829 ac_cv_prog_CC="$CC" # Let the user override the test.
1832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1836 test -z "$as_dir" && as_dir=.
1837 for ac_exec_ext in '' $ac_executable_extensions; do
1838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1839 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1840 ac_prog_rejected=yes
1844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1851 if test $ac_prog_rejected = yes; then
1852 # We found a bogon in the path, so make sure we never use it.
1853 set dummy $ac_cv_prog_CC
1855 if test $# != 0; then
1856 # We chose a different compiler from the bogus one.
1857 # However, it has the same basename, so the bogon will be chosen
1858 # first if we set CC to just the basename; use the full file name.
1860 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1866 if test -n "$CC"; then
1867 { echo "$as_me:$LINENO: result: $CC" >&5
1868 echo "${ECHO_T}$CC" >&6; }
1870 { echo "$as_me:$LINENO: result: no" >&5
1871 echo "${ECHO_T}no" >&6; }
1876 if test -z "$CC"; then
1877 if test -n "$ac_tool_prefix"; then
1878 for ac_prog in cl.exe
1880 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1881 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1884 if test "${ac_cv_prog_CC+set}" = set; then
1885 echo $ECHO_N "(cached) $ECHO_C" >&6
1887 if test -n "$CC"; then
1888 ac_cv_prog_CC="$CC" # Let the user override the test.
1890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1894 test -z "$as_dir" && as_dir=.
1895 for ac_exec_ext in '' $ac_executable_extensions; do
1896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1897 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1908 if test -n "$CC"; then
1909 { echo "$as_me:$LINENO: result: $CC" >&5
1910 echo "${ECHO_T}$CC" >&6; }
1912 { echo "$as_me:$LINENO: result: no" >&5
1913 echo "${ECHO_T}no" >&6; }
1917 test -n "$CC" && break
1920 if test -z "$CC"; then
1922 for ac_prog in cl.exe
1924 # Extract the first word of "$ac_prog", so it can be a program name with args.
1925 set dummy $ac_prog; ac_word=$2
1926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1928 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1929 echo $ECHO_N "(cached) $ECHO_C" >&6
1931 if test -n "$ac_ct_CC"; then
1932 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938 test -z "$as_dir" && as_dir=.
1939 for ac_exec_ext in '' $ac_executable_extensions; do
1940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1941 ac_cv_prog_ac_ct_CC="$ac_prog"
1942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1951 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1952 if test -n "$ac_ct_CC"; then
1953 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1954 echo "${ECHO_T}$ac_ct_CC" >&6; }
1956 { echo "$as_me:$LINENO: result: no" >&5
1957 echo "${ECHO_T}no" >&6; }
1961 test -n "$ac_ct_CC" && break
1964 if test "x$ac_ct_CC" = x; then
1967 case $cross_compiling:$ac_tool_warned in
1969 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1970 whose name does not start with the host triplet. If you think this
1971 configuration is useful to you, please write to autoconf@gnu.org." >&5
1972 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1973 whose name does not start with the host triplet. If you think this
1974 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1975 ac_tool_warned=yes ;;
1984 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1985 See \`config.log' for more details." >&5
1986 echo "$as_me: error: no acceptable C compiler found in \$PATH
1987 See \`config.log' for more details." >&2;}
1988 { (exit 1); exit 1; }; }
1990 # Provide some information about the compiler.
1991 echo "$as_me:$LINENO: checking for C compiler version" >&5
1992 ac_compiler=`set X $ac_compile; echo $2`
1993 { (ac_try="$ac_compiler --version >&5"
1995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1996 *) ac_try_echo=$ac_try;;
1998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1999 (eval "$ac_compiler --version >&5") 2>&5
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }
2003 { (ac_try="$ac_compiler -v >&5"
2005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2006 *) ac_try_echo=$ac_try;;
2008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2009 (eval "$ac_compiler -v >&5") 2>&5
2011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2012 (exit $ac_status); }
2013 { (ac_try="$ac_compiler -V >&5"
2015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2016 *) ac_try_echo=$ac_try;;
2018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2019 (eval "$ac_compiler -V >&5") 2>&5
2021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022 (exit $ac_status); }
2024 cat >conftest.$ac_ext <<_ACEOF
2027 cat confdefs.h >>conftest.$ac_ext
2028 cat >>conftest.$ac_ext <<_ACEOF
2029 /* end confdefs.h. */
2039 ac_clean_files_save=$ac_clean_files
2040 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2041 # Try to create an executable without -o first, disregard a.out.
2042 # It will help us diagnose broken compilers, and finding out an intuition
2044 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2045 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2046 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2048 # List of possible output files, starting from the most likely.
2049 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2050 # only as a last resort. b.out is created by i960 compilers.
2051 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2053 # The IRIX 6 linker writes into existing files which may not be
2054 # executable, retaining their permissions. Remove them first so a
2055 # subsequent execution test works.
2057 for ac_file in $ac_files
2060 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2061 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2066 if { (ac_try="$ac_link_default"
2068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2069 *) ac_try_echo=$ac_try;;
2071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2072 (eval "$ac_link_default") 2>&5
2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075 (exit $ac_status); }; then
2076 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2077 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2078 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2079 # so that the user can short-circuit this test for compilers unknown to
2081 for ac_file in $ac_files
2083 test -f "$ac_file" || continue
2085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2088 # We found the default executable, but exeext='' is most
2092 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2094 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2096 # We set ac_cv_exeext here because the later test for it is not
2097 # safe: cross compilers may not add the suffix if given an `-o'
2098 # argument, so we may need to know it at that point already.
2099 # Even if this section looks crufty: it has the advantage of
2106 test "$ac_cv_exeext" = no && ac_cv_exeext=
2109 echo "$as_me: failed program was:" >&5
2110 sed 's/^/| /' conftest.$ac_ext >&5
2112 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2113 See \`config.log' for more details." >&5
2114 echo "$as_me: error: C compiler cannot create executables
2115 See \`config.log' for more details." >&2;}
2116 { (exit 77); exit 77; }; }
2119 ac_exeext=$ac_cv_exeext
2120 { echo "$as_me:$LINENO: result: $ac_file" >&5
2121 echo "${ECHO_T}$ac_file" >&6; }
2123 # Check that the compiler produces executables we can run. If not, either
2124 # the compiler is broken, or we cross compile.
2125 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2126 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2127 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2128 # If not cross compiling, check that we can run a simple program.
2129 if test "$cross_compiling" != yes; then
2130 if { ac_try='./$ac_file'
2131 { (case "(($ac_try" in
2132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2133 *) ac_try_echo=$ac_try;;
2135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2136 (eval "$ac_try") 2>&5
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); }; }; then
2142 if test "$cross_compiling" = maybe; then
2145 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2146 If you meant to cross compile, use \`--host'.
2147 See \`config.log' for more details." >&5
2148 echo "$as_me: error: cannot run C compiled programs.
2149 If you meant to cross compile, use \`--host'.
2150 See \`config.log' for more details." >&2;}
2151 { (exit 1); exit 1; }; }
2155 { echo "$as_me:$LINENO: result: yes" >&5
2156 echo "${ECHO_T}yes" >&6; }
2158 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2159 ac_clean_files=$ac_clean_files_save
2160 # Check that the compiler produces executables we can run. If not, either
2161 # the compiler is broken, or we cross compile.
2162 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2163 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2164 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2165 echo "${ECHO_T}$cross_compiling" >&6; }
2167 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2168 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2169 if { (ac_try="$ac_link"
2171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2172 *) ac_try_echo=$ac_try;;
2174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2175 (eval "$ac_link") 2>&5
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }; then
2179 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2180 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2181 # work properly (i.e., refer to `conftest.exe'), while it won't with
2183 for ac_file in conftest.exe conftest conftest.*; do
2184 test -f "$ac_file" || continue
2186 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2187 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2193 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2194 See \`config.log' for more details." >&5
2195 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2196 See \`config.log' for more details." >&2;}
2197 { (exit 1); exit 1; }; }
2200 rm -f conftest$ac_cv_exeext
2201 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2202 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2204 rm -f conftest.$ac_ext
2205 EXEEXT=$ac_cv_exeext
2207 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2208 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2209 if test "${ac_cv_objext+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 cat >conftest.$ac_ext <<_ACEOF
2215 cat confdefs.h >>conftest.$ac_ext
2216 cat >>conftest.$ac_ext <<_ACEOF
2217 /* end confdefs.h. */
2227 rm -f conftest.o conftest.obj
2228 if { (ac_try="$ac_compile"
2230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2231 *) ac_try_echo=$ac_try;;
2233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2234 (eval "$ac_compile") 2>&5
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); }; then
2238 for ac_file in conftest.o conftest.obj conftest.*; do
2239 test -f "$ac_file" || continue;
2241 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2242 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2247 echo "$as_me: failed program was:" >&5
2248 sed 's/^/| /' conftest.$ac_ext >&5
2250 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2251 See \`config.log' for more details." >&5
2252 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2253 See \`config.log' for more details." >&2;}
2254 { (exit 1); exit 1; }; }
2257 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2259 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2260 echo "${ECHO_T}$ac_cv_objext" >&6; }
2261 OBJEXT=$ac_cv_objext
2263 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2264 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2265 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2266 echo $ECHO_N "(cached) $ECHO_C" >&6
2268 cat >conftest.$ac_ext <<_ACEOF
2271 cat confdefs.h >>conftest.$ac_ext
2272 cat >>conftest.$ac_ext <<_ACEOF
2273 /* end confdefs.h. */
2286 rm -f conftest.$ac_objext
2287 if { (ac_try="$ac_compile"
2289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2290 *) ac_try_echo=$ac_try;;
2292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2293 (eval "$ac_compile") 2>conftest.er1
2295 grep -v '^ *+' conftest.er1 >conftest.err
2297 cat conftest.err >&5
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); } &&
2300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2301 { (case "(($ac_try" in
2302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2303 *) ac_try_echo=$ac_try;;
2305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2306 (eval "$ac_try") 2>&5
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }; } &&
2310 { ac_try='test -s conftest.$ac_objext'
2311 { (case "(($ac_try" in
2312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2313 *) ac_try_echo=$ac_try;;
2315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2316 (eval "$ac_try") 2>&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; }; then
2322 echo "$as_me: failed program was:" >&5
2323 sed 's/^/| /' conftest.$ac_ext >&5
2328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2329 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2332 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2333 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2334 GCC=`test $ac_compiler_gnu = yes && echo yes`
2335 ac_test_CFLAGS=${CFLAGS+set}
2336 ac_save_CFLAGS=$CFLAGS
2337 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2338 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2339 if test "${ac_cv_prog_cc_g+set}" = set; then
2340 echo $ECHO_N "(cached) $ECHO_C" >&6
2342 ac_save_c_werror_flag=$ac_c_werror_flag
2343 ac_c_werror_flag=yes
2346 cat >conftest.$ac_ext <<_ACEOF
2349 cat confdefs.h >>conftest.$ac_ext
2350 cat >>conftest.$ac_ext <<_ACEOF
2351 /* end confdefs.h. */
2361 rm -f conftest.$ac_objext
2362 if { (ac_try="$ac_compile"
2364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2365 *) ac_try_echo=$ac_try;;
2367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2368 (eval "$ac_compile") 2>conftest.er1
2370 grep -v '^ *+' conftest.er1 >conftest.err
2372 cat conftest.err >&5
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); } &&
2375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2376 { (case "(($ac_try" in
2377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2378 *) ac_try_echo=$ac_try;;
2380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2381 (eval "$ac_try") 2>&5
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); }; } &&
2385 { ac_try='test -s conftest.$ac_objext'
2386 { (case "(($ac_try" in
2387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2388 *) ac_try_echo=$ac_try;;
2390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2391 (eval "$ac_try") 2>&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }; }; then
2397 echo "$as_me: failed program was:" >&5
2398 sed 's/^/| /' conftest.$ac_ext >&5
2401 cat >conftest.$ac_ext <<_ACEOF
2404 cat confdefs.h >>conftest.$ac_ext
2405 cat >>conftest.$ac_ext <<_ACEOF
2406 /* end confdefs.h. */
2416 rm -f conftest.$ac_objext
2417 if { (ac_try="$ac_compile"
2419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2420 *) ac_try_echo=$ac_try;;
2422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2423 (eval "$ac_compile") 2>conftest.er1
2425 grep -v '^ *+' conftest.er1 >conftest.err
2427 cat conftest.err >&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); } &&
2430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2431 { (case "(($ac_try" in
2432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2433 *) ac_try_echo=$ac_try;;
2435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2436 (eval "$ac_try") 2>&5
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); }; } &&
2440 { ac_try='test -s conftest.$ac_objext'
2441 { (case "(($ac_try" in
2442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2443 *) ac_try_echo=$ac_try;;
2445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2446 (eval "$ac_try") 2>&5
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }; }; then
2452 echo "$as_me: failed program was:" >&5
2453 sed 's/^/| /' conftest.$ac_ext >&5
2455 ac_c_werror_flag=$ac_save_c_werror_flag
2457 cat >conftest.$ac_ext <<_ACEOF
2460 cat confdefs.h >>conftest.$ac_ext
2461 cat >>conftest.$ac_ext <<_ACEOF
2462 /* end confdefs.h. */
2472 rm -f conftest.$ac_objext
2473 if { (ac_try="$ac_compile"
2475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2476 *) ac_try_echo=$ac_try;;
2478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2479 (eval "$ac_compile") 2>conftest.er1
2481 grep -v '^ *+' conftest.er1 >conftest.err
2483 cat conftest.err >&5
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); } &&
2486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2487 { (case "(($ac_try" in
2488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2489 *) ac_try_echo=$ac_try;;
2491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2492 (eval "$ac_try") 2>&5
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); }; } &&
2496 { ac_try='test -s conftest.$ac_objext'
2497 { (case "(($ac_try" in
2498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2499 *) ac_try_echo=$ac_try;;
2501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2502 (eval "$ac_try") 2>&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); }; }; then
2508 echo "$as_me: failed program was:" >&5
2509 sed 's/^/| /' conftest.$ac_ext >&5
2514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2521 ac_c_werror_flag=$ac_save_c_werror_flag
2523 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2524 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2525 if test "$ac_test_CFLAGS" = set; then
2526 CFLAGS=$ac_save_CFLAGS
2527 elif test $ac_cv_prog_cc_g = yes; then
2528 if test "$GCC" = yes; then
2534 if test "$GCC" = yes; then
2540 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2541 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2542 if test "${ac_cv_prog_cc_c89+set}" = set; then
2543 echo $ECHO_N "(cached) $ECHO_C" >&6
2545 ac_cv_prog_cc_c89=no
2547 cat >conftest.$ac_ext <<_ACEOF
2550 cat confdefs.h >>conftest.$ac_ext
2551 cat >>conftest.$ac_ext <<_ACEOF
2552 /* end confdefs.h. */
2555 #include <sys/types.h>
2556 #include <sys/stat.h>
2557 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2558 struct buf { int x; };
2559 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2560 static char *e (p, i)
2566 static char *f (char * (*g) (char **, int), char **p, ...)
2571 s = g (p, va_arg (v,int));
2576 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2577 function prototypes and stuff, but not '\xHH' hex character constants.
2578 These don't provoke an error unfortunately, instead are silently treated
2579 as 'x'. The following induces an error, until -std is added to get
2580 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2581 array size at least. It's necessary to write '\x00'==0 to get something
2582 that's true only with -std. */
2583 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2585 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2586 inside strings and character constants. */
2588 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2590 int test (int i, double x);
2591 struct s1 {int (*f) (int a);};
2592 struct s2 {int (*f) (double a);};
2593 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2599 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2604 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2605 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2607 CC="$ac_save_CC $ac_arg"
2608 rm -f conftest.$ac_objext
2609 if { (ac_try="$ac_compile"
2611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2612 *) ac_try_echo=$ac_try;;
2614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2615 (eval "$ac_compile") 2>conftest.er1
2617 grep -v '^ *+' conftest.er1 >conftest.err
2619 cat conftest.err >&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); } &&
2622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2623 { (case "(($ac_try" in
2624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2625 *) ac_try_echo=$ac_try;;
2627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2628 (eval "$ac_try") 2>&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; } &&
2632 { ac_try='test -s conftest.$ac_objext'
2633 { (case "(($ac_try" in
2634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2635 *) ac_try_echo=$ac_try;;
2637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2638 (eval "$ac_try") 2>&5
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); }; }; then
2642 ac_cv_prog_cc_c89=$ac_arg
2644 echo "$as_me: failed program was:" >&5
2645 sed 's/^/| /' conftest.$ac_ext >&5
2650 rm -f core conftest.err conftest.$ac_objext
2651 test "x$ac_cv_prog_cc_c89" != "xno" && break
2653 rm -f conftest.$ac_ext
2658 case "x$ac_cv_prog_cc_c89" in
2660 { echo "$as_me:$LINENO: result: none needed" >&5
2661 echo "${ECHO_T}none needed" >&6; } ;;
2663 { echo "$as_me:$LINENO: result: unsupported" >&5
2664 echo "${ECHO_T}unsupported" >&6; } ;;
2666 CC="$CC $ac_cv_prog_cc_c89"
2667 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2668 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2673 ac_cpp='$CPP $CPPFLAGS'
2674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2680 ac_cpp='$CPP $CPPFLAGS'
2681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2684 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2685 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2686 # On Suns, sometimes $CPP names a directory.
2687 if test -n "$CPP" && test -d "$CPP"; then
2690 if test -z "$CPP"; then
2691 if test "${ac_cv_prog_CPP+set}" = set; then
2692 echo $ECHO_N "(cached) $ECHO_C" >&6
2694 # Double quotes because CPP needs to be expanded
2695 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2698 for ac_c_preproc_warn_flag in '' yes
2700 # Use a header file that comes with gcc, so configuring glibc
2701 # with a fresh cross-compiler works.
2702 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2703 # <limits.h> exists even on freestanding compilers.
2704 # On the NeXT, cc -E runs the code through the compiler's parser,
2705 # not just through cpp. "Syntax error" is here to catch this case.
2706 cat >conftest.$ac_ext <<_ACEOF
2709 cat confdefs.h >>conftest.$ac_ext
2710 cat >>conftest.$ac_ext <<_ACEOF
2711 /* end confdefs.h. */
2713 # include <limits.h>
2715 # include <assert.h>
2719 if { (ac_try="$ac_cpp conftest.$ac_ext"
2721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722 *) ac_try_echo=$ac_try;;
2724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2727 grep -v '^ *+' conftest.er1 >conftest.err
2729 cat conftest.err >&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); } >/dev/null; then
2732 if test -s conftest.err; then
2733 ac_cpp_err=$ac_c_preproc_warn_flag
2734 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2741 if test -z "$ac_cpp_err"; then
2744 echo "$as_me: failed program was:" >&5
2745 sed 's/^/| /' conftest.$ac_ext >&5
2747 # Broken: fails on valid input.
2751 rm -f conftest.err conftest.$ac_ext
2753 # OK, works on sane cases. Now check whether nonexistent headers
2754 # can be detected and how.
2755 cat >conftest.$ac_ext <<_ACEOF
2758 cat confdefs.h >>conftest.$ac_ext
2759 cat >>conftest.$ac_ext <<_ACEOF
2760 /* end confdefs.h. */
2761 #include <ac_nonexistent.h>
2763 if { (ac_try="$ac_cpp conftest.$ac_ext"
2765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2766 *) ac_try_echo=$ac_try;;
2768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2771 grep -v '^ *+' conftest.er1 >conftest.err
2773 cat conftest.err >&5
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); } >/dev/null; then
2776 if test -s conftest.err; then
2777 ac_cpp_err=$ac_c_preproc_warn_flag
2778 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2785 if test -z "$ac_cpp_err"; then
2786 # Broken: success on invalid input.
2789 echo "$as_me: failed program was:" >&5
2790 sed 's/^/| /' conftest.$ac_ext >&5
2792 # Passes both tests.
2797 rm -f conftest.err conftest.$ac_ext
2800 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2801 rm -f conftest.err conftest.$ac_ext
2802 if $ac_preproc_ok; then
2814 { echo "$as_me:$LINENO: result: $CPP" >&5
2815 echo "${ECHO_T}$CPP" >&6; }
2817 for ac_c_preproc_warn_flag in '' yes
2819 # Use a header file that comes with gcc, so configuring glibc
2820 # with a fresh cross-compiler works.
2821 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2822 # <limits.h> exists even on freestanding compilers.
2823 # On the NeXT, cc -E runs the code through the compiler's parser,
2824 # not just through cpp. "Syntax error" is here to catch this case.
2825 cat >conftest.$ac_ext <<_ACEOF
2828 cat confdefs.h >>conftest.$ac_ext
2829 cat >>conftest.$ac_ext <<_ACEOF
2830 /* end confdefs.h. */
2832 # include <limits.h>
2834 # include <assert.h>
2838 if { (ac_try="$ac_cpp conftest.$ac_ext"
2840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841 *) ac_try_echo=$ac_try;;
2843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2846 grep -v '^ *+' conftest.er1 >conftest.err
2848 cat conftest.err >&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); } >/dev/null; then
2851 if test -s conftest.err; then
2852 ac_cpp_err=$ac_c_preproc_warn_flag
2853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2860 if test -z "$ac_cpp_err"; then
2863 echo "$as_me: failed program was:" >&5
2864 sed 's/^/| /' conftest.$ac_ext >&5
2866 # Broken: fails on valid input.
2870 rm -f conftest.err conftest.$ac_ext
2872 # OK, works on sane cases. Now check whether nonexistent headers
2873 # can be detected and how.
2874 cat >conftest.$ac_ext <<_ACEOF
2877 cat confdefs.h >>conftest.$ac_ext
2878 cat >>conftest.$ac_ext <<_ACEOF
2879 /* end confdefs.h. */
2880 #include <ac_nonexistent.h>
2882 if { (ac_try="$ac_cpp conftest.$ac_ext"
2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2890 grep -v '^ *+' conftest.er1 >conftest.err
2892 cat conftest.err >&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); } >/dev/null; then
2895 if test -s conftest.err; then
2896 ac_cpp_err=$ac_c_preproc_warn_flag
2897 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2904 if test -z "$ac_cpp_err"; then
2905 # Broken: success on invalid input.
2908 echo "$as_me: failed program was:" >&5
2909 sed 's/^/| /' conftest.$ac_ext >&5
2911 # Passes both tests.
2916 rm -f conftest.err conftest.$ac_ext
2919 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2920 rm -f conftest.err conftest.$ac_ext
2921 if $ac_preproc_ok; then
2924 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2925 See \`config.log' for more details." >&5
2926 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2927 See \`config.log' for more details." >&2;}
2928 { (exit 1); exit 1; }; }
2932 ac_cpp='$CPP $CPPFLAGS'
2933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2938 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
2939 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
2940 if test "${ac_cv_path_GREP+set}" = set; then
2941 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 # Extract the first word of "grep ggrep" to use in msg output
2944 if test -z "$GREP"; then
2945 set dummy grep ggrep; ac_prog_name=$2
2946 if test "${ac_cv_path_GREP+set}" = set; then
2947 echo $ECHO_N "(cached) $ECHO_C" >&6
2949 ac_path_GREP_found=false
2950 # Loop through the user's path and test for each of PROGNAME-LIST
2951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2955 test -z "$as_dir" && as_dir=.
2956 for ac_prog in grep ggrep; do
2957 for ac_exec_ext in '' $ac_executable_extensions; do
2958 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
2959 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
2960 # Check for GNU ac_path_GREP and select it if it is found.
2961 # Check for GNU $ac_path_GREP
2962 case `"$ac_path_GREP" --version 2>&1` in
2964 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
2967 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
2970 cat "conftest.in" "conftest.in" >"conftest.tmp"
2971 mv "conftest.tmp" "conftest.in"
2972 cp "conftest.in" "conftest.nl"
2973 echo 'GREP' >> "conftest.nl"
2974 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2975 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2976 ac_count=`expr $ac_count + 1`
2977 if test $ac_count -gt ${ac_path_GREP_max-0}; then
2978 # Best one so far, save it but keep looking for a better one
2979 ac_cv_path_GREP="$ac_path_GREP"
2980 ac_path_GREP_max=$ac_count
2982 # 10*(2^10) chars as input seems more than enough
2983 test $ac_count -gt 10 && break
2985 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2989 $ac_path_GREP_found && break 3
2999 GREP="$ac_cv_path_GREP"
3000 if test -z "$GREP"; then
3001 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3002 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3003 { (exit 1); exit 1; }; }
3007 ac_cv_path_GREP=$GREP
3012 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3013 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3014 GREP="$ac_cv_path_GREP"
3017 { echo "$as_me:$LINENO: checking for egrep" >&5
3018 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3019 if test "${ac_cv_path_EGREP+set}" = set; then
3020 echo $ECHO_N "(cached) $ECHO_C" >&6
3022 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3023 then ac_cv_path_EGREP="$GREP -E"
3025 # Extract the first word of "egrep" to use in msg output
3026 if test -z "$EGREP"; then
3027 set dummy egrep; ac_prog_name=$2
3028 if test "${ac_cv_path_EGREP+set}" = set; then
3029 echo $ECHO_N "(cached) $ECHO_C" >&6
3031 ac_path_EGREP_found=false
3032 # Loop through the user's path and test for each of PROGNAME-LIST
3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3037 test -z "$as_dir" && as_dir=.
3038 for ac_prog in egrep; do
3039 for ac_exec_ext in '' $ac_executable_extensions; do
3040 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3041 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3042 # Check for GNU ac_path_EGREP and select it if it is found.
3043 # Check for GNU $ac_path_EGREP
3044 case `"$ac_path_EGREP" --version 2>&1` in
3046 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3049 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3052 cat "conftest.in" "conftest.in" >"conftest.tmp"
3053 mv "conftest.tmp" "conftest.in"
3054 cp "conftest.in" "conftest.nl"
3055 echo 'EGREP' >> "conftest.nl"
3056 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3057 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3058 ac_count=`expr $ac_count + 1`
3059 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3060 # Best one so far, save it but keep looking for a better one
3061 ac_cv_path_EGREP="$ac_path_EGREP"
3062 ac_path_EGREP_max=$ac_count
3064 # 10*(2^10) chars as input seems more than enough
3065 test $ac_count -gt 10 && break
3067 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3071 $ac_path_EGREP_found && break 3
3081 EGREP="$ac_cv_path_EGREP"
3082 if test -z "$EGREP"; then
3083 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3084 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3085 { (exit 1); exit 1; }; }
3089 ac_cv_path_EGREP=$EGREP
3095 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3096 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3097 EGREP="$ac_cv_path_EGREP"
3100 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3101 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3102 if test "${ac_cv_header_stdc+set}" = set; then
3103 echo $ECHO_N "(cached) $ECHO_C" >&6
3105 cat >conftest.$ac_ext <<_ACEOF
3108 cat confdefs.h >>conftest.$ac_ext
3109 cat >>conftest.$ac_ext <<_ACEOF
3110 /* end confdefs.h. */
3124 rm -f conftest.$ac_objext
3125 if { (ac_try="$ac_compile"
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_compile") 2>conftest.er1
3133 grep -v '^ *+' conftest.er1 >conftest.err
3135 cat conftest.err >&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); } &&
3138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3139 { (case "(($ac_try" in
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_try") 2>&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }; } &&
3148 { ac_try='test -s conftest.$ac_objext'
3149 { (case "(($ac_try" in
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154 (eval "$ac_try") 2>&5
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }; }; then
3158 ac_cv_header_stdc=yes
3160 echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3163 ac_cv_header_stdc=no
3166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3168 if test $ac_cv_header_stdc = yes; then
3169 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3170 cat >conftest.$ac_ext <<_ACEOF
3173 cat confdefs.h >>conftest.$ac_ext
3174 cat >>conftest.$ac_ext <<_ACEOF
3175 /* end confdefs.h. */
3179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3180 $EGREP "memchr" >/dev/null 2>&1; then
3183 ac_cv_header_stdc=no
3189 if test $ac_cv_header_stdc = yes; then
3190 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3191 cat >conftest.$ac_ext <<_ACEOF
3194 cat confdefs.h >>conftest.$ac_ext
3195 cat >>conftest.$ac_ext <<_ACEOF
3196 /* end confdefs.h. */
3200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3201 $EGREP "free" >/dev/null 2>&1; then
3204 ac_cv_header_stdc=no
3210 if test $ac_cv_header_stdc = yes; then
3211 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3212 if test "$cross_compiling" = yes; then
3215 cat >conftest.$ac_ext <<_ACEOF
3218 cat confdefs.h >>conftest.$ac_ext
3219 cat >>conftest.$ac_ext <<_ACEOF
3220 /* end confdefs.h. */
3223 #if ((' ' & 0x0FF) == 0x020)
3224 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3225 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3227 # define ISLOWER(c) \
3228 (('a' <= (c) && (c) <= 'i') \
3229 || ('j' <= (c) && (c) <= 'r') \
3230 || ('s' <= (c) && (c) <= 'z'))
3231 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3234 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3239 for (i = 0; i < 256; i++)
3240 if (XOR (islower (i), ISLOWER (i))
3241 || toupper (i) != TOUPPER (i))
3246 rm -f conftest$ac_exeext
3247 if { (ac_try="$ac_link"
3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250 *) ac_try_echo=$ac_try;;
3252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3253 (eval "$ac_link") 2>&5
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3257 { (case "(($ac_try" in
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3262 (eval "$ac_try") 2>&5
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); }; }; then
3268 echo "$as_me: program exited with status $ac_status" >&5
3269 echo "$as_me: failed program was:" >&5
3270 sed 's/^/| /' conftest.$ac_ext >&5
3273 ac_cv_header_stdc=no
3275 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3281 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3282 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3283 if test $ac_cv_header_stdc = yes; then
3285 cat >>confdefs.h <<\_ACEOF
3286 #define STDC_HEADERS 1
3291 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3301 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3302 inttypes.h stdint.h unistd.h
3304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3305 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3308 echo $ECHO_N "(cached) $ECHO_C" >&6
3310 cat >conftest.$ac_ext <<_ACEOF
3313 cat confdefs.h >>conftest.$ac_ext
3314 cat >>conftest.$ac_ext <<_ACEOF
3315 /* end confdefs.h. */
3316 $ac_includes_default
3318 #include <$ac_header>
3320 rm -f conftest.$ac_objext
3321 if { (ac_try="$ac_compile"
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3327 (eval "$ac_compile") 2>conftest.er1
3329 grep -v '^ *+' conftest.er1 >conftest.err
3331 cat conftest.err >&5
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); } &&
3334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3335 { (case "(($ac_try" in
3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3340 (eval "$ac_try") 2>&5
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); }; } &&
3344 { ac_try='test -s conftest.$ac_objext'
3345 { (case "(($ac_try" in
3346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347 *) ac_try_echo=$ac_try;;
3349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3350 (eval "$ac_try") 2>&5
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; }; then
3354 eval "$as_ac_Header=yes"
3356 echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.$ac_ext >&5
3359 eval "$as_ac_Header=no"
3362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3364 ac_res=`eval echo '${'$as_ac_Header'}'`
3365 { echo "$as_me:$LINENO: result: $ac_res" >&5
3366 echo "${ECHO_T}$ac_res" >&6; }
3367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3368 cat >>confdefs.h <<_ACEOF
3369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3379 if test "${ac_cv_header_readline_readline_h+set}" = set; then
3380 { echo "$as_me:$LINENO: checking for readline/readline.h" >&5
3381 echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6; }
3382 if test "${ac_cv_header_readline_readline_h+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3385 { echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
3386 echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6; }
3388 # Is the header compilable?
3389 { echo "$as_me:$LINENO: checking readline/readline.h usability" >&5
3390 echo $ECHO_N "checking readline/readline.h usability... $ECHO_C" >&6; }
3391 cat >conftest.$ac_ext <<_ACEOF
3394 cat confdefs.h >>conftest.$ac_ext
3395 cat >>conftest.$ac_ext <<_ACEOF
3396 /* end confdefs.h. */
3397 $ac_includes_default
3398 #include <readline/readline.h>
3400 rm -f conftest.$ac_objext
3401 if { (ac_try="$ac_compile"
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3407 (eval "$ac_compile") 2>conftest.er1
3409 grep -v '^ *+' conftest.er1 >conftest.err
3411 cat conftest.err >&5
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); } &&
3414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3415 { (case "(($ac_try" in
3416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417 *) ac_try_echo=$ac_try;;
3419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3420 (eval "$ac_try") 2>&5
3422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423 (exit $ac_status); }; } &&
3424 { ac_try='test -s conftest.$ac_objext'
3425 { (case "(($ac_try" in
3426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427 *) ac_try_echo=$ac_try;;
3429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3430 (eval "$ac_try") 2>&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); }; }; then
3434 ac_header_compiler=yes
3436 echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.$ac_ext >&5
3439 ac_header_compiler=no
3442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3443 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3444 echo "${ECHO_T}$ac_header_compiler" >&6; }
3446 # Is the header present?
3447 { echo "$as_me:$LINENO: checking readline/readline.h presence" >&5
3448 echo $ECHO_N "checking readline/readline.h presence... $ECHO_C" >&6; }
3449 cat >conftest.$ac_ext <<_ACEOF
3452 cat confdefs.h >>conftest.$ac_ext
3453 cat >>conftest.$ac_ext <<_ACEOF
3454 /* end confdefs.h. */
3455 #include <readline/readline.h>
3457 if { (ac_try="$ac_cpp conftest.$ac_ext"
3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460 *) ac_try_echo=$ac_try;;
3462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3465 grep -v '^ *+' conftest.er1 >conftest.err
3467 cat conftest.err >&5
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); } >/dev/null; then
3470 if test -s conftest.err; then
3471 ac_cpp_err=$ac_c_preproc_warn_flag
3472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3479 if test -z "$ac_cpp_err"; then
3480 ac_header_preproc=yes
3482 echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.$ac_ext >&5
3485 ac_header_preproc=no
3488 rm -f conftest.err conftest.$ac_ext
3489 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3490 echo "${ECHO_T}$ac_header_preproc" >&6; }
3492 # So? What about this header?
3493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3495 { echo "$as_me:$LINENO: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
3496 echo "$as_me: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3497 { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the compiler's result" >&5
3498 echo "$as_me: WARNING: readline/readline.h: proceeding with the compiler's result" >&2;}
3499 ac_header_preproc=yes
3502 { echo "$as_me:$LINENO: WARNING: readline/readline.h: present but cannot be compiled" >&5
3503 echo "$as_me: WARNING: readline/readline.h: present but cannot be compiled" >&2;}
3504 { echo "$as_me:$LINENO: WARNING: readline/readline.h: check for missing prerequisite headers?" >&5
3505 echo "$as_me: WARNING: readline/readline.h: check for missing prerequisite headers?" >&2;}
3506 { echo "$as_me:$LINENO: WARNING: readline/readline.h: see the Autoconf documentation" >&5
3507 echo "$as_me: WARNING: readline/readline.h: see the Autoconf documentation" >&2;}
3508 { echo "$as_me:$LINENO: WARNING: readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
3509 echo "$as_me: WARNING: readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
3510 { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&5
3511 echo "$as_me: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&2;}
3512 { echo "$as_me:$LINENO: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&5
3513 echo "$as_me: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&2;}
3517 { echo "$as_me:$LINENO: checking for readline/readline.h" >&5
3518 echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6; }
3519 if test "${ac_cv_header_readline_readline_h+set}" = set; then
3520 echo $ECHO_N "(cached) $ECHO_C" >&6
3522 ac_cv_header_readline_readline_h=$ac_header_preproc
3524 { echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
3525 echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6; }
3531 if test "$ac_cv_header_readline_readline_h" = yes; then
3533 cat > conftest.$ac_ext <<EOF
3535 #include <readline/readline.h>
3536 wi_LIB_READLINE_VERSION RL_VERSION_MAJOR RL_VERSION_MINOR
3539 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")
3542 if test -n "$wi_READLINE_VERSION"; then
3543 wi_MAJOR=$(expr $wi_READLINE_VERSION : '\([0-9][0-9]*\)\.')
3544 wi_MINOR=$(expr $wi_READLINE_VERSION : '[0-9][0-9]*\.\([0-9][0-9]*$\)')
3545 if test $wi_MINOR -lt 10; then
3546 wi_MINOR=$(expr $wi_MINOR \* 10)
3548 wi_READLINE_VERSION=$(expr $wi_MAJOR \* 100 + $wi_MINOR)
3550 wi_READLINE_VERSION=-1
3554 ac_save_LIBS="$LIBS"
3555 # Note: $LIBCURSES is permitted to be empty.
3557 for LIBREADLINE in "-lreadline.dll" "-lreadline" "-lreadline $LIBCURSES" "-lreadline -ltermcap" "-lreadline -lncurses" "-lreadline -lcurses"
3559 { echo "$as_me:$LINENO: checking for GNU Readline library $LIBREADLINE" >&5
3560 echo $ECHO_N "checking for GNU Readline library $LIBREADLINE... $ECHO_C" >&6; }
3562 LIBS="$ac_save_LIBS $LIBREADLINE"
3564 cat >conftest.$ac_ext <<_ACEOF
3567 cat confdefs.h >>conftest.$ac_ext
3568 cat >>conftest.$ac_ext <<_ACEOF
3569 /* end confdefs.h. */
3573 #include <readline/readline.h>
3580 int dummy = rl_completion_append_character; /* rl_completion_append_character appeared in version 2.1 */
3587 rm -f conftest.$ac_objext conftest$ac_exeext
3588 if { (ac_try="$ac_link"
3590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591 *) ac_try_echo=$ac_try;;
3593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3594 (eval "$ac_link") 2>conftest.er1
3596 grep -v '^ *+' conftest.er1 >conftest.err
3598 cat conftest.err >&5
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); } &&
3601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3602 { (case "(($ac_try" in
3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3607 (eval "$ac_try") 2>&5
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); }; } &&
3611 { ac_try='test -s conftest$ac_exeext'
3612 { (case "(($ac_try" in
3613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614 *) ac_try_echo=$ac_try;;
3616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3617 (eval "$ac_try") 2>&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); }; }; then
3622 wi_cv_lib_readline=yes
3623 { echo "$as_me:$LINENO: result: yes" >&5
3624 echo "${ECHO_T}yes" >&6; }
3627 echo "$as_me: failed program was:" >&5
3628 sed 's/^/| /' conftest.$ac_ext >&5
3631 wi_cv_lib_readline=no
3632 { echo "$as_me:$LINENO: result: no" >&5
3633 echo "${ECHO_T}no" >&6; }
3637 rm -f core conftest.err conftest.$ac_objext \
3638 conftest$ac_exeext conftest.$ac_ext
3640 if test "$wi_cv_lib_readline" = yes; then
3643 cat >>confdefs.h <<_ACEOF
3644 #define HAVE_LIBREADLINE $wi_READLINE_VERSION
3651 LIBS="$ac_save_LIBS"
3656 # ===========================================================================
3658 ac_cpp='$CPP $CPPFLAGS'
3659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3662 if test -n "$ac_tool_prefix"; then
3663 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3664 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3667 if test "${ac_cv_prog_CC+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3670 if test -n "$CC"; then
3671 ac_cv_prog_CC="$CC" # Let the user override the test.
3673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677 test -z "$as_dir" && as_dir=.
3678 for ac_exec_ext in '' $ac_executable_extensions; do
3679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3680 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3691 if test -n "$CC"; then
3692 { echo "$as_me:$LINENO: result: $CC" >&5
3693 echo "${ECHO_T}$CC" >&6; }
3695 { echo "$as_me:$LINENO: result: no" >&5
3696 echo "${ECHO_T}no" >&6; }
3701 if test -z "$ac_cv_prog_CC"; then
3703 # Extract the first word of "gcc", so it can be a program name with args.
3704 set dummy gcc; ac_word=$2
3705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3707 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3708 echo $ECHO_N "(cached) $ECHO_C" >&6
3710 if test -n "$ac_ct_CC"; then
3711 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717 test -z "$as_dir" && as_dir=.
3718 for ac_exec_ext in '' $ac_executable_extensions; do
3719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3720 ac_cv_prog_ac_ct_CC="gcc"
3721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3730 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3731 if test -n "$ac_ct_CC"; then
3732 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3733 echo "${ECHO_T}$ac_ct_CC" >&6; }
3735 { echo "$as_me:$LINENO: result: no" >&5
3736 echo "${ECHO_T}no" >&6; }
3739 if test "x$ac_ct_CC" = x; then
3742 case $cross_compiling:$ac_tool_warned in
3744 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3745 whose name does not start with the host triplet. If you think this
3746 configuration is useful to you, please write to autoconf@gnu.org." >&5
3747 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3748 whose name does not start with the host triplet. If you think this
3749 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3750 ac_tool_warned=yes ;;
3758 if test -z "$CC"; then
3759 if test -n "$ac_tool_prefix"; then
3760 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3761 set dummy ${ac_tool_prefix}cc; ac_word=$2
3762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3764 if test "${ac_cv_prog_CC+set}" = set; then
3765 echo $ECHO_N "(cached) $ECHO_C" >&6
3767 if test -n "$CC"; then
3768 ac_cv_prog_CC="$CC" # Let the user override the test.
3770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774 test -z "$as_dir" && as_dir=.
3775 for ac_exec_ext in '' $ac_executable_extensions; do
3776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3777 ac_cv_prog_CC="${ac_tool_prefix}cc"
3778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3788 if test -n "$CC"; then
3789 { echo "$as_me:$LINENO: result: $CC" >&5
3790 echo "${ECHO_T}$CC" >&6; }
3792 { echo "$as_me:$LINENO: result: no" >&5
3793 echo "${ECHO_T}no" >&6; }
3799 if test -z "$CC"; then
3800 # Extract the first word of "cc", so it can be a program name with args.
3801 set dummy cc; ac_word=$2
3802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3804 if test "${ac_cv_prog_CC+set}" = set; then
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
3807 if test -n "$CC"; then
3808 ac_cv_prog_CC="$CC" # Let the user override the test.
3811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3815 test -z "$as_dir" && as_dir=.
3816 for ac_exec_ext in '' $ac_executable_extensions; do
3817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3818 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3819 ac_prog_rejected=yes
3823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3830 if test $ac_prog_rejected = yes; then
3831 # We found a bogon in the path, so make sure we never use it.
3832 set dummy $ac_cv_prog_CC
3834 if test $# != 0; then
3835 # We chose a different compiler from the bogus one.
3836 # However, it has the same basename, so the bogon will be chosen
3837 # first if we set CC to just the basename; use the full file name.
3839 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3845 if test -n "$CC"; then
3846 { echo "$as_me:$LINENO: result: $CC" >&5
3847 echo "${ECHO_T}$CC" >&6; }
3849 { echo "$as_me:$LINENO: result: no" >&5
3850 echo "${ECHO_T}no" >&6; }
3855 if test -z "$CC"; then
3856 if test -n "$ac_tool_prefix"; then
3857 for ac_prog in cl.exe
3859 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3860 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3863 if test "${ac_cv_prog_CC+set}" = set; then
3864 echo $ECHO_N "(cached) $ECHO_C" >&6
3866 if test -n "$CC"; then
3867 ac_cv_prog_CC="$CC" # Let the user override the test.
3869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873 test -z "$as_dir" && as_dir=.
3874 for ac_exec_ext in '' $ac_executable_extensions; do
3875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3876 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3887 if test -n "$CC"; then
3888 { echo "$as_me:$LINENO: result: $CC" >&5
3889 echo "${ECHO_T}$CC" >&6; }
3891 { echo "$as_me:$LINENO: result: no" >&5
3892 echo "${ECHO_T}no" >&6; }
3896 test -n "$CC" && break
3899 if test -z "$CC"; then
3901 for ac_prog in cl.exe
3903 # Extract the first word of "$ac_prog", so it can be a program name with args.
3904 set dummy $ac_prog; ac_word=$2
3905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3907 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3908 echo $ECHO_N "(cached) $ECHO_C" >&6
3910 if test -n "$ac_ct_CC"; then
3911 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917 test -z "$as_dir" && as_dir=.
3918 for ac_exec_ext in '' $ac_executable_extensions; do
3919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3920 ac_cv_prog_ac_ct_CC="$ac_prog"
3921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3930 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3931 if test -n "$ac_ct_CC"; then
3932 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3933 echo "${ECHO_T}$ac_ct_CC" >&6; }
3935 { echo "$as_me:$LINENO: result: no" >&5
3936 echo "${ECHO_T}no" >&6; }
3940 test -n "$ac_ct_CC" && break
3943 if test "x$ac_ct_CC" = x; then
3946 case $cross_compiling:$ac_tool_warned in
3948 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3949 whose name does not start with the host triplet. If you think this
3950 configuration is useful to you, please write to autoconf@gnu.org." >&5
3951 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3952 whose name does not start with the host triplet. If you think this
3953 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3954 ac_tool_warned=yes ;;
3963 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3964 See \`config.log' for more details." >&5
3965 echo "$as_me: error: no acceptable C compiler found in \$PATH
3966 See \`config.log' for more details." >&2;}
3967 { (exit 1); exit 1; }; }
3969 # Provide some information about the compiler.
3970 echo "$as_me:$LINENO: checking for C compiler version" >&5
3971 ac_compiler=`set X $ac_compile; echo $2`
3972 { (ac_try="$ac_compiler --version >&5"
3974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975 *) ac_try_echo=$ac_try;;
3977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3978 (eval "$ac_compiler --version >&5") 2>&5
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); }
3982 { (ac_try="$ac_compiler -v >&5"
3984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3985 *) ac_try_echo=$ac_try;;
3987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3988 (eval "$ac_compiler -v >&5") 2>&5
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); }
3992 { (ac_try="$ac_compiler -V >&5"
3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995 *) ac_try_echo=$ac_try;;
3997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3998 (eval "$ac_compiler -V >&5") 2>&5
4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); }
4003 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4004 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4005 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4006 echo $ECHO_N "(cached) $ECHO_C" >&6
4008 cat >conftest.$ac_ext <<_ACEOF
4011 cat confdefs.h >>conftest.$ac_ext
4012 cat >>conftest.$ac_ext <<_ACEOF
4013 /* end confdefs.h. */
4026 rm -f conftest.$ac_objext
4027 if { (ac_try="$ac_compile"
4029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4030 *) ac_try_echo=$ac_try;;
4032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4033 (eval "$ac_compile") 2>conftest.er1
4035 grep -v '^ *+' conftest.er1 >conftest.err
4037 cat conftest.err >&5
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); } &&
4040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4041 { (case "(($ac_try" in
4042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043 *) ac_try_echo=$ac_try;;
4045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4046 (eval "$ac_try") 2>&5
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); }; } &&
4050 { ac_try='test -s conftest.$ac_objext'
4051 { (case "(($ac_try" in
4052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4053 *) ac_try_echo=$ac_try;;
4055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4056 (eval "$ac_try") 2>&5
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); }; }; then
4062 echo "$as_me: failed program was:" >&5
4063 sed 's/^/| /' conftest.$ac_ext >&5
4068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4069 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4072 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4073 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4074 GCC=`test $ac_compiler_gnu = yes && echo yes`
4075 ac_test_CFLAGS=${CFLAGS+set}
4076 ac_save_CFLAGS=$CFLAGS
4077 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4078 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4079 if test "${ac_cv_prog_cc_g+set}" = set; then
4080 echo $ECHO_N "(cached) $ECHO_C" >&6
4082 ac_save_c_werror_flag=$ac_c_werror_flag
4083 ac_c_werror_flag=yes
4086 cat >conftest.$ac_ext <<_ACEOF
4089 cat confdefs.h >>conftest.$ac_ext
4090 cat >>conftest.$ac_ext <<_ACEOF
4091 /* end confdefs.h. */
4101 rm -f conftest.$ac_objext
4102 if { (ac_try="$ac_compile"
4104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105 *) ac_try_echo=$ac_try;;
4107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4108 (eval "$ac_compile") 2>conftest.er1
4110 grep -v '^ *+' conftest.er1 >conftest.err
4112 cat conftest.err >&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); } &&
4115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4116 { (case "(($ac_try" in
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_try") 2>&5
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); }; } &&
4125 { ac_try='test -s conftest.$ac_objext'
4126 { (case "(($ac_try" in
4127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4128 *) ac_try_echo=$ac_try;;
4130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4131 (eval "$ac_try") 2>&5
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); }; }; then
4137 echo "$as_me: failed program was:" >&5
4138 sed 's/^/| /' conftest.$ac_ext >&5
4141 cat >conftest.$ac_ext <<_ACEOF
4144 cat confdefs.h >>conftest.$ac_ext
4145 cat >>conftest.$ac_ext <<_ACEOF
4146 /* end confdefs.h. */
4156 rm -f conftest.$ac_objext
4157 if { (ac_try="$ac_compile"
4159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4160 *) ac_try_echo=$ac_try;;
4162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4163 (eval "$ac_compile") 2>conftest.er1
4165 grep -v '^ *+' conftest.er1 >conftest.err
4167 cat conftest.err >&5
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); } &&
4170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4171 { (case "(($ac_try" in
4172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173 *) ac_try_echo=$ac_try;;
4175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4176 (eval "$ac_try") 2>&5
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); }; } &&
4180 { ac_try='test -s conftest.$ac_objext'
4181 { (case "(($ac_try" in
4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4186 (eval "$ac_try") 2>&5
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; }; then
4192 echo "$as_me: failed program was:" >&5
4193 sed 's/^/| /' conftest.$ac_ext >&5
4195 ac_c_werror_flag=$ac_save_c_werror_flag
4197 cat >conftest.$ac_ext <<_ACEOF
4200 cat confdefs.h >>conftest.$ac_ext
4201 cat >>conftest.$ac_ext <<_ACEOF
4202 /* end confdefs.h. */
4212 rm -f conftest.$ac_objext
4213 if { (ac_try="$ac_compile"
4215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216 *) ac_try_echo=$ac_try;;
4218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4219 (eval "$ac_compile") 2>conftest.er1
4221 grep -v '^ *+' conftest.er1 >conftest.err
4223 cat conftest.err >&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } &&
4226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4227 { (case "(($ac_try" in
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232 (eval "$ac_try") 2>&5
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; } &&
4236 { ac_try='test -s conftest.$ac_objext'
4237 { (case "(($ac_try" in
4238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239 *) ac_try_echo=$ac_try;;
4241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4242 (eval "$ac_try") 2>&5
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); }; }; then
4248 echo "$as_me: failed program was:" >&5
4249 sed 's/^/| /' conftest.$ac_ext >&5
4254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4261 ac_c_werror_flag=$ac_save_c_werror_flag
4263 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4264 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4265 if test "$ac_test_CFLAGS" = set; then
4266 CFLAGS=$ac_save_CFLAGS
4267 elif test $ac_cv_prog_cc_g = yes; then
4268 if test "$GCC" = yes; then
4274 if test "$GCC" = yes; then
4280 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4281 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4282 if test "${ac_cv_prog_cc_c89+set}" = set; then
4283 echo $ECHO_N "(cached) $ECHO_C" >&6
4285 ac_cv_prog_cc_c89=no
4287 cat >conftest.$ac_ext <<_ACEOF
4290 cat confdefs.h >>conftest.$ac_ext
4291 cat >>conftest.$ac_ext <<_ACEOF
4292 /* end confdefs.h. */
4295 #include <sys/types.h>
4296 #include <sys/stat.h>
4297 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4298 struct buf { int x; };
4299 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4300 static char *e (p, i)
4306 static char *f (char * (*g) (char **, int), char **p, ...)
4311 s = g (p, va_arg (v,int));
4316 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4317 function prototypes and stuff, but not '\xHH' hex character constants.
4318 These don't provoke an error unfortunately, instead are silently treated
4319 as 'x'. The following induces an error, until -std is added to get
4320 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4321 array size at least. It's necessary to write '\x00'==0 to get something
4322 that's true only with -std. */
4323 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4325 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4326 inside strings and character constants. */
4328 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4330 int test (int i, double x);
4331 struct s1 {int (*f) (int a);};
4332 struct s2 {int (*f) (double a);};
4333 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4339 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4344 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4345 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4347 CC="$ac_save_CC $ac_arg"
4348 rm -f conftest.$ac_objext
4349 if { (ac_try="$ac_compile"
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_compile") 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); } &&
4362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4363 { (case "(($ac_try" in
4364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365 *) ac_try_echo=$ac_try;;
4367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4368 (eval "$ac_try") 2>&5
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); }; } &&
4372 { ac_try='test -s conftest.$ac_objext'
4373 { (case "(($ac_try" in
4374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4375 *) ac_try_echo=$ac_try;;
4377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4378 (eval "$ac_try") 2>&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); }; }; then
4382 ac_cv_prog_cc_c89=$ac_arg
4384 echo "$as_me: failed program was:" >&5
4385 sed 's/^/| /' conftest.$ac_ext >&5
4390 rm -f core conftest.err conftest.$ac_objext
4391 test "x$ac_cv_prog_cc_c89" != "xno" && break
4393 rm -f conftest.$ac_ext
4398 case "x$ac_cv_prog_cc_c89" in
4400 { echo "$as_me:$LINENO: result: none needed" >&5
4401 echo "${ECHO_T}none needed" >&6; } ;;
4403 { echo "$as_me:$LINENO: result: unsupported" >&5
4404 echo "${ECHO_T}unsupported" >&6; } ;;
4406 CC="$CC $ac_cv_prog_cc_c89"
4407 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4408 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4413 ac_cpp='$CPP $CPPFLAGS'
4414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4419 ac_cpp='$CPP $CPPFLAGS'
4420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4423 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4424 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4425 # On Suns, sometimes $CPP names a directory.
4426 if test -n "$CPP" && test -d "$CPP"; then
4429 if test -z "$CPP"; then
4430 if test "${ac_cv_prog_CPP+set}" = set; then
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
4433 # Double quotes because CPP needs to be expanded
4434 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4437 for ac_c_preproc_warn_flag in '' yes
4439 # Use a header file that comes with gcc, so configuring glibc
4440 # with a fresh cross-compiler works.
4441 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4442 # <limits.h> exists even on freestanding compilers.
4443 # On the NeXT, cc -E runs the code through the compiler's parser,
4444 # not just through cpp. "Syntax error" is here to catch this case.
4445 cat >conftest.$ac_ext <<_ACEOF
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h. */
4452 # include <limits.h>
4454 # include <assert.h>
4458 if { (ac_try="$ac_cpp conftest.$ac_ext"
4460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4461 *) ac_try_echo=$ac_try;;
4463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4464 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4466 grep -v '^ *+' conftest.er1 >conftest.err
4468 cat conftest.err >&5
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); } >/dev/null; then
4471 if test -s conftest.err; then
4472 ac_cpp_err=$ac_c_preproc_warn_flag
4473 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4480 if test -z "$ac_cpp_err"; then
4483 echo "$as_me: failed program was:" >&5
4484 sed 's/^/| /' conftest.$ac_ext >&5
4486 # Broken: fails on valid input.
4490 rm -f conftest.err conftest.$ac_ext
4492 # OK, works on sane cases. Now check whether nonexistent headers
4493 # can be detected and how.
4494 cat >conftest.$ac_ext <<_ACEOF
4497 cat confdefs.h >>conftest.$ac_ext
4498 cat >>conftest.$ac_ext <<_ACEOF
4499 /* end confdefs.h. */
4500 #include <ac_nonexistent.h>
4502 if { (ac_try="$ac_cpp conftest.$ac_ext"
4504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4505 *) ac_try_echo=$ac_try;;
4507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4508 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4510 grep -v '^ *+' conftest.er1 >conftest.err
4512 cat conftest.err >&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); } >/dev/null; then
4515 if test -s conftest.err; then
4516 ac_cpp_err=$ac_c_preproc_warn_flag
4517 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4524 if test -z "$ac_cpp_err"; then
4525 # Broken: success on invalid input.
4528 echo "$as_me: failed program was:" >&5
4529 sed 's/^/| /' conftest.$ac_ext >&5
4531 # Passes both tests.
4536 rm -f conftest.err conftest.$ac_ext
4539 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4540 rm -f conftest.err conftest.$ac_ext
4541 if $ac_preproc_ok; then
4553 { echo "$as_me:$LINENO: result: $CPP" >&5
4554 echo "${ECHO_T}$CPP" >&6; }
4556 for ac_c_preproc_warn_flag in '' yes
4558 # Use a header file that comes with gcc, so configuring glibc
4559 # with a fresh cross-compiler works.
4560 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4561 # <limits.h> exists even on freestanding compilers.
4562 # On the NeXT, cc -E runs the code through the compiler's parser,
4563 # not just through cpp. "Syntax error" is here to catch this case.
4564 cat >conftest.$ac_ext <<_ACEOF
4567 cat confdefs.h >>conftest.$ac_ext
4568 cat >>conftest.$ac_ext <<_ACEOF
4569 /* end confdefs.h. */
4571 # include <limits.h>
4573 # include <assert.h>
4577 if { (ac_try="$ac_cpp conftest.$ac_ext"
4579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4580 *) ac_try_echo=$ac_try;;
4582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4585 grep -v '^ *+' conftest.er1 >conftest.err
4587 cat conftest.err >&5
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); } >/dev/null; then
4590 if test -s conftest.err; then
4591 ac_cpp_err=$ac_c_preproc_warn_flag
4592 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4599 if test -z "$ac_cpp_err"; then
4602 echo "$as_me: failed program was:" >&5
4603 sed 's/^/| /' conftest.$ac_ext >&5
4605 # Broken: fails on valid input.
4609 rm -f conftest.err conftest.$ac_ext
4611 # OK, works on sane cases. Now check whether nonexistent headers
4612 # can be detected and how.
4613 cat >conftest.$ac_ext <<_ACEOF
4616 cat confdefs.h >>conftest.$ac_ext
4617 cat >>conftest.$ac_ext <<_ACEOF
4618 /* end confdefs.h. */
4619 #include <ac_nonexistent.h>
4621 if { (ac_try="$ac_cpp conftest.$ac_ext"
4623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4624 *) ac_try_echo=$ac_try;;
4626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4629 grep -v '^ *+' conftest.er1 >conftest.err
4631 cat conftest.err >&5
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); } >/dev/null; then
4634 if test -s conftest.err; then
4635 ac_cpp_err=$ac_c_preproc_warn_flag
4636 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4643 if test -z "$ac_cpp_err"; then
4644 # Broken: success on invalid input.
4647 echo "$as_me: failed program was:" >&5
4648 sed 's/^/| /' conftest.$ac_ext >&5
4650 # Passes both tests.
4655 rm -f conftest.err conftest.$ac_ext
4658 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4659 rm -f conftest.err conftest.$ac_ext
4660 if $ac_preproc_ok; then
4663 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4664 See \`config.log' for more details." >&5
4665 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4666 See \`config.log' for more details." >&2;}
4667 { (exit 1); exit 1; }; }
4671 ac_cpp='$CPP $CPPFLAGS'
4672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4677 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4678 if test -f "$ac_dir/install-sh"; then
4680 ac_install_sh="$ac_aux_dir/install-sh -c"
4682 elif test -f "$ac_dir/install.sh"; then
4684 ac_install_sh="$ac_aux_dir/install.sh -c"
4686 elif test -f "$ac_dir/shtool"; then
4688 ac_install_sh="$ac_aux_dir/shtool install -c"
4692 if test -z "$ac_aux_dir"; then
4693 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4694 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4695 { (exit 1); exit 1; }; }
4698 # These three variables are undocumented and unsupported,
4699 # and are intended to be withdrawn in a future Autoconf release.
4700 # They can cause serious problems if a builder's source tree is in a directory
4701 # whose full name contains unusual characters.
4702 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4703 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4704 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4707 # Find a good install program. We prefer a C program (faster),
4708 # so one script is as good as another. But avoid the broken or
4709 # incompatible versions:
4710 # SysV /etc/install, /usr/sbin/install
4711 # SunOS /usr/etc/install
4712 # IRIX /sbin/install
4714 # AmigaOS /C/install, which installs bootblocks on floppy discs
4715 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4716 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4717 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4718 # OS/2's system install, which has a completely different semantic
4719 # ./install, which can be erroneously created by make from ./install.sh.
4720 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4721 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4722 if test -z "$INSTALL"; then
4723 if test "${ac_cv_path_install+set}" = set; then
4724 echo $ECHO_N "(cached) $ECHO_C" >&6
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730 test -z "$as_dir" && as_dir=.
4731 # Account for people who put trailing slashes in PATH elements.
4733 ./ | .// | /cC/* | \
4734 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4735 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4738 # OSF1 and SCO ODT 3.0 have their own names for install.
4739 # Don't use installbsd from OSF since it installs stuff as root
4741 for ac_prog in ginstall scoinst install; do
4742 for ac_exec_ext in '' $ac_executable_extensions; do
4743 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
4744 if test $ac_prog = install &&
4745 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4746 # AIX install. It has an incompatible calling convention.
4748 elif test $ac_prog = install &&
4749 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4750 # program-specific install script used by HP pwplus--don't use.
4753 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4766 if test "${ac_cv_path_install+set}" = set; then
4767 INSTALL=$ac_cv_path_install
4769 # As a last resort, use the slow shell script. Don't cache a
4770 # value for INSTALL within a source directory, because that will
4771 # break other packages using the cache if that directory is
4772 # removed, or if the value is a relative name.
4773 INSTALL=$ac_install_sh
4776 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4777 echo "${ECHO_T}$INSTALL" >&6; }
4779 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4780 # It thinks the first close brace ends the variable substitution.
4781 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4783 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4785 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4787 if test -n "$ac_tool_prefix"; then
4788 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4789 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4792 if test "${ac_cv_prog_RANLIB+set}" = set; then
4793 echo $ECHO_N "(cached) $ECHO_C" >&6
4795 if test -n "$RANLIB"; then
4796 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802 test -z "$as_dir" && as_dir=.
4803 for ac_exec_ext in '' $ac_executable_extensions; do
4804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4805 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4815 RANLIB=$ac_cv_prog_RANLIB
4816 if test -n "$RANLIB"; then
4817 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4818 echo "${ECHO_T}$RANLIB" >&6; }
4820 { echo "$as_me:$LINENO: result: no" >&5
4821 echo "${ECHO_T}no" >&6; }
4826 if test -z "$ac_cv_prog_RANLIB"; then
4827 ac_ct_RANLIB=$RANLIB
4828 # Extract the first word of "ranlib", so it can be a program name with args.
4829 set dummy ranlib; ac_word=$2
4830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4832 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4833 echo $ECHO_N "(cached) $ECHO_C" >&6
4835 if test -n "$ac_ct_RANLIB"; then
4836 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4842 test -z "$as_dir" && as_dir=.
4843 for ac_exec_ext in '' $ac_executable_extensions; do
4844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4845 ac_cv_prog_ac_ct_RANLIB="ranlib"
4846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4855 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4856 if test -n "$ac_ct_RANLIB"; then
4857 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4858 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4860 { echo "$as_me:$LINENO: result: no" >&5
4861 echo "${ECHO_T}no" >&6; }
4864 if test "x$ac_ct_RANLIB" = x; then
4867 case $cross_compiling:$ac_tool_warned in
4869 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4870 whose name does not start with the host triplet. If you think this
4871 configuration is useful to you, please write to autoconf@gnu.org." >&5
4872 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4873 whose name does not start with the host triplet. If you think this
4874 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4875 ac_tool_warned=yes ;;
4877 RANLIB=$ac_ct_RANLIB
4880 RANLIB="$ac_cv_prog_RANLIB"
4883 # Extract the first word of "autoconf", so it can be a program name with args.
4884 set dummy autoconf; ac_word=$2
4885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4887 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
4888 echo $ECHO_N "(cached) $ECHO_C" >&6
4890 if test -n "$AUTOCONF"; then
4891 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
4893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897 test -z "$as_dir" && as_dir=.
4898 for ac_exec_ext in '' $ac_executable_extensions; do
4899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4900 ac_cv_prog_AUTOCONF="autoconf"
4901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4908 test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF=":"
4911 AUTOCONF=$ac_cv_prog_AUTOCONF
4912 if test -n "$AUTOCONF"; then
4913 { echo "$as_me:$LINENO: result: $AUTOCONF" >&5
4914 echo "${ECHO_T}$AUTOCONF" >&6; }
4916 { echo "$as_me:$LINENO: result: no" >&5
4917 echo "${ECHO_T}no" >&6; }
4921 # Extract the first word of "strip", so it can be a program name with args.
4922 set dummy strip; ac_word=$2
4923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4925 if test "${ac_cv_prog_STRIP+set}" = set; then
4926 echo $ECHO_N "(cached) $ECHO_C" >&6
4928 if test -n "$STRIP"; then
4929 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935 test -z "$as_dir" && as_dir=.
4936 for ac_exec_ext in '' $ac_executable_extensions; do
4937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4938 ac_cv_prog_STRIP="strip"
4939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4946 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4949 STRIP=$ac_cv_prog_STRIP
4950 if test -n "$STRIP"; then
4951 { echo "$as_me:$LINENO: result: $STRIP" >&5
4952 echo "${ECHO_T}$STRIP" >&6; }
4954 { echo "$as_me:$LINENO: result: no" >&5
4955 echo "${ECHO_T}no" >&6; }
4959 # Extract the first word of "as", so it can be a program name with args.
4960 set dummy as; ac_word=$2
4961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4963 if test "${ac_cv_prog_AS+set}" = set; then
4964 echo $ECHO_N "(cached) $ECHO_C" >&6
4966 if test -n "$AS"; then
4967 ac_cv_prog_AS="$AS" # Let the user override the test.
4969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973 test -z "$as_dir" && as_dir=.
4974 for ac_exec_ext in '' $ac_executable_extensions; do
4975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4984 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS=":"
4988 if test -n "$AS"; then
4989 { echo "$as_me:$LINENO: result: $AS" >&5
4990 echo "${ECHO_T}$AS" >&6; }
4992 { echo "$as_me:$LINENO: result: no" >&5
4993 echo "${ECHO_T}no" >&6; }
4997 # Extract the first word of "cp", so it can be a program name with args.
4998 set dummy cp; ac_word=$2
4999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5001 if test "${ac_cv_prog_CP+set}" = set; then
5002 echo $ECHO_N "(cached) $ECHO_C" >&6
5004 if test -n "$CP"; then
5005 ac_cv_prog_CP="$CP" # Let the user override the test.
5007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011 test -z "$as_dir" && as_dir=.
5012 for ac_exec_ext in '' $ac_executable_extensions; do
5013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5022 test -z "$ac_cv_prog_CP" && ac_cv_prog_CP=":"
5026 if test -n "$CP"; then
5027 { echo "$as_me:$LINENO: result: $CP" >&5
5028 echo "${ECHO_T}$CP" >&6; }
5030 { echo "$as_me:$LINENO: result: no" >&5
5031 echo "${ECHO_T}no" >&6; }
5037 ac_cpp='$CPP $CPPFLAGS'
5038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5044 # Checking for header files.
5045 # ===========================================================================
5048 for ac_header in sys/socket.h
5050 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5055 echo $ECHO_N "(cached) $ECHO_C" >&6
5057 ac_res=`eval echo '${'$as_ac_Header'}'`
5058 { echo "$as_me:$LINENO: result: $ac_res" >&5
5059 echo "${ECHO_T}$ac_res" >&6; }
5061 # Is the header compilable?
5062 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5063 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5064 cat >conftest.$ac_ext <<_ACEOF
5067 cat confdefs.h >>conftest.$ac_ext
5068 cat >>conftest.$ac_ext <<_ACEOF
5069 /* end confdefs.h. */
5070 $ac_includes_default
5071 #include <$ac_header>
5073 rm -f conftest.$ac_objext
5074 if { (ac_try="$ac_compile"
5076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5077 *) ac_try_echo=$ac_try;;
5079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5080 (eval "$ac_compile") 2>conftest.er1
5082 grep -v '^ *+' conftest.er1 >conftest.err
5084 cat conftest.err >&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); } &&
5087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5088 { (case "(($ac_try" in
5089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5090 *) ac_try_echo=$ac_try;;
5092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5093 (eval "$ac_try") 2>&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); }; } &&
5097 { ac_try='test -s conftest.$ac_objext'
5098 { (case "(($ac_try" in
5099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5100 *) ac_try_echo=$ac_try;;
5102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5103 (eval "$ac_try") 2>&5
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); }; }; then
5107 ac_header_compiler=yes
5109 echo "$as_me: failed program was:" >&5
5110 sed 's/^/| /' conftest.$ac_ext >&5
5112 ac_header_compiler=no
5115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5116 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5117 echo "${ECHO_T}$ac_header_compiler" >&6; }
5119 # Is the header present?
5120 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5121 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5122 cat >conftest.$ac_ext <<_ACEOF
5125 cat confdefs.h >>conftest.$ac_ext
5126 cat >>conftest.$ac_ext <<_ACEOF
5127 /* end confdefs.h. */
5128 #include <$ac_header>
5130 if { (ac_try="$ac_cpp conftest.$ac_ext"
5132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5133 *) ac_try_echo=$ac_try;;
5135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5138 grep -v '^ *+' conftest.er1 >conftest.err
5140 cat conftest.err >&5
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); } >/dev/null; then
5143 if test -s conftest.err; then
5144 ac_cpp_err=$ac_c_preproc_warn_flag
5145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5152 if test -z "$ac_cpp_err"; then
5153 ac_header_preproc=yes
5155 echo "$as_me: failed program was:" >&5
5156 sed 's/^/| /' conftest.$ac_ext >&5
5158 ac_header_preproc=no
5161 rm -f conftest.err conftest.$ac_ext
5162 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5163 echo "${ECHO_T}$ac_header_preproc" >&6; }
5165 # So? What about this header?
5166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5168 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5169 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5171 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5172 ac_header_preproc=yes
5175 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5176 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5177 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5178 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5179 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5180 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5181 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5182 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5184 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5185 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5186 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5190 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5193 echo $ECHO_N "(cached) $ECHO_C" >&6
5195 eval "$as_ac_Header=\$ac_header_preproc"
5197 ac_res=`eval echo '${'$as_ac_Header'}'`
5198 { echo "$as_me:$LINENO: result: $ac_res" >&5
5199 echo "${ECHO_T}$ac_res" >&6; }
5202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5203 cat >>confdefs.h <<_ACEOF
5204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5206 socket_type=sys_socket_h
5211 if test $socket_type = unknown; then
5213 for ac_header in winsock2.h
5215 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5217 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5222 ac_res=`eval echo '${'$as_ac_Header'}'`
5223 { echo "$as_me:$LINENO: result: $ac_res" >&5
5224 echo "${ECHO_T}$ac_res" >&6; }
5226 # Is the header compilable?
5227 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5228 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5229 cat >conftest.$ac_ext <<_ACEOF
5232 cat confdefs.h >>conftest.$ac_ext
5233 cat >>conftest.$ac_ext <<_ACEOF
5234 /* end confdefs.h. */
5235 $ac_includes_default
5236 #include <$ac_header>
5238 rm -f conftest.$ac_objext
5239 if { (ac_try="$ac_compile"
5241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5242 *) ac_try_echo=$ac_try;;
5244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5245 (eval "$ac_compile") 2>conftest.er1
5247 grep -v '^ *+' conftest.er1 >conftest.err
5249 cat conftest.err >&5
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); } &&
5252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5253 { (case "(($ac_try" in
5254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5255 *) ac_try_echo=$ac_try;;
5257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5258 (eval "$ac_try") 2>&5
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); }; } &&
5262 { ac_try='test -s conftest.$ac_objext'
5263 { (case "(($ac_try" in
5264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5265 *) ac_try_echo=$ac_try;;
5267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5268 (eval "$ac_try") 2>&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); }; }; then
5272 ac_header_compiler=yes
5274 echo "$as_me: failed program was:" >&5
5275 sed 's/^/| /' conftest.$ac_ext >&5
5277 ac_header_compiler=no
5280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5281 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5282 echo "${ECHO_T}$ac_header_compiler" >&6; }
5284 # Is the header present?
5285 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5286 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5287 cat >conftest.$ac_ext <<_ACEOF
5290 cat confdefs.h >>conftest.$ac_ext
5291 cat >>conftest.$ac_ext <<_ACEOF
5292 /* end confdefs.h. */
5293 #include <$ac_header>
5295 if { (ac_try="$ac_cpp conftest.$ac_ext"
5297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5298 *) ac_try_echo=$ac_try;;
5300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5301 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5303 grep -v '^ *+' conftest.er1 >conftest.err
5305 cat conftest.err >&5
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); } >/dev/null; then
5308 if test -s conftest.err; then
5309 ac_cpp_err=$ac_c_preproc_warn_flag
5310 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5317 if test -z "$ac_cpp_err"; then
5318 ac_header_preproc=yes
5320 echo "$as_me: failed program was:" >&5
5321 sed 's/^/| /' conftest.$ac_ext >&5
5323 ac_header_preproc=no
5326 rm -f conftest.err conftest.$ac_ext
5327 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5328 echo "${ECHO_T}$ac_header_preproc" >&6; }
5330 # So? What about this header?
5331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5334 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5336 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5337 ac_header_preproc=yes
5340 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5341 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5342 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5343 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5344 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5345 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5346 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5347 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5350 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5351 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5355 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5358 echo $ECHO_N "(cached) $ECHO_C" >&6
5360 eval "$as_ac_Header=\$ac_header_preproc"
5362 ac_res=`eval echo '${'$as_ac_Header'}'`
5363 { echo "$as_me:$LINENO: result: $ac_res" >&5
5364 echo "${ECHO_T}$ac_res" >&6; }
5367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5368 cat >>confdefs.h <<_ACEOF
5369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5371 socket_type=winsock2_h
5379 # Checking for functions/libs
5380 # ===========================================================================
5381 if test $socket_type = winsock2_h; then
5382 LIBS="-lws2_32 $LIBS"
5385 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5386 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
5387 if test "${ac_cv_lib_socket_socket+set}" = set; then
5388 echo $ECHO_N "(cached) $ECHO_C" >&6
5390 ac_check_lib_save_LIBS=$LIBS
5391 LIBS="-lsocket $LIBS"
5392 cat >conftest.$ac_ext <<_ACEOF
5395 cat confdefs.h >>conftest.$ac_ext
5396 cat >>conftest.$ac_ext <<_ACEOF
5397 /* end confdefs.h. */
5399 /* Override any GCC internal prototype to avoid an error.
5400 Use char because int might match the return type of a GCC
5401 builtin and then its argument prototype would still apply. */
5414 rm -f conftest.$ac_objext conftest$ac_exeext
5415 if { (ac_try="$ac_link"
5417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5418 *) ac_try_echo=$ac_try;;
5420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5421 (eval "$ac_link") 2>conftest.er1
5423 grep -v '^ *+' conftest.er1 >conftest.err
5425 cat conftest.err >&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); } &&
5428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5429 { (case "(($ac_try" in
5430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5431 *) ac_try_echo=$ac_try;;
5433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5434 (eval "$ac_try") 2>&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); }; } &&
5438 { ac_try='test -s conftest$ac_exeext'
5439 { (case "(($ac_try" in
5440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5441 *) ac_try_echo=$ac_try;;
5443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5444 (eval "$ac_try") 2>&5
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); }; }; then
5448 ac_cv_lib_socket_socket=yes
5450 echo "$as_me: failed program was:" >&5
5451 sed 's/^/| /' conftest.$ac_ext >&5
5453 ac_cv_lib_socket_socket=no
5456 rm -f core conftest.err conftest.$ac_objext \
5457 conftest$ac_exeext conftest.$ac_ext
5458 LIBS=$ac_check_lib_save_LIBS
5460 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5461 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
5462 if test $ac_cv_lib_socket_socket = yes; then
5463 cat >>confdefs.h <<_ACEOF
5464 #define HAVE_LIBSOCKET 1
5467 LIBS="-lsocket $LIBS"
5472 { echo "$as_me:$LINENO: checking for xdr_short in -lnsl" >&5
5473 echo $ECHO_N "checking for xdr_short in -lnsl... $ECHO_C" >&6; }
5474 if test "${ac_cv_lib_nsl_xdr_short+set}" = set; then
5475 echo $ECHO_N "(cached) $ECHO_C" >&6
5477 ac_check_lib_save_LIBS=$LIBS
5479 cat >conftest.$ac_ext <<_ACEOF
5482 cat confdefs.h >>conftest.$ac_ext
5483 cat >>conftest.$ac_ext <<_ACEOF
5484 /* end confdefs.h. */
5486 /* Override any GCC internal prototype to avoid an error.
5487 Use char because int might match the return type of a GCC
5488 builtin and then its argument prototype would still apply. */
5496 return xdr_short ();
5501 rm -f conftest.$ac_objext conftest$ac_exeext
5502 if { (ac_try="$ac_link"
5504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5505 *) ac_try_echo=$ac_try;;
5507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5508 (eval "$ac_link") 2>conftest.er1
5510 grep -v '^ *+' conftest.er1 >conftest.err
5512 cat conftest.err >&5
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); } &&
5515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5516 { (case "(($ac_try" in
5517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5518 *) ac_try_echo=$ac_try;;
5520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5521 (eval "$ac_try") 2>&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); }; } &&
5525 { ac_try='test -s conftest$ac_exeext'
5526 { (case "(($ac_try" in
5527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5528 *) ac_try_echo=$ac_try;;
5530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5531 (eval "$ac_try") 2>&5
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); }; }; then
5535 ac_cv_lib_nsl_xdr_short=yes
5537 echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.$ac_ext >&5
5540 ac_cv_lib_nsl_xdr_short=no
5543 rm -f core conftest.err conftest.$ac_objext \
5544 conftest$ac_exeext conftest.$ac_ext
5545 LIBS=$ac_check_lib_save_LIBS
5547 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_xdr_short" >&5
5548 echo "${ECHO_T}$ac_cv_lib_nsl_xdr_short" >&6; }
5549 if test $ac_cv_lib_nsl_xdr_short = yes; then
5550 cat >>confdefs.h <<_ACEOF
5551 #define HAVE_LIBNSL 1
5562 # ===========================================================================
5564 # adl_DD_COPT macro checks if the compiler specified as the 1st parameter
5565 # supports option specified as the 2nd parameter
5566 # For example: DD_CPORT(CXX, fPIC)
5570 # This macro expands DIR and assigns it to RET.
5571 # If DIR is NONE, then it's replaced by DEFAULT.
5573 # Based on AC_DEFINE_DIR
5577 # adl_EXPAND(prefix, "/usr/local", expanded_prefix)
5581 # adl_NORMALIZE_PATH
5583 # - empty paths are changed to '.'
5584 # - trailing slashes are removed
5585 # - repeated slashes are squeezed except a leading doubled slash '//'
5586 # (which might indicate a networked disk on some OS).
5589 # REFERENCE_STRING is used to turn '/' into '\' and vice-versa: if
5590 # REFERENCE_STRING contains some backslashes, all slashes and backslashes
5591 # are turned into backslashes, otherwise they are all turned into slashes.
5593 # This makes processing of DOS filenames quite easier, because you can turn a
5594 # filename to the Unix notation, make your processing, and turn it back to
5595 # original notation.
5603 # Checking characteristics of compilers and other programs
5604 # ===========================================================================
5605 { echo "$as_me:$LINENO: checking whether preprocessor accepts -MM or -M" >&5
5606 echo $ECHO_N "checking whether preprocessor accepts -MM or -M... $ECHO_C" >&6; }
5607 if test "${sdcc_cv_MM+set}" = set; then
5608 echo $ECHO_N "(cached) $ECHO_C" >&6
5610 echo "#include <stdio.h>" >_test_.c
5612 $CPP -v -MM _test_.c 1>&5 2>&5
5613 if test "$?" = "0"; then
5620 { echo "$as_me:$LINENO: result: $sdcc_cv_MM" >&5
5621 echo "${ECHO_T}$sdcc_cv_MM" >&6; }
5625 # This is the first time when CFLAGS are set/modified!!
5627 { echo "$as_me:$LINENO: checking whether $CC accepts -ggdb" >&5
5628 echo $ECHO_N "checking whether $CC accepts -ggdb... $ECHO_C" >&6; }
5629 if test "${sdcc_cv_CCggdb+set}" = set; then
5630 echo $ECHO_N "(cached) $ECHO_C" >&6
5636 $CC -v -ggdb -c _test_.c 1>&5 2>&5
5637 if test "$?" = "0"; then
5638 sdcc_cv_CCggdb="yes"
5642 rm -f _test_.* a.out
5644 { echo "$as_me:$LINENO: result: $sdcc_cv_CCggdb" >&5
5645 echo "${ECHO_T}$sdcc_cv_CCggdb" >&6; }
5647 if test "$sdcc_cv_CCggdb" = "yes"; then
5648 CFLAGS="-ggdb ${CFLAGS}"
5652 { echo "$as_me:$LINENO: checking whether $CC accepts -pipe" >&5
5653 echo $ECHO_N "checking whether $CC accepts -pipe... $ECHO_C" >&6; }
5654 if test "${sdcc_cv_CCpipe+set}" = set; then
5655 echo $ECHO_N "(cached) $ECHO_C" >&6
5661 $CC -v -pipe -c _test_.c 1>&5 2>&5
5662 if test "$?" = "0"; then
5663 sdcc_cv_CCpipe="yes"
5667 rm -f _test_.* a.out
5669 { echo "$as_me:$LINENO: result: $sdcc_cv_CCpipe" >&5
5670 echo "${ECHO_T}$sdcc_cv_CCpipe" >&6; }
5672 if test "$sdcc_cv_CCpipe" = "yes"; then
5673 CFLAGS="-pipe $CFLAGS"
5677 # Set standard installation paths
5678 # ===========================================================================
5680 # In the Makefiles we need paths with '/' as directory separator, even if
5681 # crosscompiling for Win32.
5682 # And we want to preserve the macros (e.g. ${prefix}) in the Makefiles.
5683 # The variables in the Makefiles are replaced by AC_SUBST()
5685 # In sdccconf.h the '/' in paths can be replaced by "\\" (normalized), if
5687 # The macros are expanded for the header.
5688 # The variables in the header are replaced by AC_*DEFINE*()
5689 # sdccconf_h_dir_separator contains a backslash.
5691 if test "x${sdccconf_h_dir_separator}" = "x"; then
5692 sdccconf_h_dir_separator="/"
5699 # *nix default: "sdcc/lib"
5701 if test "${lib_dir_suffix}" = ""; then
5702 lib_dir_suffix="sdcc/lib"
5711 cat >>confdefs.h <<_ACEOF
5712 #define DIR_SEPARATOR_STRING "${sdccconf_h_dir_separator}"
5717 # default: "${prefix}/share"
5719 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5720 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5722 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
5723 ac_expand=`eval echo $ac_expand`
5724 expanded_datadir=`eval echo $ac_expand`
5727 ac_ndu=$expanded_datadir
5730 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
5733 case $sdccconf_h_dir_separator in
5735 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
5736 s,^[\\/],\\\\\\\\,'` ;;
5738 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
5740 cat >>confdefs.h <<_ACEOF
5741 #define DATADIR "${ac_ndu}"
5747 norm_lib_dir_suffix=${lib_dir_suffix}
5748 case ":$norm_lib_dir_suffix:" in
5749 ::) norm_lib_dir_suffix='.' ;;
5750 :*[\\/]:) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,[\\/]*$,,'` ;;
5753 case $sdccconf_h_dir_separator in
5755 *\\*) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
5756 s,^[\\/],\\\\\\\\,'` ;;
5758 *) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
5760 cat >>confdefs.h <<_ACEOF
5761 #define LIB_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_lib_dir_suffix}"
5766 # Generating output files
5767 # ===========================================================================
5768 ac_config_files="$ac_config_files Makefile"
5770 cat >confcache <<\_ACEOF
5771 # This file is a shell script that caches the results of configure
5772 # tests run on this system so they can be shared between configure
5773 # scripts and configure runs, see configure's option --config-cache.
5774 # It is not useful on other systems. If it contains results you don't
5775 # want to keep, you may remove or edit it.
5777 # config.status only pays attention to the cache file if you give it
5778 # the --recheck option to rerun configure.
5780 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5781 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5786 # The following way of writing the cache mishandles newlines in values,
5787 # but we know of no workaround that is simple, portable, and efficient.
5788 # So, we kill variables containing newlines.
5789 # Ultrix sh set writes to stderr and can't be redirected directly,
5790 # and sets the high bit in the cache file unless we assign to the vars.
5792 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5793 eval ac_val=\$$ac_var
5797 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
5798 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
5801 _ | IFS | as_nl) ;; #(
5802 *) $as_unset $ac_var ;;
5808 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5809 *${as_nl}ac_space=\ *)
5810 # `set' does not quote correctly, so add quotes (double-quote
5811 # substitution turns \\\\ into \\, and sed turns \\ into \).
5814 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5817 # `set' quotes correctly as required by POSIX, so do not add quotes.
5818 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5827 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5829 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5831 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5832 if test -w "$cache_file"; then
5833 test "x$cache_file" != "x/dev/null" &&
5834 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
5835 echo "$as_me: updating cache $cache_file" >&6;}
5836 cat confcache >$cache_file
5838 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5839 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5844 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5845 # Let make expand exec_prefix.
5846 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5848 DEFS=-DHAVE_CONFIG_H
5852 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5853 # 1. Remove the extension, and $U if already installed.
5854 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5855 ac_i=`echo "$ac_i" | sed "$ac_script"`
5856 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5857 # will be set to the directory where LIBOBJS objects are built.
5858 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5859 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
5863 LTLIBOBJS=$ac_ltlibobjs
5867 : ${CONFIG_STATUS=./config.status}
5868 ac_clean_files_save=$ac_clean_files
5869 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5870 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5871 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5872 cat >$CONFIG_STATUS <<_ACEOF
5874 # Generated by $as_me.
5875 # Run this file to recreate the current configuration.
5876 # Compiler output produced by configure, useful for debugging
5877 # configure, is in config.log if it exists.
5882 SHELL=\${CONFIG_SHELL-$SHELL}
5885 cat >>$CONFIG_STATUS <<\_ACEOF
5886 ## --------------------- ##
5887 ## M4sh Initialization. ##
5888 ## --------------------- ##
5890 # Be Bourne compatible
5891 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5894 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5895 # is contrary to our usage. Disable this feature.
5896 alias -g '${1+"$@"}'='"$@"'
5897 setopt NO_GLOB_SUBST
5899 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
5901 BIN_SH=xpg4; export BIN_SH # for Tru64
5902 DUALCASE=1; export DUALCASE # for MKS sh
5906 # Avoid depending upon Character Ranges.
5907 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5908 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5909 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5910 as_cr_digits='0123456789'
5911 as_cr_alnum=$as_cr_Letters$as_cr_digits
5913 # The user is always right.
5914 if test "${PATH_SEPARATOR+set}" != set; then
5915 echo "#! /bin/sh" >conf$$.sh
5916 echo "exit 0" >>conf$$.sh
5918 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5926 # Support unset when possible.
5927 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5935 # We need space, tab and new line, in precisely that order. Quoting is
5936 # there to prevent editors from complaining about space-tab.
5937 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5938 # splitting by setting IFS to empty value.)
5943 # Find who we are. Look in the path if we contain no directory separator.
5945 *[\\/]* ) as_myself=$0 ;;
5946 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950 test -z "$as_dir" && as_dir=.
5951 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5957 # We did not find ourselves, most probably we were run as `sh COMMAND'
5958 # in which case we are not to be found in the path.
5959 if test "x$as_myself" = x; then
5962 if test ! -f "$as_myself"; then
5963 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5964 { (exit 1); exit 1; }
5967 # Work around bugs in pre-3.0 UWIN ksh.
5968 for as_var in ENV MAIL MAILPATH
5969 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5977 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5978 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5979 LC_TELEPHONE LC_TIME
5981 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5982 eval $as_var=C; export $as_var
5984 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5988 # Required to use basename.
5989 if expr a : '\(a\)' >/dev/null 2>&1 &&
5990 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5996 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5997 as_basename=basename
6003 # Name of the executable.
6004 as_me=`$as_basename -- "$0" ||
6005 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6006 X"$0" : 'X\(//\)$' \| \
6007 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6009 sed '/^.*\/\([^/][^/]*\)\/*$/{
6030 test "x$as_lineno_1" != "x$as_lineno_2" &&
6031 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
6033 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6034 # uniformly replaced by the line number. The first 'sed' inserts a
6035 # line-number line after each line using $LINENO; the second 'sed'
6036 # does the real work. The second script uses 'N' to pair each
6037 # line-number line with the line containing $LINENO, and appends
6038 # trailing '-' during substitution so that $LINENO is not a special
6040 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6041 # scripts with optimization help from Paolo Bonzini. Blame Lee
6042 # E. McMahon (1931-1989) for sed's syntax. :-)
6054 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6058 chmod +x "$as_me.lineno" ||
6059 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
6060 { (exit 1); exit 1; }; }
6062 # Don't try to exec as it changes $[0], causing all sort of problems
6063 # (the dirname of $[0] is not the place where we might find the
6064 # original and so on. Autoconf is especially sensitive to this).
6066 # Exit status is that of the last command.
6071 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6077 ECHO_C= ECHO_N= ECHO_T=
6080 case `echo 'x\c'` in
6081 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6088 if expr a : '\(a\)' >/dev/null 2>&1 &&
6089 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6095 rm -f conf$$ conf$$.exe conf$$.file
6096 if test -d conf$$.dir; then
6097 rm -f conf$$.dir/conf$$.file
6103 if ln -s conf$$.file conf$$ 2>/dev/null; then
6105 # ... but there are two gotchas:
6106 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6107 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6108 # In both cases, we have to default to `cp -p'.
6109 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6111 elif ln conf$$.file conf$$ 2>/dev/null; then
6116 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6117 rmdir conf$$.dir 2>/dev/null
6119 if mkdir -p . 2>/dev/null; then
6122 test -d ./-p && rmdir ./-p
6126 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
6127 # systems may use methods other than mode bits to determine executability.
6128 cat >conf$$.file <<_ASEOF
6132 chmod +x conf$$.file
6133 if test -x conf$$.file >/dev/null 2>&1; then
6134 as_executable_p="test -x"
6140 # Sed expression to map a string onto a valid CPP name.
6141 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6143 # Sed expression to map a string onto a valid variable name.
6144 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6149 # Save the log message, to keep $[0] and so on meaningful, and to
6150 # report actual input values of CONFIG_FILES etc. instead of their
6151 # values after options handling.
6153 This file was extended by $as_me, which was
6154 generated by GNU Autoconf 2.60. Invocation command line was
6156 CONFIG_FILES = $CONFIG_FILES
6157 CONFIG_HEADERS = $CONFIG_HEADERS
6158 CONFIG_LINKS = $CONFIG_LINKS
6159 CONFIG_COMMANDS = $CONFIG_COMMANDS
6162 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6167 cat >>$CONFIG_STATUS <<_ACEOF
6168 # Files that config.status was made for.
6169 config_files="$ac_config_files"
6170 config_headers="$ac_config_headers"
6174 cat >>$CONFIG_STATUS <<\_ACEOF
6176 \`$as_me' instantiates files from templates according to the
6177 current configuration.
6179 Usage: $0 [OPTIONS] [FILE]...
6181 -h, --help print this help, then exit
6182 -V, --version print version number, then exit
6183 -q, --quiet do not print progress messages
6184 -d, --debug don't remove temporary files
6185 --recheck update $as_me by reconfiguring in the same conditions
6186 --file=FILE[:TEMPLATE]
6187 instantiate the configuration file FILE
6188 --header=FILE[:TEMPLATE]
6189 instantiate the configuration header FILE
6191 Configuration files:
6194 Configuration headers:
6197 Report bugs to <bug-autoconf@gnu.org>."
6200 cat >>$CONFIG_STATUS <<_ACEOF
6203 configured by $0, generated by GNU Autoconf 2.60,
6204 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6206 Copyright (C) 2006 Free Software Foundation, Inc.
6207 This config.status script is free software; the Free Software Foundation
6208 gives unlimited permission to copy, distribute and modify it."
6215 cat >>$CONFIG_STATUS <<\_ACEOF
6216 # If no file are specified by the user, then we need to provide default
6217 # value. By we need to know if files were specified by the user.
6223 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6224 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6235 # Handling of the options.
6236 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6238 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6239 echo "$ac_cs_version"; exit ;;
6240 --debug | --debu | --deb | --de | --d | -d )
6242 --file | --fil | --fi | --f )
6244 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6245 ac_need_defaults=false;;
6246 --header | --heade | --head | --hea )
6248 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6249 ac_need_defaults=false;;
6251 # Conflict between --help and --header
6252 { echo "$as_me: error: ambiguous option: $1
6253 Try \`$0 --help' for more information." >&2
6254 { (exit 1); exit 1; }; };;
6255 --help | --hel | -h )
6256 echo "$ac_cs_usage"; exit ;;
6257 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6258 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6262 -*) { echo "$as_me: error: unrecognized option: $1
6263 Try \`$0 --help' for more information." >&2
6264 { (exit 1); exit 1; }; } ;;
6266 *) ac_config_targets="$ac_config_targets $1"
6267 ac_need_defaults=false ;;
6273 ac_configure_extra_args=
6275 if $ac_cs_silent; then
6277 ac_configure_extra_args="$ac_configure_extra_args --silent"
6281 cat >>$CONFIG_STATUS <<_ACEOF
6282 if \$ac_cs_recheck; then
6283 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6286 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6290 cat >>$CONFIG_STATUS <<\_ACEOF
6294 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6295 ## Running $as_me. ##
6301 cat >>$CONFIG_STATUS <<_ACEOF
6304 cat >>$CONFIG_STATUS <<\_ACEOF
6306 # Handling of arguments.
6307 for ac_config_target in $ac_config_targets
6309 case $ac_config_target in
6310 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6311 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6313 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6314 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6315 { (exit 1); exit 1; }; };;
6320 # If the user did not use the arguments to specify the items to instantiate,
6321 # then the envvar interface is used. Set only those that are not.
6322 # We use the long form for the default assignment because of an extremely
6323 # bizarre bug on SunOS 4.1.3.
6324 if $ac_need_defaults; then
6325 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6326 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6329 # Have a temporary directory for convenience. Make it in the build tree
6330 # simply because there is no reason against having it here, and in addition,
6331 # creating and moving files from /tmp can sometimes cause problems.
6332 # Hook for its removal unless debugging.
6333 # Note that there is a small window in which the directory will not be cleaned:
6334 # after its creation but before its name has been assigned to `$tmp'.
6338 trap 'exit_status=$?
6339 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6341 trap '{ (exit 1); exit 1; }' 1 2 13 15
6343 # Create a (secure) tmp directory for tmp files.
6346 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6347 test -n "$tmp" && test -d "$tmp"
6350 tmp=./conf$$-$RANDOM
6351 (umask 077 && mkdir "$tmp")
6354 echo "$me: cannot create a temporary directory in ." >&2
6355 { (exit 1); exit 1; }
6359 # Set up the sed scripts for CONFIG_FILES section.
6362 # No need to generate the scripts if there are no CONFIG_FILES.
6363 # This happens for instance when ./config.status config.h
6364 if test -n "$CONFIG_FILES"; then
6371 for ac_last_try in false false false false false :; do
6372 cat >conf$$subs.sed <<_ACEOF
6373 SHELL!$SHELL$ac_delim
6374 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
6375 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
6376 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
6377 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
6378 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
6379 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
6380 exec_prefix!$exec_prefix$ac_delim
6381 prefix!$prefix$ac_delim
6382 program_transform_name!$program_transform_name$ac_delim
6383 bindir!$bindir$ac_delim
6384 sbindir!$sbindir$ac_delim
6385 libexecdir!$libexecdir$ac_delim
6386 datarootdir!$datarootdir$ac_delim
6387 datadir!$datadir$ac_delim
6388 sysconfdir!$sysconfdir$ac_delim
6389 sharedstatedir!$sharedstatedir$ac_delim
6390 localstatedir!$localstatedir$ac_delim
6391 includedir!$includedir$ac_delim
6392 oldincludedir!$oldincludedir$ac_delim
6393 docdir!$docdir$ac_delim
6394 infodir!$infodir$ac_delim
6395 htmldir!$htmldir$ac_delim
6396 dvidir!$dvidir$ac_delim
6397 pdfdir!$pdfdir$ac_delim
6398 psdir!$psdir$ac_delim
6399 libdir!$libdir$ac_delim
6400 localedir!$localedir$ac_delim
6401 mandir!$mandir$ac_delim
6403 ECHO_C!$ECHO_C$ac_delim
6404 ECHO_N!$ECHO_N$ac_delim
6405 ECHO_T!$ECHO_T$ac_delim
6407 build_alias!$build_alias$ac_delim
6408 host_alias!$host_alias$ac_delim
6409 target_alias!$target_alias$ac_delim
6411 CFLAGS!$CFLAGS$ac_delim
6412 LDFLAGS!$LDFLAGS$ac_delim
6413 CPPFLAGS!$CPPFLAGS$ac_delim
6414 ac_ct_CC!$ac_ct_CC$ac_delim
6415 EXEEXT!$EXEEXT$ac_delim
6416 OBJEXT!$OBJEXT$ac_delim
6419 EGREP!$EGREP$ac_delim
6420 LIBREADLINE!$LIBREADLINE$ac_delim
6421 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
6422 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
6423 INSTALL_DATA!$INSTALL_DATA$ac_delim
6424 RANLIB!$RANLIB$ac_delim
6425 AUTOCONF!$AUTOCONF$ac_delim
6426 STRIP!$STRIP$ac_delim
6429 M_OR_MM!$M_OR_MM$ac_delim
6430 sdccconf_h_dir_separator!$sdccconf_h_dir_separator$ac_delim
6431 lib_dir_suffix!$lib_dir_suffix$ac_delim
6432 LIBOBJS!$LIBOBJS$ac_delim
6433 LTLIBOBJS!$LTLIBOBJS$ac_delim
6436 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 61; then
6438 elif $ac_last_try; then
6439 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6440 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6441 { (exit 1); exit 1; }; }
6443 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6447 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
6448 if test -n "$ac_eof"; then
6449 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
6450 ac_eof=`expr $ac_eof + 1`
6453 cat >>$CONFIG_STATUS <<_ACEOF
6454 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
6455 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
6458 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
6459 s/^/s,@/; s/!/@,|#_!!_#|/
6462 s/'"$ac_delim"'$/,g/; t
6464 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
6465 ' >>$CONFIG_STATUS <conf$$subs.sed
6466 rm -f conf$$subs.sed
6467 cat >>$CONFIG_STATUS <<_ACEOF
6474 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6475 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6476 # trailing colons and then remove the whole line if VPATH becomes empty
6477 # (actually we leave an empty line to preserve line numbers).
6478 if test "x$srcdir" = x.; then
6479 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6483 s/^\([^=]*=[ ]*\):*/\1/
6489 cat >>$CONFIG_STATUS <<\_ACEOF
6490 fi # test -n "$CONFIG_FILES"
6493 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
6496 :[FHLC]) ac_mode=$ac_tag; continue;;
6498 case $ac_mode$ac_tag in
6500 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
6501 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
6502 { (exit 1); exit 1; }; };;
6503 :[FH]-) ac_tag=-:-;;
6504 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6521 -) ac_f="$tmp/stdin";;
6522 *) # Look for the file first in the build tree, then in the source tree
6523 # (if the path is not absolute). The absolute path cannot be DOS-style,
6524 # because $ac_f cannot contain `:'.
6528 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6530 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6531 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6532 { (exit 1); exit 1; }; };;
6534 ac_file_inputs="$ac_file_inputs $ac_f"
6537 # Let's still pretend it is `configure' which instantiates (i.e., don't
6538 # use $as_me), people would be surprised to read:
6539 # /* config.h. Generated by config.status. */
6540 configure_input="Generated from "`IFS=:
6541 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
6542 if test x"$ac_file" != x-; then
6543 configure_input="$ac_file. $configure_input"
6544 { echo "$as_me:$LINENO: creating $ac_file" >&5
6545 echo "$as_me: creating $ac_file" >&6;}
6549 *:-:* | *:-) cat >"$tmp/stdin";;
6554 ac_dir=`$as_dirname -- "$ac_file" ||
6555 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6556 X"$ac_file" : 'X\(//\)[^/]' \| \
6557 X"$ac_file" : 'X\(//\)$' \| \
6558 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6579 -*) as_dir=./$as_dir;;
6581 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6585 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
6586 *) as_qdir=$as_dir;;
6588 as_dirs="'$as_qdir' $as_dirs"
6589 as_dir=`$as_dirname -- "$as_dir" ||
6590 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6591 X"$as_dir" : 'X\(//\)[^/]' \| \
6592 X"$as_dir" : 'X\(//\)$' \| \
6593 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6612 test -d "$as_dir" && break
6614 test -z "$as_dirs" || eval "mkdir $as_dirs"
6615 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6616 echo "$as_me: error: cannot create directory $as_dir" >&2;}
6617 { (exit 1); exit 1; }; }; }
6621 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6623 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6624 # A ".." for each directory in $ac_dir_suffix.
6625 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
6626 case $ac_top_builddir_sub in
6627 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6628 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6631 ac_abs_top_builddir=$ac_pwd
6632 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6633 # for backward compatibility:
6634 ac_top_builddir=$ac_top_build_prefix
6637 .) # We are building in place.
6639 ac_top_srcdir=$ac_top_builddir_sub
6640 ac_abs_top_srcdir=$ac_pwd ;;
6641 [\\/]* | ?:[\\/]* ) # Absolute name.
6642 ac_srcdir=$srcdir$ac_dir_suffix;
6643 ac_top_srcdir=$srcdir
6644 ac_abs_top_srcdir=$srcdir ;;
6646 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6647 ac_top_srcdir=$ac_top_build_prefix$srcdir
6648 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6650 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6660 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6661 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6665 cat >>$CONFIG_STATUS <<\_ACEOF
6666 # If the template does not know about datarootdir, expand it.
6667 # FIXME: This hack should be removed a few years after 2.60.
6668 ac_datarootdir_hack=; ac_datarootdir_seen=
6670 case `sed -n '/datarootdir/ {
6679 ' $ac_file_inputs` in
6680 *datarootdir*) ac_datarootdir_seen=yes;;
6681 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6682 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6683 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6685 cat >>$CONFIG_STATUS <<_ACEOF
6686 ac_datarootdir_hack='
6687 s&@datadir@&$datadir&g
6688 s&@docdir@&$docdir&g
6689 s&@infodir@&$infodir&g
6690 s&@localedir@&$localedir&g
6691 s&@mandir@&$mandir&g
6692 s&\\\${datarootdir}&$datarootdir&g' ;;
6696 # Neutralize VPATH when `$srcdir' = `.'.
6697 # Shell code in configure.ac might set extrasub.
6698 # FIXME: do we really want to maintain this feature?
6699 cat >>$CONFIG_STATUS <<_ACEOF
6703 cat >>$CONFIG_STATUS <<\_ACEOF
6705 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6706 s&@configure_input@&$configure_input&;t t
6707 s&@top_builddir@&$ac_top_builddir_sub&;t t
6708 s&@srcdir@&$ac_srcdir&;t t
6709 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6710 s&@top_srcdir@&$ac_top_srcdir&;t t
6711 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6712 s&@builddir@&$ac_builddir&;t t
6713 s&@abs_builddir@&$ac_abs_builddir&;t t
6714 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6715 s&@INSTALL@&$ac_INSTALL&;t t
6716 $ac_datarootdir_hack
6717 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
6719 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6720 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6721 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6722 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6723 which seems to be undefined. Please make sure it is defined." >&5
6724 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6725 which seems to be undefined. Please make sure it is defined." >&2;}
6729 -) cat "$tmp/out"; rm -f "$tmp/out";;
6730 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
6739 # Transform confdefs.h into a sed script `conftest.defines', that
6740 # substitutes the proper values into config.h.in to produce config.h.
6741 rm -f conftest.defines conftest.tail
6742 # First, append a space to every undef/define line, to ease matching.
6743 echo 's/$/ /' >conftest.defines
6744 # Then, protect against being on the right side of a sed subst, or in
6745 # an unquoted here document, in config.status. If some macros were
6746 # called several times there might be several #defines for the same
6747 # symbol, which is useless. But do not sort them, since the last
6748 # AC_DEFINE must be honored.
6749 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6750 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
6751 # NAME is the cpp macro being defined, VALUE is the value it is being given.
6752 # PARAMS is the parameter list in the macro definition--in most cases, it's
6753 # just an empty string.
6754 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
6755 ac_dB='\\)[ (].*,\\1define\\2'
6763 s/^[ ]*#[ ]*define[ ][ ]*//
6768 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
6769 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
6770 ' >>conftest.defines
6772 # Remove the space that was appended to ease matching.
6773 # Then replace #undef with comments. This is necessary, for
6774 # example, in the case of _POSIX_SOURCE, which is predefined and required
6775 # on some systems where configure will not decide to define it.
6776 # (The regexp can be short, since the line contains either #define or #undef.)
6778 s,^[ #]*u.*,/* & */,' >>conftest.defines
6780 # Break up conftest.defines:
6783 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
6784 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
6785 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
6787 ac_in='$ac_file_inputs'
6788 ac_out='"$tmp/out1"'
6789 ac_nxt='"$tmp/out2"'
6793 # Write a here document:
6794 cat >>$CONFIG_STATUS <<_ACEOF
6795 # First, check the format of the line:
6796 cat >"\$tmp/defines.sed" <<\\CEOF
6797 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
6798 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
6802 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
6804 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
6805 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
6806 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
6807 grep . conftest.tail >/dev/null || break
6808 rm -f conftest.defines
6809 mv conftest.tail conftest.defines
6811 rm -f conftest.defines conftest.tail
6813 echo "ac_result=$ac_in" >>$CONFIG_STATUS
6814 cat >>$CONFIG_STATUS <<\_ACEOF
6815 if test x"$ac_file" != x-; then
6816 echo "/* $configure_input */" >"$tmp/config.h"
6817 cat "$ac_result" >>"$tmp/config.h"
6818 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
6819 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6820 echo "$as_me: $ac_file is unchanged" >&6;}
6823 mv "$tmp/config.h" $ac_file
6826 echo "/* $configure_input */"
6838 { (exit 0); exit 0; }
6840 chmod +x $CONFIG_STATUS
6841 ac_clean_files=$ac_clean_files_save
6844 # configure is writing to config.log, and then calls config.status.
6845 # config.status does its own redirection, appending to config.log.
6846 # Unfortunately, on DOS this fails, as config.log is still kept open
6847 # by configure, so config.status won't be able to write to it; its
6848 # output is simply discarded. So we exec the FD to /dev/null,
6849 # effectively closing config.log, so it can be properly (re)opened and
6850 # appended to by config.status. When coming back to configure, we
6851 # need to make the FD available again.
6852 if test "$no_create" != yes; then
6854 ac_config_status_args=
6855 test "$silent" = yes &&
6856 ac_config_status_args="$ac_config_status_args --quiet"
6858 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6860 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6861 # would make configure fail if this is the last instruction.
6862 $ac_cs_success || { (exit 1); exit 1; }
6866 # End of configure/configure.in