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"
2948 for ac_prog in gawk mawk nawk awk
2950 # Extract the first word of "$ac_prog", so it can be a program name with args.
2951 set dummy $ac_prog; ac_word=$2
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2953 $as_echo_n "checking for $ac_word... " >&6; }
2954 if test "${ac_cv_prog_AWK+set}" = set; then :
2955 $as_echo_n "(cached) " >&6
2957 if test -n "$AWK"; then
2958 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964 test -z "$as_dir" && as_dir=.
2965 for ac_exec_ext in '' $ac_executable_extensions; do
2966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2967 ac_cv_prog_AWK="$ac_prog"
2968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2978 if test -n "$AWK"; then
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2980 $as_echo "$AWK" >&6; }
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2983 $as_echo "no" >&6; }
2987 test -n "$AWK" && break
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2992 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2994 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2995 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2996 $as_echo_n "(cached) " >&6
2998 cat >conftest.make <<\_ACEOF
3001 @echo '@@@%%%=$(MAKE)=@@@%%%'
3003 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3004 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3006 eval ac_cv_prog_make_${ac_make}_set=yes;;
3008 eval ac_cv_prog_make_${ac_make}_set=no;;
3012 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3014 $as_echo "yes" >&6; }
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 $as_echo "no" >&6; }
3019 SET_MAKE="MAKE=${MAKE-make}"
3022 if test -n "$ac_tool_prefix"; then
3023 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3024 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026 $as_echo_n "checking for $ac_word... " >&6; }
3027 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3028 $as_echo_n "(cached) " >&6
3030 if test -n "$RANLIB"; then
3031 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037 test -z "$as_dir" && as_dir=.
3038 for ac_exec_ext in '' $ac_executable_extensions; do
3039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3040 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3050 RANLIB=$ac_cv_prog_RANLIB
3051 if test -n "$RANLIB"; then
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3053 $as_echo "$RANLIB" >&6; }
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3056 $as_echo "no" >&6; }
3061 if test -z "$ac_cv_prog_RANLIB"; then
3062 ac_ct_RANLIB=$RANLIB
3063 # Extract the first word of "ranlib", so it can be a program name with args.
3064 set dummy ranlib; ac_word=$2
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3066 $as_echo_n "checking for $ac_word... " >&6; }
3067 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3068 $as_echo_n "(cached) " >&6
3070 if test -n "$ac_ct_RANLIB"; then
3071 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077 test -z "$as_dir" && as_dir=.
3078 for ac_exec_ext in '' $ac_executable_extensions; do
3079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3080 ac_cv_prog_ac_ct_RANLIB="ranlib"
3081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3090 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3091 if test -n "$ac_ct_RANLIB"; then
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3093 $as_echo "$ac_ct_RANLIB" >&6; }
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3096 $as_echo "no" >&6; }
3099 if test "x$ac_ct_RANLIB" = x; then
3102 case $cross_compiling:$ac_tool_warned in
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3106 ac_tool_warned=yes ;;
3108 RANLIB=$ac_ct_RANLIB
3111 RANLIB="$ac_cv_prog_RANLIB"
3116 ac_cpp='$CPP $CPPFLAGS'
3117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3120 if test -n "$ac_tool_prefix"; then
3121 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3122 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3124 $as_echo_n "checking for $ac_word... " >&6; }
3125 if test "${ac_cv_prog_CC+set}" = set; then :
3126 $as_echo_n "(cached) " >&6
3128 if test -n "$CC"; then
3129 ac_cv_prog_CC="$CC" # Let the user override the test.
3131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135 test -z "$as_dir" && as_dir=.
3136 for ac_exec_ext in '' $ac_executable_extensions; do
3137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3138 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3149 if test -n "$CC"; then
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3151 $as_echo "$CC" >&6; }
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154 $as_echo "no" >&6; }
3159 if test -z "$ac_cv_prog_CC"; then
3161 # Extract the first word of "gcc", so it can be a program name with args.
3162 set dummy gcc; ac_word=$2
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3164 $as_echo_n "checking for $ac_word... " >&6; }
3165 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3166 $as_echo_n "(cached) " >&6
3168 if test -n "$ac_ct_CC"; then
3169 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 test -z "$as_dir" && as_dir=.
3176 for ac_exec_ext in '' $ac_executable_extensions; do
3177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3178 ac_cv_prog_ac_ct_CC="gcc"
3179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3188 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3189 if test -n "$ac_ct_CC"; then
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3191 $as_echo "$ac_ct_CC" >&6; }
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3194 $as_echo "no" >&6; }
3197 if test "x$ac_ct_CC" = x; then
3200 case $cross_compiling:$ac_tool_warned in
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3204 ac_tool_warned=yes ;;
3212 if test -z "$CC"; then
3213 if test -n "$ac_tool_prefix"; then
3214 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3215 set dummy ${ac_tool_prefix}cc; ac_word=$2
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3217 $as_echo_n "checking for $ac_word... " >&6; }
3218 if test "${ac_cv_prog_CC+set}" = set; then :
3219 $as_echo_n "(cached) " >&6
3221 if test -n "$CC"; then
3222 ac_cv_prog_CC="$CC" # Let the user override the test.
3224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228 test -z "$as_dir" && as_dir=.
3229 for ac_exec_ext in '' $ac_executable_extensions; do
3230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3231 ac_cv_prog_CC="${ac_tool_prefix}cc"
3232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3242 if test -n "$CC"; then
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3244 $as_echo "$CC" >&6; }
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3247 $as_echo "no" >&6; }
3253 if test -z "$CC"; then
3254 # Extract the first word of "cc", so it can be a program name with args.
3255 set dummy cc; ac_word=$2
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3257 $as_echo_n "checking for $ac_word... " >&6; }
3258 if test "${ac_cv_prog_CC+set}" = set; then :
3259 $as_echo_n "(cached) " >&6
3261 if test -n "$CC"; then
3262 ac_cv_prog_CC="$CC" # Let the user override the test.
3265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269 test -z "$as_dir" && as_dir=.
3270 for ac_exec_ext in '' $ac_executable_extensions; do
3271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3272 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3273 ac_prog_rejected=yes
3277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3284 if test $ac_prog_rejected = yes; then
3285 # We found a bogon in the path, so make sure we never use it.
3286 set dummy $ac_cv_prog_CC
3288 if test $# != 0; then
3289 # We chose a different compiler from the bogus one.
3290 # However, it has the same basename, so the bogon will be chosen
3291 # first if we set CC to just the basename; use the full file name.
3293 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3299 if test -n "$CC"; then
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3301 $as_echo "$CC" >&6; }
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3304 $as_echo "no" >&6; }
3309 if test -z "$CC"; then
3310 if test -n "$ac_tool_prefix"; then
3311 for ac_prog in cl.exe
3313 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3314 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3316 $as_echo_n "checking for $ac_word... " >&6; }
3317 if test "${ac_cv_prog_CC+set}" = set; then :
3318 $as_echo_n "(cached) " >&6
3320 if test -n "$CC"; then
3321 ac_cv_prog_CC="$CC" # Let the user override the test.
3323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3327 test -z "$as_dir" && as_dir=.
3328 for ac_exec_ext in '' $ac_executable_extensions; do
3329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3330 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3341 if test -n "$CC"; then
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3343 $as_echo "$CC" >&6; }
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3346 $as_echo "no" >&6; }
3350 test -n "$CC" && break
3353 if test -z "$CC"; then
3355 for ac_prog in cl.exe
3357 # Extract the first word of "$ac_prog", so it can be a program name with args.
3358 set dummy $ac_prog; ac_word=$2
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3360 $as_echo_n "checking for $ac_word... " >&6; }
3361 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3362 $as_echo_n "(cached) " >&6
3364 if test -n "$ac_ct_CC"; then
3365 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371 test -z "$as_dir" && as_dir=.
3372 for ac_exec_ext in '' $ac_executable_extensions; do
3373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3374 ac_cv_prog_ac_ct_CC="$ac_prog"
3375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3384 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3385 if test -n "$ac_ct_CC"; then
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3387 $as_echo "$ac_ct_CC" >&6; }
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3390 $as_echo "no" >&6; }
3394 test -n "$ac_ct_CC" && break
3397 if test "x$ac_ct_CC" = x; then
3400 case $cross_compiling:$ac_tool_warned in
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3403 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3404 ac_tool_warned=yes ;;
3413 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3415 as_fn_error "no acceptable C compiler found in \$PATH
3416 See \`config.log' for more details." "$LINENO" 5; }
3418 # Provide some information about the compiler.
3419 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3422 for ac_option in --version -v -V -qversion; do
3423 { { ac_try="$ac_compiler $ac_option >&5"
3425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426 *) ac_try_echo=$ac_try;;
3428 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3429 $as_echo "$ac_try_echo"; } >&5
3430 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3432 if test -s conftest.err; then
3434 ... rest of stderr output deleted ...
3435 10q' conftest.err >conftest.er1
3436 cat conftest.er1 >&5
3437 rm -f conftest.er1 conftest.err
3439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3440 test $ac_status = 0; }
3443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3444 /* end confdefs.h. */
3449 FILE *f = fopen ("conftest.out", "w");
3450 return ferror (f) || fclose (f) != 0;
3456 ac_clean_files_save=$ac_clean_files
3457 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3458 # Try to create an executable without -o first, disregard a.out.
3459 # It will help us diagnose broken compilers, and finding out an intuition
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3462 $as_echo_n "checking for C compiler default output file name... " >&6; }
3463 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3465 # The possible output files:
3466 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3469 for ac_file in $ac_files
3472 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3473 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3478 if { { ac_try="$ac_link_default"
3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481 *) ac_try_echo=$ac_try;;
3483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3484 $as_echo "$ac_try_echo"; } >&5
3485 (eval "$ac_link_default") 2>&5
3487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3488 test $ac_status = 0; }; then :
3489 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3490 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3491 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3492 # so that the user can short-circuit this test for compilers unknown to
3494 for ac_file in $ac_files ''
3496 test -f "$ac_file" || continue
3498 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3501 # We found the default executable, but exeext='' is most
3505 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3507 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3509 # We set ac_cv_exeext here because the later test for it is not
3510 # safe: cross compilers may not add the suffix if given an `-o'
3511 # argument, so we may need to know it at that point already.
3512 # Even if this section looks crufty: it has the advantage of
3519 test "$ac_cv_exeext" = no && ac_cv_exeext=
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3525 $as_echo "$ac_file" >&6; }
3526 if test -z "$ac_file"; then :
3527 $as_echo "$as_me: failed program was:" >&5
3528 sed 's/^/| /' conftest.$ac_ext >&5
3530 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3532 { as_fn_set_status 77
3533 as_fn_error "C compiler cannot create executables
3534 See \`config.log' for more details." "$LINENO" 5; }; }
3536 ac_exeext=$ac_cv_exeext
3538 # Check that the compiler produces executables we can run. If not, either
3539 # the compiler is broken, or we cross compile.
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3541 $as_echo_n "checking whether the C compiler works... " >&6; }
3542 # If not cross compiling, check that we can run a simple program.
3543 if test "$cross_compiling" != yes; then
3544 if { ac_try='./$ac_file'
3545 { { case "(($ac_try" in
3546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3547 *) ac_try_echo=$ac_try;;
3549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3550 $as_echo "$ac_try_echo"; } >&5
3551 (eval "$ac_try") 2>&5
3553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3554 test $ac_status = 0; }; }; then
3557 if test "$cross_compiling" = maybe; then
3560 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3562 as_fn_error "cannot run C compiled programs.
3563 If you meant to cross compile, use \`--host'.
3564 See \`config.log' for more details." "$LINENO" 5; }
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3569 $as_echo "yes" >&6; }
3571 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3572 ac_clean_files=$ac_clean_files_save
3573 # Check that the compiler produces executables we can run. If not, either
3574 # the compiler is broken, or we cross compile.
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3576 $as_echo_n "checking whether we are cross compiling... " >&6; }
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3578 $as_echo "$cross_compiling" >&6; }
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3581 $as_echo_n "checking for suffix of executables... " >&6; }
3582 if { { ac_try="$ac_link"
3584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585 *) ac_try_echo=$ac_try;;
3587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3588 $as_echo "$ac_try_echo"; } >&5
3589 (eval "$ac_link") 2>&5
3591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3592 test $ac_status = 0; }; then :
3593 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3594 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3595 # work properly (i.e., refer to `conftest.exe'), while it won't with
3597 for ac_file in conftest.exe conftest conftest.*; do
3598 test -f "$ac_file" || continue
3600 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3601 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3609 as_fn_error "cannot compute suffix of executables: cannot compile and link
3610 See \`config.log' for more details." "$LINENO" 5; }
3612 rm -f conftest$ac_cv_exeext
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3614 $as_echo "$ac_cv_exeext" >&6; }
3616 rm -f conftest.$ac_ext
3617 EXEEXT=$ac_cv_exeext
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3620 $as_echo_n "checking for suffix of object files... " >&6; }
3621 if test "${ac_cv_objext+set}" = set; then :
3622 $as_echo_n "(cached) " >&6
3624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3625 /* end confdefs.h. */
3635 rm -f conftest.o conftest.obj
3636 if { { ac_try="$ac_compile"
3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639 *) ac_try_echo=$ac_try;;
3641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3642 $as_echo "$ac_try_echo"; } >&5
3643 (eval "$ac_compile") 2>&5
3645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3646 test $ac_status = 0; }; then :
3647 for ac_file in conftest.o conftest.obj conftest.*; do
3648 test -f "$ac_file" || continue;
3650 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3651 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3656 $as_echo "$as_me: failed program was:" >&5
3657 sed 's/^/| /' conftest.$ac_ext >&5
3659 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3661 as_fn_error "cannot compute suffix of object files: cannot compile
3662 See \`config.log' for more details." "$LINENO" 5; }
3664 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3667 $as_echo "$ac_cv_objext" >&6; }
3668 OBJEXT=$ac_cv_objext
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3671 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3672 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3673 $as_echo_n "(cached) " >&6
3675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3676 /* end confdefs.h. */
3689 if ac_fn_c_try_compile "$LINENO"; then :
3694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3695 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3699 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3700 if test $ac_compiler_gnu = yes; then
3705 ac_test_CFLAGS=${CFLAGS+set}
3706 ac_save_CFLAGS=$CFLAGS
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3708 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3709 if test "${ac_cv_prog_cc_g+set}" = set; then :
3710 $as_echo_n "(cached) " >&6
3712 ac_save_c_werror_flag=$ac_c_werror_flag
3713 ac_c_werror_flag=yes
3716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3717 /* end confdefs.h. */
3727 if ac_fn_c_try_compile "$LINENO"; then :
3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h. */
3742 if ac_fn_c_try_compile "$LINENO"; then :
3745 ac_c_werror_flag=$ac_save_c_werror_flag
3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748 /* end confdefs.h. */
3758 if ac_fn_c_try_compile "$LINENO"; then :
3761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3766 ac_c_werror_flag=$ac_save_c_werror_flag
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3769 $as_echo "$ac_cv_prog_cc_g" >&6; }
3770 if test "$ac_test_CFLAGS" = set; then
3771 CFLAGS=$ac_save_CFLAGS
3772 elif test $ac_cv_prog_cc_g = yes; then
3773 if test "$GCC" = yes; then
3779 if test "$GCC" = yes; then
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3786 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3787 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3788 $as_echo_n "(cached) " >&6
3790 ac_cv_prog_cc_c89=no
3792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793 /* end confdefs.h. */
3796 #include <sys/types.h>
3797 #include <sys/stat.h>
3798 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3799 struct buf { int x; };
3800 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3801 static char *e (p, i)
3807 static char *f (char * (*g) (char **, int), char **p, ...)
3812 s = g (p, va_arg (v,int));
3817 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3818 function prototypes and stuff, but not '\xHH' hex character constants.
3819 These don't provoke an error unfortunately, instead are silently treated
3820 as 'x'. The following induces an error, until -std is added to get
3821 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3822 array size at least. It's necessary to write '\x00'==0 to get something
3823 that's true only with -std. */
3824 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3826 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3827 inside strings and character constants. */
3829 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3831 int test (int i, double x);
3832 struct s1 {int (*f) (int a);};
3833 struct s2 {int (*f) (double a);};
3834 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3840 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3845 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3846 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3848 CC="$ac_save_CC $ac_arg"
3849 if ac_fn_c_try_compile "$LINENO"; then :
3850 ac_cv_prog_cc_c89=$ac_arg
3852 rm -f core conftest.err conftest.$ac_objext
3853 test "x$ac_cv_prog_cc_c89" != "xno" && break
3855 rm -f conftest.$ac_ext
3860 case "x$ac_cv_prog_cc_c89" in
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3863 $as_echo "none needed" >&6; } ;;
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3866 $as_echo "unsupported" >&6; } ;;
3868 CC="$CC $ac_cv_prog_cc_c89"
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3870 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3872 if test "x$ac_cv_prog_cc_c89" != xno; then :
3877 ac_cpp='$CPP $CPPFLAGS'
3878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3881 DEPDIR="${am__leading_dot}deps"
3883 ac_config_commands="$ac_config_commands depfiles"
3886 am_make=${MAKE-make}
3887 cat > confinc << 'END'
3892 # If we don't find an include directive, just comment out the code.
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3894 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3898 # First try GNU make style include.
3899 echo "include confinc" > confmf
3900 # We grep out `Entering directory' and `Leaving directory'
3901 # messages which can occur if `w' ends up in MAKEFLAGS.
3902 # In particular we don't look at `^make:' because GNU make might
3903 # be invoked under some other name (usually "gmake"), in which
3904 # case it prints its new name instead of `make'.
3905 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3910 # Now try BSD make style include.
3911 if test "$am__include" = "#"; then
3912 echo '.include "confinc"' > confmf
3913 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3914 am__include=.include
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3922 $as_echo "$_am_result" >&6; }
3923 rm -f confinc confmf
3925 # Check whether --enable-dependency-tracking was given.
3926 if test "${enable_dependency_tracking+set}" = set; then :
3927 enableval=$enable_dependency_tracking;
3930 if test "x$enable_dependency_tracking" != xno; then
3931 am_depcomp="$ac_aux_dir/depcomp"
3936 if test "x$enable_dependency_tracking" != xno; then
3947 depcc="$CC" am_compiler_list=
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3950 $as_echo_n "checking dependency style of $depcc... " >&6; }
3951 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3952 $as_echo_n "(cached) " >&6
3954 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3955 # We make a subdir and do the tests there. Otherwise we can end up
3956 # making bogus files that we don't know about and never remove. For
3957 # instance it was reported that on HP-UX the gcc test will end up
3958 # making a dummy file named `D' -- because `-MD' means `put the output
3961 # Copy depcomp to subdir because otherwise we won't find it if we're
3962 # using a relative directory.
3963 cp "$am_depcomp" conftest.dir
3965 # We will build objects and dependencies in a subdirectory because
3966 # it helps to detect inapplicable dependency modes. For instance
3967 # both Tru64's cc and ICC support -MD to output dependencies as a
3968 # side effect of compilation, but ICC will put the dependencies in
3969 # the current directory while Tru64 will put them in the object
3973 am_cv_CC_dependencies_compiler_type=none
3974 if test "$am_compiler_list" = ""; then
3975 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3977 for depmode in $am_compiler_list; do
3978 # Setup a source with many dependencies, because some compilers
3979 # like to wrap large dependency lists on column 80 (with \), and
3980 # we should not choose a depcomp mode which is confused by this.
3982 # We need to recreate these files for each test, as the compiler may
3983 # overwrite some of them when testing with obscure command lines.
3984 # This happens at least with the AIX C compiler.
3986 for i in 1 2 3 4 5 6; do
3987 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3988 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3989 # Solaris 8's {/usr,}/bin/sh.
3990 touch sub/conftst$i.h
3992 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3996 # after this tag, mechanisms are not by side-effect, so they'll
3997 # only be used when explicitly requested
3998 if test "x$enable_dependency_tracking" = xyes; then
4006 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4007 # mode. It turns out that the SunPro C++ compiler does not properly
4008 # handle `-M -o', and we need to detect this.
4009 if depmode=$depmode \
4010 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4011 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4012 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4013 >/dev/null 2>conftest.err &&
4014 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4015 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4016 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4017 # icc doesn't choke on unknown options, it will just issue warnings
4018 # or remarks (even with -Werror). So we grep stderr for any message
4019 # that says an option was ignored or not supported.
4020 # When given -MP, icc 7.0 and 7.1 complain thusly:
4021 # icc: Command line warning: ignoring option '-M'; no argument required
4022 # The diagnosis changed in icc 8.0:
4023 # icc: Command line remark: option '-MP' not supported
4024 if (grep 'ignoring option' conftest.err ||
4025 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4026 am_cv_CC_dependencies_compiler_type=$depmode
4035 am_cv_CC_dependencies_compiler_type=none
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4040 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4041 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4046 test "x$enable_dependency_tracking" != xno \
4047 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4049 am__fastdepCC_FALSE='#'
4051 am__fastdepCC_TRUE='#'
4052 am__fastdepCC_FALSE=
4057 ac_cpp='$CXXCPP $CPPFLAGS'
4058 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4059 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4060 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4061 if test -z "$CXX"; then
4062 if test -n "$CCC"; then
4065 if test -n "$ac_tool_prefix"; then
4066 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4068 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4069 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4071 $as_echo_n "checking for $ac_word... " >&6; }
4072 if test "${ac_cv_prog_CXX+set}" = set; then :
4073 $as_echo_n "(cached) " >&6
4075 if test -n "$CXX"; then
4076 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082 test -z "$as_dir" && as_dir=.
4083 for ac_exec_ext in '' $ac_executable_extensions; do
4084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4085 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4096 if test -n "$CXX"; then
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4098 $as_echo "$CXX" >&6; }
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4101 $as_echo "no" >&6; }
4105 test -n "$CXX" && break
4108 if test -z "$CXX"; then
4110 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4112 # Extract the first word of "$ac_prog", so it can be a program name with args.
4113 set dummy $ac_prog; ac_word=$2
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4115 $as_echo_n "checking for $ac_word... " >&6; }
4116 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4117 $as_echo_n "(cached) " >&6
4119 if test -n "$ac_ct_CXX"; then
4120 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126 test -z "$as_dir" && as_dir=.
4127 for ac_exec_ext in '' $ac_executable_extensions; do
4128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4129 ac_cv_prog_ac_ct_CXX="$ac_prog"
4130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4139 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4140 if test -n "$ac_ct_CXX"; then
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4142 $as_echo "$ac_ct_CXX" >&6; }
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4145 $as_echo "no" >&6; }
4149 test -n "$ac_ct_CXX" && break
4152 if test "x$ac_ct_CXX" = x; then
4155 case $cross_compiling:$ac_tool_warned in
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4159 ac_tool_warned=yes ;;
4167 # Provide some information about the compiler.
4168 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4171 for ac_option in --version -v -V -qversion; do
4172 { { ac_try="$ac_compiler $ac_option >&5"
4174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175 *) ac_try_echo=$ac_try;;
4177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4178 $as_echo "$ac_try_echo"; } >&5
4179 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4181 if test -s conftest.err; then
4183 ... rest of stderr output deleted ...
4184 10q' conftest.err >conftest.er1
4185 cat conftest.er1 >&5
4186 rm -f conftest.er1 conftest.err
4188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4189 test $ac_status = 0; }
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4193 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4194 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4195 $as_echo_n "(cached) " >&6
4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198 /* end confdefs.h. */
4211 if ac_fn_cxx_try_compile "$LINENO"; then :
4216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4217 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4221 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4222 if test $ac_compiler_gnu = yes; then
4227 ac_test_CXXFLAGS=${CXXFLAGS+set}
4228 ac_save_CXXFLAGS=$CXXFLAGS
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4230 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4231 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4232 $as_echo_n "(cached) " >&6
4234 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4235 ac_cxx_werror_flag=yes
4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239 /* end confdefs.h. */
4249 if ac_fn_cxx_try_compile "$LINENO"; then :
4250 ac_cv_prog_cxx_g=yes
4253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254 /* end confdefs.h. */
4264 if ac_fn_cxx_try_compile "$LINENO"; then :
4267 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270 /* end confdefs.h. */
4280 if ac_fn_cxx_try_compile "$LINENO"; then :
4281 ac_cv_prog_cxx_g=yes
4283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4288 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4291 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4292 if test "$ac_test_CXXFLAGS" = set; then
4293 CXXFLAGS=$ac_save_CXXFLAGS
4294 elif test $ac_cv_prog_cxx_g = yes; then
4295 if test "$GXX" = yes; then
4301 if test "$GXX" = yes; then
4308 ac_cpp='$CPP $CPPFLAGS'
4309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4313 depcc="$CXX" am_compiler_list=
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4316 $as_echo_n "checking dependency style of $depcc... " >&6; }
4317 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4318 $as_echo_n "(cached) " >&6
4320 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4321 # We make a subdir and do the tests there. Otherwise we can end up
4322 # making bogus files that we don't know about and never remove. For
4323 # instance it was reported that on HP-UX the gcc test will end up
4324 # making a dummy file named `D' -- because `-MD' means `put the output
4327 # Copy depcomp to subdir because otherwise we won't find it if we're
4328 # using a relative directory.
4329 cp "$am_depcomp" conftest.dir
4331 # We will build objects and dependencies in a subdirectory because
4332 # it helps to detect inapplicable dependency modes. For instance
4333 # both Tru64's cc and ICC support -MD to output dependencies as a
4334 # side effect of compilation, but ICC will put the dependencies in
4335 # the current directory while Tru64 will put them in the object
4339 am_cv_CXX_dependencies_compiler_type=none
4340 if test "$am_compiler_list" = ""; then
4341 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4343 for depmode in $am_compiler_list; do
4344 # Setup a source with many dependencies, because some compilers
4345 # like to wrap large dependency lists on column 80 (with \), and
4346 # we should not choose a depcomp mode which is confused by this.
4348 # We need to recreate these files for each test, as the compiler may
4349 # overwrite some of them when testing with obscure command lines.
4350 # This happens at least with the AIX C compiler.
4352 for i in 1 2 3 4 5 6; do
4353 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4354 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4355 # Solaris 8's {/usr,}/bin/sh.
4356 touch sub/conftst$i.h
4358 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4362 # after this tag, mechanisms are not by side-effect, so they'll
4363 # only be used when explicitly requested
4364 if test "x$enable_dependency_tracking" = xyes; then
4372 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4373 # mode. It turns out that the SunPro C++ compiler does not properly
4374 # handle `-M -o', and we need to detect this.
4375 if depmode=$depmode \
4376 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4377 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4378 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4379 >/dev/null 2>conftest.err &&
4380 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4381 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4382 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4383 # icc doesn't choke on unknown options, it will just issue warnings
4384 # or remarks (even with -Werror). So we grep stderr for any message
4385 # that says an option was ignored or not supported.
4386 # When given -MP, icc 7.0 and 7.1 complain thusly:
4387 # icc: Command line warning: ignoring option '-M'; no argument required
4388 # The diagnosis changed in icc 8.0:
4389 # icc: Command line remark: option '-MP' not supported
4390 if (grep 'ignoring option' conftest.err ||
4391 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4392 am_cv_CXX_dependencies_compiler_type=$depmode
4401 am_cv_CXX_dependencies_compiler_type=none
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4406 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4407 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4412 test "x$enable_dependency_tracking" != xno \
4413 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4414 am__fastdepCXX_TRUE=
4415 am__fastdepCXX_FALSE='#'
4417 am__fastdepCXX_TRUE='#'
4418 am__fastdepCXX_FALSE=
4424 ac_cpp='$CPP $CPPFLAGS'
4425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4429 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4430 # On Suns, sometimes $CPP names a directory.
4431 if test -n "$CPP" && test -d "$CPP"; then
4434 if test -z "$CPP"; then
4435 if test "${ac_cv_prog_CPP+set}" = set; then :
4436 $as_echo_n "(cached) " >&6
4438 # Double quotes because CPP needs to be expanded
4439 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4442 for ac_c_preproc_warn_flag in '' yes
4444 # Use a header file that comes with gcc, so configuring glibc
4445 # with a fresh cross-compiler works.
4446 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4447 # <limits.h> exists even on freestanding compilers.
4448 # On the NeXT, cc -E runs the code through the compiler's parser,
4449 # not just through cpp. "Syntax error" is here to catch this case.
4450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451 /* end confdefs.h. */
4453 # include <limits.h>
4455 # include <assert.h>
4459 if ac_fn_c_try_cpp "$LINENO"; then :
4462 # Broken: fails on valid input.
4465 rm -f conftest.err conftest.$ac_ext
4467 # OK, works on sane cases. Now check whether nonexistent headers
4468 # can be detected and how.
4469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4470 /* end confdefs.h. */
4471 #include <ac_nonexistent.h>
4473 if ac_fn_c_try_cpp "$LINENO"; then :
4474 # Broken: success on invalid input.
4477 # Passes both tests.
4481 rm -f conftest.err conftest.$ac_ext
4484 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4485 rm -f conftest.err conftest.$ac_ext
4486 if $ac_preproc_ok; then :
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4499 $as_echo "$CPP" >&6; }
4501 for ac_c_preproc_warn_flag in '' yes
4503 # Use a header file that comes with gcc, so configuring glibc
4504 # with a fresh cross-compiler works.
4505 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4506 # <limits.h> exists even on freestanding compilers.
4507 # On the NeXT, cc -E runs the code through the compiler's parser,
4508 # not just through cpp. "Syntax error" is here to catch this case.
4509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510 /* end confdefs.h. */
4512 # include <limits.h>
4514 # include <assert.h>
4518 if ac_fn_c_try_cpp "$LINENO"; then :
4521 # Broken: fails on valid input.
4524 rm -f conftest.err conftest.$ac_ext
4526 # OK, works on sane cases. Now check whether nonexistent headers
4527 # can be detected and how.
4528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h. */
4530 #include <ac_nonexistent.h>
4532 if ac_fn_c_try_cpp "$LINENO"; then :
4533 # Broken: success on invalid input.
4536 # Passes both tests.
4540 rm -f conftest.err conftest.$ac_ext
4543 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4544 rm -f conftest.err conftest.$ac_ext
4545 if $ac_preproc_ok; then :
4548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4550 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4551 See \`config.log' for more details." "$LINENO" 5; }
4555 ac_cpp='$CPP $CPPFLAGS'
4556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4562 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4563 if test "${ac_cv_path_GREP+set}" = set; then :
4564 $as_echo_n "(cached) " >&6
4566 if test -z "$GREP"; then
4567 ac_path_GREP_found=false
4568 # Loop through the user's path and test for each of PROGNAME-LIST
4569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4573 test -z "$as_dir" && as_dir=.
4574 for ac_prog in grep ggrep; do
4575 for ac_exec_ext in '' $ac_executable_extensions; do
4576 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4577 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4578 # Check for GNU ac_path_GREP and select it if it is found.
4579 # Check for GNU $ac_path_GREP
4580 case `"$ac_path_GREP" --version 2>&1` in
4582 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4585 $as_echo_n 0123456789 >"conftest.in"
4588 cat "conftest.in" "conftest.in" >"conftest.tmp"
4589 mv "conftest.tmp" "conftest.in"
4590 cp "conftest.in" "conftest.nl"
4591 $as_echo 'GREP' >> "conftest.nl"
4592 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4593 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4594 as_fn_arith $ac_count + 1 && ac_count=$as_val
4595 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4596 # Best one so far, save it but keep looking for a better one
4597 ac_cv_path_GREP="$ac_path_GREP"
4598 ac_path_GREP_max=$ac_count
4600 # 10*(2^10) chars as input seems more than enough
4601 test $ac_count -gt 10 && break
4603 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4606 $ac_path_GREP_found && break 3
4611 if test -z "$ac_cv_path_GREP"; then
4612 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4615 ac_cv_path_GREP=$GREP
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4620 $as_echo "$ac_cv_path_GREP" >&6; }
4621 GREP="$ac_cv_path_GREP"
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4625 $as_echo_n "checking for egrep... " >&6; }
4626 if test "${ac_cv_path_EGREP+set}" = set; then :
4627 $as_echo_n "(cached) " >&6
4629 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4630 then ac_cv_path_EGREP="$GREP -E"
4632 if test -z "$EGREP"; then
4633 ac_path_EGREP_found=false
4634 # Loop through the user's path and test for each of PROGNAME-LIST
4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4639 test -z "$as_dir" && as_dir=.
4640 for ac_prog in egrep; do
4641 for ac_exec_ext in '' $ac_executable_extensions; do
4642 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4643 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4644 # Check for GNU ac_path_EGREP and select it if it is found.
4645 # Check for GNU $ac_path_EGREP
4646 case `"$ac_path_EGREP" --version 2>&1` in
4648 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4651 $as_echo_n 0123456789 >"conftest.in"
4654 cat "conftest.in" "conftest.in" >"conftest.tmp"
4655 mv "conftest.tmp" "conftest.in"
4656 cp "conftest.in" "conftest.nl"
4657 $as_echo 'EGREP' >> "conftest.nl"
4658 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4659 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4660 as_fn_arith $ac_count + 1 && ac_count=$as_val
4661 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4662 # Best one so far, save it but keep looking for a better one
4663 ac_cv_path_EGREP="$ac_path_EGREP"
4664 ac_path_EGREP_max=$ac_count
4666 # 10*(2^10) chars as input seems more than enough
4667 test $ac_count -gt 10 && break
4669 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4672 $ac_path_EGREP_found && break 3
4677 if test -z "$ac_cv_path_EGREP"; then
4678 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4681 ac_cv_path_EGREP=$EGREP
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4687 $as_echo "$ac_cv_path_EGREP" >&6; }
4688 EGREP="$ac_cv_path_EGREP"
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4692 $as_echo_n "checking for ANSI C header files... " >&6; }
4693 if test "${ac_cv_header_stdc+set}" = set; then :
4694 $as_echo_n "(cached) " >&6
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4711 if ac_fn_c_try_compile "$LINENO"; then :
4712 ac_cv_header_stdc=yes
4714 ac_cv_header_stdc=no
4716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4718 if test $ac_cv_header_stdc = yes; then
4719 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721 /* end confdefs.h. */
4725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4726 $EGREP "memchr" >/dev/null 2>&1; then :
4729 ac_cv_header_stdc=no
4735 if test $ac_cv_header_stdc = yes; then
4736 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4738 /* end confdefs.h. */
4742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4743 $EGREP "free" >/dev/null 2>&1; then :
4746 ac_cv_header_stdc=no
4752 if test $ac_cv_header_stdc = yes; then
4753 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4754 if test "$cross_compiling" = yes; then :
4757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758 /* end confdefs.h. */
4761 #if ((' ' & 0x0FF) == 0x020)
4762 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4763 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4765 # define ISLOWER(c) \
4766 (('a' <= (c) && (c) <= 'i') \
4767 || ('j' <= (c) && (c) <= 'r') \
4768 || ('s' <= (c) && (c) <= 'z'))
4769 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4772 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4777 for (i = 0; i < 256; i++)
4778 if (XOR (islower (i), ISLOWER (i))
4779 || toupper (i) != TOUPPER (i))
4784 if ac_fn_c_try_run "$LINENO"; then :
4787 ac_cv_header_stdc=no
4789 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4790 conftest.$ac_objext conftest.beam conftest.$ac_ext
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4796 $as_echo "$ac_cv_header_stdc" >&6; }
4797 if test $ac_cv_header_stdc = yes; then
4799 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4803 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4804 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4805 inttypes.h stdint.h unistd.h
4807 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4808 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4810 eval as_val=\$$as_ac_Header
4811 if test "x$as_val" = x""yes; then :
4812 cat >>confdefs.h <<_ACEOF
4813 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4822 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4823 if test "${ac_cv_c_bigendian+set}" = set; then :
4824 $as_echo_n "(cached) " >&6
4826 ac_cv_c_bigendian=unknown
4827 # See if we're dealing with a universal compiler.
4828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4829 /* end confdefs.h. */
4830 #ifndef __APPLE_CC__
4831 not a universal capable compiler
4836 if ac_fn_c_try_compile "$LINENO"; then :
4838 # Check for potential -arch flags. It is not universal unless
4839 # there are at least two -arch flags with different values.
4842 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4843 if test -n "$ac_prev"; then
4845 i?86 | x86_64 | ppc | ppc64)
4846 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4849 ac_cv_c_bigendian=universal
4855 elif test "x$ac_word" = "x-arch"; then
4860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4861 if test $ac_cv_c_bigendian = unknown; then
4862 # See if sys/param.h defines the BYTE_ORDER macro.
4863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4864 /* end confdefs.h. */
4865 #include <sys/types.h>
4866 #include <sys/param.h>
4871 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4872 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4881 if ac_fn_c_try_compile "$LINENO"; then :
4882 # It does; now see whether it defined to BIG_ENDIAN or not.
4883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884 /* end confdefs.h. */
4885 #include <sys/types.h>
4886 #include <sys/param.h>
4891 #if BYTE_ORDER != BIG_ENDIAN
4899 if ac_fn_c_try_compile "$LINENO"; then :
4900 ac_cv_c_bigendian=yes
4902 ac_cv_c_bigendian=no
4904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4908 if test $ac_cv_c_bigendian = unknown; then
4909 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911 /* end confdefs.h. */
4917 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4925 if ac_fn_c_try_compile "$LINENO"; then :
4926 # It does; now see whether it defined to _BIG_ENDIAN or not.
4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h. */
4942 if ac_fn_c_try_compile "$LINENO"; then :
4943 ac_cv_c_bigendian=yes
4945 ac_cv_c_bigendian=no
4947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4951 if test $ac_cv_c_bigendian = unknown; then
4952 # Compile a test program.
4953 if test "$cross_compiling" = yes; then :
4954 # Try to guess by grepping values from an object file.
4955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4956 /* end confdefs.h. */
4957 short int ascii_mm[] =
4958 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4959 short int ascii_ii[] =
4960 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4961 int use_ascii (int i) {
4962 return ascii_mm[i] + ascii_ii[i];
4964 short int ebcdic_ii[] =
4965 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4966 short int ebcdic_mm[] =
4967 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4968 int use_ebcdic (int i) {
4969 return ebcdic_mm[i] + ebcdic_ii[i];
4976 return use_ascii (foo) == use_ebcdic (foo);
4981 if ac_fn_c_try_compile "$LINENO"; then :
4982 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4983 ac_cv_c_bigendian=yes
4985 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4986 if test "$ac_cv_c_bigendian" = unknown; then
4987 ac_cv_c_bigendian=no
4989 # finding both strings is unlikely to happen, but who knows?
4990 ac_cv_c_bigendian=unknown
4994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4997 /* end confdefs.h. */
4998 $ac_includes_default
5003 /* Are we little or big endian? From Harbison&Steele. */
5007 char c[sizeof (long int)];
5010 return u.c[sizeof (long int) - 1] == 1;
5016 if ac_fn_c_try_run "$LINENO"; then :
5017 ac_cv_c_bigendian=no
5019 ac_cv_c_bigendian=yes
5021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5022 conftest.$ac_objext conftest.beam conftest.$ac_ext
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5028 $as_echo "$ac_cv_c_bigendian" >&6; }
5029 case $ac_cv_c_bigendian in #(
5031 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5037 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5041 as_fn_error "unknown endianness
5042 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5046 # Extract the first word of "wx-config", so it can be a program name with args.
5047 set dummy wx-config; ac_word=$2
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5049 $as_echo_n "checking for $ac_word... " >&6; }
5050 if test "${ac_cv_path_wxconfig+set}" = set; then :
5051 $as_echo_n "(cached) " >&6
5055 ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
5058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062 test -z "$as_dir" && as_dir=.
5063 for ac_exec_ext in '' $ac_executable_extensions; do
5064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5065 ac_cv_path_wxconfig="$as_dir/$ac_word$ac_exec_ext"
5066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5076 wxconfig=$ac_cv_path_wxconfig
5077 if test -n "$wxconfig"; then
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wxconfig" >&5
5079 $as_echo "$wxconfig" >&6; }
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5082 $as_echo "no" >&6; }
5087 # Make sure we can run config.sub.
5088 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5089 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5092 $as_echo_n "checking build system type... " >&6; }
5093 if test "${ac_cv_build+set}" = set; then :
5094 $as_echo_n "(cached) " >&6
5096 ac_build_alias=$build_alias
5097 test "x$ac_build_alias" = x &&
5098 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5099 test "x$ac_build_alias" = x &&
5100 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
5101 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5102 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5106 $as_echo "$ac_cv_build" >&6; }
5107 case $ac_cv_build in
5109 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
5112 ac_save_IFS=$IFS; IFS='-'
5118 # Remember, the first character of IFS is used to create $*,
5119 # except with old shells:
5122 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5126 $as_echo_n "checking host system type... " >&6; }
5127 if test "${ac_cv_host+set}" = set; then :
5128 $as_echo_n "(cached) " >&6
5130 if test "x$host_alias" = x; then
5131 ac_cv_host=$ac_cv_build
5133 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5134 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5139 $as_echo "$ac_cv_host" >&6; }
5142 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
5145 ac_save_IFS=$IFS; IFS='-'
5151 # Remember, the first character of IFS is used to create $*,
5152 # except with old shells:
5155 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5159 $as_echo_n "checking for inline... " >&6; }
5160 if test "${ac_cv_c_inline+set}" = set; then :
5161 $as_echo_n "(cached) " >&6
5164 for ac_kw in inline __inline__ __inline; do
5165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5166 /* end confdefs.h. */
5169 static $ac_kw foo_t static_foo () {return 0; }
5170 $ac_kw foo_t foo () {return 0; }
5174 if ac_fn_c_try_compile "$LINENO"; then :
5175 ac_cv_c_inline=$ac_kw
5177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5178 test "$ac_cv_c_inline" != no && break
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5183 $as_echo "$ac_cv_c_inline" >&6; }
5185 case $ac_cv_c_inline in
5188 case $ac_cv_c_inline in
5190 *) ac_val=$ac_cv_c_inline;;
5192 cat >>confdefs.h <<_ACEOF
5194 #define inline $ac_val
5200 # The cast to long int works around a bug in the HP C Compiler
5201 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5202 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5203 # This bug is HP SR number 8606223364.
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5205 $as_echo_n "checking size of short... " >&6; }
5206 if test "${ac_cv_sizeof_short+set}" = set; then :
5207 $as_echo_n "(cached) " >&6
5209 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5212 if test "$ac_cv_type_short" = yes; then
5213 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5215 { as_fn_set_status 77
5216 as_fn_error "cannot compute sizeof (short)
5217 See \`config.log' for more details." "$LINENO" 5; }; }
5219 ac_cv_sizeof_short=0
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5225 $as_echo "$ac_cv_sizeof_short" >&6; }
5229 cat >>confdefs.h <<_ACEOF
5230 #define SIZEOF_SHORT $ac_cv_sizeof_short
5234 # The cast to long int works around a bug in the HP C Compiler
5235 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5236 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5237 # This bug is HP SR number 8606223364.
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5239 $as_echo_n "checking size of int... " >&6; }
5240 if test "${ac_cv_sizeof_int+set}" = set; then :
5241 $as_echo_n "(cached) " >&6
5243 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5246 if test "$ac_cv_type_int" = yes; then
5247 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5249 { as_fn_set_status 77
5250 as_fn_error "cannot compute sizeof (int)
5251 See \`config.log' for more details." "$LINENO" 5; }; }
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5259 $as_echo "$ac_cv_sizeof_int" >&6; }
5263 cat >>confdefs.h <<_ACEOF
5264 #define SIZEOF_INT $ac_cv_sizeof_int
5268 # The cast to long int works around a bug in the HP C Compiler
5269 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5270 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5271 # This bug is HP SR number 8606223364.
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5273 $as_echo_n "checking size of long... " >&6; }
5274 if test "${ac_cv_sizeof_long+set}" = set; then :
5275 $as_echo_n "(cached) " >&6
5277 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5280 if test "$ac_cv_type_long" = yes; then
5281 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5283 { as_fn_set_status 77
5284 as_fn_error "cannot compute sizeof (long)
5285 See \`config.log' for more details." "$LINENO" 5; }; }
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5293 $as_echo "$ac_cv_sizeof_long" >&6; }
5297 cat >>confdefs.h <<_ACEOF
5298 #define SIZEOF_LONG $ac_cv_sizeof_long
5302 # The cast to long int works around a bug in the HP C Compiler
5303 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5304 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5305 # This bug is HP SR number 8606223364.
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
5307 $as_echo_n "checking size of float... " >&6; }
5308 if test "${ac_cv_sizeof_float+set}" = set; then :
5309 $as_echo_n "(cached) " >&6
5311 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
5314 if test "$ac_cv_type_float" = yes; then
5315 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5317 { as_fn_set_status 77
5318 as_fn_error "cannot compute sizeof (float)
5319 See \`config.log' for more details." "$LINENO" 5; }; }
5321 ac_cv_sizeof_float=0
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
5327 $as_echo "$ac_cv_sizeof_float" >&6; }
5331 cat >>confdefs.h <<_ACEOF
5332 #define SIZEOF_FLOAT $ac_cv_sizeof_float
5336 # The cast to long int works around a bug in the HP C Compiler
5337 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5338 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5339 # This bug is HP SR number 8606223364.
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
5341 $as_echo_n "checking size of double... " >&6; }
5342 if test "${ac_cv_sizeof_double+set}" = set; then :
5343 $as_echo_n "(cached) " >&6
5345 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
5348 if test "$ac_cv_type_double" = yes; then
5349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5351 { as_fn_set_status 77
5352 as_fn_error "cannot compute sizeof (double)
5353 See \`config.log' for more details." "$LINENO" 5; }; }
5355 ac_cv_sizeof_double=0
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
5361 $as_echo "$ac_cv_sizeof_double" >&6; }
5365 cat >>confdefs.h <<_ACEOF
5366 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
5373 $as_echo_n "checking for deflate in -lz... " >&6; }
5374 if test "${ac_cv_lib_z_deflate+set}" = set; then :
5375 $as_echo_n "(cached) " >&6
5377 ac_check_lib_save_LIBS=$LIBS
5379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380 /* end confdefs.h. */
5382 /* Override any GCC internal prototype to avoid an error.
5383 Use char because int might match the return type of a GCC
5384 builtin and then its argument prototype would still apply. */
5397 if ac_fn_c_try_link "$LINENO"; then :
5398 ac_cv_lib_z_deflate=yes
5400 ac_cv_lib_z_deflate=no
5402 rm -f core conftest.err conftest.$ac_objext \
5403 conftest$ac_exeext conftest.$ac_ext
5404 LIBS=$ac_check_lib_save_LIBS
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
5407 $as_echo "$ac_cv_lib_z_deflate" >&6; }
5408 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
5411 zlib="false" ; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib missing. Will need zlib for PNG support" >&5
5412 $as_echo "$as_me: WARNING: zlib missing. Will need zlib for PNG support" >&2;}
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
5416 $as_echo_n "checking for sin in -lm... " >&6; }
5417 if test "${ac_cv_lib_m_sin+set}" = set; then :
5418 $as_echo_n "(cached) " >&6
5420 ac_check_lib_save_LIBS=$LIBS
5422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5423 /* end confdefs.h. */
5425 /* Override any GCC internal prototype to avoid an error.
5426 Use char because int might match the return type of a GCC
5427 builtin and then its argument prototype would still apply. */
5440 if ac_fn_c_try_link "$LINENO"; then :
5445 rm -f core conftest.err conftest.$ac_objext \
5446 conftest$ac_exeext conftest.$ac_ext
5447 LIBS=$ac_check_lib_save_LIBS
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
5450 $as_echo "$ac_cv_lib_m_sin" >&6; }
5451 if test "x$ac_cv_lib_m_sin" = x""yes; then :
5452 cat >>confdefs.h <<_ACEOF
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcurses" >&5
5461 $as_echo_n "checking for main in -lcurses... " >&6; }
5462 if test "${ac_cv_lib_curses_main+set}" = set; then :
5463 $as_echo_n "(cached) " >&6
5465 ac_check_lib_save_LIBS=$LIBS
5466 LIBS="-lcurses $LIBS"
5467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5468 /* end confdefs.h. */
5479 if ac_fn_c_try_link "$LINENO"; then :
5480 ac_cv_lib_curses_main=yes
5482 ac_cv_lib_curses_main=no
5484 rm -f core conftest.err conftest.$ac_objext \
5485 conftest$ac_exeext conftest.$ac_ext
5486 LIBS=$ac_check_lib_save_LIBS
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_main" >&5
5489 $as_echo "$ac_cv_lib_curses_main" >&6; }
5490 if test "x$ac_cv_lib_curses_main" = x""yes; then :
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lncurses" >&5
5497 $as_echo_n "checking for main in -lncurses... " >&6; }
5498 if test "${ac_cv_lib_ncurses_main+set}" = set; then :
5499 $as_echo_n "(cached) " >&6
5501 ac_check_lib_save_LIBS=$LIBS
5502 LIBS="-lncurses $LIBS"
5503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5504 /* end confdefs.h. */
5515 if ac_fn_c_try_link "$LINENO"; then :
5516 ac_cv_lib_ncurses_main=yes
5518 ac_cv_lib_ncurses_main=no
5520 rm -f core conftest.err conftest.$ac_objext \
5521 conftest$ac_exeext conftest.$ac_ext
5522 LIBS=$ac_check_lib_save_LIBS
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_main" >&5
5525 $as_echo "$ac_cv_lib_ncurses_main" >&6; }
5526 if test "x$ac_cv_lib_ncurses_main" = x""yes; then :
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lreadline" >&5
5533 $as_echo_n "checking for main in -lreadline... " >&6; }
5534 if test "${ac_cv_lib_readline_main+set}" = set; then :
5535 $as_echo_n "(cached) " >&6
5537 ac_check_lib_save_LIBS=$LIBS
5538 LIBS="-lreadline -lcurses $LIBS"
5539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540 /* end confdefs.h. */
5551 if ac_fn_c_try_link "$LINENO"; then :
5552 ac_cv_lib_readline_main=yes
5554 ac_cv_lib_readline_main=no
5556 rm -f core conftest.err conftest.$ac_objext \
5557 conftest$ac_exeext conftest.$ac_ext
5558 LIBS=$ac_check_lib_save_LIBS
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_main" >&5
5561 $as_echo "$ac_cv_lib_readline_main" >&6; }
5562 if test "x$ac_cv_lib_readline_main" = x""yes; then :
5565 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgtk-x11-2.0" >&5
5573 $as_echo_n "checking for main in -lgtk-x11-2.0... " >&6; }
5574 if test "${ac_cv_lib_gtk_x11_2_0_main+set}" = set; then :
5575 $as_echo_n "(cached) " >&6
5577 ac_check_lib_save_LIBS=$LIBS
5578 LIBS="-lgtk-x11-2.0 $LIBS"
5579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5580 /* end confdefs.h. */
5591 if ac_fn_c_try_link "$LINENO"; then :
5592 ac_cv_lib_gtk_x11_2_0_main=yes
5594 ac_cv_lib_gtk_x11_2_0_main=no
5596 rm -f core conftest.err conftest.$ac_objext \
5597 conftest$ac_exeext conftest.$ac_ext
5598 LIBS=$ac_check_lib_save_LIBS
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gtk_x11_2_0_main" >&5
5601 $as_echo "$ac_cv_lib_gtk_x11_2_0_main" >&6; }
5602 if test "x$ac_cv_lib_gtk_x11_2_0_main" = x""yes; then :
5606 if test "x$hasx11gtk2" = "x" ; then
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: Does not have X11 GTK2" >&5
5608 $as_echo "$as_me: Does not have X11 GTK2" >&6;}
5612 if test "$hasx11gtk2" = "true" ; then
5615 CFLAGS="${CFLAGS} ${g76GTK_CFLAGS} ${GLIB_CFLAGS}"
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lwx_gtk2u_core-2.8" >&5
5619 $as_echo_n "checking for main in -lwx_gtk2u_core-2.8... " >&6; }
5620 if test "${ac_cv_lib_wx_gtk2u_core_2_8_main+set}" = set; then :
5621 $as_echo_n "(cached) " >&6
5623 ac_check_lib_save_LIBS=$LIBS
5624 LIBS="-lwx_gtk2u_core-2.8 -L/usr/lib64 -L/usr/lib ${GTK_LIBS} ${GLIB_LIBS} $LIBS"
5625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626 /* end confdefs.h. */
5637 if ac_fn_c_try_link "$LINENO"; then :
5638 ac_cv_lib_wx_gtk2u_core_2_8_main=yes
5640 ac_cv_lib_wx_gtk2u_core_2_8_main=no
5642 rm -f core conftest.err conftest.$ac_objext \
5643 conftest$ac_exeext conftest.$ac_ext
5644 LIBS=$ac_check_lib_save_LIBS
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wx_gtk2u_core_2_8_main" >&5
5647 $as_echo "$ac_cv_lib_wx_gtk2u_core_2_8_main" >&6; }
5648 if test "x$ac_cv_lib_wx_gtk2u_core_2_8_main" = x""yes; then :
5649 wxwin=true; wx_gtk=true;
5650 $as_echo "#define HAVE_WXWINDOWS 1" >>confdefs.h
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lwx_mac_core-2.8" >&5
5655 $as_echo_n "checking for main in -lwx_mac_core-2.8... " >&6; }
5656 if test "${ac_cv_lib_wx_mac_core_2_8_main+set}" = set; then :
5657 $as_echo_n "(cached) " >&6
5659 ac_check_lib_save_LIBS=$LIBS
5660 LIBS="-lwx_mac_core-2.8 $LIBS"
5661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662 /* end confdefs.h. */
5673 if ac_fn_c_try_link "$LINENO"; then :
5674 ac_cv_lib_wx_mac_core_2_8_main=yes
5676 ac_cv_lib_wx_mac_core_2_8_main=no
5678 rm -f core conftest.err conftest.$ac_objext \
5679 conftest$ac_exeext conftest.$ac_ext
5680 LIBS=$ac_check_lib_save_LIBS
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wx_mac_core_2_8_main" >&5
5683 $as_echo "$ac_cv_lib_wx_mac_core_2_8_main" >&6; }
5684 if test "x$ac_cv_lib_wx_mac_core_2_8_main" = x""yes; then :
5685 wxwin=true; wx_mac=true;
5686 $as_echo "#define HAVE_WXWINDOWS 1" >>confdefs.h
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_malloc in -lfftw3" >&5
5691 $as_echo_n "checking for fftw_malloc in -lfftw3... " >&6; }
5692 if test "${ac_cv_lib_fftw3_fftw_malloc+set}" = set; then :
5693 $as_echo_n "(cached) " >&6
5695 ac_check_lib_save_LIBS=$LIBS
5696 LIBS="-lfftw3 -L/usr/lib64 -L/usr/lib $LIBS"
5697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5698 /* end confdefs.h. */
5700 /* Override any GCC internal prototype to avoid an error.
5701 Use char because int might match the return type of a GCC
5702 builtin and then its argument prototype would still apply. */
5706 char fftw_malloc ();
5710 return fftw_malloc ();
5715 if ac_fn_c_try_link "$LINENO"; then :
5716 ac_cv_lib_fftw3_fftw_malloc=yes
5718 ac_cv_lib_fftw3_fftw_malloc=no
5720 rm -f core conftest.err conftest.$ac_objext \
5721 conftest$ac_exeext conftest.$ac_ext
5722 LIBS=$ac_check_lib_save_LIBS
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_malloc" >&5
5725 $as_echo "$ac_cv_lib_fftw3_fftw_malloc" >&6; }
5726 if test "x$ac_cv_lib_fftw3_fftw_malloc" = x""yes; then :
5728 $as_echo "#define HAVE_FFTW 1" >>confdefs.h
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lGL" >&5
5735 $as_echo_n "checking for main in -lGL... " >&6; }
5736 if test "${ac_cv_lib_GL_main+set}" = set; then :
5737 $as_echo_n "(cached) " >&6
5739 ac_check_lib_save_LIBS=$LIBS
5740 LIBS="-lGL -L/usr/X11R6/lib -L/usr/X11R6/lib64 $LIBS"
5741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5742 /* end confdefs.h. */
5753 if ac_fn_c_try_link "$LINENO"; then :
5754 ac_cv_lib_GL_main=yes
5756 ac_cv_lib_GL_main=no
5758 rm -f core conftest.err conftest.$ac_objext \
5759 conftest$ac_exeext conftest.$ac_ext
5760 LIBS=$ac_check_lib_save_LIBS
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_main" >&5
5763 $as_echo "$ac_cv_lib_GL_main" >&6; }
5764 if test "x$ac_cv_lib_GL_main" = x""yes; then :
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
5771 $as_echo_n "checking for main in -lpthread... " >&6; }
5772 if test "${ac_cv_lib_pthread_main+set}" = set; then :
5773 $as_echo_n "(cached) " >&6
5775 ac_check_lib_save_LIBS=$LIBS
5776 LIBS="-lpthread $LIBS"
5777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5778 /* end confdefs.h. */
5789 if ac_fn_c_try_link "$LINENO"; then :
5790 ac_cv_lib_pthread_main=yes
5792 ac_cv_lib_pthread_main=no
5794 rm -f core conftest.err conftest.$ac_objext \
5795 conftest$ac_exeext conftest.$ac_ext
5796 LIBS=$ac_check_lib_save_LIBS
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
5799 $as_echo "$ac_cv_lib_pthread_main" >&6; }
5800 if test "x$ac_cv_lib_pthread_main" = x""yes; then :
5807 if test "$zlib" = "true" ; then
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpng" >&5
5809 $as_echo_n "checking for main in -lpng... " >&6; }
5810 if test "${ac_cv_lib_png_main+set}" = set; then :
5811 $as_echo_n "(cached) " >&6
5813 ac_check_lib_save_LIBS=$LIBS
5814 LIBS="-lpng -L/opt/local/lib -lz -lm $LIBS"
5815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5816 /* end confdefs.h. */
5827 if ac_fn_c_try_link "$LINENO"; then :
5828 ac_cv_lib_png_main=yes
5830 ac_cv_lib_png_main=no
5832 rm -f core conftest.err conftest.$ac_objext \
5833 conftest$ac_exeext conftest.$ac_ext
5834 LIBS=$ac_check_lib_save_LIBS
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_main" >&5
5837 $as_echo "$ac_cv_lib_png_main" >&6; }
5838 if test "x$ac_cv_lib_png_main" = x""yes; then :
5840 $as_echo "#define HAVE_PNG 1" >>confdefs.h
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5849 $as_echo_n "checking for ANSI C header files... " >&6; }
5850 if test "${ac_cv_header_stdc+set}" = set; then :
5851 $as_echo_n "(cached) " >&6
5853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854 /* end confdefs.h. */
5868 if ac_fn_c_try_compile "$LINENO"; then :
5869 ac_cv_header_stdc=yes
5871 ac_cv_header_stdc=no
5873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5875 if test $ac_cv_header_stdc = yes; then
5876 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5878 /* end confdefs.h. */
5882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5883 $EGREP "memchr" >/dev/null 2>&1; then :
5886 ac_cv_header_stdc=no
5892 if test $ac_cv_header_stdc = yes; then
5893 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5895 /* end confdefs.h. */
5899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5900 $EGREP "free" >/dev/null 2>&1; then :
5903 ac_cv_header_stdc=no
5909 if test $ac_cv_header_stdc = yes; then
5910 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5911 if test "$cross_compiling" = yes; then :
5914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5915 /* end confdefs.h. */
5918 #if ((' ' & 0x0FF) == 0x020)
5919 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5920 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5922 # define ISLOWER(c) \
5923 (('a' <= (c) && (c) <= 'i') \
5924 || ('j' <= (c) && (c) <= 'r') \
5925 || ('s' <= (c) && (c) <= 'z'))
5926 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5929 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5934 for (i = 0; i < 256; i++)
5935 if (XOR (islower (i), ISLOWER (i))
5936 || toupper (i) != TOUPPER (i))
5941 if ac_fn_c_try_run "$LINENO"; then :
5944 ac_cv_header_stdc=no
5946 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5947 conftest.$ac_objext conftest.beam conftest.$ac_ext
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5953 $as_echo "$ac_cv_header_stdc" >&6; }
5954 if test $ac_cv_header_stdc = yes; then
5956 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5960 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
5962 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5963 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5964 eval as_val=\$$as_ac_Header
5965 if test "x$as_val" = x""yes; then :
5966 cat >>confdefs.h <<_ACEOF
5967 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5976 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5977 if test "${ac_cv_c_const+set}" = set; then :
5978 $as_echo_n "(cached) " >&6
5980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5981 /* end confdefs.h. */
5986 /* FIXME: Include the comments suggested by Paul. */
5988 /* Ultrix mips cc rejects this. */
5989 typedef int charset[2];
5991 /* SunOS 4.1.1 cc rejects this. */
5992 char const *const *pcpcc;
5994 /* NEC SVR4.0.2 mips cc rejects this. */
5995 struct point {int x, y;};
5996 static struct point const zero = {0,0};
5997 /* AIX XL C 1.02.0.0 rejects this.
5998 It does not let you subtract one const X* pointer from another in
5999 an arm of an if-expression whose if-part is not a constant
6001 const char *g = "string";
6002 pcpcc = &g + (g ? g-g : 0);
6003 /* HPUX 7.0 cc rejects these. */
6005 ppc = (char**) pcpcc;
6006 pcpcc = (char const *const *) ppc;
6007 { /* SCO 3.2v4 cc rejects this. */
6009 char const *s = 0 ? (char *) 0 : (char const *) 0;
6014 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6016 const int *foo = &x[0];
6019 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6020 typedef const int *iptr;
6024 { /* AIX XL C 1.02.0.0 rejects this saying
6025 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6026 struct s { int j; const int *ap[3]; };
6027 struct s *b; b->j = 5;
6029 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6033 return !cs[0] && !zero.x;
6040 if ac_fn_c_try_compile "$LINENO"; then :
6045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6048 $as_echo "$ac_cv_c_const" >&6; }
6049 if test $ac_cv_c_const = no; then
6051 $as_echo "#define const /**/" >>confdefs.h
6055 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6056 if test "x$ac_cv_type_off_t" = x""yes; then :
6060 cat >>confdefs.h <<_ACEOF
6061 #define off_t long int
6066 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6067 if test "x$ac_cv_type_size_t" = x""yes; then :
6071 cat >>confdefs.h <<_ACEOF
6072 #define size_t unsigned int
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6078 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6079 if test "${ac_cv_struct_tm+set}" = set; then :
6080 $as_echo_n "(cached) " >&6
6082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6083 /* end confdefs.h. */
6084 #include <sys/types.h>
6091 int *p = &tm.tm_sec;
6097 if ac_fn_c_try_compile "$LINENO"; then :
6098 ac_cv_struct_tm=time.h
6100 ac_cv_struct_tm=sys/time.h
6102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6105 $as_echo "$ac_cv_struct_tm" >&6; }
6106 if test $ac_cv_struct_tm = sys/time.h; then
6108 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6113 for ac_func in vprintf
6115 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
6116 if test "x$ac_cv_func_vprintf" = x""yes; then :
6117 cat >>confdefs.h <<_ACEOF
6118 #define HAVE_VPRINTF 1
6121 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6122 if test "x$ac_cv_func__doprnt" = x""yes; then :
6124 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
6132 for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf basename setjmp setpriority time gettimeofday getenv
6134 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6135 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6136 eval as_val=\$$as_ac_var
6137 if test "x$as_val" = x""yes; then :
6138 cat >>confdefs.h <<_ACEOF
6139 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6145 ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
6146 if test "x$ac_cv_func_basename" = x""yes; then :
6150 ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
6151 if test "x$ac_cv_func_setjmp" = x""yes; then :
6155 ac_fn_c_check_func "$LINENO" "setpriority" "ac_cv_func_setpriority"
6156 if test "x$ac_cv_func_setpriority" = x""yes; then :
6160 ac_fn_c_check_func "$LINENO" "time" "ac_cv_func_time"
6161 if test "x$ac_cv_func_time" = x""yes; then :
6165 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
6166 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
6170 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
6171 if test "x$ac_cv_func_getopt" = x""yes; then :
6178 if test "${OSTYPE}" = "cygwin" ; then
6181 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
6182 if test "x$ac_cv_func_getopt_long" = x""yes; then :
6190 if test "${getopt_long}" = "false" ; then
6191 my_includes="$my_includes -I../getopt"
6193 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
6195 ctlibs_base="$ctlibs_base -lgetopt"
6196 LDFLAGS="$LDFLAGS -L../getopt"
6201 if test "$GETOPTLONG"="1"; then
6202 INCLUDED_GETOPT_LONG_TRUE=
6203 INCLUDED_GETOPT_LONG_FALSE='#'
6205 INCLUDED_GETOPT_LONG_TRUE='#'
6206 INCLUDED_GETOPT_LONG_FALSE=
6210 if test "${readline}" = "true" ; then
6211 ctlibs_base="$ctlibs_base -lreadline"
6212 if test "${ncurses}" = "true"; then
6213 ctlibs_base="$ctlibs_base -lncurses"
6214 elif test "${curses}" = "true"; then
6215 ctlibs_base="$ctlibs_base -lcurses"
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking debug" >&5
6220 $as_echo_n "checking debug... " >&6; }
6221 # Check whether --enable-debug was given.
6222 if test "${enable_debug+set}" = set; then :
6223 enableval=$enable_debug; case "${enableval}" in
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6226 $as_echo "yes" >&6; }
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6230 $as_echo "no" >&6; }
6232 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: bad value ${enableval} for --enable-debug" >&5
6233 $as_echo "bad value ${enableval} for --enable-debug" >&6; }
6237 debug=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6238 $as_echo "no" >&6; }
6243 if test "$debug" = "true"; then
6252 if test "$datadir" != "" ; then
6253 CPPFLAGS="$CPPFLAGS -DDATADIR=\"\\\"$datadir\\\"\""
6256 if test "$debug" = "true" ; then
6257 CFLAGS="$CFLAGS -g -O0 -DDEBUG"
6259 $as_echo "#define DEBUG 1" >>confdefs.h
6262 CFLAGS="$CFLAGS -O2 -DNDEBUG -fomit-frame-pointer"
6264 $as_echo "#define NDEBUG 1" >>confdefs.h
6268 if test "${pthread}" = "true" ; then
6270 $as_echo "#define HAVE_WXTHREADS 1" >>confdefs.h
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sstream" >&5
6275 $as_echo_n "checking sstream... " >&6; }
6276 if test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
6277 test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ||
6278 test -f /usr/include/gcc/darwin/3.1/g++-v3/sstream ; then
6280 $as_echo "#define HAVE_SSTREAM 1" >>confdefs.h
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6283 $as_echo "yes" >&6; }
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6286 $as_echo "no" >&6; }
6290 CFLAGS="$CFLAGS -Wall"
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose warnings" >&5
6292 $as_echo_n "checking whether to enable verbose warnings... " >&6; }
6293 # Check whether --enable-verbose-warnings was given.
6294 if test "${enable_verbose_warnings+set}" = set; then :
6295 enableval=$enable_verbose_warnings; case "$enableval" in
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6298 $as_echo "yes" >&6; }
6299 CFLAGS="$CFLAGS -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wredundant-decls"
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6303 $as_echo "no" >&6; }
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6308 $as_echo "no" >&6; }
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking static executables" >&5
6314 $as_echo_n "checking static executables... " >&6; }
6315 # Check whether --enable-static was given.
6316 if test "${enable_static+set}" = set; then :
6317 enableval=$enable_static; case "$enableval" in
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6320 $as_echo "yes" >&6; }
6321 CFLAGS="$CFLAGS --static"
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6325 $as_echo "no" >&6; }
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6330 $as_echo "no" >&6; }
6336 # Check whether --with-lam was given.
6337 if test "${with_lam+set}" = set; then :
6338 withval=$with_lam; if test "$withval" != "no" ; then
6345 if test "$withval" != "no" ; then
6346 if test "$prefix" != "NONE" ; then
6347 trylamdir="$trylamdir $prefix"
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LAM MPI installation" >&5
6351 $as_echo_n "checking for LAM MPI installation... " >&6; }
6352 for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
6353 if test -x "$testlamdir/bin/hcp" ; then
6354 if test "$testlamdir" != "/usr"; then
6355 LDFLAGS="$LDFLAGS -L$testlamdir/lib"
6356 CFLAGS="$CFLAGS -I$testlamdir/include"
6358 CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
6359 lamdir="$testlamdir"
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lamdir" >&5
6367 $as_echo "$lamdir" >&6; }
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6370 $as_echo "no" >&6; }
6375 # Check whether --with-ctn was given.
6376 if test "${with_ctn+set}" = set; then :
6377 withval=$with_ctn; if test "$withval" != "no" ; then
6384 if test "$withval" == "no" -o "$withval" == "NONE" ; then
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CTN DICOM installation" >&5
6386 $as_echo_n "checking for CTN DICOM installation... " >&6; }
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6388 $as_echo "disabled" >&6; }
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 for testctndir in $tryctndir/lib /usr/local/lib /usr/local/ctn/lib /usr/lib /usr/ctn/lib /usr/lib/ctn /opt/ctn/lib ; do
6393 if test -f "$testctndir/libctn.a" ; then
6394 LDFLAGS="$LDFLAGS -L$testctndir"
6399 for testctndir in $tryctndir/include /usr/local/include /usr/local/ctn/include /usr/include /usr/include/ctn /usr/ctn/include /opt/ctn/include ; do
6400 if test -f "$testctndir/ctn_os.h" ; then
6401 CFLAGS="$CFLAGS -I$testctndir"
6406 if test "$ctnlib" == "true" -a "$ctninclude" == "true" ; then
6409 $as_echo "#define HAVE_CTN_DICOM 1" >>confdefs.h
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6412 $as_echo "yes" >&6; }
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6415 $as_echo "no" >&6; }
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPU specification" >&5
6420 $as_echo_n "checking for CPU specification... " >&6; }
6422 # Check whether --with-mcpu was given.
6423 if test "${with_mcpu+set}" = set; then :
6428 if test "$withval" == "no" -o "$withval" == "yes" -o "$withval" == ""; then
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6430 $as_echo "no" >&6; }
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
6433 $as_echo "$withval" >&6; }
6434 CFLAGS="$CFLAGS -mcpu=$withval"
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for web access" >&5
6438 $as_echo_n "checking for web access... " >&6; }
6440 # Check whether --with-cgibin-dir was given.
6441 if test "${with_cgibin_dir+set}" = set; then :
6442 withval=$with_cgibin_dir; cgibindir=$withval ;
6447 # Check whether --with-cgibin-url was given.
6448 if test "${with_cgibin_url+set}" = set; then :
6449 withval=$with_cgibin_url; cgibinurl=$withval ;
6454 # Check whether --with-webdata-dir was given.
6455 if test "${with_webdata_dir+set}" = set; then :
6456 withval=$with_webdata_dir; webdatadir=$withval ;
6461 # Check whether --with-webdata-url was given.
6462 if test "${with_webdata_url+set}" = set; then :
6463 withval=$with_webdata_url; webdataurl=$withval ;
6468 # Check whether --with-html-dir was given.
6469 if test "${with_html_dir+set}" = set; then :
6470 withval=$with_html_dir; html_%dir=$withval ;
6474 if test "x$cgibindir" != "x" -o "x$cgibinurl" != "x" ; then
6475 cgiprograms="ctsim.cgi ctsim.conf"
6479 if test "x$html_dir" = "x" ; then
6480 htmldata=simulate.html
6485 if test "x$html_dir" = "x"; then
6494 if test "x$cgibindir" != "x" -o "x$cgibinurl" != "x" -o "x$webdatadir" != "x" -o "x$webdataurl" != "x" -o "x$html_dir" != "x" ; then
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6498 $as_echo "yes" >&6; }
6499 if test "x$cgibindir" = "x" ; then
6500 as_fn_error "--with-cgibin-dir not set for web access" "$LINENO" 5
6501 elif test "x$cgibinurl" = "x" ; then
6502 as_fn_error "--with-cgibin-url not set for web access" "$LINENO" 5
6503 elif test "x$webdatadir" = "x" ; then
6504 as_fn_error "--with-webdata-dir not set for web access" "$LINENO" 5
6505 elif test "x$webdataurl" = "x" ; then
6506 as_fn_error "--with-webdata-url not set for web access" "$LINENO" 5
6507 elif test "x$html_dir" = "x" ; then
6508 as_fn_error "--with-html-dir not set for web access" "$LINENO" 5
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6512 $as_echo "no" >&6; }
6517 if test "x$lamdir" != "x"; then
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
6527 $as_echo_n "checking for X... " >&6; }
6530 # Check whether --with-x was given.
6531 if test "${with_x+set}" = set; then :
6535 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6536 if test "x$with_x" = xno; then
6537 # The user explicitly disabled X.
6540 case $x_includes,$x_libraries in #(
6541 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
6542 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
6543 $as_echo_n "(cached) " >&6
6545 # One or both of the vars are not set, and there is no cached value.
6546 ac_x_includes=no ac_x_libraries=no
6547 rm -f -r conftest.dir
6548 if mkdir conftest.dir; then
6550 cat >Imakefile <<'_ACEOF'
6552 @echo incroot='${INCROOT}'
6554 @echo usrlibdir='${USRLIBDIR}'
6556 @echo libdir='${LIBDIR}'
6558 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6559 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6560 for ac_var in incroot usrlibdir libdir; do
6561 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6563 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6564 for ac_extension in a so sl dylib la dll; do
6565 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6566 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6567 ac_im_usrlibdir=$ac_im_libdir; break
6570 # Screen out bogus values from the imake configuration. They are
6571 # bogus both because they are the default anyway, and because
6572 # using them would break gcc on systems where it needs fixed includes.
6573 case $ac_im_incroot in
6574 /usr/include) ac_x_includes= ;;
6575 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6577 case $ac_im_usrlibdir in
6578 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
6579 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6583 rm -f -r conftest.dir
6586 # Standard set of common directories for X headers.
6587 # Check X11 before X11Rn because it is often a symlink to the current release.
6601 /usr/local/X11/include
6602 /usr/local/X11R7/include
6603 /usr/local/X11R6/include
6604 /usr/local/X11R5/include
6605 /usr/local/X11R4/include
6607 /usr/local/include/X11
6608 /usr/local/include/X11R7
6609 /usr/local/include/X11R6
6610 /usr/local/include/X11R5
6611 /usr/local/include/X11R4
6615 /usr/XFree86/include/X11
6619 /usr/unsupported/include
6621 /usr/local/x11r5/include
6622 /usr/lpp/Xamples/include
6624 /usr/openwin/include
6625 /usr/openwin/share/include'
6627 if test "$ac_x_includes" = no; then
6628 # Guess where to find include files, by looking for Xlib.h.
6629 # First, try using that file with no special directory specified.
6630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6631 /* end confdefs.h. */
6632 #include <X11/Xlib.h>
6634 if ac_fn_c_try_cpp "$LINENO"; then :
6635 # We can compile using X headers with no special include directory.
6638 for ac_dir in $ac_x_header_dirs; do
6639 if test -r "$ac_dir/X11/Xlib.h"; then
6640 ac_x_includes=$ac_dir
6645 rm -f conftest.err conftest.$ac_ext
6646 fi # $ac_x_includes = no
6648 if test "$ac_x_libraries" = no; then
6649 # Check for the libraries.
6650 # See if we find them without any special options.
6651 # Don't add to $LIBS permanently.
6654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6655 /* end confdefs.h. */
6656 #include <X11/Xlib.h>
6665 if ac_fn_c_try_link "$LINENO"; then :
6667 # We can link X programs with no special library path.
6671 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6673 # Don't even attempt the hair of trying to link an X program!
6674 for ac_extension in a so sl dylib la dll; do
6675 if test -r "$ac_dir/libX11.$ac_extension"; then
6676 ac_x_libraries=$ac_dir
6682 rm -f core conftest.err conftest.$ac_objext \
6683 conftest$ac_exeext conftest.$ac_ext
6684 fi # $ac_x_libraries = no
6686 case $ac_x_includes,$ac_x_libraries in #(
6688 # Didn't find X, or a directory has "'" in its name.
6689 ac_cv_have_x="have_x=no";; #(
6691 # Record where we found X for the cache.
6692 ac_cv_have_x="have_x=yes\
6693 ac_x_includes='$ac_x_includes'\
6694 ac_x_libraries='$ac_x_libraries'"
6700 eval "$ac_cv_have_x"
6703 if test "$have_x" != yes; then
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
6705 $as_echo "$have_x" >&6; }
6708 # If each of the values was on the command line, it overrides each guess.
6709 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6710 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6711 # Update the cache value to reflect the command line values.
6712 ac_cv_have_x="have_x=yes\
6713 ac_x_includes='$x_includes'\
6714 ac_x_libraries='$x_libraries'"
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
6716 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6719 if test "$no_x" = yes; then
6720 # Not all programs may use this symbol, but it does not hurt to define it.
6722 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
6724 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6726 if test -n "$x_includes"; then
6727 X_CFLAGS="$X_CFLAGS -I$x_includes"
6730 # It would also be nice to do this for all -L options, not just this one.
6731 if test -n "$x_libraries"; then
6732 X_LIBS="$X_LIBS -L$x_libraries"
6733 # For Solaris; some versions of Sun CC require a space after -R and
6734 # others require no space. Words are not sufficient . . . .
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
6736 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
6737 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6738 ac_xsave_c_werror_flag=$ac_c_werror_flag
6739 ac_c_werror_flag=yes
6740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6741 /* end confdefs.h. */
6751 if ac_fn_c_try_link "$LINENO"; then :
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6753 $as_echo "no" >&6; }
6754 X_LIBS="$X_LIBS -R$x_libraries"
6756 LIBS="$ac_xsave_LIBS -R $x_libraries"
6757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6758 /* end confdefs.h. */
6768 if ac_fn_c_try_link "$LINENO"; then :
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6770 $as_echo "yes" >&6; }
6771 X_LIBS="$X_LIBS -R $x_libraries"
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
6774 $as_echo "neither works" >&6; }
6776 rm -f core conftest.err conftest.$ac_objext \
6777 conftest$ac_exeext conftest.$ac_ext
6779 rm -f core conftest.err conftest.$ac_objext \
6780 conftest$ac_exeext conftest.$ac_ext
6781 ac_c_werror_flag=$ac_xsave_c_werror_flag
6785 # Check for system-dependent libraries X programs must link with.
6786 # Do this before checking for the system-independent R6 libraries
6787 # (-lICE), since we may need -lsocket or whatever for X linking.
6789 if test "$ISC" = yes; then
6790 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6792 # Martyn Johnson says this is needed for Ultrix, if the X
6793 # libraries were built with DECnet support. And Karl Berry says
6794 # the Alpha needs dnet_stub (dnet does not exist).
6795 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6797 /* end confdefs.h. */
6799 /* Override any GCC internal prototype to avoid an error.
6800 Use char because int might match the return type of a GCC
6801 builtin and then its argument prototype would still apply. */
6805 char XOpenDisplay ();
6809 return XOpenDisplay ();
6814 if ac_fn_c_try_link "$LINENO"; then :
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
6818 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6819 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
6820 $as_echo_n "(cached) " >&6
6822 ac_check_lib_save_LIBS=$LIBS
6824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6825 /* end confdefs.h. */
6827 /* Override any GCC internal prototype to avoid an error.
6828 Use char because int might match the return type of a GCC
6829 builtin and then its argument prototype would still apply. */
6837 return dnet_ntoa ();
6842 if ac_fn_c_try_link "$LINENO"; then :
6843 ac_cv_lib_dnet_dnet_ntoa=yes
6845 ac_cv_lib_dnet_dnet_ntoa=no
6847 rm -f core conftest.err conftest.$ac_objext \
6848 conftest$ac_exeext conftest.$ac_ext
6849 LIBS=$ac_check_lib_save_LIBS
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6852 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6853 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
6854 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6857 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
6859 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6860 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
6861 $as_echo_n "(cached) " >&6
6863 ac_check_lib_save_LIBS=$LIBS
6864 LIBS="-ldnet_stub $LIBS"
6865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6866 /* end confdefs.h. */
6868 /* Override any GCC internal prototype to avoid an error.
6869 Use char because int might match the return type of a GCC
6870 builtin and then its argument prototype would still apply. */
6878 return dnet_ntoa ();
6883 if ac_fn_c_try_link "$LINENO"; then :
6884 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6886 ac_cv_lib_dnet_stub_dnet_ntoa=no
6888 rm -f core conftest.err conftest.$ac_objext \
6889 conftest$ac_exeext conftest.$ac_ext
6890 LIBS=$ac_check_lib_save_LIBS
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6893 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6894 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
6895 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6900 rm -f core conftest.err conftest.$ac_objext \
6901 conftest$ac_exeext conftest.$ac_ext
6902 LIBS="$ac_xsave_LIBS"
6904 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6905 # to get the SysV transport functions.
6906 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6908 # The nsl library prevents programs from opening the X display
6909 # on Irix 5.2, according to T.E. Dickey.
6910 # The functions gethostbyname, getservbyname, and inet_addr are
6911 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6912 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
6913 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
6917 if test $ac_cv_func_gethostbyname = no; then
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
6919 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6920 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
6921 $as_echo_n "(cached) " >&6
6923 ac_check_lib_save_LIBS=$LIBS
6925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6926 /* end confdefs.h. */
6928 /* Override any GCC internal prototype to avoid an error.
6929 Use char because int might match the return type of a GCC
6930 builtin and then its argument prototype would still apply. */
6934 char gethostbyname ();
6938 return gethostbyname ();
6943 if ac_fn_c_try_link "$LINENO"; then :
6944 ac_cv_lib_nsl_gethostbyname=yes
6946 ac_cv_lib_nsl_gethostbyname=no
6948 rm -f core conftest.err conftest.$ac_objext \
6949 conftest$ac_exeext conftest.$ac_ext
6950 LIBS=$ac_check_lib_save_LIBS
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
6953 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6954 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
6955 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6958 if test $ac_cv_lib_nsl_gethostbyname = no; then
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
6960 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
6961 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
6962 $as_echo_n "(cached) " >&6
6964 ac_check_lib_save_LIBS=$LIBS
6966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6967 /* end confdefs.h. */
6969 /* Override any GCC internal prototype to avoid an error.
6970 Use char because int might match the return type of a GCC
6971 builtin and then its argument prototype would still apply. */
6975 char gethostbyname ();
6979 return gethostbyname ();
6984 if ac_fn_c_try_link "$LINENO"; then :
6985 ac_cv_lib_bsd_gethostbyname=yes
6987 ac_cv_lib_bsd_gethostbyname=no
6989 rm -f core conftest.err conftest.$ac_objext \
6990 conftest$ac_exeext conftest.$ac_ext
6991 LIBS=$ac_check_lib_save_LIBS
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
6994 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
6995 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
6996 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7002 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7003 # socket/setsockopt and other routines are undefined under SCO ODT
7004 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7005 # on later versions), says Simon Leinen: it contains gethostby*
7006 # variants that don't use the name server (or something). -lsocket
7007 # must be given before -lnsl if both are needed. We assume that
7008 # if connect needs -lnsl, so does gethostbyname.
7009 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7010 if test "x$ac_cv_func_connect" = x""yes; then :
7014 if test $ac_cv_func_connect = no; then
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7016 $as_echo_n "checking for connect in -lsocket... " >&6; }
7017 if test "${ac_cv_lib_socket_connect+set}" = set; then :
7018 $as_echo_n "(cached) " >&6
7020 ac_check_lib_save_LIBS=$LIBS
7021 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7023 /* end confdefs.h. */
7025 /* Override any GCC internal prototype to avoid an error.
7026 Use char because int might match the return type of a GCC
7027 builtin and then its argument prototype would still apply. */
7040 if ac_fn_c_try_link "$LINENO"; then :
7041 ac_cv_lib_socket_connect=yes
7043 ac_cv_lib_socket_connect=no
7045 rm -f core conftest.err conftest.$ac_objext \
7046 conftest$ac_exeext conftest.$ac_ext
7047 LIBS=$ac_check_lib_save_LIBS
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7050 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7051 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
7052 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7057 # Guillermo Gomez says -lposix is necessary on A/UX.
7058 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7059 if test "x$ac_cv_func_remove" = x""yes; then :
7063 if test $ac_cv_func_remove = no; then
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7065 $as_echo_n "checking for remove in -lposix... " >&6; }
7066 if test "${ac_cv_lib_posix_remove+set}" = set; then :
7067 $as_echo_n "(cached) " >&6
7069 ac_check_lib_save_LIBS=$LIBS
7070 LIBS="-lposix $LIBS"
7071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7072 /* end confdefs.h. */
7074 /* Override any GCC internal prototype to avoid an error.
7075 Use char because int might match the return type of a GCC
7076 builtin and then its argument prototype would still apply. */
7089 if ac_fn_c_try_link "$LINENO"; then :
7090 ac_cv_lib_posix_remove=yes
7092 ac_cv_lib_posix_remove=no
7094 rm -f core conftest.err conftest.$ac_objext \
7095 conftest$ac_exeext conftest.$ac_ext
7096 LIBS=$ac_check_lib_save_LIBS
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7099 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7100 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
7101 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7106 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7107 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7108 if test "x$ac_cv_func_shmat" = x""yes; then :
7112 if test $ac_cv_func_shmat = no; then
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7114 $as_echo_n "checking for shmat in -lipc... " >&6; }
7115 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
7116 $as_echo_n "(cached) " >&6
7118 ac_check_lib_save_LIBS=$LIBS
7120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7121 /* end confdefs.h. */
7123 /* Override any GCC internal prototype to avoid an error.
7124 Use char because int might match the return type of a GCC
7125 builtin and then its argument prototype would still apply. */
7138 if ac_fn_c_try_link "$LINENO"; then :
7139 ac_cv_lib_ipc_shmat=yes
7141 ac_cv_lib_ipc_shmat=no
7143 rm -f core conftest.err conftest.$ac_objext \
7144 conftest$ac_exeext conftest.$ac_ext
7145 LIBS=$ac_check_lib_save_LIBS
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7148 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7149 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
7150 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7156 # Check for libraries that X11R6 Xt/Xaw programs need.
7157 ac_save_LDFLAGS=$LDFLAGS
7158 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7159 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7160 # check for ICE first), but we must link in the order -lSM -lICE or
7161 # we get undefined symbols. So assume we have SM if we have ICE.
7162 # These have to be linked with before -lX11, unlike the other
7163 # libraries we check for below, so use a different variable.
7164 # John Interrante, Karl Berry
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7166 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7167 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
7168 $as_echo_n "(cached) " >&6
7170 ac_check_lib_save_LIBS=$LIBS
7171 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7173 /* end confdefs.h. */
7175 /* Override any GCC internal prototype to avoid an error.
7176 Use char because int might match the return type of a GCC
7177 builtin and then its argument prototype would still apply. */
7181 char IceConnectionNumber ();
7185 return IceConnectionNumber ();
7190 if ac_fn_c_try_link "$LINENO"; then :
7191 ac_cv_lib_ICE_IceConnectionNumber=yes
7193 ac_cv_lib_ICE_IceConnectionNumber=no
7195 rm -f core conftest.err conftest.$ac_objext \
7196 conftest$ac_exeext conftest.$ac_ext
7197 LIBS=$ac_check_lib_save_LIBS
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7200 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7201 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
7202 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7205 LDFLAGS=$ac_save_LDFLAGS
7218 if test "x$with_x" = "xno"; then
7227 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
7230 LDFLAGS="$LDFLAGS -L/usr/local/lib"
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7233 $as_echo_n "checking for X... " >&6; }
7234 if test "$with_x" != "no" && test "$wxwin" = "true"; then
7236 $as_echo "#define HAVE_X11 1" >>confdefs.h
7238 LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib -L/usr/X11R6/lib64"
7239 my_includes="$my_includes -I/usr/X11R6/include"
7240 ctlib_graphics="$ctlibs_base -lctgraphics"
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7242 $as_echo "yes" >&6; }
7243 ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
7244 if test "$libgl" = "true" ; then
7245 # Removed "-lglut" for Mac OS X compilation
7246 ctlib_graphics="$ctlib_graphics -lGL -lGLU"
7247 if test "$wxwin" = "true" ; then
7249 if test "$debug" = "true"; then
7252 if test "x$wx_gtk" != "x" ; then
7253 ctlib_graphics="$ctlib_graphics `$wxconfig $wxdebug --version=2.8 --libs std,gl` ${GTK_LIBS} ${GLIB_LIBS}"
7254 elif test "x$wx_mac" != "x" ; then
7255 ctlib_graphics="$ctlib_graphics `$wxconfig $wxdebug --version=2.8 --libs std,gl`"
7259 if test "$wxwin" = "true" ; then
7261 $as_echo "#define HAVE_SGP 1" >>confdefs.h
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7266 $as_echo "no" >&6; }
7271 if test "$wxwin" = "true"; then
7280 if test "$png" = "true" ; then
7281 ctlibs_tools="$ctlibs_tools -lpng"
7283 if test "$zlib" = "true" ; then
7284 ctlibs_tools="$ctlibs_tools -lz"
7286 if test "$fftw" = "true" ; then
7287 ctlibs_tools="$ctlibs_tools -lfftw3"
7289 if test "$ctn" = "true"; then
7290 ctlibs_tools="$ctlibs_tools -lctn"
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldmallocxx" >&5
7294 $as_echo_n "checking for main in -ldmallocxx... " >&6; }
7295 if test "${ac_cv_lib_dmallocxx_main+set}" = set; then :
7296 $as_echo_n "(cached) " >&6
7298 ac_check_lib_save_LIBS=$LIBS
7299 LIBS="-ldmallocxx $LIBS"
7300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7301 /* end confdefs.h. */
7312 if ac_fn_c_try_link "$LINENO"; then :
7313 ac_cv_lib_dmallocxx_main=yes
7315 ac_cv_lib_dmallocxx_main=no
7317 rm -f core conftest.err conftest.$ac_objext \
7318 conftest$ac_exeext conftest.$ac_ext
7319 LIBS=$ac_check_lib_save_LIBS
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmallocxx_main" >&5
7322 $as_echo "$ac_cv_lib_dmallocxx_main" >&6; }
7323 if test "x$ac_cv_lib_dmallocxx_main" = x""yes; then :
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enable-dmalloc" >&5
7330 $as_echo_n "checking for enable-dmalloc... " >&6; }
7331 # Check whether --enable-dmalloc was given.
7332 if test "${enable_dmalloc+set}" = set; then :
7333 enableval=$enable_dmalloc; case "${enableval}" in
7334 yes) usedmalloc=true
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7336 $as_echo "yes" >&6; }
7338 no) usedmalloc=false
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7340 $as_echo "no" >&6; }
7342 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: bad value ${enableval} for --enable-dmalloc" >&5
7343 $as_echo "bad value ${enableval} for --enable-dmalloc" >&6; }
7347 usedmalloc=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7348 $as_echo "no" >&6; }
7352 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
7353 ctlibs_tools="$ctlibs_tools -ldmallocxx"
7355 $as_echo "#define HAVE_DMALLOC 1" >>confdefs.h
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using dmalloc" >&5
7358 $as_echo "Using dmalloc" >&6; }
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lefence" >&5
7362 $as_echo_n "checking for main in -lefence... " >&6; }
7363 if test "${ac_cv_lib_efence_main+set}" = set; then :
7364 $as_echo_n "(cached) " >&6
7366 ac_check_lib_save_LIBS=$LIBS
7367 LIBS="-lefence $LIBS"
7368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7369 /* end confdefs.h. */
7380 if ac_fn_c_try_link "$LINENO"; then :
7381 ac_cv_lib_efence_main=yes
7383 ac_cv_lib_efence_main=no
7385 rm -f core conftest.err conftest.$ac_objext \
7386 conftest$ac_exeext conftest.$ac_ext
7387 LIBS=$ac_check_lib_save_LIBS
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_main" >&5
7390 $as_echo "$ac_cv_lib_efence_main" >&6; }
7391 if test "x$ac_cv_lib_efence_main" = x""yes; then :
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enable-efence" >&5
7398 $as_echo_n "checking for enable-efence... " >&6; }
7399 # Check whether --enable-efence was given.
7400 if test "${enable_efence+set}" = set; then :
7401 enableval=$enable_efence; case "${enableval}" in
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7404 $as_echo "yes" >&6; }
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7408 $as_echo "no" >&6; }
7410 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: bad value ${enableval} for --enable-efence" >&5
7411 $as_echo "bad value ${enableval} for --enable-efence" >&6; }
7415 useefence=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7416 $as_echo "no" >&6; }
7420 if test "$efence" = "true" -a "$useefence" = "true" ; then
7421 ctlibs_tools="$ctlibs_tools -lefence"
7423 $as_echo "#define HAVE_EFENCE 1" >>confdefs.h
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using efence" >&5
7426 $as_echo "Using efence" >&6; }
7429 if test "$wxwin" = "true" ; then
7430 if test "$wx_gtk" = "true" -o "$wx_mac" = "true" ; then
7431 wxcflags=`$wxconfig $wxdebug --cxxflags --version=2.8`
7432 #wxlibs=`$wxconfig --libs`
7434 wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
7435 wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
7437 CFLAGS="$CFLAGS -I../include $wxcflags"
7438 ctlib_graphics="$ctlib_graphics $wxlibs"
7444 if test "$wxwin"="true"; then
7445 HAVE_WXWINDOWS_TRUE=
7446 HAVE_WXWINDOWS_FALSE='#'
7448 HAVE_WXWINDOWS_TRUE='#'
7449 HAVE_WXWINDOWS_FALSE=
7453 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
7454 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
7457 if test "x$lamdir" != "x" ; then
7458 lamprograms="ctsimtext-lam"
7466 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"
7469 cat >confcache <<\_ACEOF
7470 # This file is a shell script that caches the results of configure
7471 # tests run on this system so they can be shared between configure
7472 # scripts and configure runs, see configure's option --config-cache.
7473 # It is not useful on other systems. If it contains results you don't
7474 # want to keep, you may remove or edit it.
7476 # config.status only pays attention to the cache file if you give it
7477 # the --recheck option to rerun configure.
7479 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7480 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7485 # The following way of writing the cache mishandles newlines in values,
7486 # but we know of no workaround that is simple, portable, and efficient.
7487 # So, we kill variables containing newlines.
7488 # Ultrix sh set writes to stderr and can't be redirected directly,
7489 # and sets the high bit in the cache file unless we assign to the vars.
7491 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7492 eval ac_val=\$$ac_var
7496 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7497 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7500 _ | IFS | as_nl) ;; #(
7501 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7502 *) { eval $ac_var=; unset $ac_var;} ;;
7508 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7509 *${as_nl}ac_space=\ *)
7510 # `set' does not quote correctly, so add quotes: double-quote
7511 # substitution turns \\\\ into \\, and sed turns \\ into \.
7514 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7517 # `set' quotes correctly as required by POSIX, so do not add quotes.
7518 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7527 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7529 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7531 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7532 if test -w "$cache_file"; then
7533 test "x$cache_file" != "x/dev/null" &&
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7535 $as_echo "$as_me: updating cache $cache_file" >&6;}
7536 cat confcache >$cache_file
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7539 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7544 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7545 # Let make expand exec_prefix.
7546 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7548 DEFS=-DHAVE_CONFIG_H
7552 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7553 # 1. Remove the extension, and $U if already installed.
7554 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7555 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7556 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7557 # will be set to the directory where LIBOBJS objects are built.
7558 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7559 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7563 LTLIBOBJS=$ac_ltlibobjs
7566 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7567 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
7568 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7570 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7571 as_fn_error "conditional \"AMDEP\" was never defined.
7572 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7574 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7575 as_fn_error "conditional \"am__fastdepCC\" was never defined.
7576 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7578 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
7579 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
7580 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7583 if test -z "${INCLUDED_GETOPT_LONG_TRUE}" && test -z "${INCLUDED_GETOPT_LONG_FALSE}"; then
7584 as_fn_error "conditional \"INCLUDED_GETOPT_LONG\" was never defined.
7585 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7587 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
7588 as_fn_error "conditional \"DEBUG\" was never defined.
7589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7591 if test -z "${USE_HTML_TRUE}" && test -z "${USE_HTML_FALSE}"; then
7592 as_fn_error "conditional \"USE_HTML\" was never defined.
7593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7595 if test -z "${USE_LAM_TRUE}" && test -z "${USE_LAM_FALSE}"; then
7596 as_fn_error "conditional \"USE_LAM\" was never defined.
7597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7599 if test -z "${NO_X_TRUE}" && test -z "${NO_X_FALSE}"; then
7600 as_fn_error "conditional \"NO_X\" was never defined.
7601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7603 if test -z "${HAVE_SGP_TRUE}" && test -z "${HAVE_SGP_FALSE}"; then
7604 as_fn_error "conditional \"HAVE_SGP\" was never defined.
7605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7607 if test -z "${HAVE_WXWINDOWS_TRUE}" && test -z "${HAVE_WXWINDOWS_FALSE}"; then
7608 as_fn_error "conditional \"HAVE_WXWINDOWS\" was never defined.
7609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7612 : ${CONFIG_STATUS=./config.status}
7614 ac_clean_files_save=$ac_clean_files
7615 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7617 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7619 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7621 # Generated by $as_me.
7622 # Run this file to recreate the current configuration.
7623 # Compiler output produced by configure, useful for debugging
7624 # configure, is in config.log if it exists.
7630 SHELL=\${CONFIG_SHELL-$SHELL}
7633 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7634 ## -------------------- ##
7635 ## M4sh Initialization. ##
7636 ## -------------------- ##
7638 # Be more Bourne compatible
7639 DUALCASE=1; export DUALCASE # for MKS sh
7640 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7643 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7644 # is contrary to our usage. Disable this feature.
7645 alias -g '${1+"$@"}'='"$@"'
7646 setopt NO_GLOB_SUBST
7648 case `(set -o) 2>/dev/null` in #(
7660 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7661 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7662 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7663 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7664 # Prefer a ksh shell builtin over an external printf program on Solaris,
7665 # but without wasting forks for bash or zsh.
7666 if test -z "$BASH_VERSION$ZSH_VERSION" \
7667 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7668 as_echo='print -r --'
7669 as_echo_n='print -rn --'
7670 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7671 as_echo='printf %s\n'
7672 as_echo_n='printf %s'
7674 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7675 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7676 as_echo_n='/usr/ucb/echo -n'
7678 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7679 as_echo_n_body='eval
7683 expr "X$arg" : "X\\(.*\\)$as_nl";
7684 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7686 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7688 export as_echo_n_body
7689 as_echo_n='sh -c $as_echo_n_body as_echo'
7692 as_echo='sh -c $as_echo_body as_echo'
7695 # The user is always right.
7696 if test "${PATH_SEPARATOR+set}" != set; then
7698 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7699 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7706 # We need space, tab and new line, in precisely that order. Quoting is
7707 # there to prevent editors from complaining about space-tab.
7708 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7709 # splitting by setting IFS to empty value.)
7712 # Find who we are. Look in the path if we contain no directory separator.
7714 *[\\/]* ) as_myself=$0 ;;
7715 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7719 test -z "$as_dir" && as_dir=.
7720 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7726 # We did not find ourselves, most probably we were run as `sh COMMAND'
7727 # in which case we are not to be found in the path.
7728 if test "x$as_myself" = x; then
7731 if test ! -f "$as_myself"; then
7732 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7736 # Unset variables that we do not need and which cause bugs (e.g. in
7737 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7738 # suppresses any "Segmentation fault" message there. '((' could
7739 # trigger a bug in pdksh 5.2.14.
7740 for as_var in BASH_ENV ENV MAIL MAILPATH
7741 do eval test x\${$as_var+set} = xset \
7742 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7755 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7758 # as_fn_error ERROR [LINENO LOG_FD]
7759 # ---------------------------------
7760 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7761 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7762 # script with status $?, using 1 if that was 0.
7765 as_status=$?; test $as_status -eq 0 && as_status=1
7767 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7768 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7770 $as_echo "$as_me: error: $1" >&2
7771 as_fn_exit $as_status
7775 # as_fn_set_status STATUS
7776 # -----------------------
7777 # Set $? to STATUS, without forking.
7781 } # as_fn_set_status
7785 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7795 # Portably unset VAR.
7798 { eval $1=; unset $1;}
7800 as_unset=as_fn_unset
7801 # as_fn_append VAR VALUE
7802 # ----------------------
7803 # Append the text in VALUE to the end of the definition contained in VAR. Take
7804 # advantage of any shell optimizations that allow amortized linear growth over
7805 # repeated appends, instead of the typical quadratic growth present in naive
7807 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7808 eval 'as_fn_append ()
7819 # as_fn_arith ARG...
7820 # ------------------
7821 # Perform arithmetic evaluation on the ARGs, and store the result in the
7822 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7823 # must be portable across $(()) and expr.
7824 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7825 eval 'as_fn_arith ()
7832 as_val=`expr "$@" || test $? -eq 1`
7837 if expr a : '\(a\)' >/dev/null 2>&1 &&
7838 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7844 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7845 as_basename=basename
7850 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7856 as_me=`$as_basename -- "$0" ||
7857 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7858 X"$0" : 'X\(//\)$' \| \
7859 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7861 sed '/^.*\/\([^/][^/]*\)\/*$/{
7875 # Avoid depending upon Character Ranges.
7876 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7877 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7878 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7879 as_cr_digits='0123456789'
7880 as_cr_alnum=$as_cr_Letters$as_cr_digits
7882 ECHO_C= ECHO_N= ECHO_T=
7883 case `echo -n x` in #(((((
7885 case `echo 'xy\c'` in
7886 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7888 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7895 rm -f conf$$ conf$$.exe conf$$.file
7896 if test -d conf$$.dir; then
7897 rm -f conf$$.dir/conf$$.file
7900 mkdir conf$$.dir 2>/dev/null
7902 if (echo >conf$$.file) 2>/dev/null; then
7903 if ln -s conf$$.file conf$$ 2>/dev/null; then
7905 # ... but there are two gotchas:
7906 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7907 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7908 # In both cases, we have to default to `cp -p'.
7909 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7911 elif ln conf$$.file conf$$ 2>/dev/null; then
7919 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7920 rmdir conf$$.dir 2>/dev/null
7925 # Create "$as_dir" as a directory, including parents if necessary.
7930 -*) as_dir=./$as_dir;;
7932 test -d "$as_dir" || eval $as_mkdir_p || {
7936 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7937 *) as_qdir=$as_dir;;
7939 as_dirs="'$as_qdir' $as_dirs"
7940 as_dir=`$as_dirname -- "$as_dir" ||
7941 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7942 X"$as_dir" : 'X\(//\)[^/]' \| \
7943 X"$as_dir" : 'X\(//\)$' \| \
7944 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7945 $as_echo X"$as_dir" |
7946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7963 test -d "$as_dir" && break
7965 test -z "$as_dirs" || eval "mkdir $as_dirs"
7966 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
7970 if mkdir -p . 2>/dev/null; then
7971 as_mkdir_p='mkdir -p "$as_dir"'
7973 test -d ./-p && rmdir ./-p
7977 if test -x / >/dev/null 2>&1; then
7980 if ls -dL / >/dev/null 2>&1; then
7987 if test -d "$1"; then
7993 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7994 ???[sx]*):;;*)false;;esac;fi
7998 as_executable_p=$as_test_x
8000 # Sed expression to map a string onto a valid CPP name.
8001 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8003 # Sed expression to map a string onto a valid variable name.
8004 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8008 ## ----------------------------------- ##
8009 ## Main body of $CONFIG_STATUS script. ##
8010 ## ----------------------------------- ##
8012 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8015 # Save the log message, to keep $0 and so on meaningful, and to
8016 # report actual input values of CONFIG_FILES etc. instead of their
8017 # values after options handling.
8019 This file was extended by $as_me, which was
8020 generated by GNU Autoconf 2.64. Invocation command line was
8022 CONFIG_FILES = $CONFIG_FILES
8023 CONFIG_HEADERS = $CONFIG_HEADERS
8024 CONFIG_LINKS = $CONFIG_LINKS
8025 CONFIG_COMMANDS = $CONFIG_COMMANDS
8028 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8033 case $ac_config_files in *"
8034 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8037 case $ac_config_headers in *"
8038 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8042 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8043 # Files that config.status was made for.
8044 config_files="$ac_config_files"
8045 config_headers="$ac_config_headers"
8046 config_commands="$ac_config_commands"
8050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8052 \`$as_me' instantiates files and other configuration actions
8053 from templates according to the current configuration. Unless the files
8054 and actions are specified as TAGs, all are instantiated by default.
8056 Usage: $0 [OPTION]... [TAG]...
8058 -h, --help print this help, then exit
8059 -V, --version print version number and configuration settings, then exit
8060 -q, --quiet, --silent
8061 do not print progress messages
8062 -d, --debug don't remove temporary files
8063 --recheck update $as_me by reconfiguring in the same conditions
8064 --file=FILE[:TEMPLATE]
8065 instantiate the configuration file FILE
8066 --header=FILE[:TEMPLATE]
8067 instantiate the configuration header FILE
8069 Configuration files:
8072 Configuration headers:
8075 Configuration commands:
8078 Report bugs to the package provider."
8081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8084 configured by $0, generated by GNU Autoconf 2.64,
8085 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8087 Copyright (C) 2009 Free Software Foundation, Inc.
8088 This config.status script is free software; the Free Software Foundation
8089 gives unlimited permission to copy, distribute and modify it."
8095 test -n "\$AWK" || AWK=awk
8098 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8099 # The default lists apply if the user does not specify any file.
8105 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8106 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8117 # Handling of the options.
8118 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8120 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8121 $as_echo "$ac_cs_version"; exit ;;
8122 --debug | --debu | --deb | --de | --d | -d )
8124 --file | --fil | --fi | --f )
8127 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8129 as_fn_append CONFIG_FILES " '$ac_optarg'"
8130 ac_need_defaults=false;;
8131 --header | --heade | --head | --hea )
8134 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8136 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8137 ac_need_defaults=false;;
8139 # Conflict between --help and --header
8140 as_fn_error "ambiguous option: \`$1'
8141 Try \`$0 --help' for more information.";;
8142 --help | --hel | -h )
8143 $as_echo "$ac_cs_usage"; exit ;;
8144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8145 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8149 -*) as_fn_error "unrecognized option: \`$1'
8150 Try \`$0 --help' for more information." ;;
8152 *) as_fn_append ac_config_targets " $1"
8153 ac_need_defaults=false ;;
8159 ac_configure_extra_args=
8161 if $ac_cs_silent; then
8163 ac_configure_extra_args="$ac_configure_extra_args --silent"
8167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8168 if \$ac_cs_recheck; then
8169 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8171 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8172 CONFIG_SHELL='$SHELL'
8178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8182 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8183 ## Running $as_me. ##
8189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8193 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8199 # Handling of arguments.
8200 for ac_config_target in $ac_config_targets
8202 case $ac_config_target in
8203 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8204 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8205 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8206 "libctgraphics/Makefile") CONFIG_FILES="$CONFIG_FILES libctgraphics/Makefile" ;;
8207 "libctsupport/Makefile") CONFIG_FILES="$CONFIG_FILES libctsupport/Makefile" ;;
8208 "libctsim/Makefile") CONFIG_FILES="$CONFIG_FILES libctsim/Makefile" ;;
8209 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
8210 "cgi-bin/ctsim.cgi") CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.cgi" ;;
8211 "cgi-bin/Makefile") CONFIG_FILES="$CONFIG_FILES cgi-bin/Makefile" ;;
8212 "html/simulate.html") CONFIG_FILES="$CONFIG_FILES html/simulate.html" ;;
8213 "html/Makefile") CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
8214 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
8215 "getopt/Makefile") CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
8216 "tools/sample-ctsim.sh") CONFIG_FILES="$CONFIG_FILES tools/sample-ctsim.sh" ;;
8217 "cgi-bin/ctsim.conf") CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.conf" ;;
8218 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
8219 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8220 "helical/Makefile") CONFIG_FILES="$CONFIG_FILES helical/Makefile" ;;
8221 "helical/sample-helical.sh") CONFIG_FILES="$CONFIG_FILES helical/sample-helical.sh" ;;
8223 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8228 # If the user did not use the arguments to specify the items to instantiate,
8229 # then the envvar interface is used. Set only those that are not.
8230 # We use the long form for the default assignment because of an extremely
8231 # bizarre bug on SunOS 4.1.3.
8232 if $ac_need_defaults; then
8233 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8234 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8235 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8238 # Have a temporary directory for convenience. Make it in the build tree
8239 # simply because there is no reason against having it here, and in addition,
8240 # creating and moving files from /tmp can sometimes cause problems.
8241 # Hook for its removal unless debugging.
8242 # Note that there is a small window in which the directory will not be cleaned:
8243 # after its creation but before its name has been assigned to `$tmp'.
8247 trap 'exit_status=$?
8248 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8250 trap 'as_fn_exit 1' 1 2 13 15
8252 # Create a (secure) tmp directory for tmp files.
8255 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8256 test -n "$tmp" && test -d "$tmp"
8259 tmp=./conf$$-$RANDOM
8260 (umask 077 && mkdir "$tmp")
8261 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
8263 # Set up the scripts for CONFIG_FILES section.
8264 # No need to generate them if there are no CONFIG_FILES.
8265 # This happens for instance with `./config.status config.h'.
8266 if test -n "$CONFIG_FILES"; then
8269 ac_cr=`echo X | tr X '\015'`
8270 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8271 # But we know of no other shell where ac_cr would be empty at this
8272 # point, so we can use a bashism as a fallback.
8273 if test "x$ac_cr" = x; then
8274 eval ac_cr=\$\'\\r\'
8276 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8277 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8283 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8288 echo "cat >conf$$subs.awk <<_ACEOF" &&
8289 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8292 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8293 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8295 for ac_last_try in false false false false false :; do
8296 . ./conf$$subs.sh ||
8297 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8299 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8300 if test $ac_delim_n = $ac_delim_num; then
8302 elif $ac_last_try; then
8303 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8305 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8310 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8311 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8315 s/^/S["/; s/!.*/"]=/
8325 s/\(.\{148\}\).*/\1/
8327 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8332 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8339 s/\(.\{148\}\).*/\1/
8341 s/["\\]/\\&/g; s/^/"/; s/$/"/
8345 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8350 ' <conf$$subs.awk | sed '
8355 ' >>$CONFIG_STATUS || ac_write_fail=1
8356 rm -f conf$$subs.awk
8357 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8359 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8360 for (key in S) S_is_set[key] = 1
8366 nfields = split(line, field, "@")
8368 len = length(field[1])
8369 for (i = 2; i < nfields; i++) {
8371 keylen = length(key)
8372 if (S_is_set[key]) {
8374 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8375 len += length(value) + length(field[++i])
8386 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8387 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8388 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8391 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8392 || as_fn_error "could not setup config files machinery" "$LINENO" 5
8395 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8396 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8397 # trailing colons and then remove the whole line if VPATH becomes empty
8398 # (actually we leave an empty line to preserve line numbers).
8399 if test "x$srcdir" = x.; then
8400 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8404 s/^\([^=]*=[ ]*\):*/\1/
8410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8411 fi # test -n "$CONFIG_FILES"
8413 # Set up the scripts for CONFIG_HEADERS section.
8414 # No need to generate them if there are no CONFIG_HEADERS.
8415 # This happens for instance with `./config.status Makefile'.
8416 if test -n "$CONFIG_HEADERS"; then
8417 cat >"$tmp/defines.awk" <<\_ACAWK ||
8421 # Transform confdefs.h into an awk script `defines.awk', embedded as
8422 # here-document in config.status, that substitutes the proper values into
8423 # config.h.in to produce config.h.
8425 # Create a delimiter string that does not exist in confdefs.h, to ease
8426 # handling of long lines.
8428 for ac_last_try in false false :; do
8429 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8430 if test -z "$ac_t"; then
8432 elif $ac_last_try; then
8433 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
8435 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8439 # For the awk script, D is an array of macro values keyed by name,
8440 # likewise P contains macro parameters if any. Preserve backslash
8441 # newline sequences.
8443 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8445 s/.\{148\}/&'"$ac_delim"'/g
8448 s/^[ ]*#[ ]*define[ ][ ]*/ /
8455 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8457 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8461 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8462 D["\1"]=" \3\\\\\\n"\\/p
8464 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8469 s/.\{148\}/&'"$ac_delim"'/g
8474 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8477 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8479 ' <confdefs.h | sed '
8480 s/'"$ac_delim"'/"\\\
8481 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8483 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8484 for (key in D) D_is_set[key] = 1
8487 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8489 split(line, arg, " ")
8490 if (arg[1] == "#") {
8494 defundef = substr(arg[1], 2)
8497 split(mac1, mac2, "(") #)
8499 prefix = substr(line, 1, index(line, defundef) - 1)
8500 if (D_is_set[macro]) {
8501 # Preserve the white space surrounding the "#".
8502 print prefix "define", macro P[macro] D[macro]
8505 # Replace #undef with comments. This is necessary, for example,
8506 # in the case of _POSIX_SOURCE, which is predefined and required
8507 # on some systems where configure will not decide to define it.
8508 if (defundef == "undef") {
8509 print "/*", prefix defundef, macro, "*/"
8517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8518 as_fn_error "could not setup config headers machinery" "$LINENO" 5
8519 fi # test -n "$CONFIG_HEADERS"
8522 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8527 :[FHLC]) ac_mode=$ac_tag; continue;;
8529 case $ac_mode$ac_tag in
8531 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
8532 :[FH]-) ac_tag=-:-;;
8533 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8550 -) ac_f="$tmp/stdin";;
8551 *) # Look for the file first in the build tree, then in the source tree
8552 # (if the path is not absolute). The absolute path cannot be DOS-style,
8553 # because $ac_f cannot contain `:'.
8557 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8559 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8561 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8562 as_fn_append ac_file_inputs " '$ac_f'"
8565 # Let's still pretend it is `configure' which instantiates (i.e., don't
8566 # use $as_me), people would be surprised to read:
8567 # /* config.h. Generated by config.status. */
8568 configure_input='Generated from '`
8569 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8571 if test x"$ac_file" != x-; then
8572 configure_input="$ac_file. $configure_input"
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8574 $as_echo "$as_me: creating $ac_file" >&6;}
8576 # Neutralize special characters interpreted by sed in replacement strings.
8577 case $configure_input in #(
8578 *\&* | *\|* | *\\* )
8579 ac_sed_conf_input=`$as_echo "$configure_input" |
8580 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8581 *) ac_sed_conf_input=$configure_input;;
8585 *:-:* | *:-) cat >"$tmp/stdin" \
8586 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
8591 ac_dir=`$as_dirname -- "$ac_file" ||
8592 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8593 X"$ac_file" : 'X\(//\)[^/]' \| \
8594 X"$ac_file" : 'X\(//\)$' \| \
8595 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8596 $as_echo X"$ac_file" |
8597 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8614 as_dir="$ac_dir"; as_fn_mkdir_p
8618 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8620 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8621 # A ".." for each directory in $ac_dir_suffix.
8622 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8623 case $ac_top_builddir_sub in
8624 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8625 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8628 ac_abs_top_builddir=$ac_pwd
8629 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8630 # for backward compatibility:
8631 ac_top_builddir=$ac_top_build_prefix
8634 .) # We are building in place.
8636 ac_top_srcdir=$ac_top_builddir_sub
8637 ac_abs_top_srcdir=$ac_pwd ;;
8638 [\\/]* | ?:[\\/]* ) # Absolute name.
8639 ac_srcdir=$srcdir$ac_dir_suffix;
8640 ac_top_srcdir=$srcdir
8641 ac_abs_top_srcdir=$srcdir ;;
8643 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8644 ac_top_srcdir=$ac_top_build_prefix$srcdir
8645 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8647 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8657 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8658 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8663 # If the template does not know about datarootdir, expand it.
8664 # FIXME: This hack should be removed a few years after 2.60.
8665 ac_datarootdir_hack=; ac_datarootdir_seen=
8676 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8677 *datarootdir*) ac_datarootdir_seen=yes;;
8678 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8680 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8683 ac_datarootdir_hack='
8684 s&@datadir@&$datadir&g
8685 s&@docdir@&$docdir&g
8686 s&@infodir@&$infodir&g
8687 s&@localedir@&$localedir&g
8688 s&@mandir@&$mandir&g
8689 s&\\\${datarootdir}&$datarootdir&g' ;;
8693 # Neutralize VPATH when `$srcdir' = `.'.
8694 # Shell code in configure.ac might set extrasub.
8695 # FIXME: do we really want to maintain this feature?
8696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8697 ac_sed_extra="$ac_vpsub
8700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8702 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8703 s|@configure_input@|$ac_sed_conf_input|;t t
8704 s&@top_builddir@&$ac_top_builddir_sub&;t t
8705 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8706 s&@srcdir@&$ac_srcdir&;t t
8707 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8708 s&@top_srcdir@&$ac_top_srcdir&;t t
8709 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8710 s&@builddir@&$ac_builddir&;t t
8711 s&@abs_builddir@&$ac_abs_builddir&;t t
8712 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8713 s&@INSTALL@&$ac_INSTALL&;t t
8714 $ac_datarootdir_hack
8716 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8717 || as_fn_error "could not create $ac_file" "$LINENO" 5
8719 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8720 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8721 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8723 which seems to be undefined. Please make sure it is defined." >&5
8724 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8725 which seems to be undefined. Please make sure it is defined." >&2;}
8729 -) cat "$tmp/out" && rm -f "$tmp/out";;
8730 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8732 || as_fn_error "could not create $ac_file" "$LINENO" 5
8738 if test x"$ac_file" != x-; then
8740 $as_echo "/* $configure_input */" \
8741 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8742 } >"$tmp/config.h" \
8743 || as_fn_error "could not create $ac_file" "$LINENO" 5
8744 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8746 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8749 mv "$tmp/config.h" "$ac_file" \
8750 || as_fn_error "could not create $ac_file" "$LINENO" 5
8753 $as_echo "/* $configure_input */" \
8754 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8755 || as_fn_error "could not create -" "$LINENO" 5
8757 # Compute "$ac_file"'s index in $config_headers.
8759 for _am_header in $config_headers :; do
8761 "$ac_file" | "$ac_file":* )
8764 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8767 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
8768 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8769 X"$ac_file" : 'X\(//\)[^/]' \| \
8770 X"$ac_file" : 'X\(//\)$' \| \
8771 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8772 $as_echo X"$ac_file" |
8773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8789 s/.*/./; q'`/stamp-h$_am_stamp_count
8792 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8793 $as_echo "$as_me: executing $ac_file commands" >&6;}
8798 case $ac_file$ac_mode in
8799 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8800 # Strip MF so we end up with the name of the file.
8801 mf=`echo "$mf" | sed -e 's/:.*$//'`
8802 # Check whether this is an Automake generated Makefile or not.
8803 # We used to match only the files named `Makefile.in', but
8804 # some people rename them; so instead we look at the file content.
8805 # Grep'ing the first line is not enough: some people post-process
8806 # each Makefile.in and add a new line on top of each file to say so.
8807 # So let's grep whole file.
8808 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8809 dirpart=`$as_dirname -- "$mf" ||
8810 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8811 X"$mf" : 'X\(//\)[^/]' \| \
8812 X"$mf" : 'X\(//\)$' \| \
8813 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8835 # Extract the definition of DEPDIR, am__include, and am__quote
8836 # from the Makefile without running `make'.
8837 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8838 test -z "$DEPDIR" && continue
8839 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8840 test -z "am__include" && continue
8841 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8842 # When using ansi2knr, U may be empty or an underscore; expand it
8843 U=`sed -n 's/^U = //p' < "$mf"`
8844 # Find all dependency output files, they are included files with
8845 # $(DEPDIR) in their names. We invoke sed twice because it is the
8846 # simplest approach to changing $(DEPDIR) to its actual value in the
8848 for file in `sed -n "
8849 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8850 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8851 # Make sure the directory exists.
8852 test -f "$dirpart/$file" && continue
8853 fdir=`$as_dirname -- "$file" ||
8854 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8855 X"$file" : 'X\(//\)[^/]' \| \
8856 X"$file" : 'X\(//\)$' \| \
8857 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8859 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8876 as_dir=$dirpart/$fdir; as_fn_mkdir_p
8877 # echo "creating $dirpart/$file"
8878 echo '# dummy' > "$dirpart/$file"
8889 ac_clean_files=$ac_clean_files_save
8891 test $ac_write_fail = 0 ||
8892 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8895 # configure is writing to config.log, and then calls config.status.
8896 # config.status does its own redirection, appending to config.log.
8897 # Unfortunately, on DOS this fails, as config.log is still kept open
8898 # by configure, so config.status won't be able to write to it; its
8899 # output is simply discarded. So we exec the FD to /dev/null,
8900 # effectively closing config.log, so it can be properly (re)opened and
8901 # appended to by config.status. When coming back to configure, we
8902 # need to make the FD available again.
8903 if test "$no_create" != yes; then
8905 ac_config_status_args=
8906 test "$silent" = yes &&
8907 ac_config_status_args="$ac_config_status_args --quiet"
8909 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8911 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8912 # would make configure fail if this is the last instruction.
8913 $ac_cs_success || as_fn_exit $?
8915 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8917 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}