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='LTLIBOBJS
627 INCLUDED_GETOPT_LONG_FALSE
628 INCLUDED_GETOPT_LONG_TRUE
672 INSTALL_STRIP_PROGRAM
688 MAINTAINER_MODE_FALSE
717 program_transform_name
730 enable_option_checking
731 enable_maintainer_mode
732 enable_dependency_tracking
734 enable_verbose_warnings
748 ac_precious_vars='build_alias
763 # Initialize some variables set by options.
765 ac_init_version=false
766 ac_unrecognized_opts=
768 # The variables have the same names as the options, with
769 # dashes changed to underlines.
777 program_transform_name=s,x,x,
785 # Installation directory options.
786 # These are left unexpanded so users can "make install exec_prefix=/foo"
787 # and all the variables that are supposed to be based on exec_prefix
788 # by default will actually change.
789 # Use braces instead of parens because sh, perl, etc. also accept them.
790 # (The list follows the same order as the GNU Coding Standards.)
791 bindir='${exec_prefix}/bin'
792 sbindir='${exec_prefix}/sbin'
793 libexecdir='${exec_prefix}/libexec'
794 datarootdir='${prefix}/share'
795 datadir='${datarootdir}'
796 sysconfdir='${prefix}/etc'
797 sharedstatedir='${prefix}/com'
798 localstatedir='${prefix}/var'
799 includedir='${prefix}/include'
800 oldincludedir='/usr/include'
801 docdir='${datarootdir}/doc/${PACKAGE}'
802 infodir='${datarootdir}/info'
807 libdir='${exec_prefix}/lib'
808 localedir='${datarootdir}/locale'
809 mandir='${datarootdir}/man'
815 # If the previous option needs an argument, assign it.
816 if test -n "$ac_prev"; then
817 eval $ac_prev=\$ac_option
823 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
827 # Accept the important Cygnus configure options, so we can diagnose typos.
829 case $ac_dashdash$ac_option in
833 -bindir | --bindir | --bindi | --bind | --bin | --bi)
835 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
838 -build | --build | --buil | --bui | --bu)
839 ac_prev=build_alias ;;
840 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
841 build_alias=$ac_optarg ;;
843 -cache-file | --cache-file | --cache-fil | --cache-fi \
844 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
845 ac_prev=cache_file ;;
846 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
847 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
848 cache_file=$ac_optarg ;;
851 cache_file=config.cache ;;
853 -datadir | --datadir | --datadi | --datad)
855 -datadir=* | --datadir=* | --datadi=* | --datad=*)
856 datadir=$ac_optarg ;;
858 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
859 | --dataroo | --dataro | --datar)
860 ac_prev=datarootdir ;;
861 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
862 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
863 datarootdir=$ac_optarg ;;
865 -disable-* | --disable-*)
866 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
867 # Reject names that are not valid shell variable names.
868 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
869 as_fn_error "invalid feature name: $ac_useropt"
870 ac_useropt_orig=$ac_useropt
871 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
872 case $ac_user_opts in
876 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
877 ac_unrecognized_sep=', ';;
879 eval enable_$ac_useropt=no ;;
881 -docdir | --docdir | --docdi | --doc | --do)
883 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
886 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
888 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
891 -enable-* | --enable-*)
892 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
893 # Reject names that are not valid shell variable names.
894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895 as_fn_error "invalid feature name: $ac_useropt"
896 ac_useropt_orig=$ac_useropt
897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
903 ac_unrecognized_sep=', ';;
905 eval enable_$ac_useropt=\$ac_optarg ;;
907 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
908 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
909 | --exec | --exe | --ex)
910 ac_prev=exec_prefix ;;
911 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
912 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
913 | --exec=* | --exe=* | --ex=*)
914 exec_prefix=$ac_optarg ;;
916 -gas | --gas | --ga | --g)
917 # Obsolete; use --with-gas.
920 -help | --help | --hel | --he | -h)
922 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
923 ac_init_help=recursive ;;
924 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
925 ac_init_help=short ;;
927 -host | --host | --hos | --ho)
928 ac_prev=host_alias ;;
929 -host=* | --host=* | --hos=* | --ho=*)
930 host_alias=$ac_optarg ;;
932 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
934 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
936 htmldir=$ac_optarg ;;
938 -includedir | --includedir | --includedi | --included | --include \
939 | --includ | --inclu | --incl | --inc)
940 ac_prev=includedir ;;
941 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
942 | --includ=* | --inclu=* | --incl=* | --inc=*)
943 includedir=$ac_optarg ;;
945 -infodir | --infodir | --infodi | --infod | --info | --inf)
947 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
948 infodir=$ac_optarg ;;
950 -libdir | --libdir | --libdi | --libd)
952 -libdir=* | --libdir=* | --libdi=* | --libd=*)
955 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
956 | --libexe | --libex | --libe)
957 ac_prev=libexecdir ;;
958 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
959 | --libexe=* | --libex=* | --libe=*)
960 libexecdir=$ac_optarg ;;
962 -localedir | --localedir | --localedi | --localed | --locale)
964 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
965 localedir=$ac_optarg ;;
967 -localstatedir | --localstatedir | --localstatedi | --localstated \
968 | --localstate | --localstat | --localsta | --localst | --locals)
969 ac_prev=localstatedir ;;
970 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
971 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
972 localstatedir=$ac_optarg ;;
974 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
976 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
980 # Obsolete; use --without-fp.
983 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
984 | --no-cr | --no-c | -n)
987 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
988 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
991 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
992 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
993 | --oldin | --oldi | --old | --ol | --o)
994 ac_prev=oldincludedir ;;
995 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
996 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
997 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
998 oldincludedir=$ac_optarg ;;
1000 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1002 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1003 prefix=$ac_optarg ;;
1005 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1006 | --program-pre | --program-pr | --program-p)
1007 ac_prev=program_prefix ;;
1008 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1009 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1010 program_prefix=$ac_optarg ;;
1012 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1013 | --program-suf | --program-su | --program-s)
1014 ac_prev=program_suffix ;;
1015 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1016 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1017 program_suffix=$ac_optarg ;;
1019 -program-transform-name | --program-transform-name \
1020 | --program-transform-nam | --program-transform-na \
1021 | --program-transform-n | --program-transform- \
1022 | --program-transform | --program-transfor \
1023 | --program-transfo | --program-transf \
1024 | --program-trans | --program-tran \
1025 | --progr-tra | --program-tr | --program-t)
1026 ac_prev=program_transform_name ;;
1027 -program-transform-name=* | --program-transform-name=* \
1028 | --program-transform-nam=* | --program-transform-na=* \
1029 | --program-transform-n=* | --program-transform-=* \
1030 | --program-transform=* | --program-transfor=* \
1031 | --program-transfo=* | --program-transf=* \
1032 | --program-trans=* | --program-tran=* \
1033 | --progr-tra=* | --program-tr=* | --program-t=*)
1034 program_transform_name=$ac_optarg ;;
1036 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1038 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1039 pdfdir=$ac_optarg ;;
1041 -psdir | --psdir | --psdi | --psd | --ps)
1043 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1047 | -silent | --silent | --silen | --sile | --sil)
1050 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1052 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1054 sbindir=$ac_optarg ;;
1056 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1057 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1058 | --sharedst | --shareds | --shared | --share | --shar \
1060 ac_prev=sharedstatedir ;;
1061 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1062 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1063 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1065 sharedstatedir=$ac_optarg ;;
1067 -site | --site | --sit)
1069 -site=* | --site=* | --sit=*)
1072 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1074 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1075 srcdir=$ac_optarg ;;
1077 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1078 | --syscon | --sysco | --sysc | --sys | --sy)
1079 ac_prev=sysconfdir ;;
1080 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1081 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1082 sysconfdir=$ac_optarg ;;
1084 -target | --target | --targe | --targ | --tar | --ta | --t)
1085 ac_prev=target_alias ;;
1086 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1087 target_alias=$ac_optarg ;;
1089 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1092 -version | --version | --versio | --versi | --vers | -V)
1093 ac_init_version=: ;;
1096 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099 as_fn_error "invalid package name: $ac_useropt"
1100 ac_useropt_orig=$ac_useropt
1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1107 ac_unrecognized_sep=', ';;
1109 eval with_$ac_useropt=\$ac_optarg ;;
1111 -without-* | --without-*)
1112 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115 as_fn_error "invalid package name: $ac_useropt"
1116 ac_useropt_orig=$ac_useropt
1117 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118 case $ac_user_opts in
1122 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1123 ac_unrecognized_sep=', ';;
1125 eval with_$ac_useropt=no ;;
1128 # Obsolete; use --with-x.
1131 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1132 | --x-incl | --x-inc | --x-in | --x-i)
1133 ac_prev=x_includes ;;
1134 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1135 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1136 x_includes=$ac_optarg ;;
1138 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1139 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1140 ac_prev=x_libraries ;;
1141 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1142 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1143 x_libraries=$ac_optarg ;;
1145 -*) as_fn_error "unrecognized option: \`$ac_option'
1146 Try \`$0 --help' for more information."
1150 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1151 # Reject names that are not valid shell variable names.
1152 case $ac_envvar in #(
1153 '' | [0-9]* | *[!_$as_cr_alnum]* )
1154 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1156 eval $ac_envvar=\$ac_optarg
1157 export $ac_envvar ;;
1160 # FIXME: should be removed in autoconf 3.0.
1161 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1162 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1163 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1164 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1170 if test -n "$ac_prev"; then
1171 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1172 as_fn_error "missing argument to $ac_option"
1175 if test -n "$ac_unrecognized_opts"; then
1176 case $enable_option_checking in
1178 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1179 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1183 # Check all directory arguments for consistency.
1184 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1185 datadir sysconfdir sharedstatedir localstatedir includedir \
1186 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1187 libdir localedir mandir
1189 eval ac_val=\$$ac_var
1190 # Remove trailing slashes.
1193 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1194 eval $ac_var=\$ac_val;;
1196 # Be sure to have absolute directory names.
1198 [\\/$]* | ?:[\\/]* ) continue;;
1199 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1201 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1204 # There might be people who depend on the old broken behavior: `$host'
1205 # used to hold the argument of --host etc.
1206 # FIXME: To remove some day.
1209 target=$target_alias
1211 # FIXME: To remove some day.
1212 if test "x$host_alias" != x; then
1213 if test "x$build_alias" = x; then
1214 cross_compiling=maybe
1215 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1216 If a cross compiler is detected then cross compile mode will be used." >&2
1217 elif test "x$build_alias" != "x$host_alias"; then
1223 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1225 test "$silent" = yes && exec 6>/dev/null
1228 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1229 ac_ls_di=`ls -di .` &&
1230 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1231 as_fn_error "working directory cannot be determined"
1232 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1233 as_fn_error "pwd does not report name of working directory"
1236 # Find the source files, if location was not specified.
1237 if test -z "$srcdir"; then
1238 ac_srcdir_defaulted=yes
1239 # Try the directory containing this script, then the parent directory.
1240 ac_confdir=`$as_dirname -- "$as_myself" ||
1241 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1242 X"$as_myself" : 'X\(//\)[^/]' \| \
1243 X"$as_myself" : 'X\(//\)$' \| \
1244 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1245 $as_echo X"$as_myself" |
1246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1264 if test ! -r "$srcdir/$ac_unique_file"; then
1268 ac_srcdir_defaulted=no
1270 if test ! -r "$srcdir/$ac_unique_file"; then
1271 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1272 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1274 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1276 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1278 # When building in place, set srcdir=.
1279 if test "$ac_abs_confdir" = "$ac_pwd"; then
1282 # Remove unnecessary trailing slashes from srcdir.
1283 # Double slashes in file names in object file debugging info
1284 # mess up M-x gdb in Emacs.
1286 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1288 for ac_var in $ac_precious_vars; do
1289 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1290 eval ac_env_${ac_var}_value=\$${ac_var}
1291 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1296 # Report the --help message.
1298 if test "$ac_init_help" = "long"; then
1299 # Omit some internal or obsolete options to make the list less imposing.
1300 # This message is too long to be a string in the A/UX 3.1 sh.
1302 \`configure' configures this package to adapt to many kinds of systems.
1304 Usage: $0 [OPTION]... [VAR=VALUE]...
1306 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1307 VAR=VALUE. See below for descriptions of some of the useful variables.
1309 Defaults for the options are specified in brackets.
1312 -h, --help display this help and exit
1313 --help=short display options specific to this package
1314 --help=recursive display the short help of all the included packages
1315 -V, --version display version information and exit
1316 -q, --quiet, --silent do not print \`checking...' messages
1317 --cache-file=FILE cache test results in FILE [disabled]
1318 -C, --config-cache alias for \`--cache-file=config.cache'
1319 -n, --no-create do not create output files
1320 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1322 Installation directories:
1323 --prefix=PREFIX install architecture-independent files in PREFIX
1324 [$ac_default_prefix]
1325 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1328 By default, \`make install' will install all the files in
1329 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1330 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1331 for instance \`--prefix=\$HOME'.
1333 For better control, use the options below.
1335 Fine tuning of the installation directories:
1336 --bindir=DIR user executables [EPREFIX/bin]
1337 --sbindir=DIR system admin executables [EPREFIX/sbin]
1338 --libexecdir=DIR program executables [EPREFIX/libexec]
1339 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1340 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1341 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1342 --libdir=DIR object code libraries [EPREFIX/lib]
1343 --includedir=DIR C header files [PREFIX/include]
1344 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1345 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1346 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1347 --infodir=DIR info documentation [DATAROOTDIR/info]
1348 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1349 --mandir=DIR man documentation [DATAROOTDIR/man]
1350 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1351 --htmldir=DIR html documentation [DOCDIR]
1352 --dvidir=DIR dvi documentation [DOCDIR]
1353 --pdfdir=DIR pdf documentation [DOCDIR]
1354 --psdir=DIR ps documentation [DOCDIR]
1360 --program-prefix=PREFIX prepend PREFIX to installed program names
1361 --program-suffix=SUFFIX append SUFFIX to installed program names
1362 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1365 --x-includes=DIR X include files are in DIR
1366 --x-libraries=DIR X library files are in DIR
1369 --build=BUILD configure for building on BUILD [guessed]
1370 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1374 if test -n "$ac_init_help"; then
1379 --disable-option-checking ignore unrecognized --enable/--with options
1380 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1381 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1382 --enable-maintainer-mode enable make rules and dependencies not useful
1383 (and sometimes confusing) to the casual installer
1384 --disable-dependency-tracking speeds up one-time build
1385 --enable-dependency-tracking do not reject slow dependency extractors
1386 --enable-debug Turn on debugging
1387 --enable-verbose-warnings
1388 Enable verbose compiler warnings.
1390 Enable static executables.
1391 --enable-dmalloc Use dmalloc memory allocation
1392 --enable-efence Use ElectricFence memory allocation
1395 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1396 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1397 --with-lam=PATH Set path of LAM MPI
1398 --with-ctn=PATH Set path of CTN DICOM library
1399 --with-mcpu=CPU Set name of CPU for gcc -mcpu
1400 --with-cgibin-dir=PATH Set path of CGI binaries directory
1401 --with-cgibin-url=PATH Set URL path of CGI binaries
1402 --with-webdata-dir=PATH Set path of webdata
1403 --with-webdata-url=PATH Set URL path of webdata
1404 --with-html-dir=PATH Set directory of html files
1405 --with-x use the X Window System
1407 Some influential environment variables:
1408 CC C compiler command
1409 CFLAGS C compiler flags
1410 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1411 nonstandard directory <lib dir>
1412 LIBS libraries to pass to the linker, e.g. -l<library>
1413 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1414 you have headers in a nonstandard directory <include dir>
1415 CXX C++ compiler command
1416 CXXFLAGS C++ compiler flags
1418 XMKMF Path to xmkmf, Makefile generator for X Window System
1420 Use these variables to override the choices made by `configure' or to help
1421 it to find libraries and programs with nonstandard names/locations.
1423 Report bugs to the package provider.
1428 if test "$ac_init_help" = "recursive"; then
1429 # If there are subdirs, report their specific --help.
1430 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1431 test -d "$ac_dir" ||
1432 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1437 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1439 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1440 # A ".." for each directory in $ac_dir_suffix.
1441 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1442 case $ac_top_builddir_sub in
1443 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1444 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1447 ac_abs_top_builddir=$ac_pwd
1448 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1449 # for backward compatibility:
1450 ac_top_builddir=$ac_top_build_prefix
1453 .) # We are building in place.
1455 ac_top_srcdir=$ac_top_builddir_sub
1456 ac_abs_top_srcdir=$ac_pwd ;;
1457 [\\/]* | ?:[\\/]* ) # Absolute name.
1458 ac_srcdir=$srcdir$ac_dir_suffix;
1459 ac_top_srcdir=$srcdir
1460 ac_abs_top_srcdir=$srcdir ;;
1462 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1463 ac_top_srcdir=$ac_top_build_prefix$srcdir
1464 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1466 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1468 cd "$ac_dir" || { ac_status=$?; continue; }
1469 # Check for guested configure.
1470 if test -f "$ac_srcdir/configure.gnu"; then
1472 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1473 elif test -f "$ac_srcdir/configure"; then
1475 $SHELL "$ac_srcdir/configure" --help=recursive
1477 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1479 cd "$ac_pwd" || { ac_status=$?; break; }
1483 test -n "$ac_init_help" && exit $ac_status
1484 if $ac_init_version; then
1487 generated by GNU Autoconf 2.64
1489 Copyright (C) 2009 Free Software Foundation, Inc.
1490 This configure script is free software; the Free Software Foundation
1491 gives unlimited permission to copy, distribute and modify it.
1496 ## ------------------------ ##
1497 ## Autoconf initialization. ##
1498 ## ------------------------ ##
1500 # ac_fn_c_try_compile LINENO
1501 # --------------------------
1502 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1503 ac_fn_c_try_compile ()
1505 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1506 rm -f conftest.$ac_objext
1507 if { { ac_try="$ac_compile"
1509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1510 *) ac_try_echo=$ac_try;;
1512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1513 $as_echo "$ac_try_echo"; } >&5
1514 (eval "$ac_compile") 2>conftest.err
1516 if test -s conftest.err; then
1517 grep -v '^ *+' conftest.err >conftest.er1
1518 cat conftest.er1 >&5
1519 mv -f conftest.er1 conftest.err
1521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1522 test $ac_status = 0; } && {
1523 test -z "$ac_c_werror_flag" ||
1524 test ! -s conftest.err
1525 } && test -s conftest.$ac_objext; then :
1528 $as_echo "$as_me: failed program was:" >&5
1529 sed 's/^/| /' conftest.$ac_ext >&5
1533 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1536 } # ac_fn_c_try_compile
1538 # ac_fn_cxx_try_compile LINENO
1539 # ----------------------------
1540 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1541 ac_fn_cxx_try_compile ()
1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1544 rm -f conftest.$ac_objext
1545 if { { ac_try="$ac_compile"
1547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1548 *) ac_try_echo=$ac_try;;
1550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1551 $as_echo "$ac_try_echo"; } >&5
1552 (eval "$ac_compile") 2>conftest.err
1554 if test -s conftest.err; then
1555 grep -v '^ *+' conftest.err >conftest.er1
1556 cat conftest.er1 >&5
1557 mv -f conftest.er1 conftest.err
1559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1560 test $ac_status = 0; } && {
1561 test -z "$ac_cxx_werror_flag" ||
1562 test ! -s conftest.err
1563 } && test -s conftest.$ac_objext; then :
1566 $as_echo "$as_me: failed program was:" >&5
1567 sed 's/^/| /' conftest.$ac_ext >&5
1571 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1574 } # ac_fn_cxx_try_compile
1576 # ac_fn_c_try_run LINENO
1577 # ----------------------
1578 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1579 # that executables *can* be run.
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 if { { ac_try="$ac_link"
1585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586 *) ac_try_echo=$ac_try;;
1588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589 $as_echo "$ac_try_echo"; } >&5
1590 (eval "$ac_link") 2>&5
1592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1594 { { case "(($ac_try" in
1595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1596 *) ac_try_echo=$ac_try;;
1598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1599 $as_echo "$ac_try_echo"; } >&5
1600 (eval "$ac_try") 2>&5
1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603 test $ac_status = 0; }; }; then :
1606 $as_echo "$as_me: program exited with status $ac_status" >&5
1607 $as_echo "$as_me: failed program was:" >&5
1608 sed 's/^/| /' conftest.$ac_ext >&5
1610 ac_retval=$ac_status
1612 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1613 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1618 # ac_fn_c_try_cpp LINENO
1619 # ----------------------
1620 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 if { { ac_try="$ac_cpp conftest.$ac_ext"
1626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627 *) ac_try_echo=$ac_try;;
1629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630 $as_echo "$ac_try_echo"; } >&5
1631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1633 if test -s conftest.err; then
1634 grep -v '^ *+' conftest.err >conftest.er1
1635 cat conftest.er1 >&5
1636 mv -f conftest.er1 conftest.err
1638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639 test $ac_status = 0; } >/dev/null && {
1640 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1641 test ! -s conftest.err
1645 $as_echo "$as_me: failed program was:" >&5
1646 sed 's/^/| /' conftest.$ac_ext >&5
1650 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1655 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1656 # -------------------------------------------------------
1657 # Tests whether HEADER exists and can be compiled using the include files in
1658 # INCLUDES, setting the cache variable VAR accordingly.
1659 ac_fn_c_check_header_compile ()
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1663 $as_echo_n "checking for $2... " >&6; }
1664 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1665 $as_echo_n "(cached) " >&6
1667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668 /* end confdefs.h. */
1672 if ac_fn_c_try_compile "$LINENO"; then :
1677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681 $as_echo "$ac_res" >&6; }
1682 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1684 } # ac_fn_c_check_header_compile
1686 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1687 # --------------------------------------------
1688 # Tries to find the compile-time value of EXPR in a program that includes
1689 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1691 ac_fn_c_compute_int ()
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 if test "$cross_compiling" = yes; then
1695 # Depending upon the size, compute the lo and hi bounds.
1696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697 /* end confdefs.h. */
1702 static int test_array [1 - 2 * !(($2) >= 0)];
1709 if ac_fn_c_try_compile "$LINENO"; then :
1712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1713 /* end confdefs.h. */
1718 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1725 if ac_fn_c_try_compile "$LINENO"; then :
1726 ac_hi=$ac_mid; break
1728 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1729 if test $ac_lo -le $ac_mid; then
1733 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739 /* end confdefs.h. */
1744 static int test_array [1 - 2 * !(($2) < 0)];
1751 if ac_fn_c_try_compile "$LINENO"; then :
1754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1755 /* end confdefs.h. */
1760 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1767 if ac_fn_c_try_compile "$LINENO"; then :
1768 ac_lo=$ac_mid; break
1770 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1771 if test $ac_mid -le $ac_hi; then
1775 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1785 # Binary search between lo and hi bounds.
1786 while test "x$ac_lo" != "x$ac_hi"; do
1787 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789 /* end confdefs.h. */
1794 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1801 if ac_fn_c_try_compile "$LINENO"; then :
1804 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1809 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814 /* end confdefs.h. */
1816 static long int longval () { return $2; }
1817 static unsigned long int ulongval () { return $2; }
1824 FILE *f = fopen ("conftest.val", "w");
1829 long int i = longval ();
1832 fprintf (f, "%ld", i);
1836 unsigned long int i = ulongval ();
1839 fprintf (f, "%lu", i);
1841 /* Do not output a trailing newline, as this causes \r\n confusion
1842 on some platforms. */
1843 return ferror (f) || fclose (f) != 0;
1849 if ac_fn_c_try_run "$LINENO"; then :
1850 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1855 conftest.$ac_objext conftest.beam conftest.$ac_ext
1859 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1862 } # ac_fn_c_compute_int
1864 # ac_fn_c_try_link LINENO
1865 # -----------------------
1866 # Try to link conftest.$ac_ext, and return whether this succeeded.
1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870 rm -f conftest.$ac_objext conftest$ac_exeext
1871 if { { ac_try="$ac_link"
1873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874 *) ac_try_echo=$ac_try;;
1876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877 $as_echo "$ac_try_echo"; } >&5
1878 (eval "$ac_link") 2>conftest.err
1880 if test -s conftest.err; then
1881 grep -v '^ *+' conftest.err >conftest.er1
1882 cat conftest.er1 >&5
1883 mv -f conftest.er1 conftest.err
1885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1886 test $ac_status = 0; } && {
1887 test -z "$ac_c_werror_flag" ||
1888 test ! -s conftest.err
1889 } && test -s conftest$ac_exeext && {
1890 test "$cross_compiling" = yes ||
1891 $as_test_x conftest$ac_exeext
1895 $as_echo "$as_me: failed program was:" >&5
1896 sed 's/^/| /' conftest.$ac_ext >&5
1900 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1901 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1902 # interfere with the next link command; also delete a directory that is
1903 # left behind by Apple's compiler. We do this before executing the actions.
1904 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1905 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1908 } # ac_fn_c_try_link
1910 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1911 # -------------------------------------------------------
1912 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1913 # the include files in INCLUDES and setting the cache variable VAR
1915 ac_fn_c_check_header_mongrel ()
1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1920 $as_echo_n "checking for $2... " >&6; }
1921 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1922 $as_echo_n "(cached) " >&6
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1926 $as_echo "$ac_res" >&6; }
1928 # Is the header compilable?
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1930 $as_echo_n "checking $2 usability... " >&6; }
1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932 /* end confdefs.h. */
1936 if ac_fn_c_try_compile "$LINENO"; then :
1937 ac_header_compiler=yes
1939 ac_header_compiler=no
1941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1943 $as_echo "$ac_header_compiler" >&6; }
1945 # Is the header present?
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1947 $as_echo_n "checking $2 presence... " >&6; }
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949 /* end confdefs.h. */
1952 if ac_fn_c_try_cpp "$LINENO"; then :
1953 ac_header_preproc=yes
1955 ac_header_preproc=no
1957 rm -f conftest.err conftest.$ac_ext
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1959 $as_echo "$ac_header_preproc" >&6; }
1961 # So? What about this header?
1962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1965 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1967 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1971 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1973 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1975 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1977 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1979 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1983 $as_echo_n "checking for $2... " >&6; }
1984 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1985 $as_echo_n "(cached) " >&6
1987 eval "$3=\$ac_header_compiler"
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1991 $as_echo "$ac_res" >&6; }
1993 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1995 } # ac_fn_c_check_header_mongrel
1997 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1998 # -------------------------------------------
1999 # Tests whether TYPE exists after having included INCLUDES, setting cache
2000 # variable VAR accordingly.
2001 ac_fn_c_check_type ()
2003 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2005 $as_echo_n "checking for $2... " >&6; }
2006 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2007 $as_echo_n "(cached) " >&6
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2022 if ac_fn_c_try_compile "$LINENO"; then :
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2035 if ac_fn_c_try_compile "$LINENO"; then :
2040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2046 $as_echo "$ac_res" >&6; }
2047 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2049 } # ac_fn_c_check_type
2051 # ac_fn_c_check_func LINENO FUNC VAR
2052 # ----------------------------------
2053 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2054 ac_fn_c_check_func ()
2056 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2058 $as_echo_n "checking for $2... " >&6; }
2059 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2060 $as_echo_n "(cached) " >&6
2062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h. */
2064 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2066 #define $2 innocuous_$2
2068 /* System header to define __stub macros and hopefully few prototypes,
2069 which can conflict with char $2 (); below.
2070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2071 <limits.h> exists even on freestanding compilers. */
2074 # include <limits.h>
2076 # include <assert.h>
2081 /* Override any GCC internal prototype to avoid an error.
2082 Use char because int might match the return type of a GCC
2083 builtin and then its argument prototype would still apply. */
2088 /* The GNU C library defines this for functions which it implements
2089 to always fail with ENOSYS. Some functions are actually named
2090 something starting with __ and the normal name is an alias. */
2091 #if defined __stub_$2 || defined __stub___$2
2103 if ac_fn_c_try_link "$LINENO"; then :
2108 rm -f core conftest.err conftest.$ac_objext \
2109 conftest$ac_exeext conftest.$ac_ext
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2113 $as_echo "$ac_res" >&6; }
2114 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2116 } # ac_fn_c_check_func
2117 cat >config.log <<_ACEOF
2118 This file contains any messages produced by compilers while
2119 running configure, to aid debugging if configure makes a mistake.
2121 It was created by $as_me, which was
2122 generated by GNU Autoconf 2.64. Invocation command line was
2134 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2135 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2136 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2137 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2138 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2140 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2141 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2143 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2144 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2145 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2146 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2147 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2148 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2149 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2157 test -z "$as_dir" && as_dir=.
2158 $as_echo "PATH: $as_dir"
2174 # Keep a trace of the command line.
2175 # Strip out --no-create and --no-recursion so they do not pile up.
2176 # Strip out --silent because we don't want to record it for future runs.
2177 # Also quote any args containing shell meta-characters.
2178 # Make two passes to allow for proper duplicate-argument suppression.
2182 ac_must_keep_next=false
2188 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2189 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2190 | -silent | --silent | --silen | --sile | --sil)
2193 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2196 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2198 as_fn_append ac_configure_args1 " '$ac_arg'"
2199 if test $ac_must_keep_next = true; then
2200 ac_must_keep_next=false # Got value, back to normal.
2203 *=* | --config-cache | -C | -disable-* | --disable-* \
2204 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2205 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2206 | -with-* | --with-* | -without-* | --without-* | --x)
2207 case "$ac_configure_args0 " in
2208 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2211 -* ) ac_must_keep_next=true ;;
2214 as_fn_append ac_configure_args " '$ac_arg'"
2219 { ac_configure_args0=; unset ac_configure_args0;}
2220 { ac_configure_args1=; unset ac_configure_args1;}
2222 # When interrupted or exit'd, cleanup temporary files, and complete
2223 # config.log. We remove comments because anyway the quotes in there
2224 # would cause problems or look ugly.
2225 # WARNING: Use '\'' to represent an apostrophe within the trap.
2226 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2227 trap 'exit_status=$?
2228 # Save into config.log some information that might help in debugging.
2233 ## ---------------- ##
2234 ## Cache variables. ##
2235 ## ---------------- ##
2238 # The following way of writing the cache mishandles newlines in values,
2240 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2241 eval ac_val=\$$ac_var
2245 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2246 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2249 _ | IFS | as_nl) ;; #(
2250 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2251 *) { eval $ac_var=; unset $ac_var;} ;;
2256 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2257 *${as_nl}ac_space=\ *)
2259 "s/'\''/'\''\\\\'\'''\''/g;
2260 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2263 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2271 ## ----------------- ##
2272 ## Output variables. ##
2273 ## ----------------- ##
2276 for ac_var in $ac_subst_vars
2278 eval ac_val=\$$ac_var
2280 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2282 $as_echo "$ac_var='\''$ac_val'\''"
2286 if test -n "$ac_subst_files"; then
2288 ## ------------------- ##
2289 ## File substitutions. ##
2290 ## ------------------- ##
2293 for ac_var in $ac_subst_files
2295 eval ac_val=\$$ac_var
2297 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2299 $as_echo "$ac_var='\''$ac_val'\''"
2304 if test -s confdefs.h; then
2314 test "$ac_signal" != 0 &&
2315 $as_echo "$as_me: caught signal $ac_signal"
2316 $as_echo "$as_me: exit $exit_status"
2318 rm -f core *.core core.conftest.* &&
2319 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2322 for ac_signal in 1 2 13 15; do
2323 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2327 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2328 rm -f -r conftest* confdefs.h
2330 $as_echo "/* confdefs.h */" > confdefs.h
2332 # Predefined preprocessor variables.
2334 cat >>confdefs.h <<_ACEOF
2335 #define PACKAGE_NAME "$PACKAGE_NAME"
2338 cat >>confdefs.h <<_ACEOF
2339 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2342 cat >>confdefs.h <<_ACEOF
2343 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2346 cat >>confdefs.h <<_ACEOF
2347 #define PACKAGE_STRING "$PACKAGE_STRING"
2350 cat >>confdefs.h <<_ACEOF
2351 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2354 cat >>confdefs.h <<_ACEOF
2355 #define PACKAGE_URL "$PACKAGE_URL"
2359 # Let the site file select an alternate cache file if it wants to.
2360 # Prefer an explicitly selected file to automatically selected ones.
2363 if test -n "$CONFIG_SITE"; then
2364 ac_site_file1=$CONFIG_SITE
2365 elif test "x$prefix" != xNONE; then
2366 ac_site_file1=$prefix/share/config.site
2367 ac_site_file2=$prefix/etc/config.site
2369 ac_site_file1=$ac_default_prefix/share/config.site
2370 ac_site_file2=$ac_default_prefix/etc/config.site
2372 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2374 test "x$ac_site_file" = xNONE && continue
2375 if test -r "$ac_site_file"; then
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2377 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2378 sed 's/^/| /' "$ac_site_file" >&5
2383 if test -r "$cache_file"; then
2384 # Some versions of bash will fail to source /dev/null (special
2385 # files actually), so we avoid doing that.
2386 if test -f "$cache_file"; then
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2388 $as_echo "$as_me: loading cache $cache_file" >&6;}
2390 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2391 *) . "./$cache_file";;
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2396 $as_echo "$as_me: creating cache $cache_file" >&6;}
2400 # Check that the precious variables saved in the cache have kept the same
2402 ac_cache_corrupted=false
2403 for ac_var in $ac_precious_vars; do
2404 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2405 eval ac_new_set=\$ac_env_${ac_var}_set
2406 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2407 eval ac_new_val=\$ac_env_${ac_var}_value
2408 case $ac_old_set,$ac_new_set in
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2411 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2412 ac_cache_corrupted=: ;;
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2415 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2416 ac_cache_corrupted=: ;;
2419 if test "x$ac_old_val" != "x$ac_new_val"; then
2420 # differences in whitespace do not lead to failure.
2421 ac_old_val_w=`echo x $ac_old_val`
2422 ac_new_val_w=`echo x $ac_new_val`
2423 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2425 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2426 ac_cache_corrupted=:
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2429 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2430 eval $ac_var=\$ac_old_val
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2433 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2435 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2438 # Pass precious variables to config.status.
2439 if test "$ac_new_set" = set; then
2441 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2442 *) ac_arg=$ac_var=$ac_new_val ;;
2444 case " $ac_configure_args " in
2445 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2446 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2450 if $ac_cache_corrupted; then
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2454 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2455 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2457 ## -------------------- ##
2458 ## Main body of script. ##
2459 ## -------------------- ##
2462 ac_cpp='$CPP $CPPFLAGS'
2463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2470 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2471 # Check whether --enable-maintainer-mode was given.
2472 if test "${enable_maintainer_mode+set}" = set; then :
2473 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2475 USE_MAINTAINER_MODE=no
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2479 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2480 if test $USE_MAINTAINER_MODE = yes; then
2481 MAINTAINER_MODE_TRUE=
2482 MAINTAINER_MODE_FALSE='#'
2484 MAINTAINER_MODE_TRUE='#'
2485 MAINTAINER_MODE_FALSE=
2488 MAINT=$MAINTAINER_MODE_TRUE
2491 am__api_version='1.10'
2494 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2495 for ac_t in install-sh install.sh shtool; do
2496 if test -f "$ac_dir/$ac_t"; then
2498 ac_install_sh="$ac_aux_dir/$ac_t -c"
2503 if test -z "$ac_aux_dir"; then
2504 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2507 # These three variables are undocumented and unsupported,
2508 # and are intended to be withdrawn in a future Autoconf release.
2509 # They can cause serious problems if a builder's source tree is in a directory
2510 # whose full name contains unusual characters.
2511 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2512 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2513 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2516 # Find a good install program. We prefer a C program (faster),
2517 # so one script is as good as another. But avoid the broken or
2518 # incompatible versions:
2519 # SysV /etc/install, /usr/sbin/install
2520 # SunOS /usr/etc/install
2521 # IRIX /sbin/install
2523 # AmigaOS /C/install, which installs bootblocks on floppy discs
2524 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2525 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2526 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2527 # OS/2's system install, which has a completely different semantic
2528 # ./install, which can be erroneously created by make from ./install.sh.
2529 # Reject install programs that cannot install multiple files.
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2531 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2532 if test -z "$INSTALL"; then
2533 if test "${ac_cv_path_install+set}" = set; then :
2534 $as_echo_n "(cached) " >&6
2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 test -z "$as_dir" && as_dir=.
2541 # Account for people who put trailing slashes in PATH elements.
2542 case $as_dir/ in #((
2543 ./ | .// | /[cC]/* | \
2544 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2545 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2548 # OSF1 and SCO ODT 3.0 have their own names for install.
2549 # Don't use installbsd from OSF since it installs stuff as root
2551 for ac_prog in ginstall scoinst install; do
2552 for ac_exec_ext in '' $ac_executable_extensions; do
2553 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2554 if test $ac_prog = install &&
2555 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2556 # AIX install. It has an incompatible calling convention.
2558 elif test $ac_prog = install &&
2559 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2560 # program-specific install script used by HP pwplus--don't use.
2563 rm -rf conftest.one conftest.two conftest.dir
2564 echo one > conftest.one
2565 echo two > conftest.two
2567 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2568 test -s conftest.one && test -s conftest.two &&
2569 test -s conftest.dir/conftest.one &&
2570 test -s conftest.dir/conftest.two
2572 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2585 rm -rf conftest.one conftest.two conftest.dir
2588 if test "${ac_cv_path_install+set}" = set; then
2589 INSTALL=$ac_cv_path_install
2591 # As a last resort, use the slow shell script. Don't cache a
2592 # value for INSTALL within a source directory, because that will
2593 # break other packages using the cache if that directory is
2594 # removed, or if the value is a relative name.
2595 INSTALL=$ac_install_sh
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2599 $as_echo "$INSTALL" >&6; }
2601 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2602 # It thinks the first close brace ends the variable substitution.
2603 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2605 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2607 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2610 $as_echo_n "checking whether build environment is sane... " >&6; }
2613 echo timestamp > conftest.file
2614 # Do `set' in a subshell so we don't clobber the current shell's
2615 # arguments. Must try -L first in case configure is actually a
2616 # symlink; some systems play weird games with the mod time of symlinks
2617 # (eg FreeBSD returns the mod time of the symlink's containing
2620 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2621 if test "$*" = "X"; then
2623 set X `ls -t $srcdir/configure conftest.file`
2626 if test "$*" != "X $srcdir/configure conftest.file" \
2627 && test "$*" != "X conftest.file $srcdir/configure"; then
2629 # If neither matched, then we have a broken ls. This can happen
2630 # if, for instance, CONFIG_SHELL is bash and it inherits a
2631 # broken ls alias from the environment. This has actually
2632 # happened. Such a system could not be considered "sane".
2633 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2634 alias in your environment" "$LINENO" 5
2637 test "$2" = conftest.file
2643 as_fn_error "newly created file is older than distributed files!
2644 Check your system clock" "$LINENO" 5
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2647 $as_echo "yes" >&6; }
2648 test "$program_prefix" != NONE &&
2649 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2650 # Use a double $ so make ignores it.
2651 test "$program_suffix" != NONE &&
2652 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2653 # Double any \ or $.
2654 # By default was `s,x,x', remove it if useless.
2655 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2656 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2658 # expand $ac_aux_dir to an absolute path
2659 am_aux_dir=`cd $ac_aux_dir && pwd`
2661 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2662 # Use eval to expand $SHELL
2663 if eval "$MISSING --run true"; then
2664 am_missing_run="$MISSING --run "
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2668 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2672 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2673 if test -z "$MKDIR_P"; then
2674 if test "${ac_cv_path_mkdir+set}" = set; then :
2675 $as_echo_n "(cached) " >&6
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2681 test -z "$as_dir" && as_dir=.
2682 for ac_prog in mkdir gmkdir; do
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2685 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2686 'mkdir (GNU coreutils) '* | \
2687 'mkdir (coreutils) '* | \
2688 'mkdir (fileutils) '4.1*)
2689 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2699 if test "${ac_cv_path_mkdir+set}" = set; then
2700 MKDIR_P="$ac_cv_path_mkdir -p"
2702 # As a last resort, use the slow shell script. Don't cache a
2703 # value for MKDIR_P within a source directory, because that will
2704 # break other packages using the cache if that directory is
2705 # removed, or if the value is a relative name.
2706 test -d ./--version && rmdir ./--version
2707 MKDIR_P="$ac_install_sh -d"
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2711 $as_echo "$MKDIR_P" >&6; }
2715 [\\/$]* | ?:[\\/]*) ;;
2716 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2719 for ac_prog in gawk mawk nawk awk
2721 # Extract the first word of "$ac_prog", so it can be a program name with args.
2722 set dummy $ac_prog; ac_word=$2
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2724 $as_echo_n "checking for $ac_word... " >&6; }
2725 if test "${ac_cv_prog_AWK+set}" = set; then :
2726 $as_echo_n "(cached) " >&6
2728 if test -n "$AWK"; then
2729 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735 test -z "$as_dir" && as_dir=.
2736 for ac_exec_ext in '' $ac_executable_extensions; do
2737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2738 ac_cv_prog_AWK="$ac_prog"
2739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2749 if test -n "$AWK"; then
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2751 $as_echo "$AWK" >&6; }
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2754 $as_echo "no" >&6; }
2758 test -n "$AWK" && break
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2762 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2764 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2765 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2766 $as_echo_n "(cached) " >&6
2768 cat >conftest.make <<\_ACEOF
2771 @echo '@@@%%%=$(MAKE)=@@@%%%'
2773 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2774 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2776 eval ac_cv_prog_make_${ac_make}_set=yes;;
2778 eval ac_cv_prog_make_${ac_make}_set=no;;
2782 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2784 $as_echo "yes" >&6; }
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2788 $as_echo "no" >&6; }
2789 SET_MAKE="MAKE=${MAKE-make}"
2792 rm -rf .tst 2>/dev/null
2793 mkdir .tst 2>/dev/null
2794 if test -d .tst; then
2799 rmdir .tst 2>/dev/null
2801 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2802 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2803 # is not polluted with repeated "-I."
2804 am__isrc=' -I$(srcdir)'
2805 # test to see if srcdir already configured
2806 if test -f $srcdir/config.status; then
2807 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2811 # test whether we have cygpath
2812 if test -z "$CYGPATH_W"; then
2813 if (cygpath --version) >/dev/null 2>/dev/null; then
2814 CYGPATH_W='cygpath -w'
2821 # Define the identity of the package.
2826 cat >>confdefs.h <<_ACEOF
2827 #define PACKAGE "$PACKAGE"
2831 cat >>confdefs.h <<_ACEOF
2832 #define VERSION "$VERSION"
2835 # Some tools Automake needs.
2837 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2840 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2843 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2846 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2849 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2851 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2853 # Installed binaries are usually stripped using `strip' when the user
2854 # run `make install-strip'. However `strip' might not be the right
2855 # tool to use in cross-compilation environments, therefore Automake
2856 # will honor the `STRIP' environment variable to overrule this program.
2857 if test "$cross_compiling" != no; then
2858 if test -n "$ac_tool_prefix"; then
2859 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2860 set dummy ${ac_tool_prefix}strip; ac_word=$2
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2862 $as_echo_n "checking for $ac_word... " >&6; }
2863 if test "${ac_cv_prog_STRIP+set}" = set; then :
2864 $as_echo_n "(cached) " >&6
2866 if test -n "$STRIP"; then
2867 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 test -z "$as_dir" && as_dir=.
2874 for ac_exec_ext in '' $ac_executable_extensions; do
2875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2876 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2886 STRIP=$ac_cv_prog_STRIP
2887 if test -n "$STRIP"; then
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2889 $as_echo "$STRIP" >&6; }
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2892 $as_echo "no" >&6; }
2897 if test -z "$ac_cv_prog_STRIP"; then
2899 # Extract the first word of "strip", so it can be a program name with args.
2900 set dummy strip; ac_word=$2
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2902 $as_echo_n "checking for $ac_word... " >&6; }
2903 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2904 $as_echo_n "(cached) " >&6
2906 if test -n "$ac_ct_STRIP"; then
2907 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913 test -z "$as_dir" && as_dir=.
2914 for ac_exec_ext in '' $ac_executable_extensions; do
2915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2916 ac_cv_prog_ac_ct_STRIP="strip"
2917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2926 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2927 if test -n "$ac_ct_STRIP"; then
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2929 $as_echo "$ac_ct_STRIP" >&6; }
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2932 $as_echo "no" >&6; }
2935 if test "x$ac_ct_STRIP" = x; then
2938 case $cross_compiling:$ac_tool_warned in
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2942 ac_tool_warned=yes ;;
2947 STRIP="$ac_cv_prog_STRIP"
2951 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2953 # We need awk for the "check" target. The system "awk" is bad on
2955 # Always define AMTAR for backward compatibility.
2957 AMTAR=${AMTAR-"${am_missing_run}tar"}
2959 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2965 ac_config_headers="$ac_config_headers config.h"
2968 for ac_prog in gawk mawk nawk awk
2970 # Extract the first word of "$ac_prog", so it can be a program name with args.
2971 set dummy $ac_prog; ac_word=$2
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2973 $as_echo_n "checking for $ac_word... " >&6; }
2974 if test "${ac_cv_prog_AWK+set}" = set; then :
2975 $as_echo_n "(cached) " >&6
2977 if test -n "$AWK"; then
2978 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 test -z "$as_dir" && as_dir=.
2985 for ac_exec_ext in '' $ac_executable_extensions; do
2986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2987 ac_cv_prog_AWK="$ac_prog"
2988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2998 if test -n "$AWK"; then
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3000 $as_echo "$AWK" >&6; }
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3003 $as_echo "no" >&6; }
3007 test -n "$AWK" && break
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3012 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3014 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3015 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3016 $as_echo_n "(cached) " >&6
3018 cat >conftest.make <<\_ACEOF
3021 @echo '@@@%%%=$(MAKE)=@@@%%%'
3023 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3024 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3026 eval ac_cv_prog_make_${ac_make}_set=yes;;
3028 eval ac_cv_prog_make_${ac_make}_set=no;;
3032 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3034 $as_echo "yes" >&6; }
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 $as_echo "no" >&6; }
3039 SET_MAKE="MAKE=${MAKE-make}"
3042 if test -n "$ac_tool_prefix"; then
3043 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3044 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3046 $as_echo_n "checking for $ac_word... " >&6; }
3047 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3048 $as_echo_n "(cached) " >&6
3050 if test -n "$RANLIB"; then
3051 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 test -z "$as_dir" && as_dir=.
3058 for ac_exec_ext in '' $ac_executable_extensions; do
3059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3060 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3070 RANLIB=$ac_cv_prog_RANLIB
3071 if test -n "$RANLIB"; then
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3073 $as_echo "$RANLIB" >&6; }
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3076 $as_echo "no" >&6; }
3081 if test -z "$ac_cv_prog_RANLIB"; then
3082 ac_ct_RANLIB=$RANLIB
3083 # Extract the first word of "ranlib", so it can be a program name with args.
3084 set dummy ranlib; ac_word=$2
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3086 $as_echo_n "checking for $ac_word... " >&6; }
3087 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3088 $as_echo_n "(cached) " >&6
3090 if test -n "$ac_ct_RANLIB"; then
3091 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097 test -z "$as_dir" && as_dir=.
3098 for ac_exec_ext in '' $ac_executable_extensions; do
3099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3100 ac_cv_prog_ac_ct_RANLIB="ranlib"
3101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3110 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3111 if test -n "$ac_ct_RANLIB"; then
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3113 $as_echo "$ac_ct_RANLIB" >&6; }
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116 $as_echo "no" >&6; }
3119 if test "x$ac_ct_RANLIB" = x; then
3122 case $cross_compiling:$ac_tool_warned in
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3126 ac_tool_warned=yes ;;
3128 RANLIB=$ac_ct_RANLIB
3131 RANLIB="$ac_cv_prog_RANLIB"
3136 ac_cpp='$CPP $CPPFLAGS'
3137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3140 if test -n "$ac_tool_prefix"; then
3141 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3142 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3144 $as_echo_n "checking for $ac_word... " >&6; }
3145 if test "${ac_cv_prog_CC+set}" = set; then :
3146 $as_echo_n "(cached) " >&6
3148 if test -n "$CC"; then
3149 ac_cv_prog_CC="$CC" # Let the user override the test.
3151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155 test -z "$as_dir" && as_dir=.
3156 for ac_exec_ext in '' $ac_executable_extensions; do
3157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3158 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3169 if test -n "$CC"; then
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3171 $as_echo "$CC" >&6; }
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174 $as_echo "no" >&6; }
3179 if test -z "$ac_cv_prog_CC"; then
3181 # Extract the first word of "gcc", so it can be a program name with args.
3182 set dummy gcc; ac_word=$2
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184 $as_echo_n "checking for $ac_word... " >&6; }
3185 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3186 $as_echo_n "(cached) " >&6
3188 if test -n "$ac_ct_CC"; then
3189 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195 test -z "$as_dir" && as_dir=.
3196 for ac_exec_ext in '' $ac_executable_extensions; do
3197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3198 ac_cv_prog_ac_ct_CC="gcc"
3199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3208 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3209 if test -n "$ac_ct_CC"; then
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3211 $as_echo "$ac_ct_CC" >&6; }
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214 $as_echo "no" >&6; }
3217 if test "x$ac_ct_CC" = x; then
3220 case $cross_compiling:$ac_tool_warned in
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3224 ac_tool_warned=yes ;;
3232 if test -z "$CC"; then
3233 if test -n "$ac_tool_prefix"; then
3234 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3235 set dummy ${ac_tool_prefix}cc; ac_word=$2
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3237 $as_echo_n "checking for $ac_word... " >&6; }
3238 if test "${ac_cv_prog_CC+set}" = set; then :
3239 $as_echo_n "(cached) " >&6
3241 if test -n "$CC"; then
3242 ac_cv_prog_CC="$CC" # Let the user override the test.
3244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 test -z "$as_dir" && as_dir=.
3249 for ac_exec_ext in '' $ac_executable_extensions; do
3250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3251 ac_cv_prog_CC="${ac_tool_prefix}cc"
3252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3262 if test -n "$CC"; then
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3264 $as_echo "$CC" >&6; }
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3267 $as_echo "no" >&6; }
3273 if test -z "$CC"; then
3274 # Extract the first word of "cc", so it can be a program name with args.
3275 set dummy cc; ac_word=$2
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3277 $as_echo_n "checking for $ac_word... " >&6; }
3278 if test "${ac_cv_prog_CC+set}" = set; then :
3279 $as_echo_n "(cached) " >&6
3281 if test -n "$CC"; then
3282 ac_cv_prog_CC="$CC" # Let the user override the test.
3285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289 test -z "$as_dir" && as_dir=.
3290 for ac_exec_ext in '' $ac_executable_extensions; do
3291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3292 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3293 ac_prog_rejected=yes
3297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3304 if test $ac_prog_rejected = yes; then
3305 # We found a bogon in the path, so make sure we never use it.
3306 set dummy $ac_cv_prog_CC
3308 if test $# != 0; then
3309 # We chose a different compiler from the bogus one.
3310 # However, it has the same basename, so the bogon will be chosen
3311 # first if we set CC to just the basename; use the full file name.
3313 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3319 if test -n "$CC"; then
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3321 $as_echo "$CC" >&6; }
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3324 $as_echo "no" >&6; }
3329 if test -z "$CC"; then
3330 if test -n "$ac_tool_prefix"; then
3331 for ac_prog in cl.exe
3333 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3334 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3336 $as_echo_n "checking for $ac_word... " >&6; }
3337 if test "${ac_cv_prog_CC+set}" = set; then :
3338 $as_echo_n "(cached) " >&6
3340 if test -n "$CC"; then
3341 ac_cv_prog_CC="$CC" # Let the user override the test.
3343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347 test -z "$as_dir" && as_dir=.
3348 for ac_exec_ext in '' $ac_executable_extensions; do
3349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3350 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3361 if test -n "$CC"; then
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3363 $as_echo "$CC" >&6; }
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366 $as_echo "no" >&6; }
3370 test -n "$CC" && break
3373 if test -z "$CC"; then
3375 for ac_prog in cl.exe
3377 # Extract the first word of "$ac_prog", so it can be a program name with args.
3378 set dummy $ac_prog; ac_word=$2
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3380 $as_echo_n "checking for $ac_word... " >&6; }
3381 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3382 $as_echo_n "(cached) " >&6
3384 if test -n "$ac_ct_CC"; then
3385 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391 test -z "$as_dir" && as_dir=.
3392 for ac_exec_ext in '' $ac_executable_extensions; do
3393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3394 ac_cv_prog_ac_ct_CC="$ac_prog"
3395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3404 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3405 if test -n "$ac_ct_CC"; then
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3407 $as_echo "$ac_ct_CC" >&6; }
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3410 $as_echo "no" >&6; }
3414 test -n "$ac_ct_CC" && break
3417 if test "x$ac_ct_CC" = x; then
3420 case $cross_compiling:$ac_tool_warned in
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3424 ac_tool_warned=yes ;;
3433 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3435 as_fn_error "no acceptable C compiler found in \$PATH
3436 See \`config.log' for more details." "$LINENO" 5; }
3438 # Provide some information about the compiler.
3439 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3442 for ac_option in --version -v -V -qversion; do
3443 { { ac_try="$ac_compiler $ac_option >&5"
3445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446 *) ac_try_echo=$ac_try;;
3448 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3449 $as_echo "$ac_try_echo"; } >&5
3450 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3452 if test -s conftest.err; then
3454 ... rest of stderr output deleted ...
3455 10q' conftest.err >conftest.er1
3456 cat conftest.er1 >&5
3457 rm -f conftest.er1 conftest.err
3459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3460 test $ac_status = 0; }
3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h. */
3469 FILE *f = fopen ("conftest.out", "w");
3470 return ferror (f) || fclose (f) != 0;
3476 ac_clean_files_save=$ac_clean_files
3477 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3478 # Try to create an executable without -o first, disregard a.out.
3479 # It will help us diagnose broken compilers, and finding out an intuition
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3482 $as_echo_n "checking for C compiler default output file name... " >&6; }
3483 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3485 # The possible output files:
3486 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3489 for ac_file in $ac_files
3492 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3493 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3498 if { { ac_try="$ac_link_default"
3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
3503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3504 $as_echo "$ac_try_echo"; } >&5
3505 (eval "$ac_link_default") 2>&5
3507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3508 test $ac_status = 0; }; then :
3509 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3510 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3511 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3512 # so that the user can short-circuit this test for compilers unknown to
3514 for ac_file in $ac_files ''
3516 test -f "$ac_file" || continue
3518 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3521 # We found the default executable, but exeext='' is most
3525 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3527 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3529 # We set ac_cv_exeext here because the later test for it is not
3530 # safe: cross compilers may not add the suffix if given an `-o'
3531 # argument, so we may need to know it at that point already.
3532 # Even if this section looks crufty: it has the advantage of
3539 test "$ac_cv_exeext" = no && ac_cv_exeext=
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3545 $as_echo "$ac_file" >&6; }
3546 if test -z "$ac_file"; then :
3547 $as_echo "$as_me: failed program was:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3550 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3552 { as_fn_set_status 77
3553 as_fn_error "C compiler cannot create executables
3554 See \`config.log' for more details." "$LINENO" 5; }; }
3556 ac_exeext=$ac_cv_exeext
3558 # Check that the compiler produces executables we can run. If not, either
3559 # the compiler is broken, or we cross compile.
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3561 $as_echo_n "checking whether the C compiler works... " >&6; }
3562 # If not cross compiling, check that we can run a simple program.
3563 if test "$cross_compiling" != yes; then
3564 if { ac_try='./$ac_file'
3565 { { case "(($ac_try" in
3566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567 *) ac_try_echo=$ac_try;;
3569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3570 $as_echo "$ac_try_echo"; } >&5
3571 (eval "$ac_try") 2>&5
3573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3574 test $ac_status = 0; }; }; then
3577 if test "$cross_compiling" = maybe; then
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_error "cannot run C compiled programs.
3583 If you meant to cross compile, use \`--host'.
3584 See \`config.log' for more details." "$LINENO" 5; }
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3589 $as_echo "yes" >&6; }
3591 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3592 ac_clean_files=$ac_clean_files_save
3593 # Check that the compiler produces executables we can run. If not, either
3594 # the compiler is broken, or we cross compile.
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3596 $as_echo_n "checking whether we are cross compiling... " >&6; }
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3598 $as_echo "$cross_compiling" >&6; }
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3601 $as_echo_n "checking for suffix of executables... " >&6; }
3602 if { { ac_try="$ac_link"
3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3608 $as_echo "$ac_try_echo"; } >&5
3609 (eval "$ac_link") 2>&5
3611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3612 test $ac_status = 0; }; then :
3613 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3614 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3615 # work properly (i.e., refer to `conftest.exe'), while it won't with
3617 for ac_file in conftest.exe conftest conftest.*; do
3618 test -f "$ac_file" || continue
3620 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3621 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3627 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3629 as_fn_error "cannot compute suffix of executables: cannot compile and link
3630 See \`config.log' for more details." "$LINENO" 5; }
3632 rm -f conftest$ac_cv_exeext
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3634 $as_echo "$ac_cv_exeext" >&6; }
3636 rm -f conftest.$ac_ext
3637 EXEEXT=$ac_cv_exeext
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3640 $as_echo_n "checking for suffix of object files... " >&6; }
3641 if test "${ac_cv_objext+set}" = set; then :
3642 $as_echo_n "(cached) " >&6
3644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3645 /* end confdefs.h. */
3655 rm -f conftest.o conftest.obj
3656 if { { ac_try="$ac_compile"
3658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659 *) ac_try_echo=$ac_try;;
3661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3662 $as_echo "$ac_try_echo"; } >&5
3663 (eval "$ac_compile") 2>&5
3665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3666 test $ac_status = 0; }; then :
3667 for ac_file in conftest.o conftest.obj conftest.*; do
3668 test -f "$ac_file" || continue;
3670 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3671 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3676 $as_echo "$as_me: failed program was:" >&5
3677 sed 's/^/| /' conftest.$ac_ext >&5
3679 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3681 as_fn_error "cannot compute suffix of object files: cannot compile
3682 See \`config.log' for more details." "$LINENO" 5; }
3684 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3687 $as_echo "$ac_cv_objext" >&6; }
3688 OBJEXT=$ac_cv_objext
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3691 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3692 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3693 $as_echo_n "(cached) " >&6
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h. */
3709 if ac_fn_c_try_compile "$LINENO"; then :
3714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3715 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3719 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3720 if test $ac_compiler_gnu = yes; then
3725 ac_test_CFLAGS=${CFLAGS+set}
3726 ac_save_CFLAGS=$CFLAGS
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3728 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3729 if test "${ac_cv_prog_cc_g+set}" = set; then :
3730 $as_echo_n "(cached) " >&6
3732 ac_save_c_werror_flag=$ac_c_werror_flag
3733 ac_c_werror_flag=yes
3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h. */
3747 if ac_fn_c_try_compile "$LINENO"; then :
3751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3752 /* end confdefs.h. */
3762 if ac_fn_c_try_compile "$LINENO"; then :
3765 ac_c_werror_flag=$ac_save_c_werror_flag
3767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768 /* end confdefs.h. */
3778 if ac_fn_c_try_compile "$LINENO"; then :
3781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3786 ac_c_werror_flag=$ac_save_c_werror_flag
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3789 $as_echo "$ac_cv_prog_cc_g" >&6; }
3790 if test "$ac_test_CFLAGS" = set; then
3791 CFLAGS=$ac_save_CFLAGS
3792 elif test $ac_cv_prog_cc_g = yes; then
3793 if test "$GCC" = yes; then
3799 if test "$GCC" = yes; then
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3806 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3807 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3808 $as_echo_n "(cached) " >&6
3810 ac_cv_prog_cc_c89=no
3812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813 /* end confdefs.h. */
3816 #include <sys/types.h>
3817 #include <sys/stat.h>
3818 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3819 struct buf { int x; };
3820 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3821 static char *e (p, i)
3827 static char *f (char * (*g) (char **, int), char **p, ...)
3832 s = g (p, va_arg (v,int));
3837 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3838 function prototypes and stuff, but not '\xHH' hex character constants.
3839 These don't provoke an error unfortunately, instead are silently treated
3840 as 'x'. The following induces an error, until -std is added to get
3841 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3842 array size at least. It's necessary to write '\x00'==0 to get something
3843 that's true only with -std. */
3844 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3846 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3847 inside strings and character constants. */
3849 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3851 int test (int i, double x);
3852 struct s1 {int (*f) (int a);};
3853 struct s2 {int (*f) (double a);};
3854 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3860 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3865 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3866 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3868 CC="$ac_save_CC $ac_arg"
3869 if ac_fn_c_try_compile "$LINENO"; then :
3870 ac_cv_prog_cc_c89=$ac_arg
3872 rm -f core conftest.err conftest.$ac_objext
3873 test "x$ac_cv_prog_cc_c89" != "xno" && break
3875 rm -f conftest.$ac_ext
3880 case "x$ac_cv_prog_cc_c89" in
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3883 $as_echo "none needed" >&6; } ;;
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3886 $as_echo "unsupported" >&6; } ;;
3888 CC="$CC $ac_cv_prog_cc_c89"
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3890 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3892 if test "x$ac_cv_prog_cc_c89" != xno; then :
3897 ac_cpp='$CPP $CPPFLAGS'
3898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3901 DEPDIR="${am__leading_dot}deps"
3903 ac_config_commands="$ac_config_commands depfiles"
3906 am_make=${MAKE-make}
3907 cat > confinc << 'END'
3912 # If we don't find an include directive, just comment out the code.
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3914 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3918 # First try GNU make style include.
3919 echo "include confinc" > confmf
3920 # We grep out `Entering directory' and `Leaving directory'
3921 # messages which can occur if `w' ends up in MAKEFLAGS.
3922 # In particular we don't look at `^make:' because GNU make might
3923 # be invoked under some other name (usually "gmake"), in which
3924 # case it prints its new name instead of `make'.
3925 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3930 # Now try BSD make style include.
3931 if test "$am__include" = "#"; then
3932 echo '.include "confinc"' > confmf
3933 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3934 am__include=.include
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3942 $as_echo "$_am_result" >&6; }
3943 rm -f confinc confmf
3945 # Check whether --enable-dependency-tracking was given.
3946 if test "${enable_dependency_tracking+set}" = set; then :
3947 enableval=$enable_dependency_tracking;
3950 if test "x$enable_dependency_tracking" != xno; then
3951 am_depcomp="$ac_aux_dir/depcomp"
3954 if test "x$enable_dependency_tracking" != xno; then
3964 depcc="$CC" am_compiler_list=
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3967 $as_echo_n "checking dependency style of $depcc... " >&6; }
3968 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3969 $as_echo_n "(cached) " >&6
3971 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3972 # We make a subdir and do the tests there. Otherwise we can end up
3973 # making bogus files that we don't know about and never remove. For
3974 # instance it was reported that on HP-UX the gcc test will end up
3975 # making a dummy file named `D' -- because `-MD' means `put the output
3978 # Copy depcomp to subdir because otherwise we won't find it if we're
3979 # using a relative directory.
3980 cp "$am_depcomp" conftest.dir
3982 # We will build objects and dependencies in a subdirectory because
3983 # it helps to detect inapplicable dependency modes. For instance
3984 # both Tru64's cc and ICC support -MD to output dependencies as a
3985 # side effect of compilation, but ICC will put the dependencies in
3986 # the current directory while Tru64 will put them in the object
3990 am_cv_CC_dependencies_compiler_type=none
3991 if test "$am_compiler_list" = ""; then
3992 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3994 for depmode in $am_compiler_list; do
3995 # Setup a source with many dependencies, because some compilers
3996 # like to wrap large dependency lists on column 80 (with \), and
3997 # we should not choose a depcomp mode which is confused by this.
3999 # We need to recreate these files for each test, as the compiler may
4000 # overwrite some of them when testing with obscure command lines.
4001 # This happens at least with the AIX C compiler.
4003 for i in 1 2 3 4 5 6; do
4004 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4005 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4006 # Solaris 8's {/usr,}/bin/sh.
4007 touch sub/conftst$i.h
4009 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4013 # after this tag, mechanisms are not by side-effect, so they'll
4014 # only be used when explicitly requested
4015 if test "x$enable_dependency_tracking" = xyes; then
4023 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4024 # mode. It turns out that the SunPro C++ compiler does not properly
4025 # handle `-M -o', and we need to detect this.
4026 if depmode=$depmode \
4027 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4028 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4029 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4030 >/dev/null 2>conftest.err &&
4031 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4032 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4033 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4034 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4035 # icc doesn't choke on unknown options, it will just issue warnings
4036 # or remarks (even with -Werror). So we grep stderr for any message
4037 # that says an option was ignored or not supported.
4038 # When given -MP, icc 7.0 and 7.1 complain thusly:
4039 # icc: Command line warning: ignoring option '-M'; no argument required
4040 # The diagnosis changed in icc 8.0:
4041 # icc: Command line remark: option '-MP' not supported
4042 if (grep 'ignoring option' conftest.err ||
4043 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4044 am_cv_CC_dependencies_compiler_type=$depmode
4053 am_cv_CC_dependencies_compiler_type=none
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4058 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4059 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4062 test "x$enable_dependency_tracking" != xno \
4063 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4065 am__fastdepCC_FALSE='#'
4067 am__fastdepCC_TRUE='#'
4068 am__fastdepCC_FALSE=
4073 ac_cpp='$CXXCPP $CPPFLAGS'
4074 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4075 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4076 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4077 if test -z "$CXX"; then
4078 if test -n "$CCC"; then
4081 if test -n "$ac_tool_prefix"; then
4082 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4084 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4085 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4087 $as_echo_n "checking for $ac_word... " >&6; }
4088 if test "${ac_cv_prog_CXX+set}" = set; then :
4089 $as_echo_n "(cached) " >&6
4091 if test -n "$CXX"; then
4092 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098 test -z "$as_dir" && as_dir=.
4099 for ac_exec_ext in '' $ac_executable_extensions; do
4100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4101 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4112 if test -n "$CXX"; then
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4114 $as_echo "$CXX" >&6; }
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4117 $as_echo "no" >&6; }
4121 test -n "$CXX" && break
4124 if test -z "$CXX"; then
4126 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4128 # Extract the first word of "$ac_prog", so it can be a program name with args.
4129 set dummy $ac_prog; ac_word=$2
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4131 $as_echo_n "checking for $ac_word... " >&6; }
4132 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4133 $as_echo_n "(cached) " >&6
4135 if test -n "$ac_ct_CXX"; then
4136 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142 test -z "$as_dir" && as_dir=.
4143 for ac_exec_ext in '' $ac_executable_extensions; do
4144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4145 ac_cv_prog_ac_ct_CXX="$ac_prog"
4146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4155 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4156 if test -n "$ac_ct_CXX"; then
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4158 $as_echo "$ac_ct_CXX" >&6; }
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4161 $as_echo "no" >&6; }
4165 test -n "$ac_ct_CXX" && break
4168 if test "x$ac_ct_CXX" = x; then
4171 case $cross_compiling:$ac_tool_warned in
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4174 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4175 ac_tool_warned=yes ;;
4183 # Provide some information about the compiler.
4184 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4187 for ac_option in --version -v -V -qversion; do
4188 { { ac_try="$ac_compiler $ac_option >&5"
4190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4191 *) ac_try_echo=$ac_try;;
4193 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4194 $as_echo "$ac_try_echo"; } >&5
4195 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4197 if test -s conftest.err; then
4199 ... rest of stderr output deleted ...
4200 10q' conftest.err >conftest.er1
4201 cat conftest.er1 >&5
4202 rm -f conftest.er1 conftest.err
4204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4205 test $ac_status = 0; }
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4209 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4210 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4211 $as_echo_n "(cached) " >&6
4213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214 /* end confdefs.h. */
4227 if ac_fn_cxx_try_compile "$LINENO"; then :
4232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4233 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4237 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4238 if test $ac_compiler_gnu = yes; then
4243 ac_test_CXXFLAGS=${CXXFLAGS+set}
4244 ac_save_CXXFLAGS=$CXXFLAGS
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4246 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4247 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4248 $as_echo_n "(cached) " >&6
4250 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4251 ac_cxx_werror_flag=yes
4254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h. */
4265 if ac_fn_cxx_try_compile "$LINENO"; then :
4266 ac_cv_prog_cxx_g=yes
4269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270 /* end confdefs.h. */
4280 if ac_fn_cxx_try_compile "$LINENO"; then :
4283 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4286 /* end confdefs.h. */
4296 if ac_fn_cxx_try_compile "$LINENO"; then :
4297 ac_cv_prog_cxx_g=yes
4299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4304 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4307 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4308 if test "$ac_test_CXXFLAGS" = set; then
4309 CXXFLAGS=$ac_save_CXXFLAGS
4310 elif test $ac_cv_prog_cxx_g = yes; then
4311 if test "$GXX" = yes; then
4317 if test "$GXX" = yes; then
4324 ac_cpp='$CPP $CPPFLAGS'
4325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4329 depcc="$CXX" am_compiler_list=
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4332 $as_echo_n "checking dependency style of $depcc... " >&6; }
4333 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4334 $as_echo_n "(cached) " >&6
4336 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4337 # We make a subdir and do the tests there. Otherwise we can end up
4338 # making bogus files that we don't know about and never remove. For
4339 # instance it was reported that on HP-UX the gcc test will end up
4340 # making a dummy file named `D' -- because `-MD' means `put the output
4343 # Copy depcomp to subdir because otherwise we won't find it if we're
4344 # using a relative directory.
4345 cp "$am_depcomp" conftest.dir
4347 # We will build objects and dependencies in a subdirectory because
4348 # it helps to detect inapplicable dependency modes. For instance
4349 # both Tru64's cc and ICC support -MD to output dependencies as a
4350 # side effect of compilation, but ICC will put the dependencies in
4351 # the current directory while Tru64 will put them in the object
4355 am_cv_CXX_dependencies_compiler_type=none
4356 if test "$am_compiler_list" = ""; then
4357 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4359 for depmode in $am_compiler_list; do
4360 # Setup a source with many dependencies, because some compilers
4361 # like to wrap large dependency lists on column 80 (with \), and
4362 # we should not choose a depcomp mode which is confused by this.
4364 # We need to recreate these files for each test, as the compiler may
4365 # overwrite some of them when testing with obscure command lines.
4366 # This happens at least with the AIX C compiler.
4368 for i in 1 2 3 4 5 6; do
4369 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4370 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4371 # Solaris 8's {/usr,}/bin/sh.
4372 touch sub/conftst$i.h
4374 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4378 # after this tag, mechanisms are not by side-effect, so they'll
4379 # only be used when explicitly requested
4380 if test "x$enable_dependency_tracking" = xyes; then
4388 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4389 # mode. It turns out that the SunPro C++ compiler does not properly
4390 # handle `-M -o', and we need to detect this.
4391 if depmode=$depmode \
4392 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4393 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4394 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4395 >/dev/null 2>conftest.err &&
4396 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4397 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4398 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4399 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4400 # icc doesn't choke on unknown options, it will just issue warnings
4401 # or remarks (even with -Werror). So we grep stderr for any message
4402 # that says an option was ignored or not supported.
4403 # When given -MP, icc 7.0 and 7.1 complain thusly:
4404 # icc: Command line warning: ignoring option '-M'; no argument required
4405 # The diagnosis changed in icc 8.0:
4406 # icc: Command line remark: option '-MP' not supported
4407 if (grep 'ignoring option' conftest.err ||
4408 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4409 am_cv_CXX_dependencies_compiler_type=$depmode
4418 am_cv_CXX_dependencies_compiler_type=none
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4423 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4424 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4427 test "x$enable_dependency_tracking" != xno \
4428 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4429 am__fastdepCXX_TRUE=
4430 am__fastdepCXX_FALSE='#'
4432 am__fastdepCXX_TRUE='#'
4433 am__fastdepCXX_FALSE=
4439 ac_cpp='$CPP $CPPFLAGS'
4440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4444 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4445 # On Suns, sometimes $CPP names a directory.
4446 if test -n "$CPP" && test -d "$CPP"; then
4449 if test -z "$CPP"; then
4450 if test "${ac_cv_prog_CPP+set}" = set; then :
4451 $as_echo_n "(cached) " >&6
4453 # Double quotes because CPP needs to be expanded
4454 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4457 for ac_c_preproc_warn_flag in '' yes
4459 # Use a header file that comes with gcc, so configuring glibc
4460 # with a fresh cross-compiler works.
4461 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4462 # <limits.h> exists even on freestanding compilers.
4463 # On the NeXT, cc -E runs the code through the compiler's parser,
4464 # not just through cpp. "Syntax error" is here to catch this case.
4465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4466 /* end confdefs.h. */
4468 # include <limits.h>
4470 # include <assert.h>
4474 if ac_fn_c_try_cpp "$LINENO"; then :
4477 # Broken: fails on valid input.
4480 rm -f conftest.err conftest.$ac_ext
4482 # OK, works on sane cases. Now check whether nonexistent headers
4483 # can be detected and how.
4484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4485 /* end confdefs.h. */
4486 #include <ac_nonexistent.h>
4488 if ac_fn_c_try_cpp "$LINENO"; then :
4489 # Broken: success on invalid input.
4492 # Passes both tests.
4496 rm -f conftest.err conftest.$ac_ext
4499 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4500 rm -f conftest.err conftest.$ac_ext
4501 if $ac_preproc_ok; then :
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4514 $as_echo "$CPP" >&6; }
4516 for ac_c_preproc_warn_flag in '' yes
4518 # Use a header file that comes with gcc, so configuring glibc
4519 # with a fresh cross-compiler works.
4520 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4521 # <limits.h> exists even on freestanding compilers.
4522 # On the NeXT, cc -E runs the code through the compiler's parser,
4523 # not just through cpp. "Syntax error" is here to catch this case.
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4527 # include <limits.h>
4529 # include <assert.h>
4533 if ac_fn_c_try_cpp "$LINENO"; then :
4536 # Broken: fails on valid input.
4539 rm -f conftest.err conftest.$ac_ext
4541 # OK, works on sane cases. Now check whether nonexistent headers
4542 # can be detected and how.
4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544 /* end confdefs.h. */
4545 #include <ac_nonexistent.h>
4547 if ac_fn_c_try_cpp "$LINENO"; then :
4548 # Broken: success on invalid input.
4551 # Passes both tests.
4555 rm -f conftest.err conftest.$ac_ext
4558 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4559 rm -f conftest.err conftest.$ac_ext
4560 if $ac_preproc_ok; then :
4563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4565 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4566 See \`config.log' for more details." "$LINENO" 5; }
4570 ac_cpp='$CPP $CPPFLAGS'
4571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4577 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4578 if test "${ac_cv_path_GREP+set}" = set; then :
4579 $as_echo_n "(cached) " >&6
4581 if test -z "$GREP"; then
4582 ac_path_GREP_found=false
4583 # Loop through the user's path and test for each of PROGNAME-LIST
4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4588 test -z "$as_dir" && as_dir=.
4589 for ac_prog in grep ggrep; do
4590 for ac_exec_ext in '' $ac_executable_extensions; do
4591 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4592 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4593 # Check for GNU ac_path_GREP and select it if it is found.
4594 # Check for GNU $ac_path_GREP
4595 case `"$ac_path_GREP" --version 2>&1` in
4597 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4600 $as_echo_n 0123456789 >"conftest.in"
4603 cat "conftest.in" "conftest.in" >"conftest.tmp"
4604 mv "conftest.tmp" "conftest.in"
4605 cp "conftest.in" "conftest.nl"
4606 $as_echo 'GREP' >> "conftest.nl"
4607 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4608 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4609 as_fn_arith $ac_count + 1 && ac_count=$as_val
4610 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4611 # Best one so far, save it but keep looking for a better one
4612 ac_cv_path_GREP="$ac_path_GREP"
4613 ac_path_GREP_max=$ac_count
4615 # 10*(2^10) chars as input seems more than enough
4616 test $ac_count -gt 10 && break
4618 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4621 $ac_path_GREP_found && break 3
4626 if test -z "$ac_cv_path_GREP"; then
4627 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4630 ac_cv_path_GREP=$GREP
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4635 $as_echo "$ac_cv_path_GREP" >&6; }
4636 GREP="$ac_cv_path_GREP"
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4640 $as_echo_n "checking for egrep... " >&6; }
4641 if test "${ac_cv_path_EGREP+set}" = set; then :
4642 $as_echo_n "(cached) " >&6
4644 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4645 then ac_cv_path_EGREP="$GREP -E"
4647 if test -z "$EGREP"; then
4648 ac_path_EGREP_found=false
4649 # Loop through the user's path and test for each of PROGNAME-LIST
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4654 test -z "$as_dir" && as_dir=.
4655 for ac_prog in egrep; do
4656 for ac_exec_ext in '' $ac_executable_extensions; do
4657 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4658 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4659 # Check for GNU ac_path_EGREP and select it if it is found.
4660 # Check for GNU $ac_path_EGREP
4661 case `"$ac_path_EGREP" --version 2>&1` in
4663 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4666 $as_echo_n 0123456789 >"conftest.in"
4669 cat "conftest.in" "conftest.in" >"conftest.tmp"
4670 mv "conftest.tmp" "conftest.in"
4671 cp "conftest.in" "conftest.nl"
4672 $as_echo 'EGREP' >> "conftest.nl"
4673 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4674 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4675 as_fn_arith $ac_count + 1 && ac_count=$as_val
4676 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4677 # Best one so far, save it but keep looking for a better one
4678 ac_cv_path_EGREP="$ac_path_EGREP"
4679 ac_path_EGREP_max=$ac_count
4681 # 10*(2^10) chars as input seems more than enough
4682 test $ac_count -gt 10 && break
4684 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4687 $ac_path_EGREP_found && break 3
4692 if test -z "$ac_cv_path_EGREP"; then
4693 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4696 ac_cv_path_EGREP=$EGREP
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4702 $as_echo "$ac_cv_path_EGREP" >&6; }
4703 EGREP="$ac_cv_path_EGREP"
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4707 $as_echo_n "checking for ANSI C header files... " >&6; }
4708 if test "${ac_cv_header_stdc+set}" = set; then :
4709 $as_echo_n "(cached) " >&6
4711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712 /* end confdefs.h. */
4726 if ac_fn_c_try_compile "$LINENO"; then :
4727 ac_cv_header_stdc=yes
4729 ac_cv_header_stdc=no
4731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4733 if test $ac_cv_header_stdc = yes; then
4734 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4736 /* end confdefs.h. */
4740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4741 $EGREP "memchr" >/dev/null 2>&1; then :
4744 ac_cv_header_stdc=no
4750 if test $ac_cv_header_stdc = yes; then
4751 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4753 /* end confdefs.h. */
4757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4758 $EGREP "free" >/dev/null 2>&1; then :
4761 ac_cv_header_stdc=no
4767 if test $ac_cv_header_stdc = yes; then
4768 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4769 if test "$cross_compiling" = yes; then :
4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773 /* end confdefs.h. */
4776 #if ((' ' & 0x0FF) == 0x020)
4777 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4778 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4780 # define ISLOWER(c) \
4781 (('a' <= (c) && (c) <= 'i') \
4782 || ('j' <= (c) && (c) <= 'r') \
4783 || ('s' <= (c) && (c) <= 'z'))
4784 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4787 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4792 for (i = 0; i < 256; i++)
4793 if (XOR (islower (i), ISLOWER (i))
4794 || toupper (i) != TOUPPER (i))
4799 if ac_fn_c_try_run "$LINENO"; then :
4802 ac_cv_header_stdc=no
4804 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4805 conftest.$ac_objext conftest.beam conftest.$ac_ext
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4811 $as_echo "$ac_cv_header_stdc" >&6; }
4812 if test $ac_cv_header_stdc = yes; then
4814 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4818 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4819 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4820 inttypes.h stdint.h unistd.h
4822 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4823 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4825 eval as_val=\$$as_ac_Header
4826 if test "x$as_val" = x""yes; then :
4827 cat >>confdefs.h <<_ACEOF
4828 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4837 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4838 if test "${ac_cv_c_bigendian+set}" = set; then :
4839 $as_echo_n "(cached) " >&6
4841 ac_cv_c_bigendian=unknown
4842 # See if we're dealing with a universal compiler.
4843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844 /* end confdefs.h. */
4845 #ifndef __APPLE_CC__
4846 not a universal capable compiler
4851 if ac_fn_c_try_compile "$LINENO"; then :
4853 # Check for potential -arch flags. It is not universal unless
4854 # there are at least two -arch flags with different values.
4857 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4858 if test -n "$ac_prev"; then
4860 i?86 | x86_64 | ppc | ppc64)
4861 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4864 ac_cv_c_bigendian=universal
4870 elif test "x$ac_word" = "x-arch"; then
4875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4876 if test $ac_cv_c_bigendian = unknown; then
4877 # See if sys/param.h defines the BYTE_ORDER macro.
4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h. */
4880 #include <sys/types.h>
4881 #include <sys/param.h>
4886 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4887 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4896 if ac_fn_c_try_compile "$LINENO"; then :
4897 # It does; now see whether it defined to BIG_ENDIAN or not.
4898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4899 /* end confdefs.h. */
4900 #include <sys/types.h>
4901 #include <sys/param.h>
4906 #if BYTE_ORDER != BIG_ENDIAN
4914 if ac_fn_c_try_compile "$LINENO"; then :
4915 ac_cv_c_bigendian=yes
4917 ac_cv_c_bigendian=no
4919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4923 if test $ac_cv_c_bigendian = unknown; then
4924 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4926 /* end confdefs.h. */
4932 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4940 if ac_fn_c_try_compile "$LINENO"; then :
4941 # It does; now see whether it defined to _BIG_ENDIAN or not.
4942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943 /* end confdefs.h. */
4957 if ac_fn_c_try_compile "$LINENO"; then :
4958 ac_cv_c_bigendian=yes
4960 ac_cv_c_bigendian=no
4962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4966 if test $ac_cv_c_bigendian = unknown; then
4967 # Compile a test program.
4968 if test "$cross_compiling" = yes; then :
4969 # Try to guess by grepping values from an object file.
4970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4971 /* end confdefs.h. */
4972 short int ascii_mm[] =
4973 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4974 short int ascii_ii[] =
4975 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4976 int use_ascii (int i) {
4977 return ascii_mm[i] + ascii_ii[i];
4979 short int ebcdic_ii[] =
4980 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4981 short int ebcdic_mm[] =
4982 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4983 int use_ebcdic (int i) {
4984 return ebcdic_mm[i] + ebcdic_ii[i];
4991 return use_ascii (foo) == use_ebcdic (foo);
4996 if ac_fn_c_try_compile "$LINENO"; then :
4997 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4998 ac_cv_c_bigendian=yes
5000 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5001 if test "$ac_cv_c_bigendian" = unknown; then
5002 ac_cv_c_bigendian=no
5004 # finding both strings is unlikely to happen, but who knows?
5005 ac_cv_c_bigendian=unknown
5009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5012 /* end confdefs.h. */
5013 $ac_includes_default
5018 /* Are we little or big endian? From Harbison&Steele. */
5022 char c[sizeof (long int)];
5025 return u.c[sizeof (long int) - 1] == 1;
5031 if ac_fn_c_try_run "$LINENO"; then :
5032 ac_cv_c_bigendian=no
5034 ac_cv_c_bigendian=yes
5036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5037 conftest.$ac_objext conftest.beam conftest.$ac_ext
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5043 $as_echo "$ac_cv_c_bigendian" >&6; }
5044 case $ac_cv_c_bigendian in #(
5046 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5052 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5056 as_fn_error "unknown endianness
5057 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5061 # Extract the first word of "wx-config", so it can be a program name with args.
5062 set dummy wx-config; ac_word=$2
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5064 $as_echo_n "checking for $ac_word... " >&6; }
5065 if test "${ac_cv_path_wxconfig+set}" = set; then :
5066 $as_echo_n "(cached) " >&6
5070 ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
5073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077 test -z "$as_dir" && as_dir=.
5078 for ac_exec_ext in '' $ac_executable_extensions; do
5079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5080 ac_cv_path_wxconfig="$as_dir/$ac_word$ac_exec_ext"
5081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5091 wxconfig=$ac_cv_path_wxconfig
5092 if test -n "$wxconfig"; then
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wxconfig" >&5
5094 $as_echo "$wxconfig" >&6; }
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5097 $as_echo "no" >&6; }
5102 # Make sure we can run config.sub.
5103 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5104 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5107 $as_echo_n "checking build system type... " >&6; }
5108 if test "${ac_cv_build+set}" = set; then :
5109 $as_echo_n "(cached) " >&6
5111 ac_build_alias=$build_alias
5112 test "x$ac_build_alias" = x &&
5113 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5114 test "x$ac_build_alias" = x &&
5115 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
5116 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5117 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5121 $as_echo "$ac_cv_build" >&6; }
5122 case $ac_cv_build in
5124 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
5127 ac_save_IFS=$IFS; IFS='-'
5133 # Remember, the first character of IFS is used to create $*,
5134 # except with old shells:
5137 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5141 $as_echo_n "checking host system type... " >&6; }
5142 if test "${ac_cv_host+set}" = set; then :
5143 $as_echo_n "(cached) " >&6
5145 if test "x$host_alias" = x; then
5146 ac_cv_host=$ac_cv_build
5148 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5149 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5154 $as_echo "$ac_cv_host" >&6; }
5157 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
5160 ac_save_IFS=$IFS; IFS='-'
5166 # Remember, the first character of IFS is used to create $*,
5167 # except with old shells:
5170 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5174 $as_echo_n "checking for inline... " >&6; }
5175 if test "${ac_cv_c_inline+set}" = set; then :
5176 $as_echo_n "(cached) " >&6
5179 for ac_kw in inline __inline__ __inline; do
5180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5181 /* end confdefs.h. */
5184 static $ac_kw foo_t static_foo () {return 0; }
5185 $ac_kw foo_t foo () {return 0; }
5189 if ac_fn_c_try_compile "$LINENO"; then :
5190 ac_cv_c_inline=$ac_kw
5192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5193 test "$ac_cv_c_inline" != no && break
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5198 $as_echo "$ac_cv_c_inline" >&6; }
5200 case $ac_cv_c_inline in
5203 case $ac_cv_c_inline in
5205 *) ac_val=$ac_cv_c_inline;;
5207 cat >>confdefs.h <<_ACEOF
5209 #define inline $ac_val
5215 # The cast to long int works around a bug in the HP C Compiler
5216 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5217 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5218 # This bug is HP SR number 8606223364.
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5220 $as_echo_n "checking size of short... " >&6; }
5221 if test "${ac_cv_sizeof_short+set}" = set; then :
5222 $as_echo_n "(cached) " >&6
5224 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5227 if test "$ac_cv_type_short" = yes; then
5228 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5229 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5230 { as_fn_set_status 77
5231 as_fn_error "cannot compute sizeof (short)
5232 See \`config.log' for more details." "$LINENO" 5; }; }
5234 ac_cv_sizeof_short=0
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5240 $as_echo "$ac_cv_sizeof_short" >&6; }
5244 cat >>confdefs.h <<_ACEOF
5245 #define SIZEOF_SHORT $ac_cv_sizeof_short
5249 # The cast to long int works around a bug in the HP C Compiler
5250 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5251 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5252 # This bug is HP SR number 8606223364.
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5254 $as_echo_n "checking size of int... " >&6; }
5255 if test "${ac_cv_sizeof_int+set}" = set; then :
5256 $as_echo_n "(cached) " >&6
5258 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5261 if test "$ac_cv_type_int" = yes; then
5262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5264 { as_fn_set_status 77
5265 as_fn_error "cannot compute sizeof (int)
5266 See \`config.log' for more details." "$LINENO" 5; }; }
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5274 $as_echo "$ac_cv_sizeof_int" >&6; }
5278 cat >>confdefs.h <<_ACEOF
5279 #define SIZEOF_INT $ac_cv_sizeof_int
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 long" >&5
5288 $as_echo_n "checking size of long... " >&6; }
5289 if test "${ac_cv_sizeof_long+set}" = set; then :
5290 $as_echo_n "(cached) " >&6
5292 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5295 if test "$ac_cv_type_long" = 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 (long)
5300 See \`config.log' for more details." "$LINENO" 5; }; }
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5308 $as_echo "$ac_cv_sizeof_long" >&6; }
5312 cat >>confdefs.h <<_ACEOF
5313 #define SIZEOF_LONG $ac_cv_sizeof_long
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 float" >&5
5322 $as_echo_n "checking size of float... " >&6; }
5323 if test "${ac_cv_sizeof_float+set}" = set; then :
5324 $as_echo_n "(cached) " >&6
5326 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
5329 if test "$ac_cv_type_float" = 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 (float)
5334 See \`config.log' for more details." "$LINENO" 5; }; }
5336 ac_cv_sizeof_float=0
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
5342 $as_echo "$ac_cv_sizeof_float" >&6; }
5346 cat >>confdefs.h <<_ACEOF
5347 #define SIZEOF_FLOAT $ac_cv_sizeof_float
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 double" >&5
5356 $as_echo_n "checking size of double... " >&6; }
5357 if test "${ac_cv_sizeof_double+set}" = set; then :
5358 $as_echo_n "(cached) " >&6
5360 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
5363 if test "$ac_cv_type_double" = 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 (double)
5368 See \`config.log' for more details." "$LINENO" 5; }; }
5370 ac_cv_sizeof_double=0
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
5376 $as_echo "$ac_cv_sizeof_double" >&6; }
5380 cat >>confdefs.h <<_ACEOF
5381 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
5388 $as_echo_n "checking for deflate in -lz... " >&6; }
5389 if test "${ac_cv_lib_z_deflate+set}" = set; then :
5390 $as_echo_n "(cached) " >&6
5392 ac_check_lib_save_LIBS=$LIBS
5394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395 /* end confdefs.h. */
5397 /* Override any GCC internal prototype to avoid an error.
5398 Use char because int might match the return type of a GCC
5399 builtin and then its argument prototype would still apply. */
5412 if ac_fn_c_try_link "$LINENO"; then :
5413 ac_cv_lib_z_deflate=yes
5415 ac_cv_lib_z_deflate=no
5417 rm -f core conftest.err conftest.$ac_objext \
5418 conftest$ac_exeext conftest.$ac_ext
5419 LIBS=$ac_check_lib_save_LIBS
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
5422 $as_echo "$ac_cv_lib_z_deflate" >&6; }
5423 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
5426 zlib="false" ; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib missing. Will need zlib for PNG support" >&5
5427 $as_echo "$as_me: WARNING: zlib missing. Will need zlib for PNG support" >&2;}
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
5431 $as_echo_n "checking for sin in -lm... " >&6; }
5432 if test "${ac_cv_lib_m_sin+set}" = set; then :
5433 $as_echo_n "(cached) " >&6
5435 ac_check_lib_save_LIBS=$LIBS
5437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5438 /* end confdefs.h. */
5440 /* Override any GCC internal prototype to avoid an error.
5441 Use char because int might match the return type of a GCC
5442 builtin and then its argument prototype would still apply. */
5455 if ac_fn_c_try_link "$LINENO"; then :
5460 rm -f core conftest.err conftest.$ac_objext \
5461 conftest$ac_exeext conftest.$ac_ext
5462 LIBS=$ac_check_lib_save_LIBS
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
5465 $as_echo "$ac_cv_lib_m_sin" >&6; }
5466 if test "x$ac_cv_lib_m_sin" = x""yes; then :
5467 cat >>confdefs.h <<_ACEOF
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcurses" >&5
5476 $as_echo_n "checking for main in -lcurses... " >&6; }
5477 if test "${ac_cv_lib_curses_main+set}" = set; then :
5478 $as_echo_n "(cached) " >&6
5480 ac_check_lib_save_LIBS=$LIBS
5481 LIBS="-lcurses $LIBS"
5482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5483 /* end confdefs.h. */
5494 if ac_fn_c_try_link "$LINENO"; then :
5495 ac_cv_lib_curses_main=yes
5497 ac_cv_lib_curses_main=no
5499 rm -f core conftest.err conftest.$ac_objext \
5500 conftest$ac_exeext conftest.$ac_ext
5501 LIBS=$ac_check_lib_save_LIBS
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_main" >&5
5504 $as_echo "$ac_cv_lib_curses_main" >&6; }
5505 if test "x$ac_cv_lib_curses_main" = x""yes; then :
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lncurses" >&5
5512 $as_echo_n "checking for main in -lncurses... " >&6; }
5513 if test "${ac_cv_lib_ncurses_main+set}" = set; then :
5514 $as_echo_n "(cached) " >&6
5516 ac_check_lib_save_LIBS=$LIBS
5517 LIBS="-lncurses $LIBS"
5518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5519 /* end confdefs.h. */
5530 if ac_fn_c_try_link "$LINENO"; then :
5531 ac_cv_lib_ncurses_main=yes
5533 ac_cv_lib_ncurses_main=no
5535 rm -f core conftest.err conftest.$ac_objext \
5536 conftest$ac_exeext conftest.$ac_ext
5537 LIBS=$ac_check_lib_save_LIBS
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_main" >&5
5540 $as_echo "$ac_cv_lib_ncurses_main" >&6; }
5541 if test "x$ac_cv_lib_ncurses_main" = x""yes; then :
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lreadline" >&5
5548 $as_echo_n "checking for main in -lreadline... " >&6; }
5549 if test "${ac_cv_lib_readline_main+set}" = set; then :
5550 $as_echo_n "(cached) " >&6
5552 ac_check_lib_save_LIBS=$LIBS
5553 LIBS="-lreadline -lcurses $LIBS"
5554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5555 /* end confdefs.h. */
5566 if ac_fn_c_try_link "$LINENO"; then :
5567 ac_cv_lib_readline_main=yes
5569 ac_cv_lib_readline_main=no
5571 rm -f core conftest.err conftest.$ac_objext \
5572 conftest$ac_exeext conftest.$ac_ext
5573 LIBS=$ac_check_lib_save_LIBS
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_main" >&5
5576 $as_echo "$ac_cv_lib_readline_main" >&6; }
5577 if test "x$ac_cv_lib_readline_main" = x""yes; then :
5580 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgtk-x11-2.0" >&5
5588 $as_echo_n "checking for main in -lgtk-x11-2.0... " >&6; }
5589 if test "${ac_cv_lib_gtk_x11_2_0_main+set}" = set; then :
5590 $as_echo_n "(cached) " >&6
5592 ac_check_lib_save_LIBS=$LIBS
5593 LIBS="-lgtk-x11-2.0 $LIBS"
5594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5595 /* end confdefs.h. */
5606 if ac_fn_c_try_link "$LINENO"; then :
5607 ac_cv_lib_gtk_x11_2_0_main=yes
5609 ac_cv_lib_gtk_x11_2_0_main=no
5611 rm -f core conftest.err conftest.$ac_objext \
5612 conftest$ac_exeext conftest.$ac_ext
5613 LIBS=$ac_check_lib_save_LIBS
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gtk_x11_2_0_main" >&5
5616 $as_echo "$ac_cv_lib_gtk_x11_2_0_main" >&6; }
5617 if test "x$ac_cv_lib_gtk_x11_2_0_main" = x""yes; then :
5621 if test "x$hasx11gtk2" = "x" ; then
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: Does not have X11 GTK2" >&5
5623 $as_echo "$as_me: Does not have X11 GTK2" >&6;}
5627 if test "$hasx11gtk2" = "true" ; then
5630 CFLAGS="${CFLAGS} ${g76GTK_CFLAGS} ${GLIB_CFLAGS}"
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lwx_gtk2u_core-2.8" >&5
5634 $as_echo_n "checking for main in -lwx_gtk2u_core-2.8... " >&6; }
5635 if test "${ac_cv_lib_wx_gtk2u_core_2_8_main+set}" = set; then :
5636 $as_echo_n "(cached) " >&6
5638 ac_check_lib_save_LIBS=$LIBS
5639 LIBS="-lwx_gtk2u_core-2.8 -L/usr/lib64 -L/usr/lib ${GTK_LIBS} ${GLIB_LIBS} $LIBS"
5640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5641 /* end confdefs.h. */
5652 if ac_fn_c_try_link "$LINENO"; then :
5653 ac_cv_lib_wx_gtk2u_core_2_8_main=yes
5655 ac_cv_lib_wx_gtk2u_core_2_8_main=no
5657 rm -f core conftest.err conftest.$ac_objext \
5658 conftest$ac_exeext conftest.$ac_ext
5659 LIBS=$ac_check_lib_save_LIBS
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wx_gtk2u_core_2_8_main" >&5
5662 $as_echo "$ac_cv_lib_wx_gtk2u_core_2_8_main" >&6; }
5663 if test "x$ac_cv_lib_wx_gtk2u_core_2_8_main" = x""yes; then :
5664 wxwin=true; wx_gtk=true;
5665 $as_echo "#define HAVE_WXWINDOWS 1" >>confdefs.h
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lwx_mac_core-2.8" >&5
5670 $as_echo_n "checking for main in -lwx_mac_core-2.8... " >&6; }
5671 if test "${ac_cv_lib_wx_mac_core_2_8_main+set}" = set; then :
5672 $as_echo_n "(cached) " >&6
5674 ac_check_lib_save_LIBS=$LIBS
5675 LIBS="-lwx_mac_core-2.8 $LIBS"
5676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5677 /* end confdefs.h. */
5688 if ac_fn_c_try_link "$LINENO"; then :
5689 ac_cv_lib_wx_mac_core_2_8_main=yes
5691 ac_cv_lib_wx_mac_core_2_8_main=no
5693 rm -f core conftest.err conftest.$ac_objext \
5694 conftest$ac_exeext conftest.$ac_ext
5695 LIBS=$ac_check_lib_save_LIBS
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wx_mac_core_2_8_main" >&5
5698 $as_echo "$ac_cv_lib_wx_mac_core_2_8_main" >&6; }
5699 if test "x$ac_cv_lib_wx_mac_core_2_8_main" = x""yes; then :
5700 wxwin=true; wx_mac=true;
5701 $as_echo "#define HAVE_WXWINDOWS 1" >>confdefs.h
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_malloc in -lfftw3" >&5
5706 $as_echo_n "checking for fftw_malloc in -lfftw3... " >&6; }
5707 if test "${ac_cv_lib_fftw3_fftw_malloc+set}" = set; then :
5708 $as_echo_n "(cached) " >&6
5710 ac_check_lib_save_LIBS=$LIBS
5711 LIBS="-lfftw3 -L/usr/lib64 -L/usr/lib $LIBS"
5712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5713 /* end confdefs.h. */
5715 /* Override any GCC internal prototype to avoid an error.
5716 Use char because int might match the return type of a GCC
5717 builtin and then its argument prototype would still apply. */
5721 char fftw_malloc ();
5725 return fftw_malloc ();
5730 if ac_fn_c_try_link "$LINENO"; then :
5731 ac_cv_lib_fftw3_fftw_malloc=yes
5733 ac_cv_lib_fftw3_fftw_malloc=no
5735 rm -f core conftest.err conftest.$ac_objext \
5736 conftest$ac_exeext conftest.$ac_ext
5737 LIBS=$ac_check_lib_save_LIBS
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_malloc" >&5
5740 $as_echo "$ac_cv_lib_fftw3_fftw_malloc" >&6; }
5741 if test "x$ac_cv_lib_fftw3_fftw_malloc" = x""yes; then :
5743 $as_echo "#define HAVE_FFTW 1" >>confdefs.h
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lGL" >&5
5750 $as_echo_n "checking for main in -lGL... " >&6; }
5751 if test "${ac_cv_lib_GL_main+set}" = set; then :
5752 $as_echo_n "(cached) " >&6
5754 ac_check_lib_save_LIBS=$LIBS
5755 LIBS="-lGL -L/usr/X11R6/lib -L/usr/X11R6/lib64 $LIBS"
5756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5757 /* end confdefs.h. */
5768 if ac_fn_c_try_link "$LINENO"; then :
5769 ac_cv_lib_GL_main=yes
5771 ac_cv_lib_GL_main=no
5773 rm -f core conftest.err conftest.$ac_objext \
5774 conftest$ac_exeext conftest.$ac_ext
5775 LIBS=$ac_check_lib_save_LIBS
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_main" >&5
5778 $as_echo "$ac_cv_lib_GL_main" >&6; }
5779 if test "x$ac_cv_lib_GL_main" = x""yes; then :
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
5786 $as_echo_n "checking for main in -lpthread... " >&6; }
5787 if test "${ac_cv_lib_pthread_main+set}" = set; then :
5788 $as_echo_n "(cached) " >&6
5790 ac_check_lib_save_LIBS=$LIBS
5791 LIBS="-lpthread $LIBS"
5792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5793 /* end confdefs.h. */
5804 if ac_fn_c_try_link "$LINENO"; then :
5805 ac_cv_lib_pthread_main=yes
5807 ac_cv_lib_pthread_main=no
5809 rm -f core conftest.err conftest.$ac_objext \
5810 conftest$ac_exeext conftest.$ac_ext
5811 LIBS=$ac_check_lib_save_LIBS
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
5814 $as_echo "$ac_cv_lib_pthread_main" >&6; }
5815 if test "x$ac_cv_lib_pthread_main" = x""yes; then :
5822 if test "$zlib" = "true" ; then
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpng" >&5
5824 $as_echo_n "checking for main in -lpng... " >&6; }
5825 if test "${ac_cv_lib_png_main+set}" = set; then :
5826 $as_echo_n "(cached) " >&6
5828 ac_check_lib_save_LIBS=$LIBS
5829 LIBS="-lpng -L/opt/local/lib -lz -lm $LIBS"
5830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5831 /* end confdefs.h. */
5842 if ac_fn_c_try_link "$LINENO"; then :
5843 ac_cv_lib_png_main=yes
5845 ac_cv_lib_png_main=no
5847 rm -f core conftest.err conftest.$ac_objext \
5848 conftest$ac_exeext conftest.$ac_ext
5849 LIBS=$ac_check_lib_save_LIBS
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_main" >&5
5852 $as_echo "$ac_cv_lib_png_main" >&6; }
5853 if test "x$ac_cv_lib_png_main" = x""yes; then :
5855 $as_echo "#define HAVE_PNG 1" >>confdefs.h
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5864 $as_echo_n "checking for ANSI C header files... " >&6; }
5865 if test "${ac_cv_header_stdc+set}" = set; then :
5866 $as_echo_n "(cached) " >&6
5868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869 /* end confdefs.h. */
5883 if ac_fn_c_try_compile "$LINENO"; then :
5884 ac_cv_header_stdc=yes
5886 ac_cv_header_stdc=no
5888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5890 if test $ac_cv_header_stdc = yes; then
5891 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5893 /* end confdefs.h. */
5897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5898 $EGREP "memchr" >/dev/null 2>&1; then :
5901 ac_cv_header_stdc=no
5907 if test $ac_cv_header_stdc = yes; then
5908 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5910 /* end confdefs.h. */
5914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5915 $EGREP "free" >/dev/null 2>&1; then :
5918 ac_cv_header_stdc=no
5924 if test $ac_cv_header_stdc = yes; then
5925 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5926 if test "$cross_compiling" = yes; then :
5929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5930 /* end confdefs.h. */
5933 #if ((' ' & 0x0FF) == 0x020)
5934 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5935 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5937 # define ISLOWER(c) \
5938 (('a' <= (c) && (c) <= 'i') \
5939 || ('j' <= (c) && (c) <= 'r') \
5940 || ('s' <= (c) && (c) <= 'z'))
5941 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5944 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5949 for (i = 0; i < 256; i++)
5950 if (XOR (islower (i), ISLOWER (i))
5951 || toupper (i) != TOUPPER (i))
5956 if ac_fn_c_try_run "$LINENO"; then :
5959 ac_cv_header_stdc=no
5961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5962 conftest.$ac_objext conftest.beam conftest.$ac_ext
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5968 $as_echo "$ac_cv_header_stdc" >&6; }
5969 if test $ac_cv_header_stdc = yes; then
5971 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5975 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
5977 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5978 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5979 eval as_val=\$$as_ac_Header
5980 if test "x$as_val" = x""yes; then :
5981 cat >>confdefs.h <<_ACEOF
5982 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5991 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5992 if test "${ac_cv_c_const+set}" = set; then :
5993 $as_echo_n "(cached) " >&6
5995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5996 /* end confdefs.h. */
6001 /* FIXME: Include the comments suggested by Paul. */
6003 /* Ultrix mips cc rejects this. */
6004 typedef int charset[2];
6006 /* SunOS 4.1.1 cc rejects this. */
6007 char const *const *pcpcc;
6009 /* NEC SVR4.0.2 mips cc rejects this. */
6010 struct point {int x, y;};
6011 static struct point const zero = {0,0};
6012 /* AIX XL C 1.02.0.0 rejects this.
6013 It does not let you subtract one const X* pointer from another in
6014 an arm of an if-expression whose if-part is not a constant
6016 const char *g = "string";
6017 pcpcc = &g + (g ? g-g : 0);
6018 /* HPUX 7.0 cc rejects these. */
6020 ppc = (char**) pcpcc;
6021 pcpcc = (char const *const *) ppc;
6022 { /* SCO 3.2v4 cc rejects this. */
6024 char const *s = 0 ? (char *) 0 : (char const *) 0;
6029 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6031 const int *foo = &x[0];
6034 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6035 typedef const int *iptr;
6039 { /* AIX XL C 1.02.0.0 rejects this saying
6040 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6041 struct s { int j; const int *ap[3]; };
6042 struct s *b; b->j = 5;
6044 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6048 return !cs[0] && !zero.x;
6055 if ac_fn_c_try_compile "$LINENO"; then :
6060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6063 $as_echo "$ac_cv_c_const" >&6; }
6064 if test $ac_cv_c_const = no; then
6066 $as_echo "#define const /**/" >>confdefs.h
6070 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6071 if test "x$ac_cv_type_off_t" = x""yes; then :
6075 cat >>confdefs.h <<_ACEOF
6076 #define off_t long int
6081 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6082 if test "x$ac_cv_type_size_t" = x""yes; then :
6086 cat >>confdefs.h <<_ACEOF
6087 #define size_t unsigned int
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6093 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6094 if test "${ac_cv_struct_tm+set}" = set; then :
6095 $as_echo_n "(cached) " >&6
6097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6098 /* end confdefs.h. */
6099 #include <sys/types.h>
6106 int *p = &tm.tm_sec;
6112 if ac_fn_c_try_compile "$LINENO"; then :
6113 ac_cv_struct_tm=time.h
6115 ac_cv_struct_tm=sys/time.h
6117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6120 $as_echo "$ac_cv_struct_tm" >&6; }
6121 if test $ac_cv_struct_tm = sys/time.h; then
6123 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6128 for ac_func in vprintf
6130 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
6131 if test "x$ac_cv_func_vprintf" = x""yes; then :
6132 cat >>confdefs.h <<_ACEOF
6133 #define HAVE_VPRINTF 1
6136 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6137 if test "x$ac_cv_func__doprnt" = x""yes; then :
6139 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
6147 for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf basename setjmp setpriority time gettimeofday getenv
6149 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6150 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6151 eval as_val=\$$as_ac_var
6152 if test "x$as_val" = x""yes; then :
6153 cat >>confdefs.h <<_ACEOF
6154 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6160 ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
6161 if test "x$ac_cv_func_basename" = x""yes; then :
6165 ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
6166 if test "x$ac_cv_func_setjmp" = x""yes; then :
6170 ac_fn_c_check_func "$LINENO" "setpriority" "ac_cv_func_setpriority"
6171 if test "x$ac_cv_func_setpriority" = x""yes; then :
6175 ac_fn_c_check_func "$LINENO" "time" "ac_cv_func_time"
6176 if test "x$ac_cv_func_time" = x""yes; then :
6180 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
6181 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
6185 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
6186 if test "x$ac_cv_func_getopt" = x""yes; then :
6193 if test "${OSTYPE}" = "cygwin" ; then
6196 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
6197 if test "x$ac_cv_func_getopt_long" = x""yes; then :
6205 if test "${getopt_long}" = "false" ; then
6206 my_includes="$my_includes -I../getopt"
6208 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
6210 ctlibs_base="$ctlibs_base -lgetopt"
6211 LDFLAGS="$LDFLAGS -L../getopt"
6214 if test "$GETOPTLONG"="1"; then
6215 INCLUDED_GETOPT_LONG_TRUE=
6216 INCLUDED_GETOPT_LONG_FALSE='#'
6218 INCLUDED_GETOPT_LONG_TRUE='#'
6219 INCLUDED_GETOPT_LONG_FALSE=
6223 if test "${readline}" = "true" ; then
6224 ctlibs_base="$ctlibs_base -lreadline"
6225 if test "${ncurses}" = "true"; then
6226 ctlibs_base="$ctlibs_base -lncurses"
6227 elif test "${curses}" = "true"; then
6228 ctlibs_base="$ctlibs_base -lcurses"
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking debug" >&5
6233 $as_echo_n "checking debug... " >&6; }
6234 # Check whether --enable-debug was given.
6235 if test "${enable_debug+set}" = set; then :
6236 enableval=$enable_debug; case "${enableval}" in
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6239 $as_echo "yes" >&6; }
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6243 $as_echo "no" >&6; }
6245 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: bad value ${enableval} for --enable-debug" >&5
6246 $as_echo "bad value ${enableval} for --enable-debug" >&6; }
6250 debug=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6251 $as_echo "no" >&6; }
6254 if test "$debug" = "true"; then
6263 if test "$datadir" != "" ; then
6264 CPPFLAGS="$CPPFLAGS -DDATADIR=\"\\\"$datadir\\\"\""
6267 if test "$debug" = "true" ; then
6268 CFLAGS="$CFLAGS -g -O0 -DDEBUG"
6270 $as_echo "#define DEBUG 1" >>confdefs.h
6273 CFLAGS="$CFLAGS -O2 -DNDEBUG -fomit-frame-pointer"
6275 $as_echo "#define NDEBUG 1" >>confdefs.h
6279 if test "${pthread}" = "true" ; then
6281 $as_echo "#define HAVE_WXTHREADS 1" >>confdefs.h
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sstream" >&5
6286 $as_echo_n "checking sstream... " >&6; }
6287 if test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
6288 test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ||
6289 test -f /usr/include/gcc/darwin/3.1/g++-v3/sstream ; then
6291 $as_echo "#define HAVE_SSTREAM 1" >>confdefs.h
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6294 $as_echo "yes" >&6; }
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6297 $as_echo "no" >&6; }
6301 CFLAGS="$CFLAGS -Wall"
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose warnings" >&5
6303 $as_echo_n "checking whether to enable verbose warnings... " >&6; }
6304 # Check whether --enable-verbose-warnings was given.
6305 if test "${enable_verbose_warnings+set}" = set; then :
6306 enableval=$enable_verbose_warnings; case "$enableval" in
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6309 $as_echo "yes" >&6; }
6310 CFLAGS="$CFLAGS -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wredundant-decls"
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6314 $as_echo "no" >&6; }
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6319 $as_echo "no" >&6; }
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking static executables" >&5
6325 $as_echo_n "checking static executables... " >&6; }
6326 # Check whether --enable-static was given.
6327 if test "${enable_static+set}" = set; then :
6328 enableval=$enable_static; case "$enableval" in
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6331 $as_echo "yes" >&6; }
6332 CFLAGS="$CFLAGS --static"
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6336 $as_echo "no" >&6; }
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6341 $as_echo "no" >&6; }
6347 # Check whether --with-lam was given.
6348 if test "${with_lam+set}" = set; then :
6349 withval=$with_lam; if test "$withval" != "no" ; then
6356 if test "$withval" != "no" ; then
6357 if test "$prefix" != "NONE" ; then
6358 trylamdir="$trylamdir $prefix"
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LAM MPI installation" >&5
6362 $as_echo_n "checking for LAM MPI installation... " >&6; }
6363 for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
6364 if test -x "$testlamdir/bin/hcp" ; then
6365 if test "$testlamdir" != "/usr"; then
6366 LDFLAGS="$LDFLAGS -L$testlamdir/lib"
6367 CFLAGS="$CFLAGS -I$testlamdir/include"
6369 CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
6370 lamdir="$testlamdir"
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lamdir" >&5
6378 $as_echo "$lamdir" >&6; }
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6381 $as_echo "no" >&6; }
6386 # Check whether --with-ctn was given.
6387 if test "${with_ctn+set}" = set; then :
6388 withval=$with_ctn; if test "$withval" != "no" ; then
6395 if test "$withval" == "no" -o "$withval" == "NONE" ; then
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CTN DICOM installation" >&5
6397 $as_echo_n "checking for CTN DICOM installation... " >&6; }
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6399 $as_echo "disabled" >&6; }
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CTN DICOM installation" >&5
6402 $as_echo_n "checking for CTN DICOM installation... " >&6; }
6403 for testctndir in $tryctndir/lib /usr/local/lib /usr/local/ctn/lib /usr/lib /usr/ctn/lib /usr/lib/ctn /opt/ctn/lib ; do
6404 if test -f "$testctndir/libctn.a" ; then
6405 LDFLAGS="$LDFLAGS -L$testctndir"
6410 for testctndir in $tryctndir/include /usr/local/include /usr/local/ctn/include /usr/include /usr/include/ctn /usr/ctn/include /opt/ctn/include ; do
6411 if test -f "$testctndir/ctn_os.h" ; then
6412 CFLAGS="$CFLAGS -I$testctndir"
6417 if test "$ctnlib" == "true" -a "$ctninclude" == "true" ; then
6420 $as_echo "#define HAVE_CTN_DICOM 1" >>confdefs.h
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6423 $as_echo "yes" >&6; }
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6426 $as_echo "no" >&6; }
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPU specification" >&5
6431 $as_echo_n "checking for CPU specification... " >&6; }
6433 # Check whether --with-mcpu was given.
6434 if test "${with_mcpu+set}" = set; then :
6439 if test "$withval" == "no" -o "$withval" == "yes" -o "$withval" == ""; then
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6441 $as_echo "no" >&6; }
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
6444 $as_echo "$withval" >&6; }
6445 CFLAGS="$CFLAGS -mcpu=$withval"
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for web access" >&5
6449 $as_echo_n "checking for web access... " >&6; }
6451 # Check whether --with-cgibin-dir was given.
6452 if test "${with_cgibin_dir+set}" = set; then :
6453 withval=$with_cgibin_dir; cgibindir=$withval ;
6458 # Check whether --with-cgibin-url was given.
6459 if test "${with_cgibin_url+set}" = set; then :
6460 withval=$with_cgibin_url; cgibinurl=$withval ;
6465 # Check whether --with-webdata-dir was given.
6466 if test "${with_webdata_dir+set}" = set; then :
6467 withval=$with_webdata_dir; webdatadir=$withval ;
6472 # Check whether --with-webdata-url was given.
6473 if test "${with_webdata_url+set}" = set; then :
6474 withval=$with_webdata_url; webdataurl=$withval ;
6479 # Check whether --with-html-dir was given.
6480 if test "${with_html_dir+set}" = set; then :
6481 withval=$with_html_dir; html_%dir=$withval ;
6485 if test "x$cgibindir" != "x" -o "x$cgibinurl" != "x" ; then
6486 cgiprograms="ctsim.cgi ctsim.conf"
6490 if test "x$html_dir" = "x" ; then
6491 htmldata=simulate.html
6494 if test "x$html_dir" = "x"; then
6503 if test "x$cgibindir" != "x" -o "x$cgibinurl" != "x" -o "x$webdatadir" != "x" -o "x$webdataurl" != "x" -o "x$html_dir" != "x" ; then
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6507 $as_echo "yes" >&6; }
6508 if test "x$cgibindir" = "x" ; then
6509 as_fn_error "--with-cgibin-dir not set for web access" "$LINENO" 5
6510 elif test "x$cgibinurl" = "x" ; then
6511 as_fn_error "--with-cgibin-url not set for web access" "$LINENO" 5
6512 elif test "x$webdatadir" = "x" ; then
6513 as_fn_error "--with-webdata-dir not set for web access" "$LINENO" 5
6514 elif test "x$webdataurl" = "x" ; then
6515 as_fn_error "--with-webdata-url not set for web access" "$LINENO" 5
6516 elif test "x$html_dir" = "x" ; then
6517 as_fn_error "--with-html-dir not set for web access" "$LINENO" 5
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6521 $as_echo "no" >&6; }
6524 if test "x$lamdir" != "x"; then
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
6534 $as_echo_n "checking for X... " >&6; }
6537 # Check whether --with-x was given.
6538 if test "${with_x+set}" = set; then :
6542 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6543 if test "x$with_x" = xno; then
6544 # The user explicitly disabled X.
6547 case $x_includes,$x_libraries in #(
6548 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
6549 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
6550 $as_echo_n "(cached) " >&6
6552 # One or both of the vars are not set, and there is no cached value.
6553 ac_x_includes=no ac_x_libraries=no
6554 rm -f -r conftest.dir
6555 if mkdir conftest.dir; then
6557 cat >Imakefile <<'_ACEOF'
6559 @echo incroot='${INCROOT}'
6561 @echo usrlibdir='${USRLIBDIR}'
6563 @echo libdir='${LIBDIR}'
6565 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6566 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6567 for ac_var in incroot usrlibdir libdir; do
6568 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6570 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6571 for ac_extension in a so sl dylib la dll; do
6572 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6573 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6574 ac_im_usrlibdir=$ac_im_libdir; break
6577 # Screen out bogus values from the imake configuration. They are
6578 # bogus both because they are the default anyway, and because
6579 # using them would break gcc on systems where it needs fixed includes.
6580 case $ac_im_incroot in
6581 /usr/include) ac_x_includes= ;;
6582 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6584 case $ac_im_usrlibdir in
6585 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
6586 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6590 rm -f -r conftest.dir
6593 # Standard set of common directories for X headers.
6594 # Check X11 before X11Rn because it is often a symlink to the current release.
6608 /usr/local/X11/include
6609 /usr/local/X11R7/include
6610 /usr/local/X11R6/include
6611 /usr/local/X11R5/include
6612 /usr/local/X11R4/include
6614 /usr/local/include/X11
6615 /usr/local/include/X11R7
6616 /usr/local/include/X11R6
6617 /usr/local/include/X11R5
6618 /usr/local/include/X11R4
6622 /usr/XFree86/include/X11
6626 /usr/unsupported/include
6628 /usr/local/x11r5/include
6629 /usr/lpp/Xamples/include
6631 /usr/openwin/include
6632 /usr/openwin/share/include'
6634 if test "$ac_x_includes" = no; then
6635 # Guess where to find include files, by looking for Xlib.h.
6636 # First, try using that file with no special directory specified.
6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638 /* end confdefs.h. */
6639 #include <X11/Xlib.h>
6641 if ac_fn_c_try_cpp "$LINENO"; then :
6642 # We can compile using X headers with no special include directory.
6645 for ac_dir in $ac_x_header_dirs; do
6646 if test -r "$ac_dir/X11/Xlib.h"; then
6647 ac_x_includes=$ac_dir
6652 rm -f conftest.err conftest.$ac_ext
6653 fi # $ac_x_includes = no
6655 if test "$ac_x_libraries" = no; then
6656 # Check for the libraries.
6657 # See if we find them without any special options.
6658 # Don't add to $LIBS permanently.
6661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6662 /* end confdefs.h. */
6663 #include <X11/Xlib.h>
6672 if ac_fn_c_try_link "$LINENO"; then :
6674 # We can link X programs with no special library path.
6678 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6680 # Don't even attempt the hair of trying to link an X program!
6681 for ac_extension in a so sl dylib la dll; do
6682 if test -r "$ac_dir/libX11.$ac_extension"; then
6683 ac_x_libraries=$ac_dir
6689 rm -f core conftest.err conftest.$ac_objext \
6690 conftest$ac_exeext conftest.$ac_ext
6691 fi # $ac_x_libraries = no
6693 case $ac_x_includes,$ac_x_libraries in #(
6695 # Didn't find X, or a directory has "'" in its name.
6696 ac_cv_have_x="have_x=no";; #(
6698 # Record where we found X for the cache.
6699 ac_cv_have_x="have_x=yes\
6700 ac_x_includes='$ac_x_includes'\
6701 ac_x_libraries='$ac_x_libraries'"
6707 eval "$ac_cv_have_x"
6710 if test "$have_x" != yes; then
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
6712 $as_echo "$have_x" >&6; }
6715 # If each of the values was on the command line, it overrides each guess.
6716 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6717 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6718 # Update the cache value to reflect the command line values.
6719 ac_cv_have_x="have_x=yes\
6720 ac_x_includes='$x_includes'\
6721 ac_x_libraries='$x_libraries'"
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
6723 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6726 if test "$no_x" = yes; then
6727 # Not all programs may use this symbol, but it does not hurt to define it.
6729 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
6731 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6733 if test -n "$x_includes"; then
6734 X_CFLAGS="$X_CFLAGS -I$x_includes"
6737 # It would also be nice to do this for all -L options, not just this one.
6738 if test -n "$x_libraries"; then
6739 X_LIBS="$X_LIBS -L$x_libraries"
6740 # For Solaris; some versions of Sun CC require a space after -R and
6741 # others require no space. Words are not sufficient . . . .
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
6743 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
6744 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6745 ac_xsave_c_werror_flag=$ac_c_werror_flag
6746 ac_c_werror_flag=yes
6747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6748 /* end confdefs.h. */
6758 if ac_fn_c_try_link "$LINENO"; then :
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6760 $as_echo "no" >&6; }
6761 X_LIBS="$X_LIBS -R$x_libraries"
6763 LIBS="$ac_xsave_LIBS -R $x_libraries"
6764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6765 /* end confdefs.h. */
6775 if ac_fn_c_try_link "$LINENO"; then :
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6777 $as_echo "yes" >&6; }
6778 X_LIBS="$X_LIBS -R $x_libraries"
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
6781 $as_echo "neither works" >&6; }
6783 rm -f core conftest.err conftest.$ac_objext \
6784 conftest$ac_exeext conftest.$ac_ext
6786 rm -f core conftest.err conftest.$ac_objext \
6787 conftest$ac_exeext conftest.$ac_ext
6788 ac_c_werror_flag=$ac_xsave_c_werror_flag
6792 # Check for system-dependent libraries X programs must link with.
6793 # Do this before checking for the system-independent R6 libraries
6794 # (-lICE), since we may need -lsocket or whatever for X linking.
6796 if test "$ISC" = yes; then
6797 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6799 # Martyn Johnson says this is needed for Ultrix, if the X
6800 # libraries were built with DECnet support. And Karl Berry says
6801 # the Alpha needs dnet_stub (dnet does not exist).
6802 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6804 /* end confdefs.h. */
6806 /* Override any GCC internal prototype to avoid an error.
6807 Use char because int might match the return type of a GCC
6808 builtin and then its argument prototype would still apply. */
6812 char XOpenDisplay ();
6816 return XOpenDisplay ();
6821 if ac_fn_c_try_link "$LINENO"; then :
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
6825 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6826 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
6827 $as_echo_n "(cached) " >&6
6829 ac_check_lib_save_LIBS=$LIBS
6831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6832 /* end confdefs.h. */
6834 /* Override any GCC internal prototype to avoid an error.
6835 Use char because int might match the return type of a GCC
6836 builtin and then its argument prototype would still apply. */
6844 return dnet_ntoa ();
6849 if ac_fn_c_try_link "$LINENO"; then :
6850 ac_cv_lib_dnet_dnet_ntoa=yes
6852 ac_cv_lib_dnet_dnet_ntoa=no
6854 rm -f core conftest.err conftest.$ac_objext \
6855 conftest$ac_exeext conftest.$ac_ext
6856 LIBS=$ac_check_lib_save_LIBS
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6859 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6860 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
6861 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6864 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
6866 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6867 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
6868 $as_echo_n "(cached) " >&6
6870 ac_check_lib_save_LIBS=$LIBS
6871 LIBS="-ldnet_stub $LIBS"
6872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6873 /* end confdefs.h. */
6875 /* Override any GCC internal prototype to avoid an error.
6876 Use char because int might match the return type of a GCC
6877 builtin and then its argument prototype would still apply. */
6885 return dnet_ntoa ();
6890 if ac_fn_c_try_link "$LINENO"; then :
6891 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6893 ac_cv_lib_dnet_stub_dnet_ntoa=no
6895 rm -f core conftest.err conftest.$ac_objext \
6896 conftest$ac_exeext conftest.$ac_ext
6897 LIBS=$ac_check_lib_save_LIBS
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6900 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6901 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
6902 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6907 rm -f core conftest.err conftest.$ac_objext \
6908 conftest$ac_exeext conftest.$ac_ext
6909 LIBS="$ac_xsave_LIBS"
6911 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6912 # to get the SysV transport functions.
6913 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6915 # The nsl library prevents programs from opening the X display
6916 # on Irix 5.2, according to T.E. Dickey.
6917 # The functions gethostbyname, getservbyname, and inet_addr are
6918 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6919 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
6920 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
6924 if test $ac_cv_func_gethostbyname = no; then
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
6926 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6927 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
6928 $as_echo_n "(cached) " >&6
6930 ac_check_lib_save_LIBS=$LIBS
6932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6933 /* end confdefs.h. */
6935 /* Override any GCC internal prototype to avoid an error.
6936 Use char because int might match the return type of a GCC
6937 builtin and then its argument prototype would still apply. */
6941 char gethostbyname ();
6945 return gethostbyname ();
6950 if ac_fn_c_try_link "$LINENO"; then :
6951 ac_cv_lib_nsl_gethostbyname=yes
6953 ac_cv_lib_nsl_gethostbyname=no
6955 rm -f core conftest.err conftest.$ac_objext \
6956 conftest$ac_exeext conftest.$ac_ext
6957 LIBS=$ac_check_lib_save_LIBS
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
6960 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6961 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
6962 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6965 if test $ac_cv_lib_nsl_gethostbyname = no; then
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
6967 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
6968 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
6969 $as_echo_n "(cached) " >&6
6971 ac_check_lib_save_LIBS=$LIBS
6973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6974 /* end confdefs.h. */
6976 /* Override any GCC internal prototype to avoid an error.
6977 Use char because int might match the return type of a GCC
6978 builtin and then its argument prototype would still apply. */
6982 char gethostbyname ();
6986 return gethostbyname ();
6991 if ac_fn_c_try_link "$LINENO"; then :
6992 ac_cv_lib_bsd_gethostbyname=yes
6994 ac_cv_lib_bsd_gethostbyname=no
6996 rm -f core conftest.err conftest.$ac_objext \
6997 conftest$ac_exeext conftest.$ac_ext
6998 LIBS=$ac_check_lib_save_LIBS
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7001 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7002 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
7003 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7009 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7010 # socket/setsockopt and other routines are undefined under SCO ODT
7011 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7012 # on later versions), says Simon Leinen: it contains gethostby*
7013 # variants that don't use the name server (or something). -lsocket
7014 # must be given before -lnsl if both are needed. We assume that
7015 # if connect needs -lnsl, so does gethostbyname.
7016 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7017 if test "x$ac_cv_func_connect" = x""yes; then :
7021 if test $ac_cv_func_connect = no; then
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7023 $as_echo_n "checking for connect in -lsocket... " >&6; }
7024 if test "${ac_cv_lib_socket_connect+set}" = set; then :
7025 $as_echo_n "(cached) " >&6
7027 ac_check_lib_save_LIBS=$LIBS
7028 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7030 /* end confdefs.h. */
7032 /* Override any GCC internal prototype to avoid an error.
7033 Use char because int might match the return type of a GCC
7034 builtin and then its argument prototype would still apply. */
7047 if ac_fn_c_try_link "$LINENO"; then :
7048 ac_cv_lib_socket_connect=yes
7050 ac_cv_lib_socket_connect=no
7052 rm -f core conftest.err conftest.$ac_objext \
7053 conftest$ac_exeext conftest.$ac_ext
7054 LIBS=$ac_check_lib_save_LIBS
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7057 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7058 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
7059 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7064 # Guillermo Gomez says -lposix is necessary on A/UX.
7065 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7066 if test "x$ac_cv_func_remove" = x""yes; then :
7070 if test $ac_cv_func_remove = no; then
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7072 $as_echo_n "checking for remove in -lposix... " >&6; }
7073 if test "${ac_cv_lib_posix_remove+set}" = set; then :
7074 $as_echo_n "(cached) " >&6
7076 ac_check_lib_save_LIBS=$LIBS
7077 LIBS="-lposix $LIBS"
7078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7079 /* end confdefs.h. */
7081 /* Override any GCC internal prototype to avoid an error.
7082 Use char because int might match the return type of a GCC
7083 builtin and then its argument prototype would still apply. */
7096 if ac_fn_c_try_link "$LINENO"; then :
7097 ac_cv_lib_posix_remove=yes
7099 ac_cv_lib_posix_remove=no
7101 rm -f core conftest.err conftest.$ac_objext \
7102 conftest$ac_exeext conftest.$ac_ext
7103 LIBS=$ac_check_lib_save_LIBS
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7106 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7107 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
7108 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7113 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7114 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7115 if test "x$ac_cv_func_shmat" = x""yes; then :
7119 if test $ac_cv_func_shmat = no; then
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7121 $as_echo_n "checking for shmat in -lipc... " >&6; }
7122 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
7123 $as_echo_n "(cached) " >&6
7125 ac_check_lib_save_LIBS=$LIBS
7127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7128 /* end confdefs.h. */
7130 /* Override any GCC internal prototype to avoid an error.
7131 Use char because int might match the return type of a GCC
7132 builtin and then its argument prototype would still apply. */
7145 if ac_fn_c_try_link "$LINENO"; then :
7146 ac_cv_lib_ipc_shmat=yes
7148 ac_cv_lib_ipc_shmat=no
7150 rm -f core conftest.err conftest.$ac_objext \
7151 conftest$ac_exeext conftest.$ac_ext
7152 LIBS=$ac_check_lib_save_LIBS
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7155 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7156 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
7157 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7163 # Check for libraries that X11R6 Xt/Xaw programs need.
7164 ac_save_LDFLAGS=$LDFLAGS
7165 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7166 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7167 # check for ICE first), but we must link in the order -lSM -lICE or
7168 # we get undefined symbols. So assume we have SM if we have ICE.
7169 # These have to be linked with before -lX11, unlike the other
7170 # libraries we check for below, so use a different variable.
7171 # John Interrante, Karl Berry
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7173 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7174 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
7175 $as_echo_n "(cached) " >&6
7177 ac_check_lib_save_LIBS=$LIBS
7178 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180 /* end confdefs.h. */
7182 /* Override any GCC internal prototype to avoid an error.
7183 Use char because int might match the return type of a GCC
7184 builtin and then its argument prototype would still apply. */
7188 char IceConnectionNumber ();
7192 return IceConnectionNumber ();
7197 if ac_fn_c_try_link "$LINENO"; then :
7198 ac_cv_lib_ICE_IceConnectionNumber=yes
7200 ac_cv_lib_ICE_IceConnectionNumber=no
7202 rm -f core conftest.err conftest.$ac_objext \
7203 conftest$ac_exeext conftest.$ac_ext
7204 LIBS=$ac_check_lib_save_LIBS
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7207 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7208 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
7209 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7212 LDFLAGS=$ac_save_LDFLAGS
7223 if test "x$with_x" = "xno"; then
7232 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
7235 LDFLAGS="$LDFLAGS -L/usr/local/lib"
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7238 $as_echo_n "checking for X... " >&6; }
7239 if test "$with_x" != "no" && test "$wxwin" = "true"; then
7241 $as_echo "#define HAVE_X11 1" >>confdefs.h
7243 LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib -L/usr/X11R6/lib64"
7244 my_includes="$my_includes -I/usr/X11R6/include"
7245 ctlib_graphics="$ctlibs_base -lctgraphics"
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7247 $as_echo "yes" >&6; }
7248 ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
7249 if test "$libgl" = "true" ; then
7250 # Removed "-lglut" for Mac OS X compilation
7251 ctlib_graphics="$ctlib_graphics -lGL -lGLU"
7252 if test "$wxwin" = "true" ; then
7254 if test "$debug" = "true"; then
7257 if test "x$wx_gtk" != "x" ; then
7258 ctlib_graphics="$ctlib_graphics `$wxconfig $wxdebug --version=2.8 --libs std,gl` ${GTK_LIBS} ${GLIB_LIBS}"
7259 elif test "x$wx_mac" != "x" ; then
7260 ctlib_graphics="$ctlib_graphics `$wxconfig $wxdebug --version=2.8 --libs std,gl`"
7264 if test "$wxwin" = "true" ; then
7266 $as_echo "#define HAVE_SGP 1" >>confdefs.h
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7271 $as_echo "no" >&6; }
7274 if test "$wxwin" = "true"; then
7283 if test "$png" = "true" ; then
7284 ctlibs_tools="$ctlibs_tools -lpng"
7286 if test "$zlib" = "true" ; then
7287 ctlibs_tools="$ctlibs_tools -lz"
7289 if test "$fftw" = "true" ; then
7290 ctlibs_tools="$ctlibs_tools -lfftw3"
7292 if test "$ctn" = "true"; then
7293 ctlibs_tools="$ctlibs_tools -lctn"
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldmallocxx" >&5
7297 $as_echo_n "checking for main in -ldmallocxx... " >&6; }
7298 if test "${ac_cv_lib_dmallocxx_main+set}" = set; then :
7299 $as_echo_n "(cached) " >&6
7301 ac_check_lib_save_LIBS=$LIBS
7302 LIBS="-ldmallocxx $LIBS"
7303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7304 /* end confdefs.h. */
7315 if ac_fn_c_try_link "$LINENO"; then :
7316 ac_cv_lib_dmallocxx_main=yes
7318 ac_cv_lib_dmallocxx_main=no
7320 rm -f core conftest.err conftest.$ac_objext \
7321 conftest$ac_exeext conftest.$ac_ext
7322 LIBS=$ac_check_lib_save_LIBS
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmallocxx_main" >&5
7325 $as_echo "$ac_cv_lib_dmallocxx_main" >&6; }
7326 if test "x$ac_cv_lib_dmallocxx_main" = x""yes; then :
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enable-dmalloc" >&5
7333 $as_echo_n "checking for enable-dmalloc... " >&6; }
7334 # Check whether --enable-dmalloc was given.
7335 if test "${enable_dmalloc+set}" = set; then :
7336 enableval=$enable_dmalloc; case "${enableval}" in
7337 yes) usedmalloc=true
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7339 $as_echo "yes" >&6; }
7341 no) usedmalloc=false
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7343 $as_echo "no" >&6; }
7345 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: bad value ${enableval} for --enable-dmalloc" >&5
7346 $as_echo "bad value ${enableval} for --enable-dmalloc" >&6; }
7350 usedmalloc=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351 $as_echo "no" >&6; }
7355 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
7356 ctlibs_tools="$ctlibs_tools -ldmallocxx"
7358 $as_echo "#define HAVE_DMALLOC 1" >>confdefs.h
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using dmalloc" >&5
7361 $as_echo "Using dmalloc" >&6; }
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lefence" >&5
7365 $as_echo_n "checking for main in -lefence... " >&6; }
7366 if test "${ac_cv_lib_efence_main+set}" = set; then :
7367 $as_echo_n "(cached) " >&6
7369 ac_check_lib_save_LIBS=$LIBS
7370 LIBS="-lefence $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_efence_main=yes
7386 ac_cv_lib_efence_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_efence_main" >&5
7393 $as_echo "$ac_cv_lib_efence_main" >&6; }
7394 if test "x$ac_cv_lib_efence_main" = x""yes; then :
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enable-efence" >&5
7401 $as_echo_n "checking for enable-efence... " >&6; }
7402 # Check whether --enable-efence was given.
7403 if test "${enable_efence+set}" = set; then :
7404 enableval=$enable_efence; case "${enableval}" in
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7407 $as_echo "yes" >&6; }
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-efence" >&5
7414 $as_echo "bad value ${enableval} for --enable-efence" >&6; }
7418 useefence=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7419 $as_echo "no" >&6; }
7423 if test "$efence" = "true" -a "$useefence" = "true" ; then
7424 ctlibs_tools="$ctlibs_tools -lefence"
7426 $as_echo "#define HAVE_EFENCE 1" >>confdefs.h
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using efence" >&5
7429 $as_echo "Using efence" >&6; }
7432 if test "$wxwin" = "true" ; then
7433 if test "$wx_gtk" = "true" -o "$wx_mac" = "true" ; then
7434 wxcflags=`$wxconfig $wxdebug --cxxflags --version=2.8`
7435 #wxlibs=`$wxconfig --libs`
7437 wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
7438 wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
7440 CFLAGS="$CFLAGS -I../include $wxcflags"
7441 ctlib_graphics="$ctlib_graphics $wxlibs"
7445 if test "$wxwin"="true"; then
7446 HAVE_WXWINDOWS_TRUE=
7447 HAVE_WXWINDOWS_FALSE='#'
7449 HAVE_WXWINDOWS_TRUE='#'
7450 HAVE_WXWINDOWS_FALSE=
7454 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
7455 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
7458 if test "x$lamdir" != "x" ; then
7459 lamprograms="ctsimtext-lam"
7467 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"
7470 cat >confcache <<\_ACEOF
7471 # This file is a shell script that caches the results of configure
7472 # tests run on this system so they can be shared between configure
7473 # scripts and configure runs, see configure's option --config-cache.
7474 # It is not useful on other systems. If it contains results you don't
7475 # want to keep, you may remove or edit it.
7477 # config.status only pays attention to the cache file if you give it
7478 # the --recheck option to rerun configure.
7480 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7481 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7486 # The following way of writing the cache mishandles newlines in values,
7487 # but we know of no workaround that is simple, portable, and efficient.
7488 # So, we kill variables containing newlines.
7489 # Ultrix sh set writes to stderr and can't be redirected directly,
7490 # and sets the high bit in the cache file unless we assign to the vars.
7492 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7493 eval ac_val=\$$ac_var
7497 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7498 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7501 _ | IFS | as_nl) ;; #(
7502 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7503 *) { eval $ac_var=; unset $ac_var;} ;;
7509 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7510 *${as_nl}ac_space=\ *)
7511 # `set' does not quote correctly, so add quotes: double-quote
7512 # substitution turns \\\\ into \\, and sed turns \\ into \.
7515 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7518 # `set' quotes correctly as required by POSIX, so do not add quotes.
7519 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7528 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7530 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7532 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7533 if test -w "$cache_file"; then
7534 test "x$cache_file" != "x/dev/null" &&
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7536 $as_echo "$as_me: updating cache $cache_file" >&6;}
7537 cat confcache >$cache_file
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7540 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7545 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7546 # Let make expand exec_prefix.
7547 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7549 DEFS=-DHAVE_CONFIG_H
7553 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7554 # 1. Remove the extension, and $U if already installed.
7555 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7556 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7557 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7558 # will be set to the directory where LIBOBJS objects are built.
7559 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7560 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7564 LTLIBOBJS=$ac_ltlibobjs
7567 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7568 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
7569 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7571 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7572 as_fn_error "conditional \"AMDEP\" was never defined.
7573 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7575 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7576 as_fn_error "conditional \"am__fastdepCC\" was never defined.
7577 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7579 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
7580 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
7581 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7584 if test -z "${INCLUDED_GETOPT_LONG_TRUE}" && test -z "${INCLUDED_GETOPT_LONG_FALSE}"; then
7585 as_fn_error "conditional \"INCLUDED_GETOPT_LONG\" was never defined.
7586 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7588 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
7589 as_fn_error "conditional \"DEBUG\" was never defined.
7590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7592 if test -z "${USE_HTML_TRUE}" && test -z "${USE_HTML_FALSE}"; then
7593 as_fn_error "conditional \"USE_HTML\" was never defined.
7594 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7596 if test -z "${USE_LAM_TRUE}" && test -z "${USE_LAM_FALSE}"; then
7597 as_fn_error "conditional \"USE_LAM\" was never defined.
7598 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7600 if test -z "${NO_X_TRUE}" && test -z "${NO_X_FALSE}"; then
7601 as_fn_error "conditional \"NO_X\" was never defined.
7602 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7604 if test -z "${HAVE_SGP_TRUE}" && test -z "${HAVE_SGP_FALSE}"; then
7605 as_fn_error "conditional \"HAVE_SGP\" was never defined.
7606 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7608 if test -z "${HAVE_WXWINDOWS_TRUE}" && test -z "${HAVE_WXWINDOWS_FALSE}"; then
7609 as_fn_error "conditional \"HAVE_WXWINDOWS\" was never defined.
7610 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7613 : ${CONFIG_STATUS=./config.status}
7615 ac_clean_files_save=$ac_clean_files
7616 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7618 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7620 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7622 # Generated by $as_me.
7623 # Run this file to recreate the current configuration.
7624 # Compiler output produced by configure, useful for debugging
7625 # configure, is in config.log if it exists.
7631 SHELL=\${CONFIG_SHELL-$SHELL}
7634 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7635 ## -------------------- ##
7636 ## M4sh Initialization. ##
7637 ## -------------------- ##
7639 # Be more Bourne compatible
7640 DUALCASE=1; export DUALCASE # for MKS sh
7641 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7644 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7645 # is contrary to our usage. Disable this feature.
7646 alias -g '${1+"$@"}'='"$@"'
7647 setopt NO_GLOB_SUBST
7649 case `(set -o) 2>/dev/null` in #(
7661 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7662 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7663 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7664 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7665 # Prefer a ksh shell builtin over an external printf program on Solaris,
7666 # but without wasting forks for bash or zsh.
7667 if test -z "$BASH_VERSION$ZSH_VERSION" \
7668 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7669 as_echo='print -r --'
7670 as_echo_n='print -rn --'
7671 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7672 as_echo='printf %s\n'
7673 as_echo_n='printf %s'
7675 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7676 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7677 as_echo_n='/usr/ucb/echo -n'
7679 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7680 as_echo_n_body='eval
7684 expr "X$arg" : "X\\(.*\\)$as_nl";
7685 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7687 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7689 export as_echo_n_body
7690 as_echo_n='sh -c $as_echo_n_body as_echo'
7693 as_echo='sh -c $as_echo_body as_echo'
7696 # The user is always right.
7697 if test "${PATH_SEPARATOR+set}" != set; then
7699 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7700 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7707 # We need space, tab and new line, in precisely that order. Quoting is
7708 # there to prevent editors from complaining about space-tab.
7709 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7710 # splitting by setting IFS to empty value.)
7713 # Find who we are. Look in the path if we contain no directory separator.
7715 *[\\/]* ) as_myself=$0 ;;
7716 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720 test -z "$as_dir" && as_dir=.
7721 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7727 # We did not find ourselves, most probably we were run as `sh COMMAND'
7728 # in which case we are not to be found in the path.
7729 if test "x$as_myself" = x; then
7732 if test ! -f "$as_myself"; then
7733 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7737 # Unset variables that we do not need and which cause bugs (e.g. in
7738 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7739 # suppresses any "Segmentation fault" message there. '((' could
7740 # trigger a bug in pdksh 5.2.14.
7741 for as_var in BASH_ENV ENV MAIL MAILPATH
7742 do eval test x\${$as_var+set} = xset \
7743 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7756 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7759 # as_fn_error ERROR [LINENO LOG_FD]
7760 # ---------------------------------
7761 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7762 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7763 # script with status $?, using 1 if that was 0.
7766 as_status=$?; test $as_status -eq 0 && as_status=1
7768 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7769 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7771 $as_echo "$as_me: error: $1" >&2
7772 as_fn_exit $as_status
7776 # as_fn_set_status STATUS
7777 # -----------------------
7778 # Set $? to STATUS, without forking.
7782 } # as_fn_set_status
7786 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7796 # Portably unset VAR.
7799 { eval $1=; unset $1;}
7801 as_unset=as_fn_unset
7802 # as_fn_append VAR VALUE
7803 # ----------------------
7804 # Append the text in VALUE to the end of the definition contained in VAR. Take
7805 # advantage of any shell optimizations that allow amortized linear growth over
7806 # repeated appends, instead of the typical quadratic growth present in naive
7808 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7809 eval 'as_fn_append ()
7820 # as_fn_arith ARG...
7821 # ------------------
7822 # Perform arithmetic evaluation on the ARGs, and store the result in the
7823 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7824 # must be portable across $(()) and expr.
7825 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7826 eval 'as_fn_arith ()
7833 as_val=`expr "$@" || test $? -eq 1`
7838 if expr a : '\(a\)' >/dev/null 2>&1 &&
7839 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7845 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7846 as_basename=basename
7851 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7857 as_me=`$as_basename -- "$0" ||
7858 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7859 X"$0" : 'X\(//\)$' \| \
7860 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7862 sed '/^.*\/\([^/][^/]*\)\/*$/{
7876 # Avoid depending upon Character Ranges.
7877 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7878 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7879 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7880 as_cr_digits='0123456789'
7881 as_cr_alnum=$as_cr_Letters$as_cr_digits
7883 ECHO_C= ECHO_N= ECHO_T=
7884 case `echo -n x` in #(((((
7886 case `echo 'xy\c'` in
7887 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7889 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7896 rm -f conf$$ conf$$.exe conf$$.file
7897 if test -d conf$$.dir; then
7898 rm -f conf$$.dir/conf$$.file
7901 mkdir conf$$.dir 2>/dev/null
7903 if (echo >conf$$.file) 2>/dev/null; then
7904 if ln -s conf$$.file conf$$ 2>/dev/null; then
7906 # ... but there are two gotchas:
7907 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7908 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7909 # In both cases, we have to default to `cp -p'.
7910 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7912 elif ln conf$$.file conf$$ 2>/dev/null; then
7920 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7921 rmdir conf$$.dir 2>/dev/null
7926 # Create "$as_dir" as a directory, including parents if necessary.
7931 -*) as_dir=./$as_dir;;
7933 test -d "$as_dir" || eval $as_mkdir_p || {
7937 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7938 *) as_qdir=$as_dir;;
7940 as_dirs="'$as_qdir' $as_dirs"
7941 as_dir=`$as_dirname -- "$as_dir" ||
7942 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7943 X"$as_dir" : 'X\(//\)[^/]' \| \
7944 X"$as_dir" : 'X\(//\)$' \| \
7945 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7946 $as_echo X"$as_dir" |
7947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7964 test -d "$as_dir" && break
7966 test -z "$as_dirs" || eval "mkdir $as_dirs"
7967 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
7971 if mkdir -p . 2>/dev/null; then
7972 as_mkdir_p='mkdir -p "$as_dir"'
7974 test -d ./-p && rmdir ./-p
7978 if test -x / >/dev/null 2>&1; then
7981 if ls -dL / >/dev/null 2>&1; then
7988 if test -d "$1"; then
7994 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7995 ???[sx]*):;;*)false;;esac;fi
7999 as_executable_p=$as_test_x
8001 # Sed expression to map a string onto a valid CPP name.
8002 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8004 # Sed expression to map a string onto a valid variable name.
8005 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8009 ## ----------------------------------- ##
8010 ## Main body of $CONFIG_STATUS script. ##
8011 ## ----------------------------------- ##
8013 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8016 # Save the log message, to keep $0 and so on meaningful, and to
8017 # report actual input values of CONFIG_FILES etc. instead of their
8018 # values after options handling.
8020 This file was extended by $as_me, which was
8021 generated by GNU Autoconf 2.64. Invocation command line was
8023 CONFIG_FILES = $CONFIG_FILES
8024 CONFIG_HEADERS = $CONFIG_HEADERS
8025 CONFIG_LINKS = $CONFIG_LINKS
8026 CONFIG_COMMANDS = $CONFIG_COMMANDS
8029 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8034 case $ac_config_files in *"
8035 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8038 case $ac_config_headers in *"
8039 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8044 # Files that config.status was made for.
8045 config_files="$ac_config_files"
8046 config_headers="$ac_config_headers"
8047 config_commands="$ac_config_commands"
8051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8053 \`$as_me' instantiates files and other configuration actions
8054 from templates according to the current configuration. Unless the files
8055 and actions are specified as TAGs, all are instantiated by default.
8057 Usage: $0 [OPTION]... [TAG]...
8059 -h, --help print this help, then exit
8060 -V, --version print version number and configuration settings, then exit
8061 -q, --quiet, --silent
8062 do not print progress messages
8063 -d, --debug don't remove temporary files
8064 --recheck update $as_me by reconfiguring in the same conditions
8065 --file=FILE[:TEMPLATE]
8066 instantiate the configuration file FILE
8067 --header=FILE[:TEMPLATE]
8068 instantiate the configuration header FILE
8070 Configuration files:
8073 Configuration headers:
8076 Configuration commands:
8079 Report bugs to the package provider."
8082 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8085 configured by $0, generated by GNU Autoconf 2.64,
8086 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8088 Copyright (C) 2009 Free Software Foundation, Inc.
8089 This config.status script is free software; the Free Software Foundation
8090 gives unlimited permission to copy, distribute and modify it."
8097 test -n "\$AWK" || AWK=awk
8100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8101 # The default lists apply if the user does not specify any file.
8107 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8108 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8119 # Handling of the options.
8120 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8122 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8123 $as_echo "$ac_cs_version"; exit ;;
8124 --debug | --debu | --deb | --de | --d | -d )
8126 --file | --fil | --fi | --f )
8129 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8131 as_fn_append CONFIG_FILES " '$ac_optarg'"
8132 ac_need_defaults=false;;
8133 --header | --heade | --head | --hea )
8136 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8138 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8139 ac_need_defaults=false;;
8141 # Conflict between --help and --header
8142 as_fn_error "ambiguous option: \`$1'
8143 Try \`$0 --help' for more information.";;
8144 --help | --hel | -h )
8145 $as_echo "$ac_cs_usage"; exit ;;
8146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8147 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8151 -*) as_fn_error "unrecognized option: \`$1'
8152 Try \`$0 --help' for more information." ;;
8154 *) as_fn_append ac_config_targets " $1"
8155 ac_need_defaults=false ;;
8161 ac_configure_extra_args=
8163 if $ac_cs_silent; then
8165 ac_configure_extra_args="$ac_configure_extra_args --silent"
8169 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8170 if \$ac_cs_recheck; then
8171 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8173 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8174 CONFIG_SHELL='$SHELL'
8180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8184 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8185 ## Running $as_me. ##
8191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8195 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8201 # Handling of arguments.
8202 for ac_config_target in $ac_config_targets
8204 case $ac_config_target in
8205 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8206 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8207 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8208 "libctgraphics/Makefile") CONFIG_FILES="$CONFIG_FILES libctgraphics/Makefile" ;;
8209 "libctsupport/Makefile") CONFIG_FILES="$CONFIG_FILES libctsupport/Makefile" ;;
8210 "libctsim/Makefile") CONFIG_FILES="$CONFIG_FILES libctsim/Makefile" ;;
8211 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
8212 "cgi-bin/ctsim.cgi") CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.cgi" ;;
8213 "cgi-bin/Makefile") CONFIG_FILES="$CONFIG_FILES cgi-bin/Makefile" ;;
8214 "html/simulate.html") CONFIG_FILES="$CONFIG_FILES html/simulate.html" ;;
8215 "html/Makefile") CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
8216 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
8217 "getopt/Makefile") CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
8218 "tools/sample-ctsim.sh") CONFIG_FILES="$CONFIG_FILES tools/sample-ctsim.sh" ;;
8219 "cgi-bin/ctsim.conf") CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.conf" ;;
8220 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
8221 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8222 "helical/Makefile") CONFIG_FILES="$CONFIG_FILES helical/Makefile" ;;
8223 "helical/sample-helical.sh") CONFIG_FILES="$CONFIG_FILES helical/sample-helical.sh" ;;
8225 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8230 # If the user did not use the arguments to specify the items to instantiate,
8231 # then the envvar interface is used. Set only those that are not.
8232 # We use the long form for the default assignment because of an extremely
8233 # bizarre bug on SunOS 4.1.3.
8234 if $ac_need_defaults; then
8235 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8236 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8237 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8240 # Have a temporary directory for convenience. Make it in the build tree
8241 # simply because there is no reason against having it here, and in addition,
8242 # creating and moving files from /tmp can sometimes cause problems.
8243 # Hook for its removal unless debugging.
8244 # Note that there is a small window in which the directory will not be cleaned:
8245 # after its creation but before its name has been assigned to `$tmp'.
8249 trap 'exit_status=$?
8250 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8252 trap 'as_fn_exit 1' 1 2 13 15
8254 # Create a (secure) tmp directory for tmp files.
8257 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8258 test -n "$tmp" && test -d "$tmp"
8261 tmp=./conf$$-$RANDOM
8262 (umask 077 && mkdir "$tmp")
8263 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
8265 # Set up the scripts for CONFIG_FILES section.
8266 # No need to generate them if there are no CONFIG_FILES.
8267 # This happens for instance with `./config.status config.h'.
8268 if test -n "$CONFIG_FILES"; then
8271 ac_cr=`echo X | tr X '\015'`
8272 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8273 # But we know of no other shell where ac_cr would be empty at this
8274 # point, so we can use a bashism as a fallback.
8275 if test "x$ac_cr" = x; then
8276 eval ac_cr=\$\'\\r\'
8278 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8279 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8285 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8290 echo "cat >conf$$subs.awk <<_ACEOF" &&
8291 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8294 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8295 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8297 for ac_last_try in false false false false false :; do
8298 . ./conf$$subs.sh ||
8299 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8301 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8302 if test $ac_delim_n = $ac_delim_num; then
8304 elif $ac_last_try; then
8305 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8307 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8312 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8313 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8317 s/^/S["/; s/!.*/"]=/
8327 s/\(.\{148\}\).*/\1/
8329 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8334 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8341 s/\(.\{148\}\).*/\1/
8343 s/["\\]/\\&/g; s/^/"/; s/$/"/
8347 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8352 ' <conf$$subs.awk | sed '
8357 ' >>$CONFIG_STATUS || ac_write_fail=1
8358 rm -f conf$$subs.awk
8359 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8361 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8362 for (key in S) S_is_set[key] = 1
8368 nfields = split(line, field, "@")
8370 len = length(field[1])
8371 for (i = 2; i < nfields; i++) {
8373 keylen = length(key)
8374 if (S_is_set[key]) {
8376 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8377 len += length(value) + length(field[++i])
8388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8389 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8390 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8393 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8394 || as_fn_error "could not setup config files machinery" "$LINENO" 5
8397 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8398 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8399 # trailing colons and then remove the whole line if VPATH becomes empty
8400 # (actually we leave an empty line to preserve line numbers).
8401 if test "x$srcdir" = x.; then
8402 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8406 s/^\([^=]*=[ ]*\):*/\1/
8412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8413 fi # test -n "$CONFIG_FILES"
8415 # Set up the scripts for CONFIG_HEADERS section.
8416 # No need to generate them if there are no CONFIG_HEADERS.
8417 # This happens for instance with `./config.status Makefile'.
8418 if test -n "$CONFIG_HEADERS"; then
8419 cat >"$tmp/defines.awk" <<\_ACAWK ||
8423 # Transform confdefs.h into an awk script `defines.awk', embedded as
8424 # here-document in config.status, that substitutes the proper values into
8425 # config.h.in to produce config.h.
8427 # Create a delimiter string that does not exist in confdefs.h, to ease
8428 # handling of long lines.
8430 for ac_last_try in false false :; do
8431 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8432 if test -z "$ac_t"; then
8434 elif $ac_last_try; then
8435 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
8437 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8441 # For the awk script, D is an array of macro values keyed by name,
8442 # likewise P contains macro parameters if any. Preserve backslash
8443 # newline sequences.
8445 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8447 s/.\{148\}/&'"$ac_delim"'/g
8450 s/^[ ]*#[ ]*define[ ][ ]*/ /
8457 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8459 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8463 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8464 D["\1"]=" \3\\\\\\n"\\/p
8466 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8471 s/.\{148\}/&'"$ac_delim"'/g
8476 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8479 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8481 ' <confdefs.h | sed '
8482 s/'"$ac_delim"'/"\\\
8483 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8486 for (key in D) D_is_set[key] = 1
8489 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8491 split(line, arg, " ")
8492 if (arg[1] == "#") {
8496 defundef = substr(arg[1], 2)
8499 split(mac1, mac2, "(") #)
8501 prefix = substr(line, 1, index(line, defundef) - 1)
8502 if (D_is_set[macro]) {
8503 # Preserve the white space surrounding the "#".
8504 print prefix "define", macro P[macro] D[macro]
8507 # Replace #undef with comments. This is necessary, for example,
8508 # in the case of _POSIX_SOURCE, which is predefined and required
8509 # on some systems where configure will not decide to define it.
8510 if (defundef == "undef") {
8511 print "/*", prefix defundef, macro, "*/"
8519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8520 as_fn_error "could not setup config headers machinery" "$LINENO" 5
8521 fi # test -n "$CONFIG_HEADERS"
8524 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8529 :[FHLC]) ac_mode=$ac_tag; continue;;
8531 case $ac_mode$ac_tag in
8533 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
8534 :[FH]-) ac_tag=-:-;;
8535 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8552 -) ac_f="$tmp/stdin";;
8553 *) # Look for the file first in the build tree, then in the source tree
8554 # (if the path is not absolute). The absolute path cannot be DOS-style,
8555 # because $ac_f cannot contain `:'.
8559 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8561 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8563 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8564 as_fn_append ac_file_inputs " '$ac_f'"
8567 # Let's still pretend it is `configure' which instantiates (i.e., don't
8568 # use $as_me), people would be surprised to read:
8569 # /* config.h. Generated by config.status. */
8570 configure_input='Generated from '`
8571 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8573 if test x"$ac_file" != x-; then
8574 configure_input="$ac_file. $configure_input"
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8576 $as_echo "$as_me: creating $ac_file" >&6;}
8578 # Neutralize special characters interpreted by sed in replacement strings.
8579 case $configure_input in #(
8580 *\&* | *\|* | *\\* )
8581 ac_sed_conf_input=`$as_echo "$configure_input" |
8582 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8583 *) ac_sed_conf_input=$configure_input;;
8587 *:-:* | *:-) cat >"$tmp/stdin" \
8588 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
8593 ac_dir=`$as_dirname -- "$ac_file" ||
8594 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8595 X"$ac_file" : 'X\(//\)[^/]' \| \
8596 X"$ac_file" : 'X\(//\)$' \| \
8597 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8598 $as_echo X"$ac_file" |
8599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8616 as_dir="$ac_dir"; as_fn_mkdir_p
8620 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8622 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8623 # A ".." for each directory in $ac_dir_suffix.
8624 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8625 case $ac_top_builddir_sub in
8626 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8627 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8630 ac_abs_top_builddir=$ac_pwd
8631 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8632 # for backward compatibility:
8633 ac_top_builddir=$ac_top_build_prefix
8636 .) # We are building in place.
8638 ac_top_srcdir=$ac_top_builddir_sub
8639 ac_abs_top_srcdir=$ac_pwd ;;
8640 [\\/]* | ?:[\\/]* ) # Absolute name.
8641 ac_srcdir=$srcdir$ac_dir_suffix;
8642 ac_top_srcdir=$srcdir
8643 ac_abs_top_srcdir=$srcdir ;;
8645 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8646 ac_top_srcdir=$ac_top_build_prefix$srcdir
8647 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8649 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8659 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8660 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8664 [\\/$]* | ?:[\\/]* ) ;;
8665 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8670 # If the template does not know about datarootdir, expand it.
8671 # FIXME: This hack should be removed a few years after 2.60.
8672 ac_datarootdir_hack=; ac_datarootdir_seen=
8683 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8684 *datarootdir*) ac_datarootdir_seen=yes;;
8685 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8687 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8689 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8690 ac_datarootdir_hack='
8691 s&@datadir@&$datadir&g
8692 s&@docdir@&$docdir&g
8693 s&@infodir@&$infodir&g
8694 s&@localedir@&$localedir&g
8695 s&@mandir@&$mandir&g
8696 s&\\\${datarootdir}&$datarootdir&g' ;;
8700 # Neutralize VPATH when `$srcdir' = `.'.
8701 # Shell code in configure.ac might set extrasub.
8702 # FIXME: do we really want to maintain this feature?
8703 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8704 ac_sed_extra="$ac_vpsub
8707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8709 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8710 s|@configure_input@|$ac_sed_conf_input|;t t
8711 s&@top_builddir@&$ac_top_builddir_sub&;t t
8712 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8713 s&@srcdir@&$ac_srcdir&;t t
8714 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8715 s&@top_srcdir@&$ac_top_srcdir&;t t
8716 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8717 s&@builddir@&$ac_builddir&;t t
8718 s&@abs_builddir@&$ac_abs_builddir&;t t
8719 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8720 s&@INSTALL@&$ac_INSTALL&;t t
8721 s&@MKDIR_P@&$ac_MKDIR_P&;t t
8722 $ac_datarootdir_hack
8724 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8725 || as_fn_error "could not create $ac_file" "$LINENO" 5
8727 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8728 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8729 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8731 which seems to be undefined. Please make sure it is defined." >&5
8732 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8733 which seems to be undefined. Please make sure it is defined." >&2;}
8737 -) cat "$tmp/out" && rm -f "$tmp/out";;
8738 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8740 || as_fn_error "could not create $ac_file" "$LINENO" 5
8746 if test x"$ac_file" != x-; then
8748 $as_echo "/* $configure_input */" \
8749 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8750 } >"$tmp/config.h" \
8751 || as_fn_error "could not create $ac_file" "$LINENO" 5
8752 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8754 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8757 mv "$tmp/config.h" "$ac_file" \
8758 || as_fn_error "could not create $ac_file" "$LINENO" 5
8761 $as_echo "/* $configure_input */" \
8762 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8763 || as_fn_error "could not create -" "$LINENO" 5
8765 # Compute "$ac_file"'s index in $config_headers.
8768 for _am_header in $config_headers :; do
8770 $_am_arg | $_am_arg:* )
8773 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8776 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8777 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8778 X"$_am_arg" : 'X\(//\)[^/]' \| \
8779 X"$_am_arg" : 'X\(//\)$' \| \
8780 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8781 $as_echo X"$_am_arg" |
8782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8798 s/.*/./; q'`/stamp-h$_am_stamp_count
8801 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8802 $as_echo "$as_me: executing $ac_file commands" >&6;}
8807 case $ac_file$ac_mode in
8808 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
8809 # are listed without --file. Let's play safe and only enable the eval
8810 # if we detect the quoting.
8811 case $CONFIG_FILES in
8812 *\'*) eval set x "$CONFIG_FILES" ;;
8813 *) set x $CONFIG_FILES ;;
8818 # Strip MF so we end up with the name of the file.
8819 mf=`echo "$mf" | sed -e 's/:.*$//'`
8820 # Check whether this is an Automake generated Makefile or not.
8821 # We used to match only the files named `Makefile.in', but
8822 # some people rename them; so instead we look at the file content.
8823 # Grep'ing the first line is not enough: some people post-process
8824 # each Makefile.in and add a new line on top of each file to say so.
8825 # Grep'ing the whole file is not good either: AIX grep has a line
8826 # limit of 2048, but all sed's we know have understand at least 4000.
8827 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8828 dirpart=`$as_dirname -- "$mf" ||
8829 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8830 X"$mf" : 'X\(//\)[^/]' \| \
8831 X"$mf" : 'X\(//\)$' \| \
8832 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8834 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8854 # Extract the definition of DEPDIR, am__include, and am__quote
8855 # from the Makefile without running `make'.
8856 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8857 test -z "$DEPDIR" && continue
8858 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8859 test -z "am__include" && continue
8860 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8861 # When using ansi2knr, U may be empty or an underscore; expand it
8862 U=`sed -n 's/^U = //p' < "$mf"`
8863 # Find all dependency output files, they are included files with
8864 # $(DEPDIR) in their names. We invoke sed twice because it is the
8865 # simplest approach to changing $(DEPDIR) to its actual value in the
8867 for file in `sed -n "
8868 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8869 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8870 # Make sure the directory exists.
8871 test -f "$dirpart/$file" && continue
8872 fdir=`$as_dirname -- "$file" ||
8873 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8874 X"$file" : 'X\(//\)[^/]' \| \
8875 X"$file" : 'X\(//\)$' \| \
8876 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8895 as_dir=$dirpart/$fdir; as_fn_mkdir_p
8896 # echo "creating $dirpart/$file"
8897 echo '# dummy' > "$dirpart/$file"
8908 ac_clean_files=$ac_clean_files_save
8910 test $ac_write_fail = 0 ||
8911 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8914 # configure is writing to config.log, and then calls config.status.
8915 # config.status does its own redirection, appending to config.log.
8916 # Unfortunately, on DOS this fails, as config.log is still kept open
8917 # by configure, so config.status won't be able to write to it; its
8918 # output is simply discarded. So we exec the FD to /dev/null,
8919 # effectively closing config.log, so it can be properly (re)opened and
8920 # appended to by config.status. When coming back to configure, we
8921 # need to make the FD available again.
8922 if test "$no_create" != yes; then
8924 ac_config_status_args=
8925 test "$silent" = yes &&
8926 ac_config_status_args="$ac_config_status_args --quiet"
8928 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8930 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8931 # would make configure fail if this is the last instruction.
8932 $ac_cs_success || as_fn_exit $?
8934 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8936 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}