2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir=.
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir=./$as_dir;;
283 test -d "$as_dir" || eval $as_mkdir_p || {
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
352 as_val=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status=$?; test $as_status -eq 0 && as_status=1
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
479 elif ln conf$$.file conf$$ 2>/dev/null; then
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
493 test -d ./-p && rmdir ./-p
497 if test -x / >/dev/null 2>&1; then
500 if ls -dL / >/dev/null 2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
537 ac_default_prefix=/usr/local
539 ac_config_libobj_dir=.
546 # Identity of this package.
554 ac_unique_file="src/ctsim.cpp"
555 # Factoring default headers for most tests.
556 ac_includes_default="\
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
568 # ifdef HAVE_STDLIB_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
591 ac_subst_vars='am__EXEEXT_FALSE
629 INCLUDED_GETOPT_LONG_FALSE
630 INCLUDED_GETOPT_LONG_TRUE
674 INSTALL_STRIP_PROGRAM
690 MAINTAINER_MODE_FALSE
719 program_transform_name
732 enable_option_checking
733 enable_maintainer_mode
734 enable_dependency_tracking
736 enable_verbose_warnings
750 ac_precious_vars='build_alias
765 # Initialize some variables set by options.
767 ac_init_version=false
768 ac_unrecognized_opts=
770 # The variables have the same names as the options, with
771 # dashes changed to underlines.
779 program_transform_name=s,x,x,
787 # Installation directory options.
788 # These are left unexpanded so users can "make install exec_prefix=/foo"
789 # and all the variables that are supposed to be based on exec_prefix
790 # by default will actually change.
791 # Use braces instead of parens because sh, perl, etc. also accept them.
792 # (The list follows the same order as the GNU Coding Standards.)
793 bindir='${exec_prefix}/bin'
794 sbindir='${exec_prefix}/sbin'
795 libexecdir='${exec_prefix}/libexec'
796 datarootdir='${prefix}/share'
797 datadir='${datarootdir}'
798 sysconfdir='${prefix}/etc'
799 sharedstatedir='${prefix}/com'
800 localstatedir='${prefix}/var'
801 includedir='${prefix}/include'
802 oldincludedir='/usr/include'
803 docdir='${datarootdir}/doc/${PACKAGE}'
804 infodir='${datarootdir}/info'
809 libdir='${exec_prefix}/lib'
810 localedir='${datarootdir}/locale'
811 mandir='${datarootdir}/man'
817 # If the previous option needs an argument, assign it.
818 if test -n "$ac_prev"; then
819 eval $ac_prev=\$ac_option
825 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
829 # Accept the important Cygnus configure options, so we can diagnose typos.
831 case $ac_dashdash$ac_option in
835 -bindir | --bindir | --bindi | --bind | --bin | --bi)
837 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
840 -build | --build | --buil | --bui | --bu)
841 ac_prev=build_alias ;;
842 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
843 build_alias=$ac_optarg ;;
845 -cache-file | --cache-file | --cache-fil | --cache-fi \
846 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
847 ac_prev=cache_file ;;
848 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
849 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
850 cache_file=$ac_optarg ;;
853 cache_file=config.cache ;;
855 -datadir | --datadir | --datadi | --datad)
857 -datadir=* | --datadir=* | --datadi=* | --datad=*)
858 datadir=$ac_optarg ;;
860 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
861 | --dataroo | --dataro | --datar)
862 ac_prev=datarootdir ;;
863 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
864 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
865 datarootdir=$ac_optarg ;;
867 -disable-* | --disable-*)
868 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
869 # Reject names that are not valid shell variable names.
870 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
871 as_fn_error "invalid feature name: $ac_useropt"
872 ac_useropt_orig=$ac_useropt
873 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
874 case $ac_user_opts in
878 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
879 ac_unrecognized_sep=', ';;
881 eval enable_$ac_useropt=no ;;
883 -docdir | --docdir | --docdi | --doc | --do)
885 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
888 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
890 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
893 -enable-* | --enable-*)
894 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
895 # Reject names that are not valid shell variable names.
896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897 as_fn_error "invalid feature name: $ac_useropt"
898 ac_useropt_orig=$ac_useropt
899 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900 case $ac_user_opts in
904 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
905 ac_unrecognized_sep=', ';;
907 eval enable_$ac_useropt=\$ac_optarg ;;
909 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
910 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
911 | --exec | --exe | --ex)
912 ac_prev=exec_prefix ;;
913 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
914 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
915 | --exec=* | --exe=* | --ex=*)
916 exec_prefix=$ac_optarg ;;
918 -gas | --gas | --ga | --g)
919 # Obsolete; use --with-gas.
922 -help | --help | --hel | --he | -h)
924 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
925 ac_init_help=recursive ;;
926 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
927 ac_init_help=short ;;
929 -host | --host | --hos | --ho)
930 ac_prev=host_alias ;;
931 -host=* | --host=* | --hos=* | --ho=*)
932 host_alias=$ac_optarg ;;
934 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
936 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
938 htmldir=$ac_optarg ;;
940 -includedir | --includedir | --includedi | --included | --include \
941 | --includ | --inclu | --incl | --inc)
942 ac_prev=includedir ;;
943 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
944 | --includ=* | --inclu=* | --incl=* | --inc=*)
945 includedir=$ac_optarg ;;
947 -infodir | --infodir | --infodi | --infod | --info | --inf)
949 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
950 infodir=$ac_optarg ;;
952 -libdir | --libdir | --libdi | --libd)
954 -libdir=* | --libdir=* | --libdi=* | --libd=*)
957 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
958 | --libexe | --libex | --libe)
959 ac_prev=libexecdir ;;
960 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
961 | --libexe=* | --libex=* | --libe=*)
962 libexecdir=$ac_optarg ;;
964 -localedir | --localedir | --localedi | --localed | --locale)
966 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
967 localedir=$ac_optarg ;;
969 -localstatedir | --localstatedir | --localstatedi | --localstated \
970 | --localstate | --localstat | --localsta | --localst | --locals)
971 ac_prev=localstatedir ;;
972 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
973 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
974 localstatedir=$ac_optarg ;;
976 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
978 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
982 # Obsolete; use --without-fp.
985 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
986 | --no-cr | --no-c | -n)
989 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
990 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
993 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
994 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
995 | --oldin | --oldi | --old | --ol | --o)
996 ac_prev=oldincludedir ;;
997 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
998 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
999 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1000 oldincludedir=$ac_optarg ;;
1002 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1004 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1005 prefix=$ac_optarg ;;
1007 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1008 | --program-pre | --program-pr | --program-p)
1009 ac_prev=program_prefix ;;
1010 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1011 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1012 program_prefix=$ac_optarg ;;
1014 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1015 | --program-suf | --program-su | --program-s)
1016 ac_prev=program_suffix ;;
1017 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1018 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1019 program_suffix=$ac_optarg ;;
1021 -program-transform-name | --program-transform-name \
1022 | --program-transform-nam | --program-transform-na \
1023 | --program-transform-n | --program-transform- \
1024 | --program-transform | --program-transfor \
1025 | --program-transfo | --program-transf \
1026 | --program-trans | --program-tran \
1027 | --progr-tra | --program-tr | --program-t)
1028 ac_prev=program_transform_name ;;
1029 -program-transform-name=* | --program-transform-name=* \
1030 | --program-transform-nam=* | --program-transform-na=* \
1031 | --program-transform-n=* | --program-transform-=* \
1032 | --program-transform=* | --program-transfor=* \
1033 | --program-transfo=* | --program-transf=* \
1034 | --program-trans=* | --program-tran=* \
1035 | --progr-tra=* | --program-tr=* | --program-t=*)
1036 program_transform_name=$ac_optarg ;;
1038 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1040 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1041 pdfdir=$ac_optarg ;;
1043 -psdir | --psdir | --psdi | --psd | --ps)
1045 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049 | -silent | --silent | --silen | --sile | --sil)
1052 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1054 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1056 sbindir=$ac_optarg ;;
1058 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1059 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1060 | --sharedst | --shareds | --shared | --share | --shar \
1062 ac_prev=sharedstatedir ;;
1063 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1064 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1065 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1067 sharedstatedir=$ac_optarg ;;
1069 -site | --site | --sit)
1071 -site=* | --site=* | --sit=*)
1074 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1076 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1077 srcdir=$ac_optarg ;;
1079 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1080 | --syscon | --sysco | --sysc | --sys | --sy)
1081 ac_prev=sysconfdir ;;
1082 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1083 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1084 sysconfdir=$ac_optarg ;;
1086 -target | --target | --targe | --targ | --tar | --ta | --t)
1087 ac_prev=target_alias ;;
1088 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1089 target_alias=$ac_optarg ;;
1091 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1094 -version | --version | --versio | --versi | --vers | -V)
1095 ac_init_version=: ;;
1098 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1101 as_fn_error "invalid package name: $ac_useropt"
1102 ac_useropt_orig=$ac_useropt
1103 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104 case $ac_user_opts in
1108 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1109 ac_unrecognized_sep=', ';;
1111 eval with_$ac_useropt=\$ac_optarg ;;
1113 -without-* | --without-*)
1114 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117 as_fn_error "invalid package name: $ac_useropt"
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1127 eval with_$ac_useropt=no ;;
1130 # Obsolete; use --with-x.
1133 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1134 | --x-incl | --x-inc | --x-in | --x-i)
1135 ac_prev=x_includes ;;
1136 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1137 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1138 x_includes=$ac_optarg ;;
1140 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1141 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1142 ac_prev=x_libraries ;;
1143 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1144 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1145 x_libraries=$ac_optarg ;;
1147 -*) as_fn_error "unrecognized option: \`$ac_option'
1148 Try \`$0 --help' for more information."
1152 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1153 # Reject names that are not valid shell variable names.
1154 case $ac_envvar in #(
1155 '' | [0-9]* | *[!_$as_cr_alnum]* )
1156 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1158 eval $ac_envvar=\$ac_optarg
1159 export $ac_envvar ;;
1162 # FIXME: should be removed in autoconf 3.0.
1163 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1164 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1165 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1166 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1172 if test -n "$ac_prev"; then
1173 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1174 as_fn_error "missing argument to $ac_option"
1177 if test -n "$ac_unrecognized_opts"; then
1178 case $enable_option_checking in
1180 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1181 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1185 # Check all directory arguments for consistency.
1186 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1187 datadir sysconfdir sharedstatedir localstatedir includedir \
1188 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1189 libdir localedir mandir
1191 eval ac_val=\$$ac_var
1192 # Remove trailing slashes.
1195 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1196 eval $ac_var=\$ac_val;;
1198 # Be sure to have absolute directory names.
1200 [\\/$]* | ?:[\\/]* ) continue;;
1201 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1203 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1206 # There might be people who depend on the old broken behavior: `$host'
1207 # used to hold the argument of --host etc.
1208 # FIXME: To remove some day.
1211 target=$target_alias
1213 # FIXME: To remove some day.
1214 if test "x$host_alias" != x; then
1215 if test "x$build_alias" = x; then
1216 cross_compiling=maybe
1217 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1218 If a cross compiler is detected then cross compile mode will be used." >&2
1219 elif test "x$build_alias" != "x$host_alias"; then
1225 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1227 test "$silent" = yes && exec 6>/dev/null
1230 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1231 ac_ls_di=`ls -di .` &&
1232 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1233 as_fn_error "working directory cannot be determined"
1234 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1235 as_fn_error "pwd does not report name of working directory"
1238 # Find the source files, if location was not specified.
1239 if test -z "$srcdir"; then
1240 ac_srcdir_defaulted=yes
1241 # Try the directory containing this script, then the parent directory.
1242 ac_confdir=`$as_dirname -- "$as_myself" ||
1243 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1244 X"$as_myself" : 'X\(//\)[^/]' \| \
1245 X"$as_myself" : 'X\(//\)$' \| \
1246 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1247 $as_echo X"$as_myself" |
1248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266 if test ! -r "$srcdir/$ac_unique_file"; then
1270 ac_srcdir_defaulted=no
1272 if test ! -r "$srcdir/$ac_unique_file"; then
1273 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1274 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1276 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1278 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1280 # When building in place, set srcdir=.
1281 if test "$ac_abs_confdir" = "$ac_pwd"; then
1284 # Remove unnecessary trailing slashes from srcdir.
1285 # Double slashes in file names in object file debugging info
1286 # mess up M-x gdb in Emacs.
1288 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1290 for ac_var in $ac_precious_vars; do
1291 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_env_${ac_var}_value=\$${ac_var}
1293 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1294 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1298 # Report the --help message.
1300 if test "$ac_init_help" = "long"; then
1301 # Omit some internal or obsolete options to make the list less imposing.
1302 # This message is too long to be a string in the A/UX 3.1 sh.
1304 \`configure' configures this package to adapt to many kinds of systems.
1306 Usage: $0 [OPTION]... [VAR=VALUE]...
1308 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1309 VAR=VALUE. See below for descriptions of some of the useful variables.
1311 Defaults for the options are specified in brackets.
1314 -h, --help display this help and exit
1315 --help=short display options specific to this package
1316 --help=recursive display the short help of all the included packages
1317 -V, --version display version information and exit
1318 -q, --quiet, --silent do not print \`checking...' messages
1319 --cache-file=FILE cache test results in FILE [disabled]
1320 -C, --config-cache alias for \`--cache-file=config.cache'
1321 -n, --no-create do not create output files
1322 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1324 Installation directories:
1325 --prefix=PREFIX install architecture-independent files in PREFIX
1326 [$ac_default_prefix]
1327 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1330 By default, \`make install' will install all the files in
1331 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1332 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1333 for instance \`--prefix=\$HOME'.
1335 For better control, use the options below.
1337 Fine tuning of the installation directories:
1338 --bindir=DIR user executables [EPREFIX/bin]
1339 --sbindir=DIR system admin executables [EPREFIX/sbin]
1340 --libexecdir=DIR program executables [EPREFIX/libexec]
1341 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1342 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1343 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1344 --libdir=DIR object code libraries [EPREFIX/lib]
1345 --includedir=DIR C header files [PREFIX/include]
1346 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1347 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1348 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1349 --infodir=DIR info documentation [DATAROOTDIR/info]
1350 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1351 --mandir=DIR man documentation [DATAROOTDIR/man]
1352 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1353 --htmldir=DIR html documentation [DOCDIR]
1354 --dvidir=DIR dvi documentation [DOCDIR]
1355 --pdfdir=DIR pdf documentation [DOCDIR]
1356 --psdir=DIR ps documentation [DOCDIR]
1362 --program-prefix=PREFIX prepend PREFIX to installed program names
1363 --program-suffix=SUFFIX append SUFFIX to installed program names
1364 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1367 --x-includes=DIR X include files are in DIR
1368 --x-libraries=DIR X library files are in DIR
1371 --build=BUILD configure for building on BUILD [guessed]
1372 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1376 if test -n "$ac_init_help"; then
1381 --disable-option-checking ignore unrecognized --enable/--with options
1382 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1383 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1384 --enable-maintainer-mode enable make rules and dependencies not useful
1385 (and sometimes confusing) to the casual installer
1386 --disable-dependency-tracking speeds up one-time build
1387 --enable-dependency-tracking do not reject slow dependency extractors
1388 --enable-debug Turn on debugging
1389 --enable-verbose-warnings
1390 Enable verbose compiler warnings.
1392 Enable static executables.
1393 --enable-dmalloc Use dmalloc memory allocation
1394 --enable-efence Use ElectricFence memory allocation
1397 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1398 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1399 --with-lam=PATH Set path of LAM MPI
1400 --with-ctn=PATH Set path of CTN DICOM library
1401 --with-mcpu=CPU Set name of CPU for gcc -mcpu
1402 --with-cgibin-dir=PATH Set path of CGI binaries directory
1403 --with-cgibin-url=PATH Set URL path of CGI binaries
1404 --with-webdata-dir=PATH Set path of webdata
1405 --with-webdata-url=PATH Set URL path of webdata
1406 --with-html-dir=PATH Set directory of html files
1407 --with-x use the X Window System
1409 Some influential environment variables:
1410 CC C compiler command
1411 CFLAGS C compiler flags
1412 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1413 nonstandard directory <lib dir>
1414 LIBS libraries to pass to the linker, e.g. -l<library>
1415 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1416 you have headers in a nonstandard directory <include dir>
1417 CXX C++ compiler command
1418 CXXFLAGS C++ compiler flags
1420 XMKMF Path to xmkmf, Makefile generator for X Window System
1422 Use these variables to override the choices made by `configure' or to help
1423 it to find libraries and programs with nonstandard names/locations.
1425 Report bugs to the package provider.
1430 if test "$ac_init_help" = "recursive"; then
1431 # If there are subdirs, report their specific --help.
1432 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1433 test -d "$ac_dir" ||
1434 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1439 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1441 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1442 # A ".." for each directory in $ac_dir_suffix.
1443 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1444 case $ac_top_builddir_sub in
1445 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1446 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1449 ac_abs_top_builddir=$ac_pwd
1450 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1451 # for backward compatibility:
1452 ac_top_builddir=$ac_top_build_prefix
1455 .) # We are building in place.
1457 ac_top_srcdir=$ac_top_builddir_sub
1458 ac_abs_top_srcdir=$ac_pwd ;;
1459 [\\/]* | ?:[\\/]* ) # Absolute name.
1460 ac_srcdir=$srcdir$ac_dir_suffix;
1461 ac_top_srcdir=$srcdir
1462 ac_abs_top_srcdir=$srcdir ;;
1464 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1465 ac_top_srcdir=$ac_top_build_prefix$srcdir
1466 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1468 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1470 cd "$ac_dir" || { ac_status=$?; continue; }
1471 # Check for guested configure.
1472 if test -f "$ac_srcdir/configure.gnu"; then
1474 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1475 elif test -f "$ac_srcdir/configure"; then
1477 $SHELL "$ac_srcdir/configure" --help=recursive
1479 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1481 cd "$ac_pwd" || { ac_status=$?; break; }
1485 test -n "$ac_init_help" && exit $ac_status
1486 if $ac_init_version; then
1489 generated by GNU Autoconf 2.64
1491 Copyright (C) 2009 Free Software Foundation, Inc.
1492 This configure script is free software; the Free Software Foundation
1493 gives unlimited permission to copy, distribute and modify it.
1498 ## ------------------------ ##
1499 ## Autoconf initialization. ##
1500 ## ------------------------ ##
1502 # ac_fn_c_try_compile LINENO
1503 # --------------------------
1504 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1505 ac_fn_c_try_compile ()
1507 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1508 rm -f conftest.$ac_objext
1509 if { { ac_try="$ac_compile"
1511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1512 *) ac_try_echo=$ac_try;;
1514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1515 $as_echo "$ac_try_echo"; } >&5
1516 (eval "$ac_compile") 2>conftest.err
1518 if test -s conftest.err; then
1519 grep -v '^ *+' conftest.err >conftest.er1
1520 cat conftest.er1 >&5
1521 mv -f conftest.er1 conftest.err
1523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1524 test $ac_status = 0; } && {
1525 test -z "$ac_c_werror_flag" ||
1526 test ! -s conftest.err
1527 } && test -s conftest.$ac_objext; then :
1530 $as_echo "$as_me: failed program was:" >&5
1531 sed 's/^/| /' conftest.$ac_ext >&5
1535 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1538 } # ac_fn_c_try_compile
1540 # ac_fn_cxx_try_compile LINENO
1541 # ----------------------------
1542 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1543 ac_fn_cxx_try_compile ()
1545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1546 rm -f conftest.$ac_objext
1547 if { { ac_try="$ac_compile"
1549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1550 *) ac_try_echo=$ac_try;;
1552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1553 $as_echo "$ac_try_echo"; } >&5
1554 (eval "$ac_compile") 2>conftest.err
1556 if test -s conftest.err; then
1557 grep -v '^ *+' conftest.err >conftest.er1
1558 cat conftest.er1 >&5
1559 mv -f conftest.er1 conftest.err
1561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1562 test $ac_status = 0; } && {
1563 test -z "$ac_cxx_werror_flag" ||
1564 test ! -s conftest.err
1565 } && test -s conftest.$ac_objext; then :
1568 $as_echo "$as_me: failed program was:" >&5
1569 sed 's/^/| /' conftest.$ac_ext >&5
1573 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1576 } # ac_fn_cxx_try_compile
1578 # ac_fn_c_try_run LINENO
1579 # ----------------------
1580 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1581 # that executables *can* be run.
1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585 if { { ac_try="$ac_link"
1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588 *) ac_try_echo=$ac_try;;
1590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591 $as_echo "$ac_try_echo"; } >&5
1592 (eval "$ac_link") 2>&5
1594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1596 { { case "(($ac_try" in
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_try") 2>&5
1604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1605 test $ac_status = 0; }; }; then :
1608 $as_echo "$as_me: program exited with status $ac_status" >&5
1609 $as_echo "$as_me: failed program was:" >&5
1610 sed 's/^/| /' conftest.$ac_ext >&5
1612 ac_retval=$ac_status
1614 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1615 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1620 # ac_fn_c_try_cpp LINENO
1621 # ----------------------
1622 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626 if { { ac_try="$ac_cpp conftest.$ac_ext"
1628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629 *) ac_try_echo=$ac_try;;
1631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632 $as_echo "$ac_try_echo"; } >&5
1633 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1635 if test -s conftest.err; then
1636 grep -v '^ *+' conftest.err >conftest.er1
1637 cat conftest.er1 >&5
1638 mv -f conftest.er1 conftest.err
1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641 test $ac_status = 0; } >/dev/null && {
1642 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1643 test ! -s conftest.err
1647 $as_echo "$as_me: failed program was:" >&5
1648 sed 's/^/| /' conftest.$ac_ext >&5
1652 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1657 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1658 # -------------------------------------------------------
1659 # Tests whether HEADER exists and can be compiled using the include files in
1660 # INCLUDES, setting the cache variable VAR accordingly.
1661 ac_fn_c_check_header_compile ()
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1665 $as_echo_n "checking for $2... " >&6; }
1666 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1667 $as_echo_n "(cached) " >&6
1669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1670 /* end confdefs.h. */
1674 if ac_fn_c_try_compile "$LINENO"; then :
1679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683 $as_echo "$ac_res" >&6; }
1684 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1686 } # ac_fn_c_check_header_compile
1688 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1689 # --------------------------------------------
1690 # Tries to find the compile-time value of EXPR in a program that includes
1691 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1693 ac_fn_c_compute_int ()
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 if test "$cross_compiling" = yes; then
1697 # Depending upon the size, compute the lo and hi bounds.
1698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1699 /* end confdefs.h. */
1704 static int test_array [1 - 2 * !(($2) >= 0)];
1711 if ac_fn_c_try_compile "$LINENO"; then :
1714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1715 /* end confdefs.h. */
1720 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1727 if ac_fn_c_try_compile "$LINENO"; then :
1728 ac_hi=$ac_mid; break
1730 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1731 if test $ac_lo -le $ac_mid; then
1735 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741 /* end confdefs.h. */
1746 static int test_array [1 - 2 * !(($2) < 0)];
1753 if ac_fn_c_try_compile "$LINENO"; then :
1756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1757 /* end confdefs.h. */
1762 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1769 if ac_fn_c_try_compile "$LINENO"; then :
1770 ac_lo=$ac_mid; break
1772 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1773 if test $ac_mid -le $ac_hi; then
1777 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1787 # Binary search between lo and hi bounds.
1788 while test "x$ac_lo" != "x$ac_hi"; do
1789 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h. */
1796 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1803 if ac_fn_c_try_compile "$LINENO"; then :
1806 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1811 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816 /* end confdefs.h. */
1818 static long int longval () { return $2; }
1819 static unsigned long int ulongval () { return $2; }
1826 FILE *f = fopen ("conftest.val", "w");
1831 long int i = longval ();
1834 fprintf (f, "%ld", i);
1838 unsigned long int i = ulongval ();
1841 fprintf (f, "%lu", i);
1843 /* Do not output a trailing newline, as this causes \r\n confusion
1844 on some platforms. */
1845 return ferror (f) || fclose (f) != 0;
1851 if ac_fn_c_try_run "$LINENO"; then :
1852 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1856 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1857 conftest.$ac_objext conftest.beam conftest.$ac_ext
1861 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1864 } # ac_fn_c_compute_int
1866 # ac_fn_c_try_link LINENO
1867 # -----------------------
1868 # Try to link conftest.$ac_ext, and return whether this succeeded.
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 rm -f conftest.$ac_objext conftest$ac_exeext
1873 if { { ac_try="$ac_link"
1875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1876 *) ac_try_echo=$ac_try;;
1878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1879 $as_echo "$ac_try_echo"; } >&5
1880 (eval "$ac_link") 2>conftest.err
1882 if test -s conftest.err; then
1883 grep -v '^ *+' conftest.err >conftest.er1
1884 cat conftest.er1 >&5
1885 mv -f conftest.er1 conftest.err
1887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1888 test $ac_status = 0; } && {
1889 test -z "$ac_c_werror_flag" ||
1890 test ! -s conftest.err
1891 } && test -s conftest$ac_exeext && {
1892 test "$cross_compiling" = yes ||
1893 $as_test_x conftest$ac_exeext
1897 $as_echo "$as_me: failed program was:" >&5
1898 sed 's/^/| /' conftest.$ac_ext >&5
1902 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1903 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1904 # interfere with the next link command; also delete a directory that is
1905 # left behind by Apple's compiler. We do this before executing the actions.
1906 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1907 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1910 } # ac_fn_c_try_link
1912 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1913 # -------------------------------------------------------
1914 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1915 # the include files in INCLUDES and setting the cache variable VAR
1917 ac_fn_c_check_header_mongrel ()
1919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1922 $as_echo_n "checking for $2... " >&6; }
1923 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1924 $as_echo_n "(cached) " >&6
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928 $as_echo "$ac_res" >&6; }
1930 # Is the header compilable?
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1932 $as_echo_n "checking $2 usability... " >&6; }
1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h. */
1938 if ac_fn_c_try_compile "$LINENO"; then :
1939 ac_header_compiler=yes
1941 ac_header_compiler=no
1943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1945 $as_echo "$ac_header_compiler" >&6; }
1947 # Is the header present?
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1949 $as_echo_n "checking $2 presence... " >&6; }
1950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951 /* end confdefs.h. */
1954 if ac_fn_c_try_cpp "$LINENO"; then :
1955 ac_header_preproc=yes
1957 ac_header_preproc=no
1959 rm -f conftest.err conftest.$ac_ext
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1961 $as_echo "$ac_header_preproc" >&6; }
1963 # So? What about this header?
1964 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1967 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1969 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1973 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1975 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1977 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1979 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1981 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1985 $as_echo_n "checking for $2... " >&6; }
1986 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1987 $as_echo_n "(cached) " >&6
1989 eval "$3=\$ac_header_compiler"
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993 $as_echo "$ac_res" >&6; }
1995 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1997 } # ac_fn_c_check_header_mongrel
1999 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2000 # -------------------------------------------
2001 # Tests whether TYPE exists after having included INCLUDES, setting cache
2002 # variable VAR accordingly.
2003 ac_fn_c_check_type ()
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2007 $as_echo_n "checking for $2... " >&6; }
2008 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2009 $as_echo_n "(cached) " >&6
2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h. */
2024 if ac_fn_c_try_compile "$LINENO"; then :
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2037 if ac_fn_c_try_compile "$LINENO"; then :
2042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2048 $as_echo "$ac_res" >&6; }
2049 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2051 } # ac_fn_c_check_type
2053 # ac_fn_c_check_func LINENO FUNC VAR
2054 # ----------------------------------
2055 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2056 ac_fn_c_check_func ()
2058 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2060 $as_echo_n "checking for $2... " >&6; }
2061 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2062 $as_echo_n "(cached) " >&6
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065 /* end confdefs.h. */
2066 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2068 #define $2 innocuous_$2
2070 /* System header to define __stub macros and hopefully few prototypes,
2071 which can conflict with char $2 (); below.
2072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2073 <limits.h> exists even on freestanding compilers. */
2076 # include <limits.h>
2078 # include <assert.h>
2083 /* Override any GCC internal prototype to avoid an error.
2084 Use char because int might match the return type of a GCC
2085 builtin and then its argument prototype would still apply. */
2090 /* The GNU C library defines this for functions which it implements
2091 to always fail with ENOSYS. Some functions are actually named
2092 something starting with __ and the normal name is an alias. */
2093 #if defined __stub_$2 || defined __stub___$2
2105 if ac_fn_c_try_link "$LINENO"; then :
2110 rm -f core conftest.err conftest.$ac_objext \
2111 conftest$ac_exeext conftest.$ac_ext
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2115 $as_echo "$ac_res" >&6; }
2116 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2118 } # ac_fn_c_check_func
2119 cat >config.log <<_ACEOF
2120 This file contains any messages produced by compilers while
2121 running configure, to aid debugging if configure makes a mistake.
2123 It was created by $as_me, which was
2124 generated by GNU Autoconf 2.64. Invocation command line was
2136 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2137 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2138 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2139 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2140 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2142 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2143 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2145 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2146 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2147 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2148 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2149 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2150 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2151 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2159 test -z "$as_dir" && as_dir=.
2160 $as_echo "PATH: $as_dir"
2176 # Keep a trace of the command line.
2177 # Strip out --no-create and --no-recursion so they do not pile up.
2178 # Strip out --silent because we don't want to record it for future runs.
2179 # Also quote any args containing shell meta-characters.
2180 # Make two passes to allow for proper duplicate-argument suppression.
2184 ac_must_keep_next=false
2190 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2191 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2192 | -silent | --silent | --silen | --sile | --sil)
2195 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2198 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2200 as_fn_append ac_configure_args1 " '$ac_arg'"
2201 if test $ac_must_keep_next = true; then
2202 ac_must_keep_next=false # Got value, back to normal.
2205 *=* | --config-cache | -C | -disable-* | --disable-* \
2206 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2207 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2208 | -with-* | --with-* | -without-* | --without-* | --x)
2209 case "$ac_configure_args0 " in
2210 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2213 -* ) ac_must_keep_next=true ;;
2216 as_fn_append ac_configure_args " '$ac_arg'"
2221 { ac_configure_args0=; unset ac_configure_args0;}
2222 { ac_configure_args1=; unset ac_configure_args1;}
2224 # When interrupted or exit'd, cleanup temporary files, and complete
2225 # config.log. We remove comments because anyway the quotes in there
2226 # would cause problems or look ugly.
2227 # WARNING: Use '\'' to represent an apostrophe within the trap.
2228 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2229 trap 'exit_status=$?
2230 # Save into config.log some information that might help in debugging.
2235 ## ---------------- ##
2236 ## Cache variables. ##
2237 ## ---------------- ##
2240 # The following way of writing the cache mishandles newlines in values,
2242 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2243 eval ac_val=\$$ac_var
2247 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2248 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2251 _ | IFS | as_nl) ;; #(
2252 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2253 *) { eval $ac_var=; unset $ac_var;} ;;
2258 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2259 *${as_nl}ac_space=\ *)
2261 "s/'\''/'\''\\\\'\'''\''/g;
2262 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2265 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2273 ## ----------------- ##
2274 ## Output variables. ##
2275 ## ----------------- ##
2278 for ac_var in $ac_subst_vars
2280 eval ac_val=\$$ac_var
2282 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2284 $as_echo "$ac_var='\''$ac_val'\''"
2288 if test -n "$ac_subst_files"; then
2290 ## ------------------- ##
2291 ## File substitutions. ##
2292 ## ------------------- ##
2295 for ac_var in $ac_subst_files
2297 eval ac_val=\$$ac_var
2299 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2301 $as_echo "$ac_var='\''$ac_val'\''"
2306 if test -s confdefs.h; then
2316 test "$ac_signal" != 0 &&
2317 $as_echo "$as_me: caught signal $ac_signal"
2318 $as_echo "$as_me: exit $exit_status"
2320 rm -f core *.core core.conftest.* &&
2321 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2324 for ac_signal in 1 2 13 15; do
2325 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2329 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2330 rm -f -r conftest* confdefs.h
2332 $as_echo "/* confdefs.h */" > confdefs.h
2334 # Predefined preprocessor variables.
2336 cat >>confdefs.h <<_ACEOF
2337 #define PACKAGE_NAME "$PACKAGE_NAME"
2340 cat >>confdefs.h <<_ACEOF
2341 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2344 cat >>confdefs.h <<_ACEOF
2345 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2348 cat >>confdefs.h <<_ACEOF
2349 #define PACKAGE_STRING "$PACKAGE_STRING"
2352 cat >>confdefs.h <<_ACEOF
2353 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2356 cat >>confdefs.h <<_ACEOF
2357 #define PACKAGE_URL "$PACKAGE_URL"
2361 # Let the site file select an alternate cache file if it wants to.
2362 # Prefer an explicitly selected file to automatically selected ones.
2365 if test -n "$CONFIG_SITE"; then
2366 ac_site_file1=$CONFIG_SITE
2367 elif test "x$prefix" != xNONE; then
2368 ac_site_file1=$prefix/share/config.site
2369 ac_site_file2=$prefix/etc/config.site
2371 ac_site_file1=$ac_default_prefix/share/config.site
2372 ac_site_file2=$ac_default_prefix/etc/config.site
2374 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2376 test "x$ac_site_file" = xNONE && continue
2377 if test -r "$ac_site_file"; then
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2379 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2380 sed 's/^/| /' "$ac_site_file" >&5
2385 if test -r "$cache_file"; then
2386 # Some versions of bash will fail to source /dev/null (special
2387 # files actually), so we avoid doing that.
2388 if test -f "$cache_file"; then
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2390 $as_echo "$as_me: loading cache $cache_file" >&6;}
2392 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2393 *) . "./$cache_file";;
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2398 $as_echo "$as_me: creating cache $cache_file" >&6;}
2402 # Check that the precious variables saved in the cache have kept the same
2404 ac_cache_corrupted=false
2405 for ac_var in $ac_precious_vars; do
2406 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2407 eval ac_new_set=\$ac_env_${ac_var}_set
2408 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2409 eval ac_new_val=\$ac_env_${ac_var}_value
2410 case $ac_old_set,$ac_new_set in
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2413 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2414 ac_cache_corrupted=: ;;
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2417 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2418 ac_cache_corrupted=: ;;
2421 if test "x$ac_old_val" != "x$ac_new_val"; then
2422 # differences in whitespace do not lead to failure.
2423 ac_old_val_w=`echo x $ac_old_val`
2424 ac_new_val_w=`echo x $ac_new_val`
2425 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2427 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2428 ac_cache_corrupted=:
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2431 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2432 eval $ac_var=\$ac_old_val
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2435 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2437 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2440 # Pass precious variables to config.status.
2441 if test "$ac_new_set" = set; then
2443 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2444 *) ac_arg=$ac_var=$ac_new_val ;;
2446 case " $ac_configure_args " in
2447 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2448 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2452 if $ac_cache_corrupted; then
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2456 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2457 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2459 ## -------------------- ##
2460 ## Main body of script. ##
2461 ## -------------------- ##
2464 ac_cpp='$CPP $CPPFLAGS'
2465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2473 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2474 # Check whether --enable-maintainer-mode was given.
2475 if test "${enable_maintainer_mode+set}" = set; then :
2476 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2478 USE_MAINTAINER_MODE=no
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2482 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2483 if test $USE_MAINTAINER_MODE = yes; then
2484 MAINTAINER_MODE_TRUE=
2485 MAINTAINER_MODE_FALSE='#'
2487 MAINTAINER_MODE_TRUE='#'
2488 MAINTAINER_MODE_FALSE=
2491 MAINT=$MAINTAINER_MODE_TRUE
2494 am__api_version='1.11'
2497 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2498 for ac_t in install-sh install.sh shtool; do
2499 if test -f "$ac_dir/$ac_t"; then
2501 ac_install_sh="$ac_aux_dir/$ac_t -c"
2506 if test -z "$ac_aux_dir"; then
2507 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2510 # These three variables are undocumented and unsupported,
2511 # and are intended to be withdrawn in a future Autoconf release.
2512 # They can cause serious problems if a builder's source tree is in a directory
2513 # whose full name contains unusual characters.
2514 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2515 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2516 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2519 # Find a good install program. We prefer a C program (faster),
2520 # so one script is as good as another. But avoid the broken or
2521 # incompatible versions:
2522 # SysV /etc/install, /usr/sbin/install
2523 # SunOS /usr/etc/install
2524 # IRIX /sbin/install
2526 # AmigaOS /C/install, which installs bootblocks on floppy discs
2527 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2528 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2529 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2530 # OS/2's system install, which has a completely different semantic
2531 # ./install, which can be erroneously created by make from ./install.sh.
2532 # Reject install programs that cannot install multiple files.
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2534 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2535 if test -z "$INSTALL"; then
2536 if test "${ac_cv_path_install+set}" = set; then :
2537 $as_echo_n "(cached) " >&6
2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543 test -z "$as_dir" && as_dir=.
2544 # Account for people who put trailing slashes in PATH elements.
2545 case $as_dir/ in #((
2546 ./ | .// | /[cC]/* | \
2547 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2548 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2551 # OSF1 and SCO ODT 3.0 have their own names for install.
2552 # Don't use installbsd from OSF since it installs stuff as root
2554 for ac_prog in ginstall scoinst install; do
2555 for ac_exec_ext in '' $ac_executable_extensions; do
2556 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2557 if test $ac_prog = install &&
2558 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2559 # AIX install. It has an incompatible calling convention.
2561 elif test $ac_prog = install &&
2562 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2563 # program-specific install script used by HP pwplus--don't use.
2566 rm -rf conftest.one conftest.two conftest.dir
2567 echo one > conftest.one
2568 echo two > conftest.two
2570 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2571 test -s conftest.one && test -s conftest.two &&
2572 test -s conftest.dir/conftest.one &&
2573 test -s conftest.dir/conftest.two
2575 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2588 rm -rf conftest.one conftest.two conftest.dir
2591 if test "${ac_cv_path_install+set}" = set; then
2592 INSTALL=$ac_cv_path_install
2594 # As a last resort, use the slow shell script. Don't cache a
2595 # value for INSTALL within a source directory, because that will
2596 # break other packages using the cache if that directory is
2597 # removed, or if the value is a relative name.
2598 INSTALL=$ac_install_sh
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2602 $as_echo "$INSTALL" >&6; }
2604 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2605 # It thinks the first close brace ends the variable substitution.
2606 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2608 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2610 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2613 $as_echo_n "checking whether build environment is sane... " >&6; }
2616 echo timestamp > conftest.file
2617 # Reject unsafe characters in $srcdir or the absolute working directory
2618 # name. Accept space and tab only in the latter.
2622 *[\\\"\#\$\&\'\`$am_lf]*)
2623 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2626 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2627 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2630 # Do `set' in a subshell so we don't clobber the current shell's
2631 # arguments. Must try -L first in case configure is actually a
2632 # symlink; some systems play weird games with the mod time of symlinks
2633 # (eg FreeBSD returns the mod time of the symlink's containing
2636 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2637 if test "$*" = "X"; then
2639 set X `ls -t "$srcdir/configure" conftest.file`
2642 if test "$*" != "X $srcdir/configure conftest.file" \
2643 && test "$*" != "X conftest.file $srcdir/configure"; then
2645 # If neither matched, then we have a broken ls. This can happen
2646 # if, for instance, CONFIG_SHELL is bash and it inherits a
2647 # broken ls alias from the environment. This has actually
2648 # happened. Such a system could not be considered "sane".
2649 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2650 alias in your environment" "$LINENO" 5
2653 test "$2" = conftest.file
2659 as_fn_error "newly created file is older than distributed files!
2660 Check your system clock" "$LINENO" 5
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2663 $as_echo "yes" >&6; }
2664 test "$program_prefix" != NONE &&
2665 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2666 # Use a double $ so make ignores it.
2667 test "$program_suffix" != NONE &&
2668 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2669 # Double any \ or $.
2670 # By default was `s,x,x', remove it if useless.
2671 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2672 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2674 # expand $ac_aux_dir to an absolute path
2675 am_aux_dir=`cd $ac_aux_dir && pwd`
2677 if test x"${MISSING+set}" != xset; then
2680 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2682 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2685 # Use eval to expand $SHELL
2686 if eval "$MISSING --run true"; then
2687 am_missing_run="$MISSING --run "
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2691 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2694 if test x"${install_sh}" != xset; then
2697 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2699 install_sh="\${SHELL} $am_aux_dir/install-sh"
2703 # Installed binaries are usually stripped using `strip' when the user
2704 # run `make install-strip'. However `strip' might not be the right
2705 # tool to use in cross-compilation environments, therefore Automake
2706 # will honor the `STRIP' environment variable to overrule this program.
2707 if test "$cross_compiling" != no; then
2708 if test -n "$ac_tool_prefix"; then
2709 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2710 set dummy ${ac_tool_prefix}strip; ac_word=$2
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2712 $as_echo_n "checking for $ac_word... " >&6; }
2713 if test "${ac_cv_prog_STRIP+set}" = set; then :
2714 $as_echo_n "(cached) " >&6
2716 if test -n "$STRIP"; then
2717 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 test -z "$as_dir" && as_dir=.
2724 for ac_exec_ext in '' $ac_executable_extensions; do
2725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2726 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2736 STRIP=$ac_cv_prog_STRIP
2737 if test -n "$STRIP"; then
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2739 $as_echo "$STRIP" >&6; }
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2742 $as_echo "no" >&6; }
2747 if test -z "$ac_cv_prog_STRIP"; then
2749 # Extract the first word of "strip", so it can be a program name with args.
2750 set dummy strip; ac_word=$2
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2752 $as_echo_n "checking for $ac_word... " >&6; }
2753 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2754 $as_echo_n "(cached) " >&6
2756 if test -n "$ac_ct_STRIP"; then
2757 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763 test -z "$as_dir" && as_dir=.
2764 for ac_exec_ext in '' $ac_executable_extensions; do
2765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2766 ac_cv_prog_ac_ct_STRIP="strip"
2767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2776 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2777 if test -n "$ac_ct_STRIP"; then
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2779 $as_echo "$ac_ct_STRIP" >&6; }
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2782 $as_echo "no" >&6; }
2785 if test "x$ac_ct_STRIP" = x; then
2788 case $cross_compiling:$ac_tool_warned in
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2792 ac_tool_warned=yes ;;
2797 STRIP="$ac_cv_prog_STRIP"
2801 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2804 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2805 if test -z "$MKDIR_P"; then
2806 if test "${ac_cv_path_mkdir+set}" = set; then :
2807 $as_echo_n "(cached) " >&6
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2813 test -z "$as_dir" && as_dir=.
2814 for ac_prog in mkdir gmkdir; do
2815 for ac_exec_ext in '' $ac_executable_extensions; do
2816 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2817 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2818 'mkdir (GNU coreutils) '* | \
2819 'mkdir (coreutils) '* | \
2820 'mkdir (fileutils) '4.1*)
2821 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2831 if test "${ac_cv_path_mkdir+set}" = set; then
2832 MKDIR_P="$ac_cv_path_mkdir -p"
2834 # As a last resort, use the slow shell script. Don't cache a
2835 # value for MKDIR_P within a source directory, because that will
2836 # break other packages using the cache if that directory is
2837 # removed, or if the value is a relative name.
2838 test -d ./--version && rmdir ./--version
2839 MKDIR_P="$ac_install_sh -d"
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2843 $as_echo "$MKDIR_P" >&6; }
2847 [\\/$]* | ?:[\\/]*) ;;
2848 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2851 for ac_prog in gawk mawk nawk awk
2853 # Extract the first word of "$ac_prog", so it can be a program name with args.
2854 set dummy $ac_prog; ac_word=$2
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2856 $as_echo_n "checking for $ac_word... " >&6; }
2857 if test "${ac_cv_prog_AWK+set}" = set; then :
2858 $as_echo_n "(cached) " >&6
2860 if test -n "$AWK"; then
2861 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 test -z "$as_dir" && as_dir=.
2868 for ac_exec_ext in '' $ac_executable_extensions; do
2869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2870 ac_cv_prog_AWK="$ac_prog"
2871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2881 if test -n "$AWK"; then
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2883 $as_echo "$AWK" >&6; }
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2886 $as_echo "no" >&6; }
2890 test -n "$AWK" && break
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2894 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2896 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2897 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2898 $as_echo_n "(cached) " >&6
2900 cat >conftest.make <<\_ACEOF
2903 @echo '@@@%%%=$(MAKE)=@@@%%%'
2905 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2906 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2908 eval ac_cv_prog_make_${ac_make}_set=yes;;
2910 eval ac_cv_prog_make_${ac_make}_set=no;;
2914 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2916 $as_echo "yes" >&6; }
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2920 $as_echo "no" >&6; }
2921 SET_MAKE="MAKE=${MAKE-make}"
2924 rm -rf .tst 2>/dev/null
2925 mkdir .tst 2>/dev/null
2926 if test -d .tst; then
2931 rmdir .tst 2>/dev/null
2933 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2934 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2935 # is not polluted with repeated "-I."
2936 am__isrc=' -I$(srcdir)'
2937 # test to see if srcdir already configured
2938 if test -f $srcdir/config.status; then
2939 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2943 # test whether we have cygpath
2944 if test -z "$CYGPATH_W"; then
2945 if (cygpath --version) >/dev/null 2>/dev/null; then
2946 CYGPATH_W='cygpath -w'
2953 # Define the identity of the package.
2958 cat >>confdefs.h <<_ACEOF
2959 #define PACKAGE "$PACKAGE"
2963 cat >>confdefs.h <<_ACEOF
2964 #define VERSION "$VERSION"
2967 # Some tools Automake needs.
2969 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2972 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2975 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2978 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2981 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2983 # We need awk for the "check" target. The system "awk" is bad on
2985 # Always define AMTAR for backward compatibility.
2987 AMTAR=${AMTAR-"${am_missing_run}tar"}
2989 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2995 ac_config_headers="$ac_config_headers config.h"
2998 for ac_prog in gawk mawk nawk awk
3000 # Extract the first word of "$ac_prog", so it can be a program name with args.
3001 set dummy $ac_prog; ac_word=$2
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3003 $as_echo_n "checking for $ac_word... " >&6; }
3004 if test "${ac_cv_prog_AWK+set}" = set; then :
3005 $as_echo_n "(cached) " >&6
3007 if test -n "$AWK"; then
3008 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014 test -z "$as_dir" && as_dir=.
3015 for ac_exec_ext in '' $ac_executable_extensions; do
3016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3017 ac_cv_prog_AWK="$ac_prog"
3018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3028 if test -n "$AWK"; then
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3030 $as_echo "$AWK" >&6; }
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033 $as_echo "no" >&6; }
3037 test -n "$AWK" && break
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3042 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3044 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3045 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3046 $as_echo_n "(cached) " >&6
3048 cat >conftest.make <<\_ACEOF
3051 @echo '@@@%%%=$(MAKE)=@@@%%%'
3053 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3054 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3056 eval ac_cv_prog_make_${ac_make}_set=yes;;
3058 eval ac_cv_prog_make_${ac_make}_set=no;;
3062 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3064 $as_echo "yes" >&6; }
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3068 $as_echo "no" >&6; }
3069 SET_MAKE="MAKE=${MAKE-make}"
3072 if test -n "$ac_tool_prefix"; then
3073 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3074 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3076 $as_echo_n "checking for $ac_word... " >&6; }
3077 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3078 $as_echo_n "(cached) " >&6
3080 if test -n "$RANLIB"; then
3081 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087 test -z "$as_dir" && as_dir=.
3088 for ac_exec_ext in '' $ac_executable_extensions; do
3089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3090 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 RANLIB=$ac_cv_prog_RANLIB
3101 if test -n "$RANLIB"; then
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3103 $as_echo "$RANLIB" >&6; }
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3106 $as_echo "no" >&6; }
3111 if test -z "$ac_cv_prog_RANLIB"; then
3112 ac_ct_RANLIB=$RANLIB
3113 # Extract the first word of "ranlib", so it can be a program name with args.
3114 set dummy ranlib; ac_word=$2
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3116 $as_echo_n "checking for $ac_word... " >&6; }
3117 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3118 $as_echo_n "(cached) " >&6
3120 if test -n "$ac_ct_RANLIB"; then
3121 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 test -z "$as_dir" && as_dir=.
3128 for ac_exec_ext in '' $ac_executable_extensions; do
3129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3130 ac_cv_prog_ac_ct_RANLIB="ranlib"
3131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3140 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3141 if test -n "$ac_ct_RANLIB"; then
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3143 $as_echo "$ac_ct_RANLIB" >&6; }
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3146 $as_echo "no" >&6; }
3149 if test "x$ac_ct_RANLIB" = x; then
3152 case $cross_compiling:$ac_tool_warned in
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3156 ac_tool_warned=yes ;;
3158 RANLIB=$ac_ct_RANLIB
3161 RANLIB="$ac_cv_prog_RANLIB"
3166 ac_cpp='$CPP $CPPFLAGS'
3167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3170 if test -n "$ac_tool_prefix"; then
3171 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3172 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3174 $as_echo_n "checking for $ac_word... " >&6; }
3175 if test "${ac_cv_prog_CC+set}" = set; then :
3176 $as_echo_n "(cached) " >&6
3178 if test -n "$CC"; then
3179 ac_cv_prog_CC="$CC" # Let the user override the test.
3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 test -z "$as_dir" && as_dir=.
3186 for ac_exec_ext in '' $ac_executable_extensions; do
3187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3188 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3199 if test -n "$CC"; then
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3201 $as_echo "$CC" >&6; }
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204 $as_echo "no" >&6; }
3209 if test -z "$ac_cv_prog_CC"; then
3211 # Extract the first word of "gcc", so it can be a program name with args.
3212 set dummy gcc; ac_word=$2
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3214 $as_echo_n "checking for $ac_word... " >&6; }
3215 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3216 $as_echo_n "(cached) " >&6
3218 if test -n "$ac_ct_CC"; then
3219 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225 test -z "$as_dir" && as_dir=.
3226 for ac_exec_ext in '' $ac_executable_extensions; do
3227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3228 ac_cv_prog_ac_ct_CC="gcc"
3229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3238 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3239 if test -n "$ac_ct_CC"; then
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3241 $as_echo "$ac_ct_CC" >&6; }
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244 $as_echo "no" >&6; }
3247 if test "x$ac_ct_CC" = x; then
3250 case $cross_compiling:$ac_tool_warned in
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3254 ac_tool_warned=yes ;;
3262 if test -z "$CC"; then
3263 if test -n "$ac_tool_prefix"; then
3264 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3265 set dummy ${ac_tool_prefix}cc; ac_word=$2
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3267 $as_echo_n "checking for $ac_word... " >&6; }
3268 if test "${ac_cv_prog_CC+set}" = set; then :
3269 $as_echo_n "(cached) " >&6
3271 if test -n "$CC"; then
3272 ac_cv_prog_CC="$CC" # Let the user override the test.
3274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3278 test -z "$as_dir" && as_dir=.
3279 for ac_exec_ext in '' $ac_executable_extensions; do
3280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3281 ac_cv_prog_CC="${ac_tool_prefix}cc"
3282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 if test -n "$CC"; then
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3294 $as_echo "$CC" >&6; }
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297 $as_echo "no" >&6; }
3303 if test -z "$CC"; then
3304 # Extract the first word of "cc", so it can be a program name with args.
3305 set dummy cc; ac_word=$2
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3307 $as_echo_n "checking for $ac_word... " >&6; }
3308 if test "${ac_cv_prog_CC+set}" = set; then :
3309 $as_echo_n "(cached) " >&6
3311 if test -n "$CC"; then
3312 ac_cv_prog_CC="$CC" # Let the user override the test.
3315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319 test -z "$as_dir" && as_dir=.
3320 for ac_exec_ext in '' $ac_executable_extensions; do
3321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3322 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3323 ac_prog_rejected=yes
3327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 if test $ac_prog_rejected = yes; then
3335 # We found a bogon in the path, so make sure we never use it.
3336 set dummy $ac_cv_prog_CC
3338 if test $# != 0; then
3339 # We chose a different compiler from the bogus one.
3340 # However, it has the same basename, so the bogon will be chosen
3341 # first if we set CC to just the basename; use the full file name.
3343 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3349 if test -n "$CC"; then
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3351 $as_echo "$CC" >&6; }
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3354 $as_echo "no" >&6; }
3359 if test -z "$CC"; then
3360 if test -n "$ac_tool_prefix"; then
3361 for ac_prog in cl.exe
3363 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3364 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3366 $as_echo_n "checking for $ac_word... " >&6; }
3367 if test "${ac_cv_prog_CC+set}" = set; then :
3368 $as_echo_n "(cached) " >&6
3370 if test -n "$CC"; then
3371 ac_cv_prog_CC="$CC" # Let the user override the test.
3373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3377 test -z "$as_dir" && as_dir=.
3378 for ac_exec_ext in '' $ac_executable_extensions; do
3379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3380 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3391 if test -n "$CC"; then
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3393 $as_echo "$CC" >&6; }
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3396 $as_echo "no" >&6; }
3400 test -n "$CC" && break
3403 if test -z "$CC"; then
3405 for ac_prog in cl.exe
3407 # Extract the first word of "$ac_prog", so it can be a program name with args.
3408 set dummy $ac_prog; ac_word=$2
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3410 $as_echo_n "checking for $ac_word... " >&6; }
3411 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3412 $as_echo_n "(cached) " >&6
3414 if test -n "$ac_ct_CC"; then
3415 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3421 test -z "$as_dir" && as_dir=.
3422 for ac_exec_ext in '' $ac_executable_extensions; do
3423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3424 ac_cv_prog_ac_ct_CC="$ac_prog"
3425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3434 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3435 if test -n "$ac_ct_CC"; then
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3437 $as_echo "$ac_ct_CC" >&6; }
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3440 $as_echo "no" >&6; }
3444 test -n "$ac_ct_CC" && break
3447 if test "x$ac_ct_CC" = x; then
3450 case $cross_compiling:$ac_tool_warned in
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3453 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3454 ac_tool_warned=yes ;;
3463 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3465 as_fn_error "no acceptable C compiler found in \$PATH
3466 See \`config.log' for more details." "$LINENO" 5; }
3468 # Provide some information about the compiler.
3469 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3472 for ac_option in --version -v -V -qversion; do
3473 { { ac_try="$ac_compiler $ac_option >&5"
3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476 *) ac_try_echo=$ac_try;;
3478 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3479 $as_echo "$ac_try_echo"; } >&5
3480 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3482 if test -s conftest.err; then
3484 ... rest of stderr output deleted ...
3485 10q' conftest.err >conftest.er1
3486 cat conftest.er1 >&5
3487 rm -f conftest.er1 conftest.err
3489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3490 test $ac_status = 0; }
3493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494 /* end confdefs.h. */
3499 FILE *f = fopen ("conftest.out", "w");
3500 return ferror (f) || fclose (f) != 0;
3506 ac_clean_files_save=$ac_clean_files
3507 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3508 # Try to create an executable without -o first, disregard a.out.
3509 # It will help us diagnose broken compilers, and finding out an intuition
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3512 $as_echo_n "checking for C compiler default output file name... " >&6; }
3513 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3515 # The possible output files:
3516 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3519 for ac_file in $ac_files
3522 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3523 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3528 if { { ac_try="$ac_link_default"
3530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531 *) ac_try_echo=$ac_try;;
3533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3534 $as_echo "$ac_try_echo"; } >&5
3535 (eval "$ac_link_default") 2>&5
3537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3538 test $ac_status = 0; }; then :
3539 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3540 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3541 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3542 # so that the user can short-circuit this test for compilers unknown to
3544 for ac_file in $ac_files ''
3546 test -f "$ac_file" || continue
3548 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3551 # We found the default executable, but exeext='' is most
3555 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3557 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3559 # We set ac_cv_exeext here because the later test for it is not
3560 # safe: cross compilers may not add the suffix if given an `-o'
3561 # argument, so we may need to know it at that point already.
3562 # Even if this section looks crufty: it has the advantage of
3569 test "$ac_cv_exeext" = no && ac_cv_exeext=
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3575 $as_echo "$ac_file" >&6; }
3576 if test -z "$ac_file"; then :
3577 $as_echo "$as_me: failed program was:" >&5
3578 sed 's/^/| /' conftest.$ac_ext >&5
3580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3582 { as_fn_set_status 77
3583 as_fn_error "C compiler cannot create executables
3584 See \`config.log' for more details." "$LINENO" 5; }; }
3586 ac_exeext=$ac_cv_exeext
3588 # Check that the compiler produces executables we can run. If not, either
3589 # the compiler is broken, or we cross compile.
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3591 $as_echo_n "checking whether the C compiler works... " >&6; }
3592 # If not cross compiling, check that we can run a simple program.
3593 if test "$cross_compiling" != yes; then
3594 if { ac_try='./$ac_file'
3595 { { case "(($ac_try" in
3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3600 $as_echo "$ac_try_echo"; } >&5
3601 (eval "$ac_try") 2>&5
3603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3604 test $ac_status = 0; }; }; then
3607 if test "$cross_compiling" = maybe; then
3610 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3612 as_fn_error "cannot run C compiled programs.
3613 If you meant to cross compile, use \`--host'.
3614 See \`config.log' for more details." "$LINENO" 5; }
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3619 $as_echo "yes" >&6; }
3621 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3622 ac_clean_files=$ac_clean_files_save
3623 # Check that the compiler produces executables we can run. If not, either
3624 # the compiler is broken, or we cross compile.
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3626 $as_echo_n "checking whether we are cross compiling... " >&6; }
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3628 $as_echo "$cross_compiling" >&6; }
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3631 $as_echo_n "checking for suffix of executables... " >&6; }
3632 if { { ac_try="$ac_link"
3634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635 *) ac_try_echo=$ac_try;;
3637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3638 $as_echo "$ac_try_echo"; } >&5
3639 (eval "$ac_link") 2>&5
3641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3642 test $ac_status = 0; }; then :
3643 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3644 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3645 # work properly (i.e., refer to `conftest.exe'), while it won't with
3647 for ac_file in conftest.exe conftest conftest.*; do
3648 test -f "$ac_file" || continue
3650 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3651 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3657 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3659 as_fn_error "cannot compute suffix of executables: cannot compile and link
3660 See \`config.log' for more details." "$LINENO" 5; }
3662 rm -f conftest$ac_cv_exeext
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3664 $as_echo "$ac_cv_exeext" >&6; }
3666 rm -f conftest.$ac_ext
3667 EXEEXT=$ac_cv_exeext
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3670 $as_echo_n "checking for suffix of object files... " >&6; }
3671 if test "${ac_cv_objext+set}" = set; then :
3672 $as_echo_n "(cached) " >&6
3674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675 /* end confdefs.h. */
3685 rm -f conftest.o conftest.obj
3686 if { { ac_try="$ac_compile"
3688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3689 *) ac_try_echo=$ac_try;;
3691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3692 $as_echo "$ac_try_echo"; } >&5
3693 (eval "$ac_compile") 2>&5
3695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3696 test $ac_status = 0; }; then :
3697 for ac_file in conftest.o conftest.obj conftest.*; do
3698 test -f "$ac_file" || continue;
3700 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3701 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3706 $as_echo "$as_me: failed program was:" >&5
3707 sed 's/^/| /' conftest.$ac_ext >&5
3709 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3710 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3711 as_fn_error "cannot compute suffix of object files: cannot compile
3712 See \`config.log' for more details." "$LINENO" 5; }
3714 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3717 $as_echo "$ac_cv_objext" >&6; }
3718 OBJEXT=$ac_cv_objext
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3721 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3722 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3723 $as_echo_n "(cached) " >&6
3725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3726 /* end confdefs.h. */
3739 if ac_fn_c_try_compile "$LINENO"; then :
3744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3745 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3749 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3750 if test $ac_compiler_gnu = yes; then
3755 ac_test_CFLAGS=${CFLAGS+set}
3756 ac_save_CFLAGS=$CFLAGS
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3758 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3759 if test "${ac_cv_prog_cc_g+set}" = set; then :
3760 $as_echo_n "(cached) " >&6
3762 ac_save_c_werror_flag=$ac_c_werror_flag
3763 ac_c_werror_flag=yes
3766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767 /* end confdefs.h. */
3777 if ac_fn_c_try_compile "$LINENO"; then :
3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782 /* end confdefs.h. */
3792 if ac_fn_c_try_compile "$LINENO"; then :
3795 ac_c_werror_flag=$ac_save_c_werror_flag
3797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798 /* end confdefs.h. */
3808 if ac_fn_c_try_compile "$LINENO"; then :
3811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3816 ac_c_werror_flag=$ac_save_c_werror_flag
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3819 $as_echo "$ac_cv_prog_cc_g" >&6; }
3820 if test "$ac_test_CFLAGS" = set; then
3821 CFLAGS=$ac_save_CFLAGS
3822 elif test $ac_cv_prog_cc_g = yes; then
3823 if test "$GCC" = yes; then
3829 if test "$GCC" = yes; then
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3836 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3837 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3838 $as_echo_n "(cached) " >&6
3840 ac_cv_prog_cc_c89=no
3842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3843 /* end confdefs.h. */
3846 #include <sys/types.h>
3847 #include <sys/stat.h>
3848 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3849 struct buf { int x; };
3850 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3851 static char *e (p, i)
3857 static char *f (char * (*g) (char **, int), char **p, ...)
3862 s = g (p, va_arg (v,int));
3867 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3868 function prototypes and stuff, but not '\xHH' hex character constants.
3869 These don't provoke an error unfortunately, instead are silently treated
3870 as 'x'. The following induces an error, until -std is added to get
3871 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3872 array size at least. It's necessary to write '\x00'==0 to get something
3873 that's true only with -std. */
3874 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3876 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3877 inside strings and character constants. */
3879 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3881 int test (int i, double x);
3882 struct s1 {int (*f) (int a);};
3883 struct s2 {int (*f) (double a);};
3884 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3890 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3895 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3896 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3898 CC="$ac_save_CC $ac_arg"
3899 if ac_fn_c_try_compile "$LINENO"; then :
3900 ac_cv_prog_cc_c89=$ac_arg
3902 rm -f core conftest.err conftest.$ac_objext
3903 test "x$ac_cv_prog_cc_c89" != "xno" && break
3905 rm -f conftest.$ac_ext
3910 case "x$ac_cv_prog_cc_c89" in
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3913 $as_echo "none needed" >&6; } ;;
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3916 $as_echo "unsupported" >&6; } ;;
3918 CC="$CC $ac_cv_prog_cc_c89"
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3920 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3922 if test "x$ac_cv_prog_cc_c89" != xno; then :
3927 ac_cpp='$CPP $CPPFLAGS'
3928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3931 DEPDIR="${am__leading_dot}deps"
3933 ac_config_commands="$ac_config_commands depfiles"
3936 am_make=${MAKE-make}
3937 cat > confinc << 'END'
3939 @echo this is the am__doit target
3942 # If we don't find an include directive, just comment out the code.
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3944 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3948 # First try GNU make style include.
3949 echo "include confinc" > confmf
3950 # Ignore all kinds of additional output from `make'.
3951 case `$am_make -s -f confmf 2> /dev/null` in #(
3952 *the\ am__doit\ target*)
3958 # Now try BSD make style include.
3959 if test "$am__include" = "#"; then
3960 echo '.include "confinc"' > confmf
3961 case `$am_make -s -f confmf 2> /dev/null` in #(
3962 *the\ am__doit\ target*)
3963 am__include=.include
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3972 $as_echo "$_am_result" >&6; }
3973 rm -f confinc confmf
3975 # Check whether --enable-dependency-tracking was given.
3976 if test "${enable_dependency_tracking+set}" = set; then :
3977 enableval=$enable_dependency_tracking;
3980 if test "x$enable_dependency_tracking" != xno; then
3981 am_depcomp="$ac_aux_dir/depcomp"
3984 if test "x$enable_dependency_tracking" != xno; then
3994 depcc="$CC" am_compiler_list=
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3997 $as_echo_n "checking dependency style of $depcc... " >&6; }
3998 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3999 $as_echo_n "(cached) " >&6
4001 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4002 # We make a subdir and do the tests there. Otherwise we can end up
4003 # making bogus files that we don't know about and never remove. For
4004 # instance it was reported that on HP-UX the gcc test will end up
4005 # making a dummy file named `D' -- because `-MD' means `put the output
4008 # Copy depcomp to subdir because otherwise we won't find it if we're
4009 # using a relative directory.
4010 cp "$am_depcomp" conftest.dir
4012 # We will build objects and dependencies in a subdirectory because
4013 # it helps to detect inapplicable dependency modes. For instance
4014 # both Tru64's cc and ICC support -MD to output dependencies as a
4015 # side effect of compilation, but ICC will put the dependencies in
4016 # the current directory while Tru64 will put them in the object
4020 am_cv_CC_dependencies_compiler_type=none
4021 if test "$am_compiler_list" = ""; then
4022 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4025 case " $depcc " in #(
4026 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4029 for depmode in $am_compiler_list; do
4030 # Setup a source with many dependencies, because some compilers
4031 # like to wrap large dependency lists on column 80 (with \), and
4032 # we should not choose a depcomp mode which is confused by this.
4034 # We need to recreate these files for each test, as the compiler may
4035 # overwrite some of them when testing with obscure command lines.
4036 # This happens at least with the AIX C compiler.
4038 for i in 1 2 3 4 5 6; do
4039 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4040 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4041 # Solaris 8's {/usr,}/bin/sh.
4042 touch sub/conftst$i.h
4044 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4046 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4047 # mode. It turns out that the SunPro C++ compiler does not properly
4048 # handle `-M -o', and we need to detect this. Also, some Intel
4049 # versions had trouble with output in subdirs
4050 am__obj=sub/conftest.${OBJEXT-o}
4051 am__minus_obj="-o $am__obj"
4054 # This depmode causes a compiler race in universal mode.
4055 test "$am__universal" = false || continue
4058 # after this tag, mechanisms are not by side-effect, so they'll
4059 # only be used when explicitly requested
4060 if test "x$enable_dependency_tracking" = xyes; then
4066 msvisualcpp | msvcmsys)
4067 # This compiler won't grok `-c -o', but also, the minuso test has
4068 # not run yet. These depmodes are late enough in the game, and
4069 # so weak that their functioning should not be impacted.
4070 am__obj=conftest.${OBJEXT-o}
4075 if depmode=$depmode \
4076 source=sub/conftest.c object=$am__obj \
4077 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4078 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4079 >/dev/null 2>conftest.err &&
4080 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4081 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4082 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4083 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4084 # icc doesn't choke on unknown options, it will just issue warnings
4085 # or remarks (even with -Werror). So we grep stderr for any message
4086 # that says an option was ignored or not supported.
4087 # When given -MP, icc 7.0 and 7.1 complain thusly:
4088 # icc: Command line warning: ignoring option '-M'; no argument required
4089 # The diagnosis changed in icc 8.0:
4090 # icc: Command line remark: option '-MP' not supported
4091 if (grep 'ignoring option' conftest.err ||
4092 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4093 am_cv_CC_dependencies_compiler_type=$depmode
4102 am_cv_CC_dependencies_compiler_type=none
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4107 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4108 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4111 test "x$enable_dependency_tracking" != xno \
4112 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4114 am__fastdepCC_FALSE='#'
4116 am__fastdepCC_TRUE='#'
4117 am__fastdepCC_FALSE=
4122 ac_cpp='$CXXCPP $CPPFLAGS'
4123 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4124 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4125 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4126 if test -z "$CXX"; then
4127 if test -n "$CCC"; then
4130 if test -n "$ac_tool_prefix"; then
4131 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4133 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4134 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4136 $as_echo_n "checking for $ac_word... " >&6; }
4137 if test "${ac_cv_prog_CXX+set}" = set; then :
4138 $as_echo_n "(cached) " >&6
4140 if test -n "$CXX"; then
4141 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147 test -z "$as_dir" && as_dir=.
4148 for ac_exec_ext in '' $ac_executable_extensions; do
4149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4150 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4161 if test -n "$CXX"; then
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4163 $as_echo "$CXX" >&6; }
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4166 $as_echo "no" >&6; }
4170 test -n "$CXX" && break
4173 if test -z "$CXX"; 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_prog", so it can be a program name with args.
4178 set dummy $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_ac_ct_CXX+set}" = set; then :
4182 $as_echo_n "(cached) " >&6
4184 if test -n "$ac_ct_CXX"; then
4185 ac_cv_prog_ac_ct_CXX="$ac_ct_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_ac_ct_CXX="$ac_prog"
4195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4204 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4205 if test -n "$ac_ct_CXX"; then
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4207 $as_echo "$ac_ct_CXX" >&6; }
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4210 $as_echo "no" >&6; }
4214 test -n "$ac_ct_CXX" && break
4217 if test "x$ac_ct_CXX" = x; then
4220 case $cross_compiling:$ac_tool_warned in
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4224 ac_tool_warned=yes ;;
4232 # Provide some information about the compiler.
4233 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4236 for ac_option in --version -v -V -qversion; do
4237 { { ac_try="$ac_compiler $ac_option >&5"
4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4242 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4243 $as_echo "$ac_try_echo"; } >&5
4244 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4246 if test -s conftest.err; then
4248 ... rest of stderr output deleted ...
4249 10q' conftest.err >conftest.er1
4250 cat conftest.er1 >&5
4251 rm -f conftest.er1 conftest.err
4253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4254 test $ac_status = 0; }
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4258 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4259 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4260 $as_echo_n "(cached) " >&6
4262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263 /* end confdefs.h. */
4276 if ac_fn_cxx_try_compile "$LINENO"; then :
4281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4282 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4286 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4287 if test $ac_compiler_gnu = yes; then
4292 ac_test_CXXFLAGS=${CXXFLAGS+set}
4293 ac_save_CXXFLAGS=$CXXFLAGS
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4295 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4296 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4297 $as_echo_n "(cached) " >&6
4299 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4300 ac_cxx_werror_flag=yes
4303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4304 /* end confdefs.h. */
4314 if ac_fn_cxx_try_compile "$LINENO"; then :
4315 ac_cv_prog_cxx_g=yes
4318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4319 /* end confdefs.h. */
4329 if ac_fn_cxx_try_compile "$LINENO"; then :
4332 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h. */
4345 if ac_fn_cxx_try_compile "$LINENO"; then :
4346 ac_cv_prog_cxx_g=yes
4348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4353 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4356 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4357 if test "$ac_test_CXXFLAGS" = set; then
4358 CXXFLAGS=$ac_save_CXXFLAGS
4359 elif test $ac_cv_prog_cxx_g = yes; then
4360 if test "$GXX" = yes; then
4366 if test "$GXX" = yes; then
4373 ac_cpp='$CPP $CPPFLAGS'
4374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4378 depcc="$CXX" am_compiler_list=
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4381 $as_echo_n "checking dependency style of $depcc... " >&6; }
4382 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4383 $as_echo_n "(cached) " >&6
4385 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4386 # We make a subdir and do the tests there. Otherwise we can end up
4387 # making bogus files that we don't know about and never remove. For
4388 # instance it was reported that on HP-UX the gcc test will end up
4389 # making a dummy file named `D' -- because `-MD' means `put the output
4392 # Copy depcomp to subdir because otherwise we won't find it if we're
4393 # using a relative directory.
4394 cp "$am_depcomp" conftest.dir
4396 # We will build objects and dependencies in a subdirectory because
4397 # it helps to detect inapplicable dependency modes. For instance
4398 # both Tru64's cc and ICC support -MD to output dependencies as a
4399 # side effect of compilation, but ICC will put the dependencies in
4400 # the current directory while Tru64 will put them in the object
4404 am_cv_CXX_dependencies_compiler_type=none
4405 if test "$am_compiler_list" = ""; then
4406 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4409 case " $depcc " in #(
4410 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4413 for depmode in $am_compiler_list; do
4414 # Setup a source with many dependencies, because some compilers
4415 # like to wrap large dependency lists on column 80 (with \), and
4416 # we should not choose a depcomp mode which is confused by this.
4418 # We need to recreate these files for each test, as the compiler may
4419 # overwrite some of them when testing with obscure command lines.
4420 # This happens at least with the AIX C compiler.
4422 for i in 1 2 3 4 5 6; do
4423 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4424 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4425 # Solaris 8's {/usr,}/bin/sh.
4426 touch sub/conftst$i.h
4428 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4430 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4431 # mode. It turns out that the SunPro C++ compiler does not properly
4432 # handle `-M -o', and we need to detect this. Also, some Intel
4433 # versions had trouble with output in subdirs
4434 am__obj=sub/conftest.${OBJEXT-o}
4435 am__minus_obj="-o $am__obj"
4438 # This depmode causes a compiler race in universal mode.
4439 test "$am__universal" = false || continue
4442 # after this tag, mechanisms are not by side-effect, so they'll
4443 # only be used when explicitly requested
4444 if test "x$enable_dependency_tracking" = xyes; then
4450 msvisualcpp | msvcmsys)
4451 # This compiler won't grok `-c -o', but also, the minuso test has
4452 # not run yet. These depmodes are late enough in the game, and
4453 # so weak that their functioning should not be impacted.
4454 am__obj=conftest.${OBJEXT-o}
4459 if depmode=$depmode \
4460 source=sub/conftest.c object=$am__obj \
4461 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4462 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4463 >/dev/null 2>conftest.err &&
4464 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4465 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4466 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4467 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4468 # icc doesn't choke on unknown options, it will just issue warnings
4469 # or remarks (even with -Werror). So we grep stderr for any message
4470 # that says an option was ignored or not supported.
4471 # When given -MP, icc 7.0 and 7.1 complain thusly:
4472 # icc: Command line warning: ignoring option '-M'; no argument required
4473 # The diagnosis changed in icc 8.0:
4474 # icc: Command line remark: option '-MP' not supported
4475 if (grep 'ignoring option' conftest.err ||
4476 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4477 am_cv_CXX_dependencies_compiler_type=$depmode
4486 am_cv_CXX_dependencies_compiler_type=none
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4491 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4492 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4495 test "x$enable_dependency_tracking" != xno \
4496 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4497 am__fastdepCXX_TRUE=
4498 am__fastdepCXX_FALSE='#'
4500 am__fastdepCXX_TRUE='#'
4501 am__fastdepCXX_FALSE=
4507 ac_cpp='$CPP $CPPFLAGS'
4508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4512 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4513 # On Suns, sometimes $CPP names a directory.
4514 if test -n "$CPP" && test -d "$CPP"; then
4517 if test -z "$CPP"; then
4518 if test "${ac_cv_prog_CPP+set}" = set; then :
4519 $as_echo_n "(cached) " >&6
4521 # Double quotes because CPP needs to be expanded
4522 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4525 for ac_c_preproc_warn_flag in '' yes
4527 # Use a header file that comes with gcc, so configuring glibc
4528 # with a fresh cross-compiler works.
4529 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4530 # <limits.h> exists even on freestanding compilers.
4531 # On the NeXT, cc -E runs the code through the compiler's parser,
4532 # not just through cpp. "Syntax error" is here to catch this case.
4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h. */
4536 # include <limits.h>
4538 # include <assert.h>
4542 if ac_fn_c_try_cpp "$LINENO"; then :
4545 # Broken: fails on valid input.
4548 rm -f conftest.err conftest.$ac_ext
4550 # OK, works on sane cases. Now check whether nonexistent headers
4551 # can be detected and how.
4552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4553 /* end confdefs.h. */
4554 #include <ac_nonexistent.h>
4556 if ac_fn_c_try_cpp "$LINENO"; then :
4557 # Broken: success on invalid input.
4560 # Passes both tests.
4564 rm -f conftest.err conftest.$ac_ext
4567 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4568 rm -f conftest.err conftest.$ac_ext
4569 if $ac_preproc_ok; then :
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4582 $as_echo "$CPP" >&6; }
4584 for ac_c_preproc_warn_flag in '' yes
4586 # Use a header file that comes with gcc, so configuring glibc
4587 # with a fresh cross-compiler works.
4588 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4589 # <limits.h> exists even on freestanding compilers.
4590 # On the NeXT, cc -E runs the code through the compiler's parser,
4591 # not just through cpp. "Syntax error" is here to catch this case.
4592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4593 /* end confdefs.h. */
4595 # include <limits.h>
4597 # include <assert.h>
4601 if ac_fn_c_try_cpp "$LINENO"; then :
4604 # Broken: fails on valid input.
4607 rm -f conftest.err conftest.$ac_ext
4609 # OK, works on sane cases. Now check whether nonexistent headers
4610 # can be detected and how.
4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h. */
4613 #include <ac_nonexistent.h>
4615 if ac_fn_c_try_cpp "$LINENO"; then :
4616 # Broken: success on invalid input.
4619 # Passes both tests.
4623 rm -f conftest.err conftest.$ac_ext
4626 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4627 rm -f conftest.err conftest.$ac_ext
4628 if $ac_preproc_ok; then :
4631 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4633 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4634 See \`config.log' for more details." "$LINENO" 5; }
4638 ac_cpp='$CPP $CPPFLAGS'
4639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4645 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4646 if test "${ac_cv_path_GREP+set}" = set; then :
4647 $as_echo_n "(cached) " >&6
4649 if test -z "$GREP"; then
4650 ac_path_GREP_found=false
4651 # Loop through the user's path and test for each of PROGNAME-LIST
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4656 test -z "$as_dir" && as_dir=.
4657 for ac_prog in grep ggrep; do
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4660 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4661 # Check for GNU ac_path_GREP and select it if it is found.
4662 # Check for GNU $ac_path_GREP
4663 case `"$ac_path_GREP" --version 2>&1` in
4665 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4668 $as_echo_n 0123456789 >"conftest.in"
4671 cat "conftest.in" "conftest.in" >"conftest.tmp"
4672 mv "conftest.tmp" "conftest.in"
4673 cp "conftest.in" "conftest.nl"
4674 $as_echo 'GREP' >> "conftest.nl"
4675 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4676 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4677 as_fn_arith $ac_count + 1 && ac_count=$as_val
4678 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4679 # Best one so far, save it but keep looking for a better one
4680 ac_cv_path_GREP="$ac_path_GREP"
4681 ac_path_GREP_max=$ac_count
4683 # 10*(2^10) chars as input seems more than enough
4684 test $ac_count -gt 10 && break
4686 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4689 $ac_path_GREP_found && break 3
4694 if test -z "$ac_cv_path_GREP"; then
4695 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4698 ac_cv_path_GREP=$GREP
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4703 $as_echo "$ac_cv_path_GREP" >&6; }
4704 GREP="$ac_cv_path_GREP"
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4708 $as_echo_n "checking for egrep... " >&6; }
4709 if test "${ac_cv_path_EGREP+set}" = set; then :
4710 $as_echo_n "(cached) " >&6
4712 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4713 then ac_cv_path_EGREP="$GREP -E"
4715 if test -z "$EGREP"; then
4716 ac_path_EGREP_found=false
4717 # Loop through the user's path and test for each of PROGNAME-LIST
4718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4722 test -z "$as_dir" && as_dir=.
4723 for ac_prog in egrep; do
4724 for ac_exec_ext in '' $ac_executable_extensions; do
4725 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4726 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4727 # Check for GNU ac_path_EGREP and select it if it is found.
4728 # Check for GNU $ac_path_EGREP
4729 case `"$ac_path_EGREP" --version 2>&1` in
4731 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4734 $as_echo_n 0123456789 >"conftest.in"
4737 cat "conftest.in" "conftest.in" >"conftest.tmp"
4738 mv "conftest.tmp" "conftest.in"
4739 cp "conftest.in" "conftest.nl"
4740 $as_echo 'EGREP' >> "conftest.nl"
4741 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4742 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4743 as_fn_arith $ac_count + 1 && ac_count=$as_val
4744 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4745 # Best one so far, save it but keep looking for a better one
4746 ac_cv_path_EGREP="$ac_path_EGREP"
4747 ac_path_EGREP_max=$ac_count
4749 # 10*(2^10) chars as input seems more than enough
4750 test $ac_count -gt 10 && break
4752 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4755 $ac_path_EGREP_found && break 3
4760 if test -z "$ac_cv_path_EGREP"; then
4761 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4764 ac_cv_path_EGREP=$EGREP
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4770 $as_echo "$ac_cv_path_EGREP" >&6; }
4771 EGREP="$ac_cv_path_EGREP"
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4775 $as_echo_n "checking for ANSI C header files... " >&6; }
4776 if test "${ac_cv_header_stdc+set}" = set; then :
4777 $as_echo_n "(cached) " >&6
4779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780 /* end confdefs.h. */
4794 if ac_fn_c_try_compile "$LINENO"; then :
4795 ac_cv_header_stdc=yes
4797 ac_cv_header_stdc=no
4799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4801 if test $ac_cv_header_stdc = yes; then
4802 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4804 /* end confdefs.h. */
4808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4809 $EGREP "memchr" >/dev/null 2>&1; then :
4812 ac_cv_header_stdc=no
4818 if test $ac_cv_header_stdc = yes; then
4819 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4821 /* end confdefs.h. */
4825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4826 $EGREP "free" >/dev/null 2>&1; then :
4829 ac_cv_header_stdc=no
4835 if test $ac_cv_header_stdc = yes; then
4836 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4837 if test "$cross_compiling" = yes; then :
4840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4841 /* end confdefs.h. */
4844 #if ((' ' & 0x0FF) == 0x020)
4845 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4846 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4848 # define ISLOWER(c) \
4849 (('a' <= (c) && (c) <= 'i') \
4850 || ('j' <= (c) && (c) <= 'r') \
4851 || ('s' <= (c) && (c) <= 'z'))
4852 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4855 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4860 for (i = 0; i < 256; i++)
4861 if (XOR (islower (i), ISLOWER (i))
4862 || toupper (i) != TOUPPER (i))
4867 if ac_fn_c_try_run "$LINENO"; then :
4870 ac_cv_header_stdc=no
4872 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4873 conftest.$ac_objext conftest.beam conftest.$ac_ext
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4879 $as_echo "$ac_cv_header_stdc" >&6; }
4880 if test $ac_cv_header_stdc = yes; then
4882 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4886 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4887 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4888 inttypes.h stdint.h unistd.h
4890 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4891 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4893 eval as_val=\$$as_ac_Header
4894 if test "x$as_val" = x""yes; then :
4895 cat >>confdefs.h <<_ACEOF
4896 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4905 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4906 if test "${ac_cv_c_bigendian+set}" = set; then :
4907 $as_echo_n "(cached) " >&6
4909 ac_cv_c_bigendian=unknown
4910 # See if we're dealing with a universal compiler.
4911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4912 /* end confdefs.h. */
4913 #ifndef __APPLE_CC__
4914 not a universal capable compiler
4919 if ac_fn_c_try_compile "$LINENO"; then :
4921 # Check for potential -arch flags. It is not universal unless
4922 # there are at least two -arch flags with different values.
4925 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4926 if test -n "$ac_prev"; then
4928 i?86 | x86_64 | ppc | ppc64)
4929 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4932 ac_cv_c_bigendian=universal
4938 elif test "x$ac_word" = "x-arch"; then
4943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4944 if test $ac_cv_c_bigendian = unknown; then
4945 # See if sys/param.h defines the BYTE_ORDER macro.
4946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4947 /* end confdefs.h. */
4948 #include <sys/types.h>
4949 #include <sys/param.h>
4954 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4955 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4964 if ac_fn_c_try_compile "$LINENO"; then :
4965 # It does; now see whether it defined to BIG_ENDIAN or not.
4966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4967 /* end confdefs.h. */
4968 #include <sys/types.h>
4969 #include <sys/param.h>
4974 #if BYTE_ORDER != BIG_ENDIAN
4982 if ac_fn_c_try_compile "$LINENO"; then :
4983 ac_cv_c_bigendian=yes
4985 ac_cv_c_bigendian=no
4987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4991 if test $ac_cv_c_bigendian = unknown; then
4992 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994 /* end confdefs.h. */
5000 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5008 if ac_fn_c_try_compile "$LINENO"; then :
5009 # It does; now see whether it defined to _BIG_ENDIAN or not.
5010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5011 /* end confdefs.h. */
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 # Compile a test program.
5036 if test "$cross_compiling" = yes; then :
5037 # Try to guess by grepping values from an object file.
5038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5039 /* end confdefs.h. */
5040 short int ascii_mm[] =
5041 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5042 short int ascii_ii[] =
5043 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5044 int use_ascii (int i) {
5045 return ascii_mm[i] + ascii_ii[i];
5047 short int ebcdic_ii[] =
5048 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5049 short int ebcdic_mm[] =
5050 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5051 int use_ebcdic (int i) {
5052 return ebcdic_mm[i] + ebcdic_ii[i];
5059 return use_ascii (foo) == use_ebcdic (foo);
5064 if ac_fn_c_try_compile "$LINENO"; then :
5065 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5066 ac_cv_c_bigendian=yes
5068 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5069 if test "$ac_cv_c_bigendian" = unknown; then
5070 ac_cv_c_bigendian=no
5072 # finding both strings is unlikely to happen, but who knows?
5073 ac_cv_c_bigendian=unknown
5077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5080 /* end confdefs.h. */
5081 $ac_includes_default
5086 /* Are we little or big endian? From Harbison&Steele. */
5090 char c[sizeof (long int)];
5093 return u.c[sizeof (long int) - 1] == 1;
5099 if ac_fn_c_try_run "$LINENO"; then :
5100 ac_cv_c_bigendian=no
5102 ac_cv_c_bigendian=yes
5104 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5105 conftest.$ac_objext conftest.beam conftest.$ac_ext
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5111 $as_echo "$ac_cv_c_bigendian" >&6; }
5112 case $ac_cv_c_bigendian in #(
5114 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5120 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5124 as_fn_error "unknown endianness
5125 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5129 # Extract the first word of "wx-config", so it can be a program name with args.
5130 set dummy wx-config; ac_word=$2
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5132 $as_echo_n "checking for $ac_word... " >&6; }
5133 if test "${ac_cv_path_wxconfig+set}" = set; then :
5134 $as_echo_n "(cached) " >&6
5138 ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
5141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145 test -z "$as_dir" && as_dir=.
5146 for ac_exec_ext in '' $ac_executable_extensions; do
5147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5148 ac_cv_path_wxconfig="$as_dir/$ac_word$ac_exec_ext"
5149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5159 wxconfig=$ac_cv_path_wxconfig
5160 if test -n "$wxconfig"; then
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wxconfig" >&5
5162 $as_echo "$wxconfig" >&6; }
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5165 $as_echo "no" >&6; }
5170 # Make sure we can run config.sub.
5171 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5172 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5175 $as_echo_n "checking build system type... " >&6; }
5176 if test "${ac_cv_build+set}" = set; then :
5177 $as_echo_n "(cached) " >&6
5179 ac_build_alias=$build_alias
5180 test "x$ac_build_alias" = x &&
5181 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5182 test "x$ac_build_alias" = x &&
5183 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
5184 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5185 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5189 $as_echo "$ac_cv_build" >&6; }
5190 case $ac_cv_build in
5192 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
5195 ac_save_IFS=$IFS; IFS='-'
5201 # Remember, the first character of IFS is used to create $*,
5202 # except with old shells:
5205 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5209 $as_echo_n "checking host system type... " >&6; }
5210 if test "${ac_cv_host+set}" = set; then :
5211 $as_echo_n "(cached) " >&6
5213 if test "x$host_alias" = x; then
5214 ac_cv_host=$ac_cv_build
5216 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5217 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5222 $as_echo "$ac_cv_host" >&6; }
5225 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
5228 ac_save_IFS=$IFS; IFS='-'
5234 # Remember, the first character of IFS is used to create $*,
5235 # except with old shells:
5238 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5242 $as_echo_n "checking for inline... " >&6; }
5243 if test "${ac_cv_c_inline+set}" = set; then :
5244 $as_echo_n "(cached) " >&6
5247 for ac_kw in inline __inline__ __inline; do
5248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5249 /* end confdefs.h. */
5252 static $ac_kw foo_t static_foo () {return 0; }
5253 $ac_kw foo_t foo () {return 0; }
5257 if ac_fn_c_try_compile "$LINENO"; then :
5258 ac_cv_c_inline=$ac_kw
5260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5261 test "$ac_cv_c_inline" != no && break
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5266 $as_echo "$ac_cv_c_inline" >&6; }
5268 case $ac_cv_c_inline in
5271 case $ac_cv_c_inline in
5273 *) ac_val=$ac_cv_c_inline;;
5275 cat >>confdefs.h <<_ACEOF
5277 #define inline $ac_val
5283 # The cast to long int works around a bug in the HP C Compiler
5284 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5285 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5286 # This bug is HP SR number 8606223364.
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5288 $as_echo_n "checking size of short... " >&6; }
5289 if test "${ac_cv_sizeof_short+set}" = set; then :
5290 $as_echo_n "(cached) " >&6
5292 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5295 if test "$ac_cv_type_short" = yes; then
5296 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5298 { as_fn_set_status 77
5299 as_fn_error "cannot compute sizeof (short)
5300 See \`config.log' for more details." "$LINENO" 5; }; }
5302 ac_cv_sizeof_short=0
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5308 $as_echo "$ac_cv_sizeof_short" >&6; }
5312 cat >>confdefs.h <<_ACEOF
5313 #define SIZEOF_SHORT $ac_cv_sizeof_short
5317 # The cast to long int works around a bug in the HP C Compiler
5318 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5319 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5320 # This bug is HP SR number 8606223364.
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5322 $as_echo_n "checking size of int... " >&6; }
5323 if test "${ac_cv_sizeof_int+set}" = set; then :
5324 $as_echo_n "(cached) " >&6
5326 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5329 if test "$ac_cv_type_int" = yes; then
5330 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5332 { as_fn_set_status 77
5333 as_fn_error "cannot compute sizeof (int)
5334 See \`config.log' for more details." "$LINENO" 5; }; }
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5342 $as_echo "$ac_cv_sizeof_int" >&6; }
5346 cat >>confdefs.h <<_ACEOF
5347 #define SIZEOF_INT $ac_cv_sizeof_int
5351 # The cast to long int works around a bug in the HP C Compiler
5352 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5353 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5354 # This bug is HP SR number 8606223364.
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5356 $as_echo_n "checking size of long... " >&6; }
5357 if test "${ac_cv_sizeof_long+set}" = set; then :
5358 $as_echo_n "(cached) " >&6
5360 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5363 if test "$ac_cv_type_long" = yes; then
5364 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5366 { as_fn_set_status 77
5367 as_fn_error "cannot compute sizeof (long)
5368 See \`config.log' for more details." "$LINENO" 5; }; }
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5376 $as_echo "$ac_cv_sizeof_long" >&6; }
5380 cat >>confdefs.h <<_ACEOF
5381 #define SIZEOF_LONG $ac_cv_sizeof_long
5385 # The cast to long int works around a bug in the HP C Compiler
5386 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5387 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5388 # This bug is HP SR number 8606223364.
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
5390 $as_echo_n "checking size of float... " >&6; }
5391 if test "${ac_cv_sizeof_float+set}" = set; then :
5392 $as_echo_n "(cached) " >&6
5394 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
5397 if test "$ac_cv_type_float" = yes; then
5398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5400 { as_fn_set_status 77
5401 as_fn_error "cannot compute sizeof (float)
5402 See \`config.log' for more details." "$LINENO" 5; }; }
5404 ac_cv_sizeof_float=0
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
5410 $as_echo "$ac_cv_sizeof_float" >&6; }
5414 cat >>confdefs.h <<_ACEOF
5415 #define SIZEOF_FLOAT $ac_cv_sizeof_float
5419 # The cast to long int works around a bug in the HP C Compiler
5420 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5421 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5422 # This bug is HP SR number 8606223364.
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
5424 $as_echo_n "checking size of double... " >&6; }
5425 if test "${ac_cv_sizeof_double+set}" = set; then :
5426 $as_echo_n "(cached) " >&6
5428 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
5431 if test "$ac_cv_type_double" = yes; then
5432 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5434 { as_fn_set_status 77
5435 as_fn_error "cannot compute sizeof (double)
5436 See \`config.log' for more details." "$LINENO" 5; }; }
5438 ac_cv_sizeof_double=0
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
5444 $as_echo "$ac_cv_sizeof_double" >&6; }
5448 cat >>confdefs.h <<_ACEOF
5449 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
5456 $as_echo_n "checking for deflate in -lz... " >&6; }
5457 if test "${ac_cv_lib_z_deflate+set}" = set; then :
5458 $as_echo_n "(cached) " >&6
5460 ac_check_lib_save_LIBS=$LIBS
5462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5463 /* end confdefs.h. */
5465 /* Override any GCC internal prototype to avoid an error.
5466 Use char because int might match the return type of a GCC
5467 builtin and then its argument prototype would still apply. */
5480 if ac_fn_c_try_link "$LINENO"; then :
5481 ac_cv_lib_z_deflate=yes
5483 ac_cv_lib_z_deflate=no
5485 rm -f core conftest.err conftest.$ac_objext \
5486 conftest$ac_exeext conftest.$ac_ext
5487 LIBS=$ac_check_lib_save_LIBS
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
5490 $as_echo "$ac_cv_lib_z_deflate" >&6; }
5491 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
5494 zlib="false" ; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib missing. Will need zlib for PNG support" >&5
5495 $as_echo "$as_me: WARNING: zlib missing. Will need zlib for PNG support" >&2;}
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
5499 $as_echo_n "checking for sin in -lm... " >&6; }
5500 if test "${ac_cv_lib_m_sin+set}" = set; then :
5501 $as_echo_n "(cached) " >&6
5503 ac_check_lib_save_LIBS=$LIBS
5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5506 /* end confdefs.h. */
5508 /* Override any GCC internal prototype to avoid an error.
5509 Use char because int might match the return type of a GCC
5510 builtin and then its argument prototype would still apply. */
5523 if ac_fn_c_try_link "$LINENO"; then :
5528 rm -f core conftest.err conftest.$ac_objext \
5529 conftest$ac_exeext conftest.$ac_ext
5530 LIBS=$ac_check_lib_save_LIBS
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
5533 $as_echo "$ac_cv_lib_m_sin" >&6; }
5534 if test "x$ac_cv_lib_m_sin" = x""yes; then :
5535 cat >>confdefs.h <<_ACEOF
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcurses" >&5
5544 $as_echo_n "checking for main in -lcurses... " >&6; }
5545 if test "${ac_cv_lib_curses_main+set}" = set; then :
5546 $as_echo_n "(cached) " >&6
5548 ac_check_lib_save_LIBS=$LIBS
5549 LIBS="-lcurses $LIBS"
5550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5551 /* end confdefs.h. */
5562 if ac_fn_c_try_link "$LINENO"; then :
5563 ac_cv_lib_curses_main=yes
5565 ac_cv_lib_curses_main=no
5567 rm -f core conftest.err conftest.$ac_objext \
5568 conftest$ac_exeext conftest.$ac_ext
5569 LIBS=$ac_check_lib_save_LIBS
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_main" >&5
5572 $as_echo "$ac_cv_lib_curses_main" >&6; }
5573 if test "x$ac_cv_lib_curses_main" = x""yes; then :
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lncurses" >&5
5580 $as_echo_n "checking for main in -lncurses... " >&6; }
5581 if test "${ac_cv_lib_ncurses_main+set}" = set; then :
5582 $as_echo_n "(cached) " >&6
5584 ac_check_lib_save_LIBS=$LIBS
5585 LIBS="-lncurses $LIBS"
5586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5587 /* end confdefs.h. */
5598 if ac_fn_c_try_link "$LINENO"; then :
5599 ac_cv_lib_ncurses_main=yes
5601 ac_cv_lib_ncurses_main=no
5603 rm -f core conftest.err conftest.$ac_objext \
5604 conftest$ac_exeext conftest.$ac_ext
5605 LIBS=$ac_check_lib_save_LIBS
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_main" >&5
5608 $as_echo "$ac_cv_lib_ncurses_main" >&6; }
5609 if test "x$ac_cv_lib_ncurses_main" = x""yes; then :
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lreadline" >&5
5616 $as_echo_n "checking for main in -lreadline... " >&6; }
5617 if test "${ac_cv_lib_readline_main+set}" = set; then :
5618 $as_echo_n "(cached) " >&6
5620 ac_check_lib_save_LIBS=$LIBS
5621 LIBS="-lreadline -lcurses $LIBS"
5622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5623 /* end confdefs.h. */
5634 if ac_fn_c_try_link "$LINENO"; then :
5635 ac_cv_lib_readline_main=yes
5637 ac_cv_lib_readline_main=no
5639 rm -f core conftest.err conftest.$ac_objext \
5640 conftest$ac_exeext conftest.$ac_ext
5641 LIBS=$ac_check_lib_save_LIBS
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_main" >&5
5644 $as_echo "$ac_cv_lib_readline_main" >&6; }
5645 if test "x$ac_cv_lib_readline_main" = x""yes; then :
5648 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgtk-x11-2.0" >&5
5656 $as_echo_n "checking for main in -lgtk-x11-2.0... " >&6; }
5657 if test "${ac_cv_lib_gtk_x11_2_0_main+set}" = set; then :
5658 $as_echo_n "(cached) " >&6
5660 ac_check_lib_save_LIBS=$LIBS
5661 LIBS="-lgtk-x11-2.0 $LIBS"
5662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5663 /* end confdefs.h. */
5674 if ac_fn_c_try_link "$LINENO"; then :
5675 ac_cv_lib_gtk_x11_2_0_main=yes
5677 ac_cv_lib_gtk_x11_2_0_main=no
5679 rm -f core conftest.err conftest.$ac_objext \
5680 conftest$ac_exeext conftest.$ac_ext
5681 LIBS=$ac_check_lib_save_LIBS
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gtk_x11_2_0_main" >&5
5684 $as_echo "$ac_cv_lib_gtk_x11_2_0_main" >&6; }
5685 if test "x$ac_cv_lib_gtk_x11_2_0_main" = x""yes; then :
5689 if test "x$hasx11gtk2" = "x" ; then
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: Does not have X11 GTK2" >&5
5691 $as_echo "$as_me: Does not have X11 GTK2" >&6;}
5695 if test "$hasx11gtk2" = "true" ; then
5698 CFLAGS="${CFLAGS} ${g76GTK_CFLAGS} ${GLIB_CFLAGS}"
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lwx_gtk2u_core-2.8" >&5
5702 $as_echo_n "checking for main in -lwx_gtk2u_core-2.8... " >&6; }
5703 if test "${ac_cv_lib_wx_gtk2u_core_2_8_main+set}" = set; then :
5704 $as_echo_n "(cached) " >&6
5706 ac_check_lib_save_LIBS=$LIBS
5707 LIBS="-lwx_gtk2u_core-2.8 -L/usr/lib64 -L/usr/lib ${GTK_LIBS} ${GLIB_LIBS} $LIBS"
5708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5709 /* end confdefs.h. */
5720 if ac_fn_c_try_link "$LINENO"; then :
5721 ac_cv_lib_wx_gtk2u_core_2_8_main=yes
5723 ac_cv_lib_wx_gtk2u_core_2_8_main=no
5725 rm -f core conftest.err conftest.$ac_objext \
5726 conftest$ac_exeext conftest.$ac_ext
5727 LIBS=$ac_check_lib_save_LIBS
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wx_gtk2u_core_2_8_main" >&5
5730 $as_echo "$ac_cv_lib_wx_gtk2u_core_2_8_main" >&6; }
5731 if test "x$ac_cv_lib_wx_gtk2u_core_2_8_main" = x""yes; then :
5732 wxwin=true; wx_gtk=true;
5733 $as_echo "#define HAVE_WXWINDOWS 1" >>confdefs.h
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lwx_mac_core-2.8" >&5
5738 $as_echo_n "checking for main in -lwx_mac_core-2.8... " >&6; }
5739 if test "${ac_cv_lib_wx_mac_core_2_8_main+set}" = set; then :
5740 $as_echo_n "(cached) " >&6
5742 ac_check_lib_save_LIBS=$LIBS
5743 LIBS="-lwx_mac_core-2.8 $LIBS"
5744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745 /* end confdefs.h. */
5756 if ac_fn_c_try_link "$LINENO"; then :
5757 ac_cv_lib_wx_mac_core_2_8_main=yes
5759 ac_cv_lib_wx_mac_core_2_8_main=no
5761 rm -f core conftest.err conftest.$ac_objext \
5762 conftest$ac_exeext conftest.$ac_ext
5763 LIBS=$ac_check_lib_save_LIBS
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wx_mac_core_2_8_main" >&5
5766 $as_echo "$ac_cv_lib_wx_mac_core_2_8_main" >&6; }
5767 if test "x$ac_cv_lib_wx_mac_core_2_8_main" = x""yes; then :
5768 wxwin=true; wx_mac=true;
5769 $as_echo "#define HAVE_WXWINDOWS 1" >>confdefs.h
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_malloc in -lfftw3" >&5
5774 $as_echo_n "checking for fftw_malloc in -lfftw3... " >&6; }
5775 if test "${ac_cv_lib_fftw3_fftw_malloc+set}" = set; then :
5776 $as_echo_n "(cached) " >&6
5778 ac_check_lib_save_LIBS=$LIBS
5779 LIBS="-lfftw3 -L/usr/lib64 -L/usr/lib $LIBS"
5780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5781 /* end confdefs.h. */
5783 /* Override any GCC internal prototype to avoid an error.
5784 Use char because int might match the return type of a GCC
5785 builtin and then its argument prototype would still apply. */
5789 char fftw_malloc ();
5793 return fftw_malloc ();
5798 if ac_fn_c_try_link "$LINENO"; then :
5799 ac_cv_lib_fftw3_fftw_malloc=yes
5801 ac_cv_lib_fftw3_fftw_malloc=no
5803 rm -f core conftest.err conftest.$ac_objext \
5804 conftest$ac_exeext conftest.$ac_ext
5805 LIBS=$ac_check_lib_save_LIBS
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_malloc" >&5
5808 $as_echo "$ac_cv_lib_fftw3_fftw_malloc" >&6; }
5809 if test "x$ac_cv_lib_fftw3_fftw_malloc" = x""yes; then :
5811 $as_echo "#define HAVE_FFTW 1" >>confdefs.h
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lGL" >&5
5818 $as_echo_n "checking for main in -lGL... " >&6; }
5819 if test "${ac_cv_lib_GL_main+set}" = set; then :
5820 $as_echo_n "(cached) " >&6
5822 ac_check_lib_save_LIBS=$LIBS
5823 LIBS="-lGL -L/usr/X11R6/lib -L/usr/X11R6/lib64 $LIBS"
5824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5825 /* end confdefs.h. */
5836 if ac_fn_c_try_link "$LINENO"; then :
5837 ac_cv_lib_GL_main=yes
5839 ac_cv_lib_GL_main=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_GL_main" >&5
5846 $as_echo "$ac_cv_lib_GL_main" >&6; }
5847 if test "x$ac_cv_lib_GL_main" = x""yes; then :
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
5854 $as_echo_n "checking for main in -lpthread... " >&6; }
5855 if test "${ac_cv_lib_pthread_main+set}" = set; then :
5856 $as_echo_n "(cached) " >&6
5858 ac_check_lib_save_LIBS=$LIBS
5859 LIBS="-lpthread $LIBS"
5860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5861 /* end confdefs.h. */
5872 if ac_fn_c_try_link "$LINENO"; then :
5873 ac_cv_lib_pthread_main=yes
5875 ac_cv_lib_pthread_main=no
5877 rm -f core conftest.err conftest.$ac_objext \
5878 conftest$ac_exeext conftest.$ac_ext
5879 LIBS=$ac_check_lib_save_LIBS
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
5882 $as_echo "$ac_cv_lib_pthread_main" >&6; }
5883 if test "x$ac_cv_lib_pthread_main" = x""yes; then :
5890 if test "$zlib" = "true" ; then
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpng" >&5
5892 $as_echo_n "checking for main in -lpng... " >&6; }
5893 if test "${ac_cv_lib_png_main+set}" = set; then :
5894 $as_echo_n "(cached) " >&6
5896 ac_check_lib_save_LIBS=$LIBS
5897 LIBS="-lpng -L/opt/local/lib -lz -lm $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_png_main=yes
5913 ac_cv_lib_png_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_png_main" >&5
5920 $as_echo "$ac_cv_lib_png_main" >&6; }
5921 if test "x$ac_cv_lib_png_main" = x""yes; then :
5923 $as_echo "#define HAVE_PNG 1" >>confdefs.h
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5932 $as_echo_n "checking for ANSI C header files... " >&6; }
5933 if test "${ac_cv_header_stdc+set}" = set; then :
5934 $as_echo_n "(cached) " >&6
5936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5937 /* end confdefs.h. */
5951 if ac_fn_c_try_compile "$LINENO"; then :
5952 ac_cv_header_stdc=yes
5954 ac_cv_header_stdc=no
5956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5958 if test $ac_cv_header_stdc = yes; then
5959 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5961 /* end confdefs.h. */
5965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5966 $EGREP "memchr" >/dev/null 2>&1; then :
5969 ac_cv_header_stdc=no
5975 if test $ac_cv_header_stdc = yes; then
5976 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5978 /* end confdefs.h. */
5982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5983 $EGREP "free" >/dev/null 2>&1; then :
5986 ac_cv_header_stdc=no
5992 if test $ac_cv_header_stdc = yes; then
5993 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5994 if test "$cross_compiling" = yes; then :
5997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5998 /* end confdefs.h. */
6001 #if ((' ' & 0x0FF) == 0x020)
6002 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6003 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6005 # define ISLOWER(c) \
6006 (('a' <= (c) && (c) <= 'i') \
6007 || ('j' <= (c) && (c) <= 'r') \
6008 || ('s' <= (c) && (c) <= 'z'))
6009 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6012 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6017 for (i = 0; i < 256; i++)
6018 if (XOR (islower (i), ISLOWER (i))
6019 || toupper (i) != TOUPPER (i))
6024 if ac_fn_c_try_run "$LINENO"; then :
6027 ac_cv_header_stdc=no
6029 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6030 conftest.$ac_objext conftest.beam conftest.$ac_ext
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6036 $as_echo "$ac_cv_header_stdc" >&6; }
6037 if test $ac_cv_header_stdc = yes; then
6039 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6043 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
6045 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6046 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6047 eval as_val=\$$as_ac_Header
6048 if test "x$as_val" = x""yes; then :
6049 cat >>confdefs.h <<_ACEOF
6050 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6059 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6060 if test "${ac_cv_c_const+set}" = set; then :
6061 $as_echo_n "(cached) " >&6
6063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064 /* end confdefs.h. */
6069 /* FIXME: Include the comments suggested by Paul. */
6071 /* Ultrix mips cc rejects this. */
6072 typedef int charset[2];
6074 /* SunOS 4.1.1 cc rejects this. */
6075 char const *const *pcpcc;
6077 /* NEC SVR4.0.2 mips cc rejects this. */
6078 struct point {int x, y;};
6079 static struct point const zero = {0,0};
6080 /* AIX XL C 1.02.0.0 rejects this.
6081 It does not let you subtract one const X* pointer from another in
6082 an arm of an if-expression whose if-part is not a constant
6084 const char *g = "string";
6085 pcpcc = &g + (g ? g-g : 0);
6086 /* HPUX 7.0 cc rejects these. */
6088 ppc = (char**) pcpcc;
6089 pcpcc = (char const *const *) ppc;
6090 { /* SCO 3.2v4 cc rejects this. */
6092 char const *s = 0 ? (char *) 0 : (char const *) 0;
6097 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6099 const int *foo = &x[0];
6102 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6103 typedef const int *iptr;
6107 { /* AIX XL C 1.02.0.0 rejects this saying
6108 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6109 struct s { int j; const int *ap[3]; };
6110 struct s *b; b->j = 5;
6112 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6116 return !cs[0] && !zero.x;
6123 if ac_fn_c_try_compile "$LINENO"; then :
6128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6131 $as_echo "$ac_cv_c_const" >&6; }
6132 if test $ac_cv_c_const = no; then
6134 $as_echo "#define const /**/" >>confdefs.h
6138 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6139 if test "x$ac_cv_type_off_t" = x""yes; then :
6143 cat >>confdefs.h <<_ACEOF
6144 #define off_t long int
6149 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6150 if test "x$ac_cv_type_size_t" = x""yes; then :
6154 cat >>confdefs.h <<_ACEOF
6155 #define size_t unsigned int
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6161 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6162 if test "${ac_cv_struct_tm+set}" = set; then :
6163 $as_echo_n "(cached) " >&6
6165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6166 /* end confdefs.h. */
6167 #include <sys/types.h>
6174 int *p = &tm.tm_sec;
6180 if ac_fn_c_try_compile "$LINENO"; then :
6181 ac_cv_struct_tm=time.h
6183 ac_cv_struct_tm=sys/time.h
6185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6188 $as_echo "$ac_cv_struct_tm" >&6; }
6189 if test $ac_cv_struct_tm = sys/time.h; then
6191 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6196 for ac_func in vprintf
6198 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
6199 if test "x$ac_cv_func_vprintf" = x""yes; then :
6200 cat >>confdefs.h <<_ACEOF
6201 #define HAVE_VPRINTF 1
6204 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6205 if test "x$ac_cv_func__doprnt" = x""yes; then :
6207 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
6215 for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf basename setjmp setpriority time gettimeofday getenv
6217 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6218 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6219 eval as_val=\$$as_ac_var
6220 if test "x$as_val" = x""yes; then :
6221 cat >>confdefs.h <<_ACEOF
6222 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6228 ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
6229 if test "x$ac_cv_func_basename" = x""yes; then :
6233 ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
6234 if test "x$ac_cv_func_setjmp" = x""yes; then :
6238 ac_fn_c_check_func "$LINENO" "setpriority" "ac_cv_func_setpriority"
6239 if test "x$ac_cv_func_setpriority" = x""yes; then :
6243 ac_fn_c_check_func "$LINENO" "time" "ac_cv_func_time"
6244 if test "x$ac_cv_func_time" = x""yes; then :
6248 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
6249 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
6253 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
6254 if test "x$ac_cv_func_getopt" = x""yes; then :
6261 if test "${OSTYPE}" = "cygwin" ; then
6264 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
6265 if test "x$ac_cv_func_getopt_long" = x""yes; then :
6273 if test "${getopt_long}" = "false" ; then
6274 my_includes="$my_includes -I../getopt"
6276 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
6278 ctlibs_base="$ctlibs_base -lgetopt"
6279 LDFLAGS="$LDFLAGS -L../getopt"
6282 if test "$GETOPTLONG"="1"; then
6283 INCLUDED_GETOPT_LONG_TRUE=
6284 INCLUDED_GETOPT_LONG_FALSE='#'
6286 INCLUDED_GETOPT_LONG_TRUE='#'
6287 INCLUDED_GETOPT_LONG_FALSE=
6291 if test "${readline}" = "true" ; then
6292 ctlibs_base="$ctlibs_base -lreadline"
6293 if test "${ncurses}" = "true"; then
6294 ctlibs_base="$ctlibs_base -lncurses"
6295 elif test "${curses}" = "true"; then
6296 ctlibs_base="$ctlibs_base -lcurses"
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking debug" >&5
6301 $as_echo_n "checking debug... " >&6; }
6302 # Check whether --enable-debug was given.
6303 if test "${enable_debug+set}" = set; then :
6304 enableval=$enable_debug; case "${enableval}" in
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6307 $as_echo "yes" >&6; }
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6311 $as_echo "no" >&6; }
6313 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: bad value ${enableval} for --enable-debug" >&5
6314 $as_echo "bad value ${enableval} for --enable-debug" >&6; }
6318 debug=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6319 $as_echo "no" >&6; }
6322 if test "$debug" = "true"; then
6331 if test "$datadir" != "" ; then
6332 CPPFLAGS="$CPPFLAGS -DDATADIR=\"\\\"$datadir\\\"\""
6335 if test "$debug" = "true" ; then
6336 CFLAGS="$CFLAGS -g -O0 -DDEBUG"
6338 $as_echo "#define DEBUG 1" >>confdefs.h
6341 CFLAGS="$CFLAGS -O2 -DNDEBUG -fomit-frame-pointer"
6343 $as_echo "#define NDEBUG 1" >>confdefs.h
6347 if test "${pthread}" = "true" ; then
6349 $as_echo "#define HAVE_WXTHREADS 1" >>confdefs.h
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sstream" >&5
6354 $as_echo_n "checking sstream... " >&6; }
6355 if test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
6356 test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ||
6357 test -f /usr/include/gcc/darwin/3.1/g++-v3/sstream ; then
6359 $as_echo "#define HAVE_SSTREAM 1" >>confdefs.h
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6362 $as_echo "yes" >&6; }
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6365 $as_echo "no" >&6; }
6369 CFLAGS="$CFLAGS -Wall"
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose warnings" >&5
6371 $as_echo_n "checking whether to enable verbose warnings... " >&6; }
6372 # Check whether --enable-verbose-warnings was given.
6373 if test "${enable_verbose_warnings+set}" = set; then :
6374 enableval=$enable_verbose_warnings; case "$enableval" in
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6377 $as_echo "yes" >&6; }
6378 CFLAGS="$CFLAGS -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wredundant-decls"
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6382 $as_echo "no" >&6; }
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6387 $as_echo "no" >&6; }
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking static executables" >&5
6393 $as_echo_n "checking static executables... " >&6; }
6394 # Check whether --enable-static was given.
6395 if test "${enable_static+set}" = set; then :
6396 enableval=$enable_static; case "$enableval" in
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6399 $as_echo "yes" >&6; }
6400 CFLAGS="$CFLAGS --static"
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6404 $as_echo "no" >&6; }
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6409 $as_echo "no" >&6; }
6415 # Check whether --with-lam was given.
6416 if test "${with_lam+set}" = set; then :
6417 withval=$with_lam; if test "$withval" != "no" ; then
6424 if test "$withval" != "no" ; then
6425 if test "$prefix" != "NONE" ; then
6426 trylamdir="$trylamdir $prefix"
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LAM MPI installation" >&5
6430 $as_echo_n "checking for LAM MPI installation... " >&6; }
6431 for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
6432 if test -x "$testlamdir/bin/hcp" ; then
6433 if test "$testlamdir" != "/usr"; then
6434 LDFLAGS="$LDFLAGS -L$testlamdir/lib"
6435 CFLAGS="$CFLAGS -I$testlamdir/include"
6437 CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
6438 lamdir="$testlamdir"
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lamdir" >&5
6446 $as_echo "$lamdir" >&6; }
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6449 $as_echo "no" >&6; }
6454 # Check whether --with-ctn was given.
6455 if test "${with_ctn+set}" = set; then :
6456 withval=$with_ctn; if test "$withval" != "no" ; then
6463 if test "$withval" == "no" -o "$withval" == "NONE" ; then
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CTN DICOM installation" >&5
6465 $as_echo_n "checking for CTN DICOM installation... " >&6; }
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6467 $as_echo "disabled" >&6; }
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CTN DICOM installation" >&5
6470 $as_echo_n "checking for CTN DICOM installation... " >&6; }
6471 for testctndir in $tryctndir/lib /usr/local/lib /usr/local/ctn/lib /usr/lib /usr/ctn/lib /usr/lib/ctn /opt/ctn/lib ; do
6472 if test -f "$testctndir/libctn.a" ; then
6473 LDFLAGS="$LDFLAGS -L$testctndir"
6478 for testctndir in $tryctndir/include /usr/local/include /usr/local/ctn/include /usr/include /usr/include/ctn /usr/ctn/include /opt/ctn/include ; do
6479 if test -f "$testctndir/ctn_os.h" ; then
6480 CFLAGS="$CFLAGS -I$testctndir"
6485 if test "$ctnlib" == "true" -a "$ctninclude" == "true" ; then
6488 $as_echo "#define HAVE_CTN_DICOM 1" >>confdefs.h
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6491 $as_echo "yes" >&6; }
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6494 $as_echo "no" >&6; }
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPU specification" >&5
6499 $as_echo_n "checking for CPU specification... " >&6; }
6501 # Check whether --with-mcpu was given.
6502 if test "${with_mcpu+set}" = set; then :
6507 if test "$withval" == "no" -o "$withval" == "yes" -o "$withval" == ""; then
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6509 $as_echo "no" >&6; }
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
6512 $as_echo "$withval" >&6; }
6513 CFLAGS="$CFLAGS -mcpu=$withval"
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for web access" >&5
6517 $as_echo_n "checking for web access... " >&6; }
6519 # Check whether --with-cgibin-dir was given.
6520 if test "${with_cgibin_dir+set}" = set; then :
6521 withval=$with_cgibin_dir; cgibindir=$withval ;
6526 # Check whether --with-cgibin-url was given.
6527 if test "${with_cgibin_url+set}" = set; then :
6528 withval=$with_cgibin_url; cgibinurl=$withval ;
6533 # Check whether --with-webdata-dir was given.
6534 if test "${with_webdata_dir+set}" = set; then :
6535 withval=$with_webdata_dir; webdatadir=$withval ;
6540 # Check whether --with-webdata-url was given.
6541 if test "${with_webdata_url+set}" = set; then :
6542 withval=$with_webdata_url; webdataurl=$withval ;
6547 # Check whether --with-html-dir was given.
6548 if test "${with_html_dir+set}" = set; then :
6549 withval=$with_html_dir; html_%dir=$withval ;
6553 if test "x$cgibindir" != "x" -o "x$cgibinurl" != "x" ; then
6554 cgiprograms="ctsim.cgi ctsim.conf"
6558 if test "x$html_dir" = "x" ; then
6559 htmldata=simulate.html
6562 if test "x$html_dir" = "x"; then
6571 if test "x$cgibindir" != "x" -o "x$cgibinurl" != "x" -o "x$webdatadir" != "x" -o "x$webdataurl" != "x" -o "x$html_dir" != "x" ; then
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6575 $as_echo "yes" >&6; }
6576 if test "x$cgibindir" = "x" ; then
6577 as_fn_error "--with-cgibin-dir not set for web access" "$LINENO" 5
6578 elif test "x$cgibinurl" = "x" ; then
6579 as_fn_error "--with-cgibin-url not set for web access" "$LINENO" 5
6580 elif test "x$webdatadir" = "x" ; then
6581 as_fn_error "--with-webdata-dir not set for web access" "$LINENO" 5
6582 elif test "x$webdataurl" = "x" ; then
6583 as_fn_error "--with-webdata-url not set for web access" "$LINENO" 5
6584 elif test "x$html_dir" = "x" ; then
6585 as_fn_error "--with-html-dir not set for web access" "$LINENO" 5
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6589 $as_echo "no" >&6; }
6592 if test "x$lamdir" != "x"; then
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
6602 $as_echo_n "checking for X... " >&6; }
6605 # Check whether --with-x was given.
6606 if test "${with_x+set}" = set; then :
6610 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6611 if test "x$with_x" = xno; then
6612 # The user explicitly disabled X.
6615 case $x_includes,$x_libraries in #(
6616 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
6617 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
6618 $as_echo_n "(cached) " >&6
6620 # One or both of the vars are not set, and there is no cached value.
6621 ac_x_includes=no ac_x_libraries=no
6622 rm -f -r conftest.dir
6623 if mkdir conftest.dir; then
6625 cat >Imakefile <<'_ACEOF'
6627 @echo incroot='${INCROOT}'
6629 @echo usrlibdir='${USRLIBDIR}'
6631 @echo libdir='${LIBDIR}'
6633 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6634 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6635 for ac_var in incroot usrlibdir libdir; do
6636 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6638 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6639 for ac_extension in a so sl dylib la dll; do
6640 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6641 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6642 ac_im_usrlibdir=$ac_im_libdir; break
6645 # Screen out bogus values from the imake configuration. They are
6646 # bogus both because they are the default anyway, and because
6647 # using them would break gcc on systems where it needs fixed includes.
6648 case $ac_im_incroot in
6649 /usr/include) ac_x_includes= ;;
6650 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6652 case $ac_im_usrlibdir in
6653 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
6654 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6658 rm -f -r conftest.dir
6661 # Standard set of common directories for X headers.
6662 # Check X11 before X11Rn because it is often a symlink to the current release.
6676 /usr/local/X11/include
6677 /usr/local/X11R7/include
6678 /usr/local/X11R6/include
6679 /usr/local/X11R5/include
6680 /usr/local/X11R4/include
6682 /usr/local/include/X11
6683 /usr/local/include/X11R7
6684 /usr/local/include/X11R6
6685 /usr/local/include/X11R5
6686 /usr/local/include/X11R4
6690 /usr/XFree86/include/X11
6694 /usr/unsupported/include
6696 /usr/local/x11r5/include
6697 /usr/lpp/Xamples/include
6699 /usr/openwin/include
6700 /usr/openwin/share/include'
6702 if test "$ac_x_includes" = no; then
6703 # Guess where to find include files, by looking for Xlib.h.
6704 # First, try using that file with no special directory specified.
6705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6706 /* end confdefs.h. */
6707 #include <X11/Xlib.h>
6709 if ac_fn_c_try_cpp "$LINENO"; then :
6710 # We can compile using X headers with no special include directory.
6713 for ac_dir in $ac_x_header_dirs; do
6714 if test -r "$ac_dir/X11/Xlib.h"; then
6715 ac_x_includes=$ac_dir
6720 rm -f conftest.err conftest.$ac_ext
6721 fi # $ac_x_includes = no
6723 if test "$ac_x_libraries" = no; then
6724 # Check for the libraries.
6725 # See if we find them without any special options.
6726 # Don't add to $LIBS permanently.
6729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6730 /* end confdefs.h. */
6731 #include <X11/Xlib.h>
6740 if ac_fn_c_try_link "$LINENO"; then :
6742 # We can link X programs with no special library path.
6746 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6748 # Don't even attempt the hair of trying to link an X program!
6749 for ac_extension in a so sl dylib la dll; do
6750 if test -r "$ac_dir/libX11.$ac_extension"; then
6751 ac_x_libraries=$ac_dir
6757 rm -f core conftest.err conftest.$ac_objext \
6758 conftest$ac_exeext conftest.$ac_ext
6759 fi # $ac_x_libraries = no
6761 case $ac_x_includes,$ac_x_libraries in #(
6763 # Didn't find X, or a directory has "'" in its name.
6764 ac_cv_have_x="have_x=no";; #(
6766 # Record where we found X for the cache.
6767 ac_cv_have_x="have_x=yes\
6768 ac_x_includes='$ac_x_includes'\
6769 ac_x_libraries='$ac_x_libraries'"
6775 eval "$ac_cv_have_x"
6778 if test "$have_x" != yes; then
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
6780 $as_echo "$have_x" >&6; }
6783 # If each of the values was on the command line, it overrides each guess.
6784 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6785 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6786 # Update the cache value to reflect the command line values.
6787 ac_cv_have_x="have_x=yes\
6788 ac_x_includes='$x_includes'\
6789 ac_x_libraries='$x_libraries'"
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
6791 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6794 if test "$no_x" = yes; then
6795 # Not all programs may use this symbol, but it does not hurt to define it.
6797 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
6799 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6801 if test -n "$x_includes"; then
6802 X_CFLAGS="$X_CFLAGS -I$x_includes"
6805 # It would also be nice to do this for all -L options, not just this one.
6806 if test -n "$x_libraries"; then
6807 X_LIBS="$X_LIBS -L$x_libraries"
6808 # For Solaris; some versions of Sun CC require a space after -R and
6809 # others require no space. Words are not sufficient . . . .
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
6811 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
6812 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6813 ac_xsave_c_werror_flag=$ac_c_werror_flag
6814 ac_c_werror_flag=yes
6815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6816 /* end confdefs.h. */
6826 if ac_fn_c_try_link "$LINENO"; then :
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6828 $as_echo "no" >&6; }
6829 X_LIBS="$X_LIBS -R$x_libraries"
6831 LIBS="$ac_xsave_LIBS -R $x_libraries"
6832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6833 /* end confdefs.h. */
6843 if ac_fn_c_try_link "$LINENO"; then :
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6845 $as_echo "yes" >&6; }
6846 X_LIBS="$X_LIBS -R $x_libraries"
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
6849 $as_echo "neither works" >&6; }
6851 rm -f core conftest.err conftest.$ac_objext \
6852 conftest$ac_exeext conftest.$ac_ext
6854 rm -f core conftest.err conftest.$ac_objext \
6855 conftest$ac_exeext conftest.$ac_ext
6856 ac_c_werror_flag=$ac_xsave_c_werror_flag
6860 # Check for system-dependent libraries X programs must link with.
6861 # Do this before checking for the system-independent R6 libraries
6862 # (-lICE), since we may need -lsocket or whatever for X linking.
6864 if test "$ISC" = yes; then
6865 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6867 # Martyn Johnson says this is needed for Ultrix, if the X
6868 # libraries were built with DECnet support. And Karl Berry says
6869 # the Alpha needs dnet_stub (dnet does not exist).
6870 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6872 /* end confdefs.h. */
6874 /* Override any GCC internal prototype to avoid an error.
6875 Use char because int might match the return type of a GCC
6876 builtin and then its argument prototype would still apply. */
6880 char XOpenDisplay ();
6884 return XOpenDisplay ();
6889 if ac_fn_c_try_link "$LINENO"; then :
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
6893 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6894 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
6895 $as_echo_n "(cached) " >&6
6897 ac_check_lib_save_LIBS=$LIBS
6899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6900 /* end confdefs.h. */
6902 /* Override any GCC internal prototype to avoid an error.
6903 Use char because int might match the return type of a GCC
6904 builtin and then its argument prototype would still apply. */
6912 return dnet_ntoa ();
6917 if ac_fn_c_try_link "$LINENO"; then :
6918 ac_cv_lib_dnet_dnet_ntoa=yes
6920 ac_cv_lib_dnet_dnet_ntoa=no
6922 rm -f core conftest.err conftest.$ac_objext \
6923 conftest$ac_exeext conftest.$ac_ext
6924 LIBS=$ac_check_lib_save_LIBS
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6927 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6928 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
6929 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6932 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
6934 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6935 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
6936 $as_echo_n "(cached) " >&6
6938 ac_check_lib_save_LIBS=$LIBS
6939 LIBS="-ldnet_stub $LIBS"
6940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6941 /* end confdefs.h. */
6943 /* Override any GCC internal prototype to avoid an error.
6944 Use char because int might match the return type of a GCC
6945 builtin and then its argument prototype would still apply. */
6953 return dnet_ntoa ();
6958 if ac_fn_c_try_link "$LINENO"; then :
6959 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6961 ac_cv_lib_dnet_stub_dnet_ntoa=no
6963 rm -f core conftest.err conftest.$ac_objext \
6964 conftest$ac_exeext conftest.$ac_ext
6965 LIBS=$ac_check_lib_save_LIBS
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6968 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6969 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
6970 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6975 rm -f core conftest.err conftest.$ac_objext \
6976 conftest$ac_exeext conftest.$ac_ext
6977 LIBS="$ac_xsave_LIBS"
6979 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6980 # to get the SysV transport functions.
6981 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6983 # The nsl library prevents programs from opening the X display
6984 # on Irix 5.2, according to T.E. Dickey.
6985 # The functions gethostbyname, getservbyname, and inet_addr are
6986 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6987 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
6988 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
6992 if test $ac_cv_func_gethostbyname = no; then
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
6994 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6995 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
6996 $as_echo_n "(cached) " >&6
6998 ac_check_lib_save_LIBS=$LIBS
7000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7001 /* end confdefs.h. */
7003 /* Override any GCC internal prototype to avoid an error.
7004 Use char because int might match the return type of a GCC
7005 builtin and then its argument prototype would still apply. */
7009 char gethostbyname ();
7013 return gethostbyname ();
7018 if ac_fn_c_try_link "$LINENO"; then :
7019 ac_cv_lib_nsl_gethostbyname=yes
7021 ac_cv_lib_nsl_gethostbyname=no
7023 rm -f core conftest.err conftest.$ac_objext \
7024 conftest$ac_exeext conftest.$ac_ext
7025 LIBS=$ac_check_lib_save_LIBS
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7028 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7029 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
7030 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7033 if test $ac_cv_lib_nsl_gethostbyname = no; then
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7035 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7036 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
7037 $as_echo_n "(cached) " >&6
7039 ac_check_lib_save_LIBS=$LIBS
7041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7042 /* end confdefs.h. */
7044 /* Override any GCC internal prototype to avoid an error.
7045 Use char because int might match the return type of a GCC
7046 builtin and then its argument prototype would still apply. */
7050 char gethostbyname ();
7054 return gethostbyname ();
7059 if ac_fn_c_try_link "$LINENO"; then :
7060 ac_cv_lib_bsd_gethostbyname=yes
7062 ac_cv_lib_bsd_gethostbyname=no
7064 rm -f core conftest.err conftest.$ac_objext \
7065 conftest$ac_exeext conftest.$ac_ext
7066 LIBS=$ac_check_lib_save_LIBS
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7069 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7070 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
7071 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7077 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7078 # socket/setsockopt and other routines are undefined under SCO ODT
7079 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7080 # on later versions), says Simon Leinen: it contains gethostby*
7081 # variants that don't use the name server (or something). -lsocket
7082 # must be given before -lnsl if both are needed. We assume that
7083 # if connect needs -lnsl, so does gethostbyname.
7084 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7085 if test "x$ac_cv_func_connect" = x""yes; then :
7089 if test $ac_cv_func_connect = no; then
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7091 $as_echo_n "checking for connect in -lsocket... " >&6; }
7092 if test "${ac_cv_lib_socket_connect+set}" = set; then :
7093 $as_echo_n "(cached) " >&6
7095 ac_check_lib_save_LIBS=$LIBS
7096 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7098 /* end confdefs.h. */
7100 /* Override any GCC internal prototype to avoid an error.
7101 Use char because int might match the return type of a GCC
7102 builtin and then its argument prototype would still apply. */
7115 if ac_fn_c_try_link "$LINENO"; then :
7116 ac_cv_lib_socket_connect=yes
7118 ac_cv_lib_socket_connect=no
7120 rm -f core conftest.err conftest.$ac_objext \
7121 conftest$ac_exeext conftest.$ac_ext
7122 LIBS=$ac_check_lib_save_LIBS
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7125 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7126 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
7127 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7132 # Guillermo Gomez says -lposix is necessary on A/UX.
7133 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7134 if test "x$ac_cv_func_remove" = x""yes; then :
7138 if test $ac_cv_func_remove = no; then
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7140 $as_echo_n "checking for remove in -lposix... " >&6; }
7141 if test "${ac_cv_lib_posix_remove+set}" = set; then :
7142 $as_echo_n "(cached) " >&6
7144 ac_check_lib_save_LIBS=$LIBS
7145 LIBS="-lposix $LIBS"
7146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7147 /* end confdefs.h. */
7149 /* Override any GCC internal prototype to avoid an error.
7150 Use char because int might match the return type of a GCC
7151 builtin and then its argument prototype would still apply. */
7164 if ac_fn_c_try_link "$LINENO"; then :
7165 ac_cv_lib_posix_remove=yes
7167 ac_cv_lib_posix_remove=no
7169 rm -f core conftest.err conftest.$ac_objext \
7170 conftest$ac_exeext conftest.$ac_ext
7171 LIBS=$ac_check_lib_save_LIBS
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7174 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7175 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
7176 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7181 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7182 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7183 if test "x$ac_cv_func_shmat" = x""yes; then :
7187 if test $ac_cv_func_shmat = no; then
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7189 $as_echo_n "checking for shmat in -lipc... " >&6; }
7190 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
7191 $as_echo_n "(cached) " >&6
7193 ac_check_lib_save_LIBS=$LIBS
7195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7196 /* end confdefs.h. */
7198 /* Override any GCC internal prototype to avoid an error.
7199 Use char because int might match the return type of a GCC
7200 builtin and then its argument prototype would still apply. */
7213 if ac_fn_c_try_link "$LINENO"; then :
7214 ac_cv_lib_ipc_shmat=yes
7216 ac_cv_lib_ipc_shmat=no
7218 rm -f core conftest.err conftest.$ac_objext \
7219 conftest$ac_exeext conftest.$ac_ext
7220 LIBS=$ac_check_lib_save_LIBS
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7223 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7224 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
7225 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7231 # Check for libraries that X11R6 Xt/Xaw programs need.
7232 ac_save_LDFLAGS=$LDFLAGS
7233 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7234 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7235 # check for ICE first), but we must link in the order -lSM -lICE or
7236 # we get undefined symbols. So assume we have SM if we have ICE.
7237 # These have to be linked with before -lX11, unlike the other
7238 # libraries we check for below, so use a different variable.
7239 # John Interrante, Karl Berry
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7241 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7242 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
7243 $as_echo_n "(cached) " >&6
7245 ac_check_lib_save_LIBS=$LIBS
7246 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7248 /* end confdefs.h. */
7250 /* Override any GCC internal prototype to avoid an error.
7251 Use char because int might match the return type of a GCC
7252 builtin and then its argument prototype would still apply. */
7256 char IceConnectionNumber ();
7260 return IceConnectionNumber ();
7265 if ac_fn_c_try_link "$LINENO"; then :
7266 ac_cv_lib_ICE_IceConnectionNumber=yes
7268 ac_cv_lib_ICE_IceConnectionNumber=no
7270 rm -f core conftest.err conftest.$ac_objext \
7271 conftest$ac_exeext conftest.$ac_ext
7272 LIBS=$ac_check_lib_save_LIBS
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7275 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7276 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
7277 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7280 LDFLAGS=$ac_save_LDFLAGS
7291 if test "x$with_x" = "xno"; then
7300 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
7303 LDFLAGS="$LDFLAGS -L/usr/local/lib"
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7306 $as_echo_n "checking for X... " >&6; }
7307 if test "$with_x" != "no" && test "$wxwin" = "true"; then
7309 $as_echo "#define HAVE_X11 1" >>confdefs.h
7311 LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib -L/usr/X11R6/lib64"
7312 my_includes="$my_includes -I/usr/X11R6/include"
7313 ctlib_graphics="$ctlibs_base -lctgraphics"
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7315 $as_echo "yes" >&6; }
7316 ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
7317 if test "$libgl" = "true" ; then
7318 # Removed "-lglut" for Mac OS X compilation
7319 ctlib_graphics="$ctlib_graphics -lGL -lGLU"
7320 if test "$wxwin" = "true" ; then
7322 if test "$debug" = "true"; then
7325 if test "x$wx_gtk" != "x" ; then
7326 ctlib_graphics="$ctlib_graphics `$wxconfig $wxdebug --version=2.8 --libs std,gl` ${GTK_LIBS} ${GLIB_LIBS}"
7327 elif test "x$wx_mac" != "x" ; then
7328 ctlib_graphics="$ctlib_graphics `$wxconfig $wxdebug --version=2.8 --libs std,gl`"
7332 if test "$wxwin" = "true" ; then
7334 $as_echo "#define HAVE_SGP 1" >>confdefs.h
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7339 $as_echo "no" >&6; }
7342 if test "$wxwin" = "true"; then
7351 if test "$png" = "true" ; then
7352 ctlibs_tools="$ctlibs_tools -lpng"
7354 if test "$zlib" = "true" ; then
7355 ctlibs_tools="$ctlibs_tools -lz"
7357 if test "$fftw" = "true" ; then
7358 ctlibs_tools="$ctlibs_tools -lfftw3"
7360 if test "$ctn" = "true"; then
7361 ctlibs_tools="$ctlibs_tools -lctn"
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldmallocxx" >&5
7365 $as_echo_n "checking for main in -ldmallocxx... " >&6; }
7366 if test "${ac_cv_lib_dmallocxx_main+set}" = set; then :
7367 $as_echo_n "(cached) " >&6
7369 ac_check_lib_save_LIBS=$LIBS
7370 LIBS="-ldmallocxx $LIBS"
7371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7372 /* end confdefs.h. */
7383 if ac_fn_c_try_link "$LINENO"; then :
7384 ac_cv_lib_dmallocxx_main=yes
7386 ac_cv_lib_dmallocxx_main=no
7388 rm -f core conftest.err conftest.$ac_objext \
7389 conftest$ac_exeext conftest.$ac_ext
7390 LIBS=$ac_check_lib_save_LIBS
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmallocxx_main" >&5
7393 $as_echo "$ac_cv_lib_dmallocxx_main" >&6; }
7394 if test "x$ac_cv_lib_dmallocxx_main" = x""yes; then :
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enable-dmalloc" >&5
7401 $as_echo_n "checking for enable-dmalloc... " >&6; }
7402 # Check whether --enable-dmalloc was given.
7403 if test "${enable_dmalloc+set}" = set; then :
7404 enableval=$enable_dmalloc; case "${enableval}" in
7405 yes) usedmalloc=true
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7407 $as_echo "yes" >&6; }
7409 no) usedmalloc=false
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7411 $as_echo "no" >&6; }
7413 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: bad value ${enableval} for --enable-dmalloc" >&5
7414 $as_echo "bad value ${enableval} for --enable-dmalloc" >&6; }
7418 usedmalloc=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7419 $as_echo "no" >&6; }
7423 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
7424 ctlibs_tools="$ctlibs_tools -ldmallocxx"
7426 $as_echo "#define HAVE_DMALLOC 1" >>confdefs.h
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using dmalloc" >&5
7429 $as_echo "Using dmalloc" >&6; }
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lefence" >&5
7433 $as_echo_n "checking for main in -lefence... " >&6; }
7434 if test "${ac_cv_lib_efence_main+set}" = set; then :
7435 $as_echo_n "(cached) " >&6
7437 ac_check_lib_save_LIBS=$LIBS
7438 LIBS="-lefence $LIBS"
7439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7440 /* end confdefs.h. */
7451 if ac_fn_c_try_link "$LINENO"; then :
7452 ac_cv_lib_efence_main=yes
7454 ac_cv_lib_efence_main=no
7456 rm -f core conftest.err conftest.$ac_objext \
7457 conftest$ac_exeext conftest.$ac_ext
7458 LIBS=$ac_check_lib_save_LIBS
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_main" >&5
7461 $as_echo "$ac_cv_lib_efence_main" >&6; }
7462 if test "x$ac_cv_lib_efence_main" = x""yes; then :
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enable-efence" >&5
7469 $as_echo_n "checking for enable-efence... " >&6; }
7470 # Check whether --enable-efence was given.
7471 if test "${enable_efence+set}" = set; then :
7472 enableval=$enable_efence; case "${enableval}" in
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7475 $as_echo "yes" >&6; }
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7479 $as_echo "no" >&6; }
7481 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: bad value ${enableval} for --enable-efence" >&5
7482 $as_echo "bad value ${enableval} for --enable-efence" >&6; }
7486 useefence=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7487 $as_echo "no" >&6; }
7491 if test "$efence" = "true" -a "$useefence" = "true" ; then
7492 ctlibs_tools="$ctlibs_tools -lefence"
7494 $as_echo "#define HAVE_EFENCE 1" >>confdefs.h
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using efence" >&5
7497 $as_echo "Using efence" >&6; }
7500 if test "$wxwin" = "true" ; then
7501 if test "$wx_gtk" = "true" -o "$wx_mac" = "true" ; then
7502 wxcflags=`$wxconfig $wxdebug --cxxflags --version=2.8`
7503 #wxlibs=`$wxconfig --libs`
7505 wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
7506 wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
7508 CFLAGS="$CFLAGS -I../include $wxcflags"
7509 ctlib_graphics="$ctlib_graphics $wxlibs"
7513 if test "$wxwin"="true"; then
7514 HAVE_WXWINDOWS_TRUE=
7515 HAVE_WXWINDOWS_FALSE='#'
7517 HAVE_WXWINDOWS_TRUE='#'
7518 HAVE_WXWINDOWS_FALSE=
7522 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
7523 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
7526 if test "x$lamdir" != "x" ; then
7527 lamprograms="ctsimtext-lam"
7535 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"
7538 cat >confcache <<\_ACEOF
7539 # This file is a shell script that caches the results of configure
7540 # tests run on this system so they can be shared between configure
7541 # scripts and configure runs, see configure's option --config-cache.
7542 # It is not useful on other systems. If it contains results you don't
7543 # want to keep, you may remove or edit it.
7545 # config.status only pays attention to the cache file if you give it
7546 # the --recheck option to rerun configure.
7548 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7549 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7554 # The following way of writing the cache mishandles newlines in values,
7555 # but we know of no workaround that is simple, portable, and efficient.
7556 # So, we kill variables containing newlines.
7557 # Ultrix sh set writes to stderr and can't be redirected directly,
7558 # and sets the high bit in the cache file unless we assign to the vars.
7560 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7561 eval ac_val=\$$ac_var
7565 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7566 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7569 _ | IFS | as_nl) ;; #(
7570 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7571 *) { eval $ac_var=; unset $ac_var;} ;;
7577 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7578 *${as_nl}ac_space=\ *)
7579 # `set' does not quote correctly, so add quotes: double-quote
7580 # substitution turns \\\\ into \\, and sed turns \\ into \.
7583 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7586 # `set' quotes correctly as required by POSIX, so do not add quotes.
7587 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7596 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7598 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7600 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7601 if test -w "$cache_file"; then
7602 test "x$cache_file" != "x/dev/null" &&
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7604 $as_echo "$as_me: updating cache $cache_file" >&6;}
7605 cat confcache >$cache_file
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7608 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7613 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7614 # Let make expand exec_prefix.
7615 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7617 DEFS=-DHAVE_CONFIG_H
7621 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7622 # 1. Remove the extension, and $U if already installed.
7623 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7624 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7625 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7626 # will be set to the directory where LIBOBJS objects are built.
7627 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7628 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7632 LTLIBOBJS=$ac_ltlibobjs
7635 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7636 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
7637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7639 if test -n "$EXEEXT"; then
7641 am__EXEEXT_FALSE='#'
7647 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7648 as_fn_error "conditional \"AMDEP\" was never defined.
7649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7651 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7652 as_fn_error "conditional \"am__fastdepCC\" was never defined.
7653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7655 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
7656 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
7657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7660 if test -z "${INCLUDED_GETOPT_LONG_TRUE}" && test -z "${INCLUDED_GETOPT_LONG_FALSE}"; then
7661 as_fn_error "conditional \"INCLUDED_GETOPT_LONG\" was never defined.
7662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7664 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
7665 as_fn_error "conditional \"DEBUG\" was never defined.
7666 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7668 if test -z "${USE_HTML_TRUE}" && test -z "${USE_HTML_FALSE}"; then
7669 as_fn_error "conditional \"USE_HTML\" was never defined.
7670 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7672 if test -z "${USE_LAM_TRUE}" && test -z "${USE_LAM_FALSE}"; then
7673 as_fn_error "conditional \"USE_LAM\" was never defined.
7674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7676 if test -z "${NO_X_TRUE}" && test -z "${NO_X_FALSE}"; then
7677 as_fn_error "conditional \"NO_X\" was never defined.
7678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7680 if test -z "${HAVE_SGP_TRUE}" && test -z "${HAVE_SGP_FALSE}"; then
7681 as_fn_error "conditional \"HAVE_SGP\" was never defined.
7682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7684 if test -z "${HAVE_WXWINDOWS_TRUE}" && test -z "${HAVE_WXWINDOWS_FALSE}"; then
7685 as_fn_error "conditional \"HAVE_WXWINDOWS\" was never defined.
7686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7689 : ${CONFIG_STATUS=./config.status}
7691 ac_clean_files_save=$ac_clean_files
7692 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7694 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7696 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7698 # Generated by $as_me.
7699 # Run this file to recreate the current configuration.
7700 # Compiler output produced by configure, useful for debugging
7701 # configure, is in config.log if it exists.
7707 SHELL=\${CONFIG_SHELL-$SHELL}
7710 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7711 ## -------------------- ##
7712 ## M4sh Initialization. ##
7713 ## -------------------- ##
7715 # Be more Bourne compatible
7716 DUALCASE=1; export DUALCASE # for MKS sh
7717 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7720 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7721 # is contrary to our usage. Disable this feature.
7722 alias -g '${1+"$@"}'='"$@"'
7723 setopt NO_GLOB_SUBST
7725 case `(set -o) 2>/dev/null` in #(
7737 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7738 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7739 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7740 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7741 # Prefer a ksh shell builtin over an external printf program on Solaris,
7742 # but without wasting forks for bash or zsh.
7743 if test -z "$BASH_VERSION$ZSH_VERSION" \
7744 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7745 as_echo='print -r --'
7746 as_echo_n='print -rn --'
7747 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7748 as_echo='printf %s\n'
7749 as_echo_n='printf %s'
7751 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7752 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7753 as_echo_n='/usr/ucb/echo -n'
7755 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7756 as_echo_n_body='eval
7760 expr "X$arg" : "X\\(.*\\)$as_nl";
7761 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7763 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7765 export as_echo_n_body
7766 as_echo_n='sh -c $as_echo_n_body as_echo'
7769 as_echo='sh -c $as_echo_body as_echo'
7772 # The user is always right.
7773 if test "${PATH_SEPARATOR+set}" != set; then
7775 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7776 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7783 # We need space, tab and new line, in precisely that order. Quoting is
7784 # there to prevent editors from complaining about space-tab.
7785 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7786 # splitting by setting IFS to empty value.)
7789 # Find who we are. Look in the path if we contain no directory separator.
7791 *[\\/]* ) as_myself=$0 ;;
7792 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7796 test -z "$as_dir" && as_dir=.
7797 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7803 # We did not find ourselves, most probably we were run as `sh COMMAND'
7804 # in which case we are not to be found in the path.
7805 if test "x$as_myself" = x; then
7808 if test ! -f "$as_myself"; then
7809 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7813 # Unset variables that we do not need and which cause bugs (e.g. in
7814 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7815 # suppresses any "Segmentation fault" message there. '((' could
7816 # trigger a bug in pdksh 5.2.14.
7817 for as_var in BASH_ENV ENV MAIL MAILPATH
7818 do eval test x\${$as_var+set} = xset \
7819 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7832 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7835 # as_fn_error ERROR [LINENO LOG_FD]
7836 # ---------------------------------
7837 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7838 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7839 # script with status $?, using 1 if that was 0.
7842 as_status=$?; test $as_status -eq 0 && as_status=1
7844 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7845 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7847 $as_echo "$as_me: error: $1" >&2
7848 as_fn_exit $as_status
7852 # as_fn_set_status STATUS
7853 # -----------------------
7854 # Set $? to STATUS, without forking.
7858 } # as_fn_set_status
7862 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7872 # Portably unset VAR.
7875 { eval $1=; unset $1;}
7877 as_unset=as_fn_unset
7878 # as_fn_append VAR VALUE
7879 # ----------------------
7880 # Append the text in VALUE to the end of the definition contained in VAR. Take
7881 # advantage of any shell optimizations that allow amortized linear growth over
7882 # repeated appends, instead of the typical quadratic growth present in naive
7884 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7885 eval 'as_fn_append ()
7896 # as_fn_arith ARG...
7897 # ------------------
7898 # Perform arithmetic evaluation on the ARGs, and store the result in the
7899 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7900 # must be portable across $(()) and expr.
7901 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7902 eval 'as_fn_arith ()
7909 as_val=`expr "$@" || test $? -eq 1`
7914 if expr a : '\(a\)' >/dev/null 2>&1 &&
7915 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7921 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7922 as_basename=basename
7927 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7933 as_me=`$as_basename -- "$0" ||
7934 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7935 X"$0" : 'X\(//\)$' \| \
7936 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7938 sed '/^.*\/\([^/][^/]*\)\/*$/{
7952 # Avoid depending upon Character Ranges.
7953 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7954 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7955 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7956 as_cr_digits='0123456789'
7957 as_cr_alnum=$as_cr_Letters$as_cr_digits
7959 ECHO_C= ECHO_N= ECHO_T=
7960 case `echo -n x` in #(((((
7962 case `echo 'xy\c'` in
7963 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7965 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7972 rm -f conf$$ conf$$.exe conf$$.file
7973 if test -d conf$$.dir; then
7974 rm -f conf$$.dir/conf$$.file
7977 mkdir conf$$.dir 2>/dev/null
7979 if (echo >conf$$.file) 2>/dev/null; then
7980 if ln -s conf$$.file conf$$ 2>/dev/null; then
7982 # ... but there are two gotchas:
7983 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7984 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7985 # In both cases, we have to default to `cp -p'.
7986 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7988 elif ln conf$$.file conf$$ 2>/dev/null; then
7996 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7997 rmdir conf$$.dir 2>/dev/null
8002 # Create "$as_dir" as a directory, including parents if necessary.
8007 -*) as_dir=./$as_dir;;
8009 test -d "$as_dir" || eval $as_mkdir_p || {
8013 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8014 *) as_qdir=$as_dir;;
8016 as_dirs="'$as_qdir' $as_dirs"
8017 as_dir=`$as_dirname -- "$as_dir" ||
8018 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8019 X"$as_dir" : 'X\(//\)[^/]' \| \
8020 X"$as_dir" : 'X\(//\)$' \| \
8021 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8022 $as_echo X"$as_dir" |
8023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8040 test -d "$as_dir" && break
8042 test -z "$as_dirs" || eval "mkdir $as_dirs"
8043 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
8047 if mkdir -p . 2>/dev/null; then
8048 as_mkdir_p='mkdir -p "$as_dir"'
8050 test -d ./-p && rmdir ./-p
8054 if test -x / >/dev/null 2>&1; then
8057 if ls -dL / >/dev/null 2>&1; then
8064 if test -d "$1"; then
8070 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8071 ???[sx]*):;;*)false;;esac;fi
8075 as_executable_p=$as_test_x
8077 # Sed expression to map a string onto a valid CPP name.
8078 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8080 # Sed expression to map a string onto a valid variable name.
8081 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8085 ## ----------------------------------- ##
8086 ## Main body of $CONFIG_STATUS script. ##
8087 ## ----------------------------------- ##
8089 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8092 # Save the log message, to keep $0 and so on meaningful, and to
8093 # report actual input values of CONFIG_FILES etc. instead of their
8094 # values after options handling.
8096 This file was extended by $as_me, which was
8097 generated by GNU Autoconf 2.64. Invocation command line was
8099 CONFIG_FILES = $CONFIG_FILES
8100 CONFIG_HEADERS = $CONFIG_HEADERS
8101 CONFIG_LINKS = $CONFIG_LINKS
8102 CONFIG_COMMANDS = $CONFIG_COMMANDS
8105 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8110 case $ac_config_files in *"
8111 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8114 case $ac_config_headers in *"
8115 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8120 # Files that config.status was made for.
8121 config_files="$ac_config_files"
8122 config_headers="$ac_config_headers"
8123 config_commands="$ac_config_commands"
8127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8129 \`$as_me' instantiates files and other configuration actions
8130 from templates according to the current configuration. Unless the files
8131 and actions are specified as TAGs, all are instantiated by default.
8133 Usage: $0 [OPTION]... [TAG]...
8135 -h, --help print this help, then exit
8136 -V, --version print version number and configuration settings, then exit
8137 -q, --quiet, --silent
8138 do not print progress messages
8139 -d, --debug don't remove temporary files
8140 --recheck update $as_me by reconfiguring in the same conditions
8141 --file=FILE[:TEMPLATE]
8142 instantiate the configuration file FILE
8143 --header=FILE[:TEMPLATE]
8144 instantiate the configuration header FILE
8146 Configuration files:
8149 Configuration headers:
8152 Configuration commands:
8155 Report bugs to the package provider."
8158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8161 configured by $0, generated by GNU Autoconf 2.64,
8162 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8164 Copyright (C) 2009 Free Software Foundation, Inc.
8165 This config.status script is free software; the Free Software Foundation
8166 gives unlimited permission to copy, distribute and modify it."
8173 test -n "\$AWK" || AWK=awk
8176 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8177 # The default lists apply if the user does not specify any file.
8183 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8184 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8195 # Handling of the options.
8196 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8198 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8199 $as_echo "$ac_cs_version"; exit ;;
8200 --debug | --debu | --deb | --de | --d | -d )
8202 --file | --fil | --fi | --f )
8205 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8207 as_fn_append CONFIG_FILES " '$ac_optarg'"
8208 ac_need_defaults=false;;
8209 --header | --heade | --head | --hea )
8212 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8214 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8215 ac_need_defaults=false;;
8217 # Conflict between --help and --header
8218 as_fn_error "ambiguous option: \`$1'
8219 Try \`$0 --help' for more information.";;
8220 --help | --hel | -h )
8221 $as_echo "$ac_cs_usage"; exit ;;
8222 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8223 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8227 -*) as_fn_error "unrecognized option: \`$1'
8228 Try \`$0 --help' for more information." ;;
8230 *) as_fn_append ac_config_targets " $1"
8231 ac_need_defaults=false ;;
8237 ac_configure_extra_args=
8239 if $ac_cs_silent; then
8241 ac_configure_extra_args="$ac_configure_extra_args --silent"
8245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8246 if \$ac_cs_recheck; then
8247 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8249 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8250 CONFIG_SHELL='$SHELL'
8256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8260 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8261 ## Running $as_me. ##
8267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8271 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8275 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8277 # Handling of arguments.
8278 for ac_config_target in $ac_config_targets
8280 case $ac_config_target in
8281 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8282 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8283 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8284 "libctgraphics/Makefile") CONFIG_FILES="$CONFIG_FILES libctgraphics/Makefile" ;;
8285 "libctsupport/Makefile") CONFIG_FILES="$CONFIG_FILES libctsupport/Makefile" ;;
8286 "libctsim/Makefile") CONFIG_FILES="$CONFIG_FILES libctsim/Makefile" ;;
8287 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
8288 "cgi-bin/ctsim.cgi") CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.cgi" ;;
8289 "cgi-bin/Makefile") CONFIG_FILES="$CONFIG_FILES cgi-bin/Makefile" ;;
8290 "html/simulate.html") CONFIG_FILES="$CONFIG_FILES html/simulate.html" ;;
8291 "html/Makefile") CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
8292 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
8293 "getopt/Makefile") CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
8294 "tools/sample-ctsim.sh") CONFIG_FILES="$CONFIG_FILES tools/sample-ctsim.sh" ;;
8295 "cgi-bin/ctsim.conf") CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.conf" ;;
8296 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
8297 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8298 "helical/Makefile") CONFIG_FILES="$CONFIG_FILES helical/Makefile" ;;
8299 "helical/sample-helical.sh") CONFIG_FILES="$CONFIG_FILES helical/sample-helical.sh" ;;
8301 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8306 # If the user did not use the arguments to specify the items to instantiate,
8307 # then the envvar interface is used. Set only those that are not.
8308 # We use the long form for the default assignment because of an extremely
8309 # bizarre bug on SunOS 4.1.3.
8310 if $ac_need_defaults; then
8311 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8312 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8313 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8316 # Have a temporary directory for convenience. Make it in the build tree
8317 # simply because there is no reason against having it here, and in addition,
8318 # creating and moving files from /tmp can sometimes cause problems.
8319 # Hook for its removal unless debugging.
8320 # Note that there is a small window in which the directory will not be cleaned:
8321 # after its creation but before its name has been assigned to `$tmp'.
8325 trap 'exit_status=$?
8326 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8328 trap 'as_fn_exit 1' 1 2 13 15
8330 # Create a (secure) tmp directory for tmp files.
8333 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8334 test -n "$tmp" && test -d "$tmp"
8337 tmp=./conf$$-$RANDOM
8338 (umask 077 && mkdir "$tmp")
8339 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
8341 # Set up the scripts for CONFIG_FILES section.
8342 # No need to generate them if there are no CONFIG_FILES.
8343 # This happens for instance with `./config.status config.h'.
8344 if test -n "$CONFIG_FILES"; then
8347 ac_cr=`echo X | tr X '\015'`
8348 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8349 # But we know of no other shell where ac_cr would be empty at this
8350 # point, so we can use a bashism as a fallback.
8351 if test "x$ac_cr" = x; then
8352 eval ac_cr=\$\'\\r\'
8354 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8355 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8361 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8366 echo "cat >conf$$subs.awk <<_ACEOF" &&
8367 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8370 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8371 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8373 for ac_last_try in false false false false false :; do
8374 . ./conf$$subs.sh ||
8375 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8377 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8378 if test $ac_delim_n = $ac_delim_num; then
8380 elif $ac_last_try; then
8381 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8383 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8388 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8389 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8393 s/^/S["/; s/!.*/"]=/
8403 s/\(.\{148\}\).*/\1/
8405 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8410 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8417 s/\(.\{148\}\).*/\1/
8419 s/["\\]/\\&/g; s/^/"/; s/$/"/
8423 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8428 ' <conf$$subs.awk | sed '
8433 ' >>$CONFIG_STATUS || ac_write_fail=1
8434 rm -f conf$$subs.awk
8435 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8437 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8438 for (key in S) S_is_set[key] = 1
8444 nfields = split(line, field, "@")
8446 len = length(field[1])
8447 for (i = 2; i < nfields; i++) {
8449 keylen = length(key)
8450 if (S_is_set[key]) {
8452 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8453 len += length(value) + length(field[++i])
8464 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8465 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8466 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8469 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8470 || as_fn_error "could not setup config files machinery" "$LINENO" 5
8473 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8474 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8475 # trailing colons and then remove the whole line if VPATH becomes empty
8476 # (actually we leave an empty line to preserve line numbers).
8477 if test "x$srcdir" = x.; then
8478 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8482 s/^\([^=]*=[ ]*\):*/\1/
8488 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8489 fi # test -n "$CONFIG_FILES"
8491 # Set up the scripts for CONFIG_HEADERS section.
8492 # No need to generate them if there are no CONFIG_HEADERS.
8493 # This happens for instance with `./config.status Makefile'.
8494 if test -n "$CONFIG_HEADERS"; then
8495 cat >"$tmp/defines.awk" <<\_ACAWK ||
8499 # Transform confdefs.h into an awk script `defines.awk', embedded as
8500 # here-document in config.status, that substitutes the proper values into
8501 # config.h.in to produce config.h.
8503 # Create a delimiter string that does not exist in confdefs.h, to ease
8504 # handling of long lines.
8506 for ac_last_try in false false :; do
8507 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8508 if test -z "$ac_t"; then
8510 elif $ac_last_try; then
8511 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
8513 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8517 # For the awk script, D is an array of macro values keyed by name,
8518 # likewise P contains macro parameters if any. Preserve backslash
8519 # newline sequences.
8521 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8523 s/.\{148\}/&'"$ac_delim"'/g
8526 s/^[ ]*#[ ]*define[ ][ ]*/ /
8533 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8535 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8539 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8540 D["\1"]=" \3\\\\\\n"\\/p
8542 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8547 s/.\{148\}/&'"$ac_delim"'/g
8552 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8555 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8557 ' <confdefs.h | sed '
8558 s/'"$ac_delim"'/"\\\
8559 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8562 for (key in D) D_is_set[key] = 1
8565 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8567 split(line, arg, " ")
8568 if (arg[1] == "#") {
8572 defundef = substr(arg[1], 2)
8575 split(mac1, mac2, "(") #)
8577 prefix = substr(line, 1, index(line, defundef) - 1)
8578 if (D_is_set[macro]) {
8579 # Preserve the white space surrounding the "#".
8580 print prefix "define", macro P[macro] D[macro]
8583 # Replace #undef with comments. This is necessary, for example,
8584 # in the case of _POSIX_SOURCE, which is predefined and required
8585 # on some systems where configure will not decide to define it.
8586 if (defundef == "undef") {
8587 print "/*", prefix defundef, macro, "*/"
8595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8596 as_fn_error "could not setup config headers machinery" "$LINENO" 5
8597 fi # test -n "$CONFIG_HEADERS"
8600 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8605 :[FHLC]) ac_mode=$ac_tag; continue;;
8607 case $ac_mode$ac_tag in
8609 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
8610 :[FH]-) ac_tag=-:-;;
8611 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8628 -) ac_f="$tmp/stdin";;
8629 *) # Look for the file first in the build tree, then in the source tree
8630 # (if the path is not absolute). The absolute path cannot be DOS-style,
8631 # because $ac_f cannot contain `:'.
8635 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8637 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8639 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8640 as_fn_append ac_file_inputs " '$ac_f'"
8643 # Let's still pretend it is `configure' which instantiates (i.e., don't
8644 # use $as_me), people would be surprised to read:
8645 # /* config.h. Generated by config.status. */
8646 configure_input='Generated from '`
8647 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8649 if test x"$ac_file" != x-; then
8650 configure_input="$ac_file. $configure_input"
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8652 $as_echo "$as_me: creating $ac_file" >&6;}
8654 # Neutralize special characters interpreted by sed in replacement strings.
8655 case $configure_input in #(
8656 *\&* | *\|* | *\\* )
8657 ac_sed_conf_input=`$as_echo "$configure_input" |
8658 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8659 *) ac_sed_conf_input=$configure_input;;
8663 *:-:* | *:-) cat >"$tmp/stdin" \
8664 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
8669 ac_dir=`$as_dirname -- "$ac_file" ||
8670 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8671 X"$ac_file" : 'X\(//\)[^/]' \| \
8672 X"$ac_file" : 'X\(//\)$' \| \
8673 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8674 $as_echo X"$ac_file" |
8675 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8692 as_dir="$ac_dir"; as_fn_mkdir_p
8696 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8698 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8699 # A ".." for each directory in $ac_dir_suffix.
8700 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8701 case $ac_top_builddir_sub in
8702 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8703 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8706 ac_abs_top_builddir=$ac_pwd
8707 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8708 # for backward compatibility:
8709 ac_top_builddir=$ac_top_build_prefix
8712 .) # We are building in place.
8714 ac_top_srcdir=$ac_top_builddir_sub
8715 ac_abs_top_srcdir=$ac_pwd ;;
8716 [\\/]* | ?:[\\/]* ) # Absolute name.
8717 ac_srcdir=$srcdir$ac_dir_suffix;
8718 ac_top_srcdir=$srcdir
8719 ac_abs_top_srcdir=$srcdir ;;
8721 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8722 ac_top_srcdir=$ac_top_build_prefix$srcdir
8723 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8725 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8735 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8736 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8740 [\\/$]* | ?:[\\/]* ) ;;
8741 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8746 # If the template does not know about datarootdir, expand it.
8747 # FIXME: This hack should be removed a few years after 2.60.
8748 ac_datarootdir_hack=; ac_datarootdir_seen=
8759 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8760 *datarootdir*) ac_datarootdir_seen=yes;;
8761 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8763 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8765 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8766 ac_datarootdir_hack='
8767 s&@datadir@&$datadir&g
8768 s&@docdir@&$docdir&g
8769 s&@infodir@&$infodir&g
8770 s&@localedir@&$localedir&g
8771 s&@mandir@&$mandir&g
8772 s&\\\${datarootdir}&$datarootdir&g' ;;
8776 # Neutralize VPATH when `$srcdir' = `.'.
8777 # Shell code in configure.ac might set extrasub.
8778 # FIXME: do we really want to maintain this feature?
8779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8780 ac_sed_extra="$ac_vpsub
8783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8785 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8786 s|@configure_input@|$ac_sed_conf_input|;t t
8787 s&@top_builddir@&$ac_top_builddir_sub&;t t
8788 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8789 s&@srcdir@&$ac_srcdir&;t t
8790 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8791 s&@top_srcdir@&$ac_top_srcdir&;t t
8792 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8793 s&@builddir@&$ac_builddir&;t t
8794 s&@abs_builddir@&$ac_abs_builddir&;t t
8795 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8796 s&@INSTALL@&$ac_INSTALL&;t t
8797 s&@MKDIR_P@&$ac_MKDIR_P&;t t
8798 $ac_datarootdir_hack
8800 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8801 || as_fn_error "could not create $ac_file" "$LINENO" 5
8803 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8804 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8805 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8807 which seems to be undefined. Please make sure it is defined." >&5
8808 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8809 which seems to be undefined. Please make sure it is defined." >&2;}
8813 -) cat "$tmp/out" && rm -f "$tmp/out";;
8814 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8816 || as_fn_error "could not create $ac_file" "$LINENO" 5
8822 if test x"$ac_file" != x-; then
8824 $as_echo "/* $configure_input */" \
8825 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8826 } >"$tmp/config.h" \
8827 || as_fn_error "could not create $ac_file" "$LINENO" 5
8828 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8830 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8833 mv "$tmp/config.h" "$ac_file" \
8834 || as_fn_error "could not create $ac_file" "$LINENO" 5
8837 $as_echo "/* $configure_input */" \
8838 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8839 || as_fn_error "could not create -" "$LINENO" 5
8841 # Compute "$ac_file"'s index in $config_headers.
8844 for _am_header in $config_headers :; do
8846 $_am_arg | $_am_arg:* )
8849 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8852 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8853 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8854 X"$_am_arg" : 'X\(//\)[^/]' \| \
8855 X"$_am_arg" : 'X\(//\)$' \| \
8856 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8857 $as_echo X"$_am_arg" |
8858 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8874 s/.*/./; q'`/stamp-h$_am_stamp_count
8877 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8878 $as_echo "$as_me: executing $ac_file commands" >&6;}
8883 case $ac_file$ac_mode in
8884 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
8885 # Autoconf 2.62 quotes --file arguments for eval, but not when files
8886 # are listed without --file. Let's play safe and only enable the eval
8887 # if we detect the quoting.
8888 case $CONFIG_FILES in
8889 *\'*) eval set x "$CONFIG_FILES" ;;
8890 *) set x $CONFIG_FILES ;;
8895 # Strip MF so we end up with the name of the file.
8896 mf=`echo "$mf" | sed -e 's/:.*$//'`
8897 # Check whether this is an Automake generated Makefile or not.
8898 # We used to match only the files named `Makefile.in', but
8899 # some people rename them; so instead we look at the file content.
8900 # Grep'ing the first line is not enough: some people post-process
8901 # each Makefile.in and add a new line on top of each file to say so.
8902 # Grep'ing the whole file is not good either: AIX grep has a line
8903 # limit of 2048, but all sed's we know have understand at least 4000.
8904 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8905 dirpart=`$as_dirname -- "$mf" ||
8906 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8907 X"$mf" : 'X\(//\)[^/]' \| \
8908 X"$mf" : 'X\(//\)$' \| \
8909 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8931 # Extract the definition of DEPDIR, am__include, and am__quote
8932 # from the Makefile without running `make'.
8933 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8934 test -z "$DEPDIR" && continue
8935 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8936 test -z "am__include" && continue
8937 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8938 # When using ansi2knr, U may be empty or an underscore; expand it
8939 U=`sed -n 's/^U = //p' < "$mf"`
8940 # Find all dependency output files, they are included files with
8941 # $(DEPDIR) in their names. We invoke sed twice because it is the
8942 # simplest approach to changing $(DEPDIR) to its actual value in the
8944 for file in `sed -n "
8945 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8946 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8947 # Make sure the directory exists.
8948 test -f "$dirpart/$file" && continue
8949 fdir=`$as_dirname -- "$file" ||
8950 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8951 X"$file" : 'X\(//\)[^/]' \| \
8952 X"$file" : 'X\(//\)$' \| \
8953 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8972 as_dir=$dirpart/$fdir; as_fn_mkdir_p
8973 # echo "creating $dirpart/$file"
8974 echo '# dummy' > "$dirpart/$file"
8986 ac_clean_files=$ac_clean_files_save
8988 test $ac_write_fail = 0 ||
8989 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8992 # configure is writing to config.log, and then calls config.status.
8993 # config.status does its own redirection, appending to config.log.
8994 # Unfortunately, on DOS this fails, as config.log is still kept open
8995 # by configure, so config.status won't be able to write to it; its
8996 # output is simply discarded. So we exec the FD to /dev/null,
8997 # effectively closing config.log, so it can be properly (re)opened and
8998 # appended to by config.status. When coming back to configure, we
8999 # need to make the FD available again.
9000 if test "$no_create" != yes; then
9002 ac_config_status_args=
9003 test "$silent" = yes &&
9004 ac_config_status_args="$ac_config_status_args --quiet"
9006 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9008 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9009 # would make configure fail if this is the last instruction.
9010 $ac_cs_success || as_fn_exit $?
9012 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9014 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}