2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file="src/ctsim.cpp"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
625 program_transform_name
654 MAINTAINER_MODE_FALSE
670 INSTALL_STRIP_PROGRAM
709 INCLUDED_GETOPT_LONG_TRUE
710 INCLUDED_GETOPT_LONG_FALSE
748 ac_precious_vars='build_alias
763 # Initialize some variables set by options.
765 ac_init_version=false
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_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
865 # Reject names that are not valid shell variable names.
866 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
867 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
868 { (exit 1); exit 1; }; }
869 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
870 eval enable_$ac_feature=no ;;
872 -docdir | --docdir | --docdi | --doc | --do)
874 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
877 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
879 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
882 -enable-* | --enable-*)
883 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
884 # Reject names that are not valid shell variable names.
885 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
886 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
887 { (exit 1); exit 1; }; }
888 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
889 eval enable_$ac_feature=\$ac_optarg ;;
891 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
892 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
893 | --exec | --exe | --ex)
894 ac_prev=exec_prefix ;;
895 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
896 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
897 | --exec=* | --exe=* | --ex=*)
898 exec_prefix=$ac_optarg ;;
900 -gas | --gas | --ga | --g)
901 # Obsolete; use --with-gas.
904 -help | --help | --hel | --he | -h)
906 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
907 ac_init_help=recursive ;;
908 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
909 ac_init_help=short ;;
911 -host | --host | --hos | --ho)
912 ac_prev=host_alias ;;
913 -host=* | --host=* | --hos=* | --ho=*)
914 host_alias=$ac_optarg ;;
916 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
918 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
920 htmldir=$ac_optarg ;;
922 -includedir | --includedir | --includedi | --included | --include \
923 | --includ | --inclu | --incl | --inc)
924 ac_prev=includedir ;;
925 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
926 | --includ=* | --inclu=* | --incl=* | --inc=*)
927 includedir=$ac_optarg ;;
929 -infodir | --infodir | --infodi | --infod | --info | --inf)
931 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
932 infodir=$ac_optarg ;;
934 -libdir | --libdir | --libdi | --libd)
936 -libdir=* | --libdir=* | --libdi=* | --libd=*)
939 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
940 | --libexe | --libex | --libe)
941 ac_prev=libexecdir ;;
942 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
943 | --libexe=* | --libex=* | --libe=*)
944 libexecdir=$ac_optarg ;;
946 -localedir | --localedir | --localedi | --localed | --locale)
948 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
949 localedir=$ac_optarg ;;
951 -localstatedir | --localstatedir | --localstatedi | --localstated \
952 | --localstate | --localstat | --localsta | --localst | --locals)
953 ac_prev=localstatedir ;;
954 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
955 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
956 localstatedir=$ac_optarg ;;
958 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
960 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
964 # Obsolete; use --without-fp.
967 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
968 | --no-cr | --no-c | -n)
971 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
972 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
975 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
976 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
977 | --oldin | --oldi | --old | --ol | --o)
978 ac_prev=oldincludedir ;;
979 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
980 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
981 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
982 oldincludedir=$ac_optarg ;;
984 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
986 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
989 -program-prefix | --program-prefix | --program-prefi | --program-pref \
990 | --program-pre | --program-pr | --program-p)
991 ac_prev=program_prefix ;;
992 -program-prefix=* | --program-prefix=* | --program-prefi=* \
993 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
994 program_prefix=$ac_optarg ;;
996 -program-suffix | --program-suffix | --program-suffi | --program-suff \
997 | --program-suf | --program-su | --program-s)
998 ac_prev=program_suffix ;;
999 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1000 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1001 program_suffix=$ac_optarg ;;
1003 -program-transform-name | --program-transform-name \
1004 | --program-transform-nam | --program-transform-na \
1005 | --program-transform-n | --program-transform- \
1006 | --program-transform | --program-transfor \
1007 | --program-transfo | --program-transf \
1008 | --program-trans | --program-tran \
1009 | --progr-tra | --program-tr | --program-t)
1010 ac_prev=program_transform_name ;;
1011 -program-transform-name=* | --program-transform-name=* \
1012 | --program-transform-nam=* | --program-transform-na=* \
1013 | --program-transform-n=* | --program-transform-=* \
1014 | --program-transform=* | --program-transfor=* \
1015 | --program-transfo=* | --program-transf=* \
1016 | --program-trans=* | --program-tran=* \
1017 | --progr-tra=* | --program-tr=* | --program-t=*)
1018 program_transform_name=$ac_optarg ;;
1020 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1022 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1023 pdfdir=$ac_optarg ;;
1025 -psdir | --psdir | --psdi | --psd | --ps)
1027 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1030 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1031 | -silent | --silent | --silen | --sile | --sil)
1034 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1036 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1038 sbindir=$ac_optarg ;;
1040 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1041 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1042 | --sharedst | --shareds | --shared | --share | --shar \
1044 ac_prev=sharedstatedir ;;
1045 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1046 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1047 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1049 sharedstatedir=$ac_optarg ;;
1051 -site | --site | --sit)
1053 -site=* | --site=* | --sit=*)
1056 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1058 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1059 srcdir=$ac_optarg ;;
1061 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1062 | --syscon | --sysco | --sysc | --sys | --sy)
1063 ac_prev=sysconfdir ;;
1064 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1065 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1066 sysconfdir=$ac_optarg ;;
1068 -target | --target | --targe | --targ | --tar | --ta | --t)
1069 ac_prev=target_alias ;;
1070 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1071 target_alias=$ac_optarg ;;
1073 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1076 -version | --version | --versio | --versi | --vers | -V)
1077 ac_init_version=: ;;
1080 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1083 { echo "$as_me: error: invalid package name: $ac_package" >&2
1084 { (exit 1); exit 1; }; }
1085 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1086 eval with_$ac_package=\$ac_optarg ;;
1088 -without-* | --without-*)
1089 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1092 { echo "$as_me: error: invalid package name: $ac_package" >&2
1093 { (exit 1); exit 1; }; }
1094 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1095 eval with_$ac_package=no ;;
1098 # Obsolete; use --with-x.
1101 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1102 | --x-incl | --x-inc | --x-in | --x-i)
1103 ac_prev=x_includes ;;
1104 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1105 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1106 x_includes=$ac_optarg ;;
1108 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1109 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1110 ac_prev=x_libraries ;;
1111 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1112 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1113 x_libraries=$ac_optarg ;;
1115 -*) { echo "$as_me: error: unrecognized option: $ac_option
1116 Try \`$0 --help' for more information." >&2
1117 { (exit 1); exit 1; }; }
1121 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1124 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1125 { (exit 1); exit 1; }; }
1126 eval $ac_envvar=\$ac_optarg
1127 export $ac_envvar ;;
1130 # FIXME: should be removed in autoconf 3.0.
1131 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1132 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1133 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1134 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1140 if test -n "$ac_prev"; then
1141 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1142 { echo "$as_me: error: missing argument to $ac_option" >&2
1143 { (exit 1); exit 1; }; }
1146 # Be sure to have absolute directory names.
1147 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1148 datadir sysconfdir sharedstatedir localstatedir includedir \
1149 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1150 libdir localedir mandir
1152 eval ac_val=\$$ac_var
1154 [\\/$]* | ?:[\\/]* ) continue;;
1155 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1157 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1158 { (exit 1); exit 1; }; }
1161 # There might be people who depend on the old broken behavior: `$host'
1162 # used to hold the argument of --host etc.
1163 # FIXME: To remove some day.
1166 target=$target_alias
1168 # FIXME: To remove some day.
1169 if test "x$host_alias" != x; then
1170 if test "x$build_alias" = x; then
1171 cross_compiling=maybe
1172 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1173 If a cross compiler is detected then cross compile mode will be used." >&2
1174 elif test "x$build_alias" != "x$host_alias"; then
1180 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1182 test "$silent" = yes && exec 6>/dev/null
1185 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1186 ac_ls_di=`ls -di .` &&
1187 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1188 { echo "$as_me: error: Working directory cannot be determined" >&2
1189 { (exit 1); exit 1; }; }
1190 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1191 { echo "$as_me: error: pwd does not report name of working directory" >&2
1192 { (exit 1); exit 1; }; }
1195 # Find the source files, if location was not specified.
1196 if test -z "$srcdir"; then
1197 ac_srcdir_defaulted=yes
1198 # Try the directory containing this script, then the parent directory.
1199 ac_confdir=`$as_dirname -- "$0" ||
1200 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1201 X"$0" : 'X\(//\)[^/]' \| \
1202 X"$0" : 'X\(//\)$' \| \
1203 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1223 if test ! -r "$srcdir/$ac_unique_file"; then
1227 ac_srcdir_defaulted=no
1229 if test ! -r "$srcdir/$ac_unique_file"; then
1230 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1231 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1232 { (exit 1); exit 1; }; }
1234 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1236 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1237 { (exit 1); exit 1; }; }
1239 # When building in place, set srcdir=.
1240 if test "$ac_abs_confdir" = "$ac_pwd"; then
1243 # Remove unnecessary trailing slashes from srcdir.
1244 # Double slashes in file names in object file debugging info
1245 # mess up M-x gdb in Emacs.
1247 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1249 for ac_var in $ac_precious_vars; do
1250 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1251 eval ac_env_${ac_var}_value=\$${ac_var}
1252 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1253 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1257 # Report the --help message.
1259 if test "$ac_init_help" = "long"; then
1260 # Omit some internal or obsolete options to make the list less imposing.
1261 # This message is too long to be a string in the A/UX 3.1 sh.
1263 \`configure' configures this package to adapt to many kinds of systems.
1265 Usage: $0 [OPTION]... [VAR=VALUE]...
1267 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1268 VAR=VALUE. See below for descriptions of some of the useful variables.
1270 Defaults for the options are specified in brackets.
1273 -h, --help display this help and exit
1274 --help=short display options specific to this package
1275 --help=recursive display the short help of all the included packages
1276 -V, --version display version information and exit
1277 -q, --quiet, --silent do not print \`checking...' messages
1278 --cache-file=FILE cache test results in FILE [disabled]
1279 -C, --config-cache alias for \`--cache-file=config.cache'
1280 -n, --no-create do not create output files
1281 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1283 Installation directories:
1284 --prefix=PREFIX install architecture-independent files in PREFIX
1285 [$ac_default_prefix]
1286 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1289 By default, \`make install' will install all the files in
1290 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1291 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1292 for instance \`--prefix=\$HOME'.
1294 For better control, use the options below.
1296 Fine tuning of the installation directories:
1297 --bindir=DIR user executables [EPREFIX/bin]
1298 --sbindir=DIR system admin executables [EPREFIX/sbin]
1299 --libexecdir=DIR program executables [EPREFIX/libexec]
1300 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1301 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1302 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1303 --libdir=DIR object code libraries [EPREFIX/lib]
1304 --includedir=DIR C header files [PREFIX/include]
1305 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1306 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1307 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1308 --infodir=DIR info documentation [DATAROOTDIR/info]
1309 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1310 --mandir=DIR man documentation [DATAROOTDIR/man]
1311 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1312 --htmldir=DIR html documentation [DOCDIR]
1313 --dvidir=DIR dvi documentation [DOCDIR]
1314 --pdfdir=DIR pdf documentation [DOCDIR]
1315 --psdir=DIR ps documentation [DOCDIR]
1321 --program-prefix=PREFIX prepend PREFIX to installed program names
1322 --program-suffix=SUFFIX append SUFFIX to installed program names
1323 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1326 --x-includes=DIR X include files are in DIR
1327 --x-libraries=DIR X library files are in DIR
1330 --build=BUILD configure for building on BUILD [guessed]
1331 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1335 if test -n "$ac_init_help"; then
1340 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1341 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1342 --enable-maintainer-mode enable make rules and dependencies not useful
1343 (and sometimes confusing) to the casual installer
1344 --disable-dependency-tracking Speeds up one-time builds
1345 --enable-dependency-tracking Do not reject slow dependency extractors
1346 --enable-debug Turn on debugging
1347 --enable-verbose-warnings
1348 Enable verbose compiler warnings.
1350 Enable static executables.
1351 --enable-dmalloc Use dmalloc memory allocation
1352 --enable-efence Use ElectricFence memory allocation
1355 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1356 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1357 --with-lam=PATH Set path of LAM MPI
1358 --with-ctn=PATH Set path of CTN DICOM library
1359 --with-mcpu=CPU Set name of CPU for gcc -mcpu
1360 --with-cgibin-dir=PATH Set path of CGI binaries directory
1361 --with-cgibin-url=PATH Set URL path of CGI binaries
1362 --with-webdata-dir=PATH Set path of webdata
1363 --with-webdata-url=PATH Set URL path of webdata
1364 --with-html-dir=PATH Set directory of html files
1365 --with-x use the X Window System
1367 Some influential environment variables:
1368 CC C compiler command
1369 CFLAGS C compiler flags
1370 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1371 nonstandard directory <lib dir>
1372 LIBS libraries to pass to the linker, e.g. -l<library>
1373 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1374 you have headers in a nonstandard directory <include dir>
1375 CXX C++ compiler command
1376 CXXFLAGS C++ compiler flags
1378 XMKMF Path to xmkmf, Makefile generator for X Window System
1380 Use these variables to override the choices made by `configure' or to help
1381 it to find libraries and programs with nonstandard names/locations.
1387 if test "$ac_init_help" = "recursive"; then
1388 # If there are subdirs, report their specific --help.
1389 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1390 test -d "$ac_dir" || continue
1394 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1396 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1397 # A ".." for each directory in $ac_dir_suffix.
1398 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1399 case $ac_top_builddir_sub in
1400 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1401 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1404 ac_abs_top_builddir=$ac_pwd
1405 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1406 # for backward compatibility:
1407 ac_top_builddir=$ac_top_build_prefix
1410 .) # We are building in place.
1412 ac_top_srcdir=$ac_top_builddir_sub
1413 ac_abs_top_srcdir=$ac_pwd ;;
1414 [\\/]* | ?:[\\/]* ) # Absolute name.
1415 ac_srcdir=$srcdir$ac_dir_suffix;
1416 ac_top_srcdir=$srcdir
1417 ac_abs_top_srcdir=$srcdir ;;
1419 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1420 ac_top_srcdir=$ac_top_build_prefix$srcdir
1421 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1423 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1425 cd "$ac_dir" || { ac_status=$?; continue; }
1426 # Check for guested configure.
1427 if test -f "$ac_srcdir/configure.gnu"; then
1429 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1430 elif test -f "$ac_srcdir/configure"; then
1432 $SHELL "$ac_srcdir/configure" --help=recursive
1434 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1436 cd "$ac_pwd" || { ac_status=$?; break; }
1440 test -n "$ac_init_help" && exit $ac_status
1441 if $ac_init_version; then
1444 generated by GNU Autoconf 2.61
1446 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1447 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1448 This configure script is free software; the Free Software Foundation
1449 gives unlimited permission to copy, distribute and modify it.
1453 cat >config.log <<_ACEOF
1454 This file contains any messages produced by compilers while
1455 running configure, to aid debugging if configure makes a mistake.
1457 It was created by $as_me, which was
1458 generated by GNU Autoconf 2.61. Invocation command line was
1470 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1471 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1472 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1473 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1474 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1476 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1477 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1479 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1480 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1481 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1482 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1483 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1484 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1485 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1493 test -z "$as_dir" && as_dir=.
1494 echo "PATH: $as_dir"
1510 # Keep a trace of the command line.
1511 # Strip out --no-create and --no-recursion so they do not pile up.
1512 # Strip out --silent because we don't want to record it for future runs.
1513 # Also quote any args containing shell meta-characters.
1514 # Make two passes to allow for proper duplicate-argument suppression.
1518 ac_must_keep_next=false
1524 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1525 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1526 | -silent | --silent | --silen | --sile | --sil)
1529 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1532 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1534 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1535 if test $ac_must_keep_next = true; then
1536 ac_must_keep_next=false # Got value, back to normal.
1539 *=* | --config-cache | -C | -disable-* | --disable-* \
1540 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1541 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1542 | -with-* | --with-* | -without-* | --without-* | --x)
1543 case "$ac_configure_args0 " in
1544 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1547 -* ) ac_must_keep_next=true ;;
1550 ac_configure_args="$ac_configure_args '$ac_arg'"
1555 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1556 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1558 # When interrupted or exit'd, cleanup temporary files, and complete
1559 # config.log. We remove comments because anyway the quotes in there
1560 # would cause problems or look ugly.
1561 # WARNING: Use '\'' to represent an apostrophe within the trap.
1562 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1563 trap 'exit_status=$?
1564 # Save into config.log some information that might help in debugging.
1569 ## ---------------- ##
1570 ## Cache variables. ##
1571 ## ---------------- ##
1574 # The following way of writing the cache mishandles newlines in values,
1576 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1577 eval ac_val=\$$ac_var
1581 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1582 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1585 _ | IFS | as_nl) ;; #(
1586 *) $as_unset $ac_var ;;
1591 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1592 *${as_nl}ac_space=\ *)
1594 "s/'\''/'\''\\\\'\'''\''/g;
1595 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1598 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1606 ## ----------------- ##
1607 ## Output variables. ##
1608 ## ----------------- ##
1611 for ac_var in $ac_subst_vars
1613 eval ac_val=\$$ac_var
1615 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1617 echo "$ac_var='\''$ac_val'\''"
1621 if test -n "$ac_subst_files"; then
1623 ## ------------------- ##
1624 ## File substitutions. ##
1625 ## ------------------- ##
1628 for ac_var in $ac_subst_files
1630 eval ac_val=\$$ac_var
1632 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1634 echo "$ac_var='\''$ac_val'\''"
1639 if test -s confdefs.h; then
1649 test "$ac_signal" != 0 &&
1650 echo "$as_me: caught signal $ac_signal"
1651 echo "$as_me: exit $exit_status"
1653 rm -f core *.core core.conftest.* &&
1654 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1657 for ac_signal in 1 2 13 15; do
1658 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1662 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1663 rm -f -r conftest* confdefs.h
1665 # Predefined preprocessor variables.
1667 cat >>confdefs.h <<_ACEOF
1668 #define PACKAGE_NAME "$PACKAGE_NAME"
1672 cat >>confdefs.h <<_ACEOF
1673 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1677 cat >>confdefs.h <<_ACEOF
1678 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1682 cat >>confdefs.h <<_ACEOF
1683 #define PACKAGE_STRING "$PACKAGE_STRING"
1687 cat >>confdefs.h <<_ACEOF
1688 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1692 # Let the site file select an alternate cache file if it wants to.
1693 # Prefer explicitly selected file to automatically selected ones.
1694 if test -n "$CONFIG_SITE"; then
1695 set x "$CONFIG_SITE"
1696 elif test "x$prefix" != xNONE; then
1697 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1699 set x "$ac_default_prefix/share/config.site" \
1700 "$ac_default_prefix/etc/config.site"
1705 if test -r "$ac_site_file"; then
1706 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1707 echo "$as_me: loading site script $ac_site_file" >&6;}
1708 sed 's/^/| /' "$ac_site_file" >&5
1713 if test -r "$cache_file"; then
1714 # Some versions of bash will fail to source /dev/null (special
1715 # files actually), so we avoid doing that.
1716 if test -f "$cache_file"; then
1717 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1718 echo "$as_me: loading cache $cache_file" >&6;}
1720 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1721 *) . "./$cache_file";;
1725 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1726 echo "$as_me: creating cache $cache_file" >&6;}
1730 # Check that the precious variables saved in the cache have kept the same
1732 ac_cache_corrupted=false
1733 for ac_var in $ac_precious_vars; do
1734 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1735 eval ac_new_set=\$ac_env_${ac_var}_set
1736 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1737 eval ac_new_val=\$ac_env_${ac_var}_value
1738 case $ac_old_set,$ac_new_set in
1740 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1741 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1742 ac_cache_corrupted=: ;;
1744 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1745 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1746 ac_cache_corrupted=: ;;
1749 if test "x$ac_old_val" != "x$ac_new_val"; then
1750 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1751 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1752 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1753 echo "$as_me: former value: $ac_old_val" >&2;}
1754 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1755 echo "$as_me: current value: $ac_new_val" >&2;}
1756 ac_cache_corrupted=:
1759 # Pass precious variables to config.status.
1760 if test "$ac_new_set" = set; then
1762 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1763 *) ac_arg=$ac_var=$ac_new_val ;;
1765 case " $ac_configure_args " in
1766 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1767 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1771 if $ac_cache_corrupted; then
1772 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1773 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1774 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1775 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1776 { (exit 1); exit 1; }; }
1796 ac_cpp='$CPP $CPPFLAGS'
1797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1803 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1804 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
1805 # Check whether --enable-maintainer-mode was given.
1806 if test "${enable_maintainer_mode+set}" = set; then
1807 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1809 USE_MAINTAINER_MODE=no
1812 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1813 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
1816 if test $USE_MAINTAINER_MODE = yes; then
1817 MAINTAINER_MODE_TRUE=
1818 MAINTAINER_MODE_FALSE='#'
1820 MAINTAINER_MODE_TRUE='#'
1821 MAINTAINER_MODE_FALSE=
1824 MAINT=$MAINTAINER_MODE_TRUE
1827 am__api_version="1.7"
1829 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1830 if test -f "$ac_dir/install-sh"; then
1832 ac_install_sh="$ac_aux_dir/install-sh -c"
1834 elif test -f "$ac_dir/install.sh"; then
1836 ac_install_sh="$ac_aux_dir/install.sh -c"
1838 elif test -f "$ac_dir/shtool"; then
1840 ac_install_sh="$ac_aux_dir/shtool install -c"
1844 if test -z "$ac_aux_dir"; then
1845 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1846 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1847 { (exit 1); exit 1; }; }
1850 # These three variables are undocumented and unsupported,
1851 # and are intended to be withdrawn in a future Autoconf release.
1852 # They can cause serious problems if a builder's source tree is in a directory
1853 # whose full name contains unusual characters.
1854 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1855 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1856 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1859 # Find a good install program. We prefer a C program (faster),
1860 # so one script is as good as another. But avoid the broken or
1861 # incompatible versions:
1862 # SysV /etc/install, /usr/sbin/install
1863 # SunOS /usr/etc/install
1864 # IRIX /sbin/install
1866 # AmigaOS /C/install, which installs bootblocks on floppy discs
1867 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1868 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1869 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1870 # OS/2's system install, which has a completely different semantic
1871 # ./install, which can be erroneously created by make from ./install.sh.
1872 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1873 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1874 if test -z "$INSTALL"; then
1875 if test "${ac_cv_path_install+set}" = set; then
1876 echo $ECHO_N "(cached) $ECHO_C" >&6
1878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882 test -z "$as_dir" && as_dir=.
1883 # Account for people who put trailing slashes in PATH elements.
1885 ./ | .// | /cC/* | \
1886 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1887 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1890 # OSF1 and SCO ODT 3.0 have their own names for install.
1891 # Don't use installbsd from OSF since it installs stuff as root
1893 for ac_prog in ginstall scoinst install; do
1894 for ac_exec_ext in '' $ac_executable_extensions; do
1895 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1896 if test $ac_prog = install &&
1897 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1898 # AIX install. It has an incompatible calling convention.
1900 elif test $ac_prog = install &&
1901 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1902 # program-specific install script used by HP pwplus--don't use.
1905 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1918 if test "${ac_cv_path_install+set}" = set; then
1919 INSTALL=$ac_cv_path_install
1921 # As a last resort, use the slow shell script. Don't cache a
1922 # value for INSTALL within a source directory, because that will
1923 # break other packages using the cache if that directory is
1924 # removed, or if the value is a relative name.
1925 INSTALL=$ac_install_sh
1928 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1929 echo "${ECHO_T}$INSTALL" >&6; }
1931 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1932 # It thinks the first close brace ends the variable substitution.
1933 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1935 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1937 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1939 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1940 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1943 echo timestamp > conftest.file
1944 # Do `set' in a subshell so we don't clobber the current shell's
1945 # arguments. Must try -L first in case configure is actually a
1946 # symlink; some systems play weird games with the mod time of symlinks
1947 # (eg FreeBSD returns the mod time of the symlink's containing
1950 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1951 if test "$*" = "X"; then
1953 set X `ls -t $srcdir/configure conftest.file`
1956 if test "$*" != "X $srcdir/configure conftest.file" \
1957 && test "$*" != "X conftest.file $srcdir/configure"; then
1959 # If neither matched, then we have a broken ls. This can happen
1960 # if, for instance, CONFIG_SHELL is bash and it inherits a
1961 # broken ls alias from the environment. This has actually
1962 # happened. Such a system could not be considered "sane".
1963 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1964 alias in your environment" >&5
1965 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1966 alias in your environment" >&2;}
1967 { (exit 1); exit 1; }; }
1970 test "$2" = conftest.file
1976 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1977 Check your system clock" >&5
1978 echo "$as_me: error: newly created file is older than distributed files!
1979 Check your system clock" >&2;}
1980 { (exit 1); exit 1; }; }
1982 { echo "$as_me:$LINENO: result: yes" >&5
1983 echo "${ECHO_T}yes" >&6; }
1984 test "$program_prefix" != NONE &&
1985 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1986 # Use a double $ so make ignores it.
1987 test "$program_suffix" != NONE &&
1988 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1989 # Double any \ or $. echo might interpret backslashes.
1990 # By default was `s,x,x', remove it if useless.
1991 cat <<\_ACEOF >conftest.sed
1992 s/[\\$]/&&/g;s/;s,x,x,$//
1994 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1998 # expand $ac_aux_dir to an absolute path
1999 am_aux_dir=`cd $ac_aux_dir && pwd`
2001 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2002 # Use eval to expand $SHELL
2003 if eval "$MISSING --run true"; then
2004 am_missing_run="$MISSING --run "
2007 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2008 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2011 for ac_prog in gawk mawk nawk awk
2013 # Extract the first word of "$ac_prog", so it can be a program name with args.
2014 set dummy $ac_prog; ac_word=$2
2015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2017 if test "${ac_cv_prog_AWK+set}" = set; then
2018 echo $ECHO_N "(cached) $ECHO_C" >&6
2020 if test -n "$AWK"; then
2021 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027 test -z "$as_dir" && as_dir=.
2028 for ac_exec_ext in '' $ac_executable_extensions; do
2029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2030 ac_cv_prog_AWK="$ac_prog"
2031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2041 if test -n "$AWK"; then
2042 { echo "$as_me:$LINENO: result: $AWK" >&5
2043 echo "${ECHO_T}$AWK" >&6; }
2045 { echo "$as_me:$LINENO: result: no" >&5
2046 echo "${ECHO_T}no" >&6; }
2050 test -n "$AWK" && break
2053 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2054 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2055 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2056 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2057 echo $ECHO_N "(cached) $ECHO_C" >&6
2059 cat >conftest.make <<\_ACEOF
2062 @echo '@@@%%%=$(MAKE)=@@@%%%'
2064 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2065 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2067 eval ac_cv_prog_make_${ac_make}_set=yes;;
2069 eval ac_cv_prog_make_${ac_make}_set=no;;
2073 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2074 { echo "$as_me:$LINENO: result: yes" >&5
2075 echo "${ECHO_T}yes" >&6; }
2078 { echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6; }
2080 SET_MAKE="MAKE=${MAKE-make}"
2083 rm -rf .tst 2>/dev/null
2084 mkdir .tst 2>/dev/null
2085 if test -d .tst; then
2090 rmdir .tst 2>/dev/null
2092 # test to see if srcdir already configured
2093 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2094 test -f $srcdir/config.status; then
2095 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2096 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2097 { (exit 1); exit 1; }; }
2100 # test whether we have cygpath
2101 if test -z "$CYGPATH_W"; then
2102 if (cygpath --version) >/dev/null 2>/dev/null; then
2103 CYGPATH_W='cygpath -w'
2110 # Define the identity of the package.
2115 cat >>confdefs.h <<_ACEOF
2116 #define PACKAGE "$PACKAGE"
2120 cat >>confdefs.h <<_ACEOF
2121 #define VERSION "$VERSION"
2124 # Some tools Automake needs.
2126 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2129 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2132 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2135 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2138 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2141 AMTAR=${AMTAR-"${am_missing_run}tar"}
2143 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2145 # Installed binaries are usually stripped using `strip' when the user
2146 # run `make install-strip'. However `strip' might not be the right
2147 # tool to use in cross-compilation environments, therefore Automake
2148 # will honor the `STRIP' environment variable to overrule this program.
2149 if test "$cross_compiling" != no; then
2150 if test -n "$ac_tool_prefix"; then
2151 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2152 set dummy ${ac_tool_prefix}strip; ac_word=$2
2153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2155 if test "${ac_cv_prog_STRIP+set}" = set; then
2156 echo $ECHO_N "(cached) $ECHO_C" >&6
2158 if test -n "$STRIP"; then
2159 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165 test -z "$as_dir" && as_dir=.
2166 for ac_exec_ext in '' $ac_executable_extensions; do
2167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2168 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2178 STRIP=$ac_cv_prog_STRIP
2179 if test -n "$STRIP"; then
2180 { echo "$as_me:$LINENO: result: $STRIP" >&5
2181 echo "${ECHO_T}$STRIP" >&6; }
2183 { echo "$as_me:$LINENO: result: no" >&5
2184 echo "${ECHO_T}no" >&6; }
2189 if test -z "$ac_cv_prog_STRIP"; then
2191 # Extract the first word of "strip", so it can be a program name with args.
2192 set dummy strip; ac_word=$2
2193 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2195 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2196 echo $ECHO_N "(cached) $ECHO_C" >&6
2198 if test -n "$ac_ct_STRIP"; then
2199 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2205 test -z "$as_dir" && as_dir=.
2206 for ac_exec_ext in '' $ac_executable_extensions; do
2207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2208 ac_cv_prog_ac_ct_STRIP="strip"
2209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2218 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2219 if test -n "$ac_ct_STRIP"; then
2220 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2221 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2223 { echo "$as_me:$LINENO: result: no" >&5
2224 echo "${ECHO_T}no" >&6; }
2227 if test "x$ac_ct_STRIP" = x; then
2230 case $cross_compiling:$ac_tool_warned in
2232 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2233 whose name does not start with the host triplet. If you think this
2234 configuration is useful to you, please write to autoconf@gnu.org." >&5
2235 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2236 whose name does not start with the host triplet. If you think this
2237 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2238 ac_tool_warned=yes ;;
2243 STRIP="$ac_cv_prog_STRIP"
2247 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2249 # We need awk for the "check" target. The system "awk" is bad on
2254 ac_config_headers="$ac_config_headers config.h"
2257 for ac_prog in gawk mawk nawk awk
2259 # Extract the first word of "$ac_prog", so it can be a program name with args.
2260 set dummy $ac_prog; ac_word=$2
2261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2263 if test "${ac_cv_prog_AWK+set}" = set; then
2264 echo $ECHO_N "(cached) $ECHO_C" >&6
2266 if test -n "$AWK"; then
2267 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2273 test -z "$as_dir" && as_dir=.
2274 for ac_exec_ext in '' $ac_executable_extensions; do
2275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2276 ac_cv_prog_AWK="$ac_prog"
2277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2287 if test -n "$AWK"; then
2288 { echo "$as_me:$LINENO: result: $AWK" >&5
2289 echo "${ECHO_T}$AWK" >&6; }
2291 { echo "$as_me:$LINENO: result: no" >&5
2292 echo "${ECHO_T}no" >&6; }
2296 test -n "$AWK" && break
2299 # Find a good install program. We prefer a C program (faster),
2300 # so one script is as good as another. But avoid the broken or
2301 # incompatible versions:
2302 # SysV /etc/install, /usr/sbin/install
2303 # SunOS /usr/etc/install
2304 # IRIX /sbin/install
2306 # AmigaOS /C/install, which installs bootblocks on floppy discs
2307 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2308 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2309 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2310 # OS/2's system install, which has a completely different semantic
2311 # ./install, which can be erroneously created by make from ./install.sh.
2312 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2313 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2314 if test -z "$INSTALL"; then
2315 if test "${ac_cv_path_install+set}" = set; then
2316 echo $ECHO_N "(cached) $ECHO_C" >&6
2318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2322 test -z "$as_dir" && as_dir=.
2323 # Account for people who put trailing slashes in PATH elements.
2325 ./ | .// | /cC/* | \
2326 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2327 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2330 # OSF1 and SCO ODT 3.0 have their own names for install.
2331 # Don't use installbsd from OSF since it installs stuff as root
2333 for ac_prog in ginstall scoinst install; do
2334 for ac_exec_ext in '' $ac_executable_extensions; do
2335 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2336 if test $ac_prog = install &&
2337 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2338 # AIX install. It has an incompatible calling convention.
2340 elif test $ac_prog = install &&
2341 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2342 # program-specific install script used by HP pwplus--don't use.
2345 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2358 if test "${ac_cv_path_install+set}" = set; then
2359 INSTALL=$ac_cv_path_install
2361 # As a last resort, use the slow shell script. Don't cache a
2362 # value for INSTALL within a source directory, because that will
2363 # break other packages using the cache if that directory is
2364 # removed, or if the value is a relative name.
2365 INSTALL=$ac_install_sh
2368 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2369 echo "${ECHO_T}$INSTALL" >&6; }
2371 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2372 # It thinks the first close brace ends the variable substitution.
2373 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2375 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2377 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2379 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2380 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2381 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2382 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
2385 cat >conftest.make <<\_ACEOF
2388 @echo '@@@%%%=$(MAKE)=@@@%%%'
2390 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2391 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2393 eval ac_cv_prog_make_${ac_make}_set=yes;;
2395 eval ac_cv_prog_make_${ac_make}_set=no;;
2399 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2400 { echo "$as_me:$LINENO: result: yes" >&5
2401 echo "${ECHO_T}yes" >&6; }
2404 { echo "$as_me:$LINENO: result: no" >&5
2405 echo "${ECHO_T}no" >&6; }
2406 SET_MAKE="MAKE=${MAKE-make}"
2409 if test -n "$ac_tool_prefix"; then
2410 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2411 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2414 if test "${ac_cv_prog_RANLIB+set}" = set; then
2415 echo $ECHO_N "(cached) $ECHO_C" >&6
2417 if test -n "$RANLIB"; then
2418 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424 test -z "$as_dir" && as_dir=.
2425 for ac_exec_ext in '' $ac_executable_extensions; do
2426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2427 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2437 RANLIB=$ac_cv_prog_RANLIB
2438 if test -n "$RANLIB"; then
2439 { echo "$as_me:$LINENO: result: $RANLIB" >&5
2440 echo "${ECHO_T}$RANLIB" >&6; }
2442 { echo "$as_me:$LINENO: result: no" >&5
2443 echo "${ECHO_T}no" >&6; }
2448 if test -z "$ac_cv_prog_RANLIB"; then
2449 ac_ct_RANLIB=$RANLIB
2450 # Extract the first word of "ranlib", so it can be a program name with args.
2451 set dummy ranlib; ac_word=$2
2452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2454 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2455 echo $ECHO_N "(cached) $ECHO_C" >&6
2457 if test -n "$ac_ct_RANLIB"; then
2458 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 test -z "$as_dir" && as_dir=.
2465 for ac_exec_ext in '' $ac_executable_extensions; do
2466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2467 ac_cv_prog_ac_ct_RANLIB="ranlib"
2468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2477 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2478 if test -n "$ac_ct_RANLIB"; then
2479 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2480 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2482 { echo "$as_me:$LINENO: result: no" >&5
2483 echo "${ECHO_T}no" >&6; }
2486 if test "x$ac_ct_RANLIB" = x; then
2489 case $cross_compiling:$ac_tool_warned in
2491 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2492 whose name does not start with the host triplet. If you think this
2493 configuration is useful to you, please write to autoconf@gnu.org." >&5
2494 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2495 whose name does not start with the host triplet. If you think this
2496 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2497 ac_tool_warned=yes ;;
2499 RANLIB=$ac_ct_RANLIB
2502 RANLIB="$ac_cv_prog_RANLIB"
2507 ac_cpp='$CPP $CPPFLAGS'
2508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2511 if test -n "$ac_tool_prefix"; then
2512 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2513 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2516 if test "${ac_cv_prog_CC+set}" = set; then
2517 echo $ECHO_N "(cached) $ECHO_C" >&6
2519 if test -n "$CC"; then
2520 ac_cv_prog_CC="$CC" # Let the user override the test.
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 test -z "$as_dir" && as_dir=.
2527 for ac_exec_ext in '' $ac_executable_extensions; do
2528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2529 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2540 if test -n "$CC"; then
2541 { echo "$as_me:$LINENO: result: $CC" >&5
2542 echo "${ECHO_T}$CC" >&6; }
2544 { echo "$as_me:$LINENO: result: no" >&5
2545 echo "${ECHO_T}no" >&6; }
2550 if test -z "$ac_cv_prog_CC"; then
2552 # Extract the first word of "gcc", so it can be a program name with args.
2553 set dummy gcc; ac_word=$2
2554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2556 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2557 echo $ECHO_N "(cached) $ECHO_C" >&6
2559 if test -n "$ac_ct_CC"; then
2560 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566 test -z "$as_dir" && as_dir=.
2567 for ac_exec_ext in '' $ac_executable_extensions; do
2568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2569 ac_cv_prog_ac_ct_CC="gcc"
2570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2579 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2580 if test -n "$ac_ct_CC"; then
2581 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2582 echo "${ECHO_T}$ac_ct_CC" >&6; }
2584 { echo "$as_me:$LINENO: result: no" >&5
2585 echo "${ECHO_T}no" >&6; }
2588 if test "x$ac_ct_CC" = x; then
2591 case $cross_compiling:$ac_tool_warned in
2593 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2594 whose name does not start with the host triplet. If you think this
2595 configuration is useful to you, please write to autoconf@gnu.org." >&5
2596 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2597 whose name does not start with the host triplet. If you think this
2598 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2599 ac_tool_warned=yes ;;
2607 if test -z "$CC"; then
2608 if test -n "$ac_tool_prefix"; then
2609 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2610 set dummy ${ac_tool_prefix}cc; ac_word=$2
2611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2613 if test "${ac_cv_prog_CC+set}" = set; then
2614 echo $ECHO_N "(cached) $ECHO_C" >&6
2616 if test -n "$CC"; then
2617 ac_cv_prog_CC="$CC" # Let the user override the test.
2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623 test -z "$as_dir" && as_dir=.
2624 for ac_exec_ext in '' $ac_executable_extensions; do
2625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2626 ac_cv_prog_CC="${ac_tool_prefix}cc"
2627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2637 if test -n "$CC"; then
2638 { echo "$as_me:$LINENO: result: $CC" >&5
2639 echo "${ECHO_T}$CC" >&6; }
2641 { echo "$as_me:$LINENO: result: no" >&5
2642 echo "${ECHO_T}no" >&6; }
2648 if test -z "$CC"; then
2649 # Extract the first word of "cc", so it can be a program name with args.
2650 set dummy cc; ac_word=$2
2651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2653 if test "${ac_cv_prog_CC+set}" = set; then
2654 echo $ECHO_N "(cached) $ECHO_C" >&6
2656 if test -n "$CC"; then
2657 ac_cv_prog_CC="$CC" # Let the user override the test.
2660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664 test -z "$as_dir" && as_dir=.
2665 for ac_exec_ext in '' $ac_executable_extensions; do
2666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2667 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2668 ac_prog_rejected=yes
2672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2679 if test $ac_prog_rejected = yes; then
2680 # We found a bogon in the path, so make sure we never use it.
2681 set dummy $ac_cv_prog_CC
2683 if test $# != 0; then
2684 # We chose a different compiler from the bogus one.
2685 # However, it has the same basename, so the bogon will be chosen
2686 # first if we set CC to just the basename; use the full file name.
2688 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2694 if test -n "$CC"; then
2695 { echo "$as_me:$LINENO: result: $CC" >&5
2696 echo "${ECHO_T}$CC" >&6; }
2698 { echo "$as_me:$LINENO: result: no" >&5
2699 echo "${ECHO_T}no" >&6; }
2704 if test -z "$CC"; then
2705 if test -n "$ac_tool_prefix"; then
2706 for ac_prog in cl.exe
2708 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2709 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2712 if test "${ac_cv_prog_CC+set}" = set; then
2713 echo $ECHO_N "(cached) $ECHO_C" >&6
2715 if test -n "$CC"; then
2716 ac_cv_prog_CC="$CC" # Let the user override the test.
2718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722 test -z "$as_dir" && as_dir=.
2723 for ac_exec_ext in '' $ac_executable_extensions; do
2724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2725 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2736 if test -n "$CC"; then
2737 { echo "$as_me:$LINENO: result: $CC" >&5
2738 echo "${ECHO_T}$CC" >&6; }
2740 { echo "$as_me:$LINENO: result: no" >&5
2741 echo "${ECHO_T}no" >&6; }
2745 test -n "$CC" && break
2748 if test -z "$CC"; then
2750 for ac_prog in cl.exe
2752 # Extract the first word of "$ac_prog", so it can be a program name with args.
2753 set dummy $ac_prog; ac_word=$2
2754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2756 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2757 echo $ECHO_N "(cached) $ECHO_C" >&6
2759 if test -n "$ac_ct_CC"; then
2760 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766 test -z "$as_dir" && as_dir=.
2767 for ac_exec_ext in '' $ac_executable_extensions; do
2768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2769 ac_cv_prog_ac_ct_CC="$ac_prog"
2770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2779 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2780 if test -n "$ac_ct_CC"; then
2781 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2782 echo "${ECHO_T}$ac_ct_CC" >&6; }
2784 { echo "$as_me:$LINENO: result: no" >&5
2785 echo "${ECHO_T}no" >&6; }
2789 test -n "$ac_ct_CC" && break
2792 if test "x$ac_ct_CC" = x; then
2795 case $cross_compiling:$ac_tool_warned in
2797 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2798 whose name does not start with the host triplet. If you think this
2799 configuration is useful to you, please write to autoconf@gnu.org." >&5
2800 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2801 whose name does not start with the host triplet. If you think this
2802 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2803 ac_tool_warned=yes ;;
2812 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2813 See \`config.log' for more details." >&5
2814 echo "$as_me: error: no acceptable C compiler found in \$PATH
2815 See \`config.log' for more details." >&2;}
2816 { (exit 1); exit 1; }; }
2818 # Provide some information about the compiler.
2819 echo "$as_me:$LINENO: checking for C compiler version" >&5
2820 ac_compiler=`set X $ac_compile; echo $2`
2821 { (ac_try="$ac_compiler --version >&5"
2823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2824 *) ac_try_echo=$ac_try;;
2826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2827 (eval "$ac_compiler --version >&5") 2>&5
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); }
2831 { (ac_try="$ac_compiler -v >&5"
2833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2834 *) ac_try_echo=$ac_try;;
2836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2837 (eval "$ac_compiler -v >&5") 2>&5
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }
2841 { (ac_try="$ac_compiler -V >&5"
2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2847 (eval "$ac_compiler -V >&5") 2>&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }
2852 cat >conftest.$ac_ext <<_ACEOF
2855 cat confdefs.h >>conftest.$ac_ext
2856 cat >>conftest.$ac_ext <<_ACEOF
2857 /* end confdefs.h. */
2867 ac_clean_files_save=$ac_clean_files
2868 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2869 # Try to create an executable without -o first, disregard a.out.
2870 # It will help us diagnose broken compilers, and finding out an intuition
2872 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2873 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2874 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2876 # List of possible output files, starting from the most likely.
2877 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2878 # only as a last resort. b.out is created by i960 compilers.
2879 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2881 # The IRIX 6 linker writes into existing files which may not be
2882 # executable, retaining their permissions. Remove them first so a
2883 # subsequent execution test works.
2885 for ac_file in $ac_files
2888 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2889 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2894 if { (ac_try="$ac_link_default"
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900 (eval "$ac_link_default") 2>&5
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }; then
2904 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2905 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2906 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2907 # so that the user can short-circuit this test for compilers unknown to
2909 for ac_file in $ac_files ''
2911 test -f "$ac_file" || continue
2913 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2916 # We found the default executable, but exeext='' is most
2920 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2922 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2924 # We set ac_cv_exeext here because the later test for it is not
2925 # safe: cross compilers may not add the suffix if given an `-o'
2926 # argument, so we may need to know it at that point already.
2927 # Even if this section looks crufty: it has the advantage of
2934 test "$ac_cv_exeext" = no && ac_cv_exeext=
2940 { echo "$as_me:$LINENO: result: $ac_file" >&5
2941 echo "${ECHO_T}$ac_file" >&6; }
2942 if test -z "$ac_file"; then
2943 echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.$ac_ext >&5
2946 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2947 See \`config.log' for more details." >&5
2948 echo "$as_me: error: C compiler cannot create executables
2949 See \`config.log' for more details." >&2;}
2950 { (exit 77); exit 77; }; }
2953 ac_exeext=$ac_cv_exeext
2955 # Check that the compiler produces executables we can run. If not, either
2956 # the compiler is broken, or we cross compile.
2957 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2958 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2959 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2960 # If not cross compiling, check that we can run a simple program.
2961 if test "$cross_compiling" != yes; then
2962 if { ac_try='./$ac_file'
2963 { (case "(($ac_try" in
2964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965 *) ac_try_echo=$ac_try;;
2967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2968 (eval "$ac_try") 2>&5
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); }; }; then
2974 if test "$cross_compiling" = maybe; then
2977 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2978 If you meant to cross compile, use \`--host'.
2979 See \`config.log' for more details." >&5
2980 echo "$as_me: error: cannot run C compiled programs.
2981 If you meant to cross compile, use \`--host'.
2982 See \`config.log' for more details." >&2;}
2983 { (exit 1); exit 1; }; }
2987 { echo "$as_me:$LINENO: result: yes" >&5
2988 echo "${ECHO_T}yes" >&6; }
2990 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2991 ac_clean_files=$ac_clean_files_save
2992 # Check that the compiler produces executables we can run. If not, either
2993 # the compiler is broken, or we cross compile.
2994 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2995 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2996 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2997 echo "${ECHO_T}$cross_compiling" >&6; }
2999 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3000 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3001 if { (ac_try="$ac_link"
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007 (eval "$ac_link") 2>&5
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); }; then
3011 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3012 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3013 # work properly (i.e., refer to `conftest.exe'), while it won't with
3015 for ac_file in conftest.exe conftest conftest.*; do
3016 test -f "$ac_file" || continue
3018 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3019 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3025 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3026 See \`config.log' for more details." >&5
3027 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3028 See \`config.log' for more details." >&2;}
3029 { (exit 1); exit 1; }; }
3032 rm -f conftest$ac_cv_exeext
3033 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3034 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3036 rm -f conftest.$ac_ext
3037 EXEEXT=$ac_cv_exeext
3039 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3040 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3041 if test "${ac_cv_objext+set}" = set; then
3042 echo $ECHO_N "(cached) $ECHO_C" >&6
3044 cat >conftest.$ac_ext <<_ACEOF
3047 cat confdefs.h >>conftest.$ac_ext
3048 cat >>conftest.$ac_ext <<_ACEOF
3049 /* end confdefs.h. */
3059 rm -f conftest.o conftest.obj
3060 if { (ac_try="$ac_compile"
3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063 *) ac_try_echo=$ac_try;;
3065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3066 (eval "$ac_compile") 2>&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); }; then
3070 for ac_file in conftest.o conftest.obj conftest.*; do
3071 test -f "$ac_file" || continue;
3073 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3074 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3079 echo "$as_me: failed program was:" >&5
3080 sed 's/^/| /' conftest.$ac_ext >&5
3082 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3083 See \`config.log' for more details." >&5
3084 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3085 See \`config.log' for more details." >&2;}
3086 { (exit 1); exit 1; }; }
3089 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3091 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3092 echo "${ECHO_T}$ac_cv_objext" >&6; }
3093 OBJEXT=$ac_cv_objext
3095 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3096 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3097 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3098 echo $ECHO_N "(cached) $ECHO_C" >&6
3100 cat >conftest.$ac_ext <<_ACEOF
3103 cat confdefs.h >>conftest.$ac_ext
3104 cat >>conftest.$ac_ext <<_ACEOF
3105 /* end confdefs.h. */
3118 rm -f conftest.$ac_objext
3119 if { (ac_try="$ac_compile"
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125 (eval "$ac_compile") 2>conftest.er1
3127 grep -v '^ *+' conftest.er1 >conftest.err
3129 cat conftest.err >&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); } && {
3132 test -z "$ac_c_werror_flag" ||
3133 test ! -s conftest.err
3134 } && test -s conftest.$ac_objext; then
3137 echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3144 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3147 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3148 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3149 GCC=`test $ac_compiler_gnu = yes && echo yes`
3150 ac_test_CFLAGS=${CFLAGS+set}
3151 ac_save_CFLAGS=$CFLAGS
3152 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3153 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3154 if test "${ac_cv_prog_cc_g+set}" = set; then
3155 echo $ECHO_N "(cached) $ECHO_C" >&6
3157 ac_save_c_werror_flag=$ac_c_werror_flag
3158 ac_c_werror_flag=yes
3161 cat >conftest.$ac_ext <<_ACEOF
3164 cat confdefs.h >>conftest.$ac_ext
3165 cat >>conftest.$ac_ext <<_ACEOF
3166 /* end confdefs.h. */
3176 rm -f conftest.$ac_objext
3177 if { (ac_try="$ac_compile"
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183 (eval "$ac_compile") 2>conftest.er1
3185 grep -v '^ *+' conftest.er1 >conftest.err
3187 cat conftest.err >&5
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); } && {
3190 test -z "$ac_c_werror_flag" ||
3191 test ! -s conftest.err
3192 } && test -s conftest.$ac_objext; then
3195 echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3199 cat >conftest.$ac_ext <<_ACEOF
3202 cat confdefs.h >>conftest.$ac_ext
3203 cat >>conftest.$ac_ext <<_ACEOF
3204 /* end confdefs.h. */
3214 rm -f conftest.$ac_objext
3215 if { (ac_try="$ac_compile"
3217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218 *) ac_try_echo=$ac_try;;
3220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3221 (eval "$ac_compile") 2>conftest.er1
3223 grep -v '^ *+' conftest.er1 >conftest.err
3225 cat conftest.err >&5
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); } && {
3228 test -z "$ac_c_werror_flag" ||
3229 test ! -s conftest.err
3230 } && test -s conftest.$ac_objext; then
3233 echo "$as_me: failed program was:" >&5
3234 sed 's/^/| /' conftest.$ac_ext >&5
3236 ac_c_werror_flag=$ac_save_c_werror_flag
3238 cat >conftest.$ac_ext <<_ACEOF
3241 cat confdefs.h >>conftest.$ac_ext
3242 cat >>conftest.$ac_ext <<_ACEOF
3243 /* end confdefs.h. */
3253 rm -f conftest.$ac_objext
3254 if { (ac_try="$ac_compile"
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3260 (eval "$ac_compile") 2>conftest.er1
3262 grep -v '^ *+' conftest.er1 >conftest.err
3264 cat conftest.err >&5
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); } && {
3267 test -z "$ac_c_werror_flag" ||
3268 test ! -s conftest.err
3269 } && test -s conftest.$ac_objext; then
3272 echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.$ac_ext >&5
3278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3285 ac_c_werror_flag=$ac_save_c_werror_flag
3287 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3288 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3289 if test "$ac_test_CFLAGS" = set; then
3290 CFLAGS=$ac_save_CFLAGS
3291 elif test $ac_cv_prog_cc_g = yes; then
3292 if test "$GCC" = yes; then
3298 if test "$GCC" = yes; then
3304 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3305 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3306 if test "${ac_cv_prog_cc_c89+set}" = set; then
3307 echo $ECHO_N "(cached) $ECHO_C" >&6
3309 ac_cv_prog_cc_c89=no
3311 cat >conftest.$ac_ext <<_ACEOF
3314 cat confdefs.h >>conftest.$ac_ext
3315 cat >>conftest.$ac_ext <<_ACEOF
3316 /* end confdefs.h. */
3319 #include <sys/types.h>
3320 #include <sys/stat.h>
3321 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3322 struct buf { int x; };
3323 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3324 static char *e (p, i)
3330 static char *f (char * (*g) (char **, int), char **p, ...)
3335 s = g (p, va_arg (v,int));
3340 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3341 function prototypes and stuff, but not '\xHH' hex character constants.
3342 These don't provoke an error unfortunately, instead are silently treated
3343 as 'x'. The following induces an error, until -std is added to get
3344 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3345 array size at least. It's necessary to write '\x00'==0 to get something
3346 that's true only with -std. */
3347 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3349 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3350 inside strings and character constants. */
3352 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3354 int test (int i, double x);
3355 struct s1 {int (*f) (int a);};
3356 struct s2 {int (*f) (double a);};
3357 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3363 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3368 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3369 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3371 CC="$ac_save_CC $ac_arg"
3372 rm -f conftest.$ac_objext
3373 if { (ac_try="$ac_compile"
3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376 *) ac_try_echo=$ac_try;;
3378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3379 (eval "$ac_compile") 2>conftest.er1
3381 grep -v '^ *+' conftest.er1 >conftest.err
3383 cat conftest.err >&5
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); } && {
3386 test -z "$ac_c_werror_flag" ||
3387 test ! -s conftest.err
3388 } && test -s conftest.$ac_objext; then
3389 ac_cv_prog_cc_c89=$ac_arg
3391 echo "$as_me: failed program was:" >&5
3392 sed 's/^/| /' conftest.$ac_ext >&5
3397 rm -f core conftest.err conftest.$ac_objext
3398 test "x$ac_cv_prog_cc_c89" != "xno" && break
3400 rm -f conftest.$ac_ext
3405 case "x$ac_cv_prog_cc_c89" in
3407 { echo "$as_me:$LINENO: result: none needed" >&5
3408 echo "${ECHO_T}none needed" >&6; } ;;
3410 { echo "$as_me:$LINENO: result: unsupported" >&5
3411 echo "${ECHO_T}unsupported" >&6; } ;;
3413 CC="$CC $ac_cv_prog_cc_c89"
3414 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3415 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3420 ac_cpp='$CPP $CPPFLAGS'
3421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3424 DEPDIR="${am__leading_dot}deps"
3426 ac_config_commands="$ac_config_commands depfiles"
3429 am_make=${MAKE-make}
3430 cat > confinc << 'END'
3435 # If we don't find an include directive, just comment out the code.
3436 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3437 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3441 # First try GNU make style include.
3442 echo "include confinc" > confmf
3443 # We grep out `Entering directory' and `Leaving directory'
3444 # messages which can occur if `w' ends up in MAKEFLAGS.
3445 # In particular we don't look at `^make:' because GNU make might
3446 # be invoked under some other name (usually "gmake"), in which
3447 # case it prints its new name instead of `make'.
3448 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3453 # Now try BSD make style include.
3454 if test "$am__include" = "#"; then
3455 echo '.include "confinc"' > confmf
3456 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3457 am__include=.include
3464 { echo "$as_me:$LINENO: result: $_am_result" >&5
3465 echo "${ECHO_T}$_am_result" >&6; }
3466 rm -f confinc confmf
3468 # Check whether --enable-dependency-tracking was given.
3469 if test "${enable_dependency_tracking+set}" = set; then
3470 enableval=$enable_dependency_tracking;
3473 if test "x$enable_dependency_tracking" != xno; then
3474 am_depcomp="$ac_aux_dir/depcomp"
3479 if test "x$enable_dependency_tracking" != xno; then
3490 depcc="$CC" am_compiler_list=
3492 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3493 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3494 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3497 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3498 # We make a subdir and do the tests there. Otherwise we can end up
3499 # making bogus files that we don't know about and never remove. For
3500 # instance it was reported that on HP-UX the gcc test will end up
3501 # making a dummy file named `D' -- because `-MD' means `put the output
3504 # Copy depcomp to subdir because otherwise we won't find it if we're
3505 # using a relative directory.
3506 cp "$am_depcomp" conftest.dir
3508 # We will build objects and dependencies in a subdirectory because
3509 # it helps to detect inapplicable dependency modes. For instance
3510 # both Tru64's cc and ICC support -MD to output dependencies as a
3511 # side effect of compilation, but ICC will put the dependencies in
3512 # the current directory while Tru64 will put them in the object
3516 am_cv_CC_dependencies_compiler_type=none
3517 if test "$am_compiler_list" = ""; then
3518 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3520 for depmode in $am_compiler_list; do
3521 # Setup a source with many dependencies, because some compilers
3522 # like to wrap large dependency lists on column 80 (with \), and
3523 # we should not choose a depcomp mode which is confused by this.
3525 # We need to recreate these files for each test, as the compiler may
3526 # overwrite some of them when testing with obscure command lines.
3527 # This happens at least with the AIX C compiler.
3529 for i in 1 2 3 4 5 6; do
3530 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3533 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3537 # after this tag, mechanisms are not by side-effect, so they'll
3538 # only be used when explicitly requested
3539 if test "x$enable_dependency_tracking" = xyes; then
3547 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3548 # mode. It turns out that the SunPro C++ compiler does not properly
3549 # handle `-M -o', and we need to detect this.
3550 if depmode=$depmode \
3551 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3552 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3553 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3554 >/dev/null 2>conftest.err &&
3555 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3556 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3557 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3558 # icc doesn't choke on unknown options, it will just issue warnings
3559 # (even with -Werror). So we grep stderr for any message
3560 # that says an option was ignored.
3561 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3562 am_cv_CC_dependencies_compiler_type=$depmode
3571 am_cv_CC_dependencies_compiler_type=none
3575 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3576 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3577 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3582 test "x$enable_dependency_tracking" != xno \
3583 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3585 am__fastdepCC_FALSE='#'
3587 am__fastdepCC_TRUE='#'
3588 am__fastdepCC_FALSE=
3593 ac_cpp='$CXXCPP $CPPFLAGS'
3594 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3595 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3596 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3597 if test -z "$CXX"; then
3598 if test -n "$CCC"; then
3601 if test -n "$ac_tool_prefix"; then
3602 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3604 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3605 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3608 if test "${ac_cv_prog_CXX+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3611 if test -n "$CXX"; then
3612 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3618 test -z "$as_dir" && as_dir=.
3619 for ac_exec_ext in '' $ac_executable_extensions; do
3620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3621 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3632 if test -n "$CXX"; then
3633 { echo "$as_me:$LINENO: result: $CXX" >&5
3634 echo "${ECHO_T}$CXX" >&6; }
3636 { echo "$as_me:$LINENO: result: no" >&5
3637 echo "${ECHO_T}no" >&6; }
3641 test -n "$CXX" && break
3644 if test -z "$CXX"; then
3646 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3648 # Extract the first word of "$ac_prog", so it can be a program name with args.
3649 set dummy $ac_prog; ac_word=$2
3650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3652 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
3655 if test -n "$ac_ct_CXX"; then
3656 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 test -z "$as_dir" && as_dir=.
3663 for ac_exec_ext in '' $ac_executable_extensions; do
3664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3665 ac_cv_prog_ac_ct_CXX="$ac_prog"
3666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3675 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3676 if test -n "$ac_ct_CXX"; then
3677 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3678 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3680 { echo "$as_me:$LINENO: result: no" >&5
3681 echo "${ECHO_T}no" >&6; }
3685 test -n "$ac_ct_CXX" && break
3688 if test "x$ac_ct_CXX" = x; then
3691 case $cross_compiling:$ac_tool_warned in
3693 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3694 whose name does not start with the host triplet. If you think this
3695 configuration is useful to you, please write to autoconf@gnu.org." >&5
3696 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3697 whose name does not start with the host triplet. If you think this
3698 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3699 ac_tool_warned=yes ;;
3707 # Provide some information about the compiler.
3708 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3709 ac_compiler=`set X $ac_compile; echo $2`
3710 { (ac_try="$ac_compiler --version >&5"
3712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713 *) ac_try_echo=$ac_try;;
3715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3716 (eval "$ac_compiler --version >&5") 2>&5
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); }
3720 { (ac_try="$ac_compiler -v >&5"
3722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3723 *) ac_try_echo=$ac_try;;
3725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3726 (eval "$ac_compiler -v >&5") 2>&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); }
3730 { (ac_try="$ac_compiler -V >&5"
3732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733 *) ac_try_echo=$ac_try;;
3735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3736 (eval "$ac_compiler -V >&5") 2>&5
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); }
3741 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3742 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3743 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3744 echo $ECHO_N "(cached) $ECHO_C" >&6
3746 cat >conftest.$ac_ext <<_ACEOF
3749 cat confdefs.h >>conftest.$ac_ext
3750 cat >>conftest.$ac_ext <<_ACEOF
3751 /* end confdefs.h. */
3764 rm -f conftest.$ac_objext
3765 if { (ac_try="$ac_compile"
3767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3768 *) ac_try_echo=$ac_try;;
3770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3771 (eval "$ac_compile") 2>conftest.er1
3773 grep -v '^ *+' conftest.er1 >conftest.err
3775 cat conftest.err >&5
3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 (exit $ac_status); } && {
3778 test -z "$ac_cxx_werror_flag" ||
3779 test ! -s conftest.err
3780 } && test -s conftest.$ac_objext; then
3783 echo "$as_me: failed program was:" >&5
3784 sed 's/^/| /' conftest.$ac_ext >&5
3789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3790 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3793 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3794 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3795 GXX=`test $ac_compiler_gnu = yes && echo yes`
3796 ac_test_CXXFLAGS=${CXXFLAGS+set}
3797 ac_save_CXXFLAGS=$CXXFLAGS
3798 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3799 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3800 if test "${ac_cv_prog_cxx_g+set}" = set; then
3801 echo $ECHO_N "(cached) $ECHO_C" >&6
3803 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3804 ac_cxx_werror_flag=yes
3807 cat >conftest.$ac_ext <<_ACEOF
3810 cat confdefs.h >>conftest.$ac_ext
3811 cat >>conftest.$ac_ext <<_ACEOF
3812 /* end confdefs.h. */
3822 rm -f conftest.$ac_objext
3823 if { (ac_try="$ac_compile"
3825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3826 *) ac_try_echo=$ac_try;;
3828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3829 (eval "$ac_compile") 2>conftest.er1
3831 grep -v '^ *+' conftest.er1 >conftest.err
3833 cat conftest.err >&5
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); } && {
3836 test -z "$ac_cxx_werror_flag" ||
3837 test ! -s conftest.err
3838 } && test -s conftest.$ac_objext; then
3839 ac_cv_prog_cxx_g=yes
3841 echo "$as_me: failed program was:" >&5
3842 sed 's/^/| /' conftest.$ac_ext >&5
3845 cat >conftest.$ac_ext <<_ACEOF
3848 cat confdefs.h >>conftest.$ac_ext
3849 cat >>conftest.$ac_ext <<_ACEOF
3850 /* end confdefs.h. */
3860 rm -f conftest.$ac_objext
3861 if { (ac_try="$ac_compile"
3863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864 *) ac_try_echo=$ac_try;;
3866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3867 (eval "$ac_compile") 2>conftest.er1
3869 grep -v '^ *+' conftest.er1 >conftest.err
3871 cat conftest.err >&5
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); } && {
3874 test -z "$ac_cxx_werror_flag" ||
3875 test ! -s conftest.err
3876 } && test -s conftest.$ac_objext; then
3879 echo "$as_me: failed program was:" >&5
3880 sed 's/^/| /' conftest.$ac_ext >&5
3882 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3884 cat >conftest.$ac_ext <<_ACEOF
3887 cat confdefs.h >>conftest.$ac_ext
3888 cat >>conftest.$ac_ext <<_ACEOF
3889 /* end confdefs.h. */
3899 rm -f conftest.$ac_objext
3900 if { (ac_try="$ac_compile"
3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903 *) ac_try_echo=$ac_try;;
3905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3906 (eval "$ac_compile") 2>conftest.er1
3908 grep -v '^ *+' conftest.er1 >conftest.err
3910 cat conftest.err >&5
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); } && {
3913 test -z "$ac_cxx_werror_flag" ||
3914 test ! -s conftest.err
3915 } && test -s conftest.$ac_objext; then
3916 ac_cv_prog_cxx_g=yes
3918 echo "$as_me: failed program was:" >&5
3919 sed 's/^/| /' conftest.$ac_ext >&5
3924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3931 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3933 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3934 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3935 if test "$ac_test_CXXFLAGS" = set; then
3936 CXXFLAGS=$ac_save_CXXFLAGS
3937 elif test $ac_cv_prog_cxx_g = yes; then
3938 if test "$GXX" = yes; then
3944 if test "$GXX" = yes; then
3951 ac_cpp='$CPP $CPPFLAGS'
3952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3956 depcc="$CXX" am_compiler_list=
3958 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3959 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3960 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3963 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3964 # We make a subdir and do the tests there. Otherwise we can end up
3965 # making bogus files that we don't know about and never remove. For
3966 # instance it was reported that on HP-UX the gcc test will end up
3967 # making a dummy file named `D' -- because `-MD' means `put the output
3970 # Copy depcomp to subdir because otherwise we won't find it if we're
3971 # using a relative directory.
3972 cp "$am_depcomp" conftest.dir
3974 # We will build objects and dependencies in a subdirectory because
3975 # it helps to detect inapplicable dependency modes. For instance
3976 # both Tru64's cc and ICC support -MD to output dependencies as a
3977 # side effect of compilation, but ICC will put the dependencies in
3978 # the current directory while Tru64 will put them in the object
3982 am_cv_CXX_dependencies_compiler_type=none
3983 if test "$am_compiler_list" = ""; then
3984 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3986 for depmode in $am_compiler_list; do
3987 # Setup a source with many dependencies, because some compilers
3988 # like to wrap large dependency lists on column 80 (with \), and
3989 # we should not choose a depcomp mode which is confused by this.
3991 # We need to recreate these files for each test, as the compiler may
3992 # overwrite some of them when testing with obscure command lines.
3993 # This happens at least with the AIX C compiler.
3995 for i in 1 2 3 4 5 6; do
3996 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3999 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4003 # after this tag, mechanisms are not by side-effect, so they'll
4004 # only be used when explicitly requested
4005 if test "x$enable_dependency_tracking" = xyes; then
4013 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4014 # mode. It turns out that the SunPro C++ compiler does not properly
4015 # handle `-M -o', and we need to detect this.
4016 if depmode=$depmode \
4017 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4018 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4019 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4020 >/dev/null 2>conftest.err &&
4021 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4022 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4023 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4024 # icc doesn't choke on unknown options, it will just issue warnings
4025 # (even with -Werror). So we grep stderr for any message
4026 # that says an option was ignored.
4027 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4028 am_cv_CXX_dependencies_compiler_type=$depmode
4037 am_cv_CXX_dependencies_compiler_type=none
4041 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4042 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4043 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4048 test "x$enable_dependency_tracking" != xno \
4049 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4050 am__fastdepCXX_TRUE=
4051 am__fastdepCXX_FALSE='#'
4053 am__fastdepCXX_TRUE='#'
4054 am__fastdepCXX_FALSE=
4060 ac_cpp='$CPP $CPPFLAGS'
4061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4064 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4065 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4066 # On Suns, sometimes $CPP names a directory.
4067 if test -n "$CPP" && test -d "$CPP"; then
4070 if test -z "$CPP"; then
4071 if test "${ac_cv_prog_CPP+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4074 # Double quotes because CPP needs to be expanded
4075 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4078 for ac_c_preproc_warn_flag in '' yes
4080 # Use a header file that comes with gcc, so configuring glibc
4081 # with a fresh cross-compiler works.
4082 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4083 # <limits.h> exists even on freestanding compilers.
4084 # On the NeXT, cc -E runs the code through the compiler's parser,
4085 # not just through cpp. "Syntax error" is here to catch this case.
4086 cat >conftest.$ac_ext <<_ACEOF
4089 cat confdefs.h >>conftest.$ac_ext
4090 cat >>conftest.$ac_ext <<_ACEOF
4091 /* end confdefs.h. */
4093 # include <limits.h>
4095 # include <assert.h>
4099 if { (ac_try="$ac_cpp conftest.$ac_ext"
4101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4102 *) ac_try_echo=$ac_try;;
4104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4105 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4107 grep -v '^ *+' conftest.er1 >conftest.err
4109 cat conftest.err >&5
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); } >/dev/null && {
4112 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4113 test ! -s conftest.err
4117 echo "$as_me: failed program was:" >&5
4118 sed 's/^/| /' conftest.$ac_ext >&5
4120 # Broken: fails on valid input.
4124 rm -f conftest.err conftest.$ac_ext
4126 # OK, works on sane cases. Now check whether nonexistent headers
4127 # can be detected and how.
4128 cat >conftest.$ac_ext <<_ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h. */
4134 #include <ac_nonexistent.h>
4136 if { (ac_try="$ac_cpp conftest.$ac_ext"
4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4142 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4144 grep -v '^ *+' conftest.er1 >conftest.err
4146 cat conftest.err >&5
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); } >/dev/null && {
4149 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4150 test ! -s conftest.err
4152 # Broken: success on invalid input.
4155 echo "$as_me: failed program was:" >&5
4156 sed 's/^/| /' conftest.$ac_ext >&5
4158 # Passes both tests.
4163 rm -f conftest.err conftest.$ac_ext
4166 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4167 rm -f conftest.err conftest.$ac_ext
4168 if $ac_preproc_ok; then
4180 { echo "$as_me:$LINENO: result: $CPP" >&5
4181 echo "${ECHO_T}$CPP" >&6; }
4183 for ac_c_preproc_warn_flag in '' yes
4185 # Use a header file that comes with gcc, so configuring glibc
4186 # with a fresh cross-compiler works.
4187 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4188 # <limits.h> exists even on freestanding compilers.
4189 # On the NeXT, cc -E runs the code through the compiler's parser,
4190 # not just through cpp. "Syntax error" is here to catch this case.
4191 cat >conftest.$ac_ext <<_ACEOF
4194 cat confdefs.h >>conftest.$ac_ext
4195 cat >>conftest.$ac_ext <<_ACEOF
4196 /* end confdefs.h. */
4198 # include <limits.h>
4200 # include <assert.h>
4204 if { (ac_try="$ac_cpp conftest.$ac_ext"
4206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4207 *) ac_try_echo=$ac_try;;
4209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4210 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4212 grep -v '^ *+' conftest.er1 >conftest.err
4214 cat conftest.err >&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); } >/dev/null && {
4217 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4218 test ! -s conftest.err
4222 echo "$as_me: failed program was:" >&5
4223 sed 's/^/| /' conftest.$ac_ext >&5
4225 # Broken: fails on valid input.
4229 rm -f conftest.err conftest.$ac_ext
4231 # OK, works on sane cases. Now check whether nonexistent headers
4232 # can be detected and how.
4233 cat >conftest.$ac_ext <<_ACEOF
4236 cat confdefs.h >>conftest.$ac_ext
4237 cat >>conftest.$ac_ext <<_ACEOF
4238 /* end confdefs.h. */
4239 #include <ac_nonexistent.h>
4241 if { (ac_try="$ac_cpp conftest.$ac_ext"
4243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244 *) ac_try_echo=$ac_try;;
4246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4247 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4249 grep -v '^ *+' conftest.er1 >conftest.err
4251 cat conftest.err >&5
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); } >/dev/null && {
4254 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4255 test ! -s conftest.err
4257 # Broken: success on invalid input.
4260 echo "$as_me: failed program was:" >&5
4261 sed 's/^/| /' conftest.$ac_ext >&5
4263 # Passes both tests.
4268 rm -f conftest.err conftest.$ac_ext
4271 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4272 rm -f conftest.err conftest.$ac_ext
4273 if $ac_preproc_ok; then
4276 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4277 See \`config.log' for more details." >&5
4278 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4279 See \`config.log' for more details." >&2;}
4280 { (exit 1); exit 1; }; }
4284 ac_cpp='$CPP $CPPFLAGS'
4285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4290 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4291 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4292 if test "${ac_cv_path_GREP+set}" = set; then
4293 echo $ECHO_N "(cached) $ECHO_C" >&6
4295 # Extract the first word of "grep ggrep" to use in msg output
4296 if test -z "$GREP"; then
4297 set dummy grep ggrep; ac_prog_name=$2
4298 if test "${ac_cv_path_GREP+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4301 ac_path_GREP_found=false
4302 # Loop through the user's path and test for each of PROGNAME-LIST
4303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4307 test -z "$as_dir" && as_dir=.
4308 for ac_prog in grep ggrep; do
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4311 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4312 # Check for GNU ac_path_GREP and select it if it is found.
4313 # Check for GNU $ac_path_GREP
4314 case `"$ac_path_GREP" --version 2>&1` in
4316 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4319 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4322 cat "conftest.in" "conftest.in" >"conftest.tmp"
4323 mv "conftest.tmp" "conftest.in"
4324 cp "conftest.in" "conftest.nl"
4325 echo 'GREP' >> "conftest.nl"
4326 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4327 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4328 ac_count=`expr $ac_count + 1`
4329 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4330 # Best one so far, save it but keep looking for a better one
4331 ac_cv_path_GREP="$ac_path_GREP"
4332 ac_path_GREP_max=$ac_count
4334 # 10*(2^10) chars as input seems more than enough
4335 test $ac_count -gt 10 && break
4337 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4341 $ac_path_GREP_found && break 3
4351 GREP="$ac_cv_path_GREP"
4352 if test -z "$GREP"; then
4353 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4354 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4355 { (exit 1); exit 1; }; }
4359 ac_cv_path_GREP=$GREP
4364 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4365 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4366 GREP="$ac_cv_path_GREP"
4369 { echo "$as_me:$LINENO: checking for egrep" >&5
4370 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4371 if test "${ac_cv_path_EGREP+set}" = set; then
4372 echo $ECHO_N "(cached) $ECHO_C" >&6
4374 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4375 then ac_cv_path_EGREP="$GREP -E"
4377 # Extract the first word of "egrep" to use in msg output
4378 if test -z "$EGREP"; then
4379 set dummy egrep; ac_prog_name=$2
4380 if test "${ac_cv_path_EGREP+set}" = set; then
4381 echo $ECHO_N "(cached) $ECHO_C" >&6
4383 ac_path_EGREP_found=false
4384 # Loop through the user's path and test for each of PROGNAME-LIST
4385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4386 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4389 test -z "$as_dir" && as_dir=.
4390 for ac_prog in egrep; do
4391 for ac_exec_ext in '' $ac_executable_extensions; do
4392 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4393 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4394 # Check for GNU ac_path_EGREP and select it if it is found.
4395 # Check for GNU $ac_path_EGREP
4396 case `"$ac_path_EGREP" --version 2>&1` in
4398 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4401 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4404 cat "conftest.in" "conftest.in" >"conftest.tmp"
4405 mv "conftest.tmp" "conftest.in"
4406 cp "conftest.in" "conftest.nl"
4407 echo 'EGREP' >> "conftest.nl"
4408 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4409 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4410 ac_count=`expr $ac_count + 1`
4411 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4412 # Best one so far, save it but keep looking for a better one
4413 ac_cv_path_EGREP="$ac_path_EGREP"
4414 ac_path_EGREP_max=$ac_count
4416 # 10*(2^10) chars as input seems more than enough
4417 test $ac_count -gt 10 && break
4419 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4423 $ac_path_EGREP_found && break 3
4433 EGREP="$ac_cv_path_EGREP"
4434 if test -z "$EGREP"; then
4435 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4436 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4437 { (exit 1); exit 1; }; }
4441 ac_cv_path_EGREP=$EGREP
4447 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4448 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4449 EGREP="$ac_cv_path_EGREP"
4452 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4453 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4454 if test "${ac_cv_header_stdc+set}" = set; then
4455 echo $ECHO_N "(cached) $ECHO_C" >&6
4457 cat >conftest.$ac_ext <<_ACEOF
4460 cat confdefs.h >>conftest.$ac_ext
4461 cat >>conftest.$ac_ext <<_ACEOF
4462 /* end confdefs.h. */
4476 rm -f conftest.$ac_objext
4477 if { (ac_try="$ac_compile"
4479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4480 *) ac_try_echo=$ac_try;;
4482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4483 (eval "$ac_compile") 2>conftest.er1
4485 grep -v '^ *+' conftest.er1 >conftest.err
4487 cat conftest.err >&5
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); } && {
4490 test -z "$ac_c_werror_flag" ||
4491 test ! -s conftest.err
4492 } && test -s conftest.$ac_objext; then
4493 ac_cv_header_stdc=yes
4495 echo "$as_me: failed program was:" >&5
4496 sed 's/^/| /' conftest.$ac_ext >&5
4498 ac_cv_header_stdc=no
4501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4503 if test $ac_cv_header_stdc = yes; then
4504 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4505 cat >conftest.$ac_ext <<_ACEOF
4508 cat confdefs.h >>conftest.$ac_ext
4509 cat >>conftest.$ac_ext <<_ACEOF
4510 /* end confdefs.h. */
4514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4515 $EGREP "memchr" >/dev/null 2>&1; then
4518 ac_cv_header_stdc=no
4524 if test $ac_cv_header_stdc = yes; then
4525 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4526 cat >conftest.$ac_ext <<_ACEOF
4529 cat confdefs.h >>conftest.$ac_ext
4530 cat >>conftest.$ac_ext <<_ACEOF
4531 /* end confdefs.h. */
4535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4536 $EGREP "free" >/dev/null 2>&1; then
4539 ac_cv_header_stdc=no
4545 if test $ac_cv_header_stdc = yes; then
4546 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4547 if test "$cross_compiling" = yes; then
4550 cat >conftest.$ac_ext <<_ACEOF
4553 cat confdefs.h >>conftest.$ac_ext
4554 cat >>conftest.$ac_ext <<_ACEOF
4555 /* end confdefs.h. */
4558 #if ((' ' & 0x0FF) == 0x020)
4559 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4560 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4562 # define ISLOWER(c) \
4563 (('a' <= (c) && (c) <= 'i') \
4564 || ('j' <= (c) && (c) <= 'r') \
4565 || ('s' <= (c) && (c) <= 'z'))
4566 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4569 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4574 for (i = 0; i < 256; i++)
4575 if (XOR (islower (i), ISLOWER (i))
4576 || toupper (i) != TOUPPER (i))
4581 rm -f conftest$ac_exeext
4582 if { (ac_try="$ac_link"
4584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4585 *) ac_try_echo=$ac_try;;
4587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4588 (eval "$ac_link") 2>&5
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4592 { (case "(($ac_try" in
4593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4594 *) ac_try_echo=$ac_try;;
4596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4597 (eval "$ac_try") 2>&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); }; }; then
4603 echo "$as_me: program exited with status $ac_status" >&5
4604 echo "$as_me: failed program was:" >&5
4605 sed 's/^/| /' conftest.$ac_ext >&5
4608 ac_cv_header_stdc=no
4610 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4616 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4617 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4618 if test $ac_cv_header_stdc = yes; then
4620 cat >>confdefs.h <<\_ACEOF
4621 #define STDC_HEADERS 1
4626 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4636 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4637 inttypes.h stdint.h unistd.h
4639 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4640 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4643 echo $ECHO_N "(cached) $ECHO_C" >&6
4645 cat >conftest.$ac_ext <<_ACEOF
4648 cat confdefs.h >>conftest.$ac_ext
4649 cat >>conftest.$ac_ext <<_ACEOF
4650 /* end confdefs.h. */
4651 $ac_includes_default
4653 #include <$ac_header>
4655 rm -f conftest.$ac_objext
4656 if { (ac_try="$ac_compile"
4658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4659 *) ac_try_echo=$ac_try;;
4661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4662 (eval "$ac_compile") 2>conftest.er1
4664 grep -v '^ *+' conftest.er1 >conftest.err
4666 cat conftest.err >&5
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); } && {
4669 test -z "$ac_c_werror_flag" ||
4670 test ! -s conftest.err
4671 } && test -s conftest.$ac_objext; then
4672 eval "$as_ac_Header=yes"
4674 echo "$as_me: failed program was:" >&5
4675 sed 's/^/| /' conftest.$ac_ext >&5
4677 eval "$as_ac_Header=no"
4680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4682 ac_res=`eval echo '${'$as_ac_Header'}'`
4683 { echo "$as_me:$LINENO: result: $ac_res" >&5
4684 echo "${ECHO_T}$ac_res" >&6; }
4685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4686 cat >>confdefs.h <<_ACEOF
4687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4695 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4696 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4697 if test "${ac_cv_c_bigendian+set}" = set; then
4698 echo $ECHO_N "(cached) $ECHO_C" >&6
4700 # See if sys/param.h defines the BYTE_ORDER macro.
4701 cat >conftest.$ac_ext <<_ACEOF
4704 cat confdefs.h >>conftest.$ac_ext
4705 cat >>conftest.$ac_ext <<_ACEOF
4706 /* end confdefs.h. */
4707 #include <sys/types.h>
4708 #include <sys/param.h>
4713 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4714 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4722 rm -f conftest.$ac_objext
4723 if { (ac_try="$ac_compile"
4725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4726 *) ac_try_echo=$ac_try;;
4728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4729 (eval "$ac_compile") 2>conftest.er1
4731 grep -v '^ *+' conftest.er1 >conftest.err
4733 cat conftest.err >&5
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); } && {
4736 test -z "$ac_c_werror_flag" ||
4737 test ! -s conftest.err
4738 } && test -s conftest.$ac_objext; then
4739 # It does; now see whether it defined to BIG_ENDIAN or not.
4740 cat >conftest.$ac_ext <<_ACEOF
4743 cat confdefs.h >>conftest.$ac_ext
4744 cat >>conftest.$ac_ext <<_ACEOF
4745 /* end confdefs.h. */
4746 #include <sys/types.h>
4747 #include <sys/param.h>
4752 #if BYTE_ORDER != BIG_ENDIAN
4760 rm -f conftest.$ac_objext
4761 if { (ac_try="$ac_compile"
4763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4764 *) ac_try_echo=$ac_try;;
4766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4767 (eval "$ac_compile") 2>conftest.er1
4769 grep -v '^ *+' conftest.er1 >conftest.err
4771 cat conftest.err >&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); } && {
4774 test -z "$ac_c_werror_flag" ||
4775 test ! -s conftest.err
4776 } && test -s conftest.$ac_objext; then
4777 ac_cv_c_bigendian=yes
4779 echo "$as_me: failed program was:" >&5
4780 sed 's/^/| /' conftest.$ac_ext >&5
4782 ac_cv_c_bigendian=no
4785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4787 echo "$as_me: failed program was:" >&5
4788 sed 's/^/| /' conftest.$ac_ext >&5
4790 # It does not; compile a test program.
4791 if test "$cross_compiling" = yes; then
4792 # try to guess the endianness by grepping values into an object file
4793 ac_cv_c_bigendian=unknown
4794 cat >conftest.$ac_ext <<_ACEOF
4797 cat confdefs.h >>conftest.$ac_ext
4798 cat >>conftest.$ac_ext <<_ACEOF
4799 /* end confdefs.h. */
4800 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4801 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4802 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4803 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4804 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4805 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4809 _ascii (); _ebcdic ();
4814 rm -f conftest.$ac_objext
4815 if { (ac_try="$ac_compile"
4817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4818 *) ac_try_echo=$ac_try;;
4820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4821 (eval "$ac_compile") 2>conftest.er1
4823 grep -v '^ *+' conftest.er1 >conftest.err
4825 cat conftest.err >&5
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); } && {
4828 test -z "$ac_c_werror_flag" ||
4829 test ! -s conftest.err
4830 } && test -s conftest.$ac_objext; then
4831 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4832 ac_cv_c_bigendian=yes
4834 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4835 if test "$ac_cv_c_bigendian" = unknown; then
4836 ac_cv_c_bigendian=no
4838 # finding both strings is unlikely to happen, but who knows?
4839 ac_cv_c_bigendian=unknown
4843 echo "$as_me: failed program was:" >&5
4844 sed 's/^/| /' conftest.$ac_ext >&5
4849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4851 cat >conftest.$ac_ext <<_ACEOF
4854 cat confdefs.h >>conftest.$ac_ext
4855 cat >>conftest.$ac_ext <<_ACEOF
4856 /* end confdefs.h. */
4857 $ac_includes_default
4862 /* Are we little or big endian? From Harbison&Steele. */
4866 char c[sizeof (long int)];
4869 return u.c[sizeof (long int) - 1] == 1;
4875 rm -f conftest$ac_exeext
4876 if { (ac_try="$ac_link"
4878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4879 *) ac_try_echo=$ac_try;;
4881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4882 (eval "$ac_link") 2>&5
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4886 { (case "(($ac_try" in
4887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4888 *) ac_try_echo=$ac_try;;
4890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4891 (eval "$ac_try") 2>&5
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); }; }; then
4895 ac_cv_c_bigendian=no
4897 echo "$as_me: program exited with status $ac_status" >&5
4898 echo "$as_me: failed program was:" >&5
4899 sed 's/^/| /' conftest.$ac_ext >&5
4902 ac_cv_c_bigendian=yes
4904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4912 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4913 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4914 case $ac_cv_c_bigendian in
4917 cat >>confdefs.h <<\_ACEOF
4918 #define WORDS_BIGENDIAN 1
4924 { { echo "$as_me:$LINENO: error: unknown endianness
4925 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4926 echo "$as_me: error: unknown endianness
4927 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4928 { (exit 1); exit 1; }; } ;;
4932 # Extract the first word of "wxgtk-2.4-config", so it can be a program name with args.
4933 set dummy wxgtk-2.4-config; ac_word=$2
4934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4936 if test "${ac_cv_path_wxconfig+set}" = set; then
4937 echo $ECHO_N "(cached) $ECHO_C" >&6
4941 ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
4944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948 test -z "$as_dir" && as_dir=.
4949 for ac_exec_ext in '' $ac_executable_extensions; do
4950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4951 ac_cv_path_wxconfig="$as_dir/$ac_word$ac_exec_ext"
4952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4962 wxconfig=$ac_cv_path_wxconfig
4963 if test -n "$wxconfig"; then
4964 { echo "$as_me:$LINENO: result: $wxconfig" >&5
4965 echo "${ECHO_T}$wxconfig" >&6; }
4967 { echo "$as_me:$LINENO: result: no" >&5
4968 echo "${ECHO_T}no" >&6; }
4972 if ! "$wxconfig" ; then
4973 # Extract the first word of "wx-config", so it can be a program name with args.
4974 set dummy wx-config; ac_word=$2
4975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4977 if test "${ac_cv_path_wxconfig+set}" = set; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
4982 ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989 test -z "$as_dir" && as_dir=.
4990 for ac_exec_ext in '' $ac_executable_extensions; do
4991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4992 ac_cv_path_wxconfig="$as_dir/$ac_word$ac_exec_ext"
4993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5003 wxconfig=$ac_cv_path_wxconfig
5004 if test -n "$wxconfig"; then
5005 { echo "$as_me:$LINENO: result: $wxconfig" >&5
5006 echo "${ECHO_T}$wxconfig" >&6; }
5008 { echo "$as_me:$LINENO: result: no" >&5
5009 echo "${ECHO_T}no" >&6; }
5015 # Make sure we can run config.sub.
5016 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5017 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5018 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5019 { (exit 1); exit 1; }; }
5021 { echo "$as_me:$LINENO: checking build system type" >&5
5022 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5023 if test "${ac_cv_build+set}" = set; then
5024 echo $ECHO_N "(cached) $ECHO_C" >&6
5026 ac_build_alias=$build_alias
5027 test "x$ac_build_alias" = x &&
5028 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5029 test "x$ac_build_alias" = x &&
5030 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5031 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5032 { (exit 1); exit 1; }; }
5033 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5034 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5035 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5036 { (exit 1); exit 1; }; }
5039 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5040 echo "${ECHO_T}$ac_cv_build" >&6; }
5041 case $ac_cv_build in
5043 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5044 echo "$as_me: error: invalid value of canonical build" >&2;}
5045 { (exit 1); exit 1; }; };;
5048 ac_save_IFS=$IFS; IFS='-'
5054 # Remember, the first character of IFS is used to create $*,
5055 # except with old shells:
5058 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5061 { echo "$as_me:$LINENO: checking host system type" >&5
5062 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5063 if test "${ac_cv_host+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5066 if test "x$host_alias" = x; then
5067 ac_cv_host=$ac_cv_build
5069 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5070 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5071 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5072 { (exit 1); exit 1; }; }
5076 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5077 echo "${ECHO_T}$ac_cv_host" >&6; }
5080 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5081 echo "$as_me: error: invalid value of canonical host" >&2;}
5082 { (exit 1); exit 1; }; };;
5085 ac_save_IFS=$IFS; IFS='-'
5091 # Remember, the first character of IFS is used to create $*,
5092 # except with old shells:
5095 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5098 { echo "$as_me:$LINENO: checking for inline" >&5
5099 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5100 if test "${ac_cv_c_inline+set}" = set; then
5101 echo $ECHO_N "(cached) $ECHO_C" >&6
5104 for ac_kw in inline __inline__ __inline; do
5105 cat >conftest.$ac_ext <<_ACEOF
5108 cat confdefs.h >>conftest.$ac_ext
5109 cat >>conftest.$ac_ext <<_ACEOF
5110 /* end confdefs.h. */
5113 static $ac_kw foo_t static_foo () {return 0; }
5114 $ac_kw foo_t foo () {return 0; }
5118 rm -f conftest.$ac_objext
5119 if { (ac_try="$ac_compile"
5121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5122 *) ac_try_echo=$ac_try;;
5124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5125 (eval "$ac_compile") 2>conftest.er1
5127 grep -v '^ *+' conftest.er1 >conftest.err
5129 cat conftest.err >&5
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); } && {
5132 test -z "$ac_c_werror_flag" ||
5133 test ! -s conftest.err
5134 } && test -s conftest.$ac_objext; then
5135 ac_cv_c_inline=$ac_kw
5137 echo "$as_me: failed program was:" >&5
5138 sed 's/^/| /' conftest.$ac_ext >&5
5143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5144 test "$ac_cv_c_inline" != no && break
5148 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5149 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5152 case $ac_cv_c_inline in
5155 case $ac_cv_c_inline in
5157 *) ac_val=$ac_cv_c_inline;;
5159 cat >>confdefs.h <<_ACEOF
5161 #define inline $ac_val
5167 { echo "$as_me:$LINENO: checking for short" >&5
5168 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
5169 if test "${ac_cv_type_short+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5172 cat >conftest.$ac_ext <<_ACEOF
5175 cat confdefs.h >>conftest.$ac_ext
5176 cat >>conftest.$ac_ext <<_ACEOF
5177 /* end confdefs.h. */
5178 $ac_includes_default
5179 typedef short ac__type_new_;
5183 if ((ac__type_new_ *) 0)
5185 if (sizeof (ac__type_new_))
5191 rm -f conftest.$ac_objext
5192 if { (ac_try="$ac_compile"
5194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5195 *) ac_try_echo=$ac_try;;
5197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5198 (eval "$ac_compile") 2>conftest.er1
5200 grep -v '^ *+' conftest.er1 >conftest.err
5202 cat conftest.err >&5
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); } && {
5205 test -z "$ac_c_werror_flag" ||
5206 test ! -s conftest.err
5207 } && test -s conftest.$ac_objext; then
5208 ac_cv_type_short=yes
5210 echo "$as_me: failed program was:" >&5
5211 sed 's/^/| /' conftest.$ac_ext >&5
5216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5218 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5219 echo "${ECHO_T}$ac_cv_type_short" >&6; }
5221 # The cast to long int works around a bug in the HP C Compiler
5222 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5223 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5224 # This bug is HP SR number 8606223364.
5225 { echo "$as_me:$LINENO: checking size of short" >&5
5226 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
5227 if test "${ac_cv_sizeof_short+set}" = set; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5230 if test "$cross_compiling" = yes; then
5231 # Depending upon the size, compute the lo and hi bounds.
5232 cat >conftest.$ac_ext <<_ACEOF
5235 cat confdefs.h >>conftest.$ac_ext
5236 cat >>conftest.$ac_ext <<_ACEOF
5237 /* end confdefs.h. */
5238 $ac_includes_default
5239 typedef short ac__type_sizeof_;
5243 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5250 rm -f conftest.$ac_objext
5251 if { (ac_try="$ac_compile"
5253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5254 *) ac_try_echo=$ac_try;;
5256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5257 (eval "$ac_compile") 2>conftest.er1
5259 grep -v '^ *+' conftest.er1 >conftest.err
5261 cat conftest.err >&5
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); } && {
5264 test -z "$ac_c_werror_flag" ||
5265 test ! -s conftest.err
5266 } && test -s conftest.$ac_objext; then
5269 cat >conftest.$ac_ext <<_ACEOF
5272 cat confdefs.h >>conftest.$ac_ext
5273 cat >>conftest.$ac_ext <<_ACEOF
5274 /* end confdefs.h. */
5275 $ac_includes_default
5276 typedef short ac__type_sizeof_;
5280 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5287 rm -f conftest.$ac_objext
5288 if { (ac_try="$ac_compile"
5290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5291 *) ac_try_echo=$ac_try;;
5293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5294 (eval "$ac_compile") 2>conftest.er1
5296 grep -v '^ *+' conftest.er1 >conftest.err
5298 cat conftest.err >&5
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); } && {
5301 test -z "$ac_c_werror_flag" ||
5302 test ! -s conftest.err
5303 } && test -s conftest.$ac_objext; then
5304 ac_hi=$ac_mid; break
5306 echo "$as_me: failed program was:" >&5
5307 sed 's/^/| /' conftest.$ac_ext >&5
5309 ac_lo=`expr $ac_mid + 1`
5310 if test $ac_lo -le $ac_mid; then
5314 ac_mid=`expr 2 '*' $ac_mid + 1`
5317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5320 echo "$as_me: failed program was:" >&5
5321 sed 's/^/| /' conftest.$ac_ext >&5
5323 cat >conftest.$ac_ext <<_ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h. */
5329 $ac_includes_default
5330 typedef short ac__type_sizeof_;
5334 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5341 rm -f conftest.$ac_objext
5342 if { (ac_try="$ac_compile"
5344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5345 *) ac_try_echo=$ac_try;;
5347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5348 (eval "$ac_compile") 2>conftest.er1
5350 grep -v '^ *+' conftest.er1 >conftest.err
5352 cat conftest.err >&5
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); } && {
5355 test -z "$ac_c_werror_flag" ||
5356 test ! -s conftest.err
5357 } && test -s conftest.$ac_objext; then
5360 cat >conftest.$ac_ext <<_ACEOF
5363 cat confdefs.h >>conftest.$ac_ext
5364 cat >>conftest.$ac_ext <<_ACEOF
5365 /* end confdefs.h. */
5366 $ac_includes_default
5367 typedef short ac__type_sizeof_;
5371 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5378 rm -f conftest.$ac_objext
5379 if { (ac_try="$ac_compile"
5381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5382 *) ac_try_echo=$ac_try;;
5384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5385 (eval "$ac_compile") 2>conftest.er1
5387 grep -v '^ *+' conftest.er1 >conftest.err
5389 cat conftest.err >&5
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); } && {
5392 test -z "$ac_c_werror_flag" ||
5393 test ! -s conftest.err
5394 } && test -s conftest.$ac_objext; then
5395 ac_lo=$ac_mid; break
5397 echo "$as_me: failed program was:" >&5
5398 sed 's/^/| /' conftest.$ac_ext >&5
5400 ac_hi=`expr '(' $ac_mid ')' - 1`
5401 if test $ac_mid -le $ac_hi; then
5405 ac_mid=`expr 2 '*' $ac_mid`
5408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5411 echo "$as_me: failed program was:" >&5
5412 sed 's/^/| /' conftest.$ac_ext >&5
5417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5421 # Binary search between lo and hi bounds.
5422 while test "x$ac_lo" != "x$ac_hi"; do
5423 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5424 cat >conftest.$ac_ext <<_ACEOF
5427 cat confdefs.h >>conftest.$ac_ext
5428 cat >>conftest.$ac_ext <<_ACEOF
5429 /* end confdefs.h. */
5430 $ac_includes_default
5431 typedef short ac__type_sizeof_;
5435 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5442 rm -f conftest.$ac_objext
5443 if { (ac_try="$ac_compile"
5445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5446 *) ac_try_echo=$ac_try;;
5448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5449 (eval "$ac_compile") 2>conftest.er1
5451 grep -v '^ *+' conftest.er1 >conftest.err
5453 cat conftest.err >&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); } && {
5456 test -z "$ac_c_werror_flag" ||
5457 test ! -s conftest.err
5458 } && test -s conftest.$ac_objext; then
5461 echo "$as_me: failed program was:" >&5
5462 sed 's/^/| /' conftest.$ac_ext >&5
5464 ac_lo=`expr '(' $ac_mid ')' + 1`
5467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5470 ?*) ac_cv_sizeof_short=$ac_lo;;
5471 '') if test "$ac_cv_type_short" = yes; then
5472 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5473 See \`config.log' for more details." >&5
5474 echo "$as_me: error: cannot compute sizeof (short)
5475 See \`config.log' for more details." >&2;}
5476 { (exit 77); exit 77; }; }
5478 ac_cv_sizeof_short=0
5482 cat >conftest.$ac_ext <<_ACEOF
5485 cat confdefs.h >>conftest.$ac_ext
5486 cat >>conftest.$ac_ext <<_ACEOF
5487 /* end confdefs.h. */
5488 $ac_includes_default
5489 typedef short ac__type_sizeof_;
5490 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5491 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5498 FILE *f = fopen ("conftest.val", "w");
5501 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5503 long int i = longval ();
5504 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5506 fprintf (f, "%ld\n", i);
5510 unsigned long int i = ulongval ();
5511 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5513 fprintf (f, "%lu\n", i);
5515 return ferror (f) || fclose (f) != 0;
5521 rm -f conftest$ac_exeext
5522 if { (ac_try="$ac_link"
5524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5525 *) ac_try_echo=$ac_try;;
5527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5528 (eval "$ac_link") 2>&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5532 { (case "(($ac_try" in
5533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5534 *) ac_try_echo=$ac_try;;
5536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5537 (eval "$ac_try") 2>&5
5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); }; }; then
5541 ac_cv_sizeof_short=`cat conftest.val`
5543 echo "$as_me: program exited with status $ac_status" >&5
5544 echo "$as_me: failed program was:" >&5
5545 sed 's/^/| /' conftest.$ac_ext >&5
5548 if test "$ac_cv_type_short" = yes; then
5549 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5550 See \`config.log' for more details." >&5
5551 echo "$as_me: error: cannot compute sizeof (short)
5552 See \`config.log' for more details." >&2;}
5553 { (exit 77); exit 77; }; }
5555 ac_cv_sizeof_short=0
5558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5562 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5563 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
5567 cat >>confdefs.h <<_ACEOF
5568 #define SIZEOF_SHORT $ac_cv_sizeof_short
5572 { echo "$as_me:$LINENO: checking for int" >&5
5573 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
5574 if test "${ac_cv_type_int+set}" = set; then
5575 echo $ECHO_N "(cached) $ECHO_C" >&6
5577 cat >conftest.$ac_ext <<_ACEOF
5580 cat confdefs.h >>conftest.$ac_ext
5581 cat >>conftest.$ac_ext <<_ACEOF
5582 /* end confdefs.h. */
5583 $ac_includes_default
5584 typedef int ac__type_new_;
5588 if ((ac__type_new_ *) 0)
5590 if (sizeof (ac__type_new_))
5596 rm -f conftest.$ac_objext
5597 if { (ac_try="$ac_compile"
5599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5600 *) ac_try_echo=$ac_try;;
5602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5603 (eval "$ac_compile") 2>conftest.er1
5605 grep -v '^ *+' conftest.er1 >conftest.err
5607 cat conftest.err >&5
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); } && {
5610 test -z "$ac_c_werror_flag" ||
5611 test ! -s conftest.err
5612 } && test -s conftest.$ac_objext; then
5615 echo "$as_me: failed program was:" >&5
5616 sed 's/^/| /' conftest.$ac_ext >&5
5621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5623 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5624 echo "${ECHO_T}$ac_cv_type_int" >&6; }
5626 # The cast to long int works around a bug in the HP C Compiler
5627 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5628 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5629 # This bug is HP SR number 8606223364.
5630 { echo "$as_me:$LINENO: checking size of int" >&5
5631 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
5632 if test "${ac_cv_sizeof_int+set}" = set; then
5633 echo $ECHO_N "(cached) $ECHO_C" >&6
5635 if test "$cross_compiling" = yes; then
5636 # Depending upon the size, compute the lo and hi bounds.
5637 cat >conftest.$ac_ext <<_ACEOF
5640 cat confdefs.h >>conftest.$ac_ext
5641 cat >>conftest.$ac_ext <<_ACEOF
5642 /* end confdefs.h. */
5643 $ac_includes_default
5644 typedef int ac__type_sizeof_;
5648 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5655 rm -f conftest.$ac_objext
5656 if { (ac_try="$ac_compile"
5658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659 *) ac_try_echo=$ac_try;;
5661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5662 (eval "$ac_compile") 2>conftest.er1
5664 grep -v '^ *+' conftest.er1 >conftest.err
5666 cat conftest.err >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } && {
5669 test -z "$ac_c_werror_flag" ||
5670 test ! -s conftest.err
5671 } && test -s conftest.$ac_objext; then
5674 cat >conftest.$ac_ext <<_ACEOF
5677 cat confdefs.h >>conftest.$ac_ext
5678 cat >>conftest.$ac_ext <<_ACEOF
5679 /* end confdefs.h. */
5680 $ac_includes_default
5681 typedef int ac__type_sizeof_;
5685 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5692 rm -f conftest.$ac_objext
5693 if { (ac_try="$ac_compile"
5695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5696 *) ac_try_echo=$ac_try;;
5698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5699 (eval "$ac_compile") 2>conftest.er1
5701 grep -v '^ *+' conftest.er1 >conftest.err
5703 cat conftest.err >&5
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); } && {
5706 test -z "$ac_c_werror_flag" ||
5707 test ! -s conftest.err
5708 } && test -s conftest.$ac_objext; then
5709 ac_hi=$ac_mid; break
5711 echo "$as_me: failed program was:" >&5
5712 sed 's/^/| /' conftest.$ac_ext >&5
5714 ac_lo=`expr $ac_mid + 1`
5715 if test $ac_lo -le $ac_mid; then
5719 ac_mid=`expr 2 '*' $ac_mid + 1`
5722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5725 echo "$as_me: failed program was:" >&5
5726 sed 's/^/| /' conftest.$ac_ext >&5
5728 cat >conftest.$ac_ext <<_ACEOF
5731 cat confdefs.h >>conftest.$ac_ext
5732 cat >>conftest.$ac_ext <<_ACEOF
5733 /* end confdefs.h. */
5734 $ac_includes_default
5735 typedef int ac__type_sizeof_;
5739 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5746 rm -f conftest.$ac_objext
5747 if { (ac_try="$ac_compile"
5749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5750 *) ac_try_echo=$ac_try;;
5752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5753 (eval "$ac_compile") 2>conftest.er1
5755 grep -v '^ *+' conftest.er1 >conftest.err
5757 cat conftest.err >&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); } && {
5760 test -z "$ac_c_werror_flag" ||
5761 test ! -s conftest.err
5762 } && test -s conftest.$ac_objext; then
5765 cat >conftest.$ac_ext <<_ACEOF
5768 cat confdefs.h >>conftest.$ac_ext
5769 cat >>conftest.$ac_ext <<_ACEOF
5770 /* end confdefs.h. */
5771 $ac_includes_default
5772 typedef int ac__type_sizeof_;
5776 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5783 rm -f conftest.$ac_objext
5784 if { (ac_try="$ac_compile"
5786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5787 *) ac_try_echo=$ac_try;;
5789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5790 (eval "$ac_compile") 2>conftest.er1
5792 grep -v '^ *+' conftest.er1 >conftest.err
5794 cat conftest.err >&5
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); } && {
5797 test -z "$ac_c_werror_flag" ||
5798 test ! -s conftest.err
5799 } && test -s conftest.$ac_objext; then
5800 ac_lo=$ac_mid; break
5802 echo "$as_me: failed program was:" >&5
5803 sed 's/^/| /' conftest.$ac_ext >&5
5805 ac_hi=`expr '(' $ac_mid ')' - 1`
5806 if test $ac_mid -le $ac_hi; then
5810 ac_mid=`expr 2 '*' $ac_mid`
5813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5816 echo "$as_me: failed program was:" >&5
5817 sed 's/^/| /' conftest.$ac_ext >&5
5822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5826 # Binary search between lo and hi bounds.
5827 while test "x$ac_lo" != "x$ac_hi"; do
5828 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5829 cat >conftest.$ac_ext <<_ACEOF
5832 cat confdefs.h >>conftest.$ac_ext
5833 cat >>conftest.$ac_ext <<_ACEOF
5834 /* end confdefs.h. */
5835 $ac_includes_default
5836 typedef int ac__type_sizeof_;
5840 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5847 rm -f conftest.$ac_objext
5848 if { (ac_try="$ac_compile"
5850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5851 *) ac_try_echo=$ac_try;;
5853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5854 (eval "$ac_compile") 2>conftest.er1
5856 grep -v '^ *+' conftest.er1 >conftest.err
5858 cat conftest.err >&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); } && {
5861 test -z "$ac_c_werror_flag" ||
5862 test ! -s conftest.err
5863 } && test -s conftest.$ac_objext; then
5866 echo "$as_me: failed program was:" >&5
5867 sed 's/^/| /' conftest.$ac_ext >&5
5869 ac_lo=`expr '(' $ac_mid ')' + 1`
5872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5875 ?*) ac_cv_sizeof_int=$ac_lo;;
5876 '') if test "$ac_cv_type_int" = yes; then
5877 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5878 See \`config.log' for more details." >&5
5879 echo "$as_me: error: cannot compute sizeof (int)
5880 See \`config.log' for more details." >&2;}
5881 { (exit 77); exit 77; }; }
5887 cat >conftest.$ac_ext <<_ACEOF
5890 cat confdefs.h >>conftest.$ac_ext
5891 cat >>conftest.$ac_ext <<_ACEOF
5892 /* end confdefs.h. */
5893 $ac_includes_default
5894 typedef int ac__type_sizeof_;
5895 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5896 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5903 FILE *f = fopen ("conftest.val", "w");
5906 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5908 long int i = longval ();
5909 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5911 fprintf (f, "%ld\n", i);
5915 unsigned long int i = ulongval ();
5916 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5918 fprintf (f, "%lu\n", i);
5920 return ferror (f) || fclose (f) != 0;
5926 rm -f conftest$ac_exeext
5927 if { (ac_try="$ac_link"
5929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930 *) ac_try_echo=$ac_try;;
5932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933 (eval "$ac_link") 2>&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5937 { (case "(($ac_try" in
5938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5939 *) ac_try_echo=$ac_try;;
5941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5942 (eval "$ac_try") 2>&5
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); }; }; then
5946 ac_cv_sizeof_int=`cat conftest.val`
5948 echo "$as_me: program exited with status $ac_status" >&5
5949 echo "$as_me: failed program was:" >&5
5950 sed 's/^/| /' conftest.$ac_ext >&5
5953 if test "$ac_cv_type_int" = yes; then
5954 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5955 See \`config.log' for more details." >&5
5956 echo "$as_me: error: cannot compute sizeof (int)
5957 See \`config.log' for more details." >&2;}
5958 { (exit 77); exit 77; }; }
5963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5967 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5968 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
5972 cat >>confdefs.h <<_ACEOF
5973 #define SIZEOF_INT $ac_cv_sizeof_int
5977 { echo "$as_me:$LINENO: checking for long" >&5
5978 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
5979 if test "${ac_cv_type_long+set}" = set; then
5980 echo $ECHO_N "(cached) $ECHO_C" >&6
5982 cat >conftest.$ac_ext <<_ACEOF
5985 cat confdefs.h >>conftest.$ac_ext
5986 cat >>conftest.$ac_ext <<_ACEOF
5987 /* end confdefs.h. */
5988 $ac_includes_default
5989 typedef long ac__type_new_;
5993 if ((ac__type_new_ *) 0)
5995 if (sizeof (ac__type_new_))
6001 rm -f conftest.$ac_objext
6002 if { (ac_try="$ac_compile"
6004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005 *) ac_try_echo=$ac_try;;
6007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008 (eval "$ac_compile") 2>conftest.er1
6010 grep -v '^ *+' conftest.er1 >conftest.err
6012 cat conftest.err >&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); } && {
6015 test -z "$ac_c_werror_flag" ||
6016 test ! -s conftest.err
6017 } && test -s conftest.$ac_objext; then
6020 echo "$as_me: failed program was:" >&5
6021 sed 's/^/| /' conftest.$ac_ext >&5
6026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6028 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6029 echo "${ECHO_T}$ac_cv_type_long" >&6; }
6031 # The cast to long int works around a bug in the HP C Compiler
6032 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6033 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6034 # This bug is HP SR number 8606223364.
6035 { echo "$as_me:$LINENO: checking size of long" >&5
6036 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
6037 if test "${ac_cv_sizeof_long+set}" = set; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
6040 if test "$cross_compiling" = yes; then
6041 # Depending upon the size, compute the lo and hi bounds.
6042 cat >conftest.$ac_ext <<_ACEOF
6045 cat confdefs.h >>conftest.$ac_ext
6046 cat >>conftest.$ac_ext <<_ACEOF
6047 /* end confdefs.h. */
6048 $ac_includes_default
6049 typedef long ac__type_sizeof_;
6053 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6060 rm -f conftest.$ac_objext
6061 if { (ac_try="$ac_compile"
6063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6064 *) ac_try_echo=$ac_try;;
6066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6067 (eval "$ac_compile") 2>conftest.er1
6069 grep -v '^ *+' conftest.er1 >conftest.err
6071 cat conftest.err >&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); } && {
6074 test -z "$ac_c_werror_flag" ||
6075 test ! -s conftest.err
6076 } && test -s conftest.$ac_objext; then
6079 cat >conftest.$ac_ext <<_ACEOF
6082 cat confdefs.h >>conftest.$ac_ext
6083 cat >>conftest.$ac_ext <<_ACEOF
6084 /* end confdefs.h. */
6085 $ac_includes_default
6086 typedef long ac__type_sizeof_;
6090 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6097 rm -f conftest.$ac_objext
6098 if { (ac_try="$ac_compile"
6100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6101 *) ac_try_echo=$ac_try;;
6103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6104 (eval "$ac_compile") 2>conftest.er1
6106 grep -v '^ *+' conftest.er1 >conftest.err
6108 cat conftest.err >&5
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); } && {
6111 test -z "$ac_c_werror_flag" ||
6112 test ! -s conftest.err
6113 } && test -s conftest.$ac_objext; then
6114 ac_hi=$ac_mid; break
6116 echo "$as_me: failed program was:" >&5
6117 sed 's/^/| /' conftest.$ac_ext >&5
6119 ac_lo=`expr $ac_mid + 1`
6120 if test $ac_lo -le $ac_mid; then
6124 ac_mid=`expr 2 '*' $ac_mid + 1`
6127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6130 echo "$as_me: failed program was:" >&5
6131 sed 's/^/| /' conftest.$ac_ext >&5
6133 cat >conftest.$ac_ext <<_ACEOF
6136 cat confdefs.h >>conftest.$ac_ext
6137 cat >>conftest.$ac_ext <<_ACEOF
6138 /* end confdefs.h. */
6139 $ac_includes_default
6140 typedef long ac__type_sizeof_;
6144 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6151 rm -f conftest.$ac_objext
6152 if { (ac_try="$ac_compile"
6154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6155 *) ac_try_echo=$ac_try;;
6157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6158 (eval "$ac_compile") 2>conftest.er1
6160 grep -v '^ *+' conftest.er1 >conftest.err
6162 cat conftest.err >&5
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); } && {
6165 test -z "$ac_c_werror_flag" ||
6166 test ! -s conftest.err
6167 } && test -s conftest.$ac_objext; then
6170 cat >conftest.$ac_ext <<_ACEOF
6173 cat confdefs.h >>conftest.$ac_ext
6174 cat >>conftest.$ac_ext <<_ACEOF
6175 /* end confdefs.h. */
6176 $ac_includes_default
6177 typedef long ac__type_sizeof_;
6181 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6188 rm -f conftest.$ac_objext
6189 if { (ac_try="$ac_compile"
6191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6192 *) ac_try_echo=$ac_try;;
6194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6195 (eval "$ac_compile") 2>conftest.er1
6197 grep -v '^ *+' conftest.er1 >conftest.err
6199 cat conftest.err >&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); } && {
6202 test -z "$ac_c_werror_flag" ||
6203 test ! -s conftest.err
6204 } && test -s conftest.$ac_objext; then
6205 ac_lo=$ac_mid; break
6207 echo "$as_me: failed program was:" >&5
6208 sed 's/^/| /' conftest.$ac_ext >&5
6210 ac_hi=`expr '(' $ac_mid ')' - 1`
6211 if test $ac_mid -le $ac_hi; then
6215 ac_mid=`expr 2 '*' $ac_mid`
6218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6221 echo "$as_me: failed program was:" >&5
6222 sed 's/^/| /' conftest.$ac_ext >&5
6227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6231 # Binary search between lo and hi bounds.
6232 while test "x$ac_lo" != "x$ac_hi"; do
6233 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6234 cat >conftest.$ac_ext <<_ACEOF
6237 cat confdefs.h >>conftest.$ac_ext
6238 cat >>conftest.$ac_ext <<_ACEOF
6239 /* end confdefs.h. */
6240 $ac_includes_default
6241 typedef long ac__type_sizeof_;
6245 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6252 rm -f conftest.$ac_objext
6253 if { (ac_try="$ac_compile"
6255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6256 *) ac_try_echo=$ac_try;;
6258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6259 (eval "$ac_compile") 2>conftest.er1
6261 grep -v '^ *+' conftest.er1 >conftest.err
6263 cat conftest.err >&5
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); } && {
6266 test -z "$ac_c_werror_flag" ||
6267 test ! -s conftest.err
6268 } && test -s conftest.$ac_objext; then
6271 echo "$as_me: failed program was:" >&5
6272 sed 's/^/| /' conftest.$ac_ext >&5
6274 ac_lo=`expr '(' $ac_mid ')' + 1`
6277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6280 ?*) ac_cv_sizeof_long=$ac_lo;;
6281 '') if test "$ac_cv_type_long" = yes; then
6282 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6283 See \`config.log' for more details." >&5
6284 echo "$as_me: error: cannot compute sizeof (long)
6285 See \`config.log' for more details." >&2;}
6286 { (exit 77); exit 77; }; }
6292 cat >conftest.$ac_ext <<_ACEOF
6295 cat confdefs.h >>conftest.$ac_ext
6296 cat >>conftest.$ac_ext <<_ACEOF
6297 /* end confdefs.h. */
6298 $ac_includes_default
6299 typedef long ac__type_sizeof_;
6300 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6301 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6308 FILE *f = fopen ("conftest.val", "w");
6311 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6313 long int i = longval ();
6314 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6316 fprintf (f, "%ld\n", i);
6320 unsigned long int i = ulongval ();
6321 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6323 fprintf (f, "%lu\n", i);
6325 return ferror (f) || fclose (f) != 0;
6331 rm -f conftest$ac_exeext
6332 if { (ac_try="$ac_link"
6334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6335 *) ac_try_echo=$ac_try;;
6337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6338 (eval "$ac_link") 2>&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6342 { (case "(($ac_try" in
6343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6344 *) ac_try_echo=$ac_try;;
6346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6347 (eval "$ac_try") 2>&5
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); }; }; then
6351 ac_cv_sizeof_long=`cat conftest.val`
6353 echo "$as_me: program exited with status $ac_status" >&5
6354 echo "$as_me: failed program was:" >&5
6355 sed 's/^/| /' conftest.$ac_ext >&5
6358 if test "$ac_cv_type_long" = yes; then
6359 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6360 See \`config.log' for more details." >&5
6361 echo "$as_me: error: cannot compute sizeof (long)
6362 See \`config.log' for more details." >&2;}
6363 { (exit 77); exit 77; }; }
6368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6372 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6373 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
6377 cat >>confdefs.h <<_ACEOF
6378 #define SIZEOF_LONG $ac_cv_sizeof_long
6382 { echo "$as_me:$LINENO: checking for float" >&5
6383 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
6384 if test "${ac_cv_type_float+set}" = set; then
6385 echo $ECHO_N "(cached) $ECHO_C" >&6
6387 cat >conftest.$ac_ext <<_ACEOF
6390 cat confdefs.h >>conftest.$ac_ext
6391 cat >>conftest.$ac_ext <<_ACEOF
6392 /* end confdefs.h. */
6393 $ac_includes_default
6394 typedef float ac__type_new_;
6398 if ((ac__type_new_ *) 0)
6400 if (sizeof (ac__type_new_))
6406 rm -f conftest.$ac_objext
6407 if { (ac_try="$ac_compile"
6409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6410 *) ac_try_echo=$ac_try;;
6412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6413 (eval "$ac_compile") 2>conftest.er1
6415 grep -v '^ *+' conftest.er1 >conftest.err
6417 cat conftest.err >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } && {
6420 test -z "$ac_c_werror_flag" ||
6421 test ! -s conftest.err
6422 } && test -s conftest.$ac_objext; then
6423 ac_cv_type_float=yes
6425 echo "$as_me: failed program was:" >&5
6426 sed 's/^/| /' conftest.$ac_ext >&5
6431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6433 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
6434 echo "${ECHO_T}$ac_cv_type_float" >&6; }
6436 # The cast to long int works around a bug in the HP C Compiler
6437 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6438 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6439 # This bug is HP SR number 8606223364.
6440 { echo "$as_me:$LINENO: checking size of float" >&5
6441 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
6442 if test "${ac_cv_sizeof_float+set}" = set; then
6443 echo $ECHO_N "(cached) $ECHO_C" >&6
6445 if test "$cross_compiling" = yes; then
6446 # Depending upon the size, compute the lo and hi bounds.
6447 cat >conftest.$ac_ext <<_ACEOF
6450 cat confdefs.h >>conftest.$ac_ext
6451 cat >>conftest.$ac_ext <<_ACEOF
6452 /* end confdefs.h. */
6453 $ac_includes_default
6454 typedef float ac__type_sizeof_;
6458 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6465 rm -f conftest.$ac_objext
6466 if { (ac_try="$ac_compile"
6468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6469 *) ac_try_echo=$ac_try;;
6471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6472 (eval "$ac_compile") 2>conftest.er1
6474 grep -v '^ *+' conftest.er1 >conftest.err
6476 cat conftest.err >&5
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); } && {
6479 test -z "$ac_c_werror_flag" ||
6480 test ! -s conftest.err
6481 } && test -s conftest.$ac_objext; then
6484 cat >conftest.$ac_ext <<_ACEOF
6487 cat confdefs.h >>conftest.$ac_ext
6488 cat >>conftest.$ac_ext <<_ACEOF
6489 /* end confdefs.h. */
6490 $ac_includes_default
6491 typedef float ac__type_sizeof_;
6495 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6502 rm -f conftest.$ac_objext
6503 if { (ac_try="$ac_compile"
6505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6506 *) ac_try_echo=$ac_try;;
6508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6509 (eval "$ac_compile") 2>conftest.er1
6511 grep -v '^ *+' conftest.er1 >conftest.err
6513 cat conftest.err >&5
6514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515 (exit $ac_status); } && {
6516 test -z "$ac_c_werror_flag" ||
6517 test ! -s conftest.err
6518 } && test -s conftest.$ac_objext; then
6519 ac_hi=$ac_mid; break
6521 echo "$as_me: failed program was:" >&5
6522 sed 's/^/| /' conftest.$ac_ext >&5
6524 ac_lo=`expr $ac_mid + 1`
6525 if test $ac_lo -le $ac_mid; then
6529 ac_mid=`expr 2 '*' $ac_mid + 1`
6532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6535 echo "$as_me: failed program was:" >&5
6536 sed 's/^/| /' conftest.$ac_ext >&5
6538 cat >conftest.$ac_ext <<_ACEOF
6541 cat confdefs.h >>conftest.$ac_ext
6542 cat >>conftest.$ac_ext <<_ACEOF
6543 /* end confdefs.h. */
6544 $ac_includes_default
6545 typedef float ac__type_sizeof_;
6549 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6556 rm -f conftest.$ac_objext
6557 if { (ac_try="$ac_compile"
6559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6560 *) ac_try_echo=$ac_try;;
6562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6563 (eval "$ac_compile") 2>conftest.er1
6565 grep -v '^ *+' conftest.er1 >conftest.err
6567 cat conftest.err >&5
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); } && {
6570 test -z "$ac_c_werror_flag" ||
6571 test ! -s conftest.err
6572 } && test -s conftest.$ac_objext; then
6575 cat >conftest.$ac_ext <<_ACEOF
6578 cat confdefs.h >>conftest.$ac_ext
6579 cat >>conftest.$ac_ext <<_ACEOF
6580 /* end confdefs.h. */
6581 $ac_includes_default
6582 typedef float ac__type_sizeof_;
6586 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6593 rm -f conftest.$ac_objext
6594 if { (ac_try="$ac_compile"
6596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6597 *) ac_try_echo=$ac_try;;
6599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6600 (eval "$ac_compile") 2>conftest.er1
6602 grep -v '^ *+' conftest.er1 >conftest.err
6604 cat conftest.err >&5
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); } && {
6607 test -z "$ac_c_werror_flag" ||
6608 test ! -s conftest.err
6609 } && test -s conftest.$ac_objext; then
6610 ac_lo=$ac_mid; break
6612 echo "$as_me: failed program was:" >&5
6613 sed 's/^/| /' conftest.$ac_ext >&5
6615 ac_hi=`expr '(' $ac_mid ')' - 1`
6616 if test $ac_mid -le $ac_hi; then
6620 ac_mid=`expr 2 '*' $ac_mid`
6623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6626 echo "$as_me: failed program was:" >&5
6627 sed 's/^/| /' conftest.$ac_ext >&5
6632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6636 # Binary search between lo and hi bounds.
6637 while test "x$ac_lo" != "x$ac_hi"; do
6638 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6639 cat >conftest.$ac_ext <<_ACEOF
6642 cat confdefs.h >>conftest.$ac_ext
6643 cat >>conftest.$ac_ext <<_ACEOF
6644 /* end confdefs.h. */
6645 $ac_includes_default
6646 typedef float ac__type_sizeof_;
6650 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6657 rm -f conftest.$ac_objext
6658 if { (ac_try="$ac_compile"
6660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6661 *) ac_try_echo=$ac_try;;
6663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6664 (eval "$ac_compile") 2>conftest.er1
6666 grep -v '^ *+' conftest.er1 >conftest.err
6668 cat conftest.err >&5
6669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670 (exit $ac_status); } && {
6671 test -z "$ac_c_werror_flag" ||
6672 test ! -s conftest.err
6673 } && test -s conftest.$ac_objext; then
6676 echo "$as_me: failed program was:" >&5
6677 sed 's/^/| /' conftest.$ac_ext >&5
6679 ac_lo=`expr '(' $ac_mid ')' + 1`
6682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6685 ?*) ac_cv_sizeof_float=$ac_lo;;
6686 '') if test "$ac_cv_type_float" = yes; then
6687 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
6688 See \`config.log' for more details." >&5
6689 echo "$as_me: error: cannot compute sizeof (float)
6690 See \`config.log' for more details." >&2;}
6691 { (exit 77); exit 77; }; }
6693 ac_cv_sizeof_float=0
6697 cat >conftest.$ac_ext <<_ACEOF
6700 cat confdefs.h >>conftest.$ac_ext
6701 cat >>conftest.$ac_ext <<_ACEOF
6702 /* end confdefs.h. */
6703 $ac_includes_default
6704 typedef float ac__type_sizeof_;
6705 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6706 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6713 FILE *f = fopen ("conftest.val", "w");
6716 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6718 long int i = longval ();
6719 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6721 fprintf (f, "%ld\n", i);
6725 unsigned long int i = ulongval ();
6726 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6728 fprintf (f, "%lu\n", i);
6730 return ferror (f) || fclose (f) != 0;
6736 rm -f conftest$ac_exeext
6737 if { (ac_try="$ac_link"
6739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6740 *) ac_try_echo=$ac_try;;
6742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6743 (eval "$ac_link") 2>&5
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6747 { (case "(($ac_try" in
6748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6749 *) ac_try_echo=$ac_try;;
6751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6752 (eval "$ac_try") 2>&5
6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755 (exit $ac_status); }; }; then
6756 ac_cv_sizeof_float=`cat conftest.val`
6758 echo "$as_me: program exited with status $ac_status" >&5
6759 echo "$as_me: failed program was:" >&5
6760 sed 's/^/| /' conftest.$ac_ext >&5
6763 if test "$ac_cv_type_float" = yes; then
6764 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
6765 See \`config.log' for more details." >&5
6766 echo "$as_me: error: cannot compute sizeof (float)
6767 See \`config.log' for more details." >&2;}
6768 { (exit 77); exit 77; }; }
6770 ac_cv_sizeof_float=0
6773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6777 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
6778 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
6782 cat >>confdefs.h <<_ACEOF
6783 #define SIZEOF_FLOAT $ac_cv_sizeof_float
6787 { echo "$as_me:$LINENO: checking for double" >&5
6788 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
6789 if test "${ac_cv_type_double+set}" = set; then
6790 echo $ECHO_N "(cached) $ECHO_C" >&6
6792 cat >conftest.$ac_ext <<_ACEOF
6795 cat confdefs.h >>conftest.$ac_ext
6796 cat >>conftest.$ac_ext <<_ACEOF
6797 /* end confdefs.h. */
6798 $ac_includes_default
6799 typedef double ac__type_new_;
6803 if ((ac__type_new_ *) 0)
6805 if (sizeof (ac__type_new_))
6811 rm -f conftest.$ac_objext
6812 if { (ac_try="$ac_compile"
6814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6815 *) ac_try_echo=$ac_try;;
6817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6818 (eval "$ac_compile") 2>conftest.er1
6820 grep -v '^ *+' conftest.er1 >conftest.err
6822 cat conftest.err >&5
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); } && {
6825 test -z "$ac_c_werror_flag" ||
6826 test ! -s conftest.err
6827 } && test -s conftest.$ac_objext; then
6828 ac_cv_type_double=yes
6830 echo "$as_me: failed program was:" >&5
6831 sed 's/^/| /' conftest.$ac_ext >&5
6833 ac_cv_type_double=no
6836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6838 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
6839 echo "${ECHO_T}$ac_cv_type_double" >&6; }
6841 # The cast to long int works around a bug in the HP C Compiler
6842 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6843 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6844 # This bug is HP SR number 8606223364.
6845 { echo "$as_me:$LINENO: checking size of double" >&5
6846 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
6847 if test "${ac_cv_sizeof_double+set}" = set; then
6848 echo $ECHO_N "(cached) $ECHO_C" >&6
6850 if test "$cross_compiling" = yes; then
6851 # Depending upon the size, compute the lo and hi bounds.
6852 cat >conftest.$ac_ext <<_ACEOF
6855 cat confdefs.h >>conftest.$ac_ext
6856 cat >>conftest.$ac_ext <<_ACEOF
6857 /* end confdefs.h. */
6858 $ac_includes_default
6859 typedef double ac__type_sizeof_;
6863 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6870 rm -f conftest.$ac_objext
6871 if { (ac_try="$ac_compile"
6873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6874 *) ac_try_echo=$ac_try;;
6876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6877 (eval "$ac_compile") 2>conftest.er1
6879 grep -v '^ *+' conftest.er1 >conftest.err
6881 cat conftest.err >&5
6882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883 (exit $ac_status); } && {
6884 test -z "$ac_c_werror_flag" ||
6885 test ! -s conftest.err
6886 } && test -s conftest.$ac_objext; then
6889 cat >conftest.$ac_ext <<_ACEOF
6892 cat confdefs.h >>conftest.$ac_ext
6893 cat >>conftest.$ac_ext <<_ACEOF
6894 /* end confdefs.h. */
6895 $ac_includes_default
6896 typedef double ac__type_sizeof_;
6900 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6907 rm -f conftest.$ac_objext
6908 if { (ac_try="$ac_compile"
6910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6911 *) ac_try_echo=$ac_try;;
6913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6914 (eval "$ac_compile") 2>conftest.er1
6916 grep -v '^ *+' conftest.er1 >conftest.err
6918 cat conftest.err >&5
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); } && {
6921 test -z "$ac_c_werror_flag" ||
6922 test ! -s conftest.err
6923 } && test -s conftest.$ac_objext; then
6924 ac_hi=$ac_mid; break
6926 echo "$as_me: failed program was:" >&5
6927 sed 's/^/| /' conftest.$ac_ext >&5
6929 ac_lo=`expr $ac_mid + 1`
6930 if test $ac_lo -le $ac_mid; then
6934 ac_mid=`expr 2 '*' $ac_mid + 1`
6937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6940 echo "$as_me: failed program was:" >&5
6941 sed 's/^/| /' conftest.$ac_ext >&5
6943 cat >conftest.$ac_ext <<_ACEOF
6946 cat confdefs.h >>conftest.$ac_ext
6947 cat >>conftest.$ac_ext <<_ACEOF
6948 /* end confdefs.h. */
6949 $ac_includes_default
6950 typedef double ac__type_sizeof_;
6954 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6961 rm -f conftest.$ac_objext
6962 if { (ac_try="$ac_compile"
6964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6965 *) ac_try_echo=$ac_try;;
6967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6968 (eval "$ac_compile") 2>conftest.er1
6970 grep -v '^ *+' conftest.er1 >conftest.err
6972 cat conftest.err >&5
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); } && {
6975 test -z "$ac_c_werror_flag" ||
6976 test ! -s conftest.err
6977 } && test -s conftest.$ac_objext; then
6980 cat >conftest.$ac_ext <<_ACEOF
6983 cat confdefs.h >>conftest.$ac_ext
6984 cat >>conftest.$ac_ext <<_ACEOF
6985 /* end confdefs.h. */
6986 $ac_includes_default
6987 typedef double ac__type_sizeof_;
6991 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6998 rm -f conftest.$ac_objext
6999 if { (ac_try="$ac_compile"
7001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7002 *) ac_try_echo=$ac_try;;
7004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7005 (eval "$ac_compile") 2>conftest.er1
7007 grep -v '^ *+' conftest.er1 >conftest.err
7009 cat conftest.err >&5
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); } && {
7012 test -z "$ac_c_werror_flag" ||
7013 test ! -s conftest.err
7014 } && test -s conftest.$ac_objext; then
7015 ac_lo=$ac_mid; break
7017 echo "$as_me: failed program was:" >&5
7018 sed 's/^/| /' conftest.$ac_ext >&5
7020 ac_hi=`expr '(' $ac_mid ')' - 1`
7021 if test $ac_mid -le $ac_hi; then
7025 ac_mid=`expr 2 '*' $ac_mid`
7028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7031 echo "$as_me: failed program was:" >&5
7032 sed 's/^/| /' conftest.$ac_ext >&5
7037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7041 # Binary search between lo and hi bounds.
7042 while test "x$ac_lo" != "x$ac_hi"; do
7043 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7044 cat >conftest.$ac_ext <<_ACEOF
7047 cat confdefs.h >>conftest.$ac_ext
7048 cat >>conftest.$ac_ext <<_ACEOF
7049 /* end confdefs.h. */
7050 $ac_includes_default
7051 typedef double ac__type_sizeof_;
7055 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7062 rm -f conftest.$ac_objext
7063 if { (ac_try="$ac_compile"
7065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7066 *) ac_try_echo=$ac_try;;
7068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7069 (eval "$ac_compile") 2>conftest.er1
7071 grep -v '^ *+' conftest.er1 >conftest.err
7073 cat conftest.err >&5
7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); } && {
7076 test -z "$ac_c_werror_flag" ||
7077 test ! -s conftest.err
7078 } && test -s conftest.$ac_objext; then
7081 echo "$as_me: failed program was:" >&5
7082 sed 's/^/| /' conftest.$ac_ext >&5
7084 ac_lo=`expr '(' $ac_mid ')' + 1`
7087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7090 ?*) ac_cv_sizeof_double=$ac_lo;;
7091 '') if test "$ac_cv_type_double" = yes; then
7092 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
7093 See \`config.log' for more details." >&5
7094 echo "$as_me: error: cannot compute sizeof (double)
7095 See \`config.log' for more details." >&2;}
7096 { (exit 77); exit 77; }; }
7098 ac_cv_sizeof_double=0
7102 cat >conftest.$ac_ext <<_ACEOF
7105 cat confdefs.h >>conftest.$ac_ext
7106 cat >>conftest.$ac_ext <<_ACEOF
7107 /* end confdefs.h. */
7108 $ac_includes_default
7109 typedef double ac__type_sizeof_;
7110 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7111 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7118 FILE *f = fopen ("conftest.val", "w");
7121 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7123 long int i = longval ();
7124 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7126 fprintf (f, "%ld\n", i);
7130 unsigned long int i = ulongval ();
7131 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7133 fprintf (f, "%lu\n", i);
7135 return ferror (f) || fclose (f) != 0;
7141 rm -f conftest$ac_exeext
7142 if { (ac_try="$ac_link"
7144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7145 *) ac_try_echo=$ac_try;;
7147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7148 (eval "$ac_link") 2>&5
7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7152 { (case "(($ac_try" in
7153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7154 *) ac_try_echo=$ac_try;;
7156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7157 (eval "$ac_try") 2>&5
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); }; }; then
7161 ac_cv_sizeof_double=`cat conftest.val`
7163 echo "$as_me: program exited with status $ac_status" >&5
7164 echo "$as_me: failed program was:" >&5
7165 sed 's/^/| /' conftest.$ac_ext >&5
7168 if test "$ac_cv_type_double" = yes; then
7169 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
7170 See \`config.log' for more details." >&5
7171 echo "$as_me: error: cannot compute sizeof (double)
7172 See \`config.log' for more details." >&2;}
7173 { (exit 77); exit 77; }; }
7175 ac_cv_sizeof_double=0
7178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7182 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
7183 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
7187 cat >>confdefs.h <<_ACEOF
7188 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
7194 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
7195 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
7196 if test "${ac_cv_lib_z_deflate+set}" = set; then
7197 echo $ECHO_N "(cached) $ECHO_C" >&6
7199 ac_check_lib_save_LIBS=$LIBS
7201 cat >conftest.$ac_ext <<_ACEOF
7204 cat confdefs.h >>conftest.$ac_ext
7205 cat >>conftest.$ac_ext <<_ACEOF
7206 /* end confdefs.h. */
7208 /* Override any GCC internal prototype to avoid an error.
7209 Use char because int might match the return type of a GCC
7210 builtin and then its argument prototype would still apply. */
7223 rm -f conftest.$ac_objext conftest$ac_exeext
7224 if { (ac_try="$ac_link"
7226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7227 *) ac_try_echo=$ac_try;;
7229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7230 (eval "$ac_link") 2>conftest.er1
7232 grep -v '^ *+' conftest.er1 >conftest.err
7234 cat conftest.err >&5
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); } && {
7237 test -z "$ac_c_werror_flag" ||
7238 test ! -s conftest.err
7239 } && test -s conftest$ac_exeext &&
7240 $as_test_x conftest$ac_exeext; then
7241 ac_cv_lib_z_deflate=yes
7243 echo "$as_me: failed program was:" >&5
7244 sed 's/^/| /' conftest.$ac_ext >&5
7246 ac_cv_lib_z_deflate=no
7249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7250 conftest$ac_exeext conftest.$ac_ext
7251 LIBS=$ac_check_lib_save_LIBS
7253 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
7254 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
7255 if test $ac_cv_lib_z_deflate = yes; then
7258 zlib="false" ; { echo "$as_me:$LINENO: WARNING: zlib missing. Will need zlib for PNG support" >&5
7259 echo "$as_me: WARNING: zlib missing. Will need zlib for PNG support" >&2;}
7263 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
7264 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
7265 if test "${ac_cv_lib_m_sin+set}" = set; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7268 ac_check_lib_save_LIBS=$LIBS
7270 cat >conftest.$ac_ext <<_ACEOF
7273 cat confdefs.h >>conftest.$ac_ext
7274 cat >>conftest.$ac_ext <<_ACEOF
7275 /* end confdefs.h. */
7277 /* Override any GCC internal prototype to avoid an error.
7278 Use char because int might match the return type of a GCC
7279 builtin and then its argument prototype would still apply. */
7292 rm -f conftest.$ac_objext conftest$ac_exeext
7293 if { (ac_try="$ac_link"
7295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7296 *) ac_try_echo=$ac_try;;
7298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7299 (eval "$ac_link") 2>conftest.er1
7301 grep -v '^ *+' conftest.er1 >conftest.err
7303 cat conftest.err >&5
7304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305 (exit $ac_status); } && {
7306 test -z "$ac_c_werror_flag" ||
7307 test ! -s conftest.err
7308 } && test -s conftest$ac_exeext &&
7309 $as_test_x conftest$ac_exeext; then
7312 echo "$as_me: failed program was:" >&5
7313 sed 's/^/| /' conftest.$ac_ext >&5
7318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7319 conftest$ac_exeext conftest.$ac_ext
7320 LIBS=$ac_check_lib_save_LIBS
7322 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
7323 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
7324 if test $ac_cv_lib_m_sin = yes; then
7325 cat >>confdefs.h <<_ACEOF
7333 { echo "$as_me:$LINENO: checking for main in -lcurses" >&5
7334 echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6; }
7335 if test "${ac_cv_lib_curses_main+set}" = set; then
7336 echo $ECHO_N "(cached) $ECHO_C" >&6
7338 ac_check_lib_save_LIBS=$LIBS
7339 LIBS="-lcurses $LIBS"
7340 cat >conftest.$ac_ext <<_ACEOF
7343 cat confdefs.h >>conftest.$ac_ext
7344 cat >>conftest.$ac_ext <<_ACEOF
7345 /* end confdefs.h. */
7356 rm -f conftest.$ac_objext conftest$ac_exeext
7357 if { (ac_try="$ac_link"
7359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7360 *) ac_try_echo=$ac_try;;
7362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7363 (eval "$ac_link") 2>conftest.er1
7365 grep -v '^ *+' conftest.er1 >conftest.err
7367 cat conftest.err >&5
7368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369 (exit $ac_status); } && {
7370 test -z "$ac_c_werror_flag" ||
7371 test ! -s conftest.err
7372 } && test -s conftest$ac_exeext &&
7373 $as_test_x conftest$ac_exeext; then
7374 ac_cv_lib_curses_main=yes
7376 echo "$as_me: failed program was:" >&5
7377 sed 's/^/| /' conftest.$ac_ext >&5
7379 ac_cv_lib_curses_main=no
7382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7383 conftest$ac_exeext conftest.$ac_ext
7384 LIBS=$ac_check_lib_save_LIBS
7386 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
7387 echo "${ECHO_T}$ac_cv_lib_curses_main" >&6; }
7388 if test $ac_cv_lib_curses_main = yes; then
7394 { echo "$as_me:$LINENO: checking for main in -lncurses" >&5
7395 echo $ECHO_N "checking for main in -lncurses... $ECHO_C" >&6; }
7396 if test "${ac_cv_lib_ncurses_main+set}" = set; then
7397 echo $ECHO_N "(cached) $ECHO_C" >&6
7399 ac_check_lib_save_LIBS=$LIBS
7400 LIBS="-lncurses $LIBS"
7401 cat >conftest.$ac_ext <<_ACEOF
7404 cat confdefs.h >>conftest.$ac_ext
7405 cat >>conftest.$ac_ext <<_ACEOF
7406 /* end confdefs.h. */
7417 rm -f conftest.$ac_objext conftest$ac_exeext
7418 if { (ac_try="$ac_link"
7420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7421 *) ac_try_echo=$ac_try;;
7423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7424 (eval "$ac_link") 2>conftest.er1
7426 grep -v '^ *+' conftest.er1 >conftest.err
7428 cat conftest.err >&5
7429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430 (exit $ac_status); } && {
7431 test -z "$ac_c_werror_flag" ||
7432 test ! -s conftest.err
7433 } && test -s conftest$ac_exeext &&
7434 $as_test_x conftest$ac_exeext; then
7435 ac_cv_lib_ncurses_main=yes
7437 echo "$as_me: failed program was:" >&5
7438 sed 's/^/| /' conftest.$ac_ext >&5
7440 ac_cv_lib_ncurses_main=no
7443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7444 conftest$ac_exeext conftest.$ac_ext
7445 LIBS=$ac_check_lib_save_LIBS
7447 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
7448 echo "${ECHO_T}$ac_cv_lib_ncurses_main" >&6; }
7449 if test $ac_cv_lib_ncurses_main = yes; then
7455 { echo "$as_me:$LINENO: checking for main in -lreadline" >&5
7456 echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6; }
7457 if test "${ac_cv_lib_readline_main+set}" = set; then
7458 echo $ECHO_N "(cached) $ECHO_C" >&6
7460 ac_check_lib_save_LIBS=$LIBS
7461 LIBS="-lreadline -lcurses $LIBS"
7462 cat >conftest.$ac_ext <<_ACEOF
7465 cat confdefs.h >>conftest.$ac_ext
7466 cat >>conftest.$ac_ext <<_ACEOF
7467 /* end confdefs.h. */
7478 rm -f conftest.$ac_objext conftest$ac_exeext
7479 if { (ac_try="$ac_link"
7481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7482 *) ac_try_echo=$ac_try;;
7484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7485 (eval "$ac_link") 2>conftest.er1
7487 grep -v '^ *+' conftest.er1 >conftest.err
7489 cat conftest.err >&5
7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); } && {
7492 test -z "$ac_c_werror_flag" ||
7493 test ! -s conftest.err
7494 } && test -s conftest$ac_exeext &&
7495 $as_test_x conftest$ac_exeext; then
7496 ac_cv_lib_readline_main=yes
7498 echo "$as_me: failed program was:" >&5
7499 sed 's/^/| /' conftest.$ac_ext >&5
7501 ac_cv_lib_readline_main=no
7504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7505 conftest$ac_exeext conftest.$ac_ext
7506 LIBS=$ac_check_lib_save_LIBS
7508 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
7509 echo "${ECHO_T}$ac_cv_lib_readline_main" >&6; }
7510 if test $ac_cv_lib_readline_main = yes; then
7513 cat >>confdefs.h <<\_ACEOF
7514 #define HAVE_READLINE 1
7522 { echo "$as_me:$LINENO: checking for main in -lwx_gtk-2.4" >&5
7523 echo $ECHO_N "checking for main in -lwx_gtk-2.4... $ECHO_C" >&6; }
7524 if test "${ac_cv_lib_wx_gtk_2_4_main+set}" = set; then
7525 echo $ECHO_N "(cached) $ECHO_C" >&6
7527 ac_check_lib_save_LIBS=$LIBS
7528 LIBS="-lwx_gtk-2.4 -L/usr/lib64 -L/usr/lib `gtk-config --libs` `glib-config --libs glib gmodule gthread` $LIBS"
7529 cat >conftest.$ac_ext <<_ACEOF
7532 cat confdefs.h >>conftest.$ac_ext
7533 cat >>conftest.$ac_ext <<_ACEOF
7534 /* end confdefs.h. */
7545 rm -f conftest.$ac_objext conftest$ac_exeext
7546 if { (ac_try="$ac_link"
7548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7549 *) ac_try_echo=$ac_try;;
7551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7552 (eval "$ac_link") 2>conftest.er1
7554 grep -v '^ *+' conftest.er1 >conftest.err
7556 cat conftest.err >&5
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); } && {
7559 test -z "$ac_c_werror_flag" ||
7560 test ! -s conftest.err
7561 } && test -s conftest$ac_exeext &&
7562 $as_test_x conftest$ac_exeext; then
7563 ac_cv_lib_wx_gtk_2_4_main=yes
7565 echo "$as_me: failed program was:" >&5
7566 sed 's/^/| /' conftest.$ac_ext >&5
7568 ac_cv_lib_wx_gtk_2_4_main=no
7571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7572 conftest$ac_exeext conftest.$ac_ext
7573 LIBS=$ac_check_lib_save_LIBS
7575 { echo "$as_me:$LINENO: result: $ac_cv_lib_wx_gtk_2_4_main" >&5
7576 echo "${ECHO_T}$ac_cv_lib_wx_gtk_2_4_main" >&6; }
7577 if test $ac_cv_lib_wx_gtk_2_4_main = yes; then
7578 wxwin=true; wx_gtk=true;
7579 cat >>confdefs.h <<\_ACEOF
7580 #define HAVE_WXWINDOWS 1
7585 { echo "$as_me:$LINENO: checking for main in -lwx_mac-2.4" >&5
7586 echo $ECHO_N "checking for main in -lwx_mac-2.4... $ECHO_C" >&6; }
7587 if test "${ac_cv_lib_wx_mac_2_4_main+set}" = set; then
7588 echo $ECHO_N "(cached) $ECHO_C" >&6
7590 ac_check_lib_save_LIBS=$LIBS
7591 LIBS="-lwx_mac-2.4 $LIBS"
7592 cat >conftest.$ac_ext <<_ACEOF
7595 cat confdefs.h >>conftest.$ac_ext
7596 cat >>conftest.$ac_ext <<_ACEOF
7597 /* end confdefs.h. */
7608 rm -f conftest.$ac_objext conftest$ac_exeext
7609 if { (ac_try="$ac_link"
7611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7612 *) ac_try_echo=$ac_try;;
7614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7615 (eval "$ac_link") 2>conftest.er1
7617 grep -v '^ *+' conftest.er1 >conftest.err
7619 cat conftest.err >&5
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); } && {
7622 test -z "$ac_c_werror_flag" ||
7623 test ! -s conftest.err
7624 } && test -s conftest$ac_exeext &&
7625 $as_test_x conftest$ac_exeext; then
7626 ac_cv_lib_wx_mac_2_4_main=yes
7628 echo "$as_me: failed program was:" >&5
7629 sed 's/^/| /' conftest.$ac_ext >&5
7631 ac_cv_lib_wx_mac_2_4_main=no
7634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7635 conftest$ac_exeext conftest.$ac_ext
7636 LIBS=$ac_check_lib_save_LIBS
7638 { echo "$as_me:$LINENO: result: $ac_cv_lib_wx_mac_2_4_main" >&5
7639 echo "${ECHO_T}$ac_cv_lib_wx_mac_2_4_main" >&6; }
7640 if test $ac_cv_lib_wx_mac_2_4_main = yes; then
7641 wxwin=true; wx_mac=true;
7642 cat >>confdefs.h <<\_ACEOF
7643 #define HAVE_WXWINDOWS 1
7648 { echo "$as_me:$LINENO: checking for fftw_malloc in -lfftw3" >&5
7649 echo $ECHO_N "checking for fftw_malloc in -lfftw3... $ECHO_C" >&6; }
7650 if test "${ac_cv_lib_fftw3_fftw_malloc+set}" = set; then
7651 echo $ECHO_N "(cached) $ECHO_C" >&6
7653 ac_check_lib_save_LIBS=$LIBS
7654 LIBS="-lfftw3 -L/usr/lib64 -L/usr/lib $LIBS"
7655 cat >conftest.$ac_ext <<_ACEOF
7658 cat confdefs.h >>conftest.$ac_ext
7659 cat >>conftest.$ac_ext <<_ACEOF
7660 /* end confdefs.h. */
7662 /* Override any GCC internal prototype to avoid an error.
7663 Use char because int might match the return type of a GCC
7664 builtin and then its argument prototype would still apply. */
7668 char fftw_malloc ();
7672 return fftw_malloc ();
7677 rm -f conftest.$ac_objext conftest$ac_exeext
7678 if { (ac_try="$ac_link"
7680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7681 *) ac_try_echo=$ac_try;;
7683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7684 (eval "$ac_link") 2>conftest.er1
7686 grep -v '^ *+' conftest.er1 >conftest.err
7688 cat conftest.err >&5
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); } && {
7691 test -z "$ac_c_werror_flag" ||
7692 test ! -s conftest.err
7693 } && test -s conftest$ac_exeext &&
7694 $as_test_x conftest$ac_exeext; then
7695 ac_cv_lib_fftw3_fftw_malloc=yes
7697 echo "$as_me: failed program was:" >&5
7698 sed 's/^/| /' conftest.$ac_ext >&5
7700 ac_cv_lib_fftw3_fftw_malloc=no
7703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7704 conftest$ac_exeext conftest.$ac_ext
7705 LIBS=$ac_check_lib_save_LIBS
7707 { echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_malloc" >&5
7708 echo "${ECHO_T}$ac_cv_lib_fftw3_fftw_malloc" >&6; }
7709 if test $ac_cv_lib_fftw3_fftw_malloc = yes; then
7711 cat >>confdefs.h <<\_ACEOF
7719 { echo "$as_me:$LINENO: checking for main in -lGL" >&5
7720 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6; }
7721 if test "${ac_cv_lib_GL_main+set}" = set; then
7722 echo $ECHO_N "(cached) $ECHO_C" >&6
7724 ac_check_lib_save_LIBS=$LIBS
7725 LIBS="-lGL -L/usr/X11R6/lib -L/usr/X11R6/lib64 $LIBS"
7726 cat >conftest.$ac_ext <<_ACEOF
7729 cat confdefs.h >>conftest.$ac_ext
7730 cat >>conftest.$ac_ext <<_ACEOF
7731 /* end confdefs.h. */
7742 rm -f conftest.$ac_objext conftest$ac_exeext
7743 if { (ac_try="$ac_link"
7745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7746 *) ac_try_echo=$ac_try;;
7748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7749 (eval "$ac_link") 2>conftest.er1
7751 grep -v '^ *+' conftest.er1 >conftest.err
7753 cat conftest.err >&5
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); } && {
7756 test -z "$ac_c_werror_flag" ||
7757 test ! -s conftest.err
7758 } && test -s conftest$ac_exeext &&
7759 $as_test_x conftest$ac_exeext; then
7760 ac_cv_lib_GL_main=yes
7762 echo "$as_me: failed program was:" >&5
7763 sed 's/^/| /' conftest.$ac_ext >&5
7765 ac_cv_lib_GL_main=no
7768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7769 conftest$ac_exeext conftest.$ac_ext
7770 LIBS=$ac_check_lib_save_LIBS
7772 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
7773 echo "${ECHO_T}$ac_cv_lib_GL_main" >&6; }
7774 if test $ac_cv_lib_GL_main = yes; then
7780 { echo "$as_me:$LINENO: checking for main in -lpthread" >&5
7781 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6; }
7782 if test "${ac_cv_lib_pthread_main+set}" = set; then
7783 echo $ECHO_N "(cached) $ECHO_C" >&6
7785 ac_check_lib_save_LIBS=$LIBS
7786 LIBS="-lpthread $LIBS"
7787 cat >conftest.$ac_ext <<_ACEOF
7790 cat confdefs.h >>conftest.$ac_ext
7791 cat >>conftest.$ac_ext <<_ACEOF
7792 /* end confdefs.h. */
7803 rm -f conftest.$ac_objext conftest$ac_exeext
7804 if { (ac_try="$ac_link"
7806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7807 *) ac_try_echo=$ac_try;;
7809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7810 (eval "$ac_link") 2>conftest.er1
7812 grep -v '^ *+' conftest.er1 >conftest.err
7814 cat conftest.err >&5
7815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816 (exit $ac_status); } && {
7817 test -z "$ac_c_werror_flag" ||
7818 test ! -s conftest.err
7819 } && test -s conftest$ac_exeext &&
7820 $as_test_x conftest$ac_exeext; then
7821 ac_cv_lib_pthread_main=yes
7823 echo "$as_me: failed program was:" >&5
7824 sed 's/^/| /' conftest.$ac_ext >&5
7826 ac_cv_lib_pthread_main=no
7829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7830 conftest$ac_exeext conftest.$ac_ext
7831 LIBS=$ac_check_lib_save_LIBS
7833 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
7834 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6; }
7835 if test $ac_cv_lib_pthread_main = yes; then
7842 if test "$zlib" = "true" ; then
7843 { echo "$as_me:$LINENO: checking for main in -lpng" >&5
7844 echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6; }
7845 if test "${ac_cv_lib_png_main+set}" = set; then
7846 echo $ECHO_N "(cached) $ECHO_C" >&6
7848 ac_check_lib_save_LIBS=$LIBS
7849 LIBS="-lpng -lz -lm $LIBS"
7850 cat >conftest.$ac_ext <<_ACEOF
7853 cat confdefs.h >>conftest.$ac_ext
7854 cat >>conftest.$ac_ext <<_ACEOF
7855 /* end confdefs.h. */
7866 rm -f conftest.$ac_objext conftest$ac_exeext
7867 if { (ac_try="$ac_link"
7869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7870 *) ac_try_echo=$ac_try;;
7872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7873 (eval "$ac_link") 2>conftest.er1
7875 grep -v '^ *+' conftest.er1 >conftest.err
7877 cat conftest.err >&5
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); } && {
7880 test -z "$ac_c_werror_flag" ||
7881 test ! -s conftest.err
7882 } && test -s conftest$ac_exeext &&
7883 $as_test_x conftest$ac_exeext; then
7884 ac_cv_lib_png_main=yes
7886 echo "$as_me: failed program was:" >&5
7887 sed 's/^/| /' conftest.$ac_ext >&5
7889 ac_cv_lib_png_main=no
7892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7893 conftest$ac_exeext conftest.$ac_ext
7894 LIBS=$ac_check_lib_save_LIBS
7896 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5
7897 echo "${ECHO_T}$ac_cv_lib_png_main" >&6; }
7898 if test $ac_cv_lib_png_main = yes; then
7900 cat >>confdefs.h <<\_ACEOF
7910 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7911 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7912 if test "${ac_cv_header_stdc+set}" = set; then
7913 echo $ECHO_N "(cached) $ECHO_C" >&6
7915 cat >conftest.$ac_ext <<_ACEOF
7918 cat confdefs.h >>conftest.$ac_ext
7919 cat >>conftest.$ac_ext <<_ACEOF
7920 /* end confdefs.h. */
7934 rm -f conftest.$ac_objext
7935 if { (ac_try="$ac_compile"
7937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7938 *) ac_try_echo=$ac_try;;
7940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7941 (eval "$ac_compile") 2>conftest.er1
7943 grep -v '^ *+' conftest.er1 >conftest.err
7945 cat conftest.err >&5
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); } && {
7948 test -z "$ac_c_werror_flag" ||
7949 test ! -s conftest.err
7950 } && test -s conftest.$ac_objext; then
7951 ac_cv_header_stdc=yes
7953 echo "$as_me: failed program was:" >&5
7954 sed 's/^/| /' conftest.$ac_ext >&5
7956 ac_cv_header_stdc=no
7959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7961 if test $ac_cv_header_stdc = yes; then
7962 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7963 cat >conftest.$ac_ext <<_ACEOF
7966 cat confdefs.h >>conftest.$ac_ext
7967 cat >>conftest.$ac_ext <<_ACEOF
7968 /* end confdefs.h. */
7972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7973 $EGREP "memchr" >/dev/null 2>&1; then
7976 ac_cv_header_stdc=no
7982 if test $ac_cv_header_stdc = yes; then
7983 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7984 cat >conftest.$ac_ext <<_ACEOF
7987 cat confdefs.h >>conftest.$ac_ext
7988 cat >>conftest.$ac_ext <<_ACEOF
7989 /* end confdefs.h. */
7993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7994 $EGREP "free" >/dev/null 2>&1; then
7997 ac_cv_header_stdc=no
8003 if test $ac_cv_header_stdc = yes; then
8004 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8005 if test "$cross_compiling" = yes; then
8008 cat >conftest.$ac_ext <<_ACEOF
8011 cat confdefs.h >>conftest.$ac_ext
8012 cat >>conftest.$ac_ext <<_ACEOF
8013 /* end confdefs.h. */
8016 #if ((' ' & 0x0FF) == 0x020)
8017 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8018 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8020 # define ISLOWER(c) \
8021 (('a' <= (c) && (c) <= 'i') \
8022 || ('j' <= (c) && (c) <= 'r') \
8023 || ('s' <= (c) && (c) <= 'z'))
8024 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8027 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8032 for (i = 0; i < 256; i++)
8033 if (XOR (islower (i), ISLOWER (i))
8034 || toupper (i) != TOUPPER (i))
8039 rm -f conftest$ac_exeext
8040 if { (ac_try="$ac_link"
8042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8043 *) ac_try_echo=$ac_try;;
8045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8046 (eval "$ac_link") 2>&5
8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8050 { (case "(($ac_try" in
8051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8052 *) ac_try_echo=$ac_try;;
8054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8055 (eval "$ac_try") 2>&5
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); }; }; then
8061 echo "$as_me: program exited with status $ac_status" >&5
8062 echo "$as_me: failed program was:" >&5
8063 sed 's/^/| /' conftest.$ac_ext >&5
8066 ac_cv_header_stdc=no
8068 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8074 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8075 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8076 if test $ac_cv_header_stdc = yes; then
8078 cat >>confdefs.h <<\_ACEOF
8079 #define STDC_HEADERS 1
8108 for ac_header in fcntl.h unistd.h getopt.h sys/fcntl.h setjmp.h stdarg.h stddef.h sys/types.h sys/stat.h string.h ctype.h math.h stdio.h netinet/in.h inttypes.h sys/param.h stdint.h stdlib.h assert.h sys/time.h sys/resource.h sys/time.h readline.h readline/readline.h
8110 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8112 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8115 echo $ECHO_N "(cached) $ECHO_C" >&6
8117 ac_res=`eval echo '${'$as_ac_Header'}'`
8118 { echo "$as_me:$LINENO: result: $ac_res" >&5
8119 echo "${ECHO_T}$ac_res" >&6; }
8121 # Is the header compilable?
8122 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8123 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8124 cat >conftest.$ac_ext <<_ACEOF
8127 cat confdefs.h >>conftest.$ac_ext
8128 cat >>conftest.$ac_ext <<_ACEOF
8129 /* end confdefs.h. */
8130 $ac_includes_default
8131 #include <$ac_header>
8133 rm -f conftest.$ac_objext
8134 if { (ac_try="$ac_compile"
8136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8137 *) ac_try_echo=$ac_try;;
8139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8140 (eval "$ac_compile") 2>conftest.er1
8142 grep -v '^ *+' conftest.er1 >conftest.err
8144 cat conftest.err >&5
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); } && {
8147 test -z "$ac_c_werror_flag" ||
8148 test ! -s conftest.err
8149 } && test -s conftest.$ac_objext; then
8150 ac_header_compiler=yes
8152 echo "$as_me: failed program was:" >&5
8153 sed 's/^/| /' conftest.$ac_ext >&5
8155 ac_header_compiler=no
8158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8159 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8160 echo "${ECHO_T}$ac_header_compiler" >&6; }
8162 # Is the header present?
8163 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8164 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8165 cat >conftest.$ac_ext <<_ACEOF
8168 cat confdefs.h >>conftest.$ac_ext
8169 cat >>conftest.$ac_ext <<_ACEOF
8170 /* end confdefs.h. */
8171 #include <$ac_header>
8173 if { (ac_try="$ac_cpp conftest.$ac_ext"
8175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8176 *) ac_try_echo=$ac_try;;
8178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8179 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8181 grep -v '^ *+' conftest.er1 >conftest.err
8183 cat conftest.err >&5
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); } >/dev/null && {
8186 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8187 test ! -s conftest.err
8189 ac_header_preproc=yes
8191 echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8194 ac_header_preproc=no
8197 rm -f conftest.err conftest.$ac_ext
8198 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8199 echo "${ECHO_T}$ac_header_preproc" >&6; }
8201 # So? What about this header?
8202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8204 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8205 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8207 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8208 ac_header_preproc=yes
8211 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8212 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8213 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8214 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8215 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8216 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8217 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8218 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8221 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8222 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8229 echo $ECHO_N "(cached) $ECHO_C" >&6
8231 eval "$as_ac_Header=\$ac_header_preproc"
8233 ac_res=`eval echo '${'$as_ac_Header'}'`
8234 { echo "$as_me:$LINENO: result: $ac_res" >&5
8235 echo "${ECHO_T}$ac_res" >&6; }
8238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8239 cat >>confdefs.h <<_ACEOF
8240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8248 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8249 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8250 if test "${ac_cv_c_const+set}" = set; then
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
8253 cat >conftest.$ac_ext <<_ACEOF
8256 cat confdefs.h >>conftest.$ac_ext
8257 cat >>conftest.$ac_ext <<_ACEOF
8258 /* end confdefs.h. */
8263 /* FIXME: Include the comments suggested by Paul. */
8265 /* Ultrix mips cc rejects this. */
8266 typedef int charset[2];
8268 /* SunOS 4.1.1 cc rejects this. */
8269 char const *const *pcpcc;
8271 /* NEC SVR4.0.2 mips cc rejects this. */
8272 struct point {int x, y;};
8273 static struct point const zero = {0,0};
8274 /* AIX XL C 1.02.0.0 rejects this.
8275 It does not let you subtract one const X* pointer from another in
8276 an arm of an if-expression whose if-part is not a constant
8278 const char *g = "string";
8279 pcpcc = &g + (g ? g-g : 0);
8280 /* HPUX 7.0 cc rejects these. */
8282 ppc = (char**) pcpcc;
8283 pcpcc = (char const *const *) ppc;
8284 { /* SCO 3.2v4 cc rejects this. */
8286 char const *s = 0 ? (char *) 0 : (char const *) 0;
8291 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8293 const int *foo = &x[0];
8296 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8297 typedef const int *iptr;
8301 { /* AIX XL C 1.02.0.0 rejects this saying
8302 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8303 struct s { int j; const int *ap[3]; };
8304 struct s *b; b->j = 5;
8306 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8310 return !cs[0] && !zero.x;
8317 rm -f conftest.$ac_objext
8318 if { (ac_try="$ac_compile"
8320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8321 *) ac_try_echo=$ac_try;;
8323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8324 (eval "$ac_compile") 2>conftest.er1
8326 grep -v '^ *+' conftest.er1 >conftest.err
8328 cat conftest.err >&5
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); } && {
8331 test -z "$ac_c_werror_flag" ||
8332 test ! -s conftest.err
8333 } && test -s conftest.$ac_objext; then
8336 echo "$as_me: failed program was:" >&5
8337 sed 's/^/| /' conftest.$ac_ext >&5
8342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8344 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8345 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8346 if test $ac_cv_c_const = no; then
8348 cat >>confdefs.h <<\_ACEOF
8354 { echo "$as_me:$LINENO: checking for off_t" >&5
8355 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8356 if test "${ac_cv_type_off_t+set}" = set; then
8357 echo $ECHO_N "(cached) $ECHO_C" >&6
8359 cat >conftest.$ac_ext <<_ACEOF
8362 cat confdefs.h >>conftest.$ac_ext
8363 cat >>conftest.$ac_ext <<_ACEOF
8364 /* end confdefs.h. */
8365 $ac_includes_default
8366 typedef off_t ac__type_new_;
8370 if ((ac__type_new_ *) 0)
8372 if (sizeof (ac__type_new_))
8378 rm -f conftest.$ac_objext
8379 if { (ac_try="$ac_compile"
8381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8382 *) ac_try_echo=$ac_try;;
8384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8385 (eval "$ac_compile") 2>conftest.er1
8387 grep -v '^ *+' conftest.er1 >conftest.err
8389 cat conftest.err >&5
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); } && {
8392 test -z "$ac_c_werror_flag" ||
8393 test ! -s conftest.err
8394 } && test -s conftest.$ac_objext; then
8395 ac_cv_type_off_t=yes
8397 echo "$as_me: failed program was:" >&5
8398 sed 's/^/| /' conftest.$ac_ext >&5
8403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8405 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8406 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8407 if test $ac_cv_type_off_t = yes; then
8411 cat >>confdefs.h <<_ACEOF
8412 #define off_t long int
8417 { echo "$as_me:$LINENO: checking for size_t" >&5
8418 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8419 if test "${ac_cv_type_size_t+set}" = set; then
8420 echo $ECHO_N "(cached) $ECHO_C" >&6
8422 cat >conftest.$ac_ext <<_ACEOF
8425 cat confdefs.h >>conftest.$ac_ext
8426 cat >>conftest.$ac_ext <<_ACEOF
8427 /* end confdefs.h. */
8428 $ac_includes_default
8429 typedef size_t ac__type_new_;
8433 if ((ac__type_new_ *) 0)
8435 if (sizeof (ac__type_new_))
8441 rm -f conftest.$ac_objext
8442 if { (ac_try="$ac_compile"
8444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8445 *) ac_try_echo=$ac_try;;
8447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8448 (eval "$ac_compile") 2>conftest.er1
8450 grep -v '^ *+' conftest.er1 >conftest.err
8452 cat conftest.err >&5
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); } && {
8455 test -z "$ac_c_werror_flag" ||
8456 test ! -s conftest.err
8457 } && test -s conftest.$ac_objext; then
8458 ac_cv_type_size_t=yes
8460 echo "$as_me: failed program was:" >&5
8461 sed 's/^/| /' conftest.$ac_ext >&5
8463 ac_cv_type_size_t=no
8466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8468 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8469 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8470 if test $ac_cv_type_size_t = yes; then
8474 cat >>confdefs.h <<_ACEOF
8475 #define size_t unsigned int
8480 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8481 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
8482 if test "${ac_cv_struct_tm+set}" = set; then
8483 echo $ECHO_N "(cached) $ECHO_C" >&6
8485 cat >conftest.$ac_ext <<_ACEOF
8488 cat confdefs.h >>conftest.$ac_ext
8489 cat >>conftest.$ac_ext <<_ACEOF
8490 /* end confdefs.h. */
8491 #include <sys/types.h>
8498 int *p = &tm.tm_sec;
8504 rm -f conftest.$ac_objext
8505 if { (ac_try="$ac_compile"
8507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8508 *) ac_try_echo=$ac_try;;
8510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8511 (eval "$ac_compile") 2>conftest.er1
8513 grep -v '^ *+' conftest.er1 >conftest.err
8515 cat conftest.err >&5
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); } && {
8518 test -z "$ac_c_werror_flag" ||
8519 test ! -s conftest.err
8520 } && test -s conftest.$ac_objext; then
8521 ac_cv_struct_tm=time.h
8523 echo "$as_me: failed program was:" >&5
8524 sed 's/^/| /' conftest.$ac_ext >&5
8526 ac_cv_struct_tm=sys/time.h
8529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8531 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8532 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
8533 if test $ac_cv_struct_tm = sys/time.h; then
8535 cat >>confdefs.h <<\_ACEOF
8536 #define TM_IN_SYS_TIME 1
8543 for ac_func in vprintf
8545 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8546 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8548 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8549 echo $ECHO_N "(cached) $ECHO_C" >&6
8551 cat >conftest.$ac_ext <<_ACEOF
8554 cat confdefs.h >>conftest.$ac_ext
8555 cat >>conftest.$ac_ext <<_ACEOF
8556 /* end confdefs.h. */
8557 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8559 #define $ac_func innocuous_$ac_func
8561 /* System header to define __stub macros and hopefully few prototypes,
8562 which can conflict with char $ac_func (); below.
8563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8564 <limits.h> exists even on freestanding compilers. */
8567 # include <limits.h>
8569 # include <assert.h>
8574 /* Override any GCC internal prototype to avoid an error.
8575 Use char because int might match the return type of a GCC
8576 builtin and then its argument prototype would still apply. */
8581 /* The GNU C library defines this for functions which it implements
8582 to always fail with ENOSYS. Some functions are actually named
8583 something starting with __ and the normal name is an alias. */
8584 #if defined __stub_$ac_func || defined __stub___$ac_func
8596 rm -f conftest.$ac_objext conftest$ac_exeext
8597 if { (ac_try="$ac_link"
8599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8600 *) ac_try_echo=$ac_try;;
8602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8603 (eval "$ac_link") 2>conftest.er1
8605 grep -v '^ *+' conftest.er1 >conftest.err
8607 cat conftest.err >&5
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); } && {
8610 test -z "$ac_c_werror_flag" ||
8611 test ! -s conftest.err
8612 } && test -s conftest$ac_exeext &&
8613 $as_test_x conftest$ac_exeext; then
8614 eval "$as_ac_var=yes"
8616 echo "$as_me: failed program was:" >&5
8617 sed 's/^/| /' conftest.$ac_ext >&5
8619 eval "$as_ac_var=no"
8622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8623 conftest$ac_exeext conftest.$ac_ext
8625 ac_res=`eval echo '${'$as_ac_var'}'`
8626 { echo "$as_me:$LINENO: result: $ac_res" >&5
8627 echo "${ECHO_T}$ac_res" >&6; }
8628 if test `eval echo '${'$as_ac_var'}'` = yes; then
8629 cat >>confdefs.h <<_ACEOF
8630 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8633 { echo "$as_me:$LINENO: checking for _doprnt" >&5
8634 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
8635 if test "${ac_cv_func__doprnt+set}" = set; then
8636 echo $ECHO_N "(cached) $ECHO_C" >&6
8638 cat >conftest.$ac_ext <<_ACEOF
8641 cat confdefs.h >>conftest.$ac_ext
8642 cat >>conftest.$ac_ext <<_ACEOF
8643 /* end confdefs.h. */
8644 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8646 #define _doprnt innocuous__doprnt
8648 /* System header to define __stub macros and hopefully few prototypes,
8649 which can conflict with char _doprnt (); below.
8650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8651 <limits.h> exists even on freestanding compilers. */
8654 # include <limits.h>
8656 # include <assert.h>
8661 /* Override any GCC internal prototype to avoid an error.
8662 Use char because int might match the return type of a GCC
8663 builtin and then its argument prototype would still apply. */
8668 /* The GNU C library defines this for functions which it implements
8669 to always fail with ENOSYS. Some functions are actually named
8670 something starting with __ and the normal name is an alias. */
8671 #if defined __stub__doprnt || defined __stub____doprnt
8683 rm -f conftest.$ac_objext conftest$ac_exeext
8684 if { (ac_try="$ac_link"
8686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8687 *) ac_try_echo=$ac_try;;
8689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8690 (eval "$ac_link") 2>conftest.er1
8692 grep -v '^ *+' conftest.er1 >conftest.err
8694 cat conftest.err >&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); } && {
8697 test -z "$ac_c_werror_flag" ||
8698 test ! -s conftest.err
8699 } && test -s conftest$ac_exeext &&
8700 $as_test_x conftest$ac_exeext; then
8701 ac_cv_func__doprnt=yes
8703 echo "$as_me: failed program was:" >&5
8704 sed 's/^/| /' conftest.$ac_ext >&5
8706 ac_cv_func__doprnt=no
8709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8710 conftest$ac_exeext conftest.$ac_ext
8712 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
8713 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
8714 if test $ac_cv_func__doprnt = yes; then
8716 cat >>confdefs.h <<\_ACEOF
8717 #define HAVE_DOPRNT 1
8739 for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf basename setjmp setpriority time gettimeofday getenv
8741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8742 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8744 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8745 echo $ECHO_N "(cached) $ECHO_C" >&6
8747 cat >conftest.$ac_ext <<_ACEOF
8750 cat confdefs.h >>conftest.$ac_ext
8751 cat >>conftest.$ac_ext <<_ACEOF
8752 /* end confdefs.h. */
8753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8755 #define $ac_func innocuous_$ac_func
8757 /* System header to define __stub macros and hopefully few prototypes,
8758 which can conflict with char $ac_func (); below.
8759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8760 <limits.h> exists even on freestanding compilers. */
8763 # include <limits.h>
8765 # include <assert.h>
8770 /* Override any GCC internal prototype to avoid an error.
8771 Use char because int might match the return type of a GCC
8772 builtin and then its argument prototype would still apply. */
8777 /* The GNU C library defines this for functions which it implements
8778 to always fail with ENOSYS. Some functions are actually named
8779 something starting with __ and the normal name is an alias. */
8780 #if defined __stub_$ac_func || defined __stub___$ac_func
8792 rm -f conftest.$ac_objext conftest$ac_exeext
8793 if { (ac_try="$ac_link"
8795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8796 *) ac_try_echo=$ac_try;;
8798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8799 (eval "$ac_link") 2>conftest.er1
8801 grep -v '^ *+' conftest.er1 >conftest.err
8803 cat conftest.err >&5
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); } && {
8806 test -z "$ac_c_werror_flag" ||
8807 test ! -s conftest.err
8808 } && test -s conftest$ac_exeext &&
8809 $as_test_x conftest$ac_exeext; then
8810 eval "$as_ac_var=yes"
8812 echo "$as_me: failed program was:" >&5
8813 sed 's/^/| /' conftest.$ac_ext >&5
8815 eval "$as_ac_var=no"
8818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8819 conftest$ac_exeext conftest.$ac_ext
8821 ac_res=`eval echo '${'$as_ac_var'}'`
8822 { echo "$as_me:$LINENO: result: $ac_res" >&5
8823 echo "${ECHO_T}$ac_res" >&6; }
8824 if test `eval echo '${'$as_ac_var'}'` = yes; then
8825 cat >>confdefs.h <<_ACEOF
8826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8832 { echo "$as_me:$LINENO: checking for basename" >&5
8833 echo $ECHO_N "checking for basename... $ECHO_C" >&6; }
8834 if test "${ac_cv_func_basename+set}" = set; then
8835 echo $ECHO_N "(cached) $ECHO_C" >&6
8837 cat >conftest.$ac_ext <<_ACEOF
8840 cat confdefs.h >>conftest.$ac_ext
8841 cat >>conftest.$ac_ext <<_ACEOF
8842 /* end confdefs.h. */
8843 /* Define basename to an innocuous variant, in case <limits.h> declares basename.
8844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8845 #define basename innocuous_basename
8847 /* System header to define __stub macros and hopefully few prototypes,
8848 which can conflict with char basename (); below.
8849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8850 <limits.h> exists even on freestanding compilers. */
8853 # include <limits.h>
8855 # include <assert.h>
8860 /* Override any GCC internal prototype to avoid an error.
8861 Use char because int might match the return type of a GCC
8862 builtin and then its argument prototype would still apply. */
8867 /* The GNU C library defines this for functions which it implements
8868 to always fail with ENOSYS. Some functions are actually named
8869 something starting with __ and the normal name is an alias. */
8870 #if defined __stub_basename || defined __stub___basename
8882 rm -f conftest.$ac_objext conftest$ac_exeext
8883 if { (ac_try="$ac_link"
8885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8886 *) ac_try_echo=$ac_try;;
8888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8889 (eval "$ac_link") 2>conftest.er1
8891 grep -v '^ *+' conftest.er1 >conftest.err
8893 cat conftest.err >&5
8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895 (exit $ac_status); } && {
8896 test -z "$ac_c_werror_flag" ||
8897 test ! -s conftest.err
8898 } && test -s conftest$ac_exeext &&
8899 $as_test_x conftest$ac_exeext; then
8900 ac_cv_func_basename=yes
8902 echo "$as_me: failed program was:" >&5
8903 sed 's/^/| /' conftest.$ac_ext >&5
8905 ac_cv_func_basename=no
8908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8909 conftest$ac_exeext conftest.$ac_ext
8911 { echo "$as_me:$LINENO: result: $ac_cv_func_basename" >&5
8912 echo "${ECHO_T}$ac_cv_func_basename" >&6; }
8914 { echo "$as_me:$LINENO: checking for setjmp" >&5
8915 echo $ECHO_N "checking for setjmp... $ECHO_C" >&6; }
8916 if test "${ac_cv_func_setjmp+set}" = set; then
8917 echo $ECHO_N "(cached) $ECHO_C" >&6
8919 cat >conftest.$ac_ext <<_ACEOF
8922 cat confdefs.h >>conftest.$ac_ext
8923 cat >>conftest.$ac_ext <<_ACEOF
8924 /* end confdefs.h. */
8925 /* Define setjmp to an innocuous variant, in case <limits.h> declares setjmp.
8926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8927 #define setjmp innocuous_setjmp
8929 /* System header to define __stub macros and hopefully few prototypes,
8930 which can conflict with char setjmp (); below.
8931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8932 <limits.h> exists even on freestanding compilers. */
8935 # include <limits.h>
8937 # include <assert.h>
8942 /* Override any GCC internal prototype to avoid an error.
8943 Use char because int might match the return type of a GCC
8944 builtin and then its argument prototype would still apply. */
8949 /* The GNU C library defines this for functions which it implements
8950 to always fail with ENOSYS. Some functions are actually named
8951 something starting with __ and the normal name is an alias. */
8952 #if defined __stub_setjmp || defined __stub___setjmp
8964 rm -f conftest.$ac_objext conftest$ac_exeext
8965 if { (ac_try="$ac_link"
8967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8968 *) ac_try_echo=$ac_try;;
8970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8971 (eval "$ac_link") 2>conftest.er1
8973 grep -v '^ *+' conftest.er1 >conftest.err
8975 cat conftest.err >&5
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); } && {
8978 test -z "$ac_c_werror_flag" ||
8979 test ! -s conftest.err
8980 } && test -s conftest$ac_exeext &&
8981 $as_test_x conftest$ac_exeext; then
8982 ac_cv_func_setjmp=yes
8984 echo "$as_me: failed program was:" >&5
8985 sed 's/^/| /' conftest.$ac_ext >&5
8987 ac_cv_func_setjmp=no
8990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8991 conftest$ac_exeext conftest.$ac_ext
8993 { echo "$as_me:$LINENO: result: $ac_cv_func_setjmp" >&5
8994 echo "${ECHO_T}$ac_cv_func_setjmp" >&6; }
8996 { echo "$as_me:$LINENO: checking for setpriority" >&5
8997 echo $ECHO_N "checking for setpriority... $ECHO_C" >&6; }
8998 if test "${ac_cv_func_setpriority+set}" = set; then
8999 echo $ECHO_N "(cached) $ECHO_C" >&6
9001 cat >conftest.$ac_ext <<_ACEOF
9004 cat confdefs.h >>conftest.$ac_ext
9005 cat >>conftest.$ac_ext <<_ACEOF
9006 /* end confdefs.h. */
9007 /* Define setpriority to an innocuous variant, in case <limits.h> declares setpriority.
9008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9009 #define setpriority innocuous_setpriority
9011 /* System header to define __stub macros and hopefully few prototypes,
9012 which can conflict with char setpriority (); below.
9013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9014 <limits.h> exists even on freestanding compilers. */
9017 # include <limits.h>
9019 # include <assert.h>
9024 /* Override any GCC internal prototype to avoid an error.
9025 Use char because int might match the return type of a GCC
9026 builtin and then its argument prototype would still apply. */
9030 char setpriority ();
9031 /* The GNU C library defines this for functions which it implements
9032 to always fail with ENOSYS. Some functions are actually named
9033 something starting with __ and the normal name is an alias. */
9034 #if defined __stub_setpriority || defined __stub___setpriority
9041 return setpriority ();
9046 rm -f conftest.$ac_objext conftest$ac_exeext
9047 if { (ac_try="$ac_link"
9049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9050 *) ac_try_echo=$ac_try;;
9052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9053 (eval "$ac_link") 2>conftest.er1
9055 grep -v '^ *+' conftest.er1 >conftest.err
9057 cat conftest.err >&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); } && {
9060 test -z "$ac_c_werror_flag" ||
9061 test ! -s conftest.err
9062 } && test -s conftest$ac_exeext &&
9063 $as_test_x conftest$ac_exeext; then
9064 ac_cv_func_setpriority=yes
9066 echo "$as_me: failed program was:" >&5
9067 sed 's/^/| /' conftest.$ac_ext >&5
9069 ac_cv_func_setpriority=no
9072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9073 conftest$ac_exeext conftest.$ac_ext
9075 { echo "$as_me:$LINENO: result: $ac_cv_func_setpriority" >&5
9076 echo "${ECHO_T}$ac_cv_func_setpriority" >&6; }
9078 { echo "$as_me:$LINENO: checking for time" >&5
9079 echo $ECHO_N "checking for time... $ECHO_C" >&6; }
9080 if test "${ac_cv_func_time+set}" = set; then
9081 echo $ECHO_N "(cached) $ECHO_C" >&6
9083 cat >conftest.$ac_ext <<_ACEOF
9086 cat confdefs.h >>conftest.$ac_ext
9087 cat >>conftest.$ac_ext <<_ACEOF
9088 /* end confdefs.h. */
9089 /* Define time to an innocuous variant, in case <limits.h> declares time.
9090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9091 #define time innocuous_time
9093 /* System header to define __stub macros and hopefully few prototypes,
9094 which can conflict with char time (); below.
9095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9096 <limits.h> exists even on freestanding compilers. */
9099 # include <limits.h>
9101 # include <assert.h>
9106 /* Override any GCC internal prototype to avoid an error.
9107 Use char because int might match the return type of a GCC
9108 builtin and then its argument prototype would still apply. */
9113 /* The GNU C library defines this for functions which it implements
9114 to always fail with ENOSYS. Some functions are actually named
9115 something starting with __ and the normal name is an alias. */
9116 #if defined __stub_time || defined __stub___time
9128 rm -f conftest.$ac_objext conftest$ac_exeext
9129 if { (ac_try="$ac_link"
9131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9132 *) ac_try_echo=$ac_try;;
9134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9135 (eval "$ac_link") 2>conftest.er1
9137 grep -v '^ *+' conftest.er1 >conftest.err
9139 cat conftest.err >&5
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); } && {
9142 test -z "$ac_c_werror_flag" ||
9143 test ! -s conftest.err
9144 } && test -s conftest$ac_exeext &&
9145 $as_test_x conftest$ac_exeext; then
9148 echo "$as_me: failed program was:" >&5
9149 sed 's/^/| /' conftest.$ac_ext >&5
9154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9155 conftest$ac_exeext conftest.$ac_ext
9157 { echo "$as_me:$LINENO: result: $ac_cv_func_time" >&5
9158 echo "${ECHO_T}$ac_cv_func_time" >&6; }
9160 { echo "$as_me:$LINENO: checking for gettimeofday" >&5
9161 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6; }
9162 if test "${ac_cv_func_gettimeofday+set}" = set; then
9163 echo $ECHO_N "(cached) $ECHO_C" >&6
9165 cat >conftest.$ac_ext <<_ACEOF
9168 cat confdefs.h >>conftest.$ac_ext
9169 cat >>conftest.$ac_ext <<_ACEOF
9170 /* end confdefs.h. */
9171 /* Define gettimeofday to an innocuous variant, in case <limits.h> declares gettimeofday.
9172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9173 #define gettimeofday innocuous_gettimeofday
9175 /* System header to define __stub macros and hopefully few prototypes,
9176 which can conflict with char gettimeofday (); below.
9177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9178 <limits.h> exists even on freestanding compilers. */
9181 # include <limits.h>
9183 # include <assert.h>
9188 /* Override any GCC internal prototype to avoid an error.
9189 Use char because int might match the return type of a GCC
9190 builtin and then its argument prototype would still apply. */
9194 char gettimeofday ();
9195 /* The GNU C library defines this for functions which it implements
9196 to always fail with ENOSYS. Some functions are actually named
9197 something starting with __ and the normal name is an alias. */
9198 #if defined __stub_gettimeofday || defined __stub___gettimeofday
9205 return gettimeofday ();
9210 rm -f conftest.$ac_objext conftest$ac_exeext
9211 if { (ac_try="$ac_link"
9213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9214 *) ac_try_echo=$ac_try;;
9216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9217 (eval "$ac_link") 2>conftest.er1
9219 grep -v '^ *+' conftest.er1 >conftest.err
9221 cat conftest.err >&5
9222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223 (exit $ac_status); } && {
9224 test -z "$ac_c_werror_flag" ||
9225 test ! -s conftest.err
9226 } && test -s conftest$ac_exeext &&
9227 $as_test_x conftest$ac_exeext; then
9228 ac_cv_func_gettimeofday=yes
9230 echo "$as_me: failed program was:" >&5
9231 sed 's/^/| /' conftest.$ac_ext >&5
9233 ac_cv_func_gettimeofday=no
9236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9237 conftest$ac_exeext conftest.$ac_ext
9239 { echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
9240 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6; }
9242 { echo "$as_me:$LINENO: checking for getopt" >&5
9243 echo $ECHO_N "checking for getopt... $ECHO_C" >&6; }
9244 if test "${ac_cv_func_getopt+set}" = set; then
9245 echo $ECHO_N "(cached) $ECHO_C" >&6
9247 cat >conftest.$ac_ext <<_ACEOF
9250 cat confdefs.h >>conftest.$ac_ext
9251 cat >>conftest.$ac_ext <<_ACEOF
9252 /* end confdefs.h. */
9253 /* Define getopt to an innocuous variant, in case <limits.h> declares getopt.
9254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9255 #define getopt innocuous_getopt
9257 /* System header to define __stub macros and hopefully few prototypes,
9258 which can conflict with char getopt (); below.
9259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9260 <limits.h> exists even on freestanding compilers. */
9263 # include <limits.h>
9265 # include <assert.h>
9270 /* Override any GCC internal prototype to avoid an error.
9271 Use char because int might match the return type of a GCC
9272 builtin and then its argument prototype would still apply. */
9277 /* The GNU C library defines this for functions which it implements
9278 to always fail with ENOSYS. Some functions are actually named
9279 something starting with __ and the normal name is an alias. */
9280 #if defined __stub_getopt || defined __stub___getopt
9292 rm -f conftest.$ac_objext conftest$ac_exeext
9293 if { (ac_try="$ac_link"
9295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9296 *) ac_try_echo=$ac_try;;
9298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9299 (eval "$ac_link") 2>conftest.er1
9301 grep -v '^ *+' conftest.er1 >conftest.err
9303 cat conftest.err >&5
9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); } && {
9306 test -z "$ac_c_werror_flag" ||
9307 test ! -s conftest.err
9308 } && test -s conftest$ac_exeext &&
9309 $as_test_x conftest$ac_exeext; then
9310 ac_cv_func_getopt=yes
9312 echo "$as_me: failed program was:" >&5
9313 sed 's/^/| /' conftest.$ac_ext >&5
9315 ac_cv_func_getopt=no
9318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9319 conftest$ac_exeext conftest.$ac_ext
9321 { echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
9322 echo "${ECHO_T}$ac_cv_func_getopt" >&6; }
9323 if test $ac_cv_func_getopt = yes; then
9330 if test "${OSTYPE}" = "cygwin" ; then
9333 { echo "$as_me:$LINENO: checking for getopt_long" >&5
9334 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6; }
9335 if test "${ac_cv_func_getopt_long+set}" = set; then
9336 echo $ECHO_N "(cached) $ECHO_C" >&6
9338 cat >conftest.$ac_ext <<_ACEOF
9341 cat confdefs.h >>conftest.$ac_ext
9342 cat >>conftest.$ac_ext <<_ACEOF
9343 /* end confdefs.h. */
9344 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
9345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9346 #define getopt_long innocuous_getopt_long
9348 /* System header to define __stub macros and hopefully few prototypes,
9349 which can conflict with char getopt_long (); below.
9350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9351 <limits.h> exists even on freestanding compilers. */
9354 # include <limits.h>
9356 # include <assert.h>
9361 /* Override any GCC internal prototype to avoid an error.
9362 Use char because int might match the return type of a GCC
9363 builtin and then its argument prototype would still apply. */
9367 char getopt_long ();
9368 /* The GNU C library defines this for functions which it implements
9369 to always fail with ENOSYS. Some functions are actually named
9370 something starting with __ and the normal name is an alias. */
9371 #if defined __stub_getopt_long || defined __stub___getopt_long
9378 return getopt_long ();
9383 rm -f conftest.$ac_objext conftest$ac_exeext
9384 if { (ac_try="$ac_link"
9386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9387 *) ac_try_echo=$ac_try;;
9389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9390 (eval "$ac_link") 2>conftest.er1
9392 grep -v '^ *+' conftest.er1 >conftest.err
9394 cat conftest.err >&5
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); } && {
9397 test -z "$ac_c_werror_flag" ||
9398 test ! -s conftest.err
9399 } && test -s conftest$ac_exeext &&
9400 $as_test_x conftest$ac_exeext; then
9401 ac_cv_func_getopt_long=yes
9403 echo "$as_me: failed program was:" >&5
9404 sed 's/^/| /' conftest.$ac_ext >&5
9406 ac_cv_func_getopt_long=no
9409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9410 conftest$ac_exeext conftest.$ac_ext
9412 { echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
9413 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6; }
9414 if test $ac_cv_func_getopt_long = yes; then
9422 if test "${getopt_long}" = "false" ; then
9423 my_includes="$my_includes -I../getopt"
9425 cat >>confdefs.h <<\_ACEOF
9426 #define HAVE_GETOPT_LONG 1
9429 ctlibs_base="$ctlibs_base -lgetopt"
9430 LDFLAGS="$LDFLAGS -L../getopt"
9435 if test "$GETOPTLONG"="1"; then
9436 INCLUDED_GETOPT_LONG_TRUE=
9437 INCLUDED_GETOPT_LONG_FALSE='#'
9439 INCLUDED_GETOPT_LONG_TRUE='#'
9440 INCLUDED_GETOPT_LONG_FALSE=
9444 if test "${readline}" = "true" ; then
9445 ctlibs_base="$ctlibs_base -lreadline"
9446 if test "${ncurses}" = "true"; then
9447 ctlibs_base="$ctlibs_base -lncurses"
9448 elif test "${curses}" = "true"; then
9449 ctlibs_base="$ctlibs_base -lcurses"
9453 { echo "$as_me:$LINENO: checking debug" >&5
9454 echo $ECHO_N "checking debug... $ECHO_C" >&6; }
9455 # Check whether --enable-debug was given.
9456 if test "${enable_debug+set}" = set; then
9457 enableval=$enable_debug; case "${enableval}" in
9459 { echo "$as_me:$LINENO: result: yes" >&5
9460 echo "${ECHO_T}yes" >&6; }
9463 { echo "$as_me:$LINENO: result: no" >&5
9464 echo "${ECHO_T}no" >&6; }
9466 *) { echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-debug" >&5
9467 echo "${ECHO_T}bad value ${enableval} for --enable-debug" >&6; }
9471 debug=false; { echo "$as_me:$LINENO: result: no" >&5
9472 echo "${ECHO_T}no" >&6; }
9477 if test "$debug" = "true"; then
9486 if test "$datadir" != "" ; then
9487 CPPFLAGS="$CPPFLAGS -DDATADIR=\"\\\"$datadir\\\"\""
9490 if test "$debug" = "true" ; then
9491 CFLAGS="$CFLAGS -g -DDEBUG"
9493 cat >>confdefs.h <<\_ACEOF
9498 CFLAGS="$CFLAGS -O2 -DNDEBUG -fomit-frame-pointer"
9500 cat >>confdefs.h <<\_ACEOF
9506 if test "${pthread}" = "true" ; then
9508 cat >>confdefs.h <<\_ACEOF
9509 #define HAVE_WXTHREADS 1
9514 { echo "$as_me:$LINENO: checking sstream" >&5
9515 echo $ECHO_N "checking sstream... $ECHO_C" >&6; }
9516 if test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
9517 test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ||
9518 test -f /usr/include/gcc/darwin/3.1/g++-v3/sstream ; then
9520 cat >>confdefs.h <<\_ACEOF
9521 #define HAVE_SSTREAM 1
9524 { echo "$as_me:$LINENO: result: yes" >&5
9525 echo "${ECHO_T}yes" >&6; }
9527 { echo "$as_me:$LINENO: result: no" >&5
9528 echo "${ECHO_T}no" >&6; }
9532 CFLAGS="$CFLAGS -Wall"
9533 { echo "$as_me:$LINENO: checking whether to enable verbose warnings" >&5
9534 echo $ECHO_N "checking whether to enable verbose warnings... $ECHO_C" >&6; }
9535 # Check whether --enable-verbose-warnings was given.
9536 if test "${enable_verbose_warnings+set}" = set; then
9537 enableval=$enable_verbose_warnings; case "$enableval" in
9539 { echo "$as_me:$LINENO: result: yes" >&5
9540 echo "${ECHO_T}yes" >&6; }
9541 CFLAGS="$CFLAGS -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wredundant-decls"
9544 { echo "$as_me:$LINENO: result: no" >&5
9545 echo "${ECHO_T}no" >&6; }
9549 { echo "$as_me:$LINENO: result: no" >&5
9550 echo "${ECHO_T}no" >&6; }
9555 { echo "$as_me:$LINENO: checking static executables" >&5
9556 echo $ECHO_N "checking static executables... $ECHO_C" >&6; }
9557 # Check whether --enable-static was given.
9558 if test "${enable_static+set}" = set; then
9559 enableval=$enable_static; case "$enableval" in
9561 { echo "$as_me:$LINENO: result: yes" >&5
9562 echo "${ECHO_T}yes" >&6; }
9563 CFLAGS="$CFLAGS --static"
9566 { echo "$as_me:$LINENO: result: no" >&5
9567 echo "${ECHO_T}no" >&6; }
9571 { echo "$as_me:$LINENO: result: no" >&5
9572 echo "${ECHO_T}no" >&6; }
9578 # Check whether --with-lam was given.
9579 if test "${with_lam+set}" = set; then
9580 withval=$with_lam; if test "$withval" != "no" ; then
9587 if test "$withval" != "no" ; then
9588 if test "$prefix" != "NONE" ; then
9589 trylamdir="$trylamdir $prefix"
9592 { echo "$as_me:$LINENO: checking for LAM MPI installation" >&5
9593 echo $ECHO_N "checking for LAM MPI installation... $ECHO_C" >&6; }
9594 for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
9595 if test -x "$testlamdir/bin/hcp" ; then
9596 if test "$testlamdir" != "/usr"; then
9597 LDFLAGS="$LDFLAGS -L$testlamdir/lib"
9598 CFLAGS="$CFLAGS -I$testlamdir/include"
9600 CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
9601 lamdir="$testlamdir"
9608 { echo "$as_me:$LINENO: result: $lamdir" >&5
9609 echo "${ECHO_T}$lamdir" >&6; }
9611 { echo "$as_me:$LINENO: result: no" >&5
9612 echo "${ECHO_T}no" >&6; }
9617 # Check whether --with-ctn was given.
9618 if test "${with_ctn+set}" = set; then
9619 withval=$with_ctn; if test "$withval" != "no" ; then
9626 if test "$withval" == "no" -o "$withval" == "NONE" ; then
9627 { echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
9628 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6; }
9629 { echo "$as_me:$LINENO: result: disabled" >&5
9630 echo "${ECHO_T}disabled" >&6; }
9632 { echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
9633 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6; }
9634 for testctndir in $tryctndir/lib /usr/local/lib /usr/local/ctn/lib /usr/lib /usr/ctn/lib /usr/lib/ctn /opt/ctn/lib ; do
9635 if test -f "$testctndir/libctn.a" ; then
9636 LDFLAGS="$LDFLAGS -L$testctndir"
9641 for testctndir in $tryctndir/include /usr/local/include /usr/local/ctn/include /usr/include /usr/include/ctn /usr/ctn/include /opt/ctn/include ; do
9642 if test -f "$testctndir/ctn_os.h" ; then
9643 CFLAGS="$CFLAGS -I$testctndir"
9648 if test "$ctnlib" == "true" -a "$ctninclude" == "true" ; then
9651 cat >>confdefs.h <<\_ACEOF
9652 #define HAVE_CTN_DICOM 1
9655 { echo "$as_me:$LINENO: result: yes" >&5
9656 echo "${ECHO_T}yes" >&6; }
9658 { echo "$as_me:$LINENO: result: no" >&5
9659 echo "${ECHO_T}no" >&6; }
9663 { echo "$as_me:$LINENO: checking for CPU specification" >&5
9664 echo $ECHO_N "checking for CPU specification... $ECHO_C" >&6; }
9666 # Check whether --with-mcpu was given.
9667 if test "${with_mcpu+set}" = set; then
9672 if test "$withval" == "no" -o "$withval" == "yes" -o "$withval" == ""; then
9673 { echo "$as_me:$LINENO: result: no" >&5
9674 echo "${ECHO_T}no" >&6; }
9676 { echo "$as_me:$LINENO: result: $withval" >&5
9677 echo "${ECHO_T}$withval" >&6; }
9678 CFLAGS="$CFLAGS -mcpu=$withval"
9681 { echo "$as_me:$LINENO: checking for web access" >&5
9682 echo $ECHO_N "checking for web access... $ECHO_C" >&6; }
9684 # Check whether --with-cgibin-dir was given.
9685 if test "${with_cgibin_dir+set}" = set; then
9686 withval=$with_cgibin_dir; cgibindir=$withval ;
9691 # Check whether --with-cgibin-url was given.
9692 if test "${with_cgibin_url+set}" = set; then
9693 withval=$with_cgibin_url; cgibinurl=$withval ;
9698 # Check whether --with-webdata-dir was given.
9699 if test "${with_webdata_dir+set}" = set; then
9700 withval=$with_webdata_dir; webdatadir=$withval ;
9705 # Check whether --with-webdata-url was given.
9706 if test "${with_webdata_url+set}" = set; then
9707 withval=$with_webdata_url; webdataurl=$withval ;
9712 # Check whether --with-html-dir was given.
9713 if test "${with_html_dir+set}" = set; then
9714 withval=$with_html_dir; html_%dir=$withval ;
9718 if test -n "$cgibindir" -o -n "$cgibinurl" ; then
9719 cgiprograms="ctsim.cgi ctsim.conf"
9723 if test -n "$html_dir" ; then
9724 htmldata=simulate.html
9729 if test -n "$html_dir"; then
9738 if test -n "$cgibindir" -o -n "$cgibinurl" -o -n "$webdatadir" -o -n "$webdataurl" -o -n "$html_dir" ; then
9741 { echo "$as_me:$LINENO: result: yes" >&5
9742 echo "${ECHO_T}yes" >&6; }
9743 if test -z "$cgibindir" ; then
9744 { { echo "$as_me:$LINENO: error: --with-cgibin-dir not set for web access" >&5
9745 echo "$as_me: error: --with-cgibin-dir not set for web access" >&2;}
9746 { (exit 1); exit 1; }; }
9747 elif test -z "$cgibinurl" ; then
9748 { { echo "$as_me:$LINENO: error: --with-cgibin-url not set for web access" >&5
9749 echo "$as_me: error: --with-cgibin-url not set for web access" >&2;}
9750 { (exit 1); exit 1; }; }
9751 elif test -z "$webdatadir" ; then
9752 { { echo "$as_me:$LINENO: error: --with-webdata-dir not set for web access" >&5
9753 echo "$as_me: error: --with-webdata-dir not set for web access" >&2;}
9754 { (exit 1); exit 1; }; }
9755 elif test -z "$webdataurl" ; then
9756 { { echo "$as_me:$LINENO: error: --with-webdata-url not set for web access" >&5
9757 echo "$as_me: error: --with-webdata-url not set for web access" >&2;}
9758 { (exit 1); exit 1; }; }
9759 elif test -z "$html_dir" ; then
9760 { { echo "$as_me:$LINENO: error: --with-html-dir not set for web access" >&5
9761 echo "$as_me: error: --with-html-dir not set for web access" >&2;}
9762 { (exit 1); exit 1; }; }
9765 { echo "$as_me:$LINENO: result: no" >&5
9766 echo "${ECHO_T}no" >&6; }
9771 if test -n "$lamdir"; then
9780 { echo "$as_me:$LINENO: checking for X" >&5
9781 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9784 # Check whether --with-x was given.
9785 if test "${with_x+set}" = set; then
9789 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9790 if test "x$with_x" = xno; then
9791 # The user explicitly disabled X.
9794 case $x_includes,$x_libraries in #(
9795 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9796 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9797 { (exit 1); exit 1; }; };; #(
9798 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9799 echo $ECHO_N "(cached) $ECHO_C" >&6
9801 # One or both of the vars are not set, and there is no cached value.
9802 ac_x_includes=no ac_x_libraries=no
9803 rm -f -r conftest.dir
9804 if mkdir conftest.dir; then
9806 cat >Imakefile <<'_ACEOF'
9808 @echo incroot='${INCROOT}'
9810 @echo usrlibdir='${USRLIBDIR}'
9812 @echo libdir='${LIBDIR}'
9814 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9815 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9816 for ac_var in incroot usrlibdir libdir; do
9817 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9819 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9820 for ac_extension in a so sl; do
9821 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9822 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9823 ac_im_usrlibdir=$ac_im_libdir; break
9826 # Screen out bogus values from the imake configuration. They are
9827 # bogus both because they are the default anyway, and because
9828 # using them would break gcc on systems where it needs fixed includes.
9829 case $ac_im_incroot in
9830 /usr/include) ac_x_includes= ;;
9831 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9833 case $ac_im_usrlibdir in
9835 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9839 rm -f -r conftest.dir
9842 # Standard set of common directories for X headers.
9843 # Check X11 before X11Rn because it is often a symlink to the current release.
9855 /usr/local/X11/include
9856 /usr/local/X11R6/include
9857 /usr/local/X11R5/include
9858 /usr/local/X11R4/include
9860 /usr/local/include/X11
9861 /usr/local/include/X11R6
9862 /usr/local/include/X11R5
9863 /usr/local/include/X11R4
9867 /usr/XFree86/include/X11
9871 /usr/unsupported/include
9873 /usr/local/x11r5/include
9874 /usr/lpp/Xamples/include
9876 /usr/openwin/include
9877 /usr/openwin/share/include'
9879 if test "$ac_x_includes" = no; then
9880 # Guess where to find include files, by looking for Xlib.h.
9881 # First, try using that file with no special directory specified.
9882 cat >conftest.$ac_ext <<_ACEOF
9885 cat confdefs.h >>conftest.$ac_ext
9886 cat >>conftest.$ac_ext <<_ACEOF
9887 /* end confdefs.h. */
9888 #include <X11/Xlib.h>
9890 if { (ac_try="$ac_cpp conftest.$ac_ext"
9892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9893 *) ac_try_echo=$ac_try;;
9895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9898 grep -v '^ *+' conftest.er1 >conftest.err
9900 cat conftest.err >&5
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); } >/dev/null && {
9903 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9904 test ! -s conftest.err
9906 # We can compile using X headers with no special include directory.
9909 echo "$as_me: failed program was:" >&5
9910 sed 's/^/| /' conftest.$ac_ext >&5
9912 for ac_dir in $ac_x_header_dirs; do
9913 if test -r "$ac_dir/X11/Xlib.h"; then
9914 ac_x_includes=$ac_dir
9920 rm -f conftest.err conftest.$ac_ext
9921 fi # $ac_x_includes = no
9923 if test "$ac_x_libraries" = no; then
9924 # Check for the libraries.
9925 # See if we find them without any special options.
9926 # Don't add to $LIBS permanently.
9929 cat >conftest.$ac_ext <<_ACEOF
9932 cat confdefs.h >>conftest.$ac_ext
9933 cat >>conftest.$ac_ext <<_ACEOF
9934 /* end confdefs.h. */
9935 #include <X11/Xlib.h>
9944 rm -f conftest.$ac_objext conftest$ac_exeext
9945 if { (ac_try="$ac_link"
9947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9948 *) ac_try_echo=$ac_try;;
9950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9951 (eval "$ac_link") 2>conftest.er1
9953 grep -v '^ *+' conftest.er1 >conftest.err
9955 cat conftest.err >&5
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); } && {
9958 test -z "$ac_c_werror_flag" ||
9959 test ! -s conftest.err
9960 } && test -s conftest$ac_exeext &&
9961 $as_test_x conftest$ac_exeext; then
9963 # We can link X programs with no special library path.
9966 echo "$as_me: failed program was:" >&5
9967 sed 's/^/| /' conftest.$ac_ext >&5
9970 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9972 # Don't even attempt the hair of trying to link an X program!
9973 for ac_extension in a so sl; do
9974 if test -r "$ac_dir/libX11.$ac_extension"; then
9975 ac_x_libraries=$ac_dir
9982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9983 conftest$ac_exeext conftest.$ac_ext
9984 fi # $ac_x_libraries = no
9986 case $ac_x_includes,$ac_x_libraries in #(
9988 # Didn't find X, or a directory has "'" in its name.
9989 ac_cv_have_x="have_x=no";; #(
9991 # Record where we found X for the cache.
9992 ac_cv_have_x="have_x=yes\
9993 ac_x_includes='$ac_x_includes'\
9994 ac_x_libraries='$ac_x_libraries'"
10000 eval "$ac_cv_have_x"
10003 if test "$have_x" != yes; then
10004 { echo "$as_me:$LINENO: result: $have_x" >&5
10005 echo "${ECHO_T}$have_x" >&6; }
10008 # If each of the values was on the command line, it overrides each guess.
10009 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10010 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10011 # Update the cache value to reflect the command line values.
10012 ac_cv_have_x="have_x=yes\
10013 ac_x_includes='$x_includes'\
10014 ac_x_libraries='$x_libraries'"
10015 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
10016 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
10019 if test "$no_x" = yes; then
10020 # Not all programs may use this symbol, but it does not hurt to define it.
10022 cat >>confdefs.h <<\_ACEOF
10023 #define X_DISPLAY_MISSING 1
10026 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
10028 if test -n "$x_includes"; then
10029 X_CFLAGS="$X_CFLAGS -I$x_includes"
10032 # It would also be nice to do this for all -L options, not just this one.
10033 if test -n "$x_libraries"; then
10034 X_LIBS="$X_LIBS -L$x_libraries"
10035 # For Solaris; some versions of Sun CC require a space after -R and
10036 # others require no space. Words are not sufficient . . . .
10037 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
10038 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
10039 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
10040 ac_xsave_c_werror_flag=$ac_c_werror_flag
10041 ac_c_werror_flag=yes
10042 cat >conftest.$ac_ext <<_ACEOF
10045 cat confdefs.h >>conftest.$ac_ext
10046 cat >>conftest.$ac_ext <<_ACEOF
10047 /* end confdefs.h. */
10057 rm -f conftest.$ac_objext conftest$ac_exeext
10058 if { (ac_try="$ac_link"
10059 case "(($ac_try" in
10060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10061 *) ac_try_echo=$ac_try;;
10063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10064 (eval "$ac_link") 2>conftest.er1
10066 grep -v '^ *+' conftest.er1 >conftest.err
10068 cat conftest.err >&5
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); } && {
10071 test -z "$ac_c_werror_flag" ||
10072 test ! -s conftest.err
10073 } && test -s conftest$ac_exeext &&
10074 $as_test_x conftest$ac_exeext; then
10075 { echo "$as_me:$LINENO: result: no" >&5
10076 echo "${ECHO_T}no" >&6; }
10077 X_LIBS="$X_LIBS -R$x_libraries"
10079 echo "$as_me: failed program was:" >&5
10080 sed 's/^/| /' conftest.$ac_ext >&5
10082 LIBS="$ac_xsave_LIBS -R $x_libraries"
10083 cat >conftest.$ac_ext <<_ACEOF
10086 cat confdefs.h >>conftest.$ac_ext
10087 cat >>conftest.$ac_ext <<_ACEOF
10088 /* end confdefs.h. */
10098 rm -f conftest.$ac_objext conftest$ac_exeext
10099 if { (ac_try="$ac_link"
10100 case "(($ac_try" in
10101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102 *) ac_try_echo=$ac_try;;
10104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105 (eval "$ac_link") 2>conftest.er1
10107 grep -v '^ *+' conftest.er1 >conftest.err
10109 cat conftest.err >&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); } && {
10112 test -z "$ac_c_werror_flag" ||
10113 test ! -s conftest.err
10114 } && test -s conftest$ac_exeext &&
10115 $as_test_x conftest$ac_exeext; then
10116 { echo "$as_me:$LINENO: result: yes" >&5
10117 echo "${ECHO_T}yes" >&6; }
10118 X_LIBS="$X_LIBS -R $x_libraries"
10120 echo "$as_me: failed program was:" >&5
10121 sed 's/^/| /' conftest.$ac_ext >&5
10123 { echo "$as_me:$LINENO: result: neither works" >&5
10124 echo "${ECHO_T}neither works" >&6; }
10127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10128 conftest$ac_exeext conftest.$ac_ext
10131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10132 conftest$ac_exeext conftest.$ac_ext
10133 ac_c_werror_flag=$ac_xsave_c_werror_flag
10134 LIBS=$ac_xsave_LIBS
10137 # Check for system-dependent libraries X programs must link with.
10138 # Do this before checking for the system-independent R6 libraries
10139 # (-lICE), since we may need -lsocket or whatever for X linking.
10141 if test "$ISC" = yes; then
10142 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
10144 # Martyn Johnson says this is needed for Ultrix, if the X
10145 # libraries were built with DECnet support. And Karl Berry says
10146 # the Alpha needs dnet_stub (dnet does not exist).
10147 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
10148 cat >conftest.$ac_ext <<_ACEOF
10151 cat confdefs.h >>conftest.$ac_ext
10152 cat >>conftest.$ac_ext <<_ACEOF
10153 /* end confdefs.h. */
10155 /* Override any GCC internal prototype to avoid an error.
10156 Use char because int might match the return type of a GCC
10157 builtin and then its argument prototype would still apply. */
10161 char XOpenDisplay ();
10165 return XOpenDisplay ();
10170 rm -f conftest.$ac_objext conftest$ac_exeext
10171 if { (ac_try="$ac_link"
10172 case "(($ac_try" in
10173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10174 *) ac_try_echo=$ac_try;;
10176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10177 (eval "$ac_link") 2>conftest.er1
10179 grep -v '^ *+' conftest.er1 >conftest.err
10181 cat conftest.err >&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); } && {
10184 test -z "$ac_c_werror_flag" ||
10185 test ! -s conftest.err
10186 } && test -s conftest$ac_exeext &&
10187 $as_test_x conftest$ac_exeext; then
10190 echo "$as_me: failed program was:" >&5
10191 sed 's/^/| /' conftest.$ac_ext >&5
10193 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10194 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10195 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10196 echo $ECHO_N "(cached) $ECHO_C" >&6
10198 ac_check_lib_save_LIBS=$LIBS
10199 LIBS="-ldnet $LIBS"
10200 cat >conftest.$ac_ext <<_ACEOF
10203 cat confdefs.h >>conftest.$ac_ext
10204 cat >>conftest.$ac_ext <<_ACEOF
10205 /* end confdefs.h. */
10207 /* Override any GCC internal prototype to avoid an error.
10208 Use char because int might match the return type of a GCC
10209 builtin and then its argument prototype would still apply. */
10217 return dnet_ntoa ();
10222 rm -f conftest.$ac_objext conftest$ac_exeext
10223 if { (ac_try="$ac_link"
10224 case "(($ac_try" in
10225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10226 *) ac_try_echo=$ac_try;;
10228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10229 (eval "$ac_link") 2>conftest.er1
10231 grep -v '^ *+' conftest.er1 >conftest.err
10233 cat conftest.err >&5
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); } && {
10236 test -z "$ac_c_werror_flag" ||
10237 test ! -s conftest.err
10238 } && test -s conftest$ac_exeext &&
10239 $as_test_x conftest$ac_exeext; then
10240 ac_cv_lib_dnet_dnet_ntoa=yes
10242 echo "$as_me: failed program was:" >&5
10243 sed 's/^/| /' conftest.$ac_ext >&5
10245 ac_cv_lib_dnet_dnet_ntoa=no
10248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10249 conftest$ac_exeext conftest.$ac_ext
10250 LIBS=$ac_check_lib_save_LIBS
10252 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10253 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10254 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10255 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
10258 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
10259 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
10260 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
10261 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
10262 echo $ECHO_N "(cached) $ECHO_C" >&6
10264 ac_check_lib_save_LIBS=$LIBS
10265 LIBS="-ldnet_stub $LIBS"
10266 cat >conftest.$ac_ext <<_ACEOF
10269 cat confdefs.h >>conftest.$ac_ext
10270 cat >>conftest.$ac_ext <<_ACEOF
10271 /* end confdefs.h. */
10273 /* Override any GCC internal prototype to avoid an error.
10274 Use char because int might match the return type of a GCC
10275 builtin and then its argument prototype would still apply. */
10283 return dnet_ntoa ();
10288 rm -f conftest.$ac_objext conftest$ac_exeext
10289 if { (ac_try="$ac_link"
10290 case "(($ac_try" in
10291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10292 *) ac_try_echo=$ac_try;;
10294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10295 (eval "$ac_link") 2>conftest.er1
10297 grep -v '^ *+' conftest.er1 >conftest.err
10299 cat conftest.err >&5
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); } && {
10302 test -z "$ac_c_werror_flag" ||
10303 test ! -s conftest.err
10304 } && test -s conftest$ac_exeext &&
10305 $as_test_x conftest$ac_exeext; then
10306 ac_cv_lib_dnet_stub_dnet_ntoa=yes
10308 echo "$as_me: failed program was:" >&5
10309 sed 's/^/| /' conftest.$ac_ext >&5
10311 ac_cv_lib_dnet_stub_dnet_ntoa=no
10314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10315 conftest$ac_exeext conftest.$ac_ext
10316 LIBS=$ac_check_lib_save_LIBS
10318 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
10319 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
10320 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
10321 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10328 conftest$ac_exeext conftest.$ac_ext
10329 LIBS="$ac_xsave_LIBS"
10331 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10332 # to get the SysV transport functions.
10333 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
10335 # The nsl library prevents programs from opening the X display
10336 # on Irix 5.2, according to T.E. Dickey.
10337 # The functions gethostbyname, getservbyname, and inet_addr are
10338 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
10339 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
10340 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
10341 if test "${ac_cv_func_gethostbyname+set}" = set; then
10342 echo $ECHO_N "(cached) $ECHO_C" >&6
10344 cat >conftest.$ac_ext <<_ACEOF
10347 cat confdefs.h >>conftest.$ac_ext
10348 cat >>conftest.$ac_ext <<_ACEOF
10349 /* end confdefs.h. */
10350 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
10351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10352 #define gethostbyname innocuous_gethostbyname
10354 /* System header to define __stub macros and hopefully few prototypes,
10355 which can conflict with char gethostbyname (); below.
10356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10357 <limits.h> exists even on freestanding compilers. */
10360 # include <limits.h>
10362 # include <assert.h>
10365 #undef gethostbyname
10367 /* Override any GCC internal prototype to avoid an error.
10368 Use char because int might match the return type of a GCC
10369 builtin and then its argument prototype would still apply. */
10373 char gethostbyname ();
10374 /* The GNU C library defines this for functions which it implements
10375 to always fail with ENOSYS. Some functions are actually named
10376 something starting with __ and the normal name is an alias. */
10377 #if defined __stub_gethostbyname || defined __stub___gethostbyname
10384 return gethostbyname ();
10389 rm -f conftest.$ac_objext conftest$ac_exeext
10390 if { (ac_try="$ac_link"
10391 case "(($ac_try" in
10392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10393 *) ac_try_echo=$ac_try;;
10395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10396 (eval "$ac_link") 2>conftest.er1
10398 grep -v '^ *+' conftest.er1 >conftest.err
10400 cat conftest.err >&5
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); } && {
10403 test -z "$ac_c_werror_flag" ||
10404 test ! -s conftest.err
10405 } && test -s conftest$ac_exeext &&
10406 $as_test_x conftest$ac_exeext; then
10407 ac_cv_func_gethostbyname=yes
10409 echo "$as_me: failed program was:" >&5
10410 sed 's/^/| /' conftest.$ac_ext >&5
10412 ac_cv_func_gethostbyname=no
10415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10416 conftest$ac_exeext conftest.$ac_ext
10418 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
10419 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
10421 if test $ac_cv_func_gethostbyname = no; then
10422 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
10423 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
10424 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
10425 echo $ECHO_N "(cached) $ECHO_C" >&6
10427 ac_check_lib_save_LIBS=$LIBS
10429 cat >conftest.$ac_ext <<_ACEOF
10432 cat confdefs.h >>conftest.$ac_ext
10433 cat >>conftest.$ac_ext <<_ACEOF
10434 /* end confdefs.h. */
10436 /* Override any GCC internal prototype to avoid an error.
10437 Use char because int might match the return type of a GCC
10438 builtin and then its argument prototype would still apply. */
10442 char gethostbyname ();
10446 return gethostbyname ();
10451 rm -f conftest.$ac_objext conftest$ac_exeext
10452 if { (ac_try="$ac_link"
10453 case "(($ac_try" in
10454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10455 *) ac_try_echo=$ac_try;;
10457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10458 (eval "$ac_link") 2>conftest.er1
10460 grep -v '^ *+' conftest.er1 >conftest.err
10462 cat conftest.err >&5
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); } && {
10465 test -z "$ac_c_werror_flag" ||
10466 test ! -s conftest.err
10467 } && test -s conftest$ac_exeext &&
10468 $as_test_x conftest$ac_exeext; then
10469 ac_cv_lib_nsl_gethostbyname=yes
10471 echo "$as_me: failed program was:" >&5
10472 sed 's/^/| /' conftest.$ac_ext >&5
10474 ac_cv_lib_nsl_gethostbyname=no
10477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10478 conftest$ac_exeext conftest.$ac_ext
10479 LIBS=$ac_check_lib_save_LIBS
10481 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
10482 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
10483 if test $ac_cv_lib_nsl_gethostbyname = yes; then
10484 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10487 if test $ac_cv_lib_nsl_gethostbyname = no; then
10488 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
10489 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
10490 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
10491 echo $ECHO_N "(cached) $ECHO_C" >&6
10493 ac_check_lib_save_LIBS=$LIBS
10495 cat >conftest.$ac_ext <<_ACEOF
10498 cat confdefs.h >>conftest.$ac_ext
10499 cat >>conftest.$ac_ext <<_ACEOF
10500 /* end confdefs.h. */
10502 /* Override any GCC internal prototype to avoid an error.
10503 Use char because int might match the return type of a GCC
10504 builtin and then its argument prototype would still apply. */
10508 char gethostbyname ();
10512 return gethostbyname ();
10517 rm -f conftest.$ac_objext conftest$ac_exeext
10518 if { (ac_try="$ac_link"
10519 case "(($ac_try" in
10520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10521 *) ac_try_echo=$ac_try;;
10523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10524 (eval "$ac_link") 2>conftest.er1
10526 grep -v '^ *+' conftest.er1 >conftest.err
10528 cat conftest.err >&5
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); } && {
10531 test -z "$ac_c_werror_flag" ||
10532 test ! -s conftest.err
10533 } && test -s conftest$ac_exeext &&
10534 $as_test_x conftest$ac_exeext; then
10535 ac_cv_lib_bsd_gethostbyname=yes
10537 echo "$as_me: failed program was:" >&5
10538 sed 's/^/| /' conftest.$ac_ext >&5
10540 ac_cv_lib_bsd_gethostbyname=no
10543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10544 conftest$ac_exeext conftest.$ac_ext
10545 LIBS=$ac_check_lib_save_LIBS
10547 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
10548 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
10549 if test $ac_cv_lib_bsd_gethostbyname = yes; then
10550 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
10556 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10557 # socket/setsockopt and other routines are undefined under SCO ODT
10558 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
10559 # on later versions), says Simon Leinen: it contains gethostby*
10560 # variants that don't use the name server (or something). -lsocket
10561 # must be given before -lnsl if both are needed. We assume that
10562 # if connect needs -lnsl, so does gethostbyname.
10563 { echo "$as_me:$LINENO: checking for connect" >&5
10564 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
10565 if test "${ac_cv_func_connect+set}" = set; then
10566 echo $ECHO_N "(cached) $ECHO_C" >&6
10568 cat >conftest.$ac_ext <<_ACEOF
10571 cat confdefs.h >>conftest.$ac_ext
10572 cat >>conftest.$ac_ext <<_ACEOF
10573 /* end confdefs.h. */
10574 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
10575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10576 #define connect innocuous_connect
10578 /* System header to define __stub macros and hopefully few prototypes,
10579 which can conflict with char connect (); below.
10580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10581 <limits.h> exists even on freestanding compilers. */
10584 # include <limits.h>
10586 # include <assert.h>
10591 /* Override any GCC internal prototype to avoid an error.
10592 Use char because int might match the return type of a GCC
10593 builtin and then its argument prototype would still apply. */
10598 /* The GNU C library defines this for functions which it implements
10599 to always fail with ENOSYS. Some functions are actually named
10600 something starting with __ and the normal name is an alias. */
10601 #if defined __stub_connect || defined __stub___connect
10613 rm -f conftest.$ac_objext conftest$ac_exeext
10614 if { (ac_try="$ac_link"
10615 case "(($ac_try" in
10616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10617 *) ac_try_echo=$ac_try;;
10619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10620 (eval "$ac_link") 2>conftest.er1
10622 grep -v '^ *+' conftest.er1 >conftest.err
10624 cat conftest.err >&5
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); } && {
10627 test -z "$ac_c_werror_flag" ||
10628 test ! -s conftest.err
10629 } && test -s conftest$ac_exeext &&
10630 $as_test_x conftest$ac_exeext; then
10631 ac_cv_func_connect=yes
10633 echo "$as_me: failed program was:" >&5
10634 sed 's/^/| /' conftest.$ac_ext >&5
10636 ac_cv_func_connect=no
10639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10640 conftest$ac_exeext conftest.$ac_ext
10642 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10643 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
10645 if test $ac_cv_func_connect = no; then
10646 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10647 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
10648 if test "${ac_cv_lib_socket_connect+set}" = set; then
10649 echo $ECHO_N "(cached) $ECHO_C" >&6
10651 ac_check_lib_save_LIBS=$LIBS
10652 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10653 cat >conftest.$ac_ext <<_ACEOF
10656 cat confdefs.h >>conftest.$ac_ext
10657 cat >>conftest.$ac_ext <<_ACEOF
10658 /* end confdefs.h. */
10660 /* Override any GCC internal prototype to avoid an error.
10661 Use char because int might match the return type of a GCC
10662 builtin and then its argument prototype would still apply. */
10675 rm -f conftest.$ac_objext conftest$ac_exeext
10676 if { (ac_try="$ac_link"
10677 case "(($ac_try" in
10678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10679 *) ac_try_echo=$ac_try;;
10681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10682 (eval "$ac_link") 2>conftest.er1
10684 grep -v '^ *+' conftest.er1 >conftest.err
10686 cat conftest.err >&5
10687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688 (exit $ac_status); } && {
10689 test -z "$ac_c_werror_flag" ||
10690 test ! -s conftest.err
10691 } && test -s conftest$ac_exeext &&
10692 $as_test_x conftest$ac_exeext; then
10693 ac_cv_lib_socket_connect=yes
10695 echo "$as_me: failed program was:" >&5
10696 sed 's/^/| /' conftest.$ac_ext >&5
10698 ac_cv_lib_socket_connect=no
10701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10702 conftest$ac_exeext conftest.$ac_ext
10703 LIBS=$ac_check_lib_save_LIBS
10705 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10706 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
10707 if test $ac_cv_lib_socket_connect = yes; then
10708 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10713 # Guillermo Gomez says -lposix is necessary on A/UX.
10714 { echo "$as_me:$LINENO: checking for remove" >&5
10715 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
10716 if test "${ac_cv_func_remove+set}" = set; then
10717 echo $ECHO_N "(cached) $ECHO_C" >&6
10719 cat >conftest.$ac_ext <<_ACEOF
10722 cat confdefs.h >>conftest.$ac_ext
10723 cat >>conftest.$ac_ext <<_ACEOF
10724 /* end confdefs.h. */
10725 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
10726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10727 #define remove innocuous_remove
10729 /* System header to define __stub macros and hopefully few prototypes,
10730 which can conflict with char remove (); below.
10731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10732 <limits.h> exists even on freestanding compilers. */
10735 # include <limits.h>
10737 # include <assert.h>
10742 /* Override any GCC internal prototype to avoid an error.
10743 Use char because int might match the return type of a GCC
10744 builtin and then its argument prototype would still apply. */
10749 /* The GNU C library defines this for functions which it implements
10750 to always fail with ENOSYS. Some functions are actually named
10751 something starting with __ and the normal name is an alias. */
10752 #if defined __stub_remove || defined __stub___remove
10764 rm -f conftest.$ac_objext conftest$ac_exeext
10765 if { (ac_try="$ac_link"
10766 case "(($ac_try" in
10767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10768 *) ac_try_echo=$ac_try;;
10770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10771 (eval "$ac_link") 2>conftest.er1
10773 grep -v '^ *+' conftest.er1 >conftest.err
10775 cat conftest.err >&5
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); } && {
10778 test -z "$ac_c_werror_flag" ||
10779 test ! -s conftest.err
10780 } && test -s conftest$ac_exeext &&
10781 $as_test_x conftest$ac_exeext; then
10782 ac_cv_func_remove=yes
10784 echo "$as_me: failed program was:" >&5
10785 sed 's/^/| /' conftest.$ac_ext >&5
10787 ac_cv_func_remove=no
10790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10791 conftest$ac_exeext conftest.$ac_ext
10793 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10794 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
10796 if test $ac_cv_func_remove = no; then
10797 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10798 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
10799 if test "${ac_cv_lib_posix_remove+set}" = set; then
10800 echo $ECHO_N "(cached) $ECHO_C" >&6
10802 ac_check_lib_save_LIBS=$LIBS
10803 LIBS="-lposix $LIBS"
10804 cat >conftest.$ac_ext <<_ACEOF
10807 cat confdefs.h >>conftest.$ac_ext
10808 cat >>conftest.$ac_ext <<_ACEOF
10809 /* end confdefs.h. */
10811 /* Override any GCC internal prototype to avoid an error.
10812 Use char because int might match the return type of a GCC
10813 builtin and then its argument prototype would still apply. */
10826 rm -f conftest.$ac_objext conftest$ac_exeext
10827 if { (ac_try="$ac_link"
10828 case "(($ac_try" in
10829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10830 *) ac_try_echo=$ac_try;;
10832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10833 (eval "$ac_link") 2>conftest.er1
10835 grep -v '^ *+' conftest.er1 >conftest.err
10837 cat conftest.err >&5
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); } && {
10840 test -z "$ac_c_werror_flag" ||
10841 test ! -s conftest.err
10842 } && test -s conftest$ac_exeext &&
10843 $as_test_x conftest$ac_exeext; then
10844 ac_cv_lib_posix_remove=yes
10846 echo "$as_me: failed program was:" >&5
10847 sed 's/^/| /' conftest.$ac_ext >&5
10849 ac_cv_lib_posix_remove=no
10852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10853 conftest$ac_exeext conftest.$ac_ext
10854 LIBS=$ac_check_lib_save_LIBS
10856 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10857 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
10858 if test $ac_cv_lib_posix_remove = yes; then
10859 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10864 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10865 { echo "$as_me:$LINENO: checking for shmat" >&5
10866 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
10867 if test "${ac_cv_func_shmat+set}" = set; then
10868 echo $ECHO_N "(cached) $ECHO_C" >&6
10870 cat >conftest.$ac_ext <<_ACEOF
10873 cat confdefs.h >>conftest.$ac_ext
10874 cat >>conftest.$ac_ext <<_ACEOF
10875 /* end confdefs.h. */
10876 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
10877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10878 #define shmat innocuous_shmat
10880 /* System header to define __stub macros and hopefully few prototypes,
10881 which can conflict with char shmat (); below.
10882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10883 <limits.h> exists even on freestanding compilers. */
10886 # include <limits.h>
10888 # include <assert.h>
10893 /* Override any GCC internal prototype to avoid an error.
10894 Use char because int might match the return type of a GCC
10895 builtin and then its argument prototype would still apply. */
10900 /* The GNU C library defines this for functions which it implements
10901 to always fail with ENOSYS. Some functions are actually named
10902 something starting with __ and the normal name is an alias. */
10903 #if defined __stub_shmat || defined __stub___shmat
10915 rm -f conftest.$ac_objext conftest$ac_exeext
10916 if { (ac_try="$ac_link"
10917 case "(($ac_try" in
10918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10919 *) ac_try_echo=$ac_try;;
10921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10922 (eval "$ac_link") 2>conftest.er1
10924 grep -v '^ *+' conftest.er1 >conftest.err
10926 cat conftest.err >&5
10927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); } && {
10929 test -z "$ac_c_werror_flag" ||
10930 test ! -s conftest.err
10931 } && test -s conftest$ac_exeext &&
10932 $as_test_x conftest$ac_exeext; then
10933 ac_cv_func_shmat=yes
10935 echo "$as_me: failed program was:" >&5
10936 sed 's/^/| /' conftest.$ac_ext >&5
10938 ac_cv_func_shmat=no
10941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10942 conftest$ac_exeext conftest.$ac_ext
10944 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10945 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
10947 if test $ac_cv_func_shmat = no; then
10948 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10949 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
10950 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10951 echo $ECHO_N "(cached) $ECHO_C" >&6
10953 ac_check_lib_save_LIBS=$LIBS
10955 cat >conftest.$ac_ext <<_ACEOF
10958 cat confdefs.h >>conftest.$ac_ext
10959 cat >>conftest.$ac_ext <<_ACEOF
10960 /* end confdefs.h. */
10962 /* Override any GCC internal prototype to avoid an error.
10963 Use char because int might match the return type of a GCC
10964 builtin and then its argument prototype would still apply. */
10977 rm -f conftest.$ac_objext conftest$ac_exeext
10978 if { (ac_try="$ac_link"
10979 case "(($ac_try" in
10980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10981 *) ac_try_echo=$ac_try;;
10983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10984 (eval "$ac_link") 2>conftest.er1
10986 grep -v '^ *+' conftest.er1 >conftest.err
10988 cat conftest.err >&5
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); } && {
10991 test -z "$ac_c_werror_flag" ||
10992 test ! -s conftest.err
10993 } && test -s conftest$ac_exeext &&
10994 $as_test_x conftest$ac_exeext; then
10995 ac_cv_lib_ipc_shmat=yes
10997 echo "$as_me: failed program was:" >&5
10998 sed 's/^/| /' conftest.$ac_ext >&5
11000 ac_cv_lib_ipc_shmat=no
11003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11004 conftest$ac_exeext conftest.$ac_ext
11005 LIBS=$ac_check_lib_save_LIBS
11007 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
11008 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
11009 if test $ac_cv_lib_ipc_shmat = yes; then
11010 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
11016 # Check for libraries that X11R6 Xt/Xaw programs need.
11017 ac_save_LDFLAGS=$LDFLAGS
11018 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
11019 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
11020 # check for ICE first), but we must link in the order -lSM -lICE or
11021 # we get undefined symbols. So assume we have SM if we have ICE.
11022 # These have to be linked with before -lX11, unlike the other
11023 # libraries we check for below, so use a different variable.
11024 # John Interrante, Karl Berry
11025 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
11026 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
11027 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
11028 echo $ECHO_N "(cached) $ECHO_C" >&6
11030 ac_check_lib_save_LIBS=$LIBS
11031 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
11032 cat >conftest.$ac_ext <<_ACEOF
11035 cat confdefs.h >>conftest.$ac_ext
11036 cat >>conftest.$ac_ext <<_ACEOF
11037 /* end confdefs.h. */
11039 /* Override any GCC internal prototype to avoid an error.
11040 Use char because int might match the return type of a GCC
11041 builtin and then its argument prototype would still apply. */
11045 char IceConnectionNumber ();
11049 return IceConnectionNumber ();
11054 rm -f conftest.$ac_objext conftest$ac_exeext
11055 if { (ac_try="$ac_link"
11056 case "(($ac_try" in
11057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11058 *) ac_try_echo=$ac_try;;
11060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11061 (eval "$ac_link") 2>conftest.er1
11063 grep -v '^ *+' conftest.er1 >conftest.err
11065 cat conftest.err >&5
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); } && {
11068 test -z "$ac_c_werror_flag" ||
11069 test ! -s conftest.err
11070 } && test -s conftest$ac_exeext &&
11071 $as_test_x conftest$ac_exeext; then
11072 ac_cv_lib_ICE_IceConnectionNumber=yes
11074 echo "$as_me: failed program was:" >&5
11075 sed 's/^/| /' conftest.$ac_ext >&5
11077 ac_cv_lib_ICE_IceConnectionNumber=no
11080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11081 conftest$ac_exeext conftest.$ac_ext
11082 LIBS=$ac_check_lib_save_LIBS
11084 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
11085 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
11086 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
11087 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
11090 LDFLAGS=$ac_save_LDFLAGS
11103 if test "x$with_x" = "xno"; then
11112 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
11115 LDFLAGS="$LDFLAGS -L/usr/local/lib"
11117 { echo "$as_me:$LINENO: checking for X" >&5
11118 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
11119 if test "$with_x" != "no" && test "$wxwin" = "true"; then
11121 cat >>confdefs.h <<\_ACEOF
11125 LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib -L/usr/X11R6/lib64"
11126 my_includes="$my_includes -I/usr/X11R6/include"
11127 ctlib_graphics="$ctlibs_base -lctgraphics"
11128 { echo "$as_me:$LINENO: result: yes" >&5
11129 echo "${ECHO_T}yes" >&6; }
11130 ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
11131 if test "$libgl" = "true" ; then
11132 # Removed "-lglut" for Mac OS X compilation
11133 ctlib_graphics="$ctlib_graphics -lGL -lGLU"
11134 if test "$wxwin" = "true" ; then
11135 if "$wx_gtk" ; then
11136 ctlib_graphics="$ctlib_graphics `wx-config --libs` -lwx_gtk_gl-2.4 `gtk-config --libs` `glib-config --libs glib gmodule gthread`"
11137 elif "$wx_mac" ; then
11138 ctlib_graphics="$ctlib_graphics -lwx_mac_gl-2.4"
11142 if test "$wxwin" = "true" ; then
11144 cat >>confdefs.h <<\_ACEOF
11150 { echo "$as_me:$LINENO: result: no" >&5
11151 echo "${ECHO_T}no" >&6; }
11156 if test "$wxwin" = "true"; then
11165 if test "$png" = "true" ; then
11166 ctlibs_tools="$ctlibs_tools -lpng"
11168 if test "$zlib" = "true" ; then
11169 ctlibs_tools="$ctlibs_tools -lz"
11171 if test "$fftw" = "true" ; then
11172 ctlibs_tools="$ctlibs_tools -lfftw3"
11174 if test "$ctn" = "true"; then
11175 ctlibs_tools="$ctlibs_tools -lctn"
11178 { echo "$as_me:$LINENO: checking for main in -ldmallocxx" >&5
11179 echo $ECHO_N "checking for main in -ldmallocxx... $ECHO_C" >&6; }
11180 if test "${ac_cv_lib_dmallocxx_main+set}" = set; then
11181 echo $ECHO_N "(cached) $ECHO_C" >&6
11183 ac_check_lib_save_LIBS=$LIBS
11184 LIBS="-ldmallocxx $LIBS"
11185 cat >conftest.$ac_ext <<_ACEOF
11188 cat confdefs.h >>conftest.$ac_ext
11189 cat >>conftest.$ac_ext <<_ACEOF
11190 /* end confdefs.h. */
11201 rm -f conftest.$ac_objext conftest$ac_exeext
11202 if { (ac_try="$ac_link"
11203 case "(($ac_try" in
11204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11205 *) ac_try_echo=$ac_try;;
11207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11208 (eval "$ac_link") 2>conftest.er1
11210 grep -v '^ *+' conftest.er1 >conftest.err
11212 cat conftest.err >&5
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); } && {
11215 test -z "$ac_c_werror_flag" ||
11216 test ! -s conftest.err
11217 } && test -s conftest$ac_exeext &&
11218 $as_test_x conftest$ac_exeext; then
11219 ac_cv_lib_dmallocxx_main=yes
11221 echo "$as_me: failed program was:" >&5
11222 sed 's/^/| /' conftest.$ac_ext >&5
11224 ac_cv_lib_dmallocxx_main=no
11227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11228 conftest$ac_exeext conftest.$ac_ext
11229 LIBS=$ac_check_lib_save_LIBS
11231 { echo "$as_me:$LINENO: result: $ac_cv_lib_dmallocxx_main" >&5
11232 echo "${ECHO_T}$ac_cv_lib_dmallocxx_main" >&6; }
11233 if test $ac_cv_lib_dmallocxx_main = yes; then
11239 { echo "$as_me:$LINENO: checking for enable-dmalloc" >&5
11240 echo $ECHO_N "checking for enable-dmalloc... $ECHO_C" >&6; }
11241 # Check whether --enable-dmalloc was given.
11242 if test "${enable_dmalloc+set}" = set; then
11243 enableval=$enable_dmalloc; case "${enableval}" in
11244 yes) usedmalloc=true
11245 { echo "$as_me:$LINENO: result: yes" >&5
11246 echo "${ECHO_T}yes" >&6; }
11248 no) usedmalloc=false
11249 { echo "$as_me:$LINENO: result: no" >&5
11250 echo "${ECHO_T}no" >&6; }
11252 *) { echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-dmalloc" >&5
11253 echo "${ECHO_T}bad value ${enableval} for --enable-dmalloc" >&6; }
11257 usedmalloc=false; { echo "$as_me:$LINENO: result: no" >&5
11258 echo "${ECHO_T}no" >&6; }
11262 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
11263 ctlibs_tools="$ctlibs_tools -ldmallocxx"
11265 cat >>confdefs.h <<\_ACEOF
11266 #define HAVE_DMALLOC 1
11269 { echo "$as_me:$LINENO: result: Using dmalloc" >&5
11270 echo "${ECHO_T}Using dmalloc" >&6; }
11273 { echo "$as_me:$LINENO: checking for main in -lefence" >&5
11274 echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6; }
11275 if test "${ac_cv_lib_efence_main+set}" = set; then
11276 echo $ECHO_N "(cached) $ECHO_C" >&6
11278 ac_check_lib_save_LIBS=$LIBS
11279 LIBS="-lefence $LIBS"
11280 cat >conftest.$ac_ext <<_ACEOF
11283 cat confdefs.h >>conftest.$ac_ext
11284 cat >>conftest.$ac_ext <<_ACEOF
11285 /* end confdefs.h. */
11296 rm -f conftest.$ac_objext conftest$ac_exeext
11297 if { (ac_try="$ac_link"
11298 case "(($ac_try" in
11299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11300 *) ac_try_echo=$ac_try;;
11302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11303 (eval "$ac_link") 2>conftest.er1
11305 grep -v '^ *+' conftest.er1 >conftest.err
11307 cat conftest.err >&5
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); } && {
11310 test -z "$ac_c_werror_flag" ||
11311 test ! -s conftest.err
11312 } && test -s conftest$ac_exeext &&
11313 $as_test_x conftest$ac_exeext; then
11314 ac_cv_lib_efence_main=yes
11316 echo "$as_me: failed program was:" >&5
11317 sed 's/^/| /' conftest.$ac_ext >&5
11319 ac_cv_lib_efence_main=no
11322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11323 conftest$ac_exeext conftest.$ac_ext
11324 LIBS=$ac_check_lib_save_LIBS
11326 { echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
11327 echo "${ECHO_T}$ac_cv_lib_efence_main" >&6; }
11328 if test $ac_cv_lib_efence_main = yes; then
11334 { echo "$as_me:$LINENO: checking for enable-efence" >&5
11335 echo $ECHO_N "checking for enable-efence... $ECHO_C" >&6; }
11336 # Check whether --enable-efence was given.
11337 if test "${enable_efence+set}" = set; then
11338 enableval=$enable_efence; case "${enableval}" in
11339 yes) useefence=true
11340 { echo "$as_me:$LINENO: result: yes" >&5
11341 echo "${ECHO_T}yes" >&6; }
11343 no) useefence=false
11344 { echo "$as_me:$LINENO: result: no" >&5
11345 echo "${ECHO_T}no" >&6; }
11347 *) { echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-efence" >&5
11348 echo "${ECHO_T}bad value ${enableval} for --enable-efence" >&6; }
11352 useefence=false; { echo "$as_me:$LINENO: result: no" >&5
11353 echo "${ECHO_T}no" >&6; }
11357 if test "$efence" = "true" -a "$useefence" = "true" ; then
11358 ctlibs_tools="$ctlibs_tools -lefence"
11360 cat >>confdefs.h <<\_ACEOF
11361 #define HAVE_EFENCE 1
11364 { echo "$as_me:$LINENO: result: Using efence" >&5
11365 echo "${ECHO_T}Using efence" >&6; }
11368 if test "$wxwin" = "true" ; then
11369 if "$wx_gtk" = "true" || "$wx_mac" == "true" ; then
11370 wxcflags=`$wxconfig --cflags`
11371 wxlibs=`$wxconfig --libs`
11373 wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
11374 wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
11376 CFLAGS="$CFLAGS -I../include $wxcflags"
11377 ctlib_graphics="$ctlib_graphics $wxlibs"
11383 if test "$wxwin"="true"; then
11384 HAVE_WXWINDOWS_TRUE=
11385 HAVE_WXWINDOWS_FALSE='#'
11387 HAVE_WXWINDOWS_TRUE='#'
11388 HAVE_WXWINDOWS_FALSE=
11392 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
11393 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
11396 if test -n "$lamdir" ; then
11397 lamprograms="ctsimtext-lam"
11405 ac_config_files="$ac_config_files Makefile libctgraphics/Makefile libctsupport/Makefile libctsim/Makefile man/Makefile cgi-bin/ctsim.cgi cgi-bin/Makefile html/simulate.html html/Makefile include/Makefile getopt/Makefile tools/sample-ctsim.sh cgi-bin/ctsim.conf tools/Makefile src/Makefile helical/Makefile helical/sample-helical.sh"
11408 cat >confcache <<\_ACEOF
11409 # This file is a shell script that caches the results of configure
11410 # tests run on this system so they can be shared between configure
11411 # scripts and configure runs, see configure's option --config-cache.
11412 # It is not useful on other systems. If it contains results you don't
11413 # want to keep, you may remove or edit it.
11415 # config.status only pays attention to the cache file if you give it
11416 # the --recheck option to rerun configure.
11418 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11419 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11420 # following values.
11424 # The following way of writing the cache mishandles newlines in values,
11425 # but we know of no workaround that is simple, portable, and efficient.
11426 # So, we kill variables containing newlines.
11427 # Ultrix sh set writes to stderr and can't be redirected directly,
11428 # and sets the high bit in the cache file unless we assign to the vars.
11430 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11431 eval ac_val=\$$ac_var
11435 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11436 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11439 _ | IFS | as_nl) ;; #(
11440 *) $as_unset $ac_var ;;
11446 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11447 *${as_nl}ac_space=\ *)
11448 # `set' does not quote correctly, so add quotes (double-quote
11449 # substitution turns \\\\ into \\, and sed turns \\ into \).
11452 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11455 # `set' quotes correctly as required by POSIX, so do not add quotes.
11456 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11465 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11467 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11469 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11470 if test -w "$cache_file"; then
11471 test "x$cache_file" != "x/dev/null" &&
11472 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11473 echo "$as_me: updating cache $cache_file" >&6;}
11474 cat confcache >$cache_file
11476 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11477 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11482 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11483 # Let make expand exec_prefix.
11484 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11486 DEFS=-DHAVE_CONFIG_H
11490 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11491 # 1. Remove the extension, and $U if already installed.
11492 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11493 ac_i=`echo "$ac_i" | sed "$ac_script"`
11494 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11495 # will be set to the directory where LIBOBJS objects are built.
11496 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11497 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11499 LIBOBJS=$ac_libobjs
11501 LTLIBOBJS=$ac_ltlibobjs
11504 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11505 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11506 Usually this means the macro was only invoked conditionally." >&5
11507 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11508 Usually this means the macro was only invoked conditionally." >&2;}
11509 { (exit 1); exit 1; }; }
11511 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11512 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11513 Usually this means the macro was only invoked conditionally." >&5
11514 echo "$as_me: error: conditional \"AMDEP\" was never defined.
11515 Usually this means the macro was only invoked conditionally." >&2;}
11516 { (exit 1); exit 1; }; }
11518 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11519 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11520 Usually this means the macro was only invoked conditionally." >&5
11521 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11522 Usually this means the macro was only invoked conditionally." >&2;}
11523 { (exit 1); exit 1; }; }
11525 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
11526 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
11527 Usually this means the macro was only invoked conditionally." >&5
11528 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
11529 Usually this means the macro was only invoked conditionally." >&2;}
11530 { (exit 1); exit 1; }; }
11532 if test -z "${INCLUDED_GETOPT_LONG_TRUE}" && test -z "${INCLUDED_GETOPT_LONG_FALSE}"; then
11533 { { echo "$as_me:$LINENO: error: conditional \"INCLUDED_GETOPT_LONG\" was never defined.
11534 Usually this means the macro was only invoked conditionally." >&5
11535 echo "$as_me: error: conditional \"INCLUDED_GETOPT_LONG\" was never defined.
11536 Usually this means the macro was only invoked conditionally." >&2;}
11537 { (exit 1); exit 1; }; }
11539 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
11540 { { echo "$as_me:$LINENO: error: conditional \"DEBUG\" was never defined.
11541 Usually this means the macro was only invoked conditionally." >&5
11542 echo "$as_me: error: conditional \"DEBUG\" was never defined.
11543 Usually this means the macro was only invoked conditionally." >&2;}
11544 { (exit 1); exit 1; }; }
11546 if test -z "${USE_HTML_TRUE}" && test -z "${USE_HTML_FALSE}"; then
11547 { { echo "$as_me:$LINENO: error: conditional \"USE_HTML\" was never defined.
11548 Usually this means the macro was only invoked conditionally." >&5
11549 echo "$as_me: error: conditional \"USE_HTML\" was never defined.
11550 Usually this means the macro was only invoked conditionally." >&2;}
11551 { (exit 1); exit 1; }; }
11553 if test -z "${USE_LAM_TRUE}" && test -z "${USE_LAM_FALSE}"; then
11554 { { echo "$as_me:$LINENO: error: conditional \"USE_LAM\" was never defined.
11555 Usually this means the macro was only invoked conditionally." >&5
11556 echo "$as_me: error: conditional \"USE_LAM\" was never defined.
11557 Usually this means the macro was only invoked conditionally." >&2;}
11558 { (exit 1); exit 1; }; }
11560 if test -z "${NO_X_TRUE}" && test -z "${NO_X_FALSE}"; then
11561 { { echo "$as_me:$LINENO: error: conditional \"NO_X\" was never defined.
11562 Usually this means the macro was only invoked conditionally." >&5
11563 echo "$as_me: error: conditional \"NO_X\" was never defined.
11564 Usually this means the macro was only invoked conditionally." >&2;}
11565 { (exit 1); exit 1; }; }
11567 if test -z "${HAVE_SGP_TRUE}" && test -z "${HAVE_SGP_FALSE}"; then
11568 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SGP\" was never defined.
11569 Usually this means the macro was only invoked conditionally." >&5
11570 echo "$as_me: error: conditional \"HAVE_SGP\" was never defined.
11571 Usually this means the macro was only invoked conditionally." >&2;}
11572 { (exit 1); exit 1; }; }
11574 if test -z "${HAVE_WXWINDOWS_TRUE}" && test -z "${HAVE_WXWINDOWS_FALSE}"; then
11575 { { echo "$as_me:$LINENO: error: conditional \"HAVE_WXWINDOWS\" was never defined.
11576 Usually this means the macro was only invoked conditionally." >&5
11577 echo "$as_me: error: conditional \"HAVE_WXWINDOWS\" was never defined.
11578 Usually this means the macro was only invoked conditionally." >&2;}
11579 { (exit 1); exit 1; }; }
11582 : ${CONFIG_STATUS=./config.status}
11583 ac_clean_files_save=$ac_clean_files
11584 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11585 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11586 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11587 cat >$CONFIG_STATUS <<_ACEOF
11589 # Generated by $as_me.
11590 # Run this file to recreate the current configuration.
11591 # Compiler output produced by configure, useful for debugging
11592 # configure, is in config.log if it exists.
11595 ac_cs_recheck=false
11597 SHELL=\${CONFIG_SHELL-$SHELL}
11600 cat >>$CONFIG_STATUS <<\_ACEOF
11601 ## --------------------- ##
11602 ## M4sh Initialization. ##
11603 ## --------------------- ##
11605 # Be more Bourne compatible
11606 DUALCASE=1; export DUALCASE # for MKS sh
11607 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11610 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11611 # is contrary to our usage. Disable this feature.
11612 alias -g '${1+"$@"}'='"$@"'
11613 setopt NO_GLOB_SUBST
11615 case `(set -o) 2>/dev/null` in
11616 *posix*) set -o posix ;;
11625 # Avoid depending upon Character Ranges.
11626 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11627 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11628 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11629 as_cr_digits='0123456789'
11630 as_cr_alnum=$as_cr_Letters$as_cr_digits
11632 # The user is always right.
11633 if test "${PATH_SEPARATOR+set}" != set; then
11634 echo "#! /bin/sh" >conf$$.sh
11635 echo "exit 0" >>conf$$.sh
11637 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11645 # Support unset when possible.
11646 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11654 # We need space, tab and new line, in precisely that order. Quoting is
11655 # there to prevent editors from complaining about space-tab.
11656 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11657 # splitting by setting IFS to empty value.)
11662 # Find who we are. Look in the path if we contain no directory separator.
11664 *[\\/]* ) as_myself=$0 ;;
11665 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11666 for as_dir in $PATH
11669 test -z "$as_dir" && as_dir=.
11670 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11676 # We did not find ourselves, most probably we were run as `sh COMMAND'
11677 # in which case we are not to be found in the path.
11678 if test "x$as_myself" = x; then
11681 if test ! -f "$as_myself"; then
11682 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11683 { (exit 1); exit 1; }
11686 # Work around bugs in pre-3.0 UWIN ksh.
11687 for as_var in ENV MAIL MAILPATH
11688 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11696 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11697 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11698 LC_TELEPHONE LC_TIME
11700 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11701 eval $as_var=C; export $as_var
11703 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11707 # Required to use basename.
11708 if expr a : '\(a\)' >/dev/null 2>&1 &&
11709 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11715 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11716 as_basename=basename
11722 # Name of the executable.
11723 as_me=`$as_basename -- "$0" ||
11724 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11725 X"$0" : 'X\(//\)$' \| \
11726 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11728 sed '/^.*\/\([^/][^/]*\)\/*$/{
11747 as_lineno_1=$LINENO
11748 as_lineno_2=$LINENO
11749 test "x$as_lineno_1" != "x$as_lineno_2" &&
11750 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11752 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11753 # uniformly replaced by the line number. The first 'sed' inserts a
11754 # line-number line after each line using $LINENO; the second 'sed'
11755 # does the real work. The second script uses 'N' to pair each
11756 # line-number line with the line containing $LINENO, and appends
11757 # trailing '-' during substitution so that $LINENO is not a special
11758 # case at line end.
11759 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11760 # scripts with optimization help from Paolo Bonzini. Blame Lee
11761 # E. McMahon (1931-1989) for sed's syntax. :-)
11773 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11776 ' >$as_me.lineno &&
11777 chmod +x "$as_me.lineno" ||
11778 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11779 { (exit 1); exit 1; }; }
11781 # Don't try to exec as it changes $[0], causing all sort of problems
11782 # (the dirname of $[0] is not the place where we might find the
11783 # original and so on. Autoconf is especially sensitive to this).
11784 . "./$as_me.lineno"
11785 # Exit status is that of the last command.
11790 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11796 ECHO_C= ECHO_N= ECHO_T=
11797 case `echo -n x` in
11799 case `echo 'x\c'` in
11800 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11807 if expr a : '\(a\)' >/dev/null 2>&1 &&
11808 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11814 rm -f conf$$ conf$$.exe conf$$.file
11815 if test -d conf$$.dir; then
11816 rm -f conf$$.dir/conf$$.file
11822 if ln -s conf$$.file conf$$ 2>/dev/null; then
11824 # ... but there are two gotchas:
11825 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11826 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11827 # In both cases, we have to default to `cp -p'.
11828 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11830 elif ln conf$$.file conf$$ 2>/dev/null; then
11835 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11836 rmdir conf$$.dir 2>/dev/null
11838 if mkdir -p . 2>/dev/null; then
11841 test -d ./-p && rmdir ./-p
11845 if test -x / >/dev/null 2>&1; then
11846 as_test_x='test -x'
11848 if ls -dL / >/dev/null 2>&1; then
11855 if test -d "$1"; then
11861 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11862 ???[sx]*):;;*)false;;esac;fi
11866 as_executable_p=$as_test_x
11868 # Sed expression to map a string onto a valid CPP name.
11869 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11871 # Sed expression to map a string onto a valid variable name.
11872 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11877 # Save the log message, to keep $[0] and so on meaningful, and to
11878 # report actual input values of CONFIG_FILES etc. instead of their
11879 # values after options handling.
11881 This file was extended by $as_me, which was
11882 generated by GNU Autoconf 2.61. Invocation command line was
11884 CONFIG_FILES = $CONFIG_FILES
11885 CONFIG_HEADERS = $CONFIG_HEADERS
11886 CONFIG_LINKS = $CONFIG_LINKS
11887 CONFIG_COMMANDS = $CONFIG_COMMANDS
11890 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11895 cat >>$CONFIG_STATUS <<_ACEOF
11896 # Files that config.status was made for.
11897 config_files="$ac_config_files"
11898 config_headers="$ac_config_headers"
11899 config_commands="$ac_config_commands"
11903 cat >>$CONFIG_STATUS <<\_ACEOF
11905 \`$as_me' instantiates files from templates according to the
11906 current configuration.
11908 Usage: $0 [OPTIONS] [FILE]...
11910 -h, --help print this help, then exit
11911 -V, --version print version number and configuration settings, then exit
11912 -q, --quiet do not print progress messages
11913 -d, --debug don't remove temporary files
11914 --recheck update $as_me by reconfiguring in the same conditions
11915 --file=FILE[:TEMPLATE]
11916 instantiate the configuration file FILE
11917 --header=FILE[:TEMPLATE]
11918 instantiate the configuration header FILE
11920 Configuration files:
11923 Configuration headers:
11926 Configuration commands:
11929 Report bugs to <bug-autoconf@gnu.org>."
11932 cat >>$CONFIG_STATUS <<_ACEOF
11935 configured by $0, generated by GNU Autoconf 2.61,
11936 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11938 Copyright (C) 2006 Free Software Foundation, Inc.
11939 This config.status script is free software; the Free Software Foundation
11940 gives unlimited permission to copy, distribute and modify it."
11947 cat >>$CONFIG_STATUS <<\_ACEOF
11948 # If no file are specified by the user, then we need to provide default
11949 # value. By we need to know if files were specified by the user.
11955 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11956 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11967 # Handling of the options.
11968 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11970 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11971 echo "$ac_cs_version"; exit ;;
11972 --debug | --debu | --deb | --de | --d | -d )
11974 --file | --fil | --fi | --f )
11976 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11977 ac_need_defaults=false;;
11978 --header | --heade | --head | --hea )
11980 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11981 ac_need_defaults=false;;
11983 # Conflict between --help and --header
11984 { echo "$as_me: error: ambiguous option: $1
11985 Try \`$0 --help' for more information." >&2
11986 { (exit 1); exit 1; }; };;
11987 --help | --hel | -h )
11988 echo "$ac_cs_usage"; exit ;;
11989 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11990 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11993 # This is an error.
11994 -*) { echo "$as_me: error: unrecognized option: $1
11995 Try \`$0 --help' for more information." >&2
11996 { (exit 1); exit 1; }; } ;;
11998 *) ac_config_targets="$ac_config_targets $1"
11999 ac_need_defaults=false ;;
12005 ac_configure_extra_args=
12007 if $ac_cs_silent; then
12009 ac_configure_extra_args="$ac_configure_extra_args --silent"
12013 cat >>$CONFIG_STATUS <<_ACEOF
12014 if \$ac_cs_recheck; then
12015 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12016 CONFIG_SHELL=$SHELL
12017 export CONFIG_SHELL
12018 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12022 cat >>$CONFIG_STATUS <<\_ACEOF
12026 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12027 ## Running $as_me. ##
12033 cat >>$CONFIG_STATUS <<_ACEOF
12037 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12041 cat >>$CONFIG_STATUS <<\_ACEOF
12043 # Handling of arguments.
12044 for ac_config_target in $ac_config_targets
12046 case $ac_config_target in
12047 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12048 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12049 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12050 "libctgraphics/Makefile") CONFIG_FILES="$CONFIG_FILES libctgraphics/Makefile" ;;
12051 "libctsupport/Makefile") CONFIG_FILES="$CONFIG_FILES libctsupport/Makefile" ;;
12052 "libctsim/Makefile") CONFIG_FILES="$CONFIG_FILES libctsim/Makefile" ;;
12053 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12054 "cgi-bin/ctsim.cgi") CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.cgi" ;;
12055 "cgi-bin/Makefile") CONFIG_FILES="$CONFIG_FILES cgi-bin/Makefile" ;;
12056 "html/simulate.html") CONFIG_FILES="$CONFIG_FILES html/simulate.html" ;;
12057 "html/Makefile") CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
12058 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12059 "getopt/Makefile") CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
12060 "tools/sample-ctsim.sh") CONFIG_FILES="$CONFIG_FILES tools/sample-ctsim.sh" ;;
12061 "cgi-bin/ctsim.conf") CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.conf" ;;
12062 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
12063 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12064 "helical/Makefile") CONFIG_FILES="$CONFIG_FILES helical/Makefile" ;;
12065 "helical/sample-helical.sh") CONFIG_FILES="$CONFIG_FILES helical/sample-helical.sh" ;;
12067 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12068 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12069 { (exit 1); exit 1; }; };;
12074 # If the user did not use the arguments to specify the items to instantiate,
12075 # then the envvar interface is used. Set only those that are not.
12076 # We use the long form for the default assignment because of an extremely
12077 # bizarre bug on SunOS 4.1.3.
12078 if $ac_need_defaults; then
12079 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12080 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12081 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12084 # Have a temporary directory for convenience. Make it in the build tree
12085 # simply because there is no reason against having it here, and in addition,
12086 # creating and moving files from /tmp can sometimes cause problems.
12087 # Hook for its removal unless debugging.
12088 # Note that there is a small window in which the directory will not be cleaned:
12089 # after its creation but before its name has been assigned to `$tmp'.
12093 trap 'exit_status=$?
12094 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12096 trap '{ (exit 1); exit 1; }' 1 2 13 15
12098 # Create a (secure) tmp directory for tmp files.
12101 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12102 test -n "$tmp" && test -d "$tmp"
12105 tmp=./conf$$-$RANDOM
12106 (umask 077 && mkdir "$tmp")
12109 echo "$me: cannot create a temporary directory in ." >&2
12110 { (exit 1); exit 1; }
12114 # Set up the sed scripts for CONFIG_FILES section.
12117 # No need to generate the scripts if there are no CONFIG_FILES.
12118 # This happens for instance when ./config.status config.h
12119 if test -n "$CONFIG_FILES"; then
12126 for ac_last_try in false false false false false :; do
12127 cat >conf$$subs.sed <<_ACEOF
12128 SHELL!$SHELL$ac_delim
12129 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12130 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12131 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12132 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12133 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12134 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12135 exec_prefix!$exec_prefix$ac_delim
12136 prefix!$prefix$ac_delim
12137 program_transform_name!$program_transform_name$ac_delim
12138 bindir!$bindir$ac_delim
12139 sbindir!$sbindir$ac_delim
12140 libexecdir!$libexecdir$ac_delim
12141 datarootdir!$datarootdir$ac_delim
12142 datadir!$datadir$ac_delim
12143 sysconfdir!$sysconfdir$ac_delim
12144 sharedstatedir!$sharedstatedir$ac_delim
12145 localstatedir!$localstatedir$ac_delim
12146 includedir!$includedir$ac_delim
12147 oldincludedir!$oldincludedir$ac_delim
12148 docdir!$docdir$ac_delim
12149 infodir!$infodir$ac_delim
12150 htmldir!$htmldir$ac_delim
12151 dvidir!$dvidir$ac_delim
12152 pdfdir!$pdfdir$ac_delim
12153 psdir!$psdir$ac_delim
12154 libdir!$libdir$ac_delim
12155 localedir!$localedir$ac_delim
12156 mandir!$mandir$ac_delim
12157 DEFS!$DEFS$ac_delim
12158 ECHO_C!$ECHO_C$ac_delim
12159 ECHO_N!$ECHO_N$ac_delim
12160 ECHO_T!$ECHO_T$ac_delim
12161 LIBS!$LIBS$ac_delim
12162 build_alias!$build_alias$ac_delim
12163 host_alias!$host_alias$ac_delim
12164 target_alias!$target_alias$ac_delim
12165 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
12166 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
12167 MAINT!$MAINT$ac_delim
12168 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12169 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12170 INSTALL_DATA!$INSTALL_DATA$ac_delim
12171 CYGPATH_W!$CYGPATH_W$ac_delim
12172 PACKAGE!$PACKAGE$ac_delim
12173 VERSION!$VERSION$ac_delim
12174 ACLOCAL!$ACLOCAL$ac_delim
12175 AUTOCONF!$AUTOCONF$ac_delim
12176 AUTOMAKE!$AUTOMAKE$ac_delim
12177 AUTOHEADER!$AUTOHEADER$ac_delim
12178 MAKEINFO!$MAKEINFO$ac_delim
12179 AMTAR!$AMTAR$ac_delim
12180 install_sh!$install_sh$ac_delim
12181 STRIP!$STRIP$ac_delim
12182 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
12184 SET_MAKE!$SET_MAKE$ac_delim
12185 am__leading_dot!$am__leading_dot$ac_delim
12186 RANLIB!$RANLIB$ac_delim
12188 CFLAGS!$CFLAGS$ac_delim
12189 LDFLAGS!$LDFLAGS$ac_delim
12190 CPPFLAGS!$CPPFLAGS$ac_delim
12191 ac_ct_CC!$ac_ct_CC$ac_delim
12192 EXEEXT!$EXEEXT$ac_delim
12193 OBJEXT!$OBJEXT$ac_delim
12194 DEPDIR!$DEPDIR$ac_delim
12195 am__include!$am__include$ac_delim
12196 am__quote!$am__quote$ac_delim
12197 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
12198 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
12199 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
12200 CCDEPMODE!$CCDEPMODE$ac_delim
12201 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
12202 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
12204 CXXFLAGS!$CXXFLAGS$ac_delim
12205 ac_ct_CXX!$ac_ct_CXX$ac_delim
12206 CXXDEPMODE!$CXXDEPMODE$ac_delim
12207 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
12208 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
12210 GREP!$GREP$ac_delim
12211 EGREP!$EGREP$ac_delim
12212 wxconfig!$wxconfig$ac_delim
12213 build!$build$ac_delim
12214 build_cpu!$build_cpu$ac_delim
12215 build_vendor!$build_vendor$ac_delim
12216 build_os!$build_os$ac_delim
12217 host!$host$ac_delim
12218 host_cpu!$host_cpu$ac_delim
12219 host_vendor!$host_vendor$ac_delim
12220 host_os!$host_os$ac_delim
12221 INCLUDED_GETOPT_LONG_TRUE!$INCLUDED_GETOPT_LONG_TRUE$ac_delim
12222 INCLUDED_GETOPT_LONG_FALSE!$INCLUDED_GETOPT_LONG_FALSE$ac_delim
12223 DEBUG_TRUE!$DEBUG_TRUE$ac_delim
12224 DEBUG_FALSE!$DEBUG_FALSE$ac_delim
12227 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12229 elif $ac_last_try; then
12230 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12231 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12232 { (exit 1); exit 1; }; }
12234 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12238 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12239 if test -n "$ac_eof"; then
12240 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12241 ac_eof=`expr $ac_eof + 1`
12244 cat >>$CONFIG_STATUS <<_ACEOF
12245 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12246 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12249 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12250 s/^/s,@/; s/!/@,|#_!!_#|/
12253 s/'"$ac_delim"'$/,g/; t
12255 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12256 ' >>$CONFIG_STATUS <conf$$subs.sed
12257 rm -f conf$$subs.sed
12258 cat >>$CONFIG_STATUS <<_ACEOF
12264 for ac_last_try in false false false false false :; do
12265 cat >conf$$subs.sed <<_ACEOF
12266 lamdir!$lamdir$ac_delim
12267 mpienable!$mpienable$ac_delim
12268 cgibindir!$cgibindir$ac_delim
12269 cgibinurl!$cgibinurl$ac_delim
12270 webdatadir!$webdatadir$ac_delim
12271 webdataurl!$webdataurl$ac_delim
12272 cgiprograms!$cgiprograms$ac_delim
12273 htmldata!$htmldata$ac_delim
12274 USE_HTML_TRUE!$USE_HTML_TRUE$ac_delim
12275 USE_HTML_FALSE!$USE_HTML_FALSE$ac_delim
12276 webenabled!$webenabled$ac_delim
12277 USE_LAM_TRUE!$USE_LAM_TRUE$ac_delim
12278 USE_LAM_FALSE!$USE_LAM_FALSE$ac_delim
12279 XMKMF!$XMKMF$ac_delim
12280 X_CFLAGS!$X_CFLAGS$ac_delim
12281 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
12282 X_LIBS!$X_LIBS$ac_delim
12283 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
12284 X_TOOLKIT_LIBS!$X_TOOLKIT_LIBS$ac_delim
12285 X_BASIC_LIBS!$X_BASIC_LIBS$ac_delim
12286 NO_X_TRUE!$NO_X_TRUE$ac_delim
12287 NO_X_FALSE!$NO_X_FALSE$ac_delim
12288 my_includes!$my_includes$ac_delim
12289 HAVE_SGP_TRUE!$HAVE_SGP_TRUE$ac_delim
12290 HAVE_SGP_FALSE!$HAVE_SGP_FALSE$ac_delim
12291 wxcflags!$wxcflags$ac_delim
12292 wxlibs!$wxlibs$ac_delim
12293 HAVE_WXWINDOWS_TRUE!$HAVE_WXWINDOWS_TRUE$ac_delim
12294 HAVE_WXWINDOWS_FALSE!$HAVE_WXWINDOWS_FALSE$ac_delim
12295 ctlibs!$ctlibs$ac_delim
12296 lamprograms!$lamprograms$ac_delim
12297 lamdefs!$lamdefs$ac_delim
12298 LIBOBJS!$LIBOBJS$ac_delim
12299 LTLIBOBJS!$LTLIBOBJS$ac_delim
12302 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 34; then
12304 elif $ac_last_try; then
12305 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12306 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12307 { (exit 1); exit 1; }; }
12309 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12313 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12314 if test -n "$ac_eof"; then
12315 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12316 ac_eof=`expr $ac_eof + 1`
12319 cat >>$CONFIG_STATUS <<_ACEOF
12320 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
12321 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12324 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12325 s/^/s,@/; s/!/@,|#_!!_#|/
12328 s/'"$ac_delim"'$/,g/; t
12330 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12331 ' >>$CONFIG_STATUS <conf$$subs.sed
12332 rm -f conf$$subs.sed
12333 cat >>$CONFIG_STATUS <<_ACEOF
12340 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12341 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12342 # trailing colons and then remove the whole line if VPATH becomes empty
12343 # (actually we leave an empty line to preserve line numbers).
12344 if test "x$srcdir" = x.; then
12345 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12346 s/:*\$(srcdir):*/:/
12347 s/:*\${srcdir}:*/:/
12349 s/^\([^=]*=[ ]*\):*/\1/
12355 cat >>$CONFIG_STATUS <<\_ACEOF
12356 fi # test -n "$CONFIG_FILES"
12359 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
12362 :[FHLC]) ac_mode=$ac_tag; continue;;
12364 case $ac_mode$ac_tag in
12366 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12367 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12368 { (exit 1); exit 1; }; };;
12369 :[FH]-) ac_tag=-:-;;
12370 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12387 -) ac_f="$tmp/stdin";;
12388 *) # Look for the file first in the build tree, then in the source tree
12389 # (if the path is not absolute). The absolute path cannot be DOS-style,
12390 # because $ac_f cannot contain `:'.
12394 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12396 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12397 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12398 { (exit 1); exit 1; }; };;
12400 ac_file_inputs="$ac_file_inputs $ac_f"
12403 # Let's still pretend it is `configure' which instantiates (i.e., don't
12404 # use $as_me), people would be surprised to read:
12405 # /* config.h. Generated by config.status. */
12406 configure_input="Generated from "`IFS=:
12407 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12408 if test x"$ac_file" != x-; then
12409 configure_input="$ac_file. $configure_input"
12410 { echo "$as_me:$LINENO: creating $ac_file" >&5
12411 echo "$as_me: creating $ac_file" >&6;}
12415 *:-:* | *:-) cat >"$tmp/stdin";;
12420 ac_dir=`$as_dirname -- "$ac_file" ||
12421 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12422 X"$ac_file" : 'X\(//\)[^/]' \| \
12423 X"$ac_file" : 'X\(//\)$' \| \
12424 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12430 /^X\(\/\/\)[^/].*/{
12445 -*) as_dir=./$as_dir;;
12447 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12451 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12452 *) as_qdir=$as_dir;;
12454 as_dirs="'$as_qdir' $as_dirs"
12455 as_dir=`$as_dirname -- "$as_dir" ||
12456 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12457 X"$as_dir" : 'X\(//\)[^/]' \| \
12458 X"$as_dir" : 'X\(//\)$' \| \
12459 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12465 /^X\(\/\/\)[^/].*/{
12478 test -d "$as_dir" && break
12480 test -z "$as_dirs" || eval "mkdir $as_dirs"
12481 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12482 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12483 { (exit 1); exit 1; }; }; }
12487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12489 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12490 # A ".." for each directory in $ac_dir_suffix.
12491 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12492 case $ac_top_builddir_sub in
12493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12497 ac_abs_top_builddir=$ac_pwd
12498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12499 # for backward compatibility:
12500 ac_top_builddir=$ac_top_build_prefix
12503 .) # We are building in place.
12505 ac_top_srcdir=$ac_top_builddir_sub
12506 ac_abs_top_srcdir=$ac_pwd ;;
12507 [\\/]* | ?:[\\/]* ) # Absolute name.
12508 ac_srcdir=$srcdir$ac_dir_suffix;
12509 ac_top_srcdir=$srcdir
12510 ac_abs_top_srcdir=$srcdir ;;
12511 *) # Relative name.
12512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12513 ac_top_srcdir=$ac_top_build_prefix$srcdir
12514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12526 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12527 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12531 cat >>$CONFIG_STATUS <<\_ACEOF
12532 # If the template does not know about datarootdir, expand it.
12533 # FIXME: This hack should be removed a few years after 2.60.
12534 ac_datarootdir_hack=; ac_datarootdir_seen=
12536 case `sed -n '/datarootdir/ {
12545 ' $ac_file_inputs` in
12546 *datarootdir*) ac_datarootdir_seen=yes;;
12547 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12548 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12549 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12551 cat >>$CONFIG_STATUS <<_ACEOF
12552 ac_datarootdir_hack='
12553 s&@datadir@&$datadir&g
12554 s&@docdir@&$docdir&g
12555 s&@infodir@&$infodir&g
12556 s&@localedir@&$localedir&g
12557 s&@mandir@&$mandir&g
12558 s&\\\${datarootdir}&$datarootdir&g' ;;
12562 # Neutralize VPATH when `$srcdir' = `.'.
12563 # Shell code in configure.ac might set extrasub.
12564 # FIXME: do we really want to maintain this feature?
12565 cat >>$CONFIG_STATUS <<_ACEOF
12569 cat >>$CONFIG_STATUS <<\_ACEOF
12571 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12572 s&@configure_input@&$configure_input&;t t
12573 s&@top_builddir@&$ac_top_builddir_sub&;t t
12574 s&@srcdir@&$ac_srcdir&;t t
12575 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12576 s&@top_srcdir@&$ac_top_srcdir&;t t
12577 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12578 s&@builddir@&$ac_builddir&;t t
12579 s&@abs_builddir@&$ac_abs_builddir&;t t
12580 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12581 s&@INSTALL@&$ac_INSTALL&;t t
12582 $ac_datarootdir_hack
12583 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
12585 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12586 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12587 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12588 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12589 which seems to be undefined. Please make sure it is defined." >&5
12590 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12591 which seems to be undefined. Please make sure it is defined." >&2;}
12595 -) cat "$tmp/out"; rm -f "$tmp/out";;
12596 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12605 # Transform confdefs.h into a sed script `conftest.defines', that
12606 # substitutes the proper values into config.h.in to produce config.h.
12607 rm -f conftest.defines conftest.tail
12608 # First, append a space to every undef/define line, to ease matching.
12609 echo 's/$/ /' >conftest.defines
12610 # Then, protect against being on the right side of a sed subst, or in
12611 # an unquoted here document, in config.status. If some macros were
12612 # called several times there might be several #defines for the same
12613 # symbol, which is useless. But do not sort them, since the last
12614 # AC_DEFINE must be honored.
12615 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12616 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12617 # NAME is the cpp macro being defined, VALUE is the value it is being given.
12618 # PARAMS is the parameter list in the macro definition--in most cases, it's
12619 # just an empty string.
12620 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12621 ac_dB='\\)[ (].*,\\1define\\2'
12629 s/^[ ]*#[ ]*define[ ][ ]*//
12634 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12635 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12636 ' >>conftest.defines
12638 # Remove the space that was appended to ease matching.
12639 # Then replace #undef with comments. This is necessary, for
12640 # example, in the case of _POSIX_SOURCE, which is predefined and required
12641 # on some systems where configure will not decide to define it.
12642 # (The regexp can be short, since the line contains either #define or #undef.)
12644 s,^[ #]*u.*,/* & */,' >>conftest.defines
12646 # Break up conftest.defines:
12647 ac_max_sed_lines=50
12649 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12650 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12651 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12653 ac_in='$ac_file_inputs'
12654 ac_out='"$tmp/out1"'
12655 ac_nxt='"$tmp/out2"'
12659 # Write a here document:
12660 cat >>$CONFIG_STATUS <<_ACEOF
12661 # First, check the format of the line:
12662 cat >"\$tmp/defines.sed" <<\\CEOF
12663 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12664 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12668 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12670 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12671 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12672 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12673 grep . conftest.tail >/dev/null || break
12674 rm -f conftest.defines
12675 mv conftest.tail conftest.defines
12677 rm -f conftest.defines conftest.tail
12679 echo "ac_result=$ac_in" >>$CONFIG_STATUS
12680 cat >>$CONFIG_STATUS <<\_ACEOF
12681 if test x"$ac_file" != x-; then
12682 echo "/* $configure_input */" >"$tmp/config.h"
12683 cat "$ac_result" >>"$tmp/config.h"
12684 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12685 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12686 echo "$as_me: $ac_file is unchanged" >&6;}
12689 mv "$tmp/config.h" $ac_file
12692 echo "/* $configure_input */"
12696 # Compute $ac_file's index in $config_headers.
12698 for _am_header in $config_headers :; do
12699 case $_am_header in
12700 $ac_file | $ac_file:* )
12703 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12706 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
12707 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12708 X$ac_file : 'X\(//\)[^/]' \| \
12709 X$ac_file : 'X\(//\)$' \| \
12710 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
12712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12716 /^X\(\/\/\)[^/].*/{
12728 s/.*/./; q'`/stamp-h$_am_stamp_count
12731 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
12732 echo "$as_me: executing $ac_file commands" >&6;}
12737 case $ac_file$ac_mode in
12738 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12739 # Strip MF so we end up with the name of the file.
12740 mf=`echo "$mf" | sed -e 's/:.*$//'`
12741 # Check whether this is an Automake generated Makefile or not.
12742 # We used to match only the files named `Makefile.in', but
12743 # some people rename them; so instead we look at the file content.
12744 # Grep'ing the first line is not enough: some people post-process
12745 # each Makefile.in and add a new line on top of each file to say so.
12746 # So let's grep whole file.
12747 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12748 dirpart=`$as_dirname -- "$mf" ||
12749 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12750 X"$mf" : 'X\(//\)[^/]' \| \
12751 X"$mf" : 'X\(//\)$' \| \
12752 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12758 /^X\(\/\/\)[^/].*/{
12774 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
12775 # Extract the definition of DEP_FILES from the Makefile without
12777 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
12778 test -z "$DEPDIR" && continue
12779 # When using ansi2knr, U may be empty or an underscore; expand it
12780 U=`sed -n -e '/^U = / s///p' < "$mf"`
12781 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
12782 # We invoke sed twice because it is the simplest approach to
12783 # changing $(DEPDIR) to its actual value in the expansion.
12784 for file in `sed -n -e '
12785 /^DEP_FILES = .*\\\\$/ {
12794 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
12795 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12796 # Make sure the directory exists.
12797 test -f "$dirpart/$file" && continue
12798 fdir=`$as_dirname -- "$file" ||
12799 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12800 X"$file" : 'X\(//\)[^/]' \| \
12801 X"$file" : 'X\(//\)$' \| \
12802 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12804 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12808 /^X\(\/\/\)[^/].*/{
12821 { as_dir=$dirpart/$fdir
12823 -*) as_dir=./$as_dir;;
12825 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12829 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12830 *) as_qdir=$as_dir;;
12832 as_dirs="'$as_qdir' $as_dirs"
12833 as_dir=`$as_dirname -- "$as_dir" ||
12834 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12835 X"$as_dir" : 'X\(//\)[^/]' \| \
12836 X"$as_dir" : 'X\(//\)$' \| \
12837 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12843 /^X\(\/\/\)[^/].*/{
12856 test -d "$as_dir" && break
12858 test -z "$as_dirs" || eval "mkdir $as_dirs"
12859 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12860 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12861 { (exit 1); exit 1; }; }; }
12862 # echo "creating $dirpart/$file"
12863 echo '# dummy' > "$dirpart/$file"
12872 { (exit 0); exit 0; }
12874 chmod +x $CONFIG_STATUS
12875 ac_clean_files=$ac_clean_files_save
12878 # configure is writing to config.log, and then calls config.status.
12879 # config.status does its own redirection, appending to config.log.
12880 # Unfortunately, on DOS this fails, as config.log is still kept open
12881 # by configure, so config.status won't be able to write to it; its
12882 # output is simply discarded. So we exec the FD to /dev/null,
12883 # effectively closing config.log, so it can be properly (re)opened and
12884 # appended to by config.status. When coming back to configure, we
12885 # need to make the FD available again.
12886 if test "$no_create" != yes; then
12888 ac_config_status_args=
12889 test "$silent" = yes &&
12890 ac_config_status_args="$ac_config_status_args --quiet"
12892 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12894 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12895 # would make configure fail if this is the last instruction.
12896 $ac_cs_success || { (exit 1); exit 1; }