2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for CTSim 5.2.0.
5 # Report bugs to <ctsim-users@kpe.io>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 case \`(set -o) 2>/dev/null\` in #(
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 test -z "$as_dir" && as_dir=.
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and ctsim-users@kpe.io
234 $0: about your system, including any error possibly output
235 $0: before this message. Then install a modern shell, or
236 $0: manually run the script under such a shell if you do
243 SHELL=${CONFIG_SHELL-/bin/sh}
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
254 # Portably unset VAR.
257 { eval $1=; unset $1;}
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 # Create "$as_dir" as a directory, including parents if necessary.
286 -*) as_dir=./$as_dir;;
288 test -d "$as_dir" || eval $as_mkdir_p || {
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 test -d "$as_dir" && break
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357 as_val=`expr "$@" || test $? -eq 1`
362 # as_fn_error STATUS ERROR [LINENO LOG_FD]
363 # ----------------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with STATUS, using 1 if that was 0.
369 as_status=$1; test $as_status -eq 0 && as_status=1
371 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
374 $as_echo "$as_me: error: $2" >&2
375 as_fn_exit $as_status
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
451 # Exit status is that of the last command.
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484 elif ln conf$$.file conf$$ 2>/dev/null; then
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
498 test -d ./-p && rmdir ./-p
502 if test -x / >/dev/null 2>&1; then
505 if ls -dL / >/dev/null 2>&1; then
512 if test -d "$1"; then
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532 test -n "$DJDIR" || exec 7<&0 </dev/null
536 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543 ac_default_prefix=/usr/local
545 ac_config_libobj_dir=.
552 # Identity of this package.
554 PACKAGE_TARNAME='ctsim'
555 PACKAGE_VERSION='5.2.0'
556 PACKAGE_STRING='CTSim 5.2.0'
557 PACKAGE_BUGREPORT='ctsim-users@kpe.io'
558 PACKAGE_URL='http://www.ctsim.org/'
560 ac_unique_file="src/ctsim.cpp"
561 # Factoring default headers for most tests.
562 ac_includes_default="\
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
574 # ifdef HAVE_STDLIB_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
597 ac_subst_vars='am__EXEEXT_FALSE
635 INCLUDED_GETOPT_LONG_FALSE
636 INCLUDED_GETOPT_LONG_TRUE
680 INSTALL_STRIP_PROGRAM
696 MAINTAINER_MODE_FALSE
725 program_transform_name
738 enable_option_checking
739 enable_maintainer_mode
740 enable_dependency_tracking
742 enable_verbose_warnings
756 ac_precious_vars='build_alias
771 # Initialize some variables set by options.
773 ac_init_version=false
774 ac_unrecognized_opts=
776 # The variables have the same names as the options, with
777 # dashes changed to underlines.
785 program_transform_name=s,x,x,
793 # Installation directory options.
794 # These are left unexpanded so users can "make install exec_prefix=/foo"
795 # and all the variables that are supposed to be based on exec_prefix
796 # by default will actually change.
797 # Use braces instead of parens because sh, perl, etc. also accept them.
798 # (The list follows the same order as the GNU Coding Standards.)
799 bindir='${exec_prefix}/bin'
800 sbindir='${exec_prefix}/sbin'
801 libexecdir='${exec_prefix}/libexec'
802 datarootdir='${prefix}/share'
803 datadir='${datarootdir}'
804 sysconfdir='${prefix}/etc'
805 sharedstatedir='${prefix}/com'
806 localstatedir='${prefix}/var'
807 includedir='${prefix}/include'
808 oldincludedir='/usr/include'
809 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
810 infodir='${datarootdir}/info'
815 libdir='${exec_prefix}/lib'
816 localedir='${datarootdir}/locale'
817 mandir='${datarootdir}/man'
823 # If the previous option needs an argument, assign it.
824 if test -n "$ac_prev"; then
825 eval $ac_prev=\$ac_option
831 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
836 # Accept the important Cygnus configure options, so we can diagnose typos.
838 case $ac_dashdash$ac_option in
842 -bindir | --bindir | --bindi | --bind | --bin | --bi)
844 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
847 -build | --build | --buil | --bui | --bu)
848 ac_prev=build_alias ;;
849 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
850 build_alias=$ac_optarg ;;
852 -cache-file | --cache-file | --cache-fil | --cache-fi \
853 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
854 ac_prev=cache_file ;;
855 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
856 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
857 cache_file=$ac_optarg ;;
860 cache_file=config.cache ;;
862 -datadir | --datadir | --datadi | --datad)
864 -datadir=* | --datadir=* | --datadi=* | --datad=*)
865 datadir=$ac_optarg ;;
867 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
868 | --dataroo | --dataro | --datar)
869 ac_prev=datarootdir ;;
870 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
871 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
872 datarootdir=$ac_optarg ;;
874 -disable-* | --disable-*)
875 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
876 # Reject names that are not valid shell variable names.
877 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
878 as_fn_error $? "invalid feature name: $ac_useropt"
879 ac_useropt_orig=$ac_useropt
880 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881 case $ac_user_opts in
885 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
886 ac_unrecognized_sep=', ';;
888 eval enable_$ac_useropt=no ;;
890 -docdir | --docdir | --docdi | --doc | --do)
892 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
895 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
897 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
900 -enable-* | --enable-*)
901 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
902 # Reject names that are not valid shell variable names.
903 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904 as_fn_error $? "invalid feature name: $ac_useropt"
905 ac_useropt_orig=$ac_useropt
906 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
907 case $ac_user_opts in
911 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
912 ac_unrecognized_sep=', ';;
914 eval enable_$ac_useropt=\$ac_optarg ;;
916 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
917 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
918 | --exec | --exe | --ex)
919 ac_prev=exec_prefix ;;
920 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
921 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
922 | --exec=* | --exe=* | --ex=*)
923 exec_prefix=$ac_optarg ;;
925 -gas | --gas | --ga | --g)
926 # Obsolete; use --with-gas.
929 -help | --help | --hel | --he | -h)
931 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
932 ac_init_help=recursive ;;
933 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
934 ac_init_help=short ;;
936 -host | --host | --hos | --ho)
937 ac_prev=host_alias ;;
938 -host=* | --host=* | --hos=* | --ho=*)
939 host_alias=$ac_optarg ;;
941 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
943 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
945 htmldir=$ac_optarg ;;
947 -includedir | --includedir | --includedi | --included | --include \
948 | --includ | --inclu | --incl | --inc)
949 ac_prev=includedir ;;
950 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
951 | --includ=* | --inclu=* | --incl=* | --inc=*)
952 includedir=$ac_optarg ;;
954 -infodir | --infodir | --infodi | --infod | --info | --inf)
956 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
957 infodir=$ac_optarg ;;
959 -libdir | --libdir | --libdi | --libd)
961 -libdir=* | --libdir=* | --libdi=* | --libd=*)
964 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
965 | --libexe | --libex | --libe)
966 ac_prev=libexecdir ;;
967 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
968 | --libexe=* | --libex=* | --libe=*)
969 libexecdir=$ac_optarg ;;
971 -localedir | --localedir | --localedi | --localed | --locale)
973 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
974 localedir=$ac_optarg ;;
976 -localstatedir | --localstatedir | --localstatedi | --localstated \
977 | --localstate | --localstat | --localsta | --localst | --locals)
978 ac_prev=localstatedir ;;
979 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
980 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
981 localstatedir=$ac_optarg ;;
983 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
985 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
989 # Obsolete; use --without-fp.
992 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
993 | --no-cr | --no-c | -n)
996 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
997 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1000 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1001 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1002 | --oldin | --oldi | --old | --ol | --o)
1003 ac_prev=oldincludedir ;;
1004 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1005 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1006 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1007 oldincludedir=$ac_optarg ;;
1009 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1011 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1012 prefix=$ac_optarg ;;
1014 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1015 | --program-pre | --program-pr | --program-p)
1016 ac_prev=program_prefix ;;
1017 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1018 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1019 program_prefix=$ac_optarg ;;
1021 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1022 | --program-suf | --program-su | --program-s)
1023 ac_prev=program_suffix ;;
1024 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1025 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1026 program_suffix=$ac_optarg ;;
1028 -program-transform-name | --program-transform-name \
1029 | --program-transform-nam | --program-transform-na \
1030 | --program-transform-n | --program-transform- \
1031 | --program-transform | --program-transfor \
1032 | --program-transfo | --program-transf \
1033 | --program-trans | --program-tran \
1034 | --progr-tra | --program-tr | --program-t)
1035 ac_prev=program_transform_name ;;
1036 -program-transform-name=* | --program-transform-name=* \
1037 | --program-transform-nam=* | --program-transform-na=* \
1038 | --program-transform-n=* | --program-transform-=* \
1039 | --program-transform=* | --program-transfor=* \
1040 | --program-transfo=* | --program-transf=* \
1041 | --program-trans=* | --program-tran=* \
1042 | --progr-tra=* | --program-tr=* | --program-t=*)
1043 program_transform_name=$ac_optarg ;;
1045 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1047 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1048 pdfdir=$ac_optarg ;;
1050 -psdir | --psdir | --psdi | --psd | --ps)
1052 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1056 | -silent | --silent | --silen | --sile | --sil)
1059 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1061 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1063 sbindir=$ac_optarg ;;
1065 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1066 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1067 | --sharedst | --shareds | --shared | --share | --shar \
1069 ac_prev=sharedstatedir ;;
1070 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1071 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1072 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1074 sharedstatedir=$ac_optarg ;;
1076 -site | --site | --sit)
1078 -site=* | --site=* | --sit=*)
1081 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1083 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1084 srcdir=$ac_optarg ;;
1086 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1087 | --syscon | --sysco | --sysc | --sys | --sy)
1088 ac_prev=sysconfdir ;;
1089 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1090 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1091 sysconfdir=$ac_optarg ;;
1093 -target | --target | --targe | --targ | --tar | --ta | --t)
1094 ac_prev=target_alias ;;
1095 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1096 target_alias=$ac_optarg ;;
1098 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1101 -version | --version | --versio | --versi | --vers | -V)
1102 ac_init_version=: ;;
1105 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108 as_fn_error $? "invalid package name: $ac_useropt"
1109 ac_useropt_orig=$ac_useropt
1110 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111 case $ac_user_opts in
1115 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1116 ac_unrecognized_sep=', ';;
1118 eval with_$ac_useropt=\$ac_optarg ;;
1120 -without-* | --without-*)
1121 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124 as_fn_error $? "invalid package name: $ac_useropt"
1125 ac_useropt_orig=$ac_useropt
1126 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1132 ac_unrecognized_sep=', ';;
1134 eval with_$ac_useropt=no ;;
1137 # Obsolete; use --with-x.
1140 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1141 | --x-incl | --x-inc | --x-in | --x-i)
1142 ac_prev=x_includes ;;
1143 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1144 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1145 x_includes=$ac_optarg ;;
1147 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1148 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1149 ac_prev=x_libraries ;;
1150 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1151 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1152 x_libraries=$ac_optarg ;;
1154 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1155 Try \`$0 --help' for more information"
1159 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1160 # Reject names that are not valid shell variable names.
1161 case $ac_envvar in #(
1162 '' | [0-9]* | *[!_$as_cr_alnum]* )
1163 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1165 eval $ac_envvar=\$ac_optarg
1166 export $ac_envvar ;;
1169 # FIXME: should be removed in autoconf 3.0.
1170 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1171 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1172 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1173 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1179 if test -n "$ac_prev"; then
1180 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1181 as_fn_error $? "missing argument to $ac_option"
1184 if test -n "$ac_unrecognized_opts"; then
1185 case $enable_option_checking in
1187 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1188 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1192 # Check all directory arguments for consistency.
1193 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1194 datadir sysconfdir sharedstatedir localstatedir includedir \
1195 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1196 libdir localedir mandir
1198 eval ac_val=\$$ac_var
1199 # Remove trailing slashes.
1202 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1203 eval $ac_var=\$ac_val;;
1205 # Be sure to have absolute directory names.
1207 [\\/$]* | ?:[\\/]* ) continue;;
1208 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1210 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1213 # There might be people who depend on the old broken behavior: `$host'
1214 # used to hold the argument of --host etc.
1215 # FIXME: To remove some day.
1218 target=$target_alias
1220 # FIXME: To remove some day.
1221 if test "x$host_alias" != x; then
1222 if test "x$build_alias" = x; then
1223 cross_compiling=maybe
1224 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1225 If a cross compiler is detected then cross compile mode will be used" >&2
1226 elif test "x$build_alias" != "x$host_alias"; then
1232 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1234 test "$silent" = yes && exec 6>/dev/null
1237 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1238 ac_ls_di=`ls -di .` &&
1239 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1240 as_fn_error $? "working directory cannot be determined"
1241 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1242 as_fn_error $? "pwd does not report name of working directory"
1245 # Find the source files, if location was not specified.
1246 if test -z "$srcdir"; then
1247 ac_srcdir_defaulted=yes
1248 # Try the directory containing this script, then the parent directory.
1249 ac_confdir=`$as_dirname -- "$as_myself" ||
1250 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1251 X"$as_myself" : 'X\(//\)[^/]' \| \
1252 X"$as_myself" : 'X\(//\)$' \| \
1253 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1254 $as_echo X"$as_myself" |
1255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1273 if test ! -r "$srcdir/$ac_unique_file"; then
1277 ac_srcdir_defaulted=no
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1280 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1281 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1283 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1285 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1287 # When building in place, set srcdir=.
1288 if test "$ac_abs_confdir" = "$ac_pwd"; then
1291 # Remove unnecessary trailing slashes from srcdir.
1292 # Double slashes in file names in object file debugging info
1293 # mess up M-x gdb in Emacs.
1295 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1297 for ac_var in $ac_precious_vars; do
1298 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1299 eval ac_env_${ac_var}_value=\$${ac_var}
1300 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1301 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1305 # Report the --help message.
1307 if test "$ac_init_help" = "long"; then
1308 # Omit some internal or obsolete options to make the list less imposing.
1309 # This message is too long to be a string in the A/UX 3.1 sh.
1311 \`configure' configures CTSim 5.2.0 to adapt to many kinds of systems.
1313 Usage: $0 [OPTION]... [VAR=VALUE]...
1315 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1316 VAR=VALUE. See below for descriptions of some of the useful variables.
1318 Defaults for the options are specified in brackets.
1321 -h, --help display this help and exit
1322 --help=short display options specific to this package
1323 --help=recursive display the short help of all the included packages
1324 -V, --version display version information and exit
1325 -q, --quiet, --silent do not print \`checking ...' messages
1326 --cache-file=FILE cache test results in FILE [disabled]
1327 -C, --config-cache alias for \`--cache-file=config.cache'
1328 -n, --no-create do not create output files
1329 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1331 Installation directories:
1332 --prefix=PREFIX install architecture-independent files in PREFIX
1333 [$ac_default_prefix]
1334 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1337 By default, \`make install' will install all the files in
1338 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1339 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1340 for instance \`--prefix=\$HOME'.
1342 For better control, use the options below.
1344 Fine tuning of the installation directories:
1345 --bindir=DIR user executables [EPREFIX/bin]
1346 --sbindir=DIR system admin executables [EPREFIX/sbin]
1347 --libexecdir=DIR program executables [EPREFIX/libexec]
1348 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1349 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1350 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1351 --libdir=DIR object code libraries [EPREFIX/lib]
1352 --includedir=DIR C header files [PREFIX/include]
1353 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1354 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1355 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1356 --infodir=DIR info documentation [DATAROOTDIR/info]
1357 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1358 --mandir=DIR man documentation [DATAROOTDIR/man]
1359 --docdir=DIR documentation root [DATAROOTDIR/doc/ctsim]
1360 --htmldir=DIR html documentation [DOCDIR]
1361 --dvidir=DIR dvi documentation [DOCDIR]
1362 --pdfdir=DIR pdf documentation [DOCDIR]
1363 --psdir=DIR ps documentation [DOCDIR]
1369 --program-prefix=PREFIX prepend PREFIX to installed program names
1370 --program-suffix=SUFFIX append SUFFIX to installed program names
1371 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1374 --x-includes=DIR X include files are in DIR
1375 --x-libraries=DIR X library files are in DIR
1378 --build=BUILD configure for building on BUILD [guessed]
1379 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1383 if test -n "$ac_init_help"; then
1384 case $ac_init_help in
1385 short | recursive ) echo "Configuration of CTSim 5.2.0:";;
1390 --disable-option-checking ignore unrecognized --enable/--with options
1391 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1392 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1393 --enable-maintainer-mode enable make rules and dependencies not useful
1394 (and sometimes confusing) to the casual installer
1395 --disable-dependency-tracking speeds up one-time build
1396 --enable-dependency-tracking do not reject slow dependency extractors
1397 --enable-debug Turn on debugging
1398 --enable-verbose-warnings
1399 Enable verbose compiler warnings.
1401 Enable static executables.
1402 --enable-dmalloc Use dmalloc memory allocation
1403 --enable-efence Use ElectricFence memory allocation
1406 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1407 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1408 --with-lam=PATH Set path of LAM MPI
1409 --with-ctn=PATH Set path of CTN DICOM library
1410 --with-mcpu=CPU Set name of CPU for gcc -mcpu
1411 --with-cgibin-dir=PATH Set path of CGI binaries directory
1412 --with-cgibin-url=PATH Set URL path of CGI binaries
1413 --with-webdata-dir=PATH Set path of webdata
1414 --with-webdata-url=PATH Set URL path of webdata
1415 --with-html-dir=PATH Set directory of html files
1416 --with-x use the X Window System
1418 Some influential environment variables:
1419 CC C compiler command
1420 CFLAGS C compiler flags
1421 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1422 nonstandard directory <lib dir>
1423 LIBS libraries to pass to the linker, e.g. -l<library>
1424 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1425 you have headers in a nonstandard directory <include dir>
1426 CXX C++ compiler command
1427 CXXFLAGS C++ compiler flags
1429 XMKMF Path to xmkmf, Makefile generator for X Window System
1431 Use these variables to override the choices made by `configure' or to help
1432 it to find libraries and programs with nonstandard names/locations.
1434 Report bugs to <ctsim-users@kpe.io>.
1435 CTSim home page: <http://www.ctsim.org/>.
1440 if test "$ac_init_help" = "recursive"; then
1441 # If there are subdirs, report their specific --help.
1442 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1443 test -d "$ac_dir" ||
1444 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1449 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1451 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1452 # A ".." for each directory in $ac_dir_suffix.
1453 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1454 case $ac_top_builddir_sub in
1455 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1456 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1459 ac_abs_top_builddir=$ac_pwd
1460 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1461 # for backward compatibility:
1462 ac_top_builddir=$ac_top_build_prefix
1465 .) # We are building in place.
1467 ac_top_srcdir=$ac_top_builddir_sub
1468 ac_abs_top_srcdir=$ac_pwd ;;
1469 [\\/]* | ?:[\\/]* ) # Absolute name.
1470 ac_srcdir=$srcdir$ac_dir_suffix;
1471 ac_top_srcdir=$srcdir
1472 ac_abs_top_srcdir=$srcdir ;;
1474 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1475 ac_top_srcdir=$ac_top_build_prefix$srcdir
1476 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1478 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1480 cd "$ac_dir" || { ac_status=$?; continue; }
1481 # Check for guested configure.
1482 if test -f "$ac_srcdir/configure.gnu"; then
1484 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1485 elif test -f "$ac_srcdir/configure"; then
1487 $SHELL "$ac_srcdir/configure" --help=recursive
1489 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1491 cd "$ac_pwd" || { ac_status=$?; break; }
1495 test -n "$ac_init_help" && exit $ac_status
1496 if $ac_init_version; then
1498 CTSim configure 5.2.0
1499 generated by GNU Autoconf 2.67
1501 Copyright (C) 2010 Free Software Foundation, Inc.
1502 This configure script is free software; the Free Software Foundation
1503 gives unlimited permission to copy, distribute and modify it.
1508 ## ------------------------ ##
1509 ## Autoconf initialization. ##
1510 ## ------------------------ ##
1512 # ac_fn_c_try_compile LINENO
1513 # --------------------------
1514 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1515 ac_fn_c_try_compile ()
1517 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1518 rm -f conftest.$ac_objext
1519 if { { ac_try="$ac_compile"
1521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1522 *) ac_try_echo=$ac_try;;
1524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1525 $as_echo "$ac_try_echo"; } >&5
1526 (eval "$ac_compile") 2>conftest.err
1528 if test -s conftest.err; then
1529 grep -v '^ *+' conftest.err >conftest.er1
1530 cat conftest.er1 >&5
1531 mv -f conftest.er1 conftest.err
1533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1534 test $ac_status = 0; } && {
1535 test -z "$ac_c_werror_flag" ||
1536 test ! -s conftest.err
1537 } && test -s conftest.$ac_objext; then :
1540 $as_echo "$as_me: failed program was:" >&5
1541 sed 's/^/| /' conftest.$ac_ext >&5
1545 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1546 as_fn_set_status $ac_retval
1548 } # ac_fn_c_try_compile
1550 # ac_fn_cxx_try_compile LINENO
1551 # ----------------------------
1552 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1553 ac_fn_cxx_try_compile ()
1555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556 rm -f conftest.$ac_objext
1557 if { { ac_try="$ac_compile"
1559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560 *) ac_try_echo=$ac_try;;
1562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563 $as_echo "$ac_try_echo"; } >&5
1564 (eval "$ac_compile") 2>conftest.err
1566 if test -s conftest.err; then
1567 grep -v '^ *+' conftest.err >conftest.er1
1568 cat conftest.er1 >&5
1569 mv -f conftest.er1 conftest.err
1571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572 test $ac_status = 0; } && {
1573 test -z "$ac_cxx_werror_flag" ||
1574 test ! -s conftest.err
1575 } && test -s conftest.$ac_objext; then :
1578 $as_echo "$as_me: failed program was:" >&5
1579 sed 's/^/| /' conftest.$ac_ext >&5
1583 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1584 as_fn_set_status $ac_retval
1586 } # ac_fn_cxx_try_compile
1588 # ac_fn_c_try_run LINENO
1589 # ----------------------
1590 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1591 # that executables *can* be run.
1594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595 if { { ac_try="$ac_link"
1597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1598 *) ac_try_echo=$ac_try;;
1600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1601 $as_echo "$ac_try_echo"; } >&5
1602 (eval "$ac_link") 2>&5
1604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1605 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1606 { { case "(($ac_try" in
1607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608 *) ac_try_echo=$ac_try;;
1610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611 $as_echo "$ac_try_echo"; } >&5
1612 (eval "$ac_try") 2>&5
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615 test $ac_status = 0; }; }; then :
1618 $as_echo "$as_me: program exited with status $ac_status" >&5
1619 $as_echo "$as_me: failed program was:" >&5
1620 sed 's/^/| /' conftest.$ac_ext >&5
1622 ac_retval=$ac_status
1624 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1625 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1626 as_fn_set_status $ac_retval
1630 # ac_fn_c_try_cpp LINENO
1631 # ----------------------
1632 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636 if { { ac_try="$ac_cpp conftest.$ac_ext"
1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1645 if test -s conftest.err; then
1646 grep -v '^ *+' conftest.err >conftest.er1
1647 cat conftest.er1 >&5
1648 mv -f conftest.er1 conftest.err
1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651 test $ac_status = 0; } > conftest.i && {
1652 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1653 test ! -s conftest.err
1657 $as_echo "$as_me: failed program was:" >&5
1658 sed 's/^/| /' conftest.$ac_ext >&5
1662 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1663 as_fn_set_status $ac_retval
1667 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1668 # -------------------------------------------------------
1669 # Tests whether HEADER exists and can be compiled using the include files in
1670 # INCLUDES, setting the cache variable VAR accordingly.
1671 ac_fn_c_check_header_compile ()
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675 $as_echo_n "checking for $2... " >&6; }
1676 if eval "test \"\${$3+set}\"" = set; then :
1677 $as_echo_n "(cached) " >&6
1679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1680 /* end confdefs.h. */
1684 if ac_fn_c_try_compile "$LINENO"; then :
1689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1693 $as_echo "$ac_res" >&6; }
1694 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1696 } # ac_fn_c_check_header_compile
1698 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1699 # --------------------------------------------
1700 # Tries to find the compile-time value of EXPR in a program that includes
1701 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1703 ac_fn_c_compute_int ()
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 if test "$cross_compiling" = yes; then
1707 # Depending upon the size, compute the lo and hi bounds.
1708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1709 /* end confdefs.h. */
1714 static int test_array [1 - 2 * !(($2) >= 0)];
1721 if ac_fn_c_try_compile "$LINENO"; then :
1724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1725 /* end confdefs.h. */
1730 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1737 if ac_fn_c_try_compile "$LINENO"; then :
1738 ac_hi=$ac_mid; break
1740 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1741 if test $ac_lo -le $ac_mid; then
1745 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1751 /* end confdefs.h. */
1756 static int test_array [1 - 2 * !(($2) < 0)];
1763 if ac_fn_c_try_compile "$LINENO"; then :
1766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1767 /* end confdefs.h. */
1772 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1779 if ac_fn_c_try_compile "$LINENO"; then :
1780 ac_lo=$ac_mid; break
1782 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1783 if test $ac_mid -le $ac_hi; then
1787 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1797 # Binary search between lo and hi bounds.
1798 while test "x$ac_lo" != "x$ac_hi"; do
1799 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1806 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1813 if ac_fn_c_try_compile "$LINENO"; then :
1816 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1821 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826 /* end confdefs.h. */
1828 static long int longval () { return $2; }
1829 static unsigned long int ulongval () { return $2; }
1836 FILE *f = fopen ("conftest.val", "w");
1841 long int i = longval ();
1844 fprintf (f, "%ld", i);
1848 unsigned long int i = ulongval ();
1851 fprintf (f, "%lu", i);
1853 /* Do not output a trailing newline, as this causes \r\n confusion
1854 on some platforms. */
1855 return ferror (f) || fclose (f) != 0;
1861 if ac_fn_c_try_run "$LINENO"; then :
1862 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1866 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1867 conftest.$ac_objext conftest.beam conftest.$ac_ext
1871 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1872 as_fn_set_status $ac_retval
1874 } # ac_fn_c_compute_int
1876 # ac_fn_c_try_link LINENO
1877 # -----------------------
1878 # Try to link conftest.$ac_ext, and return whether this succeeded.
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 rm -f conftest.$ac_objext conftest$ac_exeext
1883 if { { ac_try="$ac_link"
1885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1886 *) ac_try_echo=$ac_try;;
1888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1889 $as_echo "$ac_try_echo"; } >&5
1890 (eval "$ac_link") 2>conftest.err
1892 if test -s conftest.err; then
1893 grep -v '^ *+' conftest.err >conftest.er1
1894 cat conftest.er1 >&5
1895 mv -f conftest.er1 conftest.err
1897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1898 test $ac_status = 0; } && {
1899 test -z "$ac_c_werror_flag" ||
1900 test ! -s conftest.err
1901 } && test -s conftest$ac_exeext && {
1902 test "$cross_compiling" = yes ||
1903 $as_test_x conftest$ac_exeext
1907 $as_echo "$as_me: failed program was:" >&5
1908 sed 's/^/| /' conftest.$ac_ext >&5
1912 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1913 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1914 # interfere with the next link command; also delete a directory that is
1915 # left behind by Apple's compiler. We do this before executing the actions.
1916 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1917 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1918 as_fn_set_status $ac_retval
1920 } # ac_fn_c_try_link
1922 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1923 # -------------------------------------------------------
1924 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1925 # the include files in INCLUDES and setting the cache variable VAR
1927 ac_fn_c_check_header_mongrel ()
1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930 if eval "test \"\${$3+set}\"" = set; then :
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1932 $as_echo_n "checking for $2... " >&6; }
1933 if eval "test \"\${$3+set}\"" = set; then :
1934 $as_echo_n "(cached) " >&6
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1938 $as_echo "$ac_res" >&6; }
1940 # Is the header compilable?
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1942 $as_echo_n "checking $2 usability... " >&6; }
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1948 if ac_fn_c_try_compile "$LINENO"; then :
1949 ac_header_compiler=yes
1951 ac_header_compiler=no
1953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1955 $as_echo "$ac_header_compiler" >&6; }
1957 # Is the header present?
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1959 $as_echo_n "checking $2 presence... " >&6; }
1960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1961 /* end confdefs.h. */
1964 if ac_fn_c_try_cpp "$LINENO"; then :
1965 ac_header_preproc=yes
1967 ac_header_preproc=no
1969 rm -f conftest.err conftest.i conftest.$ac_ext
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1971 $as_echo "$ac_header_preproc" >&6; }
1973 # So? What about this header?
1974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1977 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1979 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1983 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1985 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1987 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1989 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1991 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1992 ( $as_echo "## --------------------------------- ##
1993 ## Report this to ctsim-users@kpe.io ##
1994 ## --------------------------------- ##"
1995 ) | sed "s/^/$as_me: WARNING: /" >&2
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1999 $as_echo_n "checking for $2... " >&6; }
2000 if eval "test \"\${$3+set}\"" = set; then :
2001 $as_echo_n "(cached) " >&6
2003 eval "$3=\$ac_header_compiler"
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007 $as_echo "$ac_res" >&6; }
2009 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2011 } # ac_fn_c_check_header_mongrel
2013 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2014 # -------------------------------------------
2015 # Tests whether TYPE exists after having included INCLUDES, setting cache
2016 # variable VAR accordingly.
2017 ac_fn_c_check_type ()
2019 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2021 $as_echo_n "checking for $2... " >&6; }
2022 if eval "test \"\${$3+set}\"" = set; then :
2023 $as_echo_n "(cached) " >&6
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2038 if ac_fn_c_try_compile "$LINENO"; then :
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h. */
2051 if ac_fn_c_try_compile "$LINENO"; then :
2056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2062 $as_echo "$ac_res" >&6; }
2063 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2065 } # ac_fn_c_check_type
2067 # ac_fn_c_check_func LINENO FUNC VAR
2068 # ----------------------------------
2069 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2070 ac_fn_c_check_func ()
2072 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2074 $as_echo_n "checking for $2... " >&6; }
2075 if eval "test \"\${$3+set}\"" = set; then :
2076 $as_echo_n "(cached) " >&6
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h. */
2080 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2082 #define $2 innocuous_$2
2084 /* System header to define __stub macros and hopefully few prototypes,
2085 which can conflict with char $2 (); below.
2086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2087 <limits.h> exists even on freestanding compilers. */
2090 # include <limits.h>
2092 # include <assert.h>
2097 /* Override any GCC internal prototype to avoid an error.
2098 Use char because int might match the return type of a GCC
2099 builtin and then its argument prototype would still apply. */
2104 /* The GNU C library defines this for functions which it implements
2105 to always fail with ENOSYS. Some functions are actually named
2106 something starting with __ and the normal name is an alias. */
2107 #if defined __stub_$2 || defined __stub___$2
2119 if ac_fn_c_try_link "$LINENO"; then :
2124 rm -f core conftest.err conftest.$ac_objext \
2125 conftest$ac_exeext conftest.$ac_ext
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2129 $as_echo "$ac_res" >&6; }
2130 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2132 } # ac_fn_c_check_func
2133 cat >config.log <<_ACEOF
2134 This file contains any messages produced by compilers while
2135 running configure, to aid debugging if configure makes a mistake.
2137 It was created by CTSim $as_me 5.2.0, which was
2138 generated by GNU Autoconf 2.67. Invocation command line was
2150 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2151 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2152 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2153 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2154 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2156 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2157 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2159 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2160 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2161 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2162 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2163 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2164 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2165 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2173 test -z "$as_dir" && as_dir=.
2174 $as_echo "PATH: $as_dir"
2190 # Keep a trace of the command line.
2191 # Strip out --no-create and --no-recursion so they do not pile up.
2192 # Strip out --silent because we don't want to record it for future runs.
2193 # Also quote any args containing shell meta-characters.
2194 # Make two passes to allow for proper duplicate-argument suppression.
2198 ac_must_keep_next=false
2204 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2205 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2206 | -silent | --silent | --silen | --sile | --sil)
2209 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2212 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2214 as_fn_append ac_configure_args1 " '$ac_arg'"
2215 if test $ac_must_keep_next = true; then
2216 ac_must_keep_next=false # Got value, back to normal.
2219 *=* | --config-cache | -C | -disable-* | --disable-* \
2220 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2221 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2222 | -with-* | --with-* | -without-* | --without-* | --x)
2223 case "$ac_configure_args0 " in
2224 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2227 -* ) ac_must_keep_next=true ;;
2230 as_fn_append ac_configure_args " '$ac_arg'"
2235 { ac_configure_args0=; unset ac_configure_args0;}
2236 { ac_configure_args1=; unset ac_configure_args1;}
2238 # When interrupted or exit'd, cleanup temporary files, and complete
2239 # config.log. We remove comments because anyway the quotes in there
2240 # would cause problems or look ugly.
2241 # WARNING: Use '\'' to represent an apostrophe within the trap.
2242 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2243 trap 'exit_status=$?
2244 # Save into config.log some information that might help in debugging.
2248 $as_echo "## ---------------- ##
2249 ## Cache variables. ##
2250 ## ---------------- ##"
2252 # The following way of writing the cache mishandles newlines in values,
2254 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2255 eval ac_val=\$$ac_var
2259 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2260 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2263 _ | IFS | as_nl) ;; #(
2264 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2265 *) { eval $ac_var=; unset $ac_var;} ;;
2270 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2271 *${as_nl}ac_space=\ *)
2273 "s/'\''/'\''\\\\'\'''\''/g;
2274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2277 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2284 $as_echo "## ----------------- ##
2285 ## Output variables. ##
2286 ## ----------------- ##"
2288 for ac_var in $ac_subst_vars
2290 eval ac_val=\$$ac_var
2292 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2294 $as_echo "$ac_var='\''$ac_val'\''"
2298 if test -n "$ac_subst_files"; then
2299 $as_echo "## ------------------- ##
2300 ## File substitutions. ##
2301 ## ------------------- ##"
2303 for ac_var in $ac_subst_files
2305 eval ac_val=\$$ac_var
2307 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2309 $as_echo "$ac_var='\''$ac_val'\''"
2314 if test -s confdefs.h; then
2315 $as_echo "## ----------- ##
2322 test "$ac_signal" != 0 &&
2323 $as_echo "$as_me: caught signal $ac_signal"
2324 $as_echo "$as_me: exit $exit_status"
2326 rm -f core *.core core.conftest.* &&
2327 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2330 for ac_signal in 1 2 13 15; do
2331 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2335 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2336 rm -f -r conftest* confdefs.h
2338 $as_echo "/* confdefs.h */" > confdefs.h
2340 # Predefined preprocessor variables.
2342 cat >>confdefs.h <<_ACEOF
2343 #define PACKAGE_NAME "$PACKAGE_NAME"
2346 cat >>confdefs.h <<_ACEOF
2347 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2350 cat >>confdefs.h <<_ACEOF
2351 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2354 cat >>confdefs.h <<_ACEOF
2355 #define PACKAGE_STRING "$PACKAGE_STRING"
2358 cat >>confdefs.h <<_ACEOF
2359 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2362 cat >>confdefs.h <<_ACEOF
2363 #define PACKAGE_URL "$PACKAGE_URL"
2367 # Let the site file select an alternate cache file if it wants to.
2368 # Prefer an explicitly selected file to automatically selected ones.
2371 if test -n "$CONFIG_SITE"; then
2372 # We do not want a PATH search for config.site.
2373 case $CONFIG_SITE in #((
2374 -*) ac_site_file1=./$CONFIG_SITE;;
2375 */*) ac_site_file1=$CONFIG_SITE;;
2376 *) ac_site_file1=./$CONFIG_SITE;;
2378 elif test "x$prefix" != xNONE; then
2379 ac_site_file1=$prefix/share/config.site
2380 ac_site_file2=$prefix/etc/config.site
2382 ac_site_file1=$ac_default_prefix/share/config.site
2383 ac_site_file2=$ac_default_prefix/etc/config.site
2385 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2387 test "x$ac_site_file" = xNONE && continue
2388 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2390 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2391 sed 's/^/| /' "$ac_site_file" >&5
2393 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2395 as_fn_error $? "failed to load site script $ac_site_file
2396 See \`config.log' for more details" "$LINENO" 5 ; }
2400 if test -r "$cache_file"; then
2401 # Some versions of bash will fail to source /dev/null (special files
2402 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2403 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2405 $as_echo "$as_me: loading cache $cache_file" >&6;}
2407 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2408 *) . "./$cache_file";;
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2413 $as_echo "$as_me: creating cache $cache_file" >&6;}
2417 # Check that the precious variables saved in the cache have kept the same
2419 ac_cache_corrupted=false
2420 for ac_var in $ac_precious_vars; do
2421 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2422 eval ac_new_set=\$ac_env_${ac_var}_set
2423 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2424 eval ac_new_val=\$ac_env_${ac_var}_value
2425 case $ac_old_set,$ac_new_set in
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2428 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2429 ac_cache_corrupted=: ;;
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2432 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2433 ac_cache_corrupted=: ;;
2436 if test "x$ac_old_val" != "x$ac_new_val"; then
2437 # differences in whitespace do not lead to failure.
2438 ac_old_val_w=`echo x $ac_old_val`
2439 ac_new_val_w=`echo x $ac_new_val`
2440 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2442 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2443 ac_cache_corrupted=:
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2446 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2447 eval $ac_var=\$ac_old_val
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2450 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2452 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2455 # Pass precious variables to config.status.
2456 if test "$ac_new_set" = set; then
2458 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2459 *) ac_arg=$ac_var=$ac_new_val ;;
2461 case " $ac_configure_args " in
2462 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2463 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2467 if $ac_cache_corrupted; then
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2471 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2472 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2474 ## -------------------- ##
2475 ## Main body of script. ##
2476 ## -------------------- ##
2479 ac_cpp='$CPP $CPPFLAGS'
2480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2488 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2489 # Check whether --enable-maintainer-mode was given.
2490 if test "${enable_maintainer_mode+set}" = set; then :
2491 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2493 USE_MAINTAINER_MODE=no
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2497 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2498 if test $USE_MAINTAINER_MODE = yes; then
2499 MAINTAINER_MODE_TRUE=
2500 MAINTAINER_MODE_FALSE='#'
2502 MAINTAINER_MODE_TRUE='#'
2503 MAINTAINER_MODE_FALSE=
2506 MAINT=$MAINTAINER_MODE_TRUE
2509 am__api_version='1.11'
2512 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2513 if test -f "$ac_dir/install-sh"; then
2515 ac_install_sh="$ac_aux_dir/install-sh -c"
2517 elif test -f "$ac_dir/install.sh"; then
2519 ac_install_sh="$ac_aux_dir/install.sh -c"
2521 elif test -f "$ac_dir/shtool"; then
2523 ac_install_sh="$ac_aux_dir/shtool install -c"
2527 if test -z "$ac_aux_dir"; then
2528 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2531 # These three variables are undocumented and unsupported,
2532 # and are intended to be withdrawn in a future Autoconf release.
2533 # They can cause serious problems if a builder's source tree is in a directory
2534 # whose full name contains unusual characters.
2535 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2536 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2537 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2540 # Find a good install program. We prefer a C program (faster),
2541 # so one script is as good as another. But avoid the broken or
2542 # incompatible versions:
2543 # SysV /etc/install, /usr/sbin/install
2544 # SunOS /usr/etc/install
2545 # IRIX /sbin/install
2547 # AmigaOS /C/install, which installs bootblocks on floppy discs
2548 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2549 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2550 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2551 # OS/2's system install, which has a completely different semantic
2552 # ./install, which can be erroneously created by make from ./install.sh.
2553 # Reject install programs that cannot install multiple files.
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2555 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2556 if test -z "$INSTALL"; then
2557 if test "${ac_cv_path_install+set}" = set; then :
2558 $as_echo_n "(cached) " >&6
2560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564 test -z "$as_dir" && as_dir=.
2565 # Account for people who put trailing slashes in PATH elements.
2566 case $as_dir/ in #((
2567 ./ | .// | /[cC]/* | \
2568 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2569 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2572 # OSF1 and SCO ODT 3.0 have their own names for install.
2573 # Don't use installbsd from OSF since it installs stuff as root
2575 for ac_prog in ginstall scoinst install; do
2576 for ac_exec_ext in '' $ac_executable_extensions; do
2577 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2578 if test $ac_prog = install &&
2579 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2580 # AIX install. It has an incompatible calling convention.
2582 elif test $ac_prog = install &&
2583 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2584 # program-specific install script used by HP pwplus--don't use.
2587 rm -rf conftest.one conftest.two conftest.dir
2588 echo one > conftest.one
2589 echo two > conftest.two
2591 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2592 test -s conftest.one && test -s conftest.two &&
2593 test -s conftest.dir/conftest.one &&
2594 test -s conftest.dir/conftest.two
2596 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2609 rm -rf conftest.one conftest.two conftest.dir
2612 if test "${ac_cv_path_install+set}" = set; then
2613 INSTALL=$ac_cv_path_install
2615 # As a last resort, use the slow shell script. Don't cache a
2616 # value for INSTALL within a source directory, because that will
2617 # break other packages using the cache if that directory is
2618 # removed, or if the value is a relative name.
2619 INSTALL=$ac_install_sh
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2623 $as_echo "$INSTALL" >&6; }
2625 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2626 # It thinks the first close brace ends the variable substitution.
2627 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2629 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2631 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2634 $as_echo_n "checking whether build environment is sane... " >&6; }
2637 echo timestamp > conftest.file
2638 # Reject unsafe characters in $srcdir or the absolute working directory
2639 # name. Accept space and tab only in the latter.
2643 *[\\\"\#\$\&\'\`$am_lf]*)
2644 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2647 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2648 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2651 # Do `set' in a subshell so we don't clobber the current shell's
2652 # arguments. Must try -L first in case configure is actually a
2653 # symlink; some systems play weird games with the mod time of symlinks
2654 # (eg FreeBSD returns the mod time of the symlink's containing
2657 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2658 if test "$*" = "X"; then
2660 set X `ls -t "$srcdir/configure" conftest.file`
2663 if test "$*" != "X $srcdir/configure conftest.file" \
2664 && test "$*" != "X conftest.file $srcdir/configure"; then
2666 # If neither matched, then we have a broken ls. This can happen
2667 # if, for instance, CONFIG_SHELL is bash and it inherits a
2668 # broken ls alias from the environment. This has actually
2669 # happened. Such a system could not be considered "sane".
2670 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2671 alias in your environment" "$LINENO" 5
2674 test "$2" = conftest.file
2680 as_fn_error $? "newly created file is older than distributed files!
2681 Check your system clock" "$LINENO" 5
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2684 $as_echo "yes" >&6; }
2685 test "$program_prefix" != NONE &&
2686 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2687 # Use a double $ so make ignores it.
2688 test "$program_suffix" != NONE &&
2689 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2690 # Double any \ or $.
2691 # By default was `s,x,x', remove it if useless.
2692 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2693 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2695 # expand $ac_aux_dir to an absolute path
2696 am_aux_dir=`cd $ac_aux_dir && pwd`
2698 if test x"${MISSING+set}" != xset; then
2701 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2703 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2706 # Use eval to expand $SHELL
2707 if eval "$MISSING --run true"; then
2708 am_missing_run="$MISSING --run "
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2712 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2715 if test x"${install_sh}" != xset; then
2718 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2720 install_sh="\${SHELL} $am_aux_dir/install-sh"
2724 # Installed binaries are usually stripped using `strip' when the user
2725 # run `make install-strip'. However `strip' might not be the right
2726 # tool to use in cross-compilation environments, therefore Automake
2727 # will honor the `STRIP' environment variable to overrule this program.
2728 if test "$cross_compiling" != no; then
2729 if test -n "$ac_tool_prefix"; then
2730 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2731 set dummy ${ac_tool_prefix}strip; ac_word=$2
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2733 $as_echo_n "checking for $ac_word... " >&6; }
2734 if test "${ac_cv_prog_STRIP+set}" = set; then :
2735 $as_echo_n "(cached) " >&6
2737 if test -n "$STRIP"; then
2738 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744 test -z "$as_dir" && as_dir=.
2745 for ac_exec_ext in '' $ac_executable_extensions; do
2746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2747 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2757 STRIP=$ac_cv_prog_STRIP
2758 if test -n "$STRIP"; then
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2760 $as_echo "$STRIP" >&6; }
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2763 $as_echo "no" >&6; }
2768 if test -z "$ac_cv_prog_STRIP"; then
2770 # Extract the first word of "strip", so it can be a program name with args.
2771 set dummy strip; ac_word=$2
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2773 $as_echo_n "checking for $ac_word... " >&6; }
2774 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2775 $as_echo_n "(cached) " >&6
2777 if test -n "$ac_ct_STRIP"; then
2778 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 test -z "$as_dir" && as_dir=.
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2787 ac_cv_prog_ac_ct_STRIP="strip"
2788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2797 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2798 if test -n "$ac_ct_STRIP"; then
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2800 $as_echo "$ac_ct_STRIP" >&6; }
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2803 $as_echo "no" >&6; }
2806 if test "x$ac_ct_STRIP" = x; then
2809 case $cross_compiling:$ac_tool_warned in
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2813 ac_tool_warned=yes ;;
2818 STRIP="$ac_cv_prog_STRIP"
2822 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2825 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2826 if test -z "$MKDIR_P"; then
2827 if test "${ac_cv_path_mkdir+set}" = set; then :
2828 $as_echo_n "(cached) " >&6
2830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2834 test -z "$as_dir" && as_dir=.
2835 for ac_prog in mkdir gmkdir; do
2836 for ac_exec_ext in '' $ac_executable_extensions; do
2837 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2838 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2839 'mkdir (GNU coreutils) '* | \
2840 'mkdir (coreutils) '* | \
2841 'mkdir (fileutils) '4.1*)
2842 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2852 test -d ./--version && rmdir ./--version
2853 if test "${ac_cv_path_mkdir+set}" = set; then
2854 MKDIR_P="$ac_cv_path_mkdir -p"
2856 # As a last resort, use the slow shell script. Don't cache a
2857 # value for MKDIR_P within a source directory, because that will
2858 # break other packages using the cache if that directory is
2859 # removed, or if the value is a relative name.
2860 MKDIR_P="$ac_install_sh -d"
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2864 $as_echo "$MKDIR_P" >&6; }
2868 [\\/$]* | ?:[\\/]*) ;;
2869 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2872 for ac_prog in gawk mawk nawk awk
2874 # Extract the first word of "$ac_prog", so it can be a program name with args.
2875 set dummy $ac_prog; ac_word=$2
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2877 $as_echo_n "checking for $ac_word... " >&6; }
2878 if test "${ac_cv_prog_AWK+set}" = set; then :
2879 $as_echo_n "(cached) " >&6
2881 if test -n "$AWK"; then
2882 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2891 ac_cv_prog_AWK="$ac_prog"
2892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2902 if test -n "$AWK"; then
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2904 $as_echo "$AWK" >&6; }
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907 $as_echo "no" >&6; }
2911 test -n "$AWK" && break
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2915 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2917 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2918 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2919 $as_echo_n "(cached) " >&6
2921 cat >conftest.make <<\_ACEOF
2924 @echo '@@@%%%=$(MAKE)=@@@%%%'
2926 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2927 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2929 eval ac_cv_prog_make_${ac_make}_set=yes;;
2931 eval ac_cv_prog_make_${ac_make}_set=no;;
2935 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2937 $as_echo "yes" >&6; }
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 $as_echo "no" >&6; }
2942 SET_MAKE="MAKE=${MAKE-make}"
2945 rm -rf .tst 2>/dev/null
2946 mkdir .tst 2>/dev/null
2947 if test -d .tst; then
2952 rmdir .tst 2>/dev/null
2954 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2955 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2956 # is not polluted with repeated "-I."
2957 am__isrc=' -I$(srcdir)'
2958 # test to see if srcdir already configured
2959 if test -f $srcdir/config.status; then
2960 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2964 # test whether we have cygpath
2965 if test -z "$CYGPATH_W"; then
2966 if (cygpath --version) >/dev/null 2>/dev/null; then
2967 CYGPATH_W='cygpath -w'
2974 # Define the identity of the package.
2979 cat >>confdefs.h <<_ACEOF
2980 #define PACKAGE "$PACKAGE"
2984 cat >>confdefs.h <<_ACEOF
2985 #define VERSION "$VERSION"
2988 # Some tools Automake needs.
2990 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2993 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2996 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2999 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3002 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3004 # We need awk for the "check" target. The system "awk" is bad on
3006 # Always define AMTAR for backward compatibility.
3008 AMTAR=${AMTAR-"${am_missing_run}tar"}
3010 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3016 ac_config_headers="$ac_config_headers config.h"
3019 for ac_prog in gawk mawk nawk awk
3021 # Extract the first word of "$ac_prog", so it can be a program name with args.
3022 set dummy $ac_prog; ac_word=$2
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3024 $as_echo_n "checking for $ac_word... " >&6; }
3025 if test "${ac_cv_prog_AWK+set}" = set; then :
3026 $as_echo_n "(cached) " >&6
3028 if test -n "$AWK"; then
3029 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035 test -z "$as_dir" && as_dir=.
3036 for ac_exec_ext in '' $ac_executable_extensions; do
3037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3038 ac_cv_prog_AWK="$ac_prog"
3039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 if test -n "$AWK"; then
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3051 $as_echo "$AWK" >&6; }
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054 $as_echo "no" >&6; }
3058 test -n "$AWK" && break
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3063 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3065 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3066 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3067 $as_echo_n "(cached) " >&6
3069 cat >conftest.make <<\_ACEOF
3072 @echo '@@@%%%=$(MAKE)=@@@%%%'
3074 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3075 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3077 eval ac_cv_prog_make_${ac_make}_set=yes;;
3079 eval ac_cv_prog_make_${ac_make}_set=no;;
3083 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3085 $as_echo "yes" >&6; }
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3089 $as_echo "no" >&6; }
3090 SET_MAKE="MAKE=${MAKE-make}"
3093 if test -n "$ac_tool_prefix"; then
3094 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3095 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3097 $as_echo_n "checking for $ac_word... " >&6; }
3098 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3099 $as_echo_n "(cached) " >&6
3101 if test -n "$RANLIB"; then
3102 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108 test -z "$as_dir" && as_dir=.
3109 for ac_exec_ext in '' $ac_executable_extensions; do
3110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3111 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 RANLIB=$ac_cv_prog_RANLIB
3122 if test -n "$RANLIB"; then
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3124 $as_echo "$RANLIB" >&6; }
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127 $as_echo "no" >&6; }
3132 if test -z "$ac_cv_prog_RANLIB"; then
3133 ac_ct_RANLIB=$RANLIB
3134 # Extract the first word of "ranlib", so it can be a program name with args.
3135 set dummy ranlib; ac_word=$2
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3137 $as_echo_n "checking for $ac_word... " >&6; }
3138 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3139 $as_echo_n "(cached) " >&6
3141 if test -n "$ac_ct_RANLIB"; then
3142 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 test -z "$as_dir" && as_dir=.
3149 for ac_exec_ext in '' $ac_executable_extensions; do
3150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3151 ac_cv_prog_ac_ct_RANLIB="ranlib"
3152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3161 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3162 if test -n "$ac_ct_RANLIB"; then
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3164 $as_echo "$ac_ct_RANLIB" >&6; }
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3167 $as_echo "no" >&6; }
3170 if test "x$ac_ct_RANLIB" = x; then
3173 case $cross_compiling:$ac_tool_warned in
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3177 ac_tool_warned=yes ;;
3179 RANLIB=$ac_ct_RANLIB
3182 RANLIB="$ac_cv_prog_RANLIB"
3187 ac_cpp='$CPP $CPPFLAGS'
3188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3191 if test -n "$ac_tool_prefix"; then
3192 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3193 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3195 $as_echo_n "checking for $ac_word... " >&6; }
3196 if test "${ac_cv_prog_CC+set}" = set; then :
3197 $as_echo_n "(cached) " >&6
3199 if test -n "$CC"; then
3200 ac_cv_prog_CC="$CC" # Let the user override the test.
3202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206 test -z "$as_dir" && as_dir=.
3207 for ac_exec_ext in '' $ac_executable_extensions; do
3208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3209 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3220 if test -n "$CC"; then
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3222 $as_echo "$CC" >&6; }
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 $as_echo "no" >&6; }
3230 if test -z "$ac_cv_prog_CC"; then
3232 # Extract the first word of "gcc", so it can be a program name with args.
3233 set dummy gcc; ac_word=$2
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3235 $as_echo_n "checking for $ac_word... " >&6; }
3236 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3237 $as_echo_n "(cached) " >&6
3239 if test -n "$ac_ct_CC"; then
3240 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3246 test -z "$as_dir" && as_dir=.
3247 for ac_exec_ext in '' $ac_executable_extensions; do
3248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3249 ac_cv_prog_ac_ct_CC="gcc"
3250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3259 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3260 if test -n "$ac_ct_CC"; then
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3262 $as_echo "$ac_ct_CC" >&6; }
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265 $as_echo "no" >&6; }
3268 if test "x$ac_ct_CC" = x; then
3271 case $cross_compiling:$ac_tool_warned in
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3274 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3275 ac_tool_warned=yes ;;
3283 if test -z "$CC"; then
3284 if test -n "$ac_tool_prefix"; then
3285 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3286 set dummy ${ac_tool_prefix}cc; ac_word=$2
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3288 $as_echo_n "checking for $ac_word... " >&6; }
3289 if test "${ac_cv_prog_CC+set}" = set; then :
3290 $as_echo_n "(cached) " >&6
3292 if test -n "$CC"; then
3293 ac_cv_prog_CC="$CC" # Let the user override the test.
3295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299 test -z "$as_dir" && as_dir=.
3300 for ac_exec_ext in '' $ac_executable_extensions; do
3301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3302 ac_cv_prog_CC="${ac_tool_prefix}cc"
3303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3313 if test -n "$CC"; then
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3315 $as_echo "$CC" >&6; }
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318 $as_echo "no" >&6; }
3324 if test -z "$CC"; then
3325 # Extract the first word of "cc", so it can be a program name with args.
3326 set dummy cc; ac_word=$2
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3328 $as_echo_n "checking for $ac_word... " >&6; }
3329 if test "${ac_cv_prog_CC+set}" = set; then :
3330 $as_echo_n "(cached) " >&6
3332 if test -n "$CC"; then
3333 ac_cv_prog_CC="$CC" # Let the user override the test.
3336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340 test -z "$as_dir" && as_dir=.
3341 for ac_exec_ext in '' $ac_executable_extensions; do
3342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3343 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3344 ac_prog_rejected=yes
3348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3355 if test $ac_prog_rejected = yes; then
3356 # We found a bogon in the path, so make sure we never use it.
3357 set dummy $ac_cv_prog_CC
3359 if test $# != 0; then
3360 # We chose a different compiler from the bogus one.
3361 # However, it has the same basename, so the bogon will be chosen
3362 # first if we set CC to just the basename; use the full file name.
3364 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3370 if test -n "$CC"; then
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3372 $as_echo "$CC" >&6; }
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3375 $as_echo "no" >&6; }
3380 if test -z "$CC"; then
3381 if test -n "$ac_tool_prefix"; then
3382 for ac_prog in cl.exe
3384 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3385 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3387 $as_echo_n "checking for $ac_word... " >&6; }
3388 if test "${ac_cv_prog_CC+set}" = set; then :
3389 $as_echo_n "(cached) " >&6
3391 if test -n "$CC"; then
3392 ac_cv_prog_CC="$CC" # Let the user override the test.
3394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398 test -z "$as_dir" && as_dir=.
3399 for ac_exec_ext in '' $ac_executable_extensions; do
3400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3401 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3412 if test -n "$CC"; then
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3414 $as_echo "$CC" >&6; }
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417 $as_echo "no" >&6; }
3421 test -n "$CC" && break
3424 if test -z "$CC"; then
3426 for ac_prog in cl.exe
3428 # Extract the first word of "$ac_prog", so it can be a program name with args.
3429 set dummy $ac_prog; ac_word=$2
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3431 $as_echo_n "checking for $ac_word... " >&6; }
3432 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3433 $as_echo_n "(cached) " >&6
3435 if test -n "$ac_ct_CC"; then
3436 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442 test -z "$as_dir" && as_dir=.
3443 for ac_exec_ext in '' $ac_executable_extensions; do
3444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3445 ac_cv_prog_ac_ct_CC="$ac_prog"
3446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3455 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3456 if test -n "$ac_ct_CC"; then
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3458 $as_echo "$ac_ct_CC" >&6; }
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3461 $as_echo "no" >&6; }
3465 test -n "$ac_ct_CC" && break
3468 if test "x$ac_ct_CC" = x; then
3471 case $cross_compiling:$ac_tool_warned in
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3475 ac_tool_warned=yes ;;
3484 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3485 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3486 as_fn_error $? "no acceptable C compiler found in \$PATH
3487 See \`config.log' for more details" "$LINENO" 5 ; }
3489 # Provide some information about the compiler.
3490 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3493 for ac_option in --version -v -V -qversion; do
3494 { { ac_try="$ac_compiler $ac_option >&5"
3496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497 *) ac_try_echo=$ac_try;;
3499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3500 $as_echo "$ac_try_echo"; } >&5
3501 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3503 if test -s conftest.err; then
3505 ... rest of stderr output deleted ...
3506 10q' conftest.err >conftest.er1
3507 cat conftest.er1 >&5
3509 rm -f conftest.er1 conftest.err
3510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3511 test $ac_status = 0; }
3514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515 /* end confdefs.h. */
3525 ac_clean_files_save=$ac_clean_files
3526 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3527 # Try to create an executable without -o first, disregard a.out.
3528 # It will help us diagnose broken compilers, and finding out an intuition
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3531 $as_echo_n "checking whether the C compiler works... " >&6; }
3532 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3534 # The possible output files:
3535 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3538 for ac_file in $ac_files
3541 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3542 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3547 if { { ac_try="$ac_link_default"
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3553 $as_echo "$ac_try_echo"; } >&5
3554 (eval "$ac_link_default") 2>&5
3556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3557 test $ac_status = 0; }; then :
3558 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3559 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3560 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3561 # so that the user can short-circuit this test for compilers unknown to
3563 for ac_file in $ac_files ''
3565 test -f "$ac_file" || continue
3567 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3570 # We found the default executable, but exeext='' is most
3574 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3576 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3578 # We set ac_cv_exeext here because the later test for it is not
3579 # safe: cross compilers may not add the suffix if given an `-o'
3580 # argument, so we may need to know it at that point already.
3581 # Even if this section looks crufty: it has the advantage of
3588 test "$ac_cv_exeext" = no && ac_cv_exeext=
3593 if test -z "$ac_file"; then :
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3595 $as_echo "no" >&6; }
3596 $as_echo "$as_me: failed program was:" >&5
3597 sed 's/^/| /' conftest.$ac_ext >&5
3599 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3601 as_fn_error 77 "C compiler cannot create executables
3602 See \`config.log' for more details" "$LINENO" 5 ; }
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3605 $as_echo "yes" >&6; }
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3608 $as_echo_n "checking for C compiler default output file name... " >&6; }
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3610 $as_echo "$ac_file" >&6; }
3611 ac_exeext=$ac_cv_exeext
3613 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3614 ac_clean_files=$ac_clean_files_save
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3616 $as_echo_n "checking for suffix of executables... " >&6; }
3617 if { { ac_try="$ac_link"
3619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3620 *) ac_try_echo=$ac_try;;
3622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3623 $as_echo "$ac_try_echo"; } >&5
3624 (eval "$ac_link") 2>&5
3626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3627 test $ac_status = 0; }; then :
3628 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3629 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3630 # work properly (i.e., refer to `conftest.exe'), while it won't with
3632 for ac_file in conftest.exe conftest conftest.*; do
3633 test -f "$ac_file" || continue
3635 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3636 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3642 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3644 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3645 See \`config.log' for more details" "$LINENO" 5 ; }
3647 rm -f conftest conftest$ac_cv_exeext
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3649 $as_echo "$ac_cv_exeext" >&6; }
3651 rm -f conftest.$ac_ext
3652 EXEEXT=$ac_cv_exeext
3654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655 /* end confdefs.h. */
3660 FILE *f = fopen ("conftest.out", "w");
3661 return ferror (f) || fclose (f) != 0;
3667 ac_clean_files="$ac_clean_files conftest.out"
3668 # Check that the compiler produces executables we can run. If not, either
3669 # the compiler is broken, or we cross compile.
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3671 $as_echo_n "checking whether we are cross compiling... " >&6; }
3672 if test "$cross_compiling" != yes; then
3673 { { ac_try="$ac_link"
3675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676 *) ac_try_echo=$ac_try;;
3678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3679 $as_echo "$ac_try_echo"; } >&5
3680 (eval "$ac_link") 2>&5
3682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3683 test $ac_status = 0; }
3684 if { ac_try='./conftest$ac_cv_exeext'
3685 { { case "(($ac_try" in
3686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687 *) ac_try_echo=$ac_try;;
3689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3690 $as_echo "$ac_try_echo"; } >&5
3691 (eval "$ac_try") 2>&5
3693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3694 test $ac_status = 0; }; }; then
3697 if test "$cross_compiling" = maybe; then
3700 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3702 as_fn_error $? "cannot run C compiled programs.
3703 If you meant to cross compile, use \`--host'.
3704 See \`config.log' for more details" "$LINENO" 5 ; }
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3709 $as_echo "$cross_compiling" >&6; }
3711 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3712 ac_clean_files=$ac_clean_files_save
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3714 $as_echo_n "checking for suffix of object files... " >&6; }
3715 if test "${ac_cv_objext+set}" = set; then :
3716 $as_echo_n "(cached) " >&6
3718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3719 /* end confdefs.h. */
3729 rm -f conftest.o conftest.obj
3730 if { { ac_try="$ac_compile"
3732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733 *) ac_try_echo=$ac_try;;
3735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3736 $as_echo "$ac_try_echo"; } >&5
3737 (eval "$ac_compile") 2>&5
3739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3740 test $ac_status = 0; }; then :
3741 for ac_file in conftest.o conftest.obj conftest.*; do
3742 test -f "$ac_file" || continue;
3744 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3745 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3750 $as_echo "$as_me: failed program was:" >&5
3751 sed 's/^/| /' conftest.$ac_ext >&5
3753 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3755 as_fn_error $? "cannot compute suffix of object files: cannot compile
3756 See \`config.log' for more details" "$LINENO" 5 ; }
3758 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3761 $as_echo "$ac_cv_objext" >&6; }
3762 OBJEXT=$ac_cv_objext
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3765 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3766 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3767 $as_echo_n "(cached) " >&6
3769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h. */
3783 if ac_fn_c_try_compile "$LINENO"; then :
3788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3789 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3793 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3794 if test $ac_compiler_gnu = yes; then
3799 ac_test_CFLAGS=${CFLAGS+set}
3800 ac_save_CFLAGS=$CFLAGS
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3802 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3803 if test "${ac_cv_prog_cc_g+set}" = set; then :
3804 $as_echo_n "(cached) " >&6
3806 ac_save_c_werror_flag=$ac_c_werror_flag
3807 ac_c_werror_flag=yes
3810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811 /* end confdefs.h. */
3821 if ac_fn_c_try_compile "$LINENO"; then :
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h. */
3836 if ac_fn_c_try_compile "$LINENO"; then :
3839 ac_c_werror_flag=$ac_save_c_werror_flag
3841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3842 /* end confdefs.h. */
3852 if ac_fn_c_try_compile "$LINENO"; then :
3855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3860 ac_c_werror_flag=$ac_save_c_werror_flag
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3863 $as_echo "$ac_cv_prog_cc_g" >&6; }
3864 if test "$ac_test_CFLAGS" = set; then
3865 CFLAGS=$ac_save_CFLAGS
3866 elif test $ac_cv_prog_cc_g = yes; then
3867 if test "$GCC" = yes; then
3873 if test "$GCC" = yes; then
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3880 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3881 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3882 $as_echo_n "(cached) " >&6
3884 ac_cv_prog_cc_c89=no
3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887 /* end confdefs.h. */
3890 #include <sys/types.h>
3891 #include <sys/stat.h>
3892 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3893 struct buf { int x; };
3894 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3895 static char *e (p, i)
3901 static char *f (char * (*g) (char **, int), char **p, ...)
3906 s = g (p, va_arg (v,int));
3911 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3912 function prototypes and stuff, but not '\xHH' hex character constants.
3913 These don't provoke an error unfortunately, instead are silently treated
3914 as 'x'. The following induces an error, until -std is added to get
3915 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3916 array size at least. It's necessary to write '\x00'==0 to get something
3917 that's true only with -std. */
3918 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3920 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3921 inside strings and character constants. */
3923 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3925 int test (int i, double x);
3926 struct s1 {int (*f) (int a);};
3927 struct s2 {int (*f) (double a);};
3928 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3934 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3939 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3940 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3942 CC="$ac_save_CC $ac_arg"
3943 if ac_fn_c_try_compile "$LINENO"; then :
3944 ac_cv_prog_cc_c89=$ac_arg
3946 rm -f core conftest.err conftest.$ac_objext
3947 test "x$ac_cv_prog_cc_c89" != "xno" && break
3949 rm -f conftest.$ac_ext
3954 case "x$ac_cv_prog_cc_c89" in
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3957 $as_echo "none needed" >&6; } ;;
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3960 $as_echo "unsupported" >&6; } ;;
3962 CC="$CC $ac_cv_prog_cc_c89"
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3964 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3966 if test "x$ac_cv_prog_cc_c89" != xno; then :
3971 ac_cpp='$CPP $CPPFLAGS'
3972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3975 DEPDIR="${am__leading_dot}deps"
3977 ac_config_commands="$ac_config_commands depfiles"
3980 am_make=${MAKE-make}
3981 cat > confinc << 'END'
3983 @echo this is the am__doit target
3986 # If we don't find an include directive, just comment out the code.
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3988 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3992 # First try GNU make style include.
3993 echo "include confinc" > confmf
3994 # Ignore all kinds of additional output from `make'.
3995 case `$am_make -s -f confmf 2> /dev/null` in #(
3996 *the\ am__doit\ target*)
4002 # Now try BSD make style include.
4003 if test "$am__include" = "#"; then
4004 echo '.include "confinc"' > confmf
4005 case `$am_make -s -f confmf 2> /dev/null` in #(
4006 *the\ am__doit\ target*)
4007 am__include=.include
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4016 $as_echo "$_am_result" >&6; }
4017 rm -f confinc confmf
4019 # Check whether --enable-dependency-tracking was given.
4020 if test "${enable_dependency_tracking+set}" = set; then :
4021 enableval=$enable_dependency_tracking;
4024 if test "x$enable_dependency_tracking" != xno; then
4025 am_depcomp="$ac_aux_dir/depcomp"
4028 if test "x$enable_dependency_tracking" != xno; then
4038 depcc="$CC" am_compiler_list=
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4041 $as_echo_n "checking dependency style of $depcc... " >&6; }
4042 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4043 $as_echo_n "(cached) " >&6
4045 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4046 # We make a subdir and do the tests there. Otherwise we can end up
4047 # making bogus files that we don't know about and never remove. For
4048 # instance it was reported that on HP-UX the gcc test will end up
4049 # making a dummy file named `D' -- because `-MD' means `put the output
4052 # Copy depcomp to subdir because otherwise we won't find it if we're
4053 # using a relative directory.
4054 cp "$am_depcomp" conftest.dir
4056 # We will build objects and dependencies in a subdirectory because
4057 # it helps to detect inapplicable dependency modes. For instance
4058 # both Tru64's cc and ICC support -MD to output dependencies as a
4059 # side effect of compilation, but ICC will put the dependencies in
4060 # the current directory while Tru64 will put them in the object
4064 am_cv_CC_dependencies_compiler_type=none
4065 if test "$am_compiler_list" = ""; then
4066 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4069 case " $depcc " in #(
4070 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4073 for depmode in $am_compiler_list; do
4074 # Setup a source with many dependencies, because some compilers
4075 # like to wrap large dependency lists on column 80 (with \), and
4076 # we should not choose a depcomp mode which is confused by this.
4078 # We need to recreate these files for each test, as the compiler may
4079 # overwrite some of them when testing with obscure command lines.
4080 # This happens at least with the AIX C compiler.
4082 for i in 1 2 3 4 5 6; do
4083 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4084 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4085 # Solaris 8's {/usr,}/bin/sh.
4086 touch sub/conftst$i.h
4088 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4090 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4091 # mode. It turns out that the SunPro C++ compiler does not properly
4092 # handle `-M -o', and we need to detect this. Also, some Intel
4093 # versions had trouble with output in subdirs
4094 am__obj=sub/conftest.${OBJEXT-o}
4095 am__minus_obj="-o $am__obj"
4098 # This depmode causes a compiler race in universal mode.
4099 test "$am__universal" = false || continue
4102 # after this tag, mechanisms are not by side-effect, so they'll
4103 # only be used when explicitly requested
4104 if test "x$enable_dependency_tracking" = xyes; then
4110 msvisualcpp | msvcmsys)
4111 # This compiler won't grok `-c -o', but also, the minuso test has
4112 # not run yet. These depmodes are late enough in the game, and
4113 # so weak that their functioning should not be impacted.
4114 am__obj=conftest.${OBJEXT-o}
4119 if depmode=$depmode \
4120 source=sub/conftest.c object=$am__obj \
4121 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4122 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4123 >/dev/null 2>conftest.err &&
4124 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4125 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4126 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4127 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4128 # icc doesn't choke on unknown options, it will just issue warnings
4129 # or remarks (even with -Werror). So we grep stderr for any message
4130 # that says an option was ignored or not supported.
4131 # When given -MP, icc 7.0 and 7.1 complain thusly:
4132 # icc: Command line warning: ignoring option '-M'; no argument required
4133 # The diagnosis changed in icc 8.0:
4134 # icc: Command line remark: option '-MP' not supported
4135 if (grep 'ignoring option' conftest.err ||
4136 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4137 am_cv_CC_dependencies_compiler_type=$depmode
4146 am_cv_CC_dependencies_compiler_type=none
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4151 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4152 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4155 test "x$enable_dependency_tracking" != xno \
4156 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4158 am__fastdepCC_FALSE='#'
4160 am__fastdepCC_TRUE='#'
4161 am__fastdepCC_FALSE=
4166 ac_cpp='$CXXCPP $CPPFLAGS'
4167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4170 if test -z "$CXX"; then
4171 if test -n "$CCC"; then
4174 if test -n "$ac_tool_prefix"; then
4175 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4177 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4178 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4180 $as_echo_n "checking for $ac_word... " >&6; }
4181 if test "${ac_cv_prog_CXX+set}" = set; then :
4182 $as_echo_n "(cached) " >&6
4184 if test -n "$CXX"; then
4185 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191 test -z "$as_dir" && as_dir=.
4192 for ac_exec_ext in '' $ac_executable_extensions; do
4193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4194 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4205 if test -n "$CXX"; then
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4207 $as_echo "$CXX" >&6; }
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4210 $as_echo "no" >&6; }
4214 test -n "$CXX" && break
4217 if test -z "$CXX"; then
4219 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4221 # Extract the first word of "$ac_prog", so it can be a program name with args.
4222 set dummy $ac_prog; ac_word=$2
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4224 $as_echo_n "checking for $ac_word... " >&6; }
4225 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4226 $as_echo_n "(cached) " >&6
4228 if test -n "$ac_ct_CXX"; then
4229 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235 test -z "$as_dir" && as_dir=.
4236 for ac_exec_ext in '' $ac_executable_extensions; do
4237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4238 ac_cv_prog_ac_ct_CXX="$ac_prog"
4239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4248 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4249 if test -n "$ac_ct_CXX"; then
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4251 $as_echo "$ac_ct_CXX" >&6; }
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4254 $as_echo "no" >&6; }
4258 test -n "$ac_ct_CXX" && break
4261 if test "x$ac_ct_CXX" = x; then
4264 case $cross_compiling:$ac_tool_warned in
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4268 ac_tool_warned=yes ;;
4276 # Provide some information about the compiler.
4277 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4280 for ac_option in --version -v -V -qversion; do
4281 { { ac_try="$ac_compiler $ac_option >&5"
4283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284 *) ac_try_echo=$ac_try;;
4286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4287 $as_echo "$ac_try_echo"; } >&5
4288 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4290 if test -s conftest.err; then
4292 ... rest of stderr output deleted ...
4293 10q' conftest.err >conftest.er1
4294 cat conftest.er1 >&5
4296 rm -f conftest.er1 conftest.err
4297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4298 test $ac_status = 0; }
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4302 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4303 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4304 $as_echo_n "(cached) " >&6
4306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307 /* end confdefs.h. */
4320 if ac_fn_cxx_try_compile "$LINENO"; then :
4325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4326 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4330 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4331 if test $ac_compiler_gnu = yes; then
4336 ac_test_CXXFLAGS=${CXXFLAGS+set}
4337 ac_save_CXXFLAGS=$CXXFLAGS
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4339 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4340 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4341 $as_echo_n "(cached) " >&6
4343 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4344 ac_cxx_werror_flag=yes
4347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348 /* end confdefs.h. */
4358 if ac_fn_cxx_try_compile "$LINENO"; then :
4359 ac_cv_prog_cxx_g=yes
4362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4363 /* end confdefs.h. */
4373 if ac_fn_cxx_try_compile "$LINENO"; then :
4376 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h. */
4389 if ac_fn_cxx_try_compile "$LINENO"; then :
4390 ac_cv_prog_cxx_g=yes
4392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4397 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4400 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4401 if test "$ac_test_CXXFLAGS" = set; then
4402 CXXFLAGS=$ac_save_CXXFLAGS
4403 elif test $ac_cv_prog_cxx_g = yes; then
4404 if test "$GXX" = yes; then
4410 if test "$GXX" = yes; then
4417 ac_cpp='$CPP $CPPFLAGS'
4418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4422 depcc="$CXX" am_compiler_list=
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4425 $as_echo_n "checking dependency style of $depcc... " >&6; }
4426 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4427 $as_echo_n "(cached) " >&6
4429 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4430 # We make a subdir and do the tests there. Otherwise we can end up
4431 # making bogus files that we don't know about and never remove. For
4432 # instance it was reported that on HP-UX the gcc test will end up
4433 # making a dummy file named `D' -- because `-MD' means `put the output
4436 # Copy depcomp to subdir because otherwise we won't find it if we're
4437 # using a relative directory.
4438 cp "$am_depcomp" conftest.dir
4440 # We will build objects and dependencies in a subdirectory because
4441 # it helps to detect inapplicable dependency modes. For instance
4442 # both Tru64's cc and ICC support -MD to output dependencies as a
4443 # side effect of compilation, but ICC will put the dependencies in
4444 # the current directory while Tru64 will put them in the object
4448 am_cv_CXX_dependencies_compiler_type=none
4449 if test "$am_compiler_list" = ""; then
4450 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4453 case " $depcc " in #(
4454 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4457 for depmode in $am_compiler_list; do
4458 # Setup a source with many dependencies, because some compilers
4459 # like to wrap large dependency lists on column 80 (with \), and
4460 # we should not choose a depcomp mode which is confused by this.
4462 # We need to recreate these files for each test, as the compiler may
4463 # overwrite some of them when testing with obscure command lines.
4464 # This happens at least with the AIX C compiler.
4466 for i in 1 2 3 4 5 6; do
4467 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4468 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4469 # Solaris 8's {/usr,}/bin/sh.
4470 touch sub/conftst$i.h
4472 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4474 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4475 # mode. It turns out that the SunPro C++ compiler does not properly
4476 # handle `-M -o', and we need to detect this. Also, some Intel
4477 # versions had trouble with output in subdirs
4478 am__obj=sub/conftest.${OBJEXT-o}
4479 am__minus_obj="-o $am__obj"
4482 # This depmode causes a compiler race in universal mode.
4483 test "$am__universal" = false || continue
4486 # after this tag, mechanisms are not by side-effect, so they'll
4487 # only be used when explicitly requested
4488 if test "x$enable_dependency_tracking" = xyes; then
4494 msvisualcpp | msvcmsys)
4495 # This compiler won't grok `-c -o', but also, the minuso test has
4496 # not run yet. These depmodes are late enough in the game, and
4497 # so weak that their functioning should not be impacted.
4498 am__obj=conftest.${OBJEXT-o}
4503 if depmode=$depmode \
4504 source=sub/conftest.c object=$am__obj \
4505 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4506 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4507 >/dev/null 2>conftest.err &&
4508 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4509 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4510 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4511 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4512 # icc doesn't choke on unknown options, it will just issue warnings
4513 # or remarks (even with -Werror). So we grep stderr for any message
4514 # that says an option was ignored or not supported.
4515 # When given -MP, icc 7.0 and 7.1 complain thusly:
4516 # icc: Command line warning: ignoring option '-M'; no argument required
4517 # The diagnosis changed in icc 8.0:
4518 # icc: Command line remark: option '-MP' not supported
4519 if (grep 'ignoring option' conftest.err ||
4520 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4521 am_cv_CXX_dependencies_compiler_type=$depmode
4530 am_cv_CXX_dependencies_compiler_type=none
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4535 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4536 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4539 test "x$enable_dependency_tracking" != xno \
4540 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4541 am__fastdepCXX_TRUE=
4542 am__fastdepCXX_FALSE='#'
4544 am__fastdepCXX_TRUE='#'
4545 am__fastdepCXX_FALSE=
4551 ac_cpp='$CPP $CPPFLAGS'
4552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4556 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4557 # On Suns, sometimes $CPP names a directory.
4558 if test -n "$CPP" && test -d "$CPP"; then
4561 if test -z "$CPP"; then
4562 if test "${ac_cv_prog_CPP+set}" = set; then :
4563 $as_echo_n "(cached) " >&6
4565 # Double quotes because CPP needs to be expanded
4566 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4569 for ac_c_preproc_warn_flag in '' yes
4571 # Use a header file that comes with gcc, so configuring glibc
4572 # with a fresh cross-compiler works.
4573 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4574 # <limits.h> exists even on freestanding compilers.
4575 # On the NeXT, cc -E runs the code through the compiler's parser,
4576 # not just through cpp. "Syntax error" is here to catch this case.
4577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4578 /* end confdefs.h. */
4580 # include <limits.h>
4582 # include <assert.h>
4586 if ac_fn_c_try_cpp "$LINENO"; then :
4589 # Broken: fails on valid input.
4592 rm -f conftest.err conftest.i conftest.$ac_ext
4594 # OK, works on sane cases. Now check whether nonexistent headers
4595 # can be detected and how.
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h. */
4598 #include <ac_nonexistent.h>
4600 if ac_fn_c_try_cpp "$LINENO"; then :
4601 # Broken: success on invalid input.
4604 # Passes both tests.
4608 rm -f conftest.err conftest.i conftest.$ac_ext
4611 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4612 rm -f conftest.i conftest.err conftest.$ac_ext
4613 if $ac_preproc_ok; then :
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4626 $as_echo "$CPP" >&6; }
4628 for ac_c_preproc_warn_flag in '' yes
4630 # Use a header file that comes with gcc, so configuring glibc
4631 # with a fresh cross-compiler works.
4632 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4633 # <limits.h> exists even on freestanding compilers.
4634 # On the NeXT, cc -E runs the code through the compiler's parser,
4635 # not just through cpp. "Syntax error" is here to catch this case.
4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h. */
4639 # include <limits.h>
4641 # include <assert.h>
4645 if ac_fn_c_try_cpp "$LINENO"; then :
4648 # Broken: fails on valid input.
4651 rm -f conftest.err conftest.i conftest.$ac_ext
4653 # OK, works on sane cases. Now check whether nonexistent headers
4654 # can be detected and how.
4655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4656 /* end confdefs.h. */
4657 #include <ac_nonexistent.h>
4659 if ac_fn_c_try_cpp "$LINENO"; then :
4660 # Broken: success on invalid input.
4663 # Passes both tests.
4667 rm -f conftest.err conftest.i conftest.$ac_ext
4670 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4671 rm -f conftest.i conftest.err conftest.$ac_ext
4672 if $ac_preproc_ok; then :
4675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4677 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4678 See \`config.log' for more details" "$LINENO" 5 ; }
4682 ac_cpp='$CPP $CPPFLAGS'
4683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4689 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4690 if test "${ac_cv_path_GREP+set}" = set; then :
4691 $as_echo_n "(cached) " >&6
4693 if test -z "$GREP"; then
4694 ac_path_GREP_found=false
4695 # Loop through the user's path and test for each of PROGNAME-LIST
4696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4700 test -z "$as_dir" && as_dir=.
4701 for ac_prog in grep ggrep; do
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4704 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4705 # Check for GNU ac_path_GREP and select it if it is found.
4706 # Check for GNU $ac_path_GREP
4707 case `"$ac_path_GREP" --version 2>&1` in
4709 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4712 $as_echo_n 0123456789 >"conftest.in"
4715 cat "conftest.in" "conftest.in" >"conftest.tmp"
4716 mv "conftest.tmp" "conftest.in"
4717 cp "conftest.in" "conftest.nl"
4718 $as_echo 'GREP' >> "conftest.nl"
4719 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4720 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4721 as_fn_arith $ac_count + 1 && ac_count=$as_val
4722 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4723 # Best one so far, save it but keep looking for a better one
4724 ac_cv_path_GREP="$ac_path_GREP"
4725 ac_path_GREP_max=$ac_count
4727 # 10*(2^10) chars as input seems more than enough
4728 test $ac_count -gt 10 && break
4730 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4733 $ac_path_GREP_found && break 3
4738 if test -z "$ac_cv_path_GREP"; then
4739 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4742 ac_cv_path_GREP=$GREP
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4747 $as_echo "$ac_cv_path_GREP" >&6; }
4748 GREP="$ac_cv_path_GREP"
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4752 $as_echo_n "checking for egrep... " >&6; }
4753 if test "${ac_cv_path_EGREP+set}" = set; then :
4754 $as_echo_n "(cached) " >&6
4756 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4757 then ac_cv_path_EGREP="$GREP -E"
4759 if test -z "$EGREP"; then
4760 ac_path_EGREP_found=false
4761 # Loop through the user's path and test for each of PROGNAME-LIST
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4766 test -z "$as_dir" && as_dir=.
4767 for ac_prog in egrep; do
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4770 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4771 # Check for GNU ac_path_EGREP and select it if it is found.
4772 # Check for GNU $ac_path_EGREP
4773 case `"$ac_path_EGREP" --version 2>&1` in
4775 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4778 $as_echo_n 0123456789 >"conftest.in"
4781 cat "conftest.in" "conftest.in" >"conftest.tmp"
4782 mv "conftest.tmp" "conftest.in"
4783 cp "conftest.in" "conftest.nl"
4784 $as_echo 'EGREP' >> "conftest.nl"
4785 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4786 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4787 as_fn_arith $ac_count + 1 && ac_count=$as_val
4788 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4789 # Best one so far, save it but keep looking for a better one
4790 ac_cv_path_EGREP="$ac_path_EGREP"
4791 ac_path_EGREP_max=$ac_count
4793 # 10*(2^10) chars as input seems more than enough
4794 test $ac_count -gt 10 && break
4796 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4799 $ac_path_EGREP_found && break 3
4804 if test -z "$ac_cv_path_EGREP"; then
4805 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4808 ac_cv_path_EGREP=$EGREP
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4814 $as_echo "$ac_cv_path_EGREP" >&6; }
4815 EGREP="$ac_cv_path_EGREP"
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4819 $as_echo_n "checking for ANSI C header files... " >&6; }
4820 if test "${ac_cv_header_stdc+set}" = set; then :
4821 $as_echo_n "(cached) " >&6
4823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4824 /* end confdefs.h. */
4838 if ac_fn_c_try_compile "$LINENO"; then :
4839 ac_cv_header_stdc=yes
4841 ac_cv_header_stdc=no
4843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4845 if test $ac_cv_header_stdc = yes; then
4846 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4848 /* end confdefs.h. */
4852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4853 $EGREP "memchr" >/dev/null 2>&1; then :
4856 ac_cv_header_stdc=no
4862 if test $ac_cv_header_stdc = yes; then
4863 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4865 /* end confdefs.h. */
4869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4870 $EGREP "free" >/dev/null 2>&1; then :
4873 ac_cv_header_stdc=no
4879 if test $ac_cv_header_stdc = yes; then
4880 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4881 if test "$cross_compiling" = yes; then :
4884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885 /* end confdefs.h. */
4888 #if ((' ' & 0x0FF) == 0x020)
4889 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4890 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4892 # define ISLOWER(c) \
4893 (('a' <= (c) && (c) <= 'i') \
4894 || ('j' <= (c) && (c) <= 'r') \
4895 || ('s' <= (c) && (c) <= 'z'))
4896 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4899 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4904 for (i = 0; i < 256; i++)
4905 if (XOR (islower (i), ISLOWER (i))
4906 || toupper (i) != TOUPPER (i))
4911 if ac_fn_c_try_run "$LINENO"; then :
4914 ac_cv_header_stdc=no
4916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4917 conftest.$ac_objext conftest.beam conftest.$ac_ext
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4923 $as_echo "$ac_cv_header_stdc" >&6; }
4924 if test $ac_cv_header_stdc = yes; then
4926 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4930 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4931 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4932 inttypes.h stdint.h unistd.h
4934 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4935 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4937 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4938 cat >>confdefs.h <<_ACEOF
4939 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4948 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4949 if test "${ac_cv_c_bigendian+set}" = set; then :
4950 $as_echo_n "(cached) " >&6
4952 ac_cv_c_bigendian=unknown
4953 # See if we're dealing with a universal compiler.
4954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4955 /* end confdefs.h. */
4956 #ifndef __APPLE_CC__
4957 not a universal capable compiler
4962 if ac_fn_c_try_compile "$LINENO"; then :
4964 # Check for potential -arch flags. It is not universal unless
4965 # there are at least two -arch flags with different values.
4968 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4969 if test -n "$ac_prev"; then
4971 i?86 | x86_64 | ppc | ppc64)
4972 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4975 ac_cv_c_bigendian=universal
4981 elif test "x$ac_word" = "x-arch"; then
4986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4987 if test $ac_cv_c_bigendian = unknown; then
4988 # See if sys/param.h defines the BYTE_ORDER macro.
4989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990 /* end confdefs.h. */
4991 #include <sys/types.h>
4992 #include <sys/param.h>
4997 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4998 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5007 if ac_fn_c_try_compile "$LINENO"; then :
5008 # It does; now see whether it defined to BIG_ENDIAN or not.
5009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010 /* end confdefs.h. */
5011 #include <sys/types.h>
5012 #include <sys/param.h>
5017 #if BYTE_ORDER != BIG_ENDIAN
5025 if ac_fn_c_try_compile "$LINENO"; then :
5026 ac_cv_c_bigendian=yes
5028 ac_cv_c_bigendian=no
5030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5034 if test $ac_cv_c_bigendian = unknown; then
5035 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5037 /* end confdefs.h. */
5043 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5051 if ac_fn_c_try_compile "$LINENO"; then :
5052 # It does; now see whether it defined to _BIG_ENDIAN or not.
5053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5054 /* end confdefs.h. */
5068 if ac_fn_c_try_compile "$LINENO"; then :
5069 ac_cv_c_bigendian=yes
5071 ac_cv_c_bigendian=no
5073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5077 if test $ac_cv_c_bigendian = unknown; then
5078 # Compile a test program.
5079 if test "$cross_compiling" = yes; then :
5080 # Try to guess by grepping values from an object file.
5081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5082 /* end confdefs.h. */
5083 short int ascii_mm[] =
5084 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5085 short int ascii_ii[] =
5086 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5087 int use_ascii (int i) {
5088 return ascii_mm[i] + ascii_ii[i];
5090 short int ebcdic_ii[] =
5091 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5092 short int ebcdic_mm[] =
5093 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5094 int use_ebcdic (int i) {
5095 return ebcdic_mm[i] + ebcdic_ii[i];
5102 return use_ascii (foo) == use_ebcdic (foo);
5107 if ac_fn_c_try_compile "$LINENO"; then :
5108 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5109 ac_cv_c_bigendian=yes
5111 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5112 if test "$ac_cv_c_bigendian" = unknown; then
5113 ac_cv_c_bigendian=no
5115 # finding both strings is unlikely to happen, but who knows?
5116 ac_cv_c_bigendian=unknown
5120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123 /* end confdefs.h. */
5124 $ac_includes_default
5129 /* Are we little or big endian? From Harbison&Steele. */
5133 char c[sizeof (long int)];
5136 return u.c[sizeof (long int) - 1] == 1;
5142 if ac_fn_c_try_run "$LINENO"; then :
5143 ac_cv_c_bigendian=no
5145 ac_cv_c_bigendian=yes
5147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5148 conftest.$ac_objext conftest.beam conftest.$ac_ext
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5154 $as_echo "$ac_cv_c_bigendian" >&6; }
5155 case $ac_cv_c_bigendian in #(
5157 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5163 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5167 as_fn_error $? "unknown endianness
5168 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5172 # Extract the first word of "wx-config", so it can be a program name with args.
5173 set dummy wx-config; ac_word=$2
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5175 $as_echo_n "checking for $ac_word... " >&6; }
5176 if test "${ac_cv_path_wxconfig+set}" = set; then :
5177 $as_echo_n "(cached) " >&6
5181 ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
5184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5188 test -z "$as_dir" && as_dir=.
5189 for ac_exec_ext in '' $ac_executable_extensions; do
5190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5191 ac_cv_path_wxconfig="$as_dir/$ac_word$ac_exec_ext"
5192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5202 wxconfig=$ac_cv_path_wxconfig
5203 if test -n "$wxconfig"; then
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wxconfig" >&5
5205 $as_echo "$wxconfig" >&6; }
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5208 $as_echo "no" >&6; }
5213 # Make sure we can run config.sub.
5214 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5215 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5218 $as_echo_n "checking build system type... " >&6; }
5219 if test "${ac_cv_build+set}" = set; then :
5220 $as_echo_n "(cached) " >&6
5222 ac_build_alias=$build_alias
5223 test "x$ac_build_alias" = x &&
5224 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5225 test "x$ac_build_alias" = x &&
5226 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5227 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5228 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5232 $as_echo "$ac_cv_build" >&6; }
5233 case $ac_cv_build in
5235 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
5238 ac_save_IFS=$IFS; IFS='-'
5244 # Remember, the first character of IFS is used to create $*,
5245 # except with old shells:
5248 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5252 $as_echo_n "checking host system type... " >&6; }
5253 if test "${ac_cv_host+set}" = set; then :
5254 $as_echo_n "(cached) " >&6
5256 if test "x$host_alias" = x; then
5257 ac_cv_host=$ac_cv_build
5259 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5260 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5265 $as_echo "$ac_cv_host" >&6; }
5268 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
5271 ac_save_IFS=$IFS; IFS='-'
5277 # Remember, the first character of IFS is used to create $*,
5278 # except with old shells:
5281 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5285 $as_echo_n "checking for inline... " >&6; }
5286 if test "${ac_cv_c_inline+set}" = set; then :
5287 $as_echo_n "(cached) " >&6
5290 for ac_kw in inline __inline__ __inline; do
5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h. */
5295 static $ac_kw foo_t static_foo () {return 0; }
5296 $ac_kw foo_t foo () {return 0; }
5300 if ac_fn_c_try_compile "$LINENO"; then :
5301 ac_cv_c_inline=$ac_kw
5303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5304 test "$ac_cv_c_inline" != no && break
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5309 $as_echo "$ac_cv_c_inline" >&6; }
5311 case $ac_cv_c_inline in
5314 case $ac_cv_c_inline in
5316 *) ac_val=$ac_cv_c_inline;;
5318 cat >>confdefs.h <<_ACEOF
5320 #define inline $ac_val
5326 # The cast to long int works around a bug in the HP C Compiler
5327 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5328 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5329 # This bug is HP SR number 8606223364.
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5331 $as_echo_n "checking size of short... " >&6; }
5332 if test "${ac_cv_sizeof_short+set}" = set; then :
5333 $as_echo_n "(cached) " >&6
5335 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5338 if test "$ac_cv_type_short" = yes; then
5339 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5341 as_fn_error 77 "cannot compute sizeof (short)
5342 See \`config.log' for more details" "$LINENO" 5 ; }
5344 ac_cv_sizeof_short=0
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5350 $as_echo "$ac_cv_sizeof_short" >&6; }
5354 cat >>confdefs.h <<_ACEOF
5355 #define SIZEOF_SHORT $ac_cv_sizeof_short
5359 # The cast to long int works around a bug in the HP C Compiler
5360 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5361 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5362 # This bug is HP SR number 8606223364.
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5364 $as_echo_n "checking size of int... " >&6; }
5365 if test "${ac_cv_sizeof_int+set}" = set; then :
5366 $as_echo_n "(cached) " >&6
5368 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5371 if test "$ac_cv_type_int" = yes; then
5372 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5374 as_fn_error 77 "cannot compute sizeof (int)
5375 See \`config.log' for more details" "$LINENO" 5 ; }
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5383 $as_echo "$ac_cv_sizeof_int" >&6; }
5387 cat >>confdefs.h <<_ACEOF
5388 #define SIZEOF_INT $ac_cv_sizeof_int
5392 # The cast to long int works around a bug in the HP C Compiler
5393 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5394 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5395 # This bug is HP SR number 8606223364.
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5397 $as_echo_n "checking size of long... " >&6; }
5398 if test "${ac_cv_sizeof_long+set}" = set; then :
5399 $as_echo_n "(cached) " >&6
5401 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5404 if test "$ac_cv_type_long" = yes; then
5405 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5407 as_fn_error 77 "cannot compute sizeof (long)
5408 See \`config.log' for more details" "$LINENO" 5 ; }
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5416 $as_echo "$ac_cv_sizeof_long" >&6; }
5420 cat >>confdefs.h <<_ACEOF
5421 #define SIZEOF_LONG $ac_cv_sizeof_long
5425 # The cast to long int works around a bug in the HP C Compiler
5426 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5427 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5428 # This bug is HP SR number 8606223364.
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
5430 $as_echo_n "checking size of float... " >&6; }
5431 if test "${ac_cv_sizeof_float+set}" = set; then :
5432 $as_echo_n "(cached) " >&6
5434 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
5437 if test "$ac_cv_type_float" = yes; then
5438 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5440 as_fn_error 77 "cannot compute sizeof (float)
5441 See \`config.log' for more details" "$LINENO" 5 ; }
5443 ac_cv_sizeof_float=0
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
5449 $as_echo "$ac_cv_sizeof_float" >&6; }
5453 cat >>confdefs.h <<_ACEOF
5454 #define SIZEOF_FLOAT $ac_cv_sizeof_float
5458 # The cast to long int works around a bug in the HP C Compiler
5459 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5460 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5461 # This bug is HP SR number 8606223364.
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
5463 $as_echo_n "checking size of double... " >&6; }
5464 if test "${ac_cv_sizeof_double+set}" = set; then :
5465 $as_echo_n "(cached) " >&6
5467 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
5470 if test "$ac_cv_type_double" = yes; then
5471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5473 as_fn_error 77 "cannot compute sizeof (double)
5474 See \`config.log' for more details" "$LINENO" 5 ; }
5476 ac_cv_sizeof_double=0
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
5482 $as_echo "$ac_cv_sizeof_double" >&6; }
5486 cat >>confdefs.h <<_ACEOF
5487 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
5494 $as_echo_n "checking for deflate in -lz... " >&6; }
5495 if test "${ac_cv_lib_z_deflate+set}" = set; then :
5496 $as_echo_n "(cached) " >&6
5498 ac_check_lib_save_LIBS=$LIBS
5500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5501 /* end confdefs.h. */
5503 /* Override any GCC internal prototype to avoid an error.
5504 Use char because int might match the return type of a GCC
5505 builtin and then its argument prototype would still apply. */
5518 if ac_fn_c_try_link "$LINENO"; then :
5519 ac_cv_lib_z_deflate=yes
5521 ac_cv_lib_z_deflate=no
5523 rm -f core conftest.err conftest.$ac_objext \
5524 conftest$ac_exeext conftest.$ac_ext
5525 LIBS=$ac_check_lib_save_LIBS
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
5528 $as_echo "$ac_cv_lib_z_deflate" >&6; }
5529 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
5532 zlib="false" ; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib missing. Will need zlib for PNG support" >&5
5533 $as_echo "$as_me: WARNING: zlib missing. Will need zlib for PNG support" >&2;}
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
5537 $as_echo_n "checking for sin in -lm... " >&6; }
5538 if test "${ac_cv_lib_m_sin+set}" = set; then :
5539 $as_echo_n "(cached) " >&6
5541 ac_check_lib_save_LIBS=$LIBS
5543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5544 /* end confdefs.h. */
5546 /* Override any GCC internal prototype to avoid an error.
5547 Use char because int might match the return type of a GCC
5548 builtin and then its argument prototype would still apply. */
5561 if ac_fn_c_try_link "$LINENO"; then :
5566 rm -f core conftest.err conftest.$ac_objext \
5567 conftest$ac_exeext conftest.$ac_ext
5568 LIBS=$ac_check_lib_save_LIBS
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
5571 $as_echo "$ac_cv_lib_m_sin" >&6; }
5572 if test "x$ac_cv_lib_m_sin" = x""yes; then :
5573 cat >>confdefs.h <<_ACEOF
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcurses" >&5
5582 $as_echo_n "checking for main in -lcurses... " >&6; }
5583 if test "${ac_cv_lib_curses_main+set}" = set; then :
5584 $as_echo_n "(cached) " >&6
5586 ac_check_lib_save_LIBS=$LIBS
5587 LIBS="-lcurses $LIBS"
5588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589 /* end confdefs.h. */
5600 if ac_fn_c_try_link "$LINENO"; then :
5601 ac_cv_lib_curses_main=yes
5603 ac_cv_lib_curses_main=no
5605 rm -f core conftest.err conftest.$ac_objext \
5606 conftest$ac_exeext conftest.$ac_ext
5607 LIBS=$ac_check_lib_save_LIBS
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_main" >&5
5610 $as_echo "$ac_cv_lib_curses_main" >&6; }
5611 if test "x$ac_cv_lib_curses_main" = x""yes; then :
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lncurses" >&5
5618 $as_echo_n "checking for main in -lncurses... " >&6; }
5619 if test "${ac_cv_lib_ncurses_main+set}" = set; then :
5620 $as_echo_n "(cached) " >&6
5622 ac_check_lib_save_LIBS=$LIBS
5623 LIBS="-lncurses $LIBS"
5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625 /* end confdefs.h. */
5636 if ac_fn_c_try_link "$LINENO"; then :
5637 ac_cv_lib_ncurses_main=yes
5639 ac_cv_lib_ncurses_main=no
5641 rm -f core conftest.err conftest.$ac_objext \
5642 conftest$ac_exeext conftest.$ac_ext
5643 LIBS=$ac_check_lib_save_LIBS
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_main" >&5
5646 $as_echo "$ac_cv_lib_ncurses_main" >&6; }
5647 if test "x$ac_cv_lib_ncurses_main" = x""yes; then :
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lreadline" >&5
5654 $as_echo_n "checking for main in -lreadline... " >&6; }
5655 if test "${ac_cv_lib_readline_main+set}" = set; then :
5656 $as_echo_n "(cached) " >&6
5658 ac_check_lib_save_LIBS=$LIBS
5659 LIBS="-lreadline -lcurses $LIBS"
5660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5661 /* end confdefs.h. */
5672 if ac_fn_c_try_link "$LINENO"; then :
5673 ac_cv_lib_readline_main=yes
5675 ac_cv_lib_readline_main=no
5677 rm -f core conftest.err conftest.$ac_objext \
5678 conftest$ac_exeext conftest.$ac_ext
5679 LIBS=$ac_check_lib_save_LIBS
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_main" >&5
5682 $as_echo "$ac_cv_lib_readline_main" >&6; }
5683 if test "x$ac_cv_lib_readline_main" = x""yes; then :
5686 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgtk-x11-2.0" >&5
5694 $as_echo_n "checking for main in -lgtk-x11-2.0... " >&6; }
5695 if test "${ac_cv_lib_gtk_x11_2_0_main+set}" = set; then :
5696 $as_echo_n "(cached) " >&6
5698 ac_check_lib_save_LIBS=$LIBS
5699 LIBS="-lgtk-x11-2.0 $LIBS"
5700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5701 /* end confdefs.h. */
5712 if ac_fn_c_try_link "$LINENO"; then :
5713 ac_cv_lib_gtk_x11_2_0_main=yes
5715 ac_cv_lib_gtk_x11_2_0_main=no
5717 rm -f core conftest.err conftest.$ac_objext \
5718 conftest$ac_exeext conftest.$ac_ext
5719 LIBS=$ac_check_lib_save_LIBS
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gtk_x11_2_0_main" >&5
5722 $as_echo "$ac_cv_lib_gtk_x11_2_0_main" >&6; }
5723 if test "x$ac_cv_lib_gtk_x11_2_0_main" = x""yes; then :
5727 if test "x$hasx11gtk2" = "x" ; then
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: Does not have X11 GTK2" >&5
5729 $as_echo "$as_me: Does not have X11 GTK2" >&6;}
5733 if test "$hasx11gtk2" = "true" ; then
5736 CFLAGS="${CFLAGS} ${g76GTK_CFLAGS} ${GLIB_CFLAGS}"
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lwx_gtk2u_core-2.8" >&5
5740 $as_echo_n "checking for main in -lwx_gtk2u_core-2.8... " >&6; }
5741 if test "${ac_cv_lib_wx_gtk2u_core_2_8_main+set}" = set; then :
5742 $as_echo_n "(cached) " >&6
5744 ac_check_lib_save_LIBS=$LIBS
5745 LIBS="-lwx_gtk2u_core-2.8 -L/usr/lib64 -L/usr/lib ${GTK_LIBS} ${GLIB_LIBS} $LIBS"
5746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5747 /* end confdefs.h. */
5758 if ac_fn_c_try_link "$LINENO"; then :
5759 ac_cv_lib_wx_gtk2u_core_2_8_main=yes
5761 ac_cv_lib_wx_gtk2u_core_2_8_main=no
5763 rm -f core conftest.err conftest.$ac_objext \
5764 conftest$ac_exeext conftest.$ac_ext
5765 LIBS=$ac_check_lib_save_LIBS
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wx_gtk2u_core_2_8_main" >&5
5768 $as_echo "$ac_cv_lib_wx_gtk2u_core_2_8_main" >&6; }
5769 if test "x$ac_cv_lib_wx_gtk2u_core_2_8_main" = x""yes; then :
5770 wxwin=true; wx_gtk=true;
5771 $as_echo "#define HAVE_WXWINDOWS 1" >>confdefs.h
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lwx_mac_core-2.8" >&5
5776 $as_echo_n "checking for main in -lwx_mac_core-2.8... " >&6; }
5777 if test "${ac_cv_lib_wx_mac_core_2_8_main+set}" = set; then :
5778 $as_echo_n "(cached) " >&6
5780 ac_check_lib_save_LIBS=$LIBS
5781 LIBS="-lwx_mac_core-2.8 $LIBS"
5782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5783 /* end confdefs.h. */
5794 if ac_fn_c_try_link "$LINENO"; then :
5795 ac_cv_lib_wx_mac_core_2_8_main=yes
5797 ac_cv_lib_wx_mac_core_2_8_main=no
5799 rm -f core conftest.err conftest.$ac_objext \
5800 conftest$ac_exeext conftest.$ac_ext
5801 LIBS=$ac_check_lib_save_LIBS
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wx_mac_core_2_8_main" >&5
5804 $as_echo "$ac_cv_lib_wx_mac_core_2_8_main" >&6; }
5805 if test "x$ac_cv_lib_wx_mac_core_2_8_main" = x""yes; then :
5806 wxwin=true; wx_mac=true;
5807 $as_echo "#define HAVE_WXWINDOWS 1" >>confdefs.h
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_malloc in -lfftw3" >&5
5812 $as_echo_n "checking for fftw_malloc in -lfftw3... " >&6; }
5813 if test "${ac_cv_lib_fftw3_fftw_malloc+set}" = set; then :
5814 $as_echo_n "(cached) " >&6
5816 ac_check_lib_save_LIBS=$LIBS
5817 LIBS="-lfftw3 -L/usr/lib64 -L/usr/lib $LIBS"
5818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5819 /* end confdefs.h. */
5821 /* Override any GCC internal prototype to avoid an error.
5822 Use char because int might match the return type of a GCC
5823 builtin and then its argument prototype would still apply. */
5827 char fftw_malloc ();
5831 return fftw_malloc ();
5836 if ac_fn_c_try_link "$LINENO"; then :
5837 ac_cv_lib_fftw3_fftw_malloc=yes
5839 ac_cv_lib_fftw3_fftw_malloc=no
5841 rm -f core conftest.err conftest.$ac_objext \
5842 conftest$ac_exeext conftest.$ac_ext
5843 LIBS=$ac_check_lib_save_LIBS
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_malloc" >&5
5846 $as_echo "$ac_cv_lib_fftw3_fftw_malloc" >&6; }
5847 if test "x$ac_cv_lib_fftw3_fftw_malloc" = x""yes; then :
5849 $as_echo "#define HAVE_FFTW 1" >>confdefs.h
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lGL" >&5
5856 $as_echo_n "checking for main in -lGL... " >&6; }
5857 if test "${ac_cv_lib_GL_main+set}" = set; then :
5858 $as_echo_n "(cached) " >&6
5860 ac_check_lib_save_LIBS=$LIBS
5861 LIBS="-lGL -L/usr/X11R6/lib -L/usr/X11R6/lib64 $LIBS"
5862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5863 /* end confdefs.h. */
5874 if ac_fn_c_try_link "$LINENO"; then :
5875 ac_cv_lib_GL_main=yes
5877 ac_cv_lib_GL_main=no
5879 rm -f core conftest.err conftest.$ac_objext \
5880 conftest$ac_exeext conftest.$ac_ext
5881 LIBS=$ac_check_lib_save_LIBS
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_main" >&5
5884 $as_echo "$ac_cv_lib_GL_main" >&6; }
5885 if test "x$ac_cv_lib_GL_main" = x""yes; then :
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
5892 $as_echo_n "checking for main in -lpthread... " >&6; }
5893 if test "${ac_cv_lib_pthread_main+set}" = set; then :
5894 $as_echo_n "(cached) " >&6
5896 ac_check_lib_save_LIBS=$LIBS
5897 LIBS="-lpthread $LIBS"
5898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5899 /* end confdefs.h. */
5910 if ac_fn_c_try_link "$LINENO"; then :
5911 ac_cv_lib_pthread_main=yes
5913 ac_cv_lib_pthread_main=no
5915 rm -f core conftest.err conftest.$ac_objext \
5916 conftest$ac_exeext conftest.$ac_ext
5917 LIBS=$ac_check_lib_save_LIBS
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
5920 $as_echo "$ac_cv_lib_pthread_main" >&6; }
5921 if test "x$ac_cv_lib_pthread_main" = x""yes; then :
5928 if test "$zlib" = "true" ; then
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpng" >&5
5930 $as_echo_n "checking for main in -lpng... " >&6; }
5931 if test "${ac_cv_lib_png_main+set}" = set; then :
5932 $as_echo_n "(cached) " >&6
5934 ac_check_lib_save_LIBS=$LIBS
5935 LIBS="-lpng -L/opt/local/lib -lz -lm $LIBS"
5936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5937 /* end confdefs.h. */
5948 if ac_fn_c_try_link "$LINENO"; then :
5949 ac_cv_lib_png_main=yes
5951 ac_cv_lib_png_main=no
5953 rm -f core conftest.err conftest.$ac_objext \
5954 conftest$ac_exeext conftest.$ac_ext
5955 LIBS=$ac_check_lib_save_LIBS
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_main" >&5
5958 $as_echo "$ac_cv_lib_png_main" >&6; }
5959 if test "x$ac_cv_lib_png_main" = x""yes; then :
5961 $as_echo "#define HAVE_PNG 1" >>confdefs.h
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5970 $as_echo_n "checking for ANSI C header files... " >&6; }
5971 if test "${ac_cv_header_stdc+set}" = set; then :
5972 $as_echo_n "(cached) " >&6
5974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5975 /* end confdefs.h. */
5989 if ac_fn_c_try_compile "$LINENO"; then :
5990 ac_cv_header_stdc=yes
5992 ac_cv_header_stdc=no
5994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5996 if test $ac_cv_header_stdc = yes; then
5997 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5999 /* end confdefs.h. */
6003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6004 $EGREP "memchr" >/dev/null 2>&1; then :
6007 ac_cv_header_stdc=no
6013 if test $ac_cv_header_stdc = yes; then
6014 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6016 /* end confdefs.h. */
6020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6021 $EGREP "free" >/dev/null 2>&1; then :
6024 ac_cv_header_stdc=no
6030 if test $ac_cv_header_stdc = yes; then
6031 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6032 if test "$cross_compiling" = yes; then :
6035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6036 /* end confdefs.h. */
6039 #if ((' ' & 0x0FF) == 0x020)
6040 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6041 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6043 # define ISLOWER(c) \
6044 (('a' <= (c) && (c) <= 'i') \
6045 || ('j' <= (c) && (c) <= 'r') \
6046 || ('s' <= (c) && (c) <= 'z'))
6047 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6050 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6055 for (i = 0; i < 256; i++)
6056 if (XOR (islower (i), ISLOWER (i))
6057 || toupper (i) != TOUPPER (i))
6062 if ac_fn_c_try_run "$LINENO"; then :
6065 ac_cv_header_stdc=no
6067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6068 conftest.$ac_objext conftest.beam conftest.$ac_ext
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6074 $as_echo "$ac_cv_header_stdc" >&6; }
6075 if test $ac_cv_header_stdc = yes; then
6077 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6081 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
6083 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6084 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6085 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6086 cat >>confdefs.h <<_ACEOF
6087 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6096 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6097 if test "${ac_cv_c_const+set}" = set; then :
6098 $as_echo_n "(cached) " >&6
6100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6101 /* end confdefs.h. */
6106 /* FIXME: Include the comments suggested by Paul. */
6108 /* Ultrix mips cc rejects this. */
6109 typedef int charset[2];
6111 /* SunOS 4.1.1 cc rejects this. */
6112 char const *const *pcpcc;
6114 /* NEC SVR4.0.2 mips cc rejects this. */
6115 struct point {int x, y;};
6116 static struct point const zero = {0,0};
6117 /* AIX XL C 1.02.0.0 rejects this.
6118 It does not let you subtract one const X* pointer from another in
6119 an arm of an if-expression whose if-part is not a constant
6121 const char *g = "string";
6122 pcpcc = &g + (g ? g-g : 0);
6123 /* HPUX 7.0 cc rejects these. */
6125 ppc = (char**) pcpcc;
6126 pcpcc = (char const *const *) ppc;
6127 { /* SCO 3.2v4 cc rejects this. */
6129 char const *s = 0 ? (char *) 0 : (char const *) 0;
6134 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6136 const int *foo = &x[0];
6139 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6140 typedef const int *iptr;
6144 { /* AIX XL C 1.02.0.0 rejects this saying
6145 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6146 struct s { int j; const int *ap[3]; };
6147 struct s *b; b->j = 5;
6149 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6153 return !cs[0] && !zero.x;
6160 if ac_fn_c_try_compile "$LINENO"; then :
6165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6168 $as_echo "$ac_cv_c_const" >&6; }
6169 if test $ac_cv_c_const = no; then
6171 $as_echo "#define const /**/" >>confdefs.h
6175 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6176 if test "x$ac_cv_type_off_t" = x""yes; then :
6180 cat >>confdefs.h <<_ACEOF
6181 #define off_t long int
6186 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6187 if test "x$ac_cv_type_size_t" = x""yes; then :
6191 cat >>confdefs.h <<_ACEOF
6192 #define size_t unsigned int
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6198 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6199 if test "${ac_cv_struct_tm+set}" = set; then :
6200 $as_echo_n "(cached) " >&6
6202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6203 /* end confdefs.h. */
6204 #include <sys/types.h>
6211 int *p = &tm.tm_sec;
6217 if ac_fn_c_try_compile "$LINENO"; then :
6218 ac_cv_struct_tm=time.h
6220 ac_cv_struct_tm=sys/time.h
6222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6225 $as_echo "$ac_cv_struct_tm" >&6; }
6226 if test $ac_cv_struct_tm = sys/time.h; then
6228 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6233 for ac_func in vprintf
6235 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
6236 if test "x$ac_cv_func_vprintf" = x""yes; then :
6237 cat >>confdefs.h <<_ACEOF
6238 #define HAVE_VPRINTF 1
6241 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6242 if test "x$ac_cv_func__doprnt" = x""yes; then :
6244 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
6252 for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf basename setjmp setpriority time gettimeofday getenv
6254 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6255 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6256 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6257 cat >>confdefs.h <<_ACEOF
6258 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6264 ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
6265 if test "x$ac_cv_func_basename" = x""yes; then :
6269 ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
6270 if test "x$ac_cv_func_setjmp" = x""yes; then :
6274 ac_fn_c_check_func "$LINENO" "setpriority" "ac_cv_func_setpriority"
6275 if test "x$ac_cv_func_setpriority" = x""yes; then :
6279 ac_fn_c_check_func "$LINENO" "time" "ac_cv_func_time"
6280 if test "x$ac_cv_func_time" = x""yes; then :
6284 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
6285 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
6289 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
6290 if test "x$ac_cv_func_getopt" = x""yes; then :
6297 if test "${OSTYPE}" = "cygwin" ; then
6300 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
6301 if test "x$ac_cv_func_getopt_long" = x""yes; then :
6309 if test "${getopt_long}" = "false" ; then
6310 my_includes="$my_includes -I../getopt"
6312 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
6314 ctlibs_base="$ctlibs_base -lgetopt"
6315 LDFLAGS="$LDFLAGS -L../getopt"
6318 if test "$GETOPTLONG"="1"; then
6319 INCLUDED_GETOPT_LONG_TRUE=
6320 INCLUDED_GETOPT_LONG_FALSE='#'
6322 INCLUDED_GETOPT_LONG_TRUE='#'
6323 INCLUDED_GETOPT_LONG_FALSE=
6327 if test "${readline}" = "true" ; then
6328 ctlibs_base="$ctlibs_base -lreadline"
6329 if test "${ncurses}" = "true"; then
6330 ctlibs_base="$ctlibs_base -lncurses"
6331 elif test "${curses}" = "true"; then
6332 ctlibs_base="$ctlibs_base -lcurses"
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking debug" >&5
6337 $as_echo_n "checking debug... " >&6; }
6338 # Check whether --enable-debug was given.
6339 if test "${enable_debug+set}" = set; then :
6340 enableval=$enable_debug; case "${enableval}" in
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6343 $as_echo "yes" >&6; }
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6347 $as_echo "no" >&6; }
6349 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: bad value ${enableval} for --enable-debug" >&5
6350 $as_echo "bad value ${enableval} for --enable-debug" >&6; }
6354 debug=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6355 $as_echo "no" >&6; }
6358 if test "$debug" = "true"; then
6367 if test "$datadir" != "" ; then
6368 CPPFLAGS="$CPPFLAGS -DDATADIR=\"\\\"$datadir\\\"\""
6371 if test "$debug" = "true" ; then
6372 CFLAGS="$CFLAGS -g -O0 -DDEBUG"
6374 $as_echo "#define DEBUG 1" >>confdefs.h
6377 CFLAGS="$CFLAGS -O2 -DNDEBUG -fomit-frame-pointer"
6379 $as_echo "#define NDEBUG 1" >>confdefs.h
6383 if test "${pthread}" = "true" ; then
6385 $as_echo "#define HAVE_WXTHREADS 1" >>confdefs.h
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sstream" >&5
6390 $as_echo_n "checking sstream... " >&6; }
6391 if test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
6392 test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ||
6393 test -f /usr/include/gcc/darwin/3.1/g++-v3/sstream ; then
6395 $as_echo "#define HAVE_SSTREAM 1" >>confdefs.h
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6398 $as_echo "yes" >&6; }
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6401 $as_echo "no" >&6; }
6405 CFLAGS="$CFLAGS -Wall"
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose warnings" >&5
6407 $as_echo_n "checking whether to enable verbose warnings... " >&6; }
6408 # Check whether --enable-verbose-warnings was given.
6409 if test "${enable_verbose_warnings+set}" = set; then :
6410 enableval=$enable_verbose_warnings; case "$enableval" in
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6413 $as_echo "yes" >&6; }
6414 CFLAGS="$CFLAGS -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wredundant-decls"
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6418 $as_echo "no" >&6; }
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6423 $as_echo "no" >&6; }
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking static executables" >&5
6429 $as_echo_n "checking static executables... " >&6; }
6430 # Check whether --enable-static was given.
6431 if test "${enable_static+set}" = set; then :
6432 enableval=$enable_static; case "$enableval" in
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6435 $as_echo "yes" >&6; }
6436 CFLAGS="$CFLAGS --static"
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6440 $as_echo "no" >&6; }
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6445 $as_echo "no" >&6; }
6451 # Check whether --with-lam was given.
6452 if test "${with_lam+set}" = set; then :
6453 withval=$with_lam; if test "$withval" != "no" ; then
6460 if test "$withval" != "no" ; then
6461 if test "$prefix" != "NONE" ; then
6462 trylamdir="$trylamdir $prefix"
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LAM MPI installation" >&5
6466 $as_echo_n "checking for LAM MPI installation... " >&6; }
6467 for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
6468 if test -x "$testlamdir/bin/hcp" ; then
6469 if test "$testlamdir" != "/usr"; then
6470 LDFLAGS="$LDFLAGS -L$testlamdir/lib"
6471 CFLAGS="$CFLAGS -I$testlamdir/include"
6473 CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
6474 lamdir="$testlamdir"
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lamdir" >&5
6482 $as_echo "$lamdir" >&6; }
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6485 $as_echo "no" >&6; }
6490 # Check whether --with-ctn was given.
6491 if test "${with_ctn+set}" = set; then :
6492 withval=$with_ctn; if test "$withval" != "no" ; then
6499 if test "$withval" = "no" -o "$withval" = "NONE" ; then
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CTN DICOM installation" >&5
6501 $as_echo_n "checking for CTN DICOM installation... " >&6; }
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6503 $as_echo "disabled" >&6; }
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CTN DICOM installation" >&5
6506 $as_echo_n "checking for CTN DICOM installation... " >&6; }
6507 for testctndir in $tryctndir/lib /usr/local/lib /usr/local/ctn/lib /usr/lib /usr/ctn/lib /usr/lib/ctn /opt/ctn/lib ; do
6508 if test -f "$testctndir/libctn.a" ; then
6509 LDFLAGS="$LDFLAGS -L$testctndir"
6514 for testctndir in $tryctndir/include /usr/local/include /usr/local/ctn/include /usr/include /usr/include/ctn /usr/ctn/include /opt/ctn/include ; do
6515 if test -f "$testctndir/ctn_os.h" ; then
6516 CFLAGS="$CFLAGS -I$testctndir"
6521 if test "$ctnlib" = "true" -a "$ctninclude" = "true" ; then
6524 $as_echo "#define HAVE_CTN_DICOM 1" >>confdefs.h
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6527 $as_echo "yes" >&6; }
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6530 $as_echo "no" >&6; }
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPU specification" >&5
6535 $as_echo_n "checking for CPU specification... " >&6; }
6537 # Check whether --with-mcpu was given.
6538 if test "${with_mcpu+set}" = set; then :
6543 if test "$withval" = "no" -o "$withval" = "yes" -o "$withval" = ""; then
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6545 $as_echo "no" >&6; }
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
6548 $as_echo "$withval" >&6; }
6549 CFLAGS="$CFLAGS -mcpu=$withval"
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for web access" >&5
6553 $as_echo_n "checking for web access... " >&6; }
6555 # Check whether --with-cgibin-dir was given.
6556 if test "${with_cgibin_dir+set}" = set; then :
6557 withval=$with_cgibin_dir; cgibindir=$withval ;
6562 # Check whether --with-cgibin-url was given.
6563 if test "${with_cgibin_url+set}" = set; then :
6564 withval=$with_cgibin_url; cgibinurl=$withval ;
6569 # Check whether --with-webdata-dir was given.
6570 if test "${with_webdata_dir+set}" = set; then :
6571 withval=$with_webdata_dir; webdatadir=$withval ;
6576 # Check whether --with-webdata-url was given.
6577 if test "${with_webdata_url+set}" = set; then :
6578 withval=$with_webdata_url; webdataurl=$withval ;
6583 # Check whether --with-html-dir was given.
6584 if test "${with_html_dir+set}" = set; then :
6585 withval=$with_html_dir; html_%dir=$withval ;
6589 if test "x$cgibindir" != "x" -o "x$cgibinurl" != "x" ; then
6590 cgiprograms="ctsim.cgi ctsim.conf"
6594 if test "x$html_dir" = "x" ; then
6595 htmldata=simulate.html
6598 if test "x$html_dir" = "x"; then
6607 if test "x$cgibindir" != "x" -o "x$cgibinurl" != "x" -o "x$webdatadir" != "x" -o "x$webdataurl" != "x" -o "x$html_dir" != "x" ; then
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6611 $as_echo "yes" >&6; }
6612 if test "x$cgibindir" = "x" ; then
6613 as_fn_error $? "--with-cgibin-dir not set for web access" "$LINENO" 5
6614 elif test "x$cgibinurl" = "x" ; then
6615 as_fn_error $? "--with-cgibin-url not set for web access" "$LINENO" 5
6616 elif test "x$webdatadir" = "x" ; then
6617 as_fn_error $? "--with-webdata-dir not set for web access" "$LINENO" 5
6618 elif test "x$webdataurl" = "x" ; then
6619 as_fn_error $? "--with-webdata-url not set for web access" "$LINENO" 5
6620 elif test "x$html_dir" = "x" ; then
6621 as_fn_error $? "--with-html-dir not set for web access" "$LINENO" 5
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6625 $as_echo "no" >&6; }
6628 if test "x$lamdir" != "x"; then
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
6638 $as_echo_n "checking for X... " >&6; }
6641 # Check whether --with-x was given.
6642 if test "${with_x+set}" = set; then :
6646 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6647 if test "x$with_x" = xno; then
6648 # The user explicitly disabled X.
6651 case $x_includes,$x_libraries in #(
6652 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
6653 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
6654 $as_echo_n "(cached) " >&6
6656 # One or both of the vars are not set, and there is no cached value.
6657 ac_x_includes=no ac_x_libraries=no
6658 rm -f -r conftest.dir
6659 if mkdir conftest.dir; then
6661 cat >Imakefile <<'_ACEOF'
6663 @echo incroot='${INCROOT}'
6665 @echo usrlibdir='${USRLIBDIR}'
6667 @echo libdir='${LIBDIR}'
6669 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6670 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6671 for ac_var in incroot usrlibdir libdir; do
6672 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6674 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6675 for ac_extension in a so sl dylib la dll; do
6676 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6677 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6678 ac_im_usrlibdir=$ac_im_libdir; break
6681 # Screen out bogus values from the imake configuration. They are
6682 # bogus both because they are the default anyway, and because
6683 # using them would break gcc on systems where it needs fixed includes.
6684 case $ac_im_incroot in
6685 /usr/include) ac_x_includes= ;;
6686 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6688 case $ac_im_usrlibdir in
6689 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
6690 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6694 rm -f -r conftest.dir
6697 # Standard set of common directories for X headers.
6698 # Check X11 before X11Rn because it is often a symlink to the current release.
6712 /usr/local/X11/include
6713 /usr/local/X11R7/include
6714 /usr/local/X11R6/include
6715 /usr/local/X11R5/include
6716 /usr/local/X11R4/include
6718 /usr/local/include/X11
6719 /usr/local/include/X11R7
6720 /usr/local/include/X11R6
6721 /usr/local/include/X11R5
6722 /usr/local/include/X11R4
6726 /usr/XFree86/include/X11
6730 /usr/unsupported/include
6732 /usr/local/x11r5/include
6733 /usr/lpp/Xamples/include
6735 /usr/openwin/include
6736 /usr/openwin/share/include'
6738 if test "$ac_x_includes" = no; then
6739 # Guess where to find include files, by looking for Xlib.h.
6740 # First, try using that file with no special directory specified.
6741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6742 /* end confdefs.h. */
6743 #include <X11/Xlib.h>
6745 if ac_fn_c_try_cpp "$LINENO"; then :
6746 # We can compile using X headers with no special include directory.
6749 for ac_dir in $ac_x_header_dirs; do
6750 if test -r "$ac_dir/X11/Xlib.h"; then
6751 ac_x_includes=$ac_dir
6756 rm -f conftest.err conftest.i conftest.$ac_ext
6757 fi # $ac_x_includes = no
6759 if test "$ac_x_libraries" = no; then
6760 # Check for the libraries.
6761 # See if we find them without any special options.
6762 # Don't add to $LIBS permanently.
6765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6766 /* end confdefs.h. */
6767 #include <X11/Xlib.h>
6776 if ac_fn_c_try_link "$LINENO"; then :
6778 # We can link X programs with no special library path.
6782 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6784 # Don't even attempt the hair of trying to link an X program!
6785 for ac_extension in a so sl dylib la dll; do
6786 if test -r "$ac_dir/libX11.$ac_extension"; then
6787 ac_x_libraries=$ac_dir
6793 rm -f core conftest.err conftest.$ac_objext \
6794 conftest$ac_exeext conftest.$ac_ext
6795 fi # $ac_x_libraries = no
6797 case $ac_x_includes,$ac_x_libraries in #(
6799 # Didn't find X, or a directory has "'" in its name.
6800 ac_cv_have_x="have_x=no";; #(
6802 # Record where we found X for the cache.
6803 ac_cv_have_x="have_x=yes\
6804 ac_x_includes='$ac_x_includes'\
6805 ac_x_libraries='$ac_x_libraries'"
6811 eval "$ac_cv_have_x"
6814 if test "$have_x" != yes; then
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
6816 $as_echo "$have_x" >&6; }
6819 # If each of the values was on the command line, it overrides each guess.
6820 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6821 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6822 # Update the cache value to reflect the command line values.
6823 ac_cv_have_x="have_x=yes\
6824 ac_x_includes='$x_includes'\
6825 ac_x_libraries='$x_libraries'"
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
6827 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6830 if test "$no_x" = yes; then
6831 # Not all programs may use this symbol, but it does not hurt to define it.
6833 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
6835 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6837 if test -n "$x_includes"; then
6838 X_CFLAGS="$X_CFLAGS -I$x_includes"
6841 # It would also be nice to do this for all -L options, not just this one.
6842 if test -n "$x_libraries"; then
6843 X_LIBS="$X_LIBS -L$x_libraries"
6844 # For Solaris; some versions of Sun CC require a space after -R and
6845 # others require no space. Words are not sufficient . . . .
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
6847 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
6848 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6849 ac_xsave_c_werror_flag=$ac_c_werror_flag
6850 ac_c_werror_flag=yes
6851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852 /* end confdefs.h. */
6862 if ac_fn_c_try_link "$LINENO"; then :
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6864 $as_echo "no" >&6; }
6865 X_LIBS="$X_LIBS -R$x_libraries"
6867 LIBS="$ac_xsave_LIBS -R $x_libraries"
6868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6869 /* end confdefs.h. */
6879 if ac_fn_c_try_link "$LINENO"; then :
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6881 $as_echo "yes" >&6; }
6882 X_LIBS="$X_LIBS -R $x_libraries"
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
6885 $as_echo "neither works" >&6; }
6887 rm -f core conftest.err conftest.$ac_objext \
6888 conftest$ac_exeext conftest.$ac_ext
6890 rm -f core conftest.err conftest.$ac_objext \
6891 conftest$ac_exeext conftest.$ac_ext
6892 ac_c_werror_flag=$ac_xsave_c_werror_flag
6896 # Check for system-dependent libraries X programs must link with.
6897 # Do this before checking for the system-independent R6 libraries
6898 # (-lICE), since we may need -lsocket or whatever for X linking.
6900 if test "$ISC" = yes; then
6901 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6903 # Martyn Johnson says this is needed for Ultrix, if the X
6904 # libraries were built with DECnet support. And Karl Berry says
6905 # the Alpha needs dnet_stub (dnet does not exist).
6906 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6908 /* end confdefs.h. */
6910 /* Override any GCC internal prototype to avoid an error.
6911 Use char because int might match the return type of a GCC
6912 builtin and then its argument prototype would still apply. */
6916 char XOpenDisplay ();
6920 return XOpenDisplay ();
6925 if ac_fn_c_try_link "$LINENO"; then :
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
6929 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6930 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
6931 $as_echo_n "(cached) " >&6
6933 ac_check_lib_save_LIBS=$LIBS
6935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6936 /* end confdefs.h. */
6938 /* Override any GCC internal prototype to avoid an error.
6939 Use char because int might match the return type of a GCC
6940 builtin and then its argument prototype would still apply. */
6948 return dnet_ntoa ();
6953 if ac_fn_c_try_link "$LINENO"; then :
6954 ac_cv_lib_dnet_dnet_ntoa=yes
6956 ac_cv_lib_dnet_dnet_ntoa=no
6958 rm -f core conftest.err conftest.$ac_objext \
6959 conftest$ac_exeext conftest.$ac_ext
6960 LIBS=$ac_check_lib_save_LIBS
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6963 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6964 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
6965 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6968 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
6970 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6971 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
6972 $as_echo_n "(cached) " >&6
6974 ac_check_lib_save_LIBS=$LIBS
6975 LIBS="-ldnet_stub $LIBS"
6976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6977 /* end confdefs.h. */
6979 /* Override any GCC internal prototype to avoid an error.
6980 Use char because int might match the return type of a GCC
6981 builtin and then its argument prototype would still apply. */
6989 return dnet_ntoa ();
6994 if ac_fn_c_try_link "$LINENO"; then :
6995 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6997 ac_cv_lib_dnet_stub_dnet_ntoa=no
6999 rm -f core conftest.err conftest.$ac_objext \
7000 conftest$ac_exeext conftest.$ac_ext
7001 LIBS=$ac_check_lib_save_LIBS
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7004 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7005 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
7006 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7011 rm -f core conftest.err conftest.$ac_objext \
7012 conftest$ac_exeext conftest.$ac_ext
7013 LIBS="$ac_xsave_LIBS"
7015 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7016 # to get the SysV transport functions.
7017 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7019 # The nsl library prevents programs from opening the X display
7020 # on Irix 5.2, according to T.E. Dickey.
7021 # The functions gethostbyname, getservbyname, and inet_addr are
7022 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7023 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7024 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
7028 if test $ac_cv_func_gethostbyname = no; then
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7030 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7031 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
7032 $as_echo_n "(cached) " >&6
7034 ac_check_lib_save_LIBS=$LIBS
7036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7037 /* end confdefs.h. */
7039 /* Override any GCC internal prototype to avoid an error.
7040 Use char because int might match the return type of a GCC
7041 builtin and then its argument prototype would still apply. */
7045 char gethostbyname ();
7049 return gethostbyname ();
7054 if ac_fn_c_try_link "$LINENO"; then :
7055 ac_cv_lib_nsl_gethostbyname=yes
7057 ac_cv_lib_nsl_gethostbyname=no
7059 rm -f core conftest.err conftest.$ac_objext \
7060 conftest$ac_exeext conftest.$ac_ext
7061 LIBS=$ac_check_lib_save_LIBS
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7064 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7065 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
7066 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7069 if test $ac_cv_lib_nsl_gethostbyname = no; then
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7071 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7072 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
7073 $as_echo_n "(cached) " >&6
7075 ac_check_lib_save_LIBS=$LIBS
7077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7078 /* end confdefs.h. */
7080 /* Override any GCC internal prototype to avoid an error.
7081 Use char because int might match the return type of a GCC
7082 builtin and then its argument prototype would still apply. */
7086 char gethostbyname ();
7090 return gethostbyname ();
7095 if ac_fn_c_try_link "$LINENO"; then :
7096 ac_cv_lib_bsd_gethostbyname=yes
7098 ac_cv_lib_bsd_gethostbyname=no
7100 rm -f core conftest.err conftest.$ac_objext \
7101 conftest$ac_exeext conftest.$ac_ext
7102 LIBS=$ac_check_lib_save_LIBS
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7105 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7106 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
7107 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7113 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7114 # socket/setsockopt and other routines are undefined under SCO ODT
7115 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7116 # on later versions), says Simon Leinen: it contains gethostby*
7117 # variants that don't use the name server (or something). -lsocket
7118 # must be given before -lnsl if both are needed. We assume that
7119 # if connect needs -lnsl, so does gethostbyname.
7120 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7121 if test "x$ac_cv_func_connect" = x""yes; then :
7125 if test $ac_cv_func_connect = no; then
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7127 $as_echo_n "checking for connect in -lsocket... " >&6; }
7128 if test "${ac_cv_lib_socket_connect+set}" = set; then :
7129 $as_echo_n "(cached) " >&6
7131 ac_check_lib_save_LIBS=$LIBS
7132 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7134 /* end confdefs.h. */
7136 /* Override any GCC internal prototype to avoid an error.
7137 Use char because int might match the return type of a GCC
7138 builtin and then its argument prototype would still apply. */
7151 if ac_fn_c_try_link "$LINENO"; then :
7152 ac_cv_lib_socket_connect=yes
7154 ac_cv_lib_socket_connect=no
7156 rm -f core conftest.err conftest.$ac_objext \
7157 conftest$ac_exeext conftest.$ac_ext
7158 LIBS=$ac_check_lib_save_LIBS
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7161 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7162 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
7163 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7168 # Guillermo Gomez says -lposix is necessary on A/UX.
7169 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7170 if test "x$ac_cv_func_remove" = x""yes; then :
7174 if test $ac_cv_func_remove = no; then
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7176 $as_echo_n "checking for remove in -lposix... " >&6; }
7177 if test "${ac_cv_lib_posix_remove+set}" = set; then :
7178 $as_echo_n "(cached) " >&6
7180 ac_check_lib_save_LIBS=$LIBS
7181 LIBS="-lposix $LIBS"
7182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7183 /* end confdefs.h. */
7185 /* Override any GCC internal prototype to avoid an error.
7186 Use char because int might match the return type of a GCC
7187 builtin and then its argument prototype would still apply. */
7200 if ac_fn_c_try_link "$LINENO"; then :
7201 ac_cv_lib_posix_remove=yes
7203 ac_cv_lib_posix_remove=no
7205 rm -f core conftest.err conftest.$ac_objext \
7206 conftest$ac_exeext conftest.$ac_ext
7207 LIBS=$ac_check_lib_save_LIBS
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7210 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7211 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
7212 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7217 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7218 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7219 if test "x$ac_cv_func_shmat" = x""yes; then :
7223 if test $ac_cv_func_shmat = no; then
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7225 $as_echo_n "checking for shmat in -lipc... " >&6; }
7226 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
7227 $as_echo_n "(cached) " >&6
7229 ac_check_lib_save_LIBS=$LIBS
7231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7232 /* end confdefs.h. */
7234 /* Override any GCC internal prototype to avoid an error.
7235 Use char because int might match the return type of a GCC
7236 builtin and then its argument prototype would still apply. */
7249 if ac_fn_c_try_link "$LINENO"; then :
7250 ac_cv_lib_ipc_shmat=yes
7252 ac_cv_lib_ipc_shmat=no
7254 rm -f core conftest.err conftest.$ac_objext \
7255 conftest$ac_exeext conftest.$ac_ext
7256 LIBS=$ac_check_lib_save_LIBS
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7259 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7260 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
7261 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7267 # Check for libraries that X11R6 Xt/Xaw programs need.
7268 ac_save_LDFLAGS=$LDFLAGS
7269 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7270 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7271 # check for ICE first), but we must link in the order -lSM -lICE or
7272 # we get undefined symbols. So assume we have SM if we have ICE.
7273 # These have to be linked with before -lX11, unlike the other
7274 # libraries we check for below, so use a different variable.
7275 # John Interrante, Karl Berry
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7277 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7278 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
7279 $as_echo_n "(cached) " >&6
7281 ac_check_lib_save_LIBS=$LIBS
7282 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7284 /* end confdefs.h. */
7286 /* Override any GCC internal prototype to avoid an error.
7287 Use char because int might match the return type of a GCC
7288 builtin and then its argument prototype would still apply. */
7292 char IceConnectionNumber ();
7296 return IceConnectionNumber ();
7301 if ac_fn_c_try_link "$LINENO"; then :
7302 ac_cv_lib_ICE_IceConnectionNumber=yes
7304 ac_cv_lib_ICE_IceConnectionNumber=no
7306 rm -f core conftest.err conftest.$ac_objext \
7307 conftest$ac_exeext conftest.$ac_ext
7308 LIBS=$ac_check_lib_save_LIBS
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7311 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7312 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
7313 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7316 LDFLAGS=$ac_save_LDFLAGS
7327 if test "x$with_x" = "xno"; then
7336 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
7339 LDFLAGS="$LDFLAGS -L/usr/local/lib"
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7342 $as_echo_n "checking for X... " >&6; }
7343 if test "$with_x" != "no" && test "$wxwin" = "true"; then
7345 $as_echo "#define HAVE_X11 1" >>confdefs.h
7347 LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib -L/usr/X11R6/lib64"
7348 my_includes="$my_includes -I/usr/X11R6/include"
7349 ctlib_graphics="$ctlibs_base -lctgraphics"
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7351 $as_echo "yes" >&6; }
7352 ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
7353 if test "$libgl" = "true" ; then
7354 # Removed "-lglut" for Mac OS X compilation
7355 ctlib_graphics="$ctlib_graphics -lGL -lGLU"
7356 if test "$wxwin" = "true" ; then
7358 if test "$debug" = "true"; then
7361 if test "x$wx_gtk" != "x" ; then
7362 ctlib_graphics="$ctlib_graphics `$wxconfig $wxdebug --version=2.8 --libs std,gl` ${GTK_LIBS} ${GLIB_LIBS}"
7363 elif test "x$wx_mac" != "x" ; then
7364 ctlib_graphics="$ctlib_graphics `$wxconfig $wxdebug --version=2.8 --libs std,gl`"
7368 if test "$wxwin" = "true" ; then
7370 $as_echo "#define HAVE_SGP 1" >>confdefs.h
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7375 $as_echo "no" >&6; }
7378 if test "$wxwin" = "true"; then
7387 if test "$png" = "true" ; then
7388 ctlibs_tools="$ctlibs_tools -lpng"
7390 if test "$zlib" = "true" ; then
7391 ctlibs_tools="$ctlibs_tools -lz"
7393 if test "$fftw" = "true" ; then
7394 ctlibs_tools="$ctlibs_tools -lfftw3"
7396 if test "$ctn" = "true"; then
7397 ctlibs_tools="$ctlibs_tools -lctn"
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldmallocxx" >&5
7401 $as_echo_n "checking for main in -ldmallocxx... " >&6; }
7402 if test "${ac_cv_lib_dmallocxx_main+set}" = set; then :
7403 $as_echo_n "(cached) " >&6
7405 ac_check_lib_save_LIBS=$LIBS
7406 LIBS="-ldmallocxx $LIBS"
7407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7408 /* end confdefs.h. */
7419 if ac_fn_c_try_link "$LINENO"; then :
7420 ac_cv_lib_dmallocxx_main=yes
7422 ac_cv_lib_dmallocxx_main=no
7424 rm -f core conftest.err conftest.$ac_objext \
7425 conftest$ac_exeext conftest.$ac_ext
7426 LIBS=$ac_check_lib_save_LIBS
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmallocxx_main" >&5
7429 $as_echo "$ac_cv_lib_dmallocxx_main" >&6; }
7430 if test "x$ac_cv_lib_dmallocxx_main" = x""yes; then :
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enable-dmalloc" >&5
7437 $as_echo_n "checking for enable-dmalloc... " >&6; }
7438 # Check whether --enable-dmalloc was given.
7439 if test "${enable_dmalloc+set}" = set; then :
7440 enableval=$enable_dmalloc; case "${enableval}" in
7441 yes) usedmalloc=true
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7443 $as_echo "yes" >&6; }
7445 no) usedmalloc=false
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7447 $as_echo "no" >&6; }
7449 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: bad value ${enableval} for --enable-dmalloc" >&5
7450 $as_echo "bad value ${enableval} for --enable-dmalloc" >&6; }
7454 usedmalloc=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7455 $as_echo "no" >&6; }
7459 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
7460 ctlibs_tools="$ctlibs_tools -ldmallocxx"
7462 $as_echo "#define HAVE_DMALLOC 1" >>confdefs.h
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using dmalloc" >&5
7465 $as_echo "Using dmalloc" >&6; }
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lefence" >&5
7469 $as_echo_n "checking for main in -lefence... " >&6; }
7470 if test "${ac_cv_lib_efence_main+set}" = set; then :
7471 $as_echo_n "(cached) " >&6
7473 ac_check_lib_save_LIBS=$LIBS
7474 LIBS="-lefence $LIBS"
7475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7476 /* end confdefs.h. */
7487 if ac_fn_c_try_link "$LINENO"; then :
7488 ac_cv_lib_efence_main=yes
7490 ac_cv_lib_efence_main=no
7492 rm -f core conftest.err conftest.$ac_objext \
7493 conftest$ac_exeext conftest.$ac_ext
7494 LIBS=$ac_check_lib_save_LIBS
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_main" >&5
7497 $as_echo "$ac_cv_lib_efence_main" >&6; }
7498 if test "x$ac_cv_lib_efence_main" = x""yes; then :
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enable-efence" >&5
7505 $as_echo_n "checking for enable-efence... " >&6; }
7506 # Check whether --enable-efence was given.
7507 if test "${enable_efence+set}" = set; then :
7508 enableval=$enable_efence; case "${enableval}" in
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7511 $as_echo "yes" >&6; }
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7515 $as_echo "no" >&6; }
7517 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: bad value ${enableval} for --enable-efence" >&5
7518 $as_echo "bad value ${enableval} for --enable-efence" >&6; }
7522 useefence=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7523 $as_echo "no" >&6; }
7527 if test "$efence" = "true" -a "$useefence" = "true" ; then
7528 ctlibs_tools="$ctlibs_tools -lefence"
7530 $as_echo "#define HAVE_EFENCE 1" >>confdefs.h
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using efence" >&5
7533 $as_echo "Using efence" >&6; }
7536 if test "$wxwin" = "true" ; then
7537 if test "$wx_gtk" = "true" -o "$wx_mac" = "true" ; then
7538 wxcflags=`$wxconfig $wxdebug --cxxflags --version=2.8`
7539 #wxlibs=`$wxconfig --libs`
7541 wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
7542 wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
7544 CFLAGS="$CFLAGS -I../include $wxcflags"
7545 ctlib_graphics="$ctlib_graphics $wxlibs"
7549 if test "$wxwin"="true"; then
7550 HAVE_WXWINDOWS_TRUE=
7551 HAVE_WXWINDOWS_FALSE='#'
7553 HAVE_WXWINDOWS_TRUE='#'
7554 HAVE_WXWINDOWS_FALSE=
7558 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
7559 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
7562 if test "x$lamdir" != "x" ; then
7563 lamprograms="ctsimtext-lam"
7571 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"
7574 cat >confcache <<\_ACEOF
7575 # This file is a shell script that caches the results of configure
7576 # tests run on this system so they can be shared between configure
7577 # scripts and configure runs, see configure's option --config-cache.
7578 # It is not useful on other systems. If it contains results you don't
7579 # want to keep, you may remove or edit it.
7581 # config.status only pays attention to the cache file if you give it
7582 # the --recheck option to rerun configure.
7584 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7585 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7590 # The following way of writing the cache mishandles newlines in values,
7591 # but we know of no workaround that is simple, portable, and efficient.
7592 # So, we kill variables containing newlines.
7593 # Ultrix sh set writes to stderr and can't be redirected directly,
7594 # and sets the high bit in the cache file unless we assign to the vars.
7596 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7597 eval ac_val=\$$ac_var
7601 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7602 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7605 _ | IFS | as_nl) ;; #(
7606 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7607 *) { eval $ac_var=; unset $ac_var;} ;;
7613 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7614 *${as_nl}ac_space=\ *)
7615 # `set' does not quote correctly, so add quotes: double-quote
7616 # substitution turns \\\\ into \\, and sed turns \\ into \.
7619 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7622 # `set' quotes correctly as required by POSIX, so do not add quotes.
7623 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7632 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7634 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7636 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7637 if test -w "$cache_file"; then
7638 test "x$cache_file" != "x/dev/null" &&
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7640 $as_echo "$as_me: updating cache $cache_file" >&6;}
7641 cat confcache >$cache_file
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7644 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7649 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7650 # Let make expand exec_prefix.
7651 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7653 DEFS=-DHAVE_CONFIG_H
7658 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7659 # 1. Remove the extension, and $U if already installed.
7660 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7661 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7662 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7663 # will be set to the directory where LIBOBJS objects are built.
7664 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7665 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7669 LTLIBOBJS=$ac_ltlibobjs
7672 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7673 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
7674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7676 if test -n "$EXEEXT"; then
7678 am__EXEEXT_FALSE='#'
7684 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7685 as_fn_error $? "conditional \"AMDEP\" was never defined.
7686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7688 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7689 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
7690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7692 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
7693 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
7694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7697 if test -z "${INCLUDED_GETOPT_LONG_TRUE}" && test -z "${INCLUDED_GETOPT_LONG_FALSE}"; then
7698 as_fn_error $? "conditional \"INCLUDED_GETOPT_LONG\" was never defined.
7699 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7701 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
7702 as_fn_error $? "conditional \"DEBUG\" was never defined.
7703 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7705 if test -z "${USE_HTML_TRUE}" && test -z "${USE_HTML_FALSE}"; then
7706 as_fn_error $? "conditional \"USE_HTML\" was never defined.
7707 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7709 if test -z "${USE_LAM_TRUE}" && test -z "${USE_LAM_FALSE}"; then
7710 as_fn_error $? "conditional \"USE_LAM\" was never defined.
7711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7713 if test -z "${NO_X_TRUE}" && test -z "${NO_X_FALSE}"; then
7714 as_fn_error $? "conditional \"NO_X\" was never defined.
7715 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7717 if test -z "${HAVE_SGP_TRUE}" && test -z "${HAVE_SGP_FALSE}"; then
7718 as_fn_error $? "conditional \"HAVE_SGP\" was never defined.
7719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7721 if test -z "${HAVE_WXWINDOWS_TRUE}" && test -z "${HAVE_WXWINDOWS_FALSE}"; then
7722 as_fn_error $? "conditional \"HAVE_WXWINDOWS\" was never defined.
7723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7726 : ${CONFIG_STATUS=./config.status}
7728 ac_clean_files_save=$ac_clean_files
7729 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7731 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7733 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7735 # Generated by $as_me.
7736 # Run this file to recreate the current configuration.
7737 # Compiler output produced by configure, useful for debugging
7738 # configure, is in config.log if it exists.
7744 SHELL=\${CONFIG_SHELL-$SHELL}
7747 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7748 ## -------------------- ##
7749 ## M4sh Initialization. ##
7750 ## -------------------- ##
7752 # Be more Bourne compatible
7753 DUALCASE=1; export DUALCASE # for MKS sh
7754 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7757 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7758 # is contrary to our usage. Disable this feature.
7759 alias -g '${1+"$@"}'='"$@"'
7760 setopt NO_GLOB_SUBST
7762 case `(set -o) 2>/dev/null` in #(
7774 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7775 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7776 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7777 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7778 # Prefer a ksh shell builtin over an external printf program on Solaris,
7779 # but without wasting forks for bash or zsh.
7780 if test -z "$BASH_VERSION$ZSH_VERSION" \
7781 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7782 as_echo='print -r --'
7783 as_echo_n='print -rn --'
7784 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7785 as_echo='printf %s\n'
7786 as_echo_n='printf %s'
7788 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7789 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7790 as_echo_n='/usr/ucb/echo -n'
7792 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7793 as_echo_n_body='eval
7797 expr "X$arg" : "X\\(.*\\)$as_nl";
7798 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7800 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7802 export as_echo_n_body
7803 as_echo_n='sh -c $as_echo_n_body as_echo'
7806 as_echo='sh -c $as_echo_body as_echo'
7809 # The user is always right.
7810 if test "${PATH_SEPARATOR+set}" != set; then
7812 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7813 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7820 # We need space, tab and new line, in precisely that order. Quoting is
7821 # there to prevent editors from complaining about space-tab.
7822 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7823 # splitting by setting IFS to empty value.)
7826 # Find who we are. Look in the path if we contain no directory separator.
7828 *[\\/]* ) as_myself=$0 ;;
7829 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7833 test -z "$as_dir" && as_dir=.
7834 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7840 # We did not find ourselves, most probably we were run as `sh COMMAND'
7841 # in which case we are not to be found in the path.
7842 if test "x$as_myself" = x; then
7845 if test ! -f "$as_myself"; then
7846 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7850 # Unset variables that we do not need and which cause bugs (e.g. in
7851 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7852 # suppresses any "Segmentation fault" message there. '((' could
7853 # trigger a bug in pdksh 5.2.14.
7854 for as_var in BASH_ENV ENV MAIL MAILPATH
7855 do eval test x\${$as_var+set} = xset \
7856 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7869 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7872 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7873 # ----------------------------------------
7874 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7875 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7876 # script with STATUS, using 1 if that was 0.
7879 as_status=$1; test $as_status -eq 0 && as_status=1
7881 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7882 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7884 $as_echo "$as_me: error: $2" >&2
7885 as_fn_exit $as_status
7889 # as_fn_set_status STATUS
7890 # -----------------------
7891 # Set $? to STATUS, without forking.
7895 } # as_fn_set_status
7899 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7909 # Portably unset VAR.
7912 { eval $1=; unset $1;}
7914 as_unset=as_fn_unset
7915 # as_fn_append VAR VALUE
7916 # ----------------------
7917 # Append the text in VALUE to the end of the definition contained in VAR. Take
7918 # advantage of any shell optimizations that allow amortized linear growth over
7919 # repeated appends, instead of the typical quadratic growth present in naive
7921 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7922 eval 'as_fn_append ()
7933 # as_fn_arith ARG...
7934 # ------------------
7935 # Perform arithmetic evaluation on the ARGs, and store the result in the
7936 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7937 # must be portable across $(()) and expr.
7938 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7939 eval 'as_fn_arith ()
7946 as_val=`expr "$@" || test $? -eq 1`
7951 if expr a : '\(a\)' >/dev/null 2>&1 &&
7952 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7958 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7959 as_basename=basename
7964 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7970 as_me=`$as_basename -- "$0" ||
7971 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7972 X"$0" : 'X\(//\)$' \| \
7973 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7975 sed '/^.*\/\([^/][^/]*\)\/*$/{
7989 # Avoid depending upon Character Ranges.
7990 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7991 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7992 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7993 as_cr_digits='0123456789'
7994 as_cr_alnum=$as_cr_Letters$as_cr_digits
7996 ECHO_C= ECHO_N= ECHO_T=
7997 case `echo -n x` in #(((((
7999 case `echo 'xy\c'` in
8000 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8002 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8009 rm -f conf$$ conf$$.exe conf$$.file
8010 if test -d conf$$.dir; then
8011 rm -f conf$$.dir/conf$$.file
8014 mkdir conf$$.dir 2>/dev/null
8016 if (echo >conf$$.file) 2>/dev/null; then
8017 if ln -s conf$$.file conf$$ 2>/dev/null; then
8019 # ... but there are two gotchas:
8020 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8021 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8022 # In both cases, we have to default to `cp -p'.
8023 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8025 elif ln conf$$.file conf$$ 2>/dev/null; then
8033 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8034 rmdir conf$$.dir 2>/dev/null
8039 # Create "$as_dir" as a directory, including parents if necessary.
8044 -*) as_dir=./$as_dir;;
8046 test -d "$as_dir" || eval $as_mkdir_p || {
8050 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8051 *) as_qdir=$as_dir;;
8053 as_dirs="'$as_qdir' $as_dirs"
8054 as_dir=`$as_dirname -- "$as_dir" ||
8055 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8056 X"$as_dir" : 'X\(//\)[^/]' \| \
8057 X"$as_dir" : 'X\(//\)$' \| \
8058 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8059 $as_echo X"$as_dir" |
8060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8077 test -d "$as_dir" && break
8079 test -z "$as_dirs" || eval "mkdir $as_dirs"
8080 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8084 if mkdir -p . 2>/dev/null; then
8085 as_mkdir_p='mkdir -p "$as_dir"'
8087 test -d ./-p && rmdir ./-p
8091 if test -x / >/dev/null 2>&1; then
8094 if ls -dL / >/dev/null 2>&1; then
8101 if test -d "$1"; then
8107 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8108 ???[sx]*):;;*)false;;esac;fi
8112 as_executable_p=$as_test_x
8114 # Sed expression to map a string onto a valid CPP name.
8115 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8117 # Sed expression to map a string onto a valid variable name.
8118 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8122 ## ----------------------------------- ##
8123 ## Main body of $CONFIG_STATUS script. ##
8124 ## ----------------------------------- ##
8126 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8128 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8129 # Save the log message, to keep $0 and so on meaningful, and to
8130 # report actual input values of CONFIG_FILES etc. instead of their
8131 # values after options handling.
8133 This file was extended by CTSim $as_me 5.2.0, which was
8134 generated by GNU Autoconf 2.67. Invocation command line was
8136 CONFIG_FILES = $CONFIG_FILES
8137 CONFIG_HEADERS = $CONFIG_HEADERS
8138 CONFIG_LINKS = $CONFIG_LINKS
8139 CONFIG_COMMANDS = $CONFIG_COMMANDS
8142 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8147 case $ac_config_files in *"
8148 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8151 case $ac_config_headers in *"
8152 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8156 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8157 # Files that config.status was made for.
8158 config_files="$ac_config_files"
8159 config_headers="$ac_config_headers"
8160 config_commands="$ac_config_commands"
8164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8166 \`$as_me' instantiates files and other configuration actions
8167 from templates according to the current configuration. Unless the files
8168 and actions are specified as TAGs, all are instantiated by default.
8170 Usage: $0 [OPTION]... [TAG]...
8172 -h, --help print this help, then exit
8173 -V, --version print version number and configuration settings, then exit
8174 --config print configuration, then exit
8175 -q, --quiet, --silent
8176 do not print progress messages
8177 -d, --debug don't remove temporary files
8178 --recheck update $as_me by reconfiguring in the same conditions
8179 --file=FILE[:TEMPLATE]
8180 instantiate the configuration file FILE
8181 --header=FILE[:TEMPLATE]
8182 instantiate the configuration header FILE
8184 Configuration files:
8187 Configuration headers:
8190 Configuration commands:
8193 Report bugs to <ctsim-users@kpe.io>.
8194 CTSim home page: <http://www.ctsim.org/>."
8197 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8198 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8200 CTSim config.status 5.2.0
8201 configured by $0, generated by GNU Autoconf 2.67,
8202 with options \\"\$ac_cs_config\\"
8204 Copyright (C) 2010 Free Software Foundation, Inc.
8205 This config.status script is free software; the Free Software Foundation
8206 gives unlimited permission to copy, distribute and modify it."
8213 test -n "\$AWK" || AWK=awk
8216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8217 # The default lists apply if the user does not specify any file.
8223 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8224 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8228 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8240 # Handling of the options.
8241 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8243 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8244 $as_echo "$ac_cs_version"; exit ;;
8245 --config | --confi | --conf | --con | --co | --c )
8246 $as_echo "$ac_cs_config"; exit ;;
8247 --debug | --debu | --deb | --de | --d | -d )
8249 --file | --fil | --fi | --f )
8252 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8253 '') as_fn_error $? "missing file argument" ;;
8255 as_fn_append CONFIG_FILES " '$ac_optarg'"
8256 ac_need_defaults=false;;
8257 --header | --heade | --head | --hea )
8260 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8262 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8263 ac_need_defaults=false;;
8265 # Conflict between --help and --header
8266 as_fn_error $? "ambiguous option: \`$1'
8267 Try \`$0 --help' for more information.";;
8268 --help | --hel | -h )
8269 $as_echo "$ac_cs_usage"; exit ;;
8270 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8271 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8275 -*) as_fn_error $? "unrecognized option: \`$1'
8276 Try \`$0 --help' for more information." ;;
8278 *) as_fn_append ac_config_targets " $1"
8279 ac_need_defaults=false ;;
8285 ac_configure_extra_args=
8287 if $ac_cs_silent; then
8289 ac_configure_extra_args="$ac_configure_extra_args --silent"
8293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8294 if \$ac_cs_recheck; then
8295 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8297 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8298 CONFIG_SHELL='$SHELL'
8304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8308 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8309 ## Running $as_me. ##
8315 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8319 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8325 # Handling of arguments.
8326 for ac_config_target in $ac_config_targets
8328 case $ac_config_target in
8329 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8330 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8331 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8332 "libctgraphics/Makefile") CONFIG_FILES="$CONFIG_FILES libctgraphics/Makefile" ;;
8333 "libctsupport/Makefile") CONFIG_FILES="$CONFIG_FILES libctsupport/Makefile" ;;
8334 "libctsim/Makefile") CONFIG_FILES="$CONFIG_FILES libctsim/Makefile" ;;
8335 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
8336 "cgi-bin/ctsim.cgi") CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.cgi" ;;
8337 "cgi-bin/Makefile") CONFIG_FILES="$CONFIG_FILES cgi-bin/Makefile" ;;
8338 "html/simulate.html") CONFIG_FILES="$CONFIG_FILES html/simulate.html" ;;
8339 "html/Makefile") CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
8340 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
8341 "getopt/Makefile") CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
8342 "tools/sample-ctsim.sh") CONFIG_FILES="$CONFIG_FILES tools/sample-ctsim.sh" ;;
8343 "cgi-bin/ctsim.conf") CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.conf" ;;
8344 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
8345 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8346 "helical/Makefile") CONFIG_FILES="$CONFIG_FILES helical/Makefile" ;;
8347 "helical/sample-helical.sh") CONFIG_FILES="$CONFIG_FILES helical/sample-helical.sh" ;;
8349 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
8354 # If the user did not use the arguments to specify the items to instantiate,
8355 # then the envvar interface is used. Set only those that are not.
8356 # We use the long form for the default assignment because of an extremely
8357 # bizarre bug on SunOS 4.1.3.
8358 if $ac_need_defaults; then
8359 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8360 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8361 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8364 # Have a temporary directory for convenience. Make it in the build tree
8365 # simply because there is no reason against having it here, and in addition,
8366 # creating and moving files from /tmp can sometimes cause problems.
8367 # Hook for its removal unless debugging.
8368 # Note that there is a small window in which the directory will not be cleaned:
8369 # after its creation but before its name has been assigned to `$tmp'.
8373 trap 'exit_status=$?
8374 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8376 trap 'as_fn_exit 1' 1 2 13 15
8378 # Create a (secure) tmp directory for tmp files.
8381 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8382 test -n "$tmp" && test -d "$tmp"
8385 tmp=./conf$$-$RANDOM
8386 (umask 077 && mkdir "$tmp")
8387 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8389 # Set up the scripts for CONFIG_FILES section.
8390 # No need to generate them if there are no CONFIG_FILES.
8391 # This happens for instance with `./config.status config.h'.
8392 if test -n "$CONFIG_FILES"; then
8395 ac_cr=`echo X | tr X '\015'`
8396 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8397 # But we know of no other shell where ac_cr would be empty at this
8398 # point, so we can use a bashism as a fallback.
8399 if test "x$ac_cr" = x; then
8400 eval ac_cr=\$\'\\r\'
8402 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8403 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8409 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8414 echo "cat >conf$$subs.awk <<_ACEOF" &&
8415 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8418 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8419 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8421 for ac_last_try in false false false false false :; do
8422 . ./conf$$subs.sh ||
8423 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8425 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8426 if test $ac_delim_n = $ac_delim_num; then
8428 elif $ac_last_try; then
8429 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8431 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8436 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8437 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8441 s/^/S["/; s/!.*/"]=/
8451 s/\(.\{148\}\)..*/\1/
8453 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8458 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8465 s/\(.\{148\}\)..*/\1/
8467 s/["\\]/\\&/g; s/^/"/; s/$/"/
8471 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8476 ' <conf$$subs.awk | sed '
8481 ' >>$CONFIG_STATUS || ac_write_fail=1
8482 rm -f conf$$subs.awk
8483 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8485 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8486 for (key in S) S_is_set[key] = 1
8492 nfields = split(line, field, "@")
8494 len = length(field[1])
8495 for (i = 2; i < nfields; i++) {
8497 keylen = length(key)
8498 if (S_is_set[key]) {
8500 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8501 len += length(value) + length(field[++i])
8512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8513 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8514 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8517 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8518 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8521 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8522 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8523 # trailing colons and then remove the whole line if VPATH becomes empty
8524 # (actually we leave an empty line to preserve line numbers).
8525 if test "x$srcdir" = x.; then
8526 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8544 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8545 fi # test -n "$CONFIG_FILES"
8547 # Set up the scripts for CONFIG_HEADERS section.
8548 # No need to generate them if there are no CONFIG_HEADERS.
8549 # This happens for instance with `./config.status Makefile'.
8550 if test -n "$CONFIG_HEADERS"; then
8551 cat >"$tmp/defines.awk" <<\_ACAWK ||
8555 # Transform confdefs.h into an awk script `defines.awk', embedded as
8556 # here-document in config.status, that substitutes the proper values into
8557 # config.h.in to produce config.h.
8559 # Create a delimiter string that does not exist in confdefs.h, to ease
8560 # handling of long lines.
8562 for ac_last_try in false false :; do
8563 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8564 if test -z "$ac_t"; then
8566 elif $ac_last_try; then
8567 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8569 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8573 # For the awk script, D is an array of macro values keyed by name,
8574 # likewise P contains macro parameters if any. Preserve backslash
8575 # newline sequences.
8577 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8579 s/.\{148\}/&'"$ac_delim"'/g
8582 s/^[ ]*#[ ]*define[ ][ ]*/ /
8589 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8591 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8595 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8596 D["\1"]=" \3\\\\\\n"\\/p
8598 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8603 s/.\{148\}/&'"$ac_delim"'/g
8608 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8611 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8613 ' <confdefs.h | sed '
8614 s/'"$ac_delim"'/"\\\
8615 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8618 for (key in D) D_is_set[key] = 1
8621 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8623 split(line, arg, " ")
8624 if (arg[1] == "#") {
8628 defundef = substr(arg[1], 2)
8631 split(mac1, mac2, "(") #)
8633 prefix = substr(line, 1, index(line, defundef) - 1)
8634 if (D_is_set[macro]) {
8635 # Preserve the white space surrounding the "#".
8636 print prefix "define", macro P[macro] D[macro]
8639 # Replace #undef with comments. This is necessary, for example,
8640 # in the case of _POSIX_SOURCE, which is predefined and required
8641 # on some systems where configure will not decide to define it.
8642 if (defundef == "undef") {
8643 print "/*", prefix defundef, macro, "*/"
8651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8652 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8653 fi # test -n "$CONFIG_HEADERS"
8656 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8661 :[FHLC]) ac_mode=$ac_tag; continue;;
8663 case $ac_mode$ac_tag in
8665 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
8666 :[FH]-) ac_tag=-:-;;
8667 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8684 -) ac_f="$tmp/stdin";;
8685 *) # Look for the file first in the build tree, then in the source tree
8686 # (if the path is not absolute). The absolute path cannot be DOS-style,
8687 # because $ac_f cannot contain `:'.
8691 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8693 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
8695 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8696 as_fn_append ac_file_inputs " '$ac_f'"
8699 # Let's still pretend it is `configure' which instantiates (i.e., don't
8700 # use $as_me), people would be surprised to read:
8701 # /* config.h. Generated by config.status. */
8702 configure_input='Generated from '`
8703 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8705 if test x"$ac_file" != x-; then
8706 configure_input="$ac_file. $configure_input"
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8708 $as_echo "$as_me: creating $ac_file" >&6;}
8710 # Neutralize special characters interpreted by sed in replacement strings.
8711 case $configure_input in #(
8712 *\&* | *\|* | *\\* )
8713 ac_sed_conf_input=`$as_echo "$configure_input" |
8714 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8715 *) ac_sed_conf_input=$configure_input;;
8719 *:-:* | *:-) cat >"$tmp/stdin" \
8720 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8725 ac_dir=`$as_dirname -- "$ac_file" ||
8726 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8727 X"$ac_file" : 'X\(//\)[^/]' \| \
8728 X"$ac_file" : 'X\(//\)$' \| \
8729 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8730 $as_echo X"$ac_file" |
8731 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8748 as_dir="$ac_dir"; as_fn_mkdir_p
8752 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8754 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8755 # A ".." for each directory in $ac_dir_suffix.
8756 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8757 case $ac_top_builddir_sub in
8758 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8759 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8762 ac_abs_top_builddir=$ac_pwd
8763 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8764 # for backward compatibility:
8765 ac_top_builddir=$ac_top_build_prefix
8768 .) # We are building in place.
8770 ac_top_srcdir=$ac_top_builddir_sub
8771 ac_abs_top_srcdir=$ac_pwd ;;
8772 [\\/]* | ?:[\\/]* ) # Absolute name.
8773 ac_srcdir=$srcdir$ac_dir_suffix;
8774 ac_top_srcdir=$srcdir
8775 ac_abs_top_srcdir=$srcdir ;;
8777 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8778 ac_top_srcdir=$ac_top_build_prefix$srcdir
8779 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8781 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8791 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8792 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8796 [\\/$]* | ?:[\\/]* ) ;;
8797 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8802 # If the template does not know about datarootdir, expand it.
8803 # FIXME: This hack should be removed a few years after 2.60.
8804 ac_datarootdir_hack=; ac_datarootdir_seen=
8815 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8816 *datarootdir*) ac_datarootdir_seen=yes;;
8817 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8819 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8821 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8822 ac_datarootdir_hack='
8823 s&@datadir@&$datadir&g
8824 s&@docdir@&$docdir&g
8825 s&@infodir@&$infodir&g
8826 s&@localedir@&$localedir&g
8827 s&@mandir@&$mandir&g
8828 s&\\\${datarootdir}&$datarootdir&g' ;;
8832 # Neutralize VPATH when `$srcdir' = `.'.
8833 # Shell code in configure.ac might set extrasub.
8834 # FIXME: do we really want to maintain this feature?
8835 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8836 ac_sed_extra="$ac_vpsub
8839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8841 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8842 s|@configure_input@|$ac_sed_conf_input|;t t
8843 s&@top_builddir@&$ac_top_builddir_sub&;t t
8844 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8845 s&@srcdir@&$ac_srcdir&;t t
8846 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8847 s&@top_srcdir@&$ac_top_srcdir&;t t
8848 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8849 s&@builddir@&$ac_builddir&;t t
8850 s&@abs_builddir@&$ac_abs_builddir&;t t
8851 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8852 s&@INSTALL@&$ac_INSTALL&;t t
8853 s&@MKDIR_P@&$ac_MKDIR_P&;t t
8854 $ac_datarootdir_hack
8856 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8857 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8859 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8860 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8861 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8863 which seems to be undefined. Please make sure it is defined" >&5
8864 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8865 which seems to be undefined. Please make sure it is defined" >&2;}
8869 -) cat "$tmp/out" && rm -f "$tmp/out";;
8870 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8872 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8878 if test x"$ac_file" != x-; then
8880 $as_echo "/* $configure_input */" \
8881 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8882 } >"$tmp/config.h" \
8883 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8884 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8886 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8889 mv "$tmp/config.h" "$ac_file" \
8890 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8893 $as_echo "/* $configure_input */" \
8894 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8895 || as_fn_error $? "could not create -" "$LINENO" 5
8897 # Compute "$ac_file"'s index in $config_headers.
8900 for _am_header in $config_headers :; do
8902 $_am_arg | $_am_arg:* )
8905 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8908 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8909 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8910 X"$_am_arg" : 'X\(//\)[^/]' \| \
8911 X"$_am_arg" : 'X\(//\)$' \| \
8912 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8913 $as_echo X"$_am_arg" |
8914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8930 s/.*/./; q'`/stamp-h$_am_stamp_count
8933 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8934 $as_echo "$as_me: executing $ac_file commands" >&6;}
8939 case $ac_file$ac_mode in
8940 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
8941 # Autoconf 2.62 quotes --file arguments for eval, but not when files
8942 # are listed without --file. Let's play safe and only enable the eval
8943 # if we detect the quoting.
8944 case $CONFIG_FILES in
8945 *\'*) eval set x "$CONFIG_FILES" ;;
8946 *) set x $CONFIG_FILES ;;
8951 # Strip MF so we end up with the name of the file.
8952 mf=`echo "$mf" | sed -e 's/:.*$//'`
8953 # Check whether this is an Automake generated Makefile or not.
8954 # We used to match only the files named `Makefile.in', but
8955 # some people rename them; so instead we look at the file content.
8956 # Grep'ing the first line is not enough: some people post-process
8957 # each Makefile.in and add a new line on top of each file to say so.
8958 # Grep'ing the whole file is not good either: AIX grep has a line
8959 # limit of 2048, but all sed's we know have understand at least 4000.
8960 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8961 dirpart=`$as_dirname -- "$mf" ||
8962 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8963 X"$mf" : 'X\(//\)[^/]' \| \
8964 X"$mf" : 'X\(//\)$' \| \
8965 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8987 # Extract the definition of DEPDIR, am__include, and am__quote
8988 # from the Makefile without running `make'.
8989 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8990 test -z "$DEPDIR" && continue
8991 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8992 test -z "am__include" && continue
8993 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8994 # When using ansi2knr, U may be empty or an underscore; expand it
8995 U=`sed -n 's/^U = //p' < "$mf"`
8996 # Find all dependency output files, they are included files with
8997 # $(DEPDIR) in their names. We invoke sed twice because it is the
8998 # simplest approach to changing $(DEPDIR) to its actual value in the
9000 for file in `sed -n "
9001 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9002 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9003 # Make sure the directory exists.
9004 test -f "$dirpart/$file" && continue
9005 fdir=`$as_dirname -- "$file" ||
9006 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9007 X"$file" : 'X\(//\)[^/]' \| \
9008 X"$file" : 'X\(//\)$' \| \
9009 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9028 as_dir=$dirpart/$fdir; as_fn_mkdir_p
9029 # echo "creating $dirpart/$file"
9030 echo '# dummy' > "$dirpart/$file"
9042 ac_clean_files=$ac_clean_files_save
9044 test $ac_write_fail = 0 ||
9045 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9048 # configure is writing to config.log, and then calls config.status.
9049 # config.status does its own redirection, appending to config.log.
9050 # Unfortunately, on DOS this fails, as config.log is still kept open
9051 # by configure, so config.status won't be able to write to it; its
9052 # output is simply discarded. So we exec the FD to /dev/null,
9053 # effectively closing config.log, so it can be properly (re)opened and
9054 # appended to by config.status. When coming back to configure, we
9055 # need to make the FD available again.
9056 if test "$no_create" != yes; then
9058 ac_config_status_args=
9059 test "$silent" = yes &&
9060 ac_config_status_args="$ac_config_status_args --quiet"
9062 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9064 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9065 # would make configure fail if this is the last instruction.
9066 $ac_cs_success || as_fn_exit 1
9068 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9070 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}