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
671 INSTALL_STRIP_PROGRAM
686 MAINTAINER_MODE_FALSE
715 program_transform_name
728 enable_option_checking
729 enable_maintainer_mode
730 enable_dependency_tracking
732 enable_verbose_warnings
746 ac_precious_vars='build_alias
761 # Initialize some variables set by options.
763 ac_init_version=false
764 ac_unrecognized_opts=
766 # The variables have the same names as the options, with
767 # dashes changed to underlines.
775 program_transform_name=s,x,x,
783 # Installation directory options.
784 # These are left unexpanded so users can "make install exec_prefix=/foo"
785 # and all the variables that are supposed to be based on exec_prefix
786 # by default will actually change.
787 # Use braces instead of parens because sh, perl, etc. also accept them.
788 # (The list follows the same order as the GNU Coding Standards.)
789 bindir='${exec_prefix}/bin'
790 sbindir='${exec_prefix}/sbin'
791 libexecdir='${exec_prefix}/libexec'
792 datarootdir='${prefix}/share'
793 datadir='${datarootdir}'
794 sysconfdir='${prefix}/etc'
795 sharedstatedir='${prefix}/com'
796 localstatedir='${prefix}/var'
797 includedir='${prefix}/include'
798 oldincludedir='/usr/include'
799 docdir='${datarootdir}/doc/${PACKAGE}'
800 infodir='${datarootdir}/info'
805 libdir='${exec_prefix}/lib'
806 localedir='${datarootdir}/locale'
807 mandir='${datarootdir}/man'
813 # If the previous option needs an argument, assign it.
814 if test -n "$ac_prev"; then
815 eval $ac_prev=\$ac_option
821 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
825 # Accept the important Cygnus configure options, so we can diagnose typos.
827 case $ac_dashdash$ac_option in
831 -bindir | --bindir | --bindi | --bind | --bin | --bi)
833 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
836 -build | --build | --buil | --bui | --bu)
837 ac_prev=build_alias ;;
838 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
839 build_alias=$ac_optarg ;;
841 -cache-file | --cache-file | --cache-fil | --cache-fi \
842 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
843 ac_prev=cache_file ;;
844 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
845 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
846 cache_file=$ac_optarg ;;
849 cache_file=config.cache ;;
851 -datadir | --datadir | --datadi | --datad)
853 -datadir=* | --datadir=* | --datadi=* | --datad=*)
854 datadir=$ac_optarg ;;
856 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
857 | --dataroo | --dataro | --datar)
858 ac_prev=datarootdir ;;
859 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
860 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
861 datarootdir=$ac_optarg ;;
863 -disable-* | --disable-*)
864 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
865 # Reject names that are not valid shell variable names.
866 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
867 as_fn_error "invalid feature name: $ac_useropt"
868 ac_useropt_orig=$ac_useropt
869 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
870 case $ac_user_opts in
874 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
875 ac_unrecognized_sep=', ';;
877 eval enable_$ac_useropt=no ;;
879 -docdir | --docdir | --docdi | --doc | --do)
881 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
884 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
886 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
889 -enable-* | --enable-*)
890 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
891 # Reject names that are not valid shell variable names.
892 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893 as_fn_error "invalid feature name: $ac_useropt"
894 ac_useropt_orig=$ac_useropt
895 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896 case $ac_user_opts in
900 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
901 ac_unrecognized_sep=', ';;
903 eval enable_$ac_useropt=\$ac_optarg ;;
905 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
906 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
907 | --exec | --exe | --ex)
908 ac_prev=exec_prefix ;;
909 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
910 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
911 | --exec=* | --exe=* | --ex=*)
912 exec_prefix=$ac_optarg ;;
914 -gas | --gas | --ga | --g)
915 # Obsolete; use --with-gas.
918 -help | --help | --hel | --he | -h)
920 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
921 ac_init_help=recursive ;;
922 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
923 ac_init_help=short ;;
925 -host | --host | --hos | --ho)
926 ac_prev=host_alias ;;
927 -host=* | --host=* | --hos=* | --ho=*)
928 host_alias=$ac_optarg ;;
930 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
932 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
934 htmldir=$ac_optarg ;;
936 -includedir | --includedir | --includedi | --included | --include \
937 | --includ | --inclu | --incl | --inc)
938 ac_prev=includedir ;;
939 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
940 | --includ=* | --inclu=* | --incl=* | --inc=*)
941 includedir=$ac_optarg ;;
943 -infodir | --infodir | --infodi | --infod | --info | --inf)
945 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
946 infodir=$ac_optarg ;;
948 -libdir | --libdir | --libdi | --libd)
950 -libdir=* | --libdir=* | --libdi=* | --libd=*)
953 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
954 | --libexe | --libex | --libe)
955 ac_prev=libexecdir ;;
956 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
957 | --libexe=* | --libex=* | --libe=*)
958 libexecdir=$ac_optarg ;;
960 -localedir | --localedir | --localedi | --localed | --locale)
962 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
963 localedir=$ac_optarg ;;
965 -localstatedir | --localstatedir | --localstatedi | --localstated \
966 | --localstate | --localstat | --localsta | --localst | --locals)
967 ac_prev=localstatedir ;;
968 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
969 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
970 localstatedir=$ac_optarg ;;
972 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
974 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
978 # Obsolete; use --without-fp.
981 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
982 | --no-cr | --no-c | -n)
985 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
986 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
989 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
990 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
991 | --oldin | --oldi | --old | --ol | --o)
992 ac_prev=oldincludedir ;;
993 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
994 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
995 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
996 oldincludedir=$ac_optarg ;;
998 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1000 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1001 prefix=$ac_optarg ;;
1003 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1004 | --program-pre | --program-pr | --program-p)
1005 ac_prev=program_prefix ;;
1006 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1007 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1008 program_prefix=$ac_optarg ;;
1010 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1011 | --program-suf | --program-su | --program-s)
1012 ac_prev=program_suffix ;;
1013 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1014 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1015 program_suffix=$ac_optarg ;;
1017 -program-transform-name | --program-transform-name \
1018 | --program-transform-nam | --program-transform-na \
1019 | --program-transform-n | --program-transform- \
1020 | --program-transform | --program-transfor \
1021 | --program-transfo | --program-transf \
1022 | --program-trans | --program-tran \
1023 | --progr-tra | --program-tr | --program-t)
1024 ac_prev=program_transform_name ;;
1025 -program-transform-name=* | --program-transform-name=* \
1026 | --program-transform-nam=* | --program-transform-na=* \
1027 | --program-transform-n=* | --program-transform-=* \
1028 | --program-transform=* | --program-transfor=* \
1029 | --program-transfo=* | --program-transf=* \
1030 | --program-trans=* | --program-tran=* \
1031 | --progr-tra=* | --program-tr=* | --program-t=*)
1032 program_transform_name=$ac_optarg ;;
1034 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1036 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1037 pdfdir=$ac_optarg ;;
1039 -psdir | --psdir | --psdi | --psd | --ps)
1041 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1045 | -silent | --silent | --silen | --sile | --sil)
1048 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1050 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1052 sbindir=$ac_optarg ;;
1054 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1055 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1056 | --sharedst | --shareds | --shared | --share | --shar \
1058 ac_prev=sharedstatedir ;;
1059 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1060 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1061 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1063 sharedstatedir=$ac_optarg ;;
1065 -site | --site | --sit)
1067 -site=* | --site=* | --sit=*)
1070 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1072 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1073 srcdir=$ac_optarg ;;
1075 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1076 | --syscon | --sysco | --sysc | --sys | --sy)
1077 ac_prev=sysconfdir ;;
1078 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1079 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1080 sysconfdir=$ac_optarg ;;
1082 -target | --target | --targe | --targ | --tar | --ta | --t)
1083 ac_prev=target_alias ;;
1084 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1085 target_alias=$ac_optarg ;;
1087 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1090 -version | --version | --versio | --versi | --vers | -V)
1091 ac_init_version=: ;;
1094 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1095 # Reject names that are not valid shell variable names.
1096 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1097 as_fn_error "invalid package name: $ac_useropt"
1098 ac_useropt_orig=$ac_useropt
1099 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1100 case $ac_user_opts in
1104 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1105 ac_unrecognized_sep=', ';;
1107 eval with_$ac_useropt=\$ac_optarg ;;
1109 -without-* | --without-*)
1110 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1113 as_fn_error "invalid package name: $ac_useropt"
1114 ac_useropt_orig=$ac_useropt
1115 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116 case $ac_user_opts in
1120 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1121 ac_unrecognized_sep=', ';;
1123 eval with_$ac_useropt=no ;;
1126 # Obsolete; use --with-x.
1129 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1130 | --x-incl | --x-inc | --x-in | --x-i)
1131 ac_prev=x_includes ;;
1132 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1133 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1134 x_includes=$ac_optarg ;;
1136 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1137 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1138 ac_prev=x_libraries ;;
1139 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1140 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1141 x_libraries=$ac_optarg ;;
1143 -*) as_fn_error "unrecognized option: \`$ac_option'
1144 Try \`$0 --help' for more information."
1148 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1149 # Reject names that are not valid shell variable names.
1150 case $ac_envvar in #(
1151 '' | [0-9]* | *[!_$as_cr_alnum]* )
1152 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1154 eval $ac_envvar=\$ac_optarg
1155 export $ac_envvar ;;
1158 # FIXME: should be removed in autoconf 3.0.
1159 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1160 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1161 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1162 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1168 if test -n "$ac_prev"; then
1169 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1170 as_fn_error "missing argument to $ac_option"
1173 if test -n "$ac_unrecognized_opts"; then
1174 case $enable_option_checking in
1176 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1177 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1181 # Check all directory arguments for consistency.
1182 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1183 datadir sysconfdir sharedstatedir localstatedir includedir \
1184 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1185 libdir localedir mandir
1187 eval ac_val=\$$ac_var
1188 # Remove trailing slashes.
1191 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1192 eval $ac_var=\$ac_val;;
1194 # Be sure to have absolute directory names.
1196 [\\/$]* | ?:[\\/]* ) continue;;
1197 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1199 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1202 # There might be people who depend on the old broken behavior: `$host'
1203 # used to hold the argument of --host etc.
1204 # FIXME: To remove some day.
1207 target=$target_alias
1209 # FIXME: To remove some day.
1210 if test "x$host_alias" != x; then
1211 if test "x$build_alias" = x; then
1212 cross_compiling=maybe
1213 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1214 If a cross compiler is detected then cross compile mode will be used." >&2
1215 elif test "x$build_alias" != "x$host_alias"; then
1221 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1223 test "$silent" = yes && exec 6>/dev/null
1226 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1227 ac_ls_di=`ls -di .` &&
1228 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1229 as_fn_error "working directory cannot be determined"
1230 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1231 as_fn_error "pwd does not report name of working directory"
1234 # Find the source files, if location was not specified.
1235 if test -z "$srcdir"; then
1236 ac_srcdir_defaulted=yes
1237 # Try the directory containing this script, then the parent directory.
1238 ac_confdir=`$as_dirname -- "$as_myself" ||
1239 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1240 X"$as_myself" : 'X\(//\)[^/]' \| \
1241 X"$as_myself" : 'X\(//\)$' \| \
1242 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1243 $as_echo X"$as_myself" |
1244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262 if test ! -r "$srcdir/$ac_unique_file"; then
1266 ac_srcdir_defaulted=no
1268 if test ! -r "$srcdir/$ac_unique_file"; then
1269 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1270 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1272 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1274 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1276 # When building in place, set srcdir=.
1277 if test "$ac_abs_confdir" = "$ac_pwd"; then
1280 # Remove unnecessary trailing slashes from srcdir.
1281 # Double slashes in file names in object file debugging info
1282 # mess up M-x gdb in Emacs.
1284 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1286 for ac_var in $ac_precious_vars; do
1287 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1288 eval ac_env_${ac_var}_value=\$${ac_var}
1289 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1290 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1294 # Report the --help message.
1296 if test "$ac_init_help" = "long"; then
1297 # Omit some internal or obsolete options to make the list less imposing.
1298 # This message is too long to be a string in the A/UX 3.1 sh.
1300 \`configure' configures this package to adapt to many kinds of systems.
1302 Usage: $0 [OPTION]... [VAR=VALUE]...
1304 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1305 VAR=VALUE. See below for descriptions of some of the useful variables.
1307 Defaults for the options are specified in brackets.
1310 -h, --help display this help and exit
1311 --help=short display options specific to this package
1312 --help=recursive display the short help of all the included packages
1313 -V, --version display version information and exit
1314 -q, --quiet, --silent do not print \`checking...' messages
1315 --cache-file=FILE cache test results in FILE [disabled]
1316 -C, --config-cache alias for \`--cache-file=config.cache'
1317 -n, --no-create do not create output files
1318 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1320 Installation directories:
1321 --prefix=PREFIX install architecture-independent files in PREFIX
1322 [$ac_default_prefix]
1323 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1326 By default, \`make install' will install all the files in
1327 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1328 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1329 for instance \`--prefix=\$HOME'.
1331 For better control, use the options below.
1333 Fine tuning of the installation directories:
1334 --bindir=DIR user executables [EPREFIX/bin]
1335 --sbindir=DIR system admin executables [EPREFIX/sbin]
1336 --libexecdir=DIR program executables [EPREFIX/libexec]
1337 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1338 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1339 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1340 --libdir=DIR object code libraries [EPREFIX/lib]
1341 --includedir=DIR C header files [PREFIX/include]
1342 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1343 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1344 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1345 --infodir=DIR info documentation [DATAROOTDIR/info]
1346 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1347 --mandir=DIR man documentation [DATAROOTDIR/man]
1348 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1349 --htmldir=DIR html documentation [DOCDIR]
1350 --dvidir=DIR dvi documentation [DOCDIR]
1351 --pdfdir=DIR pdf documentation [DOCDIR]
1352 --psdir=DIR ps documentation [DOCDIR]
1358 --program-prefix=PREFIX prepend PREFIX to installed program names
1359 --program-suffix=SUFFIX append SUFFIX to installed program names
1360 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1363 --x-includes=DIR X include files are in DIR
1364 --x-libraries=DIR X library files are in DIR
1367 --build=BUILD configure for building on BUILD [guessed]
1368 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1372 if test -n "$ac_init_help"; then
1377 --disable-option-checking ignore unrecognized --enable/--with options
1378 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1379 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1380 --enable-maintainer-mode enable make rules and dependencies not useful
1381 (and sometimes confusing) to the casual installer
1382 --disable-dependency-tracking speeds up one-time build
1383 --enable-dependency-tracking do not reject slow dependency extractors
1384 --enable-debug Turn on debugging
1385 --enable-verbose-warnings
1386 Enable verbose compiler warnings.
1388 Enable static executables.
1389 --enable-dmalloc Use dmalloc memory allocation
1390 --enable-efence Use ElectricFence memory allocation
1393 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1394 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1395 --with-lam=PATH Set path of LAM MPI
1396 --with-ctn=PATH Set path of CTN DICOM library
1397 --with-mcpu=CPU Set name of CPU for gcc -mcpu
1398 --with-cgibin-dir=PATH Set path of CGI binaries directory
1399 --with-cgibin-url=PATH Set URL path of CGI binaries
1400 --with-webdata-dir=PATH Set path of webdata
1401 --with-webdata-url=PATH Set URL path of webdata
1402 --with-html-dir=PATH Set directory of html files
1403 --with-x use the X Window System
1405 Some influential environment variables:
1406 CC C compiler command
1407 CFLAGS C compiler flags
1408 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1409 nonstandard directory <lib dir>
1410 LIBS libraries to pass to the linker, e.g. -l<library>
1411 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1412 you have headers in a nonstandard directory <include dir>
1413 CXX C++ compiler command
1414 CXXFLAGS C++ compiler flags
1416 XMKMF Path to xmkmf, Makefile generator for X Window System
1418 Use these variables to override the choices made by `configure' or to help
1419 it to find libraries and programs with nonstandard names/locations.
1421 Report bugs to the package provider.
1426 if test "$ac_init_help" = "recursive"; then
1427 # If there are subdirs, report their specific --help.
1428 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1429 test -d "$ac_dir" ||
1430 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1435 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1437 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1438 # A ".." for each directory in $ac_dir_suffix.
1439 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1440 case $ac_top_builddir_sub in
1441 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1442 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1445 ac_abs_top_builddir=$ac_pwd
1446 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1447 # for backward compatibility:
1448 ac_top_builddir=$ac_top_build_prefix
1451 .) # We are building in place.
1453 ac_top_srcdir=$ac_top_builddir_sub
1454 ac_abs_top_srcdir=$ac_pwd ;;
1455 [\\/]* | ?:[\\/]* ) # Absolute name.
1456 ac_srcdir=$srcdir$ac_dir_suffix;
1457 ac_top_srcdir=$srcdir
1458 ac_abs_top_srcdir=$srcdir ;;
1460 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1461 ac_top_srcdir=$ac_top_build_prefix$srcdir
1462 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1464 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1466 cd "$ac_dir" || { ac_status=$?; continue; }
1467 # Check for guested configure.
1468 if test -f "$ac_srcdir/configure.gnu"; then
1470 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1471 elif test -f "$ac_srcdir/configure"; then
1473 $SHELL "$ac_srcdir/configure" --help=recursive
1475 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1477 cd "$ac_pwd" || { ac_status=$?; break; }
1481 test -n "$ac_init_help" && exit $ac_status
1482 if $ac_init_version; then
1485 generated by GNU Autoconf 2.64
1487 Copyright (C) 2009 Free Software Foundation, Inc.
1488 This configure script is free software; the Free Software Foundation
1489 gives unlimited permission to copy, distribute and modify it.
1494 ## ------------------------ ##
1495 ## Autoconf initialization. ##
1496 ## ------------------------ ##
1498 # ac_fn_c_try_compile LINENO
1499 # --------------------------
1500 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1501 ac_fn_c_try_compile ()
1503 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1504 rm -f conftest.$ac_objext
1505 if { { ac_try="$ac_compile"
1507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1508 *) ac_try_echo=$ac_try;;
1510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1511 $as_echo "$ac_try_echo"; } >&5
1512 (eval "$ac_compile") 2>conftest.err
1514 if test -s conftest.err; then
1515 grep -v '^ *+' conftest.err >conftest.er1
1516 cat conftest.er1 >&5
1517 mv -f conftest.er1 conftest.err
1519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1520 test $ac_status = 0; } && {
1521 test -z "$ac_c_werror_flag" ||
1522 test ! -s conftest.err
1523 } && test -s conftest.$ac_objext; then :
1526 $as_echo "$as_me: failed program was:" >&5
1527 sed 's/^/| /' conftest.$ac_ext >&5
1531 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1534 } # ac_fn_c_try_compile
1536 # ac_fn_cxx_try_compile LINENO
1537 # ----------------------------
1538 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1539 ac_fn_cxx_try_compile ()
1541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1542 rm -f conftest.$ac_objext
1543 if { { ac_try="$ac_compile"
1545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1546 *) ac_try_echo=$ac_try;;
1548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1549 $as_echo "$ac_try_echo"; } >&5
1550 (eval "$ac_compile") 2>conftest.err
1552 if test -s conftest.err; then
1553 grep -v '^ *+' conftest.err >conftest.er1
1554 cat conftest.er1 >&5
1555 mv -f conftest.er1 conftest.err
1557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1558 test $ac_status = 0; } && {
1559 test -z "$ac_cxx_werror_flag" ||
1560 test ! -s conftest.err
1561 } && test -s conftest.$ac_objext; then :
1564 $as_echo "$as_me: failed program was:" >&5
1565 sed 's/^/| /' conftest.$ac_ext >&5
1569 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1572 } # ac_fn_cxx_try_compile
1574 # ac_fn_c_try_run LINENO
1575 # ----------------------
1576 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1577 # that executables *can* be run.
1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581 if { { ac_try="$ac_link"
1583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584 *) ac_try_echo=$ac_try;;
1586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587 $as_echo "$ac_try_echo"; } >&5
1588 (eval "$ac_link") 2>&5
1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1592 { { case "(($ac_try" in
1593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594 *) ac_try_echo=$ac_try;;
1596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597 $as_echo "$ac_try_echo"; } >&5
1598 (eval "$ac_try") 2>&5
1600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1601 test $ac_status = 0; }; }; then :
1604 $as_echo "$as_me: program exited with status $ac_status" >&5
1605 $as_echo "$as_me: failed program was:" >&5
1606 sed 's/^/| /' conftest.$ac_ext >&5
1608 ac_retval=$ac_status
1610 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1611 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1616 # ac_fn_c_try_cpp LINENO
1617 # ----------------------
1618 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 if { { ac_try="$ac_cpp conftest.$ac_ext"
1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625 *) ac_try_echo=$ac_try;;
1627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628 $as_echo "$ac_try_echo"; } >&5
1629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1631 if test -s conftest.err; then
1632 grep -v '^ *+' conftest.err >conftest.er1
1633 cat conftest.er1 >&5
1634 mv -f conftest.er1 conftest.err
1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 test $ac_status = 0; } >/dev/null && {
1638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1639 test ! -s conftest.err
1643 $as_echo "$as_me: failed program was:" >&5
1644 sed 's/^/| /' conftest.$ac_ext >&5
1648 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1653 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1654 # -------------------------------------------------------
1655 # Tests whether HEADER exists and can be compiled using the include files in
1656 # INCLUDES, setting the cache variable VAR accordingly.
1657 ac_fn_c_check_header_compile ()
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1661 $as_echo_n "checking for $2... " >&6; }
1662 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1663 $as_echo_n "(cached) " >&6
1665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666 /* end confdefs.h. */
1670 if ac_fn_c_try_compile "$LINENO"; then :
1675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1679 $as_echo "$ac_res" >&6; }
1680 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1682 } # ac_fn_c_check_header_compile
1684 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1685 # --------------------------------------------
1686 # Tries to find the compile-time value of EXPR in a program that includes
1687 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1689 ac_fn_c_compute_int ()
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 if test "$cross_compiling" = yes; then
1693 # Depending upon the size, compute the lo and hi bounds.
1694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1695 /* end confdefs.h. */
1700 static int test_array [1 - 2 * !(($2) >= 0)];
1707 if ac_fn_c_try_compile "$LINENO"; then :
1710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1711 /* end confdefs.h. */
1716 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1723 if ac_fn_c_try_compile "$LINENO"; then :
1724 ac_hi=$ac_mid; break
1726 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1727 if test $ac_lo -le $ac_mid; then
1731 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737 /* end confdefs.h. */
1742 static int test_array [1 - 2 * !(($2) < 0)];
1749 if ac_fn_c_try_compile "$LINENO"; then :
1752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1753 /* end confdefs.h. */
1758 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1765 if ac_fn_c_try_compile "$LINENO"; then :
1766 ac_lo=$ac_mid; break
1768 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1769 if test $ac_mid -le $ac_hi; then
1773 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1783 # Binary search between lo and hi bounds.
1784 while test "x$ac_lo" != "x$ac_hi"; do
1785 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787 /* end confdefs.h. */
1792 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1799 if ac_fn_c_try_compile "$LINENO"; then :
1802 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1807 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812 /* end confdefs.h. */
1814 static long int longval () { return $2; }
1815 static unsigned long int ulongval () { return $2; }
1822 FILE *f = fopen ("conftest.val", "w");
1827 long int i = longval ();
1830 fprintf (f, "%ld", i);
1834 unsigned long int i = ulongval ();
1837 fprintf (f, "%lu", i);
1839 /* Do not output a trailing newline, as this causes \r\n confusion
1840 on some platforms. */
1841 return ferror (f) || fclose (f) != 0;
1847 if ac_fn_c_try_run "$LINENO"; then :
1848 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1853 conftest.$ac_objext conftest.beam conftest.$ac_ext
1857 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1860 } # ac_fn_c_compute_int
1862 # ac_fn_c_try_link LINENO
1863 # -----------------------
1864 # Try to link conftest.$ac_ext, and return whether this succeeded.
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 rm -f conftest.$ac_objext conftest$ac_exeext
1869 if { { ac_try="$ac_link"
1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872 *) ac_try_echo=$ac_try;;
1874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875 $as_echo "$ac_try_echo"; } >&5
1876 (eval "$ac_link") 2>conftest.err
1878 if test -s conftest.err; then
1879 grep -v '^ *+' conftest.err >conftest.er1
1880 cat conftest.er1 >&5
1881 mv -f conftest.er1 conftest.err
1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884 test $ac_status = 0; } && {
1885 test -z "$ac_c_werror_flag" ||
1886 test ! -s conftest.err
1887 } && test -s conftest$ac_exeext && {
1888 test "$cross_compiling" = yes ||
1889 $as_test_x conftest$ac_exeext
1893 $as_echo "$as_me: failed program was:" >&5
1894 sed 's/^/| /' conftest.$ac_ext >&5
1898 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1899 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1900 # interfere with the next link command; also delete a directory that is
1901 # left behind by Apple's compiler. We do this before executing the actions.
1902 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1903 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1906 } # ac_fn_c_try_link
1908 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1909 # -------------------------------------------------------
1910 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1911 # the include files in INCLUDES and setting the cache variable VAR
1913 ac_fn_c_check_header_mongrel ()
1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1918 $as_echo_n "checking for $2... " >&6; }
1919 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1920 $as_echo_n "(cached) " >&6
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924 $as_echo "$ac_res" >&6; }
1926 # Is the header compilable?
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1928 $as_echo_n "checking $2 usability... " >&6; }
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h. */
1934 if ac_fn_c_try_compile "$LINENO"; then :
1935 ac_header_compiler=yes
1937 ac_header_compiler=no
1939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1941 $as_echo "$ac_header_compiler" >&6; }
1943 # Is the header present?
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1945 $as_echo_n "checking $2 presence... " >&6; }
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h. */
1950 if ac_fn_c_try_cpp "$LINENO"; then :
1951 ac_header_preproc=yes
1953 ac_header_preproc=no
1955 rm -f conftest.err conftest.$ac_ext
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1957 $as_echo "$ac_header_preproc" >&6; }
1959 # So? What about this header?
1960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1963 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1965 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1969 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1971 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1973 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1975 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1977 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1981 $as_echo_n "checking for $2... " >&6; }
1982 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1983 $as_echo_n "(cached) " >&6
1985 eval "$3=\$ac_header_compiler"
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1989 $as_echo "$ac_res" >&6; }
1991 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1993 } # ac_fn_c_check_header_mongrel
1995 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1996 # -------------------------------------------
1997 # Tests whether TYPE exists after having included INCLUDES, setting cache
1998 # variable VAR accordingly.
1999 ac_fn_c_check_type ()
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2003 $as_echo_n "checking for $2... " >&6; }
2004 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2005 $as_echo_n "(cached) " >&6
2008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009 /* end confdefs.h. */
2020 if ac_fn_c_try_compile "$LINENO"; then :
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2033 if ac_fn_c_try_compile "$LINENO"; then :
2038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2044 $as_echo "$ac_res" >&6; }
2045 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2047 } # ac_fn_c_check_type
2049 # ac_fn_c_check_func LINENO FUNC VAR
2050 # ----------------------------------
2051 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2052 ac_fn_c_check_func ()
2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2056 $as_echo_n "checking for $2... " >&6; }
2057 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2058 $as_echo_n "(cached) " >&6
2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h. */
2062 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2064 #define $2 innocuous_$2
2066 /* System header to define __stub macros and hopefully few prototypes,
2067 which can conflict with char $2 (); below.
2068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2069 <limits.h> exists even on freestanding compilers. */
2072 # include <limits.h>
2074 # include <assert.h>
2079 /* Override any GCC internal prototype to avoid an error.
2080 Use char because int might match the return type of a GCC
2081 builtin and then its argument prototype would still apply. */
2086 /* The GNU C library defines this for functions which it implements
2087 to always fail with ENOSYS. Some functions are actually named
2088 something starting with __ and the normal name is an alias. */
2089 #if defined __stub_$2 || defined __stub___$2
2101 if ac_fn_c_try_link "$LINENO"; then :
2106 rm -f core conftest.err conftest.$ac_objext \
2107 conftest$ac_exeext conftest.$ac_ext
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2111 $as_echo "$ac_res" >&6; }
2112 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2114 } # ac_fn_c_check_func
2115 cat >config.log <<_ACEOF
2116 This file contains any messages produced by compilers while
2117 running configure, to aid debugging if configure makes a mistake.
2119 It was created by $as_me, which was
2120 generated by GNU Autoconf 2.64. Invocation command line was
2132 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2133 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2134 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2135 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2136 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2138 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2139 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2141 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2142 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2143 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2144 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2145 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2146 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2147 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155 test -z "$as_dir" && as_dir=.
2156 $as_echo "PATH: $as_dir"
2172 # Keep a trace of the command line.
2173 # Strip out --no-create and --no-recursion so they do not pile up.
2174 # Strip out --silent because we don't want to record it for future runs.
2175 # Also quote any args containing shell meta-characters.
2176 # Make two passes to allow for proper duplicate-argument suppression.
2180 ac_must_keep_next=false
2186 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2187 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2188 | -silent | --silent | --silen | --sile | --sil)
2191 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2194 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2196 as_fn_append ac_configure_args1 " '$ac_arg'"
2197 if test $ac_must_keep_next = true; then
2198 ac_must_keep_next=false # Got value, back to normal.
2201 *=* | --config-cache | -C | -disable-* | --disable-* \
2202 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2203 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2204 | -with-* | --with-* | -without-* | --without-* | --x)
2205 case "$ac_configure_args0 " in
2206 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2209 -* ) ac_must_keep_next=true ;;
2212 as_fn_append ac_configure_args " '$ac_arg'"
2217 { ac_configure_args0=; unset ac_configure_args0;}
2218 { ac_configure_args1=; unset ac_configure_args1;}
2220 # When interrupted or exit'd, cleanup temporary files, and complete
2221 # config.log. We remove comments because anyway the quotes in there
2222 # would cause problems or look ugly.
2223 # WARNING: Use '\'' to represent an apostrophe within the trap.
2224 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2225 trap 'exit_status=$?
2226 # Save into config.log some information that might help in debugging.
2231 ## ---------------- ##
2232 ## Cache variables. ##
2233 ## ---------------- ##
2236 # The following way of writing the cache mishandles newlines in values,
2238 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2239 eval ac_val=\$$ac_var
2243 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2244 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2247 _ | IFS | as_nl) ;; #(
2248 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2249 *) { eval $ac_var=; unset $ac_var;} ;;
2254 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2255 *${as_nl}ac_space=\ *)
2257 "s/'\''/'\''\\\\'\'''\''/g;
2258 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2261 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2269 ## ----------------- ##
2270 ## Output variables. ##
2271 ## ----------------- ##
2274 for ac_var in $ac_subst_vars
2276 eval ac_val=\$$ac_var
2278 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2280 $as_echo "$ac_var='\''$ac_val'\''"
2284 if test -n "$ac_subst_files"; then
2286 ## ------------------- ##
2287 ## File substitutions. ##
2288 ## ------------------- ##
2291 for ac_var in $ac_subst_files
2293 eval ac_val=\$$ac_var
2295 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2297 $as_echo "$ac_var='\''$ac_val'\''"
2302 if test -s confdefs.h; then
2312 test "$ac_signal" != 0 &&
2313 $as_echo "$as_me: caught signal $ac_signal"
2314 $as_echo "$as_me: exit $exit_status"
2316 rm -f core *.core core.conftest.* &&
2317 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2320 for ac_signal in 1 2 13 15; do
2321 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2325 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2326 rm -f -r conftest* confdefs.h
2328 $as_echo "/* confdefs.h */" > confdefs.h
2330 # Predefined preprocessor variables.
2332 cat >>confdefs.h <<_ACEOF
2333 #define PACKAGE_NAME "$PACKAGE_NAME"
2336 cat >>confdefs.h <<_ACEOF
2337 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2340 cat >>confdefs.h <<_ACEOF
2341 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2344 cat >>confdefs.h <<_ACEOF
2345 #define PACKAGE_STRING "$PACKAGE_STRING"
2348 cat >>confdefs.h <<_ACEOF
2349 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2352 cat >>confdefs.h <<_ACEOF
2353 #define PACKAGE_URL "$PACKAGE_URL"
2357 # Let the site file select an alternate cache file if it wants to.
2358 # Prefer an explicitly selected file to automatically selected ones.
2361 if test -n "$CONFIG_SITE"; then
2362 ac_site_file1=$CONFIG_SITE
2363 elif test "x$prefix" != xNONE; then
2364 ac_site_file1=$prefix/share/config.site
2365 ac_site_file2=$prefix/etc/config.site
2367 ac_site_file1=$ac_default_prefix/share/config.site
2368 ac_site_file2=$ac_default_prefix/etc/config.site
2370 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2372 test "x$ac_site_file" = xNONE && continue
2373 if test -r "$ac_site_file"; then
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2375 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2376 sed 's/^/| /' "$ac_site_file" >&5
2381 if test -r "$cache_file"; then
2382 # Some versions of bash will fail to source /dev/null (special
2383 # files actually), so we avoid doing that.
2384 if test -f "$cache_file"; then
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2386 $as_echo "$as_me: loading cache $cache_file" >&6;}
2388 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2389 *) . "./$cache_file";;
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2394 $as_echo "$as_me: creating cache $cache_file" >&6;}
2398 # Check that the precious variables saved in the cache have kept the same
2400 ac_cache_corrupted=false
2401 for ac_var in $ac_precious_vars; do
2402 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2403 eval ac_new_set=\$ac_env_${ac_var}_set
2404 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2405 eval ac_new_val=\$ac_env_${ac_var}_value
2406 case $ac_old_set,$ac_new_set in
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2409 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2410 ac_cache_corrupted=: ;;
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2413 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2414 ac_cache_corrupted=: ;;
2417 if test "x$ac_old_val" != "x$ac_new_val"; then
2418 # differences in whitespace do not lead to failure.
2419 ac_old_val_w=`echo x $ac_old_val`
2420 ac_new_val_w=`echo x $ac_new_val`
2421 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2423 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2424 ac_cache_corrupted=:
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2427 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2428 eval $ac_var=\$ac_old_val
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2431 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2433 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2436 # Pass precious variables to config.status.
2437 if test "$ac_new_set" = set; then
2439 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2440 *) ac_arg=$ac_var=$ac_new_val ;;
2442 case " $ac_configure_args " in
2443 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2444 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2448 if $ac_cache_corrupted; then
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2452 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2453 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2455 ## -------------------- ##
2456 ## Main body of script. ##
2457 ## -------------------- ##
2460 ac_cpp='$CPP $CPPFLAGS'
2461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2468 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2469 # Check whether --enable-maintainer-mode was given.
2470 if test "${enable_maintainer_mode+set}" = set; then :
2471 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2473 USE_MAINTAINER_MODE=no
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2477 $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.9"
2493 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2494 for ac_t in install-sh install.sh shtool; do
2495 if test -f "$ac_dir/$ac_t"; then
2497 ac_install_sh="$ac_aux_dir/$ac_t -c"
2502 if test -z "$ac_aux_dir"; then
2503 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2506 # These three variables are undocumented and unsupported,
2507 # and are intended to be withdrawn in a future Autoconf release.
2508 # They can cause serious problems if a builder's source tree is in a directory
2509 # whose full name contains unusual characters.
2510 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2511 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2512 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2515 # Find a good install program. We prefer a C program (faster),
2516 # so one script is as good as another. But avoid the broken or
2517 # incompatible versions:
2518 # SysV /etc/install, /usr/sbin/install
2519 # SunOS /usr/etc/install
2520 # IRIX /sbin/install
2522 # AmigaOS /C/install, which installs bootblocks on floppy discs
2523 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2524 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2525 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2526 # OS/2's system install, which has a completely different semantic
2527 # ./install, which can be erroneously created by make from ./install.sh.
2528 # Reject install programs that cannot install multiple files.
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2530 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2531 if test -z "$INSTALL"; then
2532 if test "${ac_cv_path_install+set}" = set; then :
2533 $as_echo_n "(cached) " >&6
2535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539 test -z "$as_dir" && as_dir=.
2540 # Account for people who put trailing slashes in PATH elements.
2541 case $as_dir/ in #((
2542 ./ | .// | /[cC]/* | \
2543 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2544 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2547 # OSF1 and SCO ODT 3.0 have their own names for install.
2548 # Don't use installbsd from OSF since it installs stuff as root
2550 for ac_prog in ginstall scoinst install; do
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2553 if test $ac_prog = install &&
2554 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2555 # AIX install. It has an incompatible calling convention.
2557 elif test $ac_prog = install &&
2558 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2559 # program-specific install script used by HP pwplus--don't use.
2562 rm -rf conftest.one conftest.two conftest.dir
2563 echo one > conftest.one
2564 echo two > conftest.two
2566 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2567 test -s conftest.one && test -s conftest.two &&
2568 test -s conftest.dir/conftest.one &&
2569 test -s conftest.dir/conftest.two
2571 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2584 rm -rf conftest.one conftest.two conftest.dir
2587 if test "${ac_cv_path_install+set}" = set; then
2588 INSTALL=$ac_cv_path_install
2590 # As a last resort, use the slow shell script. Don't cache a
2591 # value for INSTALL within a source directory, because that will
2592 # break other packages using the cache if that directory is
2593 # removed, or if the value is a relative name.
2594 INSTALL=$ac_install_sh
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2598 $as_echo "$INSTALL" >&6; }
2600 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2601 # It thinks the first close brace ends the variable substitution.
2602 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2604 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2606 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2609 $as_echo_n "checking whether build environment is sane... " >&6; }
2612 echo timestamp > conftest.file
2613 # Do `set' in a subshell so we don't clobber the current shell's
2614 # arguments. Must try -L first in case configure is actually a
2615 # symlink; some systems play weird games with the mod time of symlinks
2616 # (eg FreeBSD returns the mod time of the symlink's containing
2619 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2620 if test "$*" = "X"; then
2622 set X `ls -t $srcdir/configure conftest.file`
2625 if test "$*" != "X $srcdir/configure conftest.file" \
2626 && test "$*" != "X conftest.file $srcdir/configure"; then
2628 # If neither matched, then we have a broken ls. This can happen
2629 # if, for instance, CONFIG_SHELL is bash and it inherits a
2630 # broken ls alias from the environment. This has actually
2631 # happened. Such a system could not be considered "sane".
2632 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2633 alias in your environment" "$LINENO" 5
2636 test "$2" = conftest.file
2642 as_fn_error "newly created file is older than distributed files!
2643 Check your system clock" "$LINENO" 5
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2646 $as_echo "yes" >&6; }
2647 test "$program_prefix" != NONE &&
2648 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2649 # Use a double $ so make ignores it.
2650 test "$program_suffix" != NONE &&
2651 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2652 # Double any \ or $.
2653 # By default was `s,x,x', remove it if useless.
2654 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2655 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2657 # expand $ac_aux_dir to an absolute path
2658 am_aux_dir=`cd $ac_aux_dir && pwd`
2660 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2661 # Use eval to expand $SHELL
2662 if eval "$MISSING --run true"; then
2663 am_missing_run="$MISSING --run "
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2667 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2670 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2671 # We used to keeping the `.' as first argument, in order to
2672 # allow $(mkdir_p) to be used without argument. As in
2673 # $(mkdir_p) $(somedir)
2674 # where $(somedir) is conditionally defined. However this is wrong
2676 # 1. if the package is installed by a user who cannot write `.'
2677 # make install will fail,
2678 # 2. the above comment should most certainly read
2679 # $(mkdir_p) $(DESTDIR)$(somedir)
2680 # so it does not work when $(somedir) is undefined and
2681 # $(DESTDIR) is not.
2682 # To support the latter case, we have to write
2683 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2684 # so the `.' trick is pointless.
2685 mkdir_p='mkdir -p --'
2687 # On NextStep and OpenStep, the `mkdir' command does not
2688 # recognize any option. It will interpret all options as
2689 # directories to create, and then abort because `.' already
2691 for d in ./-p ./--version;
2693 test -d $d && rmdir $d
2695 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2696 if test -f "$ac_aux_dir/mkinstalldirs"; then
2697 mkdir_p='$(mkinstalldirs)'
2699 mkdir_p='$(install_sh) -d'
2703 for ac_prog in gawk mawk nawk awk
2705 # Extract the first word of "$ac_prog", so it can be a program name with args.
2706 set dummy $ac_prog; ac_word=$2
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2708 $as_echo_n "checking for $ac_word... " >&6; }
2709 if test "${ac_cv_prog_AWK+set}" = set; then :
2710 $as_echo_n "(cached) " >&6
2712 if test -n "$AWK"; then
2713 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719 test -z "$as_dir" && as_dir=.
2720 for ac_exec_ext in '' $ac_executable_extensions; do
2721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2722 ac_cv_prog_AWK="$ac_prog"
2723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2733 if test -n "$AWK"; then
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2735 $as_echo "$AWK" >&6; }
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2738 $as_echo "no" >&6; }
2742 test -n "$AWK" && break
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2746 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2748 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2749 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2750 $as_echo_n "(cached) " >&6
2752 cat >conftest.make <<\_ACEOF
2755 @echo '@@@%%%=$(MAKE)=@@@%%%'
2757 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2758 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2760 eval ac_cv_prog_make_${ac_make}_set=yes;;
2762 eval ac_cv_prog_make_${ac_make}_set=no;;
2766 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2768 $as_echo "yes" >&6; }
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2772 $as_echo "no" >&6; }
2773 SET_MAKE="MAKE=${MAKE-make}"
2776 rm -rf .tst 2>/dev/null
2777 mkdir .tst 2>/dev/null
2778 if test -d .tst; then
2783 rmdir .tst 2>/dev/null
2785 # test to see if srcdir already configured
2786 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2787 test -f $srcdir/config.status; then
2788 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2791 # test whether we have cygpath
2792 if test -z "$CYGPATH_W"; then
2793 if (cygpath --version) >/dev/null 2>/dev/null; then
2794 CYGPATH_W='cygpath -w'
2801 # Define the identity of the package.
2806 cat >>confdefs.h <<_ACEOF
2807 #define PACKAGE "$PACKAGE"
2811 cat >>confdefs.h <<_ACEOF
2812 #define VERSION "$VERSION"
2815 # Some tools Automake needs.
2817 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2820 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2823 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2826 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2829 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2831 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2833 # Installed binaries are usually stripped using `strip' when the user
2834 # run `make install-strip'. However `strip' might not be the right
2835 # tool to use in cross-compilation environments, therefore Automake
2836 # will honor the `STRIP' environment variable to overrule this program.
2837 if test "$cross_compiling" != no; then
2838 if test -n "$ac_tool_prefix"; then
2839 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2840 set dummy ${ac_tool_prefix}strip; ac_word=$2
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2842 $as_echo_n "checking for $ac_word... " >&6; }
2843 if test "${ac_cv_prog_STRIP+set}" = set; then :
2844 $as_echo_n "(cached) " >&6
2846 if test -n "$STRIP"; then
2847 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 test -z "$as_dir" && as_dir=.
2854 for ac_exec_ext in '' $ac_executable_extensions; do
2855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2856 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2866 STRIP=$ac_cv_prog_STRIP
2867 if test -n "$STRIP"; then
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2869 $as_echo "$STRIP" >&6; }
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2872 $as_echo "no" >&6; }
2877 if test -z "$ac_cv_prog_STRIP"; then
2879 # Extract the first word of "strip", so it can be a program name with args.
2880 set dummy strip; ac_word=$2
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2882 $as_echo_n "checking for $ac_word... " >&6; }
2883 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2884 $as_echo_n "(cached) " >&6
2886 if test -n "$ac_ct_STRIP"; then
2887 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893 test -z "$as_dir" && as_dir=.
2894 for ac_exec_ext in '' $ac_executable_extensions; do
2895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2896 ac_cv_prog_ac_ct_STRIP="strip"
2897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2906 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2907 if test -n "$ac_ct_STRIP"; then
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2909 $as_echo "$ac_ct_STRIP" >&6; }
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912 $as_echo "no" >&6; }
2915 if test "x$ac_ct_STRIP" = x; then
2918 case $cross_compiling:$ac_tool_warned in
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2922 ac_tool_warned=yes ;;
2927 STRIP="$ac_cv_prog_STRIP"
2931 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2933 # We need awk for the "check" target. The system "awk" is bad on
2935 # Always define AMTAR for backward compatibility.
2937 AMTAR=${AMTAR-"${am_missing_run}tar"}
2939 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2945 ac_config_headers="$ac_config_headers config.h"
2953 for ac_prog in gawk mawk nawk awk
2955 # Extract the first word of "$ac_prog", so it can be a program name with args.
2956 set dummy $ac_prog; ac_word=$2
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2958 $as_echo_n "checking for $ac_word... " >&6; }
2959 if test "${ac_cv_prog_AWK+set}" = set; then :
2960 $as_echo_n "(cached) " >&6
2962 if test -n "$AWK"; then
2963 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969 test -z "$as_dir" && as_dir=.
2970 for ac_exec_ext in '' $ac_executable_extensions; do
2971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2972 ac_cv_prog_AWK="$ac_prog"
2973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2983 if test -n "$AWK"; then
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2985 $as_echo "$AWK" >&6; }
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2988 $as_echo "no" >&6; }
2992 test -n "$AWK" && break
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2997 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2999 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3000 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3001 $as_echo_n "(cached) " >&6
3003 cat >conftest.make <<\_ACEOF
3006 @echo '@@@%%%=$(MAKE)=@@@%%%'
3008 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3009 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3011 eval ac_cv_prog_make_${ac_make}_set=yes;;
3013 eval ac_cv_prog_make_${ac_make}_set=no;;
3017 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3019 $as_echo "yes" >&6; }
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023 $as_echo "no" >&6; }
3024 SET_MAKE="MAKE=${MAKE-make}"
3027 if test -n "$ac_tool_prefix"; then
3028 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3029 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3031 $as_echo_n "checking for $ac_word... " >&6; }
3032 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3033 $as_echo_n "(cached) " >&6
3035 if test -n "$RANLIB"; then
3036 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042 test -z "$as_dir" && as_dir=.
3043 for ac_exec_ext in '' $ac_executable_extensions; do
3044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3045 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3055 RANLIB=$ac_cv_prog_RANLIB
3056 if test -n "$RANLIB"; then
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3058 $as_echo "$RANLIB" >&6; }
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3061 $as_echo "no" >&6; }
3066 if test -z "$ac_cv_prog_RANLIB"; then
3067 ac_ct_RANLIB=$RANLIB
3068 # Extract the first word of "ranlib", so it can be a program name with args.
3069 set dummy ranlib; ac_word=$2
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3071 $as_echo_n "checking for $ac_word... " >&6; }
3072 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3073 $as_echo_n "(cached) " >&6
3075 if test -n "$ac_ct_RANLIB"; then
3076 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082 test -z "$as_dir" && as_dir=.
3083 for ac_exec_ext in '' $ac_executable_extensions; do
3084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3085 ac_cv_prog_ac_ct_RANLIB="ranlib"
3086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3095 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3096 if test -n "$ac_ct_RANLIB"; then
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3098 $as_echo "$ac_ct_RANLIB" >&6; }
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3101 $as_echo "no" >&6; }
3104 if test "x$ac_ct_RANLIB" = x; then
3107 case $cross_compiling:$ac_tool_warned in
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3111 ac_tool_warned=yes ;;
3113 RANLIB=$ac_ct_RANLIB
3116 RANLIB="$ac_cv_prog_RANLIB"
3121 ac_cpp='$CPP $CPPFLAGS'
3122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3125 if test -n "$ac_tool_prefix"; then
3126 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3127 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3129 $as_echo_n "checking for $ac_word... " >&6; }
3130 if test "${ac_cv_prog_CC+set}" = set; then :
3131 $as_echo_n "(cached) " >&6
3133 if test -n "$CC"; then
3134 ac_cv_prog_CC="$CC" # Let the user override the test.
3136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3140 test -z "$as_dir" && as_dir=.
3141 for ac_exec_ext in '' $ac_executable_extensions; do
3142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3143 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3154 if test -n "$CC"; then
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3156 $as_echo "$CC" >&6; }
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159 $as_echo "no" >&6; }
3164 if test -z "$ac_cv_prog_CC"; then
3166 # Extract the first word of "gcc", so it can be a program name with args.
3167 set dummy gcc; ac_word=$2
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3169 $as_echo_n "checking for $ac_word... " >&6; }
3170 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3171 $as_echo_n "(cached) " >&6
3173 if test -n "$ac_ct_CC"; then
3174 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180 test -z "$as_dir" && as_dir=.
3181 for ac_exec_ext in '' $ac_executable_extensions; do
3182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3183 ac_cv_prog_ac_ct_CC="gcc"
3184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3193 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3194 if test -n "$ac_ct_CC"; then
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3196 $as_echo "$ac_ct_CC" >&6; }
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199 $as_echo "no" >&6; }
3202 if test "x$ac_ct_CC" = x; then
3205 case $cross_compiling:$ac_tool_warned in
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3209 ac_tool_warned=yes ;;
3217 if test -z "$CC"; then
3218 if test -n "$ac_tool_prefix"; then
3219 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3220 set dummy ${ac_tool_prefix}cc; ac_word=$2
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3222 $as_echo_n "checking for $ac_word... " >&6; }
3223 if test "${ac_cv_prog_CC+set}" = set; then :
3224 $as_echo_n "(cached) " >&6
3226 if test -n "$CC"; then
3227 ac_cv_prog_CC="$CC" # Let the user override the test.
3229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233 test -z "$as_dir" && as_dir=.
3234 for ac_exec_ext in '' $ac_executable_extensions; do
3235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3236 ac_cv_prog_CC="${ac_tool_prefix}cc"
3237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3247 if test -n "$CC"; then
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3249 $as_echo "$CC" >&6; }
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252 $as_echo "no" >&6; }
3258 if test -z "$CC"; then
3259 # Extract the first word of "cc", so it can be a program name with args.
3260 set dummy cc; ac_word=$2
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3262 $as_echo_n "checking for $ac_word... " >&6; }
3263 if test "${ac_cv_prog_CC+set}" = set; then :
3264 $as_echo_n "(cached) " >&6
3266 if test -n "$CC"; then
3267 ac_cv_prog_CC="$CC" # Let the user override the test.
3270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 test -z "$as_dir" && as_dir=.
3275 for ac_exec_ext in '' $ac_executable_extensions; do
3276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3277 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3278 ac_prog_rejected=yes
3282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3289 if test $ac_prog_rejected = yes; then
3290 # We found a bogon in the path, so make sure we never use it.
3291 set dummy $ac_cv_prog_CC
3293 if test $# != 0; then
3294 # We chose a different compiler from the bogus one.
3295 # However, it has the same basename, so the bogon will be chosen
3296 # first if we set CC to just the basename; use the full file name.
3298 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3304 if test -n "$CC"; then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3306 $as_echo "$CC" >&6; }
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309 $as_echo "no" >&6; }
3314 if test -z "$CC"; then
3315 if test -n "$ac_tool_prefix"; then
3316 for ac_prog in cl.exe
3318 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3319 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3321 $as_echo_n "checking for $ac_word... " >&6; }
3322 if test "${ac_cv_prog_CC+set}" = set; then :
3323 $as_echo_n "(cached) " >&6
3325 if test -n "$CC"; then
3326 ac_cv_prog_CC="$CC" # Let the user override the test.
3328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332 test -z "$as_dir" && as_dir=.
3333 for ac_exec_ext in '' $ac_executable_extensions; do
3334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3335 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3346 if test -n "$CC"; then
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3348 $as_echo "$CC" >&6; }
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351 $as_echo "no" >&6; }
3355 test -n "$CC" && break
3358 if test -z "$CC"; then
3360 for ac_prog in cl.exe
3362 # Extract the first word of "$ac_prog", so it can be a program name with args.
3363 set dummy $ac_prog; ac_word=$2
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3365 $as_echo_n "checking for $ac_word... " >&6; }
3366 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3367 $as_echo_n "(cached) " >&6
3369 if test -n "$ac_ct_CC"; then
3370 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3376 test -z "$as_dir" && as_dir=.
3377 for ac_exec_ext in '' $ac_executable_extensions; do
3378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3379 ac_cv_prog_ac_ct_CC="$ac_prog"
3380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3389 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3390 if test -n "$ac_ct_CC"; then
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3392 $as_echo "$ac_ct_CC" >&6; }
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3395 $as_echo "no" >&6; }
3399 test -n "$ac_ct_CC" && break
3402 if test "x$ac_ct_CC" = x; then
3405 case $cross_compiling:$ac_tool_warned in
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3409 ac_tool_warned=yes ;;
3418 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3420 as_fn_error "no acceptable C compiler found in \$PATH
3421 See \`config.log' for more details." "$LINENO" 5; }
3423 # Provide some information about the compiler.
3424 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3427 for ac_option in --version -v -V -qversion; do
3428 { { ac_try="$ac_compiler $ac_option >&5"
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3433 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3434 $as_echo "$ac_try_echo"; } >&5
3435 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3437 if test -s conftest.err; then
3439 ... rest of stderr output deleted ...
3440 10q' conftest.err >conftest.er1
3441 cat conftest.er1 >&5
3442 rm -f conftest.er1 conftest.err
3444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3445 test $ac_status = 0; }
3448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449 /* end confdefs.h. */
3454 FILE *f = fopen ("conftest.out", "w");
3455 return ferror (f) || fclose (f) != 0;
3461 ac_clean_files_save=$ac_clean_files
3462 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3463 # Try to create an executable without -o first, disregard a.out.
3464 # It will help us diagnose broken compilers, and finding out an intuition
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3467 $as_echo_n "checking for C compiler default output file name... " >&6; }
3468 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3470 # The possible output files:
3471 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3474 for ac_file in $ac_files
3477 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3478 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3483 if { { ac_try="$ac_link_default"
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3489 $as_echo "$ac_try_echo"; } >&5
3490 (eval "$ac_link_default") 2>&5
3492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3493 test $ac_status = 0; }; then :
3494 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3495 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3496 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3497 # so that the user can short-circuit this test for compilers unknown to
3499 for ac_file in $ac_files ''
3501 test -f "$ac_file" || continue
3503 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3506 # We found the default executable, but exeext='' is most
3510 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3512 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3514 # We set ac_cv_exeext here because the later test for it is not
3515 # safe: cross compilers may not add the suffix if given an `-o'
3516 # argument, so we may need to know it at that point already.
3517 # Even if this section looks crufty: it has the advantage of
3524 test "$ac_cv_exeext" = no && ac_cv_exeext=
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3530 $as_echo "$ac_file" >&6; }
3531 if test -z "$ac_file"; then :
3532 $as_echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3537 { as_fn_set_status 77
3538 as_fn_error "C compiler cannot create executables
3539 See \`config.log' for more details." "$LINENO" 5; }; }
3541 ac_exeext=$ac_cv_exeext
3543 # Check that the compiler produces executables we can run. If not, either
3544 # the compiler is broken, or we cross compile.
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3546 $as_echo_n "checking whether the C compiler works... " >&6; }
3547 # If not cross compiling, check that we can run a simple program.
3548 if test "$cross_compiling" != yes; then
3549 if { ac_try='./$ac_file'
3550 { { case "(($ac_try" in
3551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552 *) ac_try_echo=$ac_try;;
3554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3555 $as_echo "$ac_try_echo"; } >&5
3556 (eval "$ac_try") 2>&5
3558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3559 test $ac_status = 0; }; }; then
3562 if test "$cross_compiling" = maybe; then
3565 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3567 as_fn_error "cannot run C compiled programs.
3568 If you meant to cross compile, use \`--host'.
3569 See \`config.log' for more details." "$LINENO" 5; }
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3574 $as_echo "yes" >&6; }
3576 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3577 ac_clean_files=$ac_clean_files_save
3578 # Check that the compiler produces executables we can run. If not, either
3579 # the compiler is broken, or we cross compile.
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3581 $as_echo_n "checking whether we are cross compiling... " >&6; }
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3583 $as_echo "$cross_compiling" >&6; }
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3586 $as_echo_n "checking for suffix of executables... " >&6; }
3587 if { { ac_try="$ac_link"
3589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590 *) ac_try_echo=$ac_try;;
3592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3593 $as_echo "$ac_try_echo"; } >&5
3594 (eval "$ac_link") 2>&5
3596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3597 test $ac_status = 0; }; then :
3598 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3599 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3600 # work properly (i.e., refer to `conftest.exe'), while it won't with
3602 for ac_file in conftest.exe conftest conftest.*; do
3603 test -f "$ac_file" || continue
3605 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3606 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3612 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3614 as_fn_error "cannot compute suffix of executables: cannot compile and link
3615 See \`config.log' for more details." "$LINENO" 5; }
3617 rm -f conftest$ac_cv_exeext
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3619 $as_echo "$ac_cv_exeext" >&6; }
3621 rm -f conftest.$ac_ext
3622 EXEEXT=$ac_cv_exeext
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3625 $as_echo_n "checking for suffix of object files... " >&6; }
3626 if test "${ac_cv_objext+set}" = set; then :
3627 $as_echo_n "(cached) " >&6
3629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3630 /* end confdefs.h. */
3640 rm -f conftest.o conftest.obj
3641 if { { ac_try="$ac_compile"
3643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3644 *) ac_try_echo=$ac_try;;
3646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3647 $as_echo "$ac_try_echo"; } >&5
3648 (eval "$ac_compile") 2>&5
3650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3651 test $ac_status = 0; }; then :
3652 for ac_file in conftest.o conftest.obj conftest.*; do
3653 test -f "$ac_file" || continue;
3655 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3656 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3661 $as_echo "$as_me: failed program was:" >&5
3662 sed 's/^/| /' conftest.$ac_ext >&5
3664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3666 as_fn_error "cannot compute suffix of object files: cannot compile
3667 See \`config.log' for more details." "$LINENO" 5; }
3669 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3672 $as_echo "$ac_cv_objext" >&6; }
3673 OBJEXT=$ac_cv_objext
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3676 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3677 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3678 $as_echo_n "(cached) " >&6
3680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681 /* end confdefs.h. */
3694 if ac_fn_c_try_compile "$LINENO"; then :
3699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3700 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3704 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3705 if test $ac_compiler_gnu = yes; then
3710 ac_test_CFLAGS=${CFLAGS+set}
3711 ac_save_CFLAGS=$CFLAGS
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3713 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3714 if test "${ac_cv_prog_cc_g+set}" = set; then :
3715 $as_echo_n "(cached) " >&6
3717 ac_save_c_werror_flag=$ac_c_werror_flag
3718 ac_c_werror_flag=yes
3721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722 /* end confdefs.h. */
3732 if ac_fn_c_try_compile "$LINENO"; then :
3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h. */
3747 if ac_fn_c_try_compile "$LINENO"; then :
3750 ac_c_werror_flag=$ac_save_c_werror_flag
3752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753 /* end confdefs.h. */
3763 if ac_fn_c_try_compile "$LINENO"; then :
3766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3771 ac_c_werror_flag=$ac_save_c_werror_flag
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3774 $as_echo "$ac_cv_prog_cc_g" >&6; }
3775 if test "$ac_test_CFLAGS" = set; then
3776 CFLAGS=$ac_save_CFLAGS
3777 elif test $ac_cv_prog_cc_g = yes; then
3778 if test "$GCC" = yes; then
3784 if test "$GCC" = yes; then
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3791 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3792 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3793 $as_echo_n "(cached) " >&6
3795 ac_cv_prog_cc_c89=no
3797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798 /* end confdefs.h. */
3801 #include <sys/types.h>
3802 #include <sys/stat.h>
3803 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3804 struct buf { int x; };
3805 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3806 static char *e (p, i)
3812 static char *f (char * (*g) (char **, int), char **p, ...)
3817 s = g (p, va_arg (v,int));
3822 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3823 function prototypes and stuff, but not '\xHH' hex character constants.
3824 These don't provoke an error unfortunately, instead are silently treated
3825 as 'x'. The following induces an error, until -std is added to get
3826 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3827 array size at least. It's necessary to write '\x00'==0 to get something
3828 that's true only with -std. */
3829 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3831 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3832 inside strings and character constants. */
3834 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3836 int test (int i, double x);
3837 struct s1 {int (*f) (int a);};
3838 struct s2 {int (*f) (double a);};
3839 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3845 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3850 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3851 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3853 CC="$ac_save_CC $ac_arg"
3854 if ac_fn_c_try_compile "$LINENO"; then :
3855 ac_cv_prog_cc_c89=$ac_arg
3857 rm -f core conftest.err conftest.$ac_objext
3858 test "x$ac_cv_prog_cc_c89" != "xno" && break
3860 rm -f conftest.$ac_ext
3865 case "x$ac_cv_prog_cc_c89" in
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3868 $as_echo "none needed" >&6; } ;;
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3871 $as_echo "unsupported" >&6; } ;;
3873 CC="$CC $ac_cv_prog_cc_c89"
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3875 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3877 if test "x$ac_cv_prog_cc_c89" != xno; then :
3882 ac_cpp='$CPP $CPPFLAGS'
3883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3886 DEPDIR="${am__leading_dot}deps"
3888 ac_config_commands="$ac_config_commands depfiles"
3891 am_make=${MAKE-make}
3892 cat > confinc << 'END'
3897 # If we don't find an include directive, just comment out the code.
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3899 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3903 # First try GNU make style include.
3904 echo "include confinc" > confmf
3905 # We grep out `Entering directory' and `Leaving directory'
3906 # messages which can occur if `w' ends up in MAKEFLAGS.
3907 # In particular we don't look at `^make:' because GNU make might
3908 # be invoked under some other name (usually "gmake"), in which
3909 # case it prints its new name instead of `make'.
3910 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3915 # Now try BSD make style include.
3916 if test "$am__include" = "#"; then
3917 echo '.include "confinc"' > confmf
3918 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3919 am__include=.include
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3927 $as_echo "$_am_result" >&6; }
3928 rm -f confinc confmf
3930 # Check whether --enable-dependency-tracking was given.
3931 if test "${enable_dependency_tracking+set}" = set; then :
3932 enableval=$enable_dependency_tracking;
3935 if test "x$enable_dependency_tracking" != xno; then
3936 am_depcomp="$ac_aux_dir/depcomp"
3941 if test "x$enable_dependency_tracking" != xno; then
3952 depcc="$CC" am_compiler_list=
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3955 $as_echo_n "checking dependency style of $depcc... " >&6; }
3956 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3957 $as_echo_n "(cached) " >&6
3959 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3960 # We make a subdir and do the tests there. Otherwise we can end up
3961 # making bogus files that we don't know about and never remove. For
3962 # instance it was reported that on HP-UX the gcc test will end up
3963 # making a dummy file named `D' -- because `-MD' means `put the output
3966 # Copy depcomp to subdir because otherwise we won't find it if we're
3967 # using a relative directory.
3968 cp "$am_depcomp" conftest.dir
3970 # We will build objects and dependencies in a subdirectory because
3971 # it helps to detect inapplicable dependency modes. For instance
3972 # both Tru64's cc and ICC support -MD to output dependencies as a
3973 # side effect of compilation, but ICC will put the dependencies in
3974 # the current directory while Tru64 will put them in the object
3978 am_cv_CC_dependencies_compiler_type=none
3979 if test "$am_compiler_list" = ""; then
3980 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3982 for depmode in $am_compiler_list; do
3983 # Setup a source with many dependencies, because some compilers
3984 # like to wrap large dependency lists on column 80 (with \), and
3985 # we should not choose a depcomp mode which is confused by this.
3987 # We need to recreate these files for each test, as the compiler may
3988 # overwrite some of them when testing with obscure command lines.
3989 # This happens at least with the AIX C compiler.
3991 for i in 1 2 3 4 5 6; do
3992 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3993 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3994 # Solaris 8's {/usr,}/bin/sh.
3995 touch sub/conftst$i.h
3997 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4001 # after this tag, mechanisms are not by side-effect, so they'll
4002 # only be used when explicitly requested
4003 if test "x$enable_dependency_tracking" = xyes; then
4011 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4012 # mode. It turns out that the SunPro C++ compiler does not properly
4013 # handle `-M -o', and we need to detect this.
4014 if depmode=$depmode \
4015 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4016 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4017 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4018 >/dev/null 2>conftest.err &&
4019 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4020 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4021 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4022 # icc doesn't choke on unknown options, it will just issue warnings
4023 # or remarks (even with -Werror). So we grep stderr for any message
4024 # that says an option was ignored or not supported.
4025 # When given -MP, icc 7.0 and 7.1 complain thusly:
4026 # icc: Command line warning: ignoring option '-M'; no argument required
4027 # The diagnosis changed in icc 8.0:
4028 # icc: Command line remark: option '-MP' not supported
4029 if (grep 'ignoring option' conftest.err ||
4030 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4031 am_cv_CC_dependencies_compiler_type=$depmode
4040 am_cv_CC_dependencies_compiler_type=none
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4045 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4046 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4051 test "x$enable_dependency_tracking" != xno \
4052 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4054 am__fastdepCC_FALSE='#'
4056 am__fastdepCC_TRUE='#'
4057 am__fastdepCC_FALSE=
4062 ac_cpp='$CXXCPP $CPPFLAGS'
4063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4066 if test -z "$CXX"; then
4067 if test -n "$CCC"; then
4070 if test -n "$ac_tool_prefix"; then
4071 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4073 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4074 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4076 $as_echo_n "checking for $ac_word... " >&6; }
4077 if test "${ac_cv_prog_CXX+set}" = set; then :
4078 $as_echo_n "(cached) " >&6
4080 if test -n "$CXX"; then
4081 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087 test -z "$as_dir" && as_dir=.
4088 for ac_exec_ext in '' $ac_executable_extensions; do
4089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4090 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4101 if test -n "$CXX"; then
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4103 $as_echo "$CXX" >&6; }
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4106 $as_echo "no" >&6; }
4110 test -n "$CXX" && break
4113 if test -z "$CXX"; then
4115 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4117 # Extract the first word of "$ac_prog", so it can be a program name with args.
4118 set dummy $ac_prog; ac_word=$2
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4120 $as_echo_n "checking for $ac_word... " >&6; }
4121 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4122 $as_echo_n "(cached) " >&6
4124 if test -n "$ac_ct_CXX"; then
4125 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 test -z "$as_dir" && as_dir=.
4132 for ac_exec_ext in '' $ac_executable_extensions; do
4133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4134 ac_cv_prog_ac_ct_CXX="$ac_prog"
4135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4144 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4145 if test -n "$ac_ct_CXX"; then
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4147 $as_echo "$ac_ct_CXX" >&6; }
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4150 $as_echo "no" >&6; }
4154 test -n "$ac_ct_CXX" && break
4157 if test "x$ac_ct_CXX" = x; then
4160 case $cross_compiling:$ac_tool_warned in
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4164 ac_tool_warned=yes ;;
4172 # Provide some information about the compiler.
4173 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4176 for ac_option in --version -v -V -qversion; do
4177 { { ac_try="$ac_compiler $ac_option >&5"
4179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4180 *) ac_try_echo=$ac_try;;
4182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4183 $as_echo "$ac_try_echo"; } >&5
4184 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4186 if test -s conftest.err; then
4188 ... rest of stderr output deleted ...
4189 10q' conftest.err >conftest.er1
4190 cat conftest.er1 >&5
4191 rm -f conftest.er1 conftest.err
4193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4194 test $ac_status = 0; }
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4198 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4199 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4200 $as_echo_n "(cached) " >&6
4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h. */
4216 if ac_fn_cxx_try_compile "$LINENO"; then :
4221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4222 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4226 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4227 if test $ac_compiler_gnu = yes; then
4232 ac_test_CXXFLAGS=${CXXFLAGS+set}
4233 ac_save_CXXFLAGS=$CXXFLAGS
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4235 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4236 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4237 $as_echo_n "(cached) " >&6
4239 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4240 ac_cxx_werror_flag=yes
4243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4244 /* end confdefs.h. */
4254 if ac_fn_cxx_try_compile "$LINENO"; then :
4255 ac_cv_prog_cxx_g=yes
4258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259 /* end confdefs.h. */
4269 if ac_fn_cxx_try_compile "$LINENO"; then :
4272 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275 /* end confdefs.h. */
4285 if ac_fn_cxx_try_compile "$LINENO"; then :
4286 ac_cv_prog_cxx_g=yes
4288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4293 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4296 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4297 if test "$ac_test_CXXFLAGS" = set; then
4298 CXXFLAGS=$ac_save_CXXFLAGS
4299 elif test $ac_cv_prog_cxx_g = yes; then
4300 if test "$GXX" = yes; then
4306 if test "$GXX" = yes; then
4313 ac_cpp='$CPP $CPPFLAGS'
4314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4318 depcc="$CXX" am_compiler_list=
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4321 $as_echo_n "checking dependency style of $depcc... " >&6; }
4322 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4323 $as_echo_n "(cached) " >&6
4325 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4326 # We make a subdir and do the tests there. Otherwise we can end up
4327 # making bogus files that we don't know about and never remove. For
4328 # instance it was reported that on HP-UX the gcc test will end up
4329 # making a dummy file named `D' -- because `-MD' means `put the output
4332 # Copy depcomp to subdir because otherwise we won't find it if we're
4333 # using a relative directory.
4334 cp "$am_depcomp" conftest.dir
4336 # We will build objects and dependencies in a subdirectory because
4337 # it helps to detect inapplicable dependency modes. For instance
4338 # both Tru64's cc and ICC support -MD to output dependencies as a
4339 # side effect of compilation, but ICC will put the dependencies in
4340 # the current directory while Tru64 will put them in the object
4344 am_cv_CXX_dependencies_compiler_type=none
4345 if test "$am_compiler_list" = ""; then
4346 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4348 for depmode in $am_compiler_list; do
4349 # Setup a source with many dependencies, because some compilers
4350 # like to wrap large dependency lists on column 80 (with \), and
4351 # we should not choose a depcomp mode which is confused by this.
4353 # We need to recreate these files for each test, as the compiler may
4354 # overwrite some of them when testing with obscure command lines.
4355 # This happens at least with the AIX C compiler.
4357 for i in 1 2 3 4 5 6; do
4358 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4359 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4360 # Solaris 8's {/usr,}/bin/sh.
4361 touch sub/conftst$i.h
4363 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4367 # after this tag, mechanisms are not by side-effect, so they'll
4368 # only be used when explicitly requested
4369 if test "x$enable_dependency_tracking" = xyes; then
4377 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4378 # mode. It turns out that the SunPro C++ compiler does not properly
4379 # handle `-M -o', and we need to detect this.
4380 if depmode=$depmode \
4381 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4382 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4383 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4384 >/dev/null 2>conftest.err &&
4385 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4386 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4387 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4388 # icc doesn't choke on unknown options, it will just issue warnings
4389 # or remarks (even with -Werror). So we grep stderr for any message
4390 # that says an option was ignored or not supported.
4391 # When given -MP, icc 7.0 and 7.1 complain thusly:
4392 # icc: Command line warning: ignoring option '-M'; no argument required
4393 # The diagnosis changed in icc 8.0:
4394 # icc: Command line remark: option '-MP' not supported
4395 if (grep 'ignoring option' conftest.err ||
4396 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4397 am_cv_CXX_dependencies_compiler_type=$depmode
4406 am_cv_CXX_dependencies_compiler_type=none
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4411 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4412 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4417 test "x$enable_dependency_tracking" != xno \
4418 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4419 am__fastdepCXX_TRUE=
4420 am__fastdepCXX_FALSE='#'
4422 am__fastdepCXX_TRUE='#'
4423 am__fastdepCXX_FALSE=
4429 ac_cpp='$CPP $CPPFLAGS'
4430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4434 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4435 # On Suns, sometimes $CPP names a directory.
4436 if test -n "$CPP" && test -d "$CPP"; then
4439 if test -z "$CPP"; then
4440 if test "${ac_cv_prog_CPP+set}" = set; then :
4441 $as_echo_n "(cached) " >&6
4443 # Double quotes because CPP needs to be expanded
4444 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4447 for ac_c_preproc_warn_flag in '' yes
4449 # Use a header file that comes with gcc, so configuring glibc
4450 # with a fresh cross-compiler works.
4451 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4452 # <limits.h> exists even on freestanding compilers.
4453 # On the NeXT, cc -E runs the code through the compiler's parser,
4454 # not just through cpp. "Syntax error" is here to catch this case.
4455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4456 /* end confdefs.h. */
4458 # include <limits.h>
4460 # include <assert.h>
4464 if ac_fn_c_try_cpp "$LINENO"; then :
4467 # Broken: fails on valid input.
4470 rm -f conftest.err conftest.$ac_ext
4472 # OK, works on sane cases. Now check whether nonexistent headers
4473 # can be detected and how.
4474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475 /* end confdefs.h. */
4476 #include <ac_nonexistent.h>
4478 if ac_fn_c_try_cpp "$LINENO"; then :
4479 # Broken: success on invalid input.
4482 # Passes both tests.
4486 rm -f conftest.err conftest.$ac_ext
4489 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4490 rm -f conftest.err conftest.$ac_ext
4491 if $ac_preproc_ok; then :
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4504 $as_echo "$CPP" >&6; }
4506 for ac_c_preproc_warn_flag in '' yes
4508 # Use a header file that comes with gcc, so configuring glibc
4509 # with a fresh cross-compiler works.
4510 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4511 # <limits.h> exists even on freestanding compilers.
4512 # On the NeXT, cc -E runs the code through the compiler's parser,
4513 # not just through cpp. "Syntax error" is here to catch this case.
4514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4515 /* end confdefs.h. */
4517 # include <limits.h>
4519 # include <assert.h>
4523 if ac_fn_c_try_cpp "$LINENO"; then :
4526 # Broken: fails on valid input.
4529 rm -f conftest.err conftest.$ac_ext
4531 # OK, works on sane cases. Now check whether nonexistent headers
4532 # can be detected and how.
4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h. */
4535 #include <ac_nonexistent.h>
4537 if ac_fn_c_try_cpp "$LINENO"; then :
4538 # Broken: success on invalid input.
4541 # Passes both tests.
4545 rm -f conftest.err conftest.$ac_ext
4548 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4549 rm -f conftest.err conftest.$ac_ext
4550 if $ac_preproc_ok; then :
4553 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4555 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4556 See \`config.log' for more details." "$LINENO" 5; }
4560 ac_cpp='$CPP $CPPFLAGS'
4561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4567 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4568 if test "${ac_cv_path_GREP+set}" = set; then :
4569 $as_echo_n "(cached) " >&6
4571 if test -z "$GREP"; then
4572 ac_path_GREP_found=false
4573 # Loop through the user's path and test for each of PROGNAME-LIST
4574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4578 test -z "$as_dir" && as_dir=.
4579 for ac_prog in grep ggrep; do
4580 for ac_exec_ext in '' $ac_executable_extensions; do
4581 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4582 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4583 # Check for GNU ac_path_GREP and select it if it is found.
4584 # Check for GNU $ac_path_GREP
4585 case `"$ac_path_GREP" --version 2>&1` in
4587 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4590 $as_echo_n 0123456789 >"conftest.in"
4593 cat "conftest.in" "conftest.in" >"conftest.tmp"
4594 mv "conftest.tmp" "conftest.in"
4595 cp "conftest.in" "conftest.nl"
4596 $as_echo 'GREP' >> "conftest.nl"
4597 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4598 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4599 as_fn_arith $ac_count + 1 && ac_count=$as_val
4600 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4601 # Best one so far, save it but keep looking for a better one
4602 ac_cv_path_GREP="$ac_path_GREP"
4603 ac_path_GREP_max=$ac_count
4605 # 10*(2^10) chars as input seems more than enough
4606 test $ac_count -gt 10 && break
4608 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4611 $ac_path_GREP_found && break 3
4616 if test -z "$ac_cv_path_GREP"; then
4617 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4620 ac_cv_path_GREP=$GREP
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4625 $as_echo "$ac_cv_path_GREP" >&6; }
4626 GREP="$ac_cv_path_GREP"
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4630 $as_echo_n "checking for egrep... " >&6; }
4631 if test "${ac_cv_path_EGREP+set}" = set; then :
4632 $as_echo_n "(cached) " >&6
4634 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4635 then ac_cv_path_EGREP="$GREP -E"
4637 if test -z "$EGREP"; then
4638 ac_path_EGREP_found=false
4639 # Loop through the user's path and test for each of PROGNAME-LIST
4640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4644 test -z "$as_dir" && as_dir=.
4645 for ac_prog in egrep; do
4646 for ac_exec_ext in '' $ac_executable_extensions; do
4647 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4648 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4649 # Check for GNU ac_path_EGREP and select it if it is found.
4650 # Check for GNU $ac_path_EGREP
4651 case `"$ac_path_EGREP" --version 2>&1` in
4653 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4656 $as_echo_n 0123456789 >"conftest.in"
4659 cat "conftest.in" "conftest.in" >"conftest.tmp"
4660 mv "conftest.tmp" "conftest.in"
4661 cp "conftest.in" "conftest.nl"
4662 $as_echo 'EGREP' >> "conftest.nl"
4663 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4664 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4665 as_fn_arith $ac_count + 1 && ac_count=$as_val
4666 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4667 # Best one so far, save it but keep looking for a better one
4668 ac_cv_path_EGREP="$ac_path_EGREP"
4669 ac_path_EGREP_max=$ac_count
4671 # 10*(2^10) chars as input seems more than enough
4672 test $ac_count -gt 10 && break
4674 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4677 $ac_path_EGREP_found && break 3
4682 if test -z "$ac_cv_path_EGREP"; then
4683 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4686 ac_cv_path_EGREP=$EGREP
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4692 $as_echo "$ac_cv_path_EGREP" >&6; }
4693 EGREP="$ac_cv_path_EGREP"
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4697 $as_echo_n "checking for ANSI C header files... " >&6; }
4698 if test "${ac_cv_header_stdc+set}" = set; then :
4699 $as_echo_n "(cached) " >&6
4701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4702 /* end confdefs.h. */
4716 if ac_fn_c_try_compile "$LINENO"; then :
4717 ac_cv_header_stdc=yes
4719 ac_cv_header_stdc=no
4721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4723 if test $ac_cv_header_stdc = yes; then
4724 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4726 /* end confdefs.h. */
4730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4731 $EGREP "memchr" >/dev/null 2>&1; then :
4734 ac_cv_header_stdc=no
4740 if test $ac_cv_header_stdc = yes; then
4741 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4743 /* end confdefs.h. */
4747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4748 $EGREP "free" >/dev/null 2>&1; then :
4751 ac_cv_header_stdc=no
4757 if test $ac_cv_header_stdc = yes; then
4758 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4759 if test "$cross_compiling" = yes; then :
4762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4763 /* end confdefs.h. */
4766 #if ((' ' & 0x0FF) == 0x020)
4767 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4768 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4770 # define ISLOWER(c) \
4771 (('a' <= (c) && (c) <= 'i') \
4772 || ('j' <= (c) && (c) <= 'r') \
4773 || ('s' <= (c) && (c) <= 'z'))
4774 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4777 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4782 for (i = 0; i < 256; i++)
4783 if (XOR (islower (i), ISLOWER (i))
4784 || toupper (i) != TOUPPER (i))
4789 if ac_fn_c_try_run "$LINENO"; then :
4792 ac_cv_header_stdc=no
4794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4795 conftest.$ac_objext conftest.beam conftest.$ac_ext
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4801 $as_echo "$ac_cv_header_stdc" >&6; }
4802 if test $ac_cv_header_stdc = yes; then
4804 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4808 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4809 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4810 inttypes.h stdint.h unistd.h
4812 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4813 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4815 eval as_val=\$$as_ac_Header
4816 if test "x$as_val" = x""yes; then :
4817 cat >>confdefs.h <<_ACEOF
4818 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4827 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4828 if test "${ac_cv_c_bigendian+set}" = set; then :
4829 $as_echo_n "(cached) " >&6
4831 ac_cv_c_bigendian=unknown
4832 # See if we're dealing with a universal compiler.
4833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4834 /* end confdefs.h. */
4835 #ifndef __APPLE_CC__
4836 not a universal capable compiler
4841 if ac_fn_c_try_compile "$LINENO"; then :
4843 # Check for potential -arch flags. It is not universal unless
4844 # there are at least two -arch flags with different values.
4847 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4848 if test -n "$ac_prev"; then
4850 i?86 | x86_64 | ppc | ppc64)
4851 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4854 ac_cv_c_bigendian=universal
4860 elif test "x$ac_word" = "x-arch"; then
4865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4866 if test $ac_cv_c_bigendian = unknown; then
4867 # See if sys/param.h defines the BYTE_ORDER macro.
4868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4869 /* end confdefs.h. */
4870 #include <sys/types.h>
4871 #include <sys/param.h>
4876 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4877 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4886 if ac_fn_c_try_compile "$LINENO"; then :
4887 # It does; now see whether it defined to BIG_ENDIAN or not.
4888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4889 /* end confdefs.h. */
4890 #include <sys/types.h>
4891 #include <sys/param.h>
4896 #if BYTE_ORDER != BIG_ENDIAN
4904 if ac_fn_c_try_compile "$LINENO"; then :
4905 ac_cv_c_bigendian=yes
4907 ac_cv_c_bigendian=no
4909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4913 if test $ac_cv_c_bigendian = unknown; then
4914 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4916 /* end confdefs.h. */
4922 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4930 if ac_fn_c_try_compile "$LINENO"; then :
4931 # It does; now see whether it defined to _BIG_ENDIAN or not.
4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933 /* end confdefs.h. */
4947 if ac_fn_c_try_compile "$LINENO"; then :
4948 ac_cv_c_bigendian=yes
4950 ac_cv_c_bigendian=no
4952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4956 if test $ac_cv_c_bigendian = unknown; then
4957 # Compile a test program.
4958 if test "$cross_compiling" = yes; then :
4959 # Try to guess by grepping values from an object file.
4960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4961 /* end confdefs.h. */
4962 short int ascii_mm[] =
4963 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4964 short int ascii_ii[] =
4965 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4966 int use_ascii (int i) {
4967 return ascii_mm[i] + ascii_ii[i];
4969 short int ebcdic_ii[] =
4970 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4971 short int ebcdic_mm[] =
4972 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4973 int use_ebcdic (int i) {
4974 return ebcdic_mm[i] + ebcdic_ii[i];
4981 return use_ascii (foo) == use_ebcdic (foo);
4986 if ac_fn_c_try_compile "$LINENO"; then :
4987 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4988 ac_cv_c_bigendian=yes
4990 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4991 if test "$ac_cv_c_bigendian" = unknown; then
4992 ac_cv_c_bigendian=no
4994 # finding both strings is unlikely to happen, but who knows?
4995 ac_cv_c_bigendian=unknown
4999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5002 /* end confdefs.h. */
5003 $ac_includes_default
5008 /* Are we little or big endian? From Harbison&Steele. */
5012 char c[sizeof (long int)];
5015 return u.c[sizeof (long int) - 1] == 1;
5021 if ac_fn_c_try_run "$LINENO"; then :
5022 ac_cv_c_bigendian=no
5024 ac_cv_c_bigendian=yes
5026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5027 conftest.$ac_objext conftest.beam conftest.$ac_ext
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5033 $as_echo "$ac_cv_c_bigendian" >&6; }
5034 case $ac_cv_c_bigendian in #(
5036 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5042 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5046 as_fn_error "unknown endianness
5047 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5051 # Extract the first word of "wx-config", so it can be a program name with args.
5052 set dummy wx-config; ac_word=$2
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5054 $as_echo_n "checking for $ac_word... " >&6; }
5055 if test "${ac_cv_path_wxconfig+set}" = set; then :
5056 $as_echo_n "(cached) " >&6
5060 ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
5063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067 test -z "$as_dir" && as_dir=.
5068 for ac_exec_ext in '' $ac_executable_extensions; do
5069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5070 ac_cv_path_wxconfig="$as_dir/$ac_word$ac_exec_ext"
5071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5081 wxconfig=$ac_cv_path_wxconfig
5082 if test -n "$wxconfig"; then
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wxconfig" >&5
5084 $as_echo "$wxconfig" >&6; }
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5087 $as_echo "no" >&6; }
5092 # Make sure we can run config.sub.
5093 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5094 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5097 $as_echo_n "checking build system type... " >&6; }
5098 if test "${ac_cv_build+set}" = set; then :
5099 $as_echo_n "(cached) " >&6
5101 ac_build_alias=$build_alias
5102 test "x$ac_build_alias" = x &&
5103 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5104 test "x$ac_build_alias" = x &&
5105 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
5106 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5107 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5111 $as_echo "$ac_cv_build" >&6; }
5112 case $ac_cv_build in
5114 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
5117 ac_save_IFS=$IFS; IFS='-'
5123 # Remember, the first character of IFS is used to create $*,
5124 # except with old shells:
5127 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5131 $as_echo_n "checking host system type... " >&6; }
5132 if test "${ac_cv_host+set}" = set; then :
5133 $as_echo_n "(cached) " >&6
5135 if test "x$host_alias" = x; then
5136 ac_cv_host=$ac_cv_build
5138 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5139 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5144 $as_echo "$ac_cv_host" >&6; }
5147 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
5150 ac_save_IFS=$IFS; IFS='-'
5156 # Remember, the first character of IFS is used to create $*,
5157 # except with old shells:
5160 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5164 $as_echo_n "checking for inline... " >&6; }
5165 if test "${ac_cv_c_inline+set}" = set; then :
5166 $as_echo_n "(cached) " >&6
5169 for ac_kw in inline __inline__ __inline; do
5170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5171 /* end confdefs.h. */
5174 static $ac_kw foo_t static_foo () {return 0; }
5175 $ac_kw foo_t foo () {return 0; }
5179 if ac_fn_c_try_compile "$LINENO"; then :
5180 ac_cv_c_inline=$ac_kw
5182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5183 test "$ac_cv_c_inline" != no && break
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5188 $as_echo "$ac_cv_c_inline" >&6; }
5190 case $ac_cv_c_inline in
5193 case $ac_cv_c_inline in
5195 *) ac_val=$ac_cv_c_inline;;
5197 cat >>confdefs.h <<_ACEOF
5199 #define inline $ac_val
5205 # The cast to long int works around a bug in the HP C Compiler
5206 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5207 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5208 # This bug is HP SR number 8606223364.
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5210 $as_echo_n "checking size of short... " >&6; }
5211 if test "${ac_cv_sizeof_short+set}" = set; then :
5212 $as_echo_n "(cached) " >&6
5214 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5217 if test "$ac_cv_type_short" = yes; then
5218 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5220 { as_fn_set_status 77
5221 as_fn_error "cannot compute sizeof (short)
5222 See \`config.log' for more details." "$LINENO" 5; }; }
5224 ac_cv_sizeof_short=0
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5230 $as_echo "$ac_cv_sizeof_short" >&6; }
5234 cat >>confdefs.h <<_ACEOF
5235 #define SIZEOF_SHORT $ac_cv_sizeof_short
5239 # The cast to long int works around a bug in the HP C Compiler
5240 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5241 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5242 # This bug is HP SR number 8606223364.
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5244 $as_echo_n "checking size of int... " >&6; }
5245 if test "${ac_cv_sizeof_int+set}" = set; then :
5246 $as_echo_n "(cached) " >&6
5248 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5251 if test "$ac_cv_type_int" = yes; then
5252 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5254 { as_fn_set_status 77
5255 as_fn_error "cannot compute sizeof (int)
5256 See \`config.log' for more details." "$LINENO" 5; }; }
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5264 $as_echo "$ac_cv_sizeof_int" >&6; }
5268 cat >>confdefs.h <<_ACEOF
5269 #define SIZEOF_INT $ac_cv_sizeof_int
5273 # The cast to long int works around a bug in the HP C Compiler
5274 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5275 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5276 # This bug is HP SR number 8606223364.
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5278 $as_echo_n "checking size of long... " >&6; }
5279 if test "${ac_cv_sizeof_long+set}" = set; then :
5280 $as_echo_n "(cached) " >&6
5282 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5285 if test "$ac_cv_type_long" = yes; then
5286 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5288 { as_fn_set_status 77
5289 as_fn_error "cannot compute sizeof (long)
5290 See \`config.log' for more details." "$LINENO" 5; }; }
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5298 $as_echo "$ac_cv_sizeof_long" >&6; }
5302 cat >>confdefs.h <<_ACEOF
5303 #define SIZEOF_LONG $ac_cv_sizeof_long
5307 # The cast to long int works around a bug in the HP C Compiler
5308 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5309 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5310 # This bug is HP SR number 8606223364.
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
5312 $as_echo_n "checking size of float... " >&6; }
5313 if test "${ac_cv_sizeof_float+set}" = set; then :
5314 $as_echo_n "(cached) " >&6
5316 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
5319 if test "$ac_cv_type_float" = yes; then
5320 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5322 { as_fn_set_status 77
5323 as_fn_error "cannot compute sizeof (float)
5324 See \`config.log' for more details." "$LINENO" 5; }; }
5326 ac_cv_sizeof_float=0
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
5332 $as_echo "$ac_cv_sizeof_float" >&6; }
5336 cat >>confdefs.h <<_ACEOF
5337 #define SIZEOF_FLOAT $ac_cv_sizeof_float
5341 # The cast to long int works around a bug in the HP C Compiler
5342 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5343 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5344 # This bug is HP SR number 8606223364.
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
5346 $as_echo_n "checking size of double... " >&6; }
5347 if test "${ac_cv_sizeof_double+set}" = set; then :
5348 $as_echo_n "(cached) " >&6
5350 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
5353 if test "$ac_cv_type_double" = yes; then
5354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5356 { as_fn_set_status 77
5357 as_fn_error "cannot compute sizeof (double)
5358 See \`config.log' for more details." "$LINENO" 5; }; }
5360 ac_cv_sizeof_double=0
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
5366 $as_echo "$ac_cv_sizeof_double" >&6; }
5370 cat >>confdefs.h <<_ACEOF
5371 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
5378 $as_echo_n "checking for deflate in -lz... " >&6; }
5379 if test "${ac_cv_lib_z_deflate+set}" = set; then :
5380 $as_echo_n "(cached) " >&6
5382 ac_check_lib_save_LIBS=$LIBS
5384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5385 /* end confdefs.h. */
5387 /* Override any GCC internal prototype to avoid an error.
5388 Use char because int might match the return type of a GCC
5389 builtin and then its argument prototype would still apply. */
5402 if ac_fn_c_try_link "$LINENO"; then :
5403 ac_cv_lib_z_deflate=yes
5405 ac_cv_lib_z_deflate=no
5407 rm -f core conftest.err conftest.$ac_objext \
5408 conftest$ac_exeext conftest.$ac_ext
5409 LIBS=$ac_check_lib_save_LIBS
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
5412 $as_echo "$ac_cv_lib_z_deflate" >&6; }
5413 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
5416 zlib="false" ; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib missing. Will need zlib for PNG support" >&5
5417 $as_echo "$as_me: WARNING: zlib missing. Will need zlib for PNG support" >&2;}
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
5421 $as_echo_n "checking for sin in -lm... " >&6; }
5422 if test "${ac_cv_lib_m_sin+set}" = set; then :
5423 $as_echo_n "(cached) " >&6
5425 ac_check_lib_save_LIBS=$LIBS
5427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428 /* end confdefs.h. */
5430 /* Override any GCC internal prototype to avoid an error.
5431 Use char because int might match the return type of a GCC
5432 builtin and then its argument prototype would still apply. */
5445 if ac_fn_c_try_link "$LINENO"; then :
5450 rm -f core conftest.err conftest.$ac_objext \
5451 conftest$ac_exeext conftest.$ac_ext
5452 LIBS=$ac_check_lib_save_LIBS
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
5455 $as_echo "$ac_cv_lib_m_sin" >&6; }
5456 if test "x$ac_cv_lib_m_sin" = x""yes; then :
5457 cat >>confdefs.h <<_ACEOF
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcurses" >&5
5466 $as_echo_n "checking for main in -lcurses... " >&6; }
5467 if test "${ac_cv_lib_curses_main+set}" = set; then :
5468 $as_echo_n "(cached) " >&6
5470 ac_check_lib_save_LIBS=$LIBS
5471 LIBS="-lcurses $LIBS"
5472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5473 /* end confdefs.h. */
5484 if ac_fn_c_try_link "$LINENO"; then :
5485 ac_cv_lib_curses_main=yes
5487 ac_cv_lib_curses_main=no
5489 rm -f core conftest.err conftest.$ac_objext \
5490 conftest$ac_exeext conftest.$ac_ext
5491 LIBS=$ac_check_lib_save_LIBS
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_main" >&5
5494 $as_echo "$ac_cv_lib_curses_main" >&6; }
5495 if test "x$ac_cv_lib_curses_main" = x""yes; then :
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lncurses" >&5
5502 $as_echo_n "checking for main in -lncurses... " >&6; }
5503 if test "${ac_cv_lib_ncurses_main+set}" = set; then :
5504 $as_echo_n "(cached) " >&6
5506 ac_check_lib_save_LIBS=$LIBS
5507 LIBS="-lncurses $LIBS"
5508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5509 /* end confdefs.h. */
5520 if ac_fn_c_try_link "$LINENO"; then :
5521 ac_cv_lib_ncurses_main=yes
5523 ac_cv_lib_ncurses_main=no
5525 rm -f core conftest.err conftest.$ac_objext \
5526 conftest$ac_exeext conftest.$ac_ext
5527 LIBS=$ac_check_lib_save_LIBS
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_main" >&5
5530 $as_echo "$ac_cv_lib_ncurses_main" >&6; }
5531 if test "x$ac_cv_lib_ncurses_main" = x""yes; then :
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lreadline" >&5
5538 $as_echo_n "checking for main in -lreadline... " >&6; }
5539 if test "${ac_cv_lib_readline_main+set}" = set; then :
5540 $as_echo_n "(cached) " >&6
5542 ac_check_lib_save_LIBS=$LIBS
5543 LIBS="-lreadline -lcurses $LIBS"
5544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5545 /* end confdefs.h. */
5556 if ac_fn_c_try_link "$LINENO"; then :
5557 ac_cv_lib_readline_main=yes
5559 ac_cv_lib_readline_main=no
5561 rm -f core conftest.err conftest.$ac_objext \
5562 conftest$ac_exeext conftest.$ac_ext
5563 LIBS=$ac_check_lib_save_LIBS
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_main" >&5
5566 $as_echo "$ac_cv_lib_readline_main" >&6; }
5567 if test "x$ac_cv_lib_readline_main" = x""yes; then :
5570 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgtk-x11-2.0" >&5
5578 $as_echo_n "checking for main in -lgtk-x11-2.0... " >&6; }
5579 if test "${ac_cv_lib_gtk_x11_2_0_main+set}" = set; then :
5580 $as_echo_n "(cached) " >&6
5582 ac_check_lib_save_LIBS=$LIBS
5583 LIBS="-lgtk-x11-2.0 $LIBS"
5584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5585 /* end confdefs.h. */
5596 if ac_fn_c_try_link "$LINENO"; then :
5597 ac_cv_lib_gtk_x11_2_0_main=yes
5599 ac_cv_lib_gtk_x11_2_0_main=no
5601 rm -f core conftest.err conftest.$ac_objext \
5602 conftest$ac_exeext conftest.$ac_ext
5603 LIBS=$ac_check_lib_save_LIBS
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gtk_x11_2_0_main" >&5
5606 $as_echo "$ac_cv_lib_gtk_x11_2_0_main" >&6; }
5607 if test "x$ac_cv_lib_gtk_x11_2_0_main" = x""yes; then :
5611 if test "x$hasx11gtk2" = "x" ; then
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: Does not have X11 GTK2" >&5
5613 $as_echo "$as_me: Does not have X11 GTK2" >&6;}
5617 if test "$hasx11gtk2" = "true" ; then
5620 CFLAGS="${CFLAGS} ${g76GTK_CFLAGS} ${GLIB_CFLAGS}"
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lwx_gtk2u_core-2.8" >&5
5624 $as_echo_n "checking for main in -lwx_gtk2u_core-2.8... " >&6; }
5625 if test "${ac_cv_lib_wx_gtk2u_core_2_8_main+set}" = set; then :
5626 $as_echo_n "(cached) " >&6
5628 ac_check_lib_save_LIBS=$LIBS
5629 LIBS="-lwx_gtk2u_core-2.8 -L/usr/lib64 -L/usr/lib ${GTK_LIBS} ${GLIB_LIBS} $LIBS"
5630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5631 /* end confdefs.h. */
5642 if ac_fn_c_try_link "$LINENO"; then :
5643 ac_cv_lib_wx_gtk2u_core_2_8_main=yes
5645 ac_cv_lib_wx_gtk2u_core_2_8_main=no
5647 rm -f core conftest.err conftest.$ac_objext \
5648 conftest$ac_exeext conftest.$ac_ext
5649 LIBS=$ac_check_lib_save_LIBS
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wx_gtk2u_core_2_8_main" >&5
5652 $as_echo "$ac_cv_lib_wx_gtk2u_core_2_8_main" >&6; }
5653 if test "x$ac_cv_lib_wx_gtk2u_core_2_8_main" = x""yes; then :
5654 wxwin=true; wx_gtk=true;
5655 $as_echo "#define HAVE_WXWINDOWS 1" >>confdefs.h
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lwx_mac_core-2.8" >&5
5660 $as_echo_n "checking for main in -lwx_mac_core-2.8... " >&6; }
5661 if test "${ac_cv_lib_wx_mac_core_2_8_main+set}" = set; then :
5662 $as_echo_n "(cached) " >&6
5664 ac_check_lib_save_LIBS=$LIBS
5665 LIBS="-lwx_mac_core-2.8 $LIBS"
5666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667 /* end confdefs.h. */
5678 if ac_fn_c_try_link "$LINENO"; then :
5679 ac_cv_lib_wx_mac_core_2_8_main=yes
5681 ac_cv_lib_wx_mac_core_2_8_main=no
5683 rm -f core conftest.err conftest.$ac_objext \
5684 conftest$ac_exeext conftest.$ac_ext
5685 LIBS=$ac_check_lib_save_LIBS
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wx_mac_core_2_8_main" >&5
5688 $as_echo "$ac_cv_lib_wx_mac_core_2_8_main" >&6; }
5689 if test "x$ac_cv_lib_wx_mac_core_2_8_main" = x""yes; then :
5690 wxwin=true; wx_mac=true;
5691 $as_echo "#define HAVE_WXWINDOWS 1" >>confdefs.h
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_malloc in -lfftw3" >&5
5696 $as_echo_n "checking for fftw_malloc in -lfftw3... " >&6; }
5697 if test "${ac_cv_lib_fftw3_fftw_malloc+set}" = set; then :
5698 $as_echo_n "(cached) " >&6
5700 ac_check_lib_save_LIBS=$LIBS
5701 LIBS="-lfftw3 -L/usr/lib64 -L/usr/lib $LIBS"
5702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5703 /* end confdefs.h. */
5705 /* Override any GCC internal prototype to avoid an error.
5706 Use char because int might match the return type of a GCC
5707 builtin and then its argument prototype would still apply. */
5711 char fftw_malloc ();
5715 return fftw_malloc ();
5720 if ac_fn_c_try_link "$LINENO"; then :
5721 ac_cv_lib_fftw3_fftw_malloc=yes
5723 ac_cv_lib_fftw3_fftw_malloc=no
5725 rm -f core conftest.err conftest.$ac_objext \
5726 conftest$ac_exeext conftest.$ac_ext
5727 LIBS=$ac_check_lib_save_LIBS
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_malloc" >&5
5730 $as_echo "$ac_cv_lib_fftw3_fftw_malloc" >&6; }
5731 if test "x$ac_cv_lib_fftw3_fftw_malloc" = x""yes; then :
5733 $as_echo "#define HAVE_FFTW 1" >>confdefs.h
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lGL" >&5
5740 $as_echo_n "checking for main in -lGL... " >&6; }
5741 if test "${ac_cv_lib_GL_main+set}" = set; then :
5742 $as_echo_n "(cached) " >&6
5744 ac_check_lib_save_LIBS=$LIBS
5745 LIBS="-lGL -L/usr/X11R6/lib -L/usr/X11R6/lib64 $LIBS"
5746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5747 /* end confdefs.h. */
5758 if ac_fn_c_try_link "$LINENO"; then :
5759 ac_cv_lib_GL_main=yes
5761 ac_cv_lib_GL_main=no
5763 rm -f core conftest.err conftest.$ac_objext \
5764 conftest$ac_exeext conftest.$ac_ext
5765 LIBS=$ac_check_lib_save_LIBS
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_main" >&5
5768 $as_echo "$ac_cv_lib_GL_main" >&6; }
5769 if test "x$ac_cv_lib_GL_main" = x""yes; then :
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
5776 $as_echo_n "checking for main in -lpthread... " >&6; }
5777 if test "${ac_cv_lib_pthread_main+set}" = set; then :
5778 $as_echo_n "(cached) " >&6
5780 ac_check_lib_save_LIBS=$LIBS
5781 LIBS="-lpthread $LIBS"
5782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5783 /* end confdefs.h. */
5794 if ac_fn_c_try_link "$LINENO"; then :
5795 ac_cv_lib_pthread_main=yes
5797 ac_cv_lib_pthread_main=no
5799 rm -f core conftest.err conftest.$ac_objext \
5800 conftest$ac_exeext conftest.$ac_ext
5801 LIBS=$ac_check_lib_save_LIBS
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
5804 $as_echo "$ac_cv_lib_pthread_main" >&6; }
5805 if test "x$ac_cv_lib_pthread_main" = x""yes; then :
5812 if test "$zlib" = "true" ; then
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpng" >&5
5814 $as_echo_n "checking for main in -lpng... " >&6; }
5815 if test "${ac_cv_lib_png_main+set}" = set; then :
5816 $as_echo_n "(cached) " >&6
5818 ac_check_lib_save_LIBS=$LIBS
5819 LIBS="-lpng -L/opt/local/lib -lz -lm $LIBS"
5820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5821 /* end confdefs.h. */
5832 if ac_fn_c_try_link "$LINENO"; then :
5833 ac_cv_lib_png_main=yes
5835 ac_cv_lib_png_main=no
5837 rm -f core conftest.err conftest.$ac_objext \
5838 conftest$ac_exeext conftest.$ac_ext
5839 LIBS=$ac_check_lib_save_LIBS
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_main" >&5
5842 $as_echo "$ac_cv_lib_png_main" >&6; }
5843 if test "x$ac_cv_lib_png_main" = x""yes; then :
5845 $as_echo "#define HAVE_PNG 1" >>confdefs.h
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5854 $as_echo_n "checking for ANSI C header files... " >&6; }
5855 if test "${ac_cv_header_stdc+set}" = set; then :
5856 $as_echo_n "(cached) " >&6
5858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859 /* end confdefs.h. */
5873 if ac_fn_c_try_compile "$LINENO"; then :
5874 ac_cv_header_stdc=yes
5876 ac_cv_header_stdc=no
5878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5880 if test $ac_cv_header_stdc = yes; then
5881 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5883 /* end confdefs.h. */
5887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5888 $EGREP "memchr" >/dev/null 2>&1; then :
5891 ac_cv_header_stdc=no
5897 if test $ac_cv_header_stdc = yes; then
5898 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5900 /* end confdefs.h. */
5904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5905 $EGREP "free" >/dev/null 2>&1; then :
5908 ac_cv_header_stdc=no
5914 if test $ac_cv_header_stdc = yes; then
5915 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5916 if test "$cross_compiling" = yes; then :
5919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920 /* end confdefs.h. */
5923 #if ((' ' & 0x0FF) == 0x020)
5924 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5925 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5927 # define ISLOWER(c) \
5928 (('a' <= (c) && (c) <= 'i') \
5929 || ('j' <= (c) && (c) <= 'r') \
5930 || ('s' <= (c) && (c) <= 'z'))
5931 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5934 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5939 for (i = 0; i < 256; i++)
5940 if (XOR (islower (i), ISLOWER (i))
5941 || toupper (i) != TOUPPER (i))
5946 if ac_fn_c_try_run "$LINENO"; then :
5949 ac_cv_header_stdc=no
5951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5952 conftest.$ac_objext conftest.beam conftest.$ac_ext
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5958 $as_echo "$ac_cv_header_stdc" >&6; }
5959 if test $ac_cv_header_stdc = yes; then
5961 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5965 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
5967 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5968 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5969 eval as_val=\$$as_ac_Header
5970 if test "x$as_val" = x""yes; then :
5971 cat >>confdefs.h <<_ACEOF
5972 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5981 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5982 if test "${ac_cv_c_const+set}" = set; then :
5983 $as_echo_n "(cached) " >&6
5985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5986 /* end confdefs.h. */
5991 /* FIXME: Include the comments suggested by Paul. */
5993 /* Ultrix mips cc rejects this. */
5994 typedef int charset[2];
5996 /* SunOS 4.1.1 cc rejects this. */
5997 char const *const *pcpcc;
5999 /* NEC SVR4.0.2 mips cc rejects this. */
6000 struct point {int x, y;};
6001 static struct point const zero = {0,0};
6002 /* AIX XL C 1.02.0.0 rejects this.
6003 It does not let you subtract one const X* pointer from another in
6004 an arm of an if-expression whose if-part is not a constant
6006 const char *g = "string";
6007 pcpcc = &g + (g ? g-g : 0);
6008 /* HPUX 7.0 cc rejects these. */
6010 ppc = (char**) pcpcc;
6011 pcpcc = (char const *const *) ppc;
6012 { /* SCO 3.2v4 cc rejects this. */
6014 char const *s = 0 ? (char *) 0 : (char const *) 0;
6019 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6021 const int *foo = &x[0];
6024 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6025 typedef const int *iptr;
6029 { /* AIX XL C 1.02.0.0 rejects this saying
6030 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6031 struct s { int j; const int *ap[3]; };
6032 struct s *b; b->j = 5;
6034 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6038 return !cs[0] && !zero.x;
6045 if ac_fn_c_try_compile "$LINENO"; then :
6050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6053 $as_echo "$ac_cv_c_const" >&6; }
6054 if test $ac_cv_c_const = no; then
6056 $as_echo "#define const /**/" >>confdefs.h
6060 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6061 if test "x$ac_cv_type_off_t" = x""yes; then :
6065 cat >>confdefs.h <<_ACEOF
6066 #define off_t long int
6071 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6072 if test "x$ac_cv_type_size_t" = x""yes; then :
6076 cat >>confdefs.h <<_ACEOF
6077 #define size_t unsigned int
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6083 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6084 if test "${ac_cv_struct_tm+set}" = set; then :
6085 $as_echo_n "(cached) " >&6
6087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6088 /* end confdefs.h. */
6089 #include <sys/types.h>
6096 int *p = &tm.tm_sec;
6102 if ac_fn_c_try_compile "$LINENO"; then :
6103 ac_cv_struct_tm=time.h
6105 ac_cv_struct_tm=sys/time.h
6107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6110 $as_echo "$ac_cv_struct_tm" >&6; }
6111 if test $ac_cv_struct_tm = sys/time.h; then
6113 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6118 for ac_func in vprintf
6120 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
6121 if test "x$ac_cv_func_vprintf" = x""yes; then :
6122 cat >>confdefs.h <<_ACEOF
6123 #define HAVE_VPRINTF 1
6126 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6127 if test "x$ac_cv_func__doprnt" = x""yes; then :
6129 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
6137 for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf basename setjmp setpriority time gettimeofday getenv
6139 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6140 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6141 eval as_val=\$$as_ac_var
6142 if test "x$as_val" = x""yes; then :
6143 cat >>confdefs.h <<_ACEOF
6144 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6150 ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
6151 if test "x$ac_cv_func_basename" = x""yes; then :
6155 ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
6156 if test "x$ac_cv_func_setjmp" = x""yes; then :
6160 ac_fn_c_check_func "$LINENO" "setpriority" "ac_cv_func_setpriority"
6161 if test "x$ac_cv_func_setpriority" = x""yes; then :
6165 ac_fn_c_check_func "$LINENO" "time" "ac_cv_func_time"
6166 if test "x$ac_cv_func_time" = x""yes; then :
6170 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
6171 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
6175 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
6176 if test "x$ac_cv_func_getopt" = x""yes; then :
6183 if test "${OSTYPE}" = "cygwin" ; then
6186 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
6187 if test "x$ac_cv_func_getopt_long" = x""yes; then :
6195 if test "${getopt_long}" = "false" ; then
6196 my_includes="$my_includes -I../getopt"
6198 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
6200 ctlibs_base="$ctlibs_base -lgetopt"
6201 LDFLAGS="$LDFLAGS -L../getopt"
6206 if test "$GETOPTLONG"="1"; then
6207 INCLUDED_GETOPT_LONG_TRUE=
6208 INCLUDED_GETOPT_LONG_FALSE='#'
6210 INCLUDED_GETOPT_LONG_TRUE='#'
6211 INCLUDED_GETOPT_LONG_FALSE=
6215 if test "${readline}" = "true" ; then
6216 ctlibs_base="$ctlibs_base -lreadline"
6217 if test "${ncurses}" = "true"; then
6218 ctlibs_base="$ctlibs_base -lncurses"
6219 elif test "${curses}" = "true"; then
6220 ctlibs_base="$ctlibs_base -lcurses"
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking debug" >&5
6225 $as_echo_n "checking debug... " >&6; }
6226 # Check whether --enable-debug was given.
6227 if test "${enable_debug+set}" = set; then :
6228 enableval=$enable_debug; case "${enableval}" in
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6231 $as_echo "yes" >&6; }
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6235 $as_echo "no" >&6; }
6237 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: bad value ${enableval} for --enable-debug" >&5
6238 $as_echo "bad value ${enableval} for --enable-debug" >&6; }
6242 debug=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6243 $as_echo "no" >&6; }
6248 if test "$debug" = "true"; then
6257 if test "$datadir" != "" ; then
6258 CPPFLAGS="$CPPFLAGS -DDATADIR=\"\\\"$datadir\\\"\""
6261 if test "$debug" = "true" ; then
6262 CFLAGS="$CFLAGS -g -DDEBUG"
6264 $as_echo "#define DEBUG 1" >>confdefs.h
6267 CFLAGS="$CFLAGS -O2 -DNDEBUG -fomit-frame-pointer"
6269 $as_echo "#define NDEBUG 1" >>confdefs.h
6273 if test "${pthread}" = "true" ; then
6275 $as_echo "#define HAVE_WXTHREADS 1" >>confdefs.h
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sstream" >&5
6280 $as_echo_n "checking sstream... " >&6; }
6281 if test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
6282 test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ||
6283 test -f /usr/include/gcc/darwin/3.1/g++-v3/sstream ; then
6285 $as_echo "#define HAVE_SSTREAM 1" >>confdefs.h
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6288 $as_echo "yes" >&6; }
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6291 $as_echo "no" >&6; }
6295 CFLAGS="$CFLAGS -Wall"
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose warnings" >&5
6297 $as_echo_n "checking whether to enable verbose warnings... " >&6; }
6298 # Check whether --enable-verbose-warnings was given.
6299 if test "${enable_verbose_warnings+set}" = set; then :
6300 enableval=$enable_verbose_warnings; case "$enableval" in
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6303 $as_echo "yes" >&6; }
6304 CFLAGS="$CFLAGS -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wredundant-decls"
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6308 $as_echo "no" >&6; }
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6313 $as_echo "no" >&6; }
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking static executables" >&5
6319 $as_echo_n "checking static executables... " >&6; }
6320 # Check whether --enable-static was given.
6321 if test "${enable_static+set}" = set; then :
6322 enableval=$enable_static; case "$enableval" in
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6325 $as_echo "yes" >&6; }
6326 CFLAGS="$CFLAGS --static"
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6330 $as_echo "no" >&6; }
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6335 $as_echo "no" >&6; }
6341 # Check whether --with-lam was given.
6342 if test "${with_lam+set}" = set; then :
6343 withval=$with_lam; if test "$withval" != "no" ; then
6350 if test "$withval" != "no" ; then
6351 if test "$prefix" != "NONE" ; then
6352 trylamdir="$trylamdir $prefix"
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LAM MPI installation" >&5
6356 $as_echo_n "checking for LAM MPI installation... " >&6; }
6357 for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
6358 if test -x "$testlamdir/bin/hcp" ; then
6359 if test "$testlamdir" != "/usr"; then
6360 LDFLAGS="$LDFLAGS -L$testlamdir/lib"
6361 CFLAGS="$CFLAGS -I$testlamdir/include"
6363 CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
6364 lamdir="$testlamdir"
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lamdir" >&5
6372 $as_echo "$lamdir" >&6; }
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6375 $as_echo "no" >&6; }
6380 # Check whether --with-ctn was given.
6381 if test "${with_ctn+set}" = set; then :
6382 withval=$with_ctn; if test "$withval" != "no" ; then
6389 if test "$withval" == "no" -o "$withval" == "NONE" ; then
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CTN DICOM installation" >&5
6391 $as_echo_n "checking for CTN DICOM installation... " >&6; }
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6393 $as_echo "disabled" >&6; }
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CTN DICOM installation" >&5
6396 $as_echo_n "checking for CTN DICOM installation... " >&6; }
6397 for testctndir in $tryctndir/lib /usr/local/lib /usr/local/ctn/lib /usr/lib /usr/ctn/lib /usr/lib/ctn /opt/ctn/lib ; do
6398 if test -f "$testctndir/libctn.a" ; then
6399 LDFLAGS="$LDFLAGS -L$testctndir"
6404 for testctndir in $tryctndir/include /usr/local/include /usr/local/ctn/include /usr/include /usr/include/ctn /usr/ctn/include /opt/ctn/include ; do
6405 if test -f "$testctndir/ctn_os.h" ; then
6406 CFLAGS="$CFLAGS -I$testctndir"
6411 if test "$ctnlib" == "true" -a "$ctninclude" == "true" ; then
6414 $as_echo "#define HAVE_CTN_DICOM 1" >>confdefs.h
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6417 $as_echo "yes" >&6; }
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6420 $as_echo "no" >&6; }
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPU specification" >&5
6425 $as_echo_n "checking for CPU specification... " >&6; }
6427 # Check whether --with-mcpu was given.
6428 if test "${with_mcpu+set}" = set; then :
6433 if test "$withval" == "no" -o "$withval" == "yes" -o "$withval" == ""; then
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6435 $as_echo "no" >&6; }
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
6438 $as_echo "$withval" >&6; }
6439 CFLAGS="$CFLAGS -mcpu=$withval"
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for web access" >&5
6443 $as_echo_n "checking for web access... " >&6; }
6445 # Check whether --with-cgibin-dir was given.
6446 if test "${with_cgibin_dir+set}" = set; then :
6447 withval=$with_cgibin_dir; cgibindir=$withval ;
6452 # Check whether --with-cgibin-url was given.
6453 if test "${with_cgibin_url+set}" = set; then :
6454 withval=$with_cgibin_url; cgibinurl=$withval ;
6459 # Check whether --with-webdata-dir was given.
6460 if test "${with_webdata_dir+set}" = set; then :
6461 withval=$with_webdata_dir; webdatadir=$withval ;
6466 # Check whether --with-webdata-url was given.
6467 if test "${with_webdata_url+set}" = set; then :
6468 withval=$with_webdata_url; webdataurl=$withval ;
6473 # Check whether --with-html-dir was given.
6474 if test "${with_html_dir+set}" = set; then :
6475 withval=$with_html_dir; html_%dir=$withval ;
6479 if test "x$cgibindir" != "x" -o "x$cgibinurl" != "x" ; then
6480 cgiprograms="ctsim.cgi ctsim.conf"
6484 if test "x$html_dir" = "x" ; then
6485 htmldata=simulate.html
6490 if test "x$html_dir" = "x"; then
6499 if test "x$cgibindir" != "x" -o "x$cgibinurl" != "x" -o "x$webdatadir" != "x" -o "x$webdataurl" != "x" -o "x$html_dir" != "x" ; then
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6503 $as_echo "yes" >&6; }
6504 if test "x$cgibindir" = "x" ; then
6505 as_fn_error "--with-cgibin-dir not set for web access" "$LINENO" 5
6506 elif test "x$cgibinurl" = "x" ; then
6507 as_fn_error "--with-cgibin-url not set for web access" "$LINENO" 5
6508 elif test "x$webdatadir" = "x" ; then
6509 as_fn_error "--with-webdata-dir not set for web access" "$LINENO" 5
6510 elif test "x$webdataurl" = "x" ; then
6511 as_fn_error "--with-webdata-url not set for web access" "$LINENO" 5
6512 elif test "x$html_dir" = "x" ; then
6513 as_fn_error "--with-html-dir not set for web access" "$LINENO" 5
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6517 $as_echo "no" >&6; }
6522 if test "x$lamdir" != "x"; then
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
6532 $as_echo_n "checking for X... " >&6; }
6535 # Check whether --with-x was given.
6536 if test "${with_x+set}" = set; then :
6540 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6541 if test "x$with_x" = xno; then
6542 # The user explicitly disabled X.
6545 case $x_includes,$x_libraries in #(
6546 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
6547 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
6548 $as_echo_n "(cached) " >&6
6550 # One or both of the vars are not set, and there is no cached value.
6551 ac_x_includes=no ac_x_libraries=no
6552 rm -f -r conftest.dir
6553 if mkdir conftest.dir; then
6555 cat >Imakefile <<'_ACEOF'
6557 @echo incroot='${INCROOT}'
6559 @echo usrlibdir='${USRLIBDIR}'
6561 @echo libdir='${LIBDIR}'
6563 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6564 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6565 for ac_var in incroot usrlibdir libdir; do
6566 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6568 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6569 for ac_extension in a so sl dylib la dll; do
6570 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6571 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6572 ac_im_usrlibdir=$ac_im_libdir; break
6575 # Screen out bogus values from the imake configuration. They are
6576 # bogus both because they are the default anyway, and because
6577 # using them would break gcc on systems where it needs fixed includes.
6578 case $ac_im_incroot in
6579 /usr/include) ac_x_includes= ;;
6580 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6582 case $ac_im_usrlibdir in
6583 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
6584 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6588 rm -f -r conftest.dir
6591 # Standard set of common directories for X headers.
6592 # Check X11 before X11Rn because it is often a symlink to the current release.
6606 /usr/local/X11/include
6607 /usr/local/X11R7/include
6608 /usr/local/X11R6/include
6609 /usr/local/X11R5/include
6610 /usr/local/X11R4/include
6612 /usr/local/include/X11
6613 /usr/local/include/X11R7
6614 /usr/local/include/X11R6
6615 /usr/local/include/X11R5
6616 /usr/local/include/X11R4
6620 /usr/XFree86/include/X11
6624 /usr/unsupported/include
6626 /usr/local/x11r5/include
6627 /usr/lpp/Xamples/include
6629 /usr/openwin/include
6630 /usr/openwin/share/include'
6632 if test "$ac_x_includes" = no; then
6633 # Guess where to find include files, by looking for Xlib.h.
6634 # First, try using that file with no special directory specified.
6635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6636 /* end confdefs.h. */
6637 #include <X11/Xlib.h>
6639 if ac_fn_c_try_cpp "$LINENO"; then :
6640 # We can compile using X headers with no special include directory.
6643 for ac_dir in $ac_x_header_dirs; do
6644 if test -r "$ac_dir/X11/Xlib.h"; then
6645 ac_x_includes=$ac_dir
6650 rm -f conftest.err conftest.$ac_ext
6651 fi # $ac_x_includes = no
6653 if test "$ac_x_libraries" = no; then
6654 # Check for the libraries.
6655 # See if we find them without any special options.
6656 # Don't add to $LIBS permanently.
6659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6660 /* end confdefs.h. */
6661 #include <X11/Xlib.h>
6670 if ac_fn_c_try_link "$LINENO"; then :
6672 # We can link X programs with no special library path.
6676 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6678 # Don't even attempt the hair of trying to link an X program!
6679 for ac_extension in a so sl dylib la dll; do
6680 if test -r "$ac_dir/libX11.$ac_extension"; then
6681 ac_x_libraries=$ac_dir
6687 rm -f core conftest.err conftest.$ac_objext \
6688 conftest$ac_exeext conftest.$ac_ext
6689 fi # $ac_x_libraries = no
6691 case $ac_x_includes,$ac_x_libraries in #(
6693 # Didn't find X, or a directory has "'" in its name.
6694 ac_cv_have_x="have_x=no";; #(
6696 # Record where we found X for the cache.
6697 ac_cv_have_x="have_x=yes\
6698 ac_x_includes='$ac_x_includes'\
6699 ac_x_libraries='$ac_x_libraries'"
6705 eval "$ac_cv_have_x"
6708 if test "$have_x" != yes; then
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
6710 $as_echo "$have_x" >&6; }
6713 # If each of the values was on the command line, it overrides each guess.
6714 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6715 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6716 # Update the cache value to reflect the command line values.
6717 ac_cv_have_x="have_x=yes\
6718 ac_x_includes='$x_includes'\
6719 ac_x_libraries='$x_libraries'"
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
6721 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6724 if test "$no_x" = yes; then
6725 # Not all programs may use this symbol, but it does not hurt to define it.
6727 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
6729 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6731 if test -n "$x_includes"; then
6732 X_CFLAGS="$X_CFLAGS -I$x_includes"
6735 # It would also be nice to do this for all -L options, not just this one.
6736 if test -n "$x_libraries"; then
6737 X_LIBS="$X_LIBS -L$x_libraries"
6738 # For Solaris; some versions of Sun CC require a space after -R and
6739 # others require no space. Words are not sufficient . . . .
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
6741 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
6742 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6743 ac_xsave_c_werror_flag=$ac_c_werror_flag
6744 ac_c_werror_flag=yes
6745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746 /* end confdefs.h. */
6756 if ac_fn_c_try_link "$LINENO"; then :
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6758 $as_echo "no" >&6; }
6759 X_LIBS="$X_LIBS -R$x_libraries"
6761 LIBS="$ac_xsave_LIBS -R $x_libraries"
6762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6763 /* end confdefs.h. */
6773 if ac_fn_c_try_link "$LINENO"; then :
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6775 $as_echo "yes" >&6; }
6776 X_LIBS="$X_LIBS -R $x_libraries"
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
6779 $as_echo "neither works" >&6; }
6781 rm -f core conftest.err conftest.$ac_objext \
6782 conftest$ac_exeext conftest.$ac_ext
6784 rm -f core conftest.err conftest.$ac_objext \
6785 conftest$ac_exeext conftest.$ac_ext
6786 ac_c_werror_flag=$ac_xsave_c_werror_flag
6790 # Check for system-dependent libraries X programs must link with.
6791 # Do this before checking for the system-independent R6 libraries
6792 # (-lICE), since we may need -lsocket or whatever for X linking.
6794 if test "$ISC" = yes; then
6795 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6797 # Martyn Johnson says this is needed for Ultrix, if the X
6798 # libraries were built with DECnet support. And Karl Berry says
6799 # the Alpha needs dnet_stub (dnet does not exist).
6800 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802 /* end confdefs.h. */
6804 /* Override any GCC internal prototype to avoid an error.
6805 Use char because int might match the return type of a GCC
6806 builtin and then its argument prototype would still apply. */
6810 char XOpenDisplay ();
6814 return XOpenDisplay ();
6819 if ac_fn_c_try_link "$LINENO"; then :
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
6823 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6824 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
6825 $as_echo_n "(cached) " >&6
6827 ac_check_lib_save_LIBS=$LIBS
6829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6830 /* end confdefs.h. */
6832 /* Override any GCC internal prototype to avoid an error.
6833 Use char because int might match the return type of a GCC
6834 builtin and then its argument prototype would still apply. */
6842 return dnet_ntoa ();
6847 if ac_fn_c_try_link "$LINENO"; then :
6848 ac_cv_lib_dnet_dnet_ntoa=yes
6850 ac_cv_lib_dnet_dnet_ntoa=no
6852 rm -f core conftest.err conftest.$ac_objext \
6853 conftest$ac_exeext conftest.$ac_ext
6854 LIBS=$ac_check_lib_save_LIBS
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6857 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6858 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
6859 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6862 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
6864 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6865 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
6866 $as_echo_n "(cached) " >&6
6868 ac_check_lib_save_LIBS=$LIBS
6869 LIBS="-ldnet_stub $LIBS"
6870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6871 /* end confdefs.h. */
6873 /* Override any GCC internal prototype to avoid an error.
6874 Use char because int might match the return type of a GCC
6875 builtin and then its argument prototype would still apply. */
6883 return dnet_ntoa ();
6888 if ac_fn_c_try_link "$LINENO"; then :
6889 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6891 ac_cv_lib_dnet_stub_dnet_ntoa=no
6893 rm -f core conftest.err conftest.$ac_objext \
6894 conftest$ac_exeext conftest.$ac_ext
6895 LIBS=$ac_check_lib_save_LIBS
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6898 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6899 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
6900 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6905 rm -f core conftest.err conftest.$ac_objext \
6906 conftest$ac_exeext conftest.$ac_ext
6907 LIBS="$ac_xsave_LIBS"
6909 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6910 # to get the SysV transport functions.
6911 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6913 # The nsl library prevents programs from opening the X display
6914 # on Irix 5.2, according to T.E. Dickey.
6915 # The functions gethostbyname, getservbyname, and inet_addr are
6916 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6917 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
6918 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
6922 if test $ac_cv_func_gethostbyname = no; then
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
6924 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6925 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
6926 $as_echo_n "(cached) " >&6
6928 ac_check_lib_save_LIBS=$LIBS
6930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6931 /* end confdefs.h. */
6933 /* Override any GCC internal prototype to avoid an error.
6934 Use char because int might match the return type of a GCC
6935 builtin and then its argument prototype would still apply. */
6939 char gethostbyname ();
6943 return gethostbyname ();
6948 if ac_fn_c_try_link "$LINENO"; then :
6949 ac_cv_lib_nsl_gethostbyname=yes
6951 ac_cv_lib_nsl_gethostbyname=no
6953 rm -f core conftest.err conftest.$ac_objext \
6954 conftest$ac_exeext conftest.$ac_ext
6955 LIBS=$ac_check_lib_save_LIBS
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
6958 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6959 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
6960 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6963 if test $ac_cv_lib_nsl_gethostbyname = no; then
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
6965 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
6966 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
6967 $as_echo_n "(cached) " >&6
6969 ac_check_lib_save_LIBS=$LIBS
6971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6972 /* end confdefs.h. */
6974 /* Override any GCC internal prototype to avoid an error.
6975 Use char because int might match the return type of a GCC
6976 builtin and then its argument prototype would still apply. */
6980 char gethostbyname ();
6984 return gethostbyname ();
6989 if ac_fn_c_try_link "$LINENO"; then :
6990 ac_cv_lib_bsd_gethostbyname=yes
6992 ac_cv_lib_bsd_gethostbyname=no
6994 rm -f core conftest.err conftest.$ac_objext \
6995 conftest$ac_exeext conftest.$ac_ext
6996 LIBS=$ac_check_lib_save_LIBS
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
6999 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7000 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
7001 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7007 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7008 # socket/setsockopt and other routines are undefined under SCO ODT
7009 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7010 # on later versions), says Simon Leinen: it contains gethostby*
7011 # variants that don't use the name server (or something). -lsocket
7012 # must be given before -lnsl if both are needed. We assume that
7013 # if connect needs -lnsl, so does gethostbyname.
7014 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7015 if test "x$ac_cv_func_connect" = x""yes; then :
7019 if test $ac_cv_func_connect = no; then
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7021 $as_echo_n "checking for connect in -lsocket... " >&6; }
7022 if test "${ac_cv_lib_socket_connect+set}" = set; then :
7023 $as_echo_n "(cached) " >&6
7025 ac_check_lib_save_LIBS=$LIBS
7026 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7028 /* end confdefs.h. */
7030 /* Override any GCC internal prototype to avoid an error.
7031 Use char because int might match the return type of a GCC
7032 builtin and then its argument prototype would still apply. */
7045 if ac_fn_c_try_link "$LINENO"; then :
7046 ac_cv_lib_socket_connect=yes
7048 ac_cv_lib_socket_connect=no
7050 rm -f core conftest.err conftest.$ac_objext \
7051 conftest$ac_exeext conftest.$ac_ext
7052 LIBS=$ac_check_lib_save_LIBS
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7055 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7056 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
7057 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7062 # Guillermo Gomez says -lposix is necessary on A/UX.
7063 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7064 if test "x$ac_cv_func_remove" = x""yes; then :
7068 if test $ac_cv_func_remove = no; then
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7070 $as_echo_n "checking for remove in -lposix... " >&6; }
7071 if test "${ac_cv_lib_posix_remove+set}" = set; then :
7072 $as_echo_n "(cached) " >&6
7074 ac_check_lib_save_LIBS=$LIBS
7075 LIBS="-lposix $LIBS"
7076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7077 /* end confdefs.h. */
7079 /* Override any GCC internal prototype to avoid an error.
7080 Use char because int might match the return type of a GCC
7081 builtin and then its argument prototype would still apply. */
7094 if ac_fn_c_try_link "$LINENO"; then :
7095 ac_cv_lib_posix_remove=yes
7097 ac_cv_lib_posix_remove=no
7099 rm -f core conftest.err conftest.$ac_objext \
7100 conftest$ac_exeext conftest.$ac_ext
7101 LIBS=$ac_check_lib_save_LIBS
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7104 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7105 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
7106 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7111 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7112 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7113 if test "x$ac_cv_func_shmat" = x""yes; then :
7117 if test $ac_cv_func_shmat = no; then
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7119 $as_echo_n "checking for shmat in -lipc... " >&6; }
7120 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
7121 $as_echo_n "(cached) " >&6
7123 ac_check_lib_save_LIBS=$LIBS
7125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7126 /* end confdefs.h. */
7128 /* Override any GCC internal prototype to avoid an error.
7129 Use char because int might match the return type of a GCC
7130 builtin and then its argument prototype would still apply. */
7143 if ac_fn_c_try_link "$LINENO"; then :
7144 ac_cv_lib_ipc_shmat=yes
7146 ac_cv_lib_ipc_shmat=no
7148 rm -f core conftest.err conftest.$ac_objext \
7149 conftest$ac_exeext conftest.$ac_ext
7150 LIBS=$ac_check_lib_save_LIBS
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7153 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7154 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
7155 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7161 # Check for libraries that X11R6 Xt/Xaw programs need.
7162 ac_save_LDFLAGS=$LDFLAGS
7163 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7164 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7165 # check for ICE first), but we must link in the order -lSM -lICE or
7166 # we get undefined symbols. So assume we have SM if we have ICE.
7167 # These have to be linked with before -lX11, unlike the other
7168 # libraries we check for below, so use a different variable.
7169 # John Interrante, Karl Berry
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7171 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7172 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
7173 $as_echo_n "(cached) " >&6
7175 ac_check_lib_save_LIBS=$LIBS
7176 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7178 /* end confdefs.h. */
7180 /* Override any GCC internal prototype to avoid an error.
7181 Use char because int might match the return type of a GCC
7182 builtin and then its argument prototype would still apply. */
7186 char IceConnectionNumber ();
7190 return IceConnectionNumber ();
7195 if ac_fn_c_try_link "$LINENO"; then :
7196 ac_cv_lib_ICE_IceConnectionNumber=yes
7198 ac_cv_lib_ICE_IceConnectionNumber=no
7200 rm -f core conftest.err conftest.$ac_objext \
7201 conftest$ac_exeext conftest.$ac_ext
7202 LIBS=$ac_check_lib_save_LIBS
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7205 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7206 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
7207 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7210 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` -lwx_gtk2u_gl-2.8 ${GTK_LIBS} ${GLIB_LIBS}"
7259 elif test "x$wx_mac" != "x" ; then
7260 ctlib_graphics="$ctlib_graphics `$wxconfig $wxdebug --version=2.8 --libs` -lwx_macu_gl-2.8"
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; }
7276 if test "$wxwin" = "true"; then
7285 if test "$png" = "true" ; then
7286 ctlibs_tools="$ctlibs_tools -lpng"
7288 if test "$zlib" = "true" ; then
7289 ctlibs_tools="$ctlibs_tools -lz"
7291 if test "$fftw" = "true" ; then
7292 ctlibs_tools="$ctlibs_tools -lfftw3"
7294 if test "$ctn" = "true"; then
7295 ctlibs_tools="$ctlibs_tools -lctn"
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldmallocxx" >&5
7299 $as_echo_n "checking for main in -ldmallocxx... " >&6; }
7300 if test "${ac_cv_lib_dmallocxx_main+set}" = set; then :
7301 $as_echo_n "(cached) " >&6
7303 ac_check_lib_save_LIBS=$LIBS
7304 LIBS="-ldmallocxx $LIBS"
7305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7306 /* end confdefs.h. */
7317 if ac_fn_c_try_link "$LINENO"; then :
7318 ac_cv_lib_dmallocxx_main=yes
7320 ac_cv_lib_dmallocxx_main=no
7322 rm -f core conftest.err conftest.$ac_objext \
7323 conftest$ac_exeext conftest.$ac_ext
7324 LIBS=$ac_check_lib_save_LIBS
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmallocxx_main" >&5
7327 $as_echo "$ac_cv_lib_dmallocxx_main" >&6; }
7328 if test "x$ac_cv_lib_dmallocxx_main" = x""yes; then :
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enable-dmalloc" >&5
7335 $as_echo_n "checking for enable-dmalloc... " >&6; }
7336 # Check whether --enable-dmalloc was given.
7337 if test "${enable_dmalloc+set}" = set; then :
7338 enableval=$enable_dmalloc; case "${enableval}" in
7339 yes) usedmalloc=true
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7341 $as_echo "yes" >&6; }
7343 no) usedmalloc=false
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7345 $as_echo "no" >&6; }
7347 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: bad value ${enableval} for --enable-dmalloc" >&5
7348 $as_echo "bad value ${enableval} for --enable-dmalloc" >&6; }
7352 usedmalloc=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7353 $as_echo "no" >&6; }
7357 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
7358 ctlibs_tools="$ctlibs_tools -ldmallocxx"
7360 $as_echo "#define HAVE_DMALLOC 1" >>confdefs.h
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using dmalloc" >&5
7363 $as_echo "Using dmalloc" >&6; }
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lefence" >&5
7367 $as_echo_n "checking for main in -lefence... " >&6; }
7368 if test "${ac_cv_lib_efence_main+set}" = set; then :
7369 $as_echo_n "(cached) " >&6
7371 ac_check_lib_save_LIBS=$LIBS
7372 LIBS="-lefence $LIBS"
7373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7374 /* end confdefs.h. */
7385 if ac_fn_c_try_link "$LINENO"; then :
7386 ac_cv_lib_efence_main=yes
7388 ac_cv_lib_efence_main=no
7390 rm -f core conftest.err conftest.$ac_objext \
7391 conftest$ac_exeext conftest.$ac_ext
7392 LIBS=$ac_check_lib_save_LIBS
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_main" >&5
7395 $as_echo "$ac_cv_lib_efence_main" >&6; }
7396 if test "x$ac_cv_lib_efence_main" = x""yes; then :
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enable-efence" >&5
7403 $as_echo_n "checking for enable-efence... " >&6; }
7404 # Check whether --enable-efence was given.
7405 if test "${enable_efence+set}" = set; then :
7406 enableval=$enable_efence; case "${enableval}" in
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7409 $as_echo "yes" >&6; }
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7413 $as_echo "no" >&6; }
7415 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: bad value ${enableval} for --enable-efence" >&5
7416 $as_echo "bad value ${enableval} for --enable-efence" >&6; }
7420 useefence=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7421 $as_echo "no" >&6; }
7425 if test "$efence" = "true" -a "$useefence" = "true" ; then
7426 ctlibs_tools="$ctlibs_tools -lefence"
7428 $as_echo "#define HAVE_EFENCE 1" >>confdefs.h
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using efence" >&5
7431 $as_echo "Using efence" >&6; }
7434 if test "$wxwin" = "true" ; then
7435 if test "$wx_gtk" = "true" -o "$wx_mac" = "true" ; then
7436 wxcflags=`$wxconfig $wxdebug --cxxflags --version=2.8`
7437 #wxlibs=`$wxconfig --libs`
7439 wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
7440 wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
7442 CFLAGS="$CFLAGS -I../include $wxcflags"
7443 ctlib_graphics="$ctlib_graphics $wxlibs"
7449 if test "$wxwin"="true"; then
7450 HAVE_WXWINDOWS_TRUE=
7451 HAVE_WXWINDOWS_FALSE='#'
7453 HAVE_WXWINDOWS_TRUE='#'
7454 HAVE_WXWINDOWS_FALSE=
7458 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
7459 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
7462 if test "x$lamdir" != "x" ; then
7463 lamprograms="ctsimtext-lam"
7471 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"
7474 cat >confcache <<\_ACEOF
7475 # This file is a shell script that caches the results of configure
7476 # tests run on this system so they can be shared between configure
7477 # scripts and configure runs, see configure's option --config-cache.
7478 # It is not useful on other systems. If it contains results you don't
7479 # want to keep, you may remove or edit it.
7481 # config.status only pays attention to the cache file if you give it
7482 # the --recheck option to rerun configure.
7484 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7485 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7490 # The following way of writing the cache mishandles newlines in values,
7491 # but we know of no workaround that is simple, portable, and efficient.
7492 # So, we kill variables containing newlines.
7493 # Ultrix sh set writes to stderr and can't be redirected directly,
7494 # and sets the high bit in the cache file unless we assign to the vars.
7496 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7497 eval ac_val=\$$ac_var
7501 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7502 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7505 _ | IFS | as_nl) ;; #(
7506 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7507 *) { eval $ac_var=; unset $ac_var;} ;;
7513 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7514 *${as_nl}ac_space=\ *)
7515 # `set' does not quote correctly, so add quotes: double-quote
7516 # substitution turns \\\\ into \\, and sed turns \\ into \.
7519 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7522 # `set' quotes correctly as required by POSIX, so do not add quotes.
7523 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7532 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7534 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7536 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7537 if test -w "$cache_file"; then
7538 test "x$cache_file" != "x/dev/null" &&
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7540 $as_echo "$as_me: updating cache $cache_file" >&6;}
7541 cat confcache >$cache_file
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7544 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7549 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7550 # Let make expand exec_prefix.
7551 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7553 DEFS=-DHAVE_CONFIG_H
7557 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7558 # 1. Remove the extension, and $U if already installed.
7559 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7560 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7561 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7562 # will be set to the directory where LIBOBJS objects are built.
7563 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7564 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7568 LTLIBOBJS=$ac_ltlibobjs
7571 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7572 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
7573 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7575 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7576 as_fn_error "conditional \"AMDEP\" was never defined.
7577 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7579 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7580 as_fn_error "conditional \"am__fastdepCC\" was never defined.
7581 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7583 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
7584 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
7585 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7588 if test -z "${INCLUDED_GETOPT_LONG_TRUE}" && test -z "${INCLUDED_GETOPT_LONG_FALSE}"; then
7589 as_fn_error "conditional \"INCLUDED_GETOPT_LONG\" was never defined.
7590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7592 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
7593 as_fn_error "conditional \"DEBUG\" was never defined.
7594 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7596 if test -z "${USE_HTML_TRUE}" && test -z "${USE_HTML_FALSE}"; then
7597 as_fn_error "conditional \"USE_HTML\" was never defined.
7598 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7600 if test -z "${USE_LAM_TRUE}" && test -z "${USE_LAM_FALSE}"; then
7601 as_fn_error "conditional \"USE_LAM\" was never defined.
7602 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7604 if test -z "${NO_X_TRUE}" && test -z "${NO_X_FALSE}"; then
7605 as_fn_error "conditional \"NO_X\" was never defined.
7606 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7608 if test -z "${HAVE_SGP_TRUE}" && test -z "${HAVE_SGP_FALSE}"; then
7609 as_fn_error "conditional \"HAVE_SGP\" was never defined.
7610 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7612 if test -z "${HAVE_WXWINDOWS_TRUE}" && test -z "${HAVE_WXWINDOWS_FALSE}"; then
7613 as_fn_error "conditional \"HAVE_WXWINDOWS\" was never defined.
7614 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7617 : ${CONFIG_STATUS=./config.status}
7619 ac_clean_files_save=$ac_clean_files
7620 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7622 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7624 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7626 # Generated by $as_me.
7627 # Run this file to recreate the current configuration.
7628 # Compiler output produced by configure, useful for debugging
7629 # configure, is in config.log if it exists.
7635 SHELL=\${CONFIG_SHELL-$SHELL}
7638 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7639 ## -------------------- ##
7640 ## M4sh Initialization. ##
7641 ## -------------------- ##
7643 # Be more Bourne compatible
7644 DUALCASE=1; export DUALCASE # for MKS sh
7645 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7648 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7649 # is contrary to our usage. Disable this feature.
7650 alias -g '${1+"$@"}'='"$@"'
7651 setopt NO_GLOB_SUBST
7653 case `(set -o) 2>/dev/null` in #(
7665 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7666 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7667 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7668 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7669 # Prefer a ksh shell builtin over an external printf program on Solaris,
7670 # but without wasting forks for bash or zsh.
7671 if test -z "$BASH_VERSION$ZSH_VERSION" \
7672 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7673 as_echo='print -r --'
7674 as_echo_n='print -rn --'
7675 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7676 as_echo='printf %s\n'
7677 as_echo_n='printf %s'
7679 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7680 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7681 as_echo_n='/usr/ucb/echo -n'
7683 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7684 as_echo_n_body='eval
7688 expr "X$arg" : "X\\(.*\\)$as_nl";
7689 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7691 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7693 export as_echo_n_body
7694 as_echo_n='sh -c $as_echo_n_body as_echo'
7697 as_echo='sh -c $as_echo_body as_echo'
7700 # The user is always right.
7701 if test "${PATH_SEPARATOR+set}" != set; then
7703 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7704 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7711 # We need space, tab and new line, in precisely that order. Quoting is
7712 # there to prevent editors from complaining about space-tab.
7713 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7714 # splitting by setting IFS to empty value.)
7717 # Find who we are. Look in the path if we contain no directory separator.
7719 *[\\/]* ) as_myself=$0 ;;
7720 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724 test -z "$as_dir" && as_dir=.
7725 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7731 # We did not find ourselves, most probably we were run as `sh COMMAND'
7732 # in which case we are not to be found in the path.
7733 if test "x$as_myself" = x; then
7736 if test ! -f "$as_myself"; then
7737 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7741 # Unset variables that we do not need and which cause bugs (e.g. in
7742 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7743 # suppresses any "Segmentation fault" message there. '((' could
7744 # trigger a bug in pdksh 5.2.14.
7745 for as_var in BASH_ENV ENV MAIL MAILPATH
7746 do eval test x\${$as_var+set} = xset \
7747 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7760 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7763 # as_fn_error ERROR [LINENO LOG_FD]
7764 # ---------------------------------
7765 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7766 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7767 # script with status $?, using 1 if that was 0.
7770 as_status=$?; test $as_status -eq 0 && as_status=1
7772 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7773 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7775 $as_echo "$as_me: error: $1" >&2
7776 as_fn_exit $as_status
7780 # as_fn_set_status STATUS
7781 # -----------------------
7782 # Set $? to STATUS, without forking.
7786 } # as_fn_set_status
7790 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7800 # Portably unset VAR.
7803 { eval $1=; unset $1;}
7805 as_unset=as_fn_unset
7806 # as_fn_append VAR VALUE
7807 # ----------------------
7808 # Append the text in VALUE to the end of the definition contained in VAR. Take
7809 # advantage of any shell optimizations that allow amortized linear growth over
7810 # repeated appends, instead of the typical quadratic growth present in naive
7812 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7813 eval 'as_fn_append ()
7824 # as_fn_arith ARG...
7825 # ------------------
7826 # Perform arithmetic evaluation on the ARGs, and store the result in the
7827 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7828 # must be portable across $(()) and expr.
7829 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7830 eval 'as_fn_arith ()
7837 as_val=`expr "$@" || test $? -eq 1`
7842 if expr a : '\(a\)' >/dev/null 2>&1 &&
7843 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7849 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7850 as_basename=basename
7855 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7861 as_me=`$as_basename -- "$0" ||
7862 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7863 X"$0" : 'X\(//\)$' \| \
7864 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7866 sed '/^.*\/\([^/][^/]*\)\/*$/{
7880 # Avoid depending upon Character Ranges.
7881 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7882 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7883 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7884 as_cr_digits='0123456789'
7885 as_cr_alnum=$as_cr_Letters$as_cr_digits
7887 ECHO_C= ECHO_N= ECHO_T=
7888 case `echo -n x` in #(((((
7890 case `echo 'xy\c'` in
7891 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7893 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7900 rm -f conf$$ conf$$.exe conf$$.file
7901 if test -d conf$$.dir; then
7902 rm -f conf$$.dir/conf$$.file
7905 mkdir conf$$.dir 2>/dev/null
7907 if (echo >conf$$.file) 2>/dev/null; then
7908 if ln -s conf$$.file conf$$ 2>/dev/null; then
7910 # ... but there are two gotchas:
7911 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7912 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7913 # In both cases, we have to default to `cp -p'.
7914 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7916 elif ln conf$$.file conf$$ 2>/dev/null; then
7924 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7925 rmdir conf$$.dir 2>/dev/null
7930 # Create "$as_dir" as a directory, including parents if necessary.
7935 -*) as_dir=./$as_dir;;
7937 test -d "$as_dir" || eval $as_mkdir_p || {
7941 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7942 *) as_qdir=$as_dir;;
7944 as_dirs="'$as_qdir' $as_dirs"
7945 as_dir=`$as_dirname -- "$as_dir" ||
7946 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7947 X"$as_dir" : 'X\(//\)[^/]' \| \
7948 X"$as_dir" : 'X\(//\)$' \| \
7949 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7950 $as_echo X"$as_dir" |
7951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7968 test -d "$as_dir" && break
7970 test -z "$as_dirs" || eval "mkdir $as_dirs"
7971 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
7975 if mkdir -p . 2>/dev/null; then
7976 as_mkdir_p='mkdir -p "$as_dir"'
7978 test -d ./-p && rmdir ./-p
7982 if test -x / >/dev/null 2>&1; then
7985 if ls -dL / >/dev/null 2>&1; then
7992 if test -d "$1"; then
7998 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7999 ???[sx]*):;;*)false;;esac;fi
8003 as_executable_p=$as_test_x
8005 # Sed expression to map a string onto a valid CPP name.
8006 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8008 # Sed expression to map a string onto a valid variable name.
8009 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8013 ## ----------------------------------- ##
8014 ## Main body of $CONFIG_STATUS script. ##
8015 ## ----------------------------------- ##
8017 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8020 # Save the log message, to keep $0 and so on meaningful, and to
8021 # report actual input values of CONFIG_FILES etc. instead of their
8022 # values after options handling.
8024 This file was extended by $as_me, which was
8025 generated by GNU Autoconf 2.64. Invocation command line was
8027 CONFIG_FILES = $CONFIG_FILES
8028 CONFIG_HEADERS = $CONFIG_HEADERS
8029 CONFIG_LINKS = $CONFIG_LINKS
8030 CONFIG_COMMANDS = $CONFIG_COMMANDS
8033 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8038 case $ac_config_files in *"
8039 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8042 case $ac_config_headers in *"
8043 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8048 # Files that config.status was made for.
8049 config_files="$ac_config_files"
8050 config_headers="$ac_config_headers"
8051 config_commands="$ac_config_commands"
8055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8057 \`$as_me' instantiates files and other configuration actions
8058 from templates according to the current configuration. Unless the files
8059 and actions are specified as TAGs, all are instantiated by default.
8061 Usage: $0 [OPTION]... [TAG]...
8063 -h, --help print this help, then exit
8064 -V, --version print version number and configuration settings, then exit
8065 -q, --quiet, --silent
8066 do not print progress messages
8067 -d, --debug don't remove temporary files
8068 --recheck update $as_me by reconfiguring in the same conditions
8069 --file=FILE[:TEMPLATE]
8070 instantiate the configuration file FILE
8071 --header=FILE[:TEMPLATE]
8072 instantiate the configuration header FILE
8074 Configuration files:
8077 Configuration headers:
8080 Configuration commands:
8083 Report bugs to the package provider."
8086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8089 configured by $0, generated by GNU Autoconf 2.64,
8090 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8092 Copyright (C) 2009 Free Software Foundation, Inc.
8093 This config.status script is free software; the Free Software Foundation
8094 gives unlimited permission to copy, distribute and modify it."
8100 test -n "\$AWK" || AWK=awk
8103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8104 # The default lists apply if the user does not specify any file.
8110 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8111 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8122 # Handling of the options.
8123 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8125 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8126 $as_echo "$ac_cs_version"; exit ;;
8127 --debug | --debu | --deb | --de | --d | -d )
8129 --file | --fil | --fi | --f )
8132 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8134 as_fn_append CONFIG_FILES " '$ac_optarg'"
8135 ac_need_defaults=false;;
8136 --header | --heade | --head | --hea )
8139 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8141 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8142 ac_need_defaults=false;;
8144 # Conflict between --help and --header
8145 as_fn_error "ambiguous option: \`$1'
8146 Try \`$0 --help' for more information.";;
8147 --help | --hel | -h )
8148 $as_echo "$ac_cs_usage"; exit ;;
8149 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8150 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8154 -*) as_fn_error "unrecognized option: \`$1'
8155 Try \`$0 --help' for more information." ;;
8157 *) as_fn_append ac_config_targets " $1"
8158 ac_need_defaults=false ;;
8164 ac_configure_extra_args=
8166 if $ac_cs_silent; then
8168 ac_configure_extra_args="$ac_configure_extra_args --silent"
8172 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8173 if \$ac_cs_recheck; then
8174 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8176 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8177 CONFIG_SHELL='$SHELL'
8183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8187 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8188 ## Running $as_me. ##
8194 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8198 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8204 # Handling of arguments.
8205 for ac_config_target in $ac_config_targets
8207 case $ac_config_target in
8208 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8209 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8210 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8211 "libctgraphics/Makefile") CONFIG_FILES="$CONFIG_FILES libctgraphics/Makefile" ;;
8212 "libctsupport/Makefile") CONFIG_FILES="$CONFIG_FILES libctsupport/Makefile" ;;
8213 "libctsim/Makefile") CONFIG_FILES="$CONFIG_FILES libctsim/Makefile" ;;
8214 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
8215 "cgi-bin/ctsim.cgi") CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.cgi" ;;
8216 "cgi-bin/Makefile") CONFIG_FILES="$CONFIG_FILES cgi-bin/Makefile" ;;
8217 "html/simulate.html") CONFIG_FILES="$CONFIG_FILES html/simulate.html" ;;
8218 "html/Makefile") CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
8219 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
8220 "getopt/Makefile") CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
8221 "tools/sample-ctsim.sh") CONFIG_FILES="$CONFIG_FILES tools/sample-ctsim.sh" ;;
8222 "cgi-bin/ctsim.conf") CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.conf" ;;
8223 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
8224 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8225 "helical/Makefile") CONFIG_FILES="$CONFIG_FILES helical/Makefile" ;;
8226 "helical/sample-helical.sh") CONFIG_FILES="$CONFIG_FILES helical/sample-helical.sh" ;;
8228 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8233 # If the user did not use the arguments to specify the items to instantiate,
8234 # then the envvar interface is used. Set only those that are not.
8235 # We use the long form for the default assignment because of an extremely
8236 # bizarre bug on SunOS 4.1.3.
8237 if $ac_need_defaults; then
8238 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8239 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8240 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8243 # Have a temporary directory for convenience. Make it in the build tree
8244 # simply because there is no reason against having it here, and in addition,
8245 # creating and moving files from /tmp can sometimes cause problems.
8246 # Hook for its removal unless debugging.
8247 # Note that there is a small window in which the directory will not be cleaned:
8248 # after its creation but before its name has been assigned to `$tmp'.
8252 trap 'exit_status=$?
8253 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8255 trap 'as_fn_exit 1' 1 2 13 15
8257 # Create a (secure) tmp directory for tmp files.
8260 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8261 test -n "$tmp" && test -d "$tmp"
8264 tmp=./conf$$-$RANDOM
8265 (umask 077 && mkdir "$tmp")
8266 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
8268 # Set up the scripts for CONFIG_FILES section.
8269 # No need to generate them if there are no CONFIG_FILES.
8270 # This happens for instance with `./config.status config.h'.
8271 if test -n "$CONFIG_FILES"; then
8274 ac_cr=`echo X | tr X '\015'`
8275 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8276 # But we know of no other shell where ac_cr would be empty at this
8277 # point, so we can use a bashism as a fallback.
8278 if test "x$ac_cr" = x; then
8279 eval ac_cr=\$\'\\r\'
8281 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8282 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8288 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8293 echo "cat >conf$$subs.awk <<_ACEOF" &&
8294 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8297 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8298 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8300 for ac_last_try in false false false false false :; do
8301 . ./conf$$subs.sh ||
8302 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8304 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8305 if test $ac_delim_n = $ac_delim_num; then
8307 elif $ac_last_try; then
8308 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8310 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8315 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8316 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8320 s/^/S["/; s/!.*/"]=/
8330 s/\(.\{148\}\).*/\1/
8332 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8337 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8344 s/\(.\{148\}\).*/\1/
8346 s/["\\]/\\&/g; s/^/"/; s/$/"/
8350 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8355 ' <conf$$subs.awk | sed '
8360 ' >>$CONFIG_STATUS || ac_write_fail=1
8361 rm -f conf$$subs.awk
8362 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8364 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8365 for (key in S) S_is_set[key] = 1
8371 nfields = split(line, field, "@")
8373 len = length(field[1])
8374 for (i = 2; i < nfields; i++) {
8376 keylen = length(key)
8377 if (S_is_set[key]) {
8379 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8380 len += length(value) + length(field[++i])
8391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8392 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8393 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8396 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8397 || as_fn_error "could not setup config files machinery" "$LINENO" 5
8400 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8401 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8402 # trailing colons and then remove the whole line if VPATH becomes empty
8403 # (actually we leave an empty line to preserve line numbers).
8404 if test "x$srcdir" = x.; then
8405 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8409 s/^\([^=]*=[ ]*\):*/\1/
8415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8416 fi # test -n "$CONFIG_FILES"
8418 # Set up the scripts for CONFIG_HEADERS section.
8419 # No need to generate them if there are no CONFIG_HEADERS.
8420 # This happens for instance with `./config.status Makefile'.
8421 if test -n "$CONFIG_HEADERS"; then
8422 cat >"$tmp/defines.awk" <<\_ACAWK ||
8426 # Transform confdefs.h into an awk script `defines.awk', embedded as
8427 # here-document in config.status, that substitutes the proper values into
8428 # config.h.in to produce config.h.
8430 # Create a delimiter string that does not exist in confdefs.h, to ease
8431 # handling of long lines.
8433 for ac_last_try in false false :; do
8434 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8435 if test -z "$ac_t"; then
8437 elif $ac_last_try; then
8438 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
8440 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8444 # For the awk script, D is an array of macro values keyed by name,
8445 # likewise P contains macro parameters if any. Preserve backslash
8446 # newline sequences.
8448 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8450 s/.\{148\}/&'"$ac_delim"'/g
8453 s/^[ ]*#[ ]*define[ ][ ]*/ /
8460 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8462 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8466 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8467 D["\1"]=" \3\\\\\\n"\\/p
8469 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8474 s/.\{148\}/&'"$ac_delim"'/g
8479 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8482 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8484 ' <confdefs.h | sed '
8485 s/'"$ac_delim"'/"\\\
8486 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8489 for (key in D) D_is_set[key] = 1
8492 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8494 split(line, arg, " ")
8495 if (arg[1] == "#") {
8499 defundef = substr(arg[1], 2)
8502 split(mac1, mac2, "(") #)
8504 prefix = substr(line, 1, index(line, defundef) - 1)
8505 if (D_is_set[macro]) {
8506 # Preserve the white space surrounding the "#".
8507 print prefix "define", macro P[macro] D[macro]
8510 # Replace #undef with comments. This is necessary, for example,
8511 # in the case of _POSIX_SOURCE, which is predefined and required
8512 # on some systems where configure will not decide to define it.
8513 if (defundef == "undef") {
8514 print "/*", prefix defundef, macro, "*/"
8522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8523 as_fn_error "could not setup config headers machinery" "$LINENO" 5
8524 fi # test -n "$CONFIG_HEADERS"
8527 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8532 :[FHLC]) ac_mode=$ac_tag; continue;;
8534 case $ac_mode$ac_tag in
8536 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
8537 :[FH]-) ac_tag=-:-;;
8538 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8555 -) ac_f="$tmp/stdin";;
8556 *) # Look for the file first in the build tree, then in the source tree
8557 # (if the path is not absolute). The absolute path cannot be DOS-style,
8558 # because $ac_f cannot contain `:'.
8562 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8564 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8566 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8567 as_fn_append ac_file_inputs " '$ac_f'"
8570 # Let's still pretend it is `configure' which instantiates (i.e., don't
8571 # use $as_me), people would be surprised to read:
8572 # /* config.h. Generated by config.status. */
8573 configure_input='Generated from '`
8574 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8576 if test x"$ac_file" != x-; then
8577 configure_input="$ac_file. $configure_input"
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8579 $as_echo "$as_me: creating $ac_file" >&6;}
8581 # Neutralize special characters interpreted by sed in replacement strings.
8582 case $configure_input in #(
8583 *\&* | *\|* | *\\* )
8584 ac_sed_conf_input=`$as_echo "$configure_input" |
8585 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8586 *) ac_sed_conf_input=$configure_input;;
8590 *:-:* | *:-) cat >"$tmp/stdin" \
8591 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
8596 ac_dir=`$as_dirname -- "$ac_file" ||
8597 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8598 X"$ac_file" : 'X\(//\)[^/]' \| \
8599 X"$ac_file" : 'X\(//\)$' \| \
8600 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8601 $as_echo X"$ac_file" |
8602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8619 as_dir="$ac_dir"; as_fn_mkdir_p
8623 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8625 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8626 # A ".." for each directory in $ac_dir_suffix.
8627 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8628 case $ac_top_builddir_sub in
8629 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8630 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8633 ac_abs_top_builddir=$ac_pwd
8634 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8635 # for backward compatibility:
8636 ac_top_builddir=$ac_top_build_prefix
8639 .) # We are building in place.
8641 ac_top_srcdir=$ac_top_builddir_sub
8642 ac_abs_top_srcdir=$ac_pwd ;;
8643 [\\/]* | ?:[\\/]* ) # Absolute name.
8644 ac_srcdir=$srcdir$ac_dir_suffix;
8645 ac_top_srcdir=$srcdir
8646 ac_abs_top_srcdir=$srcdir ;;
8648 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8649 ac_top_srcdir=$ac_top_build_prefix$srcdir
8650 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8652 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8662 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8663 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8668 # If the template does not know about datarootdir, expand it.
8669 # FIXME: This hack should be removed a few years after 2.60.
8670 ac_datarootdir_hack=; ac_datarootdir_seen=
8681 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8682 *datarootdir*) ac_datarootdir_seen=yes;;
8683 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8685 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8688 ac_datarootdir_hack='
8689 s&@datadir@&$datadir&g
8690 s&@docdir@&$docdir&g
8691 s&@infodir@&$infodir&g
8692 s&@localedir@&$localedir&g
8693 s&@mandir@&$mandir&g
8694 s&\\\${datarootdir}&$datarootdir&g' ;;
8698 # Neutralize VPATH when `$srcdir' = `.'.
8699 # Shell code in configure.ac might set extrasub.
8700 # FIXME: do we really want to maintain this feature?
8701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8702 ac_sed_extra="$ac_vpsub
8705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8707 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8708 s|@configure_input@|$ac_sed_conf_input|;t t
8709 s&@top_builddir@&$ac_top_builddir_sub&;t t
8710 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8711 s&@srcdir@&$ac_srcdir&;t t
8712 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8713 s&@top_srcdir@&$ac_top_srcdir&;t t
8714 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8715 s&@builddir@&$ac_builddir&;t t
8716 s&@abs_builddir@&$ac_abs_builddir&;t t
8717 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8718 s&@INSTALL@&$ac_INSTALL&;t t
8719 $ac_datarootdir_hack
8721 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8722 || as_fn_error "could not create $ac_file" "$LINENO" 5
8724 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8725 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8726 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8728 which seems to be undefined. Please make sure it is defined." >&5
8729 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8730 which seems to be undefined. Please make sure it is defined." >&2;}
8734 -) cat "$tmp/out" && rm -f "$tmp/out";;
8735 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8737 || as_fn_error "could not create $ac_file" "$LINENO" 5
8743 if test x"$ac_file" != x-; then
8745 $as_echo "/* $configure_input */" \
8746 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8747 } >"$tmp/config.h" \
8748 || as_fn_error "could not create $ac_file" "$LINENO" 5
8749 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8751 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8754 mv "$tmp/config.h" "$ac_file" \
8755 || as_fn_error "could not create $ac_file" "$LINENO" 5
8758 $as_echo "/* $configure_input */" \
8759 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8760 || as_fn_error "could not create -" "$LINENO" 5
8762 # Compute "$ac_file"'s index in $config_headers.
8764 for _am_header in $config_headers :; do
8766 "$ac_file" | "$ac_file":* )
8769 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8772 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
8773 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8774 X"$ac_file" : 'X\(//\)[^/]' \| \
8775 X"$ac_file" : 'X\(//\)$' \| \
8776 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8777 $as_echo X"$ac_file" |
8778 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8794 s/.*/./; q'`/stamp-h$_am_stamp_count
8797 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8798 $as_echo "$as_me: executing $ac_file commands" >&6;}
8803 case $ac_file$ac_mode in
8804 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8805 # Strip MF so we end up with the name of the file.
8806 mf=`echo "$mf" | sed -e 's/:.*$//'`
8807 # Check whether this is an Automake generated Makefile or not.
8808 # We used to match only the files named `Makefile.in', but
8809 # some people rename them; so instead we look at the file content.
8810 # Grep'ing the first line is not enough: some people post-process
8811 # each Makefile.in and add a new line on top of each file to say so.
8812 # So let's grep whole file.
8813 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8814 dirpart=`$as_dirname -- "$mf" ||
8815 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8816 X"$mf" : 'X\(//\)[^/]' \| \
8817 X"$mf" : 'X\(//\)$' \| \
8818 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8820 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8840 # Extract the definition of DEPDIR, am__include, and am__quote
8841 # from the Makefile without running `make'.
8842 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8843 test -z "$DEPDIR" && continue
8844 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8845 test -z "am__include" && continue
8846 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8847 # When using ansi2knr, U may be empty or an underscore; expand it
8848 U=`sed -n 's/^U = //p' < "$mf"`
8849 # Find all dependency output files, they are included files with
8850 # $(DEPDIR) in their names. We invoke sed twice because it is the
8851 # simplest approach to changing $(DEPDIR) to its actual value in the
8853 for file in `sed -n "
8854 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8855 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8856 # Make sure the directory exists.
8857 test -f "$dirpart/$file" && continue
8858 fdir=`$as_dirname -- "$file" ||
8859 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8860 X"$file" : 'X\(//\)[^/]' \| \
8861 X"$file" : 'X\(//\)$' \| \
8862 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8881 as_dir=$dirpart/$fdir; as_fn_mkdir_p
8882 # echo "creating $dirpart/$file"
8883 echo '# dummy' > "$dirpart/$file"
8894 ac_clean_files=$ac_clean_files_save
8896 test $ac_write_fail = 0 ||
8897 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8900 # configure is writing to config.log, and then calls config.status.
8901 # config.status does its own redirection, appending to config.log.
8902 # Unfortunately, on DOS this fails, as config.log is still kept open
8903 # by configure, so config.status won't be able to write to it; its
8904 # output is simply discarded. So we exec the FD to /dev/null,
8905 # effectively closing config.log, so it can be properly (re)opened and
8906 # appended to by config.status. When coming back to configure, we
8907 # need to make the FD available again.
8908 if test "$no_create" != yes; then
8910 ac_config_status_args=
8911 test "$silent" = yes &&
8912 ac_config_status_args="$ac_config_status_args --quiet"
8914 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8916 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8917 # would make configure fail if this is the last instruction.
8918 $ac_cs_success || as_fn_exit $?
8920 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8922 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}