2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir=.
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
277 CONFIG_SHELL=$as_shell
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
305 as_func_ret_success () {
308 as_func_ret_failure () {
313 if as_func_success; then
317 echo as_func_success failed.
320 if as_func_failure; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
492 ECHO_C= ECHO_N= ECHO_T=
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
525 elif ln conf$$.file conf$$ 2>/dev/null; then
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
539 test -d ./-p && rmdir ./-p
543 if test -x / >/dev/null 2>&1; then
546 if ls -dL / >/dev/null 2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix=/usr/local
586 ac_config_libobj_dir=.
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
601 ac_unique_file="xboard.c"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
638 ac_subst_vars='LTLIBOBJS
724 program_transform_name
736 enable_option_checking
749 ac_precious_vars='build_alias
761 # Initialize some variables set by options.
763 ac_init_version=false
764 ac_unrecognized_opts=
766 # The variables have the same names as the options, with
767 # dashes changed to underlines.
775 program_transform_name=s,x,x,
783 # Installation directory options.
784 # These are left unexpanded so users can "make install exec_prefix=/foo"
785 # and all the variables that are supposed to be based on exec_prefix
786 # by default will actually change.
787 # Use braces instead of parens because sh, perl, etc. also accept them.
788 # (The list follows the same order as the GNU Coding Standards.)
789 bindir='${exec_prefix}/bin'
790 sbindir='${exec_prefix}/sbin'
791 libexecdir='${exec_prefix}/libexec'
792 datarootdir='${prefix}/share'
793 datadir='${datarootdir}'
794 sysconfdir='${prefix}/etc'
795 sharedstatedir='${prefix}/com'
796 localstatedir='${prefix}/var'
797 includedir='${prefix}/include'
798 oldincludedir='/usr/include'
799 docdir='${datarootdir}/doc/${PACKAGE}'
800 infodir='${datarootdir}/info'
805 libdir='${exec_prefix}/lib'
806 localedir='${datarootdir}/locale'
807 mandir='${datarootdir}/man'
813 # If the previous option needs an argument, assign it.
814 if test -n "$ac_prev"; then
815 eval $ac_prev=\$ac_option
821 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
825 # Accept the important Cygnus configure options, so we can diagnose typos.
827 case $ac_dashdash$ac_option in
831 -bindir | --bindir | --bindi | --bind | --bin | --bi)
833 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
836 -build | --build | --buil | --bui | --bu)
837 ac_prev=build_alias ;;
838 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
839 build_alias=$ac_optarg ;;
841 -cache-file | --cache-file | --cache-fil | --cache-fi \
842 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
843 ac_prev=cache_file ;;
844 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
845 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
846 cache_file=$ac_optarg ;;
849 cache_file=config.cache ;;
851 -datadir | --datadir | --datadi | --datad)
853 -datadir=* | --datadir=* | --datadi=* | --datad=*)
854 datadir=$ac_optarg ;;
856 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
857 | --dataroo | --dataro | --datar)
858 ac_prev=datarootdir ;;
859 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
860 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
861 datarootdir=$ac_optarg ;;
863 -disable-* | --disable-*)
864 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
865 # Reject names that are not valid shell variable names.
866 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
867 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
868 { (exit 1); exit 1; }; }
869 ac_useropt_orig=$ac_useropt
870 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
871 case $ac_user_opts in
875 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
876 ac_unrecognized_sep=', ';;
878 eval enable_$ac_useropt=no ;;
880 -docdir | --docdir | --docdi | --doc | --do)
882 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
885 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
887 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
890 -enable-* | --enable-*)
891 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
892 # Reject names that are not valid shell variable names.
893 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
895 { (exit 1); exit 1; }; }
896 ac_useropt_orig=$ac_useropt
897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
903 ac_unrecognized_sep=', ';;
905 eval enable_$ac_useropt=\$ac_optarg ;;
907 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
908 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
909 | --exec | --exe | --ex)
910 ac_prev=exec_prefix ;;
911 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
912 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
913 | --exec=* | --exe=* | --ex=*)
914 exec_prefix=$ac_optarg ;;
916 -gas | --gas | --ga | --g)
917 # Obsolete; use --with-gas.
920 -help | --help | --hel | --he | -h)
922 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
923 ac_init_help=recursive ;;
924 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
925 ac_init_help=short ;;
927 -host | --host | --hos | --ho)
928 ac_prev=host_alias ;;
929 -host=* | --host=* | --hos=* | --ho=*)
930 host_alias=$ac_optarg ;;
932 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
934 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
936 htmldir=$ac_optarg ;;
938 -includedir | --includedir | --includedi | --included | --include \
939 | --includ | --inclu | --incl | --inc)
940 ac_prev=includedir ;;
941 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
942 | --includ=* | --inclu=* | --incl=* | --inc=*)
943 includedir=$ac_optarg ;;
945 -infodir | --infodir | --infodi | --infod | --info | --inf)
947 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
948 infodir=$ac_optarg ;;
950 -libdir | --libdir | --libdi | --libd)
952 -libdir=* | --libdir=* | --libdi=* | --libd=*)
955 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
956 | --libexe | --libex | --libe)
957 ac_prev=libexecdir ;;
958 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
959 | --libexe=* | --libex=* | --libe=*)
960 libexecdir=$ac_optarg ;;
962 -localedir | --localedir | --localedi | --localed | --locale)
964 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
965 localedir=$ac_optarg ;;
967 -localstatedir | --localstatedir | --localstatedi | --localstated \
968 | --localstate | --localstat | --localsta | --localst | --locals)
969 ac_prev=localstatedir ;;
970 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
971 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
972 localstatedir=$ac_optarg ;;
974 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
976 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
980 # Obsolete; use --without-fp.
983 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
984 | --no-cr | --no-c | -n)
987 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
988 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
991 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
992 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
993 | --oldin | --oldi | --old | --ol | --o)
994 ac_prev=oldincludedir ;;
995 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
996 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
997 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
998 oldincludedir=$ac_optarg ;;
1000 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1002 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1003 prefix=$ac_optarg ;;
1005 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1006 | --program-pre | --program-pr | --program-p)
1007 ac_prev=program_prefix ;;
1008 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1009 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1010 program_prefix=$ac_optarg ;;
1012 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1013 | --program-suf | --program-su | --program-s)
1014 ac_prev=program_suffix ;;
1015 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1016 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1017 program_suffix=$ac_optarg ;;
1019 -program-transform-name | --program-transform-name \
1020 | --program-transform-nam | --program-transform-na \
1021 | --program-transform-n | --program-transform- \
1022 | --program-transform | --program-transfor \
1023 | --program-transfo | --program-transf \
1024 | --program-trans | --program-tran \
1025 | --progr-tra | --program-tr | --program-t)
1026 ac_prev=program_transform_name ;;
1027 -program-transform-name=* | --program-transform-name=* \
1028 | --program-transform-nam=* | --program-transform-na=* \
1029 | --program-transform-n=* | --program-transform-=* \
1030 | --program-transform=* | --program-transfor=* \
1031 | --program-transfo=* | --program-transf=* \
1032 | --program-trans=* | --program-tran=* \
1033 | --progr-tra=* | --program-tr=* | --program-t=*)
1034 program_transform_name=$ac_optarg ;;
1036 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1038 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1039 pdfdir=$ac_optarg ;;
1041 -psdir | --psdir | --psdi | --psd | --ps)
1043 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1047 | -silent | --silent | --silen | --sile | --sil)
1050 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1052 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1054 sbindir=$ac_optarg ;;
1056 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1057 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1058 | --sharedst | --shareds | --shared | --share | --shar \
1060 ac_prev=sharedstatedir ;;
1061 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1062 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1063 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1065 sharedstatedir=$ac_optarg ;;
1067 -site | --site | --sit)
1069 -site=* | --site=* | --sit=*)
1072 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1074 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1075 srcdir=$ac_optarg ;;
1077 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1078 | --syscon | --sysco | --sysc | --sys | --sy)
1079 ac_prev=sysconfdir ;;
1080 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1081 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1082 sysconfdir=$ac_optarg ;;
1084 -target | --target | --targe | --targ | --tar | --ta | --t)
1085 ac_prev=target_alias ;;
1086 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1087 target_alias=$ac_optarg ;;
1089 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1092 -version | --version | --versio | --versi | --vers | -V)
1093 ac_init_version=: ;;
1096 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1100 { (exit 1); exit 1; }; }
1101 ac_useropt_orig=$ac_useropt
1102 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1103 case $ac_user_opts in
1107 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1108 ac_unrecognized_sep=', ';;
1110 eval with_$ac_useropt=\$ac_optarg ;;
1112 -without-* | --without-*)
1113 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1114 # Reject names that are not valid shell variable names.
1115 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1116 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1117 { (exit 1); exit 1; }; }
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1127 eval with_$ac_useropt=no ;;
1130 # Obsolete; use --with-x.
1133 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1134 | --x-incl | --x-inc | --x-in | --x-i)
1135 ac_prev=x_includes ;;
1136 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1137 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1138 x_includes=$ac_optarg ;;
1140 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1141 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1142 ac_prev=x_libraries ;;
1143 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1144 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1145 x_libraries=$ac_optarg ;;
1147 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1148 Try \`$0 --help' for more information." >&2
1149 { (exit 1); exit 1; }; }
1153 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1156 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1157 { (exit 1); exit 1; }; }
1158 eval $ac_envvar=\$ac_optarg
1159 export $ac_envvar ;;
1162 # FIXME: should be removed in autoconf 3.0.
1163 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1164 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1165 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1166 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1172 if test -n "$ac_prev"; then
1173 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1174 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1175 { (exit 1); exit 1; }; }
1178 if test -n "$ac_unrecognized_opts"; then
1179 case $enable_option_checking in
1181 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1182 { (exit 1); exit 1; }; } ;;
1183 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1187 # Check all directory arguments for consistency.
1188 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1189 datadir sysconfdir sharedstatedir localstatedir includedir \
1190 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1191 libdir localedir mandir
1193 eval ac_val=\$$ac_var
1194 # Remove trailing slashes.
1197 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1198 eval $ac_var=\$ac_val;;
1200 # Be sure to have absolute directory names.
1202 [\\/$]* | ?:[\\/]* ) continue;;
1203 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1205 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1206 { (exit 1); exit 1; }; }
1209 # There might be people who depend on the old broken behavior: `$host'
1210 # used to hold the argument of --host etc.
1211 # FIXME: To remove some day.
1214 target=$target_alias
1216 # FIXME: To remove some day.
1217 if test "x$host_alias" != x; then
1218 if test "x$build_alias" = x; then
1219 cross_compiling=maybe
1220 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1221 If a cross compiler is detected then cross compile mode will be used." >&2
1222 elif test "x$build_alias" != "x$host_alias"; then
1228 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1230 test "$silent" = yes && exec 6>/dev/null
1233 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1234 ac_ls_di=`ls -di .` &&
1235 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1236 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1237 { (exit 1); exit 1; }; }
1238 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1239 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1240 { (exit 1); exit 1; }; }
1243 # Find the source files, if location was not specified.
1244 if test -z "$srcdir"; then
1245 ac_srcdir_defaulted=yes
1246 # Try the directory containing this script, then the parent directory.
1247 ac_confdir=`$as_dirname -- "$as_myself" ||
1248 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1249 X"$as_myself" : 'X\(//\)[^/]' \| \
1250 X"$as_myself" : 'X\(//\)$' \| \
1251 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1252 $as_echo X"$as_myself" |
1253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1271 if test ! -r "$srcdir/$ac_unique_file"; then
1275 ac_srcdir_defaulted=no
1277 if test ! -r "$srcdir/$ac_unique_file"; then
1278 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1279 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1280 { (exit 1); exit 1; }; }
1282 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1284 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1285 { (exit 1); exit 1; }; }
1287 # When building in place, set srcdir=.
1288 if test "$ac_abs_confdir" = "$ac_pwd"; then
1291 # Remove unnecessary trailing slashes from srcdir.
1292 # Double slashes in file names in object file debugging info
1293 # mess up M-x gdb in Emacs.
1295 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1297 for ac_var in $ac_precious_vars; do
1298 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1299 eval ac_env_${ac_var}_value=\$${ac_var}
1300 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1301 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1305 # Report the --help message.
1307 if test "$ac_init_help" = "long"; then
1308 # Omit some internal or obsolete options to make the list less imposing.
1309 # This message is too long to be a string in the A/UX 3.1 sh.
1311 \`configure' configures this package to adapt to many kinds of systems.
1313 Usage: $0 [OPTION]... [VAR=VALUE]...
1315 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1316 VAR=VALUE. See below for descriptions of some of the useful variables.
1318 Defaults for the options are specified in brackets.
1321 -h, --help display this help and exit
1322 --help=short display options specific to this package
1323 --help=recursive display the short help of all the included packages
1324 -V, --version display version information and exit
1325 -q, --quiet, --silent do not print \`checking...' messages
1326 --cache-file=FILE cache test results in FILE [disabled]
1327 -C, --config-cache alias for \`--cache-file=config.cache'
1328 -n, --no-create do not create output files
1329 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1331 Installation directories:
1332 --prefix=PREFIX install architecture-independent files in PREFIX
1333 [$ac_default_prefix]
1334 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1337 By default, \`make install' will install all the files in
1338 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1339 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1340 for instance \`--prefix=\$HOME'.
1342 For better control, use the options below.
1344 Fine tuning of the installation directories:
1345 --bindir=DIR user executables [EPREFIX/bin]
1346 --sbindir=DIR system admin executables [EPREFIX/sbin]
1347 --libexecdir=DIR program executables [EPREFIX/libexec]
1348 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1349 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1350 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1351 --libdir=DIR object code libraries [EPREFIX/lib]
1352 --includedir=DIR C header files [PREFIX/include]
1353 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1354 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1355 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1356 --infodir=DIR info documentation [DATAROOTDIR/info]
1357 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1358 --mandir=DIR man documentation [DATAROOTDIR/man]
1359 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1360 --htmldir=DIR html documentation [DOCDIR]
1361 --dvidir=DIR dvi documentation [DOCDIR]
1362 --pdfdir=DIR pdf documentation [DOCDIR]
1363 --psdir=DIR ps documentation [DOCDIR]
1369 --x-includes=DIR X include files are in DIR
1370 --x-libraries=DIR X library files are in DIR
1373 --build=BUILD configure for building on BUILD [guessed]
1374 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1378 if test -n "$ac_init_help"; then
1383 --disable-option-checking ignore unrecognized --enable/--with options
1384 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1385 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1386 --disable-nls do not use Native Language Support
1387 --disable-rpath do not hardcode runtime library paths
1388 --enable-xpm libXpm will be used if found (default)
1389 --disable-xpm libXpm will not be used
1390 --enable-ptys force use of pseudo-ttys with child processes
1391 --disable-ptys force use of pipes with child processes
1392 --enable-zippy support interfacing a chess program to ICS (default)
1393 --disable-zippy do not support interfacing a chess program to ICS
1394 --enable-sigint sending SIGINT (^C) wakes up GNU Chess (default)
1395 --disable-sigint typing a command wakes up GNU Chess
1398 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1399 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1400 --with-Xaw3d use Xaw3d instead of Xaw
1401 --with-x use the X Window System
1402 --with-gnu-ld assume the C compiler uses GNU ld default=no
1403 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1404 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1405 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1406 --without-libintl-prefix don't search for libintl in includedir and libdir
1408 Some influential environment variables:
1409 CC C compiler command
1410 CFLAGS C compiler flags
1411 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1412 nonstandard directory <lib dir>
1413 LIBS libraries to pass to the linker, e.g. -l<library>
1414 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1415 you have headers in a nonstandard directory <include dir>
1417 XMKMF Path to xmkmf, Makefile generator for X Window System
1419 Use these variables to override the choices made by `configure' or to help
1420 it to find libraries and programs with nonstandard names/locations.
1426 if test "$ac_init_help" = "recursive"; then
1427 # If there are subdirs, report their specific --help.
1428 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1429 test -d "$ac_dir" ||
1430 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1435 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1437 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1438 # A ".." for each directory in $ac_dir_suffix.
1439 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1440 case $ac_top_builddir_sub in
1441 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1442 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1445 ac_abs_top_builddir=$ac_pwd
1446 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1447 # for backward compatibility:
1448 ac_top_builddir=$ac_top_build_prefix
1451 .) # We are building in place.
1453 ac_top_srcdir=$ac_top_builddir_sub
1454 ac_abs_top_srcdir=$ac_pwd ;;
1455 [\\/]* | ?:[\\/]* ) # Absolute name.
1456 ac_srcdir=$srcdir$ac_dir_suffix;
1457 ac_top_srcdir=$srcdir
1458 ac_abs_top_srcdir=$srcdir ;;
1460 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1461 ac_top_srcdir=$ac_top_build_prefix$srcdir
1462 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1464 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1466 cd "$ac_dir" || { ac_status=$?; continue; }
1467 # Check for guested configure.
1468 if test -f "$ac_srcdir/configure.gnu"; then
1470 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1471 elif test -f "$ac_srcdir/configure"; then
1473 $SHELL "$ac_srcdir/configure" --help=recursive
1475 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1477 cd "$ac_pwd" || { ac_status=$?; break; }
1481 test -n "$ac_init_help" && exit $ac_status
1482 if $ac_init_version; then
1485 generated by GNU Autoconf 2.63
1487 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1488 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1489 This configure script is free software; the Free Software Foundation
1490 gives unlimited permission to copy, distribute and modify it.
1494 cat >config.log <<_ACEOF
1495 This file contains any messages produced by compilers while
1496 running configure, to aid debugging if configure makes a mistake.
1498 It was created by $as_me, which was
1499 generated by GNU Autoconf 2.63. Invocation command line was
1511 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1512 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1513 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1514 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1515 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1517 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1518 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1520 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1521 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1522 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1523 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1524 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1525 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1526 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1534 test -z "$as_dir" && as_dir=.
1535 $as_echo "PATH: $as_dir"
1551 # Keep a trace of the command line.
1552 # Strip out --no-create and --no-recursion so they do not pile up.
1553 # Strip out --silent because we don't want to record it for future runs.
1554 # Also quote any args containing shell meta-characters.
1555 # Make two passes to allow for proper duplicate-argument suppression.
1559 ac_must_keep_next=false
1565 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1566 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1567 | -silent | --silent | --silen | --sile | --sil)
1570 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1573 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1575 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1576 if test $ac_must_keep_next = true; then
1577 ac_must_keep_next=false # Got value, back to normal.
1580 *=* | --config-cache | -C | -disable-* | --disable-* \
1581 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1582 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1583 | -with-* | --with-* | -without-* | --without-* | --x)
1584 case "$ac_configure_args0 " in
1585 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1588 -* ) ac_must_keep_next=true ;;
1591 ac_configure_args="$ac_configure_args '$ac_arg'"
1596 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1597 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1599 # When interrupted or exit'd, cleanup temporary files, and complete
1600 # config.log. We remove comments because anyway the quotes in there
1601 # would cause problems or look ugly.
1602 # WARNING: Use '\'' to represent an apostrophe within the trap.
1603 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1604 trap 'exit_status=$?
1605 # Save into config.log some information that might help in debugging.
1610 ## ---------------- ##
1611 ## Cache variables. ##
1612 ## ---------------- ##
1615 # The following way of writing the cache mishandles newlines in values,
1617 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1618 eval ac_val=\$$ac_var
1622 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1623 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1626 _ | IFS | as_nl) ;; #(
1627 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1628 *) $as_unset $ac_var ;;
1633 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1634 *${as_nl}ac_space=\ *)
1636 "s/'\''/'\''\\\\'\'''\''/g;
1637 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1640 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1648 ## ----------------- ##
1649 ## Output variables. ##
1650 ## ----------------- ##
1653 for ac_var in $ac_subst_vars
1655 eval ac_val=\$$ac_var
1657 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1659 $as_echo "$ac_var='\''$ac_val'\''"
1663 if test -n "$ac_subst_files"; then
1665 ## ------------------- ##
1666 ## File substitutions. ##
1667 ## ------------------- ##
1670 for ac_var in $ac_subst_files
1672 eval ac_val=\$$ac_var
1674 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1676 $as_echo "$ac_var='\''$ac_val'\''"
1681 if test -s confdefs.h; then
1691 test "$ac_signal" != 0 &&
1692 $as_echo "$as_me: caught signal $ac_signal"
1693 $as_echo "$as_me: exit $exit_status"
1695 rm -f core *.core core.conftest.* &&
1696 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1699 for ac_signal in 1 2 13 15; do
1700 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1704 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1705 rm -f -r conftest* confdefs.h
1707 # Predefined preprocessor variables.
1709 cat >>confdefs.h <<_ACEOF
1710 #define PACKAGE_NAME "$PACKAGE_NAME"
1714 cat >>confdefs.h <<_ACEOF
1715 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1719 cat >>confdefs.h <<_ACEOF
1720 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1724 cat >>confdefs.h <<_ACEOF
1725 #define PACKAGE_STRING "$PACKAGE_STRING"
1729 cat >>confdefs.h <<_ACEOF
1730 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1734 # Let the site file select an alternate cache file if it wants to.
1735 # Prefer an explicitly selected file to automatically selected ones.
1738 if test -n "$CONFIG_SITE"; then
1739 ac_site_file1=$CONFIG_SITE
1740 elif test "x$prefix" != xNONE; then
1741 ac_site_file1=$prefix/share/config.site
1742 ac_site_file2=$prefix/etc/config.site
1744 ac_site_file1=$ac_default_prefix/share/config.site
1745 ac_site_file2=$ac_default_prefix/etc/config.site
1747 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1749 test "x$ac_site_file" = xNONE && continue
1750 if test -r "$ac_site_file"; then
1751 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1752 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1753 sed 's/^/| /' "$ac_site_file" >&5
1758 if test -r "$cache_file"; then
1759 # Some versions of bash will fail to source /dev/null (special
1760 # files actually), so we avoid doing that.
1761 if test -f "$cache_file"; then
1762 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1763 $as_echo "$as_me: loading cache $cache_file" >&6;}
1765 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1766 *) . "./$cache_file";;
1770 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1771 $as_echo "$as_me: creating cache $cache_file" >&6;}
1775 # Check that the precious variables saved in the cache have kept the same
1777 ac_cache_corrupted=false
1778 for ac_var in $ac_precious_vars; do
1779 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1780 eval ac_new_set=\$ac_env_${ac_var}_set
1781 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1782 eval ac_new_val=\$ac_env_${ac_var}_value
1783 case $ac_old_set,$ac_new_set in
1785 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1786 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1787 ac_cache_corrupted=: ;;
1789 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1790 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1791 ac_cache_corrupted=: ;;
1794 if test "x$ac_old_val" != "x$ac_new_val"; then
1795 # differences in whitespace do not lead to failure.
1796 ac_old_val_w=`echo x $ac_old_val`
1797 ac_new_val_w=`echo x $ac_new_val`
1798 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1799 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1800 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1801 ac_cache_corrupted=:
1803 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1804 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1805 eval $ac_var=\$ac_old_val
1807 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1808 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1809 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1810 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1813 # Pass precious variables to config.status.
1814 if test "$ac_new_set" = set; then
1816 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1817 *) ac_arg=$ac_var=$ac_new_val ;;
1819 case " $ac_configure_args " in
1820 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1821 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1825 if $ac_cache_corrupted; then
1826 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1828 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1829 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1830 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1831 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1832 { (exit 1); exit 1; }; }
1852 ac_cpp='$CPP $CPPFLAGS'
1853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1858 ac_config_headers="$ac_config_headers config.h"
1865 if test -z "$CFLAGS" ; then
1869 ac_cpp='$CPP $CPPFLAGS'
1870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1873 if test -n "$ac_tool_prefix"; then
1874 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1875 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1876 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1877 $as_echo_n "checking for $ac_word... " >&6; }
1878 if test "${ac_cv_prog_CC+set}" = set; then
1879 $as_echo_n "(cached) " >&6
1881 if test -n "$CC"; then
1882 ac_cv_prog_CC="$CC" # Let the user override the test.
1884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1888 test -z "$as_dir" && as_dir=.
1889 for ac_exec_ext in '' $ac_executable_extensions; do
1890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1891 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1892 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1902 if test -n "$CC"; then
1903 { $as_echo "$as_me:$LINENO: result: $CC" >&5
1904 $as_echo "$CC" >&6; }
1906 { $as_echo "$as_me:$LINENO: result: no" >&5
1907 $as_echo "no" >&6; }
1912 if test -z "$ac_cv_prog_CC"; then
1914 # Extract the first word of "gcc", so it can be a program name with args.
1915 set dummy gcc; ac_word=$2
1916 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1917 $as_echo_n "checking for $ac_word... " >&6; }
1918 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1919 $as_echo_n "(cached) " >&6
1921 if test -n "$ac_ct_CC"; then
1922 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928 test -z "$as_dir" && as_dir=.
1929 for ac_exec_ext in '' $ac_executable_extensions; do
1930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1931 ac_cv_prog_ac_ct_CC="gcc"
1932 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1941 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1942 if test -n "$ac_ct_CC"; then
1943 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1944 $as_echo "$ac_ct_CC" >&6; }
1946 { $as_echo "$as_me:$LINENO: result: no" >&5
1947 $as_echo "no" >&6; }
1950 if test "x$ac_ct_CC" = x; then
1953 case $cross_compiling:$ac_tool_warned in
1955 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
1956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1957 ac_tool_warned=yes ;;
1965 if test -z "$CC"; then
1966 if test -n "$ac_tool_prefix"; then
1967 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1968 set dummy ${ac_tool_prefix}cc; ac_word=$2
1969 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1970 $as_echo_n "checking for $ac_word... " >&6; }
1971 if test "${ac_cv_prog_CC+set}" = set; then
1972 $as_echo_n "(cached) " >&6
1974 if test -n "$CC"; then
1975 ac_cv_prog_CC="$CC" # Let the user override the test.
1977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981 test -z "$as_dir" && as_dir=.
1982 for ac_exec_ext in '' $ac_executable_extensions; do
1983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1984 ac_cv_prog_CC="${ac_tool_prefix}cc"
1985 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1995 if test -n "$CC"; then
1996 { $as_echo "$as_me:$LINENO: result: $CC" >&5
1997 $as_echo "$CC" >&6; }
1999 { $as_echo "$as_me:$LINENO: result: no" >&5
2000 $as_echo "no" >&6; }
2006 if test -z "$CC"; then
2007 # Extract the first word of "cc", so it can be a program name with args.
2008 set dummy cc; ac_word=$2
2009 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2010 $as_echo_n "checking for $ac_word... " >&6; }
2011 if test "${ac_cv_prog_CC+set}" = set; then
2012 $as_echo_n "(cached) " >&6
2014 if test -n "$CC"; then
2015 ac_cv_prog_CC="$CC" # Let the user override the test.
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 test -z "$as_dir" && as_dir=.
2023 for ac_exec_ext in '' $ac_executable_extensions; do
2024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2025 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2026 ac_prog_rejected=yes
2030 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2037 if test $ac_prog_rejected = yes; then
2038 # We found a bogon in the path, so make sure we never use it.
2039 set dummy $ac_cv_prog_CC
2041 if test $# != 0; then
2042 # We chose a different compiler from the bogus one.
2043 # However, it has the same basename, so the bogon will be chosen
2044 # first if we set CC to just the basename; use the full file name.
2046 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2052 if test -n "$CC"; then
2053 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2054 $as_echo "$CC" >&6; }
2056 { $as_echo "$as_me:$LINENO: result: no" >&5
2057 $as_echo "no" >&6; }
2062 if test -z "$CC"; then
2063 if test -n "$ac_tool_prefix"; then
2064 for ac_prog in cl.exe
2066 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2067 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2068 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2069 $as_echo_n "checking for $ac_word... " >&6; }
2070 if test "${ac_cv_prog_CC+set}" = set; then
2071 $as_echo_n "(cached) " >&6
2073 if test -n "$CC"; then
2074 ac_cv_prog_CC="$CC" # Let the user override the test.
2076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080 test -z "$as_dir" && as_dir=.
2081 for ac_exec_ext in '' $ac_executable_extensions; do
2082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2083 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2084 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2094 if test -n "$CC"; then
2095 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2096 $as_echo "$CC" >&6; }
2098 { $as_echo "$as_me:$LINENO: result: no" >&5
2099 $as_echo "no" >&6; }
2103 test -n "$CC" && break
2106 if test -z "$CC"; then
2108 for ac_prog in cl.exe
2110 # Extract the first word of "$ac_prog", so it can be a program name with args.
2111 set dummy $ac_prog; ac_word=$2
2112 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2113 $as_echo_n "checking for $ac_word... " >&6; }
2114 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2115 $as_echo_n "(cached) " >&6
2117 if test -n "$ac_ct_CC"; then
2118 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2124 test -z "$as_dir" && as_dir=.
2125 for ac_exec_ext in '' $ac_executable_extensions; do
2126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2127 ac_cv_prog_ac_ct_CC="$ac_prog"
2128 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2137 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2138 if test -n "$ac_ct_CC"; then
2139 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2140 $as_echo "$ac_ct_CC" >&6; }
2142 { $as_echo "$as_me:$LINENO: result: no" >&5
2143 $as_echo "no" >&6; }
2147 test -n "$ac_ct_CC" && break
2150 if test "x$ac_ct_CC" = x; then
2153 case $cross_compiling:$ac_tool_warned in
2155 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2157 ac_tool_warned=yes ;;
2166 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2168 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2169 See \`config.log' for more details." >&5
2170 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2171 See \`config.log' for more details." >&2;}
2172 { (exit 1); exit 1; }; }; }
2174 # Provide some information about the compiler.
2175 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2178 { (ac_try="$ac_compiler --version >&5"
2180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2181 *) ac_try_echo=$ac_try;;
2183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2184 $as_echo "$ac_try_echo") >&5
2185 (eval "$ac_compiler --version >&5") 2>&5
2187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }
2189 { (ac_try="$ac_compiler -v >&5"
2191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2192 *) ac_try_echo=$ac_try;;
2194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2195 $as_echo "$ac_try_echo") >&5
2196 (eval "$ac_compiler -v >&5") 2>&5
2198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); }
2200 { (ac_try="$ac_compiler -V >&5"
2202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2203 *) ac_try_echo=$ac_try;;
2205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2206 $as_echo "$ac_try_echo") >&5
2207 (eval "$ac_compiler -V >&5") 2>&5
2209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); }
2212 cat >conftest.$ac_ext <<_ACEOF
2215 cat confdefs.h >>conftest.$ac_ext
2216 cat >>conftest.$ac_ext <<_ACEOF
2217 /* end confdefs.h. */
2227 ac_clean_files_save=$ac_clean_files
2228 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2229 # Try to create an executable without -o first, disregard a.out.
2230 # It will help us diagnose broken compilers, and finding out an intuition
2232 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2233 $as_echo_n "checking for C compiler default output file name... " >&6; }
2234 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2236 # The possible output files:
2237 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2240 for ac_file in $ac_files
2243 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2244 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2249 if { (ac_try="$ac_link_default"
2251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2252 *) ac_try_echo=$ac_try;;
2254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2255 $as_echo "$ac_try_echo") >&5
2256 (eval "$ac_link_default") 2>&5
2258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); }; then
2260 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2261 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2262 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2263 # so that the user can short-circuit this test for compilers unknown to
2265 for ac_file in $ac_files ''
2267 test -f "$ac_file" || continue
2269 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2272 # We found the default executable, but exeext='' is most
2276 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2278 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2280 # We set ac_cv_exeext here because the later test for it is not
2281 # safe: cross compilers may not add the suffix if given an `-o'
2282 # argument, so we may need to know it at that point already.
2283 # Even if this section looks crufty: it has the advantage of
2290 test "$ac_cv_exeext" = no && ac_cv_exeext=
2296 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2297 $as_echo "$ac_file" >&6; }
2298 if test -z "$ac_file"; then
2299 $as_echo "$as_me: failed program was:" >&5
2300 sed 's/^/| /' conftest.$ac_ext >&5
2302 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2304 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2305 See \`config.log' for more details." >&5
2306 $as_echo "$as_me: error: C compiler cannot create executables
2307 See \`config.log' for more details." >&2;}
2308 { (exit 77); exit 77; }; }; }
2311 ac_exeext=$ac_cv_exeext
2313 # Check that the compiler produces executables we can run. If not, either
2314 # the compiler is broken, or we cross compile.
2315 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2316 $as_echo_n "checking whether the C compiler works... " >&6; }
2317 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2318 # If not cross compiling, check that we can run a simple program.
2319 if test "$cross_compiling" != yes; then
2320 if { ac_try='./$ac_file'
2321 { (case "(($ac_try" in
2322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2323 *) ac_try_echo=$ac_try;;
2325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2326 $as_echo "$ac_try_echo") >&5
2327 (eval "$ac_try") 2>&5
2329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; }; then
2333 if test "$cross_compiling" = maybe; then
2336 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2338 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2339 If you meant to cross compile, use \`--host'.
2340 See \`config.log' for more details." >&5
2341 $as_echo "$as_me: error: cannot run C compiled programs.
2342 If you meant to cross compile, use \`--host'.
2343 See \`config.log' for more details." >&2;}
2344 { (exit 1); exit 1; }; }; }
2348 { $as_echo "$as_me:$LINENO: result: yes" >&5
2349 $as_echo "yes" >&6; }
2351 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2352 ac_clean_files=$ac_clean_files_save
2353 # Check that the compiler produces executables we can run. If not, either
2354 # the compiler is broken, or we cross compile.
2355 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2356 $as_echo_n "checking whether we are cross compiling... " >&6; }
2357 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2358 $as_echo "$cross_compiling" >&6; }
2360 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2361 $as_echo_n "checking for suffix of executables... " >&6; }
2362 if { (ac_try="$ac_link"
2364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2365 *) ac_try_echo=$ac_try;;
2367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2368 $as_echo "$ac_try_echo") >&5
2369 (eval "$ac_link") 2>&5
2371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }; then
2373 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2374 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2375 # work properly (i.e., refer to `conftest.exe'), while it won't with
2377 for ac_file in conftest.exe conftest conftest.*; do
2378 test -f "$ac_file" || continue
2380 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2381 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2387 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2389 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2390 See \`config.log' for more details." >&5
2391 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2392 See \`config.log' for more details." >&2;}
2393 { (exit 1); exit 1; }; }; }
2396 rm -f conftest$ac_cv_exeext
2397 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2398 $as_echo "$ac_cv_exeext" >&6; }
2400 rm -f conftest.$ac_ext
2401 EXEEXT=$ac_cv_exeext
2403 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2404 $as_echo_n "checking for suffix of object files... " >&6; }
2405 if test "${ac_cv_objext+set}" = set; then
2406 $as_echo_n "(cached) " >&6
2408 cat >conftest.$ac_ext <<_ACEOF
2411 cat confdefs.h >>conftest.$ac_ext
2412 cat >>conftest.$ac_ext <<_ACEOF
2413 /* end confdefs.h. */
2423 rm -f conftest.o conftest.obj
2424 if { (ac_try="$ac_compile"
2426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2427 *) ac_try_echo=$ac_try;;
2429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2430 $as_echo "$ac_try_echo") >&5
2431 (eval "$ac_compile") 2>&5
2433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; then
2435 for ac_file in conftest.o conftest.obj conftest.*; do
2436 test -f "$ac_file" || continue;
2438 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2439 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2444 $as_echo "$as_me: failed program was:" >&5
2445 sed 's/^/| /' conftest.$ac_ext >&5
2447 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2449 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2450 See \`config.log' for more details." >&5
2451 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2452 See \`config.log' for more details." >&2;}
2453 { (exit 1); exit 1; }; }; }
2456 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2458 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2459 $as_echo "$ac_cv_objext" >&6; }
2460 OBJEXT=$ac_cv_objext
2462 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2463 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2464 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2465 $as_echo_n "(cached) " >&6
2467 cat >conftest.$ac_ext <<_ACEOF
2470 cat confdefs.h >>conftest.$ac_ext
2471 cat >>conftest.$ac_ext <<_ACEOF
2472 /* end confdefs.h. */
2485 rm -f conftest.$ac_objext
2486 if { (ac_try="$ac_compile"
2488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2489 *) ac_try_echo=$ac_try;;
2491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2492 $as_echo "$ac_try_echo") >&5
2493 (eval "$ac_compile") 2>conftest.er1
2495 grep -v '^ *+' conftest.er1 >conftest.err
2497 cat conftest.err >&5
2498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); } && {
2500 test -z "$ac_c_werror_flag" ||
2501 test ! -s conftest.err
2502 } && test -s conftest.$ac_objext; then
2505 $as_echo "$as_me: failed program was:" >&5
2506 sed 's/^/| /' conftest.$ac_ext >&5
2511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2512 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2515 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2516 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2517 if test $ac_compiler_gnu = yes; then
2522 ac_test_CFLAGS=${CFLAGS+set}
2523 ac_save_CFLAGS=$CFLAGS
2524 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2525 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2526 if test "${ac_cv_prog_cc_g+set}" = set; then
2527 $as_echo_n "(cached) " >&6
2529 ac_save_c_werror_flag=$ac_c_werror_flag
2530 ac_c_werror_flag=yes
2533 cat >conftest.$ac_ext <<_ACEOF
2536 cat confdefs.h >>conftest.$ac_ext
2537 cat >>conftest.$ac_ext <<_ACEOF
2538 /* end confdefs.h. */
2548 rm -f conftest.$ac_objext
2549 if { (ac_try="$ac_compile"
2551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2552 *) ac_try_echo=$ac_try;;
2554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2555 $as_echo "$ac_try_echo") >&5
2556 (eval "$ac_compile") 2>conftest.er1
2558 grep -v '^ *+' conftest.er1 >conftest.err
2560 cat conftest.err >&5
2561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); } && {
2563 test -z "$ac_c_werror_flag" ||
2564 test ! -s conftest.err
2565 } && test -s conftest.$ac_objext; then
2568 $as_echo "$as_me: failed program was:" >&5
2569 sed 's/^/| /' conftest.$ac_ext >&5
2572 cat >conftest.$ac_ext <<_ACEOF
2575 cat confdefs.h >>conftest.$ac_ext
2576 cat >>conftest.$ac_ext <<_ACEOF
2577 /* end confdefs.h. */
2587 rm -f conftest.$ac_objext
2588 if { (ac_try="$ac_compile"
2590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2591 *) ac_try_echo=$ac_try;;
2593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2594 $as_echo "$ac_try_echo") >&5
2595 (eval "$ac_compile") 2>conftest.er1
2597 grep -v '^ *+' conftest.er1 >conftest.err
2599 cat conftest.err >&5
2600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); } && {
2602 test -z "$ac_c_werror_flag" ||
2603 test ! -s conftest.err
2604 } && test -s conftest.$ac_objext; then
2607 $as_echo "$as_me: failed program was:" >&5
2608 sed 's/^/| /' conftest.$ac_ext >&5
2610 ac_c_werror_flag=$ac_save_c_werror_flag
2612 cat >conftest.$ac_ext <<_ACEOF
2615 cat confdefs.h >>conftest.$ac_ext
2616 cat >>conftest.$ac_ext <<_ACEOF
2617 /* end confdefs.h. */
2627 rm -f conftest.$ac_objext
2628 if { (ac_try="$ac_compile"
2630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2631 *) ac_try_echo=$ac_try;;
2633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2634 $as_echo "$ac_try_echo") >&5
2635 (eval "$ac_compile") 2>conftest.er1
2637 grep -v '^ *+' conftest.er1 >conftest.err
2639 cat conftest.err >&5
2640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); } && {
2642 test -z "$ac_c_werror_flag" ||
2643 test ! -s conftest.err
2644 } && test -s conftest.$ac_objext; then
2647 $as_echo "$as_me: failed program was:" >&5
2648 sed 's/^/| /' conftest.$ac_ext >&5
2653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2660 ac_c_werror_flag=$ac_save_c_werror_flag
2662 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2663 $as_echo "$ac_cv_prog_cc_g" >&6; }
2664 if test "$ac_test_CFLAGS" = set; then
2665 CFLAGS=$ac_save_CFLAGS
2666 elif test $ac_cv_prog_cc_g = yes; then
2667 if test "$GCC" = yes; then
2673 if test "$GCC" = yes; then
2679 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2680 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2681 if test "${ac_cv_prog_cc_c89+set}" = set; then
2682 $as_echo_n "(cached) " >&6
2684 ac_cv_prog_cc_c89=no
2686 cat >conftest.$ac_ext <<_ACEOF
2689 cat confdefs.h >>conftest.$ac_ext
2690 cat >>conftest.$ac_ext <<_ACEOF
2691 /* end confdefs.h. */
2694 #include <sys/types.h>
2695 #include <sys/stat.h>
2696 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2697 struct buf { int x; };
2698 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2699 static char *e (p, i)
2705 static char *f (char * (*g) (char **, int), char **p, ...)
2710 s = g (p, va_arg (v,int));
2715 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2716 function prototypes and stuff, but not '\xHH' hex character constants.
2717 These don't provoke an error unfortunately, instead are silently treated
2718 as 'x'. The following induces an error, until -std is added to get
2719 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2720 array size at least. It's necessary to write '\x00'==0 to get something
2721 that's true only with -std. */
2722 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2724 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2725 inside strings and character constants. */
2727 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2729 int test (int i, double x);
2730 struct s1 {int (*f) (int a);};
2731 struct s2 {int (*f) (double a);};
2732 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2738 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2743 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2744 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2746 CC="$ac_save_CC $ac_arg"
2747 rm -f conftest.$ac_objext
2748 if { (ac_try="$ac_compile"
2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751 *) ac_try_echo=$ac_try;;
2753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2754 $as_echo "$ac_try_echo") >&5
2755 (eval "$ac_compile") 2>conftest.er1
2757 grep -v '^ *+' conftest.er1 >conftest.err
2759 cat conftest.err >&5
2760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); } && {
2762 test -z "$ac_c_werror_flag" ||
2763 test ! -s conftest.err
2764 } && test -s conftest.$ac_objext; then
2765 ac_cv_prog_cc_c89=$ac_arg
2767 $as_echo "$as_me: failed program was:" >&5
2768 sed 's/^/| /' conftest.$ac_ext >&5
2773 rm -f core conftest.err conftest.$ac_objext
2774 test "x$ac_cv_prog_cc_c89" != "xno" && break
2776 rm -f conftest.$ac_ext
2781 case "x$ac_cv_prog_cc_c89" in
2783 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2784 $as_echo "none needed" >&6; } ;;
2786 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2787 $as_echo "unsupported" >&6; } ;;
2789 CC="$CC $ac_cv_prog_cc_c89"
2790 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2791 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2796 ac_cpp='$CPP $CPPFLAGS'
2797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2802 ac_cpp='$CPP $CPPFLAGS'
2803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2806 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2807 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2808 # On Suns, sometimes $CPP names a directory.
2809 if test -n "$CPP" && test -d "$CPP"; then
2812 if test -z "$CPP"; then
2813 if test "${ac_cv_prog_CPP+set}" = set; then
2814 $as_echo_n "(cached) " >&6
2816 # Double quotes because CPP needs to be expanded
2817 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2820 for ac_c_preproc_warn_flag in '' yes
2822 # Use a header file that comes with gcc, so configuring glibc
2823 # with a fresh cross-compiler works.
2824 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2825 # <limits.h> exists even on freestanding compilers.
2826 # On the NeXT, cc -E runs the code through the compiler's parser,
2827 # not just through cpp. "Syntax error" is here to catch this case.
2828 cat >conftest.$ac_ext <<_ACEOF
2831 cat confdefs.h >>conftest.$ac_ext
2832 cat >>conftest.$ac_ext <<_ACEOF
2833 /* end confdefs.h. */
2835 # include <limits.h>
2837 # include <assert.h>
2841 if { (ac_try="$ac_cpp conftest.$ac_ext"
2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2847 $as_echo "$ac_try_echo") >&5
2848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2850 grep -v '^ *+' conftest.er1 >conftest.err
2852 cat conftest.err >&5
2853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); } >/dev/null && {
2855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2856 test ! -s conftest.err
2860 $as_echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2863 # Broken: fails on valid input.
2867 rm -f conftest.err conftest.$ac_ext
2869 # OK, works on sane cases. Now check whether nonexistent headers
2870 # can be detected and how.
2871 cat >conftest.$ac_ext <<_ACEOF
2874 cat confdefs.h >>conftest.$ac_ext
2875 cat >>conftest.$ac_ext <<_ACEOF
2876 /* end confdefs.h. */
2877 #include <ac_nonexistent.h>
2879 if { (ac_try="$ac_cpp conftest.$ac_ext"
2881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882 *) ac_try_echo=$ac_try;;
2884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2885 $as_echo "$ac_try_echo") >&5
2886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2888 grep -v '^ *+' conftest.er1 >conftest.err
2890 cat conftest.err >&5
2891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); } >/dev/null && {
2893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2894 test ! -s conftest.err
2896 # Broken: success on invalid input.
2899 $as_echo "$as_me: failed program was:" >&5
2900 sed 's/^/| /' conftest.$ac_ext >&5
2902 # Passes both tests.
2907 rm -f conftest.err conftest.$ac_ext
2910 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2911 rm -f conftest.err conftest.$ac_ext
2912 if $ac_preproc_ok; then
2924 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
2925 $as_echo "$CPP" >&6; }
2927 for ac_c_preproc_warn_flag in '' yes
2929 # Use a header file that comes with gcc, so configuring glibc
2930 # with a fresh cross-compiler works.
2931 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2932 # <limits.h> exists even on freestanding compilers.
2933 # On the NeXT, cc -E runs the code through the compiler's parser,
2934 # not just through cpp. "Syntax error" is here to catch this case.
2935 cat >conftest.$ac_ext <<_ACEOF
2938 cat confdefs.h >>conftest.$ac_ext
2939 cat >>conftest.$ac_ext <<_ACEOF
2940 /* end confdefs.h. */
2942 # include <limits.h>
2944 # include <assert.h>
2948 if { (ac_try="$ac_cpp conftest.$ac_ext"
2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951 *) ac_try_echo=$ac_try;;
2953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2954 $as_echo "$ac_try_echo") >&5
2955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2957 grep -v '^ *+' conftest.er1 >conftest.err
2959 cat conftest.err >&5
2960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); } >/dev/null && {
2962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2963 test ! -s conftest.err
2967 $as_echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2970 # Broken: fails on valid input.
2974 rm -f conftest.err conftest.$ac_ext
2976 # OK, works on sane cases. Now check whether nonexistent headers
2977 # can be detected and how.
2978 cat >conftest.$ac_ext <<_ACEOF
2981 cat confdefs.h >>conftest.$ac_ext
2982 cat >>conftest.$ac_ext <<_ACEOF
2983 /* end confdefs.h. */
2984 #include <ac_nonexistent.h>
2986 if { (ac_try="$ac_cpp conftest.$ac_ext"
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2992 $as_echo "$ac_try_echo") >&5
2993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2995 grep -v '^ *+' conftest.er1 >conftest.err
2997 cat conftest.err >&5
2998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); } >/dev/null && {
3000 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3001 test ! -s conftest.err
3003 # Broken: success on invalid input.
3006 $as_echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3009 # Passes both tests.
3014 rm -f conftest.err conftest.$ac_ext
3017 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3018 rm -f conftest.err conftest.$ac_ext
3019 if $ac_preproc_ok; then
3022 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3024 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3025 See \`config.log' for more details." >&5
3026 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3027 See \`config.log' for more details." >&2;}
3028 { (exit 1); exit 1; }; }; }
3032 ac_cpp='$CPP $CPPFLAGS'
3033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3038 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
3039 $as_echo_n "checking for library containing strerror... " >&6; }
3040 if test "${ac_cv_search_strerror+set}" = set; then
3041 $as_echo_n "(cached) " >&6
3043 ac_func_search_save_LIBS=$LIBS
3044 cat >conftest.$ac_ext <<_ACEOF
3047 cat confdefs.h >>conftest.$ac_ext
3048 cat >>conftest.$ac_ext <<_ACEOF
3049 /* end confdefs.h. */
3051 /* Override any GCC internal prototype to avoid an error.
3052 Use char because int might match the return type of a GCC
3053 builtin and then its argument prototype would still apply. */
3066 for ac_lib in '' cposix; do
3067 if test -z "$ac_lib"; then
3068 ac_res="none required"
3071 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3073 rm -f conftest.$ac_objext conftest$ac_exeext
3074 if { (ac_try="$ac_link"
3076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077 *) ac_try_echo=$ac_try;;
3079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3080 $as_echo "$ac_try_echo") >&5
3081 (eval "$ac_link") 2>conftest.er1
3083 grep -v '^ *+' conftest.er1 >conftest.err
3085 cat conftest.err >&5
3086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); } && {
3088 test -z "$ac_c_werror_flag" ||
3089 test ! -s conftest.err
3090 } && test -s conftest$ac_exeext && {
3091 test "$cross_compiling" = yes ||
3092 $as_test_x conftest$ac_exeext
3094 ac_cv_search_strerror=$ac_res
3096 $as_echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3102 rm -rf conftest.dSYM
3103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3105 if test "${ac_cv_search_strerror+set}" = set; then
3109 if test "${ac_cv_search_strerror+set}" = set; then
3112 ac_cv_search_strerror=no
3115 LIBS=$ac_func_search_save_LIBS
3117 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3118 $as_echo "$ac_cv_search_strerror" >&6; }
3119 ac_res=$ac_cv_search_strerror
3120 if test "$ac_res" != no; then
3121 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3126 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3127 if test -f "$ac_dir/install-sh"; then
3129 ac_install_sh="$ac_aux_dir/install-sh -c"
3131 elif test -f "$ac_dir/install.sh"; then
3133 ac_install_sh="$ac_aux_dir/install.sh -c"
3135 elif test -f "$ac_dir/shtool"; then
3137 ac_install_sh="$ac_aux_dir/shtool install -c"
3141 if test -z "$ac_aux_dir"; then
3142 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3143 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3144 { (exit 1); exit 1; }; }
3147 # These three variables are undocumented and unsupported,
3148 # and are intended to be withdrawn in a future Autoconf release.
3149 # They can cause serious problems if a builder's source tree is in a directory
3150 # whose full name contains unusual characters.
3151 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3152 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3153 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3156 # Find a good install program. We prefer a C program (faster),
3157 # so one script is as good as another. But avoid the broken or
3158 # incompatible versions:
3159 # SysV /etc/install, /usr/sbin/install
3160 # SunOS /usr/etc/install
3161 # IRIX /sbin/install
3163 # AmigaOS /C/install, which installs bootblocks on floppy discs
3164 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3165 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3166 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3167 # OS/2's system install, which has a completely different semantic
3168 # ./install, which can be erroneously created by make from ./install.sh.
3169 # Reject install programs that cannot install multiple files.
3170 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3171 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3172 if test -z "$INSTALL"; then
3173 if test "${ac_cv_path_install+set}" = set; then
3174 $as_echo_n "(cached) " >&6
3176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180 test -z "$as_dir" && as_dir=.
3181 # Account for people who put trailing slashes in PATH elements.
3183 ./ | .// | /cC/* | \
3184 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3185 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3188 # OSF1 and SCO ODT 3.0 have their own names for install.
3189 # Don't use installbsd from OSF since it installs stuff as root
3191 for ac_prog in ginstall scoinst install; do
3192 for ac_exec_ext in '' $ac_executable_extensions; do
3193 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3194 if test $ac_prog = install &&
3195 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3196 # AIX install. It has an incompatible calling convention.
3198 elif test $ac_prog = install &&
3199 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3200 # program-specific install script used by HP pwplus--don't use.
3203 rm -rf conftest.one conftest.two conftest.dir
3204 echo one > conftest.one
3205 echo two > conftest.two
3207 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3208 test -s conftest.one && test -s conftest.two &&
3209 test -s conftest.dir/conftest.one &&
3210 test -s conftest.dir/conftest.two
3212 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3225 rm -rf conftest.one conftest.two conftest.dir
3228 if test "${ac_cv_path_install+set}" = set; then
3229 INSTALL=$ac_cv_path_install
3231 # As a last resort, use the slow shell script. Don't cache a
3232 # value for INSTALL within a source directory, because that will
3233 # break other packages using the cache if that directory is
3234 # removed, or if the value is a relative name.
3235 INSTALL=$ac_install_sh
3238 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3239 $as_echo "$INSTALL" >&6; }
3241 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3242 # It thinks the first close brace ends the variable substitution.
3243 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3245 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3247 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3249 for ac_prog in lex flex
3251 # Extract the first word of "$ac_prog", so it can be a program name with args.
3252 set dummy $ac_prog; ac_word=$2
3253 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3254 $as_echo_n "checking for $ac_word... " >&6; }
3255 if test "${ac_cv_prog_LEX+set}" = set; then
3256 $as_echo_n "(cached) " >&6
3258 if test -n "$LEX"; then
3259 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3265 test -z "$as_dir" && as_dir=.
3266 for ac_exec_ext in '' $ac_executable_extensions; do
3267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3268 ac_cv_prog_LEX="$ac_prog"
3269 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3279 if test -n "$LEX"; then
3280 { $as_echo "$as_me:$LINENO: result: $LEX" >&5
3281 $as_echo "$LEX" >&6; }
3283 { $as_echo "$as_me:$LINENO: result: no" >&5
3284 $as_echo "no" >&6; }
3288 test -n "$LEX" && break
3290 test -n "$LEX" || LEX="lex_not_found"
3292 if test "$LEX" != lex_not_found ; then
3293 for ac_prog in flex lex
3295 # Extract the first word of "$ac_prog", so it can be a program name with args.
3296 set dummy $ac_prog; ac_word=$2
3297 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3298 $as_echo_n "checking for $ac_word... " >&6; }
3299 if test "${ac_cv_prog_LEX+set}" = set; then
3300 $as_echo_n "(cached) " >&6
3302 if test -n "$LEX"; then
3303 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309 test -z "$as_dir" && as_dir=.
3310 for ac_exec_ext in '' $ac_executable_extensions; do
3311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3312 ac_cv_prog_LEX="$ac_prog"
3313 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3323 if test -n "$LEX"; then
3324 { $as_echo "$as_me:$LINENO: result: $LEX" >&5
3325 $as_echo "$LEX" >&6; }
3327 { $as_echo "$as_me:$LINENO: result: no" >&5
3328 $as_echo "no" >&6; }
3332 test -n "$LEX" && break
3334 test -n "$LEX" || LEX=":"
3336 if test "x$LEX" != "x:"; then
3337 cat >conftest.l <<_ACEOF
3343 e { yyless (input () != 0); }
3344 f { unput (yytext[0]); }
3345 . { BEGIN INITIAL; }
3347 #ifdef YYTEXT_POINTER
3348 extern char *yytext;
3353 return ! yylex () + ! yywrap ();
3356 { (ac_try="$LEX conftest.l"
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3362 $as_echo "$ac_try_echo") >&5
3363 (eval "$LEX conftest.l") 2>&5
3365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); }
3367 { $as_echo "$as_me:$LINENO: checking lex output file root" >&5
3368 $as_echo_n "checking lex output file root... " >&6; }
3369 if test "${ac_cv_prog_lex_root+set}" = set; then
3370 $as_echo_n "(cached) " >&6
3373 if test -f lex.yy.c; then
3374 ac_cv_prog_lex_root=lex.yy
3375 elif test -f lexyy.c; then
3376 ac_cv_prog_lex_root=lexyy
3378 { { $as_echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3379 $as_echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3380 { (exit 1); exit 1; }; }
3383 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3384 $as_echo "$ac_cv_prog_lex_root" >&6; }
3385 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3387 if test -z "${LEXLIB+set}"; then
3388 { $as_echo "$as_me:$LINENO: checking lex library" >&5
3389 $as_echo_n "checking lex library... " >&6; }
3390 if test "${ac_cv_lib_lex+set}" = set; then
3391 $as_echo_n "(cached) " >&6
3395 ac_cv_lib_lex='none needed'
3396 for ac_lib in '' -lfl -ll; do
3397 LIBS="$ac_lib $ac_save_LIBS"
3398 cat >conftest.$ac_ext <<_ACEOF
3399 `cat $LEX_OUTPUT_ROOT.c`
3401 rm -f conftest.$ac_objext conftest$ac_exeext
3402 if { (ac_try="$ac_link"
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3408 $as_echo "$ac_try_echo") >&5
3409 (eval "$ac_link") 2>conftest.er1
3411 grep -v '^ *+' conftest.er1 >conftest.err
3413 cat conftest.err >&5
3414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); } && {
3416 test -z "$ac_c_werror_flag" ||
3417 test ! -s conftest.err
3418 } && test -s conftest$ac_exeext && {
3419 test "$cross_compiling" = yes ||
3420 $as_test_x conftest$ac_exeext
3422 ac_cv_lib_lex=$ac_lib
3424 $as_echo "$as_me: failed program was:" >&5
3425 sed 's/^/| /' conftest.$ac_ext >&5
3430 rm -rf conftest.dSYM
3431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3432 conftest$ac_exeext conftest.$ac_ext
3433 test "$ac_cv_lib_lex" != 'none needed' && break
3438 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
3439 $as_echo "$ac_cv_lib_lex" >&6; }
3440 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
3444 { $as_echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3445 $as_echo_n "checking whether yytext is a pointer... " >&6; }
3446 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3447 $as_echo_n "(cached) " >&6
3449 # POSIX says lex can declare yytext either as a pointer or an array; the
3450 # default is implementation-dependent. Figure out which it is, since
3451 # not all implementations provide the %pointer and %array declarations.
3452 ac_cv_prog_lex_yytext_pointer=no
3454 LIBS="$LEXLIB $ac_save_LIBS"
3455 cat >conftest.$ac_ext <<_ACEOF
3456 #define YYTEXT_POINTER 1
3457 `cat $LEX_OUTPUT_ROOT.c`
3459 rm -f conftest.$ac_objext conftest$ac_exeext
3460 if { (ac_try="$ac_link"
3462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463 *) ac_try_echo=$ac_try;;
3465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3466 $as_echo "$ac_try_echo") >&5
3467 (eval "$ac_link") 2>conftest.er1
3469 grep -v '^ *+' conftest.er1 >conftest.err
3471 cat conftest.err >&5
3472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); } && {
3474 test -z "$ac_c_werror_flag" ||
3475 test ! -s conftest.err
3476 } && test -s conftest$ac_exeext && {
3477 test "$cross_compiling" = yes ||
3478 $as_test_x conftest$ac_exeext
3480 ac_cv_prog_lex_yytext_pointer=yes
3482 $as_echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.$ac_ext >&5
3488 rm -rf conftest.dSYM
3489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3490 conftest$ac_exeext conftest.$ac_ext
3494 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3495 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
3496 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3498 cat >>confdefs.h <<\_ACEOF
3499 #define YYTEXT_POINTER 1
3503 rm -f conftest.l $LEX_OUTPUT_ROOT.c
3507 for ac_prog in remsh rsh
3509 # Extract the first word of "$ac_prog", so it can be a program name with args.
3510 set dummy $ac_prog; ac_word=$2
3511 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3512 $as_echo_n "checking for $ac_word... " >&6; }
3513 if test "${ac_cv_prog_RSH+set}" = set; then
3514 $as_echo_n "(cached) " >&6
3516 if test -n "$RSH"; then
3517 ac_cv_prog_RSH="$RSH" # Let the user override the test.
3519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523 test -z "$as_dir" && as_dir=.
3524 for ac_exec_ext in '' $ac_executable_extensions; do
3525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3526 ac_cv_prog_RSH="$ac_prog"
3527 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3537 if test -n "$RSH"; then
3538 { $as_echo "$as_me:$LINENO: result: $RSH" >&5
3539 $as_echo "$RSH" >&6; }
3541 { $as_echo "$as_me:$LINENO: result: no" >&5
3542 $as_echo "no" >&6; }
3546 test -n "$RSH" && break
3548 test -n "$RSH" || RSH="rsh"
3550 cat >>confdefs.h <<_ACEOF
3551 #define REMOTE_SHELL "$RSH"
3554 # Extract the first word of "nroff", so it can be a program name with args.
3555 set dummy nroff; ac_word=$2
3556 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3557 $as_echo_n "checking for $ac_word... " >&6; }
3558 if test "${ac_cv_prog_NROFF+set}" = set; then
3559 $as_echo_n "(cached) " >&6
3561 if test -n "$NROFF"; then
3562 ac_cv_prog_NROFF="$NROFF" # Let the user override the test.
3564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3568 test -z "$as_dir" && as_dir=.
3569 for ac_exec_ext in '' $ac_executable_extensions; do
3570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3571 ac_cv_prog_NROFF="nroff -man"
3572 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3579 test -z "$ac_cv_prog_NROFF" && ac_cv_prog_NROFF="cat"
3582 NROFF=$ac_cv_prog_NROFF
3583 if test -n "$NROFF"; then
3584 { $as_echo "$as_me:$LINENO: result: $NROFF" >&5
3585 $as_echo "$NROFF" >&6; }
3587 { $as_echo "$as_me:$LINENO: result: no" >&5
3588 $as_echo "no" >&6; }
3593 for ac_prog in awk mawk gawk nawk
3595 # Extract the first word of "$ac_prog", so it can be a program name with args.
3596 set dummy $ac_prog; ac_word=$2
3597 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3598 $as_echo_n "checking for $ac_word... " >&6; }
3599 if test "${ac_cv_path_AWKPATH+set}" = set; then
3600 $as_echo_n "(cached) " >&6
3604 ac_cv_path_AWKPATH="$AWKPATH" # Let the user override the test with a path.
3607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3611 test -z "$as_dir" && as_dir=.
3612 for ac_exec_ext in '' $ac_executable_extensions; do
3613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3614 ac_cv_path_AWKPATH="$as_dir/$ac_word$ac_exec_ext"
3615 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3625 AWKPATH=$ac_cv_path_AWKPATH
3626 if test -n "$AWKPATH"; then
3627 { $as_echo "$as_me:$LINENO: result: $AWKPATH" >&5
3628 $as_echo "$AWKPATH" >&6; }
3630 { $as_echo "$as_me:$LINENO: result: no" >&5
3631 $as_echo "no" >&6; }
3635 test -n "$AWKPATH" && break
3640 # Extract the first word of "$ac_prog", so it can be a program name with args.
3641 set dummy $ac_prog; ac_word=$2
3642 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3643 $as_echo_n "checking for $ac_word... " >&6; }
3644 if test "${ac_cv_path_PERLPATH+set}" = set; then
3645 $as_echo_n "(cached) " >&6
3649 ac_cv_path_PERLPATH="$PERLPATH" # Let the user override the test with a path.
3652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656 test -z "$as_dir" && as_dir=.
3657 for ac_exec_ext in '' $ac_executable_extensions; do
3658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3659 ac_cv_path_PERLPATH="$as_dir/$ac_word$ac_exec_ext"
3660 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3670 PERLPATH=$ac_cv_path_PERLPATH
3671 if test -n "$PERLPATH"; then
3672 { $as_echo "$as_me:$LINENO: result: $PERLPATH" >&5
3673 $as_echo "$PERLPATH" >&6; }
3675 { $as_echo "$as_me:$LINENO: result: no" >&5
3676 $as_echo "no" >&6; }
3680 test -n "$PERLPATH" && break
3685 # Check whether --with-Xaw3d was given.
3686 if test "${with_Xaw3d+set}" = set; then
3687 withval=$with_Xaw3d; cat >>confdefs.h <<\_ACEOF
3699 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3700 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3701 if test "${ac_cv_path_GREP+set}" = set; then
3702 $as_echo_n "(cached) " >&6
3704 if test -z "$GREP"; then
3705 ac_path_GREP_found=false
3706 # Loop through the user's path and test for each of PROGNAME-LIST
3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3711 test -z "$as_dir" && as_dir=.
3712 for ac_prog in grep ggrep; do
3713 for ac_exec_ext in '' $ac_executable_extensions; do
3714 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3715 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3716 # Check for GNU ac_path_GREP and select it if it is found.
3717 # Check for GNU $ac_path_GREP
3718 case `"$ac_path_GREP" --version 2>&1` in
3720 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3723 $as_echo_n 0123456789 >"conftest.in"
3726 cat "conftest.in" "conftest.in" >"conftest.tmp"
3727 mv "conftest.tmp" "conftest.in"
3728 cp "conftest.in" "conftest.nl"
3729 $as_echo 'GREP' >> "conftest.nl"
3730 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3731 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3732 ac_count=`expr $ac_count + 1`
3733 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3734 # Best one so far, save it but keep looking for a better one
3735 ac_cv_path_GREP="$ac_path_GREP"
3736 ac_path_GREP_max=$ac_count
3738 # 10*(2^10) chars as input seems more than enough
3739 test $ac_count -gt 10 && break
3741 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3744 $ac_path_GREP_found && break 3
3749 if test -z "$ac_cv_path_GREP"; then
3750 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3751 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3752 { (exit 1); exit 1; }; }
3755 ac_cv_path_GREP=$GREP
3759 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3760 $as_echo "$ac_cv_path_GREP" >&6; }
3761 GREP="$ac_cv_path_GREP"
3764 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3765 $as_echo_n "checking for egrep... " >&6; }
3766 if test "${ac_cv_path_EGREP+set}" = set; then
3767 $as_echo_n "(cached) " >&6
3769 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3770 then ac_cv_path_EGREP="$GREP -E"
3772 if test -z "$EGREP"; then
3773 ac_path_EGREP_found=false
3774 # Loop through the user's path and test for each of PROGNAME-LIST
3775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3776 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3779 test -z "$as_dir" && as_dir=.
3780 for ac_prog in egrep; do
3781 for ac_exec_ext in '' $ac_executable_extensions; do
3782 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3783 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3784 # Check for GNU ac_path_EGREP and select it if it is found.
3785 # Check for GNU $ac_path_EGREP
3786 case `"$ac_path_EGREP" --version 2>&1` in
3788 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3791 $as_echo_n 0123456789 >"conftest.in"
3794 cat "conftest.in" "conftest.in" >"conftest.tmp"
3795 mv "conftest.tmp" "conftest.in"
3796 cp "conftest.in" "conftest.nl"
3797 $as_echo 'EGREP' >> "conftest.nl"
3798 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3799 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3800 ac_count=`expr $ac_count + 1`
3801 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3802 # Best one so far, save it but keep looking for a better one
3803 ac_cv_path_EGREP="$ac_path_EGREP"
3804 ac_path_EGREP_max=$ac_count
3806 # 10*(2^10) chars as input seems more than enough
3807 test $ac_count -gt 10 && break
3809 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3812 $ac_path_EGREP_found && break 3
3817 if test -z "$ac_cv_path_EGREP"; then
3818 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3819 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3820 { (exit 1); exit 1; }; }
3823 ac_cv_path_EGREP=$EGREP
3828 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3829 $as_echo "$ac_cv_path_EGREP" >&6; }
3830 EGREP="$ac_cv_path_EGREP"
3833 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3834 $as_echo_n "checking for ANSI C header files... " >&6; }
3835 if test "${ac_cv_header_stdc+set}" = set; then
3836 $as_echo_n "(cached) " >&6
3838 cat >conftest.$ac_ext <<_ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h. */
3857 rm -f conftest.$ac_objext
3858 if { (ac_try="$ac_compile"
3860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861 *) ac_try_echo=$ac_try;;
3863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3864 $as_echo "$ac_try_echo") >&5
3865 (eval "$ac_compile") 2>conftest.er1
3867 grep -v '^ *+' conftest.er1 >conftest.err
3869 cat conftest.err >&5
3870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); } && {
3872 test -z "$ac_c_werror_flag" ||
3873 test ! -s conftest.err
3874 } && test -s conftest.$ac_objext; then
3875 ac_cv_header_stdc=yes
3877 $as_echo "$as_me: failed program was:" >&5
3878 sed 's/^/| /' conftest.$ac_ext >&5
3880 ac_cv_header_stdc=no
3883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3885 if test $ac_cv_header_stdc = yes; then
3886 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3887 cat >conftest.$ac_ext <<_ACEOF
3890 cat confdefs.h >>conftest.$ac_ext
3891 cat >>conftest.$ac_ext <<_ACEOF
3892 /* end confdefs.h. */
3896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3897 $EGREP "memchr" >/dev/null 2>&1; then
3900 ac_cv_header_stdc=no